@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241005.0 → 0.0.0-nightly-20241007.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 +10 -10
- 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 ts,Plugin as
|
|
24
|
-
_0x4f8ba7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4359a7,_0x2f0a11){super(),this['id']=_0x2f0a11['id'],this['type']=_0x2f0a11['type'],this['subType']=_0x2f0a11['subType']||null,this['author']=_0x2f0a11['author'],this['creator']=_0x2f0a11['creator']||_0x2f0a11['author'],this['isExternal']=Boolean(_0x2f0a11['attributes']&&_0x2f0a11['attributes']['@external']),this['data']=null,this['_model']=_0x4359a7,this['_onAccept']=_0x2f0a11['onAccept'],this['_onDiscard']=_0x2f0a11['onDiscard'],this['_onAttributesChange']=_0x2f0a11['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f0a11['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 _0x5122a3=this;for(;_0x5122a3['previous'];)_0x5122a3=_0x5122a3['previous'];return _0x5122a3;}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'](_0x46452d){this['_markerNames']['add'](_0x46452d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x93f80f=>this['_model']['markers']['get'](_0x93f80f))['filter'](_0x1a974e=>_0x1a974e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2cdbc6=>{for(const _0x39c937 of this['getMarkers']())_0x2cdbc6['removeMarker'](_0x39c937);}),this['_markerNames']['clear']();}['removeMarker'](_0x774e85){this['_model']['change'](_0x57401b=>{_0x57401b['removeMarker'](_0x774e85);}),this['_markerNames']['delete'](_0x774e85);}['addRange'](_0xe00ad8){const _0x13fd07='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x13fd07),this['_model']['change'](_0xbfd6e9=>{_0xbfd6e9['addMarker'](_0x13fd07,{'range':_0xe00ad8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2cd3b5){for(const _0x4f67d8 of this['getRanges']())if(_0x4f67d8['isIntersecting'](_0x2cd3b5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c4e69=>_0x4c4e69['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f6ed3,_0x23bff4)=>[..._0x1f6ed3,..._0x23bff4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x50dbb3=this['getRanges']();if(0x1!=_0x50dbb3['length'])return null;const _0x15a758=_0x50dbb3[0x0],_0x45a442=_0x15a758['start']['nodeAfter'],_0x23aff9=_0x15a758['end']['nodeBefore'];return _0x45a442 instanceof _0x592aa3?_0x45a442!=_0x23aff9?null:_0x45a442: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 _0x48beb9=[];let _0x31fb3d=this['head'];for(;_0x31fb3d;)_0x48beb9['push'](_0x31fb3d),_0x31fb3d=_0x31fb3d['next'];return _0x48beb9;}['setAttribute'](_0x2b5bbf,_0x2c4c4c){const _0x26a545=_0x41a7f3(this['attributes']);_0x5b60c5(_0x26a545,_0x2b5bbf,_0x2c4c4c),_0xa8556c(_0x26a545,this['attributes'])||(this['attributes']=_0x26a545,this['_onAttributesChange'](_0x26a545));}['removeAttribute'](_0x2094c0){const _0x127a9a=_0x41a7f3(this['attributes']);_0x2a4224(_0x127a9a,_0x2094c0),_0xa8556c(_0x127a9a,this['attributes'])||(this['attributes']=_0x127a9a,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 _0x413213()['substr'](0x1,0x5);}}function o(_0x16ea82,_0x31e879,_0x2015dc){const t=_0x16ea82['t'];switch(_0x31e879){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'*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',_0x2015dc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2015dc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2015dc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2015dc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2015dc);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',_0x2015dc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2015dc);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x2015dc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2015dc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2015dc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2015dc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2015dc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2015dc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2015dc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2015dc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2015dc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2015dc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2015dc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2015dc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2015dc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2015dc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2015dc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2015dc);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'},_0x2015dc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2015dc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2015dc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2015dc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2015dc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2015dc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2015dc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2015dc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2015dc);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'},_0x2015dc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2015dc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2015dc);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'},_0x2015dc);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2015dc);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2015dc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);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'},_0x2015dc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31e879;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5210a8,_0x18d016){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5210a8,this['_locale']=_0x18d016;}['getDescriptions'](_0x26e46c){const _0x2bfec4=[],_0x531946=new Set(),_0x5eeac5=new Set();for(let _0x1c0e81=0x0;_0x1c0e81<_0x26e46c['length'];_0x1c0e81++){const _0x48b669=_0x26e46c[_0x1c0e81];if(!_0x48b669['isInContent'])continue;const _0x343265=this['_handleCustomCallbackDescription'](_0x48b669);if(_0x343265){if(null!=_0x48b669['subType']){if(_0x531946['has'](_0x48b669['subType']))continue;_0x531946['add'](_0x48b669['subType']);}_0x2bfec4['push'](_0x343265);}else{if('attribute'!=_0x48b669['type'])'insertion'!=_0x48b669['type']&&'deletion'!=_0x48b669['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bfec4,_0x48b669,_0x26e46c[_0x1c0e81+0x1]);else{const _0x48ea89=_0x48b669['data']['key'];if(_0x5eeac5['has'](_0x48ea89))continue;_0x5eeac5['add'](_0x48b669['data']['key']),_0x48ea89==m?this['_handleRenameSuggestionDescription'](_0x2bfec4,_0x48b669):this['_handleAttributeSuggestionDescription'](_0x2bfec4,_0x48b669);}}}return this['_resolveDescriptionItems'](_0x2bfec4);}['registerDescriptionCallback'](_0x49cd70){this['_customCallbacks']['push'](_0x49cd70);}['registerElementLabel'](_0x40b87f,_0x54ff8a,_0x362872=_0x3dec8d['normal']){'function'==typeof _0x40b87f?_0xe1fefd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x40b87f,'label':_0x54ff8a,'priority':_0x362872}):this['_itemLabels']['set'](_0x40b87f,_0x54ff8a);}['registerAttributeLabel'](_0x1fb42e,_0xf716e0){this['_attributeLabels']['set'](_0x1fb42e,_0xf716e0);}['getItemLabel'](_0x1ee199,_0x31a361=0x1){let _0x367fb6;for(const _0x24c931 of this['_itemLabelsCallbacks'])if(_0x24c931['matchingCallback'](_0x1ee199)){_0x367fb6=_0x24c931['label'];break;}return _0x367fb6||(_0x367fb6=this['_itemLabels']['get'](_0x1ee199['name'])),_0x367fb6?_0x367fb6(_0x31a361):0x1!==_0x31a361?_0x31a361+'\x20'+_0x1ee199['name']+'s':''+_0x1ee199['name'];}['_addDescriptionItems'](_0x42c46c,_0x411bbb){const _0x259d1f=_0x411bbb['getFirstRange']()['getWalker'](),_0x32af53='insertion'==_0x411bbb['type']?'add':'remove';for(const _0x3ad69d of _0x259d1f){const _0x5cb917=_0x3ad69d['item'],_0x3ddb64=_0x42c46c[_0x42c46c['length']-0x1];if(_0x5cb917['is']('$textProxy'))_0x3ddb64&&_0x3ddb64['type']['indexOf']('Container')>-0x1&&_0x42c46c['pop'](),_0x3ddb64&&'text'==_0x3ddb64['type']?_0x3ddb64[_0x32af53]+=_0x5cb917['data']:_0x42c46c['push']({'type':'text','add':'add'==_0x32af53?_0x5cb917['data']:'','remove':'remove'==_0x32af53?_0x5cb917['data']:''});else{if(this['_schema']['isObject'](_0x5cb917)){const _0xdb4cb5=_0x5cb917;if(_0x3ddb64&&_0x3ddb64['type']['indexOf']('Container')>-0x1&&_0x42c46c['pop'](),'elementEnd'==_0x3ad69d['type'])continue;_0x3ddb64&&_0x3ddb64['type']==_0x32af53+'Object'&&_0x3ddb64['element']['name']==_0xdb4cb5['name']?_0x3ddb64['quantity']++:_0x42c46c['push']({'type':_0x32af53+'Object','element':_0xdb4cb5,'quantity':0x1}),_0x259d1f['skip'](_0x6b3baa=>!('elementEnd'==_0x6b3baa['type']&&_0x6b3baa['item']==_0x5cb917));}else{if(this['_schema']['checkChild'](_0x5cb917,'$text')||_0x5cb917['is']('element','softBreak')){const _0x4bf7c5=_0x5cb917;if('add'==_0x32af53&&'elementStart'==_0x3ad69d['type']||'remove'==_0x32af53&&'elementEnd'==_0x3ad69d['type'])continue;if(_0x3ddb64&&-0x1==_0x3ddb64['type']['indexOf']('Container')){'text'==_0x3ddb64['type']&&(_0x3ddb64[_0x32af53]+='\x0a');continue;}let _0x1d3abb;if(_0x1d3abb='add'==_0x32af53?_0x4bf7c5['nextSibling']&&!this['_schema']['isObject'](_0x4bf7c5['nextSibling'])?_0x4bf7c5['nextSibling']:null:_0x4bf7c5['previousSibling']&&!this['_schema']['isObject'](_0x4bf7c5['previousSibling'])?_0x4bf7c5['previousSibling']:null,_0x4bf7c5['isEmpty']||_0x1d3abb&&_0x1d3abb['isEmpty']){const _0x598b36=_0x1d3abb&&_0x1d3abb['isEmpty']?_0x1d3abb:_0x4bf7c5;_0x3ddb64&&_0x3ddb64['type']==_0x32af53+'EmptyContainer'&&_0x3ddb64['element']['name']==_0x598b36['name']?_0x3ddb64['quantity']++:_0x42c46c['push']({'type':_0x32af53+'EmptyContainer','element':_0x598b36,'quantity':0x1});}else _0x42c46c['push']({'type':_0x32af53+'Container','element':_0x4bf7c5});}}}}}['_resolveDescriptionItems'](_0x32d8dd){const _0x4166e6=this['_locale'],_0x195c8e=[],_0x1c085b=[],_0x4787df=[];for(const _0x52e4ef of _0x32d8dd)switch(_0x52e4ef['type']){case'text':if(_0x52e4ef['add']=_0x52e4ef['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52e4ef['remove']=_0x52e4ef['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52e4ef['add']&&''!=_0x52e4ef['remove']){_0x195c8e['push']({'type':'replace','content':o(_0x4166e6,'REPLACE_TEXT',['\x22'+_0x52e4ef['remove']+'\x22','\x22'+_0x52e4ef['add']+'\x22'])});continue;}if(null!=_0x52e4ef['add']['match'](/^ +$/)){_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0',o(_0x4166e6,'ELEMENT_SPACE',_0x52e4ef['add']['length']))});continue;}if(null!=_0x52e4ef['remove']['match'](/^ +$/)){_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0',o(_0x4166e6,'ELEMENT_SPACE',_0x52e4ef['remove']['length']))});continue;}if(''!=_0x52e4ef['add']){_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0','\x22'+_0x52e4ef['add']+'\x22')});continue;}_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0','\x22'+_0x52e4ef['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Insert:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Remove:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'addContainer':_0x195c8e['push']({'type':'insertion','content':o(_0x4166e6,'*Split:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'removeContainer':_0x195c8e['push']({'type':'deletion','content':o(_0x4166e6,'*Merge:*\x20%0',this['getItemLabel'](_0x52e4ef['element'],_0x52e4ef['quantity']))});continue;case'addFormat':_0x1c085b['push'](_0x52e4ef['key']);continue;case'removeFormat':_0x4787df['push'](_0x52e4ef['key']);continue;default:_0x195c8e['push'](_0x52e4ef);}if(_0x1c085b['length']){const _0x33aadf=_0x1c085b['map'](_0x363392=>this['_attributeLabels']['has'](_0x363392)?this['_attributeLabels']['get'](_0x363392):_0x363392)['join'](',\x20');_0x195c8e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x33aadf)});}if(_0x4787df['length']){const _0x30363f=_0x4787df['map'](_0x1b3141=>this['_attributeLabels']['has'](_0x1b3141)?this['_attributeLabels']['get'](_0x1b3141):_0x1b3141)['join'](',\x20');_0x195c8e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x30363f)});}return _0x195c8e;}['_handleCustomCallbackDescription'](_0x38eab0){for(const _0x341598 of this['_customCallbacks']){const _0x226020=_0x341598(_0x38eab0);if(_0x226020&&'type'in _0x226020)return _0x226020;}}['_handleAttributeSuggestionDescription'](_0x3b1ff5,_0x41687d){const _0x5cc838=_0x41687d['data'],_0x2100de=void 0x0===_0x5cc838['newValue']?'removeFormat':'addFormat';_0x3b1ff5['push']({'type':_0x2100de,'key':_0x5cc838['key']});}['_handleRenameSuggestionDescription'](_0x59a780,_0x4d2b8d){_0x59a780['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4d2b8d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d4ae9,_0x59588e,_0x1993a0){if(this['_addDescriptionItems'](_0x2d4ae9,_0x59588e),_0x1993a0&&_0x1993a0['getFirstRange']()&&!_0x59588e['getFirstRange']()['end']['isEqual'](_0x1993a0['getFirstRange']()['start'])){const _0x41dee9=_0x2d4ae9[_0x2d4ae9['length']-0x1],_0x202736='insertion'==_0x59588e['type']?'add':'remove';_0x41dee9&&'text'==_0x41dee9['type']&&(_0x41dee9[_0x202736]+='\x0a');}}}class V extends _0x409965{['afterInit'](){const _0x23a5fe=this['editor'],_0x5d1e43=_0x23a5fe['plugins']['get']('TrackChangesEditing');_0x23a5fe['commands']['get']('showAIAssistant')&&_0x5d1e43['enableCommand']('showAIAssistant');}}class U extends _0x409965{['afterInit'](){const _0x1f8256=this['editor'],_0x31cec3=_0x1f8256['locale'];if(!_0x1f8256['plugins']['has']('AlignmentEditing'))return;const _0x1a1d7f=_0x1f8256['plugins']['get']('TrackChangesEditing');_0x1a1d7f['enableDefaultAttributesIntegration']('alignment'),_0x1a1d7f['registerBlockAttribute']('alignment'),_0x1a1d7f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x31cec3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bfdd2=this['editor'],_0x2a10e2=_0x3bfdd2['locale'];_0x3bfdd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15aeb2=>{if('formatBlock'!=_0x15aeb2['type'])return;const {data:_0x274084}=_0x15aeb2;if(_0x274084&&'alignment'==_0x274084['commandName']){const _0x254167=_0x274084['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a10e2,'*Format:*\x20%0',function(_0x9f1ffd){switch(_0x9f1ffd){case'left':return o(_0x2a10e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a10e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a10e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a10e2,'FORMAT_JUSTIFY_TEXT');}}(_0x254167))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x409965{['afterInit'](){const _0x1b7533=this['editor'],_0x561858=_0x1b7533['plugins']['get']('TrackChangesEditing'),_0x2eb86b=_0x1b7533['locale'];for(const _0x18cad1 of ti){if(!_0x1b7533['plugins']['has'](_0x18cad1))continue;const _0x38826f=_0x18cad1['slice'](0x0,-0x7)['toLowerCase'](),_0x495755='FORMAT_'+_0x38826f['toUpperCase']();_0x561858['enableDefaultAttributesIntegration'](_0x38826f),_0x561858['registerInlineAttribute'](_0x38826f),_0x561858['descriptionFactory']['registerAttributeLabel'](_0x38826f,o(_0x2eb86b,_0x495755));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6e5f=this['editor'],_0x5444ca=_0x2e6e5f['locale'],_0x4649d4=_0x2e6e5f['plugins']['get']('TrackChangesEditing');function _0xa06e7b(_0x52093e,_0x3d984c){_0x4649d4['descriptionFactory']['registerDescriptionCallback'](_0x9fd924=>{if('formatInline'!=_0x9fd924['type'])return;const {data:_0x2b966d}=_0x9fd924;return _0x2b966d&&_0x2b966d['commandName']===_0x52093e?_0x2b966d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5444ca,'*Format:*\x20%0',_0x3d984c)}:{'type':'format','content':o(_0x5444ca,'*Remove\x20format:*\x20%0',_0x3d984c)}:void 0x0;});}_0xa06e7b('bold',o(_0x5444ca,'FORMAT_BOLD')),_0xa06e7b('italic',o(_0x5444ca,'FORMAT_ITALIC')),_0xa06e7b('underline',o(_0x5444ca,'FORMAT_UNDERLINE')),_0xa06e7b('code',o(_0x5444ca,'FORMAT_CODE')),_0xa06e7b('strikethrough',o(_0x5444ca,'FORMAT_STRIKETHROUGH')),_0xa06e7b('subscript',o(_0x5444ca,'FORMAT_SUBSCRIPT')),_0xa06e7b('superscript',o(_0x5444ca,'FORMAT_SUPERSCRIPT'));}}class F extends _0x409965{['afterInit'](){const _0x3d1607=this['editor'],_0x5d72d3=_0x3d1607['locale'];if(!_0x3d1607['plugins']['has']('BlockQuoteEditing'))return;const _0x360144=_0x3d1607['plugins']['get']('TrackChangesEditing'),_0x4ffaca=this['editor']['commands']['get']('blockQuote');_0x360144['enableCommand']('blockQuote',(_0x1e72d7,_0x274240={})=>{const _0x5cb431=this['editor']['model']['document']['selection'],_0x1b4fa1=_0x274240&&void 0x0!==_0x274240['forceValue']?_0x274240['forceValue']:!_0x4ffaca['value'];let _0x24aaf2=[];if(_0x1b4fa1){const _0x2e0a97=Array['from'](_0x5cb431['getSelectedBlocks']())['filter'](_0x31a208=>oo(_0x31a208)||function(_0x357c9c,_0xee5d01){const _0x382175=_0xee5d01['checkChild'](_0x357c9c['parent'],'blockQuote'),_0x120b00=_0xee5d01['checkChild'](['$root','blockQuote'],_0x357c9c);return _0x382175&&_0x120b00;}(_0x31a208,this['editor']['model']['schema']));_0x24aaf2=to(_0x2e0a97,_0x3d1607['model']);}else{const _0x274b09=Array['from'](_0x5cb431['getSelectedBlocks']())['filter'](_0x4abf63=>oo(_0x4abf63));_0x24aaf2=to(_0x274b09,_0x3d1607['model']);}_0x3d1607['model']['change'](()=>{for(const _0x57d715 of _0x24aaf2)_0x360144['markBlockFormat'](_0x57d715,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b4fa1}]});});}),_0x360144['descriptionFactory']['registerDescriptionCallback'](_0x4ea35b=>{const {data:_0x1a8007}=_0x4ea35b;if(_0x1a8007&&'blockQuote'==_0x1a8007['commandName']){const _0x4aba6=o(_0x5d72d3,'ELEMENT_BLOCK_QUOTE');return _0x1a8007['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d72d3,'*Set\x20format:*\x20%0',_0x4aba6)}:{'type':'format','content':o(_0x5d72d3,'*Remove\x20format:*\x20%0',_0x4aba6)};}});}}function oo(_0xb798cc){return'blockQuote'==_0xb798cc['parent']['name'];}class L extends _0x409965{['afterInit'](){const _0x23dc2a=this['editor'];_0x23dc2a['plugins']['has']('CaseChange')&&(_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x23dc2a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x409965{['afterInit'](){const _0x127ca9=this['editor'];_0x127ca9['commands']['get']('ckbox')&&_0x127ca9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x409965{['afterInit'](){const _0x2f47ef=this['editor'];if(!_0x2f47ef['plugins']['has']('CodeBlock'))return;const _0x3876b4=_0x2f47ef['plugins']['get']('TrackChangesEditing'),_0x410354=_0x2f47ef['locale'],_0x2738a1=_0x2f47ef['config']['get']('codeBlock')['languages'],_0x25cd61=_0x2f47ef['commands']['get']('codeBlock');_0x3876b4['enableCommand']('indentCodeBlock'),_0x3876b4['enableCommand']('outdentCodeBlock'),_0x3876b4['enableCommand']('codeBlock',(_0x27aca2,_0xbde108={})=>{const _0x41295e=_0x2f47ef['model'],_0x5e0e24=_0x2f47ef['model']['document']['selection'],_0x23821d=_0xbde108&&void 0x0!==_0xbde108['forceValue']?_0xbde108['forceValue']:!_0x25cd61['value'];let _0x3986c9;_0xbde108['language']||(_0xbde108['language']=_0x2738a1[0x0]['language']),_0x3986c9=_0x23821d?Array['from'](_0x5e0e24['getSelectedBlocks']())['filter'](_0x4f6c2=>eo(_0x4f6c2)||function(_0x5558b0,_0x245e24){if(_0x5558b0['is']('rootElement')||_0x245e24['isLimit'](_0x5558b0))return!0x1;return _0x245e24['checkChild'](_0x5558b0['parent'],'codeBlock');}(_0x4f6c2,_0x41295e['schema'])):Array['from'](_0x5e0e24['getSelectedBlocks']())['filter'](_0x145168=>eo(_0x145168));const _0x463c87=to(_0x3986c9,_0x41295e);_0x41295e['change'](()=>{for(const _0x10f2f2 of _0x463c87)_0x3876b4['markBlockFormat'](_0x10f2f2,{'commandName':'codeBlock','commandParams':[{..._0xbde108,'forceValue':_0x23821d}],'formatGroupId':'blockName'});});}),(_0x3876b4['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a5aa1=>o(_0x410354,'ELEMENT_CODE_BLOCK',_0x3a5aa1)),_0x3876b4['descriptionFactory']['registerDescriptionCallback'](_0x23ed57=>{if('formatBlock'!=_0x23ed57['type'])return;const _0x326c59=_0x410354['t'],{data:_0x4b7385}=_0x23ed57;if(!_0x4b7385||'codeBlock'!=_0x4b7385['commandName'])return;const _0xdd53d3=_0x4b7385['commandParams'][0x0]['language'],_0x502010=_0x326c59(_0x2738a1['find'](_0x7a3c97=>_0x7a3c97['language']===_0xdd53d3)['label'])['toLowerCase']();return _0x4b7385['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x410354,'*Set\x20format:*\x20%0',o(_0x410354,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x502010+')')}:{'type':'format','content':o(_0x410354,'*Remove\x20format:*\x20%0',o(_0x410354,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b24d9){return'codeBlock'==_0x5b24d9['name'];}class q extends _0x409965{['afterInit'](){const _0x2402a9=this['editor'];if(!_0x2402a9['plugins']['has']('CommentsEditing'))return;_0x2402a9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b099c,_0x1ccc04,_0x26fd2a){const _0x522add=[];for(const _0x31f59f of _0x1ccc04['getItems']())_0x31f59f['hasAttribute'](_0x3b099c)&&_0x522add['push'](_0x26fd2a['createRangeOn'](_0x31f59f));return _0x522add;}function _e(_0x3830d2,_0x2e4689,{showActiveMarker:_0x5bc81e=!0x0}={}){const _0x24512c=_0x3830d2['plugins']['get']('TrackChangesEditing');return(_0x472b58,_0x4e1d7f,_0x4d04cb)=>{if(!_0x4d04cb['consumable']['test'](_0x4e1d7f['markerRange'],_0x472b58['name']))return;const _0x3ca1bc=_0x4e1d7f['markerRange']['getWalker'](),_0x3679ed=_0x4e1d7f['markerRange']['start'],_0x264028=_0x3830d2['model']['schema'];let _0x158a41=null,_0x581ae5=null,_0x345a29=!0x1,_0x19f470=!0x1;for(const _0x5242cf of _0x3ca1bc){const _0x59431b=_0x5242cf['item'];_0x345a29=_0x345a29||_0x264028['isContent'](_0x59431b);const _0x393d24=_0x4d04cb['mapper']['toViewElement'](_0x59431b);if(_0x393d24&&_0x393d24['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5242cf['type']&&(_0x264028['isBlock'](_0x59431b)&&!_0x264028['isLimit'](_0x59431b)&&(_0x59431b['nextSibling']||_0x3679ed['isAtEnd']?_0x158a41&&_0x158a41['parent']==_0x59431b||(_0x158a41=_0x59431b,_0x1f37ea(_0x5242cf['previousPosition']),_0x19f470=!0x0):_0x581ae5=_0x581ae5||_0x5242cf['previousPosition']));}function _0x1f37ea(_0x291c1f){const {authorId:_0x178f45}=_0x24512c['_splitMarkerName'](_0x4e1d7f['markerName']),_0x6879c3=_0x4d04cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e4689,'data-author-id':_0x178f45}),_0x1c0fe6=_0x4d04cb['mapper']['toViewPosition'](_0x291c1f);_0x5bc81e&&_0x24512c['activeMarkers']['includes'](_0x4e1d7f['markerName'])&&_0x4d04cb['writer']['addClass']('ck-suggestion-marker--active',_0x6879c3),_0x4d04cb['writer']['insert'](_0x1c0fe6,_0x6879c3),_0x4d04cb['mapper']['bindElementToMarker'](_0x6879c3,_0x4e1d7f['markerName']);}_0x345a29||_0x19f470||!_0x581ae5||_0x1f37ea(_0x581ae5);};}class z extends _0x409965{static get['requires'](){return[_0x36b70b];}['init'](){const _0x2c00f8=this['editor'],_0x1da82e=_0x2c00f8['plugins']['get']('TrackChangesEditing');_0x1da82e['enableCommand']('delete');const _0x3786b7=_0x2c00f8['commands']['get']('deleteForward');_0x1da82e['enableCommand']('deleteForward',(_0x39190b,_0x1d4943={})=>{const _0x4113e0=_0x2c00f8['model']['createSelection'](_0x2c00f8['model']['document']['selection']);_0x4113e0['isCollapsed']&&_0x2c00f8['model']['modifySelection'](_0x4113e0,{'direction':'forward','unit':_0x1d4943['unit']});const _0x5261d2=_0x4113e0['getFirstRange'](),_0x5839e5=_0x531671['fromRange'](_0x5261d2);let _0xb117af;_0x39190b(_0x1d4943),_0xb117af='$graveyard'==_0x5839e5['root']['rootName']?_0x2c00f8['model']['createRange'](_0x5261d2['start']):_0x2c00f8['model']['createRange'](_0x5839e5['start'],_0x5839e5['end']),_0x5839e5['detach'](),_0x2c00f8['model']['enqueueChange'](_0x3786b7['buffer']['batch'],_0x1b5eca=>{_0x3786b7['buffer']['lock'](),_0x1b5eca['setSelection'](_0x1b5eca['createRange'](_0xb117af['end'])),_0x3786b7['buffer']['unlock']();});}),_0x2c00f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2c00f8,'merge'),{'priority':'high'}),_0x2c00f8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x57ee2c,_0x44e4c9,_0x4bbd25)=>{_0x4bbd25['options']['showSuggestionHighlights']&&_e(_0x2c00f8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x57ee2c,_0x44e4c9,_0x4bbd25);},{'priority':'high'}),_0x2c00f8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f83c5,_0x24f457,_0x2a6b3b)=>{const _0x32ee39=_0x2a6b3b['mapper']['markerNameToElements'](_0x24f457['markerName']);if(_0x32ee39){for(const _0x5e1e6b of _0x32ee39)_0x5e1e6b['is']('uiElement')&&(_0x2a6b3b['mapper']['unbindElementFromMarkerName'](_0x5e1e6b,_0x24f457['markerName']),_0x2a6b3b['writer']['remove'](_0x5e1e6b));}},{'priority':'high'});}}class K extends _0x409965{['afterInit'](){const _0xfe619d=this['editor'];if(!_0xfe619d['plugins']['has']('ListEditing'))return;const _0x37fa1f=_0xfe619d['locale'],_0x4a4721=_0xfe619d['plugins']['get']('TrackChangesEditing'),_0xe964c4=_0xfe619d['plugins']['has']('TodoListEditing'),_0x3f1b1c=!!_0xfe619d['config']['get']('list.multiBlock');function _0xa960ae(_0x576634){return{'type':'format','content':''+o(_0x37fa1f,'*Set\x20format:*\x20%0',_0x576634)};}function _0x4a39ab(_0x33fd53){return{'type':'format','content':''+o(_0x37fa1f,'*Remove\x20format:*\x20%0',_0x33fd53)};}_0x4a4721['enableDefaultAttributesIntegration']('numberedList'),_0x4a4721['enableDefaultAttributesIntegration']('bulletedList'),_0x4a4721['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a4721['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a4721['enableDefaultAttributesIntegration']('indentList'),_0x4a4721['enableDefaultAttributesIntegration']('outdentList'),_0x4a4721['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a4721['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4a4721['registerBlockAttribute']('listItemId'),_0x4a4721['registerBlockAttribute']('listType'),_0x4a4721['registerBlockAttribute']('listIndent'),_0x3f1b1c&&(_0x4a4721['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a4721['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe964c4&&(_0x4a4721['enableDefaultAttributesIntegration']('todoList'),_0x4a4721['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a4721['registerBlockAttribute']('todoListChecked'),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x1f43b8=>{const {data:_0x4286b9}=_0x1f43b8;if(_0x4286b9&&'todoListChecked'==_0x4286b9['key'])return{'type':'format','content':_0x4286b9['newValue']?o(_0x37fa1f,'*Check\x20item*'):o(_0x37fa1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x80fd83=>{if(_0x80fd83['batch']['isUndo'])return!0x1;let _0x3aea61=!0x1;const _0x3d38dd=_0x4a4721['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50b0ed=>'todoListChecked'===_0x4a4721['_getAttributeKey'](_0x50b0ed));for(const _0x5e4715 of _0x3d38dd){'todo'!=_0x5e4715['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a4721['_findSuggestions'](_0x5e4715['getFirstRange'](),'attribute')['find'](_0x4fbcb0=>'listType'===_0x4a4721['_getAttributeKey'](_0x4fbcb0['suggestion']))||(_0x80fd83['removeMarker'](_0x5e4715['getFirstMarker']()),_0x3aea61=!0x0));}return _0x3aea61;})),_0x4a4721['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x37fa1f,'FORMAT_INDENT'));const _0xc52074={'type':'format','content':''};_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x2e16fe=>{const {data:_0x1217dd}=_0x2e16fe;if(!_0x1217dd||'listType'!=_0x1217dd['key'])return;let _0xbcddfe=_0x2e16fe['head'];for(;_0xbcddfe;){if(_0xbcddfe['data']&&(('listStyle'==_0xbcddfe['data']['key']||'listMarkerStyle'==_0xbcddfe['data']['key'])&&(_0xbcddfe['data']['newValue']&&'default'!=_0xbcddfe['data']['newValue']||'default'!=_0xbcddfe['data']['oldValue']&&!_0x1217dd['newValue'])||!_0x3f1b1c&&_0xbcddfe['data']['key']==m))return _0xc52074;_0xbcddfe=_0xbcddfe['next'];}if(null==_0x1217dd['newValue'])switch(_0x1217dd['oldValue']){case'bulleted':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a39ab(o(_0x37fa1f,'ELEMENT_TODO_LIST'));}switch(_0x1217dd['newValue']){case'bulleted':return _0xa960ae(o(_0x37fa1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa960ae(o(_0x37fa1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa960ae(o(_0x37fa1f,'ELEMENT_TODO_LIST'));}}),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x2cd33d=>{const {data:_0x227036}=_0x2cd33d;if(_0x227036&&'listIndent'==_0x227036['key'])return null==_0x227036['newValue']||null==_0x227036['oldValue']&&0x0==_0x227036['newValue']?_0xc52074:void 0x0;}),_0x4a4721['descriptionFactory']['registerDescriptionCallback'](_0x3bcada=>{if('attribute'!=_0x3bcada['type'])return;const {data:_0x572b86}=_0x3bcada;if(!_0x572b86||'listItemId'!=_0x572b86['key'])return;const _0x4c756e=Ee(_0x3bcada);return'newValue'==_0x4c756e?{'type':'format','content':o(_0x37fa1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c756e?{'type':'format','content':o(_0x37fa1f,'*Split:*\x20list\x20item')}:_0xc52074;}),_0xfe619d['model']['document']['registerPostFixer'](_0x33b702=>this['listItemIdFixer'](_0x33b702)),_0xfe619d['model']['document']['registerPostFixer'](_0x351b91=>this['noTrackChangesFixer'](_0x351b91)),_0xfe619d['model']['document']['on']('change:data',(_0x5b6490,_0xcab2a7)=>{if(_0xcab2a7['isUndo']||!_0xcab2a7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5cae09){if(_0x5cae09['batch']['isUndo']||!_0x5cae09['batch']['isLocal'])return!0x1;let _0x44ddfa=!0x1;const _0x210fc8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a1e10=>_0x4a1e10['data']&&'listItemId'==_0x4a1e10['data']['key'])['filter'](_0x5e8ed3=>_0x5e8ed3['data']['newValue']&&_0x5e8ed3['data']['oldValue']);for(const _0x415128 of _0x210fc8)Ee(_0x415128)||(_0x5cae09['removeMarker'](_0x415128['getFirstMarker']()),_0x44ddfa=!0x0);return _0x44ddfa;}['noTrackChangesFixer'](_0x4f9788){if(_0x4f9788['batch']['isUndo']||!_0x4f9788['batch']['isLocal'])return!0x1;const _0x4fbdeb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4fbdeb['trackChangesCommand']['value'])return!0x1;let _0x3ae352=!0x1;const _0x3a5883=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3c919d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48802c=>'attribute'==_0x48802c['type'])['filter'](_0x1f90d3=>_0x3a5883['includes'](_0x1f90d3['attributeKey']));if(0x0==_0x3c919d['length'])return _0x3ae352;for(const _0x334794 of _0x3c919d){const _0x55ac71=_0x4fbdeb['_findSuggestions'](_0x334794['range'],'attribute')['filter'](_0x6b84d6=>!_0x6b84d6['meta']['isNextTo'])['map'](_0x32eeb4=>_0x32eeb4['suggestion'])['filter'](_0x2b6131=>{const _0x5271d9=_0x4fbdeb['_getAttributeKey'](_0x2b6131);return _0x3a5883['includes'](_0x5271d9);});if(_0x55ac71['length']){for(const _0x56051f of _0x55ac71)_0x4f9788['removeMarker'](_0x56051f['getFirstMarker']());_0x3ae352=!0x0;}}return _0x3ae352;}['assureChains'](){const _0x13a0dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc597f7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ff0a1;const _0x120a20=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x539078=>{if(_0x539078['data']['oldRange']||!_0x539078['data']['newRange'])return null;if(!_0x539078['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x307a86}=_0x13a0dd['_splitMarkerName'](_0x539078['name']);if(!_0x13a0dd['hasSuggestion'](_0x307a86))return null;const _0x2504bc=_0x13a0dd['getSuggestion'](_0x307a86);return _0xc597f7['includes'](_0x2504bc['data']['key']);})['map'](_0x5b35d6=>{const {id:_0x8f2ba8}=_0x13a0dd['_splitMarkerName'](_0x5b35d6['name']),_0x26e77e=_0x13a0dd['getSuggestion'](_0x8f2ba8);return _0x1ff0a1=_0x26e77e['attributes']['groupId'],_0x26e77e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x120a20['size'])return;const _0x545a27=_0x13a0dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xabbe80=>'attribute'==_0xabbe80['type']&&_0xabbe80['data']&&_0xc597f7['includes'](_0xabbe80['data']['key'])&&_0xabbe80['attributes']['groupId']!=_0x1ff0a1)['map'](_0x209e3e=>({'listItem':_0x209e3e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x209e3e['attributes']['groupId']})),_0x39f4aa=new Set();for(const {groupId:_0x31a8e7,listItem:_0x28ff90}of _0x545a27)_0x120a20['has'](_0x28ff90)&&_0x39f4aa['add'](_0x31a8e7);for(const _0x10dc97 of _0x13a0dd['getSuggestions']())_0x39f4aa['has'](_0x10dc97['attributes']['groupId'])&&_0x10dc97['setAttribute']('groupId',_0x1ff0a1);}['_supportLegacySuggestions'](){const _0x250272=this['editor'],_0x4d8109=_0x250272['locale'],_0x27d8c5=_0x250272['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x27d8c5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1030c7,_0x274a22){const _0x67c221=[];for(let _0x58dfb3 of _0x1030c7)_0x58dfb3['start']['nodeAfter']===_0x58dfb3['end']['parent']&&(_0x58dfb3=_0x250272['model']['createRange'](_0x250272['model']['createPositionAt'](_0x58dfb3['start']['nodeAfter'],0x0))),_0x67c221['push'](_0x58dfb3);_0x250272['model']['change'](_0x4fc11f=>{const _0x1c342d=_0x250272['model']['document']['selection'],_0x412d77=Array['from'](_0x1c342d['getRanges']())['map'](_0x11a34f=>_0x531671['fromRange'](_0x11a34f));_0x4fc11f['setSelection'](_0x67c221),_0x250272['commands']['get'](_0x274a22['commandName'])['refresh'](),_0x274a22['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x250272['execute'](_0x274a22['commandName'],..._0x274a22['commandParams']),_0x4fc11f['setSelection'](_0x412d77);for(const _0x48d9c4 of _0x412d77)_0x48d9c4['detach']();});}),_0x27d8c5['descriptionFactory']['registerElementLabel'](function(_0x56f1da){const _0x31b033=!_0x250272['model']['schema']['isObject'](_0x56f1da),_0x239e42=_0x56f1da['previousSibling'],_0x459e76=_0x56f1da['nextSibling'],_0x26a99c=_0x56f1da['getAttribute']('listItemId'),_0x52b89a=!_0x239e42||_0x239e42['getAttribute']('listItemId')!==_0x26a99c,_0x522db4=!_0x459e76||_0x459e76['getAttribute']('listItemId')!==_0x26a99c;return _0x31b033&&Boolean(_0x26a99c)&&_0x52b89a&&_0x522db4;},_0x49d751=>o(_0x4d8109,'ELEMENT_LIST_ITEM',_0x49d751));}['_registerLegacyDescription'](){const _0x481136=this['editor'],_0x4ee967=_0x481136['locale'];function _0x262606(_0x2ca39d){const _0x3f9c7d=_0x481136['commands']['get']('bulletedList')['value'],_0x305bd0=_0x481136['commands']['get']('numberedList')['value'];return'numberedList'===_0x2ca39d?_0x3f9c7d:_0x305bd0;}_0x481136['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x81a16e){if('formatBlock'!=_0x81a16e['type'])return;const {data:_0x618428}=_0x81a16e;if(!_0x618428)return;let _0x50fdf7,_0x3a2fc4,_0x52700a,_0x29f8c6;switch(_0x618428['commandName']){case'bulletedList':_0x52700a=_0x618428['commandParams'][0x0]['forceValue'],_0x29f8c6=_0x262606(_0x618428['commandName']),_0x50fdf7=_0x52700a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f8c6&&_0x481136['config']['get']('list.multiBlock')||(_0x50fdf7='*Change\x20to:*\x20%0'),_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52700a=_0x618428['commandParams'][0x0]['forceValue'],_0x29f8c6=_0x262606(_0x618428['commandName']),_0x50fdf7=_0x52700a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f8c6&&_0x481136['config']['get']('list.multiBlock')||(_0x50fdf7='*Change\x20to:*\x20%0'),_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x50fdf7='*Indent:*\x20%0',_0x3a2fc4={'type':'format','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x50fdf7=function(_0x404bd8){const _0x596e73=_0x404bd8['getFirstRange']();let _0x280209=_0x596e73['start']['nodeAfter'];for(;_0x280209&&_0x596e73['containsItem'](_0x280209);){if(_0x280209['getAttribute']('listIndent')>0x0)return!0x1;_0x280209=_0x280209['nextSibling'];}return!0x0;}(_0x81a16e)?o(_0x4ee967,'*Format:*\x20remove\x20from\x20%0',o(_0x4ee967,function(_0x2d93a0){return'ELEMENT_'+_0x2d93a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x81a16e))):o(_0x4ee967,'*Outdent:*\x20%0',o(_0x4ee967,'ELEMENT_LIST_ITEM')),_0x3a2fc4={'type':'format','content':_0x50fdf7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x618428['multipleBlocks']&&(_0x50fdf7='*Merge:*\x20%0',_0x3a2fc4={'type':'deletion','content':o(_0x4ee967,_0x50fdf7,o(_0x4ee967,'ELEMENT_LIST_ITEM'))});}return _0x3a2fc4;});}}function Ee(_0x537873){let _0x59b022=_0x537873['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59b022;){const _0x2502f3=_0x59b022['getAttribute']('listItemId');if(!_0x2502f3)return!0x1;if(_0x2502f3==_0x537873['data']['newValue'])return'newValue';if(_0x2502f3==_0x537873['data']['oldValue'])return'oldValue';_0x59b022=_0x59b022['previousSibling'];}return!0x1;}class pe extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x309ead=this['editor']['config']['get']('list.properties'),_0x4e718c=this['editor']['plugins']['get']('TrackChangesEditing');_0x309ead['styles']&&(_0x4e718c['enableDefaultAttributesIntegration']('listStyle'),_0x4e718c['registerBlockAttribute']('listStyle')),_0x309ead['reversed']&&(_0x4e718c['enableDefaultAttributesIntegration']('listReversed'),_0x4e718c['registerBlockAttribute']('listReversed')),_0x309ead['startIndex']&&(_0x4e718c['enableDefaultAttributesIntegration']('listStart'),_0x4e718c['registerBlockAttribute']('listStart'));const _0x3be95b={'type':'format','content':''};_0x4e718c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xace206=this['editor']['locale'];_0x4e718c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xace206,'FORMAT_LIST_REVERSED')),_0x4e718c['descriptionFactory']['registerDescriptionCallback'](_0x5e462f=>{const {data:_0x47c049}=_0x5e462f;if(_0x47c049&&'listReversed'==_0x47c049['key'])return null==_0x47c049['newValue']||0x0==_0x47c049['newValue']&&null==_0x47c049['oldValue']?_0x3be95b:void 0x0;}),_0x4e718c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xace206,'FORMAT_LIST_START')),_0x4e718c['descriptionFactory']['registerDescriptionCallback'](_0x24596e=>{const {data:_0x264f22}=_0x24596e;if(_0x264f22&&'listStart'==_0x264f22['key'])return null==_0x264f22['newValue']||0x1==_0x264f22['newValue']&&null==_0x264f22['oldValue']?_0x3be95b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4fc852=>{if(_0x4fc852['batch']['isUndo'])return!0x1;let _0x1cd186=!0x1;const _0x5194df=_0x4e718c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287ba4=>{const _0x13f86f=_0x4e718c['_getAttributeKey'](_0x287ba4);return'listStart'==_0x13f86f||'listReversed'==_0x13f86f;});for(const _0x793b5c of _0x5194df){const _0xe3dfbf=_0x793b5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe3dfbf||'customNumbered'==_0xe3dfbf)continue;_0x4e718c['_findSuggestions'](_0x793b5c['getFirstRange'](),'attribute')['find'](_0xc1fc6f=>'listType'==_0x4e718c['_getAttributeKey'](_0xc1fc6f['suggestion']))||(_0x4fc852['removeMarker'](_0x793b5c['getFirstMarker']()),_0x1cd186=!0x0);}return _0x1cd186;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5838c3){const _0x52e0a2=this['editor']['locale'],{data:_0x4c5500}=_0x5838c3,_0x26b64b={'type':'format','content':''};if(!_0x4c5500||'listStyle'!=_0x4c5500['key'])return;if(!_0x4c5500['oldValue'])return'default'==_0x4c5500['newValue']?_0x26b64b:{'type':'format','content':''+o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['newValue'])))};if(!_0x4c5500['newValue']){if('default'==_0x4c5500['oldValue'])return _0x26b64b;let _0x112d8c=_0x5838c3['head'];for(;_0x112d8c;){if(_0x112d8c['data']&&'listType'==_0x112d8c['data']['key']&&_0x112d8c['data']['newValue'])return _0x26b64b;_0x112d8c=_0x112d8c['next'];}return{'type':'format','content':''+o(_0x52e0a2,'*Remove\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['oldValue'])))};}if('default'!=_0x4c5500['newValue'])return{'type':'format','content':''+o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,this['_getTranslationKeyForListStyle'](_0x4c5500['newValue'])))};let _0x3090f7=_0x5838c3['head'];for(;_0x3090f7;){if(_0x3090f7['data']&&'listType'==_0x3090f7['data']['key']&&_0x3090f7['data']['newValue']&&_0x3090f7['data']['oldValue'])return _0x26b64b;_0x3090f7=_0x3090f7['next'];}return{'type':'format','content':o(_0x52e0a2,'*Set\x20format:*\x20%0',o(_0x52e0a2,'ELEMENT_'+_0x5838c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x15e457=this['editor'],_0xeac104=_0x15e457['locale'];_0x15e457['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b642=>{if('formatBlock'!=_0x22b642['type'])return;const {data:_0x433775}=_0x22b642;if(!_0x433775)return;let _0x36de6a,_0x1aefa7;switch(_0x433775['commandName']){case'listStyle':_0x36de6a='*Change\x20to:*\x20%0',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a,o(_0xeac104,this['_getTranslationKeyForListStyle'](_0x433775['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36de6a=_0x433775['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a)};break;case'listStart':_0x36de6a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aefa7={'type':'format','content':o(_0xeac104,_0x36de6a,_0x433775['commandParams'][0x0]['startIndex'])};}return _0x1aefa7;});}['_getTranslationKeyForListStyle'](_0x582bfb){return'ELEMENT_'+function(_0x39bbd1){if(ye['includes'](_0x39bbd1))return'bulleted';if(Se['includes'](_0x39bbd1))return'numbered';return null;}(_0x582bfb)['toUpperCase']()+'_LIST_'+_0x582bfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x409965{static get['requires'](){return[_0x3d721a];}['init'](){const _0x34556d=this['editor'],_0x15eac6=_0x34556d['plugins']['get']('TrackChangesEditing'),_0xb7f6df=_0x34556d['commands']['get']('enter');_0x15eac6['enableCommand']('enter',()=>{_0x34556d['model']['change'](_0x10d470=>{const _0x21cc98=_0x34556d['model']['document']['selection'],_0x3a827c=_0x21cc98['getFirstPosition'](),_0x83a4b1=_0x531671['fromRange'](_0x21cc98['getFirstRange']());if(_0xb7f6df['enterBlock'](_0x10d470)){const _0x19980b=_0x34556d['model']['createPositionAt'](_0x3a827c['parent']['nextSibling'],0x0),_0x12435b=_0x10d470['createRange'](_0x3a827c,_0x19980b);_0x15eac6['markInsertion'](_0x12435b);}else _0x10d470['setSelection'](_0x10d470['createRange'](_0x83a4b1['end']));_0x83a4b1['detach'](),_0xb7f6df['fire']('afterExecute',{'writer':_0x10d470});});}),_0x34556d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x34556d,'split'),{'priority':'high'}),_0x34556d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x383bd1,_0x4c7b1c,_0x39a083)=>{const _0x2ac800=_0x39a083['mapper']['markerNameToElements'](_0x4c7b1c['markerName']);if(_0x2ac800){for(const _0x5c0aa6 of _0x2ac800)_0x5c0aa6['hasClass']('ck-suggestion-marker-split')&&(_0x39a083['mapper']['unbindElementFromMarkerName'](_0x5c0aa6,_0x4c7b1c['markerName']),_0x39a083['writer']['remove'](_0x5c0aa6));}},{'priority':'high'}),_0x34556d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x320db4,_0x188247,_0xee49be)=>{_0xee49be['options']['showSuggestionHighlights']&&_e(_0x34556d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x320db4,_0x188247,_0xee49be);},{'priority':'high'});}}class X extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4b0d9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b0d9c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4b0d9c['enableCommand']('findNext'),_0x4b0d9c['enableCommand']('findPrevious'),_0x4b0d9c['enableCommand']('replace'),_0x4b0d9c['enableCommand']('replaceAll');}['handleFindCommand'](_0x97a3e1,_0x26faf9,_0x16e29d={}){const _0x480349=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x97a3e1(_0x274fcd=>{let _0xd33d3=('string'==typeof _0x26faf9?_0x480349['findByTextCallback'](_0x26faf9,_0x16e29d):_0x26faf9)(_0x274fcd);Array['isArray'](_0xd33d3)&&(_0xd33d3={'results':_0xd33d3,'searchText':'string'==typeof _0x26faf9?_0x26faf9:''});const _0x4d67d3=_0xd33d3['results']['filter'](_0x293543=>!0x1===this['_isInDeletionRange'](_0x293543,_0x274fcd['item']));return{..._0xd33d3,'results':_0x4d67d3};},_0x16e29d);}['_isInDeletionRange'](_0x219bce,_0x469714){const _0x510fe5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x469714,_0x219bce['start']),this['editor']['model']['createPositionAt'](_0x469714,_0x219bce['end']));for(const _0x10fb1c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x510fe5['getIntersection'](_0x10fb1c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x409965{['afterInit'](){const _0x2290b1=this['editor']['locale'],_0x4836ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d8f81,commandName:_0x26bd67}of ro)this['editor']['plugins']['has'](_0x1d8f81)&&(_0x4836ab['enableDefaultAttributesIntegration'](_0x26bd67),_0x4836ab['registerInlineAttribute'](_0x26bd67));_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2290b1,'FORMAT_FONT_SIZE')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2290b1,'FORMAT_FONT_FAMILY')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2290b1,'FORMAT_FONT_COLOR')),_0x4836ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2290b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb579db=this['editor'],_0x527be7=_0xb579db['locale'];_0xb579db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd340=>{const _0xeabbbd=_0x527be7['t'];if('formatInline'!=_0x2bd340['type'])return;const {data:_0x2f32ff}=_0x2bd340;if(null!=_0x2f32ff){if('fontSize'==_0x2f32ff['commandName']){const _0x415bbf=_0x2f32ff['commandParams'][0x0]['value'];if(_0x415bbf){const _0x49b0ea=_0xeabbbd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42af5d=>_0x42af5d['model']==_0x415bbf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x527be7,'*Set\x20font\x20size:*\x20%0',_0x49b0ea)};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f32ff['commandName']){const _0x55915e=_0x2f32ff['commandParams'][0x0]['value'];return _0x55915e?{'type':'format','content':o(_0x527be7,'*Set\x20font\x20family:*\x20%0',_0x55915e)}:{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f32ff['commandName']){const _0x4c5ebd=_0x2f32ff['commandParams'][0x0]['value'];if(_0x4c5ebd){const _0x268546=_0x757e03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x136600=>_0x136600['model']==_0x4c5ebd);let _0x19c1bf=_0x4c5ebd,_0x3f29ed='';return _0x268546&&(_0x19c1bf=_0x268546['label'],_0x3f29ed=_0xeabbbd(_0x19c1bf)['toLowerCase']()),{'type':'format','content':o(_0x527be7,'*Set\x20font\x20color:*\x20%0',_0x3f29ed)['trim'](),'color':{'value':_0x4c5ebd,'title':_0x3f29ed||_0x19c1bf}};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f32ff['commandName']){const _0x5cbd2e=_0x2f32ff['commandParams'][0x0]['value'];if(_0x5cbd2e){const _0x2980a9=_0x757e03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x288460=>_0x288460['model']==_0x5cbd2e);let _0x7d3455=_0x5cbd2e,_0x74669a='';return _0x2980a9&&(_0x7d3455=_0x2980a9['label'],_0x74669a=_0xeabbbd(_0x7d3455)['toLowerCase']()),{'type':'format','content':o(_0x527be7,'*Set\x20font\x20background\x20color:*\x20%0',_0x74669a)['trim'](),'color':{'value':_0x5cbd2e,'title':_0x74669a||_0x7d3455}};}return{'type':'format','content':o(_0x527be7,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x409965{['afterInit'](){const _0x228073=this['editor'],_0x5d33c1=_0x228073['plugins']['get']('TrackChangesEditing'),_0x40e11c=_0x228073['commands']['get']('copyFormat'),_0x310fd7=_0x228073['commands']['get']('pasteFormat');_0x40e11c&&_0x310fd7&&(_0x5d33c1['enableDefaultAttributesIntegration']('pasteFormat'),_0x5d33c1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4336d5=this['editor'],_0x16a31e=_0x4336d5['locale'];_0x4336d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28d042=>{if('formatBlock'!=_0x28d042['type']&&'formatInline'!=_0x28d042['type'])return;const {data:_0x138224}=_0x28d042;if(_0x138224&&'pasteFormat'===_0x138224['commandName']){const _0x19e9df=[],_0x1ac7fb=_0x138224['commandParams'][0x0];for(const [_0x219d86,_0x526558]of Object['entries'](_0x1ac7fb))_0x19e9df['push'](so(_0x4336d5,_0x219d86,_0x526558));return _0x19e9df['length']?{'type':'format','content':o(_0x16a31e,'*Set\x20format\x20to:*\x20%0',_0x19e9df['join'](',\x20'))}:{'type':'format','content':o(_0x16a31e,'*Remove\x20all\x20formatting*')};}});}}function so(_0xe048eb,_0x3cbbcf,_0x4e0d06){const _0x4309ef=_0xe048eb['locale']['t'],_0x3d5a46=_0x3cbbcf['split'](/(?=[A-Z])/)['join']('\x20'),_0xb4f73d=_0x4309ef(_0x3d5a46['charAt'](0x0)['toUpperCase']()+_0x3d5a46['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e0d06)return _0xb4f73d;if('fontColor'===_0x3cbbcf||'fontBackgroundColor'===_0x3cbbcf){const _0x198e9f=_0x757e03(_0xe048eb['config']['get']('fontColor.colors'))['find'](_0x29878e=>_0x29878e['model']==_0x4e0d06);return _0xb4f73d+'\x20('+(_0x198e9f?_0x4309ef(_0x198e9f['label'])['toLowerCase']():_0x4e0d06)+')';}if('fontSize'===_0x3cbbcf&&isNaN(parseFloat(_0x4e0d06))){const _0x133736=_0xe048eb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xe048eb['config']['get']('fontSize.options'))['find'](_0x528c10=>_0x528c10['model']==_0x4e0d06);return _0xb4f73d+'\x20('+(_0x133736?_0x4309ef(_0x133736['title'])['toLowerCase']():_0x4e0d06)+')';}return _0xb4f73d+'\x20('+_0x4e0d06+')';}class tt extends _0x409965{['_headingOptions'];['afterInit'](){const _0x3f60c6=this['editor'];if(!_0x3f60c6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f60c6['config']['get']('heading.options');const _0x1cfe68=_0x3f60c6['locale'],_0x47bd3a=_0x3f60c6['plugins']['get']('TrackChangesEditing');_0x47bd3a['enableDefaultAttributesIntegration']('heading');for(const _0x1c315c of this['_headingOptions'])'paragraph'!=_0x1c315c['model']&&_0x47bd3a['descriptionFactory']['registerElementLabel'](_0x1c315c['model'],_0xcedbd=>{const _0x4c830c=this['_getHeadingLevel'](_0x1c315c['model']);return null!==_0x4c830c?_0x186204(_0xcedbd,_0x4c830c):_0x504bf2(_0xcedbd,_0x1c315c['title']);});function _0x186204(_0x4e3a4f,_0xc23351){return o(_0x1cfe68,'ELEMENT_HEADING',[_0x4e3a4f,_0xc23351]);}function _0x504bf2(_0x1685d8,_0x2309ff){return o(_0x1cfe68,'ELEMENT_HEADING_CUSTOM',[_0x1685d8,_0x2309ff]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2c07=this['editor'],_0x48cf01=_0x2c2c07['locale'];function _0x3389a0(_0x5783d6,_0x13a2c9){return o(_0x48cf01,'ELEMENT_HEADING_CUSTOM',[_0x5783d6,_0x13a2c9]);}_0x2c2c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5306e1=>{if('formatBlock'!=_0x5306e1['type'])return;const {data:_0x3deb06}=_0x5306e1;if(_0x3deb06&&'heading'==_0x3deb06['commandName']){const _0x501a4e=_0x3deb06['commandParams'][0x0]['value'],_0x1fa265=this['_getHeadingLevel'](_0x501a4e);if(null!==_0x1fa265)return{'type':'format','content':o(_0x48cf01,'*Change\x20to:*\x20%0',(_0x42cace=0x1,_0x5f23ed=_0x1fa265,o(_0x48cf01,'ELEMENT_HEADING',[_0x42cace,_0x5f23ed])))};const _0x55e4d1=this['_headingOptions']['find'](_0xd1b9e9=>_0xd1b9e9['model']===_0x501a4e)['title'];return{'type':'format','content':o(_0x48cf01,'*Change\x20to:*\x20%0',_0x3389a0(0x1,_0x55e4d1))};}var _0x42cace,_0x5f23ed;});}['_getHeadingLevel'](_0xdfae0f){const _0x38eef7=_0xdfae0f['match'](/^heading(\d+)/);if(_0x38eef7)return _0x38eef7[0x1];const _0x4bd1ad=this['_headingOptions']?.['find'](_0x3f959b=>_0x3f959b['model']==_0xdfae0f);if(_0x4bd1ad&&_0x4bd1ad['view']){const _0x3294bd=_0x4bd1ad['view'],_0x1fbb10=(_0x3294bd['name']??_0x3294bd)['match'](/^h(\d+)/);if(_0x1fbb10)return _0x1fbb10[0x1];}return null;}}class et extends _0x409965{['afterInit'](){const _0x8bd2c0=this['editor'];if(!_0x8bd2c0['plugins']['has']('HighlightEditing'))return;const _0x4396d6=_0x8bd2c0['plugins']['get']('TrackChangesEditing'),_0x90fd1d=_0x8bd2c0['locale'];_0x4396d6['enableDefaultAttributesIntegration']('highlight'),_0x4396d6['registerInlineAttribute']('highlight'),_0x4396d6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x90fd1d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d385a=this['editor'],_0x4c8254=_0x5d385a['locale'];_0x5d385a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1dd5=>{if('formatInline'!=_0x3b1dd5['type'])return;const {data:_0x5aeeeb}=_0x3b1dd5;if(_0x5aeeeb&&'highlight'==_0x5aeeeb['commandName']){const _0x5b63fb=_0x4c8254['t'],_0x177504=_0x5aeeeb['commandParams'][0x0]['value'];if(_0x177504){const _0x5ee5a5=_0x5d385a['config']['get']('highlight.options')['find'](_0xc0194c=>_0xc0194c['model']==_0x177504),_0x414775=_0x5b63fb(_0x5ee5a5['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c8254,'*Set\x20highlight:*\x20%0',_0x414775),'color':{'value':_0x5ee5a5['color'],'title':_0x5ee5a5['title']}};}return{'type':'format','content':o(_0x4c8254,'*Remove\x20highlight*',o(_0x4c8254,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x409965{['afterInit'](){const _0x42bd53=this['editor'];if(!_0x42bd53['plugins']['has']('HorizontalLineEditing'))return;_0x42bd53['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x163134=_0x42bd53['plugins']['get']('TrackChangesEditing'),_0x4ee655=_0x42bd53['locale'];_0x163134['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d9e92=>o(_0x4ee655,'ELEMENT_HORIZONTAL_LINE',_0x2d9e92)),_0x42bd53['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b7894,{writer:_0x3b0b31,options:_0x286b25})=>{if(!_0x286b25['showSuggestionHighlights'])return null;const _0x1db7ba=_0x3b0b31['createContainerElement']('div'),_0x4f1ee8=_0x3b0b31['createEmptyElement']('hr');return _0x3b0b31['addClass']('ck-horizontal-line',_0x1db7ba),_0x3b0b31['insert'](_0x3b0b31['createPositionAt'](_0x1db7ba,0x0),_0x4f1ee8),_0x1db7ba;},'converterPriority':'high'});}}class st extends _0x409965{['afterInit'](){const _0x1e5dd4=this['editor'];if(!_0x1e5dd4['plugins']['has']('HtmlEmbed'))return;const _0x5d8356=_0x1e5dd4['plugins']['get']('TrackChangesEditing'),_0xabde66=_0x1e5dd4['locale'];_0x5d8356['descriptionFactory']['registerElementLabel']('rawHtml',_0x5f5a97=>o(_0xabde66,'ELEMENT_HTML_EMBED',_0x5f5a97)),_0x5d8356['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d8356['registerBlockAttribute']('value'),_0x5d8356['descriptionFactory']['registerDescriptionCallback'](_0x53e5f2=>{if('attribute'!=_0x53e5f2['type'])return;const {data:_0x2146a2}=_0x53e5f2;if(_0x2146a2&&'value'==_0x2146a2['key']&&_0x53e5f2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f2d5f=o(_0xabde66,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xabde66,'*Change\x20%0\x20content*',_0x4f2d5f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c2f04=this['editor'],_0x53ef07=_0x5c2f04['locale'];_0x5c2f04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3373ce=>{if('formatBlock'!=_0x3373ce['type'])return;const {data:_0x445093}=_0x3373ce;if(_0x445093&&'htmlEmbed'==_0x445093['commandName']){const _0x167139=o(_0x53ef07,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53ef07,'*Change\x20%0\x20content*',_0x167139)};}});}}class nt extends _0x409965{['afterInit'](){const _0x1e2459=this['editor'];if(!_0x1e2459['plugins']['has']('ImageEditing'))return;const _0x393e51=_0x1e2459['plugins']['get']('TrackChangesEditing'),_0x2008c0=_0x1e2459['plugins']['get']('ImageUtils'),_0xe3c458=_0x1e2459['locale'];_0x393e51['enableCommand']('insertImage'),_0x393e51['descriptionFactory']['registerElementLabel']('imageBlock',_0x54ff89=>o(_0xe3c458,'ELEMENT_IMAGE',_0x54ff89)),_0x393e51['descriptionFactory']['registerElementLabel']('imageInline',_0xa613c9=>o(_0xe3c458,'ELEMENT_INLINE_IMAGE',_0xa613c9)),_0x393e51['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe3c458,'ELEMENT_CAPTION')),_0x1e2459['plugins']['has']('ImageUploadEditing')&&_0x393e51['enableCommand']('uploadImage'),_0x1e2459['plugins']['has']('ImageBlockEditing')&&_0x1e2459['plugins']['has']('ImageInlineEditing')&&(_0x393e51['enableCommand']('imageTypeInline',(_0x2ec814,_0x56eec5)=>{const _0x42a16c=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']);_0x1e2459['model']['change'](()=>{_0x393e51['markBlockFormat'](_0x42a16c,{'commandName':'imageTypeInline','commandParams':[_0x56eec5]},[],'convertBlockImageToInline');});}),_0x393e51['enableCommand']('imageTypeBlock',(_0x498669,_0x384efb)=>{_0x1e2459['model']['change'](_0x4eeb36=>{let _0x3636d7=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x39e3de=_0x4eeb36['createRangeOn'](_0x3636d7);const _0x3ca86e=_0x3b38bf['fromPosition'](_0x39e3de['start'],'toPrevious'),_0x3f5a9f=_0x3b38bf['fromPosition'](_0x39e3de['end'],'toNext');_0x393e51['forceDefaultExecution'](()=>_0x498669(_0x384efb)),_0x3636d7=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x39e3de=_0x4eeb36['createRangeOn'](_0x3636d7);const _0x4ddad6=_0x4eeb36['createRange'](_0x3ca86e,_0x3f5a9f);_0x3ca86e['detach'](),_0x3f5a9f['detach'](),_0x393e51['markBlockFormat'](_0x3636d7,{'commandName':'imageTypeInline','commandParams':[_0x384efb]},[],'convertInlineImageToBlock'),_0x4ddad6['start']['isBefore'](_0x39e3de['start'])&&_0x393e51['markInsertion'](_0x4eeb36['createRange'](_0x4ddad6['start'],_0x39e3de['start']),'convertInlineImageToBlock'),_0x39e3de['end']['isBefore'](_0x4ddad6['end'])&&_0x393e51['markInsertion'](_0x4eeb36['createRange'](_0x39e3de['end'],_0x4ddad6['end']),'convertInlineImageToBlock');});}),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x393e51['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x393085])=>{const _0x17fc9c=_0x393e51['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x342fd7=_0x393085['start'],_0x308308=_0x393085['end'];const _0x4139f6=_0x1e2459['model']['schema']['getNearestSelectionRange'](_0x342fd7,'backward'),_0x57e8ff=_0x1e2459['model']['schema']['getNearestSelectionRange'](_0x308308,'forward');_0x4139f6['isCollapsed']&&(_0x342fd7=_0x4139f6['start']),_0x57e8ff['isCollapsed']&&(_0x308308=_0x57e8ff['end']),_0x17fc9c([_0x1e2459['model']['createRange'](_0x342fd7,_0x308308)]);}),_0x393e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a8ab1),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a8ab1)),_0x1e2459['plugins']['has']('ImageCaptionEditing')&&(_0x393e51['enableCommand']('toggleImageCaption',(_0x512833,_0x2f566a)=>{const _0x5356e4=_0x1e2459['plugins']['get']('ImageCaptionUtils');let _0x700898=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x280260=_0x5356e4['getCaptionFromImageModelElement'](_0x700898);_0x1e2459['model']['change'](()=>{if(_0x280260)return void _0x393e51['markDeletion'](_0x1e2459['model']['createRangeOn'](_0x280260));const _0x245651=_0x2008c0['isBlockImage'](_0x700898);_0x512833(_0x2f566a),_0x700898=_0x2008c0['getClosestSelectedImageElement'](_0x1e2459['model']['document']['selection']),_0x280260=_0x5356e4['getCaptionFromImageModelElement'](_0x700898),_0x393e51['markInsertion'](_0x1e2459['model']['createRangeOn'](_0x280260),_0x245651?null:'imageCaption');});}),_0x393e51['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a8ab1));const _0x171434=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3bce04(_0x479b07,_0x51021e){const _0xaac02b=_0x171434['findIndex'](({type:_0x4c828e,subType:_0xc4c84b})=>_0x479b07['type']==_0x4c828e&&_0x479b07['subType']==_0xc4c84b),_0x2aa35b=_0x171434['findIndex'](({type:_0x32259b,subType:_0x30f99e})=>_0x51021e['type']==_0x32259b&&_0x51021e['subType']==_0x30f99e);if(_0xaac02b<0x0||_0x2aa35b<0x0)return!0x1;const _0x48d0bd=_0x479b07['getFirstRange'](),_0x128874=_0x51021e['getFirstRange']();if((0x0==_0xaac02b||0x1==_0xaac02b)&&0x2==_0x2aa35b&&_0x48d0bd['isIntersecting'](_0x128874))return!0x0;if(0x2==_0xaac02b&&0x3==_0x2aa35b){const _0x3672c2=_0x393e51['_findSuggestions'](_0x48d0bd,'insertion')['filter'](({suggestion:_0x3281ef,meta:_0xd4fdcb})=>_0xd4fdcb['isOwn']&&'convertInlineImageToBlock'==_0x3281ef['subType']);if(_0x3672c2['length']>0x1&&_0x128874['end']['isEqual'](_0x48d0bd['start']))return!0x0;if(0x1==_0x3672c2['length']&&(_0x48d0bd['start']['isEqual'](_0x128874['end'])||_0x48d0bd['end']['isEqual'](_0x128874['start'])))return!0x0;}if(0x3==_0xaac02b&&0x3==_0x2aa35b&&_0x48d0bd['start']['isBefore'](_0x128874['start'])){const _0x20c2ab=_0x48d0bd['end']['nodeAfter'],_0x4eef54=_0x128874['start']['nodeBefore'];return _0x2008c0['isBlockImage'](_0x20c2ab)&&_0x20c2ab===_0x4eef54;}return!0x1;}function _0x3a8ab1(_0x41eeb5,_0x5c5332){return _0x3bce04(_0x41eeb5,_0x5c5332)?[_0x41eeb5,_0x5c5332]:_0x3bce04(_0x5c5332,_0x41eeb5)?[_0x5c5332,_0x41eeb5]:null;}_0x1e2459['plugins']['has']('ImageResize')&&(_0x393e51['enableDefaultAttributesIntegration']('resizeImage'),_0x393e51['registerBlockAttribute']('resizedWidth'),_0x393e51['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe3c458,'FORMAT_IMAGE_SIZE'))),_0x1e2459['plugins']['has']('ImageTextAlternativeEditing')&&(_0x393e51['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x393e51['registerBlockAttribute']('alt')),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x395a36=>{if(!!_0x171434['find'](({type:_0x50c72f,subType:_0x2c540d})=>_0x395a36['type']==_0x50c72f&&_0x395a36['subType']==_0x2c540d))return _0x395a36['previous']?{}:void 0x0;}),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x111e0b=>{if('insertion'==_0x111e0b['type']||'deletion'==_0x111e0b['type']){const _0x572cdc=_0x111e0b['getContainedElement']();if(_0x572cdc&&_0x572cdc['is']('element','caption'))return{'type':'insertion'==_0x111e0b['type']?'addObject':'removeObject','element':_0x572cdc,'quantity':0x1};}}),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x4c4bf2=>'formatBlock'==_0x4c4bf2['type']&&'convertInlineImageToBlock'==_0x4c4bf2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c4bf2['type']&&'convertBlockImageToInline'==_0x4c4bf2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x393e51['descriptionFactory']['registerDescriptionCallback'](_0x270177=>{if('attribute'!=_0x270177['type'])return;const {data:_0x5f4a47}=_0x270177;if(!_0x5f4a47||'alt'!=_0x5f4a47['key'])return;const _0xf7c14=_0x5f4a47['newValue'];return _0xf7c14?{'type':'format','content':o(_0xe3c458,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf7c14+'\x22')}:{'type':'format','content':o(_0xe3c458,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd0a9=this['editor'],_0xd16b59=_0x1cd0a9['locale'];_0x1cd0a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458c95=>{if('formatBlock'!=_0x458c95['type']&&'formatInline'!=_0x458c95['type'])return;const {data:_0x4b018f}=_0x458c95;if(_0x4b018f){if('imageTextAlternative'==_0x4b018f['commandName']){const _0x275d4e=_0x4b018f['commandParams'][0x0]['newValue'];return _0x275d4e?{'type':'format','content':o(_0xd16b59,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x275d4e+'\x22')}:{'type':'format','content':o(_0xd16b59,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b018f['commandName']){const _0x3d45cb=_0x4b018f['commandParams'][0x0]['width'];return _0x3d45cb?{'type':'format','content':o(_0xd16b59,'*Set\x20image\x20width:*\x20%0',_0x3d45cb)}:{'type':'format','content':o(_0xd16b59,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bab68=this['editor']['locale'],_0x1de969=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de969['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1de969['registerBlockAttribute']('src'),_0x1de969['descriptionFactory']['registerDescriptionCallback'](_0x3ea9cb=>{if('attribute'!=_0x3ea9cb['type'])return;const {data:_0x3ca450}=_0x3ea9cb;return _0x3ca450&&'src'==_0x3ca450['key']?_0x3ca450['newValue']&&_0x3ca450['oldValue']?{'type':'format','content':o(_0x3bab68,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d9d65=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d9d65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d9d65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d9d65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d9d65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7218=this['editor'],_0x361ca7=_0x2d7218['locale'];_0x2d7218['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d68a4=>{if('formatBlock'!=_0x4d68a4['type']&&'formatInline'!=_0x4d68a4['type'])return;const {data:_0x4d9592}=_0x4d68a4;if(!_0x4d9592||'replaceImageSource'!=_0x4d9592['commandName'])return;return{'type':'format','content':o(_0x361ca7,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x409965{['afterInit'](){const _0x3bacb3=this['editor'];if(!_0x3bacb3['plugins']['has']('ImageStyleEditing'))return;const _0x16551c=_0x3bacb3['plugins']['get']('TrackChangesEditing'),_0x417d1b=_0x3bacb3['plugins']['get']('ImageUtils'),_0x2bfae9={};_0x16551c['enableCommand']('imageStyle',(_0x2932d0,_0x32330c)=>{const _0x3851ef=_0x3bacb3['plugins']['get']('Users')['me'],_0x30d6ef=_0x3bacb3['commands']['get']('imageStyle');let _0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),_0x49d346=_0x3bacb3['model']['createRangeOn'](_0x54c640),_0x12f9bd=_0x30d6ef['value'];if(_0x12f9bd==_0x32330c['value'])return;const _0x4595de={'commandName':'imageStyle','commandParams':[_0x32330c],'formatGroupId':_0x413213()};_0x3bacb3['model']['change'](()=>{if(_0x16551c['getSuggestions']()['filter'](_0x2bb863=>_0x2bb863['isInContent']&&_0x3851ef==_0x2bb863['author']&&('formatBlock'==_0x2bb863['type']||'formatInline'==_0x2bb863['type'])&&('imageStylePreApply'==_0x2bb863['subType']||'imageStylePostApply'==_0x2bb863['subType'])&&_0x2bb863['getFirstRange']()['isEqual'](_0x49d346))['forEach'](_0x2bda5f=>_0x16551c['discardSuggestion'](_0x2bda5f['head'])),_0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),_0x49d346=_0x3bacb3['model']['createRangeOn'](_0x54c640),_0x30d6ef['refresh'](),_0x3bacb3['commands']['get']('imageTypeInline')['refresh'](),_0x3bacb3['commands']['get']('imageTypeBlock')['refresh'](),_0x12f9bd=_0x30d6ef['value'],_0x12f9bd!=_0x32330c['value'])return _0x417d1b['isInlineImage'](_0x54c640)&&_0x30d6ef['shouldConvertImageType'](_0x32330c['value'],_0x54c640)?(_0x2932d0({..._0x32330c,'setImageSizes':!0x1}),_0x54c640=_0x417d1b['getClosestSelectedImageElement'](_0x3bacb3['model']['document']['selection']),void _0x16551c['markBlockFormat'](_0x54c640,{..._0x4595de,'commandReversedParams':[{'value':_0x12f9bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x417d1b['isBlockImage'](_0x54c640)?_0x16551c['markBlockFormat'](_0x54c640,_0x4595de,[],'imageStylePostApply'):_0x16551c['markInlineFormat'](_0x49d346,_0x4595de,'imageStylePostApply'));});});for(const _0x24b8e7 of _0x3bacb3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2bfae9[_0x24b8e7['name']]=_0x24b8e7['title']['toLowerCase']();_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b2616])=>{_0x417d1b['setImageNaturalSizeAttributes'](_0x4b2616['getContainedElement']());}),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25484f,_0x99bff)=>{_0x16551c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25484f,{'commandName':_0x99bff['commandName'],'commandParams':_0x99bff['commandReversedParams']});}),_0x16551c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f6866,_0x52f5e7){if(_0x519599(_0x1f6866,_0x52f5e7))return[_0x1f6866,_0x52f5e7];if(_0x519599(_0x52f5e7,_0x1f6866))return[_0x52f5e7,_0x1f6866];return null;});const _0x51f0bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x519599(_0x239c16,_0x447f4f){const _0x13e69b=_0x51f0bd['findIndex'](({type:_0x5ad5db,subType:_0x48e653})=>_0x239c16['type']==_0x5ad5db&&_0x239c16['subType']==_0x48e653),_0x1bc9fc=_0x51f0bd['findIndex'](({type:_0x263c4d,subType:_0x14f307})=>_0x447f4f['type']==_0x263c4d&&_0x447f4f['subType']==_0x14f307);if(_0x13e69b<0x0||_0x1bc9fc<0x0)return!0x1;const _0x162aa3=_0x239c16['getFirstRange'](),_0x45ec17=_0x447f4f['getFirstRange']();if((0x0==_0x13e69b||0x1==_0x13e69b)&&0x2==_0x1bc9fc&&_0x162aa3['isIntersecting'](_0x45ec17))return!0x0;if(0x2==_0x13e69b&&0x3==_0x1bc9fc){const _0x4db573=_0x16551c['_findSuggestions'](_0x162aa3,'insertion')['filter'](({suggestion:_0x1fc64f,meta:_0x400100})=>_0x400100['isOwn']&&'convertInlineImageToBlock'==_0x1fc64f['subType']);if(_0x4db573['length']>0x1&&_0x45ec17['end']['isEqual'](_0x162aa3['start']))return!0x0;if(0x1==_0x4db573['length']&&(_0x162aa3['start']['isEqual'](_0x45ec17['end'])||_0x162aa3['end']['isEqual'](_0x45ec17['start'])))return!0x0;}if(0x3==_0x13e69b&&0x3==_0x1bc9fc&&_0x162aa3['start']['isBefore'](_0x45ec17['start'])){const _0x1a54d0=_0x162aa3['end']['nodeAfter'],_0x5d4242=_0x45ec17['start']['nodeBefore'];return _0x417d1b['isBlockImage'](_0x1a54d0)&&_0x1a54d0===_0x5d4242;}return!0x1;}_0x3bacb3['model']['document']['registerPostFixer'](()=>{let _0x522e7a=!0x1;const _0x43f26d=Array['from'](_0x3bacb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e6466,data:_0x5f0829}of _0x43f26d){const {group:_0x33b0a3,type:_0x52ad5a,subType:_0x3199ea,id:_0x59a4a9}=_0x16551c['_splitMarkerName'](_0x2e6466);if('suggestion'==_0x33b0a3&&_0x16551c['hasSuggestion'](_0x59a4a9)){if('formatBlock'==_0x52ad5a&&('imageStylePreApply'==_0x3199ea||'imageStylePostApply'==_0x3199ea)){const _0x155cbf=_0x16551c['getSuggestion'](_0x59a4a9);if(_0x5f0829['newRange']){const _0x5b5668=_0x155cbf['getFirstRange']()['getContainedElement']();if(_0x417d1b['isBlockImage'](_0x5b5668))continue;_0x16551c['discardSuggestion'](_0x155cbf),_0x522e7a=!0x0;}}if('insertion'==_0x52ad5a&&'imageCaption'==_0x3199ea&&!_0x5f0829['newRange']){const _0x3e4189=_0x16551c['getSuggestion'](_0x59a4a9);_0x3e4189['next']&&_0x3e4189['next']['isInContent']&&(_0x16551c['discardSuggestion'](_0x3e4189['next']),_0x522e7a=!0x0);}}}return _0x522e7a;}),this['_registerLegacyDescription'](_0x2bfae9);}['_registerLegacyDescription'](_0x52f9c9){const _0x259ade=this['editor'],_0x8bd63a=_0x259ade['locale'];_0x259ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d6452=>{if('formatBlock'!=_0x3d6452['type']&&'formatInline'!=_0x3d6452['type'])return;const {data:_0x10d1a7}=_0x3d6452;if(!_0x10d1a7||'imageStyle'!=_0x10d1a7['commandName'])return;const _0x33963a=_0x10d1a7['commandParams'][0x0]['value'];return _0x3bd00b('side'===_0x33963a?o(_0x8bd63a,'FORMAT_SIDE_IMAGE'):_0x52f9c9[_0x33963a]||_0x33963a);function _0x3bd00b(_0x5df2ab){return{'type':'format','content':o(_0x8bd63a,'*Format:*\x20%0',_0x5df2ab)};}});}}class at extends _0x409965{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e17ea){super(_0x1e17ea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x918e06=this['editor'],_0x5b924f=_0x918e06['commands']['get']('importWord'),_0x192656=_0x918e06['commands']['get']('trackChanges');_0x5b924f&&(_0x5b924f['on']('execute',(_0x53ed10,[,_0x4d5db1])=>{this['_trackChangesValueDuringImport']=_0x192656['value'],_0x4d5db1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b924f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b924f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x192656['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x918e06['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5e0c88,_0x254325){const {suggestions:_0x4bbc77}=_0x254325,_0x5173c3=this['editor']['commands']['get']('trackChanges'),_0x5daae5=_0x5173c3['value'];this['_trackChangesValueDuringImport']!==_0x5daae5&&(_0x5173c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bbc77&&_0x4bbc77['forEach'](({id:_0x1f4be3,type:_0x3803b7,author:_0x172798,created_at:_0x234252})=>{const _0xf23a86={'id':_0x1f4be3,'type':_0x3803b7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x172798,'createdAt':_0x234252?new Date(_0x234252):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf23a86);});}}class ct extends _0x409965{['afterInit'](){const _0x258703=this['editor'],_0xa0dd4c=_0x258703['plugins']['get']('TrackChangesEditing');if(_0x258703['plugins']['has']('IndentEditing')&&(_0xa0dd4c['enableCommand']('indent'),_0xa0dd4c['enableCommand']('outdent')),_0x258703['plugins']['has']('IndentBlock')){for(const _0xfbdd20 of['indentBlock','outdentBlock'])_0xa0dd4c['enableDefaultAttributesIntegration'](_0xfbdd20);}const _0x2e6c24=_0x258703['locale'];_0xa0dd4c['registerBlockAttribute']('blockIndent'),_0xa0dd4c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2e6c24,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50920d=this['editor'],_0x37ca48=_0x50920d['locale'],_0x56295f=_0x50920d['plugins']['get']('TrackChangesEditing');_0x56295f['descriptionFactory']['registerDescriptionCallback'](_0x4d8b57=>{if('formatBlock'!=_0x4d8b57['type'])return;const {data:_0x1ba012}=_0x4d8b57;if(!_0x1ba012)return;if('indentBlock'!=_0x1ba012['commandName']&&'outdentBlock'!=_0x1ba012['commandName'])return;const _0x42d81f=_0x4d8b57['getItems']()[0x0],_0x39c97b=_0x56295f['descriptionFactory']['getItemLabel'](_0x42d81f);return'indentBlock'==_0x1ba012['commandName']?{'type':'format','content':o(_0x37ca48,'*Indent:*\x20%0',_0x39c97b)}:'outdentBlock'==_0x1ba012['commandName']?{'type':'format','content':o(_0x37ca48,'*Outdent:*\x20%0',_0x39c97b)}:void 0x0;});}}class ut extends _0x409965{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x409965{['afterInit'](){const _0x26e43f=this['editor'];if(!_0x26e43f['plugins']['has']('LinkEditing'))return;const _0x2c7f19=_0x26e43f['plugins']['get']('TrackChangesEditing'),_0x44ca03=_0x26e43f['commands']['get']('link');_0x2c7f19['enableDefaultAttributesIntegration']('link'),_0x2c7f19['enableDefaultAttributesIntegration']('unlink'),_0x2c7f19['registerInlineAttribute']('linkHref');for(const _0x4c134d of _0x44ca03['manualDecorators'])_0x2c7f19['registerInlineAttribute'](_0x4c134d['id']),_0x2c7f19['descriptionFactory']['registerAttributeLabel'](_0x4c134d['id'],'link\x20('+_0x4c134d['label']['toLowerCase']()+')');_0x2c7f19['descriptionFactory']['registerDescriptionCallback'](_0x22378f=>{if('attribute'!=_0x22378f['type'])return;const {data:_0xd87ae}=_0x22378f;if(!_0xd87ae||'linkHref'!=_0xd87ae['key'])return;const _0x570853=_0xd87ae['newValue'],_0x4c2eaa=_0x26e43f['locale'];return{'type':'format','content':null==_0x570853?o(_0x4c2eaa,'*Remove\x20link*'):o(_0x4c2eaa,'*Set\x20link:*\x20%0','\x22'+_0x570853+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e13de=this['editor'],_0x3fb7bd=_0x4e13de['locale'];_0x4e13de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ff94=>{if('formatInline'!=_0x17ff94['type'])return;const {data:_0x117529}=_0x17ff94;if(_0x117529){if('link'==_0x117529['commandName']){const _0x4c8f57=_0x117529['commandParams'][0x0];return{'type':'format','content':o(_0x3fb7bd,'*Set\x20link:*\x20%0','\x22'+_0x4c8f57+'\x22')};}return'unlink'==_0x117529['commandName']?{'type':'format','content':o(_0x3fb7bd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x409965{['afterInit'](){const _0x52e5e2=this['editor'],_0x3eaa04=_0x52e5e2['locale'];if(!_0x52e5e2['plugins']['has']('LegacyListEditing'))return;const _0x3c64fe=_0x52e5e2['plugins']['get']('TrackChangesEditing'),_0x5a8679=_0x52e5e2['plugins']['has']('LegacyTodoListEditing');function _0x53c76f(_0xe811c0){return()=>{const _0x1e012a=_0x52e5e2['model']['document']['selection'],_0x54dc28=_0x52e5e2['commands']['get'](_0xe811c0);if(_0x54dc28['value'])return void _0x52e5e2['execute']('paragraph',{});const _0x211273=_0xe811c0['slice'](0x0,-0x4),_0x1b0202=function(_0x376b06,_0x234d2c,_0x20d9ae){let _0x34d64c=Array['from'](_0x376b06)['filter'](_0x2892b8=>function(_0x275ffe,_0x41bbae){return _0x41bbae['checkChild'](_0x275ffe['parent'],'listItem')&&!_0x41bbae['isObject'](_0x275ffe);}(_0x2892b8,_0x20d9ae));_0x34d64c=_0x34d64c['filter'](_0x50b3b7=>!_0x50b3b7['is']('element','listItem')||_0x50b3b7['getAttribute']('listType')!=_0x234d2c);const _0x51f359=new Set();for(const _0xf60399 of _0x34d64c)_0xf60399['is']('element','listItem')?_0x51f359['add'](fe(_0xf60399)):_0x51f359['add'](_0xf60399);return Array['from'](_0x51f359);}(_0x1e012a['getSelectedBlocks'](),_0x211273,_0x52e5e2['model']['schema']);_0x52e5e2['model']['change'](()=>{for(const _0x42856a of _0x1b0202)_0x3c64fe['markBlockFormat'](_0x42856a,{'commandName':_0xe811c0,'commandParams':[{'forceValue':!_0x54dc28['value']}],'formatGroupId':'blockName'},ue(_0x42856a));});};}function _0x4f8ff6(_0x1db71e){return()=>{const _0x3edf5b=function(_0x2d7b53){let _0x19b81f=Array['from'](_0x2d7b53);const _0x54459b=_0x19b81f['findIndex'](_0x953dbc=>'listItem'!=_0x953dbc['name']);return _0x54459b>-0x1&&(_0x19b81f=_0x19b81f['slice'](0x0,_0x54459b)),_0x19b81f;}(_0x52e5e2['model']['document']['selection']['getSelectedBlocks']()),_0x108a27=_0x52e5e2['model']['createRange'](_0x52e5e2['model']['createPositionAt'](_0x3edf5b[0x0],'before'),_0x52e5e2['model']['createPositionAt'](_0x3edf5b[_0x3edf5b['length']-0x1],'end'));_0x52e5e2['model']['change'](()=>{_0x3c64fe['markBlockFormat'](_0x108a27,{'commandName':_0x1db71e,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd111f4){const _0x4a29c5=new Set();for(const _0x38ee2f of _0xd111f4){let _0x29b343=_0x38ee2f['nextSibling'];for(;_0x29b343&&_0x29b343['getAttribute']('listIndent')>_0x38ee2f['getAttribute']('listIndent');)_0x4a29c5['add'](_0x29b343),_0x29b343=_0x29b343['nextSibling'];}return Array['from'](_0x4a29c5);}(_0x3edf5b));});};}_0x3c64fe['enableCommand']('numberedList',_0x53c76f('numberedList')),_0x3c64fe['enableCommand']('bulletedList',_0x53c76f('bulletedList')),_0x5a8679&&_0x3c64fe['enableCommand']('todoList',_0x53c76f('todoList')),_0x3c64fe['enableCommand']('indentList',_0x4f8ff6('indentList')),_0x3c64fe['enableCommand']('outdentList',_0x4f8ff6('outdentList')),_0x5a8679&&_0x3c64fe['enableCommand']('checkTodoList',()=>{const _0x1e928d=_0x52e5e2['commands']['get']('checkTodoList'),_0x20b0b9=Array['from'](_0x1e928d['_selectedElements']);_0x20b0b9['filter'](_0x5cec21=>_0x5cec21['getAttribute']('todoListChecked')!=_0x1e928d['value']),_0x52e5e2['model']['change'](()=>{for(const _0x247502 of _0x20b0b9)_0x3c64fe['markBlockFormat'](_0x247502,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e928d['value']}]});});}),_0x3c64fe['descriptionFactory']['registerElementLabel']('listItem',_0x336ed3=>o(_0x3eaa04,'ELEMENT_LIST_ITEM',_0x336ed3)),_0x3c64fe['descriptionFactory']['registerDescriptionCallback'](_0x17e91e=>{if('formatBlock'!=_0x17e91e['type']&&'formatInline'!=_0x17e91e['type'])return;const {data:_0x5324e7}=_0x17e91e;if(_0x5324e7){if('numberedList'==_0x5324e7['commandName']||'bulletedList'==_0x5324e7['commandName']||'todoList'==_0x5324e7['commandName'])switch(_0x5324e7['commandName']['replace']('List','')){case'bulleted':return _0x561712(o(_0x3eaa04,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x561712(o(_0x3eaa04,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x561712(o(_0x3eaa04,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5324e7['commandName'])return{'type':'format','content':o(_0x3eaa04,'*Indent:*\x20%0',o(_0x3eaa04,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5324e7['commandName'])return{'type':'format','content':o(_0x3eaa04,'*Outdent:*\x20%0',o(_0x3eaa04,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5324e7['commandName'])return _0x5324e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eaa04,'*Check\x20item*')}:{'type':'format','content':o(_0x3eaa04,'*Uncheck\x20item*')};}function _0x561712(_0x407b4c){return{'type':'format','content':o(_0x3eaa04,'*Change\x20to:*\x20%0',_0x407b4c)};}});}}function fe(_0x39d942){const _0x8db569=_0x39d942['getAttribute']('listIndent');if(0x0==_0x8db569)return _0x39d942;let _0x50d74a=_0x39d942;for(;_0x39d942['previousSibling']&&_0x39d942['previousSibling']['is']('element','listItem');){const _0xe0666d=_0x39d942['previousSibling']['getAttribute']('listIndent');if(_0xe0666d==_0x8db569)_0x50d74a=_0x39d942['previousSibling'];else{if(_0xe0666d<_0x8db569)break;}_0x39d942=_0x39d942['previousSibling'];}return _0x50d74a;}function ue(_0xe7bd80){const _0xa32fbb=[];if(_0xe7bd80['is']('element','listItem')&&_0xe7bd80['getAttribute']('listIndent')>0x0){let _0x23046a=_0xe7bd80['nextSibling'];for(;_0x23046a&&'listItem'==_0x23046a['name']&&_0x23046a['getAttribute']('listIndent')==_0xe7bd80['getAttribute']('listIndent');)_0xa32fbb['push'](_0x23046a),_0x23046a=_0x23046a['nextSibling'];}return _0xa32fbb;}class W extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x51a2a1=this['editor']['config']['get']('list.properties'),_0x2424b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x51a2a1['styles']&&_0x2424b5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x51a2a1['reversed']&&_0x2424b5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x51a2a1['startIndex']&&_0x2424b5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2424b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35beca,_0x39903a={}){const _0x2d439d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e9c52=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d439d['markMultiRangeBlockFormat'](_0x5e9c52,{'commandName':'listStyle','commandParams':[{'type':_0x39903a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23ffb5,_0x52d185={}){const _0xb2df9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6036=this['_getSuggestionBlocks'](_0x9d67ac=>_0x9d67ac['is']('element','listItem')&&'numbered'===_0x9d67ac['getAttribute']('listType'));if(_0x3d6036['length']<0x1)return;const _0x2a7694=_0x3d6036['map'](_0x5908c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5908c1,'before'),this['editor']['model']['createPositionAt'](_0x5908c1,0x0)));this['editor']['model']['change'](()=>{_0xb2df9f['markMultiRangeBlockFormat'](_0x2a7694,{'commandName':'listReversed','commandParams':[{'reversed':_0x52d185['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cce50,_0x59fd40={}){const _0x3de801=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244be4=this['_getSuggestionBlocks'](_0x2e6b4c=>_0x2e6b4c['is']('element','listItem')&&'numbered'===_0x2e6b4c['getAttribute']('listType'));if(_0x244be4['length']<0x1)return;const _0x1c383e=_0x244be4['map'](_0x4f2602=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f2602,'before'),this['editor']['model']['createPositionAt'](_0x4f2602,0x0)));this['editor']['model']['change'](()=>{_0x3de801['markMultiRangeBlockFormat'](_0x1c383e,{'commandName':'listStart','commandParams':[{'startIndex':_0x59fd40['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a9d6f){if('formatBlock'!=_0x1a9d6f['type']&&'formatInline'!=_0x1a9d6f['type'])return;const _0x2610fa=this['editor']['locale'],{data:_0x1e5224}=_0x1a9d6f;if(!_0x1e5224)return;let _0x4ebc37,_0x2471fc;switch(_0x1e5224['commandName']){case'listStyle':_0x4ebc37='*Change\x20to:*\x20%0',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37,o(_0x2610fa,this['_getTranslationKeyForListStyle'](_0x1e5224['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ebc37=_0x1e5224['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37)};break;case'listStart':_0x4ebc37='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2471fc={'type':'format','content':o(_0x2610fa,_0x4ebc37,_0x1e5224['commandParams'][0x0]['startIndex'])};}return _0x2471fc;}['_getSuggestionBlocksForListStyle'](){const _0x18c5e4=this['editor']['plugins']['get']('LegacyListUtils');let _0x983dfd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x983dfd[0x0]?.['is']('element','listItem')&&_0x983dfd['unshift'](..._0x18c5e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x983dfd[_0x983dfd['length']-0x1]?.['is']('element','listItem')&&_0x983dfd['push'](..._0x18c5e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x983dfd=[...new Set(_0x983dfd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x983dfd=_0x983dfd['filter'](_0x20ff19=>_0x20ff19['is']('element','listItem'))),_0x983dfd;}['_getSuggestionBlocks'](_0x3f0330){const _0x419900=this['editor']['plugins']['get']('LegacyListUtils');let _0x45fde2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3f0330)['map'](_0x42799c=>{const _0x3ddaaf=this['editor']['model']['createPositionAt'](_0x42799c,0x0);return[..._0x419900['getSiblingNodes'](_0x3ddaaf,'backward'),..._0x419900['getSiblingNodes'](_0x3ddaaf,'forward')];})['flat']();return _0x45fde2=[...new Set(_0x45fde2)],_0x45fde2;}['_getTranslationKeyForListStyle'](_0x381d36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x381d36)||'default')['toUpperCase']()+'_LIST_'+_0x381d36['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x409965{['afterInit'](){const _0x36d926=this['editor'];if(!_0x36d926['plugins']['has']('MediaEmbedEditing'))return;const _0x5ad155=_0x36d926['plugins']['get']('TrackChangesEditing'),_0xdc22=_0x36d926['locale'];_0x5ad155['enableCommand']('mediaEmbed'),_0x5ad155['descriptionFactory']['registerElementLabel']('media',_0x2e2f94=>o(_0xdc22,'ELEMENT_MEDIA',_0x2e2f94)),_0x36d926['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f5043,{writer:_0x19d0d9,options:_0x50dbbf})=>{if(_0x50dbbf['showSuggestionHighlights'])return _0x19d0d9['createEmptyElement']('div');},'converterPriority':'high'}),_0x36d926['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ba4a4,_0x3d683e,_0x552355)=>{_0x552355['options']['showSuggestionHighlights']&&_0x1ba4a4['stop']();},{'priority':'high'});}}class mt extends _0x409965{['afterInit'](){const _0x901c6f=this['editor'];_0x901c6f['plugins']['has']('MentionEditing')&&_0x901c6f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x409965{['afterInit'](){const _0x476455=this['editor'];if(!_0x476455['plugins']['has']('MergeFieldsEditing'))return;_0x476455['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x476455['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x555075=_0x476455['plugins']['get']('TrackChangesEditing'),_0x262a2f=_0x476455['locale'];_0x555075['descriptionFactory']['registerElementLabel']('mergeField',_0x6d2f0b=>o(_0x262a2f,'ELEMENT_MERGE_FIELD',_0x6d2f0b)),_0x555075['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x6b2e25=>o(_0x262a2f,'ELEMENT_MERGE_FIELD',_0x6b2e25)),_0x555075['descriptionFactory']['registerDescriptionCallback'](_0x1cd314=>{if('insertion'!=_0x1cd314['type']&&'deletion'!=_0x1cd314['type'])return;const _0x529e05=_0x1cd314['getContainedElement']();if(null==_0x529e05)return;if(!_0x529e05['is']('element','mergeField')&&!_0x529e05['is']('element','mergeFieldBlock'))return;const _0x354d9d=_0x476455['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x529e05['getAttribute']('id'));return'insertion'==_0x1cd314['type']?{'type':'insertion','content':o(_0x262a2f,'*Insert:*\x20%0','\x22'+_0x354d9d+'\x22\x20'+o(_0x262a2f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x262a2f,'*Remove:*\x20%0','\x22'+_0x354d9d+'\x22\x20'+o(_0x262a2f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x409965{['afterInit'](){const _0x155dd5=this['editor'],_0x441424=_0x155dd5['plugins']['get']('TrackChangesEditing');_0x155dd5['plugins']['has']('MultiLevelList')&&(_0x441424['enableDefaultAttributesIntegration']('multiLevelList'),_0x441424['registerBlockAttribute']('listMarkerStyle'),_0x441424['descriptionFactory']['registerDescriptionCallback'](_0x49ca40=>this['handleDescriptions'](_0x49ca40)));}['handleDescriptions'](_0x1343b6){const _0x45a030=this['editor']['locale'],{data:_0x23c714}=_0x1343b6,_0x2dfee6={'type':'format','content':''};if(_0x23c714&&'listMarkerStyle'==_0x23c714['key']){if(!_0x23c714['oldValue'])return{'type':'format','content':o(_0x45a030,'*Set\x20format:*\x20%0',o(_0x45a030,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23c714['newValue']+')'};if(!_0x23c714['newValue']){let _0x303779=_0x1343b6['head'];for(;_0x303779;){if(_0x303779['data']&&'listType'==_0x303779['data']['key']&&_0x303779['data']['newValue'])return _0x2dfee6;_0x303779=_0x303779['next'];}return{'type':'format','content':o(_0x45a030,'*Remove\x20format:*\x20%0',o(_0x45a030,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x23c714['oldValue']+')'};}}}}class kt extends _0x409965{['afterInit'](){const _0x5a22c4=this['editor'];if(!_0x5a22c4['plugins']['has']('PageBreakEditing'))return;_0x5a22c4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b92c6=_0x5a22c4['plugins']['get']('TrackChangesEditing'),_0x5da908=_0x5a22c4['locale'];_0x2b92c6['descriptionFactory']['registerElementLabel']('pageBreak',_0x337c21=>o(_0x5da908,'ELEMENT_PAGE_BREAK',_0x337c21));}}class bt extends _0x409965{['afterInit'](){const _0x5f36d7=this['editor'];if(!_0x5f36d7['plugins']['has']('Paragraph'))return;const _0x38806e=_0x5f36d7['locale'],_0x2e4854=_0x5f36d7['plugins']['get']('TrackChangesEditing');_0x2e4854['descriptionFactory']['registerElementLabel']('paragraph',_0x4ff1a5=>o(_0x38806e,'ELEMENT_PARAGRAPH',_0x4ff1a5)),_0x2e4854['enableDefaultAttributesIntegration']('paragraph'),_0x2e4854['enableCommand']('insertParagraph'),_0x5f36d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5f36d7),{'priority':'highest'}),_0x5f36d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1372f9,_0x43da5d,_0x7b2909)=>{_0x7b2909['options']['showSuggestionHighlights']&&nr(_0x5f36d7,{'showActiveMarker':!0x1})(_0x1372f9,_0x43da5d,_0x7b2909);},{'priority':'highest'});const _0x19e90d=_0x2e4854['descriptionFactory'];_0x19e90d['registerDescriptionCallback'](_0xe96a3a=>{if('insertion'!==_0xe96a3a['type'])return;const {start:_0x90bac4,end:_0x46e928}=_0xe96a3a['getFirstRange']();if(!_0x90bac4['isTouching'](_0x46e928)||!_0x90bac4['nodeAfter'])return;const _0x30eb0a=_0x5f36d7['model']['schema'],_0x101bd0=_0x90bac4['nodeAfter'];return _0x30eb0a['isBlock'](_0x101bd0)&&!_0x30eb0a['isLimit'](_0x101bd0)&&_0x30eb0a['checkChild'](_0x101bd0,'$text')?{'type':'insertion','content':o(_0x38806e,'*Insert:*\x20%0',_0x19e90d['getItemLabel'](_0x101bd0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b4fec=this['editor'],_0x1883b8=_0x3b4fec['locale'];_0x3b4fec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1069d9=>{if('formatBlock'!=_0x1069d9['type'])return;const {data:_0x4c52a8}=_0x1069d9;return _0x4c52a8&&'paragraph'==_0x4c52a8['commandName']?{'type':'format','content':o(_0x1883b8,'*Change\x20to:*\x20%0',o(_0x1883b8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x22b2de,{showActiveMarker:_0x4b70dd=!0x0}={}){return(_0x13c4f6,_0x8c75d6,_0x2b5460)=>{const _0x22d874=_0x22b2de['plugins']['get']('TrackChangesEditing'),_0x10947a=_0x8c75d6['markerRange']['start'],_0x43fef3=_0x8c75d6['markerRange']['end'],_0x433f49=_0x22b2de['model']['schema'];if(!_0x10947a['isTouching'](_0x43fef3)||!_0x10947a['nodeAfter'])return;const _0x2cf80a=_0x10947a['nodeAfter'];if(_0x433f49['isBlock'](_0x2cf80a)&&!_0x433f49['isLimit'](_0x2cf80a)&&_0x433f49['checkChild'](_0x2cf80a,'$text')){if(!_0x2b5460['consumable']['consume'](_0x8c75d6['markerRange'],_0x13c4f6['name']))return;const {authorId:_0x2fa0f1}=_0x22d874['_splitMarkerName'](_0x8c75d6['markerName']),_0x425624=_0x2b5460['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2fa0f1}),_0x1cd3ac=_0x2b5460['mapper']['toViewPosition'](_0x43fef3);_0x4b70dd&&_0x22d874['activeMarkers']['includes'](_0x8c75d6['markerName'])&&_0x2b5460['writer']['addClass']('ck-suggestion-marker--active',_0x425624),_0x2b5460['writer']['insert'](_0x1cd3ac,_0x425624),_0x2b5460['mapper']['bindElementToMarker'](_0x425624,_0x8c75d6['markerName']);}};}class wt extends _0x409965{['afterInit'](){const _0xfecc5b=this['editor'];if(!_0xfecc5b['plugins']['has']('RemoveFormatEditing'))return;_0xfecc5b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3e70=this['editor'];_0x1b3e70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x255bbf=>{if('formatBlock'!=_0x255bbf['type']&&'formatInline'!=_0x255bbf['type'])return;const {data:_0x3f6b76}=_0x255bbf;return _0x3f6b76&&'removeFormat'==_0x3f6b76['commandName']?{'type':'format','content':o(_0x1b3e70['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x409965{['afterInit'](){const _0xc6b155=this['editor'];if(!_0xc6b155['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x31be89=_0xc6b155['plugins']['get']('TrackChangesEditing');_0x31be89['enableCommand']('goToPreviousRestrictedEditingException'),_0x31be89['enableCommand']('goToNextRestrictedEditingException');const _0x324109=_0xc6b155['plugins']['get']('RestrictedEditingModeEditing');_0x324109['enableCommand']('trackChanges'),_0x324109['enableCommand']('acceptSuggestion'),_0x324109['enableCommand']('discardSuggestion'),_0x324109['enableCommand']('acceptAllSuggestions'),_0x324109['enableCommand']('discardAllSuggestions'),_0x324109['enableCommand']('acceptSelectedSuggestions'),_0x324109['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x409965{static get['requires'](){return[_0x1096a5];}['init'](){const _0x5d9dfc=this['editor'],_0xc95a26=_0x5d9dfc['plugins']['get']('TrackChangesEditing');_0xc95a26['enableCommand']('shiftEnter'),_0x5d9dfc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5d9dfc),{'priority':'high'}),_0x5d9dfc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5d9dfc),{'priority':'high'}),_0x5d9dfc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x426726,_0x4b8a85,_0x18ebba)=>{_0x18ebba['options']['showSuggestionHighlights']&&ge(_0x5d9dfc,{'showActiveMarker':!0x1})(_0x426726,_0x4b8a85,_0x18ebba);}),_0xc95a26['descriptionFactory']['registerElementLabel']('softBreak',_0x293de6=>o(_0x5d9dfc['locale'],'ELEMENT_LINE_BREAK',_0x293de6));}}function ge(_0x2b3927,{showActiveMarker:_0x3c2755=!0x0}={}){return(_0x699d60,_0x49faf4,_0xfaacd4)=>{const _0x4d8321=_0x2b3927['plugins']['get']('TrackChangesEditing');if(!_0xfaacd4['consumable']['test'](_0x49faf4['markerRange'],_0x699d60['name']))return;const _0x442161=_0x2b3927['model'];for(const _0x42ea39 of _0x49faf4['markerRange']['getItems']()){if(!_0x42ea39['is']('element','softBreak'))continue;const _0x5d6866='deletion'==_0x49faf4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x42efa}=_0x4d8321['_splitMarkerName'](_0x49faf4['markerName']),_0x2fa3ed=_0xfaacd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6866,'data-author-id':_0x42efa}),_0x1a299f=_0xfaacd4['mapper']['toViewPosition'](_0x442161['createPositionBefore'](_0x42ea39));_0x3c2755&&_0x4d8321['activeMarkers']['includes'](_0x49faf4['markerName'])&&_0xfaacd4['writer']['addClass']('ck-suggestion-marker--active',_0x2fa3ed),_0xfaacd4['writer']['insert'](_0x1a299f,_0x2fa3ed),_0xfaacd4['mapper']['bindElementToMarker'](_0x2fa3ed,_0x49faf4['markerName']);}};}class St extends _0x409965{['afterInit'](){const _0x4ae173=this['editor'],_0x5d6784=_0x4ae173['model'],_0x51e4fe=_0x4ae173['locale'];if(!_0x4ae173['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f5d00=_0x4ae173['plugins']['get']('TrackChangesEditing'),_0x11a7e4='restrictedEditingException',_0x14209e=_0x4ae173['commands']['get'](_0x11a7e4);_0x1f5d00['enableCommand'](_0x11a7e4,(_0x49cbe8,_0xb32731={})=>{const _0x1f9616=_0x5d6784['document']['selection'];if(_0x1f9616['isCollapsed'])return void _0x49cbe8(_0xb32731);const _0x48f186=void 0x0!==_0xb32731['forceValue']?_0xb32731['forceValue']:!_0x14209e['value'];_0x5d6784['change'](()=>{const _0xfe9c69=Array['from'](_0x1f9616['getRanges']());for(const _0x3d6ab2 of _0xfe9c69){const _0x45a823=_0x48f186?[_0x3d6ab2]:io(_0x11a7e4,_0x3d6ab2,_0x5d6784);for(const _0x3cc5bd of _0x45a823)_0x1f5d00['markInlineFormat'](_0x3cc5bd,{'commandName':_0x11a7e4,'commandParams':[{'forceValue':_0x48f186}]});}});}),_0x1f5d00['descriptionFactory']['registerDescriptionCallback'](_0x12b28c=>{if('formatBlock'!=_0x12b28c['type']&&'formatInline'!=_0x12b28c['type'])return;const {data:_0x16104b}=_0x12b28c;return _0x16104b&&_0x16104b['commandName']==_0x11a7e4?_0x16104b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51e4fe,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x51e4fe,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x409965{['afterInit'](){const _0x3480c4=this['editor'];if(!_0x3480c4['plugins']['has']('Style')||!_0x3480c4['plugins']['has']('DataSchema'))return;const _0xae32ca=_0x3480c4['plugins']['get']('TrackChangesEditing'),_0x79f069=_0x3480c4['locale'],_0x46974d=_0x3480c4['config']['get']('style')||{},_0x1c0eaa=_0x3480c4['plugins']['get']('GeneralHtmlSupport'),_0x22cd89=_0x3480c4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3480c4['plugins']['get']('DataSchema'),_0x46974d['definitions']);_0xae32ca['enableDefaultAttributesIntegration']('style');const _0x3cd59d=new Set();for(const _0x108e29 of _0x22cd89['block']){const _0x4193fc=_0x1c0eaa['getGhsAttributeNameForElement'](_0x108e29['element']);_0x3cd59d['add'](_0x4193fc);}const _0x19e9fb=new Set();for(const _0x235d6e of _0x22cd89['inline']){const _0x519cb6=_0x1c0eaa['getGhsAttributeNameForElement'](_0x235d6e['element']);_0x19e9fb['add'](_0x519cb6);for(const _0x1134dc of _0x235d6e['ghsAttributes'])_0x19e9fb['add'](_0x1134dc);}for(const _0x18eb39 of _0x3cd59d)_0xae32ca['registerBlockAttribute'](_0x18eb39),_0xae32ca['descriptionFactory']['registerAttributeLabel'](_0x18eb39,o(_0x79f069,'FORMAT_STYLE'));for(const _0x3deb58 of _0x19e9fb)_0xae32ca['registerInlineAttribute'](_0x3deb58),_0xae32ca['descriptionFactory']['registerAttributeLabel'](_0x3deb58,o(_0x79f069,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21416d=this['editor'],_0x15c7f9=_0x21416d['locale'];_0x21416d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227924=>{if('formatBlock'!=_0x227924['type']&&'formatInline'!=_0x227924['type'])return;const {data:_0x5aec33}=_0x227924;return _0x5aec33&&'style'===_0x5aec33['commandName']?_0x5aec33['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15c7f9,'*Set\x20format:*\x20%0',_0x5aec33['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x15c7f9,'*Remove\x20format:*\x20%0',_0x5aec33['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x409965{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x6522f5){super(_0x6522f5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x26e529=this['editor'],_0x225c1b=_0x26e529['model']['document']['selection'];if(!_0x26e529['plugins']['has']('TableEditing'))return;const _0x18ad29=_0x26e529['locale'],_0xfb9f62=_0x26e529['plugins']['get']('TrackChangesEditing'),_0x40976b=_0x26e529['plugins']['get']('TableUtils');_0xfb9f62['descriptionFactory']['registerElementLabel']('table',_0xab7c35=>o(_0x18ad29,'ELEMENT_TABLE',_0xab7c35)),this['_setupColumnsRowsFixing'](),_0xfb9f62['enableCommand']('insertTable'),_0xfb9f62['enableCommand']('selectTableRow'),_0xfb9f62['enableCommand']('selectTableColumn');for(const _0x2d6692 of['insertTableRowAbove','insertTableRowBelow']){const _0x10f3a4=_0x26e529['commands']['get'](_0x2d6692);_0xfb9f62['enableCommand'](_0x2d6692,_0x55e70d=>{_0x26e529['model']['change'](_0x1da70d=>{_0x55e70d();const _0x2f8a70='above'===_0x10f3a4['order'],_0x412f56=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x32cf7b=_0x40976b['getRowIndexes'](_0x412f56),_0x28b026=_0x2f8a70?_0x32cf7b['first']-0x1:_0x32cf7b['last']+0x1,_0x5d34b0=_0x412f56[0x0]['findAncestor']('table'),_0x4f222b=_0x40976b['createTableWalker'](_0x5d34b0,{'startRow':_0x28b026,'endRow':_0x28b026}),_0x23e6dc=Array['from'](_0x4f222b)['map'](_0x1f3c64=>_0x1da70d['createRangeOn'](_0x1f3c64['cell']));_0xfb9f62['markMultiRangeInsertion'](_0x23e6dc,'tableRow');});});}for(const _0x5705eb of['insertTableColumnLeft','insertTableColumnRight']){const _0x3059b2=_0x26e529['commands']['get'](_0x5705eb);_0xfb9f62['enableCommand'](_0x5705eb,_0x319fbd=>{_0x26e529['model']['change'](_0x198592=>{_0x319fbd();const _0x5d6f28='left'===_0x3059b2['order'],_0x1364e7=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x33a831=_0x40976b['getColumnIndexes'](_0x1364e7),_0x12b1ae=_0x5d6f28?_0x33a831['first']-0x1:_0x33a831['last']+0x1,_0x392857=_0x1364e7[0x0]['findAncestor']('table'),_0x22a04d=_0x40976b['createTableWalker'](_0x392857,{'startRow':0x0,'column':_0x12b1ae,'includeAllSlots':!0x1}),_0x2af71d=Array['from'](_0x22a04d)['map'](_0x5a9cce=>_0x198592['createRangeOn'](_0x5a9cce['cell']));_0xfb9f62['markMultiRangeInsertion'](_0x2af71d,'tableColumn');});});}for(const _0x2e75ed of['removeTableRow','removeTableColumn']){const _0x1ef50e=_0x2e75ed['substr'](0xb),_0x141de2=_0x1ef50e['toLowerCase'](),_0x22f7fa=_0x141de2['substr'](0x0,0x3)+'span',_0x4d3eda='table'+_0x1ef50e,_0x56b1ed='min'+_0x1ef50e,_0xdd106e='max'+_0x1ef50e;_0xfb9f62['enableCommand'](_0x2e75ed,()=>{_0x26e529['model']['change'](_0x4dc132=>{const _0x55380c=_0x40976b['getSelectionAffectedTableCells'](_0x225c1b),_0x18c9f9=_0x55380c[0x0]['findAncestor']('table');let _0x4edf9a;if('removeTableRow'==_0x2e75ed){const _0x21fc53=_0x40976b['getRowIndexes'](_0x55380c);_0x4edf9a={'startRow':_0x21fc53['first'],'endRow':_0x21fc53['last'],'includeAllSlots':!0x0};}else{const _0xbdb80c=_0x40976b['getColumnIndexes'](_0x55380c);_0x4edf9a={'startColumn':_0xbdb80c['first'],'endColumn':_0xbdb80c['last'],'includeAllSlots':!0x0};}const _0x307c74=_0x40976b['createTableWalker'](_0x18c9f9,_0x4edf9a),_0x5abeb2=Array['from'](_0x307c74)['map'](({cell:_0x1735e8})=>_0x1735e8),_0x15c84f=be(_0x5abeb2['filter'](_0x6e83bf=>_0x6e83bf['hasAttribute'](_0x22f7fa))),_0x317c14=be(_0x5abeb2['filter'](_0x4ef15b=>!_0x4ef15b['hasAttribute'](_0x22f7fa)))['map'](_0x4efa3e=>_0x4dc132['createRangeOn'](_0x4efa3e)),_0xbf77e7=_0xfb9f62['markMultiRangeDeletion'](_0x317c14,_0x4d3eda);if(_0xbf77e7&&('tableRow'==_0xbf77e7['subType']||'tableColumn'==_0xbf77e7['subType'])){const _0x50a5eb=this['_getSuggestionCoords'](_0xbf77e7);for(const _0x2b21db of _0x15c84f){const _0x59dd25=_0x4dc132['createRangeOn'](_0x2b21db),_0x2eeb48=_0x40976b['getCellLocation'](_0x2b21db),_0x2f6126=_0x2b21db['getAttribute'](_0x22f7fa)-0x1,_0x479daf=_0x50a5eb[_0x56b1ed],_0x4ea1ca=_0x50a5eb[_0xdd106e];_0x479daf<=_0x2eeb48[_0x141de2]&&_0x2eeb48[_0x141de2]+_0x2f6126<=_0x4ea1ca&&_0xbf77e7['addRange'](_0x59dd25);}}});});}function _0x11a9b3(_0x34fd5d){const _0x5493aa=Array['from'](_0x225c1b['getRanges']())['map'](_0x391347=>_0x531671['fromRange'](_0x391347));_0x26e529['model']['change'](_0x2c9cf3=>{const _0x47a488=_0x2c9cf3['batch'];_0x34fd5d=_0x34fd5d['filter'](_0x2b0c6b=>'$graveyard'!=_0x2b0c6b['root']['rootName']),_0x2c9cf3['setSelection'](_0x34fd5d),_0x26e529['commands']['get']('removeTableRow')['refresh'](),_0x26e529['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26e529['model']['enqueueChange'](()=>{_0x26e529['model']['enqueueChange'](_0x47a488,_0x2a9191=>{const _0x528309=_0x5493aa['filter'](_0x37de58=>'$graveyard'!=_0x37de58['root']['rootName']);_0x528309['length']>0x0&&_0x2a9191['setSelection'](_0x528309);for(const _0x2a095e of _0x5493aa)_0x2a095e['detach']();});});});}function _0x449420(_0x22203c){_0x26e529['model']['change'](_0x2b03da=>{const _0x499d69=Array['from'](_0x225c1b['getRanges']())['map'](_0x1288f4=>_0x531671['fromRange'](_0x1288f4)),_0x5580db=[];for(const _0x397062 of _0x22203c)for(const _0x47f102 of _0x397062['getItems']({'shallow':!0x0}))_0x5580db['push'](_0x47f102);for(const _0x34a592 of _0x5580db)'$graveyard'!=_0x34a592['root']['rootName']&&(_0x2b03da['setSelection'](_0x2b03da['createPositionAt'](_0x34a592,0x0)),_0x26e529['commands']['get']('removeTableColumn')['refresh'](),_0x26e529['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x51041b=_0x499d69['filter'](_0x546eec=>'$graveyard'!=_0x546eec['root']['rootName']);_0x51041b['length']>0x0&&_0x2b03da['setSelection'](_0x51041b);for(const _0x2a2a32 of _0x499d69)_0x2a2a32['detach']();});}function _0x45cf49(_0x1adba2,_0x5291be){return _0x5291be['every'](_0x3bcdda=>_0x1adba2['some'](_0x528342=>_0x528342['end']['isEqual'](_0x3bcdda['start'])||_0x3bcdda['end']['isEqual'](_0x528342['start'])));}function _0x479d0b(_0x36306a,_0x853805){return!_0x36306a['some'](_0x29f99c=>_0x853805['some'](_0x2af114=>_0x29f99c['isIntersecting'](_0x2af114)))&&_0x36306a['some'](_0x3b825f=>_0x853805['some'](_0x1e600c=>_0x3b825f['end']['isTouching'](_0x1e600c['start'])));}_0x26e529['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c5a6a,_0x2c289d,_0x229741)=>{if(!_0x229741['options']['showSuggestionHighlights'])return;const _0xa9d3aa=_0x2c289d['item'];if(!_0xa9d3aa)return;const _0x3ad7c9=_0x229741['mapper']['toViewElement'](_0xa9d3aa);function _0x2681bc(_0x524dd3){return Array['isArray'](_0x524dd3)?_0x524dd3:[_0x524dd3];}_0x3ad7c9&&'tableCell'===_0xa9d3aa['name']&&_0x1ee629(_0x3ad7c9,_0x229741['writer'],(_0x4c8a4d,_0x4b6d7c,_0x1d7b43)=>_0x1d7b43['addClass'](_0x2681bc(_0x4b6d7c['classes']),_0x4c8a4d),(_0x4c5678,_0x13079b,_0x1938a2)=>_0x1938a2['removeClass'](_0x2681bc(_0x13079b['classes']),_0x4c5678));},{'priority':'highest'}),_0xfb9f62['descriptionFactory']['registerDescriptionCallback'](_0x57db4e=>{if('insertion'!=_0x57db4e['type']&&'deletion'!=_0x57db4e['type'])return;const _0x590536=_0x57db4e['getContainedElement']();if(null!=_0x590536&&_0x590536['is']('element','table')){if('insertion'==_0x57db4e['type']){const _0x3177cc=_0x57db4e['getItems']()['filter'](_0x7b6794=>_0x7b6794['is']('$textProxy'))['map'](_0x208e24=>_0x208e24['data']);if(_0x3177cc['length'])return{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3177cc['join']('\x20')+'\x22'))};}if('deletion'==_0x57db4e['type']){const _0x1abcc6=_0x57db4e['getItems']()['filter'](_0x7ebdbf=>_0x7ebdbf['is']('$textProxy'))['map'](_0x4b0bbf=>_0x4b0bbf['data']);if(_0x1abcc6['length'])return{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1abcc6['join']('\x20')+'\x22'))};}}}),_0xfb9f62['descriptionFactory']['registerDescriptionCallback'](_0x34719f=>{if('tableRow'==_0x34719f['subType']){const _0x87aa50=_0x34719f['getItems']()['filter'](_0x1c0319=>_0x1c0319['is']('$textProxy'))['map'](_0x224ad2=>_0x224ad2['data']),_0x5c0fa7=this['_getSuggestionCoords'](_0x34719f),_0x23f0ff=_0x5c0fa7['maxRow']-_0x5c0fa7['minRow']+0x1;if('insertion'==_0x34719f['type'])return _0x87aa50['length']?{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23f0ff,'\x22'+_0x87aa50['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW',_0x23f0ff))};if('deletion'==_0x34719f['type'])return _0x87aa50['length']?{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23f0ff,'\x22'+_0x87aa50['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_ROW',_0x23f0ff))};}if('tableColumn'==_0x34719f['subType']){const _0x58a3b5=_0x34719f['getItems']()['filter'](_0x118b1e=>_0x118b1e['is']('$textProxy'))['map'](_0x2f5552=>_0x2f5552['data']),_0x1d1e76=this['_getSuggestionCoords'](_0x34719f),_0x2dc26e=_0x1d1e76['maxColumn']-_0x1d1e76['minColumn']+0x1;if('insertion'==_0x34719f['type'])return _0x58a3b5['length']?{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dc26e,'\x22'+_0x58a3b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18ad29,'*Insert:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN',_0x2dc26e))};if('deletion'==_0x34719f['type'])return _0x58a3b5['length']?{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dc26e,'\x22'+_0x58a3b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18ad29,'*Remove:*\x20%0',o(_0x18ad29,'ELEMENT_TABLE_COLUMN',_0x2dc26e))};}}),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11a9b3),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11a9b3),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x449420),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x449420),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45cf49),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45cf49),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x479d0b),_0xfb9f62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x479d0b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x12501a=this['editor'],_0x47d281=_0x12501a['model']['document']['selection'];return(_0x1477a2,_0x20d825)=>{_0x12501a['model']['change'](_0x36ab1c=>{const {commandName:_0x406cdd,commandParams:_0x23e2f3}=_0x20d825;let _0x45628c=_0x1477a2[0x0]['end']['nodeBefore'];_0x23e2f3&&_0x23e2f3[0x0]&&!0x1===_0x23e2f3[0x0]['forceValue']&&(_0x45628c=_0x1477a2[0x0]['start']['nodeAfter']);const _0x48986d=_0x36ab1c['createRangeIn'](_0x45628c);if('$graveyard'==_0x48986d['root']['rootName'])return;const _0x4b0c8d=Array['from'](_0x47d281['getRanges']())['map'](_0x4c8b0b=>_0x531671['fromRange'](_0x4c8b0b));_0x36ab1c['setSelection'](_0x48986d),_0x12501a['commands']['get'](_0x406cdd)['refresh'](),_0x23e2f3['push']({'forceDefaultExecution':!0x0}),_0x12501a['execute'](_0x406cdd,..._0x23e2f3);const _0x536f30=_0x4b0c8d['filter'](_0x5d8ed7=>'$graveyard'!=_0x5d8ed7['root']['rootName']);_0x536f30['length']>0x0&&_0x36ab1c['setSelection'](_0x536f30);for(const _0xe423f of _0x4b0c8d)_0xe423f['detach']();});};}['_getCoordsForCells'](_0x3fd8a0){const _0x1fd625=this['editor']['plugins']['get']('TableUtils');let _0x304d02=Number['MAX_SAFE_INTEGER'],_0x2202d7=Number['MIN_SAFE_INTEGER'],_0xac2781=Number['MAX_SAFE_INTEGER'],_0x2e2b4a=Number['MIN_SAFE_INTEGER'];for(const _0x3456c0 of _0x3fd8a0){if('$graveyard'==_0x3456c0['root']['rootName'])continue;const {row:_0x6847e4,column:_0x468b2d}=_0x1fd625['getCellLocation'](_0x3456c0),_0x30d193=_0x3456c0['hasAttribute']('rowspan')?_0x3456c0['getAttribute']('rowspan')-0x1:0x0,_0x59a1c0=_0x3456c0['hasAttribute']('colspan')?_0x3456c0['getAttribute']('colspan')-0x1:0x0;_0x304d02=_0x6847e4<_0x304d02?_0x6847e4:_0x304d02,_0x2202d7=_0x6847e4+_0x30d193>_0x2202d7?_0x6847e4+_0x30d193:_0x2202d7,_0xac2781=_0x468b2d<_0xac2781?_0x468b2d:_0xac2781,_0x2e2b4a=_0x468b2d+_0x59a1c0>_0x2e2b4a?_0x468b2d+_0x59a1c0:_0x2e2b4a;}return{'minRow':_0x304d02,'maxRow':_0x2202d7,'minColumn':_0xac2781,'maxColumn':_0x2e2b4a};}['_setupColumnsRowsFixing'](){const _0x432a4f=this['editor'],_0x34982f=_0x432a4f['plugins']['get']('TrackChangesEditing'),_0x405d1a=_0x432a4f['plugins']['get']('TableUtils');_0x432a4f['model']['document']['on']('change:data',()=>{const _0x3e85ec=Array['from'](_0x432a4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x322d46,data:_0x166656}of _0x3e85ec){const {group:_0xbc66db,id:_0x597f06,subType:_0x130e66}=_0x34982f['_splitMarkerName'](_0x322d46);if('suggestion'!=_0xbc66db)continue;if(null!=_0x166656['oldRange'])continue;const _0x187cb9=_0x34982f['getSuggestion'](_0x597f06);this['_tablePostFixingSubtypes']['includes'](_0x130e66)&&this['_tableSuggestions']['add'](_0x187cb9);}},{'priority':'low'});const _0x5230ec=(_0x5a5552,_0x4a61c5)=>{let _0x47d259=!0x1;const _0x2c79a0=_0x4a61c5['createRangeOn'](_0x5a5552),_0x42fec8=_0x5a5552['findAncestor']('table'),_0x2fce69=_0x405d1a['getCellLocation'](_0x5a5552);for(const _0xb56f76 of this['_tableSuggestions']){const _0x10a7b5=_0xb56f76['subType'],_0x4bd360=_0x10a7b5['startsWith']('tablePaste'),_0x172abe=_0x10a7b5['substr'](_0x4bd360?0xa:0x5),_0x4ad6f0=_0x172abe['toLowerCase'](),_0x4048d6=_0x4ad6f0['substr'](0x0,0x3)+'span',_0x42ddf2='min'+_0x172abe,_0x4c605b='max'+_0x172abe;if(!_0xb56f76['isInContent'])continue;if(_0x42fec8!=_0xb56f76['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb56f76['isIntersectingWithRange'](_0x2c79a0))continue;const _0x1e1b15=_0x5a5552['hasAttribute'](_0x4048d6)?_0x5a5552['getAttribute'](_0x4048d6)-0x1:0x0,_0x5280f4=this['_getSuggestionCoords'](_0xb56f76),_0xe64edd=_0x5280f4[_0x42ddf2],_0x4f3e25=_0x5280f4[_0x4c605b];_0xe64edd<=_0x2fce69[_0x4ad6f0]&&_0x2fce69[_0x4ad6f0]+_0x1e1b15<=_0x4f3e25&&(_0xb56f76['addRange'](_0x2c79a0),_0x47d259=!0x0);}return _0x47d259;};_0x432a4f['model']['document']['registerPostFixer'](_0x54a0bb=>{let _0x657598=!0x1;for(const _0x42e930 of _0x432a4f['model']['document']['differ']['getChanges']())if('insert'==_0x42e930['type']){if('tableRow'==_0x42e930['name']){for(const _0x13e556 of _0x42e930['position']['nodeAfter']['getChildren']())_0x657598=_0x657598||_0x5230ec(_0x13e556,_0x54a0bb);}else'tableCell'==_0x42e930['name']&&(_0x657598=_0x657598||_0x5230ec(_0x42e930['position']['nodeAfter'],_0x54a0bb));}return _0x657598;});}['_getSuggestionCoords'](_0x39a1d0){return this['_getCoordsForCells'](_0x39a1d0['getRanges']()['map'](_0x4c751a=>_0x4c751a['start']['nodeAfter']));}}function be(_0x24697c){return Array['from'](new Set(_0x24697c)['values']());}class vt extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x244c7a=this['editor'],_0x44b29b=_0x244c7a['model']['document']['selection'],_0x591f09=_0x244c7a['locale'];if(!_0x244c7a['plugins']['has']('TableEditing'))return;const _0x109466=_0x244c7a['plugins']['get']('TrackChangesEditing'),_0x20f3c5=_0x244c7a['plugins']['get']('TableUtils'),_0x52b377=_0x244c7a['plugins']['get'](It);_0x52b377['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x109466['enableCommand']('mergeTableCells',()=>{const _0x5db0a9=_0x20f3c5['getSelectionAffectedTableCells'](_0x244c7a['model']['document']['selection']);_0x244c7a['model']['change'](()=>{_0x109466['markMultiRangeBlockFormat'](_0x5db0a9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x244c7a['commands']['get']('mergeTableCells')['on']('execute',(_0x4ec0cc,_0x24ca2e)=>{_0x244c7a['commands']['get']('trackChanges')['value']&&(_0x24ca2e['length']>0x0&&_0x24ca2e[_0x24ca2e['length']-0x1]&&_0x24ca2e[_0x24ca2e['length']-0x1]['forceDefaultExecution']||_0x109466['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ec0cc['stop']());},{'priority':'highest'});for(const _0x32ce4a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2fc949=_0x244c7a['commands']['get'](_0x32ce4a);_0x109466['enableCommand'](_0x32ce4a,()=>{const _0x31a04e=_0x244c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18346f=>_0x18346f['is']('element','tableCell')),_0x38916e=_0x2fc949['value'];_0x244c7a['model']['change'](()=>{_0x109466['markMultiRangeBlockFormat']([_0x31a04e,_0x38916e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x761201 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c94db=_0x244c7a['commands']['get'](_0x761201);_0x109466['enableCommand'](_0x761201,()=>{const _0x45dbbf=_0x20f3c5['getSelectionAffectedTableCells'](_0x244c7a['model']['document']['selection'])[0x0],_0x322734=_0x45dbbf['findAncestor']('table'),{column:_0x4b9210,row:_0x473cec}=_0x20f3c5['getCellLocation'](_0x45dbbf);let _0x893ada=[];if('horizontally'==_0x1c94db['direction']){const _0x5d600f=_0x20f3c5['createTableWalker'](_0x322734,{'startRow':_0x473cec,'endRow':_0x473cec,'includeAllSlots':!0x0});_0x893ada=Array['from'](_0x5d600f)['map'](_0x2e3aa8=>_0x2e3aa8['cell']);}else{const _0x58d32c=_0x20f3c5['createTableWalker'](_0x322734,{'column':_0x4b9210,'includeAllSlots':!0x0});_0x893ada=Array['from'](_0x58d32c)['map'](_0x1df0bf=>_0x1df0bf['cell']);}_0x244c7a['model']['change'](_0x5f7db6=>{_0x109466['markBlockFormat'](_0x5f7db6['createRangeOn'](_0x45dbbf),{'commandName':_0x761201,'commandParams':[]},_0x893ada,_0x761201);});});}_0x109466['descriptionFactory']['registerDescriptionCallback'](_0x4153b4=>{if('formatBlock'!=_0x4153b4['type']&&'formatInline'!=_0x4153b4['type'])return;const {data:_0x1352a1}=_0x4153b4;return _0x1352a1&&'mergeTableCells'==_0x1352a1['commandName']?{'type':'format','content':o(_0x591f09,'*Merge\x20cells*')}:void 0x0;}),_0x109466['descriptionFactory']['registerDescriptionCallback'](_0x4e64a5=>{if('formatBlock'!=_0x4e64a5['type']&&'formatInline'!=_0x4e64a5['type'])return;const {data:_0x2ee9c3}=_0x4e64a5;return _0x2ee9c3?'splitTableCellVertically'==_0x2ee9c3['commandName']?{'type':'format','content':o(_0x591f09,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ee9c3['commandName']?{'type':'format','content':o(_0x591f09,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5afa=_0x52b377['_acceptFormatSuggestionCallbackFactory']();for(const _0x92471a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x92471a,'accept',_0x5a5afa);for(const _0x30cb18 of['splitTableCellVertically','splitTableCellHorizontally'])_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30cb18,'accept',_0x5a5afa);_0x109466['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4feb86=>{_0x244c7a['model']['change'](_0x15716c=>{const _0x20ec2f=Array['from'](_0x44b29b['getRanges']())['map'](_0x31df76=>_0x531671['fromRange'](_0x31df76));_0x15716c['setSelection'](_0x4feb86),_0x244c7a['commands']['get']('mergeTableCells')['refresh'](),_0x244c7a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ccf27=_0x20ec2f['filter'](_0x5b3e67=>'$graveyard'!=_0x5b3e67['root']['rootName']);_0x4ccf27['length']>0x0&&_0x15716c['setSelection'](_0x4ccf27);for(const _0x451766 of _0x20ec2f)_0x451766['detach']();});});for(const _0xaa335b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x422099=_0x244c7a['commands']['get'](_0xaa335b);_0x422099['on']('set:isEnabled',(_0x30a548,_0x4a006d,_0x9a0f9)=>{if(_0x9a0f9){const _0x2205a9=_0x244c7a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x298077=>_0x298077['is']('element','tableCell'));this['_areMergableCells'](_0x422099['value'],_0x2205a9)||(_0x30a548['return']=!0x1,_0x30a548['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x372119=this['editor']['commands']['get']('mergeTableCells'),_0x12a046=this['editor']['plugins']['get']('TableUtils');if(!_0x372119['isEnabled'])return!0x1;const _0x36d2f4=_0x12a046['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53e3cd of _0x36d2f4)for(const _0x2d8a6d of _0x36d2f4)if(_0x53e3cd!=_0x2d8a6d&&!this['_areMergableCells'](_0x53e3cd,_0x2d8a6d))return!0x1;return!0x0;}['_areMergableCells'](_0x2d06bf,_0x90671){const _0x48dcbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17e450=this['editor']['model']['createRangeOn'](_0x2d06bf),_0x3f9dc6=this['editor']['model']['createRangeOn'](_0x90671),_0x52c1b7=new Set(),_0x58d5ff=new Set();for(const _0x11bcdc of _0x48dcbf['getSuggestions']())if(('insertion'==_0x11bcdc['type']||'deletion'==_0x11bcdc['type']||'mergeTableCells'==_0x11bcdc['subType'])&&_0x11bcdc['isInContent']){for(const _0x4cb678 of _0x11bcdc['getRanges']())_0x4cb678['containsRange'](_0x17e450,!0x0)&&_0x52c1b7['add'](_0x11bcdc['type']+':'+_0x11bcdc['author']['id']),_0x4cb678['containsRange'](_0x3f9dc6,!0x0)&&_0x58d5ff['add'](_0x11bcdc['type']+':'+_0x11bcdc['author']['id']);}if(_0x52c1b7['size']!=_0x58d5ff['size'])return!0x1;for(const _0x1bcdf1 of _0x52c1b7)if(!_0x58d5ff['has'](_0x1bcdf1))return!0x1;return!0x0;}}class Ct extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x4e34e6=this['editor'];if(!_0x4e34e6['plugins']['has']('TableEditing'))return;const _0x23bb02=_0x4e34e6['locale'],_0x19feb8=_0x4e34e6['plugins']['get']('TrackChangesEditing');_0x19feb8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19feb8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19feb8['registerBlockAttribute']('headingRows'),_0x19feb8['registerBlockAttribute']('headingColumns'),_0x19feb8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23bb02,'FORMAT_HEADER_ROW')),_0x19feb8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23bb02,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x254339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351ad5=this['editor']['plugins']['get']('TableUtils'),_0x4ea157=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x375d1b({showActiveMarker:_0x12a2e6=!0x0,setDataAttribute:_0x9e6940=!0x0}={}){return(_0x54d4e9,_0x21d146,_0x4d19f5)=>{const {type:_0x399b77,id:_0x594f90}=_0x254339['_splitMarkerName'](_0x21d146['markerName']),_0x2b0364=_0x254339['getSuggestion'](_0x594f90),_0x536b1a=_0x2b0364['data'];if('formatBlock'!=_0x2b0364['type']||!_0x536b1a||'setTableColumnHeader'!=_0x536b1a['commandName'])return;if(_0x21d146['item'])return void _0x54d4e9['stop']();if(!_0x4d19f5['consumable']['consume'](_0x21d146['markerRange'],_0x54d4e9['name']))return;const _0x1dfb04=_0x21d146['markerRange']['start']['nodeAfter'],_0x18b616=_0x21d146['markerRange']['end']['nodeBefore'],_0x5a6bac=_0x1dfb04['parent']['parent'],{column:_0x545568}=_0x351ad5['getCellLocation'](_0x1dfb04),{column:_0x473043}=_0x351ad5['getCellLocation'](_0x18b616);for(let _0x46c053=_0x545568;_0x46c053<=_0x473043;_0x46c053++){const _0x10fd86=_0x351ad5['createTableWalker'](_0x5a6bac,{'column':_0x46c053,'includeAllSlots':!0x1});for(const _0x5e4aaf of _0x10fd86){const _0x59dd23=_0x5e4aaf['cell'],_0x41447d=_0x4d19f5['mapper']['toViewElement'](_0x59dd23);_0x4d19f5['writer']['addClass']('ck-suggestion-marker-'+_0x399b77,_0x41447d),_0x9e6940&&_0x4d19f5['writer']['setAttribute']('data-suggestion',_0x594f90,_0x41447d),_0x4d19f5['mapper']['bindElementToMarker'](_0x41447d,_0x21d146['markerName']),_0x12a2e6&&(_0x254339['activeMarkers']['includes'](_0x21d146['markerName'])?_0x4d19f5['writer']['addClass']('ck-suggestion-marker--active',_0x41447d):_0x4d19f5['writer']['removeClass']('ck-suggestion-marker--active',_0x41447d));}}};}_0x254339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ea157),_0x254339['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ea157),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x375d1b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41d18b,_0x5c6161,_0x2bc0fd)=>{_0x2bc0fd['options']['showSuggestionHighlights']&&_0x375d1b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41d18b,_0x5c6161,_0x2bc0fd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1171b9,_0x3cfd87,_0x4a0498)=>{const {type:_0x4c5d00,id:_0x316f52}=_0x254339['_splitMarkerName'](_0x3cfd87['markerName']),_0x4cd755=_0x254339['getSuggestion'](_0x316f52),_0x32bafa=_0x4cd755['data'];if('formatBlock'!=_0x4cd755['type']||!_0x32bafa||'setTableColumnHeader'!=_0x32bafa['commandName'])return;const _0x30a84a=_0x4a0498['mapper']['markerNameToElements'](_0x3cfd87['markerName']);if(_0x30a84a){for(const _0x42ee39 of _0x30a84a)_0x4a0498['writer']['removeClass']('ck-suggestion-marker-'+_0x4c5d00,_0x42ee39),_0x4a0498['writer']['removeClass']('ck-suggestion-marker--active',_0x42ee39),_0x4a0498['writer']['removeAttribute']('data-suggestion',_0x42ee39),_0x4a0498['mapper']['unbindElementFromMarkerName'](_0x42ee39,_0x3cfd87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afb99=this['editor'],_0x2aaf46=_0x2afb99['locale'];function _0x221f85(_0x13a0d5){return{'type':'format','content':o(_0x2aaf46,'*Format:*\x20%0',_0x13a0d5)};}_0x2afb99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x901c83=>{if('formatBlock'!=_0x901c83['type'])return;const {data:_0x1b12a9}=_0x901c83;if(_0x1b12a9){if('setTableRowHeader'==_0x1b12a9['commandName']){const _0x5cdb21=_0x1b12a9['commandParams'][0x0]['forceValue'];return _0x221f85(o(_0x2aaf46,_0x5cdb21?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b12a9['commandName']){const _0x3ab027=_0x1b12a9['commandParams'][0x0]['forceValue'];return _0x221f85(o(_0x2aaf46,_0x3ab027?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x218956=>[_0x218956,null]));class _t extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x429fa2=this['editor'];if(!_0x429fa2['plugins']['has']('TableClipboard'))return;const _0x48030c=_0x429fa2['plugins']['get']('TrackChangesEditing'),_0x46a982=_0x429fa2['plugins']['get']('TableUtils'),_0x5dec82=_0x429fa2['plugins']['get'](It),_0x43174f=_0x429fa2['plugins']['get']('TableClipboard');_0x5dec82['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x429fa2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x429fa2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ab4ee=null;_0x429fa2['model']['on']('insertContent',(_0x2cf6d9,_0x9535d6)=>{const [_0x161e5f,_0x419212]=_0x9535d6,_0xf2040e=_0x9535d6[_0x9535d6['length']-0x1];_0xf2040e&&_0xf2040e['forceDefaultExecution']||_0x48030c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1d5a2f,_0x48c9af,_0x3c37c8,_0x634fc1,_0x373435){if(_0x48c9af&&!_0x48c9af['is']('documentSelection'))return!0x1;const _0x1eaa85=_0x373435['getTableIfOnlyTableInContent'](_0x1d5a2f,_0x3c37c8);if(!_0x1eaa85||!Re(_0x1eaa85,void 0x0,_0x634fc1))return!0x1;const _0x4d06eb=_0x634fc1['getSelectionAffectedTableCells'](_0x3c37c8['document']['selection']);if(!_0x4d06eb['length'])return!0x1;const _0x573250=_0x4d06eb[0x0]['findAncestor']('table'),_0x4bad7b=_0x634fc1['getRowIndexes'](_0x4d06eb),_0x452cb1=_0x634fc1['getColumnIndexes'](_0x4d06eb),_0x36eb38={'startRow':_0x4bad7b['first'],'endRow':_0x4bad7b['last'],'startColumn':_0x452cb1['first'],'endColumn':_0x452cb1['last']};return 0x1==_0x4d06eb['length']&&(_0x36eb38['endRow']+=_0x634fc1['getRows'](_0x1eaa85)-0x1,_0x36eb38['endColumn']+=_0x634fc1['getColumns'](_0x1eaa85)-0x1),Re(_0x573250,_0x36eb38,_0x634fc1);}(_0x161e5f,_0x419212,_0x429fa2['model'],_0x46a982,_0x43174f)&&(_0x2cf6d9['stop'](),_0x4ab4ee={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x429fa2['model']['change'](()=>{_0x429fa2['model']['insertContent'](_0x9535d6[0x0],_0x9535d6[0x1],_0x9535d6[0x2],{'forceDefaultExecution':!0x0});const _0x173bbb=_0x413213(),{rowInsertionRanges:_0x50d637,columnInsertionRanges:_0x4aff77,insertionRanges:_0x63f295,deletionRanges:_0x24f1f0,cells:_0x5b7336}=_0x4ab4ee;_0x50d637['length']&&_0x48030c['markMultiRangeInsertion'](_0x50d637,'tablePasteRow',{'tablePasteChainId':_0x173bbb}),_0x4aff77['length']&&_0x48030c['markMultiRangeInsertion'](_0x4aff77,'tablePasteColumn',{'tablePasteChainId':_0x173bbb}),_0x63f295['length']&&(_0x48030c['markMultiRangeInsertion'](_0x63f295,'tablePaste',{'tablePasteChainId':_0x173bbb,'skipNestingCheck':!0x0}),_0x63f295['forEach'](_0x5d8125=>_0x5d8125['detach']?.())),_0x24f1f0['length']&&(_0x48030c['markMultiRangeDeletion'](_0x24f1f0,'tablePaste',{'tablePasteChainId':_0x173bbb,'skipNestingCheck':!0x0}),_0x24f1f0['forEach'](_0x316fb2=>_0x316fb2['detach']?.()));const _0x5d840a=_0x48030c['markMultiRangeBlockFormat'](_0x5b7336['map'](({element:_0x299f2f})=>_0x299f2f),{'formatGroupId':_0x413213()},[],'tablePasteCell',{'tablePasteChainId':_0x173bbb});if(_0x5d840a){const _0x1e6eb6=_0x5d840a['getMarkers'](),_0x41a0de=[];for(const {element:_0x5a8efb,attributes:_0x10f847}of _0x5b7336){if(!_0x10f847)continue;const _0x365af2=_0x429fa2['model']['createRangeOn'](_0x5a8efb),_0x1e69ea=_0x1e6eb6['find'](_0x3154e7=>_0x3154e7['getRange']()['isEqual'](_0x365af2));_0x1e69ea&&_0x41a0de['push']([_0x1e69ea['name'],_0x10f847]);}_0x41a0de['length']&&_0x5d840a['setAttribute']('markerAttributes',Object['fromEntries'](_0x41a0de));}_0x4ab4ee=null;}));},{'priority':_0x3dec8d['high']+0xa}),_0x429fa2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33c4f6,_0x7dc426)=>{const [_0x5a92e1,_0x49bfaa,,_0x4b4948]=_0x7dc426;if(!_0x4ab4ee)return;_0x33c4f6['stop']();const _0x339564=_0x5a92e1['cell'],_0x4914c3=_0x49bfaa,_0x2b6277=ke(_0x339564),_0x925225=ke(_0x4914c3);_0x33c4f6['return']=_0x339564;let _0x23aea3=null,_0x29aaf8=null;if(_0x925225||_0x2b6277){if(_0x2b6277&&!_0x925225){_0x4b4948['remove'](_0x339564['getChild'](0x0));for(const _0x54cdd8 of Array['from'](_0x4914c3['getChildren']()))_0x4b4948['insert'](_0x54cdd8,_0x339564,'end');const _0x56b0f6=_0x4ab4ee['rowInsertionIndexes']['includes'](_0x5a92e1['row']),_0x237ca3=_0x4ab4ee['columnInsertionIndexes']['includes'](_0x5a92e1['column']);_0x56b0f6||_0x237ca3||(_0x23aea3=_0x531671['fromRange'](_0x4b4948['createRangeIn'](_0x339564)));}else _0x925225&&!_0x2b6277&&(_0x29aaf8=_0x4b4948['createRangeIn'](_0x339564));}else{const _0x29c176=_0x4b4948['createElement']('tableCellSuggestion'),_0x382d8f=_0x4b4948['createElement']('tableCellSuggestion');_0x4b4948['wrap'](_0x4b4948['createRangeIn'](_0x339564),_0x382d8f),_0x4b4948['insert'](_0x29c176,_0x339564,0x0);for(const _0x4eefbd of Array['from'](_0x4914c3['getChildren']()))_0x4b4948['insert'](_0x4eefbd,_0x29c176,'end');_0x23aea3=_0x531671['fromRange'](_0x4b4948['createRangeOn'](_0x29c176)),_0x29aaf8=_0x531671['fromRange'](_0x4b4948['createRangeOn'](_0x382d8f));}const _0x1449fb=Array['from'](_0x4914c3['getAttributes']())['filter'](([_0x221dd4])=>Pe['includes'](_0x221dd4));_0x4ab4ee['cells']['push']({'element':_0x339564,'attributes':_0x1449fb['length']?Object['fromEntries'](_0x1449fb):null}),_0x23aea3&&_0x4ab4ee['insertionRanges']['push'](_0x23aea3),_0x29aaf8&&_0x4ab4ee['deletionRanges']['push'](_0x29aaf8);},{'priority':'high'}),_0x46a982['on']('insertColumns',(_0x32e986,_0x1fde29)=>{const [_0x395193,_0x110a32={}]=_0x1fde29;if(!_0x4ab4ee)return;const _0x22b35e=_0x110a32['at']||0x0,_0x5ee7e0=_0x110a32['columns']||0x1;_0x4ab4ee['columnInsertionIndexes']=new Array(_0x5ee7e0)['fill'](_0x22b35e)['map']((_0x470af7,_0x4b8a7d)=>_0x470af7+_0x4b8a7d);for(const {cell:_0x31c283}of _0x46a982['createTableWalker'](_0x395193,{'startColumn':_0x22b35e,'endColumn':_0x22b35e+_0x5ee7e0-0x1}))_0x4ab4ee['columnInsertionRanges']['push'](_0x429fa2['model']['createRangeOn'](_0x31c283));},{'priority':'low'}),_0x46a982['on']('insertRows',(_0xceadd9,_0x5db46b)=>{const [_0x1a2b25,_0x531e77={}]=_0x5db46b;if(!_0x4ab4ee)return;const _0x317aeb=_0x531e77['at']||0x0,_0xa25307=_0x531e77['rows']||0x1;_0x4ab4ee['rowInsertionIndexes']=new Array(_0xa25307)['fill'](_0x317aeb)['map']((_0x1369ca,_0x4e6f55)=>_0x1369ca+_0x4e6f55);for(const {cell:_0x5ea697}of _0x46a982['createTableWalker'](_0x1a2b25,{'startRow':_0x317aeb,'endRow':_0x317aeb+_0xa25307-0x1}))_0x4ab4ee['rowInsertionRanges']['push'](_0x429fa2['model']['createRangeOn'](_0x5ea697));},{'priority':'low'}),_0x48030c['descriptionFactory']['registerDescriptionCallback'](_0x7058b2=>{if(_0x7058b2['subType']&&_0x7058b2['subType']['startsWith']('tablePaste'))return _0x7058b2['previous']?{}:{'type':'insertion','content':o(_0x429fa2['locale'],'*Replace\x20table\x20cells*')};});const _0x25a501=()=>!0x1;for(const _0x3b933f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b933f,'join',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b933f,'join',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b933f,'join',_0x25a501);_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x25a501),_0x48030c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37970e,_0x11425b,_0x3b084c)=>{const _0x50416b=_0x37970e['map'](_0xadf281=>_0xadf281['getContainedElement']())['filter'](_0x37e033=>_0x37e033),_0x3b6510=new Map(_0x50416b['map'](_0xaff73=>[_0xaff73,null]));if(_0x4ab4ee){for(const {element:_0x23ffee,attributes:_0x291e05}of _0x4ab4ee['cells'])_0x291e05&&_0x3b6510['set'](_0x23ffee,_0x291e05);}else{if(_0x3b084c&&_0x3b084c['markerAttributes'])for(const [_0x3ebb96,_0x448e9f]of Object['entries'](_0x3b084c['markerAttributes'])){const _0x3a22ff=_0x429fa2['model']['markers']['get'](_0x3ebb96),_0x3244fa=_0x3a22ff?_0x3a22ff['getRange']()['getContainedElement']():null;_0x3244fa&&_0x3b6510['set'](_0x3244fa,_0x448e9f);}}_0x429fa2['model']['change'](_0xc67455=>{for(const [_0xf6b5e6,_0x27a676]of _0x3b6510)_0xc67455['setAttributes']({...we,..._0x27a676},_0xf6b5e6);});});const _0x51269c=(_0x5a9fbc,_0x5d7b30)=>{_0x48030c['_suggestionFactory']['registerCustomCallback'](_0x5a9fbc,'tablePaste',_0x5d7b30,(_0x4d3a07,_0x30d7d7,_0x44ad89)=>{_0x429fa2['model']['change'](_0x5b2b9f=>{const _0x284793=[];for(const _0x50e5d5 of _0x4d3a07){const _0x4b5ebe=_0x50e5d5['start']['nodeAfter'];_0x4b5ebe['is']('element','tableCellSuggestion')&&_0x284793['push'](_0x4b5ebe);}_0x48030c['_suggestionFactory']['getSuggestionCallback'](_0x5a9fbc,null,_0x5d7b30)(_0x4d3a07,_0x30d7d7,_0x44ad89);for(const _0x309f9c of _0x284793)'$graveyard'!=_0x309f9c['root']['rootName']&&_0x5b2b9f['unwrap'](_0x309f9c);});});};_0x51269c('insertion','accept'),_0x51269c('insertion','discard'),_0x51269c('deletion','accept'),_0x51269c('deletion','discard'),_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f4433=>{const _0x3b336c=_0x3f4433['map'](_0x2a37ec=>_0x2a37ec['getContainedElement']()),_0x1215e9=_0x3b336c[0x0]['findAncestor']('table'),{minRow:_0x161f45,maxRow:_0x15acd6}=_0x5dec82['_getCoordsForCells'](_0x3b336c);_0x46a982['removeRows'](_0x1215e9,{'at':_0x161f45,'rows':_0x15acd6-_0x161f45+0x1});}),_0x48030c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1aca1c=>{const _0x1c37da=_0x1aca1c['map'](_0x9c8d9d=>_0x9c8d9d['getContainedElement']()),_0x51bcc9=_0x1c37da[0x0]['findAncestor']('table'),{minColumn:_0x4b5c4d,maxColumn:_0x2f6f39}=_0x5dec82['_getCoordsForCells'](_0x1c37da);_0x46a982['removeColumns'](_0x51bcc9,{'at':_0x4b5c4d,'columns':_0x2f6f39-_0x4b5c4d+0x1});});const _0x59d54c=(_0x5332bf,_0x1c5c3f)=>{if(!_0x1c5c3f['subType']||!_0x1c5c3f['subType']['startsWith']('tablePaste'))return;const _0x5063ae=_0x1c5c3f['attributes']['tablePasteChainId'],_0x5dab47=_0x48030c['getSuggestions']()['filter'](_0x5b6991=>_0x5b6991['isInContent']&&_0x5b6991['attributes']&&_0x5b6991['attributes']['tablePasteChainId']==_0x5063ae);_0x5dab47['length']&&_0x1c5c3f['getAllAdjacentSuggestions']()['length']!=_0x5dab47['length']&&_0x5dab47['reduce']((_0x420084,_0x522c62)=>(_0x420084['next']=_0x522c62,_0x522c62['previous']=_0x420084,_0x522c62));};function _0x7b314f(_0x1caac7,_0x286e7d=!0x0){const {id:_0x398b02,authorId:_0x5a1ef7}=_0x48030c['_splitMarkerName'](_0x1caac7['markerName']),_0x5e0559=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4fd45a=_0x48030c['activeMarkers']['includes'](_0x1caac7['markerName']);return _0x4fd45a&&_0x5e0559['push']('ck-suggestion-marker--active'),{'classes':_0x5e0559,'attributes':{'data-suggestion':_0x398b02,'data-author-id':_0x5a1ef7},'priority':_0x4fd45a&&_0x286e7d?0xbc2:0xbb8};}_0x48030c['on']('suggestionLoaded',_0x59d54c,{'priority':'high'}),_0x48030c['on']('suggestionUnloaded',_0x59d54c,{'priority':'high'}),_0x429fa2['model']['document']['registerPostFixer'](()=>{let _0x5ad33e=!0x1;const _0x4f3338=Array['from'](_0x429fa2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x382806,data:_0x49b2d6}of _0x4f3338){const {group:_0x4e9bd3,type:_0x48d0b5,id:_0x5a037b}=_0x48030c['_splitMarkerName'](_0x382806);if('suggestion'!=_0x4e9bd3||'deletion'!=_0x48d0b5||_0x49b2d6['oldRange'])continue;if(!_0x48030c['hasSuggestion'](_0x5a037b))continue;const _0x6a770c=_0x48030c['getSuggestion'](_0x5a037b)['getRanges'](),_0x4d0725=_0x429fa2['plugins']['get']('Users')['me'];for(const _0x5c65f9 of _0x48030c['getSuggestions']()){if(!_0x5c65f9['isInContent']||_0x5c65f9['author']!=_0x4d0725)continue;if('formatBlock'!=_0x5c65f9['type']||'tablePasteCell'!=_0x5c65f9['subType'])continue;if(_0x5c65f9['getRanges']()['every'](_0x5c4ae5=>_0x6a770c['some'](_0x2ec14e=>_0x2ec14e['containsRange'](_0x5c4ae5,!0x0)))){for(const _0x4c0f38 of _0x5c65f9['getAllAdjacentSuggestions']())_0x4c0f38['isInContent']&&(_0x4c0f38['discard'](),_0x5ad33e=!0x0);}}}return _0x5ad33e;}),_0x429fa2['model']['document']['registerPostFixer'](_0x4e3b45=>{const _0x4b196d=_0x429fa2['commands']['get']('redo');if(!_0x4b196d||!_0x4b196d['_createdBatches']['has'](_0x4e3b45['batch']))return!0x1;let _0x5568da=!0x1;const _0xdb686=_0x429fa2['plugins']['get']('Users')['me'],_0x24d973=_0x429fa2['model']['document']['differ']['getChanges'](),_0x49f800=Array['from'](_0x429fa2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c4972,data:_0x2c384c})=>{const {group:_0x14bf38,subType:_0x548e39,authorId:_0xafd35a}=_0x48030c['_splitMarkerName'](_0x3c4972);return'suggestion'==_0x14bf38&&'tablePaste'==_0x548e39&&_0xafd35a==_0xdb686['id']&&!_0x2c384c['oldRange'];});for(const _0x12a4b4 of _0x24d973){if('insert'!=_0x12a4b4['type']||'tableCellSuggestion'!=_0x12a4b4['name']||0x1!=_0x12a4b4['length'])continue;const _0xef8bb5=_0x4e3b45['createRange'](_0x12a4b4['position'],_0x12a4b4['position']['getShiftedBy'](0x1));if(!_0x49f800['find'](({data:_0x2a731d})=>_0x2a731d['newRange']['isEqual'](_0xef8bb5))){for(const {name:_0x2ca62a,data:_0x2eb6ac}of _0x49f800)if(_0xef8bb5['containsRange'](_0x2eb6ac['newRange'])){_0x4e3b45['updateMarker'](_0x2ca62a,{'range':_0xef8bb5}),_0x5568da=!0x0;break;}}}return _0x5568da;}),_0x429fa2['model']['document']['registerPostFixer'](_0x30eb0c=>{let _0x148a2f=!0x1;const _0x17380c=_0x429fa2['plugins']['get']('Users')['me'],_0x5d65d1=_0x48030c['getSuggestions']()['filter'](_0x2c0140=>_0x2c0140['isInContent']&&_0x2c0140['author']==_0x17380c),_0x3f3b36=new Set(),_0x295718=new Set();for(const _0x14d085 of _0x5d65d1)if('tablePaste'==_0x14d085['subType'])for(const _0x3ac77c of _0x14d085['getMarkers']()){const _0x415331=_0x3ac77c['getRange']()['getContainedElement']();if(_0x415331){if(_0x415331['is']('element','tableCellSuggestion')&&ke(_0x415331)){_0x14d085['removeMarker'](_0x3ac77c['name']),_0x3f3b36['add'](_0x415331),_0x148a2f=!0x0;const _0x10fc72=_0x415331['nextSibling'],_0x4a7958=_0x415331['previousSibling'],_0x632c7a=_0x10fc72&&_0x10fc72['is']('element','tableCellSuggestion'),_0x9f1ff7=_0x4a7958&&_0x4a7958['is']('element','tableCellSuggestion');_0x632c7a&&!_0x3f3b36['has'](_0x10fc72)&&_0x295718['add'](_0x10fc72),_0x9f1ff7&&!_0x3f3b36['has'](_0x4a7958)&&_0x295718['add'](_0x4a7958);}else _0x415331['is']('element','paragraph')&&_0x415331['isEmpty']&&(_0x14d085['removeMarker'](_0x3ac77c['name']),_0x148a2f=!0x0);}}else{if('tablePasteCell'==_0x14d085['subType']){if(!_0x14d085['attributes']||!_0x14d085['attributes']['tablePasteChainId'])continue;const _0x119d1f=_0x14d085['attributes']['markerAttributes'];if(_0x119d1f&&Object['keys'](_0x119d1f)['length'])continue;const _0x369a39=_0x14d085['attributes']['tablePasteChainId'];let _0x4eebd3=!0x0,_0x404aee=!0x0;for(const _0x408590 of _0x5d65d1)if(_0x408590['subType']&&_0x408590['subType']['startsWith']('tablePaste')){if(!_0x408590['attributes']['tablePasteChainId']){_0x404aee=!0x1;break;}if(_0x408590['id']!=_0x14d085['id']&&_0x408590['attributes']['tablePasteChainId']==_0x369a39){_0x4eebd3=!0x1;break;}}_0x404aee&&_0x4eebd3&&(_0x14d085['removeMarkers'](),_0x148a2f=!0x0);}}for(const _0x2343f3 of _0x3f3b36)_0x30eb0c['remove'](_0x2343f3);for(const _0x54a4ca of _0x295718)_0x30eb0c['unwrap'](_0x54a4ca);return _0x148a2f;}),_0x429fa2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x504824=>_0x7b314f(_0x504824),'converterPriority':'high'}),_0x429fa2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4370f9,_0x49e1cf)=>_0x49e1cf['options']['showSuggestionHighlights']?_0x7b314f(_0x4370f9,!0x1):null,'converterPriority':'high'});const _0x36732c=_0x429fa2['editing']['view'];this['listenTo'](_0x36732c['document'],'clipboardOutput',(_0x5c2d75,_0x2e8e85)=>{const _0x54c1a6=[];for(const _0x3498d7 of _0x36732c['createRangeIn'](_0x2e8e85['content'])['getItems']())_0x3498d7['is']('element','suggestion-td')&&_0x54c1a6['push'](_0x3498d7);_0x36732c['change'](_0x45b0d1=>{for(const _0x33d4da of _0x54c1a6)_0x45b0d1['move'](_0x45b0d1['createRangeIn'](_0x33d4da),_0x45b0d1['createPositionBefore'](_0x33d4da)),_0x45b0d1['remove'](_0x33d4da);});});}}function ke(_0x4e0c75){if(_0x4e0c75['isEmpty'])return!0x0;const _0x52b227=_0x4e0c75['getChild'](0x0);return _0x52b227['is']('element','paragraph')&&_0x52b227['isEmpty'];}function Re(_0x6de90,_0xa31a97={},_0x4de12f){for(const {isAnchor:_0xbebf76,cellHeight:_0x2150b2,cellWidth:_0x5319c0}of _0x4de12f['createTableWalker'](_0x6de90,{'includeAllSlots':!0x0,..._0xa31a97}))if(!_0xbebf76||0x1!=_0x2150b2||0x1!=_0x5319c0)return!0x1;return!0x0;}class Nt extends _0x409965{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cc4ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cc4ab['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cc4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cc4ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cc4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cc4ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cc4ab['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3c55bf,_0x862878){const _0x4c3426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ecb4c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4e9e01=_0x862878['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d4e51=_0x1ecb4c['getColumnGroupElement'](_0x4e9e01);let _0xf89bb=_0x2d4e51?_0x1ecb4c['getTableColumnsWidths'](_0x2d4e51):null,_0x586509=_0x4e9e01['getAttribute']('tableWidth')||null;const _0x30ec8b=_0x862878['tableWidth']||_0x586509,_0xfc47a2=_0x862878['columnWidths']||_0xf89bb,_0x2682e6=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fd50f of _0x4c3426['getSuggestions']()){const _0x63bc55=_0x4fd50f['getContainedElement']();if('resizeTable'===_0x4fd50f['subType']&&_0x63bc55===_0x4e9e01){_0x4fd50f['author']!==_0x2682e6&&_0x4fd50f['discard']();const _0xd000b8=_0x4fd50f['data']['commandParams'];_0x586509=_0xd000b8[0x0]['tableWidth'],_0xf89bb=_0xd000b8[0x0]['columnWidths'];break;}}_0x3c55bf({'table':_0x4e9e01,'tableWidth':_0x30ec8b,'columnWidths':_0xfc47a2}),_0x4c3426['markBlockFormat'](_0x4e9e01,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x586509,'columnWidths':_0xf89bb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcce72){if('formatBlock'!=_0xcce72['type']&&'formatInline'!=_0xcce72['type'])return;const {data:_0x1933ab}=_0xcce72;if(_0x1933ab&&'resizeTable'===_0x1933ab['formatGroupId']){const _0x3f1a4d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3f1a4d)};}}}class Dt extends _0x409965{['afterInit'](){const _0x13d1db=this['editor'];_0x13d1db['plugins']['has']('Template')&&_0x13d1db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x409965{['afterInit'](){const _0x371dcb=this['editor'];if(!_0x371dcb['commands']['get']('insertTableOfContents'))return;_0x371dcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33d15a=_0x371dcb['plugins']['get']('TrackChangesEditing'),_0x5afaa6=_0x371dcb['locale'];_0x33d15a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a5e57=>o(_0x5afaa6,'ELEMENT_TABLE_OF_CONTENTS',_0x2a5e57));}}class $t extends _0x409965{['afterInit'](){const _0x2484f0=this['editor'];if(!_0x2484f0['plugins']['has']('Title'))return;const _0x2a560f=_0x2484f0['plugins']['get']('TrackChangesEditing');_0x2a560f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2484f0['locale'],'ELEMENT_TITLE')),_0x2484f0['model']['document']['registerPostFixer'](_0x2c86fa=>{let _0x32af8b=!0x1;const _0x18607f=Array['from'](_0x2484f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29625e,data:_0x1b6980}of _0x18607f){const {group:_0xb68505}=_0x2a560f['_splitMarkerName'](_0x29625e);if('suggestion'!==_0xb68505||!_0x1b6980['newRange'])continue;const _0x5426c8=_0x1b6980['newRange'],_0x4df234=_0x5426c8['end']['nodeBefore'];if(!_0x4df234||!_0x4df234['is']('element','title-content'))continue;if(!_0x5426c8['start']['isTouching'](_0x5426c8['end']))continue;const _0x27bc1e=_0x2484f0['model']['schema']['getNearestSelectionRange'](_0x5426c8['end'],'forward');if(_0x27bc1e&&_0x27bc1e['isCollapsed']){const _0x231425=_0x2c86fa['createRange'](_0x5426c8['start'],_0x27bc1e['start']);_0x231425['isEqual'](_0x5426c8)||(_0x2c86fa['updateMarker'](_0x29625e,{'range':_0x231425}),_0x32af8b=!0x0);}_0x32af8b||(_0x2c86fa['removeMarker'](_0x29625e),_0x32af8b=!0x0);}return _0x32af8b;});}}class Bt extends _0x409965{['afterInit'](){const _0xfe0728=this['editor'],_0x497183=_0xfe0728['plugins']['get']('TrackChangesEditing');_0xfe0728['plugins']['has']('UndoEditing')&&(_0x497183['enableCommand']('undo'),_0x497183['enableCommand']('redo'));}}class xt extends _0x409965{static get['requires'](){return[It];}['afterInit'](){const _0x2e96cc=this['editor'];if(!_0x2e96cc['plugins']['has']('TableCaptionEditing'))return;_0x2e96cc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x409965{['tableProperties'];['tableCellProperties'];constructor(_0x44b94c){super(_0x44b94c),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';}['afterInit'](){const _0x202062=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x318133 of this['tableProperties'])_0x202062['enableCommand'](_0x318133,(_0x285a4,_0x1a872f)=>{const _0x1867bd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x318133,[_0x1867bd],this['tableProperties'],'tableProperties',_0x285a4,_0x1a872f);});_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x202062['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x166770,_0x65d8f8)=>this['handleDiscardAction'](this['tableProperties'],_0x166770,_0x65d8f8)),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56ab0d of this['tableCellProperties'])_0x202062['enableCommand'](_0x56ab0d,(_0x3e5426,_0x11e0d6)=>{const _0x5bfb8c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56ab0d,_0x5bfb8c,this['tableCellProperties'],'tableCellProperties',_0x3e5426,_0x11e0d6);});_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x202062['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5aa15b,_0x1f38d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5aa15b,_0x1f38d2)),_0x202062['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x202062['descriptionFactory']['registerDescriptionCallback'](_0x1ac4ee=>this['handleSuggestionDescription'](_0x1ac4ee));}['_handlePropertyChange'](_0x556253,_0x1f5d14,_0x558849,_0x6106bf,_0x5327a9,_0x58507d){const _0xe2385d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x58507d['batch'],()=>{for(const _0x27c275 of _0x1f5d14){if(this['_getSuggestion'](_0x27c275,_0x6106bf))_0x5327a9(_0x58507d);else{const _0x2fa5b3={};for(const _0x16838c of _0x558849){const _0x495612=_0x27c275['getAttribute'](_0x16838c);void 0x0!==_0x495612&&(_0x2fa5b3[_0x16838c]=_0x495612);}_0x5327a9(_0x58507d),_0xe2385d['markBlockFormat'](_0x27c275,{'commandParams':[_0x2fa5b3]},[],_0x6106bf);}}});}['handleDiscardAction'](_0x1ef24a,_0x2a1e93,_0x5114e2){const _0x11cc02=_0x2a1e93[0x0]['start']['nodeAfter'],_0x5e19eb=_0x5114e2['commandParams'][0x0];this['editor']['model']['change'](_0x4b8fbe=>{for(const _0x467966 of _0x1ef24a)void 0x0!==_0x5e19eb[_0x467966]?_0x4b8fbe['setAttribute'](_0x467966,_0x5e19eb[_0x467966],_0x11cc02):_0x4b8fbe['removeAttribute'](_0x467966,_0x11cc02);});}['handleSuggestionDescription'](_0x29397b){if(_0x29397b['data'])switch(_0x29397b['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'](_0x3b01c4,_0x5d016e){const _0x5db37b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x152fec of _0x5db37b['getSuggestions']({'skipNotAttached':!0x0})){const _0x120e6a=_0x152fec['getContainedElement']();if(_0x152fec['subType']===_0x5d016e&&_0x120e6a===_0x3b01c4)return _0x152fec;}return null;}}const m='$elementName';class p extends _0x409965{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xf1e53e,_0x2c8515,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x53924c){function _0x56e213(_0x3271b7){return _0x3271b7['map'](_0x26357a=>String['fromCharCode'](_0x26357a))['join']('');}super(_0x53924c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a435a,_0x187496,_0x2faf45,_0x4fece1)=>{this['_model']['change'](()=>{for(const _0x18ae52 of[..._0x4fece1,..._0x2faf45])this['_model']['markers']['has'](_0x18ae52)&&_0x53924c['editing']['reconvertMarker'](_0x18ae52);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x53924c['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(),_0x53924c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53924c['config']['get']('trackChanges.trackFormatChanges'),_0x53924c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53924c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x53924c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x56e213([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56e213([0x34,0x30,0x34,0x38,0x32,0x30,0x31,0x30]);}['init'](){const _0x5f073e=this['editor'],_0x267564=(_0x2c50f2,_0x13ae02)=>{if('attribute'!=_0x2c50f2)return'ck-suggestion-marker-'+_0x2c50f2;const _0xe8364c=_0x13ae02['split']('|')[0x0];return this['_isBlockAttribute'](_0xe8364c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f073e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1751ab=>{const {id:_0x25e958,authorId:_0x40842c,type:_0x52a9bc,subType:_0x291d8e}=this['_splitMarkerName'](_0x1751ab['markerName']),_0x596e1d=['ck-suggestion-marker',_0x267564(_0x52a9bc,_0x291d8e)];let _0x42cf2f=0xbb8;return this['activeMarkers']['includes'](_0x1751ab['markerName'])&&(_0x596e1d['push']('ck-suggestion-marker--active'),_0x42cf2f=0xbc2),'deletion'==_0x52a9bc&&(_0x42cf2f+=0x5),{'classes':_0x596e1d,'attributes':{'data-suggestion':_0x25e958,'data-author-id':_0x40842c},'priority':_0x42cf2f};}}),_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x474dd7=>{_0x474dd7['on']('addMarker:suggestion',(_0x22f777,_0x4a60f4,_0x515173)=>{if(!_0x515173['options']['showSuggestionHighlights'])return;const _0x160ee0=_0x4a60f4['item'];if(!_0x160ee0)return;const _0x515df2=_0x515173['mapper']['toViewElement'](_0x160ee0);_0x5f073e['model']['schema']['isObject'](_0x160ee0)&&_0x515df2&&!_0x515df2['getCustomProperty']('widget')&&_0x515df2['is']('containerElement')&&_0xa3b2cd(_0x515df2,_0x515173['writer']);},{'priority':'high'});}),_0x5f073e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57ec9a,_0x772ace)=>{if(!_0x772ace['options']['showSuggestionHighlights'])return null;const {type:_0x52f5e1,subType:_0x4f713f}=this['_splitMarkerName'](_0x57ec9a['markerName']);return{'classes':['ck-suggestion-marker',_0x267564(_0x52f5e1,_0x4f713f)],'priority':0xbb8};}});const _0x23f7e0=({showActiveMarkers:_0x1768aa=!0x0,isAttributeSuggestion:_0x4e7f36=!0x1}={})=>(_0x14bd1d,_0x4726dc,_0x3446a5)=>{if(!_0x4726dc['item'])return;const {id:_0x43fd87,authorId:_0x25149a}=this['_splitMarkerName'](_0x4726dc['markerName']);if(_0x4e7f36){const _0x1e208a=this['_suggestions']['get'](_0x43fd87),_0x34c4ff=this['_getAttributeKey'](_0x1e208a);if(!this['_isBlockAttribute'](_0x34c4ff))return;}if(_0x4726dc['item']['is']('selection'))return void _0x3446a5['consumable']['consume'](_0x4726dc['item'],_0x14bd1d['name']);const _0x56997b=_0x3446a5['mapper']['toViewElement'](_0x4726dc['item']);if(_0x4726dc['item']['is']('element')&&_0x5f073e['model']['schema']['isBlock'](_0x4726dc['item'])&&!_0x56997b['getCustomProperty']('addHighlight')){_0x3446a5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56997b),_0x3446a5['writer']['setAttribute']('data-suggestion',_0x43fd87,_0x56997b),_0x3446a5['writer']['setAttribute']('data-author-id',_0x25149a,_0x56997b),_0x3446a5['mapper']['bindElementToMarker'](_0x56997b,_0x4726dc['markerName']),_0x1768aa&&(this['activeMarkers']['includes'](_0x4726dc['markerName'])?_0x3446a5['writer']['addClass']('ck-suggestion-marker--active',_0x56997b):_0x3446a5['writer']['removeClass']('ck-suggestion-marker--active',_0x56997b));for(const _0x5ee1fc of _0x5f073e['model']['createRangeIn'](_0x4726dc['item'])['getItems']())_0x3446a5['consumable']['consume'](_0x5ee1fc,_0x14bd1d['name']);_0x3446a5['consumable']['consume'](_0x4726dc['item'],_0x14bd1d['name']);}};_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x22366c=>{_0x22366c['on']('addMarker:suggestion:formatBlock',(_0x5ac1f0,_0x10540f,_0x1b0731)=>{_0x1b0731['options']['showSuggestionHighlights']&&_0x23f7e0({'showActiveMarkers':!0x1})(_0x5ac1f0,_0x10540f,_0x1b0731);},{'priority':'highest'});}),_0x5f073e['conversion']['for']('dataDowncast')['add'](_0x3b4679=>{_0x3b4679['on']('addMarker:suggestion:attribute',(_0x20de89,_0x551154,_0x64192f)=>{_0x64192f['options']['showSuggestionHighlights']&&_0x23f7e0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20de89,_0x551154,_0x64192f);},{'priority':'highest'});}),_0x5f073e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x34b8cd,_0x2a11a9)=>_0x2a11a9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x34b8cd['substr'](0xb)}}),_0x5f073e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x378df4,{writer:_0x1d4aa7})=>{let _0x2106fe='suggestion:'+_0x378df4['getAttribute']('suggestion-type')+':'+_0x378df4['getAttribute']('id');return _0x378df4['getAttribute']('marker-count')&&(_0x2106fe+=':'+_0x378df4['getAttribute']('marker-count')),_0x1d4aa7['createElement']('$marker',{'data-name':_0x2106fe});}}),_0x5f073e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x37efaa=>{_0x37efaa['on']('addMarker:suggestion:formatBlock',_0x23f7e0(),{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x179ec5=>{_0x179ec5['on']('addMarker:suggestion:attribute',_0x23f7e0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x32a52c=>{_0x32a52c['on']('removeMarker:suggestion:formatBlock',(_0xe85c27,_0x153d9d,_0x59e26d)=>{const _0x51484c=_0x59e26d['mapper']['markerNameToElements'](_0x153d9d['markerName']);if(_0x51484c){for(const _0x39c2c5 of _0x51484c)_0x39c2c5['getCustomProperty']('addHighlight')||(_0x59e26d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39c2c5),_0x59e26d['writer']['removeAttribute']('data-suggestion',_0x39c2c5),_0x59e26d['writer']['removeAttribute']('data-author-id',_0x39c2c5),_0x59e26d['mapper']['unbindElementFromMarkerName'](_0x39c2c5,_0x153d9d['markerName']));}},{'priority':'high'});}),_0x5f073e['conversion']['for']('editingDowncast')['add'](_0x5e3b21=>{_0x5e3b21['on']('removeMarker:suggestion:attribute',(_0x3d0e72,_0x8b6ee7,_0x40d201)=>{const _0x53cc5a=_0x40d201['mapper']['markerNameToElements'](_0x8b6ee7['markerName']);if(!_0x53cc5a)return;const {id:_0x26a314}=this['_splitMarkerName'](_0x8b6ee7['markerName']),_0x18e928=this['_suggestions']['get'](_0x26a314),_0x43e5b0=this['_getAttributeKey'](_0x18e928);if(this['_isBlockAttribute'](_0x43e5b0)){for(const _0x17fe97 of _0x53cc5a)_0x17fe97['getCustomProperty']('addHighlight')||(_0x40d201['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17fe97),_0x40d201['writer']['removeAttribute']('data-suggestion',_0x17fe97),_0x40d201['writer']['removeAttribute']('data-author-id',_0x17fe97),_0x40d201['mapper']['unbindElementFromMarkerName'](_0x17fe97,_0x8b6ee7['markerName']));}},{'priority':'high'});}),_0x5f073e['model']['document']['registerPostFixer'](_0x10bc65=>{let _0x8acc41=!0x1;const _0x294965=Array['from'](_0x5f073e['model']['document']['differ']['getChangedMarkers']()),_0x1b5762=new Set();for(const {name:_0x1b577d,data:_0x643b00}of _0x294965){const {group:_0x3da391,type:_0x3d7d7,subType:_0x35bf7d,id:_0x171f94}=this['_splitMarkerName'](_0x1b577d);if('suggestion'!==_0x3da391)continue;const _0x280a74=this['_suggestions']['get'](_0x171f94);if(null!=_0x643b00['newRange']){'formatInline'==_0x3d7d7&&(_0x8acc41=_0x8acc41||Ut(_0x643b00['newRange'],_0x1b577d,_0x10bc65,_0x5f073e['model']['schema']));const _0x143964='attribute'==_0x3d7d7&&this['_isBlockAttribute'](_0x35bf7d['split']('|')[0x0]);if(_0x643b00['newRange']['isCollapsed']||'$graveyard'==_0x643b00['newRange']['root']['rootName']||'formatBlock'==_0x3d7d7&&!Ft(_0x643b00['newRange'])||_0x143964&&!Ft(_0x643b00['newRange'])||'deletion'==_0x3d7d7&&!(!Vt(_0x3f63c2=_0x643b00['newRange'])&&!function(_0x2e143c){return _0x2e143c['start']['parent']==_0x2e143c['end']['nodeBefore']&&_0x2e143c['start']['isAtEnd'];}(_0x3f63c2)))_0x10bc65['removeMarker'](_0x1b577d),_0x8acc41=!0x0;else{if(!_0x280a74||!_0x280a74['isInContent'])continue;if(_0x643b00['newRange']&&_0x643b00['oldRange']&&_0x643b00['newRange']['isEqual'](_0x643b00['oldRange']))continue;_0x1b5762['add'](_0x280a74);}}}var _0x3f63c2;return _0x1b5762['size']>0x0&&(_0x8acc41=!!this['_joinWithAdjacentSuggestions'](_0x1b5762)||_0x8acc41),_0x8acc41;}),_0x5f073e['model']['document']['registerPostFixer'](_0x66b984=>{let _0x1fa0ce=!0x1;for(const _0x2b9461 of _0x5f073e['model']['document']['differ']['getChanges']())if('insert'==_0x2b9461['type'])for(const _0x4aab12 of this['_suggestions']['values']()){if(_0x4aab12['isMultiRange']||!_0x4aab12['isInContent'])continue;const _0x4f1ca6='formatBlock'==_0x4aab12['type'],_0x7caca=this['_getAttributeKey'](_0x4aab12),_0x5c45c3=_0x7caca&&this['_isBlockAttribute'](_0x7caca);if(!_0x4f1ca6&&!_0x5c45c3)continue;const _0x5c3a33=_0x4aab12['getFirstRange']();if(_0x5c3a33['start']['parent']!=_0x5c3a33['end']['parent']&&!_0x5c3a33['end']['isAtEnd']){const _0x4794a0=_0x5f073e['model']['createPositionAt'](_0x5c3a33['start']['nodeAfter'],'end'),_0x218d49=_0x5f073e['model']['createRange'](_0x5c3a33['start'],_0x4794a0);_0x66b984['updateMarker'](_0x4aab12['getFirstMarker'](),{'range':_0x218d49}),_0x1fa0ce=!0x0;}}return _0x1fa0ce;}),_0x5f073e['model']['document']['registerPostFixer'](_0x853f45=>this['_processAttributeChanges'](_0x853f45)),_0x5f073e['model']['document']['registerPostFixer'](_0x3eb26f=>!_0x3eb26f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3eb26f)),_0x5f073e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f073e['model']['document']['on']('change:data',(_0x16915a,_0x1794d9)=>{if(!_0x1794d9['isLocal']||_0x1794d9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x47ed37=_0x5f073e['model']['document']['differ']['getChanges']();if(0x0==_0x47ed37['length'])return;const _0x1bbad9=[],_0x196dc8=_0x47ed37['filter'](_0x34ac1b=>'attribute'==_0x34ac1b['type']),_0x2959ba=_0x47ed37['filter'](_0x151880=>'insert'==_0x151880['type']&&'$text'!=_0x151880['name']);for(const _0xa35aaa of _0x196dc8)this['_isRegisteredAttribute'](_0xa35aaa['attributeKey'])&&_0x1bbad9['push']({'key':_0xa35aaa['attributeKey'],'newValue':_0xa35aaa['attributeNewValue'],'oldValue':_0xa35aaa['attributeOldValue'],'range':Pt(_0xa35aaa['range'],_0x5f073e['model'])});for(const _0x21e2cb of _0x2959ba){if('rename'!=_0x21e2cb['action']&&'refresh'!=_0x21e2cb['action'])continue;const _0x118ad7=Lt(_0x21e2cb['position']['nodeAfter'],_0x5f073e['model']),_0x31a4a7=_0x21e2cb['before'];'rename'==_0x21e2cb['action']&&_0x1bbad9['push']({'key':m,'newValue':_0x21e2cb['name'],'oldValue':_0x31a4a7['name'],'range':_0x118ad7});for(const [_0xbccef5,_0x3d3240]of _0x31a4a7['attributes']){if(!this['_isRegisteredAttribute'](_0xbccef5))continue;const _0x10da88=_0x21e2cb['attributes']['get'](_0xbccef5);_0x3d3240!==_0x10da88&&_0x1bbad9['push']({'key':_0xbccef5,'newValue':_0x10da88,'oldValue':_0x3d3240,'range':_0x118ad7});}for(const [_0x5e5791,_0x24e7ab]of _0x21e2cb['attributes'])this['_isRegisteredAttribute'](_0x5e5791)&&(_0x31a4a7['attributes']['has'](_0x5e5791)||_0x1bbad9['push']({'key':_0x5e5791,'newValue':_0x24e7ab,'oldValue':null,'range':_0x118ad7}));}0x0!=_0x1bbad9['length']&&_0x5f073e['model']['enqueueChange'](_0x1794d9,_0x315ca4=>{const _0x2f96fa=_0x413213();for(const {range:_0x1e0225,key:_0x277075,oldValue:_0x1ce6f7,newValue:_0x6ef1fd}of _0x1bbad9)this['markAttributeChange'](_0x1e0225,_0x277075,_0x1ce6f7,_0x6ef1fd,{'groupId':_0x2f96fa});this['_reduceExistingSuggestions'](_0x315ca4,_0x1bbad9);});},{'priority':'lowest'}),_0x5f073e['model']['markers']['on']('update:suggestion',(_0x3e7b44,_0x58a787,_0x4cfefc)=>{if(null==_0x4cfefc){const {id:_0x5c2962}=this['_splitMarkerName'](_0x58a787['name']),_0x18fddf=this['_suggestions']['get'](_0x5c2962);_0x18fddf&&_0x18fddf['addMarkerName'](_0x58a787['name']);}}),_0x5f073e['model']['document']['on']('change:data',()=>{const _0x53a9fe=Array['from'](_0x5f073e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50c478=>'suggestion'===this['_splitMarkerName'](_0x50c478['name'])['group']);if(0x0===_0x53a9fe['length'])return;_0x53a9fe['sort']((_0x409643,_0x364f26)=>{const _0x3f872b=_0x409643['data']['oldRange'],_0x2ef2f5=_0x364f26['data']['oldRange'];return null===_0x3f872b&&null===_0x2ef2f5?0x0:null===_0x3f872b&&null!==_0x2ef2f5?-0x1:null!==_0x3f872b&&null===_0x2ef2f5?0x1:_0x3f872b['start']['isBefore'](_0x2ef2f5['start'])?-0x1:0x1;});const _0x688915=new Set(),_0x5e6e76=new Set();for(const {name:_0xfeff8d,data:_0x5533a6}of _0x53a9fe){const {id:_0x498d34}=this['_splitMarkerName'](_0xfeff8d);if(null===_0x5533a6['oldRange']){const _0x517a16=this['_handleNewSuggestionMarker'](_0xfeff8d);_0x5e6e76['add'](_0x517a16);}else{const _0x1c650b=this['_suggestions']['get'](_0x498d34);null!==_0x5533a6['newRange']||_0x1c650b['isInContent']?(_0x688915['add'](_0x1c650b['head']),_0x5e6e76['add'](_0x1c650b)):this['_removeSuggestion'](_0x1c650b);}}_0x5e6e76['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e6e76);for(const _0x47ad98 of _0x688915)this['fire']('suggestionChanged',_0x47ad98);}),_0x5f073e['model']['on']('applyOperation',(_0x775c91,_0xbe4e7a)=>{const _0x136b2c=_0xbe4e7a[0x0];if(!this['_suggestions']['size'])return;if(!_0x136b2c['isDocumentOperation'])return;if(_0x136b2c['batch']['isUndo']||!_0x136b2c['batch']['isLocal'])return;let _0x4be0de,_0x52d289;switch(_0x136b2c['type']){case'insert':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['position']),_0x52d289=_0x4be0de['getShiftedBy'](_0x136b2c['howMany']);break;case'split':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['splitPosition']),_0x52d289=_0x5f073e['model']['createPositionAt'](_0x136b2c['moveTargetPosition']);break;case'move':_0x4be0de=_0x5f073e['model']['createPositionAt'](_0x136b2c['targetPosition']),_0x52d289=_0x4be0de['getShiftedBy'](_0x136b2c['howMany']);break;default:return;}const _0x306750=_0x5f073e['model']['createRange'](_0x4be0de,_0x52d289);_0x5f073e['model']['change'](()=>{for(const {suggestion:_0x16c047,meta:_0x387cc9}of this['_findSuggestions'](_0x306750)){if(_0x16c047['isMultiRange'])continue;if('formatInline'==_0x16c047['type'])continue;const _0x30d852=this['_getAttributeKey'](_0x16c047);if(_0x30d852&&this['_isBlockAttribute'](_0x30d852)&&'split'!=_0x136b2c['type'])continue;const _0x3c0ebc=_0x16c047['data']&&_0x16c047['data']['multipleBlocks'];('formatBlock'!=_0x16c047['type']||'split'==_0x136b2c['type']&&!_0x3c0ebc)&&(_0x387cc9['containsRangeInObject']||'insertion'==_0x16c047['type']&&_0x387cc9['isOwn']||_0x16c047['getFirstRange']()['containsRange'](_0x306750)&&this['_breakSuggestionMarker'](_0x16c047,_0x4be0de,_0x52d289));}});},{'priority':'lowest'}),_0x5f073e['model']['on']('deleteContent',(_0x1dc2c2,_0x35f368)=>{const _0xd393ea=_0x35f368[0x0],_0x23515d=_0x35f368[0x1];if(_0x23515d&&_0x23515d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd393ea['isCollapsed'])return;const _0x1474b0=_0x5f073e['model']['schema'],{start:_0x2f09a3,end:_0x3f847b}=_0xd393ea['getFirstRange'](),_0xe09cb8=_0x2f09a3['nodeAfter']&&_0x1474b0['isLimit'](_0x2f09a3['nodeAfter'])?null:_0x1474b0['getNearestSelectionRange'](_0x2f09a3,'forward'),_0x1777b0=_0x3f847b['nodeBefore']&&_0x1474b0['isLimit'](_0x3f847b['nodeBefore'])?null:_0x1474b0['getNearestSelectionRange'](_0x3f847b,'backward'),_0x24bdae=_0x5f073e['model']['createRange'](_0xe09cb8?_0xe09cb8['start']:_0x2f09a3,_0x1777b0?_0x1777b0['end']:_0x3f847b);_0x5f073e['model']['change'](_0x278d4b=>{this['markDeletion'](_0x24bdae);const _0x50012b=_0x5f073e['model']['schema']['getNearestSelectionRange'](_0x24bdae['start']);_0xd393ea['is']('documentSelection')?_0x278d4b['setSelection'](_0x50012b):_0xd393ea['setTo'](_0x50012b);}),_0x1dc2c2['stop']();},{'priority':_0x3dec8d['normal']+0xa}),_0x5f073e['model']['on']('insertContent',(_0x1fe7e8,_0x3b74a6)=>{const _0x5096c6=_0x3b74a6[_0x3b74a6['length']-0x1];_0x5096c6&&_0x5096c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f073e['model']['change'](()=>{let _0x4fbb8a=_0x5f073e['model']['insertContent'](_0x3b74a6[0x0],_0x3b74a6[0x1],_0x3b74a6[0x2],{'forceDefaultExecution':!0x0});if(!_0x4fbb8a)return;_0x1fe7e8['return']=_0x4fbb8a['clone']();const _0x4033e6=_0x4fbb8a['end']['nodeBefore'],_0xeb1fc6=_0x5f073e['model']['schema'];_0x4033e6&&_0xeb1fc6['isBlock'](_0x4033e6)&&!_0xeb1fc6['isObject'](_0x4033e6)&&(_0x4fbb8a=_0x5f073e['model']['createRange'](_0x4fbb8a['start'],_0x5f073e['model']['createPositionAt'](_0x4033e6,'end'))),this['markInsertion'](_0x4fbb8a);}),_0x1fe7e8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x250c3d=new x(_0x5f073e,this['_suggestions']);_0x5f073e['commands']['add']('acceptSuggestion',_0x250c3d),this['enableCommand']('acceptSuggestion');const _0xbedd3=new R(_0x5f073e,this['_suggestions']);_0x5f073e['commands']['add']('discardSuggestion',_0xbedd3),this['enableCommand']('discardSuggestion'),_0x5f073e['commands']['add']('acceptAllSuggestions',new E(_0x5f073e,_0x250c3d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f073e['commands']['add']('discardAllSuggestions',new E(_0x5f073e,_0xbedd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f073e['commands']['add']('acceptSelectedSuggestions',new O(_0x5f073e,_0x250c3d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f073e['commands']['add']('discardSelectedSuggestions',new O(_0x5f073e,_0xbedd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c7440=_0x5f073e['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c7440,'addComment',(_0x3bd4b1,{threadId:_0x5cbc2c})=>{const _0x591339=this['_suggestions']['get'](_0x5cbc2c);_0x591339&&_0x591339['commentThread']&&0x1===_0x591339['commentThread']['length']&&this['_updateSuggestionData'](_0x5cbc2c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c7440,'removeComment',(_0x429e97,{threadId:_0x556a35})=>{const _0x32f1c3=this['_suggestions']['get'](_0x556a35);_0x32f1c3&&_0x32f1c3['commentThread']&&!_0x32f1c3['commentThread']['length']&&this['_updateSuggestionData'](_0x556a35,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xe3c4){if(this['_adapter'])throw new _0x1a44d6('track-changes-adapter-already-set',this);this['_adapter']=_0xe3c4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x9bf5e7=!0x1,toJSON:_0x5c2056=!0x1}={}){const _0x1f7f76=[];for(const _0x26ad41 of this['_suggestions']['values']())_0x9bf5e7&&!_0x26ad41['isInContent']||_0x1f7f76['push'](_0x26ad41);return _0x5c2056?_0x1f7f76['map'](_0x9637fa=>_0x9637fa['toJSON']()):_0x1f7f76;}['getSuggestion'](_0x432a65){const _0x57d47b=this['_suggestions']['get'](_0x432a65);if(!_0x57d47b)throw new _0x1a44d6('track-changes-suggestion-not-found',this);return _0x57d47b;}['hasSuggestion'](_0x5cf377){return this['_suggestions']['has'](_0x5cf377);}['addSuggestionData'](_0x4b78b5){const {authorId:_0x5095d7,id:_0x48219b,attributes:_0x49e9c3}=_0x4b78b5,[_0x3007ae,_0x4b7c39]=_0x4b78b5['type']['split'](':'),_0x1230b0=this['_suggestions']['get'](_0x48219b)||this['_createSuggestion'](_0x3007ae,_0x4b7c39,_0x48219b,_0x5095d7,_0x49e9c3);if(this['_addThreadToSuggestion'](_0x1230b0),this['_checkSuggestionCorrectness'](_0x1230b0,_0x3007ae,_0x4b7c39||null,_0x5095d7),_0x1230b0['createdAt']=_0x4b78b5['createdAt'],_0x1230b0['_isDataLoaded']=!0x0,_0x49e9c3&&_0x49e9c3['@external']){const _0x2d18d6=_0x49e9c3['@external'],_0x51150d=this['_getExternalAuthor'](_0x2d18d6['authorName']);_0x1230b0['authoredAt']=_0x2d18d6['createdAt'],_0x1230b0['author']=_0x51150d,_0x1230b0['isExternal']=!0x0;}else _0x1230b0['authoredAt']=_0x4b78b5['createdAt'];switch(_0x4b78b5['data']&&(_0x1230b0['data']=_0x4b78b5['data']),_0x4b78b5['attributes']&&(_0x1230b0['attributes']=_0x4b78b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1230b0['_saved']=!0x0),this['_suggestionState']['get'](_0x1230b0)){case'notReady':this['_suggestionState']['set'](_0x1230b0,'dataReady');break;case'markerReady':_0x1230b0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1230b0])),this['_refreshSuggestionsChain'](new Set([_0x1230b0])),this['_suggestionState']['set'](_0x1230b0,'ready'),this['fire']('suggestionLoaded',_0x1230b0)):this['_suggestionState']['set'](_0x1230b0,'removed');}return _0x1230b0;}['acceptSuggestion'](_0x34a347){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f1699 of _0x34a347['getAllAdjacentSuggestions']())_0x1f1699['accept']();});});}['discardSuggestion'](_0x4fc945){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x243303 of _0x4fc945['getAllAdjacentSuggestions']())_0x243303['discard']();});});}['enableCommand'](_0x57ae61,_0x2cdfd7){const _0x1486de=this['editor']['commands']['get'](_0x57ae61);if(!_0x1486de)throw new _0x1a44d6('track-changes-command-not-found',this,{'commandName':_0x57ae61});if(this['_enabledCommands']['has'](_0x1486de))throw new _0x1a44d6('track-changes-enable-command-twice',this,{'commandName':_0x57ae61});this['_enabledCommands']['add'](_0x1486de),_0x2cdfd7&&_0x1486de['on']('execute',(_0x4e357f,_0x5e455e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e455e['length']>0x0&&_0x5e455e[_0x5e455e['length']-0x1]&&_0x5e455e[_0x5e455e['length']-0x1]['forceDefaultExecution']?_0x5e455e['pop']():(_0x4e357f['return']=_0x2cdfd7((..._0x3d05c3)=>_0x1486de['execute'](..._0x3d05c3,{'forceDefaultExecution':!0x0}),..._0x5e455e),_0x4e357f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1706aa){let _0x4b2c2b,_0x3133cd;const _0x329892=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4b2c2b=_0x1706aa();}catch(_0x327e09){_0x3133cd=_0x327e09;}return _0x329892||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3133cd&&_0x1a44d6['rethrowUnexpectedError'](_0x3133cd,this),_0x4b2c2b;}['markInsertion'](_0x2d11ad,_0x146e8c=null,_0x22a94b={}){if(_0x2d11ad['isCollapsed'])return null;const _0x444d7c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x255e87,meta:_0x5e93f9}of this['_findSuggestions'](_0x2d11ad,'insertion'))if(_0x5e93f9['isOwn']){if(!_0x5e93f9['isNextTo']){if(_0x5e93f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x255e87,_0x22a94b))continue;return _0x255e87;}if(qt(_0x255e87,_0x22a94b))return _0x255e87;this['_breakSuggestionMarker'](_0x255e87,_0x2d11ad['start'],_0x2d11ad['end']);break;}if(_0x146e8c==_0x255e87['subType']&&qt(_0x255e87,_0x22a94b)){const _0x14e991=_0x255e87['getFirstRange']();return _0x14e991['start']['isEqual'](_0x2d11ad['end'])?this['_setSuggestionRange'](_0x255e87,this['_model']['createRange'](_0x2d11ad['start'],_0x14e991['end'])):this['_setSuggestionRange'](_0x255e87,this['_model']['createRange'](_0x14e991['start'],_0x2d11ad['end'])),_0x255e87;}}const _0x55b856=_0x413213(),_0x197653=_0x444d7c['id'],_0x3b375a=_0x146e8c?'insertion:'+_0x146e8c:'insertion',_0x37e86a=this['_setSuggestionData']({'id':_0x55b856,'type':_0x3b375a,'createdAt':new Date(),'authorId':_0x197653,'attributes':_0x22a94b});return this['_addSuggestionMarker'](_0x3b375a,_0x55b856,_0x197653,_0x2d11ad),_0x37e86a;}['markMultiRangeInsertion'](_0x113192,_0x5bb6a3='multi',_0x1c53a2={}){const _0x15e66c=this['editor']['plugins']['get']('Users')['me'],_0x1f8a13=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5bb6a3,'join');for(const _0x3c3f8a of this['getSuggestions']())if(_0x3c3f8a['author']['id']==_0x15e66c['id']&&'insertion'==_0x3c3f8a['type']&&_0x3c3f8a['subType']==_0x5bb6a3&&qt(_0x3c3f8a,_0x1c53a2)&&(_0x1f8a13(_0x3c3f8a['getRanges'](),_0x113192)||_0x1f8a13(_0x113192,_0x3c3f8a['getRanges']()))){for(const _0x367671 of _0x113192)_0x3c3f8a['addRange'](_0x367671);return _0x3c3f8a;}for(const {suggestion:_0x1678c1,meta:_0x42f358}of this['_findSuggestions'](_0x113192,'insertion')){if(!_0x42f358['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x42f358['containsRangeInObject'])continue;if(!qt(_0x1678c1,_0x1c53a2))continue;let _0xfeef4c=!0x0;for(const _0x43646c of _0x1678c1['getRanges']())for(const _0x5a5c43 of _0x113192)if(!_0x43646c['containsRange'](_0x5a5c43)){_0xfeef4c=!0x1;break;}if(_0xfeef4c)return _0x1678c1;}const _0x179c3a=_0x413213(),_0x8cad9a=_0x15e66c['id'],_0x4974f5='insertion:'+_0x5bb6a3,_0x4b62df=this['_setSuggestionData']({'id':_0x179c3a,'type':_0x4974f5,'createdAt':new Date(),'authorId':_0x8cad9a,'attributes':_0x1c53a2});for(const _0x53392e of _0x113192)this['_addSuggestionMarker'](_0x4974f5,_0x179c3a,_0x8cad9a,_0x53392e,u['getMultiRangeId']());return _0x4b62df;}['markInlineFormat'](_0x2f86dd,_0x178ca4,_0x3102c9=null,_0x15ede9={}){if(_0x3102c9=_0x3102c9||Gt(_0x178ca4),_0x2f86dd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51d0b5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3102c9,'accept');return this['forceDefaultExecution'](()=>_0x51d0b5([_0x2f86dd],_0x178ca4,_0x15ede9)),null;}const _0x49db43=this['editor']['plugins']['get']('Users')['me'],_0x269d28=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d053d,meta:_0x4425e4}of this['_findSuggestions'](_0x2f86dd,'insertion'))_0x4425e4['isOwn']&&!_0x4425e4['isInsideObject']&&_0x269d28['push'](..._0x4d053d['getRanges']());}const _0x3c9690=function(_0x3869af,_0x13b358){const _0xb4e96=[];for(const _0x33c6a9 of _0x13b358){const _0x4f20d8=_0x3869af['getIntersection'](_0x33c6a9);_0x4f20d8&&_0xb4e96['push'](_0x4f20d8);}return _0xb4e96;}(_0x2f86dd,_0x269d28),_0x589144=function(_0x5e624d,_0x2e186d){const _0x32ca80=[_0x5e624d];for(const _0x13a16d of _0x2e186d){let _0x47ca9d=0x0;for(;_0x47ca9d<_0x32ca80['length'];){const _0x1d4718=_0x32ca80[_0x47ca9d]['getDifference'](_0x13a16d);_0x32ca80['splice'](_0x47ca9d,0x1,..._0x1d4718),_0x47ca9d+=_0x1d4718['length'];}}return _0x32ca80;}(_0x2f86dd,_0x269d28);_0x3c9690['length']&&this['_model']['change'](()=>{for(const _0x5cd26b of _0x3c9690){const _0x2bd01c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3102c9,'accept');this['forceDefaultExecution'](()=>_0x2bd01c([_0x5cd26b],_0x178ca4,_0x15ede9));}});for(const _0x506740 of _0x589144){let _0x34c668=null,_0x388e95=_0x506740['start'],_0x12e5b6=_0x506740['end'];for(const {suggestion:_0x87b5f1,meta:_0x529558}of this['_findSuggestions'](_0x506740,'formatInline')){if(!_0x529558['isOwn'])continue;if(_0x87b5f1['subType']!=_0x3102c9)continue;if(!qt(_0x87b5f1,_0x15ede9))continue;const _0x1d3fbc=_0x87b5f1['getFirstRange']();if(_0x1d3fbc['containsRange'](_0x506740,!0x0))return null;_0x388e95=_0x388e95['isBefore'](_0x1d3fbc['start'])?_0x388e95:_0x1d3fbc['start'],_0x12e5b6=_0x12e5b6['isAfter'](_0x1d3fbc['end'])?_0x12e5b6:_0x1d3fbc['end'],_0x34c668?_0x1d3fbc['start']['isBefore'](_0x34c668['getFirstRange']()['start'])?(_0x34c668['removeMarkers'](),_0x34c668=_0x87b5f1):_0x87b5f1['removeMarkers']():_0x34c668=_0x87b5f1;}const _0x1a1fa6=this['_model']['createRange'](_0x388e95,_0x12e5b6);if(_0x34c668)this['_setSuggestionRange'](_0x34c668,_0x1a1fa6);else{const _0x15f566=_0x413213(),_0x124294=_0x49db43['id'];this['_setSuggestionData']({'id':_0x15f566,'type':'formatInline:'+_0x3102c9,'data':_0x178ca4,'createdAt':new Date(),'authorId':_0x124294,'attributes':_0x15ede9}),this['_addSuggestionMarker']('formatInline:'+_0x3102c9,_0x15f566,_0x124294,_0x1a1fa6);}}return null;}['markBlockFormat'](_0x1df00b,_0x56e41a,_0x891288=[],_0x1dcece=null,_0x1e3460={}){_0x56e41a['formatGroupId']||(_0x56e41a['formatGroupId']=_0x56e41a['commandName']),_0x56e41a['multipleBlocks']=_0x1df00b['is']('range'),_0x1dcece=_0x1dcece||Gt(_0x56e41a);const _0x40b2fe=_0x891288['map'](_0x5ebd91=>Lt(_0x5ebd91,this['_model'])),_0x46efe9=_0x1df00b['is']('range')?_0x1df00b:Lt(_0x1df00b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x458c60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dcece,'accept');return this['forceDefaultExecution'](()=>_0x458c60([_0x46efe9],_0x56e41a,_0x1e3460)),null;}_0x40b2fe['push'](_0x46efe9);let _0x4af109=!0x0;for(const _0x1ef173 of _0x40b2fe)if(!this['_rangeIsInLocalUserInsertion'](_0x1ef173)){_0x4af109=!0x1;break;}if(_0x4af109&&'always'!==this['_trackFormatChanges']){const _0x3ac876=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dcece,'accept');return this['forceDefaultExecution'](()=>_0x3ac876([_0x46efe9],_0x56e41a,_0x1e3460)),null;}let _0x173caf=null,_0xd1133b=_0x46efe9['start'],_0x570504=_0x46efe9['end'];for(const {suggestion:_0x51acab,meta:_0x4a8742}of this['_findSuggestions'](_0x46efe9,'formatBlock')){if(!_0x4a8742['isOwn'])continue;if(_0x4a8742['isNextTo']||_0x4a8742['containsRangeInObject']||_0x4a8742['isInsideObject'])continue;if(_0x51acab['data']['formatGroupId']!=_0x56e41a['formatGroupId'])continue;if(!qt(_0x51acab,_0x1e3460))continue;const _0x572032=_0x51acab['getFirstRange']();if(_0x51acab['subType']==_0x1dcece){if(_0x572032['containsRange'](_0x46efe9,!0x0))return null;_0xd1133b=_0xd1133b['isBefore'](_0x572032['start'])?_0xd1133b:_0x572032['start'],_0x570504=_0x570504['isAfter'](_0x572032['end'])?_0x570504:_0x572032['end'],_0x173caf?_0x572032['start']['isBefore'](_0x173caf['getFirstRange']()['start'])?(_0x173caf['removeMarkers'](),_0x173caf=_0x51acab):_0x51acab['removeMarkers']():_0x173caf=_0x51acab;}else{const _0x116529=_0x46efe9['getIntersection'](_0x572032);this['_cutOutSuggestionMarker'](_0x51acab,_0x116529);}}const _0x4a1c56=this['editor']['plugins']['get']('Users')['me'],_0x56d782=_0x413213(),_0x27bf94=_0x4a1c56['id'];if(_0x173caf)return this['_setSuggestionRange'](_0x173caf,this['_model']['createRange'](_0xd1133b,_0x570504)),_0x173caf;{const _0x961f5b=this['_setSuggestionData']({'id':_0x56d782,'type':'formatBlock:'+_0x1dcece,'data':_0x56e41a,'createdAt':new Date(),'authorId':_0x27bf94,'attributes':_0x1e3460});return this['_addSuggestionMarker']('formatBlock:'+_0x1dcece,_0x56d782,_0x27bf94,this['_model']['createRange'](_0xd1133b,_0x570504)),_0x961f5b;}}['markMultiRangeBlockFormat'](_0x5badde,_0x11698d,_0x29c870=[],_0x36d2d9=null,_0x80eb2a={}){_0x11698d['formatGroupId']||(_0x11698d['formatGroupId']=_0x11698d['commandName']);const _0xcda748=_0x5badde[0x0];_0x11698d['multipleBlocks']=_0xcda748['is']('range'),_0x36d2d9=_0x36d2d9||Gt(_0x11698d);const _0x5866ef=_0x29c870['map'](_0x49bdec=>Lt(_0x49bdec,this['_model'])),_0x48f5b1=_0xcda748['is']('range')?_0x5badde:_0x5badde['map'](_0x2cb6bd=>Lt(_0x2cb6bd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x34f3c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'accept');return this['forceDefaultExecution'](()=>_0x34f3c9(_0x48f5b1,_0x11698d,_0x80eb2a)),null;}_0x5866ef['push'](..._0x48f5b1);let _0x4718d3=!0x0;for(const _0x3009f1 of _0x5866ef)if(!this['_rangeIsInLocalUserInsertion'](_0x3009f1)){_0x4718d3=!0x1;break;}if(_0x4718d3&&'always'!==this['_trackFormatChanges']){const _0x46df6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'accept');return this['forceDefaultExecution'](()=>_0x46df6a(_0x48f5b1,_0x11698d,_0x80eb2a)),null;}const _0x47412f=this['editor']['plugins']['get']('Users')['me'];for(const _0x51293f of this['getSuggestions']()){if(_0x51293f['author']['id']!=_0x47412f['id'])continue;if('formatBlock'!=_0x51293f['type']||_0x51293f['data']['formatGroupId']!=_0x11698d['formatGroupId'])continue;if(!qt(_0x51293f,_0x80eb2a))continue;const _0x551358=_0x51293f['subType']==_0x36d2d9;for(let _0x260961=0x0;_0x260961<_0x48f5b1['length'];_0x260961++){const _0x330e23=_0x48f5b1[_0x260961];for(const _0x43836c of _0x51293f['getMarkers']()){const _0x129791=_0x43836c['getRange']();if(_0x330e23['isEqual'](_0x129791)){_0x551358?(_0x48f5b1['splice'](_0x260961,0x1),_0x260961--):_0x51293f['removeMarker'](_0x43836c['name']);break;}}}}if(0x0==_0x48f5b1['length'])return null;const _0x2447d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36d2d9,'join');for(const _0x550398 of this['getSuggestions']())if(_0x550398['author']['id']==_0x47412f['id']&&'formatBlock'==_0x550398['type']&&_0x550398['data']['formatGroupId']==_0x11698d['formatGroupId']&&_0x550398['subType']==_0x36d2d9&&qt(_0x550398,_0x80eb2a)&&(_0x2447d2(_0x550398['getRanges'](),_0x48f5b1)||_0x2447d2(_0x48f5b1,_0x550398['getRanges']()))){for(const _0x1fc2f6 of _0x48f5b1)_0x550398['addRange'](_0x1fc2f6);return _0x550398;}const _0x211276=_0x413213(),_0x19a14d=_0x47412f['id'],_0x14b495='formatBlock:'+_0x36d2d9,_0x33aec9=this['_setSuggestionData']({'id':_0x211276,'type':_0x14b495,'data':_0x11698d,'createdAt':new Date(),'authorId':_0x19a14d,'attributes':_0x80eb2a});for(const _0x5e8b16 of _0x48f5b1)this['_addSuggestionMarker'](_0x14b495,_0x211276,_0x19a14d,_0x5e8b16,u['getMultiRangeId']());return _0x33aec9;}['markDeletion'](_0x5a7454,_0x2b3bd=null,_0x1e75ec={}){if(_0x5a7454['isCollapsed'])return null;const _0x46f443=this['editor']['plugins']['get']('Users')['me'],_0x5a8c42=new _0x531671(_0x5a7454['start'],_0x5a7454['end']);for(const {suggestion:_0x3f6551,meta:_0x556528}of this['_findSuggestions'](_0x5a8c42,'insertion'))if(_0x556528['isOwn']&&!_0x556528['isNextTo']){if(_0x3f6551['isMultiRange']){const _0xbd9b44=_0x3f6551['getRanges']()['filter'](_0x169b22=>'$graveyard'!=_0x169b22['root']['rootName']);_0xbd9b44['every'](_0x31b6fb=>_0x5a8c42['containsRange'](_0x31b6fb,!0x0))&&_0x3f6551['discard']();if(_0xbd9b44['some'](_0xaa79f7=>_0xaa79f7['containsRange'](_0x5a8c42,!0x0))){const _0x31dee9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b3bd,'accept');return this['forceDefaultExecution'](()=>_0x31dee9([_0x5a8c42],null,_0x1e75ec)),null;}}else{const _0x1776f3=_0x5a8c42['getIntersection'](_0x3f6551['getFirstRange']());null!==_0x1776f3&&_0x3f6551['_onDiscard']([_0x1776f3],null,_0x1e75ec);}}if(_0x5a8c42['detach'](),_0x5a8c42['isCollapsed']||'$graveyard'==_0x5a8c42['root']['rootName'])return null;let _0x75db91=null,_0x5a7e6e=_0x5a8c42['start'],_0x39deed=_0x5a8c42['end'];const _0x3c0b97=this['_findSuggestions'](_0x5a8c42,'deletion');for(const {suggestion:_0x12206a,meta:_0xaa7a6}of _0x3c0b97){const _0x57469e=this['_model']['createRange'](_0x5a7e6e,_0x39deed);if(_0xaa7a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0xaa7a6['containsRangeInObject']&&!_0xaa7a6['isInsideObject'])){if(_0x12206a['isMultiRange']){if(!qt(_0x12206a,_0x1e75ec))continue;let _0x2bc075=!0x0;for(const _0x17d31a of _0x12206a['getRanges']()){if(_0x17d31a['containsRange'](_0x57469e,!0x0))return _0x12206a;_0x57469e['containsRange'](_0x17d31a)||(_0x2bc075=!0x1);}_0x2bc075&&_0x12206a['discard']();}else{const _0xe5880c=_0x12206a['getFirstRange']();if(_0xe5880c['containsRange'](_0x57469e,!0x0))return _0x12206a;if(!qt(_0x12206a,_0x1e75ec)){_0x57469e['containsRange'](_0xe5880c)?_0x12206a['removeMarkers']():_0xe5880c['containsPosition'](_0x5a7e6e)?_0x5a7e6e=_0xe5880c['end']:_0xe5880c['containsPosition'](_0x39deed)&&(_0x39deed=_0xe5880c['start']);continue;}_0x5a7e6e=_0x5a7e6e['isBefore'](_0xe5880c['start'])?_0x5a7e6e:_0xe5880c['start'],_0x39deed=_0x39deed['isAfter'](_0xe5880c['end'])?_0x39deed:_0xe5880c['end'],_0x1e75ec=Object['assign']({},_0x12206a['attributes']),_0x75db91?_0xe5880c['start']['isBefore'](_0x75db91['getFirstRange']()['start'])?(_0x75db91['removeMarkers'](),_0x75db91=_0x12206a):_0x12206a['removeMarkers']():_0x75db91=_0x12206a;}}}if(_0x75db91)return this['_setSuggestionRange'](_0x75db91,this['_model']['createRange'](_0x5a7e6e,_0x39deed)),_0x75db91;{const _0x512f54=_0x413213(),_0x1b2b4b=this['_model']['createRange'](_0x5a7e6e,_0x39deed),_0x360fc5=_0x46f443['id'],_0x705ab8=_0x2b3bd?'deletion:'+_0x2b3bd:'deletion',_0x4167cd=this['_setSuggestionData']({'id':_0x512f54,'type':_0x705ab8,'createdAt':new Date(),'authorId':_0x360fc5,'attributes':_0x1e75ec});return this['_addSuggestionMarker'](_0x705ab8,_0x512f54,_0x360fc5,_0x1b2b4b),_0x4167cd;}}['markMultiRangeDeletion'](_0x590f1b,_0x404055='multi',_0x2935b1={}){const _0xb49b0c=this['editor']['plugins']['get']('Users')['me'],_0x58063d=_0x590f1b['map'](_0x192524=>new _0x531671(_0x192524['start'],_0x192524['end'])),_0x1c6cc8=new Set();for(const {suggestion:_0x285fea,meta:_0x1ecba3}of this['_findSuggestions'](_0x58063d,'insertion'))_0x1ecba3['isOwn']&&!_0x1ecba3['isNextTo']&&_0x1c6cc8['add'](_0x285fea);for(const _0x16fd27 of _0x1c6cc8)if(_0x16fd27['isMultiRange']){const _0xd7c78f=_0x16fd27['getRanges']();(!_0x16fd27['attributes']||!_0x16fd27['attributes']['skipNestingCheck'])&&(_0xd7c78f['every'](_0x473855=>_0x58063d['some'](_0x3323d6=>_0x3323d6['containsRange'](_0x473855,!0x0)))&&_0x16fd27['discard']());if(_0x58063d['every'](_0x47a6ba=>_0xd7c78f['some'](_0x1e6976=>_0x1e6976['containsRange'](_0x47a6ba,!0x0)))){const _0x3eb74d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'accept');return this['forceDefaultExecution'](()=>_0x3eb74d(_0x590f1b,null,_0x2935b1)),null;}}else{const _0x3b873e=_0x16fd27['getFirstRange']();_0x58063d['some'](_0xa5a192=>_0xa5a192['containsRange'](_0x3b873e,!0x0))&&_0x16fd27['discard']();if(_0x58063d['every'](_0x4dc365=>_0x3b873e['containsRange'](_0x4dc365,!0x0))){const _0x1ac31c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'accept');return this['forceDefaultExecution'](()=>_0x1ac31c(_0x58063d,null,_0x2935b1)),null;}}const _0x54431c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x404055,'join');let _0x1a2a3c=null;for(const _0x58dd61 of this['getSuggestions']())if(_0x58dd61['author']['id']==_0xb49b0c['id']&&_0x58dd61['isInContent']&&'deletion'==_0x58dd61['type']&&_0x58dd61['subType']==_0x404055&&qt(_0x58dd61,_0x2935b1)&&(_0x54431c(_0x58dd61['getRanges'](),_0x58063d)||_0x54431c(_0x58063d,_0x58dd61['getRanges']()))){if(_0x1a2a3c){if(_0x58dd61['commentThread']&&_0x58dd61['commentThread']['length'])continue;for(const _0x851a4c of _0x58dd61['getRanges']())_0x1a2a3c['isIntersectingWithRange'](_0x851a4c)||_0x1a2a3c['addRange'](_0x851a4c);_0x58dd61['removeMarkers']();}else{_0x1a2a3c=_0x58dd61;for(const _0x3be582 of _0x58063d)_0x58dd61['isIntersectingWithRange'](_0x3be582)||_0x58dd61['addRange'](_0x3be582);}}if(_0x1a2a3c)return _0x1a2a3c;_0x1c6cc8['clear']();for(const {suggestion:_0xbeb26,meta:_0x449b4b}of this['_findSuggestions'](_0x58063d,'deletion'))_0x449b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x449b4b['containsRangeInObject']&&!_0x449b4b['isInsideObject'])&&qt(_0xbeb26,_0x2935b1)&&_0x1c6cc8['add'](_0xbeb26);for(const _0x3567c8 of _0x1c6cc8){const _0x44dc48=_0x3567c8['getRanges']();if(!_0x2935b1||!_0x2935b1['skipNestingCheck']){if(_0x58063d['every'](_0x59850=>_0x44dc48['some'](_0x42e7a0=>_0x42e7a0['containsRange'](_0x59850,!0x0))))return _0x3567c8;}(!_0x3567c8['attributes']||!_0x3567c8['attributes']['skipNestingCheck'])&&(_0x44dc48['every'](_0x16a08a=>_0x58063d['some'](_0x2a855e=>_0x2a855e['containsRange'](_0x16a08a,!0x0)))&&_0x3567c8['discard']());}const _0xc78a68=_0x413213(),_0x29a364=_0xb49b0c['id'],_0x3a975e='deletion:'+_0x404055,_0xd5c63a=this['_setSuggestionData']({'id':_0xc78a68,'type':_0x3a975e,'createdAt':new Date(),'authorId':_0x29a364,'attributes':_0x2935b1});for(const _0x1e59da of _0x58063d)_0x1e59da['detach'](),_0x1e59da['isCollapsed']||'$graveyard'==_0x1e59da['root']['rootName']||this['_addSuggestionMarker'](_0x3a975e,_0xc78a68,_0x29a364,_0x1e59da,u['getMultiRangeId']());return _0xd5c63a;}['markAttributeChange'](_0x54a43b,_0x47f955,_0x1705f3,_0x328898,_0x3fe380){if(_0x54a43b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3c09a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ceb39=Array['from'](this['_suggestions']['values']())['filter'](_0x4def94=>'attribute'==_0x4def94['type']&&_0x4def94['data']['key']==_0x47f955&&_0x4def94['isIntersectingWithRange'](_0x54a43b));if('default'===this['_trackFormatChanges']){const _0x1a42c2=this['_findSuggestions'](_0x54a43b,'insertion')['filter'](({meta:_0x2905d0})=>_0x2905d0['isOwn']&&!_0x2905d0['isInsideObject']&&!_0x2905d0['isNextTo'])['map'](({suggestion:_0x41f7aa})=>_0x41f7aa);_0x5ceb39['unshift'](..._0x1a42c2);}const _0x45f839=new Map([[_0x54a43b,_0x1705f3]]);for(const _0x28d8cb of _0x5ceb39){const _0x544233='attribute'==_0x28d8cb['type']?_0x28d8cb['data']['oldValue']:void 0x0,_0x34e760=_0x28d8cb['getFirstRange'](),_0x19ff84=Array['from'](_0x45f839['keys']())['find'](_0x5bc4ee=>_0x5bc4ee['isIntersecting'](_0x34e760));if(!_0x19ff84)continue;const _0x5bf214=_0x19ff84['getDifference'](_0x34e760);this['_isBlockAttribute'](_0x47f955)&&'insertion'==_0x28d8cb['type']&&0x0!=_0x5bf214['length']||(_0x45f839['delete'](_0x19ff84),_0x5bf214['forEach'](_0x43ce5d=>{_0x45f839['set'](_0x43ce5d,_0x1705f3);}),'insertion'!=_0x28d8cb['type']&&_0x544233!=_0x328898&&_0x45f839['set'](_0x19ff84['getIntersection'](_0x34e760),_0x544233));}const _0x59ab23=[];for(const [_0x416f43,_0x2a937f]of _0x45f839){const _0x504b64=_0x413213(),_0x4edc1f={'key':_0x47f955,'oldValue':_0x2a937f,'newValue':_0x328898};_0x47f955['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':_0x47f955});const _0x9bf2f6=('attribute:'+(_0x47f955+'|'+Gt({'newValue':_0x328898})))['substring'](0x0,0x3c),_0x2dfd66=this['_setSuggestionData']({'id':_0x504b64,'type':_0x9bf2f6,'data':_0x4edc1f,'createdAt':new Date(),'authorId':_0x3c09a0,'attributes':_0x3fe380});_0x59ab23['push'](_0x2dfd66),this['_addSuggestionMarker'](_0x9bf2f6,_0x504b64,_0x3c09a0,_0x416f43);}return _0x59ab23;}['enableDefaultAttributesIntegration'](_0x400d3c){this['enableCommand'](_0x400d3c,(_0x4b91b4,..._0x442d5f)=>{this['_recordAttributeChanges'](()=>{_0x4b91b4(..._0x442d5f);});});}['registerBlockAttribute'](_0xdb2258){this['_blockAttributeKeys']['add'](_0xdb2258);}['registerInlineAttribute'](_0xe4b02f){this['_inlineAttributeKeys']['add'](_0xe4b02f);}['_getAttributeKey'](_0x5c13b0){return'attribute'==_0x5c13b0['type']?_0x5c13b0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5194a,_0xb31dc8){const _0x107501=_0x5194a['getFirstMarker']();this['_model']['change'](_0x2cb9d0=>{_0x2cb9d0['updateMarker'](_0x107501,{'range':_0xb31dc8});});}['_addThreadToSuggestion'](_0x145f7f){const _0x542ed3=_0x145f7f['id'],_0x434868=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x542ed3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x434868,'threadId':_0x542ed3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b163f=this['_commentsRepository']['getCommentThread'](_0x542ed3);_0x2b163f['unbind']('isRemovable'),_0x2b163f['isRemovable']=!0x1,_0x145f7f['commentThread']=_0x2b163f;}['_checkSuggestionCorrectness'](_0x22897f,_0x425c29,_0x518cdf,_0x2463a0){if(_0x22897f['type']!=_0x425c29||_0x22897f['subType']!=_0x518cdf||_0x22897f['creator']['id']!=_0x2463a0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a44d6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1945c3,_0x483944){const _0x322a98=_0x1945c3['getFirstRange']();if(_0x483944['isEqual'](_0x322a98))_0x1945c3['removeMarkers']();else{if(_0x322a98['containsRange'](_0x483944)){const _0xc24d3b=this['_model']['createPositionAt'](_0x483944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x322a98['start'],_0xc24d3b));const _0x434cbe=_0x413213(),_0x3918db=_0x1945c3['creator']['id'],_0x7d0c51=_0x1945c3['type']+':'+_0x1945c3['subType'];this['_setSuggestionData']({'id':_0x434cbe,'type':_0x7d0c51,'createdAt':new Date(),'authorId':_0x3918db,'data':_0x1945c3['data'],'attributes':_0x1945c3['attributes']});const _0x11f629=this['_model']['createPositionAt'](_0x483944['end']['parent'],'after'),_0x208ddc=this['_model']['createRange'](_0x11f629,_0x322a98['end']);this['_addSuggestionMarker'](_0x7d0c51,_0x434cbe,_0x3918db,_0x208ddc);}else{if(_0x322a98['containsPosition'](_0x483944['start'])){const _0x40719b=this['_model']['createPositionAt'](_0x483944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x322a98['start'],_0x40719b));}else{const _0x37c9cf=this['_model']['createPositionAt'](_0x483944['end']['parent'],'after');this['_setSuggestionRange'](_0x1945c3,this['_model']['createRange'](_0x37c9cf,_0x322a98['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e78ef){for(const {suggestion:_0x424ebc,meta:_0x3d1147}of this['_findSuggestions'](_0x5e78ef,'insertion')){if(!_0x3d1147['isOwn'])continue;const _0x2669b5=_0x424ebc['getRanges']();for(const _0x5d81ee of _0x2669b5)if(!_0x5e78ef['getDifference'](_0x5d81ee)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2fbe55){const _0x53bf17=this['editor']['plugins']['get']('Users')['getUser'](_0x2fbe55);if(!_0x53bf17)throw new _0x1a44d6('track-changes-user-not-found',this);return _0x53bf17;}['_getExternalAuthor'](_0xe1faa4){const _0x4d2532=this['editor']['plugins']['get']('Users'),_0x5b2b89=_0x222301('external:'+_0xe1faa4),_0x232535=_0x4d2532['getUser'](_0x5b2b89);return _0x232535||_0x4d2532['addUser']({'id':_0x5b2b89,'name':_0xe1faa4});}['_createSuggestion'](_0x22b20d,_0x3aa039,_0x1c62dd,_0x15197c,_0x468a1e){const _0x36affe=this['_getAuthorFromId'](_0x15197c),_0x541848=this['_suggestionFactory']['buildSuggestion'](_0x22b20d,_0x3aa039,_0x1c62dd,_0x36affe,_0x468a1e,_0x4d3e16=>{this['_updateSuggestionData'](_0x1c62dd,{'attributes':_0x4d3e16});const _0x395da2=this['getSuggestion'](_0x1c62dd);this['_joinWithAdjacentSuggestions'](new Set([_0x395da2])),this['_refreshSuggestionsChain'](new Set([_0x395da2]));});return this['listenTo'](_0x541848,'accept',()=>{this['_updateSuggestionData'](_0x1c62dd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x541848,'discard',()=>{this['_updateSuggestionData'](_0x1c62dd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c62dd,_0x541848),this['_suggestionState']['set'](_0x541848,'notReady'),_0x541848;}['_splitMarkerName'](_0x58a78e){const _0x103467=_0x58a78e['split'](':');return{'group':_0x103467[0x0],'type':_0x103467[0x1],'subType':_0x103467['length']>=0x5?_0x103467[0x2]:null,'id':_0x103467['length']<0x5?_0x103467[0x2]:_0x103467[0x3],'authorId':_0x103467['length']<0x5?_0x103467[0x3]:_0x103467[0x4],'markerCount':0x6==_0x103467['length']?_0x103467[0x5]:null};}['_breakSuggestionMarker'](_0xa319a3,_0x33e996,_0x25391e){const _0x1b2574=_0xa319a3['getFirstRange'](),_0x3f5a55=_0x1b2574['start'],_0x943baf=_0x1b2574['end'];this['_setSuggestionRange'](_0xa319a3,this['_model']['createRange'](_0x3f5a55,_0x33e996));const _0x371193=_0x413213(),_0xc79636=_0xa319a3['creator']['id'],_0x3477ea=_0xa319a3['type']+(_0xa319a3['subType']?':'+_0xa319a3['subType']:'');this['_setSuggestionData']({'id':_0x371193,'type':_0x3477ea,'createdAt':new Date(),'authorId':_0xc79636,'originalSuggestionId':_0xa319a3['id'],'attributes':_0xa319a3['attributes'],'data':_0xa319a3['data']});const _0x1656f9=this['_getAttributeKey'](_0xa319a3);('formatBlock'==_0xa319a3['type']||_0x1656f9&&this['_isBlockAttribute'](_0x1656f9))&&(_0x25391e=this['_model']['createPositionBefore'](_0x25391e['parent'])),this['_addSuggestionMarker'](_0x3477ea,_0x371193,_0xc79636,this['_model']['createRange'](_0x25391e,_0x943baf));}['_findSuggestions'](_0x3eca69,_0x3ee3bc=null){const _0x4453aa=[],_0x4703a4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eca69)||(_0x3eca69=[_0x3eca69]);for(const _0x59bbcb of this['getSuggestions']()){if(!_0x59bbcb['isInContent'])continue;if(_0x3ee3bc&&_0x59bbcb['type']!=_0x3ee3bc)continue;let _0x2d9bf1=!0x1;for(const _0x15f424 of _0x59bbcb['getRanges']()){for(const _0x535ad5 of _0x3eca69){const _0x155e6f=_0x535ad5['start']['isEqual'](_0x15f424['end'])||_0x535ad5['end']['isEqual'](_0x15f424['start']);if(_0x155e6f||_0x535ad5['getIntersection'](_0x15f424)){const _0x2d3a64=_0x535ad5['containsRange'](_0x15f424)&&Ot(this['_model']['schema'],_0x15f424['start'],_0x535ad5),_0x356c83=_0x15f424['containsRange'](_0x535ad5)&&Ot(this['_model']['schema'],_0x535ad5['start'],_0x15f424);_0x4453aa['push']({'suggestion':_0x59bbcb,'meta':{'isOwn':_0x4703a4==_0x59bbcb['author'],'isNextTo':_0x155e6f,'isInsideObject':_0x2d3a64,'containsRangeInObject':_0x356c83}}),_0x2d9bf1=!0x0;break;}}if(_0x2d9bf1)break;}}return _0x4453aa;}['_addSuggestionMarker'](_0x571952,_0x56081c,_0x4b7f56,_0x516e65,_0x32ae39){this['_model']['change'](_0x35eb8=>{let _0xefa85b='suggestion:'+_0x571952+':'+_0x56081c+':'+_0x4b7f56;_0x32ae39&&(_0xefa85b=_0xefa85b+':'+_0x32ae39),_0x35eb8['addMarker'](_0xefa85b,{'range':_0x516e65,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x90592a){const _0xec4a68=_0x90592a['previous'],_0x4ebf87=_0x90592a['next'];_0x90592a['previous']=null,_0x90592a['next']=null,null!=_0xec4a68&&_0xec4a68['next']==_0x90592a&&(_0xec4a68['next']=_0x4ebf87),null!=_0x4ebf87&&_0x4ebf87['previous']==_0x90592a&&(_0x4ebf87['previous']=_0xec4a68),'ready'==this['_suggestionState']['get'](_0x90592a)&&(this['_suggestionState']['set'](_0x90592a,'removed'),this['fire']('suggestionUnloaded',_0x90592a,_0xec4a68,_0x4ebf87));}['_setSuggestionData'](_0xc472dc){const _0x3a9f9c=_0xc472dc['id'],_0x57de50=this['addSuggestionData'](_0xc472dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x168699=this['editor']['plugins']['get']('PendingActions'),_0x5d61e1=_0x57de50['hasComments'],_0x5e03ce=_0x57de50['subType']?_0x57de50['type']+':'+_0x57de50['subType']:_0x57de50['type'],_0x599b24=this['editor']['locale'],_0x249412=_0x168699['add'](o(_0x599b24,'PENDING_ACTION_SUGGESTION')),_0x136725={'id':_0x3a9f9c,'type':_0x5e03ce,'hasComments':_0x5d61e1,'data':_0xc472dc['data']||null,'originalSuggestionId':_0xc472dc['originalSuggestionId']||null,'attributes':_0x57de50['attributes']};this['_adapter']['addSuggestion'](_0x136725)['then'](_0x2a30b6=>{_0x57de50['_saved']=!0x0,_0x168699['remove'](_0x249412),_0x2a30b6&&_0x2a30b6['createdAt']&&(this['_suggestions']['get'](_0x3a9f9c)['createdAt']=_0x2a30b6['createdAt']);})['catch'](_0x2cfb07=>{throw _0x2bae4b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x57de50['discard']();}),_0x57de50['stopListening'](),this['_suggestions']['delete'](_0x57de50['id']),this['_suggestionState']['delete'](_0x57de50),_0x2cfb07;});}return _0x57de50;}['_isBlockAttribute'](_0x397c56){return this['_blockAttributeKeys']['has'](_0x397c56);}['_updateSuggestionData'](_0x2e4da8,_0x3a19fd){const _0x472202=this['editor']['plugins']['get']('PendingActions'),_0x3165c3=this['getSuggestion'](_0x2e4da8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3165c3['_saved']){const _0x403a31=_0x472202['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e4da8,_0x3a19fd)['then'](()=>{_0x472202['remove'](_0x403a31);});}else _0x3165c3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e4da8,_0x3a19fd);});}}['_getSuggestionData'](_0x47dfd8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a44d6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47dfd8);}['_handleNewSuggestionMarker'](_0x318db1){const {id:_0x282250,type:_0x78522d,subType:_0x4aa193,authorId:_0xab2b5f}=this['_splitMarkerName'](_0x318db1),_0x499251=this['_suggestions']['get'](_0x282250)||this['_createSuggestion'](_0x78522d,_0x4aa193,_0x282250,_0xab2b5f,{});switch(this['_checkSuggestionCorrectness'](_0x499251,_0x78522d,_0x4aa193,_0xab2b5f),this['_suggestionState']['get'](_0x499251)){case'notReady':this['_getSuggestionData'](_0x282250)['then'](_0x43ca34=>{let _0x357988=Promise['resolve']();_0x43ca34['hasComments']&&(_0x357988=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x282250})),_0x357988['then'](()=>{this['addSuggestionData'](_0x43ca34)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x499251,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x282250,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x499251,'ready'),this['fire']('suggestionLoaded',_0x499251);break;case'ready':this['fire']('suggestionChanged',_0x499251);}return _0x499251['addMarkerName'](_0x318db1),_0x499251;}['_refreshSuggestionsChain'](_0x35aad6){const _0x1e79a8=Array['from'](_0x35aad6),_0xaf05f6=_0x1e79a8['filter'](_0xb9c73e=>'attribute'==_0xb9c73e['type']);this['_refreshAttributeSuggestionsChain'](_0xaf05f6);const _0x273625=_0x1e79a8['filter'](_0xe31492=>!_0xe31492['isMultiRange']&&'attribute'!=_0xe31492['type']),_0x59511b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fdb1a=>!_0x4fdb1a['isMultiRange']&&'attribute'!=_0x4fdb1a['type']),_0x419b60=_0x59511b['filter'](_0x4122cf=>!_0x35aad6['has'](_0x4122cf)),_0x1a57da=new Map(_0x59511b['map'](_0x3bdcfd=>[_0x3bdcfd,this['_suggestionFactory']['getSuggestionCallback'](_0x3bdcfd['type'],_0x3bdcfd['subType'],'chain')])),_0x41f631=new Map(_0x59511b['map'](_0x42d416=>[_0x42d416,_0x42d416['getFirstRange']()])),_0x50b0a0=new Set(),_0x3ac720=new Set();for(let _0x2fb51f=0x0;_0x2fb51f<_0x273625['length'];_0x2fb51f++)_0xb6dbb2(_0x273625[_0x2fb51f],_0x273625,_0x2fb51f+0x1);for(let _0x351853=0x0;_0x351853<_0x273625['length'];_0x351853++)_0xb6dbb2(_0x273625[_0x351853],_0x419b60,0x0);const _0x13e2f9=new Set();for(let _0x30c49e=0x0;_0x30c49e<_0x273625['length'];_0x30c49e++){const _0x112bc7=_0x273625[_0x30c49e];!_0x3ac720['has'](_0x112bc7)&&_0x112bc7['previous']&&(_0x13e2f9['add'](_0x112bc7['previous']),_0x112bc7['previous']['next']===_0x112bc7&&(_0x112bc7['previous']['next']=null),_0x112bc7['previous']=null),!_0x50b0a0['has'](_0x112bc7)&&_0x112bc7['next']&&(_0x13e2f9['add'](_0x112bc7['next']),_0x112bc7['next']['previous']===_0x112bc7&&(_0x112bc7['next']['previous']=null),_0x112bc7['next']=null);}function _0xb6dbb2(_0x19c15e,_0x16d0bc,_0x5af252){for(let _0x12c603=_0x5af252;_0x12c603<_0x16d0bc['length'];_0x12c603++){const _0x3b6d32=_0x14024f(_0x19c15e,_0x16d0bc[_0x12c603]);_0x3b6d32&&(_0x3b6d32[0x0]['next']=_0x3b6d32[0x1],_0x3b6d32[0x1]['previous']=_0x3b6d32[0x0],_0x50b0a0['add'](_0x3b6d32[0x0]),_0x3ac720['add'](_0x3b6d32[0x1]));}}function _0x14024f(_0x284c8e,_0x3349f3){if(_0x284c8e['author']['id']!==_0x3349f3['author']['id'])return null;const _0x5ca350=_0x1a57da['get'](_0x284c8e)(_0x284c8e,_0x3349f3,_0x41f631['get'](_0x284c8e),_0x41f631['get'](_0x3349f3));if(!_0x5ca350)return null;return _0x1a57da['get'](_0x3349f3)(_0x284c8e,_0x3349f3,_0x41f631['get'](_0x284c8e),_0x41f631['get'](_0x3349f3))?_0x5ca350[0x1]['commentThread']&&_0x5ca350[0x1]['commentThread']['length']?null:_0x5ca350:null;}_0x13e2f9['size']&&this['_refreshSuggestionsChain'](_0x13e2f9);}['_refreshAttributeSuggestionsChain'](_0xb3ca1b){if(0x0==_0xb3ca1b['length'])return;const _0x5034ae=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42af1e=>'attribute'==_0x42af1e['type']&&_0x42af1e['_isDataLoaded']),_0x2b6056=[],_0x11873f=new Map();for(const _0xa0bc47 of _0x5034ae){const _0x3d06e1=_0x222301(_0xa0bc47['attributes']);_0x11873f['has'](_0x3d06e1)||(_0x11873f['set'](_0x3d06e1,_0x2b6056['length']),_0x2b6056['push']([]));const _0x423e97=_0x11873f['get'](_0x3d06e1);_0x2b6056[_0x423e97]['push'](_0xa0bc47);}!(function(){_0x2b6056['sort']((_0x44ff6b,_0x47259b)=>{const _0x5498fd=_0x44ff6b[0x0]['createdAt'],_0x5c337c=_0x47259b[0x0]['createdAt'];return _0x5498fd==_0x5c337c?_0x44ff6b[0x0]['attributes']['groupId']<_0x47259b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5498fd<_0x5c337c?-0x1:0x1;});for(const _0x5f5474 of _0x2b6056)_0x5f5474['sort']((_0x4b83cd,_0x4fe519)=>_0x4b83cd['id']<_0x4fe519['id']?-0x1:0x1);}());for(let _0x47b3fa=0x0;_0x47b3fa<_0x2b6056['length'];_0x47b3fa++){if(0x0==_0x2b6056[_0x47b3fa]['length'])continue;const _0x17187c=[];for(let _0xdba9dc=_0x47b3fa+0x1;_0xdba9dc<_0x2b6056['length'];_0xdba9dc++)0x0!=_0x2b6056[_0xdba9dc]['length']&&_0x500f00(_0x2b6056[_0x47b3fa],_0x2b6056[_0xdba9dc])&&_0x17187c['push'](_0xdba9dc);for(const _0x644a9f of _0x17187c)_0x2b6056[_0x47b3fa]=_0x2b6056[_0x47b3fa]['concat'](_0x2b6056[_0x644a9f]),_0x2b6056[_0x644a9f]=[];}for(const _0x1949e1 of _0x2b6056)for(let _0x210766=0x0;_0x210766<_0x1949e1['length'];_0x210766++){const _0x3c99bd=_0x1949e1[_0x210766+0x1]||null;_0x1949e1[_0x210766]['next']!==_0x3c99bd&&(_0x1949e1[_0x210766]['next']=_0x3c99bd);}for(const _0x571555 of _0x2b6056)for(let _0x45a127=0x0;_0x45a127<_0x571555['length'];_0x45a127++){const _0x239967=_0x571555[_0x45a127-0x1]||null;_0x571555[_0x45a127]['previous']!==_0x239967&&(_0x571555[_0x45a127]['previous']=_0x239967);}function _0x500f00(_0x125e98,_0x58ff4e){if(_0x125e98[0x0]['attributes']['groupId']!==_0x58ff4e[0x0]['attributes']['groupId']&&_0x125e98[0x0]['author']!==_0x58ff4e[0x0]['author'])return!0x1;if(!function(_0x526d6c,_0x52597f){if(!_0x526d6c['hasComments']&&!_0x52597f['hasComments'])return!0x0;if(_0x526d6c['hasComments']&&_0x52597f['hasComments'])return!0x1;if(_0x526d6c['hasComments']&&_0x52597f['createdAt']<_0x526d6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x52597f['hasComments']&&_0x526d6c['createdAt']<_0x52597f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x125e98[0x0],_0x58ff4e[0x0]))return!0x1;const _0x5859ee=Tt(_0x125e98[0x0]['attributes'],'groupId'),_0x2e584e=Tt(_0x58ff4e[0x0]['attributes'],'groupId');if(!_0xa8556c(_0x5859ee,_0x2e584e))return!0x1;return!!_0x125e98['every'](_0x1668ee=>_0x58ff4e['some'](_0x3a30b2=>_0x1668ee['getFirstRange']()['isEqual'](_0x3a30b2['getFirstRange']())))&&_0x58ff4e['every'](_0x462815=>_0x125e98['some'](_0xe272e3=>_0x462815['getFirstRange']()['isEqual'](_0xe272e3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x34ae67){const _0x28de83=Array['from'](_0x34ae67),_0x5c9ea3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50d935=_0x5c9ea3['filter'](_0x3ca67e=>!_0x34ae67['has'](_0x3ca67e)),_0x1d79fd=new Map(_0x28de83['map'](_0x5930bd=>[_0x5930bd,this['_suggestionFactory']['getSuggestionCallback'](_0x5930bd['type'],_0x5930bd['subType'],'join')])),_0x2c8927=new Map(_0x5c9ea3['map'](_0x234b95=>[_0x234b95,_0x234b95['getRanges']()]));for(let _0x5627f6=0x0;_0x5627f6<_0x28de83['length'];_0x5627f6++){if(_0x5cfab9(this,_0x28de83[_0x5627f6],_0x28de83,_0x5627f6+0x1))return!0x0;}for(let _0x248df5=0x0;_0x248df5<_0x28de83['length'];_0x248df5++){if(_0x5cfab9(this,_0x28de83[_0x248df5],_0x50d935,0x0))return!0x0;}return!0x1;function _0x5cfab9(_0x22f827,_0x43e675,_0x571bec,_0xddad01){for(let _0x398666=_0xddad01;_0x398666<_0x571bec['length'];_0x398666++){const _0x4a501c=_0x571bec[_0x398666];if(_0x4a501c['type']!==_0x43e675['type']||_0x4a501c['author']['id']!==_0x43e675['author']['id']||_0x4a501c['subType']!==_0x43e675['subType'])continue;if(!Jt(_0x43e675,_0x4a501c))continue;if('attribute'==_0x43e675['type']&&_0x43e675['data']['oldValue']!=_0x4a501c['data']['oldValue'])continue;if('attribute'==_0x43e675['type']&&_0x22f827['_isBlockAttribute'](_0x43e675['data']['key']))continue;if('formatBlock'==_0x43e675['type']){const _0x997001=_0x22f827['editor']['model'],_0x48f299=_0x43e675['getContainedElement']();if(_0x48f299&&(_0x997001['schema']['isObject'](_0x48f299)||_0x997001['schema']['isLimit'](_0x48f299)))continue;}const _0x2566da=_0x1d79fd['get'](_0x43e675),_0x4e1f41=_0x2c8927['get'](_0x43e675),_0x21437d=_0x2c8927['get'](_0x4a501c),_0x33a4c4=_0x43e675['commentThread']&&_0x43e675['commentThread']['length'],_0x4293fd=_0x4a501c['commentThread']&&_0x4a501c['commentThread']['length'];if(!_0x33a4c4&&_0x2566da(_0x21437d,_0x4e1f41))return _0x22f827['_joinSuggestions'](_0x4a501c,_0x43e675),_0x2c8927['delete'](_0x43e675),!0x0;if(!_0x4293fd&&_0x2566da(_0x4e1f41,_0x21437d))return _0x22f827['_joinSuggestions'](_0x43e675,_0x4a501c),_0x2c8927['delete'](_0x4a501c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x344661,_0x54dd78){if(_0x344661['isMultiRange']){for(const _0x5bc2c8 of _0x54dd78['getRanges']())_0x344661['addRange'](_0x5bc2c8);}else{const _0x47ec06=_0x54dd78['getFirstRange']()['end'];this['_setSuggestionRange'](_0x344661,this['_model']['createRange'](_0x344661['getFirstRange']()['start'],_0x47ec06));}_0x54dd78['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c21e7,_0x8baab,_0x5ec3fc){const _0x2b07b3=_0x3c21e7['startsWith']('format')||_0x3c21e7['startsWith']('attribute')?'FORMATTING':_0x3c21e7['toUpperCase']();return o(this['editor']['locale'],_0x8baab+'_'+_0x2b07b3+'_SUGGESTION_ANNOUNCEMENT',_0x5ec3fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x250ab2=this['editor'];if(!_0x250ab2['ui'])return;const {ariaLiveAnnouncer:_0x1d4cff}=_0x250ab2['ui'];_0x238c7a(this['_model'],({left:_0x4c5b9a,entered:_0x52c878})=>{for(const _0x133f2c of _0x4c5b9a){const {group:_0x427b5f,type:_0x1cfa79}=this['_splitMarkerName'](_0x133f2c['name']);if('suggestion'===_0x427b5f){_0x1d4cff['announce'](this['_getMarkerAnnouncementText'](_0x1cfa79,'LEAVE'));break;}}for(const _0x1a7402 of _0x52c878){const {group:_0x34fc56,type:_0x39532e}=this['_splitMarkerName'](_0x1a7402['name']);if('suggestion'===_0x34fc56){_0x1d4cff['announce'](this['_getMarkerAnnouncementText'](_0x39532e,'ENTER',_0x32d411(_0x1450a3)));break;}}});}['_processAttributeChanges'](_0x3fa3c4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x180f9b=this['editor'],_0x27af7b=_0x180f9b['model']['document']['differ']['getChanges']();if(0x0==_0x27af7b['length'])return!0x1;const _0x4b7a71=[],_0x5e78af=_0x27af7b['filter'](_0x5ac7c4=>'attribute'==_0x5ac7c4['type']),_0x14c39c=_0x27af7b['filter'](_0x4d60b6=>'insert'==_0x4d60b6['type']&&'$text'!=_0x4d60b6['name']),_0x2c36b5=_0x27af7b['filter'](_0x44df24=>'remove'==_0x44df24['type']&&'$text'!=_0x44df24['name']);for(const _0x211764 of _0x5e78af)_0x4b7a71['push']({'key':_0x211764['attributeKey'],'newValue':_0x211764['attributeNewValue'],'oldValue':_0x211764['attributeOldValue'],'range':Pt(_0x211764['range'],_0x180f9b['model'])});for(const _0x500b46 of _0x14c39c){const _0x58ab61=_0x2c36b5['find'](_0x812f62=>_0x812f62['position']['isEqual'](_0x500b46['position']));_0x58ab61&&_0x4b7a71['push']({'key':m,'newValue':_0x500b46['name'],'oldValue':_0x58ab61['name'],'range':_0x180f9b['model']['createRangeOn'](_0x500b46['position']['nodeAfter'])});}return 0x0!=_0x4b7a71['length']&&this['_reduceExistingSuggestions'](_0x3fa3c4,_0x4b7a71);}['_processAttributeSuggestions'](_0x3e5b65){let _0x15bc42=!0x1;const _0x8a4f96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x159998=>_0x159998['data']['newRange']&&_0x159998['name']['startsWith']('suggestion:attribute:'));for(const _0x105508 of _0x8a4f96){const {subType:_0x4143c6,id:_0x3a7b9b}=this['_splitMarkerName'](_0x105508['name']),_0x2b4f13=_0x4143c6['split']('|')[0x0];for(const _0xc4bdd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xc4bdd2['id']!=_0x3a7b9b&&'attribute'==_0xc4bdd2['type']&&_0xc4bdd2['data']&&_0xc4bdd2['data']['key']==_0x2b4f13&&_0xc4bdd2['getFirstRange']()['isIntersecting'](_0x105508['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xc4bdd2,_0x105508['data']['newRange'],_0x3e5b65),_0x15bc42=!0x0);}return _0x15bc42;}['_recordAttributeChanges'](_0x2416d8){this['_recordAttributeSuggestions']=!0x0,_0x2416d8();}['_isRegisteredAttribute'](_0x715289){const _0x36ba47=this['_isBlockAttribute'](_0x715289),_0x51be8f=this['_inlineAttributeKeys']['has'](_0x715289);return _0x36ba47||_0x51be8f;}['_reduceExistingSuggestions'](_0x23e79d,_0x1fb28e){if(0x0==_0x1fb28e['length'])return!0x1;let _0xb11ae7=!0x1;for(const _0x23bda9 of _0x1fb28e){const _0x5c4724=this['_findSuggestions'](_0x23bda9['range'],'attribute')['filter'](_0x51d603=>!_0x51d603['meta']['isNextTo'])['map'](_0x2047f1=>_0x2047f1['suggestion']),_0x453ca5=_0x222301({'newValue':_0x23bda9['newValue']});_0x5c4724['filter'](_0x763f03=>{const [_0x529ef0,_0x3cb43a]=_0x763f03['subType']['split']('|');return _0x529ef0==_0x23bda9['key']&&_0x3cb43a!=_0x453ca5;})['forEach'](_0x391484=>{this['_reduceSuggestionAttributeRange'](_0x391484,_0x23bda9['range'],_0x23e79d),_0xb11ae7=!0x0;});}return _0xb11ae7;}['_reduceSuggestionAttributeRange'](_0x18268b,_0x3e3c3f,_0x2a0399){const _0x5dae22=_0x18268b['getFirstRange']()['getDifference'](_0x3e3c3f);0x0!==_0x5dae22['length']?0x1!==_0x5dae22['length']?this['_breakSuggestionMarker'](_0x18268b,_0x3e3c3f['start'],_0x3e3c3f['end']):this['_setSuggestionRange'](_0x18268b,_0x5dae22[0x0]):_0x2a0399['removeMarker'](_0x18268b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52a4fd){this['_editor']=_0x52a4fd,this['_model']=_0x52a4fd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x570423,_0x18222a,_0x520da5,_0x569bfd,_0x5ab1cc,_0x5bec68){return new u(this['_model'],{'type':_0x570423,'subType':_0x18222a,'id':_0x520da5,'author':_0x569bfd,'creator':_0x569bfd,'attributes':_0x5ab1cc,'onAttributesChange':_0x5bec68,'onAccept':(..._0x343de9)=>this['getSuggestionCallback'](_0x570423,_0x18222a,'accept')(..._0x343de9),'onDiscard':(..._0x119f3f)=>this['getSuggestionCallback'](_0x570423,_0x18222a,'discard')(..._0x119f3f)});}['registerCustomCallback'](_0x3efa5a,_0x5e77e6,_0xb3089c,_0x109cb7){const _0xcb716d=_0x3efa5a+':'+_0x5e77e6+':'+_0xb3089c;this['_customCallbacks']['set'](_0xcb716d,_0x109cb7);}['getSuggestionCallback'](_0x1b6f65,_0x2415c9,_0x47dc4d){const _0x18a92f=_0x1b6f65+':'+_0x2415c9+':'+_0x47dc4d;return this['_customCallbacks']['get'](_0x18a92f)||this['_defaultCallbacks']['get'](_0x1b6f65+':'+_0x47dc4d);}['_registerDefaultCallbacks'](){const _0x12de83=()=>!0x1,_0x246baa=_0x5daf5d=>{_0x5daf5d['sort']((_0x2a283e,_0x53e68b)=>_0x2a283e['start']['isBefore'](_0x53e68b['start'])?0x1:-0x1),this['_model']['change'](_0x4197b7=>{for(const _0x152aa6 of _0x5daf5d){let _0x5988d6;_0x5988d6=_0x152aa6['end']['isAtEnd']&&_0x152aa6['end']['parent']==_0x152aa6['start']['nodeAfter']?_0x4197b7['createSelection'](_0x152aa6['start']['nodeAfter'],'on'):_0x4197b7['createSelection'](_0x152aa6),this['_model']['deleteContent'](_0x5988d6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x36569f=(_0x35f6c1,_0x191d12)=>{_0x191d12&&this['_model']['change'](_0x3ea9f8=>{const {commandName:_0x3f345e,commandParams:_0x1da32d=[]}=_0x191d12,_0x1b5491=_0x35f6c1['map'](_0x2e9e5f=>(Vt(_0x2e9e5f)&&(_0x2e9e5f=this['_model']['createRange'](_0x2e9e5f['end'])),_0x2e9e5f))['filter'](_0x3ff1ed=>'$graveyard'!==_0x3ff1ed['root']['rootName']);if(_0x1b5491['length']<0x1)return;const _0x4778c1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4224cf=>_0x531671['fromRange'](_0x4224cf));_0x3ea9f8['setSelection'](_0x1b5491);for(const _0x51a0b6 of this['_editor']['commands']['commands']())_0x51a0b6['refresh']();_0x1da32d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f345e,..._0x1da32d);const _0x590802=_0x4778c1['filter'](_0x5f3632=>'$graveyard'!=_0x5f3632['root']['rootName']);_0x590802['length']>0x0&&_0x3ea9f8['setSelection'](_0x590802);for(const _0x578932 of _0x4778c1)_0x578932['detach']();});},_0x167a4f=(_0xa88a10,_0x4f7c8a)=>0x1==_0xa88a10['length']&&0x1==_0x4f7c8a['length']&&_0xa88a10[0x0]['end']['isEqual'](_0x4f7c8a[0x0]['start']),_0x15430d=(_0x161159,_0x5e3ab5,_0x1ae08f,_0x266a95)=>Ht(_0x161159,_0x5e3ab5,_0x1ae08f,_0x266a95,this['_model'])?[_0x161159,_0x5e3ab5]:Ht(_0x5e3ab5,_0x161159,_0x266a95,_0x1ae08f,this['_model'])?[_0x5e3ab5,_0x161159]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x12de83),this['_defaultCallbacks']['set']('insertion:discard',_0x246baa),this['_defaultCallbacks']['set']('insertion:join',_0x167a4f),this['_defaultCallbacks']['set']('insertion:chain',_0x15430d),this['_defaultCallbacks']['set']('deletion:accept',_0x246baa),this['_defaultCallbacks']['set']('deletion:discard',_0x12de83),this['_defaultCallbacks']['set']('deletion:join',_0x167a4f),this['_defaultCallbacks']['set']('deletion:chain',_0x15430d),this['_defaultCallbacks']['set']('formatInline:accept',_0x36569f),this['_defaultCallbacks']['set']('formatInline:discard',_0x12de83),this['_defaultCallbacks']['set']('formatInline:join',_0x167a4f),this['_defaultCallbacks']['set']('formatInline:chain',_0x12de83),this['_defaultCallbacks']['set']('formatBlock:accept',_0x36569f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x12de83),this['_defaultCallbacks']['set']('formatBlock:join',_0x167a4f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x12de83),this['_defaultCallbacks']['set']('attribute:accept',_0x12de83),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d9401,_0x2d6087)=>{if(!_0x2d6087)return;const _0x27c0e1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c900c=>{if(_0x2d6087['key']==m)for(const _0x207fd9 of _0x4d9401){const _0x215921=_0x207fd9['start']['nodeAfter'],_0x5270eb=_0x2d6087['oldValue'];_0x2c900c['rename'](_0x215921,_0x5270eb);}else{if(_0x27c0e1['_isBlockAttribute'](_0x2d6087['key'])){for(const _0x53ab69 of _0x4d9401)void 0x0!==_0x2d6087['oldValue']?_0x2c900c['setAttribute'](_0x2d6087['key'],_0x2d6087['oldValue'],_0x53ab69['start']['nodeAfter']):_0x2c900c['removeAttribute'](_0x2d6087['key'],_0x53ab69['start']['nodeAfter']);}else{for(const _0x5bad10 of _0x4d9401)_0x2d6087['oldValue']?_0x2c900c['setAttribute'](_0x2d6087['key'],_0x2d6087['oldValue'],_0x5bad10):_0x2c900c['removeAttribute'](_0x2d6087['key'],_0x5bad10);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x167a4f);}}function Ot(_0x2e258c,_0x555ae5,_0x4284e7){for(const _0x398796 of _0x555ae5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x398796['root']==_0x398796)return!0x1;if(!_0x4284e7['containsItem'](_0x398796))return!0x1;if(_0x2e258c['isObject'](_0x398796)||_0x2e258c['isLimit'](_0x398796))return!0x0;}return!0x1;}function Vt(_0x2fc6c4){return _0x2fc6c4['end']['parent']==_0x2fc6c4['start']['nodeAfter']&&_0x2fc6c4['end']['isAtStart'];}function Ut(_0x48b467,_0x5807fd,_0x215dcd,_0x3631c3){const _0x53db77=_0x4ef791=>!_0x4ef791['item']['is']('$textProxy')&&!_0x3631c3['isObject'](_0x4ef791['item']),_0x3684c3=_0x48b467['start']['getLastMatchingPosition'](_0x53db77),_0x48970f=_0x48b467['end']['getLastMatchingPosition'](_0x53db77,{'direction':'backward'});return(!_0x48b467['start']['isEqual'](_0x3684c3)||!_0x48b467['end']['isEqual'](_0x48970f))&&(_0x3684c3['isBefore'](_0x48970f)?_0x215dcd['updateMarker'](_0x5807fd,{'range':_0x215dcd['createRange'](_0x3684c3,_0x48970f)}):_0x215dcd['removeMarker'](_0x5807fd),!0x0);}function Gt(_0x6a58ef){return _0x222301(_0x6a58ef);}function Ft(_0x976718){const _0x1cc72f=_0x976718['start']['nodeAfter'];return _0x1cc72f&&_0x1cc72f['is']('element');}function Pt(_0x355dd6,_0x381bda){return null==_0x355dd6['end']['nodeBefore']&&_0x355dd6['end']['parent']==_0x355dd6['start']['nodeAfter']?Lt(_0x355dd6['start']['nodeAfter'],_0x381bda):_0x355dd6;}function Lt(_0x5aba51,_0x63dfb6){const _0x7f728b=_0x63dfb6['schema']['isObject'](_0x5aba51)||_0x63dfb6['schema']['isSelectable'](_0x5aba51);return _0x63dfb6['createRange'](_0x63dfb6['createPositionAt'](_0x5aba51,'before'),_0x7f728b?_0x63dfb6['createPositionAfter'](_0x5aba51):_0x63dfb6['createPositionAt'](_0x5aba51,'end'));}function Ht(_0x31f76b,_0x3b8a9a,_0x26a7d1,_0x14cdac,_0x1845ca){if(_0x31f76b['next'])return!0x1;if(!Jt(_0x31f76b,_0x3b8a9a))return!0x1;if(_0x26a7d1['end']['isEqual'](_0x14cdac['start']))return!0x0;if(_0x31f76b['type']!=_0x3b8a9a['type'])return!0x1;if(!_0x26a7d1['end']['isTouching'](_0x14cdac['start']))return!0x1;const _0x2558bf=_0x1845ca['createRange'](_0x26a7d1['end'],_0x14cdac['start'])['getWalker']();for(const _0x169f92 of _0x2558bf)if(['elementStart','elementEnd']['includes'](_0x169f92['type'])&&_0x1845ca['schema']['isLimit'](_0x169f92['item']))return!0x1;return!0x0;}function Jt(_0x4c2190,_0x295886){if(!_0x4c2190['_isDataLoaded']||!_0x295886['_isDataLoaded'])return!0x1;const _0x39665f=new Set(Object['keys'](_0x4c2190['attributes'])),_0x3e7b97=new Set(Object['keys'](_0x295886['attributes']));if(_0x39665f['delete']('groupId'),_0x3e7b97['delete']('groupId'),0x0==_0x39665f['size']&&0x0==_0x3e7b97['size'])return!0x0;if(_0x39665f['size']!=_0x3e7b97['size'])return!0x1;const _0x3c843d={..._0x4c2190['attributes']},_0x3d7018={..._0x295886['attributes']};return delete _0x3c843d['groupId'],delete _0x3d7018['groupId'],JSON['stringify'](_0x3c843d)==JSON['stringify'](_0x3d7018);}function qt(_0x46e590,_0xb58753){const _0x389d5a=zt(_0x46e590['attributes']),_0x21dd88=zt(_0xb58753);if(!_0x46e590['_isDataLoaded'])return!0x1;for(const _0x1f76d9 of Object['keys'](_0x21dd88))if(!_0xa8556c(_0x389d5a[_0x1f76d9],_0x21dd88[_0x1f76d9]))return!0x1;return!0x0;}function zt(_0x427b07){const _0x578f5f=Object['assign']({},_0x427b07);return delete _0x578f5f['skipNestingCheck'],delete _0x578f5f['tablePasteChainId'],_0x578f5f;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f8ba7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x567171,_0x435b9e,_0x591939,_0xd9746){super(),this['model']=_0x435b9e,this['view']=_0x591939,this['commentThreadController']=_0xd9746,this['_editor']=_0x567171,this['_acceptCommand']=_0x567171['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x567171['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ab3e6,_0x6d07e8)=>_0x2ab3e6||_0x6d07e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x39a4a1=>_0x39a4a1&&this['_editor']['model']['canEditAt'](_0x435b9e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x169141=>_0x169141&&this['_editor']['model']['canEditAt'](_0x435b9e['getRanges']())),this['_pendingAction']=null,_0x591939['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x591939,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x591939,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x591939,'change:isDirty',()=>{_0x591939['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 _0x1e8edb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1e8edb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2a40a0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x115d12,_0x3eb4e2,_0x1b8ed9,_0x324f36){super(_0x115d12),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x46a1c7(_0x115d12,o(_0x115d12,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb4e2['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb4e2),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',_0x3eb4e2,'authoredAt',this,'descriptionParts',(_0x45e980,_0x1707e6,_0x13d232)=>{const _0x9b81d9=_0x13d232['map'](_0x32cdab=>ls(_0x32cdab['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x45e980-0x1,_0x3eb4e2['author']['name'],_0x1707e6?_0x324f36['formatDateTime'](_0x1707e6):'',new DOMParser()['parseFromString'](_0x9b81d9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x65b505(),this['focusTracker']=new _0x52be18(),this['keystrokes']=new _0xc7e8f7(),this['focusCycler']=new _0x15d0d7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb8612d=>_0xb8612d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb4e2,this['_localUser']=_0x1b8ed9,this['_config']=_0x324f36,_0x324f36['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5e55dc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x319f13}=this['_config'];this['commentsListView']=new _0x319f13(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',_0x3ff1b7=>_0x3ff1b7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4bd394,_0x6491ac)=>_0x4bd394||!!_0x6491ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49cca7}=this['_config'],_0x51504b=new _0x49cca7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32f96a=_0x51504b['commentInputView'];return _0x51504b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32f96a,'value',(_0xba5706,_0x6151e9,_0xfc32f1)=>!!_0xfc32f1||_0xba5706&&!_0x6151e9),_0x32f96a['on']('submit',(_0x111fa6,_0x48e245)=>{this['fire']('addComment',_0x48e245),_0x32f96a['editor']['setData']('');}),_0x32f96a['on']('cancel',()=>this['focus']()),_0x32f96a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51504b;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4bf042,_0x4a5a2e,_0xc6ca3a,_0x5a2507){super(_0x4bf042,_0x4a5a2e,_0xc6ca3a,_0x5a2507),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36288a=>_0x36288a&&_0x36288a[0x0]?_0x36288a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4bd919,_0x38e89)=>{let _0x32c3f8='';for(const _0x2d8674 of _0x4bd919)_0x32c3f8+='<p>'+ls(_0x2d8674['content'],_0x2d8674['color'])+'</p>';return _0x38e89?_0x32c3f8:_0x37c84d(_0x32c3f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a2507['SuggestionView'](_0x4bf042,_0x4a5a2e,{'formatDateTime':_0x5a2507['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 _0x44d911=this['bindTemplate'],_0x298dd9=[this['suggestionView']];return this['commentsListView']&&_0x298dd9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x298dd9['push'](this['commentThreadInputView']),_0x298dd9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44d911['if']('isActive','ck-suggestion-wrapper--active'),_0x44d911['to']('type',_0x517cd5=>'ck-suggestion-'+_0x517cd5),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':_0x44d911['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x298dd9};}['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 ce extends _0x2a40a0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x51051b,_0x2c054c,_0x32471a){super(_0x51051b),this['_model']=_0x2c054c,this['_config']=_0x32471a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2c054c),this['acceptButton']=this['_createButton'](o(_0x51051b,'Accept\x20suggestion'),_0x13725c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x51051b,'Discard\x20suggestion'),_0x13725c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x69d512(_0x51051b,_0x2c054c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x65b505([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x52be18(),this['keystrokes']=new _0xc7e8f7(),this['focusCycler']=new _0x15d0d7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x236ba9=>_0x236ba9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2c380e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2c380e['innerHTML']=this['description'],this['on']('change:description',(_0x3a2f00,_0x51657e,_0x34baf7)=>{_0x2c380e['innerHTML']=_0x34baf7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a3df7=this['bindTemplate'],_0x1863b1=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5a3df7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a3df7['to']('authoredAt',_0x1df37f=>this['_config']['formatDateTime'](_0x1df37f))}]}]},{'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']&&_0x1863b1['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':_0x1863b1}]};}['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'](_0xf16b99,_0x4d2ac4,_0x5cc985,_0x387fe6,_0x364611){const _0x4852b0=new _0x4831dd(this['locale']);return _0x4852b0['set']({'label':_0xf16b99,'icon':_0x4d2ac4,'tooltip':!0x0,'tooltipPosition':_0x364611}),_0x4852b0['extendTemplate']({'attributes':{'class':_0x5cc985}}),_0x4852b0['on']('execute',()=>{this['fire'](_0x387fe6,this['_model']['id']);}),_0x4852b0;}['_setupKeyboardNavigation'](){const _0x235f85=this['element'];this['keystrokes']['listenTo'](_0x235f85);for(const _0x2f939a of this['focusables'])this['focusTracker']['add'](_0x2f939a['element']),this['keystrokes']['listenTo'](_0x2f939a['element']);this['keystrokes']['set']('enter',(_0x1d1af6,_0x583e9b)=>{_0x235f85===_0x1d1af6['target']&&(this['focusCycler']['focusFirst'](),_0x583e9b());}),this['keystrokes']['set']('esc',(_0x464929,_0x54bb16)=>{_0x235f85!==_0x464929['target']&&(this['focus'](),_0x54bb16());});}}var he='<!--\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-2024,\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 _0x409965{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xf1e53e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x50b22b){super(_0x50b22b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5934c8=this['editor']['config'];_0x5934c8['define']('trackChanges.SuggestionThreadView',re),_0x5934c8['define']('trackChanges.SuggestionView',ce),_0x5934c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5934c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x611adc,_0x509414){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xef5ef4,_0x5f1d5b]of this['_handleControllerBuffer']){const _0x1a73ea=this['_suggestionToController']['has'](_0xef5ef4);_0x1a73ea||_0x5f1d5b?_0x1a73ea&&_0x5f1d5b&&this['_destroyController'](_0xef5ef4):this['_initializeController'](_0xef5ef4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x611adc,_0x509414);}['init'](){const _0x1a838c=this['editor'],_0x50f944=_0x1a838c['plugins']['get']('TrackChangesEditing'),_0x18219c=_0x1a838c['plugins']['get']('Annotations'),_0x271db7=_0x1a838c['plugins']['get']('EditorAnnotations'),_0x228121=_0x1a838c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x271db7['addSourceCollector'](()=>{const _0x5f0fd7=[];for(const [_0x29d744,_0x4af4ee]of Array['from'](this['_suggestionToController'])){const _0x1035b2=_0x29d744['getAllAdjacentSuggestions'](),_0x38c72e=[];for(const _0x541e2d of _0x1035b2){if(!_0x541e2d['isInContent'])continue;if(_0x541e2d['isMultiRange']){_0x38c72e['push'](..._0x541e2d['getRanges']());continue;}const _0x2f45e8=_0x541e2d['getFirstRange']();if(_0x38c72e['length']>0x0){const _0x69b7d6=_0x38c72e[0x0]['getJoined'](_0x2f45e8);if(_0x69b7d6){_0x38c72e[0x0]=_0x69b7d6;continue;}}_0x38c72e['push'](_0x2f45e8);}_0x5f0fd7['push']([_0x4af4ee['view'],_0x38c72e]);}return _0x5f0fd7;}),this['listenTo'](_0x50f944,'suggestionLoaded',(_0x5e6ea6,_0x14ac75)=>{this['listenTo'](_0x14ac75,'change:previous',(_0x1239a6,_0x5dc65a,_0x1fcec9,_0x279627)=>{_0x14ac75['isInContent']&&(null==_0x1fcec9?(this['_updateController'](_0x279627['head']),this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x1)):(this['_updateController'](_0x1fcec9['head']),null==_0x279627&&this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x0)));}),null!==_0x14ac75['previous']?this['_updateController'](_0x14ac75['head']):this['_handleSuggestionControllerDelayed'](_0x14ac75,!0x1);}),this['listenTo'](_0x50f944,'suggestionUnloaded',(_0x26996a,_0x368965,_0x46cad4)=>{this['stopListening'](_0x368965,'change:previous'),this['_handleControllerBuffer']['delete'](_0x368965),this['_suggestionToController']['has'](_0x368965)&&this['_destroyController'](_0x368965),_0x46cad4&&this['_updateController'](_0x46cad4['head']);}),this['listenTo'](_0x50f944,'suggestionChanged',(_0x154408,_0x1dccdc)=>{this['_updateController'](_0x1dccdc);}),this['listenTo'](_0x18219c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x228121,'addComment',(_0x2e2be3,{threadId:_0x44acb7,isFromAdapter:_0x6b048e})=>{if(_0x6b048e||!_0x50f944['hasSuggestion'](_0x44acb7))return;const _0x57d51d=_0x50f944['getSuggestion'](_0x44acb7);this['_suggestionToController']['get'](_0x57d51d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5bd29e=this['editor']['plugins']['get']('Annotations'),_0x773df1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40797e=Array['from'](_0x5bd29e['activeAnnotations'],_0xab63ef=>_0xab63ef['innerView'])['filter'](_0x4b5056=>this['_viewToController']['has'](_0x4b5056)),_0x3cfff8=[];for(const _0x342f1c of _0x40797e){const _0x58e636=this['_viewToController']['get'](_0x342f1c)['model']['getAllAdjacentSuggestions']();_0x3cfff8['push'](..._0x58e636['reduce']((_0x138cc9,_0xddf17d)=>[..._0x138cc9,..._0xddf17d['getMarkerNames']()],[]));}_0x773df1['activeMarkers']=_0x3cfff8;}['_addUIComponentsToFactory'](){const _0x154f09=this['editor'],_0x50ef14=_0x154f09['locale'],_0x5112c1=o(_0x50ef14,'Track\x20changes'),_0x156a26=new Wt([{'type':'switchbutton','model':new _0x503b3a({'withText':!0x0,'isToggleable':!0x0,'label':_0x5112c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x503b3a({'withText':!0x0,'label':o(_0x50ef14,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4761c1 of _0x156a26)if(me(_0x4761c1)){const _0x5ecd4c=_0x154f09['commands']['get'](_0x4761c1['model']['commandName']);_0x4761c1['model']['bind']('isOn','isEnabled')['to'](_0x5ecd4c,'value','isEnabled');}_0x154f09['ui']['componentFactory']['add']('trackChanges',_0x4b08cf=>this['_createToolbarButton'](_0x4b08cf,_0x156a26,_0x5112c1)),_0x154f09['ui']['componentFactory']['add']('menuBar:trackChanges',_0x134569=>this['_createMenuBarMenu'](_0x134569,_0x156a26,_0x5112c1));}['_createToolbarButton'](_0xb65a27,_0x336844,_0x2d42e4){const _0x383d46=Qt(_0xb65a27,_0x4794fd),_0x866d7c=this['editor']['commands']['get']('trackChanges');_0x383d46['buttonView']['set']({'tooltip':_0x2d42e4,'label':_0x2d42e4,'icon':he}),_0x383d46['buttonView']['bind']('isOn')['to'](_0x866d7c,'value'),_0x383d46['buttonView']['on']('execute',()=>{_0x866d7c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x383d46,_0x336844,{'role':'menu'});const _0x496b63=[];for(const _0x5f3424 of _0x336844)me(_0x5f3424)&&_0x496b63['push'](this['editor']['commands']['get'](_0x5f3424['model']['commandName']));const _0xd191f1=_0x383d46['buttonView'];return _0xd191f1['actionView']['unbind']('isEnabled'),_0xd191f1['arrowView']['unbind']('isEnabled'),_0xd191f1['actionView']['bind']('isEnabled')['to'](_0x866d7c,'isEnabled'),_0xd191f1['arrowView']['bind']('isEnabled')['toMany'](_0x496b63,'isEnabled',(..._0x2f11c1)=>_0x2f11c1['some'](_0x16a0a8=>_0x16a0a8)),_0x383d46['on']('execute',_0x3d7fe0=>{this['editor']['execute'](_0x3d7fe0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x383d46;}['_createMenuBarMenu'](_0x2655ab,_0x40b1ed,_0x3177e9){const _0x52fdfd=new Yt(_0x2655ab),_0x213ee5=this['editor']['commands']['get']('trackChanges');_0x52fdfd['buttonView']['set']({'label':_0x3177e9,'icon':he});const _0x441523=new Zt(_0x2655ab);for(const _0x28892a of _0x40b1ed){if('separator'==_0x28892a['type']){_0x441523['items']['add'](new Xt(_0x2655ab));continue;}const _0x1b09ca=new te(_0x2655ab,_0x52fdfd),_0x4c3a90=new _0x1baf7d(_0x2655ab),_0x576946=_0x28892a['model'];_0x4c3a90['bind'](...Object['keys'](_0x576946))['to'](_0x576946),_0x4c3a90['delegate']('execute')['to'](_0x52fdfd),_0x4c3a90['on']('execute',()=>{this['editor']['execute'](_0x576946['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b09ca['children']['add'](_0x4c3a90),_0x441523['items']['add'](_0x1b09ca);}return _0x52fdfd['bind']('isEnabled')['to'](_0x213ee5,'isEnabled'),_0x52fdfd['panelView']['children']['add'](_0x441523),_0x52fdfd;}['_initializeController'](_0x1ed093){const _0x563563=this['editor'],_0x588405=_0x563563['config'],_0x453236=_0x563563['plugins']['get']('Annotations'),_0x53ea5e=_0x563563['plugins']['get']('CommentsRepository'),_0x36d189=_0x563563['plugins']['get']('EditorAnnotations'),_0x1bbac8=_0x563563['plugins']['get'](_0xf1e53e)['me'],_0x1336e0=_0x588405['get']('trackChanges')['SuggestionThreadView'],_0x4692f6=_0x588405['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4103f6,CommentThreadInputView:_0x1422f6}=_0x563563['plugins']['get']('CommentsUI');let _0x5ad666,_0x5c8e71,_0x53f655;this['_annotationViews']['has'](_0x1ed093['id'])?(_0x5c8e71=this['_annotationViews']['get'](_0x1ed093['id']),_0x5ad666=_0x5c8e71['mainView']):(_0x5ad666=new _0x1336e0(_0x563563['locale'],_0x1ed093,_0x1bbac8,{'disableComments':this['_disableComments'],'editorConfig':_0x588405['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x588405['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x588405['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x588405['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x28686b(_0x588405['get']('locale')),'CommentView':_0x588405['get']('comments')['CommentView'],'CommentsListView':_0x4103f6,'CommentThreadInputView':_0x1422f6,'SuggestionView':_0x4692f6}),_0x5ad666['suggestionView']['acceptButton']['on']('execute',()=>{_0x563563['editing']['view']['focus']();}),_0x5ad666['suggestionView']['discardButton']['on']('execute',()=>{_0x563563['editing']['view']['focus']();}),_0x5c8e71=_0x453236['createAnnotationView'](this['editor']['locale'],_0x5ad666),_0x5c8e71['bind']('isDirty')['to'](_0x5ad666,'isDirty'),_0x5c8e71['bind']('length')['to'](_0x5ad666),_0x5c8e71['bind']('type')['to'](_0x5ad666,'type',_0x12f48a=>'suggestion-'+_0x12f48a),_0x5ad666['on']('escape',()=>{_0x53f655['fire']('escape');}),this['_annotationViews']['set'](_0x1ed093['id'],_0x5c8e71));const _0x3c82db=_0x53ea5e['createCommentThreadController'](_0x1ed093['commentThread'],_0x5ad666),_0x5aa644=new ae(_0x563563,_0x1ed093,_0x5ad666,_0x3c82db),_0x230dbe=_0x1ed093['getAllAdjacentSuggestions']()['filter'](_0xa47bbb=>_0xa47bbb['isInContent']);_0x5ad666['descriptionParts']=_0x563563['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x230dbe),this['_suggestionToController']['set'](_0x1ed093,_0x5aa644),this['_viewToController']['set'](_0x5ad666,_0x5aa644),_0x53f655=_0x453236['createAnnotation']({'view':_0x5c8e71,'target':()=>{const _0x10e93f=[],_0xb5827d=_0x1ed093['getAllAdjacentSuggestions']()['filter'](_0x124223=>_0x124223['isInContent']);for(const _0x36f981 of _0xb5827d)_0x10e93f['push'](..._0x36f981['getMarkers']());return _0x35251d(_0x563563['editing'],_0x10e93f);},'type':()=>'suggestion-'+_0x5aa644['view']['type']}),_0x53ea5e['_bindAnnotationToEditors'](_0x5ad666,_0x53f655),_0x453236['add'](_0x53f655),_0x36d189['registerAnnotation'](_0x53f655);}['_destroyController'](_0x3fab44){const _0x12239b=this['editor']['plugins']['get']('CommentsRepository'),_0x7861e4=this['editor']['plugins']['get']('Annotations'),_0x3c5dbb=this['_suggestionToController']['get'](_0x3fab44),_0x3bb29d=_0x3c5dbb['view'],_0x5676d7=_0x7861e4['getByInnerView'](_0x3bb29d);_0x12239b['_unbindEditors'](_0x3bb29d),_0x5676d7&&_0x7861e4['remove'](_0x5676d7),this['_suggestionToController']['delete'](_0x3fab44),this['_viewToController']['delete'](_0x3bb29d),_0x3c5dbb['destroy']();}['_updateController'](_0x5e12cc){if(!_0x5e12cc['isInContent']||!this['_suggestionToController']['has'](_0x5e12cc))return;const _0x39b771=this['editor']['plugins']['get']('TrackChangesEditing'),_0x547788=this['_suggestionToController']['get'](_0x5e12cc),_0x49ae01=_0x5e12cc['getAllAdjacentSuggestions']();_0x547788['view']['descriptionParts']=_0x39b771['descriptionFactory']['getDescriptions'](_0x49ae01);}['destroy'](){for(const _0x550d41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x550d41);for(const _0x114cfa of this['_annotationViews']['values']())_0x114cfa['mainView']['destroy']();super['destroy']();}}function me(_0x50f52e){return'model'in _0x50f52e;}class k extends _0x409965{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d862a){this['editor']['plugins']['get'](p)['adapter']=_0x2d862a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x124409){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x124409);}['getSuggestions']({skipNotAttached:_0x73049b=!0x1,toJSON:_0x22b1dd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x73049b,'toJSON':_0x22b1dd});}['getSuggestion'](_0x3dda45){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3dda45);}}const T=['Pagination'];class P extends _0x409965{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1e5d28=this['editor'];if(_0x1e5d28['config']['define']('trackChangesData.editorCreator',_0x395c95=>{const _0x31fc58=_0x1e5d28['model']['document']['getRootNames']()['reduce']((_0x42567e,_0x539e3b)=>(_0x42567e[_0x539e3b]='',_0x42567e),{});return _0x1e5d28['constructor']['create'](_0x31fc58,_0x395c95);}),'function'!=typeof _0x1e5d28['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a44d6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3011a3){return N(this['editor'],!0x0,_0x3011a3);}['getDataWithDiscardedSuggestions'](_0x5a36f0){return N(this['editor'],!0x1,_0x5a36f0);}}class D extends _0x409965{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x354955){super(_0x354955),this['result']='end';}['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 v(_0x20a002){return void 0x0!==_0x20a002['getRootsAttributes'];}async function N(_0x343888,_0x23bb40,_0x17fee6){const _0x33c13c=_0x141c13(_0x343888,T);_0x33c13c['plugins']['push'](p,D),_0x33c13c['rootsAttributes']=v(_0x343888)?_0x343888['getRootsAttributes']():void 0x0;const _0x37a25d=document['createDocumentFragment'](),_0x5244d3=_0x343888['config']['get']('trackChangesData')['editorCreator'],_0x4a8091=await _0x5244d3(_0x33c13c,()=>function(_0x59e5cd){const _0xa30148=document['createElement']('div');return _0x59e5cd['appendChild'](_0xa30148),_0xa30148;}(_0x37a25d));!function(_0x4a2b25,_0x39eb2e){const _0x5bb31e=_0x4a2b25['model']['document']['getRootNames']()['reduce']((_0x27f203,_0x50326f)=>(_0x27f203[_0x50326f]=_0x4a2b25['data']['get']({'rootName':_0x50326f}),_0x27f203),{}),_0x47e8fc=_0x4a2b25['plugins']['get']('Users')['users']['map'](_0x374ea8=>({'id':_0x374ea8['id'],'name':_0x374ea8['name']})),_0x54d564=_0x4a2b25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2738f7=_0x4a2b25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d9c81=_0x39eb2e['plugins']['get']('Users'),_0x339a2e=_0x39eb2e['plugins']['get']('TrackChangesEditing'),_0x127569=_0x39eb2e['plugins']['get']('CommentsRepository');for(const _0x651ae0 of _0x127569['getCommentThreads']())_0x651ae0['remove']();for(const _0x2100bd of _0x47e8fc)_0x4d9c81['getUser'](_0x2100bd['id'])||_0x4d9c81['addUser'](_0x2100bd);_0x4d9c81['me']||_0x4d9c81['useAnonymousUser']();for(const _0x427a41 of _0x2738f7)_0x127569['addCommentThread'](_0x427a41);for(const _0x1eb589 of _0x54d564)_0x339a2e['addSuggestionData'](_0x1eb589);_0x39eb2e['data']['set'](_0x5bb31e);}(_0x343888,_0x4a8091),_0x4a8091['execute'](_0x23bb40?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f4306=v(_0x4a8091)?_0x4a8091['getFullData'](_0x17fee6):_0x4a8091['data']['get'](_0x17fee6);return await _0x4a8091['destroy'](),_0x1f4306;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x2786a9,PendingActions as _0x4c77bb,icons as _0x2512f0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3acfd3,ObservableMixin as _0x5d3505,uid as _0x4a9fdc,insertToPriorityArray as _0x5864c2,priorities as _0x22d863,logWarning as _0x2817b6,getEnvKeystrokeText as _0xe2a69d,FocusTracker as _0x4fe0ab,KeystrokeHandler as _0x4e6d3e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x6eefdb,View as _0x2e5a17,ViewCollection as _0x57c3ba,FocusCycler as _0x8877cb,ViewModel as _0x362a70,createDropdown as Qt,SplitButtonView as _0x245b32,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x11d8ae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xcf1928,hashObject as _0x328cfd,surroundingMarkersDetector as _0x4a6b6f,FOCUS_ANNOTATION_KEYSTROKE as _0x37a7c7,AriaDescriptionView as _0x14ccef,setupThreadKeyboardNavigation as _0x5edb36,trimHtml as _0x5df24c,UserView as _0x52e9b5,LateFocusButtonView as _0x27ae4b,getDateTimeFormatter as _0x1d3ebd,getAllMarkersDomElementsSorted as _0x2c9c7d,sanitizeEditorConfig as _0x5c2404}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x405fcd,LiveRange as _0x1b4d08,LivePosition as _0x4199ee}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4293ac,toWidget as _0x202ca3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2478e4,set as _0x194b88,isEqual as _0x18b24e,unset as _0x3add02,omit as Tt}from'lodash-es';import{Delete as _0x61d41a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x305d69,ShiftEnter as _0x23f31b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3b274e,_0x394876){super(_0x3b274e),this['_enabledCommands']=_0x394876,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 _0x3cf23c of this['editor']['commands']['commands']())_0x3cf23c['affectsData']&&!this['_enabledCommands']['has'](_0x3cf23c)&&_0x3cf23c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1de8ed of this['editor']['commands']['commands']())_0x1de8ed['affectsData']&&!this['_enabledCommands']['has'](_0x1de8ed)&&_0x1de8ed['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x19fa8d,_0x25008e){super(_0x19fa8d),this['_suggestions']=_0x25008e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x32738a){const _0x11c512=this['_suggestions']['get'](_0x32738a);if(!_0x11c512)throw new _0x3acfd3('track-changes-accept-suggestion-not-found',this);const _0x398a5a=_0x11c512['getRanges']();this['editor']['model']['canEditAt'](_0x398a5a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x11c512);}}class R extends ts{['_suggestions'];constructor(_0x31394b,_0x20eb6b){super(_0x31394b),this['_suggestions']=_0x20eb6b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa641ea){const _0x5f1ee4=this['_suggestions']['get'](_0xa641ea);if(!_0x5f1ee4)throw new _0x3acfd3('track-changes-discard-suggestion-not-found',this);const _0x1c4b13=_0x5f1ee4['getRanges']();this['editor']['model']['canEditAt'](_0x1c4b13)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5f1ee4);}}function ls(_0x24d807,_0x579656){let _0x415528='';return _0x415528+=_0x24d807['split']('*')['map']((_0x4edfcb,_0x39e39c)=>_0x39e39c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4edfcb)+'</span>':nn(_0x4edfcb))['join'](''),_0x579656&&(_0x415528+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x579656['value']+'\x22\x20title=\x22'+_0x579656['title']+'\x22></span>'),_0x415528;}function nn(_0x53bfa1){const _0x5de770=document['createElement']('span');return _0x5de770['innerText']=_0x53bfa1,_0x5de770['innerHTML'];}function ss(_0x563f79){return _0x563f79['sort']((_0x16f5e7,_0x49c914)=>'deletion'==_0x16f5e7['type']&&'deletion'!=_0x49c914['type']?-0x1:'deletion'!=_0x16f5e7['type']&&'deletion'==_0x49c914['type']?0x1:0x0);}function to(_0xc0100a,_0xc160bc){let _0x240191,_0x40f6e7=0x0;const _0x4521d6=[],_0x51d7b1=_0xc160bc['schema'];for(;_0x40f6e7<_0xc0100a['length'];){const _0x21d780=_0xc0100a[_0x40f6e7],_0x3f9e0a=_0xc0100a[_0x40f6e7+0x1];_0x240191||(_0x240191=_0xc160bc['createPositionBefore'](_0x21d780)),on(_0xc160bc,_0x21d780,_0x3f9e0a)||(_0x4521d6['push'](_0xc160bc['createRange'](_0x240191,_0x51d7b1['isObject'](_0x21d780)?_0xc160bc['createPositionAfter'](_0x21d780):_0xc160bc['createPositionAt'](_0x21d780,'end'))),_0x240191=null),_0x40f6e7++;}return _0x4521d6;}function on(_0xa071b5,_0x213bd6,_0x3a3204){if(!_0x3a3204)return!0x1;const _0x5123ef=_0xa071b5['createPositionAfter'](_0x213bd6),_0xa192d8=_0xa071b5['createPositionBefore'](_0x3a3204);return _0x5123ef['isTouching'](_0xa192d8);}function rs(_0x30556b,_0x59f0e6,_0x17a9ec){for(;_0x17a9ec['length'];){const _0x4062dc=_0x17a9ec['splice'](0x0,0x64);_0x30556b['change'](()=>{for(const _0x4474a7 of _0x4062dc)_0x4474a7['isInContent']&&_0x59f0e6['execute'](_0x4474a7['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3a1192,_0x45a25f,_0x26f37d){super(_0x3a1192),this['_command']=_0x45a25f,this['_suggestions']=_0x26f37d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x300935=Array['from'](this['_suggestions']['values']())['some'](_0x293501=>_0x293501['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x300935;}['execute'](){const _0x10236a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1d2c16 of _0x10236a){const _0x168531=_0x1d2c16['getRanges']();if(!this['editor']['model']['canEditAt'](_0x168531))return;}rs(this['editor']['model'],this['_command'],_0x10236a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xa1e682,_0x3eb55e,_0x2f97c4){super(_0xa1e682),this['_command']=_0x3eb55e,this['_suggestions']=_0x2f97c4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ca410=this['editor']['model']['document']['selection'],_0x1c823e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x227fa3,_0x104256){const _0x56169d=Array['from'](_0x227fa3['getRanges']()),_0x8196d1=new Set();for(const _0x9591d7 of _0x104256)if(_0x9591d7['isInContent']){for(const _0x127183 of _0x56169d)for(const _0x5c4698 of _0x9591d7['getRanges']())(_0x127183['isIntersecting'](_0x5c4698)||_0x227fa3['isCollapsed']&&!_0x9591d7['isMultiRange']&&_0x9591d7['next']&&_0x5c4698['end']['isTouching'](_0x127183['start']))&&_0x8196d1['add'](_0x9591d7);}return _0x8196d1;}(_0x2ca410,_0x1c823e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2c28cc=ss(Array['from'](this['_selectedSuggestions']));for(const _0x48d991 of _0x2c28cc){const _0x1c2617=_0x48d991['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c2617))return;}rs(this['editor']['model'],this['_command'],_0x2c28cc);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d3505(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44deaa,_0xef088a){super(),this['id']=_0xef088a['id'],this['type']=_0xef088a['type'],this['subType']=_0xef088a['subType']||null,this['author']=_0xef088a['author'],this['creator']=_0xef088a['creator']||_0xef088a['author'],this['isExternal']=Boolean(_0xef088a['attributes']&&_0xef088a['attributes']['@external']),this['data']=null,this['_model']=_0x44deaa,this['_onAccept']=_0xef088a['onAccept'],this['_onDiscard']=_0xef088a['onDiscard'],this['_onAttributesChange']=_0xef088a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xef088a['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 _0x5a91b6=this;for(;_0x5a91b6['previous'];)_0x5a91b6=_0x5a91b6['previous'];return _0x5a91b6;}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'](_0x3beac1){this['_markerNames']['add'](_0x3beac1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3050bb=>this['_model']['markers']['get'](_0x3050bb))['filter'](_0x36a7d9=>_0x36a7d9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46fd3b=>{for(const _0x3606dc of this['getMarkers']())_0x46fd3b['removeMarker'](_0x3606dc);}),this['_markerNames']['clear']();}['removeMarker'](_0x11c274){this['_model']['change'](_0x2376c3=>{_0x2376c3['removeMarker'](_0x11c274);}),this['_markerNames']['delete'](_0x11c274);}['addRange'](_0x5c04ac){const _0x3899b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3899b1),this['_model']['change'](_0x4e6c77=>{_0x4e6c77['addMarker'](_0x3899b1,{'range':_0x5c04ac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x54042b){for(const _0x6fc21d of this['getRanges']())if(_0x6fc21d['isIntersecting'](_0x54042b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b6a6d=>_0x1b6a6d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3bb436,_0x175e1c)=>[..._0x3bb436,..._0x175e1c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ad0ae=this['getRanges']();if(0x1!=_0x5ad0ae['length'])return null;const _0x40e61e=_0x5ad0ae[0x0],_0x49b656=_0x40e61e['start']['nodeAfter'],_0x5652a8=_0x40e61e['end']['nodeBefore'];return _0x49b656 instanceof _0x405fcd?_0x49b656!=_0x5652a8?null:_0x49b656: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 _0x4156cc=[];let _0x242c17=this['head'];for(;_0x242c17;)_0x4156cc['push'](_0x242c17),_0x242c17=_0x242c17['next'];return _0x4156cc;}['setAttribute'](_0x11aba8,_0x6ec94c){const _0x5bd1cd=_0x2478e4(this['attributes']);_0x194b88(_0x5bd1cd,_0x11aba8,_0x6ec94c),_0x18b24e(_0x5bd1cd,this['attributes'])||(this['attributes']=_0x5bd1cd,this['_onAttributesChange'](_0x5bd1cd));}['removeAttribute'](_0x314873){const _0x5f2ba7=_0x2478e4(this['attributes']);_0x3add02(_0x5f2ba7,_0x314873),_0x18b24e(_0x5f2ba7,this['attributes'])||(this['attributes']=_0x5f2ba7,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 _0x4a9fdc()['substr'](0x1,0x5);}}function o(_0x303b49,_0x1907b,_0x3ef848){const t=_0x303b49['t'];switch(_0x1907b){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'*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',_0x3ef848);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ef848);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ef848);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ef848);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ef848);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',_0x3ef848);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ef848);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x3ef848);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ef848);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ef848);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ef848);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ef848);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ef848);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ef848);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ef848);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ef848);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ef848);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ef848);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ef848);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ef848);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ef848);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ef848);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ef848);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'},_0x3ef848);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ef848);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ef848);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ef848);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ef848);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ef848);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'},_0x3ef848);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ef848);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ef848);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ef848);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ef848);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'},_0x3ef848);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ef848);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'},_0x3ef848);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'},_0x3ef848);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ef848);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'},_0x3ef848);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ef848);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'},_0x3ef848);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ef848);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ef848);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'},_0x3ef848);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ef848);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ef848);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ef848);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'},_0x3ef848);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'},_0x3ef848);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'},_0x3ef848);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1907b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1936af,_0x47e7fc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1936af,this['_locale']=_0x47e7fc;}['getDescriptions'](_0xab2587){const _0x3199cd=[],_0xe1c147=new Set(),_0x1f3b16=new Set();for(let _0x1f9d12=0x0;_0x1f9d12<_0xab2587['length'];_0x1f9d12++){const _0x39b8f2=_0xab2587[_0x1f9d12];if(!_0x39b8f2['isInContent'])continue;const _0x17f047=this['_handleCustomCallbackDescription'](_0x39b8f2);if(_0x17f047){if(null!=_0x39b8f2['subType']){if(_0xe1c147['has'](_0x39b8f2['subType']))continue;_0xe1c147['add'](_0x39b8f2['subType']);}_0x3199cd['push'](_0x17f047);}else{if('attribute'!=_0x39b8f2['type'])'insertion'!=_0x39b8f2['type']&&'deletion'!=_0x39b8f2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3199cd,_0x39b8f2,_0xab2587[_0x1f9d12+0x1]);else{const _0x403c67=_0x39b8f2['data']['key'];if(_0x1f3b16['has'](_0x403c67))continue;_0x1f3b16['add'](_0x39b8f2['data']['key']),_0x403c67==m?this['_handleRenameSuggestionDescription'](_0x3199cd,_0x39b8f2):this['_handleAttributeSuggestionDescription'](_0x3199cd,_0x39b8f2);}}}return this['_resolveDescriptionItems'](_0x3199cd);}['registerDescriptionCallback'](_0x4ba12e){this['_customCallbacks']['push'](_0x4ba12e);}['registerElementLabel'](_0x5ef923,_0x137b30,_0x390d19=_0x22d863['normal']){'function'==typeof _0x5ef923?_0x5864c2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ef923,'label':_0x137b30,'priority':_0x390d19}):this['_itemLabels']['set'](_0x5ef923,_0x137b30);}['registerAttributeLabel'](_0x35ec4e,_0x3b4513){this['_attributeLabels']['set'](_0x35ec4e,_0x3b4513);}['getItemLabel'](_0x5c752c,_0x131767=0x1){let _0x3d4d33;for(const _0x54d2ac of this['_itemLabelsCallbacks'])if(_0x54d2ac['matchingCallback'](_0x5c752c)){_0x3d4d33=_0x54d2ac['label'];break;}return _0x3d4d33||(_0x3d4d33=this['_itemLabels']['get'](_0x5c752c['name'])),_0x3d4d33?_0x3d4d33(_0x131767):0x1!==_0x131767?_0x131767+'\x20'+_0x5c752c['name']+'s':''+_0x5c752c['name'];}['_addDescriptionItems'](_0x4b68d3,_0x55f44d){const _0x584bd5=_0x55f44d['getFirstRange']()['getWalker'](),_0x49c6ff='insertion'==_0x55f44d['type']?'add':'remove';for(const _0xa0366f of _0x584bd5){const _0x2c3d53=_0xa0366f['item'],_0x1d06a3=_0x4b68d3[_0x4b68d3['length']-0x1];if(_0x2c3d53['is']('$textProxy'))_0x1d06a3&&_0x1d06a3['type']['indexOf']('Container')>-0x1&&_0x4b68d3['pop'](),_0x1d06a3&&'text'==_0x1d06a3['type']?_0x1d06a3[_0x49c6ff]+=_0x2c3d53['data']:_0x4b68d3['push']({'type':'text','add':'add'==_0x49c6ff?_0x2c3d53['data']:'','remove':'remove'==_0x49c6ff?_0x2c3d53['data']:''});else{if(this['_schema']['isObject'](_0x2c3d53)){const _0x17a226=_0x2c3d53;if(_0x1d06a3&&_0x1d06a3['type']['indexOf']('Container')>-0x1&&_0x4b68d3['pop'](),'elementEnd'==_0xa0366f['type'])continue;_0x1d06a3&&_0x1d06a3['type']==_0x49c6ff+'Object'&&_0x1d06a3['element']['name']==_0x17a226['name']?_0x1d06a3['quantity']++:_0x4b68d3['push']({'type':_0x49c6ff+'Object','element':_0x17a226,'quantity':0x1}),_0x584bd5['skip'](_0x5dc70f=>!('elementEnd'==_0x5dc70f['type']&&_0x5dc70f['item']==_0x2c3d53));}else{if(this['_schema']['checkChild'](_0x2c3d53,'$text')||_0x2c3d53['is']('element','softBreak')){const _0x37e35f=_0x2c3d53;if('add'==_0x49c6ff&&'elementStart'==_0xa0366f['type']||'remove'==_0x49c6ff&&'elementEnd'==_0xa0366f['type'])continue;if(_0x1d06a3&&-0x1==_0x1d06a3['type']['indexOf']('Container')){'text'==_0x1d06a3['type']&&(_0x1d06a3[_0x49c6ff]+='\x0a');continue;}let _0x2e5a92;if(_0x2e5a92='add'==_0x49c6ff?_0x37e35f['nextSibling']&&!this['_schema']['isObject'](_0x37e35f['nextSibling'])?_0x37e35f['nextSibling']:null:_0x37e35f['previousSibling']&&!this['_schema']['isObject'](_0x37e35f['previousSibling'])?_0x37e35f['previousSibling']:null,_0x37e35f['isEmpty']||_0x2e5a92&&_0x2e5a92['isEmpty']){const _0x3726d6=_0x2e5a92&&_0x2e5a92['isEmpty']?_0x2e5a92:_0x37e35f;_0x1d06a3&&_0x1d06a3['type']==_0x49c6ff+'EmptyContainer'&&_0x1d06a3['element']['name']==_0x3726d6['name']?_0x1d06a3['quantity']++:_0x4b68d3['push']({'type':_0x49c6ff+'EmptyContainer','element':_0x3726d6,'quantity':0x1});}else _0x4b68d3['push']({'type':_0x49c6ff+'Container','element':_0x37e35f});}}}}}['_resolveDescriptionItems'](_0x3e854d){const _0x16cc06=this['_locale'],_0x1d6818=[],_0x480ca0=[],_0x3f5b4c=[];for(const _0x16fdaa of _0x3e854d)switch(_0x16fdaa['type']){case'text':if(_0x16fdaa['add']=_0x16fdaa['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16fdaa['remove']=_0x16fdaa['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16fdaa['add']&&''!=_0x16fdaa['remove']){_0x1d6818['push']({'type':'replace','content':o(_0x16cc06,'REPLACE_TEXT',['\x22'+_0x16fdaa['remove']+'\x22','\x22'+_0x16fdaa['add']+'\x22'])});continue;}if(null!=_0x16fdaa['add']['match'](/^ +$/)){_0x1d6818['push']({'type':'insertion','content':o(_0x16cc06,'*Insert:*\x20%0',o(_0x16cc06,'ELEMENT_SPACE',_0x16fdaa['add']['length']))});continue;}if(null!=_0x16fdaa['remove']['match'](/^ +$/)){_0x1d6818['push']({'type':'deletion','content':o(_0x16cc06,'*Remove:*\x20%0',o(_0x16cc06,'ELEMENT_SPACE',_0x16fdaa['remove']['length']))});continue;}if(''!=_0x16fdaa['add']){_0x1d6818['push']({'type':'insertion','content':o(_0x16cc06,'*Insert:*\x20%0','\x22'+_0x16fdaa['add']+'\x22')});continue;}_0x1d6818['push']({'type':'deletion','content':o(_0x16cc06,'*Remove:*\x20%0','\x22'+_0x16fdaa['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1d6818['push']({'type':'insertion','content':o(_0x16cc06,'*Insert:*\x20%0',this['getItemLabel'](_0x16fdaa['element'],_0x16fdaa['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1d6818['push']({'type':'deletion','content':o(_0x16cc06,'*Remove:*\x20%0',this['getItemLabel'](_0x16fdaa['element'],_0x16fdaa['quantity']))});continue;case'addContainer':_0x1d6818['push']({'type':'insertion','content':o(_0x16cc06,'*Split:*\x20%0',this['getItemLabel'](_0x16fdaa['element'],_0x16fdaa['quantity']))});continue;case'removeContainer':_0x1d6818['push']({'type':'deletion','content':o(_0x16cc06,'*Merge:*\x20%0',this['getItemLabel'](_0x16fdaa['element'],_0x16fdaa['quantity']))});continue;case'addFormat':_0x480ca0['push'](_0x16fdaa['key']);continue;case'removeFormat':_0x3f5b4c['push'](_0x16fdaa['key']);continue;default:_0x1d6818['push'](_0x16fdaa);}if(_0x480ca0['length']){const _0x16b686=_0x480ca0['map'](_0xa4df18=>this['_attributeLabels']['has'](_0xa4df18)?this['_attributeLabels']['get'](_0xa4df18):_0xa4df18)['join'](',\x20');_0x1d6818['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x16b686)});}if(_0x3f5b4c['length']){const _0x4ab8d6=_0x3f5b4c['map'](_0x5d8a80=>this['_attributeLabels']['has'](_0x5d8a80)?this['_attributeLabels']['get'](_0x5d8a80):_0x5d8a80)['join'](',\x20');_0x1d6818['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4ab8d6)});}return _0x1d6818;}['_handleCustomCallbackDescription'](_0x42cbeb){for(const _0x5f387e of this['_customCallbacks']){const _0x239272=_0x5f387e(_0x42cbeb);if(_0x239272&&'type'in _0x239272)return _0x239272;}}['_handleAttributeSuggestionDescription'](_0x8f38e7,_0x2bc6a2){const _0x218d6b=_0x2bc6a2['data'],_0x25cd6b=void 0x0===_0x218d6b['newValue']?'removeFormat':'addFormat';_0x8f38e7['push']({'type':_0x25cd6b,'key':_0x218d6b['key']});}['_handleRenameSuggestionDescription'](_0x5e4ea9,_0x2714b9){_0x5e4ea9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2714b9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e3ba2,_0x319630,_0x48c969){if(this['_addDescriptionItems'](_0x2e3ba2,_0x319630),_0x48c969&&_0x48c969['getFirstRange']()&&!_0x319630['getFirstRange']()['end']['isEqual'](_0x48c969['getFirstRange']()['start'])){const _0x434bfa=_0x2e3ba2[_0x2e3ba2['length']-0x1],_0x26aa86='insertion'==_0x319630['type']?'add':'remove';_0x434bfa&&'text'==_0x434bfa['type']&&(_0x434bfa[_0x26aa86]+='\x0a');}}}class V extends _0x2786a9{['afterInit'](){const _0x1087ac=this['editor'],_0x79c4cd=_0x1087ac['plugins']['get']('TrackChangesEditing');_0x1087ac['commands']['get']('showAIAssistant')&&_0x79c4cd['enableCommand']('showAIAssistant');}}class U extends _0x2786a9{['afterInit'](){const _0x4512cc=this['editor'],_0x570157=_0x4512cc['locale'];if(!_0x4512cc['plugins']['has']('AlignmentEditing'))return;const _0x223a17=_0x4512cc['plugins']['get']('TrackChangesEditing');_0x223a17['enableDefaultAttributesIntegration']('alignment'),_0x223a17['registerBlockAttribute']('alignment'),_0x223a17['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x570157,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x588ad2=this['editor'],_0x2b7648=_0x588ad2['locale'];_0x588ad2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d65a=>{if('formatBlock'!=_0x40d65a['type'])return;const {data:_0x5a160a}=_0x40d65a;if(_0x5a160a&&'alignment'==_0x5a160a['commandName']){const _0x59a3e0=_0x5a160a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2b7648,'*Format:*\x20%0',function(_0x4dfb2b){switch(_0x4dfb2b){case'left':return o(_0x2b7648,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2b7648,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2b7648,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2b7648,'FORMAT_JUSTIFY_TEXT');}}(_0x59a3e0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2786a9{['afterInit'](){const _0x3ca0d7=this['editor'],_0x5ba53f=_0x3ca0d7['plugins']['get']('TrackChangesEditing'),_0x1621b3=_0x3ca0d7['locale'];for(const _0x38048d of ti){if(!_0x3ca0d7['plugins']['has'](_0x38048d))continue;const _0x4af031=_0x38048d['slice'](0x0,-0x7)['toLowerCase'](),_0x53011c='FORMAT_'+_0x4af031['toUpperCase']();_0x5ba53f['enableDefaultAttributesIntegration'](_0x4af031),_0x5ba53f['registerInlineAttribute'](_0x4af031),_0x5ba53f['descriptionFactory']['registerAttributeLabel'](_0x4af031,o(_0x1621b3,_0x53011c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55e7a9=this['editor'],_0x21f83e=_0x55e7a9['locale'],_0x3bf992=_0x55e7a9['plugins']['get']('TrackChangesEditing');function _0x110809(_0x50cea4,_0x78b02f){_0x3bf992['descriptionFactory']['registerDescriptionCallback'](_0x196f8c=>{if('formatInline'!=_0x196f8c['type'])return;const {data:_0xa4df6e}=_0x196f8c;return _0xa4df6e&&_0xa4df6e['commandName']===_0x50cea4?_0xa4df6e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x21f83e,'*Format:*\x20%0',_0x78b02f)}:{'type':'format','content':o(_0x21f83e,'*Remove\x20format:*\x20%0',_0x78b02f)}:void 0x0;});}_0x110809('bold',o(_0x21f83e,'FORMAT_BOLD')),_0x110809('italic',o(_0x21f83e,'FORMAT_ITALIC')),_0x110809('underline',o(_0x21f83e,'FORMAT_UNDERLINE')),_0x110809('code',o(_0x21f83e,'FORMAT_CODE')),_0x110809('strikethrough',o(_0x21f83e,'FORMAT_STRIKETHROUGH')),_0x110809('subscript',o(_0x21f83e,'FORMAT_SUBSCRIPT')),_0x110809('superscript',o(_0x21f83e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2786a9{['afterInit'](){const _0x1a11d9=this['editor'],_0x437ca9=_0x1a11d9['locale'];if(!_0x1a11d9['plugins']['has']('BlockQuoteEditing'))return;const _0x16bad8=_0x1a11d9['plugins']['get']('TrackChangesEditing'),_0xbe5977=this['editor']['commands']['get']('blockQuote');_0x16bad8['enableCommand']('blockQuote',(_0x59cadc,_0x118daf={})=>{const _0x2ed888=this['editor']['model']['document']['selection'],_0x50f821=_0x118daf&&void 0x0!==_0x118daf['forceValue']?_0x118daf['forceValue']:!_0xbe5977['value'];let _0x144698=[];if(_0x50f821){const _0x312890=Array['from'](_0x2ed888['getSelectedBlocks']())['filter'](_0x2c7a93=>oo(_0x2c7a93)||function(_0x457230,_0x4a2f24){const _0x3b9938=_0x4a2f24['checkChild'](_0x457230['parent'],'blockQuote'),_0x31df0f=_0x4a2f24['checkChild'](['$root','blockQuote'],_0x457230);return _0x3b9938&&_0x31df0f;}(_0x2c7a93,this['editor']['model']['schema']));_0x144698=to(_0x312890,_0x1a11d9['model']);}else{const _0x2f93c3=Array['from'](_0x2ed888['getSelectedBlocks']())['filter'](_0x481e1f=>oo(_0x481e1f));_0x144698=to(_0x2f93c3,_0x1a11d9['model']);}_0x1a11d9['model']['change'](()=>{for(const _0x1aae5b of _0x144698)_0x16bad8['markBlockFormat'](_0x1aae5b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x50f821}]});});}),_0x16bad8['descriptionFactory']['registerDescriptionCallback'](_0x13788a=>{const {data:_0x116ca4}=_0x13788a;if(_0x116ca4&&'blockQuote'==_0x116ca4['commandName']){const _0x815835=o(_0x437ca9,'ELEMENT_BLOCK_QUOTE');return _0x116ca4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x437ca9,'*Set\x20format:*\x20%0',_0x815835)}:{'type':'format','content':o(_0x437ca9,'*Remove\x20format:*\x20%0',_0x815835)};}});}}function oo(_0x5192fc){return'blockQuote'==_0x5192fc['parent']['name'];}class L extends _0x2786a9{['afterInit'](){const _0x5d5778=this['editor'];_0x5d5778['plugins']['has']('CaseChange')&&(_0x5d5778['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d5778['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d5778['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2786a9{['afterInit'](){const _0x30e321=this['editor'];_0x30e321['commands']['get']('ckbox')&&_0x30e321['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2786a9{['afterInit'](){const _0x55fd2c=this['editor'];if(!_0x55fd2c['plugins']['has']('CodeBlock'))return;const _0x5e88c9=_0x55fd2c['plugins']['get']('TrackChangesEditing'),_0x341ffd=_0x55fd2c['locale'],_0x30d3a5=_0x55fd2c['config']['get']('codeBlock')['languages'],_0x39ed8b=_0x55fd2c['commands']['get']('codeBlock');_0x5e88c9['enableCommand']('indentCodeBlock'),_0x5e88c9['enableCommand']('outdentCodeBlock'),_0x5e88c9['enableCommand']('codeBlock',(_0x612661,_0x486963={})=>{const _0x2ac701=_0x55fd2c['model'],_0x2eaa70=_0x55fd2c['model']['document']['selection'],_0xee2da6=_0x486963&&void 0x0!==_0x486963['forceValue']?_0x486963['forceValue']:!_0x39ed8b['value'];let _0x1d4b2c;_0x486963['language']||(_0x486963['language']=_0x30d3a5[0x0]['language']),_0x1d4b2c=_0xee2da6?Array['from'](_0x2eaa70['getSelectedBlocks']())['filter'](_0x3cbe53=>eo(_0x3cbe53)||function(_0x20380f,_0x22b6f8){if(_0x20380f['is']('rootElement')||_0x22b6f8['isLimit'](_0x20380f))return!0x1;return _0x22b6f8['checkChild'](_0x20380f['parent'],'codeBlock');}(_0x3cbe53,_0x2ac701['schema'])):Array['from'](_0x2eaa70['getSelectedBlocks']())['filter'](_0x282c8e=>eo(_0x282c8e));const _0x167fc3=to(_0x1d4b2c,_0x2ac701);_0x2ac701['change'](()=>{for(const _0x44d4dd of _0x167fc3)_0x5e88c9['markBlockFormat'](_0x44d4dd,{'commandName':'codeBlock','commandParams':[{..._0x486963,'forceValue':_0xee2da6}],'formatGroupId':'blockName'});});}),(_0x5e88c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x1feaf7=>o(_0x341ffd,'ELEMENT_CODE_BLOCK',_0x1feaf7)),_0x5e88c9['descriptionFactory']['registerDescriptionCallback'](_0x2dae16=>{if('formatBlock'!=_0x2dae16['type'])return;const _0x2d9a20=_0x341ffd['t'],{data:_0x384278}=_0x2dae16;if(!_0x384278||'codeBlock'!=_0x384278['commandName'])return;const _0x91be0a=_0x384278['commandParams'][0x0]['language'],_0x3e5c88=_0x2d9a20(_0x30d3a5['find'](_0xb09f83=>_0xb09f83['language']===_0x91be0a)['label'])['toLowerCase']();return _0x384278['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x341ffd,'*Set\x20format:*\x20%0',o(_0x341ffd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3e5c88+')')}:{'type':'format','content':o(_0x341ffd,'*Remove\x20format:*\x20%0',o(_0x341ffd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f3499){return'codeBlock'==_0x3f3499['name'];}class q extends _0x2786a9{['afterInit'](){const _0x250325=this['editor'];if(!_0x250325['plugins']['has']('CommentsEditing'))return;_0x250325['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x378198,_0x569862,_0x189755){const _0x3b129b=[];for(const _0x29ef38 of _0x569862['getItems']())_0x29ef38['hasAttribute'](_0x378198)&&_0x3b129b['push'](_0x189755['createRangeOn'](_0x29ef38));return _0x3b129b;}function _e(_0x234ac3,_0x2866bc,{showActiveMarker:_0x47957e=!0x0}={}){const _0x3be967=_0x234ac3['plugins']['get']('TrackChangesEditing');return(_0x2658b1,_0x5b814d,_0x926192)=>{if(!_0x926192['consumable']['test'](_0x5b814d['markerRange'],_0x2658b1['name']))return;const _0x4be307=_0x5b814d['markerRange']['getWalker'](),_0x32d1e3=_0x5b814d['markerRange']['start'],_0x48809c=_0x234ac3['model']['schema'];let _0x1d262e=null,_0x2f895e=null,_0x2ab0af=!0x1,_0x25c597=!0x1;for(const _0x1c1b6c of _0x4be307){const _0x3b6733=_0x1c1b6c['item'];_0x2ab0af=_0x2ab0af||_0x48809c['isContent'](_0x3b6733);const _0x249010=_0x926192['mapper']['toViewElement'](_0x3b6733);if(_0x249010&&_0x249010['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c1b6c['type']&&(_0x48809c['isBlock'](_0x3b6733)&&!_0x48809c['isLimit'](_0x3b6733)&&(_0x3b6733['nextSibling']||_0x32d1e3['isAtEnd']?_0x1d262e&&_0x1d262e['parent']==_0x3b6733||(_0x1d262e=_0x3b6733,_0x711087(_0x1c1b6c['previousPosition']),_0x25c597=!0x0):_0x2f895e=_0x2f895e||_0x1c1b6c['previousPosition']));}function _0x711087(_0x2529dc){const {authorId:_0x18c0f4}=_0x3be967['_splitMarkerName'](_0x5b814d['markerName']),_0x3b35ba=_0x926192['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2866bc,'data-author-id':_0x18c0f4}),_0x54358e=_0x926192['mapper']['toViewPosition'](_0x2529dc);_0x47957e&&_0x3be967['activeMarkers']['includes'](_0x5b814d['markerName'])&&_0x926192['writer']['addClass']('ck-suggestion-marker--active',_0x3b35ba),_0x926192['writer']['insert'](_0x54358e,_0x3b35ba),_0x926192['mapper']['bindElementToMarker'](_0x3b35ba,_0x5b814d['markerName']);}_0x2ab0af||_0x25c597||!_0x2f895e||_0x711087(_0x2f895e);};}class z extends _0x2786a9{static get['requires'](){return[_0x61d41a];}['init'](){const _0x11766e=this['editor'],_0x4888c0=_0x11766e['plugins']['get']('TrackChangesEditing');_0x4888c0['enableCommand']('delete');const _0x3d26d6=_0x11766e['commands']['get']('deleteForward');_0x4888c0['enableCommand']('deleteForward',(_0xcd6d69,_0x49f6e4={})=>{const _0x307c95=_0x11766e['model']['createSelection'](_0x11766e['model']['document']['selection']);_0x307c95['isCollapsed']&&_0x11766e['model']['modifySelection'](_0x307c95,{'direction':'forward','unit':_0x49f6e4['unit']});const _0x2193e1=_0x307c95['getFirstRange'](),_0x1b2c27=_0x1b4d08['fromRange'](_0x2193e1);let _0x4ba54f;_0xcd6d69(_0x49f6e4),_0x4ba54f='$graveyard'==_0x1b2c27['root']['rootName']?_0x11766e['model']['createRange'](_0x2193e1['start']):_0x11766e['model']['createRange'](_0x1b2c27['start'],_0x1b2c27['end']),_0x1b2c27['detach'](),_0x11766e['model']['enqueueChange'](_0x3d26d6['buffer']['batch'],_0x461be7=>{_0x3d26d6['buffer']['lock'](),_0x461be7['setSelection'](_0x461be7['createRange'](_0x4ba54f['end'])),_0x3d26d6['buffer']['unlock']();});}),_0x11766e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x11766e,'merge'),{'priority':'high'}),_0x11766e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ca668,_0x2df3bd,_0x55521a)=>{_0x55521a['options']['showSuggestionHighlights']&&_e(_0x11766e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3ca668,_0x2df3bd,_0x55521a);},{'priority':'high'}),_0x11766e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2be593,_0xc6e107,_0x29137e)=>{const _0x41d7f9=_0x29137e['mapper']['markerNameToElements'](_0xc6e107['markerName']);if(_0x41d7f9){for(const _0x365219 of _0x41d7f9)_0x365219['is']('uiElement')&&(_0x29137e['mapper']['unbindElementFromMarkerName'](_0x365219,_0xc6e107['markerName']),_0x29137e['writer']['remove'](_0x365219));}},{'priority':'high'});}}class K extends _0x2786a9{['afterInit'](){const _0x5aa5df=this['editor'];if(!_0x5aa5df['plugins']['has']('ListEditing'))return;const _0x41aed5=_0x5aa5df['locale'],_0x438961=_0x5aa5df['plugins']['get']('TrackChangesEditing'),_0x2d72d2=_0x5aa5df['plugins']['has']('TodoListEditing'),_0x46fa3f=!!_0x5aa5df['config']['get']('list.multiBlock');function _0x3b72a0(_0x3d777a){return{'type':'format','content':''+o(_0x41aed5,'*Set\x20format:*\x20%0',_0x3d777a)};}function _0x555d95(_0x44b0e1){return{'type':'format','content':''+o(_0x41aed5,'*Remove\x20format:*\x20%0',_0x44b0e1)};}_0x438961['enableDefaultAttributesIntegration']('numberedList'),_0x438961['enableDefaultAttributesIntegration']('bulletedList'),_0x438961['enableDefaultAttributesIntegration']('customNumberedList'),_0x438961['enableDefaultAttributesIntegration']('customBulletedList'),_0x438961['enableDefaultAttributesIntegration']('indentList'),_0x438961['enableDefaultAttributesIntegration']('outdentList'),_0x438961['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x438961['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x438961['registerBlockAttribute']('listItemId'),_0x438961['registerBlockAttribute']('listType'),_0x438961['registerBlockAttribute']('listIndent'),_0x46fa3f&&(_0x438961['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x438961['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d72d2&&(_0x438961['enableDefaultAttributesIntegration']('todoList'),_0x438961['enableDefaultAttributesIntegration']('checkTodoList'),_0x438961['registerBlockAttribute']('todoListChecked'),_0x438961['descriptionFactory']['registerDescriptionCallback'](_0x325602=>{const {data:_0xb2e0bc}=_0x325602;if(_0xb2e0bc&&'todoListChecked'==_0xb2e0bc['key'])return{'type':'format','content':_0xb2e0bc['newValue']?o(_0x41aed5,'*Check\x20item*'):o(_0x41aed5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd28a85=>{if(_0xd28a85['batch']['isUndo'])return!0x1;let _0x550768=!0x1;const _0x1148df=_0x438961['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3469d7=>'todoListChecked'===_0x438961['_getAttributeKey'](_0x3469d7));for(const _0x184263 of _0x1148df){'todo'!=_0x184263['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x438961['_findSuggestions'](_0x184263['getFirstRange'](),'attribute')['find'](_0x390033=>'listType'===_0x438961['_getAttributeKey'](_0x390033['suggestion']))||(_0xd28a85['removeMarker'](_0x184263['getFirstMarker']()),_0x550768=!0x0));}return _0x550768;})),_0x438961['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x41aed5,'FORMAT_INDENT'));const _0x26d3c7={'type':'format','content':''};_0x438961['descriptionFactory']['registerDescriptionCallback'](_0x6f1788=>{const {data:_0x313627}=_0x6f1788;if(!_0x313627||'listType'!=_0x313627['key'])return;let _0xf91060=_0x6f1788['head'];for(;_0xf91060;){if(_0xf91060['data']&&(('listStyle'==_0xf91060['data']['key']||'listMarkerStyle'==_0xf91060['data']['key'])&&(_0xf91060['data']['newValue']&&'default'!=_0xf91060['data']['newValue']||'default'!=_0xf91060['data']['oldValue']&&!_0x313627['newValue'])||!_0x46fa3f&&_0xf91060['data']['key']==m))return _0x26d3c7;_0xf91060=_0xf91060['next'];}if(null==_0x313627['newValue'])switch(_0x313627['oldValue']){case'bulleted':return _0x555d95(o(_0x41aed5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x555d95(o(_0x41aed5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x555d95(o(_0x41aed5,'ELEMENT_TODO_LIST'));}switch(_0x313627['newValue']){case'bulleted':return _0x3b72a0(o(_0x41aed5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b72a0(o(_0x41aed5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b72a0(o(_0x41aed5,'ELEMENT_TODO_LIST'));}}),_0x438961['descriptionFactory']['registerDescriptionCallback'](_0x394d74=>{const {data:_0x1226f3}=_0x394d74;if(_0x1226f3&&'listIndent'==_0x1226f3['key'])return null==_0x1226f3['newValue']||null==_0x1226f3['oldValue']&&0x0==_0x1226f3['newValue']?_0x26d3c7:void 0x0;}),_0x438961['descriptionFactory']['registerDescriptionCallback'](_0x10390c=>{if('attribute'!=_0x10390c['type'])return;const {data:_0x413a4d}=_0x10390c;if(!_0x413a4d||'listItemId'!=_0x413a4d['key'])return;const _0x26ac8e=Ee(_0x10390c);return'newValue'==_0x26ac8e?{'type':'format','content':o(_0x41aed5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26ac8e?{'type':'format','content':o(_0x41aed5,'*Split:*\x20list\x20item')}:_0x26d3c7;}),_0x5aa5df['model']['document']['registerPostFixer'](_0x23af78=>this['listItemIdFixer'](_0x23af78)),_0x5aa5df['model']['document']['registerPostFixer'](_0x495de2=>this['noTrackChangesFixer'](_0x495de2)),_0x5aa5df['model']['document']['on']('change:data',(_0x44926f,_0x44b2dd)=>{if(_0x44b2dd['isUndo']||!_0x44b2dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4bcb12){if(_0x4bcb12['batch']['isUndo']||!_0x4bcb12['batch']['isLocal'])return!0x1;let _0x54918a=!0x1;const _0x4efbc4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52138d=>_0x52138d['data']&&'listItemId'==_0x52138d['data']['key'])['filter'](_0x97e7f1=>_0x97e7f1['data']['newValue']&&_0x97e7f1['data']['oldValue']);for(const _0xf1af22 of _0x4efbc4)Ee(_0xf1af22)||(_0x4bcb12['removeMarker'](_0xf1af22['getFirstMarker']()),_0x54918a=!0x0);return _0x54918a;}['noTrackChangesFixer'](_0x14d7f5){if(_0x14d7f5['batch']['isUndo']||!_0x14d7f5['batch']['isLocal'])return!0x1;const _0x443a63=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x443a63['trackChangesCommand']['value'])return!0x1;let _0x330e19=!0x1;const _0x4ec8d1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3bc9bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f1dcd=>'attribute'==_0x4f1dcd['type'])['filter'](_0x2715f0=>_0x4ec8d1['includes'](_0x2715f0['attributeKey']));if(0x0==_0x3bc9bb['length'])return _0x330e19;for(const _0x2065c0 of _0x3bc9bb){const _0x51de11=_0x443a63['_findSuggestions'](_0x2065c0['range'],'attribute')['filter'](_0x2baeba=>!_0x2baeba['meta']['isNextTo'])['map'](_0x260b2a=>_0x260b2a['suggestion'])['filter'](_0x7b8a25=>{const _0x16deae=_0x443a63['_getAttributeKey'](_0x7b8a25);return _0x4ec8d1['includes'](_0x16deae);});if(_0x51de11['length']){for(const _0x30768c of _0x51de11)_0x14d7f5['removeMarker'](_0x30768c['getFirstMarker']());_0x330e19=!0x0;}}return _0x330e19;}['assureChains'](){const _0x57f280=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55fe15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x538faa;const _0x187326=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5c9507=>{if(_0x5c9507['data']['oldRange']||!_0x5c9507['data']['newRange'])return null;if(!_0x5c9507['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x49f67d}=_0x57f280['_splitMarkerName'](_0x5c9507['name']);if(!_0x57f280['hasSuggestion'](_0x49f67d))return null;const _0x2fe908=_0x57f280['getSuggestion'](_0x49f67d);return _0x55fe15['includes'](_0x2fe908['data']['key']);})['map'](_0x5e3332=>{const {id:_0x33512e}=_0x57f280['_splitMarkerName'](_0x5e3332['name']),_0x430c47=_0x57f280['getSuggestion'](_0x33512e);return _0x538faa=_0x430c47['attributes']['groupId'],_0x430c47['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x187326['size'])return;const _0x581c24=_0x57f280['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x459712=>'attribute'==_0x459712['type']&&_0x459712['data']&&_0x55fe15['includes'](_0x459712['data']['key'])&&_0x459712['attributes']['groupId']!=_0x538faa)['map'](_0x10ca68=>({'listItem':_0x10ca68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x10ca68['attributes']['groupId']})),_0xb19f49=new Set();for(const {groupId:_0x1f1a4d,listItem:_0x4e8f9e}of _0x581c24)_0x187326['has'](_0x4e8f9e)&&_0xb19f49['add'](_0x1f1a4d);for(const _0x252873 of _0x57f280['getSuggestions']())_0xb19f49['has'](_0x252873['attributes']['groupId'])&&_0x252873['setAttribute']('groupId',_0x538faa);}['_supportLegacySuggestions'](){const _0x1b0fcb=this['editor'],_0x1cf6ed=_0x1b0fcb['locale'],_0x54fa1d=_0x1b0fcb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54fa1d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x338810,_0x39ff59){const _0x2e5eea=[];for(let _0x3942f0 of _0x338810)_0x3942f0['start']['nodeAfter']===_0x3942f0['end']['parent']&&(_0x3942f0=_0x1b0fcb['model']['createRange'](_0x1b0fcb['model']['createPositionAt'](_0x3942f0['start']['nodeAfter'],0x0))),_0x2e5eea['push'](_0x3942f0);_0x1b0fcb['model']['change'](_0x42f121=>{const _0x19a0aa=_0x1b0fcb['model']['document']['selection'],_0x399629=Array['from'](_0x19a0aa['getRanges']())['map'](_0x5de3ca=>_0x1b4d08['fromRange'](_0x5de3ca));_0x42f121['setSelection'](_0x2e5eea),_0x1b0fcb['commands']['get'](_0x39ff59['commandName'])['refresh'](),_0x39ff59['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b0fcb['execute'](_0x39ff59['commandName'],..._0x39ff59['commandParams']),_0x42f121['setSelection'](_0x399629);for(const _0x554344 of _0x399629)_0x554344['detach']();});}),_0x54fa1d['descriptionFactory']['registerElementLabel'](function(_0x93b8bf){const _0x371c5f=!_0x1b0fcb['model']['schema']['isObject'](_0x93b8bf),_0x472039=_0x93b8bf['previousSibling'],_0x3f3e61=_0x93b8bf['nextSibling'],_0x4b55d3=_0x93b8bf['getAttribute']('listItemId'),_0x3040af=!_0x472039||_0x472039['getAttribute']('listItemId')!==_0x4b55d3,_0x2fb94f=!_0x3f3e61||_0x3f3e61['getAttribute']('listItemId')!==_0x4b55d3;return _0x371c5f&&Boolean(_0x4b55d3)&&_0x3040af&&_0x2fb94f;},_0x8bf523=>o(_0x1cf6ed,'ELEMENT_LIST_ITEM',_0x8bf523));}['_registerLegacyDescription'](){const _0xf84ea=this['editor'],_0x5c06e9=_0xf84ea['locale'];function _0x338443(_0x23d8c4){const _0x278ffd=_0xf84ea['commands']['get']('bulletedList')['value'],_0xd0ce2d=_0xf84ea['commands']['get']('numberedList')['value'];return'numberedList'===_0x23d8c4?_0x278ffd:_0xd0ce2d;}_0xf84ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x361cdc){if('formatBlock'!=_0x361cdc['type'])return;const {data:_0x5ec03b}=_0x361cdc;if(!_0x5ec03b)return;let _0x4dcbc6,_0x585531,_0x2f249f,_0x3ef676;switch(_0x5ec03b['commandName']){case'bulletedList':_0x2f249f=_0x5ec03b['commandParams'][0x0]['forceValue'],_0x3ef676=_0x338443(_0x5ec03b['commandName']),_0x4dcbc6=_0x2f249f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ef676&&_0xf84ea['config']['get']('list.multiBlock')||(_0x4dcbc6='*Change\x20to:*\x20%0'),_0x585531={'type':'format','content':o(_0x5c06e9,_0x4dcbc6,o(_0x5c06e9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f249f=_0x5ec03b['commandParams'][0x0]['forceValue'],_0x3ef676=_0x338443(_0x5ec03b['commandName']),_0x4dcbc6=_0x2f249f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ef676&&_0xf84ea['config']['get']('list.multiBlock')||(_0x4dcbc6='*Change\x20to:*\x20%0'),_0x585531={'type':'format','content':o(_0x5c06e9,_0x4dcbc6,o(_0x5c06e9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4dcbc6='*Indent:*\x20%0',_0x585531={'type':'format','content':o(_0x5c06e9,_0x4dcbc6,o(_0x5c06e9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4dcbc6=function(_0x5c2cda){const _0x1ce63c=_0x5c2cda['getFirstRange']();let _0x3eb55b=_0x1ce63c['start']['nodeAfter'];for(;_0x3eb55b&&_0x1ce63c['containsItem'](_0x3eb55b);){if(_0x3eb55b['getAttribute']('listIndent')>0x0)return!0x1;_0x3eb55b=_0x3eb55b['nextSibling'];}return!0x0;}(_0x361cdc)?o(_0x5c06e9,'*Format:*\x20remove\x20from\x20%0',o(_0x5c06e9,function(_0x52ab32){return'ELEMENT_'+_0x52ab32['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x361cdc))):o(_0x5c06e9,'*Outdent:*\x20%0',o(_0x5c06e9,'ELEMENT_LIST_ITEM')),_0x585531={'type':'format','content':_0x4dcbc6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5ec03b['multipleBlocks']&&(_0x4dcbc6='*Merge:*\x20%0',_0x585531={'type':'deletion','content':o(_0x5c06e9,_0x4dcbc6,o(_0x5c06e9,'ELEMENT_LIST_ITEM'))});}return _0x585531;});}}function Ee(_0x51bbd5){let _0x589569=_0x51bbd5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x589569;){const _0x3282b8=_0x589569['getAttribute']('listItemId');if(!_0x3282b8)return!0x1;if(_0x3282b8==_0x51bbd5['data']['newValue'])return'newValue';if(_0x3282b8==_0x51bbd5['data']['oldValue'])return'oldValue';_0x589569=_0x589569['previousSibling'];}return!0x1;}class pe extends _0x2786a9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3ea8ef=this['editor']['config']['get']('list.properties'),_0xb9b69b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ea8ef['styles']&&(_0xb9b69b['enableDefaultAttributesIntegration']('listStyle'),_0xb9b69b['registerBlockAttribute']('listStyle')),_0x3ea8ef['reversed']&&(_0xb9b69b['enableDefaultAttributesIntegration']('listReversed'),_0xb9b69b['registerBlockAttribute']('listReversed')),_0x3ea8ef['startIndex']&&(_0xb9b69b['enableDefaultAttributesIntegration']('listStart'),_0xb9b69b['registerBlockAttribute']('listStart'));const _0x8b97c5={'type':'format','content':''};_0xb9b69b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1a8e56=this['editor']['locale'];_0xb9b69b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1a8e56,'FORMAT_LIST_REVERSED')),_0xb9b69b['descriptionFactory']['registerDescriptionCallback'](_0x6a1ed8=>{const {data:_0x1e8ef0}=_0x6a1ed8;if(_0x1e8ef0&&'listReversed'==_0x1e8ef0['key'])return null==_0x1e8ef0['newValue']||0x0==_0x1e8ef0['newValue']&&null==_0x1e8ef0['oldValue']?_0x8b97c5:void 0x0;}),_0xb9b69b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1a8e56,'FORMAT_LIST_START')),_0xb9b69b['descriptionFactory']['registerDescriptionCallback'](_0x176332=>{const {data:_0x41a6ca}=_0x176332;if(_0x41a6ca&&'listStart'==_0x41a6ca['key'])return null==_0x41a6ca['newValue']||0x1==_0x41a6ca['newValue']&&null==_0x41a6ca['oldValue']?_0x8b97c5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x31bf55=>{if(_0x31bf55['batch']['isUndo'])return!0x1;let _0x1519ce=!0x1;const _0x4a0fb2=_0xb9b69b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a31b4=>{const _0x1a4c8e=_0xb9b69b['_getAttributeKey'](_0x2a31b4);return'listStart'==_0x1a4c8e||'listReversed'==_0x1a4c8e;});for(const _0x32dd91 of _0x4a0fb2){const _0x19a7f4=_0x32dd91['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x19a7f4||'customNumbered'==_0x19a7f4)continue;_0xb9b69b['_findSuggestions'](_0x32dd91['getFirstRange'](),'attribute')['find'](_0x5713c1=>'listType'==_0xb9b69b['_getAttributeKey'](_0x5713c1['suggestion']))||(_0x31bf55['removeMarker'](_0x32dd91['getFirstMarker']()),_0x1519ce=!0x0);}return _0x1519ce;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x50ab75){const _0x23c658=this['editor']['locale'],{data:_0x2b733d}=_0x50ab75,_0x39bed8={'type':'format','content':''};if(!_0x2b733d||'listStyle'!=_0x2b733d['key'])return;if(!_0x2b733d['oldValue'])return'default'==_0x2b733d['newValue']?_0x39bed8:{'type':'format','content':''+o(_0x23c658,'*Set\x20format:*\x20%0',o(_0x23c658,this['_getTranslationKeyForListStyle'](_0x2b733d['newValue'])))};if(!_0x2b733d['newValue']){if('default'==_0x2b733d['oldValue'])return _0x39bed8;let _0x2b0a73=_0x50ab75['head'];for(;_0x2b0a73;){if(_0x2b0a73['data']&&'listType'==_0x2b0a73['data']['key']&&_0x2b0a73['data']['newValue'])return _0x39bed8;_0x2b0a73=_0x2b0a73['next'];}return{'type':'format','content':''+o(_0x23c658,'*Remove\x20format:*\x20%0',o(_0x23c658,this['_getTranslationKeyForListStyle'](_0x2b733d['oldValue'])))};}if('default'!=_0x2b733d['newValue'])return{'type':'format','content':''+o(_0x23c658,'*Set\x20format:*\x20%0',o(_0x23c658,this['_getTranslationKeyForListStyle'](_0x2b733d['newValue'])))};let _0x50d96a=_0x50ab75['head'];for(;_0x50d96a;){if(_0x50d96a['data']&&'listType'==_0x50d96a['data']['key']&&_0x50d96a['data']['newValue']&&_0x50d96a['data']['oldValue'])return _0x39bed8;_0x50d96a=_0x50d96a['next'];}return{'type':'format','content':o(_0x23c658,'*Set\x20format:*\x20%0',o(_0x23c658,'ELEMENT_'+_0x50ab75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fc787=this['editor'],_0x2d3d73=_0x4fc787['locale'];_0x4fc787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4405df=>{if('formatBlock'!=_0x4405df['type'])return;const {data:_0x5afa94}=_0x4405df;if(!_0x5afa94)return;let _0x37ecd4,_0x1bf165;switch(_0x5afa94['commandName']){case'listStyle':_0x37ecd4='*Change\x20to:*\x20%0',_0x1bf165={'type':'format','content':o(_0x2d3d73,_0x37ecd4,o(_0x2d3d73,this['_getTranslationKeyForListStyle'](_0x5afa94['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37ecd4=_0x5afa94['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1bf165={'type':'format','content':o(_0x2d3d73,_0x37ecd4)};break;case'listStart':_0x37ecd4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bf165={'type':'format','content':o(_0x2d3d73,_0x37ecd4,_0x5afa94['commandParams'][0x0]['startIndex'])};}return _0x1bf165;});}['_getTranslationKeyForListStyle'](_0x17daee){return'ELEMENT_'+function(_0x267bc8){if(ye['includes'](_0x267bc8))return'bulleted';if(Se['includes'](_0x267bc8))return'numbered';return null;}(_0x17daee)['toUpperCase']()+'_LIST_'+_0x17daee['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2786a9{static get['requires'](){return[_0x305d69];}['init'](){const _0x1bf42f=this['editor'],_0x46c000=_0x1bf42f['plugins']['get']('TrackChangesEditing'),_0x4aadca=_0x1bf42f['commands']['get']('enter');_0x46c000['enableCommand']('enter',()=>{_0x1bf42f['model']['change'](_0x4c734e=>{const _0x2a3410=_0x1bf42f['model']['document']['selection'],_0xbcd67=_0x2a3410['getFirstPosition'](),_0x5a4a4c=_0x1b4d08['fromRange'](_0x2a3410['getFirstRange']());if(_0x4aadca['enterBlock'](_0x4c734e)){const _0x37dc1d=_0x1bf42f['model']['createPositionAt'](_0xbcd67['parent']['nextSibling'],0x0),_0x4979ce=_0x4c734e['createRange'](_0xbcd67,_0x37dc1d);_0x46c000['markInsertion'](_0x4979ce);}else _0x4c734e['setSelection'](_0x4c734e['createRange'](_0x5a4a4c['end']));_0x5a4a4c['detach'](),_0x4aadca['fire']('afterExecute',{'writer':_0x4c734e});});}),_0x1bf42f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1bf42f,'split'),{'priority':'high'}),_0x1bf42f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x40e73e,_0x396314,_0xdfb17a)=>{const _0x48b244=_0xdfb17a['mapper']['markerNameToElements'](_0x396314['markerName']);if(_0x48b244){for(const _0x4e82b4 of _0x48b244)_0x4e82b4['hasClass']('ck-suggestion-marker-split')&&(_0xdfb17a['mapper']['unbindElementFromMarkerName'](_0x4e82b4,_0x396314['markerName']),_0xdfb17a['writer']['remove'](_0x4e82b4));}},{'priority':'high'}),_0x1bf42f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5174f7,_0x5b1d0a,_0x5082a3)=>{_0x5082a3['options']['showSuggestionHighlights']&&_e(_0x1bf42f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5174f7,_0x5b1d0a,_0x5082a3);},{'priority':'high'});}}class X extends _0x2786a9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xeac5f2=this['editor']['plugins']['get']('TrackChangesEditing');_0xeac5f2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xeac5f2['enableCommand']('findNext'),_0xeac5f2['enableCommand']('findPrevious'),_0xeac5f2['enableCommand']('replace'),_0xeac5f2['enableCommand']('replaceAll');}['handleFindCommand'](_0xa15847,_0x4c3423,_0xaa5c40={}){const _0x2810a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa15847(_0x2048f5=>{let _0x3249ff=('string'==typeof _0x4c3423?_0x2810a['findByTextCallback'](_0x4c3423,_0xaa5c40):_0x4c3423)(_0x2048f5);Array['isArray'](_0x3249ff)&&(_0x3249ff={'results':_0x3249ff,'searchText':'string'==typeof _0x4c3423?_0x4c3423:''});const _0x21de88=_0x3249ff['results']['filter'](_0x567c2a=>!0x1===this['_isInDeletionRange'](_0x567c2a,_0x2048f5['item']));return{..._0x3249ff,'results':_0x21de88};},_0xaa5c40);}['_isInDeletionRange'](_0x30378d,_0x2d9a67){const _0x3f7176=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d9a67,_0x30378d['start']),this['editor']['model']['createPositionAt'](_0x2d9a67,_0x30378d['end']));for(const _0x4b363f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f7176['getIntersection'](_0x4b363f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2786a9{['afterInit'](){const _0xfef53c=this['editor']['locale'],_0x596325=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x70701b,commandName:_0x7ee4f4}of ro)this['editor']['plugins']['has'](_0x70701b)&&(_0x596325['enableDefaultAttributesIntegration'](_0x7ee4f4),_0x596325['registerInlineAttribute'](_0x7ee4f4));_0x596325['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xfef53c,'FORMAT_FONT_SIZE')),_0x596325['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xfef53c,'FORMAT_FONT_FAMILY')),_0x596325['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xfef53c,'FORMAT_FONT_COLOR')),_0x596325['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xfef53c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2b50=this['editor'],_0x5c9330=_0x2f2b50['locale'];_0x2f2b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cac0a=>{const _0x93d84f=_0x5c9330['t'];if('formatInline'!=_0x5cac0a['type'])return;const {data:_0x1ef2a2}=_0x5cac0a;if(null!=_0x1ef2a2){if('fontSize'==_0x1ef2a2['commandName']){const _0x419ae8=_0x1ef2a2['commandParams'][0x0]['value'];if(_0x419ae8){const _0x58d95e=_0x93d84f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x9310bb=>_0x9310bb['model']==_0x419ae8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c9330,'*Set\x20font\x20size:*\x20%0',_0x58d95e)};}return{'type':'format','content':o(_0x5c9330,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ef2a2['commandName']){const _0x271a7c=_0x1ef2a2['commandParams'][0x0]['value'];return _0x271a7c?{'type':'format','content':o(_0x5c9330,'*Set\x20font\x20family:*\x20%0',_0x271a7c)}:{'type':'format','content':o(_0x5c9330,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ef2a2['commandName']){const _0x2394ab=_0x1ef2a2['commandParams'][0x0]['value'];if(_0x2394ab){const _0x1b69b6=_0x6eefdb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a1990=>_0x2a1990['model']==_0x2394ab);let _0x385a0b=_0x2394ab,_0x534717='';return _0x1b69b6&&(_0x385a0b=_0x1b69b6['label'],_0x534717=_0x93d84f(_0x385a0b)['toLowerCase']()),{'type':'format','content':o(_0x5c9330,'*Set\x20font\x20color:*\x20%0',_0x534717)['trim'](),'color':{'value':_0x2394ab,'title':_0x534717||_0x385a0b}};}return{'type':'format','content':o(_0x5c9330,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ef2a2['commandName']){const _0x2e8ecf=_0x1ef2a2['commandParams'][0x0]['value'];if(_0x2e8ecf){const _0x22d5fc=_0x6eefdb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4884aa=>_0x4884aa['model']==_0x2e8ecf);let _0x3da325=_0x2e8ecf,_0x189b63='';return _0x22d5fc&&(_0x3da325=_0x22d5fc['label'],_0x189b63=_0x93d84f(_0x3da325)['toLowerCase']()),{'type':'format','content':o(_0x5c9330,'*Set\x20font\x20background\x20color:*\x20%0',_0x189b63)['trim'](),'color':{'value':_0x2e8ecf,'title':_0x189b63||_0x3da325}};}return{'type':'format','content':o(_0x5c9330,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2786a9{['afterInit'](){const _0x3c8433=this['editor'],_0x4b55a7=_0x3c8433['plugins']['get']('TrackChangesEditing'),_0x4f3273=_0x3c8433['commands']['get']('copyFormat'),_0x5eb12a=_0x3c8433['commands']['get']('pasteFormat');_0x4f3273&&_0x5eb12a&&(_0x4b55a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x4b55a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x387354=this['editor'],_0x146ab5=_0x387354['locale'];_0x387354['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e9860=>{if('formatBlock'!=_0x5e9860['type']&&'formatInline'!=_0x5e9860['type'])return;const {data:_0x33d3b5}=_0x5e9860;if(_0x33d3b5&&'pasteFormat'===_0x33d3b5['commandName']){const _0x32bca5=[],_0x3932a5=_0x33d3b5['commandParams'][0x0];for(const [_0x47215d,_0x76f96f]of Object['entries'](_0x3932a5))_0x32bca5['push'](so(_0x387354,_0x47215d,_0x76f96f));return _0x32bca5['length']?{'type':'format','content':o(_0x146ab5,'*Set\x20format\x20to:*\x20%0',_0x32bca5['join'](',\x20'))}:{'type':'format','content':o(_0x146ab5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x31ecfd,_0x54399b,_0x583e99){const _0x3bdb78=_0x31ecfd['locale']['t'],_0x65a873=_0x54399b['split'](/(?=[A-Z])/)['join']('\x20'),_0x19e5cf=_0x3bdb78(_0x65a873['charAt'](0x0)['toUpperCase']()+_0x65a873['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x583e99)return _0x19e5cf;if('fontColor'===_0x54399b||'fontBackgroundColor'===_0x54399b){const _0x708aaa=_0x6eefdb(_0x31ecfd['config']['get']('fontColor.colors'))['find'](_0x176fd8=>_0x176fd8['model']==_0x583e99);return _0x19e5cf+'\x20('+(_0x708aaa?_0x3bdb78(_0x708aaa['label'])['toLowerCase']():_0x583e99)+')';}if('fontSize'===_0x54399b&&isNaN(parseFloat(_0x583e99))){const _0x22069f=_0x31ecfd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x31ecfd['config']['get']('fontSize.options'))['find'](_0x311839=>_0x311839['model']==_0x583e99);return _0x19e5cf+'\x20('+(_0x22069f?_0x3bdb78(_0x22069f['title'])['toLowerCase']():_0x583e99)+')';}return _0x19e5cf+'\x20('+_0x583e99+')';}class tt extends _0x2786a9{['_headingOptions'];['afterInit'](){const _0x547591=this['editor'];if(!_0x547591['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x547591['config']['get']('heading.options');const _0x415d9d=_0x547591['locale'],_0x392b30=_0x547591['plugins']['get']('TrackChangesEditing');_0x392b30['enableDefaultAttributesIntegration']('heading');for(const _0x50a3ce of this['_headingOptions'])'paragraph'!=_0x50a3ce['model']&&_0x392b30['descriptionFactory']['registerElementLabel'](_0x50a3ce['model'],_0x470d2c=>{const _0x34f317=this['_getHeadingLevel'](_0x50a3ce['model']);return null!==_0x34f317?_0x5924f0(_0x470d2c,_0x34f317):_0x59997d(_0x470d2c,_0x50a3ce['title']);});function _0x5924f0(_0x153b4c,_0xa01d9b){return o(_0x415d9d,'ELEMENT_HEADING',[_0x153b4c,_0xa01d9b]);}function _0x59997d(_0x16bbcd,_0x1ca7c6){return o(_0x415d9d,'ELEMENT_HEADING_CUSTOM',[_0x16bbcd,_0x1ca7c6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b57f5=this['editor'],_0x20c6a0=_0x5b57f5['locale'];function _0x50f50d(_0x1f36de,_0x24a6e9){return o(_0x20c6a0,'ELEMENT_HEADING_CUSTOM',[_0x1f36de,_0x24a6e9]);}_0x5b57f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4448=>{if('formatBlock'!=_0x3c4448['type'])return;const {data:_0x1fb26b}=_0x3c4448;if(_0x1fb26b&&'heading'==_0x1fb26b['commandName']){const _0x1178fb=_0x1fb26b['commandParams'][0x0]['value'],_0x5baaf8=this['_getHeadingLevel'](_0x1178fb);if(null!==_0x5baaf8)return{'type':'format','content':o(_0x20c6a0,'*Change\x20to:*\x20%0',(_0x229a03=0x1,_0x262f9a=_0x5baaf8,o(_0x20c6a0,'ELEMENT_HEADING',[_0x229a03,_0x262f9a])))};const _0x5535a1=this['_headingOptions']['find'](_0xe7a0e7=>_0xe7a0e7['model']===_0x1178fb)['title'];return{'type':'format','content':o(_0x20c6a0,'*Change\x20to:*\x20%0',_0x50f50d(0x1,_0x5535a1))};}var _0x229a03,_0x262f9a;});}['_getHeadingLevel'](_0x1fb905){const _0x3d79aa=_0x1fb905['match'](/^heading(\d+)/);if(_0x3d79aa)return _0x3d79aa[0x1];const _0x34adfd=this['_headingOptions']?.['find'](_0x1ca0ca=>_0x1ca0ca['model']==_0x1fb905);if(_0x34adfd&&_0x34adfd['view']){const _0x26fab3=_0x34adfd['view'],_0x1e9dd8=(_0x26fab3['name']??_0x26fab3)['match'](/^h(\d+)/);if(_0x1e9dd8)return _0x1e9dd8[0x1];}return null;}}class et extends _0x2786a9{['afterInit'](){const _0x108339=this['editor'];if(!_0x108339['plugins']['has']('HighlightEditing'))return;const _0x4d0d42=_0x108339['plugins']['get']('TrackChangesEditing'),_0x23ba47=_0x108339['locale'];_0x4d0d42['enableDefaultAttributesIntegration']('highlight'),_0x4d0d42['registerInlineAttribute']('highlight'),_0x4d0d42['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23ba47,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de960=this['editor'],_0x27a18f=_0x4de960['locale'];_0x4de960['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c18f=>{if('formatInline'!=_0x14c18f['type'])return;const {data:_0x2fb45a}=_0x14c18f;if(_0x2fb45a&&'highlight'==_0x2fb45a['commandName']){const _0x2ddfc1=_0x27a18f['t'],_0x11b004=_0x2fb45a['commandParams'][0x0]['value'];if(_0x11b004){const _0x379302=_0x4de960['config']['get']('highlight.options')['find'](_0x490104=>_0x490104['model']==_0x11b004),_0x523427=_0x2ddfc1(_0x379302['title'])['toLowerCase']();return{'type':'format','content':o(_0x27a18f,'*Set\x20highlight:*\x20%0',_0x523427),'color':{'value':_0x379302['color'],'title':_0x379302['title']}};}return{'type':'format','content':o(_0x27a18f,'*Remove\x20highlight*',o(_0x27a18f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2786a9{['afterInit'](){const _0x49fc78=this['editor'];if(!_0x49fc78['plugins']['has']('HorizontalLineEditing'))return;_0x49fc78['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x22a7c6=_0x49fc78['plugins']['get']('TrackChangesEditing'),_0x3d8e72=_0x49fc78['locale'];_0x22a7c6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2a3ffc=>o(_0x3d8e72,'ELEMENT_HORIZONTAL_LINE',_0x2a3ffc)),_0x49fc78['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24615c,{writer:_0x19dd1a,options:_0x2886bc})=>{if(!_0x2886bc['showSuggestionHighlights'])return null;const _0x3ee87e=_0x19dd1a['createContainerElement']('div'),_0x3f74c1=_0x19dd1a['createEmptyElement']('hr');return _0x19dd1a['addClass']('ck-horizontal-line',_0x3ee87e),_0x19dd1a['insert'](_0x19dd1a['createPositionAt'](_0x3ee87e,0x0),_0x3f74c1),_0x3ee87e;},'converterPriority':'high'});}}class st extends _0x2786a9{['afterInit'](){const _0x4b5a28=this['editor'];if(!_0x4b5a28['plugins']['has']('HtmlEmbed'))return;const _0x3eed4a=_0x4b5a28['plugins']['get']('TrackChangesEditing'),_0x5df116=_0x4b5a28['locale'];_0x3eed4a['descriptionFactory']['registerElementLabel']('rawHtml',_0x2e569a=>o(_0x5df116,'ELEMENT_HTML_EMBED',_0x2e569a)),_0x3eed4a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3eed4a['registerBlockAttribute']('value'),_0x3eed4a['descriptionFactory']['registerDescriptionCallback'](_0x42b881=>{if('attribute'!=_0x42b881['type'])return;const {data:_0x41de2c}=_0x42b881;if(_0x41de2c&&'value'==_0x41de2c['key']&&_0x42b881['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x511283=o(_0x5df116,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5df116,'*Change\x20%0\x20content*',_0x511283)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107f1a=this['editor'],_0x17f40f=_0x107f1a['locale'];_0x107f1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7027=>{if('formatBlock'!=_0x1b7027['type'])return;const {data:_0x4a2447}=_0x1b7027;if(_0x4a2447&&'htmlEmbed'==_0x4a2447['commandName']){const _0x4a011a=o(_0x17f40f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x17f40f,'*Change\x20%0\x20content*',_0x4a011a)};}});}}class nt extends _0x2786a9{['afterInit'](){const _0x1e36f8=this['editor'];if(!_0x1e36f8['plugins']['has']('ImageEditing'))return;const _0x4aecf6=_0x1e36f8['plugins']['get']('TrackChangesEditing'),_0x39980f=_0x1e36f8['plugins']['get']('ImageUtils'),_0x398c62=_0x1e36f8['locale'];_0x4aecf6['enableCommand']('insertImage'),_0x4aecf6['descriptionFactory']['registerElementLabel']('imageBlock',_0x643218=>o(_0x398c62,'ELEMENT_IMAGE',_0x643218)),_0x4aecf6['descriptionFactory']['registerElementLabel']('imageInline',_0x1c18ed=>o(_0x398c62,'ELEMENT_INLINE_IMAGE',_0x1c18ed)),_0x4aecf6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x398c62,'ELEMENT_CAPTION')),_0x1e36f8['plugins']['has']('ImageUploadEditing')&&_0x4aecf6['enableCommand']('uploadImage'),_0x1e36f8['plugins']['has']('ImageBlockEditing')&&_0x1e36f8['plugins']['has']('ImageInlineEditing')&&(_0x4aecf6['enableCommand']('imageTypeInline',(_0x4c6770,_0x5aa2ef)=>{const _0x2fd0aa=_0x39980f['getClosestSelectedImageElement'](_0x1e36f8['model']['document']['selection']);_0x1e36f8['model']['change'](()=>{_0x4aecf6['markBlockFormat'](_0x2fd0aa,{'commandName':'imageTypeInline','commandParams':[_0x5aa2ef]},[],'convertBlockImageToInline');});}),_0x4aecf6['enableCommand']('imageTypeBlock',(_0x32a78f,_0x36f72d)=>{_0x1e36f8['model']['change'](_0x4d4880=>{let _0x3bf498=_0x39980f['getClosestSelectedImageElement'](_0x1e36f8['model']['document']['selection']),_0x55aded=_0x4d4880['createRangeOn'](_0x3bf498);const _0x403e63=_0x4199ee['fromPosition'](_0x55aded['start'],'toPrevious'),_0x3af05c=_0x4199ee['fromPosition'](_0x55aded['end'],'toNext');_0x4aecf6['forceDefaultExecution'](()=>_0x32a78f(_0x36f72d)),_0x3bf498=_0x39980f['getClosestSelectedImageElement'](_0x1e36f8['model']['document']['selection']),_0x55aded=_0x4d4880['createRangeOn'](_0x3bf498);const _0x154385=_0x4d4880['createRange'](_0x403e63,_0x3af05c);_0x403e63['detach'](),_0x3af05c['detach'](),_0x4aecf6['markBlockFormat'](_0x3bf498,{'commandName':'imageTypeInline','commandParams':[_0x36f72d]},[],'convertInlineImageToBlock'),_0x154385['start']['isBefore'](_0x55aded['start'])&&_0x4aecf6['markInsertion'](_0x4d4880['createRange'](_0x154385['start'],_0x55aded['start']),'convertInlineImageToBlock'),_0x55aded['end']['isBefore'](_0x154385['end'])&&_0x4aecf6['markInsertion'](_0x4d4880['createRange'](_0x55aded['end'],_0x154385['end']),'convertInlineImageToBlock');});}),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4aecf6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46e1b9])=>{const _0x1a6cbc=_0x4aecf6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5bb483=_0x46e1b9['start'],_0x16bbb5=_0x46e1b9['end'];const _0xed9b43=_0x1e36f8['model']['schema']['getNearestSelectionRange'](_0x5bb483,'backward'),_0x31c516=_0x1e36f8['model']['schema']['getNearestSelectionRange'](_0x16bbb5,'forward');_0xed9b43['isCollapsed']&&(_0x5bb483=_0xed9b43['start']),_0x31c516['isCollapsed']&&(_0x16bbb5=_0x31c516['end']),_0x1a6cbc([_0x1e36f8['model']['createRange'](_0x5bb483,_0x16bbb5)]);}),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x11c953),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x11c953)),_0x1e36f8['plugins']['has']('ImageCaptionEditing')&&(_0x4aecf6['enableCommand']('toggleImageCaption',(_0x165db2,_0x446fb9)=>{const _0x156d21=_0x1e36f8['plugins']['get']('ImageCaptionUtils');let _0x1e593b=_0x39980f['getClosestSelectedImageElement'](_0x1e36f8['model']['document']['selection']),_0x326633=_0x156d21['getCaptionFromImageModelElement'](_0x1e593b);_0x1e36f8['model']['change'](()=>{if(_0x326633)return void _0x4aecf6['markDeletion'](_0x1e36f8['model']['createRangeOn'](_0x326633));const _0x263bd1=_0x39980f['isBlockImage'](_0x1e593b);_0x165db2(_0x446fb9),_0x1e593b=_0x39980f['getClosestSelectedImageElement'](_0x1e36f8['model']['document']['selection']),_0x326633=_0x156d21['getCaptionFromImageModelElement'](_0x1e593b),_0x4aecf6['markInsertion'](_0x1e36f8['model']['createRangeOn'](_0x326633),_0x263bd1?null:'imageCaption');});}),_0x4aecf6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x11c953));const _0x217870=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10ec96(_0x260dab,_0x5ec152){const _0x5ebb6c=_0x217870['findIndex'](({type:_0x911903,subType:_0x146de8})=>_0x260dab['type']==_0x911903&&_0x260dab['subType']==_0x146de8),_0x352090=_0x217870['findIndex'](({type:_0x3bd5e0,subType:_0x16419b})=>_0x5ec152['type']==_0x3bd5e0&&_0x5ec152['subType']==_0x16419b);if(_0x5ebb6c<0x0||_0x352090<0x0)return!0x1;const _0x3db92e=_0x260dab['getFirstRange'](),_0x4e5197=_0x5ec152['getFirstRange']();if((0x0==_0x5ebb6c||0x1==_0x5ebb6c)&&0x2==_0x352090&&_0x3db92e['isIntersecting'](_0x4e5197))return!0x0;if(0x2==_0x5ebb6c&&0x3==_0x352090){const _0x57371a=_0x4aecf6['_findSuggestions'](_0x3db92e,'insertion')['filter'](({suggestion:_0x1c3631,meta:_0xd5f755})=>_0xd5f755['isOwn']&&'convertInlineImageToBlock'==_0x1c3631['subType']);if(_0x57371a['length']>0x1&&_0x4e5197['end']['isEqual'](_0x3db92e['start']))return!0x0;if(0x1==_0x57371a['length']&&(_0x3db92e['start']['isEqual'](_0x4e5197['end'])||_0x3db92e['end']['isEqual'](_0x4e5197['start'])))return!0x0;}if(0x3==_0x5ebb6c&&0x3==_0x352090&&_0x3db92e['start']['isBefore'](_0x4e5197['start'])){const _0x3874a7=_0x3db92e['end']['nodeAfter'],_0x45d793=_0x4e5197['start']['nodeBefore'];return _0x39980f['isBlockImage'](_0x3874a7)&&_0x3874a7===_0x45d793;}return!0x1;}function _0x11c953(_0x14c9dd,_0xb0d6ad){return _0x10ec96(_0x14c9dd,_0xb0d6ad)?[_0x14c9dd,_0xb0d6ad]:_0x10ec96(_0xb0d6ad,_0x14c9dd)?[_0xb0d6ad,_0x14c9dd]:null;}_0x1e36f8['plugins']['has']('ImageResize')&&(_0x4aecf6['enableDefaultAttributesIntegration']('resizeImage'),_0x4aecf6['registerBlockAttribute']('resizedWidth'),_0x4aecf6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x398c62,'FORMAT_IMAGE_SIZE'))),_0x1e36f8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4aecf6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4aecf6['registerBlockAttribute']('alt')),_0x4aecf6['descriptionFactory']['registerDescriptionCallback'](_0x570071=>{if(!!_0x217870['find'](({type:_0x1435bf,subType:_0x571876})=>_0x570071['type']==_0x1435bf&&_0x570071['subType']==_0x571876))return _0x570071['previous']?{}:void 0x0;}),_0x4aecf6['descriptionFactory']['registerDescriptionCallback'](_0x48bcb1=>{if('insertion'==_0x48bcb1['type']||'deletion'==_0x48bcb1['type']){const _0x220346=_0x48bcb1['getContainedElement']();if(_0x220346&&_0x220346['is']('element','caption'))return{'type':'insertion'==_0x48bcb1['type']?'addObject':'removeObject','element':_0x220346,'quantity':0x1};}}),_0x4aecf6['descriptionFactory']['registerDescriptionCallback'](_0x174c64=>'formatBlock'==_0x174c64['type']&&'convertInlineImageToBlock'==_0x174c64['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x174c64['type']&&'convertBlockImageToInline'==_0x174c64['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4aecf6['descriptionFactory']['registerDescriptionCallback'](_0x388ca5=>{if('attribute'!=_0x388ca5['type'])return;const {data:_0x3bd207}=_0x388ca5;if(!_0x3bd207||'alt'!=_0x3bd207['key'])return;const _0xa01ccf=_0x3bd207['newValue'];return _0xa01ccf?{'type':'format','content':o(_0x398c62,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa01ccf+'\x22')}:{'type':'format','content':o(_0x398c62,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32b54d=this['editor'],_0x45d93c=_0x32b54d['locale'];_0x32b54d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6ee7=>{if('formatBlock'!=_0x1e6ee7['type']&&'formatInline'!=_0x1e6ee7['type'])return;const {data:_0xd00b56}=_0x1e6ee7;if(_0xd00b56){if('imageTextAlternative'==_0xd00b56['commandName']){const _0x14d261=_0xd00b56['commandParams'][0x0]['newValue'];return _0x14d261?{'type':'format','content':o(_0x45d93c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14d261+'\x22')}:{'type':'format','content':o(_0x45d93c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xd00b56['commandName']){const _0xefb796=_0xd00b56['commandParams'][0x0]['width'];return _0xefb796?{'type':'format','content':o(_0x45d93c,'*Set\x20image\x20width:*\x20%0',_0xefb796)}:{'type':'format','content':o(_0x45d93c,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2786a9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x33d036=this['editor']['locale'],_0x24a722=this['editor']['plugins']['get']('TrackChangesEditing');_0x24a722['enableDefaultAttributesIntegration']('replaceImageSource'),_0x24a722['registerBlockAttribute']('src'),_0x24a722['descriptionFactory']['registerDescriptionCallback'](_0x1e8687=>{if('attribute'!=_0x1e8687['type'])return;const {data:_0x14d6a0}=_0x1e8687;return _0x14d6a0&&'src'==_0x14d6a0['key']?_0x14d6a0['newValue']&&_0x14d6a0['oldValue']?{'type':'format','content':o(_0x33d036,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4330d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4330d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4330d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4330d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4330d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f95a=this['editor'],_0x2d73e3=_0x47f95a['locale'];_0x47f95a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2187b6=>{if('formatBlock'!=_0x2187b6['type']&&'formatInline'!=_0x2187b6['type'])return;const {data:_0x28c645}=_0x2187b6;if(!_0x28c645||'replaceImageSource'!=_0x28c645['commandName'])return;return{'type':'format','content':o(_0x2d73e3,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2786a9{['afterInit'](){const _0x5f19e5=this['editor'];if(!_0x5f19e5['plugins']['has']('ImageStyleEditing'))return;const _0x5e8a17=_0x5f19e5['plugins']['get']('TrackChangesEditing'),_0x5d385c=_0x5f19e5['plugins']['get']('ImageUtils'),_0x40841a={};_0x5e8a17['enableCommand']('imageStyle',(_0x3fd97f,_0x43b654)=>{const _0x232f96=_0x5f19e5['plugins']['get']('Users')['me'],_0x5ac04f=_0x5f19e5['commands']['get']('imageStyle');let _0x2117ed=_0x5d385c['getClosestSelectedImageElement'](_0x5f19e5['model']['document']['selection']),_0x24c0c3=_0x5f19e5['model']['createRangeOn'](_0x2117ed),_0x2d27b3=_0x5ac04f['value'];if(_0x2d27b3==_0x43b654['value'])return;const _0x45d5b3={'commandName':'imageStyle','commandParams':[_0x43b654],'formatGroupId':_0x4a9fdc()};_0x5f19e5['model']['change'](()=>{if(_0x5e8a17['getSuggestions']()['filter'](_0x584fb9=>_0x584fb9['isInContent']&&_0x232f96==_0x584fb9['author']&&('formatBlock'==_0x584fb9['type']||'formatInline'==_0x584fb9['type'])&&('imageStylePreApply'==_0x584fb9['subType']||'imageStylePostApply'==_0x584fb9['subType'])&&_0x584fb9['getFirstRange']()['isEqual'](_0x24c0c3))['forEach'](_0xde1d1a=>_0x5e8a17['discardSuggestion'](_0xde1d1a['head'])),_0x2117ed=_0x5d385c['getClosestSelectedImageElement'](_0x5f19e5['model']['document']['selection']),_0x24c0c3=_0x5f19e5['model']['createRangeOn'](_0x2117ed),_0x5ac04f['refresh'](),_0x5f19e5['commands']['get']('imageTypeInline')['refresh'](),_0x5f19e5['commands']['get']('imageTypeBlock')['refresh'](),_0x2d27b3=_0x5ac04f['value'],_0x2d27b3!=_0x43b654['value'])return _0x5d385c['isInlineImage'](_0x2117ed)&&_0x5ac04f['shouldConvertImageType'](_0x43b654['value'],_0x2117ed)?(_0x3fd97f({..._0x43b654,'setImageSizes':!0x1}),_0x2117ed=_0x5d385c['getClosestSelectedImageElement'](_0x5f19e5['model']['document']['selection']),void _0x5e8a17['markBlockFormat'](_0x2117ed,{..._0x45d5b3,'commandReversedParams':[{'value':_0x2d27b3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5d385c['isBlockImage'](_0x2117ed)?_0x5e8a17['markBlockFormat'](_0x2117ed,_0x45d5b3,[],'imageStylePostApply'):_0x5e8a17['markInlineFormat'](_0x24c0c3,_0x45d5b3,'imageStylePostApply'));});});for(const _0x5d9cfe of _0x5f19e5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x40841a[_0x5d9cfe['name']]=_0x5d9cfe['title']['toLowerCase']();_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x518f5c])=>{_0x5d385c['setImageNaturalSizeAttributes'](_0x518f5c['getContainedElement']());}),_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ab24d,_0x68d8f1)=>{_0x5e8a17['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ab24d,{'commandName':_0x68d8f1['commandName'],'commandParams':_0x68d8f1['commandReversedParams']});}),_0x5e8a17['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x44ab20,_0xfb4e43){if(_0x4339e4(_0x44ab20,_0xfb4e43))return[_0x44ab20,_0xfb4e43];if(_0x4339e4(_0xfb4e43,_0x44ab20))return[_0xfb4e43,_0x44ab20];return null;});const _0x5d1b5b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4339e4(_0x5cdccc,_0x15896e){const _0x302df5=_0x5d1b5b['findIndex'](({type:_0x55e9f4,subType:_0x5cfd0a})=>_0x5cdccc['type']==_0x55e9f4&&_0x5cdccc['subType']==_0x5cfd0a),_0x26f222=_0x5d1b5b['findIndex'](({type:_0x481bde,subType:_0x589ef8})=>_0x15896e['type']==_0x481bde&&_0x15896e['subType']==_0x589ef8);if(_0x302df5<0x0||_0x26f222<0x0)return!0x1;const _0x39abac=_0x5cdccc['getFirstRange'](),_0x13e1e8=_0x15896e['getFirstRange']();if((0x0==_0x302df5||0x1==_0x302df5)&&0x2==_0x26f222&&_0x39abac['isIntersecting'](_0x13e1e8))return!0x0;if(0x2==_0x302df5&&0x3==_0x26f222){const _0x298ce9=_0x5e8a17['_findSuggestions'](_0x39abac,'insertion')['filter'](({suggestion:_0x19fc59,meta:_0x1f46da})=>_0x1f46da['isOwn']&&'convertInlineImageToBlock'==_0x19fc59['subType']);if(_0x298ce9['length']>0x1&&_0x13e1e8['end']['isEqual'](_0x39abac['start']))return!0x0;if(0x1==_0x298ce9['length']&&(_0x39abac['start']['isEqual'](_0x13e1e8['end'])||_0x39abac['end']['isEqual'](_0x13e1e8['start'])))return!0x0;}if(0x3==_0x302df5&&0x3==_0x26f222&&_0x39abac['start']['isBefore'](_0x13e1e8['start'])){const _0x525df4=_0x39abac['end']['nodeAfter'],_0x585da0=_0x13e1e8['start']['nodeBefore'];return _0x5d385c['isBlockImage'](_0x525df4)&&_0x525df4===_0x585da0;}return!0x1;}_0x5f19e5['model']['document']['registerPostFixer'](()=>{let _0xf51e26=!0x1;const _0x57235d=Array['from'](_0x5f19e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17a948,data:_0x5a6d67}of _0x57235d){const {group:_0x469f22,type:_0x39b620,subType:_0x5bc5d0,id:_0x2fe3e3}=_0x5e8a17['_splitMarkerName'](_0x17a948);if('suggestion'==_0x469f22&&_0x5e8a17['hasSuggestion'](_0x2fe3e3)){if('formatBlock'==_0x39b620&&('imageStylePreApply'==_0x5bc5d0||'imageStylePostApply'==_0x5bc5d0)){const _0x2f1877=_0x5e8a17['getSuggestion'](_0x2fe3e3);if(_0x5a6d67['newRange']){const _0x1bab5c=_0x2f1877['getFirstRange']()['getContainedElement']();if(_0x5d385c['isBlockImage'](_0x1bab5c))continue;_0x5e8a17['discardSuggestion'](_0x2f1877),_0xf51e26=!0x0;}}if('insertion'==_0x39b620&&'imageCaption'==_0x5bc5d0&&!_0x5a6d67['newRange']){const _0x41008b=_0x5e8a17['getSuggestion'](_0x2fe3e3);_0x41008b['next']&&_0x41008b['next']['isInContent']&&(_0x5e8a17['discardSuggestion'](_0x41008b['next']),_0xf51e26=!0x0);}}}return _0xf51e26;}),this['_registerLegacyDescription'](_0x40841a);}['_registerLegacyDescription'](_0x28c3d7){const _0x2b9956=this['editor'],_0x5567d1=_0x2b9956['locale'];_0x2b9956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca288=>{if('formatBlock'!=_0x2ca288['type']&&'formatInline'!=_0x2ca288['type'])return;const {data:_0x1723db}=_0x2ca288;if(!_0x1723db||'imageStyle'!=_0x1723db['commandName'])return;const _0xa2682b=_0x1723db['commandParams'][0x0]['value'];return _0x3b35f4('side'===_0xa2682b?o(_0x5567d1,'FORMAT_SIDE_IMAGE'):_0x28c3d7[_0xa2682b]||_0xa2682b);function _0x3b35f4(_0x5ed041){return{'type':'format','content':o(_0x5567d1,'*Format:*\x20%0',_0x5ed041)};}});}}class at extends _0x2786a9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1474e5){super(_0x1474e5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48cbe1=this['editor'],_0x1a9cb2=_0x48cbe1['commands']['get']('importWord'),_0x220e98=_0x48cbe1['commands']['get']('trackChanges');_0x1a9cb2&&(_0x1a9cb2['on']('execute',(_0xcd1a9a,[,_0x4a6795])=>{this['_trackChangesValueDuringImport']=_0x220e98['value'],_0x4a6795['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a9cb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a9cb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x220e98['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48cbe1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xc71896,_0x446717){const {suggestions:_0x223dff}=_0x446717,_0x589748=this['editor']['commands']['get']('trackChanges'),_0x19aca7=_0x589748['value'];this['_trackChangesValueDuringImport']!==_0x19aca7&&(_0x589748['execute'](),this['_trackChangesExecuted']=!0x0),_0x223dff&&_0x223dff['forEach'](({id:_0x4ceddf,type:_0xbe0a2,author:_0x5de07a,created_at:_0x30a1d1})=>{const _0x50ab49={'id':_0x4ceddf,'type':_0xbe0a2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de07a,'createdAt':_0x30a1d1?new Date(_0x30a1d1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x50ab49);});}}class ct extends _0x2786a9{['afterInit'](){const _0xa6add9=this['editor'],_0x4bf5f8=_0xa6add9['plugins']['get']('TrackChangesEditing');if(_0xa6add9['plugins']['has']('IndentEditing')&&(_0x4bf5f8['enableCommand']('indent'),_0x4bf5f8['enableCommand']('outdent')),_0xa6add9['plugins']['has']('IndentBlock')){for(const _0x41ac50 of['indentBlock','outdentBlock'])_0x4bf5f8['enableDefaultAttributesIntegration'](_0x41ac50);}const _0xb56b80=_0xa6add9['locale'];_0x4bf5f8['registerBlockAttribute']('blockIndent'),_0x4bf5f8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xb56b80,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62c768=this['editor'],_0x5cb7e6=_0x62c768['locale'],_0x459ad2=_0x62c768['plugins']['get']('TrackChangesEditing');_0x459ad2['descriptionFactory']['registerDescriptionCallback'](_0x154c80=>{if('formatBlock'!=_0x154c80['type'])return;const {data:_0x3d87b2}=_0x154c80;if(!_0x3d87b2)return;if('indentBlock'!=_0x3d87b2['commandName']&&'outdentBlock'!=_0x3d87b2['commandName'])return;const _0xbee963=_0x154c80['getItems']()[0x0],_0x3045a8=_0x459ad2['descriptionFactory']['getItemLabel'](_0xbee963);return'indentBlock'==_0x3d87b2['commandName']?{'type':'format','content':o(_0x5cb7e6,'*Indent:*\x20%0',_0x3045a8)}:'outdentBlock'==_0x3d87b2['commandName']?{'type':'format','content':o(_0x5cb7e6,'*Outdent:*\x20%0',_0x3045a8)}:void 0x0;});}}class ut extends _0x2786a9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2786a9{['afterInit'](){const _0x50333e=this['editor'];if(!_0x50333e['plugins']['has']('LinkEditing'))return;const _0x46b47a=_0x50333e['plugins']['get']('TrackChangesEditing'),_0x486465=_0x50333e['commands']['get']('link');_0x46b47a['enableDefaultAttributesIntegration']('link'),_0x46b47a['enableDefaultAttributesIntegration']('unlink'),_0x46b47a['registerInlineAttribute']('linkHref');for(const _0x4b1c58 of _0x486465['manualDecorators'])_0x46b47a['registerInlineAttribute'](_0x4b1c58['id']),_0x46b47a['descriptionFactory']['registerAttributeLabel'](_0x4b1c58['id'],'link\x20('+_0x4b1c58['label']['toLowerCase']()+')');_0x46b47a['descriptionFactory']['registerDescriptionCallback'](_0x454f8a=>{if('attribute'!=_0x454f8a['type'])return;const {data:_0x3fc8fa}=_0x454f8a;if(!_0x3fc8fa||'linkHref'!=_0x3fc8fa['key'])return;const _0x4249ed=_0x3fc8fa['newValue'],_0x22841a=_0x50333e['locale'];return{'type':'format','content':null==_0x4249ed?o(_0x22841a,'*Remove\x20link*'):o(_0x22841a,'*Set\x20link:*\x20%0','\x22'+_0x4249ed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4934=this['editor'],_0x2f23a3=_0x5e4934['locale'];_0x5e4934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57682e=>{if('formatInline'!=_0x57682e['type'])return;const {data:_0x2579f1}=_0x57682e;if(_0x2579f1){if('link'==_0x2579f1['commandName']){const _0x15fc32=_0x2579f1['commandParams'][0x0];return{'type':'format','content':o(_0x2f23a3,'*Set\x20link:*\x20%0','\x22'+_0x15fc32+'\x22')};}return'unlink'==_0x2579f1['commandName']?{'type':'format','content':o(_0x2f23a3,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2786a9{['afterInit'](){const _0x40e25c=this['editor'],_0x4aaa7a=_0x40e25c['locale'];if(!_0x40e25c['plugins']['has']('LegacyListEditing'))return;const _0x25f27c=_0x40e25c['plugins']['get']('TrackChangesEditing'),_0x32f6bf=_0x40e25c['plugins']['has']('LegacyTodoListEditing');function _0x5a6c6e(_0x5ccc81){return()=>{const _0x552624=_0x40e25c['model']['document']['selection'],_0x4b8529=_0x40e25c['commands']['get'](_0x5ccc81);if(_0x4b8529['value'])return void _0x40e25c['execute']('paragraph',{});const _0x3d0d30=_0x5ccc81['slice'](0x0,-0x4),_0x414421=function(_0x45bc7d,_0x5aba45,_0x21537e){let _0x5b9f5e=Array['from'](_0x45bc7d)['filter'](_0x267ed1=>function(_0x2c6553,_0x23ce72){return _0x23ce72['checkChild'](_0x2c6553['parent'],'listItem')&&!_0x23ce72['isObject'](_0x2c6553);}(_0x267ed1,_0x21537e));_0x5b9f5e=_0x5b9f5e['filter'](_0x54ecfc=>!_0x54ecfc['is']('element','listItem')||_0x54ecfc['getAttribute']('listType')!=_0x5aba45);const _0x36798c=new Set();for(const _0x3308fa of _0x5b9f5e)_0x3308fa['is']('element','listItem')?_0x36798c['add'](fe(_0x3308fa)):_0x36798c['add'](_0x3308fa);return Array['from'](_0x36798c);}(_0x552624['getSelectedBlocks'](),_0x3d0d30,_0x40e25c['model']['schema']);_0x40e25c['model']['change'](()=>{for(const _0x1a3bab of _0x414421)_0x25f27c['markBlockFormat'](_0x1a3bab,{'commandName':_0x5ccc81,'commandParams':[{'forceValue':!_0x4b8529['value']}],'formatGroupId':'blockName'},ue(_0x1a3bab));});};}function _0x1e09b9(_0x3ba7f1){return()=>{const _0x485bb7=function(_0x23b62f){let _0x1bc9a9=Array['from'](_0x23b62f);const _0x490d42=_0x1bc9a9['findIndex'](_0x51011e=>'listItem'!=_0x51011e['name']);return _0x490d42>-0x1&&(_0x1bc9a9=_0x1bc9a9['slice'](0x0,_0x490d42)),_0x1bc9a9;}(_0x40e25c['model']['document']['selection']['getSelectedBlocks']()),_0x4f5b0f=_0x40e25c['model']['createRange'](_0x40e25c['model']['createPositionAt'](_0x485bb7[0x0],'before'),_0x40e25c['model']['createPositionAt'](_0x485bb7[_0x485bb7['length']-0x1],'end'));_0x40e25c['model']['change'](()=>{_0x25f27c['markBlockFormat'](_0x4f5b0f,{'commandName':_0x3ba7f1,'commandParams':[],'formatGroupId':'listIndent'},function(_0xdf2ad6){const _0x205a8c=new Set();for(const _0x1105aa of _0xdf2ad6){let _0x376d83=_0x1105aa['nextSibling'];for(;_0x376d83&&_0x376d83['getAttribute']('listIndent')>_0x1105aa['getAttribute']('listIndent');)_0x205a8c['add'](_0x376d83),_0x376d83=_0x376d83['nextSibling'];}return Array['from'](_0x205a8c);}(_0x485bb7));});};}_0x25f27c['enableCommand']('numberedList',_0x5a6c6e('numberedList')),_0x25f27c['enableCommand']('bulletedList',_0x5a6c6e('bulletedList')),_0x32f6bf&&_0x25f27c['enableCommand']('todoList',_0x5a6c6e('todoList')),_0x25f27c['enableCommand']('indentList',_0x1e09b9('indentList')),_0x25f27c['enableCommand']('outdentList',_0x1e09b9('outdentList')),_0x32f6bf&&_0x25f27c['enableCommand']('checkTodoList',()=>{const _0x4ac880=_0x40e25c['commands']['get']('checkTodoList'),_0x2b20cd=Array['from'](_0x4ac880['_selectedElements']);_0x2b20cd['filter'](_0x2a0507=>_0x2a0507['getAttribute']('todoListChecked')!=_0x4ac880['value']),_0x40e25c['model']['change'](()=>{for(const _0xd99cea of _0x2b20cd)_0x25f27c['markBlockFormat'](_0xd99cea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4ac880['value']}]});});}),_0x25f27c['descriptionFactory']['registerElementLabel']('listItem',_0x443268=>o(_0x4aaa7a,'ELEMENT_LIST_ITEM',_0x443268)),_0x25f27c['descriptionFactory']['registerDescriptionCallback'](_0x1b560f=>{if('formatBlock'!=_0x1b560f['type']&&'formatInline'!=_0x1b560f['type'])return;const {data:_0x3070a6}=_0x1b560f;if(_0x3070a6){if('numberedList'==_0x3070a6['commandName']||'bulletedList'==_0x3070a6['commandName']||'todoList'==_0x3070a6['commandName'])switch(_0x3070a6['commandName']['replace']('List','')){case'bulleted':return _0x296de3(o(_0x4aaa7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x296de3(o(_0x4aaa7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x296de3(o(_0x4aaa7a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3070a6['commandName'])return{'type':'format','content':o(_0x4aaa7a,'*Indent:*\x20%0',o(_0x4aaa7a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3070a6['commandName'])return{'type':'format','content':o(_0x4aaa7a,'*Outdent:*\x20%0',o(_0x4aaa7a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3070a6['commandName'])return _0x3070a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4aaa7a,'*Check\x20item*')}:{'type':'format','content':o(_0x4aaa7a,'*Uncheck\x20item*')};}function _0x296de3(_0xd7a392){return{'type':'format','content':o(_0x4aaa7a,'*Change\x20to:*\x20%0',_0xd7a392)};}});}}function fe(_0x1d8801){const _0x16ce60=_0x1d8801['getAttribute']('listIndent');if(0x0==_0x16ce60)return _0x1d8801;let _0x57b5a0=_0x1d8801;for(;_0x1d8801['previousSibling']&&_0x1d8801['previousSibling']['is']('element','listItem');){const _0x470dde=_0x1d8801['previousSibling']['getAttribute']('listIndent');if(_0x470dde==_0x16ce60)_0x57b5a0=_0x1d8801['previousSibling'];else{if(_0x470dde<_0x16ce60)break;}_0x1d8801=_0x1d8801['previousSibling'];}return _0x57b5a0;}function ue(_0x1c403d){const _0x26ee93=[];if(_0x1c403d['is']('element','listItem')&&_0x1c403d['getAttribute']('listIndent')>0x0){let _0x4e70d9=_0x1c403d['nextSibling'];for(;_0x4e70d9&&'listItem'==_0x4e70d9['name']&&_0x4e70d9['getAttribute']('listIndent')==_0x1c403d['getAttribute']('listIndent');)_0x26ee93['push'](_0x4e70d9),_0x4e70d9=_0x4e70d9['nextSibling'];}return _0x26ee93;}class W extends _0x2786a9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5efb78=this['editor']['config']['get']('list.properties'),_0x4c94db=this['editor']['plugins']['get']('TrackChangesEditing');_0x5efb78['styles']&&_0x4c94db['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5efb78['reversed']&&_0x4c94db['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5efb78['startIndex']&&_0x4c94db['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4c94db['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3880e6,_0x56a28b={}){const _0x27e6f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ba76d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27e6f1['markMultiRangeBlockFormat'](_0x5ba76d,{'commandName':'listStyle','commandParams':[{'type':_0x56a28b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x47c4e4,_0x2c370d={}){const _0x5cb6d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9694d=this['_getSuggestionBlocks'](_0x5bfab8=>_0x5bfab8['is']('element','listItem')&&'numbered'===_0x5bfab8['getAttribute']('listType'));if(_0x9694d['length']<0x1)return;const _0x282676=_0x9694d['map'](_0x2c0d9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c0d9d,'before'),this['editor']['model']['createPositionAt'](_0x2c0d9d,0x0)));this['editor']['model']['change'](()=>{_0x5cb6d8['markMultiRangeBlockFormat'](_0x282676,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c370d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x572ee0,_0x3d68aa={}){const _0x22a8f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29899a=this['_getSuggestionBlocks'](_0x5b8e03=>_0x5b8e03['is']('element','listItem')&&'numbered'===_0x5b8e03['getAttribute']('listType'));if(_0x29899a['length']<0x1)return;const _0x2db835=_0x29899a['map'](_0x51dd26=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51dd26,'before'),this['editor']['model']['createPositionAt'](_0x51dd26,0x0)));this['editor']['model']['change'](()=>{_0x22a8f4['markMultiRangeBlockFormat'](_0x2db835,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d68aa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x495176){if('formatBlock'!=_0x495176['type']&&'formatInline'!=_0x495176['type'])return;const _0xe12ce3=this['editor']['locale'],{data:_0x157365}=_0x495176;if(!_0x157365)return;let _0x432b9d,_0x152581;switch(_0x157365['commandName']){case'listStyle':_0x432b9d='*Change\x20to:*\x20%0',_0x152581={'type':'format','content':o(_0xe12ce3,_0x432b9d,o(_0xe12ce3,this['_getTranslationKeyForListStyle'](_0x157365['commandParams'][0x0]['type'])))};break;case'listReversed':_0x432b9d=_0x157365['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x152581={'type':'format','content':o(_0xe12ce3,_0x432b9d)};break;case'listStart':_0x432b9d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x152581={'type':'format','content':o(_0xe12ce3,_0x432b9d,_0x157365['commandParams'][0x0]['startIndex'])};}return _0x152581;}['_getSuggestionBlocksForListStyle'](){const _0x10e886=this['editor']['plugins']['get']('LegacyListUtils');let _0x34ae36=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34ae36[0x0]?.['is']('element','listItem')&&_0x34ae36['unshift'](..._0x10e886['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34ae36[_0x34ae36['length']-0x1]?.['is']('element','listItem')&&_0x34ae36['push'](..._0x10e886['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34ae36=[...new Set(_0x34ae36)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34ae36=_0x34ae36['filter'](_0x389ffd=>_0x389ffd['is']('element','listItem'))),_0x34ae36;}['_getSuggestionBlocks'](_0x36b5b1){const _0x49b54a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2444be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x36b5b1)['map'](_0xad3655=>{const _0x1c4ec2=this['editor']['model']['createPositionAt'](_0xad3655,0x0);return[..._0x49b54a['getSiblingNodes'](_0x1c4ec2,'backward'),..._0x49b54a['getSiblingNodes'](_0x1c4ec2,'forward')];})['flat']();return _0x2444be=[...new Set(_0x2444be)],_0x2444be;}['_getTranslationKeyForListStyle'](_0x43e799){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43e799)||'default')['toUpperCase']()+'_LIST_'+_0x43e799['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2786a9{['afterInit'](){const _0x57addf=this['editor'];if(!_0x57addf['plugins']['has']('MediaEmbedEditing'))return;const _0x2d4dc0=_0x57addf['plugins']['get']('TrackChangesEditing'),_0x4cb678=_0x57addf['locale'];_0x2d4dc0['enableCommand']('mediaEmbed'),_0x2d4dc0['descriptionFactory']['registerElementLabel']('media',_0x34a519=>o(_0x4cb678,'ELEMENT_MEDIA',_0x34a519)),_0x57addf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16f3a3,{writer:_0x1cec76,options:_0x5f4175})=>{if(_0x5f4175['showSuggestionHighlights'])return _0x1cec76['createEmptyElement']('div');},'converterPriority':'high'}),_0x57addf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27d182,_0x3b1ebb,_0x1c45f8)=>{_0x1c45f8['options']['showSuggestionHighlights']&&_0x27d182['stop']();},{'priority':'high'});}}class mt extends _0x2786a9{['afterInit'](){const _0x677c0=this['editor'];_0x677c0['plugins']['has']('MentionEditing')&&_0x677c0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2786a9{['afterInit'](){const _0x1d5c9a=this['editor'];if(!_0x1d5c9a['plugins']['has']('MergeFieldsEditing'))return;_0x1d5c9a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1d5c9a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2e3ea6=_0x1d5c9a['plugins']['get']('TrackChangesEditing'),_0x289ddb=_0x1d5c9a['locale'];_0x2e3ea6['descriptionFactory']['registerElementLabel']('mergeField',_0x1b25f1=>o(_0x289ddb,'ELEMENT_MERGE_FIELD',_0x1b25f1)),_0x2e3ea6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x27dee9=>o(_0x289ddb,'ELEMENT_MERGE_FIELD',_0x27dee9)),_0x2e3ea6['descriptionFactory']['registerDescriptionCallback'](_0x24f4da=>{if('insertion'!=_0x24f4da['type']&&'deletion'!=_0x24f4da['type'])return;const _0x4c51c5=_0x24f4da['getContainedElement']();if(null==_0x4c51c5)return;if(!_0x4c51c5['is']('element','mergeField')&&!_0x4c51c5['is']('element','mergeFieldBlock'))return;const _0x698c92=_0x1d5c9a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4c51c5['getAttribute']('id'));return'insertion'==_0x24f4da['type']?{'type':'insertion','content':o(_0x289ddb,'*Insert:*\x20%0','\x22'+_0x698c92+'\x22\x20'+o(_0x289ddb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x289ddb,'*Remove:*\x20%0','\x22'+_0x698c92+'\x22\x20'+o(_0x289ddb,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2786a9{['afterInit'](){const _0x35f876=this['editor'],_0x12d46b=_0x35f876['plugins']['get']('TrackChangesEditing');_0x35f876['plugins']['has']('MultiLevelList')&&(_0x12d46b['enableDefaultAttributesIntegration']('multiLevelList'),_0x12d46b['registerBlockAttribute']('listMarkerStyle'),_0x12d46b['descriptionFactory']['registerDescriptionCallback'](_0x6feae5=>this['handleDescriptions'](_0x6feae5)));}['handleDescriptions'](_0x435297){const _0x5c66d2=this['editor']['locale'],{data:_0x491b95}=_0x435297,_0x507ec0={'type':'format','content':''};if(_0x491b95&&'listMarkerStyle'==_0x491b95['key']){if(!_0x491b95['oldValue'])return{'type':'format','content':o(_0x5c66d2,'*Set\x20format:*\x20%0',o(_0x5c66d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x491b95['newValue']+')'};if(!_0x491b95['newValue']){let _0x37833a=_0x435297['head'];for(;_0x37833a;){if(_0x37833a['data']&&'listType'==_0x37833a['data']['key']&&_0x37833a['data']['newValue'])return _0x507ec0;_0x37833a=_0x37833a['next'];}return{'type':'format','content':o(_0x5c66d2,'*Remove\x20format:*\x20%0',o(_0x5c66d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x491b95['oldValue']+')'};}}}}class kt extends _0x2786a9{['afterInit'](){const _0x1918e0=this['editor'];if(!_0x1918e0['plugins']['has']('PageBreakEditing'))return;_0x1918e0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3c65c4=_0x1918e0['plugins']['get']('TrackChangesEditing'),_0x26174a=_0x1918e0['locale'];_0x3c65c4['descriptionFactory']['registerElementLabel']('pageBreak',_0x517174=>o(_0x26174a,'ELEMENT_PAGE_BREAK',_0x517174));}}class bt extends _0x2786a9{['afterInit'](){const _0x5a9acc=this['editor'];if(!_0x5a9acc['plugins']['has']('Paragraph'))return;const _0x870911=_0x5a9acc['locale'],_0x4ec6f7=_0x5a9acc['plugins']['get']('TrackChangesEditing');_0x4ec6f7['descriptionFactory']['registerElementLabel']('paragraph',_0x4fdb5f=>o(_0x870911,'ELEMENT_PARAGRAPH',_0x4fdb5f)),_0x4ec6f7['enableDefaultAttributesIntegration']('paragraph'),_0x4ec6f7['enableCommand']('insertParagraph'),_0x5a9acc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5a9acc),{'priority':'highest'}),_0x5a9acc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x208806,_0x59d42c,_0x3c557d)=>{_0x3c557d['options']['showSuggestionHighlights']&&nr(_0x5a9acc,{'showActiveMarker':!0x1})(_0x208806,_0x59d42c,_0x3c557d);},{'priority':'highest'});const _0x156336=_0x4ec6f7['descriptionFactory'];_0x156336['registerDescriptionCallback'](_0x32f9a2=>{if('insertion'!==_0x32f9a2['type'])return;const {start:_0x1e7643,end:_0x1cc3f8}=_0x32f9a2['getFirstRange']();if(!_0x1e7643['isTouching'](_0x1cc3f8)||!_0x1e7643['nodeAfter'])return;const _0xc72d3e=_0x5a9acc['model']['schema'],_0x35e193=_0x1e7643['nodeAfter'];return _0xc72d3e['isBlock'](_0x35e193)&&!_0xc72d3e['isLimit'](_0x35e193)&&_0xc72d3e['checkChild'](_0x35e193,'$text')?{'type':'insertion','content':o(_0x870911,'*Insert:*\x20%0',_0x156336['getItemLabel'](_0x35e193,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4230b6=this['editor'],_0x5b20ff=_0x4230b6['locale'];_0x4230b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300440=>{if('formatBlock'!=_0x300440['type'])return;const {data:_0x4e32bd}=_0x300440;return _0x4e32bd&&'paragraph'==_0x4e32bd['commandName']?{'type':'format','content':o(_0x5b20ff,'*Change\x20to:*\x20%0',o(_0x5b20ff,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc49313,{showActiveMarker:_0xc184dc=!0x0}={}){return(_0x9a252a,_0x1053fa,_0x331d14)=>{const _0x119eb2=_0xc49313['plugins']['get']('TrackChangesEditing'),_0x17fa08=_0x1053fa['markerRange']['start'],_0x927402=_0x1053fa['markerRange']['end'],_0x350d50=_0xc49313['model']['schema'];if(!_0x17fa08['isTouching'](_0x927402)||!_0x17fa08['nodeAfter'])return;const _0x919ff4=_0x17fa08['nodeAfter'];if(_0x350d50['isBlock'](_0x919ff4)&&!_0x350d50['isLimit'](_0x919ff4)&&_0x350d50['checkChild'](_0x919ff4,'$text')){if(!_0x331d14['consumable']['consume'](_0x1053fa['markerRange'],_0x9a252a['name']))return;const {authorId:_0x5d05c7}=_0x119eb2['_splitMarkerName'](_0x1053fa['markerName']),_0x126755=_0x331d14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5d05c7}),_0x417cb2=_0x331d14['mapper']['toViewPosition'](_0x927402);_0xc184dc&&_0x119eb2['activeMarkers']['includes'](_0x1053fa['markerName'])&&_0x331d14['writer']['addClass']('ck-suggestion-marker--active',_0x126755),_0x331d14['writer']['insert'](_0x417cb2,_0x126755),_0x331d14['mapper']['bindElementToMarker'](_0x126755,_0x1053fa['markerName']);}};}class wt extends _0x2786a9{['afterInit'](){const _0x133e04=this['editor'];if(!_0x133e04['plugins']['has']('RemoveFormatEditing'))return;_0x133e04['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12d09a=this['editor'];_0x12d09a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a64d=>{if('formatBlock'!=_0x48a64d['type']&&'formatInline'!=_0x48a64d['type'])return;const {data:_0x44e4ef}=_0x48a64d;return _0x44e4ef&&'removeFormat'==_0x44e4ef['commandName']?{'type':'format','content':o(_0x12d09a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2786a9{['afterInit'](){const _0x2b8450=this['editor'];if(!_0x2b8450['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x312929=_0x2b8450['plugins']['get']('TrackChangesEditing');_0x312929['enableCommand']('goToPreviousRestrictedEditingException'),_0x312929['enableCommand']('goToNextRestrictedEditingException');const _0x574bfc=_0x2b8450['plugins']['get']('RestrictedEditingModeEditing');_0x574bfc['enableCommand']('trackChanges'),_0x574bfc['enableCommand']('acceptSuggestion'),_0x574bfc['enableCommand']('discardSuggestion'),_0x574bfc['enableCommand']('acceptAllSuggestions'),_0x574bfc['enableCommand']('discardAllSuggestions'),_0x574bfc['enableCommand']('acceptSelectedSuggestions'),_0x574bfc['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2786a9{static get['requires'](){return[_0x23f31b];}['init'](){const _0x443c2d=this['editor'],_0x3e9469=_0x443c2d['plugins']['get']('TrackChangesEditing');_0x3e9469['enableCommand']('shiftEnter'),_0x443c2d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x443c2d),{'priority':'high'}),_0x443c2d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x443c2d),{'priority':'high'}),_0x443c2d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ee816,_0x468aaa,_0x50e8f5)=>{_0x50e8f5['options']['showSuggestionHighlights']&&ge(_0x443c2d,{'showActiveMarker':!0x1})(_0x5ee816,_0x468aaa,_0x50e8f5);}),_0x3e9469['descriptionFactory']['registerElementLabel']('softBreak',_0x1914ec=>o(_0x443c2d['locale'],'ELEMENT_LINE_BREAK',_0x1914ec));}}function ge(_0x5f4754,{showActiveMarker:_0x395f68=!0x0}={}){return(_0x478a07,_0x3b90f0,_0x282581)=>{const _0x133713=_0x5f4754['plugins']['get']('TrackChangesEditing');if(!_0x282581['consumable']['test'](_0x3b90f0['markerRange'],_0x478a07['name']))return;const _0x597118=_0x5f4754['model'];for(const _0x4631ac of _0x3b90f0['markerRange']['getItems']()){if(!_0x4631ac['is']('element','softBreak'))continue;const _0x5c2797='deletion'==_0x3b90f0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x413a10}=_0x133713['_splitMarkerName'](_0x3b90f0['markerName']),_0xa5859=_0x282581['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c2797,'data-author-id':_0x413a10}),_0x983c89=_0x282581['mapper']['toViewPosition'](_0x597118['createPositionBefore'](_0x4631ac));_0x395f68&&_0x133713['activeMarkers']['includes'](_0x3b90f0['markerName'])&&_0x282581['writer']['addClass']('ck-suggestion-marker--active',_0xa5859),_0x282581['writer']['insert'](_0x983c89,_0xa5859),_0x282581['mapper']['bindElementToMarker'](_0xa5859,_0x3b90f0['markerName']);}};}class St extends _0x2786a9{['afterInit'](){const _0x45d335=this['editor'],_0x5145bf=_0x45d335['model'],_0x212fc6=_0x45d335['locale'];if(!_0x45d335['plugins']['has']('StandardEditingModeEditing'))return;const _0x580cb3=_0x45d335['plugins']['get']('TrackChangesEditing'),_0x1c1a36='restrictedEditingException',_0x29c85c=_0x45d335['commands']['get'](_0x1c1a36);_0x580cb3['enableCommand'](_0x1c1a36,(_0x3964a8,_0x517408={})=>{const _0x5c68=_0x5145bf['document']['selection'];if(_0x5c68['isCollapsed'])return void _0x3964a8(_0x517408);const _0x4ccd37=void 0x0!==_0x517408['forceValue']?_0x517408['forceValue']:!_0x29c85c['value'];_0x5145bf['change'](()=>{const _0x308f8d=Array['from'](_0x5c68['getRanges']());for(const _0x534378 of _0x308f8d){const _0x16ed2d=_0x4ccd37?[_0x534378]:io(_0x1c1a36,_0x534378,_0x5145bf);for(const _0x173534 of _0x16ed2d)_0x580cb3['markInlineFormat'](_0x173534,{'commandName':_0x1c1a36,'commandParams':[{'forceValue':_0x4ccd37}]});}});}),_0x580cb3['descriptionFactory']['registerDescriptionCallback'](_0x5adf54=>{if('formatBlock'!=_0x5adf54['type']&&'formatInline'!=_0x5adf54['type'])return;const {data:_0x43b855}=_0x5adf54;return _0x43b855&&_0x43b855['commandName']==_0x1c1a36?_0x43b855['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x212fc6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x212fc6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2786a9{['afterInit'](){const _0x38c7ff=this['editor'];if(!_0x38c7ff['plugins']['has']('Style')||!_0x38c7ff['plugins']['has']('DataSchema'))return;const _0xa42a48=_0x38c7ff['plugins']['get']('TrackChangesEditing'),_0x38a416=_0x38c7ff['locale'],_0x216ce5=_0x38c7ff['config']['get']('style')||{},_0x4694be=_0x38c7ff['plugins']['get']('GeneralHtmlSupport'),_0x1dd44f=_0x38c7ff['plugins']['get']('StyleUtils')['normalizeConfig'](_0x38c7ff['plugins']['get']('DataSchema'),_0x216ce5['definitions']);_0xa42a48['enableDefaultAttributesIntegration']('style');const _0x4dd440=new Set();for(const _0x408254 of _0x1dd44f['block']){const _0x24656b=_0x4694be['getGhsAttributeNameForElement'](_0x408254['element']);_0x4dd440['add'](_0x24656b);}const _0x31fc72=new Set();for(const _0x5ab706 of _0x1dd44f['inline']){const _0x209250=_0x4694be['getGhsAttributeNameForElement'](_0x5ab706['element']);_0x31fc72['add'](_0x209250);for(const _0x20c1c9 of _0x5ab706['ghsAttributes'])_0x31fc72['add'](_0x20c1c9);}for(const _0x3741bf of _0x4dd440)_0xa42a48['registerBlockAttribute'](_0x3741bf),_0xa42a48['descriptionFactory']['registerAttributeLabel'](_0x3741bf,o(_0x38a416,'FORMAT_STYLE'));for(const _0x281d73 of _0x31fc72)_0xa42a48['registerInlineAttribute'](_0x281d73),_0xa42a48['descriptionFactory']['registerAttributeLabel'](_0x281d73,o(_0x38a416,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352950=this['editor'],_0x35b926=_0x352950['locale'];_0x352950['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca7a5=>{if('formatBlock'!=_0x3ca7a5['type']&&'formatInline'!=_0x3ca7a5['type'])return;const {data:_0x57272a}=_0x3ca7a5;return _0x57272a&&'style'===_0x57272a['commandName']?_0x57272a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b926,'*Set\x20format:*\x20%0',_0x57272a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x35b926,'*Remove\x20format:*\x20%0',_0x57272a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2786a9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x56b6a1){super(_0x56b6a1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23f6a5=this['editor'],_0x30f403=_0x23f6a5['model']['document']['selection'];if(!_0x23f6a5['plugins']['has']('TableEditing'))return;const _0x847aa5=_0x23f6a5['locale'],_0x4d3a26=_0x23f6a5['plugins']['get']('TrackChangesEditing'),_0xd54828=_0x23f6a5['plugins']['get']('TableUtils');_0x4d3a26['descriptionFactory']['registerElementLabel']('table',_0x1e7b58=>o(_0x847aa5,'ELEMENT_TABLE',_0x1e7b58)),this['_setupColumnsRowsFixing'](),_0x4d3a26['enableCommand']('insertTable'),_0x4d3a26['enableCommand']('selectTableRow'),_0x4d3a26['enableCommand']('selectTableColumn');for(const _0x3bbae7 of['insertTableRowAbove','insertTableRowBelow']){const _0x514285=_0x23f6a5['commands']['get'](_0x3bbae7);_0x4d3a26['enableCommand'](_0x3bbae7,_0x1ca53b=>{_0x23f6a5['model']['change'](_0x9f6606=>{_0x1ca53b();const _0x2c893e='above'===_0x514285['order'],_0x535321=_0xd54828['getSelectionAffectedTableCells'](_0x30f403),_0xfe3f30=_0xd54828['getRowIndexes'](_0x535321),_0x5a5bfe=_0x2c893e?_0xfe3f30['first']-0x1:_0xfe3f30['last']+0x1,_0x873a01=_0x535321[0x0]['findAncestor']('table'),_0x53513f=_0xd54828['createTableWalker'](_0x873a01,{'startRow':_0x5a5bfe,'endRow':_0x5a5bfe}),_0x2d424a=Array['from'](_0x53513f)['map'](_0x514948=>_0x9f6606['createRangeOn'](_0x514948['cell']));_0x4d3a26['markMultiRangeInsertion'](_0x2d424a,'tableRow');});});}for(const _0x375073 of['insertTableColumnLeft','insertTableColumnRight']){const _0x36b065=_0x23f6a5['commands']['get'](_0x375073);_0x4d3a26['enableCommand'](_0x375073,_0x1e1526=>{_0x23f6a5['model']['change'](_0x55f48d=>{_0x1e1526();const _0x4e5d3a='left'===_0x36b065['order'],_0x956403=_0xd54828['getSelectionAffectedTableCells'](_0x30f403),_0x24c5f5=_0xd54828['getColumnIndexes'](_0x956403),_0x5636c4=_0x4e5d3a?_0x24c5f5['first']-0x1:_0x24c5f5['last']+0x1,_0x1a08de=_0x956403[0x0]['findAncestor']('table'),_0x1458c7=_0xd54828['createTableWalker'](_0x1a08de,{'startRow':0x0,'column':_0x5636c4,'includeAllSlots':!0x1}),_0x39c96c=Array['from'](_0x1458c7)['map'](_0x336b12=>_0x55f48d['createRangeOn'](_0x336b12['cell']));_0x4d3a26['markMultiRangeInsertion'](_0x39c96c,'tableColumn');});});}for(const _0x547e9a of['removeTableRow','removeTableColumn']){const _0x465239=_0x547e9a['substr'](0xb),_0x21e468=_0x465239['toLowerCase'](),_0x377409=_0x21e468['substr'](0x0,0x3)+'span',_0x5d269f='table'+_0x465239,_0x3fa218='min'+_0x465239,_0x5971fc='max'+_0x465239;_0x4d3a26['enableCommand'](_0x547e9a,()=>{_0x23f6a5['model']['change'](_0x49150a=>{const _0x4e2145=_0xd54828['getSelectionAffectedTableCells'](_0x30f403),_0x177225=_0x4e2145[0x0]['findAncestor']('table');let _0x3215c6;if('removeTableRow'==_0x547e9a){const _0x3b8953=_0xd54828['getRowIndexes'](_0x4e2145);_0x3215c6={'startRow':_0x3b8953['first'],'endRow':_0x3b8953['last'],'includeAllSlots':!0x0};}else{const _0x1e2aa3=_0xd54828['getColumnIndexes'](_0x4e2145);_0x3215c6={'startColumn':_0x1e2aa3['first'],'endColumn':_0x1e2aa3['last'],'includeAllSlots':!0x0};}const _0x2fed50=_0xd54828['createTableWalker'](_0x177225,_0x3215c6),_0x5e721d=Array['from'](_0x2fed50)['map'](({cell:_0x1d3b3e})=>_0x1d3b3e),_0x10e9c0=be(_0x5e721d['filter'](_0x29970c=>_0x29970c['hasAttribute'](_0x377409))),_0x26e943=be(_0x5e721d['filter'](_0x18c486=>!_0x18c486['hasAttribute'](_0x377409)))['map'](_0x1ef4f5=>_0x49150a['createRangeOn'](_0x1ef4f5)),_0x1370af=_0x4d3a26['markMultiRangeDeletion'](_0x26e943,_0x5d269f);if(_0x1370af&&('tableRow'==_0x1370af['subType']||'tableColumn'==_0x1370af['subType'])){const _0x41b9ab=this['_getSuggestionCoords'](_0x1370af);for(const _0x4ab769 of _0x10e9c0){const _0x469906=_0x49150a['createRangeOn'](_0x4ab769),_0x1235f2=_0xd54828['getCellLocation'](_0x4ab769),_0x11324e=_0x4ab769['getAttribute'](_0x377409)-0x1,_0xe3fd0=_0x41b9ab[_0x3fa218],_0x577ef4=_0x41b9ab[_0x5971fc];_0xe3fd0<=_0x1235f2[_0x21e468]&&_0x1235f2[_0x21e468]+_0x11324e<=_0x577ef4&&_0x1370af['addRange'](_0x469906);}}});});}function _0x55a09a(_0x13269d){const _0x342423=Array['from'](_0x30f403['getRanges']())['map'](_0x59588b=>_0x1b4d08['fromRange'](_0x59588b));_0x23f6a5['model']['change'](_0x3e2577=>{const _0x37c196=_0x3e2577['batch'];_0x13269d=_0x13269d['filter'](_0x115311=>'$graveyard'!=_0x115311['root']['rootName']),_0x3e2577['setSelection'](_0x13269d),_0x23f6a5['commands']['get']('removeTableRow')['refresh'](),_0x23f6a5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23f6a5['model']['enqueueChange'](()=>{_0x23f6a5['model']['enqueueChange'](_0x37c196,_0x47c68c=>{const _0x22cc9e=_0x342423['filter'](_0x57c761=>'$graveyard'!=_0x57c761['root']['rootName']);_0x22cc9e['length']>0x0&&_0x47c68c['setSelection'](_0x22cc9e);for(const _0x44db21 of _0x342423)_0x44db21['detach']();});});});}function _0x5616a1(_0x1f13c0){_0x23f6a5['model']['change'](_0x530cfe=>{const _0x430528=Array['from'](_0x30f403['getRanges']())['map'](_0x22ce6d=>_0x1b4d08['fromRange'](_0x22ce6d)),_0x39b5d5=[];for(const _0x5b3427 of _0x1f13c0)for(const _0x29800b of _0x5b3427['getItems']({'shallow':!0x0}))_0x39b5d5['push'](_0x29800b);for(const _0x25e5ec of _0x39b5d5)'$graveyard'!=_0x25e5ec['root']['rootName']&&(_0x530cfe['setSelection'](_0x530cfe['createPositionAt'](_0x25e5ec,0x0)),_0x23f6a5['commands']['get']('removeTableColumn')['refresh'](),_0x23f6a5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x118358=_0x430528['filter'](_0x19446a=>'$graveyard'!=_0x19446a['root']['rootName']);_0x118358['length']>0x0&&_0x530cfe['setSelection'](_0x118358);for(const _0x58aae1 of _0x430528)_0x58aae1['detach']();});}function _0x128363(_0x12980c,_0x5d814a){return _0x5d814a['every'](_0x4c722e=>_0x12980c['some'](_0x274c20=>_0x274c20['end']['isEqual'](_0x4c722e['start'])||_0x4c722e['end']['isEqual'](_0x274c20['start'])));}function _0x2cee79(_0x483886,_0x26efbc){return!_0x483886['some'](_0x4163e9=>_0x26efbc['some'](_0x2a8178=>_0x4163e9['isIntersecting'](_0x2a8178)))&&_0x483886['some'](_0x405869=>_0x26efbc['some'](_0x5f36f2=>_0x405869['end']['isTouching'](_0x5f36f2['start'])));}_0x23f6a5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5df8a7,_0x326f97,_0x18cccb)=>{if(!_0x18cccb['options']['showSuggestionHighlights'])return;const _0x2a6909=_0x326f97['item'];if(!_0x2a6909)return;const _0x2bd3e3=_0x18cccb['mapper']['toViewElement'](_0x2a6909);function _0xcf44a8(_0x1d9f43){return Array['isArray'](_0x1d9f43)?_0x1d9f43:[_0x1d9f43];}_0x2bd3e3&&'tableCell'===_0x2a6909['name']&&_0x4293ac(_0x2bd3e3,_0x18cccb['writer'],(_0x473ea9,_0x18b709,_0x347735)=>_0x347735['addClass'](_0xcf44a8(_0x18b709['classes']),_0x473ea9),(_0x32c809,_0x3bde3b,_0x42a533)=>_0x42a533['removeClass'](_0xcf44a8(_0x3bde3b['classes']),_0x32c809));},{'priority':'highest'}),_0x4d3a26['descriptionFactory']['registerDescriptionCallback'](_0x4cf9b2=>{if('insertion'!=_0x4cf9b2['type']&&'deletion'!=_0x4cf9b2['type'])return;const _0x19aa08=_0x4cf9b2['getContainedElement']();if(null!=_0x19aa08&&_0x19aa08['is']('element','table')){if('insertion'==_0x4cf9b2['type']){const _0x17ade6=_0x4cf9b2['getItems']()['filter'](_0x1bbcf9=>_0x1bbcf9['is']('$textProxy'))['map'](_0x4a8053=>_0x4a8053['data']);if(_0x17ade6['length'])return{'type':'insertion','content':o(_0x847aa5,'*Insert:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17ade6['join']('\x20')+'\x22'))};}if('deletion'==_0x4cf9b2['type']){const _0x1af7c1=_0x4cf9b2['getItems']()['filter'](_0x1e1754=>_0x1e1754['is']('$textProxy'))['map'](_0x2a673b=>_0x2a673b['data']);if(_0x1af7c1['length'])return{'type':'deletion','content':o(_0x847aa5,'*Remove:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1af7c1['join']('\x20')+'\x22'))};}}}),_0x4d3a26['descriptionFactory']['registerDescriptionCallback'](_0x271d8c=>{if('tableRow'==_0x271d8c['subType']){const _0x4e0e9e=_0x271d8c['getItems']()['filter'](_0x35e571=>_0x35e571['is']('$textProxy'))['map'](_0x41d7db=>_0x41d7db['data']),_0x11c4fa=this['_getSuggestionCoords'](_0x271d8c),_0x55bb5c=_0x11c4fa['maxRow']-_0x11c4fa['minRow']+0x1;if('insertion'==_0x271d8c['type'])return _0x4e0e9e['length']?{'type':'insertion','content':o(_0x847aa5,'*Insert:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55bb5c,'\x22'+_0x4e0e9e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x847aa5,'*Insert:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_ROW',_0x55bb5c))};if('deletion'==_0x271d8c['type'])return _0x4e0e9e['length']?{'type':'deletion','content':o(_0x847aa5,'*Remove:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55bb5c,'\x22'+_0x4e0e9e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x847aa5,'*Remove:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_ROW',_0x55bb5c))};}if('tableColumn'==_0x271d8c['subType']){const _0x1b60d0=_0x271d8c['getItems']()['filter'](_0x19ea18=>_0x19ea18['is']('$textProxy'))['map'](_0x87e959=>_0x87e959['data']),_0x4a6cbe=this['_getSuggestionCoords'](_0x271d8c),_0x50e375=_0x4a6cbe['maxColumn']-_0x4a6cbe['minColumn']+0x1;if('insertion'==_0x271d8c['type'])return _0x1b60d0['length']?{'type':'insertion','content':o(_0x847aa5,'*Insert:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50e375,'\x22'+_0x1b60d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x847aa5,'*Insert:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_COLUMN',_0x50e375))};if('deletion'==_0x271d8c['type'])return _0x1b60d0['length']?{'type':'deletion','content':o(_0x847aa5,'*Remove:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50e375,'\x22'+_0x1b60d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x847aa5,'*Remove:*\x20%0',o(_0x847aa5,'ELEMENT_TABLE_COLUMN',_0x50e375))};}}),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x55a09a),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x55a09a),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5616a1),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5616a1),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x128363),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x128363),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2cee79),_0x4d3a26['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2cee79);}['_acceptFormatSuggestionCallbackFactory'](){const _0x441e77=this['editor'],_0x450686=_0x441e77['model']['document']['selection'];return(_0x229c8c,_0x2c1cbe)=>{_0x441e77['model']['change'](_0xa41a3e=>{const {commandName:_0x28c14f,commandParams:_0x1d4889}=_0x2c1cbe;let _0x4f25d0=_0x229c8c[0x0]['end']['nodeBefore'];_0x1d4889&&_0x1d4889[0x0]&&!0x1===_0x1d4889[0x0]['forceValue']&&(_0x4f25d0=_0x229c8c[0x0]['start']['nodeAfter']);const _0x3fe5bb=_0xa41a3e['createRangeIn'](_0x4f25d0);if('$graveyard'==_0x3fe5bb['root']['rootName'])return;const _0x587a1c=Array['from'](_0x450686['getRanges']())['map'](_0x3d6473=>_0x1b4d08['fromRange'](_0x3d6473));_0xa41a3e['setSelection'](_0x3fe5bb),_0x441e77['commands']['get'](_0x28c14f)['refresh'](),_0x1d4889['push']({'forceDefaultExecution':!0x0}),_0x441e77['execute'](_0x28c14f,..._0x1d4889);const _0x3a41ff=_0x587a1c['filter'](_0x1c664d=>'$graveyard'!=_0x1c664d['root']['rootName']);_0x3a41ff['length']>0x0&&_0xa41a3e['setSelection'](_0x3a41ff);for(const _0x5af802 of _0x587a1c)_0x5af802['detach']();});};}['_getCoordsForCells'](_0x5d69ab){const _0x2b13b3=this['editor']['plugins']['get']('TableUtils');let _0x13b5ae=Number['MAX_SAFE_INTEGER'],_0x456b5d=Number['MIN_SAFE_INTEGER'],_0x285455=Number['MAX_SAFE_INTEGER'],_0x3b3e4f=Number['MIN_SAFE_INTEGER'];for(const _0x448b of _0x5d69ab){if('$graveyard'==_0x448b['root']['rootName'])continue;const {row:_0x42da30,column:_0x16d621}=_0x2b13b3['getCellLocation'](_0x448b),_0x337856=_0x448b['hasAttribute']('rowspan')?_0x448b['getAttribute']('rowspan')-0x1:0x0,_0x39daab=_0x448b['hasAttribute']('colspan')?_0x448b['getAttribute']('colspan')-0x1:0x0;_0x13b5ae=_0x42da30<_0x13b5ae?_0x42da30:_0x13b5ae,_0x456b5d=_0x42da30+_0x337856>_0x456b5d?_0x42da30+_0x337856:_0x456b5d,_0x285455=_0x16d621<_0x285455?_0x16d621:_0x285455,_0x3b3e4f=_0x16d621+_0x39daab>_0x3b3e4f?_0x16d621+_0x39daab:_0x3b3e4f;}return{'minRow':_0x13b5ae,'maxRow':_0x456b5d,'minColumn':_0x285455,'maxColumn':_0x3b3e4f};}['_setupColumnsRowsFixing'](){const _0x5cfdf3=this['editor'],_0x5d1685=_0x5cfdf3['plugins']['get']('TrackChangesEditing'),_0x496c81=_0x5cfdf3['plugins']['get']('TableUtils');_0x5cfdf3['model']['document']['on']('change:data',()=>{const _0x15f1f3=Array['from'](_0x5cfdf3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x489684,data:_0x24556d}of _0x15f1f3){const {group:_0x1f13f1,id:_0x5ee97c,subType:_0x2f2af2}=_0x5d1685['_splitMarkerName'](_0x489684);if('suggestion'!=_0x1f13f1)continue;if(null!=_0x24556d['oldRange'])continue;const _0x5d268f=_0x5d1685['getSuggestion'](_0x5ee97c);this['_tablePostFixingSubtypes']['includes'](_0x2f2af2)&&this['_tableSuggestions']['add'](_0x5d268f);}},{'priority':'low'});const _0x4f1865=(_0x424c89,_0x272789)=>{let _0x43faa2=!0x1;const _0x48eedc=_0x272789['createRangeOn'](_0x424c89),_0x40039b=_0x424c89['findAncestor']('table'),_0x45ea69=_0x496c81['getCellLocation'](_0x424c89);for(const _0x3af502 of this['_tableSuggestions']){const _0x1432ca=_0x3af502['subType'],_0x1e70f5=_0x1432ca['startsWith']('tablePaste'),_0x163699=_0x1432ca['substr'](_0x1e70f5?0xa:0x5),_0x4b57a5=_0x163699['toLowerCase'](),_0x28c0c2=_0x4b57a5['substr'](0x0,0x3)+'span',_0x4325bb='min'+_0x163699,_0x581210='max'+_0x163699;if(!_0x3af502['isInContent'])continue;if(_0x40039b!=_0x3af502['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3af502['isIntersectingWithRange'](_0x48eedc))continue;const _0x1b0369=_0x424c89['hasAttribute'](_0x28c0c2)?_0x424c89['getAttribute'](_0x28c0c2)-0x1:0x0,_0x25e3f6=this['_getSuggestionCoords'](_0x3af502),_0x59ac34=_0x25e3f6[_0x4325bb],_0x675f1f=_0x25e3f6[_0x581210];_0x59ac34<=_0x45ea69[_0x4b57a5]&&_0x45ea69[_0x4b57a5]+_0x1b0369<=_0x675f1f&&(_0x3af502['addRange'](_0x48eedc),_0x43faa2=!0x0);}return _0x43faa2;};_0x5cfdf3['model']['document']['registerPostFixer'](_0x19841e=>{let _0x528760=!0x1;for(const _0x3688c4 of _0x5cfdf3['model']['document']['differ']['getChanges']())if('insert'==_0x3688c4['type']){if('tableRow'==_0x3688c4['name']){for(const _0x333c94 of _0x3688c4['position']['nodeAfter']['getChildren']())_0x528760=_0x528760||_0x4f1865(_0x333c94,_0x19841e);}else'tableCell'==_0x3688c4['name']&&(_0x528760=_0x528760||_0x4f1865(_0x3688c4['position']['nodeAfter'],_0x19841e));}return _0x528760;});}['_getSuggestionCoords'](_0x1db8b9){return this['_getCoordsForCells'](_0x1db8b9['getRanges']()['map'](_0x51b437=>_0x51b437['start']['nodeAfter']));}}function be(_0x5d0ccb){return Array['from'](new Set(_0x5d0ccb)['values']());}class vt extends _0x2786a9{static get['requires'](){return[It];}['afterInit'](){const _0x3306ff=this['editor'],_0x2362fd=_0x3306ff['model']['document']['selection'],_0xde9a50=_0x3306ff['locale'];if(!_0x3306ff['plugins']['has']('TableEditing'))return;const _0x1b3c16=_0x3306ff['plugins']['get']('TrackChangesEditing'),_0x2de646=_0x3306ff['plugins']['get']('TableUtils'),_0x5f4ad0=_0x3306ff['plugins']['get'](It);_0x5f4ad0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b3c16['enableCommand']('mergeTableCells',()=>{const _0x40ad2d=_0x2de646['getSelectionAffectedTableCells'](_0x3306ff['model']['document']['selection']);_0x3306ff['model']['change'](()=>{_0x1b3c16['markMultiRangeBlockFormat'](_0x40ad2d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3306ff['commands']['get']('mergeTableCells')['on']('execute',(_0xbf8785,_0x2ba299)=>{_0x3306ff['commands']['get']('trackChanges')['value']&&(_0x2ba299['length']>0x0&&_0x2ba299[_0x2ba299['length']-0x1]&&_0x2ba299[_0x2ba299['length']-0x1]['forceDefaultExecution']||_0x1b3c16['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbf8785['stop']());},{'priority':'highest'});for(const _0x3ec27e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x245a83=_0x3306ff['commands']['get'](_0x3ec27e);_0x1b3c16['enableCommand'](_0x3ec27e,()=>{const _0x4b8196=_0x3306ff['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e44dd=>_0x2e44dd['is']('element','tableCell')),_0x185c31=_0x245a83['value'];_0x3306ff['model']['change'](()=>{_0x1b3c16['markMultiRangeBlockFormat']([_0x4b8196,_0x185c31],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x399c78 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x288379=_0x3306ff['commands']['get'](_0x399c78);_0x1b3c16['enableCommand'](_0x399c78,()=>{const _0x48d60b=_0x2de646['getSelectionAffectedTableCells'](_0x3306ff['model']['document']['selection'])[0x0],_0x1d58af=_0x48d60b['findAncestor']('table'),{column:_0xcf00f6,row:_0x5cd516}=_0x2de646['getCellLocation'](_0x48d60b);let _0x5b9318=[];if('horizontally'==_0x288379['direction']){const _0x339f17=_0x2de646['createTableWalker'](_0x1d58af,{'startRow':_0x5cd516,'endRow':_0x5cd516,'includeAllSlots':!0x0});_0x5b9318=Array['from'](_0x339f17)['map'](_0x3e5937=>_0x3e5937['cell']);}else{const _0x8e7962=_0x2de646['createTableWalker'](_0x1d58af,{'column':_0xcf00f6,'includeAllSlots':!0x0});_0x5b9318=Array['from'](_0x8e7962)['map'](_0xed795e=>_0xed795e['cell']);}_0x3306ff['model']['change'](_0x1d16de=>{_0x1b3c16['markBlockFormat'](_0x1d16de['createRangeOn'](_0x48d60b),{'commandName':_0x399c78,'commandParams':[]},_0x5b9318,_0x399c78);});});}_0x1b3c16['descriptionFactory']['registerDescriptionCallback'](_0x526bee=>{if('formatBlock'!=_0x526bee['type']&&'formatInline'!=_0x526bee['type'])return;const {data:_0x5d55a4}=_0x526bee;return _0x5d55a4&&'mergeTableCells'==_0x5d55a4['commandName']?{'type':'format','content':o(_0xde9a50,'*Merge\x20cells*')}:void 0x0;}),_0x1b3c16['descriptionFactory']['registerDescriptionCallback'](_0xb762c5=>{if('formatBlock'!=_0xb762c5['type']&&'formatInline'!=_0xb762c5['type'])return;const {data:_0x1e906a}=_0xb762c5;return _0x1e906a?'splitTableCellVertically'==_0x1e906a['commandName']?{'type':'format','content':o(_0xde9a50,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1e906a['commandName']?{'type':'format','content':o(_0xde9a50,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e0241=_0x5f4ad0['_acceptFormatSuggestionCallbackFactory']();for(const _0x11abf2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b3c16['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11abf2,'accept',_0x2e0241);for(const _0xc45541 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b3c16['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc45541,'accept',_0x2e0241);_0x1b3c16['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d52f8=>{_0x3306ff['model']['change'](_0x2de2f2=>{const _0x22b17e=Array['from'](_0x2362fd['getRanges']())['map'](_0x2c03a0=>_0x1b4d08['fromRange'](_0x2c03a0));_0x2de2f2['setSelection'](_0x3d52f8),_0x3306ff['commands']['get']('mergeTableCells')['refresh'](),_0x3306ff['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x354f47=_0x22b17e['filter'](_0x2d7141=>'$graveyard'!=_0x2d7141['root']['rootName']);_0x354f47['length']>0x0&&_0x2de2f2['setSelection'](_0x354f47);for(const _0x2592e3 of _0x22b17e)_0x2592e3['detach']();});});for(const _0x392673 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5345c7=_0x3306ff['commands']['get'](_0x392673);_0x5345c7['on']('set:isEnabled',(_0x1cb503,_0x284c4f,_0x3c272b)=>{if(_0x3c272b){const _0x38598f=_0x3306ff['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b59bd=>_0x4b59bd['is']('element','tableCell'));this['_areMergableCells'](_0x5345c7['value'],_0x38598f)||(_0x1cb503['return']=!0x1,_0x1cb503['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x45a30e=this['editor']['commands']['get']('mergeTableCells'),_0xe47b44=this['editor']['plugins']['get']('TableUtils');if(!_0x45a30e['isEnabled'])return!0x1;const _0x2eb85e=_0xe47b44['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33efff of _0x2eb85e)for(const _0x4623f2 of _0x2eb85e)if(_0x33efff!=_0x4623f2&&!this['_areMergableCells'](_0x33efff,_0x4623f2))return!0x1;return!0x0;}['_areMergableCells'](_0x219eac,_0x9df868){const _0x1dafa1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x637153=this['editor']['model']['createRangeOn'](_0x219eac),_0x595720=this['editor']['model']['createRangeOn'](_0x9df868),_0x334e83=new Set(),_0x5aa6dd=new Set();for(const _0x3e3f42 of _0x1dafa1['getSuggestions']())if(('insertion'==_0x3e3f42['type']||'deletion'==_0x3e3f42['type']||'mergeTableCells'==_0x3e3f42['subType'])&&_0x3e3f42['isInContent']){for(const _0x15ebd4 of _0x3e3f42['getRanges']())_0x15ebd4['containsRange'](_0x637153,!0x0)&&_0x334e83['add'](_0x3e3f42['type']+':'+_0x3e3f42['author']['id']),_0x15ebd4['containsRange'](_0x595720,!0x0)&&_0x5aa6dd['add'](_0x3e3f42['type']+':'+_0x3e3f42['author']['id']);}if(_0x334e83['size']!=_0x5aa6dd['size'])return!0x1;for(const _0x1c6ec1 of _0x334e83)if(!_0x5aa6dd['has'](_0x1c6ec1))return!0x1;return!0x0;}}class Ct extends _0x2786a9{static get['requires'](){return[It];}['afterInit'](){const _0x8497bc=this['editor'];if(!_0x8497bc['plugins']['has']('TableEditing'))return;const _0x1f8338=_0x8497bc['locale'],_0x5861ef=_0x8497bc['plugins']['get']('TrackChangesEditing');_0x5861ef['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5861ef['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5861ef['registerBlockAttribute']('headingRows'),_0x5861ef['registerBlockAttribute']('headingColumns'),_0x5861ef['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1f8338,'FORMAT_HEADER_ROW')),_0x5861ef['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1f8338,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a5fa5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1afcb1=this['editor']['plugins']['get']('TableUtils'),_0x3bade2=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x36837f({showActiveMarker:_0x5583f5=!0x0,setDataAttribute:_0x4057ed=!0x0}={}){return(_0x5ccf60,_0x533095,_0x8577d5)=>{const {type:_0x4c7dea,id:_0x518446}=_0x1a5fa5['_splitMarkerName'](_0x533095['markerName']),_0x93bdd8=_0x1a5fa5['getSuggestion'](_0x518446),_0xdfb78c=_0x93bdd8['data'];if('formatBlock'!=_0x93bdd8['type']||!_0xdfb78c||'setTableColumnHeader'!=_0xdfb78c['commandName'])return;if(_0x533095['item'])return void _0x5ccf60['stop']();if(!_0x8577d5['consumable']['consume'](_0x533095['markerRange'],_0x5ccf60['name']))return;const _0x1359a9=_0x533095['markerRange']['start']['nodeAfter'],_0x253db1=_0x533095['markerRange']['end']['nodeBefore'],_0x3273db=_0x1359a9['parent']['parent'],{column:_0x17f284}=_0x1afcb1['getCellLocation'](_0x1359a9),{column:_0x5cd06e}=_0x1afcb1['getCellLocation'](_0x253db1);for(let _0x58c5cd=_0x17f284;_0x58c5cd<=_0x5cd06e;_0x58c5cd++){const _0x177ffc=_0x1afcb1['createTableWalker'](_0x3273db,{'column':_0x58c5cd,'includeAllSlots':!0x1});for(const _0x52c237 of _0x177ffc){const _0x3f5719=_0x52c237['cell'],_0x19b086=_0x8577d5['mapper']['toViewElement'](_0x3f5719);_0x8577d5['writer']['addClass']('ck-suggestion-marker-'+_0x4c7dea,_0x19b086),_0x4057ed&&_0x8577d5['writer']['setAttribute']('data-suggestion',_0x518446,_0x19b086),_0x8577d5['mapper']['bindElementToMarker'](_0x19b086,_0x533095['markerName']),_0x5583f5&&(_0x1a5fa5['activeMarkers']['includes'](_0x533095['markerName'])?_0x8577d5['writer']['addClass']('ck-suggestion-marker--active',_0x19b086):_0x8577d5['writer']['removeClass']('ck-suggestion-marker--active',_0x19b086));}}};}_0x1a5fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3bade2),_0x1a5fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3bade2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x36837f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3575de,_0x1b749e,_0x319df3)=>{_0x319df3['options']['showSuggestionHighlights']&&_0x36837f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3575de,_0x1b749e,_0x319df3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x104072,_0x3ab988,_0x572d8f)=>{const {type:_0x50f07e,id:_0x57de60}=_0x1a5fa5['_splitMarkerName'](_0x3ab988['markerName']),_0x59327e=_0x1a5fa5['getSuggestion'](_0x57de60),_0x575962=_0x59327e['data'];if('formatBlock'!=_0x59327e['type']||!_0x575962||'setTableColumnHeader'!=_0x575962['commandName'])return;const _0x2df3fb=_0x572d8f['mapper']['markerNameToElements'](_0x3ab988['markerName']);if(_0x2df3fb){for(const _0x3b95d0 of _0x2df3fb)_0x572d8f['writer']['removeClass']('ck-suggestion-marker-'+_0x50f07e,_0x3b95d0),_0x572d8f['writer']['removeClass']('ck-suggestion-marker--active',_0x3b95d0),_0x572d8f['writer']['removeAttribute']('data-suggestion',_0x3b95d0),_0x572d8f['mapper']['unbindElementFromMarkerName'](_0x3b95d0,_0x3ab988['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28127a=this['editor'],_0x48fa47=_0x28127a['locale'];function _0x1fe232(_0x167845){return{'type':'format','content':o(_0x48fa47,'*Format:*\x20%0',_0x167845)};}_0x28127a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aed85=>{if('formatBlock'!=_0x1aed85['type'])return;const {data:_0x4cb935}=_0x1aed85;if(_0x4cb935){if('setTableRowHeader'==_0x4cb935['commandName']){const _0x5aa38f=_0x4cb935['commandParams'][0x0]['forceValue'];return _0x1fe232(o(_0x48fa47,_0x5aa38f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4cb935['commandName']){const _0x349501=_0x4cb935['commandParams'][0x0]['forceValue'];return _0x1fe232(o(_0x48fa47,_0x349501?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xb1ca0e=>[_0xb1ca0e,null]));class _t extends _0x2786a9{static get['requires'](){return[It];}['afterInit'](){const _0x53a814=this['editor'];if(!_0x53a814['plugins']['has']('TableClipboard'))return;const _0x32a6a9=_0x53a814['plugins']['get']('TrackChangesEditing'),_0x211639=_0x53a814['plugins']['get']('TableUtils'),_0x167932=_0x53a814['plugins']['get'](It),_0x4e35ec=_0x53a814['plugins']['get']('TableClipboard');_0x167932['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53a814['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53a814['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x318076=null;_0x53a814['model']['on']('insertContent',(_0x381e1e,_0x461e15)=>{const [_0x5ef2b0,_0x4e1c1a]=_0x461e15,_0x1fc608=_0x461e15[_0x461e15['length']-0x1];_0x1fc608&&_0x1fc608['forceDefaultExecution']||_0x32a6a9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3f81de,_0x4f7bb5,_0x3987f0,_0x711f58,_0x50ad9c){if(_0x4f7bb5&&!_0x4f7bb5['is']('documentSelection'))return!0x1;const _0x262c46=_0x50ad9c['getTableIfOnlyTableInContent'](_0x3f81de,_0x3987f0);if(!_0x262c46||!Re(_0x262c46,void 0x0,_0x711f58))return!0x1;const _0x5f4847=_0x711f58['getSelectionAffectedTableCells'](_0x3987f0['document']['selection']);if(!_0x5f4847['length'])return!0x1;const _0x12ed51=_0x5f4847[0x0]['findAncestor']('table'),_0x4ff0e4=_0x711f58['getRowIndexes'](_0x5f4847),_0x1266f3=_0x711f58['getColumnIndexes'](_0x5f4847),_0x975d4={'startRow':_0x4ff0e4['first'],'endRow':_0x4ff0e4['last'],'startColumn':_0x1266f3['first'],'endColumn':_0x1266f3['last']};return 0x1==_0x5f4847['length']&&(_0x975d4['endRow']+=_0x711f58['getRows'](_0x262c46)-0x1,_0x975d4['endColumn']+=_0x711f58['getColumns'](_0x262c46)-0x1),Re(_0x12ed51,_0x975d4,_0x711f58);}(_0x5ef2b0,_0x4e1c1a,_0x53a814['model'],_0x211639,_0x4e35ec)&&(_0x381e1e['stop'](),_0x318076={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53a814['model']['change'](()=>{_0x53a814['model']['insertContent'](_0x461e15[0x0],_0x461e15[0x1],_0x461e15[0x2],{'forceDefaultExecution':!0x0});const _0x14ce72=_0x4a9fdc(),{rowInsertionRanges:_0xb53f70,columnInsertionRanges:_0x37dc2f,insertionRanges:_0x551818,deletionRanges:_0x166c1f,cells:_0x448995}=_0x318076;_0xb53f70['length']&&_0x32a6a9['markMultiRangeInsertion'](_0xb53f70,'tablePasteRow',{'tablePasteChainId':_0x14ce72}),_0x37dc2f['length']&&_0x32a6a9['markMultiRangeInsertion'](_0x37dc2f,'tablePasteColumn',{'tablePasteChainId':_0x14ce72}),_0x551818['length']&&(_0x32a6a9['markMultiRangeInsertion'](_0x551818,'tablePaste',{'tablePasteChainId':_0x14ce72,'skipNestingCheck':!0x0}),_0x551818['forEach'](_0x2e9df6=>_0x2e9df6['detach']?.())),_0x166c1f['length']&&(_0x32a6a9['markMultiRangeDeletion'](_0x166c1f,'tablePaste',{'tablePasteChainId':_0x14ce72,'skipNestingCheck':!0x0}),_0x166c1f['forEach'](_0x9cf69=>_0x9cf69['detach']?.()));const _0x222bc7=_0x32a6a9['markMultiRangeBlockFormat'](_0x448995['map'](({element:_0x13d098})=>_0x13d098),{'formatGroupId':_0x4a9fdc()},[],'tablePasteCell',{'tablePasteChainId':_0x14ce72});if(_0x222bc7){const _0x2516ab=_0x222bc7['getMarkers'](),_0x4ba575=[];for(const {element:_0x30763c,attributes:_0x5d4d2a}of _0x448995){if(!_0x5d4d2a)continue;const _0x2e773a=_0x53a814['model']['createRangeOn'](_0x30763c),_0x132ec1=_0x2516ab['find'](_0x45d2d8=>_0x45d2d8['getRange']()['isEqual'](_0x2e773a));_0x132ec1&&_0x4ba575['push']([_0x132ec1['name'],_0x5d4d2a]);}_0x4ba575['length']&&_0x222bc7['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ba575));}_0x318076=null;}));},{'priority':_0x22d863['high']+0xa}),_0x53a814['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x380cc3,_0x678c6f)=>{const [_0x6db772,_0x385b6c,,_0x62f867]=_0x678c6f;if(!_0x318076)return;_0x380cc3['stop']();const _0x79cb25=_0x6db772['cell'],_0x3260e8=_0x385b6c,_0x5204ce=ke(_0x79cb25),_0xc46801=ke(_0x3260e8);_0x380cc3['return']=_0x79cb25;let _0x41650c=null,_0x187e0f=null;if(_0xc46801||_0x5204ce){if(_0x5204ce&&!_0xc46801){_0x62f867['remove'](_0x79cb25['getChild'](0x0));for(const _0xa3763a of Array['from'](_0x3260e8['getChildren']()))_0x62f867['insert'](_0xa3763a,_0x79cb25,'end');const _0x35b83c=_0x318076['rowInsertionIndexes']['includes'](_0x6db772['row']),_0x269c38=_0x318076['columnInsertionIndexes']['includes'](_0x6db772['column']);_0x35b83c||_0x269c38||(_0x41650c=_0x1b4d08['fromRange'](_0x62f867['createRangeIn'](_0x79cb25)));}else _0xc46801&&!_0x5204ce&&(_0x187e0f=_0x62f867['createRangeIn'](_0x79cb25));}else{const _0x35997d=_0x62f867['createElement']('tableCellSuggestion'),_0x53fd6c=_0x62f867['createElement']('tableCellSuggestion');_0x62f867['wrap'](_0x62f867['createRangeIn'](_0x79cb25),_0x53fd6c),_0x62f867['insert'](_0x35997d,_0x79cb25,0x0);for(const _0x1fd1b1 of Array['from'](_0x3260e8['getChildren']()))_0x62f867['insert'](_0x1fd1b1,_0x35997d,'end');_0x41650c=_0x1b4d08['fromRange'](_0x62f867['createRangeOn'](_0x35997d)),_0x187e0f=_0x1b4d08['fromRange'](_0x62f867['createRangeOn'](_0x53fd6c));}const _0x156127=Array['from'](_0x3260e8['getAttributes']())['filter'](([_0x3d7c65])=>Pe['includes'](_0x3d7c65));_0x318076['cells']['push']({'element':_0x79cb25,'attributes':_0x156127['length']?Object['fromEntries'](_0x156127):null}),_0x41650c&&_0x318076['insertionRanges']['push'](_0x41650c),_0x187e0f&&_0x318076['deletionRanges']['push'](_0x187e0f);},{'priority':'high'}),_0x211639['on']('insertColumns',(_0x3e59e5,_0xb2fe46)=>{const [_0x5923cd,_0x51a554={}]=_0xb2fe46;if(!_0x318076)return;const _0x35132a=_0x51a554['at']||0x0,_0x5c9462=_0x51a554['columns']||0x1;_0x318076['columnInsertionIndexes']=new Array(_0x5c9462)['fill'](_0x35132a)['map']((_0xa794a6,_0x4fe815)=>_0xa794a6+_0x4fe815);for(const {cell:_0x392d61}of _0x211639['createTableWalker'](_0x5923cd,{'startColumn':_0x35132a,'endColumn':_0x35132a+_0x5c9462-0x1}))_0x318076['columnInsertionRanges']['push'](_0x53a814['model']['createRangeOn'](_0x392d61));},{'priority':'low'}),_0x211639['on']('insertRows',(_0x35b004,_0x39c060)=>{const [_0x4ebcb2,_0x174a83={}]=_0x39c060;if(!_0x318076)return;const _0x27612b=_0x174a83['at']||0x0,_0x4353ed=_0x174a83['rows']||0x1;_0x318076['rowInsertionIndexes']=new Array(_0x4353ed)['fill'](_0x27612b)['map']((_0x177661,_0x194122)=>_0x177661+_0x194122);for(const {cell:_0x2fba58}of _0x211639['createTableWalker'](_0x4ebcb2,{'startRow':_0x27612b,'endRow':_0x27612b+_0x4353ed-0x1}))_0x318076['rowInsertionRanges']['push'](_0x53a814['model']['createRangeOn'](_0x2fba58));},{'priority':'low'}),_0x32a6a9['descriptionFactory']['registerDescriptionCallback'](_0x51a85e=>{if(_0x51a85e['subType']&&_0x51a85e['subType']['startsWith']('tablePaste'))return _0x51a85e['previous']?{}:{'type':'insertion','content':o(_0x53a814['locale'],'*Replace\x20table\x20cells*')};});const _0x1b9a87=()=>!0x1;for(const _0x4aa1b7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32a6a9['_suggestionFactory']['registerCustomCallback']('insertion',_0x4aa1b7,'join',_0x1b9a87),_0x32a6a9['_suggestionFactory']['registerCustomCallback']('deletion',_0x4aa1b7,'join',_0x1b9a87),_0x32a6a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4aa1b7,'join',_0x1b9a87);_0x32a6a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1b9a87),_0x32a6a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3734c9,_0x3a179a,_0xa3447c)=>{const _0x411953=_0x3734c9['map'](_0x55ae7c=>_0x55ae7c['getContainedElement']())['filter'](_0x908e77=>_0x908e77),_0x325779=new Map(_0x411953['map'](_0x164bf5=>[_0x164bf5,null]));if(_0x318076){for(const {element:_0x345928,attributes:_0xda116b}of _0x318076['cells'])_0xda116b&&_0x325779['set'](_0x345928,_0xda116b);}else{if(_0xa3447c&&_0xa3447c['markerAttributes'])for(const [_0x274a6a,_0x4e59df]of Object['entries'](_0xa3447c['markerAttributes'])){const _0xbb6cad=_0x53a814['model']['markers']['get'](_0x274a6a),_0x4da180=_0xbb6cad?_0xbb6cad['getRange']()['getContainedElement']():null;_0x4da180&&_0x325779['set'](_0x4da180,_0x4e59df);}}_0x53a814['model']['change'](_0x33200d=>{for(const [_0x348b8a,_0x24dfc9]of _0x325779)_0x33200d['setAttributes']({...we,..._0x24dfc9},_0x348b8a);});});const _0x5071b1=(_0x444fcf,_0x1d7317)=>{_0x32a6a9['_suggestionFactory']['registerCustomCallback'](_0x444fcf,'tablePaste',_0x1d7317,(_0x5d86a6,_0x54f92d,_0x51250e)=>{_0x53a814['model']['change'](_0x4a7c7f=>{const _0x5e3b4d=[];for(const _0x2c8650 of _0x5d86a6){const _0x4d2ea1=_0x2c8650['start']['nodeAfter'];_0x4d2ea1['is']('element','tableCellSuggestion')&&_0x5e3b4d['push'](_0x4d2ea1);}_0x32a6a9['_suggestionFactory']['getSuggestionCallback'](_0x444fcf,null,_0x1d7317)(_0x5d86a6,_0x54f92d,_0x51250e);for(const _0xe89617 of _0x5e3b4d)'$graveyard'!=_0xe89617['root']['rootName']&&_0x4a7c7f['unwrap'](_0xe89617);});});};_0x5071b1('insertion','accept'),_0x5071b1('insertion','discard'),_0x5071b1('deletion','accept'),_0x5071b1('deletion','discard'),_0x32a6a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x524fc6=>{const _0x101d5a=_0x524fc6['map'](_0x55c415=>_0x55c415['getContainedElement']()),_0x42e8a9=_0x101d5a[0x0]['findAncestor']('table'),{minRow:_0x404097,maxRow:_0xd0994}=_0x167932['_getCoordsForCells'](_0x101d5a);_0x211639['removeRows'](_0x42e8a9,{'at':_0x404097,'rows':_0xd0994-_0x404097+0x1});}),_0x32a6a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2dfd6f=>{const _0x5a8a9c=_0x2dfd6f['map'](_0x3937d6=>_0x3937d6['getContainedElement']()),_0x569ecc=_0x5a8a9c[0x0]['findAncestor']('table'),{minColumn:_0x162e77,maxColumn:_0x56d0c4}=_0x167932['_getCoordsForCells'](_0x5a8a9c);_0x211639['removeColumns'](_0x569ecc,{'at':_0x162e77,'columns':_0x56d0c4-_0x162e77+0x1});});const _0x216ed5=(_0x469afe,_0x21a769)=>{if(!_0x21a769['subType']||!_0x21a769['subType']['startsWith']('tablePaste'))return;const _0x23ae88=_0x21a769['attributes']['tablePasteChainId'],_0x3fedfd=_0x32a6a9['getSuggestions']()['filter'](_0x4d4205=>_0x4d4205['isInContent']&&_0x4d4205['attributes']&&_0x4d4205['attributes']['tablePasteChainId']==_0x23ae88);_0x3fedfd['length']&&_0x21a769['getAllAdjacentSuggestions']()['length']!=_0x3fedfd['length']&&_0x3fedfd['reduce']((_0x4221a2,_0x1b7b19)=>(_0x4221a2['next']=_0x1b7b19,_0x1b7b19['previous']=_0x4221a2,_0x1b7b19));};function _0x4bdf28(_0x3b6904,_0x5d96fa=!0x0){const {id:_0x142965,authorId:_0x5aefbe}=_0x32a6a9['_splitMarkerName'](_0x3b6904['markerName']),_0x451c1a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c0fa9=_0x32a6a9['activeMarkers']['includes'](_0x3b6904['markerName']);return _0x5c0fa9&&_0x451c1a['push']('ck-suggestion-marker--active'),{'classes':_0x451c1a,'attributes':{'data-suggestion':_0x142965,'data-author-id':_0x5aefbe},'priority':_0x5c0fa9&&_0x5d96fa?0xbc2:0xbb8};}_0x32a6a9['on']('suggestionLoaded',_0x216ed5,{'priority':'high'}),_0x32a6a9['on']('suggestionUnloaded',_0x216ed5,{'priority':'high'}),_0x53a814['model']['document']['registerPostFixer'](()=>{let _0x5d01e5=!0x1;const _0x207f8e=Array['from'](_0x53a814['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10eb1c,data:_0x496f68}of _0x207f8e){const {group:_0x21ae7f,type:_0xf24627,id:_0x4b4eb7}=_0x32a6a9['_splitMarkerName'](_0x10eb1c);if('suggestion'!=_0x21ae7f||'deletion'!=_0xf24627||_0x496f68['oldRange'])continue;if(!_0x32a6a9['hasSuggestion'](_0x4b4eb7))continue;const _0x494220=_0x32a6a9['getSuggestion'](_0x4b4eb7)['getRanges'](),_0x552aef=_0x53a814['plugins']['get']('Users')['me'];for(const _0x4472e5 of _0x32a6a9['getSuggestions']()){if(!_0x4472e5['isInContent']||_0x4472e5['author']!=_0x552aef)continue;if('formatBlock'!=_0x4472e5['type']||'tablePasteCell'!=_0x4472e5['subType'])continue;if(_0x4472e5['getRanges']()['every'](_0x312f56=>_0x494220['some'](_0x1b466e=>_0x1b466e['containsRange'](_0x312f56,!0x0)))){for(const _0x305310 of _0x4472e5['getAllAdjacentSuggestions']())_0x305310['isInContent']&&(_0x305310['discard'](),_0x5d01e5=!0x0);}}}return _0x5d01e5;}),_0x53a814['model']['document']['registerPostFixer'](_0x4b48d4=>{const _0x67f877=_0x53a814['commands']['get']('redo');if(!_0x67f877||!_0x67f877['_createdBatches']['has'](_0x4b48d4['batch']))return!0x1;let _0x57bd79=!0x1;const _0x48a2d0=_0x53a814['plugins']['get']('Users')['me'],_0x3bf400=_0x53a814['model']['document']['differ']['getChanges'](),_0x2fc654=Array['from'](_0x53a814['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4e999b,data:_0x5ee8ff})=>{const {group:_0x25c6d3,subType:_0x451a59,authorId:_0x5c462b}=_0x32a6a9['_splitMarkerName'](_0x4e999b);return'suggestion'==_0x25c6d3&&'tablePaste'==_0x451a59&&_0x5c462b==_0x48a2d0['id']&&!_0x5ee8ff['oldRange'];});for(const _0x166f3e of _0x3bf400){if('insert'!=_0x166f3e['type']||'tableCellSuggestion'!=_0x166f3e['name']||0x1!=_0x166f3e['length'])continue;const _0x1ccd76=_0x4b48d4['createRange'](_0x166f3e['position'],_0x166f3e['position']['getShiftedBy'](0x1));if(!_0x2fc654['find'](({data:_0x3008ab})=>_0x3008ab['newRange']['isEqual'](_0x1ccd76))){for(const {name:_0x163c25,data:_0x40a8a7}of _0x2fc654)if(_0x1ccd76['containsRange'](_0x40a8a7['newRange'])){_0x4b48d4['updateMarker'](_0x163c25,{'range':_0x1ccd76}),_0x57bd79=!0x0;break;}}}return _0x57bd79;}),_0x53a814['model']['document']['registerPostFixer'](_0x269b6f=>{let _0x2bfa8d=!0x1;const _0x305709=_0x53a814['plugins']['get']('Users')['me'],_0x4de7e4=_0x32a6a9['getSuggestions']()['filter'](_0x388b8e=>_0x388b8e['isInContent']&&_0x388b8e['author']==_0x305709),_0x73b5b7=new Set(),_0x469a65=new Set();for(const _0x5561fa of _0x4de7e4)if('tablePaste'==_0x5561fa['subType'])for(const _0x4b2b95 of _0x5561fa['getMarkers']()){const _0x3d9475=_0x4b2b95['getRange']()['getContainedElement']();if(_0x3d9475){if(_0x3d9475['is']('element','tableCellSuggestion')&&ke(_0x3d9475)){_0x5561fa['removeMarker'](_0x4b2b95['name']),_0x73b5b7['add'](_0x3d9475),_0x2bfa8d=!0x0;const _0x419224=_0x3d9475['nextSibling'],_0x1426c8=_0x3d9475['previousSibling'],_0x50db59=_0x419224&&_0x419224['is']('element','tableCellSuggestion'),_0x132461=_0x1426c8&&_0x1426c8['is']('element','tableCellSuggestion');_0x50db59&&!_0x73b5b7['has'](_0x419224)&&_0x469a65['add'](_0x419224),_0x132461&&!_0x73b5b7['has'](_0x1426c8)&&_0x469a65['add'](_0x1426c8);}else _0x3d9475['is']('element','paragraph')&&_0x3d9475['isEmpty']&&(_0x5561fa['removeMarker'](_0x4b2b95['name']),_0x2bfa8d=!0x0);}}else{if('tablePasteCell'==_0x5561fa['subType']){if(!_0x5561fa['attributes']||!_0x5561fa['attributes']['tablePasteChainId'])continue;const _0x212c36=_0x5561fa['attributes']['markerAttributes'];if(_0x212c36&&Object['keys'](_0x212c36)['length'])continue;const _0x58437d=_0x5561fa['attributes']['tablePasteChainId'];let _0x2ee502=!0x0,_0x3a978a=!0x0;for(const _0x2de415 of _0x4de7e4)if(_0x2de415['subType']&&_0x2de415['subType']['startsWith']('tablePaste')){if(!_0x2de415['attributes']['tablePasteChainId']){_0x3a978a=!0x1;break;}if(_0x2de415['id']!=_0x5561fa['id']&&_0x2de415['attributes']['tablePasteChainId']==_0x58437d){_0x2ee502=!0x1;break;}}_0x3a978a&&_0x2ee502&&(_0x5561fa['removeMarkers'](),_0x2bfa8d=!0x0);}}for(const _0xf54238 of _0x73b5b7)_0x269b6f['remove'](_0xf54238);for(const _0x19dc15 of _0x469a65)_0x269b6f['unwrap'](_0x19dc15);return _0x2bfa8d;}),_0x53a814['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x558905=>_0x4bdf28(_0x558905),'converterPriority':'high'}),_0x53a814['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39edaf,_0x2ea0b4)=>_0x2ea0b4['options']['showSuggestionHighlights']?_0x4bdf28(_0x39edaf,!0x1):null,'converterPriority':'high'});const _0x3e4860=_0x53a814['editing']['view'];this['listenTo'](_0x3e4860['document'],'clipboardOutput',(_0x4861d1,_0x34e5d2)=>{const _0x271acb=[];for(const _0x86a042 of _0x3e4860['createRangeIn'](_0x34e5d2['content'])['getItems']())_0x86a042['is']('element','suggestion-td')&&_0x271acb['push'](_0x86a042);_0x3e4860['change'](_0x2db0d6=>{for(const _0x27cdd8 of _0x271acb)_0x2db0d6['move'](_0x2db0d6['createRangeIn'](_0x27cdd8),_0x2db0d6['createPositionBefore'](_0x27cdd8)),_0x2db0d6['remove'](_0x27cdd8);});});}}function ke(_0x1cfa01){if(_0x1cfa01['isEmpty'])return!0x0;const _0x70a0cf=_0x1cfa01['getChild'](0x0);return _0x70a0cf['is']('element','paragraph')&&_0x70a0cf['isEmpty'];}function Re(_0x30beb2,_0x3aae0c={},_0x3a3cbe){for(const {isAnchor:_0x240fa5,cellHeight:_0x1a32d4,cellWidth:_0xa44c55}of _0x3a3cbe['createTableWalker'](_0x30beb2,{'includeAllSlots':!0x0,..._0x3aae0c}))if(!_0x240fa5||0x1!=_0x1a32d4||0x1!=_0xa44c55)return!0x1;return!0x0;}class Nt extends _0x2786a9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14d702=this['editor']['plugins']['get']('TrackChangesEditing');_0x14d702['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14d702['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14d702['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14d702['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14d702['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14d702['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57897a,_0x4648e6){const _0x184369=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54e3d9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7f4ea6=_0x4648e6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x370db8=_0x54e3d9['getColumnGroupElement'](_0x7f4ea6);let _0x4a7104=_0x370db8?_0x54e3d9['getTableColumnsWidths'](_0x370db8):null,_0x529e62=_0x7f4ea6['getAttribute']('tableWidth')||null;const _0x5e98fe=_0x4648e6['tableWidth']||_0x529e62,_0x4d4963=_0x4648e6['columnWidths']||_0x4a7104,_0x566eec=this['editor']['plugins']['get']('Users')['me'];for(const _0x596fb1 of _0x184369['getSuggestions']()){const _0x105ee6=_0x596fb1['getContainedElement']();if('resizeTable'===_0x596fb1['subType']&&_0x105ee6===_0x7f4ea6){_0x596fb1['author']!==_0x566eec&&_0x596fb1['discard']();const _0x4e6e28=_0x596fb1['data']['commandParams'];_0x529e62=_0x4e6e28[0x0]['tableWidth'],_0x4a7104=_0x4e6e28[0x0]['columnWidths'];break;}}_0x57897a({'table':_0x7f4ea6,'tableWidth':_0x5e98fe,'columnWidths':_0x4d4963}),_0x184369['markBlockFormat'](_0x7f4ea6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x529e62,'columnWidths':_0x4a7104}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5c81b4){if('formatBlock'!=_0x5c81b4['type']&&'formatInline'!=_0x5c81b4['type'])return;const {data:_0x1d5149}=_0x5c81b4;if(_0x1d5149&&'resizeTable'===_0x1d5149['formatGroupId']){const _0x185bf1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x185bf1)};}}}class Dt extends _0x2786a9{['afterInit'](){const _0x1a9d19=this['editor'];_0x1a9d19['plugins']['has']('Template')&&_0x1a9d19['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2786a9{['afterInit'](){const _0x55d1b5=this['editor'];if(!_0x55d1b5['commands']['get']('insertTableOfContents'))return;_0x55d1b5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x32cd5b=_0x55d1b5['plugins']['get']('TrackChangesEditing'),_0x3cd600=_0x55d1b5['locale'];_0x32cd5b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x183bf5=>o(_0x3cd600,'ELEMENT_TABLE_OF_CONTENTS',_0x183bf5));}}class $t extends _0x2786a9{['afterInit'](){const _0x22cc96=this['editor'];if(!_0x22cc96['plugins']['has']('Title'))return;const _0x5478dd=_0x22cc96['plugins']['get']('TrackChangesEditing');_0x5478dd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22cc96['locale'],'ELEMENT_TITLE')),_0x22cc96['model']['document']['registerPostFixer'](_0x1685f3=>{let _0x1569e7=!0x1;const _0xaaf97b=Array['from'](_0x22cc96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3709d6,data:_0x32ea02}of _0xaaf97b){const {group:_0x5b13ee}=_0x5478dd['_splitMarkerName'](_0x3709d6);if('suggestion'!==_0x5b13ee||!_0x32ea02['newRange'])continue;const _0x22ca06=_0x32ea02['newRange'],_0x4d4565=_0x22ca06['end']['nodeBefore'];if(!_0x4d4565||!_0x4d4565['is']('element','title-content'))continue;if(!_0x22ca06['start']['isTouching'](_0x22ca06['end']))continue;const _0x2f95d9=_0x22cc96['model']['schema']['getNearestSelectionRange'](_0x22ca06['end'],'forward');if(_0x2f95d9&&_0x2f95d9['isCollapsed']){const _0x2f7a0e=_0x1685f3['createRange'](_0x22ca06['start'],_0x2f95d9['start']);_0x2f7a0e['isEqual'](_0x22ca06)||(_0x1685f3['updateMarker'](_0x3709d6,{'range':_0x2f7a0e}),_0x1569e7=!0x0);}_0x1569e7||(_0x1685f3['removeMarker'](_0x3709d6),_0x1569e7=!0x0);}return _0x1569e7;});}}class Bt extends _0x2786a9{['afterInit'](){const _0x5580b0=this['editor'],_0x250747=_0x5580b0['plugins']['get']('TrackChangesEditing');_0x5580b0['plugins']['has']('UndoEditing')&&(_0x250747['enableCommand']('undo'),_0x250747['enableCommand']('redo'));}}class xt extends _0x2786a9{static get['requires'](){return[It];}['afterInit'](){const _0x2932cd=this['editor'];if(!_0x2932cd['plugins']['has']('TableCaptionEditing'))return;_0x2932cd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2786a9{['tableProperties'];['tableCellProperties'];constructor(_0x4ea812){super(_0x4ea812),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';}['afterInit'](){const _0x4ff71e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36cdf5 of this['tableProperties'])_0x4ff71e['enableCommand'](_0x36cdf5,(_0x3dcb04,_0x194f5e)=>{const _0x581116=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36cdf5,[_0x581116],this['tableProperties'],'tableProperties',_0x3dcb04,_0x194f5e);});_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ff71e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32102b,_0x5eed9d)=>this['handleDiscardAction'](this['tableProperties'],_0x32102b,_0x5eed9d)),_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xbc5f67 of this['tableCellProperties'])_0x4ff71e['enableCommand'](_0xbc5f67,(_0x10885e,_0x392a94)=>{const _0xa55b9d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xbc5f67,_0xa55b9d,this['tableCellProperties'],'tableCellProperties',_0x10885e,_0x392a94);});_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ff71e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x497587,_0x4905af)=>this['handleDiscardAction'](this['tableCellProperties'],_0x497587,_0x4905af)),_0x4ff71e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ff71e['descriptionFactory']['registerDescriptionCallback'](_0x4b4fa2=>this['handleSuggestionDescription'](_0x4b4fa2));}['_handlePropertyChange'](_0x4d5456,_0x55b357,_0x2de2b9,_0x1c1edf,_0x5cb560,_0x1d4a12){const _0x5e1afe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d4a12['batch'],()=>{for(const _0xaa1d88 of _0x55b357){if(this['_getSuggestion'](_0xaa1d88,_0x1c1edf))_0x5cb560(_0x1d4a12);else{const _0x3ea6cb={};for(const _0x5f335f of _0x2de2b9){const _0x3084e7=_0xaa1d88['getAttribute'](_0x5f335f);void 0x0!==_0x3084e7&&(_0x3ea6cb[_0x5f335f]=_0x3084e7);}_0x5cb560(_0x1d4a12),_0x5e1afe['markBlockFormat'](_0xaa1d88,{'commandParams':[_0x3ea6cb]},[],_0x1c1edf);}}});}['handleDiscardAction'](_0x3d6cfa,_0xc26a68,_0x43c77d){const _0x990273=_0xc26a68[0x0]['start']['nodeAfter'],_0x480c5e=_0x43c77d['commandParams'][0x0];this['editor']['model']['change'](_0x1c4df3=>{for(const _0x360c48 of _0x3d6cfa)void 0x0!==_0x480c5e[_0x360c48]?_0x1c4df3['setAttribute'](_0x360c48,_0x480c5e[_0x360c48],_0x990273):_0x1c4df3['removeAttribute'](_0x360c48,_0x990273);});}['handleSuggestionDescription'](_0x226bd4){if(_0x226bd4['data'])switch(_0x226bd4['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'](_0x25ffa3,_0x2ccfe6){const _0x4184cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ca5eb of _0x4184cb['getSuggestions']({'skipNotAttached':!0x0})){const _0x288b41=_0x3ca5eb['getContainedElement']();if(_0x3ca5eb['subType']===_0x2ccfe6&&_0x288b41===_0x25ffa3)return _0x3ca5eb;}return null;}}const m='$elementName';class p extends _0x2786a9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xcf1928,_0x4c77bb,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1b684c){function _0x3f52ae(_0x23b41d){return _0x23b41d['map'](_0x17b9ac=>String['fromCharCode'](_0x17b9ac))['join']('');}super(_0x1b684c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ce52a,_0x1a13b3,_0x5358a5,_0x349acf)=>{this['_model']['change'](()=>{for(const _0x222158 of[..._0x349acf,..._0x5358a5])this['_model']['markers']['has'](_0x222158)&&_0x1b684c['editing']['reconvertMarker'](_0x222158);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b684c['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(),_0x1b684c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b684c['config']['get']('trackChanges.trackFormatChanges'),_0x1b684c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b684c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1b684c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f52ae([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f52ae([0x34,0x30,0x34,0x38,0x32,0x30,0x31,0x34]);}['init'](){const _0x4a91db=this['editor'],_0xd37428=(_0x5e099d,_0x170319)=>{if('attribute'!=_0x5e099d)return'ck-suggestion-marker-'+_0x5e099d;const _0x53cf2e=_0x170319['split']('|')[0x0];return this['_isBlockAttribute'](_0x53cf2e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a91db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x470c64=>{const {id:_0x25b0d7,authorId:_0x3abc43,type:_0x421a75,subType:_0x4669c3}=this['_splitMarkerName'](_0x470c64['markerName']),_0x1d55d8=['ck-suggestion-marker',_0xd37428(_0x421a75,_0x4669c3)];let _0x2b7fcb=0xbb8;return this['activeMarkers']['includes'](_0x470c64['markerName'])&&(_0x1d55d8['push']('ck-suggestion-marker--active'),_0x2b7fcb=0xbc2),'deletion'==_0x421a75&&(_0x2b7fcb+=0x5),{'classes':_0x1d55d8,'attributes':{'data-suggestion':_0x25b0d7,'data-author-id':_0x3abc43},'priority':_0x2b7fcb};}}),_0x4a91db['conversion']['for']('dataDowncast')['add'](_0x51e125=>{_0x51e125['on']('addMarker:suggestion',(_0x5adac1,_0x4ec571,_0x4fece2)=>{if(!_0x4fece2['options']['showSuggestionHighlights'])return;const _0x26fa80=_0x4ec571['item'];if(!_0x26fa80)return;const _0x2bd087=_0x4fece2['mapper']['toViewElement'](_0x26fa80);_0x4a91db['model']['schema']['isObject'](_0x26fa80)&&_0x2bd087&&!_0x2bd087['getCustomProperty']('widget')&&_0x2bd087['is']('containerElement')&&_0x202ca3(_0x2bd087,_0x4fece2['writer']);},{'priority':'high'});}),_0x4a91db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1b1b7a,_0x1f53d1)=>{if(!_0x1f53d1['options']['showSuggestionHighlights'])return null;const {type:_0x1fc211,subType:_0x253656}=this['_splitMarkerName'](_0x1b1b7a['markerName']);return{'classes':['ck-suggestion-marker',_0xd37428(_0x1fc211,_0x253656)],'priority':0xbb8};}});const _0x30ad9d=({showActiveMarkers:_0x59bea2=!0x0,isAttributeSuggestion:_0x36b7fb=!0x1}={})=>(_0x16fd77,_0x34680b,_0x5f2b43)=>{if(!_0x34680b['item'])return;const {id:_0x581e60,authorId:_0x1374d5}=this['_splitMarkerName'](_0x34680b['markerName']);if(_0x36b7fb){const _0x4cf321=this['_suggestions']['get'](_0x581e60),_0x54d5d2=this['_getAttributeKey'](_0x4cf321);if(!this['_isBlockAttribute'](_0x54d5d2))return;}if(_0x34680b['item']['is']('selection'))return void _0x5f2b43['consumable']['consume'](_0x34680b['item'],_0x16fd77['name']);const _0x2f1725=_0x5f2b43['mapper']['toViewElement'](_0x34680b['item']);if(_0x34680b['item']['is']('element')&&_0x4a91db['model']['schema']['isBlock'](_0x34680b['item'])&&!_0x2f1725['getCustomProperty']('addHighlight')){_0x5f2b43['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2f1725),_0x5f2b43['writer']['setAttribute']('data-suggestion',_0x581e60,_0x2f1725),_0x5f2b43['writer']['setAttribute']('data-author-id',_0x1374d5,_0x2f1725),_0x5f2b43['mapper']['bindElementToMarker'](_0x2f1725,_0x34680b['markerName']),_0x59bea2&&(this['activeMarkers']['includes'](_0x34680b['markerName'])?_0x5f2b43['writer']['addClass']('ck-suggestion-marker--active',_0x2f1725):_0x5f2b43['writer']['removeClass']('ck-suggestion-marker--active',_0x2f1725));for(const _0x4655bc of _0x4a91db['model']['createRangeIn'](_0x34680b['item'])['getItems']())_0x5f2b43['consumable']['consume'](_0x4655bc,_0x16fd77['name']);_0x5f2b43['consumable']['consume'](_0x34680b['item'],_0x16fd77['name']);}};_0x4a91db['conversion']['for']('dataDowncast')['add'](_0x2d0641=>{_0x2d0641['on']('addMarker:suggestion:formatBlock',(_0x367101,_0x41cb5b,_0x2c1a34)=>{_0x2c1a34['options']['showSuggestionHighlights']&&_0x30ad9d({'showActiveMarkers':!0x1})(_0x367101,_0x41cb5b,_0x2c1a34);},{'priority':'highest'});}),_0x4a91db['conversion']['for']('dataDowncast')['add'](_0x5bc84e=>{_0x5bc84e['on']('addMarker:suggestion:attribute',(_0x4602e3,_0x324e8e,_0xc470e3)=>{_0xc470e3['options']['showSuggestionHighlights']&&_0x30ad9d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4602e3,_0x324e8e,_0xc470e3);},{'priority':'highest'});}),_0x4a91db['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b2c2c,_0x425d84)=>_0x425d84['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b2c2c['substr'](0xb)}}),_0x4a91db['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5950d1,{writer:_0x5c03e1})=>{let _0x3e5e89='suggestion:'+_0x5950d1['getAttribute']('suggestion-type')+':'+_0x5950d1['getAttribute']('id');return _0x5950d1['getAttribute']('marker-count')&&(_0x3e5e89+=':'+_0x5950d1['getAttribute']('marker-count')),_0x5c03e1['createElement']('$marker',{'data-name':_0x3e5e89});}}),_0x4a91db['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a91db['conversion']['for']('editingDowncast')['add'](_0x2a41c9=>{_0x2a41c9['on']('addMarker:suggestion:formatBlock',_0x30ad9d(),{'priority':'high'});}),_0x4a91db['conversion']['for']('editingDowncast')['add'](_0x371df1=>{_0x371df1['on']('addMarker:suggestion:attribute',_0x30ad9d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a91db['conversion']['for']('editingDowncast')['add'](_0x309fe2=>{_0x309fe2['on']('removeMarker:suggestion:formatBlock',(_0x4cba53,_0x1ca70a,_0x156cec)=>{const _0x54454b=_0x156cec['mapper']['markerNameToElements'](_0x1ca70a['markerName']);if(_0x54454b){for(const _0x365974 of _0x54454b)_0x365974['getCustomProperty']('addHighlight')||(_0x156cec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x365974),_0x156cec['writer']['removeAttribute']('data-suggestion',_0x365974),_0x156cec['writer']['removeAttribute']('data-author-id',_0x365974),_0x156cec['mapper']['unbindElementFromMarkerName'](_0x365974,_0x1ca70a['markerName']));}},{'priority':'high'});}),_0x4a91db['conversion']['for']('editingDowncast')['add'](_0x5e976a=>{_0x5e976a['on']('removeMarker:suggestion:attribute',(_0x54338b,_0x36ec68,_0x16252e)=>{const _0xc5f0=_0x16252e['mapper']['markerNameToElements'](_0x36ec68['markerName']);if(!_0xc5f0)return;const {id:_0x66b8db}=this['_splitMarkerName'](_0x36ec68['markerName']),_0x4a92fa=this['_suggestions']['get'](_0x66b8db),_0x57c713=this['_getAttributeKey'](_0x4a92fa);if(this['_isBlockAttribute'](_0x57c713)){for(const _0x39c4cd of _0xc5f0)_0x39c4cd['getCustomProperty']('addHighlight')||(_0x16252e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39c4cd),_0x16252e['writer']['removeAttribute']('data-suggestion',_0x39c4cd),_0x16252e['writer']['removeAttribute']('data-author-id',_0x39c4cd),_0x16252e['mapper']['unbindElementFromMarkerName'](_0x39c4cd,_0x36ec68['markerName']));}},{'priority':'high'});}),_0x4a91db['model']['document']['registerPostFixer'](_0x4f8451=>{let _0x436d29=!0x1;const _0x229999=Array['from'](_0x4a91db['model']['document']['differ']['getChangedMarkers']()),_0x599596=new Set();for(const {name:_0x2e6254,data:_0x29e014}of _0x229999){const {group:_0x15a946,type:_0x43f1a7,subType:_0x3d7db1,id:_0x1fbdad}=this['_splitMarkerName'](_0x2e6254);if('suggestion'!==_0x15a946)continue;const _0x552d79=this['_suggestions']['get'](_0x1fbdad);if(null!=_0x29e014['newRange']){'formatInline'==_0x43f1a7&&(_0x436d29=_0x436d29||Ut(_0x29e014['newRange'],_0x2e6254,_0x4f8451,_0x4a91db['model']['schema']));const _0x732b9d='attribute'==_0x43f1a7&&this['_isBlockAttribute'](_0x3d7db1['split']('|')[0x0]);if(_0x29e014['newRange']['isCollapsed']||'$graveyard'==_0x29e014['newRange']['root']['rootName']||'formatBlock'==_0x43f1a7&&!Ft(_0x29e014['newRange'])||_0x732b9d&&!Ft(_0x29e014['newRange'])||'deletion'==_0x43f1a7&&!(!Vt(_0x35a2e7=_0x29e014['newRange'])&&!function(_0x2d7745){return _0x2d7745['start']['parent']==_0x2d7745['end']['nodeBefore']&&_0x2d7745['start']['isAtEnd'];}(_0x35a2e7)))_0x4f8451['removeMarker'](_0x2e6254),_0x436d29=!0x0;else{if(!_0x552d79||!_0x552d79['isInContent'])continue;if(_0x29e014['newRange']&&_0x29e014['oldRange']&&_0x29e014['newRange']['isEqual'](_0x29e014['oldRange']))continue;_0x599596['add'](_0x552d79);}}}var _0x35a2e7;return _0x599596['size']>0x0&&(_0x436d29=!!this['_joinWithAdjacentSuggestions'](_0x599596)||_0x436d29),_0x436d29;}),_0x4a91db['model']['document']['registerPostFixer'](_0x25a52f=>{let _0x94dc99=!0x1;for(const _0x17ca07 of _0x4a91db['model']['document']['differ']['getChanges']())if('insert'==_0x17ca07['type'])for(const _0x1c89bb of this['_suggestions']['values']()){if(_0x1c89bb['isMultiRange']||!_0x1c89bb['isInContent'])continue;const _0x30b804='formatBlock'==_0x1c89bb['type'],_0x2c2aea=this['_getAttributeKey'](_0x1c89bb),_0x378bfc=_0x2c2aea&&this['_isBlockAttribute'](_0x2c2aea);if(!_0x30b804&&!_0x378bfc)continue;const _0x397a41=_0x1c89bb['getFirstRange']();if(_0x397a41['start']['parent']!=_0x397a41['end']['parent']&&!_0x397a41['end']['isAtEnd']){const _0x19ce8e=_0x4a91db['model']['createPositionAt'](_0x397a41['start']['nodeAfter'],'end'),_0x1f920a=_0x4a91db['model']['createRange'](_0x397a41['start'],_0x19ce8e);_0x25a52f['updateMarker'](_0x1c89bb['getFirstMarker'](),{'range':_0x1f920a}),_0x94dc99=!0x0;}}return _0x94dc99;}),_0x4a91db['model']['document']['registerPostFixer'](_0x426850=>this['_processAttributeChanges'](_0x426850)),_0x4a91db['model']['document']['registerPostFixer'](_0x26112f=>!_0x26112f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x26112f)),_0x4a91db['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a91db['model']['document']['on']('change:data',(_0x1c886d,_0x94bddc)=>{if(!_0x94bddc['isLocal']||_0x94bddc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x320fa1=_0x4a91db['model']['document']['differ']['getChanges']();if(0x0==_0x320fa1['length'])return;const _0x1c56a2=[],_0x32e7a9=_0x320fa1['filter'](_0x469d9a=>'attribute'==_0x469d9a['type']),_0x175f7e=_0x320fa1['filter'](_0x317c2c=>'insert'==_0x317c2c['type']&&'$text'!=_0x317c2c['name']);for(const _0x315d69 of _0x32e7a9)this['_isRegisteredAttribute'](_0x315d69['attributeKey'])&&_0x1c56a2['push']({'key':_0x315d69['attributeKey'],'newValue':_0x315d69['attributeNewValue'],'oldValue':_0x315d69['attributeOldValue'],'range':Pt(_0x315d69['range'],_0x4a91db['model'])});for(const _0x54492b of _0x175f7e){if('rename'!=_0x54492b['action']&&'refresh'!=_0x54492b['action'])continue;const _0x5551d8=Lt(_0x54492b['position']['nodeAfter'],_0x4a91db['model']),_0x522305=_0x54492b['before'];'rename'==_0x54492b['action']&&_0x1c56a2['push']({'key':m,'newValue':_0x54492b['name'],'oldValue':_0x522305['name'],'range':_0x5551d8});for(const [_0x6f0962,_0x40df5b]of _0x522305['attributes']){if(!this['_isRegisteredAttribute'](_0x6f0962))continue;const _0x5bb69f=_0x54492b['attributes']['get'](_0x6f0962);_0x40df5b!==_0x5bb69f&&_0x1c56a2['push']({'key':_0x6f0962,'newValue':_0x5bb69f,'oldValue':_0x40df5b,'range':_0x5551d8});}for(const [_0x3cf4da,_0x2e2c7d]of _0x54492b['attributes'])this['_isRegisteredAttribute'](_0x3cf4da)&&(_0x522305['attributes']['has'](_0x3cf4da)||_0x1c56a2['push']({'key':_0x3cf4da,'newValue':_0x2e2c7d,'oldValue':null,'range':_0x5551d8}));}0x0!=_0x1c56a2['length']&&_0x4a91db['model']['enqueueChange'](_0x94bddc,_0x3d800b=>{const _0x5d96d5=_0x4a9fdc();for(const {range:_0x10fa86,key:_0x18b50a,oldValue:_0x1e2ae3,newValue:_0x25b874}of _0x1c56a2)this['markAttributeChange'](_0x10fa86,_0x18b50a,_0x1e2ae3,_0x25b874,{'groupId':_0x5d96d5});this['_reduceExistingSuggestions'](_0x3d800b,_0x1c56a2);});},{'priority':'lowest'}),_0x4a91db['model']['markers']['on']('update:suggestion',(_0x7f6c26,_0x13c924,_0x4de4c9)=>{if(null==_0x4de4c9){const {id:_0x4ef10f}=this['_splitMarkerName'](_0x13c924['name']),_0x323b58=this['_suggestions']['get'](_0x4ef10f);_0x323b58&&_0x323b58['addMarkerName'](_0x13c924['name']);}}),_0x4a91db['model']['document']['on']('change:data',()=>{const _0x152188=Array['from'](_0x4a91db['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38878c=>'suggestion'===this['_splitMarkerName'](_0x38878c['name'])['group']);if(0x0===_0x152188['length'])return;_0x152188['sort']((_0x5059e4,_0x1c4a11)=>{const _0x305862=_0x5059e4['data']['oldRange'],_0x3996a9=_0x1c4a11['data']['oldRange'];return null===_0x305862&&null===_0x3996a9?0x0:null===_0x305862&&null!==_0x3996a9?-0x1:null!==_0x305862&&null===_0x3996a9?0x1:_0x305862['start']['isBefore'](_0x3996a9['start'])?-0x1:0x1;});const _0x47c6cf=new Set(),_0x2e58d9=new Set();for(const {name:_0x1b4c29,data:_0x378edc}of _0x152188){const {id:_0x533d38}=this['_splitMarkerName'](_0x1b4c29);if(null===_0x378edc['oldRange']){const _0xc455f=this['_handleNewSuggestionMarker'](_0x1b4c29);_0x2e58d9['add'](_0xc455f);}else{const _0x57d893=this['_suggestions']['get'](_0x533d38);null!==_0x378edc['newRange']||_0x57d893['isInContent']?(_0x47c6cf['add'](_0x57d893['head']),_0x2e58d9['add'](_0x57d893)):this['_removeSuggestion'](_0x57d893);}}_0x2e58d9['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e58d9);for(const _0x54c003 of _0x47c6cf)this['fire']('suggestionChanged',_0x54c003);}),_0x4a91db['model']['on']('applyOperation',(_0x4c1e6f,_0x1a9b0d)=>{const _0x930fe9=_0x1a9b0d[0x0];if(!this['_suggestions']['size'])return;if(!_0x930fe9['isDocumentOperation'])return;if(_0x930fe9['batch']['isUndo']||!_0x930fe9['batch']['isLocal'])return;let _0x75397e,_0x1b9f02;switch(_0x930fe9['type']){case'insert':_0x75397e=_0x4a91db['model']['createPositionAt'](_0x930fe9['position']),_0x1b9f02=_0x75397e['getShiftedBy'](_0x930fe9['howMany']);break;case'split':_0x75397e=_0x4a91db['model']['createPositionAt'](_0x930fe9['splitPosition']),_0x1b9f02=_0x4a91db['model']['createPositionAt'](_0x930fe9['moveTargetPosition']);break;case'move':_0x75397e=_0x4a91db['model']['createPositionAt'](_0x930fe9['targetPosition']),_0x1b9f02=_0x75397e['getShiftedBy'](_0x930fe9['howMany']);break;default:return;}const _0x1ae86a=_0x4a91db['model']['createRange'](_0x75397e,_0x1b9f02);_0x4a91db['model']['change'](()=>{for(const {suggestion:_0x4fc56f,meta:_0x1cc31b}of this['_findSuggestions'](_0x1ae86a)){if(_0x4fc56f['isMultiRange'])continue;if('formatInline'==_0x4fc56f['type'])continue;const _0x1a9e6a=this['_getAttributeKey'](_0x4fc56f);if(_0x1a9e6a&&this['_isBlockAttribute'](_0x1a9e6a)&&'split'!=_0x930fe9['type'])continue;const _0x197ce9=_0x4fc56f['data']&&_0x4fc56f['data']['multipleBlocks'];('formatBlock'!=_0x4fc56f['type']||'split'==_0x930fe9['type']&&!_0x197ce9)&&(_0x1cc31b['containsRangeInObject']||'insertion'==_0x4fc56f['type']&&_0x1cc31b['isOwn']||_0x4fc56f['getFirstRange']()['containsRange'](_0x1ae86a)&&this['_breakSuggestionMarker'](_0x4fc56f,_0x75397e,_0x1b9f02));}});},{'priority':'lowest'}),_0x4a91db['model']['on']('deleteContent',(_0x5ca8a0,_0x2720b5)=>{const _0x1029e0=_0x2720b5[0x0],_0x2945c5=_0x2720b5[0x1];if(_0x2945c5&&_0x2945c5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1029e0['isCollapsed'])return;const _0x106230=_0x4a91db['model']['schema'],{start:_0x4b9b6c,end:_0x33d90f}=_0x1029e0['getFirstRange'](),_0x33cf86=_0x4b9b6c['nodeAfter']&&_0x106230['isLimit'](_0x4b9b6c['nodeAfter'])?null:_0x106230['getNearestSelectionRange'](_0x4b9b6c,'forward'),_0x39be13=_0x33d90f['nodeBefore']&&_0x106230['isLimit'](_0x33d90f['nodeBefore'])?null:_0x106230['getNearestSelectionRange'](_0x33d90f,'backward'),_0x1a3fce=_0x4a91db['model']['createRange'](_0x33cf86?_0x33cf86['start']:_0x4b9b6c,_0x39be13?_0x39be13['end']:_0x33d90f);_0x4a91db['model']['change'](_0x488a26=>{this['markDeletion'](_0x1a3fce);const _0x1371ae=_0x4a91db['model']['schema']['getNearestSelectionRange'](_0x1a3fce['start']);_0x1029e0['is']('documentSelection')?_0x488a26['setSelection'](_0x1371ae):_0x1029e0['setTo'](_0x1371ae);}),_0x5ca8a0['stop']();},{'priority':_0x22d863['normal']+0xa}),_0x4a91db['model']['on']('insertContent',(_0x327837,_0x381d31)=>{const _0x238cca=_0x381d31[_0x381d31['length']-0x1];_0x238cca&&_0x238cca['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a91db['model']['change'](()=>{let _0x3aa984=_0x4a91db['model']['insertContent'](_0x381d31[0x0],_0x381d31[0x1],_0x381d31[0x2],{'forceDefaultExecution':!0x0});if(!_0x3aa984)return;_0x327837['return']=_0x3aa984['clone']();const _0x788280=_0x3aa984['end']['nodeBefore'],_0x19211a=_0x4a91db['model']['schema'];_0x788280&&_0x19211a['isBlock'](_0x788280)&&!_0x19211a['isObject'](_0x788280)&&(_0x3aa984=_0x4a91db['model']['createRange'](_0x3aa984['start'],_0x4a91db['model']['createPositionAt'](_0x788280,'end'))),this['markInsertion'](_0x3aa984);}),_0x327837['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2480b7=new x(_0x4a91db,this['_suggestions']);_0x4a91db['commands']['add']('acceptSuggestion',_0x2480b7),this['enableCommand']('acceptSuggestion');const _0x4fc60d=new R(_0x4a91db,this['_suggestions']);_0x4a91db['commands']['add']('discardSuggestion',_0x4fc60d),this['enableCommand']('discardSuggestion'),_0x4a91db['commands']['add']('acceptAllSuggestions',new E(_0x4a91db,_0x2480b7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a91db['commands']['add']('discardAllSuggestions',new E(_0x4a91db,_0x4fc60d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a91db['commands']['add']('acceptSelectedSuggestions',new O(_0x4a91db,_0x2480b7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a91db['commands']['add']('discardSelectedSuggestions',new O(_0x4a91db,_0x4fc60d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x419051=_0x4a91db['plugins']['get']('CommentsRepository');this['listenTo'](_0x419051,'addComment',(_0x442140,{threadId:_0x25a02f})=>{const _0x26ff3d=this['_suggestions']['get'](_0x25a02f);_0x26ff3d&&_0x26ff3d['commentThread']&&0x1===_0x26ff3d['commentThread']['length']&&this['_updateSuggestionData'](_0x25a02f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x419051,'removeComment',(_0x482d89,{threadId:_0x356d10})=>{const _0x3bd44e=this['_suggestions']['get'](_0x356d10);_0x3bd44e&&_0x3bd44e['commentThread']&&!_0x3bd44e['commentThread']['length']&&this['_updateSuggestionData'](_0x356d10,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x13d697){if(this['_adapter'])throw new _0x3acfd3('track-changes-adapter-already-set',this);this['_adapter']=_0x13d697;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33197f=!0x1,toJSON:_0x22839d=!0x1}={}){const _0x32a00d=[];for(const _0x57e7ed of this['_suggestions']['values']())_0x33197f&&!_0x57e7ed['isInContent']||_0x32a00d['push'](_0x57e7ed);return _0x22839d?_0x32a00d['map'](_0x5a5e7a=>_0x5a5e7a['toJSON']()):_0x32a00d;}['getSuggestion'](_0x3e292c){const _0x5d17d4=this['_suggestions']['get'](_0x3e292c);if(!_0x5d17d4)throw new _0x3acfd3('track-changes-suggestion-not-found',this);return _0x5d17d4;}['hasSuggestion'](_0x362898){return this['_suggestions']['has'](_0x362898);}['addSuggestionData'](_0x37c18f){const {authorId:_0x5d0ffc,id:_0x26f47b,attributes:_0x481020}=_0x37c18f,[_0x29496a,_0x4b8fa1]=_0x37c18f['type']['split'](':'),_0x4af926=this['_suggestions']['get'](_0x26f47b)||this['_createSuggestion'](_0x29496a,_0x4b8fa1,_0x26f47b,_0x5d0ffc,_0x481020);if(this['_addThreadToSuggestion'](_0x4af926),this['_checkSuggestionCorrectness'](_0x4af926,_0x29496a,_0x4b8fa1||null,_0x5d0ffc),_0x4af926['createdAt']=_0x37c18f['createdAt'],_0x4af926['_isDataLoaded']=!0x0,_0x481020&&_0x481020['@external']){const _0x589c68=_0x481020['@external'],_0x325196=this['_getExternalAuthor'](_0x589c68['authorName']);_0x4af926['authoredAt']=_0x589c68['createdAt'],_0x4af926['author']=_0x325196,_0x4af926['isExternal']=!0x0;}else _0x4af926['authoredAt']=_0x37c18f['createdAt'];switch(_0x37c18f['data']&&(_0x4af926['data']=_0x37c18f['data']),_0x37c18f['attributes']&&(_0x4af926['attributes']=_0x37c18f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4af926['_saved']=!0x0),this['_suggestionState']['get'](_0x4af926)){case'notReady':this['_suggestionState']['set'](_0x4af926,'dataReady');break;case'markerReady':_0x4af926['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4af926])),this['_refreshSuggestionsChain'](new Set([_0x4af926])),this['_suggestionState']['set'](_0x4af926,'ready'),this['fire']('suggestionLoaded',_0x4af926)):this['_suggestionState']['set'](_0x4af926,'removed');}return _0x4af926;}['acceptSuggestion'](_0x21b01c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x103fb2 of _0x21b01c['getAllAdjacentSuggestions']())_0x103fb2['accept']();});});}['discardSuggestion'](_0x4885ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2072e0 of _0x4885ed['getAllAdjacentSuggestions']())_0x2072e0['discard']();});});}['enableCommand'](_0x7e8ddb,_0x4224f4){const _0x105348=this['editor']['commands']['get'](_0x7e8ddb);if(!_0x105348)throw new _0x3acfd3('track-changes-command-not-found',this,{'commandName':_0x7e8ddb});if(this['_enabledCommands']['has'](_0x105348))throw new _0x3acfd3('track-changes-enable-command-twice',this,{'commandName':_0x7e8ddb});this['_enabledCommands']['add'](_0x105348),_0x4224f4&&_0x105348['on']('execute',(_0x592a3c,_0x147eb5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x147eb5['length']>0x0&&_0x147eb5[_0x147eb5['length']-0x1]&&_0x147eb5[_0x147eb5['length']-0x1]['forceDefaultExecution']?_0x147eb5['pop']():(_0x592a3c['return']=_0x4224f4((..._0x5ca083)=>_0x105348['execute'](..._0x5ca083,{'forceDefaultExecution':!0x0}),..._0x147eb5),_0x592a3c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x434038){let _0x281e84,_0x45043b;const _0x241f7c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x281e84=_0x434038();}catch(_0x1eff14){_0x45043b=_0x1eff14;}return _0x241f7c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45043b&&_0x3acfd3['rethrowUnexpectedError'](_0x45043b,this),_0x281e84;}['markInsertion'](_0x25289c,_0x1a3e61=null,_0x31ba69={}){if(_0x25289c['isCollapsed'])return null;const _0x6b7a7e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1e8d04,meta:_0x3b4d2f}of this['_findSuggestions'](_0x25289c,'insertion'))if(_0x3b4d2f['isOwn']){if(!_0x3b4d2f['isNextTo']){if(_0x3b4d2f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1e8d04,_0x31ba69))continue;return _0x1e8d04;}if(qt(_0x1e8d04,_0x31ba69))return _0x1e8d04;this['_breakSuggestionMarker'](_0x1e8d04,_0x25289c['start'],_0x25289c['end']);break;}if(_0x1a3e61==_0x1e8d04['subType']&&qt(_0x1e8d04,_0x31ba69)){const _0x1cc195=_0x1e8d04['getFirstRange']();return _0x1cc195['start']['isEqual'](_0x25289c['end'])?this['_setSuggestionRange'](_0x1e8d04,this['_model']['createRange'](_0x25289c['start'],_0x1cc195['end'])):this['_setSuggestionRange'](_0x1e8d04,this['_model']['createRange'](_0x1cc195['start'],_0x25289c['end'])),_0x1e8d04;}}const _0x22b5c5=_0x4a9fdc(),_0x199a89=_0x6b7a7e['id'],_0x200c7d=_0x1a3e61?'insertion:'+_0x1a3e61:'insertion',_0x588a7d=this['_setSuggestionData']({'id':_0x22b5c5,'type':_0x200c7d,'createdAt':new Date(),'authorId':_0x199a89,'attributes':_0x31ba69});return this['_addSuggestionMarker'](_0x200c7d,_0x22b5c5,_0x199a89,_0x25289c),_0x588a7d;}['markMultiRangeInsertion'](_0x43bae2,_0x59de59='multi',_0x34ac8b={}){const _0x7f3fe=this['editor']['plugins']['get']('Users')['me'],_0x4d5708=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x59de59,'join');for(const _0x1623ef of this['getSuggestions']())if(_0x1623ef['author']['id']==_0x7f3fe['id']&&'insertion'==_0x1623ef['type']&&_0x1623ef['subType']==_0x59de59&&qt(_0x1623ef,_0x34ac8b)&&(_0x4d5708(_0x1623ef['getRanges'](),_0x43bae2)||_0x4d5708(_0x43bae2,_0x1623ef['getRanges']()))){for(const _0x3e4513 of _0x43bae2)_0x1623ef['addRange'](_0x3e4513);return _0x1623ef;}for(const {suggestion:_0x531131,meta:_0x4ea3f1}of this['_findSuggestions'](_0x43bae2,'insertion')){if(!_0x4ea3f1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ea3f1['containsRangeInObject'])continue;if(!qt(_0x531131,_0x34ac8b))continue;let _0x34e0a4=!0x0;for(const _0x4a8707 of _0x531131['getRanges']())for(const _0x5e1296 of _0x43bae2)if(!_0x4a8707['containsRange'](_0x5e1296)){_0x34e0a4=!0x1;break;}if(_0x34e0a4)return _0x531131;}const _0x4f75c1=_0x4a9fdc(),_0x52cdc3=_0x7f3fe['id'],_0x800a88='insertion:'+_0x59de59,_0x35ea16=this['_setSuggestionData']({'id':_0x4f75c1,'type':_0x800a88,'createdAt':new Date(),'authorId':_0x52cdc3,'attributes':_0x34ac8b});for(const _0x214f89 of _0x43bae2)this['_addSuggestionMarker'](_0x800a88,_0x4f75c1,_0x52cdc3,_0x214f89,u['getMultiRangeId']());return _0x35ea16;}['markInlineFormat'](_0x47b9e5,_0x444ae8,_0x1785c0=null,_0x3d25fd={}){if(_0x1785c0=_0x1785c0||Gt(_0x444ae8),_0x47b9e5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xaf9156=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1785c0,'accept');return this['forceDefaultExecution'](()=>_0xaf9156([_0x47b9e5],_0x444ae8,_0x3d25fd)),null;}const _0x195975=this['editor']['plugins']['get']('Users')['me'],_0x4452ab=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4b4e47,meta:_0x101a10}of this['_findSuggestions'](_0x47b9e5,'insertion'))_0x101a10['isOwn']&&!_0x101a10['isInsideObject']&&_0x4452ab['push'](..._0x4b4e47['getRanges']());}const _0x564d4e=function(_0x4a1b7e,_0x4b56b8){const _0x2dfdc6=[];for(const _0x56e63c of _0x4b56b8){const _0x4e470b=_0x4a1b7e['getIntersection'](_0x56e63c);_0x4e470b&&_0x2dfdc6['push'](_0x4e470b);}return _0x2dfdc6;}(_0x47b9e5,_0x4452ab),_0x4af434=function(_0x476e4b,_0xd20dd4){const _0x29dd7a=[_0x476e4b];for(const _0x152ec3 of _0xd20dd4){let _0x5c40b0=0x0;for(;_0x5c40b0<_0x29dd7a['length'];){const _0x253b3c=_0x29dd7a[_0x5c40b0]['getDifference'](_0x152ec3);_0x29dd7a['splice'](_0x5c40b0,0x1,..._0x253b3c),_0x5c40b0+=_0x253b3c['length'];}}return _0x29dd7a;}(_0x47b9e5,_0x4452ab);_0x564d4e['length']&&this['_model']['change'](()=>{for(const _0x2c1c39 of _0x564d4e){const _0x4df4ff=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1785c0,'accept');this['forceDefaultExecution'](()=>_0x4df4ff([_0x2c1c39],_0x444ae8,_0x3d25fd));}});for(const _0x4d19e9 of _0x4af434){let _0x2fdd37=null,_0x1d8418=_0x4d19e9['start'],_0x2cb172=_0x4d19e9['end'];for(const {suggestion:_0x4f48ca,meta:_0x1a8288}of this['_findSuggestions'](_0x4d19e9,'formatInline')){if(!_0x1a8288['isOwn'])continue;if(_0x4f48ca['subType']!=_0x1785c0)continue;if(!qt(_0x4f48ca,_0x3d25fd))continue;const _0x8caa6e=_0x4f48ca['getFirstRange']();if(_0x8caa6e['containsRange'](_0x4d19e9,!0x0))return null;_0x1d8418=_0x1d8418['isBefore'](_0x8caa6e['start'])?_0x1d8418:_0x8caa6e['start'],_0x2cb172=_0x2cb172['isAfter'](_0x8caa6e['end'])?_0x2cb172:_0x8caa6e['end'],_0x2fdd37?_0x8caa6e['start']['isBefore'](_0x2fdd37['getFirstRange']()['start'])?(_0x2fdd37['removeMarkers'](),_0x2fdd37=_0x4f48ca):_0x4f48ca['removeMarkers']():_0x2fdd37=_0x4f48ca;}const _0x353c75=this['_model']['createRange'](_0x1d8418,_0x2cb172);if(_0x2fdd37)this['_setSuggestionRange'](_0x2fdd37,_0x353c75);else{const _0x96263e=_0x4a9fdc(),_0x5c3e97=_0x195975['id'];this['_setSuggestionData']({'id':_0x96263e,'type':'formatInline:'+_0x1785c0,'data':_0x444ae8,'createdAt':new Date(),'authorId':_0x5c3e97,'attributes':_0x3d25fd}),this['_addSuggestionMarker']('formatInline:'+_0x1785c0,_0x96263e,_0x5c3e97,_0x353c75);}}return null;}['markBlockFormat'](_0x1c160e,_0x414f41,_0x3c328e=[],_0x4ad797=null,_0x143338={}){_0x414f41['formatGroupId']||(_0x414f41['formatGroupId']=_0x414f41['commandName']),_0x414f41['multipleBlocks']=_0x1c160e['is']('range'),_0x4ad797=_0x4ad797||Gt(_0x414f41);const _0x67c25b=_0x3c328e['map'](_0x219bd6=>Lt(_0x219bd6,this['_model'])),_0x4265aa=_0x1c160e['is']('range')?_0x1c160e:Lt(_0x1c160e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x11dfd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ad797,'accept');return this['forceDefaultExecution'](()=>_0x11dfd5([_0x4265aa],_0x414f41,_0x143338)),null;}_0x67c25b['push'](_0x4265aa);let _0x5787b4=!0x0;for(const _0xba8e26 of _0x67c25b)if(!this['_rangeIsInLocalUserInsertion'](_0xba8e26)){_0x5787b4=!0x1;break;}if(_0x5787b4&&'always'!==this['_trackFormatChanges']){const _0x43b5db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ad797,'accept');return this['forceDefaultExecution'](()=>_0x43b5db([_0x4265aa],_0x414f41,_0x143338)),null;}let _0x478375=null,_0x373887=_0x4265aa['start'],_0x668199=_0x4265aa['end'];for(const {suggestion:_0x325136,meta:_0x12b779}of this['_findSuggestions'](_0x4265aa,'formatBlock')){if(!_0x12b779['isOwn'])continue;if(_0x12b779['isNextTo']||_0x12b779['containsRangeInObject']||_0x12b779['isInsideObject'])continue;if(_0x325136['data']['formatGroupId']!=_0x414f41['formatGroupId'])continue;if(!qt(_0x325136,_0x143338))continue;const _0x334af5=_0x325136['getFirstRange']();if(_0x325136['subType']==_0x4ad797){if(_0x334af5['containsRange'](_0x4265aa,!0x0))return null;_0x373887=_0x373887['isBefore'](_0x334af5['start'])?_0x373887:_0x334af5['start'],_0x668199=_0x668199['isAfter'](_0x334af5['end'])?_0x668199:_0x334af5['end'],_0x478375?_0x334af5['start']['isBefore'](_0x478375['getFirstRange']()['start'])?(_0x478375['removeMarkers'](),_0x478375=_0x325136):_0x325136['removeMarkers']():_0x478375=_0x325136;}else{const _0x526384=_0x4265aa['getIntersection'](_0x334af5);this['_cutOutSuggestionMarker'](_0x325136,_0x526384);}}const _0x5c8405=this['editor']['plugins']['get']('Users')['me'],_0x346ebb=_0x4a9fdc(),_0x2a5f36=_0x5c8405['id'];if(_0x478375)return this['_setSuggestionRange'](_0x478375,this['_model']['createRange'](_0x373887,_0x668199)),_0x478375;{const _0xb3bb4f=this['_setSuggestionData']({'id':_0x346ebb,'type':'formatBlock:'+_0x4ad797,'data':_0x414f41,'createdAt':new Date(),'authorId':_0x2a5f36,'attributes':_0x143338});return this['_addSuggestionMarker']('formatBlock:'+_0x4ad797,_0x346ebb,_0x2a5f36,this['_model']['createRange'](_0x373887,_0x668199)),_0xb3bb4f;}}['markMultiRangeBlockFormat'](_0x267218,_0x214d1e,_0x246e92=[],_0x526337=null,_0x2846a8={}){_0x214d1e['formatGroupId']||(_0x214d1e['formatGroupId']=_0x214d1e['commandName']);const _0x900d95=_0x267218[0x0];_0x214d1e['multipleBlocks']=_0x900d95['is']('range'),_0x526337=_0x526337||Gt(_0x214d1e);const _0x29af2a=_0x246e92['map'](_0x51a56c=>Lt(_0x51a56c,this['_model'])),_0x50248a=_0x900d95['is']('range')?_0x267218:_0x267218['map'](_0x4a7c6c=>Lt(_0x4a7c6c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x59ef39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x526337,'accept');return this['forceDefaultExecution'](()=>_0x59ef39(_0x50248a,_0x214d1e,_0x2846a8)),null;}_0x29af2a['push'](..._0x50248a);let _0x43f316=!0x0;for(const _0x27211f of _0x29af2a)if(!this['_rangeIsInLocalUserInsertion'](_0x27211f)){_0x43f316=!0x1;break;}if(_0x43f316&&'always'!==this['_trackFormatChanges']){const _0x363e08=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x526337,'accept');return this['forceDefaultExecution'](()=>_0x363e08(_0x50248a,_0x214d1e,_0x2846a8)),null;}const _0x4b56a2=this['editor']['plugins']['get']('Users')['me'];for(const _0x32e140 of this['getSuggestions']()){if(_0x32e140['author']['id']!=_0x4b56a2['id'])continue;if('formatBlock'!=_0x32e140['type']||_0x32e140['data']['formatGroupId']!=_0x214d1e['formatGroupId'])continue;if(!qt(_0x32e140,_0x2846a8))continue;const _0x5b05cf=_0x32e140['subType']==_0x526337;for(let _0x5e2bcd=0x0;_0x5e2bcd<_0x50248a['length'];_0x5e2bcd++){const _0x32cbc1=_0x50248a[_0x5e2bcd];for(const _0x2b7f21 of _0x32e140['getMarkers']()){const _0x5d488c=_0x2b7f21['getRange']();if(_0x32cbc1['isEqual'](_0x5d488c)){_0x5b05cf?(_0x50248a['splice'](_0x5e2bcd,0x1),_0x5e2bcd--):_0x32e140['removeMarker'](_0x2b7f21['name']);break;}}}}if(0x0==_0x50248a['length'])return null;const _0x422be7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x526337,'join');for(const _0x37f9cd of this['getSuggestions']())if(_0x37f9cd['author']['id']==_0x4b56a2['id']&&'formatBlock'==_0x37f9cd['type']&&_0x37f9cd['data']['formatGroupId']==_0x214d1e['formatGroupId']&&_0x37f9cd['subType']==_0x526337&&qt(_0x37f9cd,_0x2846a8)&&(_0x422be7(_0x37f9cd['getRanges'](),_0x50248a)||_0x422be7(_0x50248a,_0x37f9cd['getRanges']()))){for(const _0x4b184c of _0x50248a)_0x37f9cd['addRange'](_0x4b184c);return _0x37f9cd;}const _0x1ae693=_0x4a9fdc(),_0x4d130b=_0x4b56a2['id'],_0xb3337='formatBlock:'+_0x526337,_0x3441e8=this['_setSuggestionData']({'id':_0x1ae693,'type':_0xb3337,'data':_0x214d1e,'createdAt':new Date(),'authorId':_0x4d130b,'attributes':_0x2846a8});for(const _0x37d2e1 of _0x50248a)this['_addSuggestionMarker'](_0xb3337,_0x1ae693,_0x4d130b,_0x37d2e1,u['getMultiRangeId']());return _0x3441e8;}['markDeletion'](_0x55b0f6,_0xa3a077=null,_0x44565c={}){if(_0x55b0f6['isCollapsed'])return null;const _0x858c81=this['editor']['plugins']['get']('Users')['me'],_0x1480ed=new _0x1b4d08(_0x55b0f6['start'],_0x55b0f6['end']);for(const {suggestion:_0x50038a,meta:_0x206774}of this['_findSuggestions'](_0x1480ed,'insertion'))if(_0x206774['isOwn']&&!_0x206774['isNextTo']){if(_0x50038a['isMultiRange']){const _0x2afce=_0x50038a['getRanges']()['filter'](_0x163f51=>'$graveyard'!=_0x163f51['root']['rootName']);_0x2afce['every'](_0x34c251=>_0x1480ed['containsRange'](_0x34c251,!0x0))&&_0x50038a['discard']();if(_0x2afce['some'](_0x44a642=>_0x44a642['containsRange'](_0x1480ed,!0x0))){const _0x3b7e77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa3a077,'accept');return this['forceDefaultExecution'](()=>_0x3b7e77([_0x1480ed],null,_0x44565c)),null;}}else{const _0x18aff8=_0x1480ed['getIntersection'](_0x50038a['getFirstRange']());null!==_0x18aff8&&_0x50038a['_onDiscard']([_0x18aff8],null,_0x44565c);}}if(_0x1480ed['detach'](),_0x1480ed['isCollapsed']||'$graveyard'==_0x1480ed['root']['rootName'])return null;let _0x24a9d4=null,_0x2467d5=_0x1480ed['start'],_0x3df0c7=_0x1480ed['end'];const _0x2a879b=this['_findSuggestions'](_0x1480ed,'deletion');for(const {suggestion:_0x5f0464,meta:_0x16e2ff}of _0x2a879b){const _0x337045=this['_model']['createRange'](_0x2467d5,_0x3df0c7);if(_0x16e2ff['isOwn']&&(this['_mergeNestedSuggestions']||!_0x16e2ff['containsRangeInObject']&&!_0x16e2ff['isInsideObject'])){if(_0x5f0464['isMultiRange']){if(!qt(_0x5f0464,_0x44565c))continue;let _0x3d6168=!0x0;for(const _0xde482c of _0x5f0464['getRanges']()){if(_0xde482c['containsRange'](_0x337045,!0x0))return _0x5f0464;_0x337045['containsRange'](_0xde482c)||(_0x3d6168=!0x1);}_0x3d6168&&_0x5f0464['discard']();}else{const _0x82584d=_0x5f0464['getFirstRange']();if(_0x82584d['containsRange'](_0x337045,!0x0))return _0x5f0464;if(!qt(_0x5f0464,_0x44565c)){_0x337045['containsRange'](_0x82584d)?_0x5f0464['removeMarkers']():_0x82584d['containsPosition'](_0x2467d5)?_0x2467d5=_0x82584d['end']:_0x82584d['containsPosition'](_0x3df0c7)&&(_0x3df0c7=_0x82584d['start']);continue;}_0x2467d5=_0x2467d5['isBefore'](_0x82584d['start'])?_0x2467d5:_0x82584d['start'],_0x3df0c7=_0x3df0c7['isAfter'](_0x82584d['end'])?_0x3df0c7:_0x82584d['end'],_0x44565c=Object['assign']({},_0x5f0464['attributes']),_0x24a9d4?_0x82584d['start']['isBefore'](_0x24a9d4['getFirstRange']()['start'])?(_0x24a9d4['removeMarkers'](),_0x24a9d4=_0x5f0464):_0x5f0464['removeMarkers']():_0x24a9d4=_0x5f0464;}}}if(_0x24a9d4)return this['_setSuggestionRange'](_0x24a9d4,this['_model']['createRange'](_0x2467d5,_0x3df0c7)),_0x24a9d4;{const _0x1e596b=_0x4a9fdc(),_0x3e4567=this['_model']['createRange'](_0x2467d5,_0x3df0c7),_0x72a2c9=_0x858c81['id'],_0x4cb36e=_0xa3a077?'deletion:'+_0xa3a077:'deletion',_0x3d783c=this['_setSuggestionData']({'id':_0x1e596b,'type':_0x4cb36e,'createdAt':new Date(),'authorId':_0x72a2c9,'attributes':_0x44565c});return this['_addSuggestionMarker'](_0x4cb36e,_0x1e596b,_0x72a2c9,_0x3e4567),_0x3d783c;}}['markMultiRangeDeletion'](_0x358feb,_0x371625='multi',_0x3ed0a9={}){const _0x4c5c42=this['editor']['plugins']['get']('Users')['me'],_0x352486=_0x358feb['map'](_0x53abce=>new _0x1b4d08(_0x53abce['start'],_0x53abce['end'])),_0x4994c6=new Set();for(const {suggestion:_0x2cf427,meta:_0x350580}of this['_findSuggestions'](_0x352486,'insertion'))_0x350580['isOwn']&&!_0x350580['isNextTo']&&_0x4994c6['add'](_0x2cf427);for(const _0xa63a0a of _0x4994c6)if(_0xa63a0a['isMultiRange']){const _0x38b361=_0xa63a0a['getRanges']();(!_0xa63a0a['attributes']||!_0xa63a0a['attributes']['skipNestingCheck'])&&(_0x38b361['every'](_0x282d2c=>_0x352486['some'](_0x4f7fa3=>_0x4f7fa3['containsRange'](_0x282d2c,!0x0)))&&_0xa63a0a['discard']());if(_0x352486['every'](_0x16f657=>_0x38b361['some'](_0x4322b2=>_0x4322b2['containsRange'](_0x16f657,!0x0)))){const _0x250667=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x371625,'accept');return this['forceDefaultExecution'](()=>_0x250667(_0x358feb,null,_0x3ed0a9)),null;}}else{const _0x2918a6=_0xa63a0a['getFirstRange']();_0x352486['some'](_0x16954d=>_0x16954d['containsRange'](_0x2918a6,!0x0))&&_0xa63a0a['discard']();if(_0x352486['every'](_0xdddb32=>_0x2918a6['containsRange'](_0xdddb32,!0x0))){const _0x3e81ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x371625,'accept');return this['forceDefaultExecution'](()=>_0x3e81ad(_0x352486,null,_0x3ed0a9)),null;}}const _0x11b868=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x371625,'join');let _0x1f97da=null;for(const _0x161d98 of this['getSuggestions']())if(_0x161d98['author']['id']==_0x4c5c42['id']&&_0x161d98['isInContent']&&'deletion'==_0x161d98['type']&&_0x161d98['subType']==_0x371625&&qt(_0x161d98,_0x3ed0a9)&&(_0x11b868(_0x161d98['getRanges'](),_0x352486)||_0x11b868(_0x352486,_0x161d98['getRanges']()))){if(_0x1f97da){if(_0x161d98['commentThread']&&_0x161d98['commentThread']['length'])continue;for(const _0x3debdc of _0x161d98['getRanges']())_0x1f97da['isIntersectingWithRange'](_0x3debdc)||_0x1f97da['addRange'](_0x3debdc);_0x161d98['removeMarkers']();}else{_0x1f97da=_0x161d98;for(const _0x343319 of _0x352486)_0x161d98['isIntersectingWithRange'](_0x343319)||_0x161d98['addRange'](_0x343319);}}if(_0x1f97da)return _0x1f97da;_0x4994c6['clear']();for(const {suggestion:_0x10361f,meta:_0x8d51}of this['_findSuggestions'](_0x352486,'deletion'))_0x8d51['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8d51['containsRangeInObject']&&!_0x8d51['isInsideObject'])&&qt(_0x10361f,_0x3ed0a9)&&_0x4994c6['add'](_0x10361f);for(const _0x42e090 of _0x4994c6){const _0x2128fe=_0x42e090['getRanges']();if(!_0x3ed0a9||!_0x3ed0a9['skipNestingCheck']){if(_0x352486['every'](_0x6de5fd=>_0x2128fe['some'](_0x12d29a=>_0x12d29a['containsRange'](_0x6de5fd,!0x0))))return _0x42e090;}(!_0x42e090['attributes']||!_0x42e090['attributes']['skipNestingCheck'])&&(_0x2128fe['every'](_0x5a60f4=>_0x352486['some'](_0x5c6020=>_0x5c6020['containsRange'](_0x5a60f4,!0x0)))&&_0x42e090['discard']());}const _0x4156e6=_0x4a9fdc(),_0x11d393=_0x4c5c42['id'],_0x36f8a3='deletion:'+_0x371625,_0xf94bbc=this['_setSuggestionData']({'id':_0x4156e6,'type':_0x36f8a3,'createdAt':new Date(),'authorId':_0x11d393,'attributes':_0x3ed0a9});for(const _0x2b8488 of _0x352486)_0x2b8488['detach'](),_0x2b8488['isCollapsed']||'$graveyard'==_0x2b8488['root']['rootName']||this['_addSuggestionMarker'](_0x36f8a3,_0x4156e6,_0x11d393,_0x2b8488,u['getMultiRangeId']());return _0xf94bbc;}['markAttributeChange'](_0x4a859d,_0x374652,_0x54a0d2,_0xb0f42a,_0x33c190){if(_0x4a859d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b63d4=this['editor']['plugins']['get']('Users')['me']['id'],_0x2396e2=Array['from'](this['_suggestions']['values']())['filter'](_0x5b7d50=>'attribute'==_0x5b7d50['type']&&_0x5b7d50['data']['key']==_0x374652&&_0x5b7d50['isIntersectingWithRange'](_0x4a859d));if('default'===this['_trackFormatChanges']){const _0x341cc1=this['_findSuggestions'](_0x4a859d,'insertion')['filter'](({meta:_0xd04b82})=>_0xd04b82['isOwn']&&!_0xd04b82['isInsideObject']&&!_0xd04b82['isNextTo'])['map'](({suggestion:_0x51dbaf})=>_0x51dbaf);_0x2396e2['unshift'](..._0x341cc1);}const _0x3dafca=new Map([[_0x4a859d,_0x54a0d2]]);for(const _0x1a741d of _0x2396e2){const _0x2407ea='attribute'==_0x1a741d['type']?_0x1a741d['data']['oldValue']:void 0x0,_0x1d9b68=_0x1a741d['getFirstRange'](),_0x9744a0=Array['from'](_0x3dafca['keys']())['find'](_0x57ea1f=>_0x57ea1f['isIntersecting'](_0x1d9b68));if(!_0x9744a0)continue;const _0x1ad9d4=_0x9744a0['getDifference'](_0x1d9b68);this['_isBlockAttribute'](_0x374652)&&'insertion'==_0x1a741d['type']&&0x0!=_0x1ad9d4['length']||(_0x3dafca['delete'](_0x9744a0),_0x1ad9d4['forEach'](_0x35039a=>{_0x3dafca['set'](_0x35039a,_0x54a0d2);}),'insertion'!=_0x1a741d['type']&&_0x2407ea!=_0xb0f42a&&_0x3dafca['set'](_0x9744a0['getIntersection'](_0x1d9b68),_0x2407ea));}const _0x330d74=[];for(const [_0x9f6363,_0x443abf]of _0x3dafca){const _0x25cdcc=_0x4a9fdc(),_0x1a1731={'key':_0x374652,'oldValue':_0x443abf,'newValue':_0xb0f42a};_0x374652['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':_0x374652});const _0x57214d=('attribute:'+(_0x374652+'|'+Gt({'newValue':_0xb0f42a})))['substring'](0x0,0x3c),_0x33158f=this['_setSuggestionData']({'id':_0x25cdcc,'type':_0x57214d,'data':_0x1a1731,'createdAt':new Date(),'authorId':_0x1b63d4,'attributes':_0x33c190});_0x330d74['push'](_0x33158f),this['_addSuggestionMarker'](_0x57214d,_0x25cdcc,_0x1b63d4,_0x9f6363);}return _0x330d74;}['enableDefaultAttributesIntegration'](_0x48d8ec){this['enableCommand'](_0x48d8ec,(_0x142e95,..._0xe9b6a6)=>{this['_recordAttributeChanges'](()=>{_0x142e95(..._0xe9b6a6);});});}['registerBlockAttribute'](_0x1750a9){this['_blockAttributeKeys']['add'](_0x1750a9);}['registerInlineAttribute'](_0x563924){this['_inlineAttributeKeys']['add'](_0x563924);}['_getAttributeKey'](_0x51ae1f){return'attribute'==_0x51ae1f['type']?_0x51ae1f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b4566,_0x9dc2f){const _0x23ce15=_0x5b4566['getFirstMarker']();this['_model']['change'](_0x4860ca=>{_0x4860ca['updateMarker'](_0x23ce15,{'range':_0x9dc2f});});}['_addThreadToSuggestion'](_0x1f9227){const _0x5e75a7=_0x1f9227['id'],_0x1edcd9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e75a7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1edcd9,'threadId':_0x5e75a7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x143464=this['_commentsRepository']['getCommentThread'](_0x5e75a7);_0x143464['unbind']('isRemovable'),_0x143464['isRemovable']=!0x1,_0x1f9227['commentThread']=_0x143464;}['_checkSuggestionCorrectness'](_0x2ba753,_0x2a1af9,_0x534653,_0x1c5bba){if(_0x2ba753['type']!=_0x2a1af9||_0x2ba753['subType']!=_0x534653||_0x2ba753['creator']['id']!=_0x1c5bba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3acfd3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5cbab0,_0x2b67f9){const _0xa120a9=_0x5cbab0['getFirstRange']();if(_0x2b67f9['isEqual'](_0xa120a9))_0x5cbab0['removeMarkers']();else{if(_0xa120a9['containsRange'](_0x2b67f9)){const _0x130ac4=this['_model']['createPositionAt'](_0x2b67f9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cbab0,this['_model']['createRange'](_0xa120a9['start'],_0x130ac4));const _0x423abd=_0x4a9fdc(),_0x4fda31=_0x5cbab0['creator']['id'],_0x27ffb9=_0x5cbab0['type']+':'+_0x5cbab0['subType'];this['_setSuggestionData']({'id':_0x423abd,'type':_0x27ffb9,'createdAt':new Date(),'authorId':_0x4fda31,'data':_0x5cbab0['data'],'attributes':_0x5cbab0['attributes']});const _0x35c4ea=this['_model']['createPositionAt'](_0x2b67f9['end']['parent'],'after'),_0x4c88e0=this['_model']['createRange'](_0x35c4ea,_0xa120a9['end']);this['_addSuggestionMarker'](_0x27ffb9,_0x423abd,_0x4fda31,_0x4c88e0);}else{if(_0xa120a9['containsPosition'](_0x2b67f9['start'])){const _0x900d85=this['_model']['createPositionAt'](_0x2b67f9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cbab0,this['_model']['createRange'](_0xa120a9['start'],_0x900d85));}else{const _0x40e240=this['_model']['createPositionAt'](_0x2b67f9['end']['parent'],'after');this['_setSuggestionRange'](_0x5cbab0,this['_model']['createRange'](_0x40e240,_0xa120a9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5059d5){for(const {suggestion:_0x3088bc,meta:_0x12604d}of this['_findSuggestions'](_0x5059d5,'insertion')){if(!_0x12604d['isOwn'])continue;const _0x550b34=_0x3088bc['getRanges']();for(const _0x4fbb9a of _0x550b34)if(!_0x5059d5['getDifference'](_0x4fbb9a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ff378){const _0x5f5b15=this['editor']['plugins']['get']('Users')['getUser'](_0x4ff378);if(!_0x5f5b15)throw new _0x3acfd3('track-changes-user-not-found',this);return _0x5f5b15;}['_getExternalAuthor'](_0x466526){const _0x1fd125=this['editor']['plugins']['get']('Users'),_0x210131=_0x328cfd('external:'+_0x466526),_0x83c4a5=_0x1fd125['getUser'](_0x210131);return _0x83c4a5||_0x1fd125['addUser']({'id':_0x210131,'name':_0x466526});}['_createSuggestion'](_0x3482c8,_0x198c68,_0x359894,_0x9e0dad,_0x3cacd5){const _0x5afc03=this['_getAuthorFromId'](_0x9e0dad),_0x104df5=this['_suggestionFactory']['buildSuggestion'](_0x3482c8,_0x198c68,_0x359894,_0x5afc03,_0x3cacd5,_0xb6548e=>{this['_updateSuggestionData'](_0x359894,{'attributes':_0xb6548e});const _0x5337a8=this['getSuggestion'](_0x359894);this['_joinWithAdjacentSuggestions'](new Set([_0x5337a8])),this['_refreshSuggestionsChain'](new Set([_0x5337a8]));});return this['listenTo'](_0x104df5,'accept',()=>{this['_updateSuggestionData'](_0x359894,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x104df5,'discard',()=>{this['_updateSuggestionData'](_0x359894,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x359894,_0x104df5),this['_suggestionState']['set'](_0x104df5,'notReady'),_0x104df5;}['_splitMarkerName'](_0x971a40){const _0x4e7916=_0x971a40['split'](':');return{'group':_0x4e7916[0x0],'type':_0x4e7916[0x1],'subType':_0x4e7916['length']>=0x5?_0x4e7916[0x2]:null,'id':_0x4e7916['length']<0x5?_0x4e7916[0x2]:_0x4e7916[0x3],'authorId':_0x4e7916['length']<0x5?_0x4e7916[0x3]:_0x4e7916[0x4],'markerCount':0x6==_0x4e7916['length']?_0x4e7916[0x5]:null};}['_breakSuggestionMarker'](_0x4ec62c,_0x2534e4,_0x2bd4b5){const _0x1a4b92=_0x4ec62c['getFirstRange'](),_0x50b839=_0x1a4b92['start'],_0x42f327=_0x1a4b92['end'];this['_setSuggestionRange'](_0x4ec62c,this['_model']['createRange'](_0x50b839,_0x2534e4));const _0x47cdf4=_0x4a9fdc(),_0xd170ff=_0x4ec62c['creator']['id'],_0x1ea8c5=_0x4ec62c['type']+(_0x4ec62c['subType']?':'+_0x4ec62c['subType']:'');this['_setSuggestionData']({'id':_0x47cdf4,'type':_0x1ea8c5,'createdAt':new Date(),'authorId':_0xd170ff,'originalSuggestionId':_0x4ec62c['id'],'attributes':_0x4ec62c['attributes'],'data':_0x4ec62c['data']});const _0x5baf52=this['_getAttributeKey'](_0x4ec62c);('formatBlock'==_0x4ec62c['type']||_0x5baf52&&this['_isBlockAttribute'](_0x5baf52))&&(_0x2bd4b5=this['_model']['createPositionBefore'](_0x2bd4b5['parent'])),this['_addSuggestionMarker'](_0x1ea8c5,_0x47cdf4,_0xd170ff,this['_model']['createRange'](_0x2bd4b5,_0x42f327));}['_findSuggestions'](_0x4fb8b7,_0x34af79=null){const _0x3cf9f3=[],_0x40a649=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fb8b7)||(_0x4fb8b7=[_0x4fb8b7]);for(const _0x30cd0d of this['getSuggestions']()){if(!_0x30cd0d['isInContent'])continue;if(_0x34af79&&_0x30cd0d['type']!=_0x34af79)continue;let _0x20fef9=!0x1;for(const _0xba1cf6 of _0x30cd0d['getRanges']()){for(const _0x507304 of _0x4fb8b7){const _0x366e88=_0x507304['start']['isEqual'](_0xba1cf6['end'])||_0x507304['end']['isEqual'](_0xba1cf6['start']);if(_0x366e88||_0x507304['getIntersection'](_0xba1cf6)){const _0x3a0b8b=_0x507304['containsRange'](_0xba1cf6)&&Ot(this['_model']['schema'],_0xba1cf6['start'],_0x507304),_0x556ffe=_0xba1cf6['containsRange'](_0x507304)&&Ot(this['_model']['schema'],_0x507304['start'],_0xba1cf6);_0x3cf9f3['push']({'suggestion':_0x30cd0d,'meta':{'isOwn':_0x40a649==_0x30cd0d['author'],'isNextTo':_0x366e88,'isInsideObject':_0x3a0b8b,'containsRangeInObject':_0x556ffe}}),_0x20fef9=!0x0;break;}}if(_0x20fef9)break;}}return _0x3cf9f3;}['_addSuggestionMarker'](_0x1b51e5,_0x48b87e,_0x2deb3e,_0x3f9b7c,_0xcebe34){this['_model']['change'](_0x1cd4e7=>{let _0x46e86f='suggestion:'+_0x1b51e5+':'+_0x48b87e+':'+_0x2deb3e;_0xcebe34&&(_0x46e86f=_0x46e86f+':'+_0xcebe34),_0x1cd4e7['addMarker'](_0x46e86f,{'range':_0x3f9b7c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x232f12){const _0x1cf741=_0x232f12['previous'],_0x18e7c7=_0x232f12['next'];_0x232f12['previous']=null,_0x232f12['next']=null,null!=_0x1cf741&&_0x1cf741['next']==_0x232f12&&(_0x1cf741['next']=_0x18e7c7),null!=_0x18e7c7&&_0x18e7c7['previous']==_0x232f12&&(_0x18e7c7['previous']=_0x1cf741),'ready'==this['_suggestionState']['get'](_0x232f12)&&(this['_suggestionState']['set'](_0x232f12,'removed'),this['fire']('suggestionUnloaded',_0x232f12,_0x1cf741,_0x18e7c7));}['_setSuggestionData'](_0x3fa031){const _0x3246ea=_0x3fa031['id'],_0x206539=this['addSuggestionData'](_0x3fa031);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x15531e=this['editor']['plugins']['get']('PendingActions'),_0x44b8b4=_0x206539['hasComments'],_0x195ac0=_0x206539['subType']?_0x206539['type']+':'+_0x206539['subType']:_0x206539['type'],_0x51f7bb=this['editor']['locale'],_0x3dd369=_0x15531e['add'](o(_0x51f7bb,'PENDING_ACTION_SUGGESTION')),_0x5edf6a={'id':_0x3246ea,'type':_0x195ac0,'hasComments':_0x44b8b4,'data':_0x3fa031['data']||null,'originalSuggestionId':_0x3fa031['originalSuggestionId']||null,'attributes':_0x206539['attributes']};this['_adapter']['addSuggestion'](_0x5edf6a)['then'](_0x182bd8=>{_0x206539['_saved']=!0x0,_0x15531e['remove'](_0x3dd369),_0x182bd8&&_0x182bd8['createdAt']&&(this['_suggestions']['get'](_0x3246ea)['createdAt']=_0x182bd8['createdAt']);})['catch'](_0x2cd2d4=>{throw _0x2817b6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x206539['discard']();}),_0x206539['stopListening'](),this['_suggestions']['delete'](_0x206539['id']),this['_suggestionState']['delete'](_0x206539),_0x2cd2d4;});}return _0x206539;}['_isBlockAttribute'](_0x122f83){return this['_blockAttributeKeys']['has'](_0x122f83);}['_updateSuggestionData'](_0x22f326,_0x1d0038){const _0x2b62cb=this['editor']['plugins']['get']('PendingActions'),_0x1c45da=this['getSuggestion'](_0x22f326);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1c45da['_saved']){const _0x4804b6=_0x2b62cb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x22f326,_0x1d0038)['then'](()=>{_0x2b62cb['remove'](_0x4804b6);});}else _0x1c45da['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x22f326,_0x1d0038);});}}['_getSuggestionData'](_0x3ced76){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3acfd3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ced76);}['_handleNewSuggestionMarker'](_0x40f87d){const {id:_0x2e318e,type:_0x1d6cb0,subType:_0x3dc817,authorId:_0x129601}=this['_splitMarkerName'](_0x40f87d),_0x5696c1=this['_suggestions']['get'](_0x2e318e)||this['_createSuggestion'](_0x1d6cb0,_0x3dc817,_0x2e318e,_0x129601,{});switch(this['_checkSuggestionCorrectness'](_0x5696c1,_0x1d6cb0,_0x3dc817,_0x129601),this['_suggestionState']['get'](_0x5696c1)){case'notReady':this['_getSuggestionData'](_0x2e318e)['then'](_0x21598e=>{let _0x27de8f=Promise['resolve']();_0x21598e['hasComments']&&(_0x27de8f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e318e})),_0x27de8f['then'](()=>{this['addSuggestionData'](_0x21598e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5696c1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e318e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5696c1,'ready'),this['fire']('suggestionLoaded',_0x5696c1);break;case'ready':this['fire']('suggestionChanged',_0x5696c1);}return _0x5696c1['addMarkerName'](_0x40f87d),_0x5696c1;}['_refreshSuggestionsChain'](_0x364435){const _0x5156ce=Array['from'](_0x364435),_0x2af372=_0x5156ce['filter'](_0x3ff972=>'attribute'==_0x3ff972['type']);this['_refreshAttributeSuggestionsChain'](_0x2af372);const _0x3ffe54=_0x5156ce['filter'](_0x25f042=>!_0x25f042['isMultiRange']&&'attribute'!=_0x25f042['type']),_0x46fef7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5000ce=>!_0x5000ce['isMultiRange']&&'attribute'!=_0x5000ce['type']),_0x531cde=_0x46fef7['filter'](_0xea1790=>!_0x364435['has'](_0xea1790)),_0x1f2e2d=new Map(_0x46fef7['map'](_0x1e12fd=>[_0x1e12fd,this['_suggestionFactory']['getSuggestionCallback'](_0x1e12fd['type'],_0x1e12fd['subType'],'chain')])),_0x5320db=new Map(_0x46fef7['map'](_0x14aba6=>[_0x14aba6,_0x14aba6['getFirstRange']()])),_0x3d3149=new Set(),_0x3107ba=new Set();for(let _0x22f5dc=0x0;_0x22f5dc<_0x3ffe54['length'];_0x22f5dc++)_0x1b63fc(_0x3ffe54[_0x22f5dc],_0x3ffe54,_0x22f5dc+0x1);for(let _0x583719=0x0;_0x583719<_0x3ffe54['length'];_0x583719++)_0x1b63fc(_0x3ffe54[_0x583719],_0x531cde,0x0);const _0x227377=new Set();for(let _0x10f23f=0x0;_0x10f23f<_0x3ffe54['length'];_0x10f23f++){const _0x5848bc=_0x3ffe54[_0x10f23f];!_0x3107ba['has'](_0x5848bc)&&_0x5848bc['previous']&&(_0x227377['add'](_0x5848bc['previous']),_0x5848bc['previous']['next']===_0x5848bc&&(_0x5848bc['previous']['next']=null),_0x5848bc['previous']=null),!_0x3d3149['has'](_0x5848bc)&&_0x5848bc['next']&&(_0x227377['add'](_0x5848bc['next']),_0x5848bc['next']['previous']===_0x5848bc&&(_0x5848bc['next']['previous']=null),_0x5848bc['next']=null);}function _0x1b63fc(_0x78a1a6,_0x1ca7ea,_0x1dd38e){for(let _0x3e4336=_0x1dd38e;_0x3e4336<_0x1ca7ea['length'];_0x3e4336++){const _0x25d566=_0x57f29a(_0x78a1a6,_0x1ca7ea[_0x3e4336]);_0x25d566&&(_0x25d566[0x0]['next']=_0x25d566[0x1],_0x25d566[0x1]['previous']=_0x25d566[0x0],_0x3d3149['add'](_0x25d566[0x0]),_0x3107ba['add'](_0x25d566[0x1]));}}function _0x57f29a(_0x12e878,_0x446b12){if(_0x12e878['author']['id']!==_0x446b12['author']['id'])return null;const _0x5de2c0=_0x1f2e2d['get'](_0x12e878)(_0x12e878,_0x446b12,_0x5320db['get'](_0x12e878),_0x5320db['get'](_0x446b12));if(!_0x5de2c0)return null;return _0x1f2e2d['get'](_0x446b12)(_0x12e878,_0x446b12,_0x5320db['get'](_0x12e878),_0x5320db['get'](_0x446b12))?_0x5de2c0[0x1]['commentThread']&&_0x5de2c0[0x1]['commentThread']['length']?null:_0x5de2c0:null;}_0x227377['size']&&this['_refreshSuggestionsChain'](_0x227377);}['_refreshAttributeSuggestionsChain'](_0xd69967){if(0x0==_0xd69967['length'])return;const _0x2e3447=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x143f94=>'attribute'==_0x143f94['type']&&_0x143f94['_isDataLoaded']),_0x5b7fe2=[],_0x3dec0f=new Map();for(const _0x312838 of _0x2e3447){const _0x977ef9=_0x328cfd(_0x312838['attributes']);_0x3dec0f['has'](_0x977ef9)||(_0x3dec0f['set'](_0x977ef9,_0x5b7fe2['length']),_0x5b7fe2['push']([]));const _0x2edb79=_0x3dec0f['get'](_0x977ef9);_0x5b7fe2[_0x2edb79]['push'](_0x312838);}!(function(){_0x5b7fe2['sort']((_0x44b401,_0x33152c)=>{const _0x1f8e9b=_0x44b401[0x0]['createdAt'],_0x4d9075=_0x33152c[0x0]['createdAt'];return _0x1f8e9b==_0x4d9075?_0x44b401[0x0]['attributes']['groupId']<_0x33152c[0x0]['attributes']['groupId']?-0x1:0x1:_0x1f8e9b<_0x4d9075?-0x1:0x1;});for(const _0x3e679f of _0x5b7fe2)_0x3e679f['sort']((_0x4fa014,_0x329441)=>_0x4fa014['id']<_0x329441['id']?-0x1:0x1);}());for(let _0x3f1cec=0x0;_0x3f1cec<_0x5b7fe2['length'];_0x3f1cec++){if(0x0==_0x5b7fe2[_0x3f1cec]['length'])continue;const _0x12c2a6=[];for(let _0x12bd3b=_0x3f1cec+0x1;_0x12bd3b<_0x5b7fe2['length'];_0x12bd3b++)0x0!=_0x5b7fe2[_0x12bd3b]['length']&&_0x543c5d(_0x5b7fe2[_0x3f1cec],_0x5b7fe2[_0x12bd3b])&&_0x12c2a6['push'](_0x12bd3b);for(const _0x5218fa of _0x12c2a6)_0x5b7fe2[_0x3f1cec]=_0x5b7fe2[_0x3f1cec]['concat'](_0x5b7fe2[_0x5218fa]),_0x5b7fe2[_0x5218fa]=[];}for(const _0x15f978 of _0x5b7fe2)for(let _0x1c4c21=0x0;_0x1c4c21<_0x15f978['length'];_0x1c4c21++){const _0x2704c6=_0x15f978[_0x1c4c21+0x1]||null;_0x15f978[_0x1c4c21]['next']!==_0x2704c6&&(_0x15f978[_0x1c4c21]['next']=_0x2704c6);}for(const _0x15ad73 of _0x5b7fe2)for(let _0x30a666=0x0;_0x30a666<_0x15ad73['length'];_0x30a666++){const _0x257bf3=_0x15ad73[_0x30a666-0x1]||null;_0x15ad73[_0x30a666]['previous']!==_0x257bf3&&(_0x15ad73[_0x30a666]['previous']=_0x257bf3);}function _0x543c5d(_0x594cba,_0xe142d7){if(_0x594cba[0x0]['attributes']['groupId']!==_0xe142d7[0x0]['attributes']['groupId']&&_0x594cba[0x0]['author']!==_0xe142d7[0x0]['author'])return!0x1;if(!function(_0x24ea04,_0x597193){if(!_0x24ea04['hasComments']&&!_0x597193['hasComments'])return!0x0;if(_0x24ea04['hasComments']&&_0x597193['hasComments'])return!0x1;if(_0x24ea04['hasComments']&&_0x597193['createdAt']<_0x24ea04['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x597193['hasComments']&&_0x24ea04['createdAt']<_0x597193['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x594cba[0x0],_0xe142d7[0x0]))return!0x1;const _0x276262=Tt(_0x594cba[0x0]['attributes'],'groupId'),_0x53e048=Tt(_0xe142d7[0x0]['attributes'],'groupId');if(!_0x18b24e(_0x276262,_0x53e048))return!0x1;return!!_0x594cba['every'](_0x202505=>_0xe142d7['some'](_0x452113=>_0x202505['getFirstRange']()['isEqual'](_0x452113['getFirstRange']())))&&_0xe142d7['every'](_0x443a4d=>_0x594cba['some'](_0x43697f=>_0x443a4d['getFirstRange']()['isEqual'](_0x43697f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x45a426){const _0xdf849e=Array['from'](_0x45a426),_0x4542b6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x392071=_0x4542b6['filter'](_0x332d54=>!_0x45a426['has'](_0x332d54)),_0xbb4f88=new Map(_0xdf849e['map'](_0x291e94=>[_0x291e94,this['_suggestionFactory']['getSuggestionCallback'](_0x291e94['type'],_0x291e94['subType'],'join')])),_0x367518=new Map(_0x4542b6['map'](_0x475fd6=>[_0x475fd6,_0x475fd6['getRanges']()]));for(let _0x2c12ec=0x0;_0x2c12ec<_0xdf849e['length'];_0x2c12ec++){if(_0x5a2fd2(this,_0xdf849e[_0x2c12ec],_0xdf849e,_0x2c12ec+0x1))return!0x0;}for(let _0x437d05=0x0;_0x437d05<_0xdf849e['length'];_0x437d05++){if(_0x5a2fd2(this,_0xdf849e[_0x437d05],_0x392071,0x0))return!0x0;}return!0x1;function _0x5a2fd2(_0x441936,_0x59bf76,_0x5c8f7a,_0x37f79f){for(let _0x26b299=_0x37f79f;_0x26b299<_0x5c8f7a['length'];_0x26b299++){const _0x419d42=_0x5c8f7a[_0x26b299];if(_0x419d42['type']!==_0x59bf76['type']||_0x419d42['author']['id']!==_0x59bf76['author']['id']||_0x419d42['subType']!==_0x59bf76['subType'])continue;if(!Jt(_0x59bf76,_0x419d42))continue;if('attribute'==_0x59bf76['type']&&_0x59bf76['data']['oldValue']!=_0x419d42['data']['oldValue'])continue;if('attribute'==_0x59bf76['type']&&_0x441936['_isBlockAttribute'](_0x59bf76['data']['key']))continue;if('formatBlock'==_0x59bf76['type']){const _0x4b6473=_0x441936['editor']['model'],_0x6c8dce=_0x59bf76['getContainedElement']();if(_0x6c8dce&&(_0x4b6473['schema']['isObject'](_0x6c8dce)||_0x4b6473['schema']['isLimit'](_0x6c8dce)))continue;}const _0x36c924=_0xbb4f88['get'](_0x59bf76),_0x3a92a1=_0x367518['get'](_0x59bf76),_0x9cd130=_0x367518['get'](_0x419d42),_0x345b7f=_0x59bf76['commentThread']&&_0x59bf76['commentThread']['length'],_0x5e1096=_0x419d42['commentThread']&&_0x419d42['commentThread']['length'];if(!_0x345b7f&&_0x36c924(_0x9cd130,_0x3a92a1))return _0x441936['_joinSuggestions'](_0x419d42,_0x59bf76),_0x367518['delete'](_0x59bf76),!0x0;if(!_0x5e1096&&_0x36c924(_0x3a92a1,_0x9cd130))return _0x441936['_joinSuggestions'](_0x59bf76,_0x419d42),_0x367518['delete'](_0x419d42),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1835d6,_0x337bd4){if(_0x1835d6['isMultiRange']){for(const _0xa6750a of _0x337bd4['getRanges']())_0x1835d6['addRange'](_0xa6750a);}else{const _0xc2544=_0x337bd4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1835d6,this['_model']['createRange'](_0x1835d6['getFirstRange']()['start'],_0xc2544));}_0x337bd4['removeMarkers']();}['_getMarkerAnnouncementText'](_0xa39b8a,_0x55a17f,_0x3c9186){const _0x5b5b33=_0xa39b8a['startsWith']('format')||_0xa39b8a['startsWith']('attribute')?'FORMATTING':_0xa39b8a['toUpperCase']();return o(this['editor']['locale'],_0x55a17f+'_'+_0x5b5b33+'_SUGGESTION_ANNOUNCEMENT',_0x3c9186);}['_initAriaMarkerChangeAnnouncements'](){const _0x4f3984=this['editor'];if(!_0x4f3984['ui'])return;const {ariaLiveAnnouncer:_0x2cf724}=_0x4f3984['ui'];_0x4a6b6f(this['_model'],({left:_0x40bcc7,entered:_0x2e0ea9})=>{for(const _0x491818 of _0x40bcc7){const {group:_0xf0ab29,type:_0x23a9a8}=this['_splitMarkerName'](_0x491818['name']);if('suggestion'===_0xf0ab29){_0x2cf724['announce'](this['_getMarkerAnnouncementText'](_0x23a9a8,'LEAVE'));break;}}for(const _0x209d29 of _0x2e0ea9){const {group:_0x2f6fd,type:_0x69ee75}=this['_splitMarkerName'](_0x209d29['name']);if('suggestion'===_0x2f6fd){_0x2cf724['announce'](this['_getMarkerAnnouncementText'](_0x69ee75,'ENTER',_0xe2a69d(_0x37a7c7)));break;}}});}['_processAttributeChanges'](_0x38414a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x373a37=this['editor'],_0x2fc11c=_0x373a37['model']['document']['differ']['getChanges']();if(0x0==_0x2fc11c['length'])return!0x1;const _0x2bfc95=[],_0x25e5df=_0x2fc11c['filter'](_0x6cda0=>'attribute'==_0x6cda0['type']),_0x1e0be7=_0x2fc11c['filter'](_0x4c9220=>'insert'==_0x4c9220['type']&&'$text'!=_0x4c9220['name']),_0x4e57f9=_0x2fc11c['filter'](_0x3b0ab2=>'remove'==_0x3b0ab2['type']&&'$text'!=_0x3b0ab2['name']);for(const _0x4e6bcf of _0x25e5df)_0x2bfc95['push']({'key':_0x4e6bcf['attributeKey'],'newValue':_0x4e6bcf['attributeNewValue'],'oldValue':_0x4e6bcf['attributeOldValue'],'range':Pt(_0x4e6bcf['range'],_0x373a37['model'])});for(const _0x1daaa3 of _0x1e0be7){const _0x4ffc9d=_0x4e57f9['find'](_0x1d4079=>_0x1d4079['position']['isEqual'](_0x1daaa3['position']));_0x4ffc9d&&_0x2bfc95['push']({'key':m,'newValue':_0x1daaa3['name'],'oldValue':_0x4ffc9d['name'],'range':_0x373a37['model']['createRangeOn'](_0x1daaa3['position']['nodeAfter'])});}return 0x0!=_0x2bfc95['length']&&this['_reduceExistingSuggestions'](_0x38414a,_0x2bfc95);}['_processAttributeSuggestions'](_0x26b223){let _0x3e24c4=!0x1;const _0x307f5b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20c5fd=>_0x20c5fd['data']['newRange']&&_0x20c5fd['name']['startsWith']('suggestion:attribute:'));for(const _0x3b78a3 of _0x307f5b){const {subType:_0x239607,id:_0x5b5799}=this['_splitMarkerName'](_0x3b78a3['name']),_0x20b1b6=_0x239607['split']('|')[0x0];for(const _0x287d31 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x287d31['id']!=_0x5b5799&&'attribute'==_0x287d31['type']&&_0x287d31['data']&&_0x287d31['data']['key']==_0x20b1b6&&_0x287d31['getFirstRange']()['isIntersecting'](_0x3b78a3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x287d31,_0x3b78a3['data']['newRange'],_0x26b223),_0x3e24c4=!0x0);}return _0x3e24c4;}['_recordAttributeChanges'](_0x292525){this['_recordAttributeSuggestions']=!0x0,_0x292525();}['_isRegisteredAttribute'](_0x317ae6){const _0x40a311=this['_isBlockAttribute'](_0x317ae6),_0xeeeffe=this['_inlineAttributeKeys']['has'](_0x317ae6);return _0x40a311||_0xeeeffe;}['_reduceExistingSuggestions'](_0x1b1ec9,_0x5befcb){if(0x0==_0x5befcb['length'])return!0x1;let _0x377231=!0x1;for(const _0x23793d of _0x5befcb){const _0x57b7d8=this['_findSuggestions'](_0x23793d['range'],'attribute')['filter'](_0x32310d=>!_0x32310d['meta']['isNextTo'])['map'](_0x2b737c=>_0x2b737c['suggestion']),_0x570c18=_0x328cfd({'newValue':_0x23793d['newValue']});_0x57b7d8['filter'](_0x45b503=>{const [_0x30e3ba,_0x4fe838]=_0x45b503['subType']['split']('|');return _0x30e3ba==_0x23793d['key']&&_0x4fe838!=_0x570c18;})['forEach'](_0x56e818=>{this['_reduceSuggestionAttributeRange'](_0x56e818,_0x23793d['range'],_0x1b1ec9),_0x377231=!0x0;});}return _0x377231;}['_reduceSuggestionAttributeRange'](_0x1e9622,_0x32091d,_0x5b8cd6){const _0x5ac347=_0x1e9622['getFirstRange']()['getDifference'](_0x32091d);0x0!==_0x5ac347['length']?0x1!==_0x5ac347['length']?this['_breakSuggestionMarker'](_0x1e9622,_0x32091d['start'],_0x32091d['end']):this['_setSuggestionRange'](_0x1e9622,_0x5ac347[0x0]):_0x5b8cd6['removeMarker'](_0x1e9622['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3131d6){this['_editor']=_0x3131d6,this['_model']=_0x3131d6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1fb5bf,_0x4670f8,_0x149cf9,_0x3abeb7,_0x1d5899,_0x45db8d){return new u(this['_model'],{'type':_0x1fb5bf,'subType':_0x4670f8,'id':_0x149cf9,'author':_0x3abeb7,'creator':_0x3abeb7,'attributes':_0x1d5899,'onAttributesChange':_0x45db8d,'onAccept':(..._0x2e3e0e)=>this['getSuggestionCallback'](_0x1fb5bf,_0x4670f8,'accept')(..._0x2e3e0e),'onDiscard':(..._0x41ba1c)=>this['getSuggestionCallback'](_0x1fb5bf,_0x4670f8,'discard')(..._0x41ba1c)});}['registerCustomCallback'](_0x2cf6dd,_0x5c08b2,_0x448f90,_0x566ec6){const _0x4cd3e4=_0x2cf6dd+':'+_0x5c08b2+':'+_0x448f90;this['_customCallbacks']['set'](_0x4cd3e4,_0x566ec6);}['getSuggestionCallback'](_0x505380,_0x8fa16f,_0x202e5a){const _0x1d623a=_0x505380+':'+_0x8fa16f+':'+_0x202e5a;return this['_customCallbacks']['get'](_0x1d623a)||this['_defaultCallbacks']['get'](_0x505380+':'+_0x202e5a);}['_registerDefaultCallbacks'](){const _0x2e05fb=()=>!0x1,_0x2f2810=_0x4a02eb=>{_0x4a02eb['sort']((_0x1b6c91,_0x1cb724)=>_0x1b6c91['start']['isBefore'](_0x1cb724['start'])?0x1:-0x1),this['_model']['change'](_0x1fff04=>{for(const _0x5524e9 of _0x4a02eb){let _0x3ce8fc;_0x3ce8fc=_0x5524e9['end']['isAtEnd']&&_0x5524e9['end']['parent']==_0x5524e9['start']['nodeAfter']?_0x1fff04['createSelection'](_0x5524e9['start']['nodeAfter'],'on'):_0x1fff04['createSelection'](_0x5524e9),this['_model']['deleteContent'](_0x3ce8fc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x593f2f=(_0x26e384,_0x46e609)=>{_0x46e609&&this['_model']['change'](_0x383a2e=>{const {commandName:_0x41b84e,commandParams:_0x3daa17=[]}=_0x46e609,_0x3d123f=_0x26e384['map'](_0xb1e369=>(Vt(_0xb1e369)&&(_0xb1e369=this['_model']['createRange'](_0xb1e369['end'])),_0xb1e369))['filter'](_0x26d58d=>'$graveyard'!==_0x26d58d['root']['rootName']);if(_0x3d123f['length']<0x1)return;const _0x32e9a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x22d651=>_0x1b4d08['fromRange'](_0x22d651));_0x383a2e['setSelection'](_0x3d123f);for(const _0x7415c2 of this['_editor']['commands']['commands']())_0x7415c2['refresh']();_0x3daa17['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x41b84e,..._0x3daa17);const _0x53a44a=_0x32e9a7['filter'](_0x4f44c9=>'$graveyard'!=_0x4f44c9['root']['rootName']);_0x53a44a['length']>0x0&&_0x383a2e['setSelection'](_0x53a44a);for(const _0xbe4f31 of _0x32e9a7)_0xbe4f31['detach']();});},_0x321bbc=(_0x2d6963,_0x4d47be)=>0x1==_0x2d6963['length']&&0x1==_0x4d47be['length']&&_0x2d6963[0x0]['end']['isEqual'](_0x4d47be[0x0]['start']),_0x248a81=(_0x13ba72,_0x3e35bf,_0xbbe929,_0x61e6f)=>Ht(_0x13ba72,_0x3e35bf,_0xbbe929,_0x61e6f,this['_model'])?[_0x13ba72,_0x3e35bf]:Ht(_0x3e35bf,_0x13ba72,_0x61e6f,_0xbbe929,this['_model'])?[_0x3e35bf,_0x13ba72]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2e05fb),this['_defaultCallbacks']['set']('insertion:discard',_0x2f2810),this['_defaultCallbacks']['set']('insertion:join',_0x321bbc),this['_defaultCallbacks']['set']('insertion:chain',_0x248a81),this['_defaultCallbacks']['set']('deletion:accept',_0x2f2810),this['_defaultCallbacks']['set']('deletion:discard',_0x2e05fb),this['_defaultCallbacks']['set']('deletion:join',_0x321bbc),this['_defaultCallbacks']['set']('deletion:chain',_0x248a81),this['_defaultCallbacks']['set']('formatInline:accept',_0x593f2f),this['_defaultCallbacks']['set']('formatInline:discard',_0x2e05fb),this['_defaultCallbacks']['set']('formatInline:join',_0x321bbc),this['_defaultCallbacks']['set']('formatInline:chain',_0x2e05fb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x593f2f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2e05fb),this['_defaultCallbacks']['set']('formatBlock:join',_0x321bbc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2e05fb),this['_defaultCallbacks']['set']('attribute:accept',_0x2e05fb),this['_defaultCallbacks']['set']('attribute:discard',(_0x58c506,_0xac39f0)=>{if(!_0xac39f0)return;const _0x170079=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x45d42c=>{if(_0xac39f0['key']==m)for(const _0x16c2e2 of _0x58c506){const _0x22e15f=_0x16c2e2['start']['nodeAfter'],_0x408bed=_0xac39f0['oldValue'];_0x45d42c['rename'](_0x22e15f,_0x408bed);}else{if(_0x170079['_isBlockAttribute'](_0xac39f0['key'])){for(const _0x3783d0 of _0x58c506)void 0x0!==_0xac39f0['oldValue']?_0x45d42c['setAttribute'](_0xac39f0['key'],_0xac39f0['oldValue'],_0x3783d0['start']['nodeAfter']):_0x45d42c['removeAttribute'](_0xac39f0['key'],_0x3783d0['start']['nodeAfter']);}else{for(const _0x3e78b6 of _0x58c506)_0xac39f0['oldValue']?_0x45d42c['setAttribute'](_0xac39f0['key'],_0xac39f0['oldValue'],_0x3e78b6):_0x45d42c['removeAttribute'](_0xac39f0['key'],_0x3e78b6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x321bbc);}}function Ot(_0x526d98,_0x22accb,_0x18c650){for(const _0x3738ba of _0x22accb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3738ba['root']==_0x3738ba)return!0x1;if(!_0x18c650['containsItem'](_0x3738ba))return!0x1;if(_0x526d98['isObject'](_0x3738ba)||_0x526d98['isLimit'](_0x3738ba))return!0x0;}return!0x1;}function Vt(_0x4664e8){return _0x4664e8['end']['parent']==_0x4664e8['start']['nodeAfter']&&_0x4664e8['end']['isAtStart'];}function Ut(_0x123f0a,_0x5caa52,_0x3c7804,_0x2b3d5c){const _0x280173=_0x9ed901=>!_0x9ed901['item']['is']('$textProxy')&&!_0x2b3d5c['isObject'](_0x9ed901['item']),_0x3f574a=_0x123f0a['start']['getLastMatchingPosition'](_0x280173),_0x56c004=_0x123f0a['end']['getLastMatchingPosition'](_0x280173,{'direction':'backward'});return(!_0x123f0a['start']['isEqual'](_0x3f574a)||!_0x123f0a['end']['isEqual'](_0x56c004))&&(_0x3f574a['isBefore'](_0x56c004)?_0x3c7804['updateMarker'](_0x5caa52,{'range':_0x3c7804['createRange'](_0x3f574a,_0x56c004)}):_0x3c7804['removeMarker'](_0x5caa52),!0x0);}function Gt(_0xc1041c){return _0x328cfd(_0xc1041c);}function Ft(_0x85d1c6){const _0x594902=_0x85d1c6['start']['nodeAfter'];return _0x594902&&_0x594902['is']('element');}function Pt(_0x1dde66,_0x28d81c){return null==_0x1dde66['end']['nodeBefore']&&_0x1dde66['end']['parent']==_0x1dde66['start']['nodeAfter']?Lt(_0x1dde66['start']['nodeAfter'],_0x28d81c):_0x1dde66;}function Lt(_0x175fec,_0x314d7b){const _0x26df5b=_0x314d7b['schema']['isObject'](_0x175fec)||_0x314d7b['schema']['isSelectable'](_0x175fec);return _0x314d7b['createRange'](_0x314d7b['createPositionAt'](_0x175fec,'before'),_0x26df5b?_0x314d7b['createPositionAfter'](_0x175fec):_0x314d7b['createPositionAt'](_0x175fec,'end'));}function Ht(_0x59a2fd,_0x51358a,_0x2bea30,_0x346928,_0x4aa201){if(_0x59a2fd['next'])return!0x1;if(!Jt(_0x59a2fd,_0x51358a))return!0x1;if(_0x2bea30['end']['isEqual'](_0x346928['start']))return!0x0;if(_0x59a2fd['type']!=_0x51358a['type'])return!0x1;if(!_0x2bea30['end']['isTouching'](_0x346928['start']))return!0x1;const _0x54c723=_0x4aa201['createRange'](_0x2bea30['end'],_0x346928['start'])['getWalker']();for(const _0x38377d of _0x54c723)if(['elementStart','elementEnd']['includes'](_0x38377d['type'])&&_0x4aa201['schema']['isLimit'](_0x38377d['item']))return!0x1;return!0x0;}function Jt(_0x17d5d8,_0x805a02){if(!_0x17d5d8['_isDataLoaded']||!_0x805a02['_isDataLoaded'])return!0x1;const _0x504da9=new Set(Object['keys'](_0x17d5d8['attributes'])),_0x12492c=new Set(Object['keys'](_0x805a02['attributes']));if(_0x504da9['delete']('groupId'),_0x12492c['delete']('groupId'),0x0==_0x504da9['size']&&0x0==_0x12492c['size'])return!0x0;if(_0x504da9['size']!=_0x12492c['size'])return!0x1;const _0x4c6633={..._0x17d5d8['attributes']},_0x4ae702={..._0x805a02['attributes']};return delete _0x4c6633['groupId'],delete _0x4ae702['groupId'],JSON['stringify'](_0x4c6633)==JSON['stringify'](_0x4ae702);}function qt(_0x187331,_0x2dbd6a){const _0x53c62f=zt(_0x187331['attributes']),_0x5b7ea7=zt(_0x2dbd6a);if(!_0x187331['_isDataLoaded'])return!0x1;for(const _0x4fda05 of Object['keys'](_0x5b7ea7))if(!_0x18b24e(_0x53c62f[_0x4fda05],_0x5b7ea7[_0x4fda05]))return!0x1;return!0x0;}function zt(_0x203afe){const _0x3cb49d=Object['assign']({},_0x203afe);return delete _0x3cb49d['skipNestingCheck'],delete _0x3cb49d['tablePasteChainId'],_0x3cb49d;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d3505(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2159a1,_0x3df45e,_0x5736c2,_0x5a88f7){super(),this['model']=_0x3df45e,this['view']=_0x5736c2,this['commentThreadController']=_0x5a88f7,this['_editor']=_0x2159a1,this['_acceptCommand']=_0x2159a1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2159a1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x44a8d4,_0x3a9e02)=>_0x44a8d4||_0x3a9e02),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x241d9e=>_0x241d9e&&this['_editor']['model']['canEditAt'](_0x3df45e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8e7827=>_0x8e7827&&this['_editor']['model']['canEditAt'](_0x3df45e['getRanges']())),this['_pendingAction']=null,_0x5736c2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5736c2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5736c2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5736c2,'change:isDirty',()=>{_0x5736c2['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 _0x2dc7ba=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2dc7ba);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2e5a17{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b82ee,_0x208a58,_0x334d79,_0x4e2821){super(_0x2b82ee),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x14ccef(_0x2b82ee,o(_0x2b82ee,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x208a58['authoredAt']),this['bind']('authoredAt')['to'](_0x208a58),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',_0x208a58,'authoredAt',this,'descriptionParts',(_0x17a25b,_0x5ef93e,_0x30d942)=>{const _0x58cd0a=_0x30d942['map'](_0x254696=>ls(_0x254696['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17a25b-0x1,_0x208a58['author']['name'],_0x5ef93e?_0x4e2821['formatDateTime'](_0x5ef93e):'',new DOMParser()['parseFromString'](_0x58cd0a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x57c3ba(),this['focusTracker']=new _0x4fe0ab(),this['keystrokes']=new _0x4e6d3e(),this['focusCycler']=new _0x8877cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x584ada=>_0x584ada['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x208a58,this['_localUser']=_0x334d79,this['_config']=_0x4e2821,_0x4e2821['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5edb36(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4214aa}=this['_config'];this['commentsListView']=new _0x4214aa(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',_0x1be93a=>_0x1be93a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x535a62,_0x230ec1)=>_0x535a62||!!_0x230ec1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1aacc3}=this['_config'],_0x4281da=new _0x1aacc3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21c341=_0x4281da['commentInputView'];return _0x4281da['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21c341,'value',(_0x48f383,_0x2be07e,_0x2e8e81)=>!!_0x2e8e81||_0x48f383&&!_0x2be07e),_0x21c341['on']('submit',(_0x5ec8f0,_0x76f4f9)=>{this['fire']('addComment',_0x76f4f9),_0x21c341['editor']['setData']('');}),_0x21c341['on']('cancel',()=>this['focus']()),_0x21c341['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4281da;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2364a5,_0x52f488,_0x45b400,_0x31736d){super(_0x2364a5,_0x52f488,_0x45b400,_0x31736d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29a979=>_0x29a979&&_0x29a979[0x0]?_0x29a979[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59ce39,_0x25a969)=>{let _0x2055f6='';for(const _0x169dd4 of _0x59ce39)_0x2055f6+='<p>'+ls(_0x169dd4['content'],_0x169dd4['color'])+'</p>';return _0x25a969?_0x2055f6:_0x5df24c(_0x2055f6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31736d['SuggestionView'](_0x2364a5,_0x52f488,{'formatDateTime':_0x31736d['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 _0x1832ab=this['bindTemplate'],_0x2ade5e=[this['suggestionView']];return this['commentsListView']&&_0x2ade5e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ade5e['push'](this['commentThreadInputView']),_0x2ade5e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1832ab['if']('isActive','ck-suggestion-wrapper--active'),_0x1832ab['to']('type',_0x3cb491=>'ck-suggestion-'+_0x3cb491),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':_0x1832ab['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ade5e};}['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 ce extends _0x2e5a17{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f43e8,_0x178a94,_0x344307){super(_0x4f43e8),this['_model']=_0x178a94,this['_config']=_0x344307,this['set']('description',''),this['bind']('authoredAt')['to'](_0x178a94),this['acceptButton']=this['_createButton'](o(_0x4f43e8,'Accept\x20suggestion'),_0x2512f0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4f43e8,'Discard\x20suggestion'),_0x2512f0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52e9b5(_0x4f43e8,_0x178a94['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x57c3ba([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4fe0ab(),this['keystrokes']=new _0x4e6d3e(),this['focusCycler']=new _0x8877cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x808d09=>_0x808d09['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x309724=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x309724['innerHTML']=this['description'],this['on']('change:description',(_0x55baa0,_0x1ab9ef,_0x478879)=>{_0x309724['innerHTML']=_0x478879;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x444d8e=this['bindTemplate'],_0x238f1c=[{'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']}},{'tag':'time','attributes':{'datetime':_0x444d8e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x444d8e['to']('authoredAt',_0x20b694=>this['_config']['formatDateTime'](_0x20b694))}]}]},{'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']&&_0x238f1c['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':_0x238f1c}]};}['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'](_0x1b6524,_0x228708,_0x18e403,_0x3ea5cd,_0x1b81fc){const _0x2a89be=new _0x27ae4b(this['locale']);return _0x2a89be['set']({'label':_0x1b6524,'icon':_0x228708,'tooltip':!0x0,'tooltipPosition':_0x1b81fc}),_0x2a89be['extendTemplate']({'attributes':{'class':_0x18e403}}),_0x2a89be['on']('execute',()=>{this['fire'](_0x3ea5cd,this['_model']['id']);}),_0x2a89be;}['_setupKeyboardNavigation'](){const _0x3e31ba=this['element'];this['keystrokes']['listenTo'](_0x3e31ba);for(const _0x2bb1a8 of this['focusables'])this['focusTracker']['add'](_0x2bb1a8['element']),this['keystrokes']['listenTo'](_0x2bb1a8['element']);this['keystrokes']['set']('enter',(_0x27c80e,_0x307f34)=>{_0x3e31ba===_0x27c80e['target']&&(this['focusCycler']['focusFirst'](),_0x307f34());}),this['keystrokes']['set']('esc',(_0x30a8d6,_0x22e6ba)=>{_0x3e31ba!==_0x30a8d6['target']&&(this['focus'](),_0x22e6ba());});}}var he='<!--\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-2024,\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 _0x2786a9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xcf1928,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2c894d){super(_0x2c894d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x13b7ca=this['editor']['config'];_0x13b7ca['define']('trackChanges.SuggestionThreadView',re),_0x13b7ca['define']('trackChanges.SuggestionView',ce),_0x13b7ca['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x13b7ca['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ece50,_0x561c15){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16f161,_0x35d921]of this['_handleControllerBuffer']){const _0x144e99=this['_suggestionToController']['has'](_0x16f161);_0x144e99||_0x35d921?_0x144e99&&_0x35d921&&this['_destroyController'](_0x16f161):this['_initializeController'](_0x16f161);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ece50,_0x561c15);}['init'](){const _0x3827f1=this['editor'],_0x5c2589=_0x3827f1['plugins']['get']('TrackChangesEditing'),_0x231418=_0x3827f1['plugins']['get']('Annotations'),_0x12d9f5=_0x3827f1['plugins']['get']('EditorAnnotations'),_0x1cb5e3=_0x3827f1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12d9f5['addSourceCollector'](()=>{const _0xfbe775=[];for(const [_0x5d9d90,_0x4b11d1]of Array['from'](this['_suggestionToController'])){const _0x311d55=_0x5d9d90['getAllAdjacentSuggestions'](),_0xf9407=[];for(const _0x4f0822 of _0x311d55){if(!_0x4f0822['isInContent'])continue;if(_0x4f0822['isMultiRange']){_0xf9407['push'](..._0x4f0822['getRanges']());continue;}const _0x4b6a5b=_0x4f0822['getFirstRange']();if(_0xf9407['length']>0x0){const _0xb00788=_0xf9407[0x0]['getJoined'](_0x4b6a5b);if(_0xb00788){_0xf9407[0x0]=_0xb00788;continue;}}_0xf9407['push'](_0x4b6a5b);}_0xfbe775['push']([_0x4b11d1['view'],_0xf9407]);}return _0xfbe775;}),this['listenTo'](_0x5c2589,'suggestionLoaded',(_0x504d0d,_0x527933)=>{this['listenTo'](_0x527933,'change:previous',(_0x329b93,_0x5ef08e,_0x34dc47,_0x296e72)=>{_0x527933['isInContent']&&(null==_0x34dc47?(this['_updateController'](_0x296e72['head']),this['_handleSuggestionControllerDelayed'](_0x527933,!0x1)):(this['_updateController'](_0x34dc47['head']),null==_0x296e72&&this['_handleSuggestionControllerDelayed'](_0x527933,!0x0)));}),null!==_0x527933['previous']?this['_updateController'](_0x527933['head']):this['_handleSuggestionControllerDelayed'](_0x527933,!0x1);}),this['listenTo'](_0x5c2589,'suggestionUnloaded',(_0x349ead,_0x1f8a23,_0x4ae46f)=>{this['stopListening'](_0x1f8a23,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f8a23),this['_suggestionToController']['has'](_0x1f8a23)&&this['_destroyController'](_0x1f8a23),_0x4ae46f&&this['_updateController'](_0x4ae46f['head']);}),this['listenTo'](_0x5c2589,'suggestionChanged',(_0x3a5e57,_0x56c224)=>{this['_updateController'](_0x56c224);}),this['listenTo'](_0x231418,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cb5e3,'addComment',(_0x3b700e,{threadId:_0x49b181,isFromAdapter:_0x55e93c})=>{if(_0x55e93c||!_0x5c2589['hasSuggestion'](_0x49b181))return;const _0x18b9f8=_0x5c2589['getSuggestion'](_0x49b181);this['_suggestionToController']['get'](_0x18b9f8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xb319bc=this['editor']['plugins']['get']('Annotations'),_0x4d43a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x587a7f=Array['from'](_0xb319bc['activeAnnotations'],_0x39a394=>_0x39a394['innerView'])['filter'](_0x1ce33a=>this['_viewToController']['has'](_0x1ce33a)),_0x4131fa=[];for(const _0x18180d of _0x587a7f){const _0x2a2578=this['_viewToController']['get'](_0x18180d)['model']['getAllAdjacentSuggestions']();_0x4131fa['push'](..._0x2a2578['reduce']((_0x99cedf,_0x1484a8)=>[..._0x99cedf,..._0x1484a8['getMarkerNames']()],[]));}_0x4d43a5['activeMarkers']=_0x4131fa;}['_addUIComponentsToFactory'](){const _0x4864bb=this['editor'],_0xa71c6e=_0x4864bb['locale'],_0x18b913=o(_0xa71c6e,'Track\x20changes'),_0x2da063=new Wt([{'type':'switchbutton','model':new _0x362a70({'withText':!0x0,'isToggleable':!0x0,'label':_0x18b913,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x362a70({'withText':!0x0,'label':o(_0xa71c6e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x362a70({'withText':!0x0,'label':o(_0xa71c6e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x362a70({'withText':!0x0,'label':o(_0xa71c6e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x362a70({'withText':!0x0,'label':o(_0xa71c6e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x18efe2 of _0x2da063)if(me(_0x18efe2)){const _0x10de34=_0x4864bb['commands']['get'](_0x18efe2['model']['commandName']);_0x18efe2['model']['bind']('isOn','isEnabled')['to'](_0x10de34,'value','isEnabled');}_0x4864bb['ui']['componentFactory']['add']('trackChanges',_0x4b81e9=>this['_createToolbarButton'](_0x4b81e9,_0x2da063,_0x18b913)),_0x4864bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d49e5=>this['_createMenuBarMenu'](_0x4d49e5,_0x2da063,_0x18b913));}['_createToolbarButton'](_0x3f0398,_0x452cf4,_0x1b59f6){const _0x32f945=Qt(_0x3f0398,_0x245b32),_0x59d120=this['editor']['commands']['get']('trackChanges');_0x32f945['buttonView']['set']({'tooltip':_0x1b59f6,'label':_0x1b59f6,'icon':he}),_0x32f945['buttonView']['bind']('isOn')['to'](_0x59d120,'value'),_0x32f945['buttonView']['on']('execute',()=>{_0x59d120['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x32f945,_0x452cf4,{'role':'menu'});const _0x1a2d52=[];for(const _0x1d5724 of _0x452cf4)me(_0x1d5724)&&_0x1a2d52['push'](this['editor']['commands']['get'](_0x1d5724['model']['commandName']));const _0x3d1106=_0x32f945['buttonView'];return _0x3d1106['actionView']['unbind']('isEnabled'),_0x3d1106['arrowView']['unbind']('isEnabled'),_0x3d1106['actionView']['bind']('isEnabled')['to'](_0x59d120,'isEnabled'),_0x3d1106['arrowView']['bind']('isEnabled')['toMany'](_0x1a2d52,'isEnabled',(..._0x2d36ad)=>_0x2d36ad['some'](_0x403841=>_0x403841)),_0x32f945['on']('execute',_0x41feef=>{this['editor']['execute'](_0x41feef['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x32f945;}['_createMenuBarMenu'](_0x3d58b3,_0x4eec80,_0x721324){const _0x4860ef=new Yt(_0x3d58b3),_0x4058e2=this['editor']['commands']['get']('trackChanges');_0x4860ef['buttonView']['set']({'label':_0x721324,'icon':he});const _0x160618=new Zt(_0x3d58b3);for(const _0x203d14 of _0x4eec80){if('separator'==_0x203d14['type']){_0x160618['items']['add'](new Xt(_0x3d58b3));continue;}const _0x13eb09=new te(_0x3d58b3,_0x4860ef),_0x3dcf77=new _0x11d8ae(_0x3d58b3),_0x1eeb08=_0x203d14['model'];_0x3dcf77['bind'](...Object['keys'](_0x1eeb08))['to'](_0x1eeb08),_0x3dcf77['delegate']('execute')['to'](_0x4860ef),_0x3dcf77['on']('execute',()=>{this['editor']['execute'](_0x1eeb08['commandName']),this['editor']['editing']['view']['focus']();}),_0x13eb09['children']['add'](_0x3dcf77),_0x160618['items']['add'](_0x13eb09);}return _0x4860ef['bind']('isEnabled')['to'](_0x4058e2,'isEnabled'),_0x4860ef['panelView']['children']['add'](_0x160618),_0x4860ef;}['_initializeController'](_0x45762b){const _0x22e612=this['editor'],_0x6c5106=_0x22e612['config'],_0x2c3e97=_0x22e612['plugins']['get']('Annotations'),_0x26a138=_0x22e612['plugins']['get']('CommentsRepository'),_0x51e2a7=_0x22e612['plugins']['get']('EditorAnnotations'),_0x20ddc2=_0x22e612['plugins']['get'](_0xcf1928)['me'],_0x54cf3e=_0x6c5106['get']('trackChanges')['SuggestionThreadView'],_0x12b6dd=_0x6c5106['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3c6a73,CommentThreadInputView:_0x35ab3b}=_0x22e612['plugins']['get']('CommentsUI');let _0xfea149,_0x1ab183,_0xc60b33;this['_annotationViews']['has'](_0x45762b['id'])?(_0x1ab183=this['_annotationViews']['get'](_0x45762b['id']),_0xfea149=_0x1ab183['mainView']):(_0xfea149=new _0x54cf3e(_0x22e612['locale'],_0x45762b,_0x20ddc2,{'disableComments':this['_disableComments'],'editorConfig':_0x6c5106['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x6c5106['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x6c5106['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x6c5106['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d3ebd(_0x6c5106['get']('locale')),'CommentView':_0x6c5106['get']('comments')['CommentView'],'CommentsListView':_0x3c6a73,'CommentThreadInputView':_0x35ab3b,'SuggestionView':_0x12b6dd}),_0xfea149['suggestionView']['acceptButton']['on']('execute',()=>{_0x22e612['editing']['view']['focus']();}),_0xfea149['suggestionView']['discardButton']['on']('execute',()=>{_0x22e612['editing']['view']['focus']();}),_0x1ab183=_0x2c3e97['createAnnotationView'](this['editor']['locale'],_0xfea149),_0x1ab183['bind']('isDirty')['to'](_0xfea149,'isDirty'),_0x1ab183['bind']('length')['to'](_0xfea149),_0x1ab183['bind']('type')['to'](_0xfea149,'type',_0x37857b=>'suggestion-'+_0x37857b),_0xfea149['on']('escape',()=>{_0xc60b33['fire']('escape');}),this['_annotationViews']['set'](_0x45762b['id'],_0x1ab183));const _0x18735d=_0x26a138['createCommentThreadController'](_0x45762b['commentThread'],_0xfea149),_0x3ca8f2=new ae(_0x22e612,_0x45762b,_0xfea149,_0x18735d),_0x28bd70=_0x45762b['getAllAdjacentSuggestions']()['filter'](_0x411538=>_0x411538['isInContent']);_0xfea149['descriptionParts']=_0x22e612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x28bd70),this['_suggestionToController']['set'](_0x45762b,_0x3ca8f2),this['_viewToController']['set'](_0xfea149,_0x3ca8f2),_0xc60b33=_0x2c3e97['createAnnotation']({'view':_0x1ab183,'target':()=>{const _0x2b93cb=[],_0x143d7e=_0x45762b['getAllAdjacentSuggestions']()['filter'](_0x3d83b9=>_0x3d83b9['isInContent']);for(const _0x45ab70 of _0x143d7e)_0x2b93cb['push'](..._0x45ab70['getMarkers']());return _0x2c9c7d(_0x22e612['editing'],_0x2b93cb);},'type':()=>'suggestion-'+_0x3ca8f2['view']['type']}),_0x26a138['_bindAnnotationToEditors'](_0xfea149,_0xc60b33),_0x2c3e97['add'](_0xc60b33),_0x51e2a7['registerAnnotation'](_0xc60b33);}['_destroyController'](_0x3a19ec){const _0x30977d=this['editor']['plugins']['get']('CommentsRepository'),_0x50b1e2=this['editor']['plugins']['get']('Annotations'),_0x30eadb=this['_suggestionToController']['get'](_0x3a19ec),_0x25c466=_0x30eadb['view'],_0x5e1e11=_0x50b1e2['getByInnerView'](_0x25c466);_0x30977d['_unbindEditors'](_0x25c466),_0x5e1e11&&_0x50b1e2['remove'](_0x5e1e11),this['_suggestionToController']['delete'](_0x3a19ec),this['_viewToController']['delete'](_0x25c466),_0x30eadb['destroy']();}['_updateController'](_0x215767){if(!_0x215767['isInContent']||!this['_suggestionToController']['has'](_0x215767))return;const _0x2c09ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f3503=this['_suggestionToController']['get'](_0x215767),_0x344232=_0x215767['getAllAdjacentSuggestions']();_0x3f3503['view']['descriptionParts']=_0x2c09ed['descriptionFactory']['getDescriptions'](_0x344232);}['destroy'](){for(const _0x499ad4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x499ad4);for(const _0x1ffec7 of this['_annotationViews']['values']())_0x1ffec7['mainView']['destroy']();super['destroy']();}}function me(_0x409578){return'model'in _0x409578;}class k extends _0x2786a9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2f0fc2){this['editor']['plugins']['get'](p)['adapter']=_0x2f0fc2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x121407){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x121407);}['getSuggestions']({skipNotAttached:_0x799062=!0x1,toJSON:_0x476bdc=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x799062,'toJSON':_0x476bdc});}['getSuggestion'](_0x1bf2c7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1bf2c7);}}const T=['Pagination'];class P extends _0x2786a9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x31dd6e=this['editor'];if(_0x31dd6e['config']['define']('trackChangesData.editorCreator',_0x3a3883=>{const _0x416d86=_0x31dd6e['model']['document']['getRootNames']()['reduce']((_0x1bc4b0,_0x319735)=>(_0x1bc4b0[_0x319735]='',_0x1bc4b0),{});return _0x31dd6e['constructor']['create'](_0x416d86,_0x3a3883);}),'function'!=typeof _0x31dd6e['config']['get']('trackChangesData')['editorCreator'])throw new _0x3acfd3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f4a7d){return N(this['editor'],!0x0,_0x2f4a7d);}['getDataWithDiscardedSuggestions'](_0x370961){return N(this['editor'],!0x1,_0x370961);}}class D extends _0x2786a9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xc59fb2){super(_0xc59fb2),this['result']='end';}['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 v(_0x234816){return void 0x0!==_0x234816['getRootsAttributes'];}async function N(_0x5b2c50,_0x4b45d1,_0x172206){const _0x96af64=_0x5c2404(_0x5b2c50,T);_0x96af64['plugins']['push'](p,D),_0x96af64['rootsAttributes']=v(_0x5b2c50)?_0x5b2c50['getRootsAttributes']():void 0x0;const _0x532a56=document['createDocumentFragment'](),_0xbf2365=_0x5b2c50['config']['get']('trackChangesData')['editorCreator'],_0x369bf1=await _0xbf2365(_0x96af64,()=>function(_0x4bf87a){const _0xa63ccf=document['createElement']('div');return _0x4bf87a['appendChild'](_0xa63ccf),_0xa63ccf;}(_0x532a56));!function(_0x5ccf0c,_0xa7e8d5){const _0x456854=_0x5ccf0c['model']['document']['getRootNames']()['reduce']((_0x5884cf,_0x2534cd)=>(_0x5884cf[_0x2534cd]=_0x5ccf0c['data']['get']({'rootName':_0x2534cd}),_0x5884cf),{}),_0x374af5=_0x5ccf0c['plugins']['get']('Users')['users']['map'](_0x1257a7=>({'id':_0x1257a7['id'],'name':_0x1257a7['name']})),_0xf9e20e=_0x5ccf0c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10d277=_0x5ccf0c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x411477=_0xa7e8d5['plugins']['get']('Users'),_0x34a87a=_0xa7e8d5['plugins']['get']('TrackChangesEditing'),_0x40d757=_0xa7e8d5['plugins']['get']('CommentsRepository');for(const _0x3a3c94 of _0x40d757['getCommentThreads']())_0x3a3c94['remove']();for(const _0x42a639 of _0x374af5)_0x411477['getUser'](_0x42a639['id'])||_0x411477['addUser'](_0x42a639);_0x411477['me']||_0x411477['useAnonymousUser']();for(const _0x3c9446 of _0x10d277)_0x40d757['addCommentThread'](_0x3c9446);for(const _0x4f02ac of _0xf9e20e)_0x34a87a['addSuggestionData'](_0x4f02ac);_0xa7e8d5['data']['set'](_0x456854);}(_0x5b2c50,_0x369bf1),_0x369bf1['execute'](_0x4b45d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c4963=v(_0x369bf1)?_0x369bf1['getFullData'](_0x172206):_0x369bf1['data']['get'](_0x172206);return await _0x369bf1['destroy'](),_0x1c4963;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|