@ckeditor/ckeditor5-track-changes 43.2.0-alpha.3 → 43.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +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
|
-
_0x10bfdb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x181954,_0x385c4f){super(),this['id']=_0x385c4f['id'],this['type']=_0x385c4f['type'],this['subType']=_0x385c4f['subType']||null,this['author']=_0x385c4f['author'],this['creator']=_0x385c4f['creator']||_0x385c4f['author'],this['isExternal']=Boolean(_0x385c4f['attributes']&&_0x385c4f['attributes']['@external']),this['data']=null,this['_model']=_0x181954,this['_onAccept']=_0x385c4f['onAccept'],this['_onDiscard']=_0x385c4f['onDiscard'],this['_onAttributesChange']=_0x385c4f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x385c4f['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 _0x311b21=this;for(;_0x311b21['previous'];)_0x311b21=_0x311b21['previous'];return _0x311b21;}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'](_0x38f4d9){this['_markerNames']['add'](_0x38f4d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x51cef0=>this['_model']['markers']['get'](_0x51cef0))['filter'](_0xd96e3e=>_0xd96e3e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1309fe=>{for(const _0x174d9b of this['getMarkers']())_0x1309fe['removeMarker'](_0x174d9b);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f30bc){this['_model']['change'](_0x2b1424=>{_0x2b1424['removeMarker'](_0x2f30bc);}),this['_markerNames']['delete'](_0x2f30bc);}['addRange'](_0x3f6f42){const _0x5e729f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5e729f),this['_model']['change'](_0x2897fa=>{_0x2897fa['addMarker'](_0x5e729f,{'range':_0x3f6f42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x401df8){for(const _0x58dff2 of this['getRanges']())if(_0x58dff2['isIntersecting'](_0x401df8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x123576=>_0x123576['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x508be5,_0x42993c)=>[..._0x508be5,..._0x42993c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27ecf8=this['getRanges']();if(0x1!=_0x27ecf8['length'])return null;const _0x103ec4=_0x27ecf8[0x0],_0xe03844=_0x103ec4['start']['nodeAfter'],_0x8c0377=_0x103ec4['end']['nodeBefore'];return _0xe03844 instanceof _0x49e6c5?_0xe03844!=_0x8c0377?null:_0xe03844: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 _0x4a3880=[];let _0x5d1d49=this['head'];for(;_0x5d1d49;)_0x4a3880['push'](_0x5d1d49),_0x5d1d49=_0x5d1d49['next'];return _0x4a3880;}['setAttribute'](_0x3672a3,_0x39d441){const _0x22543f=_0x38eea0(this['attributes']);_0x43969f(_0x22543f,_0x3672a3,_0x39d441),_0x11e4b7(_0x22543f,this['attributes'])||(this['attributes']=_0x22543f,this['_onAttributesChange'](_0x22543f));}['removeAttribute'](_0x22ce1e){const _0xbb3f6f=_0x38eea0(this['attributes']);_0x467e43(_0xbb3f6f,_0x22ce1e),_0x11e4b7(_0xbb3f6f,this['attributes'])||(this['attributes']=_0xbb3f6f,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 _0x4cf4cc()['substr'](0x1,0x5);}}function o(_0x32c8f9,_0x2548a1,_0x44483e){const t=_0x32c8f9['t'];switch(_0x2548a1){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',_0x44483e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44483e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44483e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44483e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44483e);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',_0x44483e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44483e);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',_0x44483e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44483e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44483e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44483e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44483e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44483e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44483e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44483e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44483e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44483e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44483e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44483e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44483e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44483e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44483e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44483e);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'},_0x44483e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44483e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44483e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44483e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44483e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44483e);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'},_0x44483e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44483e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44483e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44483e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44483e);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'},_0x44483e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44483e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44483e);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'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44483e);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'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2548a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x400c0d,_0xacceb7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x400c0d,this['_locale']=_0xacceb7;}['getDescriptions'](_0x254211){const _0x3ce6f7=[],_0x57edf6=new Set(),_0x213eb3=new Set();for(let _0x5e5585=0x0;_0x5e5585<_0x254211['length'];_0x5e5585++){const _0x579295=_0x254211[_0x5e5585];if(!_0x579295['isInContent'])continue;const _0x3b1f39=this['_handleCustomCallbackDescription'](_0x579295);if(_0x3b1f39){if(null!=_0x579295['subType']){if(_0x57edf6['has'](_0x579295['subType']))continue;_0x57edf6['add'](_0x579295['subType']);}_0x3ce6f7['push'](_0x3b1f39);}else{if('attribute'!=_0x579295['type'])'insertion'!=_0x579295['type']&&'deletion'!=_0x579295['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ce6f7,_0x579295,_0x254211[_0x5e5585+0x1]);else{const _0x3bcd81=_0x579295['data']['key'];if(_0x213eb3['has'](_0x3bcd81))continue;_0x213eb3['add'](_0x579295['data']['key']),_0x3bcd81==m?this['_handleRenameSuggestionDescription'](_0x3ce6f7,_0x579295):this['_handleAttributeSuggestionDescription'](_0x3ce6f7,_0x579295);}}}return this['_resolveDescriptionItems'](_0x3ce6f7);}['registerDescriptionCallback'](_0x418626){this['_customCallbacks']['push'](_0x418626);}['registerElementLabel'](_0x1de7ac,_0x2d0ea1,_0x3852be=_0x2219d1['normal']){'function'==typeof _0x1de7ac?_0x45ffc7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1de7ac,'label':_0x2d0ea1,'priority':_0x3852be}):this['_itemLabels']['set'](_0x1de7ac,_0x2d0ea1);}['registerAttributeLabel'](_0x11f80b,_0x5e2f45){this['_attributeLabels']['set'](_0x11f80b,_0x5e2f45);}['getItemLabel'](_0x25ee4f,_0x309a85=0x1){let _0xe5a6a2;for(const _0x4e914f of this['_itemLabelsCallbacks'])if(_0x4e914f['matchingCallback'](_0x25ee4f)){_0xe5a6a2=_0x4e914f['label'];break;}return _0xe5a6a2||(_0xe5a6a2=this['_itemLabels']['get'](_0x25ee4f['name'])),_0xe5a6a2?_0xe5a6a2(_0x309a85):0x1!==_0x309a85?_0x309a85+'\x20'+_0x25ee4f['name']+'s':''+_0x25ee4f['name'];}['_addDescriptionItems'](_0x54ce2c,_0xfa48c4){const _0x2d2b27=_0xfa48c4['getFirstRange']()['getWalker'](),_0xfdb781='insertion'==_0xfa48c4['type']?'add':'remove';for(const _0x253383 of _0x2d2b27){const _0x156156=_0x253383['item'],_0x4730c1=_0x54ce2c[_0x54ce2c['length']-0x1];if(_0x156156['is']('$textProxy'))_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),_0x4730c1&&'text'==_0x4730c1['type']?_0x4730c1[_0xfdb781]+=_0x156156['data']:_0x54ce2c['push']({'type':'text','add':'add'==_0xfdb781?_0x156156['data']:'','remove':'remove'==_0xfdb781?_0x156156['data']:''});else{if(this['_schema']['isObject'](_0x156156)){const _0x589282=_0x156156;if(_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),'elementEnd'==_0x253383['type'])continue;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'Object'&&_0x4730c1['element']['name']==_0x589282['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'Object','element':_0x589282,'quantity':0x1}),_0x2d2b27['skip'](_0xdcdbd0=>!('elementEnd'==_0xdcdbd0['type']&&_0xdcdbd0['item']==_0x156156));}else{if(this['_schema']['checkChild'](_0x156156,'$text')||_0x156156['is']('element','softBreak')){const _0x5e1dbf=_0x156156;if('add'==_0xfdb781&&'elementStart'==_0x253383['type']||'remove'==_0xfdb781&&'elementEnd'==_0x253383['type'])continue;if(_0x4730c1&&-0x1==_0x4730c1['type']['indexOf']('Container')){'text'==_0x4730c1['type']&&(_0x4730c1[_0xfdb781]+='\x0a');continue;}let _0x886b5c;if(_0x886b5c='add'==_0xfdb781?_0x5e1dbf['nextSibling']&&!this['_schema']['isObject'](_0x5e1dbf['nextSibling'])?_0x5e1dbf['nextSibling']:null:_0x5e1dbf['previousSibling']&&!this['_schema']['isObject'](_0x5e1dbf['previousSibling'])?_0x5e1dbf['previousSibling']:null,_0x5e1dbf['isEmpty']||_0x886b5c&&_0x886b5c['isEmpty']){const _0x3eaa41=_0x886b5c&&_0x886b5c['isEmpty']?_0x886b5c:_0x5e1dbf;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'EmptyContainer'&&_0x4730c1['element']['name']==_0x3eaa41['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'EmptyContainer','element':_0x3eaa41,'quantity':0x1});}else _0x54ce2c['push']({'type':_0xfdb781+'Container','element':_0x5e1dbf});}}}}}['_resolveDescriptionItems'](_0x19edf2){const _0x2cd287=this['_locale'],_0x552c04=[],_0x2b5d4b=[],_0x1d5e3a=[];for(const _0x5e2821 of _0x19edf2)switch(_0x5e2821['type']){case'text':if(_0x5e2821['add']=_0x5e2821['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5e2821['remove']=_0x5e2821['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5e2821['add']&&''!=_0x5e2821['remove']){_0x552c04['push']({'type':'replace','content':o(_0x2cd287,'REPLACE_TEXT',['\x22'+_0x5e2821['remove']+'\x22','\x22'+_0x5e2821['add']+'\x22'])});continue;}if(null!=_0x5e2821['add']['match'](/^ +$/)){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['add']['length']))});continue;}if(null!=_0x5e2821['remove']['match'](/^ +$/)){_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['remove']['length']))});continue;}if(''!=_0x5e2821['add']){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0','\x22'+_0x5e2821['add']+'\x22')});continue;}_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0','\x22'+_0x5e2821['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addContainer':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Split:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeContainer':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Merge:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addFormat':_0x2b5d4b['push'](_0x5e2821['key']);continue;case'removeFormat':_0x1d5e3a['push'](_0x5e2821['key']);continue;default:_0x552c04['push'](_0x5e2821);}if(_0x2b5d4b['length']){const _0x5732ac=_0x2b5d4b['map'](_0x5e0bd4=>this['_attributeLabels']['has'](_0x5e0bd4)?this['_attributeLabels']['get'](_0x5e0bd4):_0x5e0bd4)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5732ac)});}if(_0x1d5e3a['length']){const _0x3f6ed7=_0x1d5e3a['map'](_0x492cec=>this['_attributeLabels']['has'](_0x492cec)?this['_attributeLabels']['get'](_0x492cec):_0x492cec)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3f6ed7)});}return _0x552c04;}['_handleCustomCallbackDescription'](_0x534e63){for(const _0x42e00d of this['_customCallbacks']){const _0x149627=_0x42e00d(_0x534e63);if(_0x149627&&'type'in _0x149627)return _0x149627;}}['_handleAttributeSuggestionDescription'](_0x2d2f4b,_0x35bf0b){const _0x5f50d0=_0x35bf0b['data'],_0x2852a8=void 0x0===_0x5f50d0['newValue']?'removeFormat':'addFormat';_0x2d2f4b['push']({'type':_0x2852a8,'key':_0x5f50d0['key']});}['_handleRenameSuggestionDescription'](_0x4dc55b,_0x541007){_0x4dc55b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x541007['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c3e0d,_0x51ac9b,_0xba3cc6){if(this['_addDescriptionItems'](_0x3c3e0d,_0x51ac9b),_0xba3cc6&&_0xba3cc6['getFirstRange']()&&!_0x51ac9b['getFirstRange']()['end']['isEqual'](_0xba3cc6['getFirstRange']()['start'])){const _0x53e7c2=_0x3c3e0d[_0x3c3e0d['length']-0x1],_0x2dc599='insertion'==_0x51ac9b['type']?'add':'remove';_0x53e7c2&&'text'==_0x53e7c2['type']&&(_0x53e7c2[_0x2dc599]+='\x0a');}}}class V extends _0x4ba4b5{['afterInit'](){const _0x51c1a2=this['editor'],_0x1bb2fc=_0x51c1a2['plugins']['get']('TrackChangesEditing');_0x51c1a2['commands']['get']('showAIAssistant')&&_0x1bb2fc['enableCommand']('showAIAssistant');}}class U extends _0x4ba4b5{['afterInit'](){const _0x592f6d=this['editor'],_0x3be68a=_0x592f6d['locale'];if(!_0x592f6d['plugins']['has']('AlignmentEditing'))return;const _0x171e25=_0x592f6d['plugins']['get']('TrackChangesEditing');_0x171e25['enableDefaultAttributesIntegration']('alignment'),_0x171e25['registerBlockAttribute']('alignment'),_0x171e25['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3be68a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8338=this['editor'],_0x1249f4=_0x1f8338['locale'];_0x1f8338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dfa8d=>{if('formatBlock'!=_0x4dfa8d['type'])return;const {data:_0x392e44}=_0x4dfa8d;if(_0x392e44&&'alignment'==_0x392e44['commandName']){const _0x298e59=_0x392e44['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1249f4,'*Format:*\x20%0',function(_0x1fbef1){switch(_0x1fbef1){case'left':return o(_0x1249f4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1249f4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1249f4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1249f4,'FORMAT_JUSTIFY_TEXT');}}(_0x298e59))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4ba4b5{['afterInit'](){const _0x5d0f68=this['editor'],_0x269500=_0x5d0f68['plugins']['get']('TrackChangesEditing'),_0x234f99=_0x5d0f68['locale'];for(const _0x52c6b0 of ti){if(!_0x5d0f68['plugins']['has'](_0x52c6b0))continue;const _0xa5f234=_0x52c6b0['slice'](0x0,-0x7)['toLowerCase'](),_0x3d1d4a='FORMAT_'+_0xa5f234['toUpperCase']();_0x269500['enableDefaultAttributesIntegration'](_0xa5f234),_0x269500['registerInlineAttribute'](_0xa5f234),_0x269500['descriptionFactory']['registerAttributeLabel'](_0xa5f234,o(_0x234f99,_0x3d1d4a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7686=this['editor'],_0xc7fc4c=_0x2d7686['locale'],_0x2bd578=_0x2d7686['plugins']['get']('TrackChangesEditing');function _0x353725(_0x12e61f,_0x20d2a8){_0x2bd578['descriptionFactory']['registerDescriptionCallback'](_0x5ec747=>{if('formatInline'!=_0x5ec747['type'])return;const {data:_0x103407}=_0x5ec747;return _0x103407&&_0x103407['commandName']===_0x12e61f?_0x103407['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc7fc4c,'*Format:*\x20%0',_0x20d2a8)}:{'type':'format','content':o(_0xc7fc4c,'*Remove\x20format:*\x20%0',_0x20d2a8)}:void 0x0;});}_0x353725('bold',o(_0xc7fc4c,'FORMAT_BOLD')),_0x353725('italic',o(_0xc7fc4c,'FORMAT_ITALIC')),_0x353725('underline',o(_0xc7fc4c,'FORMAT_UNDERLINE')),_0x353725('code',o(_0xc7fc4c,'FORMAT_CODE')),_0x353725('strikethrough',o(_0xc7fc4c,'FORMAT_STRIKETHROUGH')),_0x353725('subscript',o(_0xc7fc4c,'FORMAT_SUBSCRIPT')),_0x353725('superscript',o(_0xc7fc4c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4ba4b5{['afterInit'](){const _0x112042=this['editor'],_0xa0e274=_0x112042['locale'];if(!_0x112042['plugins']['has']('BlockQuoteEditing'))return;const _0x5d099b=_0x112042['plugins']['get']('TrackChangesEditing'),_0x52ef35=this['editor']['commands']['get']('blockQuote');_0x5d099b['enableCommand']('blockQuote',(_0x2ac8f7,_0x239e32={})=>{const _0xc90c78=this['editor']['model']['document']['selection'],_0x502d96=_0x239e32&&void 0x0!==_0x239e32['forceValue']?_0x239e32['forceValue']:!_0x52ef35['value'];let _0x159ced=[];if(_0x502d96){const _0x260966=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x7a8e38=>oo(_0x7a8e38)||function(_0x5d2a74,_0x43f79f){const _0x4a818b=_0x43f79f['checkChild'](_0x5d2a74['parent'],'blockQuote'),_0x2f09f1=_0x43f79f['checkChild'](['$root','blockQuote'],_0x5d2a74);return _0x4a818b&&_0x2f09f1;}(_0x7a8e38,this['editor']['model']['schema']));_0x159ced=to(_0x260966,_0x112042['model']);}else{const _0x10880c=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x314d59=>oo(_0x314d59));_0x159ced=to(_0x10880c,_0x112042['model']);}_0x112042['model']['change'](()=>{for(const _0x3fb06a of _0x159ced)_0x5d099b['markBlockFormat'](_0x3fb06a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x502d96}]});});}),_0x5d099b['descriptionFactory']['registerDescriptionCallback'](_0x18534a=>{const {data:_0x491933}=_0x18534a;if(_0x491933&&'blockQuote'==_0x491933['commandName']){const _0x4fe5e6=o(_0xa0e274,'ELEMENT_BLOCK_QUOTE');return _0x491933['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa0e274,'*Set\x20format:*\x20%0',_0x4fe5e6)}:{'type':'format','content':o(_0xa0e274,'*Remove\x20format:*\x20%0',_0x4fe5e6)};}});}}function oo(_0x36a681){return'blockQuote'==_0x36a681['parent']['name'];}class L extends _0x4ba4b5{['afterInit'](){const _0xe8669=this['editor'];_0xe8669['plugins']['has']('CaseChange')&&(_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4ba4b5{['afterInit'](){const _0x643701=this['editor'];_0x643701['commands']['get']('ckbox')&&_0x643701['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4ba4b5{['afterInit'](){const _0x4f9482=this['editor'];if(!_0x4f9482['plugins']['has']('CodeBlock'))return;const _0x452540=_0x4f9482['plugins']['get']('TrackChangesEditing'),_0x53014e=_0x4f9482['locale'],_0x589e39=_0x4f9482['config']['get']('codeBlock')['languages'],_0x5e2874=_0x4f9482['commands']['get']('codeBlock');_0x452540['enableCommand']('indentCodeBlock'),_0x452540['enableCommand']('outdentCodeBlock'),_0x452540['enableCommand']('codeBlock',(_0x74496a,_0x14e6c4={})=>{const _0xfb1e7b=_0x4f9482['model'],_0x3d8fe3=_0x4f9482['model']['document']['selection'],_0x120def=_0x14e6c4&&void 0x0!==_0x14e6c4['forceValue']?_0x14e6c4['forceValue']:!_0x5e2874['value'];let _0x2b15e7;_0x14e6c4['language']||(_0x14e6c4['language']=_0x589e39[0x0]['language']),_0x2b15e7=_0x120def?Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x1697a4=>eo(_0x1697a4)||function(_0x2a4696,_0x38ab7e){if(_0x2a4696['is']('rootElement')||_0x38ab7e['isLimit'](_0x2a4696))return!0x1;return _0x38ab7e['checkChild'](_0x2a4696['parent'],'codeBlock');}(_0x1697a4,_0xfb1e7b['schema'])):Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x45f00d=>eo(_0x45f00d));const _0xfb6cf4=to(_0x2b15e7,_0xfb1e7b);_0xfb1e7b['change'](()=>{for(const _0xe2dec2 of _0xfb6cf4)_0x452540['markBlockFormat'](_0xe2dec2,{'commandName':'codeBlock','commandParams':[{..._0x14e6c4,'forceValue':_0x120def}],'formatGroupId':'blockName'});});}),(_0x452540['descriptionFactory']['registerElementLabel']('codeBlock',_0x54fadf=>o(_0x53014e,'ELEMENT_CODE_BLOCK',_0x54fadf)),_0x452540['descriptionFactory']['registerDescriptionCallback'](_0x4a5837=>{if('formatBlock'!=_0x4a5837['type'])return;const _0x3572fc=_0x53014e['t'],{data:_0x34f1fd}=_0x4a5837;if(!_0x34f1fd||'codeBlock'!=_0x34f1fd['commandName'])return;const _0x1520be=_0x34f1fd['commandParams'][0x0]['language'],_0x2a088d=_0x3572fc(_0x589e39['find'](_0x18222e=>_0x18222e['language']===_0x1520be)['label'])['toLowerCase']();return _0x34f1fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53014e,'*Set\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a088d+')')}:{'type':'format','content':o(_0x53014e,'*Remove\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x42ecd4){return'codeBlock'==_0x42ecd4['name'];}class q extends _0x4ba4b5{['afterInit'](){const _0x4bab85=this['editor'];if(!_0x4bab85['plugins']['has']('CommentsEditing'))return;_0x4bab85['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x513c55,_0x40b937,_0xc5d347){const _0x5a7e46=[];for(const _0x5a7832 of _0x40b937['getItems']())_0x5a7832['hasAttribute'](_0x513c55)&&_0x5a7e46['push'](_0xc5d347['createRangeOn'](_0x5a7832));return _0x5a7e46;}function _e(_0x38d08f,_0x27fc9d,{showActiveMarker:_0xabfecf=!0x0}={}){const _0x96b8c3=_0x38d08f['plugins']['get']('TrackChangesEditing');return(_0x59a53f,_0x3d038d,_0x31bcfa)=>{if(!_0x31bcfa['consumable']['test'](_0x3d038d['markerRange'],_0x59a53f['name']))return;const _0x2fa740=_0x3d038d['markerRange']['getWalker'](),_0x143328=_0x3d038d['markerRange']['start'],_0x1e8f94=_0x38d08f['model']['schema'];let _0x29357d=null,_0x51acfb=null,_0x4d7b19=!0x1,_0x95f27=!0x1;for(const _0x1331fc of _0x2fa740){const _0x544caf=_0x1331fc['item'];_0x4d7b19=_0x4d7b19||_0x1e8f94['isContent'](_0x544caf);const _0x39592d=_0x31bcfa['mapper']['toViewElement'](_0x544caf);if(_0x39592d&&_0x39592d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1331fc['type']&&(_0x1e8f94['isBlock'](_0x544caf)&&!_0x1e8f94['isLimit'](_0x544caf)&&(_0x544caf['nextSibling']||_0x143328['isAtEnd']?_0x29357d&&_0x29357d['parent']==_0x544caf||(_0x29357d=_0x544caf,_0x60a8b7(_0x1331fc['previousPosition']),_0x95f27=!0x0):_0x51acfb=_0x51acfb||_0x1331fc['previousPosition']));}function _0x60a8b7(_0x3cad45){const {authorId:_0x247277}=_0x96b8c3['_splitMarkerName'](_0x3d038d['markerName']),_0x1a0e84=_0x31bcfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27fc9d,'data-author-id':_0x247277}),_0x1010d3=_0x31bcfa['mapper']['toViewPosition'](_0x3cad45);_0xabfecf&&_0x96b8c3['activeMarkers']['includes'](_0x3d038d['markerName'])&&_0x31bcfa['writer']['addClass']('ck-suggestion-marker--active',_0x1a0e84),_0x31bcfa['writer']['insert'](_0x1010d3,_0x1a0e84),_0x31bcfa['mapper']['bindElementToMarker'](_0x1a0e84,_0x3d038d['markerName']);}_0x4d7b19||_0x95f27||!_0x51acfb||_0x60a8b7(_0x51acfb);};}class z extends _0x4ba4b5{static get['requires'](){return[_0x4bb97e];}['init'](){const _0x206c2=this['editor'],_0x15c249=_0x206c2['plugins']['get']('TrackChangesEditing');_0x15c249['enableCommand']('delete');const _0x4e669c=_0x206c2['commands']['get']('deleteForward');_0x15c249['enableCommand']('deleteForward',(_0x2f0c49,_0x3fee00={})=>{const _0x278b5f=_0x206c2['model']['createSelection'](_0x206c2['model']['document']['selection']);_0x278b5f['isCollapsed']&&_0x206c2['model']['modifySelection'](_0x278b5f,{'direction':'forward','unit':_0x3fee00['unit']});const _0x388e2e=_0x278b5f['getFirstRange'](),_0x7dc25e=_0x1a312e['fromRange'](_0x388e2e);let _0x1e808e;_0x2f0c49(_0x3fee00),_0x1e808e='$graveyard'==_0x7dc25e['root']['rootName']?_0x206c2['model']['createRange'](_0x388e2e['start']):_0x206c2['model']['createRange'](_0x7dc25e['start'],_0x7dc25e['end']),_0x7dc25e['detach'](),_0x206c2['model']['enqueueChange'](_0x4e669c['buffer']['batch'],_0x36fc01=>{_0x4e669c['buffer']['lock'](),_0x36fc01['setSelection'](_0x36fc01['createRange'](_0x1e808e['end'])),_0x4e669c['buffer']['unlock']();});}),_0x206c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x206c2,'merge'),{'priority':'high'}),_0x206c2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x37fe73,_0x1bc603,_0x3531c2)=>{_0x3531c2['options']['showSuggestionHighlights']&&_e(_0x206c2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x37fe73,_0x1bc603,_0x3531c2);},{'priority':'high'}),_0x206c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x245cc2,_0x2d7236,_0xfec1c7)=>{const _0x16669e=_0xfec1c7['mapper']['markerNameToElements'](_0x2d7236['markerName']);if(_0x16669e){for(const _0xb2b5e0 of _0x16669e)_0xb2b5e0['is']('uiElement')&&(_0xfec1c7['mapper']['unbindElementFromMarkerName'](_0xb2b5e0,_0x2d7236['markerName']),_0xfec1c7['writer']['remove'](_0xb2b5e0));}},{'priority':'high'});}}class K extends _0x4ba4b5{['afterInit'](){const _0x57325a=this['editor'];if(!_0x57325a['plugins']['has']('ListEditing'))return;const _0x1622d6=_0x57325a['locale'],_0x1718c6=_0x57325a['plugins']['get']('TrackChangesEditing'),_0x14c69f=_0x57325a['plugins']['has']('TodoListEditing'),_0x2f2718=!!_0x57325a['config']['get']('list.multiBlock');function _0x8f97da(_0x2cb342){return{'type':'format','content':''+o(_0x1622d6,'*Set\x20format:*\x20%0',_0x2cb342)};}function _0x5d09b2(_0x3b0af0){return{'type':'format','content':''+o(_0x1622d6,'*Remove\x20format:*\x20%0',_0x3b0af0)};}_0x1718c6['enableDefaultAttributesIntegration']('numberedList'),_0x1718c6['enableDefaultAttributesIntegration']('bulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('customNumberedList'),_0x1718c6['enableDefaultAttributesIntegration']('customBulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('indentList'),_0x1718c6['enableDefaultAttributesIntegration']('outdentList'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1718c6['registerBlockAttribute']('listItemId'),_0x1718c6['registerBlockAttribute']('listType'),_0x1718c6['registerBlockAttribute']('listIndent'),_0x2f2718&&(_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14c69f&&(_0x1718c6['enableDefaultAttributesIntegration']('todoList'),_0x1718c6['enableDefaultAttributesIntegration']('checkTodoList'),_0x1718c6['registerBlockAttribute']('todoListChecked'),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x54da96=>{const {data:_0x48ceed}=_0x54da96;if(_0x48ceed&&'todoListChecked'==_0x48ceed['key'])return{'type':'format','content':_0x48ceed['newValue']?o(_0x1622d6,'*Check\x20item*'):o(_0x1622d6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x307cb4=>{if(_0x307cb4['batch']['isUndo'])return!0x1;let _0x58d492=!0x1;const _0x473c5f=_0x1718c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23924f=>'todoListChecked'===_0x1718c6['_getAttributeKey'](_0x23924f));for(const _0x16d2c8 of _0x473c5f){'todo'!=_0x16d2c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1718c6['_findSuggestions'](_0x16d2c8['getFirstRange'](),'attribute')['find'](_0x2dff43=>'listType'===_0x1718c6['_getAttributeKey'](_0x2dff43['suggestion']))||(_0x307cb4['removeMarker'](_0x16d2c8['getFirstMarker']()),_0x58d492=!0x0));}return _0x58d492;})),_0x1718c6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1622d6,'FORMAT_INDENT'));const _0xfb8c63={'type':'format','content':''};_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x3a6a08=>{const {data:_0x1f37fb}=_0x3a6a08;if(!_0x1f37fb||'listType'!=_0x1f37fb['key'])return;let _0x53fa27=_0x3a6a08['head'];for(;_0x53fa27;){if(_0x53fa27['data']&&(('listStyle'==_0x53fa27['data']['key']||'listMarkerStyle'==_0x53fa27['data']['key'])&&(_0x53fa27['data']['newValue']&&'default'!=_0x53fa27['data']['newValue']||'default'!=_0x53fa27['data']['oldValue']&&!_0x1f37fb['newValue'])||!_0x2f2718&&_0x53fa27['data']['key']==m))return _0xfb8c63;_0x53fa27=_0x53fa27['next'];}if(null==_0x1f37fb['newValue'])switch(_0x1f37fb['oldValue']){case'bulleted':return _0x5d09b2(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d09b2(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d09b2(o(_0x1622d6,'ELEMENT_TODO_LIST'));}switch(_0x1f37fb['newValue']){case'bulleted':return _0x8f97da(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8f97da(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8f97da(o(_0x1622d6,'ELEMENT_TODO_LIST'));}}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xd4e45f=>{const {data:_0x55aa1f}=_0xd4e45f;if(_0x55aa1f&&'listIndent'==_0x55aa1f['key'])return null==_0x55aa1f['newValue']||null==_0x55aa1f['oldValue']&&0x0==_0x55aa1f['newValue']?_0xfb8c63:void 0x0;}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xe3b61a=>{if('attribute'!=_0xe3b61a['type'])return;const {data:_0x5a399e}=_0xe3b61a;if(!_0x5a399e||'listItemId'!=_0x5a399e['key'])return;const _0x48fe15=Ee(_0xe3b61a);return'newValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Split:*\x20list\x20item')}:_0xfb8c63;}),_0x57325a['model']['document']['registerPostFixer'](_0x230669=>this['listItemIdFixer'](_0x230669)),_0x57325a['model']['document']['registerPostFixer'](_0x4311bd=>this['noTrackChangesFixer'](_0x4311bd)),_0x57325a['model']['document']['on']('change:data',(_0x1e583a,_0x150eb4)=>{if(_0x150eb4['isUndo']||!_0x150eb4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4afaa1){if(_0x4afaa1['batch']['isUndo']||!_0x4afaa1['batch']['isLocal'])return!0x1;let _0x1b643f=!0x1;const _0x2c86b8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3919d7=>_0x3919d7['data']&&'listItemId'==_0x3919d7['data']['key'])['filter'](_0x2ad595=>_0x2ad595['data']['newValue']&&_0x2ad595['data']['oldValue']);for(const _0xa89659 of _0x2c86b8)Ee(_0xa89659)||(_0x4afaa1['removeMarker'](_0xa89659['getFirstMarker']()),_0x1b643f=!0x0);return _0x1b643f;}['noTrackChangesFixer'](_0x1e87d4){if(_0x1e87d4['batch']['isUndo']||!_0x1e87d4['batch']['isLocal'])return!0x1;const _0x30ef53=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ef53['trackChangesCommand']['value'])return!0x1;let _0x49e954=!0x1;const _0x245b41=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19b3c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x482d3d=>'attribute'==_0x482d3d['type'])['filter'](_0x362ea6=>_0x245b41['includes'](_0x362ea6['attributeKey']));if(0x0==_0x19b3c7['length'])return _0x49e954;for(const _0x3723f1 of _0x19b3c7){const _0x37b890=_0x30ef53['_findSuggestions'](_0x3723f1['range'],'attribute')['filter'](_0x56b6a2=>!_0x56b6a2['meta']['isNextTo'])['map'](_0x39b39b=>_0x39b39b['suggestion'])['filter'](_0x322150=>{const _0x487448=_0x30ef53['_getAttributeKey'](_0x322150);return _0x245b41['includes'](_0x487448);});if(_0x37b890['length']){for(const _0x5930b5 of _0x37b890)_0x1e87d4['removeMarker'](_0x5930b5['getFirstMarker']());_0x49e954=!0x0;}}return _0x49e954;}['assureChains'](){const _0x999c44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3793bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e4042;const _0x41ea3e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46c883=>{if(_0x46c883['data']['oldRange']||!_0x46c883['data']['newRange'])return null;if(!_0x46c883['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20cb96}=_0x999c44['_splitMarkerName'](_0x46c883['name']);if(!_0x999c44['hasSuggestion'](_0x20cb96))return null;const _0x9dd282=_0x999c44['getSuggestion'](_0x20cb96);return _0x3793bc['includes'](_0x9dd282['data']['key']);})['map'](_0x5a5738=>{const {id:_0x25f6db}=_0x999c44['_splitMarkerName'](_0x5a5738['name']),_0x584ae1=_0x999c44['getSuggestion'](_0x25f6db);return _0x4e4042=_0x584ae1['attributes']['groupId'],_0x584ae1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x41ea3e['size'])return;const _0x112955=_0x999c44['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b8a13=>'attribute'==_0x5b8a13['type']&&_0x5b8a13['data']&&_0x3793bc['includes'](_0x5b8a13['data']['key'])&&_0x5b8a13['attributes']['groupId']!=_0x4e4042)['map'](_0x522e33=>({'listItem':_0x522e33['getFirstRange']()['start']['nodeAfter'],'groupId':_0x522e33['attributes']['groupId']})),_0x58995f=new Set();for(const {groupId:_0x3b8626,listItem:_0x4c4078}of _0x112955)_0x41ea3e['has'](_0x4c4078)&&_0x58995f['add'](_0x3b8626);for(const _0x5d7cf1 of _0x999c44['getSuggestions']())_0x58995f['has'](_0x5d7cf1['attributes']['groupId'])&&_0x5d7cf1['setAttribute']('groupId',_0x4e4042);}['_supportLegacySuggestions'](){const _0x3d6b69=this['editor'],_0x3a4a62=_0x3d6b69['locale'],_0x5eb202=_0x3d6b69['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5eb202['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16ccca,_0x52c645){const _0x37ab70=[];for(let _0x3a02ae of _0x16ccca)_0x3a02ae['start']['nodeAfter']===_0x3a02ae['end']['parent']&&(_0x3a02ae=_0x3d6b69['model']['createRange'](_0x3d6b69['model']['createPositionAt'](_0x3a02ae['start']['nodeAfter'],0x0))),_0x37ab70['push'](_0x3a02ae);_0x3d6b69['model']['change'](_0xbb560a=>{const _0x407648=_0x3d6b69['model']['document']['selection'],_0x4e0cc4=Array['from'](_0x407648['getRanges']())['map'](_0x49eeff=>_0x1a312e['fromRange'](_0x49eeff));_0xbb560a['setSelection'](_0x37ab70),_0x3d6b69['commands']['get'](_0x52c645['commandName'])['refresh'](),_0x52c645['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d6b69['execute'](_0x52c645['commandName'],..._0x52c645['commandParams']),_0xbb560a['setSelection'](_0x4e0cc4);for(const _0x43291f of _0x4e0cc4)_0x43291f['detach']();});}),_0x5eb202['descriptionFactory']['registerElementLabel'](function(_0xefc367){const _0x3b99a9=!_0x3d6b69['model']['schema']['isObject'](_0xefc367),_0x2320da=_0xefc367['previousSibling'],_0x5afe74=_0xefc367['nextSibling'],_0x12be78=_0xefc367['getAttribute']('listItemId'),_0x1ae5bf=!_0x2320da||_0x2320da['getAttribute']('listItemId')!==_0x12be78,_0x1375d6=!_0x5afe74||_0x5afe74['getAttribute']('listItemId')!==_0x12be78;return _0x3b99a9&&Boolean(_0x12be78)&&_0x1ae5bf&&_0x1375d6;},_0x554468=>o(_0x3a4a62,'ELEMENT_LIST_ITEM',_0x554468));}['_registerLegacyDescription'](){const _0x381fe3=this['editor'],_0x55f910=_0x381fe3['locale'];function _0x5091f4(_0x5ccd06){const _0x25d8ac=_0x381fe3['commands']['get']('bulletedList')['value'],_0x5da4cd=_0x381fe3['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ccd06?_0x25d8ac:_0x5da4cd;}_0x381fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5dbb8e){if('formatBlock'!=_0x5dbb8e['type'])return;const {data:_0x2ab903}=_0x5dbb8e;if(!_0x2ab903)return;let _0x4a799d,_0x1f69e5,_0x550ad5,_0x51a27a;switch(_0x2ab903['commandName']){case'bulletedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a799d='*Indent:*\x20%0',_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a799d=function(_0x303ed9){const _0x5be2e1=_0x303ed9['getFirstRange']();let _0x2f6960=_0x5be2e1['start']['nodeAfter'];for(;_0x2f6960&&_0x5be2e1['containsItem'](_0x2f6960);){if(_0x2f6960['getAttribute']('listIndent')>0x0)return!0x1;_0x2f6960=_0x2f6960['nextSibling'];}return!0x0;}(_0x5dbb8e)?o(_0x55f910,'*Format:*\x20remove\x20from\x20%0',o(_0x55f910,function(_0x46fb87){return'ELEMENT_'+_0x46fb87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5dbb8e))):o(_0x55f910,'*Outdent:*\x20%0',o(_0x55f910,'ELEMENT_LIST_ITEM')),_0x1f69e5={'type':'format','content':_0x4a799d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ab903['multipleBlocks']&&(_0x4a799d='*Merge:*\x20%0',_0x1f69e5={'type':'deletion','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))});}return _0x1f69e5;});}}function Ee(_0x278aff){let _0x4629dc=_0x278aff['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4629dc;){const _0x50b1b1=_0x4629dc['getAttribute']('listItemId');if(!_0x50b1b1)return!0x1;if(_0x50b1b1==_0x278aff['data']['newValue'])return'newValue';if(_0x50b1b1==_0x278aff['data']['oldValue'])return'oldValue';_0x4629dc=_0x4629dc['previousSibling'];}return!0x1;}class pe extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c7eaa=this['editor']['config']['get']('list.properties'),_0x1ec832=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7eaa['styles']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStyle'),_0x1ec832['registerBlockAttribute']('listStyle')),_0x2c7eaa['reversed']&&(_0x1ec832['enableDefaultAttributesIntegration']('listReversed'),_0x1ec832['registerBlockAttribute']('listReversed')),_0x2c7eaa['startIndex']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStart'),_0x1ec832['registerBlockAttribute']('listStart'));const _0x46c422={'type':'format','content':''};_0x1ec832['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ab159=this['editor']['locale'];_0x1ec832['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ab159,'FORMAT_LIST_REVERSED')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x33ae4f=>{const {data:_0xab71f}=_0x33ae4f;if(_0xab71f&&'listReversed'==_0xab71f['key'])return null==_0xab71f['newValue']||0x0==_0xab71f['newValue']&&null==_0xab71f['oldValue']?_0x46c422:void 0x0;}),_0x1ec832['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ab159,'FORMAT_LIST_START')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x5ada65=>{const {data:_0x5c84d6}=_0x5ada65;if(_0x5c84d6&&'listStart'==_0x5c84d6['key'])return null==_0x5c84d6['newValue']||0x1==_0x5c84d6['newValue']&&null==_0x5c84d6['oldValue']?_0x46c422:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5984a6=>{if(_0x5984a6['batch']['isUndo'])return!0x1;let _0x11f065=!0x1;const _0x467ac4=_0x1ec832['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9cbf=>{const _0x4cda9a=_0x1ec832['_getAttributeKey'](_0x2c9cbf);return'listStart'==_0x4cda9a||'listReversed'==_0x4cda9a;});for(const _0x58f0ee of _0x467ac4){const _0x2da4bb=_0x58f0ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2da4bb||'customNumbered'==_0x2da4bb)continue;_0x1ec832['_findSuggestions'](_0x58f0ee['getFirstRange'](),'attribute')['find'](_0x20b103=>'listType'==_0x1ec832['_getAttributeKey'](_0x20b103['suggestion']))||(_0x5984a6['removeMarker'](_0x58f0ee['getFirstMarker']()),_0x11f065=!0x0);}return _0x11f065;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x665efd){const _0x5d3b7c=this['editor']['locale'],{data:_0x4d9ac9}=_0x665efd,_0x5684f3={'type':'format','content':''};if(!_0x4d9ac9||'listStyle'!=_0x4d9ac9['key'])return;if(!_0x4d9ac9['oldValue'])return'default'==_0x4d9ac9['newValue']?_0x5684f3:{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};if(!_0x4d9ac9['newValue']){if('default'==_0x4d9ac9['oldValue'])return _0x5684f3;let _0x4573e8=_0x665efd['head'];for(;_0x4573e8;){if(_0x4573e8['data']&&'listType'==_0x4573e8['data']['key']&&_0x4573e8['data']['newValue'])return _0x5684f3;_0x4573e8=_0x4573e8['next'];}return{'type':'format','content':''+o(_0x5d3b7c,'*Remove\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['oldValue'])))};}if('default'!=_0x4d9ac9['newValue'])return{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};let _0x33570e=_0x665efd['head'];for(;_0x33570e;){if(_0x33570e['data']&&'listType'==_0x33570e['data']['key']&&_0x33570e['data']['newValue']&&_0x33570e['data']['oldValue'])return _0x5684f3;_0x33570e=_0x33570e['next'];}return{'type':'format','content':o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,'ELEMENT_'+_0x665efd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43be63=this['editor'],_0x42ad6a=_0x43be63['locale'];_0x43be63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c231=>{if('formatBlock'!=_0x39c231['type'])return;const {data:_0x5b0792}=_0x39c231;if(!_0x5b0792)return;let _0x250cca,_0x4326a1;switch(_0x5b0792['commandName']){case'listStyle':_0x250cca='*Change\x20to:*\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,o(_0x42ad6a,this['_getTranslationKeyForListStyle'](_0x5b0792['commandParams'][0x0]['type'])))};break;case'listReversed':_0x250cca=_0x5b0792['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca)};break;case'listStart':_0x250cca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,_0x5b0792['commandParams'][0x0]['startIndex'])};}return _0x4326a1;});}['_getTranslationKeyForListStyle'](_0x5469df){return'ELEMENT_'+function(_0x3c9b0f){if(ye['includes'](_0x3c9b0f))return'bulleted';if(Se['includes'](_0x3c9b0f))return'numbered';return null;}(_0x5469df)['toUpperCase']()+'_LIST_'+_0x5469df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4ba4b5{static get['requires'](){return[_0x2cfbc4];}['init'](){const _0x220caf=this['editor'],_0x2f109f=_0x220caf['plugins']['get']('TrackChangesEditing'),_0x8d0fa3=_0x220caf['commands']['get']('enter');_0x2f109f['enableCommand']('enter',()=>{_0x220caf['model']['change'](_0x23bf49=>{const _0x25cfac=_0x220caf['model']['document']['selection'],_0x5714da=_0x25cfac['getFirstPosition'](),_0x4cf4d3=_0x1a312e['fromRange'](_0x25cfac['getFirstRange']());if(_0x8d0fa3['enterBlock'](_0x23bf49)){const _0x480bee=_0x220caf['model']['createPositionAt'](_0x5714da['parent']['nextSibling'],0x0),_0x47836d=_0x23bf49['createRange'](_0x5714da,_0x480bee);_0x2f109f['markInsertion'](_0x47836d);}else _0x23bf49['setSelection'](_0x23bf49['createRange'](_0x4cf4d3['end']));_0x4cf4d3['detach'](),_0x8d0fa3['fire']('afterExecute',{'writer':_0x23bf49});});}),_0x220caf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x220caf,'split'),{'priority':'high'}),_0x220caf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x18ba4a,_0x52a216,_0x22fe00)=>{const _0x3c93cd=_0x22fe00['mapper']['markerNameToElements'](_0x52a216['markerName']);if(_0x3c93cd){for(const _0x1af6fc of _0x3c93cd)_0x1af6fc['hasClass']('ck-suggestion-marker-split')&&(_0x22fe00['mapper']['unbindElementFromMarkerName'](_0x1af6fc,_0x52a216['markerName']),_0x22fe00['writer']['remove'](_0x1af6fc));}},{'priority':'high'}),_0x220caf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41305b,_0x2c5fa3,_0x1710c5)=>{_0x1710c5['options']['showSuggestionHighlights']&&_e(_0x220caf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41305b,_0x2c5fa3,_0x1710c5);},{'priority':'high'});}}class X extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x23ecf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x23ecf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x23ecf2['enableCommand']('findNext'),_0x23ecf2['enableCommand']('findPrevious'),_0x23ecf2['enableCommand']('replace'),_0x23ecf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1514c6,_0xe560,_0x4b18af={}){const _0x184410=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1514c6(_0x172b56=>{let _0x314917=('string'==typeof _0xe560?_0x184410['findByTextCallback'](_0xe560,_0x4b18af):_0xe560)(_0x172b56);Array['isArray'](_0x314917)&&(_0x314917={'results':_0x314917,'searchText':'string'==typeof _0xe560?_0xe560:''});const _0x4e2c67=_0x314917['results']['filter'](_0x1d6fdf=>!0x1===this['_isInDeletionRange'](_0x1d6fdf,_0x172b56['item']));return{..._0x314917,'results':_0x4e2c67};},_0x4b18af);}['_isInDeletionRange'](_0xba26ba,_0x237fe0){const _0x48afee=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['start']),this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['end']));for(const _0x1dde90 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48afee['getIntersection'](_0x1dde90['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 _0x4ba4b5{['afterInit'](){const _0x2532ca=this['editor']['locale'],_0x16253d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x334d28,commandName:_0x4e6bd5}of ro)this['editor']['plugins']['has'](_0x334d28)&&(_0x16253d['enableDefaultAttributesIntegration'](_0x4e6bd5),_0x16253d['registerInlineAttribute'](_0x4e6bd5));_0x16253d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2532ca,'FORMAT_FONT_SIZE')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2532ca,'FORMAT_FONT_FAMILY')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2532ca,'FORMAT_FONT_COLOR')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2532ca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d198d=this['editor'],_0x96e03c=_0x2d198d['locale'];_0x2d198d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4982b1=>{const _0x115e50=_0x96e03c['t'];if('formatInline'!=_0x4982b1['type'])return;const {data:_0xa49122}=_0x4982b1;if(null!=_0xa49122){if('fontSize'==_0xa49122['commandName']){const _0x39164a=_0xa49122['commandParams'][0x0]['value'];if(_0x39164a){const _0x5c4134=_0x115e50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4edec6=>_0x4edec6['model']==_0x39164a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20size:*\x20%0',_0x5c4134)};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xa49122['commandName']){const _0x44effb=_0xa49122['commandParams'][0x0]['value'];return _0x44effb?{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20family:*\x20%0',_0x44effb)}:{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20family*')};}if('fontColor'==_0xa49122['commandName']){const _0x5121f4=_0xa49122['commandParams'][0x0]['value'];if(_0x5121f4){const _0x18c9b3=_0x273313(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5928a5=>_0x5928a5['model']==_0x5121f4);let _0x8d0e72=_0x5121f4,_0x479d6f='';return _0x18c9b3&&(_0x8d0e72=_0x18c9b3['label'],_0x479d6f=_0x115e50(_0x8d0e72)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20color:*\x20%0',_0x479d6f)['trim'](),'color':{'value':_0x5121f4,'title':_0x479d6f||_0x8d0e72}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xa49122['commandName']){const _0x4eb937=_0xa49122['commandParams'][0x0]['value'];if(_0x4eb937){const _0x40c40e=_0x273313(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1b8fd3=>_0x1b8fd3['model']==_0x4eb937);let _0x49c34a=_0x4eb937,_0x4aaa94='';return _0x40c40e&&(_0x49c34a=_0x40c40e['label'],_0x4aaa94=_0x115e50(_0x49c34a)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4aaa94)['trim'](),'color':{'value':_0x4eb937,'title':_0x4aaa94||_0x49c34a}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4ba4b5{['afterInit'](){const _0x1c0f68=this['editor'],_0x523079=_0x1c0f68['plugins']['get']('TrackChangesEditing'),_0x441e9f=_0x1c0f68['commands']['get']('copyFormat'),_0x3ee4e7=_0x1c0f68['commands']['get']('pasteFormat');_0x441e9f&&_0x3ee4e7&&(_0x523079['enableDefaultAttributesIntegration']('pasteFormat'),_0x523079['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20cc8e=this['editor'],_0x3c16ca=_0x20cc8e['locale'];_0x20cc8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321fb3=>{if('formatBlock'!=_0x321fb3['type']&&'formatInline'!=_0x321fb3['type'])return;const {data:_0x2f9707}=_0x321fb3;if(_0x2f9707&&'pasteFormat'===_0x2f9707['commandName']){const _0x94c36d=[],_0xca8541=_0x2f9707['commandParams'][0x0];for(const [_0x1d4f50,_0x33d90b]of Object['entries'](_0xca8541))_0x94c36d['push'](so(_0x20cc8e,_0x1d4f50,_0x33d90b));return _0x94c36d['length']?{'type':'format','content':o(_0x3c16ca,'*Set\x20format\x20to:*\x20%0',_0x94c36d['join'](',\x20'))}:{'type':'format','content':o(_0x3c16ca,'*Remove\x20all\x20formatting*')};}});}}function so(_0x378c6c,_0x4f9e98,_0x5bb3e8){const _0x27e6b9=_0x378c6c['locale']['t'],_0x2f73ce=_0x4f9e98['split'](/(?=[A-Z])/)['join']('\x20'),_0x2c7ba1=_0x27e6b9(_0x2f73ce['charAt'](0x0)['toUpperCase']()+_0x2f73ce['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bb3e8)return _0x2c7ba1;if('fontColor'===_0x4f9e98||'fontBackgroundColor'===_0x4f9e98){const _0x153f0f=_0x273313(_0x378c6c['config']['get']('fontColor.colors'))['find'](_0xe7eb72=>_0xe7eb72['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x153f0f?_0x27e6b9(_0x153f0f['label'])['toLowerCase']():_0x5bb3e8)+')';}if('fontSize'===_0x4f9e98&&isNaN(parseFloat(_0x5bb3e8))){const _0x45bf83=_0x378c6c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x378c6c['config']['get']('fontSize.options'))['find'](_0xc090c0=>_0xc090c0['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x45bf83?_0x27e6b9(_0x45bf83['title'])['toLowerCase']():_0x5bb3e8)+')';}return _0x2c7ba1+'\x20('+_0x5bb3e8+')';}class tt extends _0x4ba4b5{['_headingOptions'];['afterInit'](){const _0x1f1c52=this['editor'];if(!_0x1f1c52['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1f1c52['config']['get']('heading.options');const _0x2bb13d=_0x1f1c52['locale'],_0x3a22ce=_0x1f1c52['plugins']['get']('TrackChangesEditing');_0x3a22ce['enableDefaultAttributesIntegration']('heading');for(const _0x28d604 of this['_headingOptions'])'paragraph'!=_0x28d604['model']&&_0x3a22ce['descriptionFactory']['registerElementLabel'](_0x28d604['model'],_0x3f793b=>{const _0x5103ba=this['_getHeadingLevel'](_0x28d604['model']);return null!==_0x5103ba?_0x2f88af(_0x3f793b,_0x5103ba):_0x362439(_0x3f793b,_0x28d604['title']);});function _0x2f88af(_0x471bca,_0x313f16){return o(_0x2bb13d,'ELEMENT_HEADING',[_0x471bca,_0x313f16]);}function _0x362439(_0x285d52,_0x3d5a3b){return o(_0x2bb13d,'ELEMENT_HEADING_CUSTOM',[_0x285d52,_0x3d5a3b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ce21=this['editor'],_0x1f088e=_0x48ce21['locale'];function _0x1b6a1f(_0xcdbe59,_0x1b3881){return o(_0x1f088e,'ELEMENT_HEADING_CUSTOM',[_0xcdbe59,_0x1b3881]);}_0x48ce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a488=>{if('formatBlock'!=_0x16a488['type'])return;const {data:_0x3c581c}=_0x16a488;if(_0x3c581c&&'heading'==_0x3c581c['commandName']){const _0x5bfec7=_0x3c581c['commandParams'][0x0]['value'],_0xeae455=this['_getHeadingLevel'](_0x5bfec7);if(null!==_0xeae455)return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',(_0x522494=0x1,_0x13cc34=_0xeae455,o(_0x1f088e,'ELEMENT_HEADING',[_0x522494,_0x13cc34])))};const _0x5b996f=this['_headingOptions']['find'](_0x45cb76=>_0x45cb76['model']===_0x5bfec7)['title'];return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',_0x1b6a1f(0x1,_0x5b996f))};}var _0x522494,_0x13cc34;});}['_getHeadingLevel'](_0x556ddf){const _0x1e2738=_0x556ddf['match'](/^heading(\d+)/);if(_0x1e2738)return _0x1e2738[0x1];const _0xdd70ea=this['_headingOptions']?.['find'](_0x503da4=>_0x503da4['model']==_0x556ddf);if(_0xdd70ea&&_0xdd70ea['view']){const _0x52f155=_0xdd70ea['view'],_0xff38a3=(_0x52f155['name']??_0x52f155)['match'](/^h(\d+)/);if(_0xff38a3)return _0xff38a3[0x1];}return null;}}class et extends _0x4ba4b5{['afterInit'](){const _0x91b8d8=this['editor'];if(!_0x91b8d8['plugins']['has']('HighlightEditing'))return;const _0x53f19b=_0x91b8d8['plugins']['get']('TrackChangesEditing'),_0x42c55a=_0x91b8d8['locale'];_0x53f19b['enableDefaultAttributesIntegration']('highlight'),_0x53f19b['registerInlineAttribute']('highlight'),_0x53f19b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42c55a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7cc7=this['editor'],_0x447a55=_0xa7cc7['locale'];_0xa7cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5f8f=>{if('formatInline'!=_0x3e5f8f['type'])return;const {data:_0x407c34}=_0x3e5f8f;if(_0x407c34&&'highlight'==_0x407c34['commandName']){const _0x4e4fdd=_0x447a55['t'],_0xf020fe=_0x407c34['commandParams'][0x0]['value'];if(_0xf020fe){const _0x2aec30=_0xa7cc7['config']['get']('highlight.options')['find'](_0x4bc4ff=>_0x4bc4ff['model']==_0xf020fe),_0x1813eb=_0x4e4fdd(_0x2aec30['title'])['toLowerCase']();return{'type':'format','content':o(_0x447a55,'*Set\x20highlight:*\x20%0',_0x1813eb),'color':{'value':_0x2aec30['color'],'title':_0x2aec30['title']}};}return{'type':'format','content':o(_0x447a55,'*Remove\x20highlight*',o(_0x447a55,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4ba4b5{['afterInit'](){const _0x5025fb=this['editor'];if(!_0x5025fb['plugins']['has']('HorizontalLineEditing'))return;_0x5025fb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xaed6ce=_0x5025fb['plugins']['get']('TrackChangesEditing'),_0x5e1c86=_0x5025fb['locale'];_0xaed6ce['descriptionFactory']['registerElementLabel']('horizontalLine',_0x183013=>o(_0x5e1c86,'ELEMENT_HORIZONTAL_LINE',_0x183013)),_0x5025fb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25aaeb,{writer:_0x753117,options:_0x42fa88})=>{if(!_0x42fa88['showSuggestionHighlights'])return null;const _0x282374=_0x753117['createContainerElement']('div'),_0x30b9b0=_0x753117['createEmptyElement']('hr');return _0x753117['addClass']('ck-horizontal-line',_0x282374),_0x753117['insert'](_0x753117['createPositionAt'](_0x282374,0x0),_0x30b9b0),_0x282374;},'converterPriority':'high'});}}class st extends _0x4ba4b5{['afterInit'](){const _0x6da693=this['editor'];if(!_0x6da693['plugins']['has']('HtmlEmbed'))return;const _0x5e12fc=_0x6da693['plugins']['get']('TrackChangesEditing'),_0x2cd71f=_0x6da693['locale'];_0x5e12fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e1643=>o(_0x2cd71f,'ELEMENT_HTML_EMBED',_0x4e1643)),_0x5e12fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e12fc['registerBlockAttribute']('value'),_0x5e12fc['descriptionFactory']['registerDescriptionCallback'](_0x401a03=>{if('attribute'!=_0x401a03['type'])return;const {data:_0x2a6d8c}=_0x401a03;if(_0x2a6d8c&&'value'==_0x2a6d8c['key']&&_0x401a03['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x231a90=o(_0x2cd71f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cd71f,'*Change\x20%0\x20content*',_0x231a90)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e2c63=this['editor'],_0xc1f3f2=_0x5e2c63['locale'];_0x5e2c63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ca167=>{if('formatBlock'!=_0x1ca167['type'])return;const {data:_0x49a013}=_0x1ca167;if(_0x49a013&&'htmlEmbed'==_0x49a013['commandName']){const _0x3f6112=o(_0xc1f3f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc1f3f2,'*Change\x20%0\x20content*',_0x3f6112)};}});}}class nt extends _0x4ba4b5{['afterInit'](){const _0x3b3551=this['editor'];if(!_0x3b3551['plugins']['has']('ImageEditing'))return;const _0x3278eb=_0x3b3551['plugins']['get']('TrackChangesEditing'),_0x1833a9=_0x3b3551['plugins']['get']('ImageUtils'),_0x422ef0=_0x3b3551['locale'];_0x3278eb['enableCommand']('insertImage'),_0x3278eb['descriptionFactory']['registerElementLabel']('imageBlock',_0x546976=>o(_0x422ef0,'ELEMENT_IMAGE',_0x546976)),_0x3278eb['descriptionFactory']['registerElementLabel']('imageInline',_0x1c26ef=>o(_0x422ef0,'ELEMENT_INLINE_IMAGE',_0x1c26ef)),_0x3278eb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x422ef0,'ELEMENT_CAPTION')),_0x3b3551['plugins']['has']('ImageUploadEditing')&&_0x3278eb['enableCommand']('uploadImage'),_0x3b3551['plugins']['has']('ImageBlockEditing')&&_0x3b3551['plugins']['has']('ImageInlineEditing')&&(_0x3278eb['enableCommand']('imageTypeInline',(_0x13163a,_0x26e14e)=>{const _0x88af0b=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']);_0x3b3551['model']['change'](()=>{_0x3278eb['markBlockFormat'](_0x88af0b,{'commandName':'imageTypeInline','commandParams':[_0x26e14e]},[],'convertBlockImageToInline');});}),_0x3278eb['enableCommand']('imageTypeBlock',(_0x2bef18,_0x378922)=>{_0x3b3551['model']['change'](_0x540399=>{let _0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x129252=_0x4317c1['fromPosition'](_0x165e06['start'],'toPrevious'),_0x2fc133=_0x4317c1['fromPosition'](_0x165e06['end'],'toNext');_0x3278eb['forceDefaultExecution'](()=>_0x2bef18(_0x378922)),_0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x53e14d=_0x540399['createRange'](_0x129252,_0x2fc133);_0x129252['detach'](),_0x2fc133['detach'](),_0x3278eb['markBlockFormat'](_0x1dfb78,{'commandName':'imageTypeInline','commandParams':[_0x378922]},[],'convertInlineImageToBlock'),_0x53e14d['start']['isBefore'](_0x165e06['start'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x53e14d['start'],_0x165e06['start']),'convertInlineImageToBlock'),_0x165e06['end']['isBefore'](_0x53e14d['end'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x165e06['end'],_0x53e14d['end']),'convertInlineImageToBlock');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3278eb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x988c6c])=>{const _0x4823b4=_0x3278eb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ac480=_0x988c6c['start'],_0x410ff0=_0x988c6c['end'];const _0x381a6b=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x5ac480,'backward'),_0x207f3d=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x410ff0,'forward');_0x381a6b['isCollapsed']&&(_0x5ac480=_0x381a6b['start']),_0x207f3d['isCollapsed']&&(_0x410ff0=_0x207f3d['end']),_0x4823b4([_0x3b3551['model']['createRange'](_0x5ac480,_0x410ff0)]);}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x52761f),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x52761f)),_0x3b3551['plugins']['has']('ImageCaptionEditing')&&(_0x3278eb['enableCommand']('toggleImageCaption',(_0x49a038,_0x28eac8)=>{const _0x47a5a8=_0x3b3551['plugins']['get']('ImageCaptionUtils');let _0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732);_0x3b3551['model']['change'](()=>{if(_0x12a5f3)return void _0x3278eb['markDeletion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3));const _0x2d10b6=_0x1833a9['isBlockImage'](_0x308732);_0x49a038(_0x28eac8),_0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732),_0x3278eb['markInsertion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3),_0x2d10b6?null:'imageCaption');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x52761f));const _0x772663=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5841cf(_0x1fea37,_0x115ca1){const _0x27ef62=_0x772663['findIndex'](({type:_0x2cb3f4,subType:_0x12f7db})=>_0x1fea37['type']==_0x2cb3f4&&_0x1fea37['subType']==_0x12f7db),_0x200824=_0x772663['findIndex'](({type:_0x1336a1,subType:_0x4124d3})=>_0x115ca1['type']==_0x1336a1&&_0x115ca1['subType']==_0x4124d3);if(_0x27ef62<0x0||_0x200824<0x0)return!0x1;const _0x4161fc=_0x1fea37['getFirstRange'](),_0x2ea655=_0x115ca1['getFirstRange']();if((0x0==_0x27ef62||0x1==_0x27ef62)&&0x2==_0x200824&&_0x4161fc['isIntersecting'](_0x2ea655))return!0x0;if(0x2==_0x27ef62&&0x3==_0x200824){const _0x32a62f=_0x3278eb['_findSuggestions'](_0x4161fc,'insertion')['filter'](({suggestion:_0x87750b,meta:_0x1da892})=>_0x1da892['isOwn']&&'convertInlineImageToBlock'==_0x87750b['subType']);if(_0x32a62f['length']>0x1&&_0x2ea655['end']['isEqual'](_0x4161fc['start']))return!0x0;if(0x1==_0x32a62f['length']&&(_0x4161fc['start']['isEqual'](_0x2ea655['end'])||_0x4161fc['end']['isEqual'](_0x2ea655['start'])))return!0x0;}if(0x3==_0x27ef62&&0x3==_0x200824&&_0x4161fc['start']['isBefore'](_0x2ea655['start'])){const _0x588a16=_0x4161fc['end']['nodeAfter'],_0x11fa04=_0x2ea655['start']['nodeBefore'];return _0x1833a9['isBlockImage'](_0x588a16)&&_0x588a16===_0x11fa04;}return!0x1;}function _0x52761f(_0x4a01e2,_0x3d538d){return _0x5841cf(_0x4a01e2,_0x3d538d)?[_0x4a01e2,_0x3d538d]:_0x5841cf(_0x3d538d,_0x4a01e2)?[_0x3d538d,_0x4a01e2]:null;}_0x3b3551['plugins']['has']('ImageResize')&&(_0x3278eb['enableDefaultAttributesIntegration']('resizeImage'),_0x3278eb['registerBlockAttribute']('resizedWidth'),_0x3278eb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x422ef0,'FORMAT_IMAGE_SIZE'))),_0x3b3551['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3278eb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3278eb['registerBlockAttribute']('alt')),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0xbd9ad2=>{if(!!_0x772663['find'](({type:_0x4c80e8,subType:_0x4e9268})=>_0xbd9ad2['type']==_0x4c80e8&&_0xbd9ad2['subType']==_0x4e9268))return _0xbd9ad2['previous']?{}:void 0x0;}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x48a031=>{if('insertion'==_0x48a031['type']||'deletion'==_0x48a031['type']){const _0x1e19a2=_0x48a031['getContainedElement']();if(_0x1e19a2&&_0x1e19a2['is']('element','caption'))return{'type':'insertion'==_0x48a031['type']?'addObject':'removeObject','element':_0x1e19a2,'quantity':0x1};}}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x139d8c=>'formatBlock'==_0x139d8c['type']&&'convertInlineImageToBlock'==_0x139d8c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x139d8c['type']&&'convertBlockImageToInline'==_0x139d8c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x1ff182=>{if('attribute'!=_0x1ff182['type'])return;const {data:_0x3104af}=_0x1ff182;if(!_0x3104af||'alt'!=_0x3104af['key'])return;const _0x219cd9=_0x3104af['newValue'];return _0x219cd9?{'type':'format','content':o(_0x422ef0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x219cd9+'\x22')}:{'type':'format','content':o(_0x422ef0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39022d=this['editor'],_0x34df26=_0x39022d['locale'];_0x39022d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8597=>{if('formatBlock'!=_0x1a8597['type']&&'formatInline'!=_0x1a8597['type'])return;const {data:_0x20d98c}=_0x1a8597;if(_0x20d98c){if('imageTextAlternative'==_0x20d98c['commandName']){const _0x12c0ee=_0x20d98c['commandParams'][0x0]['newValue'];return _0x12c0ee?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12c0ee+'\x22')}:{'type':'format','content':o(_0x34df26,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20d98c['commandName']){const _0x3fbb67=_0x20d98c['commandParams'][0x0]['width'];return _0x3fbb67?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20width:*\x20%0',_0x3fbb67)}:{'type':'format','content':o(_0x34df26,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4001f9=this['editor']['locale'],_0x32d9d1=this['editor']['plugins']['get']('TrackChangesEditing');_0x32d9d1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32d9d1['registerBlockAttribute']('src'),_0x32d9d1['descriptionFactory']['registerDescriptionCallback'](_0xeaadc3=>{if('attribute'!=_0xeaadc3['type'])return;const {data:_0x529397}=_0xeaadc3;return _0x529397&&'src'==_0x529397['key']?_0x529397['newValue']&&_0x529397['oldValue']?{'type':'format','content':o(_0x4001f9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22c142=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141f23=this['editor'],_0x58db8f=_0x141f23['locale'];_0x141f23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f856f=>{if('formatBlock'!=_0x1f856f['type']&&'formatInline'!=_0x1f856f['type'])return;const {data:_0x10eed7}=_0x1f856f;if(!_0x10eed7||'replaceImageSource'!=_0x10eed7['commandName'])return;return{'type':'format','content':o(_0x58db8f,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4ba4b5{['afterInit'](){const _0x332819=this['editor'];if(!_0x332819['plugins']['has']('ImageStyleEditing'))return;const _0x554268=_0x332819['plugins']['get']('TrackChangesEditing'),_0xd1fd5d=_0x332819['plugins']['get']('ImageUtils'),_0xf492f3={};_0x554268['enableCommand']('imageStyle',(_0x4b8c73,_0x323e68)=>{const _0x55a727=_0x332819['plugins']['get']('Users')['me'],_0x23bbf3=_0x332819['commands']['get']('imageStyle');let _0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x24b089=_0x23bbf3['value'];if(_0x24b089==_0x323e68['value'])return;const _0x2f447e={'commandName':'imageStyle','commandParams':[_0x323e68],'formatGroupId':_0x4cf4cc()};_0x332819['model']['change'](()=>{if(_0x554268['getSuggestions']()['filter'](_0x529217=>_0x529217['isInContent']&&_0x55a727==_0x529217['author']&&('formatBlock'==_0x529217['type']||'formatInline'==_0x529217['type'])&&('imageStylePreApply'==_0x529217['subType']||'imageStylePostApply'==_0x529217['subType'])&&_0x529217['getFirstRange']()['isEqual'](_0x48adfa))['forEach'](_0x40e11a=>_0x554268['discardSuggestion'](_0x40e11a['head'])),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x23bbf3['refresh'](),_0x332819['commands']['get']('imageTypeInline')['refresh'](),_0x332819['commands']['get']('imageTypeBlock')['refresh'](),_0x24b089=_0x23bbf3['value'],_0x24b089!=_0x323e68['value'])return _0xd1fd5d['isInlineImage'](_0x22c3a8)&&_0x23bbf3['shouldConvertImageType'](_0x323e68['value'],_0x22c3a8)?(_0x4b8c73({..._0x323e68,'setImageSizes':!0x1}),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),void _0x554268['markBlockFormat'](_0x22c3a8,{..._0x2f447e,'commandReversedParams':[{'value':_0x24b089||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xd1fd5d['isBlockImage'](_0x22c3a8)?_0x554268['markBlockFormat'](_0x22c3a8,_0x2f447e,[],'imageStylePostApply'):_0x554268['markInlineFormat'](_0x48adfa,_0x2f447e,'imageStylePostApply'));});});for(const _0x4e0438 of _0x332819['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf492f3[_0x4e0438['name']]=_0x4e0438['title']['toLowerCase']();_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2aea6f])=>{_0xd1fd5d['setImageNaturalSizeAttributes'](_0x2aea6f['getContainedElement']());}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1776,_0x5b5e63)=>{_0x554268['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1776,{'commandName':_0x5b5e63['commandName'],'commandParams':_0x5b5e63['commandReversedParams']});}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e388e,_0x3ed9df){if(_0x4ec6d7(_0x2e388e,_0x3ed9df))return[_0x2e388e,_0x3ed9df];if(_0x4ec6d7(_0x3ed9df,_0x2e388e))return[_0x3ed9df,_0x2e388e];return null;});const _0x27c29b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ec6d7(_0x2ce4fc,_0xd1690d){const _0x594faa=_0x27c29b['findIndex'](({type:_0x3eb1e2,subType:_0x1a209a})=>_0x2ce4fc['type']==_0x3eb1e2&&_0x2ce4fc['subType']==_0x1a209a),_0x17f31e=_0x27c29b['findIndex'](({type:_0x434d27,subType:_0x3e3960})=>_0xd1690d['type']==_0x434d27&&_0xd1690d['subType']==_0x3e3960);if(_0x594faa<0x0||_0x17f31e<0x0)return!0x1;const _0x57a7af=_0x2ce4fc['getFirstRange'](),_0x3dacb1=_0xd1690d['getFirstRange']();if((0x0==_0x594faa||0x1==_0x594faa)&&0x2==_0x17f31e&&_0x57a7af['isIntersecting'](_0x3dacb1))return!0x0;if(0x2==_0x594faa&&0x3==_0x17f31e){const _0xe3e489=_0x554268['_findSuggestions'](_0x57a7af,'insertion')['filter'](({suggestion:_0x113686,meta:_0x34d274})=>_0x34d274['isOwn']&&'convertInlineImageToBlock'==_0x113686['subType']);if(_0xe3e489['length']>0x1&&_0x3dacb1['end']['isEqual'](_0x57a7af['start']))return!0x0;if(0x1==_0xe3e489['length']&&(_0x57a7af['start']['isEqual'](_0x3dacb1['end'])||_0x57a7af['end']['isEqual'](_0x3dacb1['start'])))return!0x0;}if(0x3==_0x594faa&&0x3==_0x17f31e&&_0x57a7af['start']['isBefore'](_0x3dacb1['start'])){const _0x540646=_0x57a7af['end']['nodeAfter'],_0x5cd90d=_0x3dacb1['start']['nodeBefore'];return _0xd1fd5d['isBlockImage'](_0x540646)&&_0x540646===_0x5cd90d;}return!0x1;}_0x332819['model']['document']['registerPostFixer'](()=>{let _0x5ef3e2=!0x1;const _0x49d30f=Array['from'](_0x332819['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2795f0,data:_0x1a227b}of _0x49d30f){const {group:_0x2023c1,type:_0x4bf6ae,subType:_0x53ee58,id:_0x5c7791}=_0x554268['_splitMarkerName'](_0x2795f0);if('suggestion'==_0x2023c1&&_0x554268['hasSuggestion'](_0x5c7791)){if('formatBlock'==_0x4bf6ae&&('imageStylePreApply'==_0x53ee58||'imageStylePostApply'==_0x53ee58)){const _0x4e5c47=_0x554268['getSuggestion'](_0x5c7791);if(_0x1a227b['newRange']){const _0x5c8601=_0x4e5c47['getFirstRange']()['getContainedElement']();if(_0xd1fd5d['isBlockImage'](_0x5c8601))continue;_0x554268['discardSuggestion'](_0x4e5c47),_0x5ef3e2=!0x0;}}if('insertion'==_0x4bf6ae&&'imageCaption'==_0x53ee58&&!_0x1a227b['newRange']){const _0x269e4c=_0x554268['getSuggestion'](_0x5c7791);_0x269e4c['next']&&_0x269e4c['next']['isInContent']&&(_0x554268['discardSuggestion'](_0x269e4c['next']),_0x5ef3e2=!0x0);}}}return _0x5ef3e2;}),this['_registerLegacyDescription'](_0xf492f3);}['_registerLegacyDescription'](_0x5effa8){const _0xc96ecb=this['editor'],_0x5c6494=_0xc96ecb['locale'];_0xc96ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a7f7=>{if('formatBlock'!=_0x21a7f7['type']&&'formatInline'!=_0x21a7f7['type'])return;const {data:_0x6f81af}=_0x21a7f7;if(!_0x6f81af||'imageStyle'!=_0x6f81af['commandName'])return;const _0x1bb01f=_0x6f81af['commandParams'][0x0]['value'];return _0x21df68('side'===_0x1bb01f?o(_0x5c6494,'FORMAT_SIDE_IMAGE'):_0x5effa8[_0x1bb01f]||_0x1bb01f);function _0x21df68(_0x503e1c){return{'type':'format','content':o(_0x5c6494,'*Format:*\x20%0',_0x503e1c)};}});}}class at extends _0x4ba4b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3163ec){super(_0x3163ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d4439=this['editor'],_0x13fef4=_0x5d4439['commands']['get']('importWord'),_0x3ec716=_0x5d4439['commands']['get']('trackChanges');_0x13fef4&&(_0x13fef4['on']('execute',(_0x1222a4,[,_0x10d4e0])=>{this['_trackChangesValueDuringImport']=_0x3ec716['value'],_0x10d4e0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13fef4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13fef4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ec716['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d4439['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f406b,_0x1c96ce){const {suggestions:_0x52db0a}=_0x1c96ce,_0x26ce18=this['editor']['commands']['get']('trackChanges'),_0x260cae=_0x26ce18['value'];this['_trackChangesValueDuringImport']!==_0x260cae&&(_0x26ce18['execute'](),this['_trackChangesExecuted']=!0x0),_0x52db0a&&_0x52db0a['forEach'](({id:_0x795a76,type:_0x269a2c,author:_0xe7e09c,created_at:_0x14f705})=>{const _0x3bd03c={'id':_0x795a76,'type':_0x269a2c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xe7e09c,'createdAt':_0x14f705?new Date(_0x14f705):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bd03c);});}}class ct extends _0x4ba4b5{['afterInit'](){const _0x5048ca=this['editor'],_0x5ec92d=_0x5048ca['plugins']['get']('TrackChangesEditing');if(_0x5048ca['plugins']['has']('IndentEditing')&&(_0x5ec92d['enableCommand']('indent'),_0x5ec92d['enableCommand']('outdent')),_0x5048ca['plugins']['has']('IndentBlock')){for(const _0x1cbdc1 of['indentBlock','outdentBlock'])_0x5ec92d['enableDefaultAttributesIntegration'](_0x1cbdc1);}const _0x5726cb=_0x5048ca['locale'];_0x5ec92d['registerBlockAttribute']('blockIndent'),_0x5ec92d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5726cb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17918a=this['editor'],_0x1f7375=_0x17918a['locale'],_0x435476=_0x17918a['plugins']['get']('TrackChangesEditing');_0x435476['descriptionFactory']['registerDescriptionCallback'](_0x1aab51=>{if('formatBlock'!=_0x1aab51['type'])return;const {data:_0x5e3e18}=_0x1aab51;if(!_0x5e3e18)return;if('indentBlock'!=_0x5e3e18['commandName']&&'outdentBlock'!=_0x5e3e18['commandName'])return;const _0x17294c=_0x1aab51['getItems']()[0x0],_0x2f6bc6=_0x435476['descriptionFactory']['getItemLabel'](_0x17294c);return'indentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Indent:*\x20%0',_0x2f6bc6)}:'outdentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Outdent:*\x20%0',_0x2f6bc6)}:void 0x0;});}}class ut extends _0x4ba4b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4ba4b5{['afterInit'](){const _0x3d4565=this['editor'];if(!_0x3d4565['plugins']['has']('LinkEditing'))return;const _0x4a037f=_0x3d4565['plugins']['get']('TrackChangesEditing'),_0x399806=_0x3d4565['commands']['get']('link');_0x4a037f['enableDefaultAttributesIntegration']('link'),_0x4a037f['enableDefaultAttributesIntegration']('unlink'),_0x4a037f['registerInlineAttribute']('linkHref');for(const _0x3d3dc6 of _0x399806['manualDecorators'])_0x4a037f['registerInlineAttribute'](_0x3d3dc6['id']),_0x4a037f['descriptionFactory']['registerAttributeLabel'](_0x3d3dc6['id'],'link\x20('+_0x3d3dc6['label']['toLowerCase']()+')');_0x4a037f['descriptionFactory']['registerDescriptionCallback'](_0x1d5f42=>{if('attribute'!=_0x1d5f42['type'])return;const {data:_0x1c8919}=_0x1d5f42;if(!_0x1c8919||'linkHref'!=_0x1c8919['key'])return;const _0x4bd30b=_0x1c8919['newValue'],_0x5af4cd=_0x3d4565['locale'];return{'type':'format','content':null==_0x4bd30b?o(_0x5af4cd,'*Remove\x20link*'):o(_0x5af4cd,'*Set\x20link:*\x20%0','\x22'+_0x4bd30b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x359edf=this['editor'],_0x37a50d=_0x359edf['locale'];_0x359edf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19734a=>{if('formatInline'!=_0x19734a['type'])return;const {data:_0x5262a4}=_0x19734a;if(_0x5262a4){if('link'==_0x5262a4['commandName']){const _0x499a1e=_0x5262a4['commandParams'][0x0];return{'type':'format','content':o(_0x37a50d,'*Set\x20link:*\x20%0','\x22'+_0x499a1e+'\x22')};}return'unlink'==_0x5262a4['commandName']?{'type':'format','content':o(_0x37a50d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4ba4b5{['afterInit'](){const _0x38e112=this['editor'],_0x214b41=_0x38e112['locale'];if(!_0x38e112['plugins']['has']('LegacyListEditing'))return;const _0x41ce72=_0x38e112['plugins']['get']('TrackChangesEditing'),_0x2accaf=_0x38e112['plugins']['has']('LegacyTodoListEditing');function _0x2ca386(_0x52df14){return()=>{const _0x10cf7f=_0x38e112['model']['document']['selection'],_0x2af5a6=_0x38e112['commands']['get'](_0x52df14);if(_0x2af5a6['value'])return void _0x38e112['execute']('paragraph',{});const _0xf752ce=_0x52df14['slice'](0x0,-0x4),_0x228f2a=function(_0x4e85e0,_0x3bfddd,_0x11e773){let _0xe4bb3e=Array['from'](_0x4e85e0)['filter'](_0x209b76=>function(_0x462cc3,_0x2a1e3a){return _0x2a1e3a['checkChild'](_0x462cc3['parent'],'listItem')&&!_0x2a1e3a['isObject'](_0x462cc3);}(_0x209b76,_0x11e773));_0xe4bb3e=_0xe4bb3e['filter'](_0x20b573=>!_0x20b573['is']('element','listItem')||_0x20b573['getAttribute']('listType')!=_0x3bfddd);const _0x868885=new Set();for(const _0x5d8569 of _0xe4bb3e)_0x5d8569['is']('element','listItem')?_0x868885['add'](fe(_0x5d8569)):_0x868885['add'](_0x5d8569);return Array['from'](_0x868885);}(_0x10cf7f['getSelectedBlocks'](),_0xf752ce,_0x38e112['model']['schema']);_0x38e112['model']['change'](()=>{for(const _0x35a540 of _0x228f2a)_0x41ce72['markBlockFormat'](_0x35a540,{'commandName':_0x52df14,'commandParams':[{'forceValue':!_0x2af5a6['value']}],'formatGroupId':'blockName'},ue(_0x35a540));});};}function _0x497fb8(_0x3c488f){return()=>{const _0x51d6e5=function(_0x160958){let _0x317a8a=Array['from'](_0x160958);const _0x22a511=_0x317a8a['findIndex'](_0x4ec7a0=>'listItem'!=_0x4ec7a0['name']);return _0x22a511>-0x1&&(_0x317a8a=_0x317a8a['slice'](0x0,_0x22a511)),_0x317a8a;}(_0x38e112['model']['document']['selection']['getSelectedBlocks']()),_0x912210=_0x38e112['model']['createRange'](_0x38e112['model']['createPositionAt'](_0x51d6e5[0x0],'before'),_0x38e112['model']['createPositionAt'](_0x51d6e5[_0x51d6e5['length']-0x1],'end'));_0x38e112['model']['change'](()=>{_0x41ce72['markBlockFormat'](_0x912210,{'commandName':_0x3c488f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b5fc5){const _0x135da6=new Set();for(const _0x1cb4d0 of _0x2b5fc5){let _0x4cb693=_0x1cb4d0['nextSibling'];for(;_0x4cb693&&_0x4cb693['getAttribute']('listIndent')>_0x1cb4d0['getAttribute']('listIndent');)_0x135da6['add'](_0x4cb693),_0x4cb693=_0x4cb693['nextSibling'];}return Array['from'](_0x135da6);}(_0x51d6e5));});};}_0x41ce72['enableCommand']('numberedList',_0x2ca386('numberedList')),_0x41ce72['enableCommand']('bulletedList',_0x2ca386('bulletedList')),_0x2accaf&&_0x41ce72['enableCommand']('todoList',_0x2ca386('todoList')),_0x41ce72['enableCommand']('indentList',_0x497fb8('indentList')),_0x41ce72['enableCommand']('outdentList',_0x497fb8('outdentList')),_0x2accaf&&_0x41ce72['enableCommand']('checkTodoList',()=>{const _0x363d66=_0x38e112['commands']['get']('checkTodoList'),_0x1642b7=Array['from'](_0x363d66['_selectedElements']);_0x1642b7['filter'](_0x550bf5=>_0x550bf5['getAttribute']('todoListChecked')!=_0x363d66['value']),_0x38e112['model']['change'](()=>{for(const _0x48db0b of _0x1642b7)_0x41ce72['markBlockFormat'](_0x48db0b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x363d66['value']}]});});}),_0x41ce72['descriptionFactory']['registerElementLabel']('listItem',_0x4c86db=>o(_0x214b41,'ELEMENT_LIST_ITEM',_0x4c86db)),_0x41ce72['descriptionFactory']['registerDescriptionCallback'](_0x3f4ee1=>{if('formatBlock'!=_0x3f4ee1['type']&&'formatInline'!=_0x3f4ee1['type'])return;const {data:_0x3b32cc}=_0x3f4ee1;if(_0x3b32cc){if('numberedList'==_0x3b32cc['commandName']||'bulletedList'==_0x3b32cc['commandName']||'todoList'==_0x3b32cc['commandName'])switch(_0x3b32cc['commandName']['replace']('List','')){case'bulleted':return _0x5f6a32(o(_0x214b41,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f6a32(o(_0x214b41,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f6a32(o(_0x214b41,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Indent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Outdent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b32cc['commandName'])return _0x3b32cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x214b41,'*Check\x20item*')}:{'type':'format','content':o(_0x214b41,'*Uncheck\x20item*')};}function _0x5f6a32(_0x2f2691){return{'type':'format','content':o(_0x214b41,'*Change\x20to:*\x20%0',_0x2f2691)};}});}}function fe(_0x142be2){const _0x36f175=_0x142be2['getAttribute']('listIndent');if(0x0==_0x36f175)return _0x142be2;let _0x446e60=_0x142be2;for(;_0x142be2['previousSibling']&&_0x142be2['previousSibling']['is']('element','listItem');){const _0x2310f3=_0x142be2['previousSibling']['getAttribute']('listIndent');if(_0x2310f3==_0x36f175)_0x446e60=_0x142be2['previousSibling'];else{if(_0x2310f3<_0x36f175)break;}_0x142be2=_0x142be2['previousSibling'];}return _0x446e60;}function ue(_0xefdaf4){const _0x348555=[];if(_0xefdaf4['is']('element','listItem')&&_0xefdaf4['getAttribute']('listIndent')>0x0){let _0x171bcc=_0xefdaf4['nextSibling'];for(;_0x171bcc&&'listItem'==_0x171bcc['name']&&_0x171bcc['getAttribute']('listIndent')==_0xefdaf4['getAttribute']('listIndent');)_0x348555['push'](_0x171bcc),_0x171bcc=_0x171bcc['nextSibling'];}return _0x348555;}class W extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1310f9=this['editor']['config']['get']('list.properties'),_0x13e189=this['editor']['plugins']['get']('TrackChangesEditing');_0x1310f9['styles']&&_0x13e189['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1310f9['reversed']&&_0x13e189['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1310f9['startIndex']&&_0x13e189['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13e189['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d1015,_0x2f7812={}){const _0x3b7391=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9377=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b7391['markMultiRangeBlockFormat'](_0x5a9377,{'commandName':'listStyle','commandParams':[{'type':_0x2f7812['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4242c7,_0x3840d7={}){const _0x323239=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aef38=this['_getSuggestionBlocks'](_0x2e34c9=>_0x2e34c9['is']('element','listItem')&&'numbered'===_0x2e34c9['getAttribute']('listType'));if(_0x4aef38['length']<0x1)return;const _0x256749=_0x4aef38['map'](_0x5264de=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5264de,'before'),this['editor']['model']['createPositionAt'](_0x5264de,0x0)));this['editor']['model']['change'](()=>{_0x323239['markMultiRangeBlockFormat'](_0x256749,{'commandName':'listReversed','commandParams':[{'reversed':_0x3840d7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4da9da,_0x2f81a7={}){const _0x4ec3cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6182a1=this['_getSuggestionBlocks'](_0x30ce29=>_0x30ce29['is']('element','listItem')&&'numbered'===_0x30ce29['getAttribute']('listType'));if(_0x6182a1['length']<0x1)return;const _0x13bde8=_0x6182a1['map'](_0x65e672=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x65e672,'before'),this['editor']['model']['createPositionAt'](_0x65e672,0x0)));this['editor']['model']['change'](()=>{_0x4ec3cd['markMultiRangeBlockFormat'](_0x13bde8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f81a7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d038e){if('formatBlock'!=_0x3d038e['type']&&'formatInline'!=_0x3d038e['type'])return;const _0x1bcc7e=this['editor']['locale'],{data:_0x42766}=_0x3d038e;if(!_0x42766)return;let _0x530314,_0x86ad56;switch(_0x42766['commandName']){case'listStyle':_0x530314='*Change\x20to:*\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,o(_0x1bcc7e,this['_getTranslationKeyForListStyle'](_0x42766['commandParams'][0x0]['type'])))};break;case'listReversed':_0x530314=_0x42766['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314)};break;case'listStart':_0x530314='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,_0x42766['commandParams'][0x0]['startIndex'])};}return _0x86ad56;}['_getSuggestionBlocksForListStyle'](){const _0x12ad02=this['editor']['plugins']['get']('LegacyListUtils');let _0x313576=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x313576[0x0]?.['is']('element','listItem')&&_0x313576['unshift'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x313576[_0x313576['length']-0x1]?.['is']('element','listItem')&&_0x313576['push'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x313576=[...new Set(_0x313576)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x313576=_0x313576['filter'](_0x596793=>_0x596793['is']('element','listItem'))),_0x313576;}['_getSuggestionBlocks'](_0x5ca684){const _0x5cce73=this['editor']['plugins']['get']('LegacyListUtils');let _0xdec1f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5ca684)['map'](_0xbf3ce7=>{const _0x4d8af7=this['editor']['model']['createPositionAt'](_0xbf3ce7,0x0);return[..._0x5cce73['getSiblingNodes'](_0x4d8af7,'backward'),..._0x5cce73['getSiblingNodes'](_0x4d8af7,'forward')];})['flat']();return _0xdec1f=[...new Set(_0xdec1f)],_0xdec1f;}['_getTranslationKeyForListStyle'](_0x543192){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x543192)||'default')['toUpperCase']()+'_LIST_'+_0x543192['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4ba4b5{['afterInit'](){const _0x550dc=this['editor'];if(!_0x550dc['plugins']['has']('MediaEmbedEditing'))return;const _0x1181b0=_0x550dc['plugins']['get']('TrackChangesEditing'),_0x3c7181=_0x550dc['locale'];_0x1181b0['enableCommand']('mediaEmbed'),_0x1181b0['descriptionFactory']['registerElementLabel']('media',_0x25bbdf=>o(_0x3c7181,'ELEMENT_MEDIA',_0x25bbdf)),_0x550dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45a621,{writer:_0x2570f5,options:_0x4941ff})=>{if(_0x4941ff['showSuggestionHighlights'])return _0x2570f5['createEmptyElement']('div');},'converterPriority':'high'}),_0x550dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e687f,_0xaa0aa9,_0x4b71f1)=>{_0x4b71f1['options']['showSuggestionHighlights']&&_0x5e687f['stop']();},{'priority':'high'});}}class mt extends _0x4ba4b5{['afterInit'](){const _0x572da7=this['editor'];_0x572da7['plugins']['has']('MentionEditing')&&_0x572da7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4ba4b5{['afterInit'](){const _0x24d716=this['editor'];if(!_0x24d716['plugins']['has']('MergeFieldsEditing'))return;_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3288f5=_0x24d716['plugins']['get']('TrackChangesEditing'),_0x467bec=_0x24d716['locale'];_0x3288f5['descriptionFactory']['registerElementLabel']('mergeField',_0x35f8ab=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x35f8ab)),_0x3288f5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a59fc=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x5a59fc)),_0x3288f5['descriptionFactory']['registerDescriptionCallback'](_0xbabbe0=>{if('insertion'!=_0xbabbe0['type']&&'deletion'!=_0xbabbe0['type'])return;const _0x46d552=_0xbabbe0['getContainedElement']();if(null==_0x46d552)return;if(!_0x46d552['is']('element','mergeField')&&!_0x46d552['is']('element','mergeFieldBlock'))return;const _0x2085d4=_0x24d716['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x46d552['getAttribute']('id'));return'insertion'==_0xbabbe0['type']?{'type':'insertion','content':o(_0x467bec,'*Insert:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x467bec,'*Remove:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4ba4b5{['afterInit'](){const _0x2d39db=this['editor'],_0x4069b1=_0x2d39db['plugins']['get']('TrackChangesEditing');_0x2d39db['plugins']['has']('MultiLevelList')&&(_0x4069b1['enableDefaultAttributesIntegration']('multiLevelList'),_0x4069b1['registerBlockAttribute']('listMarkerStyle'),_0x4069b1['descriptionFactory']['registerDescriptionCallback'](_0x3f066c=>this['handleDescriptions'](_0x3f066c)));}['handleDescriptions'](_0x1fc887){const _0xa233b1=this['editor']['locale'],{data:_0x4c744d}=_0x1fc887,_0x2cae6d={'type':'format','content':''};if(_0x4c744d&&'listMarkerStyle'==_0x4c744d['key']){if(!_0x4c744d['oldValue'])return{'type':'format','content':o(_0xa233b1,'*Set\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['newValue']+')'};if(!_0x4c744d['newValue']){let _0xa1c43e=_0x1fc887['head'];for(;_0xa1c43e;){if(_0xa1c43e['data']&&'listType'==_0xa1c43e['data']['key']&&_0xa1c43e['data']['newValue'])return _0x2cae6d;_0xa1c43e=_0xa1c43e['next'];}return{'type':'format','content':o(_0xa233b1,'*Remove\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['oldValue']+')'};}}}}class kt extends _0x4ba4b5{['afterInit'](){const _0x1bc04e=this['editor'];if(!_0x1bc04e['plugins']['has']('PageBreakEditing'))return;_0x1bc04e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23839c=_0x1bc04e['plugins']['get']('TrackChangesEditing'),_0x435e02=_0x1bc04e['locale'];_0x23839c['descriptionFactory']['registerElementLabel']('pageBreak',_0x547ed3=>o(_0x435e02,'ELEMENT_PAGE_BREAK',_0x547ed3));}}class bt extends _0x4ba4b5{['afterInit'](){const _0x26f9d7=this['editor'];if(!_0x26f9d7['plugins']['has']('Paragraph'))return;const _0x3fc470=_0x26f9d7['locale'],_0x51bbe5=_0x26f9d7['plugins']['get']('TrackChangesEditing');_0x51bbe5['descriptionFactory']['registerElementLabel']('paragraph',_0x3b7131=>o(_0x3fc470,'ELEMENT_PARAGRAPH',_0x3b7131)),_0x51bbe5['enableDefaultAttributesIntegration']('paragraph'),_0x51bbe5['enableCommand']('insertParagraph'),_0x26f9d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x26f9d7),{'priority':'highest'}),_0x26f9d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xce50d5,_0x169e14,_0x4a1a2f)=>{_0x4a1a2f['options']['showSuggestionHighlights']&&nr(_0x26f9d7,{'showActiveMarker':!0x1})(_0xce50d5,_0x169e14,_0x4a1a2f);},{'priority':'highest'});const _0xf2556e=_0x51bbe5['descriptionFactory'];_0xf2556e['registerDescriptionCallback'](_0x132eef=>{if('insertion'!==_0x132eef['type'])return;const {start:_0xae4aa3,end:_0x1ba298}=_0x132eef['getFirstRange']();if(!_0xae4aa3['isTouching'](_0x1ba298)||!_0xae4aa3['nodeAfter'])return;const _0xe2bf9=_0x26f9d7['model']['schema'],_0x7c6fa6=_0xae4aa3['nodeAfter'];return _0xe2bf9['isBlock'](_0x7c6fa6)&&!_0xe2bf9['isLimit'](_0x7c6fa6)&&_0xe2bf9['checkChild'](_0x7c6fa6,'$text')?{'type':'insertion','content':o(_0x3fc470,'*Insert:*\x20%0',_0xf2556e['getItemLabel'](_0x7c6fa6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd5a0=this['editor'],_0x5219a6=_0x5bd5a0['locale'];_0x5bd5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a865=>{if('formatBlock'!=_0x40a865['type'])return;const {data:_0x1cd602}=_0x40a865;return _0x1cd602&&'paragraph'==_0x1cd602['commandName']?{'type':'format','content':o(_0x5219a6,'*Change\x20to:*\x20%0',o(_0x5219a6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a55b4,{showActiveMarker:_0x514d46=!0x0}={}){return(_0x361b7a,_0x39451e,_0xc5a64)=>{const _0x557497=_0x7a55b4['plugins']['get']('TrackChangesEditing'),_0x3ecb63=_0x39451e['markerRange']['start'],_0x9fcde1=_0x39451e['markerRange']['end'],_0x43c06f=_0x7a55b4['model']['schema'];if(!_0x3ecb63['isTouching'](_0x9fcde1)||!_0x3ecb63['nodeAfter'])return;const _0x1ec8a6=_0x3ecb63['nodeAfter'];if(_0x43c06f['isBlock'](_0x1ec8a6)&&!_0x43c06f['isLimit'](_0x1ec8a6)&&_0x43c06f['checkChild'](_0x1ec8a6,'$text')){if(!_0xc5a64['consumable']['consume'](_0x39451e['markerRange'],_0x361b7a['name']))return;const {authorId:_0x1d0803}=_0x557497['_splitMarkerName'](_0x39451e['markerName']),_0x129da9=_0xc5a64['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d0803}),_0x36f2e2=_0xc5a64['mapper']['toViewPosition'](_0x9fcde1);_0x514d46&&_0x557497['activeMarkers']['includes'](_0x39451e['markerName'])&&_0xc5a64['writer']['addClass']('ck-suggestion-marker--active',_0x129da9),_0xc5a64['writer']['insert'](_0x36f2e2,_0x129da9),_0xc5a64['mapper']['bindElementToMarker'](_0x129da9,_0x39451e['markerName']);}};}class wt extends _0x4ba4b5{['afterInit'](){const _0x34f8e0=this['editor'];if(!_0x34f8e0['plugins']['has']('RemoveFormatEditing'))return;_0x34f8e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db9d5=this['editor'];_0x1db9d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46eed8=>{if('formatBlock'!=_0x46eed8['type']&&'formatInline'!=_0x46eed8['type'])return;const {data:_0xc61141}=_0x46eed8;return _0xc61141&&'removeFormat'==_0xc61141['commandName']?{'type':'format','content':o(_0x1db9d5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4ba4b5{['afterInit'](){const _0x55f130=this['editor'];if(!_0x55f130['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2959bf=_0x55f130['plugins']['get']('TrackChangesEditing');_0x2959bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x2959bf['enableCommand']('goToNextRestrictedEditingException');const _0x244db4=_0x55f130['plugins']['get']('RestrictedEditingModeEditing');_0x244db4['enableCommand']('trackChanges'),_0x244db4['enableCommand']('acceptSuggestion'),_0x244db4['enableCommand']('discardSuggestion'),_0x244db4['enableCommand']('acceptAllSuggestions'),_0x244db4['enableCommand']('discardAllSuggestions'),_0x244db4['enableCommand']('acceptSelectedSuggestions'),_0x244db4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4ba4b5{static get['requires'](){return[_0x4ecb7f];}['init'](){const _0x65d653=this['editor'],_0x28a43b=_0x65d653['plugins']['get']('TrackChangesEditing');_0x28a43b['enableCommand']('shiftEnter'),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x65d653),{'priority':'high'}),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x65d653),{'priority':'high'}),_0x65d653['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38a78c,_0x30f22e,_0x4f7dc0)=>{_0x4f7dc0['options']['showSuggestionHighlights']&&ge(_0x65d653,{'showActiveMarker':!0x1})(_0x38a78c,_0x30f22e,_0x4f7dc0);}),_0x28a43b['descriptionFactory']['registerElementLabel']('softBreak',_0x31c212=>o(_0x65d653['locale'],'ELEMENT_LINE_BREAK',_0x31c212));}}function ge(_0x57faf9,{showActiveMarker:_0x5927db=!0x0}={}){return(_0x2b6511,_0x52f9ee,_0x3ca079)=>{const _0x19e1a8=_0x57faf9['plugins']['get']('TrackChangesEditing');if(!_0x3ca079['consumable']['test'](_0x52f9ee['markerRange'],_0x2b6511['name']))return;const _0x200ebe=_0x57faf9['model'];for(const _0x533415 of _0x52f9ee['markerRange']['getItems']()){if(!_0x533415['is']('element','softBreak'))continue;const _0x31bb8d='deletion'==_0x52f9ee['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x998a8e}=_0x19e1a8['_splitMarkerName'](_0x52f9ee['markerName']),_0x19872b=_0x3ca079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31bb8d,'data-author-id':_0x998a8e}),_0x33a703=_0x3ca079['mapper']['toViewPosition'](_0x200ebe['createPositionBefore'](_0x533415));_0x5927db&&_0x19e1a8['activeMarkers']['includes'](_0x52f9ee['markerName'])&&_0x3ca079['writer']['addClass']('ck-suggestion-marker--active',_0x19872b),_0x3ca079['writer']['insert'](_0x33a703,_0x19872b),_0x3ca079['mapper']['bindElementToMarker'](_0x19872b,_0x52f9ee['markerName']);}};}class St extends _0x4ba4b5{['afterInit'](){const _0x40c698=this['editor'],_0x39476b=_0x40c698['model'],_0x518a05=_0x40c698['locale'];if(!_0x40c698['plugins']['has']('StandardEditingModeEditing'))return;const _0x5054f4=_0x40c698['plugins']['get']('TrackChangesEditing'),_0x5c82cb='restrictedEditingException',_0x46234e=_0x40c698['commands']['get'](_0x5c82cb);_0x5054f4['enableCommand'](_0x5c82cb,(_0x5655a5,_0x36801f={})=>{const _0x1c095f=_0x39476b['document']['selection'];if(_0x1c095f['isCollapsed'])return void _0x5655a5(_0x36801f);const _0x525ca4=void 0x0!==_0x36801f['forceValue']?_0x36801f['forceValue']:!_0x46234e['value'];_0x39476b['change'](()=>{const _0x460258=Array['from'](_0x1c095f['getRanges']());for(const _0x4ee61d of _0x460258){const _0x2ee21f=_0x525ca4?[_0x4ee61d]:io(_0x5c82cb,_0x4ee61d,_0x39476b);for(const _0x62a396 of _0x2ee21f)_0x5054f4['markInlineFormat'](_0x62a396,{'commandName':_0x5c82cb,'commandParams':[{'forceValue':_0x525ca4}]});}});}),_0x5054f4['descriptionFactory']['registerDescriptionCallback'](_0x2475de=>{if('formatBlock'!=_0x2475de['type']&&'formatInline'!=_0x2475de['type'])return;const {data:_0x28516c}=_0x2475de;return _0x28516c&&_0x28516c['commandName']==_0x5c82cb?_0x28516c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4ba4b5{['afterInit'](){const _0xd4a639=this['editor'];if(!_0xd4a639['plugins']['has']('Style')||!_0xd4a639['plugins']['has']('DataSchema'))return;const _0x53fe28=_0xd4a639['plugins']['get']('TrackChangesEditing'),_0x1846ff=_0xd4a639['locale'],_0x1a07a7=_0xd4a639['config']['get']('style')||{},_0x3177d4=_0xd4a639['plugins']['get']('GeneralHtmlSupport'),_0x198fa5=_0xd4a639['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd4a639['plugins']['get']('DataSchema'),_0x1a07a7['definitions']);_0x53fe28['enableDefaultAttributesIntegration']('style');const _0x49b170=new Set();for(const _0x5aa246 of _0x198fa5['block']){const _0x41eb37=_0x3177d4['getGhsAttributeNameForElement'](_0x5aa246['element']);_0x49b170['add'](_0x41eb37);}const _0xfe59be=new Set();for(const _0x75aca9 of _0x198fa5['inline']){const _0x405656=_0x3177d4['getGhsAttributeNameForElement'](_0x75aca9['element']);_0xfe59be['add'](_0x405656);for(const _0x14f27c of _0x75aca9['ghsAttributes'])_0xfe59be['add'](_0x14f27c);}for(const _0x1c0f8c of _0x49b170)_0x53fe28['registerBlockAttribute'](_0x1c0f8c),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x1c0f8c,o(_0x1846ff,'FORMAT_STYLE'));for(const _0x4a4442 of _0xfe59be)_0x53fe28['registerInlineAttribute'](_0x4a4442),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x4a4442,o(_0x1846ff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef1e7=this['editor'],_0x4a553a=_0x2ef1e7['locale'];_0x2ef1e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5788=>{if('formatBlock'!=_0x3a5788['type']&&'formatInline'!=_0x3a5788['type'])return;const {data:_0x4ab6a8}=_0x3a5788;return _0x4ab6a8&&'style'===_0x4ab6a8['commandName']?_0x4ab6a8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a553a,'*Set\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a553a,'*Remove\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4ba4b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37057c){super(_0x37057c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57255f=this['editor'],_0x406c1e=_0x57255f['model']['document']['selection'];if(!_0x57255f['plugins']['has']('TableEditing'))return;const _0x5660f7=_0x57255f['locale'],_0x39f226=_0x57255f['plugins']['get']('TrackChangesEditing'),_0x50b30c=_0x57255f['plugins']['get']('TableUtils');_0x39f226['descriptionFactory']['registerElementLabel']('table',_0x56755b=>o(_0x5660f7,'ELEMENT_TABLE',_0x56755b)),this['_setupColumnsRowsFixing'](),_0x39f226['enableCommand']('insertTable'),_0x39f226['enableCommand']('selectTableRow'),_0x39f226['enableCommand']('selectTableColumn');for(const _0x442d7a of['insertTableRowAbove','insertTableRowBelow']){const _0x33ea0c=_0x57255f['commands']['get'](_0x442d7a);_0x39f226['enableCommand'](_0x442d7a,_0x3ae229=>{_0x57255f['model']['change'](_0x33cb06=>{_0x3ae229();const _0x4e0cc9='above'===_0x33ea0c['order'],_0x53907e=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3d3469=_0x50b30c['getRowIndexes'](_0x53907e),_0x3295a7=_0x4e0cc9?_0x3d3469['first']-0x1:_0x3d3469['last']+0x1,_0x655bff=_0x53907e[0x0]['findAncestor']('table'),_0x782920=_0x50b30c['createTableWalker'](_0x655bff,{'startRow':_0x3295a7,'endRow':_0x3295a7}),_0x1017b8=Array['from'](_0x782920)['map'](_0x217e7a=>_0x33cb06['createRangeOn'](_0x217e7a['cell']));_0x39f226['markMultiRangeInsertion'](_0x1017b8,'tableRow');});});}for(const _0x3eef3a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d9bdf=_0x57255f['commands']['get'](_0x3eef3a);_0x39f226['enableCommand'](_0x3eef3a,_0x32a1f9=>{_0x57255f['model']['change'](_0x48783f=>{_0x32a1f9();const _0x2073df='left'===_0x4d9bdf['order'],_0x262d61=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x5c171e=_0x50b30c['getColumnIndexes'](_0x262d61),_0x8953b2=_0x2073df?_0x5c171e['first']-0x1:_0x5c171e['last']+0x1,_0xf67503=_0x262d61[0x0]['findAncestor']('table'),_0x8a2813=_0x50b30c['createTableWalker'](_0xf67503,{'startRow':0x0,'column':_0x8953b2,'includeAllSlots':!0x1}),_0x17d874=Array['from'](_0x8a2813)['map'](_0x331ff4=>_0x48783f['createRangeOn'](_0x331ff4['cell']));_0x39f226['markMultiRangeInsertion'](_0x17d874,'tableColumn');});});}for(const _0x3f5465 of['removeTableRow','removeTableColumn']){const _0x4a777b=_0x3f5465['substr'](0xb),_0x18f799=_0x4a777b['toLowerCase'](),_0x558e8d=_0x18f799['substr'](0x0,0x3)+'span',_0x24c8f8='table'+_0x4a777b,_0x1da936='min'+_0x4a777b,_0x334449='max'+_0x4a777b;_0x39f226['enableCommand'](_0x3f5465,()=>{_0x57255f['model']['change'](_0x408155=>{const _0x50ef3a=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3cae17=_0x50ef3a[0x0]['findAncestor']('table');let _0x54749b;if('removeTableRow'==_0x3f5465){const _0x311abe=_0x50b30c['getRowIndexes'](_0x50ef3a);_0x54749b={'startRow':_0x311abe['first'],'endRow':_0x311abe['last'],'includeAllSlots':!0x0};}else{const _0xe9a935=_0x50b30c['getColumnIndexes'](_0x50ef3a);_0x54749b={'startColumn':_0xe9a935['first'],'endColumn':_0xe9a935['last'],'includeAllSlots':!0x0};}const _0x146b12=_0x50b30c['createTableWalker'](_0x3cae17,_0x54749b),_0x2dab77=Array['from'](_0x146b12)['map'](({cell:_0xdd26e0})=>_0xdd26e0),_0x2e7a2f=be(_0x2dab77['filter'](_0x34db34=>_0x34db34['hasAttribute'](_0x558e8d))),_0x4834b9=be(_0x2dab77['filter'](_0x475da4=>!_0x475da4['hasAttribute'](_0x558e8d)))['map'](_0x321458=>_0x408155['createRangeOn'](_0x321458)),_0x5d6ccb=_0x39f226['markMultiRangeDeletion'](_0x4834b9,_0x24c8f8);if(_0x5d6ccb&&('tableRow'==_0x5d6ccb['subType']||'tableColumn'==_0x5d6ccb['subType'])){const _0x34e10d=this['_getSuggestionCoords'](_0x5d6ccb);for(const _0x39a377 of _0x2e7a2f){const _0x47e7e6=_0x408155['createRangeOn'](_0x39a377),_0x12d6f1=_0x50b30c['getCellLocation'](_0x39a377),_0x562448=_0x39a377['getAttribute'](_0x558e8d)-0x1,_0x1bb009=_0x34e10d[_0x1da936],_0x2c9bf8=_0x34e10d[_0x334449];_0x1bb009<=_0x12d6f1[_0x18f799]&&_0x12d6f1[_0x18f799]+_0x562448<=_0x2c9bf8&&_0x5d6ccb['addRange'](_0x47e7e6);}}});});}function _0x4cbad6(_0x2b0e74){const _0x4ac19d=Array['from'](_0x406c1e['getRanges']())['map'](_0x34175c=>_0x1a312e['fromRange'](_0x34175c));_0x57255f['model']['change'](_0x1a86ef=>{const _0x3b1538=_0x1a86ef['batch'];_0x2b0e74=_0x2b0e74['filter'](_0x4f6485=>'$graveyard'!=_0x4f6485['root']['rootName']),_0x1a86ef['setSelection'](_0x2b0e74),_0x57255f['commands']['get']('removeTableRow')['refresh'](),_0x57255f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57255f['model']['enqueueChange'](()=>{_0x57255f['model']['enqueueChange'](_0x3b1538,_0x50fe20=>{const _0x2021f1=_0x4ac19d['filter'](_0x28339a=>'$graveyard'!=_0x28339a['root']['rootName']);_0x2021f1['length']>0x0&&_0x50fe20['setSelection'](_0x2021f1);for(const _0xaa56cf of _0x4ac19d)_0xaa56cf['detach']();});});});}function _0x25caac(_0x587f8){_0x57255f['model']['change'](_0x2e289e=>{const _0x33776d=Array['from'](_0x406c1e['getRanges']())['map'](_0x41b603=>_0x1a312e['fromRange'](_0x41b603)),_0x5250ea=[];for(const _0x475288 of _0x587f8)for(const _0x262634 of _0x475288['getItems']({'shallow':!0x0}))_0x5250ea['push'](_0x262634);for(const _0x298157 of _0x5250ea)'$graveyard'!=_0x298157['root']['rootName']&&(_0x2e289e['setSelection'](_0x2e289e['createPositionAt'](_0x298157,0x0)),_0x57255f['commands']['get']('removeTableColumn')['refresh'](),_0x57255f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4021d9=_0x33776d['filter'](_0x488806=>'$graveyard'!=_0x488806['root']['rootName']);_0x4021d9['length']>0x0&&_0x2e289e['setSelection'](_0x4021d9);for(const _0x386108 of _0x33776d)_0x386108['detach']();});}function _0xff26d5(_0x1c1fa4,_0x3f74a9){return _0x3f74a9['every'](_0x5a8561=>_0x1c1fa4['some'](_0x5e7a6a=>_0x5e7a6a['end']['isEqual'](_0x5a8561['start'])||_0x5a8561['end']['isEqual'](_0x5e7a6a['start'])));}function _0x3d6c04(_0x425212,_0x3649c8){return!_0x425212['some'](_0x1837a6=>_0x3649c8['some'](_0x42a9f7=>_0x1837a6['isIntersecting'](_0x42a9f7)))&&_0x425212['some'](_0x3b75b2=>_0x3649c8['some'](_0x1d3add=>_0x3b75b2['end']['isTouching'](_0x1d3add['start'])));}_0x57255f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51201c,_0x3d65fa,_0x1c90a3)=>{if(!_0x1c90a3['options']['showSuggestionHighlights'])return;const _0xdca07d=_0x3d65fa['item'];if(!_0xdca07d)return;const _0x550519=_0x1c90a3['mapper']['toViewElement'](_0xdca07d);function _0x4dd66c(_0x5c020f){return Array['isArray'](_0x5c020f)?_0x5c020f:[_0x5c020f];}_0x550519&&'tableCell'===_0xdca07d['name']&&_0x530c8b(_0x550519,_0x1c90a3['writer'],(_0x29c2b4,_0x54a78a,_0x147900)=>_0x147900['addClass'](_0x4dd66c(_0x54a78a['classes']),_0x29c2b4),(_0x2ef1b2,_0x5adebf,_0x161a6e)=>_0x161a6e['removeClass'](_0x4dd66c(_0x5adebf['classes']),_0x2ef1b2));},{'priority':'highest'}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x5f5db1=>{if('insertion'!=_0x5f5db1['type']&&'deletion'!=_0x5f5db1['type'])return;const _0x30b103=_0x5f5db1['getContainedElement']();if(null!=_0x30b103&&_0x30b103['is']('element','table')){if('insertion'==_0x5f5db1['type']){const _0x3af9df=_0x5f5db1['getItems']()['filter'](_0x4a2620=>_0x4a2620['is']('$textProxy'))['map'](_0x423600=>_0x423600['data']);if(_0x3af9df['length'])return{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3af9df['join']('\x20')+'\x22'))};}if('deletion'==_0x5f5db1['type']){const _0x490479=_0x5f5db1['getItems']()['filter'](_0x137cbe=>_0x137cbe['is']('$textProxy'))['map'](_0x4b144c=>_0x4b144c['data']);if(_0x490479['length'])return{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x490479['join']('\x20')+'\x22'))};}}}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x41646e=>{if('tableRow'==_0x41646e['subType']){const _0x10cde9=_0x41646e['getItems']()['filter'](_0x5a8c6c=>_0x5a8c6c['is']('$textProxy'))['map'](_0x2d6f06=>_0x2d6f06['data']),_0x37b1b3=this['_getSuggestionCoords'](_0x41646e),_0x4fde29=_0x37b1b3['maxRow']-_0x37b1b3['minRow']+0x1;if('insertion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};if('deletion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};}if('tableColumn'==_0x41646e['subType']){const _0x2ae4a5=_0x41646e['getItems']()['filter'](_0x238334=>_0x238334['is']('$textProxy'))['map'](_0x3368d8=>_0x3368d8['data']),_0x42dc15=this['_getSuggestionCoords'](_0x41646e),_0x4c2274=_0x42dc15['maxColumn']-_0x42dc15['minColumn']+0x1;if('insertion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};if('deletion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};}}),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d6c04),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d6c04);}['_acceptFormatSuggestionCallbackFactory'](){const _0xbe36e=this['editor'],_0x35342b=_0xbe36e['model']['document']['selection'];return(_0x2a8065,_0x133145)=>{_0xbe36e['model']['change'](_0x1c9f1d=>{const {commandName:_0x41becc,commandParams:_0x4d92b4}=_0x133145;let _0x457362=_0x2a8065[0x0]['end']['nodeBefore'];_0x4d92b4&&_0x4d92b4[0x0]&&!0x1===_0x4d92b4[0x0]['forceValue']&&(_0x457362=_0x2a8065[0x0]['start']['nodeAfter']);const _0xa1f043=_0x1c9f1d['createRangeIn'](_0x457362);if('$graveyard'==_0xa1f043['root']['rootName'])return;const _0x372a85=Array['from'](_0x35342b['getRanges']())['map'](_0x5813a6=>_0x1a312e['fromRange'](_0x5813a6));_0x1c9f1d['setSelection'](_0xa1f043),_0xbe36e['commands']['get'](_0x41becc)['refresh'](),_0x4d92b4['push']({'forceDefaultExecution':!0x0}),_0xbe36e['execute'](_0x41becc,..._0x4d92b4);const _0x15bd6e=_0x372a85['filter'](_0x161035=>'$graveyard'!=_0x161035['root']['rootName']);_0x15bd6e['length']>0x0&&_0x1c9f1d['setSelection'](_0x15bd6e);for(const _0x1225f8 of _0x372a85)_0x1225f8['detach']();});};}['_getCoordsForCells'](_0x2f4480){const _0x3b789a=this['editor']['plugins']['get']('TableUtils');let _0x555cad=Number['MAX_SAFE_INTEGER'],_0x54c158=Number['MIN_SAFE_INTEGER'],_0x133c53=Number['MAX_SAFE_INTEGER'],_0x4aec7d=Number['MIN_SAFE_INTEGER'];for(const _0x3dd864 of _0x2f4480){if('$graveyard'==_0x3dd864['root']['rootName'])continue;const {row:_0x48c3a8,column:_0x4801a6}=_0x3b789a['getCellLocation'](_0x3dd864),_0x1e3201=_0x3dd864['hasAttribute']('rowspan')?_0x3dd864['getAttribute']('rowspan')-0x1:0x0,_0x4168b3=_0x3dd864['hasAttribute']('colspan')?_0x3dd864['getAttribute']('colspan')-0x1:0x0;_0x555cad=_0x48c3a8<_0x555cad?_0x48c3a8:_0x555cad,_0x54c158=_0x48c3a8+_0x1e3201>_0x54c158?_0x48c3a8+_0x1e3201:_0x54c158,_0x133c53=_0x4801a6<_0x133c53?_0x4801a6:_0x133c53,_0x4aec7d=_0x4801a6+_0x4168b3>_0x4aec7d?_0x4801a6+_0x4168b3:_0x4aec7d;}return{'minRow':_0x555cad,'maxRow':_0x54c158,'minColumn':_0x133c53,'maxColumn':_0x4aec7d};}['_setupColumnsRowsFixing'](){const _0x10da4a=this['editor'],_0x2b48a8=_0x10da4a['plugins']['get']('TrackChangesEditing'),_0x54dd23=_0x10da4a['plugins']['get']('TableUtils');_0x10da4a['model']['document']['on']('change:data',()=>{const _0xc0ca28=Array['from'](_0x10da4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a125a,data:_0xe7e0c6}of _0xc0ca28){const {group:_0xfec86,id:_0x1cca4e,subType:_0x508d40}=_0x2b48a8['_splitMarkerName'](_0x5a125a);if('suggestion'!=_0xfec86)continue;if(null!=_0xe7e0c6['oldRange'])continue;const _0x40cc42=_0x2b48a8['getSuggestion'](_0x1cca4e);this['_tablePostFixingSubtypes']['includes'](_0x508d40)&&this['_tableSuggestions']['add'](_0x40cc42);}},{'priority':'low'});const _0x31f960=(_0x4246cf,_0xdaf639)=>{let _0x3eff76=!0x1;const _0x4ed2c3=_0xdaf639['createRangeOn'](_0x4246cf),_0x1bacf1=_0x4246cf['findAncestor']('table'),_0x5cd84e=_0x54dd23['getCellLocation'](_0x4246cf);for(const _0x5a01a9 of this['_tableSuggestions']){const _0x4b3537=_0x5a01a9['subType'],_0x5ca8b4=_0x4b3537['startsWith']('tablePaste'),_0xb7f129=_0x4b3537['substr'](_0x5ca8b4?0xa:0x5),_0xb06c84=_0xb7f129['toLowerCase'](),_0x5cbce4=_0xb06c84['substr'](0x0,0x3)+'span',_0x35fec8='min'+_0xb7f129,_0x1f9d53='max'+_0xb7f129;if(!_0x5a01a9['isInContent'])continue;if(_0x1bacf1!=_0x5a01a9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a01a9['isIntersectingWithRange'](_0x4ed2c3))continue;const _0x72ac2f=_0x4246cf['hasAttribute'](_0x5cbce4)?_0x4246cf['getAttribute'](_0x5cbce4)-0x1:0x0,_0x162545=this['_getSuggestionCoords'](_0x5a01a9),_0xa6cf92=_0x162545[_0x35fec8],_0x53da96=_0x162545[_0x1f9d53];_0xa6cf92<=_0x5cd84e[_0xb06c84]&&_0x5cd84e[_0xb06c84]+_0x72ac2f<=_0x53da96&&(_0x5a01a9['addRange'](_0x4ed2c3),_0x3eff76=!0x0);}return _0x3eff76;};_0x10da4a['model']['document']['registerPostFixer'](_0x225e1d=>{let _0x254df7=!0x1;for(const _0x1de660 of _0x10da4a['model']['document']['differ']['getChanges']())if('insert'==_0x1de660['type']){if('tableRow'==_0x1de660['name']){for(const _0x4284a1 of _0x1de660['position']['nodeAfter']['getChildren']())_0x254df7=_0x254df7||_0x31f960(_0x4284a1,_0x225e1d);}else'tableCell'==_0x1de660['name']&&(_0x254df7=_0x254df7||_0x31f960(_0x1de660['position']['nodeAfter'],_0x225e1d));}return _0x254df7;});}['_getSuggestionCoords'](_0x4bf690){return this['_getCoordsForCells'](_0x4bf690['getRanges']()['map'](_0x3d1d50=>_0x3d1d50['start']['nodeAfter']));}}function be(_0x2bc990){return Array['from'](new Set(_0x2bc990)['values']());}class vt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x32bac0=this['editor'],_0x3827a9=_0x32bac0['model']['document']['selection'],_0x111720=_0x32bac0['locale'];if(!_0x32bac0['plugins']['has']('TableEditing'))return;const _0x4afd23=_0x32bac0['plugins']['get']('TrackChangesEditing'),_0x243178=_0x32bac0['plugins']['get']('TableUtils'),_0x1f90ea=_0x32bac0['plugins']['get'](It);_0x1f90ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4afd23['enableCommand']('mergeTableCells',()=>{const _0x4740a8=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection']);_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat'](_0x4740a8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32bac0['commands']['get']('mergeTableCells')['on']('execute',(_0x31107a,_0x3061d4)=>{_0x32bac0['commands']['get']('trackChanges')['value']&&(_0x3061d4['length']>0x0&&_0x3061d4[_0x3061d4['length']-0x1]&&_0x3061d4[_0x3061d4['length']-0x1]['forceDefaultExecution']||_0x4afd23['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x31107a['stop']());},{'priority':'highest'});for(const _0x300ff9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb71297=_0x32bac0['commands']['get'](_0x300ff9);_0x4afd23['enableCommand'](_0x300ff9,()=>{const _0x56134a=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22c5e3=>_0x22c5e3['is']('element','tableCell')),_0x15bdc5=_0xb71297['value'];_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat']([_0x56134a,_0x15bdc5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168a0b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x8a0c51=_0x32bac0['commands']['get'](_0x168a0b);_0x4afd23['enableCommand'](_0x168a0b,()=>{const _0x4405a2=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection'])[0x0],_0x129c97=_0x4405a2['findAncestor']('table'),{column:_0x1d2840,row:_0x575788}=_0x243178['getCellLocation'](_0x4405a2);let _0x2fc27=[];if('horizontally'==_0x8a0c51['direction']){const _0x7529ec=_0x243178['createTableWalker'](_0x129c97,{'startRow':_0x575788,'endRow':_0x575788,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x7529ec)['map'](_0x817391=>_0x817391['cell']);}else{const _0x17a9c3=_0x243178['createTableWalker'](_0x129c97,{'column':_0x1d2840,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x17a9c3)['map'](_0x34bbec=>_0x34bbec['cell']);}_0x32bac0['model']['change'](_0x47191e=>{_0x4afd23['markBlockFormat'](_0x47191e['createRangeOn'](_0x4405a2),{'commandName':_0x168a0b,'commandParams':[]},_0x2fc27,_0x168a0b);});});}_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0xd035eb=>{if('formatBlock'!=_0xd035eb['type']&&'formatInline'!=_0xd035eb['type'])return;const {data:_0x1ec0dc}=_0xd035eb;return _0x1ec0dc&&'mergeTableCells'==_0x1ec0dc['commandName']?{'type':'format','content':o(_0x111720,'*Merge\x20cells*')}:void 0x0;}),_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0x4db1d1=>{if('formatBlock'!=_0x4db1d1['type']&&'formatInline'!=_0x4db1d1['type'])return;const {data:_0x384cb7}=_0x4db1d1;return _0x384cb7?'splitTableCellVertically'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x290fd8=_0x1f90ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d02ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d02ab,'accept',_0x290fd8);for(const _0x67df3c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x67df3c,'accept',_0x290fd8);_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff2fd1=>{_0x32bac0['model']['change'](_0x314449=>{const _0x122d97=Array['from'](_0x3827a9['getRanges']())['map'](_0xc6b6ec=>_0x1a312e['fromRange'](_0xc6b6ec));_0x314449['setSelection'](_0xff2fd1),_0x32bac0['commands']['get']('mergeTableCells')['refresh'](),_0x32bac0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c5498=_0x122d97['filter'](_0x451805=>'$graveyard'!=_0x451805['root']['rootName']);_0x2c5498['length']>0x0&&_0x314449['setSelection'](_0x2c5498);for(const _0x169eab of _0x122d97)_0x169eab['detach']();});});for(const _0x1ad70b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2222e6=_0x32bac0['commands']['get'](_0x1ad70b);_0x2222e6['on']('set:isEnabled',(_0x5cd07e,_0xac71c4,_0x3ab118)=>{if(_0x3ab118){const _0x1d1943=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x234161=>_0x234161['is']('element','tableCell'));this['_areMergableCells'](_0x2222e6['value'],_0x1d1943)||(_0x5cd07e['return']=!0x1,_0x5cd07e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6420bf=this['editor']['commands']['get']('mergeTableCells'),_0x21fbff=this['editor']['plugins']['get']('TableUtils');if(!_0x6420bf['isEnabled'])return!0x1;const _0x25492a=_0x21fbff['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x471d59 of _0x25492a)for(const _0x5cea80 of _0x25492a)if(_0x471d59!=_0x5cea80&&!this['_areMergableCells'](_0x471d59,_0x5cea80))return!0x1;return!0x0;}['_areMergableCells'](_0x42d77e,_0x213ccf){const _0x46d434=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27b765=this['editor']['model']['createRangeOn'](_0x42d77e),_0x5d888c=this['editor']['model']['createRangeOn'](_0x213ccf),_0x52ec3b=new Set(),_0x1f2d3c=new Set();for(const _0x2feaf2 of _0x46d434['getSuggestions']())if(('insertion'==_0x2feaf2['type']||'deletion'==_0x2feaf2['type']||'mergeTableCells'==_0x2feaf2['subType'])&&_0x2feaf2['isInContent']){for(const _0x2eb362 of _0x2feaf2['getRanges']())_0x2eb362['containsRange'](_0x27b765,!0x0)&&_0x52ec3b['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']),_0x2eb362['containsRange'](_0x5d888c,!0x0)&&_0x1f2d3c['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']);}if(_0x52ec3b['size']!=_0x1f2d3c['size'])return!0x1;for(const _0x35f958 of _0x52ec3b)if(!_0x1f2d3c['has'](_0x35f958))return!0x1;return!0x0;}}class Ct extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x42e268=this['editor'];if(!_0x42e268['plugins']['has']('TableEditing'))return;const _0x1b12ff=_0x42e268['locale'],_0x18a39e=_0x42e268['plugins']['get']('TrackChangesEditing');_0x18a39e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x18a39e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x18a39e['registerBlockAttribute']('headingRows'),_0x18a39e['registerBlockAttribute']('headingColumns'),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b12ff,'FORMAT_HEADER_ROW')),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b12ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59449c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x207e10=this['editor']['plugins']['get']('TableUtils'),_0x444f6c=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5a99ff({showActiveMarker:_0x4037b5=!0x0,setDataAttribute:_0x4d407d=!0x0}={}){return(_0x352f26,_0x4e3144,_0x4f2a1d)=>{const {type:_0x32a6d0,id:_0x424666}=_0x59449c['_splitMarkerName'](_0x4e3144['markerName']),_0x48e1cc=_0x59449c['getSuggestion'](_0x424666),_0x56b423=_0x48e1cc['data'];if('formatBlock'!=_0x48e1cc['type']||!_0x56b423||'setTableColumnHeader'!=_0x56b423['commandName'])return;if(_0x4e3144['item'])return void _0x352f26['stop']();if(!_0x4f2a1d['consumable']['consume'](_0x4e3144['markerRange'],_0x352f26['name']))return;const _0x1d76ea=_0x4e3144['markerRange']['start']['nodeAfter'],_0x387ce4=_0x4e3144['markerRange']['end']['nodeBefore'],_0x15c1c7=_0x1d76ea['parent']['parent'],{column:_0xa78dd1}=_0x207e10['getCellLocation'](_0x1d76ea),{column:_0x1af853}=_0x207e10['getCellLocation'](_0x387ce4);for(let _0x1bf346=_0xa78dd1;_0x1bf346<=_0x1af853;_0x1bf346++){const _0x5a763c=_0x207e10['createTableWalker'](_0x15c1c7,{'column':_0x1bf346,'includeAllSlots':!0x1});for(const _0x5ec8e6 of _0x5a763c){const _0x129f97=_0x5ec8e6['cell'],_0x4b9d7e=_0x4f2a1d['mapper']['toViewElement'](_0x129f97);_0x4f2a1d['writer']['addClass']('ck-suggestion-marker-'+_0x32a6d0,_0x4b9d7e),_0x4d407d&&_0x4f2a1d['writer']['setAttribute']('data-suggestion',_0x424666,_0x4b9d7e),_0x4f2a1d['mapper']['bindElementToMarker'](_0x4b9d7e,_0x4e3144['markerName']),_0x4037b5&&(_0x59449c['activeMarkers']['includes'](_0x4e3144['markerName'])?_0x4f2a1d['writer']['addClass']('ck-suggestion-marker--active',_0x4b9d7e):_0x4f2a1d['writer']['removeClass']('ck-suggestion-marker--active',_0x4b9d7e));}}};}_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x444f6c),_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x444f6c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a99ff(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7afb,_0x30ec00,_0x3042e4)=>{_0x3042e4['options']['showSuggestionHighlights']&&_0x5a99ff({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7afb,_0x30ec00,_0x3042e4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46000f,_0x1bf62e,_0xe4d9dd)=>{const {type:_0x5efc9d,id:_0x501a3a}=_0x59449c['_splitMarkerName'](_0x1bf62e['markerName']),_0x3074fa=_0x59449c['getSuggestion'](_0x501a3a),_0x314905=_0x3074fa['data'];if('formatBlock'!=_0x3074fa['type']||!_0x314905||'setTableColumnHeader'!=_0x314905['commandName'])return;const _0x41843f=_0xe4d9dd['mapper']['markerNameToElements'](_0x1bf62e['markerName']);if(_0x41843f){for(const _0xd74e6e of _0x41843f)_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5efc9d,_0xd74e6e),_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker--active',_0xd74e6e),_0xe4d9dd['writer']['removeAttribute']('data-suggestion',_0xd74e6e),_0xe4d9dd['mapper']['unbindElementFromMarkerName'](_0xd74e6e,_0x1bf62e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed58ee=this['editor'],_0x278add=_0xed58ee['locale'];function _0x1ffc89(_0x26baad){return{'type':'format','content':o(_0x278add,'*Format:*\x20%0',_0x26baad)};}_0xed58ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f552=>{if('formatBlock'!=_0x20f552['type'])return;const {data:_0x5d302f}=_0x20f552;if(_0x5d302f){if('setTableRowHeader'==_0x5d302f['commandName']){const _0x2bfde8=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x2bfde8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5d302f['commandName']){const _0x1a79b2=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x1a79b2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x53cd0c=>[_0x53cd0c,null]));class _t extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x208132=this['editor'];if(!_0x208132['plugins']['has']('TableClipboard'))return;const _0x65db92=_0x208132['plugins']['get']('TrackChangesEditing'),_0x2174cd=_0x208132['plugins']['get']('TableUtils'),_0x2c5761=_0x208132['plugins']['get'](It),_0xd75745=_0x208132['plugins']['get']('TableClipboard');_0x2c5761['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208132['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208132['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x25b36e=null;_0x208132['model']['on']('insertContent',(_0x42b39d,_0x2c5418)=>{const [_0x448670,_0x29f7f6]=_0x2c5418,_0x5d6779=_0x2c5418[_0x2c5418['length']-0x1];_0x5d6779&&_0x5d6779['forceDefaultExecution']||_0x65db92['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a1482,_0x137d75,_0x1f500f,_0x8d9326,_0x1fa43c){if(_0x137d75&&!_0x137d75['is']('documentSelection'))return!0x1;const _0x445777=_0x1fa43c['getTableIfOnlyTableInContent'](_0x4a1482,_0x1f500f);if(!_0x445777||!Re(_0x445777,void 0x0,_0x8d9326))return!0x1;const _0x2abaf7=_0x8d9326['getSelectionAffectedTableCells'](_0x1f500f['document']['selection']);if(!_0x2abaf7['length'])return!0x1;const _0x34bb0f=_0x2abaf7[0x0]['findAncestor']('table'),_0x212a1a=_0x8d9326['getRowIndexes'](_0x2abaf7),_0x12545b=_0x8d9326['getColumnIndexes'](_0x2abaf7),_0x59fb4f={'startRow':_0x212a1a['first'],'endRow':_0x212a1a['last'],'startColumn':_0x12545b['first'],'endColumn':_0x12545b['last']};return 0x1==_0x2abaf7['length']&&(_0x59fb4f['endRow']+=_0x8d9326['getRows'](_0x445777)-0x1,_0x59fb4f['endColumn']+=_0x8d9326['getColumns'](_0x445777)-0x1),Re(_0x34bb0f,_0x59fb4f,_0x8d9326);}(_0x448670,_0x29f7f6,_0x208132['model'],_0x2174cd,_0xd75745)&&(_0x42b39d['stop'](),_0x25b36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208132['model']['change'](()=>{_0x208132['model']['insertContent'](_0x2c5418[0x0],_0x2c5418[0x1],_0x2c5418[0x2],{'forceDefaultExecution':!0x0});const _0x29fe8e=_0x4cf4cc(),{rowInsertionRanges:_0x3533c7,columnInsertionRanges:_0x4b38ef,insertionRanges:_0x5f04a9,deletionRanges:_0x209b25,cells:_0x26fa32}=_0x25b36e;_0x3533c7['length']&&_0x65db92['markMultiRangeInsertion'](_0x3533c7,'tablePasteRow',{'tablePasteChainId':_0x29fe8e}),_0x4b38ef['length']&&_0x65db92['markMultiRangeInsertion'](_0x4b38ef,'tablePasteColumn',{'tablePasteChainId':_0x29fe8e}),_0x5f04a9['length']&&(_0x65db92['markMultiRangeInsertion'](_0x5f04a9,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x5f04a9['forEach'](_0x1d6269=>_0x1d6269['detach']?.())),_0x209b25['length']&&(_0x65db92['markMultiRangeDeletion'](_0x209b25,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x209b25['forEach'](_0x3716dd=>_0x3716dd['detach']?.()));const _0x188273=_0x65db92['markMultiRangeBlockFormat'](_0x26fa32['map'](({element:_0x48b184})=>_0x48b184),{'formatGroupId':_0x4cf4cc()},[],'tablePasteCell',{'tablePasteChainId':_0x29fe8e});if(_0x188273){const _0x49bc62=_0x188273['getMarkers'](),_0x26012d=[];for(const {element:_0x37c6eb,attributes:_0x3e77b7}of _0x26fa32){if(!_0x3e77b7)continue;const _0x4d7dd5=_0x208132['model']['createRangeOn'](_0x37c6eb),_0x1e51bb=_0x49bc62['find'](_0x23a4cd=>_0x23a4cd['getRange']()['isEqual'](_0x4d7dd5));_0x1e51bb&&_0x26012d['push']([_0x1e51bb['name'],_0x3e77b7]);}_0x26012d['length']&&_0x188273['setAttribute']('markerAttributes',Object['fromEntries'](_0x26012d));}_0x25b36e=null;}));},{'priority':_0x2219d1['high']+0xa}),_0x208132['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x13af4d,_0x4ed1bd)=>{const [_0x467aec,_0x38186e,,_0x4db7f8]=_0x4ed1bd;if(!_0x25b36e)return;_0x13af4d['stop']();const _0x129ad6=_0x467aec['cell'],_0x3e6b9f=_0x38186e,_0x5a0a3e=ke(_0x129ad6),_0x2b86af=ke(_0x3e6b9f);_0x13af4d['return']=_0x129ad6;let _0x308a4f=null,_0x5003de=null;if(_0x2b86af||_0x5a0a3e){if(_0x5a0a3e&&!_0x2b86af){_0x4db7f8['remove'](_0x129ad6['getChild'](0x0));for(const _0x14b560 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x14b560,_0x129ad6,'end');const _0x279915=_0x25b36e['rowInsertionIndexes']['includes'](_0x467aec['row']),_0x1edc89=_0x25b36e['columnInsertionIndexes']['includes'](_0x467aec['column']);_0x279915||_0x1edc89||(_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeIn'](_0x129ad6)));}else _0x2b86af&&!_0x5a0a3e&&(_0x5003de=_0x4db7f8['createRangeIn'](_0x129ad6));}else{const _0x387088=_0x4db7f8['createElement']('tableCellSuggestion'),_0x816150=_0x4db7f8['createElement']('tableCellSuggestion');_0x4db7f8['wrap'](_0x4db7f8['createRangeIn'](_0x129ad6),_0x816150),_0x4db7f8['insert'](_0x387088,_0x129ad6,0x0);for(const _0x189fb3 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x189fb3,_0x387088,'end');_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x387088)),_0x5003de=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x816150));}const _0x21a6b1=Array['from'](_0x3e6b9f['getAttributes']())['filter'](([_0x5c9f06])=>Pe['includes'](_0x5c9f06));_0x25b36e['cells']['push']({'element':_0x129ad6,'attributes':_0x21a6b1['length']?Object['fromEntries'](_0x21a6b1):null}),_0x308a4f&&_0x25b36e['insertionRanges']['push'](_0x308a4f),_0x5003de&&_0x25b36e['deletionRanges']['push'](_0x5003de);},{'priority':'high'}),_0x2174cd['on']('insertColumns',(_0x2f805e,_0xc6ccd9)=>{const [_0x4f046a,_0x4320bc={}]=_0xc6ccd9;if(!_0x25b36e)return;const _0x4e3bb8=_0x4320bc['at']||0x0,_0x2fc683=_0x4320bc['columns']||0x1;_0x25b36e['columnInsertionIndexes']=new Array(_0x2fc683)['fill'](_0x4e3bb8)['map']((_0x3b87df,_0x4ae35c)=>_0x3b87df+_0x4ae35c);for(const {cell:_0x2e2303}of _0x2174cd['createTableWalker'](_0x4f046a,{'startColumn':_0x4e3bb8,'endColumn':_0x4e3bb8+_0x2fc683-0x1}))_0x25b36e['columnInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x2e2303));},{'priority':'low'}),_0x2174cd['on']('insertRows',(_0x4a608b,_0xe1314d)=>{const [_0x4971da,_0x5cd6dd={}]=_0xe1314d;if(!_0x25b36e)return;const _0x240e97=_0x5cd6dd['at']||0x0,_0x9c7874=_0x5cd6dd['rows']||0x1;_0x25b36e['rowInsertionIndexes']=new Array(_0x9c7874)['fill'](_0x240e97)['map']((_0x5a8dd5,_0x118761)=>_0x5a8dd5+_0x118761);for(const {cell:_0x29ac8c}of _0x2174cd['createTableWalker'](_0x4971da,{'startRow':_0x240e97,'endRow':_0x240e97+_0x9c7874-0x1}))_0x25b36e['rowInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x29ac8c));},{'priority':'low'}),_0x65db92['descriptionFactory']['registerDescriptionCallback'](_0x2d3164=>{if(_0x2d3164['subType']&&_0x2d3164['subType']['startsWith']('tablePaste'))return _0x2d3164['previous']?{}:{'type':'insertion','content':o(_0x208132['locale'],'*Replace\x20table\x20cells*')};});const _0x4ab357=()=>!0x1;for(const _0x1469d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('deletion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1469d9,'join',_0x4ab357);_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d0a7a,_0x976afb,_0x160e11)=>{const _0x368597=_0x5d0a7a['map'](_0x49ad7b=>_0x49ad7b['getContainedElement']())['filter'](_0x539b3a=>_0x539b3a),_0x304ea5=new Map(_0x368597['map'](_0xbb8b57=>[_0xbb8b57,null]));if(_0x25b36e){for(const {element:_0x8eb6cd,attributes:_0x292ad4}of _0x25b36e['cells'])_0x292ad4&&_0x304ea5['set'](_0x8eb6cd,_0x292ad4);}else{if(_0x160e11&&_0x160e11['markerAttributes'])for(const [_0x336268,_0x465521]of Object['entries'](_0x160e11['markerAttributes'])){const _0x1549d6=_0x208132['model']['markers']['get'](_0x336268),_0x50722d=_0x1549d6?_0x1549d6['getRange']()['getContainedElement']():null;_0x50722d&&_0x304ea5['set'](_0x50722d,_0x465521);}}_0x208132['model']['change'](_0x1f529d=>{for(const [_0x2af0e9,_0x30ae81]of _0x304ea5)_0x1f529d['setAttributes']({...we,..._0x30ae81},_0x2af0e9);});});const _0x40f628=(_0xbd1f62,_0x3a0412)=>{_0x65db92['_suggestionFactory']['registerCustomCallback'](_0xbd1f62,'tablePaste',_0x3a0412,(_0x349515,_0x147a3d,_0x3c9137)=>{_0x208132['model']['change'](_0x23dc35=>{const _0x3fa984=[];for(const _0x5d1892 of _0x349515){const _0x78be02=_0x5d1892['start']['nodeAfter'];_0x78be02['is']('element','tableCellSuggestion')&&_0x3fa984['push'](_0x78be02);}_0x65db92['_suggestionFactory']['getSuggestionCallback'](_0xbd1f62,null,_0x3a0412)(_0x349515,_0x147a3d,_0x3c9137);for(const _0x2cf9ff of _0x3fa984)'$graveyard'!=_0x2cf9ff['root']['rootName']&&_0x23dc35['unwrap'](_0x2cf9ff);});});};_0x40f628('insertion','accept'),_0x40f628('insertion','discard'),_0x40f628('deletion','accept'),_0x40f628('deletion','discard'),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22a337=>{const _0x9f9fd2=_0x22a337['map'](_0xa664db=>_0xa664db['getContainedElement']()),_0x1a6c06=_0x9f9fd2[0x0]['findAncestor']('table'),{minRow:_0x1fab86,maxRow:_0x29e7ba}=_0x2c5761['_getCoordsForCells'](_0x9f9fd2);_0x2174cd['removeRows'](_0x1a6c06,{'at':_0x1fab86,'rows':_0x29e7ba-_0x1fab86+0x1});}),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52a124=>{const _0x718cc8=_0x52a124['map'](_0x10c680=>_0x10c680['getContainedElement']()),_0x40d671=_0x718cc8[0x0]['findAncestor']('table'),{minColumn:_0x5849dd,maxColumn:_0x3cbf2d}=_0x2c5761['_getCoordsForCells'](_0x718cc8);_0x2174cd['removeColumns'](_0x40d671,{'at':_0x5849dd,'columns':_0x3cbf2d-_0x5849dd+0x1});});const _0x11d25f=(_0x4adb97,_0x31a003)=>{if(!_0x31a003['subType']||!_0x31a003['subType']['startsWith']('tablePaste'))return;const _0x4bd757=_0x31a003['attributes']['tablePasteChainId'],_0x682f1f=_0x65db92['getSuggestions']()['filter'](_0x48f9eb=>_0x48f9eb['isInContent']&&_0x48f9eb['attributes']&&_0x48f9eb['attributes']['tablePasteChainId']==_0x4bd757);_0x682f1f['length']&&_0x31a003['getAllAdjacentSuggestions']()['length']!=_0x682f1f['length']&&_0x682f1f['reduce']((_0x1ebf94,_0x54a506)=>(_0x1ebf94['next']=_0x54a506,_0x54a506['previous']=_0x1ebf94,_0x54a506));};function _0x4b578b(_0x4e4421,_0x555134=!0x0){const {id:_0x226456,authorId:_0x239cb8}=_0x65db92['_splitMarkerName'](_0x4e4421['markerName']),_0x299fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x550f3a=_0x65db92['activeMarkers']['includes'](_0x4e4421['markerName']);return _0x550f3a&&_0x299fbc['push']('ck-suggestion-marker--active'),{'classes':_0x299fbc,'attributes':{'data-suggestion':_0x226456,'data-author-id':_0x239cb8},'priority':_0x550f3a&&_0x555134?0xbc2:0xbb8};}_0x65db92['on']('suggestionLoaded',_0x11d25f,{'priority':'high'}),_0x65db92['on']('suggestionUnloaded',_0x11d25f,{'priority':'high'}),_0x208132['model']['document']['registerPostFixer'](()=>{let _0xb6b026=!0x1;const _0x4d90f9=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe6e92e,data:_0x1e2f7f}of _0x4d90f9){const {group:_0x551562,type:_0x347a90,id:_0x43a074}=_0x65db92['_splitMarkerName'](_0xe6e92e);if('suggestion'!=_0x551562||'deletion'!=_0x347a90||_0x1e2f7f['oldRange'])continue;if(!_0x65db92['hasSuggestion'](_0x43a074))continue;const _0x5058ce=_0x65db92['getSuggestion'](_0x43a074)['getRanges'](),_0x3b37bd=_0x208132['plugins']['get']('Users')['me'];for(const _0x3eeb29 of _0x65db92['getSuggestions']()){if(!_0x3eeb29['isInContent']||_0x3eeb29['author']!=_0x3b37bd)continue;if('formatBlock'!=_0x3eeb29['type']||'tablePasteCell'!=_0x3eeb29['subType'])continue;if(_0x3eeb29['getRanges']()['every'](_0x509a18=>_0x5058ce['some'](_0x201630=>_0x201630['containsRange'](_0x509a18,!0x0)))){for(const _0x5e8f73 of _0x3eeb29['getAllAdjacentSuggestions']())_0x5e8f73['isInContent']&&(_0x5e8f73['discard'](),_0xb6b026=!0x0);}}}return _0xb6b026;}),_0x208132['model']['document']['registerPostFixer'](_0x4553e5=>{const _0x48ace6=_0x208132['commands']['get']('redo');if(!_0x48ace6||!_0x48ace6['_createdBatches']['has'](_0x4553e5['batch']))return!0x1;let _0x517fe0=!0x1;const _0x11fd88=_0x208132['plugins']['get']('Users')['me'],_0x2580de=_0x208132['model']['document']['differ']['getChanges'](),_0x588da1=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x239589,data:_0x447596})=>{const {group:_0x33783c,subType:_0x5ac2f8,authorId:_0xfb2498}=_0x65db92['_splitMarkerName'](_0x239589);return'suggestion'==_0x33783c&&'tablePaste'==_0x5ac2f8&&_0xfb2498==_0x11fd88['id']&&!_0x447596['oldRange'];});for(const _0x410b40 of _0x2580de){if('insert'!=_0x410b40['type']||'tableCellSuggestion'!=_0x410b40['name']||0x1!=_0x410b40['length'])continue;const _0x5c6b76=_0x4553e5['createRange'](_0x410b40['position'],_0x410b40['position']['getShiftedBy'](0x1));if(!_0x588da1['find'](({data:_0x5eff02})=>_0x5eff02['newRange']['isEqual'](_0x5c6b76))){for(const {name:_0x4e656e,data:_0x40e455}of _0x588da1)if(_0x5c6b76['containsRange'](_0x40e455['newRange'])){_0x4553e5['updateMarker'](_0x4e656e,{'range':_0x5c6b76}),_0x517fe0=!0x0;break;}}}return _0x517fe0;}),_0x208132['model']['document']['registerPostFixer'](_0x485f88=>{let _0x4b6e6a=!0x1;const _0xfc4968=_0x208132['plugins']['get']('Users')['me'],_0x3606c1=_0x65db92['getSuggestions']()['filter'](_0x28f625=>_0x28f625['isInContent']&&_0x28f625['author']==_0xfc4968),_0x428b57=new Set(),_0x139783=new Set();for(const _0x42e628 of _0x3606c1)if('tablePaste'==_0x42e628['subType'])for(const _0xd5a8be of _0x42e628['getMarkers']()){const _0xf75b2d=_0xd5a8be['getRange']()['getContainedElement']();if(_0xf75b2d){if(_0xf75b2d['is']('element','tableCellSuggestion')&&ke(_0xf75b2d)){_0x42e628['removeMarker'](_0xd5a8be['name']),_0x428b57['add'](_0xf75b2d),_0x4b6e6a=!0x0;const _0x28b20b=_0xf75b2d['nextSibling'],_0x4aa809=_0xf75b2d['previousSibling'],_0x29b69e=_0x28b20b&&_0x28b20b['is']('element','tableCellSuggestion'),_0x4f72e8=_0x4aa809&&_0x4aa809['is']('element','tableCellSuggestion');_0x29b69e&&!_0x428b57['has'](_0x28b20b)&&_0x139783['add'](_0x28b20b),_0x4f72e8&&!_0x428b57['has'](_0x4aa809)&&_0x139783['add'](_0x4aa809);}else _0xf75b2d['is']('element','paragraph')&&_0xf75b2d['isEmpty']&&(_0x42e628['removeMarker'](_0xd5a8be['name']),_0x4b6e6a=!0x0);}}else{if('tablePasteCell'==_0x42e628['subType']){if(!_0x42e628['attributes']||!_0x42e628['attributes']['tablePasteChainId'])continue;const _0x9b5050=_0x42e628['attributes']['markerAttributes'];if(_0x9b5050&&Object['keys'](_0x9b5050)['length'])continue;const _0x526753=_0x42e628['attributes']['tablePasteChainId'];let _0x14d573=!0x0,_0x38298e=!0x0;for(const _0x397583 of _0x3606c1)if(_0x397583['subType']&&_0x397583['subType']['startsWith']('tablePaste')){if(!_0x397583['attributes']['tablePasteChainId']){_0x38298e=!0x1;break;}if(_0x397583['id']!=_0x42e628['id']&&_0x397583['attributes']['tablePasteChainId']==_0x526753){_0x14d573=!0x1;break;}}_0x38298e&&_0x14d573&&(_0x42e628['removeMarkers'](),_0x4b6e6a=!0x0);}}for(const _0x33c911 of _0x428b57)_0x485f88['remove'](_0x33c911);for(const _0x48cb66 of _0x139783)_0x485f88['unwrap'](_0x48cb66);return _0x4b6e6a;}),_0x208132['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb67ef5=>_0x4b578b(_0xb67ef5),'converterPriority':'high'}),_0x208132['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23981c,_0x57f5c0)=>_0x57f5c0['options']['showSuggestionHighlights']?_0x4b578b(_0x23981c,!0x1):null,'converterPriority':'high'});const _0x1663d8=_0x208132['editing']['view'];this['listenTo'](_0x1663d8['document'],'clipboardOutput',(_0x90a410,_0x57de88)=>{const _0x468069=[];for(const _0x2c7350 of _0x1663d8['createRangeIn'](_0x57de88['content'])['getItems']())_0x2c7350['is']('element','suggestion-td')&&_0x468069['push'](_0x2c7350);_0x1663d8['change'](_0x5747c9=>{for(const _0x2b0ecd of _0x468069)_0x5747c9['move'](_0x5747c9['createRangeIn'](_0x2b0ecd),_0x5747c9['createPositionBefore'](_0x2b0ecd)),_0x5747c9['remove'](_0x2b0ecd);});});}}function ke(_0x5d4271){if(_0x5d4271['isEmpty'])return!0x0;const _0x5c1d17=_0x5d4271['getChild'](0x0);return _0x5c1d17['is']('element','paragraph')&&_0x5c1d17['isEmpty'];}function Re(_0x520536,_0x40bbca={},_0x413577){for(const {isAnchor:_0x5d6ff2,cellHeight:_0x5ceeee,cellWidth:_0x47ec5e}of _0x413577['createTableWalker'](_0x520536,{'includeAllSlots':!0x0,..._0x40bbca}))if(!_0x5d6ff2||0x1!=_0x5ceeee||0x1!=_0x47ec5e)return!0x1;return!0x0;}class Nt extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x265934=this['editor']['plugins']['get']('TrackChangesEditing');_0x265934['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x265934['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5df525,_0xdfa013){const _0x529cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16af63=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ae222=_0xdfa013['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5873b6=_0x16af63['getColumnGroupElement'](_0x1ae222);let _0x1bc1ae=_0x5873b6?_0x16af63['getTableColumnsWidths'](_0x5873b6):null,_0xcadaa6=_0x1ae222['getAttribute']('tableWidth')||null;const _0x29e3b6=_0xdfa013['tableWidth']||_0xcadaa6,_0x4f7008=_0xdfa013['columnWidths']||_0x1bc1ae,_0x1ab24c=this['editor']['plugins']['get']('Users')['me'];for(const _0x249fe5 of _0x529cc4['getSuggestions']()){const _0x29d02c=_0x249fe5['getContainedElement']();if('resizeTable'===_0x249fe5['subType']&&_0x29d02c===_0x1ae222){_0x249fe5['author']!==_0x1ab24c&&_0x249fe5['discard']();const _0x5401f8=_0x249fe5['data']['commandParams'];_0xcadaa6=_0x5401f8[0x0]['tableWidth'],_0x1bc1ae=_0x5401f8[0x0]['columnWidths'];break;}}_0x5df525({'table':_0x1ae222,'tableWidth':_0x29e3b6,'columnWidths':_0x4f7008}),_0x529cc4['markBlockFormat'](_0x1ae222,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcadaa6,'columnWidths':_0x1bc1ae}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50e56f){if('formatBlock'!=_0x50e56f['type']&&'formatInline'!=_0x50e56f['type'])return;const {data:_0x4c4cd}=_0x50e56f;if(_0x4c4cd&&'resizeTable'===_0x4c4cd['formatGroupId']){const _0x147a96='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x147a96)};}}}class Dt extends _0x4ba4b5{['afterInit'](){const _0x3b51f7=this['editor'];_0x3b51f7['plugins']['has']('Template')&&_0x3b51f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4ba4b5{['afterInit'](){const _0x5056e1=this['editor'];if(!_0x5056e1['commands']['get']('insertTableOfContents'))return;_0x5056e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x69d326=_0x5056e1['plugins']['get']('TrackChangesEditing'),_0x381a94=_0x5056e1['locale'];_0x69d326['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57bf7a=>o(_0x381a94,'ELEMENT_TABLE_OF_CONTENTS',_0x57bf7a));}}class $t extends _0x4ba4b5{['afterInit'](){const _0x45b87b=this['editor'];if(!_0x45b87b['plugins']['has']('Title'))return;const _0x8d96ab=_0x45b87b['plugins']['get']('TrackChangesEditing');_0x8d96ab['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x45b87b['locale'],'ELEMENT_TITLE')),_0x45b87b['model']['document']['registerPostFixer'](_0x120308=>{let _0x196bc7=!0x1;const _0x7090f6=Array['from'](_0x45b87b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ffe7f,data:_0x3a1f6e}of _0x7090f6){const {group:_0x2ba302}=_0x8d96ab['_splitMarkerName'](_0x1ffe7f);if('suggestion'!==_0x2ba302||!_0x3a1f6e['newRange'])continue;const _0x1d9167=_0x3a1f6e['newRange'],_0x4fe468=_0x1d9167['end']['nodeBefore'];if(!_0x4fe468||!_0x4fe468['is']('element','title-content'))continue;if(!_0x1d9167['start']['isTouching'](_0x1d9167['end']))continue;const _0x21745c=_0x45b87b['model']['schema']['getNearestSelectionRange'](_0x1d9167['end'],'forward');if(_0x21745c&&_0x21745c['isCollapsed']){const _0x190312=_0x120308['createRange'](_0x1d9167['start'],_0x21745c['start']);_0x190312['isEqual'](_0x1d9167)||(_0x120308['updateMarker'](_0x1ffe7f,{'range':_0x190312}),_0x196bc7=!0x0);}_0x196bc7||(_0x120308['removeMarker'](_0x1ffe7f),_0x196bc7=!0x0);}return _0x196bc7;});}}class Bt extends _0x4ba4b5{['afterInit'](){const _0x253460=this['editor'],_0x55dcae=_0x253460['plugins']['get']('TrackChangesEditing');_0x253460['plugins']['has']('UndoEditing')&&(_0x55dcae['enableCommand']('undo'),_0x55dcae['enableCommand']('redo'));}}class xt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x572be6=this['editor'];if(!_0x572be6['plugins']['has']('TableCaptionEditing'))return;_0x572be6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4ba4b5{['tableProperties'];['tableCellProperties'];constructor(_0x1de0e0){super(_0x1de0e0),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 _0x592bad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43d7f7 of this['tableProperties'])_0x592bad['enableCommand'](_0x43d7f7,(_0x565c86,_0x10be10)=>{const _0x23222c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43d7f7,[_0x23222c],this['tableProperties'],'tableProperties',_0x565c86,_0x10be10);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x352b9a,_0xd652ce)=>this['handleDiscardAction'](this['tableProperties'],_0x352b9a,_0xd652ce)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e442a of this['tableCellProperties'])_0x592bad['enableCommand'](_0x2e442a,(_0x1b4311,_0x14976c)=>{const _0x39d963=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e442a,_0x39d963,this['tableCellProperties'],'tableCellProperties',_0x1b4311,_0x14976c);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x90b44a,_0x36d49c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x90b44a,_0x36d49c)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592bad['descriptionFactory']['registerDescriptionCallback'](_0x114f58=>this['handleSuggestionDescription'](_0x114f58));}['_handlePropertyChange'](_0x119ebd,_0x54deb5,_0x3a405b,_0x1c8b5c,_0x6c7539,_0x48a6f4){const _0x504852=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48a6f4['batch'],()=>{for(const _0x3ad9ea of _0x54deb5){if(this['_getSuggestion'](_0x3ad9ea,_0x1c8b5c))_0x6c7539(_0x48a6f4);else{const _0x537085={};for(const _0x26c9db of _0x3a405b){const _0xdaffcf=_0x3ad9ea['getAttribute'](_0x26c9db);void 0x0!==_0xdaffcf&&(_0x537085[_0x26c9db]=_0xdaffcf);}_0x6c7539(_0x48a6f4),_0x504852['markBlockFormat'](_0x3ad9ea,{'commandParams':[_0x537085]},[],_0x1c8b5c);}}});}['handleDiscardAction'](_0x36a3f6,_0x2bc3df,_0x15dc46){const _0x413a7c=_0x2bc3df[0x0]['start']['nodeAfter'],_0x40d7ee=_0x15dc46['commandParams'][0x0];this['editor']['model']['change'](_0x309d63=>{for(const _0x55ab08 of _0x36a3f6)void 0x0!==_0x40d7ee[_0x55ab08]?_0x309d63['setAttribute'](_0x55ab08,_0x40d7ee[_0x55ab08],_0x413a7c):_0x309d63['removeAttribute'](_0x55ab08,_0x413a7c);});}['handleSuggestionDescription'](_0x4e2f4c){if(_0x4e2f4c['data'])switch(_0x4e2f4c['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'](_0x941636,_0x59aede){const _0x9904d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xb8b0f of _0x9904d['getSuggestions']({'skipNotAttached':!0x0})){const _0xfc8518=_0xb8b0f['getContainedElement']();if(_0xb8b0f['subType']===_0x59aede&&_0xfc8518===_0x941636)return _0xb8b0f;}return null;}}const m='$elementName';class p extends _0x4ba4b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x106ae5,_0x2e42cd,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(_0x4db54c){function _0x210ec3(_0x3bad2e){return _0x3bad2e['map'](_0x2a924b=>String['fromCharCode'](_0x2a924b))['join']('');}super(_0x4db54c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1fe91a,_0x301d83,_0x5dc067,_0x1478ec)=>{this['_model']['change'](()=>{for(const _0xc895cd of[..._0x1478ec,..._0x5dc067])this['_model']['markers']['has'](_0xc895cd)&&_0x4db54c['editing']['reconvertMarker'](_0xc895cd);});}),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']=_0x4db54c['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(),_0x4db54c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4db54c['config']['get']('trackChanges.trackFormatChanges'),_0x4db54c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4db54c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4db54c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x210ec3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x210ec3([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x36]);}['init'](){const _0x4e849a=this['editor'],_0x5f16d2=(_0x667aad,_0x9f9cbb)=>{if('attribute'!=_0x667aad)return'ck-suggestion-marker-'+_0x667aad;const _0x54b0d9=_0x9f9cbb['split']('|')[0x0];return this['_isBlockAttribute'](_0x54b0d9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e849a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ef494=>{const {id:_0x524ba0,authorId:_0x5ac038,type:_0x4cc8cb,subType:_0x35e80b}=this['_splitMarkerName'](_0x3ef494['markerName']),_0x410186=['ck-suggestion-marker',_0x5f16d2(_0x4cc8cb,_0x35e80b)];let _0x5136c6=0xbb8;return this['activeMarkers']['includes'](_0x3ef494['markerName'])&&(_0x410186['push']('ck-suggestion-marker--active'),_0x5136c6=0xbc2),'deletion'==_0x4cc8cb&&(_0x5136c6+=0x5),{'classes':_0x410186,'attributes':{'data-suggestion':_0x524ba0,'data-author-id':_0x5ac038},'priority':_0x5136c6};}}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x350026=>{_0x350026['on']('addMarker:suggestion',(_0x3ee738,_0x56561f,_0x3d8a67)=>{if(!_0x3d8a67['options']['showSuggestionHighlights'])return;const _0x23f19d=_0x56561f['item'];if(!_0x23f19d)return;const _0x29fef7=_0x3d8a67['mapper']['toViewElement'](_0x23f19d);_0x4e849a['model']['schema']['isObject'](_0x23f19d)&&_0x29fef7&&!_0x29fef7['getCustomProperty']('widget')&&_0x29fef7['is']('containerElement')&&_0x2c0c3d(_0x29fef7,_0x3d8a67['writer']);},{'priority':'high'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1ea477,_0x3778fd)=>{if(!_0x3778fd['options']['showSuggestionHighlights'])return null;const {type:_0x4bf089,subType:_0x4949df}=this['_splitMarkerName'](_0x1ea477['markerName']);return{'classes':['ck-suggestion-marker',_0x5f16d2(_0x4bf089,_0x4949df)],'priority':0xbb8};}});const _0x560b6d=({showActiveMarkers:_0xaffcd1=!0x0,isAttributeSuggestion:_0x7a2945=!0x1}={})=>(_0x4dad52,_0x4247b2,_0x385236)=>{if(!_0x4247b2['item'])return;const {id:_0x14e886,authorId:_0x4c14e2}=this['_splitMarkerName'](_0x4247b2['markerName']);if(_0x7a2945){const _0x5a0ea8=this['_suggestions']['get'](_0x14e886),_0x423a8a=this['_getAttributeKey'](_0x5a0ea8);if(!this['_isBlockAttribute'](_0x423a8a))return;}if(_0x4247b2['item']['is']('selection'))return void _0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);const _0x2962d4=_0x385236['mapper']['toViewElement'](_0x4247b2['item']);if(_0x4247b2['item']['is']('element')&&_0x4e849a['model']['schema']['isBlock'](_0x4247b2['item'])&&!_0x2962d4['getCustomProperty']('addHighlight')){_0x385236['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2962d4),_0x385236['writer']['setAttribute']('data-suggestion',_0x14e886,_0x2962d4),_0x385236['writer']['setAttribute']('data-author-id',_0x4c14e2,_0x2962d4),_0x385236['mapper']['bindElementToMarker'](_0x2962d4,_0x4247b2['markerName']),_0xaffcd1&&(this['activeMarkers']['includes'](_0x4247b2['markerName'])?_0x385236['writer']['addClass']('ck-suggestion-marker--active',_0x2962d4):_0x385236['writer']['removeClass']('ck-suggestion-marker--active',_0x2962d4));for(const _0x4839fc of _0x4e849a['model']['createRangeIn'](_0x4247b2['item'])['getItems']())_0x385236['consumable']['consume'](_0x4839fc,_0x4dad52['name']);_0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);}};_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x1de560=>{_0x1de560['on']('addMarker:suggestion:formatBlock',(_0x3abba1,_0x273c03,_0x52347d)=>{_0x52347d['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1})(_0x3abba1,_0x273c03,_0x52347d);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x2b90f4=>{_0x2b90f4['on']('addMarker:suggestion:attribute',(_0x2f6922,_0x4500d1,_0x4304a2)=>{_0x4304a2['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2f6922,_0x4500d1,_0x4304a2);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9ebdfd,_0x496220)=>_0x496220['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9ebdfd['substr'](0xb)}}),_0x4e849a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5526c9,{writer:_0x508b90})=>{let _0x1374e4='suggestion:'+_0x5526c9['getAttribute']('suggestion-type')+':'+_0x5526c9['getAttribute']('id');return _0x5526c9['getAttribute']('marker-count')&&(_0x1374e4+=':'+_0x5526c9['getAttribute']('marker-count')),_0x508b90['createElement']('$marker',{'data-name':_0x1374e4});}}),_0x4e849a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x456a8f=>{_0x456a8f['on']('addMarker:suggestion:formatBlock',_0x560b6d(),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x41bbab=>{_0x41bbab['on']('addMarker:suggestion:attribute',_0x560b6d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x16f18d=>{_0x16f18d['on']('removeMarker:suggestion:formatBlock',(_0x2ae808,_0x22a7fd,_0x2817fc)=>{const _0x27b7ce=_0x2817fc['mapper']['markerNameToElements'](_0x22a7fd['markerName']);if(_0x27b7ce){for(const _0x2c0063 of _0x27b7ce)_0x2c0063['getCustomProperty']('addHighlight')||(_0x2817fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-suggestion',_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-author-id',_0x2c0063),_0x2817fc['mapper']['unbindElementFromMarkerName'](_0x2c0063,_0x22a7fd['markerName']));}},{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x5dc642=>{_0x5dc642['on']('removeMarker:suggestion:attribute',(_0xac89f6,_0x53aaa6,_0x5af39b)=>{const _0x49debc=_0x5af39b['mapper']['markerNameToElements'](_0x53aaa6['markerName']);if(!_0x49debc)return;const {id:_0x4e8720}=this['_splitMarkerName'](_0x53aaa6['markerName']),_0x4d0929=this['_suggestions']['get'](_0x4e8720),_0x2fc784=this['_getAttributeKey'](_0x4d0929);if(this['_isBlockAttribute'](_0x2fc784)){for(const _0x4d585c of _0x49debc)_0x4d585c['getCustomProperty']('addHighlight')||(_0x5af39b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-suggestion',_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-author-id',_0x4d585c),_0x5af39b['mapper']['unbindElementFromMarkerName'](_0x4d585c,_0x53aaa6['markerName']));}},{'priority':'high'});}),_0x4e849a['model']['document']['registerPostFixer'](_0x407658=>{let _0x46558f=!0x1;const _0x1ef5d7=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']()),_0x3843c0=new Set();for(const {name:_0x33711d,data:_0x49324b}of _0x1ef5d7){const {group:_0xd47b8e,type:_0x340eb8,subType:_0x3a8160,id:_0x2ce2fa}=this['_splitMarkerName'](_0x33711d);if('suggestion'!==_0xd47b8e)continue;const _0x476f8f=this['_suggestions']['get'](_0x2ce2fa);if(null!=_0x49324b['newRange']){'formatInline'==_0x340eb8&&(_0x46558f=_0x46558f||Ut(_0x49324b['newRange'],_0x33711d,_0x407658,_0x4e849a['model']['schema']));const _0x103a5c='attribute'==_0x340eb8&&this['_isBlockAttribute'](_0x3a8160['split']('|')[0x0]);if(_0x49324b['newRange']['isCollapsed']||'$graveyard'==_0x49324b['newRange']['root']['rootName']||'formatBlock'==_0x340eb8&&!Ft(_0x49324b['newRange'])||_0x103a5c&&!Ft(_0x49324b['newRange'])||'deletion'==_0x340eb8&&!(!Vt(_0x1af6af=_0x49324b['newRange'])&&!function(_0x3babce){return _0x3babce['start']['parent']==_0x3babce['end']['nodeBefore']&&_0x3babce['start']['isAtEnd'];}(_0x1af6af)))_0x407658['removeMarker'](_0x33711d),_0x46558f=!0x0;else{if(!_0x476f8f||!_0x476f8f['isInContent'])continue;if(_0x49324b['newRange']&&_0x49324b['oldRange']&&_0x49324b['newRange']['isEqual'](_0x49324b['oldRange']))continue;_0x3843c0['add'](_0x476f8f);}}}var _0x1af6af;return _0x3843c0['size']>0x0&&(_0x46558f=!!this['_joinWithAdjacentSuggestions'](_0x3843c0)||_0x46558f),_0x46558f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x46ee4f=>{let _0x54065f=!0x1;for(const _0x2ea32e of _0x4e849a['model']['document']['differ']['getChanges']())if('insert'==_0x2ea32e['type'])for(const _0x258bc8 of this['_suggestions']['values']()){if(_0x258bc8['isMultiRange']||!_0x258bc8['isInContent'])continue;const _0x2d4cb6='formatBlock'==_0x258bc8['type'],_0xad600f=this['_getAttributeKey'](_0x258bc8),_0x17dfe5=_0xad600f&&this['_isBlockAttribute'](_0xad600f);if(!_0x2d4cb6&&!_0x17dfe5)continue;const _0x1ce872=_0x258bc8['getFirstRange']();if(_0x1ce872['start']['parent']!=_0x1ce872['end']['parent']&&!_0x1ce872['end']['isAtEnd']){const _0x1a8165=_0x4e849a['model']['createPositionAt'](_0x1ce872['start']['nodeAfter'],'end'),_0x14722a=_0x4e849a['model']['createRange'](_0x1ce872['start'],_0x1a8165);_0x46ee4f['updateMarker'](_0x258bc8['getFirstMarker'](),{'range':_0x14722a}),_0x54065f=!0x0;}}return _0x54065f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x5f1657=>this['_processAttributeChanges'](_0x5f1657)),_0x4e849a['model']['document']['registerPostFixer'](_0x28d1c0=>!_0x28d1c0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28d1c0)),_0x4e849a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e849a['model']['document']['on']('change:data',(_0xfb6685,_0x35ef50)=>{if(!_0x35ef50['isLocal']||_0x35ef50['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1a0df5=_0x4e849a['model']['document']['differ']['getChanges']();if(0x0==_0x1a0df5['length'])return;const _0x2b7dfd=[],_0x1051b4=_0x1a0df5['filter'](_0xa6cdd9=>'attribute'==_0xa6cdd9['type']),_0xf2a844=_0x1a0df5['filter'](_0x192208=>'insert'==_0x192208['type']&&'$text'!=_0x192208['name']);for(const _0x3161fb of _0x1051b4)this['_isRegisteredAttribute'](_0x3161fb['attributeKey'])&&_0x2b7dfd['push']({'key':_0x3161fb['attributeKey'],'newValue':_0x3161fb['attributeNewValue'],'oldValue':_0x3161fb['attributeOldValue'],'range':Pt(_0x3161fb['range'],_0x4e849a['model'])});for(const _0x96a21b of _0xf2a844){if('rename'!=_0x96a21b['action']&&'refresh'!=_0x96a21b['action'])continue;const _0x529d1a=Lt(_0x96a21b['position']['nodeAfter'],_0x4e849a['model']),_0x11c053=_0x96a21b['before'];'rename'==_0x96a21b['action']&&_0x2b7dfd['push']({'key':m,'newValue':_0x96a21b['name'],'oldValue':_0x11c053['name'],'range':_0x529d1a});for(const [_0x4dfa4d,_0x4fdeca]of _0x11c053['attributes']){if(!this['_isRegisteredAttribute'](_0x4dfa4d))continue;const _0x63770f=_0x96a21b['attributes']['get'](_0x4dfa4d);_0x4fdeca!==_0x63770f&&_0x2b7dfd['push']({'key':_0x4dfa4d,'newValue':_0x63770f,'oldValue':_0x4fdeca,'range':_0x529d1a});}for(const [_0x28e904,_0x4884af]of _0x96a21b['attributes'])this['_isRegisteredAttribute'](_0x28e904)&&(_0x11c053['attributes']['has'](_0x28e904)||_0x2b7dfd['push']({'key':_0x28e904,'newValue':_0x4884af,'oldValue':null,'range':_0x529d1a}));}0x0!=_0x2b7dfd['length']&&_0x4e849a['model']['enqueueChange'](_0x35ef50,_0x58a331=>{const _0x4215fd=_0x4cf4cc();for(const {range:_0x346a52,key:_0x49c335,oldValue:_0x49823c,newValue:_0x1ee07c}of _0x2b7dfd)this['markAttributeChange'](_0x346a52,_0x49c335,_0x49823c,_0x1ee07c,{'groupId':_0x4215fd});this['_reduceExistingSuggestions'](_0x58a331,_0x2b7dfd);});},{'priority':'lowest'}),_0x4e849a['model']['markers']['on']('update:suggestion',(_0x338c2d,_0x3039cc,_0x8ce5c8)=>{if(null==_0x8ce5c8){const {id:_0x3c3f17}=this['_splitMarkerName'](_0x3039cc['name']),_0x3a724e=this['_suggestions']['get'](_0x3c3f17);_0x3a724e&&_0x3a724e['addMarkerName'](_0x3039cc['name']);}}),_0x4e849a['model']['document']['on']('change:data',()=>{const _0x3603d1=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ea174=>'suggestion'===this['_splitMarkerName'](_0x5ea174['name'])['group']);if(0x0===_0x3603d1['length'])return;_0x3603d1['sort']((_0x5f5cdc,_0x100a72)=>{const _0x2925be=_0x5f5cdc['data']['oldRange'],_0x36290b=_0x100a72['data']['oldRange'];return null===_0x2925be&&null===_0x36290b?0x0:null===_0x2925be&&null!==_0x36290b?-0x1:null!==_0x2925be&&null===_0x36290b?0x1:_0x2925be['start']['isBefore'](_0x36290b['start'])?-0x1:0x1;});const _0x74450b=new Set(),_0x421a84=new Set();for(const {name:_0x506324,data:_0x2badab}of _0x3603d1){const {id:_0x218cb5}=this['_splitMarkerName'](_0x506324);if(null===_0x2badab['oldRange']){const _0x56ff9c=this['_handleNewSuggestionMarker'](_0x506324);_0x421a84['add'](_0x56ff9c);}else{const _0x429897=this['_suggestions']['get'](_0x218cb5);null!==_0x2badab['newRange']||_0x429897['isInContent']?(_0x74450b['add'](_0x429897['head']),_0x421a84['add'](_0x429897)):this['_removeSuggestion'](_0x429897);}}_0x421a84['size']>0x0&&this['_refreshSuggestionsChain'](_0x421a84);for(const _0x5e89ad of _0x74450b)this['fire']('suggestionChanged',_0x5e89ad);}),_0x4e849a['model']['on']('applyOperation',(_0x1bcbd5,_0x10edf0)=>{const _0x4463ed=_0x10edf0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4463ed['isDocumentOperation'])return;if(_0x4463ed['batch']['isUndo']||!_0x4463ed['batch']['isLocal'])return;let _0x4accad,_0x1f6160;switch(_0x4463ed['type']){case'insert':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['position']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;case'split':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['splitPosition']),_0x1f6160=_0x4e849a['model']['createPositionAt'](_0x4463ed['moveTargetPosition']);break;case'move':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['targetPosition']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;default:return;}const _0x8398dc=_0x4e849a['model']['createRange'](_0x4accad,_0x1f6160);_0x4e849a['model']['change'](()=>{for(const {suggestion:_0x557faa,meta:_0x5c3b99}of this['_findSuggestions'](_0x8398dc)){if(_0x557faa['isMultiRange'])continue;if('formatInline'==_0x557faa['type'])continue;const _0x9f0863=this['_getAttributeKey'](_0x557faa);if(_0x9f0863&&this['_isBlockAttribute'](_0x9f0863)&&'split'!=_0x4463ed['type'])continue;const _0x7a136c=_0x557faa['data']&&_0x557faa['data']['multipleBlocks'];('formatBlock'!=_0x557faa['type']||'split'==_0x4463ed['type']&&!_0x7a136c)&&(_0x5c3b99['containsRangeInObject']||'insertion'==_0x557faa['type']&&_0x5c3b99['isOwn']||_0x557faa['getFirstRange']()['containsRange'](_0x8398dc)&&this['_breakSuggestionMarker'](_0x557faa,_0x4accad,_0x1f6160));}});},{'priority':'lowest'}),_0x4e849a['model']['on']('deleteContent',(_0x325a74,_0x362f44)=>{const _0xc0f05c=_0x362f44[0x0],_0x3ea16f=_0x362f44[0x1];if(_0x3ea16f&&_0x3ea16f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc0f05c['isCollapsed'])return;const _0x4b5e7a=_0x4e849a['model']['schema'],{start:_0x58ee53,end:_0x159a5e}=_0xc0f05c['getFirstRange'](),_0x2c59a1=_0x58ee53['nodeAfter']&&_0x4b5e7a['isLimit'](_0x58ee53['nodeAfter'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x58ee53,'forward'),_0x43b919=_0x159a5e['nodeBefore']&&_0x4b5e7a['isLimit'](_0x159a5e['nodeBefore'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x159a5e,'backward'),_0x45ea84=_0x4e849a['model']['createRange'](_0x2c59a1?_0x2c59a1['start']:_0x58ee53,_0x43b919?_0x43b919['end']:_0x159a5e);_0x4e849a['model']['change'](_0x59e54c=>{this['markDeletion'](_0x45ea84);const _0x2d9968=_0x4e849a['model']['schema']['getNearestSelectionRange'](_0x45ea84['start']);_0xc0f05c['is']('documentSelection')?_0x59e54c['setSelection'](_0x2d9968):_0xc0f05c['setTo'](_0x2d9968);}),_0x325a74['stop']();},{'priority':_0x2219d1['normal']+0xa}),_0x4e849a['model']['on']('insertContent',(_0x18c26f,_0xb4bd73)=>{const _0x50ac3e=_0xb4bd73[_0xb4bd73['length']-0x1];_0x50ac3e&&_0x50ac3e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e849a['model']['change'](()=>{let _0x2ab19e=_0x4e849a['model']['insertContent'](_0xb4bd73[0x0],_0xb4bd73[0x1],_0xb4bd73[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ab19e)return;_0x18c26f['return']=_0x2ab19e['clone']();const _0x358165=_0x2ab19e['end']['nodeBefore'],_0x53886c=_0x4e849a['model']['schema'];_0x358165&&_0x53886c['isBlock'](_0x358165)&&!_0x53886c['isObject'](_0x358165)&&(_0x2ab19e=_0x4e849a['model']['createRange'](_0x2ab19e['start'],_0x4e849a['model']['createPositionAt'](_0x358165,'end'))),this['markInsertion'](_0x2ab19e);}),_0x18c26f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40ed9a=new x(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('acceptSuggestion',_0x40ed9a),this['enableCommand']('acceptSuggestion');const _0xbe795b=new R(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('discardSuggestion',_0xbe795b),this['enableCommand']('discardSuggestion'),_0x4e849a['commands']['add']('acceptAllSuggestions',new E(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e849a['commands']['add']('discardAllSuggestions',new E(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e849a['commands']['add']('acceptSelectedSuggestions',new O(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e849a['commands']['add']('discardSelectedSuggestions',new O(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x47c1c2=_0x4e849a['plugins']['get']('CommentsRepository');this['listenTo'](_0x47c1c2,'addComment',(_0x267077,{threadId:_0x3406a9})=>{const _0x5df124=this['_suggestions']['get'](_0x3406a9);_0x5df124&&_0x5df124['commentThread']&&0x1===_0x5df124['commentThread']['length']&&this['_updateSuggestionData'](_0x3406a9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x47c1c2,'removeComment',(_0x260fc1,{threadId:_0x3719f7})=>{const _0x562f89=this['_suggestions']['get'](_0x3719f7);_0x562f89&&_0x562f89['commentThread']&&!_0x562f89['commentThread']['length']&&this['_updateSuggestionData'](_0x3719f7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31be2d){if(this['_adapter'])throw new _0x1a35b0('track-changes-adapter-already-set',this);this['_adapter']=_0x31be2d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x23357=!0x1,toJSON:_0x1cd6d4=!0x1}={}){const _0x36f9fb=[];for(const _0x2a0598 of this['_suggestions']['values']())_0x23357&&!_0x2a0598['isInContent']||_0x36f9fb['push'](_0x2a0598);return _0x1cd6d4?_0x36f9fb['map'](_0x18e3e9=>_0x18e3e9['toJSON']()):_0x36f9fb;}['getSuggestion'](_0x13db28){const _0x44d018=this['_suggestions']['get'](_0x13db28);if(!_0x44d018)throw new _0x1a35b0('track-changes-suggestion-not-found',this);return _0x44d018;}['hasSuggestion'](_0x2c1334){return this['_suggestions']['has'](_0x2c1334);}['addSuggestionData'](_0x1e5d28){const {authorId:_0x161b83,id:_0x2ad7d1,attributes:_0x39bcf2}=_0x1e5d28,[_0x2db450,_0x1e14fc]=_0x1e5d28['type']['split'](':'),_0x23b80b=this['_suggestions']['get'](_0x2ad7d1)||this['_createSuggestion'](_0x2db450,_0x1e14fc,_0x2ad7d1,_0x161b83,_0x39bcf2);if(this['_addThreadToSuggestion'](_0x23b80b),this['_checkSuggestionCorrectness'](_0x23b80b,_0x2db450,_0x1e14fc||null,_0x161b83),_0x23b80b['createdAt']=_0x1e5d28['createdAt'],_0x23b80b['_isDataLoaded']=!0x0,_0x39bcf2&&_0x39bcf2['@external']){const _0x1164d0=_0x39bcf2['@external'],_0x48502d=this['_getExternalAuthor'](_0x1164d0['authorName']);_0x23b80b['authoredAt']=_0x1164d0['createdAt'],_0x23b80b['author']=_0x48502d,_0x23b80b['isExternal']=!0x0;}else _0x23b80b['authoredAt']=_0x1e5d28['createdAt'];switch(_0x1e5d28['data']&&(_0x23b80b['data']=_0x1e5d28['data']),_0x1e5d28['attributes']&&(_0x23b80b['attributes']=_0x1e5d28['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23b80b['_saved']=!0x0),this['_suggestionState']['get'](_0x23b80b)){case'notReady':this['_suggestionState']['set'](_0x23b80b,'dataReady');break;case'markerReady':_0x23b80b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23b80b])),this['_refreshSuggestionsChain'](new Set([_0x23b80b])),this['_suggestionState']['set'](_0x23b80b,'ready'),this['fire']('suggestionLoaded',_0x23b80b)):this['_suggestionState']['set'](_0x23b80b,'removed');}return _0x23b80b;}['acceptSuggestion'](_0x5a9204){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14dae8 of _0x5a9204['getAllAdjacentSuggestions']())_0x14dae8['accept']();});});}['discardSuggestion'](_0x574375){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x587d4d of _0x574375['getAllAdjacentSuggestions']())_0x587d4d['discard']();});});}['enableCommand'](_0x525779,_0x281836){const _0x80de3=this['editor']['commands']['get'](_0x525779);if(!_0x80de3)throw new _0x1a35b0('track-changes-command-not-found',this,{'commandName':_0x525779});if(this['_enabledCommands']['has'](_0x80de3))throw new _0x1a35b0('track-changes-enable-command-twice',this,{'commandName':_0x525779});this['_enabledCommands']['add'](_0x80de3),_0x281836&&_0x80de3['on']('execute',(_0x335274,_0x3d2288)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d2288['length']>0x0&&_0x3d2288[_0x3d2288['length']-0x1]&&_0x3d2288[_0x3d2288['length']-0x1]['forceDefaultExecution']?_0x3d2288['pop']():(_0x335274['return']=_0x281836((..._0x422dc4)=>_0x80de3['execute'](..._0x422dc4,{'forceDefaultExecution':!0x0}),..._0x3d2288),_0x335274['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb5bd6b){let _0x2d6016,_0x4edb49;const _0x1ace38=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d6016=_0xb5bd6b();}catch(_0xe8fc22){_0x4edb49=_0xe8fc22;}return _0x1ace38||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4edb49&&_0x1a35b0['rethrowUnexpectedError'](_0x4edb49,this),_0x2d6016;}['markInsertion'](_0x378ebc,_0x292a76=null,_0x2e3566={}){if(_0x378ebc['isCollapsed'])return null;const _0x340371=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x141a18,meta:_0x1ea768}of this['_findSuggestions'](_0x378ebc,'insertion'))if(_0x1ea768['isOwn']){if(!_0x1ea768['isNextTo']){if(_0x1ea768['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x141a18,_0x2e3566))continue;return _0x141a18;}if(qt(_0x141a18,_0x2e3566))return _0x141a18;this['_breakSuggestionMarker'](_0x141a18,_0x378ebc['start'],_0x378ebc['end']);break;}if(_0x292a76==_0x141a18['subType']&&qt(_0x141a18,_0x2e3566)){const _0x44e119=_0x141a18['getFirstRange']();return _0x44e119['start']['isEqual'](_0x378ebc['end'])?this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x378ebc['start'],_0x44e119['end'])):this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x44e119['start'],_0x378ebc['end'])),_0x141a18;}}const _0x306f3c=_0x4cf4cc(),_0x17353c=_0x340371['id'],_0x568002=_0x292a76?'insertion:'+_0x292a76:'insertion',_0x4b1046=this['_setSuggestionData']({'id':_0x306f3c,'type':_0x568002,'createdAt':new Date(),'authorId':_0x17353c,'attributes':_0x2e3566});return this['_addSuggestionMarker'](_0x568002,_0x306f3c,_0x17353c,_0x378ebc),_0x4b1046;}['markMultiRangeInsertion'](_0x55a908,_0x338f46='multi',_0x5a408f={}){const _0x180894=this['editor']['plugins']['get']('Users')['me'],_0x397e8c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x338f46,'join');for(const _0x24e8c4 of this['getSuggestions']())if(_0x24e8c4['author']['id']==_0x180894['id']&&'insertion'==_0x24e8c4['type']&&_0x24e8c4['subType']==_0x338f46&&qt(_0x24e8c4,_0x5a408f)&&(_0x397e8c(_0x24e8c4['getRanges'](),_0x55a908)||_0x397e8c(_0x55a908,_0x24e8c4['getRanges']()))){for(const _0x36b0c4 of _0x55a908)_0x24e8c4['addRange'](_0x36b0c4);return _0x24e8c4;}for(const {suggestion:_0x28df4d,meta:_0x36f902}of this['_findSuggestions'](_0x55a908,'insertion')){if(!_0x36f902['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36f902['containsRangeInObject'])continue;if(!qt(_0x28df4d,_0x5a408f))continue;let _0x348600=!0x0;for(const _0x203116 of _0x28df4d['getRanges']())for(const _0x52ace5 of _0x55a908)if(!_0x203116['containsRange'](_0x52ace5)){_0x348600=!0x1;break;}if(_0x348600)return _0x28df4d;}const _0x1aa8e3=_0x4cf4cc(),_0x46e38d=_0x180894['id'],_0x379661='insertion:'+_0x338f46,_0x46111f=this['_setSuggestionData']({'id':_0x1aa8e3,'type':_0x379661,'createdAt':new Date(),'authorId':_0x46e38d,'attributes':_0x5a408f});for(const _0x9334b0 of _0x55a908)this['_addSuggestionMarker'](_0x379661,_0x1aa8e3,_0x46e38d,_0x9334b0,u['getMultiRangeId']());return _0x46111f;}['markInlineFormat'](_0x1bb288,_0x2c19a2,_0x5571b2=null,_0x10ace9={}){if(_0x5571b2=_0x5571b2||Gt(_0x2c19a2),_0x1bb288['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4befe3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');return this['forceDefaultExecution'](()=>_0x4befe3([_0x1bb288],_0x2c19a2,_0x10ace9)),null;}const _0x4adf37=this['editor']['plugins']['get']('Users')['me'],_0x439e03=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x581434,meta:_0x222391}of this['_findSuggestions'](_0x1bb288,'insertion'))_0x222391['isOwn']&&!_0x222391['isInsideObject']&&_0x439e03['push'](..._0x581434['getRanges']());}const _0x551f07=function(_0x3a5b6e,_0x472090){const _0x396843=[];for(const _0x42c0eb of _0x472090){const _0x994154=_0x3a5b6e['getIntersection'](_0x42c0eb);_0x994154&&_0x396843['push'](_0x994154);}return _0x396843;}(_0x1bb288,_0x439e03),_0x2931c9=function(_0x4d094e,_0x3ff3a1){const _0xe60464=[_0x4d094e];for(const _0x56bb76 of _0x3ff3a1){let _0x51c60b=0x0;for(;_0x51c60b<_0xe60464['length'];){const _0x38d749=_0xe60464[_0x51c60b]['getDifference'](_0x56bb76);_0xe60464['splice'](_0x51c60b,0x1,..._0x38d749),_0x51c60b+=_0x38d749['length'];}}return _0xe60464;}(_0x1bb288,_0x439e03);_0x551f07['length']&&this['_model']['change'](()=>{for(const _0x505180 of _0x551f07){const _0x4bb73a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');this['forceDefaultExecution'](()=>_0x4bb73a([_0x505180],_0x2c19a2,_0x10ace9));}});for(const _0x15cd28 of _0x2931c9){let _0x3f84aa=null,_0x53abc9=_0x15cd28['start'],_0x572107=_0x15cd28['end'];for(const {suggestion:_0x5bd769,meta:_0x1ceac4}of this['_findSuggestions'](_0x15cd28,'formatInline')){if(!_0x1ceac4['isOwn'])continue;if(_0x5bd769['subType']!=_0x5571b2)continue;if(!qt(_0x5bd769,_0x10ace9))continue;const _0x217ba2=_0x5bd769['getFirstRange']();if(_0x217ba2['containsRange'](_0x15cd28,!0x0))return null;_0x53abc9=_0x53abc9['isBefore'](_0x217ba2['start'])?_0x53abc9:_0x217ba2['start'],_0x572107=_0x572107['isAfter'](_0x217ba2['end'])?_0x572107:_0x217ba2['end'],_0x3f84aa?_0x217ba2['start']['isBefore'](_0x3f84aa['getFirstRange']()['start'])?(_0x3f84aa['removeMarkers'](),_0x3f84aa=_0x5bd769):_0x5bd769['removeMarkers']():_0x3f84aa=_0x5bd769;}const _0x59ca73=this['_model']['createRange'](_0x53abc9,_0x572107);if(_0x3f84aa)this['_setSuggestionRange'](_0x3f84aa,_0x59ca73);else{const _0xd2084b=_0x4cf4cc(),_0x440240=_0x4adf37['id'];this['_setSuggestionData']({'id':_0xd2084b,'type':'formatInline:'+_0x5571b2,'data':_0x2c19a2,'createdAt':new Date(),'authorId':_0x440240,'attributes':_0x10ace9}),this['_addSuggestionMarker']('formatInline:'+_0x5571b2,_0xd2084b,_0x440240,_0x59ca73);}}return null;}['markBlockFormat'](_0x3cf355,_0xd7c589,_0x1d9350=[],_0x40437a=null,_0x28a14f={}){_0xd7c589['formatGroupId']||(_0xd7c589['formatGroupId']=_0xd7c589['commandName']),_0xd7c589['multipleBlocks']=_0x3cf355['is']('range'),_0x40437a=_0x40437a||Gt(_0xd7c589);const _0x155277=_0x1d9350['map'](_0xc8cbf0=>Lt(_0xc8cbf0,this['_model'])),_0x279bbf=_0x3cf355['is']('range')?_0x3cf355:Lt(_0x3cf355,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c90ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x2c90ac([_0x279bbf],_0xd7c589,_0x28a14f)),null;}_0x155277['push'](_0x279bbf);let _0x548923=!0x0;for(const _0x38da19 of _0x155277)if(!this['_rangeIsInLocalUserInsertion'](_0x38da19)){_0x548923=!0x1;break;}if(_0x548923&&'always'!==this['_trackFormatChanges']){const _0x4c1ddb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x4c1ddb([_0x279bbf],_0xd7c589,_0x28a14f)),null;}let _0x32f687=null,_0x477b33=_0x279bbf['start'],_0x36e719=_0x279bbf['end'];for(const {suggestion:_0x654d06,meta:_0x563c4b}of this['_findSuggestions'](_0x279bbf,'formatBlock')){if(!_0x563c4b['isOwn'])continue;if(_0x563c4b['isNextTo']||_0x563c4b['containsRangeInObject']||_0x563c4b['isInsideObject'])continue;if(_0x654d06['data']['formatGroupId']!=_0xd7c589['formatGroupId'])continue;if(!qt(_0x654d06,_0x28a14f))continue;const _0x57271a=_0x654d06['getFirstRange']();if(_0x654d06['subType']==_0x40437a){if(_0x57271a['containsRange'](_0x279bbf,!0x0))return null;_0x477b33=_0x477b33['isBefore'](_0x57271a['start'])?_0x477b33:_0x57271a['start'],_0x36e719=_0x36e719['isAfter'](_0x57271a['end'])?_0x36e719:_0x57271a['end'],_0x32f687?_0x57271a['start']['isBefore'](_0x32f687['getFirstRange']()['start'])?(_0x32f687['removeMarkers'](),_0x32f687=_0x654d06):_0x654d06['removeMarkers']():_0x32f687=_0x654d06;}else{const _0x4d0419=_0x279bbf['getIntersection'](_0x57271a);this['_cutOutSuggestionMarker'](_0x654d06,_0x4d0419);}}const _0x2c340d=this['editor']['plugins']['get']('Users')['me'],_0x37af2e=_0x4cf4cc(),_0x4c64d0=_0x2c340d['id'];if(_0x32f687)return this['_setSuggestionRange'](_0x32f687,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x32f687;{const _0x1fff9e=this['_setSuggestionData']({'id':_0x37af2e,'type':'formatBlock:'+_0x40437a,'data':_0xd7c589,'createdAt':new Date(),'authorId':_0x4c64d0,'attributes':_0x28a14f});return this['_addSuggestionMarker']('formatBlock:'+_0x40437a,_0x37af2e,_0x4c64d0,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x1fff9e;}}['markMultiRangeBlockFormat'](_0x3bc529,_0x1356ba,_0x1da445=[],_0x1faf48=null,_0x1b02da={}){_0x1356ba['formatGroupId']||(_0x1356ba['formatGroupId']=_0x1356ba['commandName']);const _0x31fd59=_0x3bc529[0x0];_0x1356ba['multipleBlocks']=_0x31fd59['is']('range'),_0x1faf48=_0x1faf48||Gt(_0x1356ba);const _0x3d77dd=_0x1da445['map'](_0x2d95be=>Lt(_0x2d95be,this['_model'])),_0x507aa2=_0x31fd59['is']('range')?_0x3bc529:_0x3bc529['map'](_0x10c925=>Lt(_0x10c925,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d5b02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x1d5b02(_0x507aa2,_0x1356ba,_0x1b02da)),null;}_0x3d77dd['push'](..._0x507aa2);let _0x61ddb0=!0x0;for(const _0x4fe82c of _0x3d77dd)if(!this['_rangeIsInLocalUserInsertion'](_0x4fe82c)){_0x61ddb0=!0x1;break;}if(_0x61ddb0&&'always'!==this['_trackFormatChanges']){const _0x3107e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x3107e9(_0x507aa2,_0x1356ba,_0x1b02da)),null;}const _0x42faf1=this['editor']['plugins']['get']('Users')['me'];for(const _0x122611 of this['getSuggestions']()){if(_0x122611['author']['id']!=_0x42faf1['id'])continue;if('formatBlock'!=_0x122611['type']||_0x122611['data']['formatGroupId']!=_0x1356ba['formatGroupId'])continue;if(!qt(_0x122611,_0x1b02da))continue;const _0x11a421=_0x122611['subType']==_0x1faf48;for(let _0x4c08f2=0x0;_0x4c08f2<_0x507aa2['length'];_0x4c08f2++){const _0x316d2b=_0x507aa2[_0x4c08f2];for(const _0xb3c08d of _0x122611['getMarkers']()){const _0x4d661b=_0xb3c08d['getRange']();if(_0x316d2b['isEqual'](_0x4d661b)){_0x11a421?(_0x507aa2['splice'](_0x4c08f2,0x1),_0x4c08f2--):_0x122611['removeMarker'](_0xb3c08d['name']);break;}}}}if(0x0==_0x507aa2['length'])return null;const _0x4bccf5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'join');for(const _0x1018cc of this['getSuggestions']())if(_0x1018cc['author']['id']==_0x42faf1['id']&&'formatBlock'==_0x1018cc['type']&&_0x1018cc['data']['formatGroupId']==_0x1356ba['formatGroupId']&&_0x1018cc['subType']==_0x1faf48&&qt(_0x1018cc,_0x1b02da)&&(_0x4bccf5(_0x1018cc['getRanges'](),_0x507aa2)||_0x4bccf5(_0x507aa2,_0x1018cc['getRanges']()))){for(const _0x207c39 of _0x507aa2)_0x1018cc['addRange'](_0x207c39);return _0x1018cc;}const _0xaf8338=_0x4cf4cc(),_0xc994d6=_0x42faf1['id'],_0x598169='formatBlock:'+_0x1faf48,_0x3a42be=this['_setSuggestionData']({'id':_0xaf8338,'type':_0x598169,'data':_0x1356ba,'createdAt':new Date(),'authorId':_0xc994d6,'attributes':_0x1b02da});for(const _0x2dfe48 of _0x507aa2)this['_addSuggestionMarker'](_0x598169,_0xaf8338,_0xc994d6,_0x2dfe48,u['getMultiRangeId']());return _0x3a42be;}['markDeletion'](_0x31deca,_0x2dcfbf=null,_0x23437e={}){if(_0x31deca['isCollapsed'])return null;const _0x340824=this['editor']['plugins']['get']('Users')['me'],_0x2e5745=new _0x1a312e(_0x31deca['start'],_0x31deca['end']);for(const {suggestion:_0x5db4cf,meta:_0x1fbd2b}of this['_findSuggestions'](_0x2e5745,'insertion'))if(_0x1fbd2b['isOwn']&&!_0x1fbd2b['isNextTo']){if(_0x5db4cf['isMultiRange']){const _0x5819bd=_0x5db4cf['getRanges']()['filter'](_0x40a18b=>'$graveyard'!=_0x40a18b['root']['rootName']);_0x5819bd['every'](_0x470131=>_0x2e5745['containsRange'](_0x470131,!0x0))&&_0x5db4cf['discard']();if(_0x5819bd['some'](_0x3c6b4b=>_0x3c6b4b['containsRange'](_0x2e5745,!0x0))){const _0x508233=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcfbf,'accept');return this['forceDefaultExecution'](()=>_0x508233([_0x2e5745],null,_0x23437e)),null;}}else{const _0x41eeb6=_0x2e5745['getIntersection'](_0x5db4cf['getFirstRange']());null!==_0x41eeb6&&_0x5db4cf['_onDiscard']([_0x41eeb6],null,_0x23437e);}}if(_0x2e5745['detach'](),_0x2e5745['isCollapsed']||'$graveyard'==_0x2e5745['root']['rootName'])return null;let _0x16f828=null,_0x52e68a=_0x2e5745['start'],_0x1633e0=_0x2e5745['end'];const _0x543884=this['_findSuggestions'](_0x2e5745,'deletion');for(const {suggestion:_0x4a0687,meta:_0x575987}of _0x543884){const _0x39c0b1=this['_model']['createRange'](_0x52e68a,_0x1633e0);if(_0x575987['isOwn']&&(this['_mergeNestedSuggestions']||!_0x575987['containsRangeInObject']&&!_0x575987['isInsideObject'])){if(_0x4a0687['isMultiRange']){if(!qt(_0x4a0687,_0x23437e))continue;let _0xab8e81=!0x0;for(const _0x3601e6 of _0x4a0687['getRanges']()){if(_0x3601e6['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;_0x39c0b1['containsRange'](_0x3601e6)||(_0xab8e81=!0x1);}_0xab8e81&&_0x4a0687['discard']();}else{const _0x463e68=_0x4a0687['getFirstRange']();if(_0x463e68['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;if(!qt(_0x4a0687,_0x23437e)){_0x39c0b1['containsRange'](_0x463e68)?_0x4a0687['removeMarkers']():_0x463e68['containsPosition'](_0x52e68a)?_0x52e68a=_0x463e68['end']:_0x463e68['containsPosition'](_0x1633e0)&&(_0x1633e0=_0x463e68['start']);continue;}_0x52e68a=_0x52e68a['isBefore'](_0x463e68['start'])?_0x52e68a:_0x463e68['start'],_0x1633e0=_0x1633e0['isAfter'](_0x463e68['end'])?_0x1633e0:_0x463e68['end'],_0x23437e=Object['assign']({},_0x4a0687['attributes']),_0x16f828?_0x463e68['start']['isBefore'](_0x16f828['getFirstRange']()['start'])?(_0x16f828['removeMarkers'](),_0x16f828=_0x4a0687):_0x4a0687['removeMarkers']():_0x16f828=_0x4a0687;}}}if(_0x16f828)return this['_setSuggestionRange'](_0x16f828,this['_model']['createRange'](_0x52e68a,_0x1633e0)),_0x16f828;{const _0x4f82ba=_0x4cf4cc(),_0x20812a=this['_model']['createRange'](_0x52e68a,_0x1633e0),_0x53fdaa=_0x340824['id'],_0x13757b=_0x2dcfbf?'deletion:'+_0x2dcfbf:'deletion',_0x14e77f=this['_setSuggestionData']({'id':_0x4f82ba,'type':_0x13757b,'createdAt':new Date(),'authorId':_0x53fdaa,'attributes':_0x23437e});return this['_addSuggestionMarker'](_0x13757b,_0x4f82ba,_0x53fdaa,_0x20812a),_0x14e77f;}}['markMultiRangeDeletion'](_0x81750b,_0x538b2a='multi',_0xf3bd51={}){const _0x1e5152=this['editor']['plugins']['get']('Users')['me'],_0x30af89=_0x81750b['map'](_0x499431=>new _0x1a312e(_0x499431['start'],_0x499431['end'])),_0x5f0319=new Set();for(const {suggestion:_0x3cb003,meta:_0x3f1f04}of this['_findSuggestions'](_0x30af89,'insertion'))_0x3f1f04['isOwn']&&!_0x3f1f04['isNextTo']&&_0x5f0319['add'](_0x3cb003);for(const _0x360e91 of _0x5f0319)if(_0x360e91['isMultiRange']){const _0x479c2f=_0x360e91['getRanges']();(!_0x360e91['attributes']||!_0x360e91['attributes']['skipNestingCheck'])&&(_0x479c2f['every'](_0x40ba7c=>_0x30af89['some'](_0x371ca2=>_0x371ca2['containsRange'](_0x40ba7c,!0x0)))&&_0x360e91['discard']());if(_0x30af89['every'](_0x592a1a=>_0x479c2f['some'](_0x44ffbf=>_0x44ffbf['containsRange'](_0x592a1a,!0x0)))){const _0x1e6d16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x1e6d16(_0x81750b,null,_0xf3bd51)),null;}}else{const _0x5b61d7=_0x360e91['getFirstRange']();_0x30af89['some'](_0x287f0f=>_0x287f0f['containsRange'](_0x5b61d7,!0x0))&&_0x360e91['discard']();if(_0x30af89['every'](_0x398b52=>_0x5b61d7['containsRange'](_0x398b52,!0x0))){const _0x231752=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x231752(_0x30af89,null,_0xf3bd51)),null;}}const _0x2e979f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'join');let _0x4cd003=null;for(const _0x2ce796 of this['getSuggestions']())if(_0x2ce796['author']['id']==_0x1e5152['id']&&_0x2ce796['isInContent']&&'deletion'==_0x2ce796['type']&&_0x2ce796['subType']==_0x538b2a&&qt(_0x2ce796,_0xf3bd51)&&(_0x2e979f(_0x2ce796['getRanges'](),_0x30af89)||_0x2e979f(_0x30af89,_0x2ce796['getRanges']()))){if(_0x4cd003){if(_0x2ce796['commentThread']&&_0x2ce796['commentThread']['length'])continue;for(const _0x4aa77d of _0x2ce796['getRanges']())_0x4cd003['isIntersectingWithRange'](_0x4aa77d)||_0x4cd003['addRange'](_0x4aa77d);_0x2ce796['removeMarkers']();}else{_0x4cd003=_0x2ce796;for(const _0x59a02e of _0x30af89)_0x2ce796['isIntersectingWithRange'](_0x59a02e)||_0x2ce796['addRange'](_0x59a02e);}}if(_0x4cd003)return _0x4cd003;_0x5f0319['clear']();for(const {suggestion:_0x2e8484,meta:_0x20dce0}of this['_findSuggestions'](_0x30af89,'deletion'))_0x20dce0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20dce0['containsRangeInObject']&&!_0x20dce0['isInsideObject'])&&qt(_0x2e8484,_0xf3bd51)&&_0x5f0319['add'](_0x2e8484);for(const _0xa16ef of _0x5f0319){const _0x480a07=_0xa16ef['getRanges']();if(!_0xf3bd51||!_0xf3bd51['skipNestingCheck']){if(_0x30af89['every'](_0x189ca4=>_0x480a07['some'](_0xbd3f4e=>_0xbd3f4e['containsRange'](_0x189ca4,!0x0))))return _0xa16ef;}(!_0xa16ef['attributes']||!_0xa16ef['attributes']['skipNestingCheck'])&&(_0x480a07['every'](_0x2c3348=>_0x30af89['some'](_0x3f1088=>_0x3f1088['containsRange'](_0x2c3348,!0x0)))&&_0xa16ef['discard']());}const _0x3d3f9f=_0x4cf4cc(),_0x56be85=_0x1e5152['id'],_0x1b705a='deletion:'+_0x538b2a,_0x26d348=this['_setSuggestionData']({'id':_0x3d3f9f,'type':_0x1b705a,'createdAt':new Date(),'authorId':_0x56be85,'attributes':_0xf3bd51});for(const _0x10acdf of _0x30af89)_0x10acdf['detach'](),_0x10acdf['isCollapsed']||'$graveyard'==_0x10acdf['root']['rootName']||this['_addSuggestionMarker'](_0x1b705a,_0x3d3f9f,_0x56be85,_0x10acdf,u['getMultiRangeId']());return _0x26d348;}['markAttributeChange'](_0x52cf72,_0x3f562,_0x3b4857,_0x5855ec,_0x1613b7){if(_0x52cf72['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x55c200=this['editor']['plugins']['get']('Users')['me']['id'],_0x9dc7fd=Array['from'](this['_suggestions']['values']())['filter'](_0xd9c3de=>'attribute'==_0xd9c3de['type']&&_0xd9c3de['data']['key']==_0x3f562&&_0xd9c3de['isIntersectingWithRange'](_0x52cf72));if('default'===this['_trackFormatChanges']){const _0x51702a=this['_findSuggestions'](_0x52cf72,'insertion')['filter'](({meta:_0x3af1d3})=>_0x3af1d3['isOwn']&&!_0x3af1d3['isInsideObject']&&!_0x3af1d3['isNextTo'])['map'](({suggestion:_0x48fe74})=>_0x48fe74);_0x9dc7fd['unshift'](..._0x51702a);}const _0x36c8e0=new Map([[_0x52cf72,_0x3b4857]]);for(const _0x7c49cb of _0x9dc7fd){const _0x4e87f3='attribute'==_0x7c49cb['type']?_0x7c49cb['data']['oldValue']:void 0x0,_0x4dec94=_0x7c49cb['getFirstRange'](),_0x13561b=Array['from'](_0x36c8e0['keys']())['find'](_0x524ed3=>_0x524ed3['isIntersecting'](_0x4dec94));if(!_0x13561b)continue;const _0x56fb4f=_0x13561b['getDifference'](_0x4dec94);this['_isBlockAttribute'](_0x3f562)&&'insertion'==_0x7c49cb['type']&&0x0!=_0x56fb4f['length']||(_0x36c8e0['delete'](_0x13561b),_0x56fb4f['forEach'](_0x52790e=>{_0x36c8e0['set'](_0x52790e,_0x3b4857);}),'insertion'!=_0x7c49cb['type']&&_0x4e87f3!=_0x5855ec&&_0x36c8e0['set'](_0x13561b['getIntersection'](_0x4dec94),_0x4e87f3));}const _0x49b2d7=[];for(const [_0x2baa8b,_0x2a2e48]of _0x36c8e0){const _0x36a2ec=_0x4cf4cc(),_0x2d808e={'key':_0x3f562,'oldValue':_0x2a2e48,'newValue':_0x5855ec};_0x3f562['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':_0x3f562});const _0x53cb16=('attribute:'+(_0x3f562+'|'+Gt({'newValue':_0x5855ec})))['substring'](0x0,0x3c),_0x2c4e12=this['_setSuggestionData']({'id':_0x36a2ec,'type':_0x53cb16,'data':_0x2d808e,'createdAt':new Date(),'authorId':_0x55c200,'attributes':_0x1613b7});_0x49b2d7['push'](_0x2c4e12),this['_addSuggestionMarker'](_0x53cb16,_0x36a2ec,_0x55c200,_0x2baa8b);}return _0x49b2d7;}['enableDefaultAttributesIntegration'](_0x10fdba){this['enableCommand'](_0x10fdba,(_0x2ea746,..._0x2361ed)=>{this['_recordAttributeChanges'](()=>{_0x2ea746(..._0x2361ed);});});}['registerBlockAttribute'](_0x4a0256){this['_blockAttributeKeys']['add'](_0x4a0256);}['registerInlineAttribute'](_0x4f0c87){this['_inlineAttributeKeys']['add'](_0x4f0c87);}['_getAttributeKey'](_0x84d564){return'attribute'==_0x84d564['type']?_0x84d564['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x178797,_0x265298){const _0x5a9376=_0x178797['getFirstMarker']();this['_model']['change'](_0x2015a6=>{_0x2015a6['updateMarker'](_0x5a9376,{'range':_0x265298});});}['_addThreadToSuggestion'](_0x24b648){const _0x23822d=_0x24b648['id'],_0x140566=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23822d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x140566,'threadId':_0x23822d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54854b=this['_commentsRepository']['getCommentThread'](_0x23822d);_0x54854b['unbind']('isRemovable'),_0x54854b['isRemovable']=!0x1,_0x24b648['commentThread']=_0x54854b;}['_checkSuggestionCorrectness'](_0x51b727,_0x58e17c,_0x3ae47c,_0x3c6a5f){if(_0x51b727['type']!=_0x58e17c||_0x51b727['subType']!=_0x3ae47c||_0x51b727['creator']['id']!=_0x3c6a5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a35b0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1046f5,_0x45db43){const _0x456a8c=_0x1046f5['getFirstRange']();if(_0x45db43['isEqual'](_0x456a8c))_0x1046f5['removeMarkers']();else{if(_0x456a8c['containsRange'](_0x45db43)){const _0x32edb8=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x32edb8));const _0x194626=_0x4cf4cc(),_0x45e2fe=_0x1046f5['creator']['id'],_0x121227=_0x1046f5['type']+':'+_0x1046f5['subType'];this['_setSuggestionData']({'id':_0x194626,'type':_0x121227,'createdAt':new Date(),'authorId':_0x45e2fe,'data':_0x1046f5['data'],'attributes':_0x1046f5['attributes']});const _0x2ffef4=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after'),_0x357583=this['_model']['createRange'](_0x2ffef4,_0x456a8c['end']);this['_addSuggestionMarker'](_0x121227,_0x194626,_0x45e2fe,_0x357583);}else{if(_0x456a8c['containsPosition'](_0x45db43['start'])){const _0x457274=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x457274));}else{const _0xad5a6c=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0xad5a6c,_0x456a8c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2161f7){for(const {suggestion:_0x39fbda,meta:_0x5b8267}of this['_findSuggestions'](_0x2161f7,'insertion')){if(!_0x5b8267['isOwn'])continue;const _0x4be64c=_0x39fbda['getRanges']();for(const _0x14e904 of _0x4be64c)if(!_0x2161f7['getDifference'](_0x14e904)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3b2c85){const _0x3faa05=this['editor']['plugins']['get']('Users')['getUser'](_0x3b2c85);if(!_0x3faa05)throw new _0x1a35b0('track-changes-user-not-found',this);return _0x3faa05;}['_getExternalAuthor'](_0xe87c46){const _0x4aa609=this['editor']['plugins']['get']('Users'),_0x48b2c5=_0x4704f5('external:'+_0xe87c46),_0x57dd8c=_0x4aa609['getUser'](_0x48b2c5);return _0x57dd8c||_0x4aa609['addUser']({'id':_0x48b2c5,'name':_0xe87c46});}['_createSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x1aeac0,_0x37f1b5){const _0x37b53a=this['_getAuthorFromId'](_0x1aeac0),_0x3b8e1f=this['_suggestionFactory']['buildSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x37b53a,_0x37f1b5,_0x436c7c=>{this['_updateSuggestionData'](_0x22152e,{'attributes':_0x436c7c});const _0x5b8c76=this['getSuggestion'](_0x22152e);this['_joinWithAdjacentSuggestions'](new Set([_0x5b8c76])),this['_refreshSuggestionsChain'](new Set([_0x5b8c76]));});return this['listenTo'](_0x3b8e1f,'accept',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b8e1f,'discard',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22152e,_0x3b8e1f),this['_suggestionState']['set'](_0x3b8e1f,'notReady'),_0x3b8e1f;}['_splitMarkerName'](_0x3a80db){const _0x33efec=_0x3a80db['split'](':');return{'group':_0x33efec[0x0],'type':_0x33efec[0x1],'subType':_0x33efec['length']>=0x5?_0x33efec[0x2]:null,'id':_0x33efec['length']<0x5?_0x33efec[0x2]:_0x33efec[0x3],'authorId':_0x33efec['length']<0x5?_0x33efec[0x3]:_0x33efec[0x4],'markerCount':0x6==_0x33efec['length']?_0x33efec[0x5]:null};}['_breakSuggestionMarker'](_0x30c692,_0x7acd88,_0x57c2e6){const _0x223fdd=_0x30c692['getFirstRange'](),_0x24cde5=_0x223fdd['start'],_0x1fd26b=_0x223fdd['end'];this['_setSuggestionRange'](_0x30c692,this['_model']['createRange'](_0x24cde5,_0x7acd88));const _0xfb6e49=_0x4cf4cc(),_0xbe64bc=_0x30c692['creator']['id'],_0x38b1d7=_0x30c692['type']+(_0x30c692['subType']?':'+_0x30c692['subType']:'');this['_setSuggestionData']({'id':_0xfb6e49,'type':_0x38b1d7,'createdAt':new Date(),'authorId':_0xbe64bc,'originalSuggestionId':_0x30c692['id'],'attributes':_0x30c692['attributes'],'data':_0x30c692['data']});const _0x3160ab=this['_getAttributeKey'](_0x30c692);('formatBlock'==_0x30c692['type']||_0x3160ab&&this['_isBlockAttribute'](_0x3160ab))&&(_0x57c2e6=this['_model']['createPositionBefore'](_0x57c2e6['parent'])),this['_addSuggestionMarker'](_0x38b1d7,_0xfb6e49,_0xbe64bc,this['_model']['createRange'](_0x57c2e6,_0x1fd26b));}['_findSuggestions'](_0x3eb474,_0x1003d3=null){const _0x44412c=[],_0xb3687e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eb474)||(_0x3eb474=[_0x3eb474]);for(const _0x1b5bda of this['getSuggestions']()){if(!_0x1b5bda['isInContent'])continue;if(_0x1003d3&&_0x1b5bda['type']!=_0x1003d3)continue;let _0x2c88ce=!0x1;for(const _0x1c668b of _0x1b5bda['getRanges']()){for(const _0x11c3a2 of _0x3eb474){const _0x3a2282=_0x11c3a2['start']['isEqual'](_0x1c668b['end'])||_0x11c3a2['end']['isEqual'](_0x1c668b['start']);if(_0x3a2282||_0x11c3a2['getIntersection'](_0x1c668b)){const _0x3f3c06=_0x11c3a2['containsRange'](_0x1c668b)&&Ot(this['_model']['schema'],_0x1c668b['start'],_0x11c3a2),_0x22825d=_0x1c668b['containsRange'](_0x11c3a2)&&Ot(this['_model']['schema'],_0x11c3a2['start'],_0x1c668b);_0x44412c['push']({'suggestion':_0x1b5bda,'meta':{'isOwn':_0xb3687e==_0x1b5bda['author'],'isNextTo':_0x3a2282,'isInsideObject':_0x3f3c06,'containsRangeInObject':_0x22825d}}),_0x2c88ce=!0x0;break;}}if(_0x2c88ce)break;}}return _0x44412c;}['_addSuggestionMarker'](_0x5f5318,_0x59877e,_0x11648e,_0x25b355,_0x4d5d30){this['_model']['change'](_0x319f35=>{let _0x5d0f17='suggestion:'+_0x5f5318+':'+_0x59877e+':'+_0x11648e;_0x4d5d30&&(_0x5d0f17=_0x5d0f17+':'+_0x4d5d30),_0x319f35['addMarker'](_0x5d0f17,{'range':_0x25b355,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a9ea3){const _0x556f90=_0x4a9ea3['previous'],_0x23c732=_0x4a9ea3['next'];_0x4a9ea3['previous']=null,_0x4a9ea3['next']=null,null!=_0x556f90&&_0x556f90['next']==_0x4a9ea3&&(_0x556f90['next']=_0x23c732),null!=_0x23c732&&_0x23c732['previous']==_0x4a9ea3&&(_0x23c732['previous']=_0x556f90),'ready'==this['_suggestionState']['get'](_0x4a9ea3)&&(this['_suggestionState']['set'](_0x4a9ea3,'removed'),this['fire']('suggestionUnloaded',_0x4a9ea3,_0x556f90,_0x23c732));}['_setSuggestionData'](_0x1caceb){const _0x437b47=_0x1caceb['id'],_0x3d01ab=this['addSuggestionData'](_0x1caceb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x184a95=this['editor']['plugins']['get']('PendingActions'),_0x330b2b=_0x3d01ab['hasComments'],_0x1646c9=_0x3d01ab['subType']?_0x3d01ab['type']+':'+_0x3d01ab['subType']:_0x3d01ab['type'],_0x2b88e7=this['editor']['locale'],_0x5adaac=_0x184a95['add'](o(_0x2b88e7,'PENDING_ACTION_SUGGESTION')),_0x3b57ad={'id':_0x437b47,'type':_0x1646c9,'hasComments':_0x330b2b,'data':_0x1caceb['data']||null,'originalSuggestionId':_0x1caceb['originalSuggestionId']||null,'attributes':_0x3d01ab['attributes']};this['_adapter']['addSuggestion'](_0x3b57ad)['then'](_0x1619e3=>{_0x3d01ab['_saved']=!0x0,_0x184a95['remove'](_0x5adaac),_0x1619e3&&_0x1619e3['createdAt']&&(this['_suggestions']['get'](_0x437b47)['createdAt']=_0x1619e3['createdAt']);})['catch'](_0x381c51=>{throw _0x124f83('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3d01ab['discard']();}),_0x3d01ab['stopListening'](),this['_suggestions']['delete'](_0x3d01ab['id']),this['_suggestionState']['delete'](_0x3d01ab),_0x381c51;});}return _0x3d01ab;}['_isBlockAttribute'](_0x49d502){return this['_blockAttributeKeys']['has'](_0x49d502);}['_updateSuggestionData'](_0x34fa3f,_0x1df7e3){const _0x5bd80e=this['editor']['plugins']['get']('PendingActions'),_0xbc8d75=this['getSuggestion'](_0x34fa3f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xbc8d75['_saved']){const _0x2ca870=_0x5bd80e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34fa3f,_0x1df7e3)['then'](()=>{_0x5bd80e['remove'](_0x2ca870);});}else _0xbc8d75['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34fa3f,_0x1df7e3);});}}['_getSuggestionData'](_0xfb7e52){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a35b0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xfb7e52);}['_handleNewSuggestionMarker'](_0x209cf1){const {id:_0x3e861c,type:_0x183c3d,subType:_0x29f7ba,authorId:_0x188aaf}=this['_splitMarkerName'](_0x209cf1),_0x4ccbfd=this['_suggestions']['get'](_0x3e861c)||this['_createSuggestion'](_0x183c3d,_0x29f7ba,_0x3e861c,_0x188aaf,{});switch(this['_checkSuggestionCorrectness'](_0x4ccbfd,_0x183c3d,_0x29f7ba,_0x188aaf),this['_suggestionState']['get'](_0x4ccbfd)){case'notReady':this['_getSuggestionData'](_0x3e861c)['then'](_0x592323=>{let _0x59d945=Promise['resolve']();_0x592323['hasComments']&&(_0x59d945=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e861c})),_0x59d945['then'](()=>{this['addSuggestionData'](_0x592323)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ccbfd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e861c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ccbfd,'ready'),this['fire']('suggestionLoaded',_0x4ccbfd);break;case'ready':this['fire']('suggestionChanged',_0x4ccbfd);}return _0x4ccbfd['addMarkerName'](_0x209cf1),_0x4ccbfd;}['_refreshSuggestionsChain'](_0x233a53){const _0x11264b=Array['from'](_0x233a53),_0xd96c03=_0x11264b['filter'](_0x1e788c=>'attribute'==_0x1e788c['type']);this['_refreshAttributeSuggestionsChain'](_0xd96c03);const _0x3b6e61=_0x11264b['filter'](_0x5314d8=>!_0x5314d8['isMultiRange']&&'attribute'!=_0x5314d8['type']),_0x372251=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16e4e9=>!_0x16e4e9['isMultiRange']&&'attribute'!=_0x16e4e9['type']),_0xa3828c=_0x372251['filter'](_0x287b78=>!_0x233a53['has'](_0x287b78)),_0x2121f0=new Map(_0x372251['map'](_0x1b4abc=>[_0x1b4abc,this['_suggestionFactory']['getSuggestionCallback'](_0x1b4abc['type'],_0x1b4abc['subType'],'chain')])),_0x51e6d5=new Map(_0x372251['map'](_0x51fbb0=>[_0x51fbb0,_0x51fbb0['getFirstRange']()])),_0x45032f=new Set(),_0x41167c=new Set();for(let _0x317683=0x0;_0x317683<_0x3b6e61['length'];_0x317683++)_0x4d0628(_0x3b6e61[_0x317683],_0x3b6e61,_0x317683+0x1);for(let _0x82dbcc=0x0;_0x82dbcc<_0x3b6e61['length'];_0x82dbcc++)_0x4d0628(_0x3b6e61[_0x82dbcc],_0xa3828c,0x0);const _0x5aa762=new Set();for(let _0x11e555=0x0;_0x11e555<_0x3b6e61['length'];_0x11e555++){const _0x55c85d=_0x3b6e61[_0x11e555];!_0x41167c['has'](_0x55c85d)&&_0x55c85d['previous']&&(_0x5aa762['add'](_0x55c85d['previous']),_0x55c85d['previous']['next']===_0x55c85d&&(_0x55c85d['previous']['next']=null),_0x55c85d['previous']=null),!_0x45032f['has'](_0x55c85d)&&_0x55c85d['next']&&(_0x5aa762['add'](_0x55c85d['next']),_0x55c85d['next']['previous']===_0x55c85d&&(_0x55c85d['next']['previous']=null),_0x55c85d['next']=null);}function _0x4d0628(_0x38c720,_0x3d1da2,_0x29fac9){for(let _0x12e4e7=_0x29fac9;_0x12e4e7<_0x3d1da2['length'];_0x12e4e7++){const _0xc78f6b=_0x28b180(_0x38c720,_0x3d1da2[_0x12e4e7]);_0xc78f6b&&(_0xc78f6b[0x0]['next']=_0xc78f6b[0x1],_0xc78f6b[0x1]['previous']=_0xc78f6b[0x0],_0x45032f['add'](_0xc78f6b[0x0]),_0x41167c['add'](_0xc78f6b[0x1]));}}function _0x28b180(_0x567916,_0x5d85bd){if(_0x567916['author']['id']!==_0x5d85bd['author']['id'])return null;const _0x4fd6dd=_0x2121f0['get'](_0x567916)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd));if(!_0x4fd6dd)return null;return _0x2121f0['get'](_0x5d85bd)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd))?_0x4fd6dd[0x1]['commentThread']&&_0x4fd6dd[0x1]['commentThread']['length']?null:_0x4fd6dd:null;}_0x5aa762['size']&&this['_refreshSuggestionsChain'](_0x5aa762);}['_refreshAttributeSuggestionsChain'](_0x10f136){if(0x0==_0x10f136['length'])return;const _0x52274b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d130f=>'attribute'==_0x3d130f['type']&&_0x3d130f['_isDataLoaded']),_0x3e2078=[],_0x4dca04=new Map();for(const _0xbf4173 of _0x52274b){const _0xcd69df=_0x4704f5(_0xbf4173['attributes']);_0x4dca04['has'](_0xcd69df)||(_0x4dca04['set'](_0xcd69df,_0x3e2078['length']),_0x3e2078['push']([]));const _0x1585b1=_0x4dca04['get'](_0xcd69df);_0x3e2078[_0x1585b1]['push'](_0xbf4173);}!(function(){_0x3e2078['sort']((_0x112c82,_0x2a1fc1)=>{const _0x58a9ef=_0x112c82[0x0]['createdAt'],_0x13db9d=_0x2a1fc1[0x0]['createdAt'];return _0x58a9ef==_0x13db9d?_0x112c82[0x0]['attributes']['groupId']<_0x2a1fc1[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a9ef<_0x13db9d?-0x1:0x1;});for(const _0x20b48b of _0x3e2078)_0x20b48b['sort']((_0x5589c6,_0x564608)=>_0x5589c6['id']<_0x564608['id']?-0x1:0x1);}());for(let _0x321531=0x0;_0x321531<_0x3e2078['length'];_0x321531++){if(0x0==_0x3e2078[_0x321531]['length'])continue;const _0x48003=[];for(let _0x2ffe8e=_0x321531+0x1;_0x2ffe8e<_0x3e2078['length'];_0x2ffe8e++)0x0!=_0x3e2078[_0x2ffe8e]['length']&&_0x5005d4(_0x3e2078[_0x321531],_0x3e2078[_0x2ffe8e])&&_0x48003['push'](_0x2ffe8e);for(const _0x57b80e of _0x48003)_0x3e2078[_0x321531]=_0x3e2078[_0x321531]['concat'](_0x3e2078[_0x57b80e]),_0x3e2078[_0x57b80e]=[];}for(const _0x1d37a5 of _0x3e2078)for(let _0x3cfdd0=0x0;_0x3cfdd0<_0x1d37a5['length'];_0x3cfdd0++){const _0x13c398=_0x1d37a5[_0x3cfdd0+0x1]||null;_0x1d37a5[_0x3cfdd0]['next']!==_0x13c398&&(_0x1d37a5[_0x3cfdd0]['next']=_0x13c398);}for(const _0x2dcc3a of _0x3e2078)for(let _0x27d921=0x0;_0x27d921<_0x2dcc3a['length'];_0x27d921++){const _0x42b1bb=_0x2dcc3a[_0x27d921-0x1]||null;_0x2dcc3a[_0x27d921]['previous']!==_0x42b1bb&&(_0x2dcc3a[_0x27d921]['previous']=_0x42b1bb);}function _0x5005d4(_0x1c0c95,_0x1bfc7a){if(_0x1c0c95[0x0]['attributes']['groupId']!==_0x1bfc7a[0x0]['attributes']['groupId']&&_0x1c0c95[0x0]['author']!==_0x1bfc7a[0x0]['author'])return!0x1;if(!function(_0x872e86,_0x4683e3){if(!_0x872e86['hasComments']&&!_0x4683e3['hasComments'])return!0x0;if(_0x872e86['hasComments']&&_0x4683e3['hasComments'])return!0x1;if(_0x872e86['hasComments']&&_0x4683e3['createdAt']<_0x872e86['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4683e3['hasComments']&&_0x872e86['createdAt']<_0x4683e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c0c95[0x0],_0x1bfc7a[0x0]))return!0x1;const _0x4f7947=Tt(_0x1c0c95[0x0]['attributes'],'groupId'),_0x2d59ac=Tt(_0x1bfc7a[0x0]['attributes'],'groupId');if(!_0x11e4b7(_0x4f7947,_0x2d59ac))return!0x1;return!!_0x1c0c95['every'](_0xedadef=>_0x1bfc7a['some'](_0x1c7626=>_0xedadef['getFirstRange']()['isEqual'](_0x1c7626['getFirstRange']())))&&_0x1bfc7a['every'](_0x166799=>_0x1c0c95['some'](_0x34aceb=>_0x166799['getFirstRange']()['isEqual'](_0x34aceb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35cb78){const _0x4959be=Array['from'](_0x35cb78),_0x2555c1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ff66b=_0x2555c1['filter'](_0x12299f=>!_0x35cb78['has'](_0x12299f)),_0x5cdcea=new Map(_0x4959be['map'](_0x1bb6fb=>[_0x1bb6fb,this['_suggestionFactory']['getSuggestionCallback'](_0x1bb6fb['type'],_0x1bb6fb['subType'],'join')])),_0x19d5ac=new Map(_0x2555c1['map'](_0x3a42dc=>[_0x3a42dc,_0x3a42dc['getRanges']()]));for(let _0x3b671f=0x0;_0x3b671f<_0x4959be['length'];_0x3b671f++){if(_0x799fff(this,_0x4959be[_0x3b671f],_0x4959be,_0x3b671f+0x1))return!0x0;}for(let _0x50fe7f=0x0;_0x50fe7f<_0x4959be['length'];_0x50fe7f++){if(_0x799fff(this,_0x4959be[_0x50fe7f],_0x4ff66b,0x0))return!0x0;}return!0x1;function _0x799fff(_0x21dbd4,_0x3c65dc,_0x129ea7,_0x3d1f4d){for(let _0x1ce517=_0x3d1f4d;_0x1ce517<_0x129ea7['length'];_0x1ce517++){const _0x2ce82d=_0x129ea7[_0x1ce517];if(_0x2ce82d['type']!==_0x3c65dc['type']||_0x2ce82d['author']['id']!==_0x3c65dc['author']['id']||_0x2ce82d['subType']!==_0x3c65dc['subType'])continue;if(!Jt(_0x3c65dc,_0x2ce82d))continue;if('attribute'==_0x3c65dc['type']&&_0x3c65dc['data']['oldValue']!=_0x2ce82d['data']['oldValue'])continue;if('attribute'==_0x3c65dc['type']&&_0x21dbd4['_isBlockAttribute'](_0x3c65dc['data']['key']))continue;if('formatBlock'==_0x3c65dc['type']){const _0xd68222=_0x21dbd4['editor']['model'],_0x329091=_0x3c65dc['getContainedElement']();if(_0x329091&&(_0xd68222['schema']['isObject'](_0x329091)||_0xd68222['schema']['isLimit'](_0x329091)))continue;}const _0x39ac17=_0x5cdcea['get'](_0x3c65dc),_0x5ace56=_0x19d5ac['get'](_0x3c65dc),_0xd0f974=_0x19d5ac['get'](_0x2ce82d),_0x3be039=_0x3c65dc['commentThread']&&_0x3c65dc['commentThread']['length'],_0x5d9cdc=_0x2ce82d['commentThread']&&_0x2ce82d['commentThread']['length'];if(!_0x3be039&&_0x39ac17(_0xd0f974,_0x5ace56))return _0x21dbd4['_joinSuggestions'](_0x2ce82d,_0x3c65dc),_0x19d5ac['delete'](_0x3c65dc),!0x0;if(!_0x5d9cdc&&_0x39ac17(_0x5ace56,_0xd0f974))return _0x21dbd4['_joinSuggestions'](_0x3c65dc,_0x2ce82d),_0x19d5ac['delete'](_0x2ce82d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x58ea5a,_0x1e2993){if(_0x58ea5a['isMultiRange']){for(const _0x3011eb of _0x1e2993['getRanges']())_0x58ea5a['addRange'](_0x3011eb);}else{const _0x13e0bd=_0x1e2993['getFirstRange']()['end'];this['_setSuggestionRange'](_0x58ea5a,this['_model']['createRange'](_0x58ea5a['getFirstRange']()['start'],_0x13e0bd));}_0x1e2993['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfc2cd3,_0x4ce339,_0x48b409){const _0x30b10b=_0xfc2cd3['startsWith']('format')||_0xfc2cd3['startsWith']('attribute')?'FORMATTING':_0xfc2cd3['toUpperCase']();return o(this['editor']['locale'],_0x4ce339+'_'+_0x30b10b+'_SUGGESTION_ANNOUNCEMENT',_0x48b409);}['_initAriaMarkerChangeAnnouncements'](){const _0x3103cd=this['editor'];if(!_0x3103cd['ui'])return;const {ariaLiveAnnouncer:_0x2ac653}=_0x3103cd['ui'];_0x280cba(this['_model'],({left:_0x1a39ce,entered:_0x4f4d61})=>{for(const _0x290f7e of _0x1a39ce){const {group:_0x395afa,type:_0x262cdd}=this['_splitMarkerName'](_0x290f7e['name']);if('suggestion'===_0x395afa){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x262cdd,'LEAVE'));break;}}for(const _0x3f0a6c of _0x4f4d61){const {group:_0x141b27,type:_0x7aca91}=this['_splitMarkerName'](_0x3f0a6c['name']);if('suggestion'===_0x141b27){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x7aca91,'ENTER',_0x4bd46a(_0x61a5af)));break;}}});}['_processAttributeChanges'](_0x35f13a){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf0e12=this['editor'],_0xa9e8b5=_0xf0e12['model']['document']['differ']['getChanges']();if(0x0==_0xa9e8b5['length'])return!0x1;const _0x58f8c8=[],_0x4ceed7=_0xa9e8b5['filter'](_0x62976=>'attribute'==_0x62976['type']),_0x518b82=_0xa9e8b5['filter'](_0x58ce54=>'insert'==_0x58ce54['type']&&'$text'!=_0x58ce54['name']),_0x1e17fb=_0xa9e8b5['filter'](_0x12d7ef=>'remove'==_0x12d7ef['type']&&'$text'!=_0x12d7ef['name']);for(const _0xa00af0 of _0x4ceed7)_0x58f8c8['push']({'key':_0xa00af0['attributeKey'],'newValue':_0xa00af0['attributeNewValue'],'oldValue':_0xa00af0['attributeOldValue'],'range':Pt(_0xa00af0['range'],_0xf0e12['model'])});for(const _0x2c604a of _0x518b82){const _0xa1ec14=_0x1e17fb['find'](_0x165c61=>_0x165c61['position']['isEqual'](_0x2c604a['position']));_0xa1ec14&&_0x58f8c8['push']({'key':m,'newValue':_0x2c604a['name'],'oldValue':_0xa1ec14['name'],'range':_0xf0e12['model']['createRangeOn'](_0x2c604a['position']['nodeAfter'])});}return 0x0!=_0x58f8c8['length']&&this['_reduceExistingSuggestions'](_0x35f13a,_0x58f8c8);}['_processAttributeSuggestions'](_0x133fba){let _0x44e987=!0x1;const _0x5adcae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bf957=>_0x4bf957['data']['newRange']&&_0x4bf957['name']['startsWith']('suggestion:attribute:'));for(const _0xb9d86f of _0x5adcae){const {subType:_0x3b1b3d,id:_0x39c7c8}=this['_splitMarkerName'](_0xb9d86f['name']),_0x3e627f=_0x3b1b3d['split']('|')[0x0];for(const _0x4e468d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e468d['id']!=_0x39c7c8&&'attribute'==_0x4e468d['type']&&_0x4e468d['data']&&_0x4e468d['data']['key']==_0x3e627f&&_0x4e468d['getFirstRange']()['isIntersecting'](_0xb9d86f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e468d,_0xb9d86f['data']['newRange'],_0x133fba),_0x44e987=!0x0);}return _0x44e987;}['_recordAttributeChanges'](_0x5ecb37){this['_recordAttributeSuggestions']=!0x0,_0x5ecb37();}['_isRegisteredAttribute'](_0x3a817d){const _0x48616e=this['_isBlockAttribute'](_0x3a817d),_0x52e401=this['_inlineAttributeKeys']['has'](_0x3a817d);return _0x48616e||_0x52e401;}['_reduceExistingSuggestions'](_0x5a169f,_0x3200af){if(0x0==_0x3200af['length'])return!0x1;let _0x72967f=!0x1;for(const _0xac35d3 of _0x3200af){const _0x202acc=this['_findSuggestions'](_0xac35d3['range'],'attribute')['filter'](_0x3b47a8=>!_0x3b47a8['meta']['isNextTo'])['map'](_0x27294c=>_0x27294c['suggestion']),_0x5bf69c=_0x4704f5({'newValue':_0xac35d3['newValue']});_0x202acc['filter'](_0x12db58=>{const [_0x1f1b2a,_0x4d653e]=_0x12db58['subType']['split']('|');return _0x1f1b2a==_0xac35d3['key']&&_0x4d653e!=_0x5bf69c;})['forEach'](_0x122cf3=>{this['_reduceSuggestionAttributeRange'](_0x122cf3,_0xac35d3['range'],_0x5a169f),_0x72967f=!0x0;});}return _0x72967f;}['_reduceSuggestionAttributeRange'](_0x2bb3ae,_0x25d75b,_0x53ab96){const _0x6e254=_0x2bb3ae['getFirstRange']()['getDifference'](_0x25d75b);0x0!==_0x6e254['length']?0x1!==_0x6e254['length']?this['_breakSuggestionMarker'](_0x2bb3ae,_0x25d75b['start'],_0x25d75b['end']):this['_setSuggestionRange'](_0x2bb3ae,_0x6e254[0x0]):_0x53ab96['removeMarker'](_0x2bb3ae['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x464590){this['_editor']=_0x464590,this['_model']=_0x464590['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x173128,_0x5161b8,_0x3bd43e,_0x1d378a,_0x141cb1,_0x43c6a5){return new u(this['_model'],{'type':_0x173128,'subType':_0x5161b8,'id':_0x3bd43e,'author':_0x1d378a,'creator':_0x1d378a,'attributes':_0x141cb1,'onAttributesChange':_0x43c6a5,'onAccept':(..._0x906500)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'accept')(..._0x906500),'onDiscard':(..._0x2508d5)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'discard')(..._0x2508d5)});}['registerCustomCallback'](_0x15d66a,_0x5d9845,_0x283d03,_0x2f054b){const _0x1f5bb7=_0x15d66a+':'+_0x5d9845+':'+_0x283d03;this['_customCallbacks']['set'](_0x1f5bb7,_0x2f054b);}['getSuggestionCallback'](_0x1097fb,_0xb61c53,_0x204427){const _0x4d50c8=_0x1097fb+':'+_0xb61c53+':'+_0x204427;return this['_customCallbacks']['get'](_0x4d50c8)||this['_defaultCallbacks']['get'](_0x1097fb+':'+_0x204427);}['_registerDefaultCallbacks'](){const _0x105912=()=>!0x1,_0x589c9d=_0x3fccb2=>{_0x3fccb2['sort']((_0x59513d,_0x1f64ea)=>_0x59513d['start']['isBefore'](_0x1f64ea['start'])?0x1:-0x1),this['_model']['change'](_0x3cd0fa=>{for(const _0x10e44f of _0x3fccb2){let _0x972a03;_0x972a03=_0x10e44f['end']['isAtEnd']&&_0x10e44f['end']['parent']==_0x10e44f['start']['nodeAfter']?_0x3cd0fa['createSelection'](_0x10e44f['start']['nodeAfter'],'on'):_0x3cd0fa['createSelection'](_0x10e44f),this['_model']['deleteContent'](_0x972a03,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41e466=(_0x3ed1fe,_0x458a72)=>{_0x458a72&&this['_model']['change'](_0x3e8bd8=>{const {commandName:_0x1a40dc,commandParams:_0xd6cb0=[]}=_0x458a72,_0x144efb=_0x3ed1fe['map'](_0x3966fb=>(Vt(_0x3966fb)&&(_0x3966fb=this['_model']['createRange'](_0x3966fb['end'])),_0x3966fb))['filter'](_0x563a03=>'$graveyard'!==_0x563a03['root']['rootName']);if(_0x144efb['length']<0x1)return;const _0x593b66=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5f5836=>_0x1a312e['fromRange'](_0x5f5836));_0x3e8bd8['setSelection'](_0x144efb);for(const _0x49a95e of this['_editor']['commands']['commands']())_0x49a95e['refresh']();_0xd6cb0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a40dc,..._0xd6cb0);const _0x188b05=_0x593b66['filter'](_0x1c0e08=>'$graveyard'!=_0x1c0e08['root']['rootName']);_0x188b05['length']>0x0&&_0x3e8bd8['setSelection'](_0x188b05);for(const _0xe749ab of _0x593b66)_0xe749ab['detach']();});},_0x4590af=(_0x111725,_0x4d05ee)=>0x1==_0x111725['length']&&0x1==_0x4d05ee['length']&&_0x111725[0x0]['end']['isEqual'](_0x4d05ee[0x0]['start']),_0x5380fb=(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e)=>Ht(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e,this['_model'])?[_0xdd12b3,_0x1abf88]:Ht(_0x1abf88,_0xdd12b3,_0x4d8b4e,_0x21cc4d,this['_model'])?[_0x1abf88,_0xdd12b3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x105912),this['_defaultCallbacks']['set']('insertion:discard',_0x589c9d),this['_defaultCallbacks']['set']('insertion:join',_0x4590af),this['_defaultCallbacks']['set']('insertion:chain',_0x5380fb),this['_defaultCallbacks']['set']('deletion:accept',_0x589c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x105912),this['_defaultCallbacks']['set']('deletion:join',_0x4590af),this['_defaultCallbacks']['set']('deletion:chain',_0x5380fb),this['_defaultCallbacks']['set']('formatInline:accept',_0x41e466),this['_defaultCallbacks']['set']('formatInline:discard',_0x105912),this['_defaultCallbacks']['set']('formatInline:join',_0x4590af),this['_defaultCallbacks']['set']('formatInline:chain',_0x105912),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41e466),this['_defaultCallbacks']['set']('formatBlock:discard',_0x105912),this['_defaultCallbacks']['set']('formatBlock:join',_0x4590af),this['_defaultCallbacks']['set']('formatBlock:chain',_0x105912),this['_defaultCallbacks']['set']('attribute:accept',_0x105912),this['_defaultCallbacks']['set']('attribute:discard',(_0x49cd4c,_0x1e03ee)=>{if(!_0x1e03ee)return;const _0x51fcaa=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3adbb5=>{if(_0x1e03ee['key']==m)for(const _0x40a000 of _0x49cd4c){const _0xddaf83=_0x40a000['start']['nodeAfter'],_0x4d6408=_0x1e03ee['oldValue'];_0x3adbb5['rename'](_0xddaf83,_0x4d6408);}else{if(_0x51fcaa['_isBlockAttribute'](_0x1e03ee['key'])){for(const _0x52e4bc of _0x49cd4c)void 0x0!==_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x52e4bc['start']['nodeAfter']):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x52e4bc['start']['nodeAfter']);}else{for(const _0x44a98e of _0x49cd4c)_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x44a98e):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x44a98e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4590af);}}function Ot(_0x195081,_0x5bac2c,_0x503c33){for(const _0x1686c2 of _0x5bac2c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1686c2['root']==_0x1686c2)return!0x1;if(!_0x503c33['containsItem'](_0x1686c2))return!0x1;if(_0x195081['isObject'](_0x1686c2)||_0x195081['isLimit'](_0x1686c2))return!0x0;}return!0x1;}function Vt(_0x16fe11){return _0x16fe11['end']['parent']==_0x16fe11['start']['nodeAfter']&&_0x16fe11['end']['isAtStart'];}function Ut(_0x128240,_0x22972c,_0x18eedc,_0x1c801c){const _0xe8b932=_0x46e57b=>!_0x46e57b['item']['is']('$textProxy')&&!_0x1c801c['isObject'](_0x46e57b['item']),_0x4cf9f8=_0x128240['start']['getLastMatchingPosition'](_0xe8b932),_0x58b3b1=_0x128240['end']['getLastMatchingPosition'](_0xe8b932,{'direction':'backward'});return(!_0x128240['start']['isEqual'](_0x4cf9f8)||!_0x128240['end']['isEqual'](_0x58b3b1))&&(_0x4cf9f8['isBefore'](_0x58b3b1)?_0x18eedc['updateMarker'](_0x22972c,{'range':_0x18eedc['createRange'](_0x4cf9f8,_0x58b3b1)}):_0x18eedc['removeMarker'](_0x22972c),!0x0);}function Gt(_0xc6479e){return _0x4704f5(_0xc6479e);}function Ft(_0x2c24fc){const _0x46f8d6=_0x2c24fc['start']['nodeAfter'];return _0x46f8d6&&_0x46f8d6['is']('element');}function Pt(_0x17d4cc,_0x4fad2c){return null==_0x17d4cc['end']['nodeBefore']&&_0x17d4cc['end']['parent']==_0x17d4cc['start']['nodeAfter']?Lt(_0x17d4cc['start']['nodeAfter'],_0x4fad2c):_0x17d4cc;}function Lt(_0x1cf4fe,_0xb7e119){const _0x39351c=_0xb7e119['schema']['isObject'](_0x1cf4fe)||_0xb7e119['schema']['isSelectable'](_0x1cf4fe);return _0xb7e119['createRange'](_0xb7e119['createPositionAt'](_0x1cf4fe,'before'),_0x39351c?_0xb7e119['createPositionAfter'](_0x1cf4fe):_0xb7e119['createPositionAt'](_0x1cf4fe,'end'));}function Ht(_0x42800d,_0x305199,_0x279856,_0x3c15cc,_0x156666){if(_0x42800d['next'])return!0x1;if(!Jt(_0x42800d,_0x305199))return!0x1;if(_0x279856['end']['isEqual'](_0x3c15cc['start']))return!0x0;if(_0x42800d['type']!=_0x305199['type'])return!0x1;if(!_0x279856['end']['isTouching'](_0x3c15cc['start']))return!0x1;const _0x5aa871=_0x156666['createRange'](_0x279856['end'],_0x3c15cc['start'])['getWalker']();for(const _0x4c43ad of _0x5aa871)if(['elementStart','elementEnd']['includes'](_0x4c43ad['type'])&&_0x156666['schema']['isLimit'](_0x4c43ad['item']))return!0x1;return!0x0;}function Jt(_0x74fcc5,_0x3f160a){if(!_0x74fcc5['_isDataLoaded']||!_0x3f160a['_isDataLoaded'])return!0x1;const _0x29117e=new Set(Object['keys'](_0x74fcc5['attributes'])),_0x583f97=new Set(Object['keys'](_0x3f160a['attributes']));if(_0x29117e['delete']('groupId'),_0x583f97['delete']('groupId'),0x0==_0x29117e['size']&&0x0==_0x583f97['size'])return!0x0;if(_0x29117e['size']!=_0x583f97['size'])return!0x1;const _0x31d93f={..._0x74fcc5['attributes']},_0x319b2c={..._0x3f160a['attributes']};return delete _0x31d93f['groupId'],delete _0x319b2c['groupId'],JSON['stringify'](_0x31d93f)==JSON['stringify'](_0x319b2c);}function qt(_0x285638,_0x56e449){const _0x21d2bc=zt(_0x285638['attributes']),_0x5a3b0c=zt(_0x56e449);if(!_0x285638['_isDataLoaded'])return!0x1;for(const _0x300fb7 of Object['keys'](_0x5a3b0c))if(!_0x11e4b7(_0x21d2bc[_0x300fb7],_0x5a3b0c[_0x300fb7]))return!0x1;return!0x0;}function zt(_0x24581b){const _0x5dc8ce=Object['assign']({},_0x24581b);return delete _0x5dc8ce['skipNestingCheck'],delete _0x5dc8ce['tablePasteChainId'],_0x5dc8ce;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x10bfdb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40d651,_0x30c0ed,_0x185f70,_0x2d1176){super(),this['model']=_0x30c0ed,this['view']=_0x185f70,this['commentThreadController']=_0x2d1176,this['_editor']=_0x40d651,this['_acceptCommand']=_0x40d651['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40d651['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x25a833,_0x13584f)=>_0x25a833||_0x13584f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c0da3=>_0x2c0da3&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e58ad=>_0x4e58ad&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['_pendingAction']=null,_0x185f70['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x185f70,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x185f70,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x185f70,'change:isDirty',()=>{_0x185f70['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 _0x27af86=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27af86);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1c2486{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5921bf,_0x3d1ebe,_0x531b0f,_0xb822a){super(_0x5921bf),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x593cee(_0x5921bf,o(_0x5921bf,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d1ebe['authoredAt']),this['bind']('authoredAt')['to'](_0x3d1ebe),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',_0x3d1ebe,'authoredAt',this,'descriptionParts',(_0x499397,_0x2c38d9,_0x52cf30)=>{const _0x2d6184=_0x52cf30['map'](_0x123cf7=>ls(_0x123cf7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x499397-0x1,_0x3d1ebe['author']['name'],_0x2c38d9?_0xb822a['formatDateTime'](_0x2c38d9):'',new DOMParser()['parseFromString'](_0x2d6184,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf17cd7(),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6fb78e=>_0x6fb78e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d1ebe,this['_localUser']=_0x531b0f,this['_config']=_0xb822a,_0xb822a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe55352(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x42e792}=this['_config'];this['commentsListView']=new _0x42e792(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',_0x500d14=>_0x500d14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4158a6,_0x4ee70c)=>_0x4158a6||!!_0x4ee70c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x18c16a}=this['_config'],_0x4a3566=new _0x18c16a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3cdb54=_0x4a3566['commentInputView'];return _0x4a3566['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3cdb54,'value',(_0x4aae83,_0x197d03,_0x4e1edf)=>!!_0x4e1edf||_0x4aae83&&!_0x197d03),_0x3cdb54['on']('submit',(_0x3fcafe,_0xa1cda9)=>{this['fire']('addComment',_0xa1cda9),_0x3cdb54['editor']['setData']('');}),_0x3cdb54['on']('cancel',()=>this['focus']()),_0x3cdb54['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4a3566;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce){super(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26227a=>_0x26227a&&_0x26227a[0x0]?_0x26227a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18dd6a,_0x2eed25)=>{let _0xb91531='';for(const _0x12151a of _0x18dd6a)_0xb91531+='<p>'+ls(_0x12151a['content'],_0x12151a['color'])+'</p>';return _0x2eed25?_0xb91531:_0xe1f01c(_0xb91531,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33cdce['SuggestionView'](_0x50f01c,_0x3a07f5,{'formatDateTime':_0x33cdce['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 _0x417439=this['bindTemplate'],_0x4bede8=[this['suggestionView']];return this['commentsListView']&&_0x4bede8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4bede8['push'](this['commentThreadInputView']),_0x4bede8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x417439['if']('isActive','ck-suggestion-wrapper--active'),_0x417439['to']('type',_0xbfc766=>'ck-suggestion-'+_0xbfc766),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':_0x417439['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4bede8};}['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 _0x1c2486{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f98ae,_0x17cd0e,_0x220698){super(_0x1f98ae),this['_model']=_0x17cd0e,this['_config']=_0x220698,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17cd0e),this['acceptButton']=this['_createButton'](o(_0x1f98ae,'Accept\x20suggestion'),_0x26ee55['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f98ae,'Discard\x20suggestion'),_0x26ee55['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d3b1c(_0x1f98ae,_0x17cd0e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf17cd7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x200a14=>_0x200a14['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1ca668=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1ca668['innerHTML']=this['description'],this['on']('change:description',(_0x20ea5e,_0x4fe4a5,_0x5d4795)=>{_0x1ca668['innerHTML']=_0x5d4795;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4e4ac8=this['bindTemplate'],_0xf3e65=[{'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':_0x4e4ac8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e4ac8['to']('authoredAt',_0xb818e4=>this['_config']['formatDateTime'](_0xb818e4))}]}]},{'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']&&_0xf3e65['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':_0xf3e65}]};}['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'](_0x31e366,_0x413da4,_0x1fc763,_0x5b5e21,_0x11687b){const _0xa23cd3=new _0x14e887(this['locale']);return _0xa23cd3['set']({'label':_0x31e366,'icon':_0x413da4,'tooltip':!0x0,'tooltipPosition':_0x11687b}),_0xa23cd3['extendTemplate']({'attributes':{'class':_0x1fc763}}),_0xa23cd3['on']('execute',()=>{this['fire'](_0x5b5e21,this['_model']['id']);}),_0xa23cd3;}['_setupKeyboardNavigation'](){const _0x47719b=this['element'];this['keystrokes']['listenTo'](_0x47719b);for(const _0x1013d1 of this['focusables'])this['focusTracker']['add'](_0x1013d1['element']),this['keystrokes']['listenTo'](_0x1013d1['element']);this['keystrokes']['set']('enter',(_0x3d8804,_0x388084)=>{_0x47719b===_0x3d8804['target']&&(this['focusCycler']['focusFirst'](),_0x388084());}),this['keystrokes']['set']('esc',(_0x7092e1,_0x1124c7)=>{_0x47719b!==_0x7092e1['target']&&(this['focus'](),_0x1124c7());});}}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 _0x4ba4b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x106ae5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x12cc34){super(_0x12cc34),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d6aef=this['editor']['config'];_0x4d6aef['define']('trackChanges.SuggestionThreadView',re),_0x4d6aef['define']('trackChanges.SuggestionView',ce),_0x4d6aef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d6aef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x170511,_0x4d9841){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14c0b6,_0x157e17]of this['_handleControllerBuffer']){const _0x16ceaa=this['_suggestionToController']['has'](_0x14c0b6);_0x16ceaa||_0x157e17?_0x16ceaa&&_0x157e17&&this['_destroyController'](_0x14c0b6):this['_initializeController'](_0x14c0b6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x170511,_0x4d9841);}['init'](){const _0x13282c=this['editor'],_0x1b2633=_0x13282c['plugins']['get']('TrackChangesEditing'),_0xa4ebe2=_0x13282c['plugins']['get']('Annotations'),_0x59933d=_0x13282c['plugins']['get']('EditorAnnotations'),_0x408ec5=_0x13282c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59933d['addSourceCollector'](()=>{const _0xa4b22d=[];for(const [_0x17b7bc,_0x5eb8da]of Array['from'](this['_suggestionToController'])){const _0x534816=_0x17b7bc['getAllAdjacentSuggestions'](),_0x5b6bb4=[];for(const _0x229925 of _0x534816){if(!_0x229925['isInContent'])continue;if(_0x229925['isMultiRange']){_0x5b6bb4['push'](..._0x229925['getRanges']());continue;}const _0x19048a=_0x229925['getFirstRange']();if(_0x5b6bb4['length']>0x0){const _0x369b82=_0x5b6bb4[0x0]['getJoined'](_0x19048a);if(_0x369b82){_0x5b6bb4[0x0]=_0x369b82;continue;}}_0x5b6bb4['push'](_0x19048a);}_0xa4b22d['push']([_0x5eb8da['view'],_0x5b6bb4]);}return _0xa4b22d;}),this['listenTo'](_0x1b2633,'suggestionLoaded',(_0x362d91,_0x5df40f)=>{this['listenTo'](_0x5df40f,'change:previous',(_0x5d1449,_0x16ca0e,_0x462127,_0x3e3628)=>{_0x5df40f['isInContent']&&(null==_0x462127?(this['_updateController'](_0x3e3628['head']),this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1)):(this['_updateController'](_0x462127['head']),null==_0x3e3628&&this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x0)));}),null!==_0x5df40f['previous']?this['_updateController'](_0x5df40f['head']):this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1);}),this['listenTo'](_0x1b2633,'suggestionUnloaded',(_0x4b2f0f,_0x11dc8b,_0x5abd54)=>{this['stopListening'](_0x11dc8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11dc8b),this['_suggestionToController']['has'](_0x11dc8b)&&this['_destroyController'](_0x11dc8b),_0x5abd54&&this['_updateController'](_0x5abd54['head']);}),this['listenTo'](_0x1b2633,'suggestionChanged',(_0x2b084f,_0x15de1b)=>{this['_updateController'](_0x15de1b);}),this['listenTo'](_0xa4ebe2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x408ec5,'addComment',(_0x4d1a54,{threadId:_0x2ffb5e,isFromAdapter:_0x3cfccd})=>{if(_0x3cfccd||!_0x1b2633['hasSuggestion'](_0x2ffb5e))return;const _0x471e7b=_0x1b2633['getSuggestion'](_0x2ffb5e);this['_suggestionToController']['get'](_0x471e7b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xcacd84=this['editor']['plugins']['get']('Annotations'),_0x2d050b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0777=Array['from'](_0xcacd84['activeAnnotations'],_0x2d596e=>_0x2d596e['innerView'])['filter'](_0x9bf7a8=>this['_viewToController']['has'](_0x9bf7a8)),_0x4cd2c5=[];for(const _0x3edd63 of _0x5f0777){const _0x1ad109=this['_viewToController']['get'](_0x3edd63)['model']['getAllAdjacentSuggestions']();_0x4cd2c5['push'](..._0x1ad109['reduce']((_0x8c92b4,_0x289b56)=>[..._0x8c92b4,..._0x289b56['getMarkerNames']()],[]));}_0x2d050b['activeMarkers']=_0x4cd2c5;}['_addUIComponentsToFactory'](){const _0x407216=this['editor'],_0x5f4497=_0x407216['locale'],_0xcff164=o(_0x5f4497,'Track\x20changes'),_0x25aa3b=new Wt([{'type':'switchbutton','model':new _0x4ab10e({'withText':!0x0,'isToggleable':!0x0,'label':_0xcff164,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ab4ca of _0x25aa3b)if(me(_0x5ab4ca)){const _0x27e93f=_0x407216['commands']['get'](_0x5ab4ca['model']['commandName']);_0x5ab4ca['model']['bind']('isOn','isEnabled')['to'](_0x27e93f,'value','isEnabled');}_0x407216['ui']['componentFactory']['add']('trackChanges',_0x2e96c9=>this['_createToolbarButton'](_0x2e96c9,_0x25aa3b,_0xcff164)),_0x407216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3895cd=>this['_createMenuBarMenu'](_0x3895cd,_0x25aa3b,_0xcff164));}['_createToolbarButton'](_0xd83e5f,_0x3078b6,_0x5ebaab){const _0x589f19=Qt(_0xd83e5f,_0x5b5fce),_0x51caa5=this['editor']['commands']['get']('trackChanges');_0x589f19['buttonView']['set']({'tooltip':_0x5ebaab,'label':_0x5ebaab,'icon':he}),_0x589f19['buttonView']['bind']('isOn')['to'](_0x51caa5,'value'),_0x589f19['buttonView']['on']('execute',()=>{_0x51caa5['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x589f19,_0x3078b6,{'role':'menu'});const _0x3a22b8=[];for(const _0x5cef5c of _0x3078b6)me(_0x5cef5c)&&_0x3a22b8['push'](this['editor']['commands']['get'](_0x5cef5c['model']['commandName']));const _0x1be107=_0x589f19['buttonView'];return _0x1be107['actionView']['unbind']('isEnabled'),_0x1be107['arrowView']['unbind']('isEnabled'),_0x1be107['actionView']['bind']('isEnabled')['to'](_0x51caa5,'isEnabled'),_0x1be107['arrowView']['bind']('isEnabled')['toMany'](_0x3a22b8,'isEnabled',(..._0x3cc725)=>_0x3cc725['some'](_0x9a46b9=>_0x9a46b9)),_0x589f19['on']('execute',_0x158a89=>{this['editor']['execute'](_0x158a89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x589f19;}['_createMenuBarMenu'](_0x3c9fe0,_0x1a62e0,_0x1a92fe){const _0x2861a1=new Yt(_0x3c9fe0),_0xfcb181=this['editor']['commands']['get']('trackChanges');_0x2861a1['buttonView']['set']({'label':_0x1a92fe,'icon':he});const _0x3a2328=new Zt(_0x3c9fe0);for(const _0x24a4c7 of _0x1a62e0){if('separator'==_0x24a4c7['type']){_0x3a2328['items']['add'](new Xt(_0x3c9fe0));continue;}const _0x3b590b=new te(_0x3c9fe0,_0x2861a1),_0x7564bd=new _0x433705(_0x3c9fe0),_0x5bf17e=_0x24a4c7['model'];_0x7564bd['bind'](...Object['keys'](_0x5bf17e))['to'](_0x5bf17e),_0x7564bd['delegate']('execute')['to'](_0x2861a1),_0x7564bd['on']('execute',()=>{this['editor']['execute'](_0x5bf17e['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b590b['children']['add'](_0x7564bd),_0x3a2328['items']['add'](_0x3b590b);}return _0x2861a1['bind']('isEnabled')['to'](_0xfcb181,'isEnabled'),_0x2861a1['panelView']['children']['add'](_0x3a2328),_0x2861a1;}['_initializeController'](_0x233340){const _0x4edc11=this['editor'],_0x36fb8d=_0x4edc11['config'],_0x3a622c=_0x4edc11['plugins']['get']('Annotations'),_0x592fd5=_0x4edc11['plugins']['get']('CommentsRepository'),_0x2de795=_0x4edc11['plugins']['get']('EditorAnnotations'),_0x3ca55e=_0x4edc11['plugins']['get'](_0x106ae5)['me'],_0x18d97e=_0x36fb8d['get']('trackChanges')['SuggestionThreadView'],_0x1a000d=_0x36fb8d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x101f43,CommentThreadInputView:_0x48736e}=_0x4edc11['plugins']['get']('CommentsUI');let _0x451ed8,_0x2535fe,_0x1d365a;this['_annotationViews']['has'](_0x233340['id'])?(_0x2535fe=this['_annotationViews']['get'](_0x233340['id']),_0x451ed8=_0x2535fe['mainView']):(_0x451ed8=new _0x18d97e(_0x4edc11['locale'],_0x233340,_0x3ca55e,{'disableComments':this['_disableComments'],'editorConfig':_0x36fb8d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36fb8d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x37339d(_0x36fb8d['get']('locale')),'CommentView':_0x36fb8d['get']('comments')['CommentView'],'CommentsListView':_0x101f43,'CommentThreadInputView':_0x48736e,'SuggestionView':_0x1a000d}),_0x451ed8['suggestionView']['acceptButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x451ed8['suggestionView']['discardButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x2535fe=_0x3a622c['createAnnotationView'](this['editor']['locale'],_0x451ed8),_0x2535fe['bind']('isDirty')['to'](_0x451ed8,'isDirty'),_0x2535fe['bind']('length')['to'](_0x451ed8),_0x2535fe['bind']('type')['to'](_0x451ed8,'type',_0x1ccc06=>'suggestion-'+_0x1ccc06),_0x451ed8['on']('escape',()=>{_0x1d365a['fire']('escape');}),this['_annotationViews']['set'](_0x233340['id'],_0x2535fe));const _0x41e508=_0x592fd5['createCommentThreadController'](_0x233340['commentThread'],_0x451ed8),_0x44475c=new ae(_0x4edc11,_0x233340,_0x451ed8,_0x41e508),_0x24139d=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x3dcf00=>_0x3dcf00['isInContent']);_0x451ed8['descriptionParts']=_0x4edc11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24139d),this['_suggestionToController']['set'](_0x233340,_0x44475c),this['_viewToController']['set'](_0x451ed8,_0x44475c),_0x1d365a=_0x3a622c['createAnnotation']({'view':_0x2535fe,'target':()=>{const _0x53acd1=[],_0x3ca66c=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x2e66cf=>_0x2e66cf['isInContent']);for(const _0x26e60a of _0x3ca66c)_0x53acd1['push'](..._0x26e60a['getMarkers']());return _0x58c05a(_0x4edc11['editing'],_0x53acd1);},'type':()=>'suggestion-'+_0x44475c['view']['type']}),_0x592fd5['_bindAnnotationToEditors'](_0x451ed8,_0x1d365a),_0x3a622c['add'](_0x1d365a),_0x2de795['registerAnnotation'](_0x1d365a);}['_destroyController'](_0x4f0e62){const _0x3edbf8=this['editor']['plugins']['get']('CommentsRepository'),_0x20a8ed=this['editor']['plugins']['get']('Annotations'),_0x4d7e27=this['_suggestionToController']['get'](_0x4f0e62),_0x1e910a=_0x4d7e27['view'],_0x154f10=_0x20a8ed['getByInnerView'](_0x1e910a);_0x3edbf8['_unbindEditors'](_0x1e910a),_0x154f10&&_0x20a8ed['remove'](_0x154f10),this['_suggestionToController']['delete'](_0x4f0e62),this['_viewToController']['delete'](_0x1e910a),_0x4d7e27['destroy']();}['_updateController'](_0x5da493){if(!_0x5da493['isInContent']||!this['_suggestionToController']['has'](_0x5da493))return;const _0x45ce55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x242226=this['_suggestionToController']['get'](_0x5da493),_0x44564f=_0x5da493['getAllAdjacentSuggestions']();_0x242226['view']['descriptionParts']=_0x45ce55['descriptionFactory']['getDescriptions'](_0x44564f);}['destroy'](){for(const _0x3561d2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3561d2);for(const _0x459c4b of this['_annotationViews']['values']())_0x459c4b['mainView']['destroy']();super['destroy']();}}function me(_0x5687d4){return'model'in _0x5687d4;}class k extends _0x4ba4b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4c5cce){this['editor']['plugins']['get'](p)['adapter']=_0x4c5cce;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x23d1b7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x23d1b7);}['getSuggestions']({skipNotAttached:_0x10321c=!0x1,toJSON:_0x55697b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x10321c,'toJSON':_0x55697b});}['getSuggestion'](_0x145e92){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x145e92);}}const T=['Pagination'];class P extends _0x4ba4b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5cd516=this['editor'];if(_0x5cd516['config']['define']('trackChangesData.editorCreator',_0x387e81=>{const _0x555149=_0x5cd516['model']['document']['getRootNames']()['reduce']((_0x3423c8,_0x26f533)=>(_0x3423c8[_0x26f533]='',_0x3423c8),{});return _0x5cd516['constructor']['create'](_0x555149,_0x387e81);}),'function'!=typeof _0x5cd516['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a35b0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7da6a){return N(this['editor'],!0x0,_0x7da6a);}['getDataWithDiscardedSuggestions'](_0x336f2f){return N(this['editor'],!0x1,_0x336f2f);}}class D extends _0x4ba4b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x182d28){super(_0x182d28),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(_0x3092ac){return void 0x0!==_0x3092ac['getRootsAttributes'];}async function N(_0x189835,_0xaf3794,_0xef4c57){const _0x28f031=_0x3f774b(_0x189835,T);_0x28f031['plugins']['push'](p,D),_0x28f031['rootsAttributes']=v(_0x189835)?_0x189835['getRootsAttributes']():void 0x0;const _0x544796=document['createDocumentFragment'](),_0x123d13=_0x189835['config']['get']('trackChangesData')['editorCreator'],_0x4dbb09=await _0x123d13(_0x28f031,()=>function(_0xa2750d){const _0x51eb51=document['createElement']('div');return _0xa2750d['appendChild'](_0x51eb51),_0x51eb51;}(_0x544796));!function(_0x214aa4,_0x3f56ec){const _0x357cd9=_0x214aa4['model']['document']['getRootNames']()['reduce']((_0x1ff69d,_0x156b43)=>(_0x1ff69d[_0x156b43]=_0x214aa4['data']['get']({'rootName':_0x156b43}),_0x1ff69d),{}),_0xdc4b7c=_0x214aa4['plugins']['get']('Users')['users']['map'](_0x2de24b=>({'id':_0x2de24b['id'],'name':_0x2de24b['name']})),_0xe72daf=_0x214aa4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ecb5d=_0x214aa4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8acc=_0x3f56ec['plugins']['get']('Users'),_0x3cc747=_0x3f56ec['plugins']['get']('TrackChangesEditing'),_0x35cfb8=_0x3f56ec['plugins']['get']('CommentsRepository');for(const _0x560fd2 of _0x35cfb8['getCommentThreads']())_0x560fd2['remove']();for(const _0x3dbfbc of _0xdc4b7c)_0x5c8acc['getUser'](_0x3dbfbc['id'])||_0x5c8acc['addUser'](_0x3dbfbc);_0x5c8acc['me']||_0x5c8acc['useAnonymousUser']();for(const _0x1d9e98 of _0x2ecb5d)_0x35cfb8['addCommentThread'](_0x1d9e98);for(const _0x2156fc of _0xe72daf)_0x3cc747['addSuggestionData'](_0x2156fc);_0x3f56ec['data']['set'](_0x357cd9);}(_0x189835,_0x4dbb09),_0x4dbb09['execute'](_0xaf3794?'acceptAllSuggestions':'discardAllSuggestions');const _0x2406d7=v(_0x4dbb09)?_0x4dbb09['getFullData'](_0xef4c57):_0x4dbb09['data']['get'](_0xef4c57);return await _0x4dbb09['destroy'](),_0x2406d7;}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 _0x5a19c7,PendingActions as _0x36e86d,icons as _0x75a81b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a7393,ObservableMixin as _0x609870,uid as _0x429a07,insertToPriorityArray as _0x4abfdb,priorities as _0x1f1c0f,logWarning as _0x8063a7,getEnvKeystrokeText as _0xbae308,FocusTracker as _0x552d29,KeystrokeHandler as _0x15e3b6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x435004,View as _0x30ef7e,ViewCollection as _0x2df4da,FocusCycler as _0x21f6d5,ViewModel as _0x230214,createDropdown as Qt,SplitButtonView as _0x16eac9,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x35f9d2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39c210,hashObject as _0x5c5065,surroundingMarkersDetector as _0x22115e,FOCUS_ANNOTATION_KEYSTROKE as _0x3c78cd,AriaDescriptionView as _0x2f032d,setupThreadKeyboardNavigation as _0x13ef58,trimHtml as _0xaf0486,UserView as _0x320796,LateFocusButtonView as _0x252f49,getDateTimeFormatter as _0x618079,getAllMarkersDomElementsSorted as _0x112ab5,sanitizeEditorConfig as _0x19a12e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x12815f,LiveRange as _0x31c9bf,LivePosition as _0x3d9d30}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x12a762,toWidget as _0x365e95}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3492b7,set as _0x206d28,isEqual as _0x2dfb64,unset as _0x4543a7,omit as Tt}from'lodash-es';import{Delete as _0x5eeca8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x47888e,ShiftEnter as _0x8df071}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x22fa00,_0xa864fe){super(_0x22fa00),this['_enabledCommands']=_0xa864fe,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 _0x33d561 of this['editor']['commands']['commands']())_0x33d561['affectsData']&&!this['_enabledCommands']['has'](_0x33d561)&&_0x33d561['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x14b5c9 of this['editor']['commands']['commands']())_0x14b5c9['affectsData']&&!this['_enabledCommands']['has'](_0x14b5c9)&&_0x14b5c9['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x7ca546,_0x559df4){super(_0x7ca546),this['_suggestions']=_0x559df4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4091f6){const _0x160f51=this['_suggestions']['get'](_0x4091f6);if(!_0x160f51)throw new _0x4a7393('track-changes-accept-suggestion-not-found',this);const _0x2f252b=_0x160f51['getRanges']();this['editor']['model']['canEditAt'](_0x2f252b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x160f51);}}class R extends ts{['_suggestions'];constructor(_0x4d1e1a,_0x5a8fe4){super(_0x4d1e1a),this['_suggestions']=_0x5a8fe4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9cbe63){const _0x5483e8=this['_suggestions']['get'](_0x9cbe63);if(!_0x5483e8)throw new _0x4a7393('track-changes-discard-suggestion-not-found',this);const _0x38dd16=_0x5483e8['getRanges']();this['editor']['model']['canEditAt'](_0x38dd16)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5483e8);}}function ls(_0x509b7b,_0x4e1413){let _0x526a48='';return _0x526a48+=_0x509b7b['split']('*')['map']((_0x50a075,_0x3bb2aa)=>_0x3bb2aa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x50a075)+'</span>':nn(_0x50a075))['join'](''),_0x4e1413&&(_0x526a48+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e1413['value']+'\x22\x20title=\x22'+_0x4e1413['title']+'\x22></span>'),_0x526a48;}function nn(_0x225354){const _0x4feb72=document['createElement']('span');return _0x4feb72['innerText']=_0x225354,_0x4feb72['innerHTML'];}function ss(_0x160108){return _0x160108['sort']((_0x19c9e2,_0x2f75b7)=>'deletion'==_0x19c9e2['type']&&'deletion'!=_0x2f75b7['type']?-0x1:'deletion'!=_0x19c9e2['type']&&'deletion'==_0x2f75b7['type']?0x1:0x0);}function to(_0x25a06a,_0x46d9b7){let _0x1d3cc7,_0xce2c48=0x0;const _0xdbd314=[],_0x343759=_0x46d9b7['schema'];for(;_0xce2c48<_0x25a06a['length'];){const _0x1e5844=_0x25a06a[_0xce2c48],_0x4ffbca=_0x25a06a[_0xce2c48+0x1];_0x1d3cc7||(_0x1d3cc7=_0x46d9b7['createPositionBefore'](_0x1e5844)),on(_0x46d9b7,_0x1e5844,_0x4ffbca)||(_0xdbd314['push'](_0x46d9b7['createRange'](_0x1d3cc7,_0x343759['isObject'](_0x1e5844)?_0x46d9b7['createPositionAfter'](_0x1e5844):_0x46d9b7['createPositionAt'](_0x1e5844,'end'))),_0x1d3cc7=null),_0xce2c48++;}return _0xdbd314;}function on(_0x48cb06,_0x3e2c4a,_0x20d346){if(!_0x20d346)return!0x1;const _0x212f20=_0x48cb06['createPositionAfter'](_0x3e2c4a),_0x4bf4d1=_0x48cb06['createPositionBefore'](_0x20d346);return _0x212f20['isTouching'](_0x4bf4d1);}function rs(_0x2b4c4d,_0x4bbc4e,_0x13b8e7){for(;_0x13b8e7['length'];){const _0xf53a17=_0x13b8e7['splice'](0x0,0x64);_0x2b4c4d['change'](()=>{for(const _0xd428d0 of _0xf53a17)_0xd428d0['isInContent']&&_0x4bbc4e['execute'](_0xd428d0['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x26e27a,_0x55dbe2,_0x1ccfb5){super(_0x26e27a),this['_command']=_0x55dbe2,this['_suggestions']=_0x1ccfb5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2884bd=Array['from'](this['_suggestions']['values']())['some'](_0x2a185c=>_0x2a185c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2884bd;}['execute'](){const _0x4ca279=ss(Array['from'](this['_suggestions']['values']()));for(const _0xd44c70 of _0x4ca279){const _0xf07c36=_0xd44c70['getRanges']();if(!this['editor']['model']['canEditAt'](_0xf07c36))return;}rs(this['editor']['model'],this['_command'],_0x4ca279);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xe6f872,_0x485978,_0x521ca3){super(_0xe6f872),this['_command']=_0x485978,this['_suggestions']=_0x521ca3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xcc4c9e=this['editor']['model']['document']['selection'],_0x375352=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d8dac,_0x159c6b){const _0x5b1f1b=Array['from'](_0x4d8dac['getRanges']()),_0x4fee0f=new Set();for(const _0x5db062 of _0x159c6b)if(_0x5db062['isInContent']){for(const _0x510255 of _0x5b1f1b)for(const _0x2a78c9 of _0x5db062['getRanges']())(_0x510255['isIntersecting'](_0x2a78c9)||_0x4d8dac['isCollapsed']&&!_0x5db062['isMultiRange']&&_0x5db062['next']&&_0x2a78c9['end']['isTouching'](_0x510255['start']))&&_0x4fee0f['add'](_0x5db062);}return _0x4fee0f;}(_0xcc4c9e,_0x375352),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x55f7bb=ss(Array['from'](this['_selectedSuggestions']));for(const _0x25ed3b of _0x55f7bb){const _0x526381=_0x25ed3b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x526381))return;}rs(this['editor']['model'],this['_command'],_0x55f7bb);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x609870(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f5bc1,_0x420020){super(),this['id']=_0x420020['id'],this['type']=_0x420020['type'],this['subType']=_0x420020['subType']||null,this['author']=_0x420020['author'],this['creator']=_0x420020['creator']||_0x420020['author'],this['isExternal']=Boolean(_0x420020['attributes']&&_0x420020['attributes']['@external']),this['data']=null,this['_model']=_0x4f5bc1,this['_onAccept']=_0x420020['onAccept'],this['_onDiscard']=_0x420020['onDiscard'],this['_onAttributesChange']=_0x420020['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x420020['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 _0x5d6b85=this;for(;_0x5d6b85['previous'];)_0x5d6b85=_0x5d6b85['previous'];return _0x5d6b85;}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'](_0x21d55d){this['_markerNames']['add'](_0x21d55d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x519e78=>this['_model']['markers']['get'](_0x519e78))['filter'](_0x98744b=>_0x98744b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ec672=>{for(const _0x4154e0 of this['getMarkers']())_0x3ec672['removeMarker'](_0x4154e0);}),this['_markerNames']['clear']();}['removeMarker'](_0x5a22ad){this['_model']['change'](_0xa91362=>{_0xa91362['removeMarker'](_0x5a22ad);}),this['_markerNames']['delete'](_0x5a22ad);}['addRange'](_0x5cedeb){const _0x1633ec='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1633ec),this['_model']['change'](_0x2fce88=>{_0x2fce88['addMarker'](_0x1633ec,{'range':_0x5cedeb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x543b6c){for(const _0x46e3a4 of this['getRanges']())if(_0x46e3a4['isIntersecting'](_0x543b6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1908cb=>_0x1908cb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xe1dd6a,_0x1b0b0e)=>[..._0xe1dd6a,..._0x1b0b0e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c1ca0=this['getRanges']();if(0x1!=_0x4c1ca0['length'])return null;const _0x505254=_0x4c1ca0[0x0],_0x3e4618=_0x505254['start']['nodeAfter'],_0x3b126c=_0x505254['end']['nodeBefore'];return _0x3e4618 instanceof _0x12815f?_0x3e4618!=_0x3b126c?null:_0x3e4618: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 _0x3137c2=[];let _0x1d1dbe=this['head'];for(;_0x1d1dbe;)_0x3137c2['push'](_0x1d1dbe),_0x1d1dbe=_0x1d1dbe['next'];return _0x3137c2;}['setAttribute'](_0x38cf21,_0x2d0233){const _0x533313=_0x3492b7(this['attributes']);_0x206d28(_0x533313,_0x38cf21,_0x2d0233),_0x2dfb64(_0x533313,this['attributes'])||(this['attributes']=_0x533313,this['_onAttributesChange'](_0x533313));}['removeAttribute'](_0xc044fc){const _0xfe9575=_0x3492b7(this['attributes']);_0x4543a7(_0xfe9575,_0xc044fc),_0x2dfb64(_0xfe9575,this['attributes'])||(this['attributes']=_0xfe9575,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 _0x429a07()['substr'](0x1,0x5);}}function o(_0x1e00f9,_0x214bd5,_0x3a13c5){const t=_0x1e00f9['t'];switch(_0x214bd5){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',_0x3a13c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a13c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a13c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a13c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a13c5);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',_0x3a13c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a13c5);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',_0x3a13c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a13c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a13c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a13c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a13c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a13c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a13c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a13c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a13c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a13c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a13c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a13c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a13c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a13c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a13c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a13c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a13c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a13c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a13c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a13c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a13c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a13c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a13c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x214bd5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2f79f6,_0x3ae1c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2f79f6,this['_locale']=_0x3ae1c9;}['getDescriptions'](_0x34c214){const _0x2cff44=[],_0x1f5079=new Set(),_0x295710=new Set();for(let _0x1c3518=0x0;_0x1c3518<_0x34c214['length'];_0x1c3518++){const _0x5d34d=_0x34c214[_0x1c3518];if(!_0x5d34d['isInContent'])continue;const _0x203fb4=this['_handleCustomCallbackDescription'](_0x5d34d);if(_0x203fb4){if(null!=_0x5d34d['subType']){if(_0x1f5079['has'](_0x5d34d['subType']))continue;_0x1f5079['add'](_0x5d34d['subType']);}_0x2cff44['push'](_0x203fb4);}else{if('attribute'!=_0x5d34d['type'])'insertion'!=_0x5d34d['type']&&'deletion'!=_0x5d34d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cff44,_0x5d34d,_0x34c214[_0x1c3518+0x1]);else{const _0x55c52a=_0x5d34d['data']['key'];if(_0x295710['has'](_0x55c52a))continue;_0x295710['add'](_0x5d34d['data']['key']),_0x55c52a==m?this['_handleRenameSuggestionDescription'](_0x2cff44,_0x5d34d):this['_handleAttributeSuggestionDescription'](_0x2cff44,_0x5d34d);}}}return this['_resolveDescriptionItems'](_0x2cff44);}['registerDescriptionCallback'](_0x357c55){this['_customCallbacks']['push'](_0x357c55);}['registerElementLabel'](_0xa7665e,_0x2e9809,_0x47a697=_0x1f1c0f['normal']){'function'==typeof _0xa7665e?_0x4abfdb(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7665e,'label':_0x2e9809,'priority':_0x47a697}):this['_itemLabels']['set'](_0xa7665e,_0x2e9809);}['registerAttributeLabel'](_0x545f0a,_0x53ecc9){this['_attributeLabels']['set'](_0x545f0a,_0x53ecc9);}['getItemLabel'](_0x4be777,_0x41b083=0x1){let _0x5db4f7;for(const _0x3334ee of this['_itemLabelsCallbacks'])if(_0x3334ee['matchingCallback'](_0x4be777)){_0x5db4f7=_0x3334ee['label'];break;}return _0x5db4f7||(_0x5db4f7=this['_itemLabels']['get'](_0x4be777['name'])),_0x5db4f7?_0x5db4f7(_0x41b083):0x1!==_0x41b083?_0x41b083+'\x20'+_0x4be777['name']+'s':''+_0x4be777['name'];}['_addDescriptionItems'](_0x375ca5,_0x1b0473){const _0x1ff808=_0x1b0473['getFirstRange']()['getWalker'](),_0x58e6bb='insertion'==_0x1b0473['type']?'add':'remove';for(const _0x133677 of _0x1ff808){const _0x11ef09=_0x133677['item'],_0xe94def=_0x375ca5[_0x375ca5['length']-0x1];if(_0x11ef09['is']('$textProxy'))_0xe94def&&_0xe94def['type']['indexOf']('Container')>-0x1&&_0x375ca5['pop'](),_0xe94def&&'text'==_0xe94def['type']?_0xe94def[_0x58e6bb]+=_0x11ef09['data']:_0x375ca5['push']({'type':'text','add':'add'==_0x58e6bb?_0x11ef09['data']:'','remove':'remove'==_0x58e6bb?_0x11ef09['data']:''});else{if(this['_schema']['isObject'](_0x11ef09)){const _0x16c8f8=_0x11ef09;if(_0xe94def&&_0xe94def['type']['indexOf']('Container')>-0x1&&_0x375ca5['pop'](),'elementEnd'==_0x133677['type'])continue;_0xe94def&&_0xe94def['type']==_0x58e6bb+'Object'&&_0xe94def['element']['name']==_0x16c8f8['name']?_0xe94def['quantity']++:_0x375ca5['push']({'type':_0x58e6bb+'Object','element':_0x16c8f8,'quantity':0x1}),_0x1ff808['skip'](_0x11b52c=>!('elementEnd'==_0x11b52c['type']&&_0x11b52c['item']==_0x11ef09));}else{if(this['_schema']['checkChild'](_0x11ef09,'$text')||_0x11ef09['is']('element','softBreak')){const _0x5dfc6f=_0x11ef09;if('add'==_0x58e6bb&&'elementStart'==_0x133677['type']||'remove'==_0x58e6bb&&'elementEnd'==_0x133677['type'])continue;if(_0xe94def&&-0x1==_0xe94def['type']['indexOf']('Container')){'text'==_0xe94def['type']&&(_0xe94def[_0x58e6bb]+='\x0a');continue;}let _0x1662f3;if(_0x1662f3='add'==_0x58e6bb?_0x5dfc6f['nextSibling']&&!this['_schema']['isObject'](_0x5dfc6f['nextSibling'])?_0x5dfc6f['nextSibling']:null:_0x5dfc6f['previousSibling']&&!this['_schema']['isObject'](_0x5dfc6f['previousSibling'])?_0x5dfc6f['previousSibling']:null,_0x5dfc6f['isEmpty']||_0x1662f3&&_0x1662f3['isEmpty']){const _0x1fb6b7=_0x1662f3&&_0x1662f3['isEmpty']?_0x1662f3:_0x5dfc6f;_0xe94def&&_0xe94def['type']==_0x58e6bb+'EmptyContainer'&&_0xe94def['element']['name']==_0x1fb6b7['name']?_0xe94def['quantity']++:_0x375ca5['push']({'type':_0x58e6bb+'EmptyContainer','element':_0x1fb6b7,'quantity':0x1});}else _0x375ca5['push']({'type':_0x58e6bb+'Container','element':_0x5dfc6f});}}}}}['_resolveDescriptionItems'](_0x1a43f8){const _0x5dd921=this['_locale'],_0x364c9b=[],_0x515d3f=[],_0x960ae2=[];for(const _0x4d634b of _0x1a43f8)switch(_0x4d634b['type']){case'text':if(_0x4d634b['add']=_0x4d634b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4d634b['remove']=_0x4d634b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4d634b['add']&&''!=_0x4d634b['remove']){_0x364c9b['push']({'type':'replace','content':o(_0x5dd921,'REPLACE_TEXT',['\x22'+_0x4d634b['remove']+'\x22','\x22'+_0x4d634b['add']+'\x22'])});continue;}if(null!=_0x4d634b['add']['match'](/^ +$/)){_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0',o(_0x5dd921,'ELEMENT_SPACE',_0x4d634b['add']['length']))});continue;}if(null!=_0x4d634b['remove']['match'](/^ +$/)){_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0',o(_0x5dd921,'ELEMENT_SPACE',_0x4d634b['remove']['length']))});continue;}if(''!=_0x4d634b['add']){_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0','\x22'+_0x4d634b['add']+'\x22')});continue;}_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0','\x22'+_0x4d634b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'addContainer':_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Split:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'removeContainer':_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Merge:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'addFormat':_0x515d3f['push'](_0x4d634b['key']);continue;case'removeFormat':_0x960ae2['push'](_0x4d634b['key']);continue;default:_0x364c9b['push'](_0x4d634b);}if(_0x515d3f['length']){const _0x5832bf=_0x515d3f['map'](_0x13a19f=>this['_attributeLabels']['has'](_0x13a19f)?this['_attributeLabels']['get'](_0x13a19f):_0x13a19f)['join'](',\x20');_0x364c9b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5832bf)});}if(_0x960ae2['length']){const _0x19509f=_0x960ae2['map'](_0x5810cd=>this['_attributeLabels']['has'](_0x5810cd)?this['_attributeLabels']['get'](_0x5810cd):_0x5810cd)['join'](',\x20');_0x364c9b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19509f)});}return _0x364c9b;}['_handleCustomCallbackDescription'](_0x95263c){for(const _0x33f316 of this['_customCallbacks']){const _0x3a6380=_0x33f316(_0x95263c);if(_0x3a6380&&'type'in _0x3a6380)return _0x3a6380;}}['_handleAttributeSuggestionDescription'](_0x3899c9,_0x1a74e0){const _0x85eaba=_0x1a74e0['data'],_0x2cff52=void 0x0===_0x85eaba['newValue']?'removeFormat':'addFormat';_0x3899c9['push']({'type':_0x2cff52,'key':_0x85eaba['key']});}['_handleRenameSuggestionDescription'](_0x2faedb,_0x1423f8){_0x2faedb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1423f8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x49404b,_0x29f99e,_0x268e11){if(this['_addDescriptionItems'](_0x49404b,_0x29f99e),_0x268e11&&_0x268e11['getFirstRange']()&&!_0x29f99e['getFirstRange']()['end']['isEqual'](_0x268e11['getFirstRange']()['start'])){const _0x3d80f3=_0x49404b[_0x49404b['length']-0x1],_0xe44e4f='insertion'==_0x29f99e['type']?'add':'remove';_0x3d80f3&&'text'==_0x3d80f3['type']&&(_0x3d80f3[_0xe44e4f]+='\x0a');}}}class V extends _0x5a19c7{['afterInit'](){const _0x3befdf=this['editor'],_0x2d186f=_0x3befdf['plugins']['get']('TrackChangesEditing');_0x3befdf['commands']['get']('showAIAssistant')&&_0x2d186f['enableCommand']('showAIAssistant');}}class U extends _0x5a19c7{['afterInit'](){const _0x265258=this['editor'],_0x4c53aa=_0x265258['locale'];if(!_0x265258['plugins']['has']('AlignmentEditing'))return;const _0x132228=_0x265258['plugins']['get']('TrackChangesEditing');_0x132228['enableDefaultAttributesIntegration']('alignment'),_0x132228['registerBlockAttribute']('alignment'),_0x132228['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c53aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32007b=this['editor'],_0xb0547f=_0x32007b['locale'];_0x32007b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51aa71=>{if('formatBlock'!=_0x51aa71['type'])return;const {data:_0x4c388a}=_0x51aa71;if(_0x4c388a&&'alignment'==_0x4c388a['commandName']){const _0x1c26dd=_0x4c388a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xb0547f,'*Format:*\x20%0',function(_0x2ec5bb){switch(_0x2ec5bb){case'left':return o(_0xb0547f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xb0547f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xb0547f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xb0547f,'FORMAT_JUSTIFY_TEXT');}}(_0x1c26dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5a19c7{['afterInit'](){const _0x5f269a=this['editor'],_0x3db919=_0x5f269a['plugins']['get']('TrackChangesEditing'),_0x4b0a3b=_0x5f269a['locale'];for(const _0x17066f of ti){if(!_0x5f269a['plugins']['has'](_0x17066f))continue;const _0x2177ac=_0x17066f['slice'](0x0,-0x7)['toLowerCase'](),_0x3d3808='FORMAT_'+_0x2177ac['toUpperCase']();_0x3db919['enableDefaultAttributesIntegration'](_0x2177ac),_0x3db919['registerInlineAttribute'](_0x2177ac),_0x3db919['descriptionFactory']['registerAttributeLabel'](_0x2177ac,o(_0x4b0a3b,_0x3d3808));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278d28=this['editor'],_0xb70dfd=_0x278d28['locale'],_0x1a846a=_0x278d28['plugins']['get']('TrackChangesEditing');function _0x1e60fa(_0x1c7b26,_0x15a151){_0x1a846a['descriptionFactory']['registerDescriptionCallback'](_0x408506=>{if('formatInline'!=_0x408506['type'])return;const {data:_0x383903}=_0x408506;return _0x383903&&_0x383903['commandName']===_0x1c7b26?_0x383903['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb70dfd,'*Format:*\x20%0',_0x15a151)}:{'type':'format','content':o(_0xb70dfd,'*Remove\x20format:*\x20%0',_0x15a151)}:void 0x0;});}_0x1e60fa('bold',o(_0xb70dfd,'FORMAT_BOLD')),_0x1e60fa('italic',o(_0xb70dfd,'FORMAT_ITALIC')),_0x1e60fa('underline',o(_0xb70dfd,'FORMAT_UNDERLINE')),_0x1e60fa('code',o(_0xb70dfd,'FORMAT_CODE')),_0x1e60fa('strikethrough',o(_0xb70dfd,'FORMAT_STRIKETHROUGH')),_0x1e60fa('subscript',o(_0xb70dfd,'FORMAT_SUBSCRIPT')),_0x1e60fa('superscript',o(_0xb70dfd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5a19c7{['afterInit'](){const _0x35f382=this['editor'],_0x3bd45f=_0x35f382['locale'];if(!_0x35f382['plugins']['has']('BlockQuoteEditing'))return;const _0x167d2b=_0x35f382['plugins']['get']('TrackChangesEditing'),_0x5a25e2=this['editor']['commands']['get']('blockQuote');_0x167d2b['enableCommand']('blockQuote',(_0x1bee2d,_0x457d87={})=>{const _0x46a09d=this['editor']['model']['document']['selection'],_0x58e3c3=_0x457d87&&void 0x0!==_0x457d87['forceValue']?_0x457d87['forceValue']:!_0x5a25e2['value'];let _0x4e21d3=[];if(_0x58e3c3){const _0x2ff365=Array['from'](_0x46a09d['getSelectedBlocks']())['filter'](_0xfbae93=>oo(_0xfbae93)||function(_0x5f2487,_0x51edb1){const _0x5c7e95=_0x51edb1['checkChild'](_0x5f2487['parent'],'blockQuote'),_0x396683=_0x51edb1['checkChild'](['$root','blockQuote'],_0x5f2487);return _0x5c7e95&&_0x396683;}(_0xfbae93,this['editor']['model']['schema']));_0x4e21d3=to(_0x2ff365,_0x35f382['model']);}else{const _0x582e04=Array['from'](_0x46a09d['getSelectedBlocks']())['filter'](_0xd2078b=>oo(_0xd2078b));_0x4e21d3=to(_0x582e04,_0x35f382['model']);}_0x35f382['model']['change'](()=>{for(const _0x4a3785 of _0x4e21d3)_0x167d2b['markBlockFormat'](_0x4a3785,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x58e3c3}]});});}),_0x167d2b['descriptionFactory']['registerDescriptionCallback'](_0x365ef7=>{const {data:_0x936024}=_0x365ef7;if(_0x936024&&'blockQuote'==_0x936024['commandName']){const _0x13fad5=o(_0x3bd45f,'ELEMENT_BLOCK_QUOTE');return _0x936024['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bd45f,'*Set\x20format:*\x20%0',_0x13fad5)}:{'type':'format','content':o(_0x3bd45f,'*Remove\x20format:*\x20%0',_0x13fad5)};}});}}function oo(_0x4af96e){return'blockQuote'==_0x4af96e['parent']['name'];}class L extends _0x5a19c7{['afterInit'](){const _0x1a658a=this['editor'];_0x1a658a['plugins']['has']('CaseChange')&&(_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5a19c7{['afterInit'](){const _0x5e354a=this['editor'];_0x5e354a['commands']['get']('ckbox')&&_0x5e354a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5a19c7{['afterInit'](){const _0x513a0f=this['editor'];if(!_0x513a0f['plugins']['has']('CodeBlock'))return;const _0x13e6d0=_0x513a0f['plugins']['get']('TrackChangesEditing'),_0x2fedef=_0x513a0f['locale'],_0x52fc37=_0x513a0f['config']['get']('codeBlock')['languages'],_0x40fcc6=_0x513a0f['commands']['get']('codeBlock');_0x13e6d0['enableCommand']('indentCodeBlock'),_0x13e6d0['enableCommand']('outdentCodeBlock'),_0x13e6d0['enableCommand']('codeBlock',(_0x5d277a,_0x441be9={})=>{const _0x5d47f5=_0x513a0f['model'],_0x20bbaa=_0x513a0f['model']['document']['selection'],_0x40048b=_0x441be9&&void 0x0!==_0x441be9['forceValue']?_0x441be9['forceValue']:!_0x40fcc6['value'];let _0x49d916;_0x441be9['language']||(_0x441be9['language']=_0x52fc37[0x0]['language']),_0x49d916=_0x40048b?Array['from'](_0x20bbaa['getSelectedBlocks']())['filter'](_0x4f11ea=>eo(_0x4f11ea)||function(_0x52a235,_0xfeaac5){if(_0x52a235['is']('rootElement')||_0xfeaac5['isLimit'](_0x52a235))return!0x1;return _0xfeaac5['checkChild'](_0x52a235['parent'],'codeBlock');}(_0x4f11ea,_0x5d47f5['schema'])):Array['from'](_0x20bbaa['getSelectedBlocks']())['filter'](_0x342ab9=>eo(_0x342ab9));const _0x680fbf=to(_0x49d916,_0x5d47f5);_0x5d47f5['change'](()=>{for(const _0x3b77fe of _0x680fbf)_0x13e6d0['markBlockFormat'](_0x3b77fe,{'commandName':'codeBlock','commandParams':[{..._0x441be9,'forceValue':_0x40048b}],'formatGroupId':'blockName'});});}),(_0x13e6d0['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e35b8=>o(_0x2fedef,'ELEMENT_CODE_BLOCK',_0x4e35b8)),_0x13e6d0['descriptionFactory']['registerDescriptionCallback'](_0x1f967d=>{if('formatBlock'!=_0x1f967d['type'])return;const _0x3685e5=_0x2fedef['t'],{data:_0x42c5ba}=_0x1f967d;if(!_0x42c5ba||'codeBlock'!=_0x42c5ba['commandName'])return;const _0x344ac6=_0x42c5ba['commandParams'][0x0]['language'],_0x155ad1=_0x3685e5(_0x52fc37['find'](_0x3e8924=>_0x3e8924['language']===_0x344ac6)['label'])['toLowerCase']();return _0x42c5ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fedef,'*Set\x20format:*\x20%0',o(_0x2fedef,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x155ad1+')')}:{'type':'format','content':o(_0x2fedef,'*Remove\x20format:*\x20%0',o(_0x2fedef,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f1757){return'codeBlock'==_0x3f1757['name'];}class q extends _0x5a19c7{['afterInit'](){const _0x2ce387=this['editor'];if(!_0x2ce387['plugins']['has']('CommentsEditing'))return;_0x2ce387['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4399f6,_0x5e8c28,_0x1601a1){const _0x437a28=[];for(const _0x1b99ab of _0x5e8c28['getItems']())_0x1b99ab['hasAttribute'](_0x4399f6)&&_0x437a28['push'](_0x1601a1['createRangeOn'](_0x1b99ab));return _0x437a28;}function _e(_0x3973b9,_0x2ca51e,{showActiveMarker:_0x35d6da=!0x0}={}){const _0x40c53d=_0x3973b9['plugins']['get']('TrackChangesEditing');return(_0x3235ee,_0xe46659,_0x23bbdf)=>{if(!_0x23bbdf['consumable']['test'](_0xe46659['markerRange'],_0x3235ee['name']))return;const _0x5ba82f=_0xe46659['markerRange']['getWalker'](),_0x2a156b=_0xe46659['markerRange']['start'],_0x33678d=_0x3973b9['model']['schema'];let _0x322015=null,_0x3a982b=null,_0x233429=!0x1,_0x24c384=!0x1;for(const _0x3acce5 of _0x5ba82f){const _0x581569=_0x3acce5['item'];_0x233429=_0x233429||_0x33678d['isContent'](_0x581569);const _0x580129=_0x23bbdf['mapper']['toViewElement'](_0x581569);if(_0x580129&&_0x580129['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3acce5['type']&&(_0x33678d['isBlock'](_0x581569)&&!_0x33678d['isLimit'](_0x581569)&&(_0x581569['nextSibling']||_0x2a156b['isAtEnd']?_0x322015&&_0x322015['parent']==_0x581569||(_0x322015=_0x581569,_0x5c50b2(_0x3acce5['previousPosition']),_0x24c384=!0x0):_0x3a982b=_0x3a982b||_0x3acce5['previousPosition']));}function _0x5c50b2(_0x908236){const {authorId:_0x7489d5}=_0x40c53d['_splitMarkerName'](_0xe46659['markerName']),_0x4d6b8d=_0x23bbdf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ca51e,'data-author-id':_0x7489d5}),_0x3187f0=_0x23bbdf['mapper']['toViewPosition'](_0x908236);_0x35d6da&&_0x40c53d['activeMarkers']['includes'](_0xe46659['markerName'])&&_0x23bbdf['writer']['addClass']('ck-suggestion-marker--active',_0x4d6b8d),_0x23bbdf['writer']['insert'](_0x3187f0,_0x4d6b8d),_0x23bbdf['mapper']['bindElementToMarker'](_0x4d6b8d,_0xe46659['markerName']);}_0x233429||_0x24c384||!_0x3a982b||_0x5c50b2(_0x3a982b);};}class z extends _0x5a19c7{static get['requires'](){return[_0x5eeca8];}['init'](){const _0x15bc7d=this['editor'],_0x149f44=_0x15bc7d['plugins']['get']('TrackChangesEditing');_0x149f44['enableCommand']('delete');const _0x304df6=_0x15bc7d['commands']['get']('deleteForward');_0x149f44['enableCommand']('deleteForward',(_0x5b965d,_0x45b56a={})=>{const _0x7f787b=_0x15bc7d['model']['createSelection'](_0x15bc7d['model']['document']['selection']);_0x7f787b['isCollapsed']&&_0x15bc7d['model']['modifySelection'](_0x7f787b,{'direction':'forward','unit':_0x45b56a['unit']});const _0x1b21cf=_0x7f787b['getFirstRange'](),_0x20da4d=_0x31c9bf['fromRange'](_0x1b21cf);let _0x5b3768;_0x5b965d(_0x45b56a),_0x5b3768='$graveyard'==_0x20da4d['root']['rootName']?_0x15bc7d['model']['createRange'](_0x1b21cf['start']):_0x15bc7d['model']['createRange'](_0x20da4d['start'],_0x20da4d['end']),_0x20da4d['detach'](),_0x15bc7d['model']['enqueueChange'](_0x304df6['buffer']['batch'],_0x818f39=>{_0x304df6['buffer']['lock'](),_0x818f39['setSelection'](_0x818f39['createRange'](_0x5b3768['end'])),_0x304df6['buffer']['unlock']();});}),_0x15bc7d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x15bc7d,'merge'),{'priority':'high'}),_0x15bc7d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x199e4b,_0x2d185f,_0x22e763)=>{_0x22e763['options']['showSuggestionHighlights']&&_e(_0x15bc7d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x199e4b,_0x2d185f,_0x22e763);},{'priority':'high'}),_0x15bc7d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1af16b,_0x1fa80c,_0x571639)=>{const _0x5d546b=_0x571639['mapper']['markerNameToElements'](_0x1fa80c['markerName']);if(_0x5d546b){for(const _0x237e97 of _0x5d546b)_0x237e97['is']('uiElement')&&(_0x571639['mapper']['unbindElementFromMarkerName'](_0x237e97,_0x1fa80c['markerName']),_0x571639['writer']['remove'](_0x237e97));}},{'priority':'high'});}}class K extends _0x5a19c7{['afterInit'](){const _0x29e119=this['editor'];if(!_0x29e119['plugins']['has']('ListEditing'))return;const _0xa47efb=_0x29e119['locale'],_0x56e85d=_0x29e119['plugins']['get']('TrackChangesEditing'),_0x9b36b4=_0x29e119['plugins']['has']('TodoListEditing'),_0x58b0f2=!!_0x29e119['config']['get']('list.multiBlock');function _0x165d76(_0x36f8ab){return{'type':'format','content':''+o(_0xa47efb,'*Set\x20format:*\x20%0',_0x36f8ab)};}function _0x2ad59f(_0x3e05ce){return{'type':'format','content':''+o(_0xa47efb,'*Remove\x20format:*\x20%0',_0x3e05ce)};}_0x56e85d['enableDefaultAttributesIntegration']('numberedList'),_0x56e85d['enableDefaultAttributesIntegration']('bulletedList'),_0x56e85d['enableDefaultAttributesIntegration']('customNumberedList'),_0x56e85d['enableDefaultAttributesIntegration']('customBulletedList'),_0x56e85d['enableDefaultAttributesIntegration']('indentList'),_0x56e85d['enableDefaultAttributesIntegration']('outdentList'),_0x56e85d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x56e85d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x56e85d['registerBlockAttribute']('listItemId'),_0x56e85d['registerBlockAttribute']('listType'),_0x56e85d['registerBlockAttribute']('listIndent'),_0x58b0f2&&(_0x56e85d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x56e85d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9b36b4&&(_0x56e85d['enableDefaultAttributesIntegration']('todoList'),_0x56e85d['enableDefaultAttributesIntegration']('checkTodoList'),_0x56e85d['registerBlockAttribute']('todoListChecked'),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x828cdd=>{const {data:_0xb14de7}=_0x828cdd;if(_0xb14de7&&'todoListChecked'==_0xb14de7['key'])return{'type':'format','content':_0xb14de7['newValue']?o(_0xa47efb,'*Check\x20item*'):o(_0xa47efb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32916f=>{if(_0x32916f['batch']['isUndo'])return!0x1;let _0x5bf241=!0x1;const _0x2d3613=_0x56e85d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x486986=>'todoListChecked'===_0x56e85d['_getAttributeKey'](_0x486986));for(const _0x29be7d of _0x2d3613){'todo'!=_0x29be7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x56e85d['_findSuggestions'](_0x29be7d['getFirstRange'](),'attribute')['find'](_0xf1abc5=>'listType'===_0x56e85d['_getAttributeKey'](_0xf1abc5['suggestion']))||(_0x32916f['removeMarker'](_0x29be7d['getFirstMarker']()),_0x5bf241=!0x0));}return _0x5bf241;})),_0x56e85d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa47efb,'FORMAT_INDENT'));const _0x3ca732={'type':'format','content':''};_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x5b212c=>{const {data:_0x51323c}=_0x5b212c;if(!_0x51323c||'listType'!=_0x51323c['key'])return;let _0xcecc26=_0x5b212c['head'];for(;_0xcecc26;){if(_0xcecc26['data']&&(('listStyle'==_0xcecc26['data']['key']||'listMarkerStyle'==_0xcecc26['data']['key'])&&(_0xcecc26['data']['newValue']&&'default'!=_0xcecc26['data']['newValue']||'default'!=_0xcecc26['data']['oldValue']&&!_0x51323c['newValue'])||!_0x58b0f2&&_0xcecc26['data']['key']==m))return _0x3ca732;_0xcecc26=_0xcecc26['next'];}if(null==_0x51323c['newValue'])switch(_0x51323c['oldValue']){case'bulleted':return _0x2ad59f(o(_0xa47efb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad59f(o(_0xa47efb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad59f(o(_0xa47efb,'ELEMENT_TODO_LIST'));}switch(_0x51323c['newValue']){case'bulleted':return _0x165d76(o(_0xa47efb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x165d76(o(_0xa47efb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x165d76(o(_0xa47efb,'ELEMENT_TODO_LIST'));}}),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x4f51c9=>{const {data:_0x7eb124}=_0x4f51c9;if(_0x7eb124&&'listIndent'==_0x7eb124['key'])return null==_0x7eb124['newValue']||null==_0x7eb124['oldValue']&&0x0==_0x7eb124['newValue']?_0x3ca732:void 0x0;}),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x135588=>{if('attribute'!=_0x135588['type'])return;const {data:_0x58a3c0}=_0x135588;if(!_0x58a3c0||'listItemId'!=_0x58a3c0['key'])return;const _0x5ba160=Ee(_0x135588);return'newValue'==_0x5ba160?{'type':'format','content':o(_0xa47efb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5ba160?{'type':'format','content':o(_0xa47efb,'*Split:*\x20list\x20item')}:_0x3ca732;}),_0x29e119['model']['document']['registerPostFixer'](_0x12d07a=>this['listItemIdFixer'](_0x12d07a)),_0x29e119['model']['document']['registerPostFixer'](_0x2a875f=>this['noTrackChangesFixer'](_0x2a875f)),_0x29e119['model']['document']['on']('change:data',(_0xab2c8a,_0x527097)=>{if(_0x527097['isUndo']||!_0x527097['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x147966){if(_0x147966['batch']['isUndo']||!_0x147966['batch']['isLocal'])return!0x1;let _0x4bd337=!0x1;const _0x15e2e4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2093b0=>_0x2093b0['data']&&'listItemId'==_0x2093b0['data']['key'])['filter'](_0x6c44d0=>_0x6c44d0['data']['newValue']&&_0x6c44d0['data']['oldValue']);for(const _0x443700 of _0x15e2e4)Ee(_0x443700)||(_0x147966['removeMarker'](_0x443700['getFirstMarker']()),_0x4bd337=!0x0);return _0x4bd337;}['noTrackChangesFixer'](_0x385be7){if(_0x385be7['batch']['isUndo']||!_0x385be7['batch']['isLocal'])return!0x1;const _0x5846a6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5846a6['trackChangesCommand']['value'])return!0x1;let _0x369a31=!0x1;const _0xda1d1c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x546e16=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x426e26=>'attribute'==_0x426e26['type'])['filter'](_0x42cc0d=>_0xda1d1c['includes'](_0x42cc0d['attributeKey']));if(0x0==_0x546e16['length'])return _0x369a31;for(const _0x29dea3 of _0x546e16){const _0x252412=_0x5846a6['_findSuggestions'](_0x29dea3['range'],'attribute')['filter'](_0x2ee71f=>!_0x2ee71f['meta']['isNextTo'])['map'](_0x52e0a3=>_0x52e0a3['suggestion'])['filter'](_0x1edd26=>{const _0x1dd2b6=_0x5846a6['_getAttributeKey'](_0x1edd26);return _0xda1d1c['includes'](_0x1dd2b6);});if(_0x252412['length']){for(const _0x30ef27 of _0x252412)_0x385be7['removeMarker'](_0x30ef27['getFirstMarker']());_0x369a31=!0x0;}}return _0x369a31;}['assureChains'](){const _0x4a8ad0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18c10d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47483e;const _0x2a42bd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf72006=>{if(_0xf72006['data']['oldRange']||!_0xf72006['data']['newRange'])return null;if(!_0xf72006['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6e36ea}=_0x4a8ad0['_splitMarkerName'](_0xf72006['name']);if(!_0x4a8ad0['hasSuggestion'](_0x6e36ea))return null;const _0x26eb1b=_0x4a8ad0['getSuggestion'](_0x6e36ea);return _0x18c10d['includes'](_0x26eb1b['data']['key']);})['map'](_0x20d962=>{const {id:_0x2219ac}=_0x4a8ad0['_splitMarkerName'](_0x20d962['name']),_0x32421f=_0x4a8ad0['getSuggestion'](_0x2219ac);return _0x47483e=_0x32421f['attributes']['groupId'],_0x32421f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a42bd['size'])return;const _0x1ddb03=_0x4a8ad0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1081d0=>'attribute'==_0x1081d0['type']&&_0x1081d0['data']&&_0x18c10d['includes'](_0x1081d0['data']['key'])&&_0x1081d0['attributes']['groupId']!=_0x47483e)['map'](_0x256205=>({'listItem':_0x256205['getFirstRange']()['start']['nodeAfter'],'groupId':_0x256205['attributes']['groupId']})),_0x4cff9e=new Set();for(const {groupId:_0x356637,listItem:_0x5a063b}of _0x1ddb03)_0x2a42bd['has'](_0x5a063b)&&_0x4cff9e['add'](_0x356637);for(const _0x22fb04 of _0x4a8ad0['getSuggestions']())_0x4cff9e['has'](_0x22fb04['attributes']['groupId'])&&_0x22fb04['setAttribute']('groupId',_0x47483e);}['_supportLegacySuggestions'](){const _0xe78e8a=this['editor'],_0x1a8480=_0xe78e8a['locale'],_0x143ac3=_0xe78e8a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x143ac3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a5bba,_0x3115b1){const _0x5ab666=[];for(let _0x3cb79b of _0x4a5bba)_0x3cb79b['start']['nodeAfter']===_0x3cb79b['end']['parent']&&(_0x3cb79b=_0xe78e8a['model']['createRange'](_0xe78e8a['model']['createPositionAt'](_0x3cb79b['start']['nodeAfter'],0x0))),_0x5ab666['push'](_0x3cb79b);_0xe78e8a['model']['change'](_0x44bed3=>{const _0x34c50a=_0xe78e8a['model']['document']['selection'],_0x3fe6cc=Array['from'](_0x34c50a['getRanges']())['map'](_0x3ce936=>_0x31c9bf['fromRange'](_0x3ce936));_0x44bed3['setSelection'](_0x5ab666),_0xe78e8a['commands']['get'](_0x3115b1['commandName'])['refresh'](),_0x3115b1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe78e8a['execute'](_0x3115b1['commandName'],..._0x3115b1['commandParams']),_0x44bed3['setSelection'](_0x3fe6cc);for(const _0x4eb77a of _0x3fe6cc)_0x4eb77a['detach']();});}),_0x143ac3['descriptionFactory']['registerElementLabel'](function(_0x56f3c2){const _0x58e73e=!_0xe78e8a['model']['schema']['isObject'](_0x56f3c2),_0x50d10c=_0x56f3c2['previousSibling'],_0x334dcc=_0x56f3c2['nextSibling'],_0x37b633=_0x56f3c2['getAttribute']('listItemId'),_0x1967c8=!_0x50d10c||_0x50d10c['getAttribute']('listItemId')!==_0x37b633,_0x1d03b0=!_0x334dcc||_0x334dcc['getAttribute']('listItemId')!==_0x37b633;return _0x58e73e&&Boolean(_0x37b633)&&_0x1967c8&&_0x1d03b0;},_0x5bba89=>o(_0x1a8480,'ELEMENT_LIST_ITEM',_0x5bba89));}['_registerLegacyDescription'](){const _0x30583b=this['editor'],_0x3879a0=_0x30583b['locale'];function _0x4356d8(_0x5dfa78){const _0x39c36c=_0x30583b['commands']['get']('bulletedList')['value'],_0x3fe77c=_0x30583b['commands']['get']('numberedList')['value'];return'numberedList'===_0x5dfa78?_0x39c36c:_0x3fe77c;}_0x30583b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d6c99){if('formatBlock'!=_0x2d6c99['type'])return;const {data:_0x121651}=_0x2d6c99;if(!_0x121651)return;let _0x16e8b4,_0x1cb37d,_0x4f4a71,_0x3b1287;switch(_0x121651['commandName']){case'bulletedList':_0x4f4a71=_0x121651['commandParams'][0x0]['forceValue'],_0x3b1287=_0x4356d8(_0x121651['commandName']),_0x16e8b4=_0x4f4a71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1287&&_0x30583b['config']['get']('list.multiBlock')||(_0x16e8b4='*Change\x20to:*\x20%0'),_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4f4a71=_0x121651['commandParams'][0x0]['forceValue'],_0x3b1287=_0x4356d8(_0x121651['commandName']),_0x16e8b4=_0x4f4a71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1287&&_0x30583b['config']['get']('list.multiBlock')||(_0x16e8b4='*Change\x20to:*\x20%0'),_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16e8b4='*Indent:*\x20%0',_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16e8b4=function(_0x55ff60){const _0x4c4bd9=_0x55ff60['getFirstRange']();let _0x5ea928=_0x4c4bd9['start']['nodeAfter'];for(;_0x5ea928&&_0x4c4bd9['containsItem'](_0x5ea928);){if(_0x5ea928['getAttribute']('listIndent')>0x0)return!0x1;_0x5ea928=_0x5ea928['nextSibling'];}return!0x0;}(_0x2d6c99)?o(_0x3879a0,'*Format:*\x20remove\x20from\x20%0',o(_0x3879a0,function(_0x9fd99d){return'ELEMENT_'+_0x9fd99d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d6c99))):o(_0x3879a0,'*Outdent:*\x20%0',o(_0x3879a0,'ELEMENT_LIST_ITEM')),_0x1cb37d={'type':'format','content':_0x16e8b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x121651['multipleBlocks']&&(_0x16e8b4='*Merge:*\x20%0',_0x1cb37d={'type':'deletion','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_LIST_ITEM'))});}return _0x1cb37d;});}}function Ee(_0x3f84dc){let _0x7535ed=_0x3f84dc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7535ed;){const _0x1edde4=_0x7535ed['getAttribute']('listItemId');if(!_0x1edde4)return!0x1;if(_0x1edde4==_0x3f84dc['data']['newValue'])return'newValue';if(_0x1edde4==_0x3f84dc['data']['oldValue'])return'oldValue';_0x7535ed=_0x7535ed['previousSibling'];}return!0x1;}class pe extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc641e1=this['editor']['config']['get']('list.properties'),_0x3f6f49=this['editor']['plugins']['get']('TrackChangesEditing');_0xc641e1['styles']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listStyle'),_0x3f6f49['registerBlockAttribute']('listStyle')),_0xc641e1['reversed']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listReversed'),_0x3f6f49['registerBlockAttribute']('listReversed')),_0xc641e1['startIndex']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listStart'),_0x3f6f49['registerBlockAttribute']('listStart'));const _0x4d6873={'type':'format','content':''};_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x576dd8=this['editor']['locale'];_0x3f6f49['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x576dd8,'FORMAT_LIST_REVERSED')),_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](_0x2c2afb=>{const {data:_0x14a46b}=_0x2c2afb;if(_0x14a46b&&'listReversed'==_0x14a46b['key'])return null==_0x14a46b['newValue']||0x0==_0x14a46b['newValue']&&null==_0x14a46b['oldValue']?_0x4d6873:void 0x0;}),_0x3f6f49['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x576dd8,'FORMAT_LIST_START')),_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](_0x1b38bc=>{const {data:_0x3bcfed}=_0x1b38bc;if(_0x3bcfed&&'listStart'==_0x3bcfed['key'])return null==_0x3bcfed['newValue']||0x1==_0x3bcfed['newValue']&&null==_0x3bcfed['oldValue']?_0x4d6873:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15c432=>{if(_0x15c432['batch']['isUndo'])return!0x1;let _0x4d1edf=!0x1;const _0x498cd6=_0x3f6f49['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c48ad=>{const _0x9983fa=_0x3f6f49['_getAttributeKey'](_0x5c48ad);return'listStart'==_0x9983fa||'listReversed'==_0x9983fa;});for(const _0x18e877 of _0x498cd6){const _0x457edf=_0x18e877['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x457edf||'customNumbered'==_0x457edf)continue;_0x3f6f49['_findSuggestions'](_0x18e877['getFirstRange'](),'attribute')['find'](_0x326816=>'listType'==_0x3f6f49['_getAttributeKey'](_0x326816['suggestion']))||(_0x15c432['removeMarker'](_0x18e877['getFirstMarker']()),_0x4d1edf=!0x0);}return _0x4d1edf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d3ce5){const _0xd44fc3=this['editor']['locale'],{data:_0x1f588a}=_0x5d3ce5,_0x114413={'type':'format','content':''};if(!_0x1f588a||'listStyle'!=_0x1f588a['key'])return;if(!_0x1f588a['oldValue'])return'default'==_0x1f588a['newValue']?_0x114413:{'type':'format','content':''+o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['newValue'])))};if(!_0x1f588a['newValue']){if('default'==_0x1f588a['oldValue'])return _0x114413;let _0x1c2803=_0x5d3ce5['head'];for(;_0x1c2803;){if(_0x1c2803['data']&&'listType'==_0x1c2803['data']['key']&&_0x1c2803['data']['newValue'])return _0x114413;_0x1c2803=_0x1c2803['next'];}return{'type':'format','content':''+o(_0xd44fc3,'*Remove\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['oldValue'])))};}if('default'!=_0x1f588a['newValue'])return{'type':'format','content':''+o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['newValue'])))};let _0x27a137=_0x5d3ce5['head'];for(;_0x27a137;){if(_0x27a137['data']&&'listType'==_0x27a137['data']['key']&&_0x27a137['data']['newValue']&&_0x27a137['data']['oldValue'])return _0x114413;_0x27a137=_0x27a137['next'];}return{'type':'format','content':o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,'ELEMENT_'+_0x5d3ce5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ee717=this['editor'],_0x301c2c=_0x2ee717['locale'];_0x2ee717['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dabed=>{if('formatBlock'!=_0x1dabed['type'])return;const {data:_0x54aedd}=_0x1dabed;if(!_0x54aedd)return;let _0x3296f9,_0x333f3e;switch(_0x54aedd['commandName']){case'listStyle':_0x3296f9='*Change\x20to:*\x20%0',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9,o(_0x301c2c,this['_getTranslationKeyForListStyle'](_0x54aedd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3296f9=_0x54aedd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9)};break;case'listStart':_0x3296f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9,_0x54aedd['commandParams'][0x0]['startIndex'])};}return _0x333f3e;});}['_getTranslationKeyForListStyle'](_0x30cdfb){return'ELEMENT_'+function(_0x53777d){if(ye['includes'](_0x53777d))return'bulleted';if(Se['includes'](_0x53777d))return'numbered';return null;}(_0x30cdfb)['toUpperCase']()+'_LIST_'+_0x30cdfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5a19c7{static get['requires'](){return[_0x47888e];}['init'](){const _0x157bdf=this['editor'],_0x2452f7=_0x157bdf['plugins']['get']('TrackChangesEditing'),_0x612cfd=_0x157bdf['commands']['get']('enter');_0x2452f7['enableCommand']('enter',()=>{_0x157bdf['model']['change'](_0x44af1a=>{const _0x35c962=_0x157bdf['model']['document']['selection'],_0x15ffdf=_0x35c962['getFirstPosition'](),_0x39cd60=_0x31c9bf['fromRange'](_0x35c962['getFirstRange']());if(_0x612cfd['enterBlock'](_0x44af1a)){const _0x208fc9=_0x157bdf['model']['createPositionAt'](_0x15ffdf['parent']['nextSibling'],0x0),_0x582acc=_0x44af1a['createRange'](_0x15ffdf,_0x208fc9);_0x2452f7['markInsertion'](_0x582acc);}else _0x44af1a['setSelection'](_0x44af1a['createRange'](_0x39cd60['end']));_0x39cd60['detach'](),_0x612cfd['fire']('afterExecute',{'writer':_0x44af1a});});}),_0x157bdf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x157bdf,'split'),{'priority':'high'}),_0x157bdf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49b924,_0x35205b,_0x1e6f59)=>{const _0x4d9d8d=_0x1e6f59['mapper']['markerNameToElements'](_0x35205b['markerName']);if(_0x4d9d8d){for(const _0x1c45e3 of _0x4d9d8d)_0x1c45e3['hasClass']('ck-suggestion-marker-split')&&(_0x1e6f59['mapper']['unbindElementFromMarkerName'](_0x1c45e3,_0x35205b['markerName']),_0x1e6f59['writer']['remove'](_0x1c45e3));}},{'priority':'high'}),_0x157bdf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35e038,_0x119602,_0x87d35e)=>{_0x87d35e['options']['showSuggestionHighlights']&&_e(_0x157bdf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35e038,_0x119602,_0x87d35e);},{'priority':'high'});}}class X extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc66b7d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc66b7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc66b7d['enableCommand']('findNext'),_0xc66b7d['enableCommand']('findPrevious'),_0xc66b7d['enableCommand']('replace'),_0xc66b7d['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b43ce,_0x265614,_0x47e19b={}){const _0x4cb7f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b43ce(_0x5ed125=>{let _0x4d2f83=('string'==typeof _0x265614?_0x4cb7f5['findByTextCallback'](_0x265614,_0x47e19b):_0x265614)(_0x5ed125);Array['isArray'](_0x4d2f83)&&(_0x4d2f83={'results':_0x4d2f83,'searchText':'string'==typeof _0x265614?_0x265614:''});const _0xe1c577=_0x4d2f83['results']['filter'](_0x2e2c42=>!0x1===this['_isInDeletionRange'](_0x2e2c42,_0x5ed125['item']));return{..._0x4d2f83,'results':_0xe1c577};},_0x47e19b);}['_isInDeletionRange'](_0x3990c1,_0x1d9db6){const _0x49d000=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d9db6,_0x3990c1['start']),this['editor']['model']['createPositionAt'](_0x1d9db6,_0x3990c1['end']));for(const _0x4a349f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x49d000['getIntersection'](_0x4a349f['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 _0x5a19c7{['afterInit'](){const _0x5eeb69=this['editor']['locale'],_0xfd5150=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5587a9,commandName:_0x3fe2d2}of ro)this['editor']['plugins']['has'](_0x5587a9)&&(_0xfd5150['enableDefaultAttributesIntegration'](_0x3fe2d2),_0xfd5150['registerInlineAttribute'](_0x3fe2d2));_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5eeb69,'FORMAT_FONT_SIZE')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5eeb69,'FORMAT_FONT_FAMILY')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5eeb69,'FORMAT_FONT_COLOR')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5eeb69,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c7023=this['editor'],_0x2a0e41=_0x2c7023['locale'];_0x2c7023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dbee=>{const _0x4e7707=_0x2a0e41['t'];if('formatInline'!=_0x15dbee['type'])return;const {data:_0x16a69f}=_0x15dbee;if(null!=_0x16a69f){if('fontSize'==_0x16a69f['commandName']){const _0x2faf01=_0x16a69f['commandParams'][0x0]['value'];if(_0x2faf01){const _0x64aee2=_0x4e7707(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x146758=>_0x146758['model']==_0x2faf01)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20size:*\x20%0',_0x64aee2)};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16a69f['commandName']){const _0x4fe001=_0x16a69f['commandParams'][0x0]['value'];return _0x4fe001?{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20family:*\x20%0',_0x4fe001)}:{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16a69f['commandName']){const _0x4b231a=_0x16a69f['commandParams'][0x0]['value'];if(_0x4b231a){const _0xd06170=_0x435004(this['editor']['config']['get']('fontColor.colors'))['find'](_0x483336=>_0x483336['model']==_0x4b231a);let _0x192734=_0x4b231a,_0x5d8503='';return _0xd06170&&(_0x192734=_0xd06170['label'],_0x5d8503=_0x4e7707(_0x192734)['toLowerCase']()),{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20color:*\x20%0',_0x5d8503)['trim'](),'color':{'value':_0x4b231a,'title':_0x5d8503||_0x192734}};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16a69f['commandName']){const _0x2d5cc9=_0x16a69f['commandParams'][0x0]['value'];if(_0x2d5cc9){const _0x588803=_0x435004(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e71f1=>_0x1e71f1['model']==_0x2d5cc9);let _0xc66b2e=_0x2d5cc9,_0x54ddc0='';return _0x588803&&(_0xc66b2e=_0x588803['label'],_0x54ddc0=_0x4e7707(_0xc66b2e)['toLowerCase']()),{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20background\x20color:*\x20%0',_0x54ddc0)['trim'](),'color':{'value':_0x2d5cc9,'title':_0x54ddc0||_0xc66b2e}};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5a19c7{['afterInit'](){const _0x625f9e=this['editor'],_0x53e52c=_0x625f9e['plugins']['get']('TrackChangesEditing'),_0x5e0c67=_0x625f9e['commands']['get']('copyFormat'),_0x505b56=_0x625f9e['commands']['get']('pasteFormat');_0x5e0c67&&_0x505b56&&(_0x53e52c['enableDefaultAttributesIntegration']('pasteFormat'),_0x53e52c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3338e5=this['editor'],_0x333d07=_0x3338e5['locale'];_0x3338e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15eb7d=>{if('formatBlock'!=_0x15eb7d['type']&&'formatInline'!=_0x15eb7d['type'])return;const {data:_0x233d2c}=_0x15eb7d;if(_0x233d2c&&'pasteFormat'===_0x233d2c['commandName']){const _0x5afeee=[],_0x27822c=_0x233d2c['commandParams'][0x0];for(const [_0x855e2,_0x12e52b]of Object['entries'](_0x27822c))_0x5afeee['push'](so(_0x3338e5,_0x855e2,_0x12e52b));return _0x5afeee['length']?{'type':'format','content':o(_0x333d07,'*Set\x20format\x20to:*\x20%0',_0x5afeee['join'](',\x20'))}:{'type':'format','content':o(_0x333d07,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3004d0,_0x4bf5a0,_0x47bdb3){const _0x41e598=_0x3004d0['locale']['t'],_0x4b3cd3=_0x4bf5a0['split'](/(?=[A-Z])/)['join']('\x20'),_0x4dbc95=_0x41e598(_0x4b3cd3['charAt'](0x0)['toUpperCase']()+_0x4b3cd3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47bdb3)return _0x4dbc95;if('fontColor'===_0x4bf5a0||'fontBackgroundColor'===_0x4bf5a0){const _0x49b4f4=_0x435004(_0x3004d0['config']['get']('fontColor.colors'))['find'](_0x1a9c32=>_0x1a9c32['model']==_0x47bdb3);return _0x4dbc95+'\x20('+(_0x49b4f4?_0x41e598(_0x49b4f4['label'])['toLowerCase']():_0x47bdb3)+')';}if('fontSize'===_0x4bf5a0&&isNaN(parseFloat(_0x47bdb3))){const _0x369831=_0x3004d0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3004d0['config']['get']('fontSize.options'))['find'](_0xbe2848=>_0xbe2848['model']==_0x47bdb3);return _0x4dbc95+'\x20('+(_0x369831?_0x41e598(_0x369831['title'])['toLowerCase']():_0x47bdb3)+')';}return _0x4dbc95+'\x20('+_0x47bdb3+')';}class tt extends _0x5a19c7{['_headingOptions'];['afterInit'](){const _0x11ba34=this['editor'];if(!_0x11ba34['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11ba34['config']['get']('heading.options');const _0x3b05cd=_0x11ba34['locale'],_0x543f1b=_0x11ba34['plugins']['get']('TrackChangesEditing');_0x543f1b['enableDefaultAttributesIntegration']('heading');for(const _0x538f9c of this['_headingOptions'])'paragraph'!=_0x538f9c['model']&&_0x543f1b['descriptionFactory']['registerElementLabel'](_0x538f9c['model'],_0x498dd6=>{const _0x113c72=this['_getHeadingLevel'](_0x538f9c['model']);return null!==_0x113c72?_0xfafae0(_0x498dd6,_0x113c72):_0xa07dd1(_0x498dd6,_0x538f9c['title']);});function _0xfafae0(_0x324880,_0x2475ad){return o(_0x3b05cd,'ELEMENT_HEADING',[_0x324880,_0x2475ad]);}function _0xa07dd1(_0xd8c0b,_0x2b2e3a){return o(_0x3b05cd,'ELEMENT_HEADING_CUSTOM',[_0xd8c0b,_0x2b2e3a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317b3a=this['editor'],_0x24d289=_0x317b3a['locale'];function _0x554ef3(_0x3ea785,_0x18fffe){return o(_0x24d289,'ELEMENT_HEADING_CUSTOM',[_0x3ea785,_0x18fffe]);}_0x317b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x201654=>{if('formatBlock'!=_0x201654['type'])return;const {data:_0x2419e3}=_0x201654;if(_0x2419e3&&'heading'==_0x2419e3['commandName']){const _0x555dc8=_0x2419e3['commandParams'][0x0]['value'],_0x15a0c3=this['_getHeadingLevel'](_0x555dc8);if(null!==_0x15a0c3)return{'type':'format','content':o(_0x24d289,'*Change\x20to:*\x20%0',(_0x2d6f66=0x1,_0xe7a794=_0x15a0c3,o(_0x24d289,'ELEMENT_HEADING',[_0x2d6f66,_0xe7a794])))};const _0x48685a=this['_headingOptions']['find'](_0xde4863=>_0xde4863['model']===_0x555dc8)['title'];return{'type':'format','content':o(_0x24d289,'*Change\x20to:*\x20%0',_0x554ef3(0x1,_0x48685a))};}var _0x2d6f66,_0xe7a794;});}['_getHeadingLevel'](_0x241df6){const _0x333a45=_0x241df6['match'](/^heading(\d+)/);if(_0x333a45)return _0x333a45[0x1];const _0x3e944e=this['_headingOptions']?.['find'](_0x23ff0d=>_0x23ff0d['model']==_0x241df6);if(_0x3e944e&&_0x3e944e['view']){const _0x417435=_0x3e944e['view'],_0xbe57a2=(_0x417435['name']??_0x417435)['match'](/^h(\d+)/);if(_0xbe57a2)return _0xbe57a2[0x1];}return null;}}class et extends _0x5a19c7{['afterInit'](){const _0x480f42=this['editor'];if(!_0x480f42['plugins']['has']('HighlightEditing'))return;const _0x5f5485=_0x480f42['plugins']['get']('TrackChangesEditing'),_0x579eee=_0x480f42['locale'];_0x5f5485['enableDefaultAttributesIntegration']('highlight'),_0x5f5485['registerInlineAttribute']('highlight'),_0x5f5485['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x579eee,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380272=this['editor'],_0x53964a=_0x380272['locale'];_0x380272['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b68f9=>{if('formatInline'!=_0x4b68f9['type'])return;const {data:_0x116247}=_0x4b68f9;if(_0x116247&&'highlight'==_0x116247['commandName']){const _0x3af719=_0x53964a['t'],_0x22ac28=_0x116247['commandParams'][0x0]['value'];if(_0x22ac28){const _0x141cfd=_0x380272['config']['get']('highlight.options')['find'](_0x28bb42=>_0x28bb42['model']==_0x22ac28),_0x41e3f7=_0x3af719(_0x141cfd['title'])['toLowerCase']();return{'type':'format','content':o(_0x53964a,'*Set\x20highlight:*\x20%0',_0x41e3f7),'color':{'value':_0x141cfd['color'],'title':_0x141cfd['title']}};}return{'type':'format','content':o(_0x53964a,'*Remove\x20highlight*',o(_0x53964a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5a19c7{['afterInit'](){const _0x40e4ef=this['editor'];if(!_0x40e4ef['plugins']['has']('HorizontalLineEditing'))return;_0x40e4ef['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x231f08=_0x40e4ef['plugins']['get']('TrackChangesEditing'),_0x4c0425=_0x40e4ef['locale'];_0x231f08['descriptionFactory']['registerElementLabel']('horizontalLine',_0x383ba4=>o(_0x4c0425,'ELEMENT_HORIZONTAL_LINE',_0x383ba4)),_0x40e4ef['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x36fe38,{writer:_0x54e776,options:_0x3f15b8})=>{if(!_0x3f15b8['showSuggestionHighlights'])return null;const _0x420d96=_0x54e776['createContainerElement']('div'),_0x9f405e=_0x54e776['createEmptyElement']('hr');return _0x54e776['addClass']('ck-horizontal-line',_0x420d96),_0x54e776['insert'](_0x54e776['createPositionAt'](_0x420d96,0x0),_0x9f405e),_0x420d96;},'converterPriority':'high'});}}class st extends _0x5a19c7{['afterInit'](){const _0x104476=this['editor'];if(!_0x104476['plugins']['has']('HtmlEmbed'))return;const _0x1c4d23=_0x104476['plugins']['get']('TrackChangesEditing'),_0x34b382=_0x104476['locale'];_0x1c4d23['descriptionFactory']['registerElementLabel']('rawHtml',_0xd709c8=>o(_0x34b382,'ELEMENT_HTML_EMBED',_0xd709c8)),_0x1c4d23['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c4d23['registerBlockAttribute']('value'),_0x1c4d23['descriptionFactory']['registerDescriptionCallback'](_0x3a182c=>{if('attribute'!=_0x3a182c['type'])return;const {data:_0xca0b94}=_0x3a182c;if(_0xca0b94&&'value'==_0xca0b94['key']&&_0x3a182c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5502ab=o(_0x34b382,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34b382,'*Change\x20%0\x20content*',_0x5502ab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a49e=this['editor'],_0x24c175=_0x39a49e['locale'];_0x39a49e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1144b1=>{if('formatBlock'!=_0x1144b1['type'])return;const {data:_0x4b6546}=_0x1144b1;if(_0x4b6546&&'htmlEmbed'==_0x4b6546['commandName']){const _0x296fac=o(_0x24c175,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x24c175,'*Change\x20%0\x20content*',_0x296fac)};}});}}class nt extends _0x5a19c7{['afterInit'](){const _0x378b32=this['editor'];if(!_0x378b32['plugins']['has']('ImageEditing'))return;const _0x20fcf0=_0x378b32['plugins']['get']('TrackChangesEditing'),_0x113ff0=_0x378b32['plugins']['get']('ImageUtils'),_0x3f8687=_0x378b32['locale'];_0x20fcf0['enableCommand']('insertImage'),_0x20fcf0['descriptionFactory']['registerElementLabel']('imageBlock',_0x5bb456=>o(_0x3f8687,'ELEMENT_IMAGE',_0x5bb456)),_0x20fcf0['descriptionFactory']['registerElementLabel']('imageInline',_0xab2508=>o(_0x3f8687,'ELEMENT_INLINE_IMAGE',_0xab2508)),_0x20fcf0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3f8687,'ELEMENT_CAPTION')),_0x378b32['plugins']['has']('ImageUploadEditing')&&_0x20fcf0['enableCommand']('uploadImage'),_0x378b32['plugins']['has']('ImageBlockEditing')&&_0x378b32['plugins']['has']('ImageInlineEditing')&&(_0x20fcf0['enableCommand']('imageTypeInline',(_0x4d7620,_0x2654c6)=>{const _0x37be19=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']);_0x378b32['model']['change'](()=>{_0x20fcf0['markBlockFormat'](_0x37be19,{'commandName':'imageTypeInline','commandParams':[_0x2654c6]},[],'convertBlockImageToInline');});}),_0x20fcf0['enableCommand']('imageTypeBlock',(_0x9244d0,_0xd10ced)=>{_0x378b32['model']['change'](_0x3c046d=>{let _0x18f378=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x43e19f=_0x3c046d['createRangeOn'](_0x18f378);const _0x2a9a27=_0x3d9d30['fromPosition'](_0x43e19f['start'],'toPrevious'),_0x1cade9=_0x3d9d30['fromPosition'](_0x43e19f['end'],'toNext');_0x20fcf0['forceDefaultExecution'](()=>_0x9244d0(_0xd10ced)),_0x18f378=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x43e19f=_0x3c046d['createRangeOn'](_0x18f378);const _0x4882ba=_0x3c046d['createRange'](_0x2a9a27,_0x1cade9);_0x2a9a27['detach'](),_0x1cade9['detach'](),_0x20fcf0['markBlockFormat'](_0x18f378,{'commandName':'imageTypeInline','commandParams':[_0xd10ced]},[],'convertInlineImageToBlock'),_0x4882ba['start']['isBefore'](_0x43e19f['start'])&&_0x20fcf0['markInsertion'](_0x3c046d['createRange'](_0x4882ba['start'],_0x43e19f['start']),'convertInlineImageToBlock'),_0x43e19f['end']['isBefore'](_0x4882ba['end'])&&_0x20fcf0['markInsertion'](_0x3c046d['createRange'](_0x43e19f['end'],_0x4882ba['end']),'convertInlineImageToBlock');});}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20fcf0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c2035])=>{const _0x362011=_0x20fcf0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x73bf20=_0x5c2035['start'],_0x11b7c1=_0x5c2035['end'];const _0x3951fa=_0x378b32['model']['schema']['getNearestSelectionRange'](_0x73bf20,'backward'),_0xeb1f09=_0x378b32['model']['schema']['getNearestSelectionRange'](_0x11b7c1,'forward');_0x3951fa['isCollapsed']&&(_0x73bf20=_0x3951fa['start']),_0xeb1f09['isCollapsed']&&(_0x11b7c1=_0xeb1f09['end']),_0x362011([_0x378b32['model']['createRange'](_0x73bf20,_0x11b7c1)]);}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x72bf14),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x72bf14)),_0x378b32['plugins']['has']('ImageCaptionEditing')&&(_0x20fcf0['enableCommand']('toggleImageCaption',(_0x34ed6f,_0x1449e1)=>{const _0x386368=_0x378b32['plugins']['get']('ImageCaptionUtils');let _0x3d3438=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x4fbcdb=_0x386368['getCaptionFromImageModelElement'](_0x3d3438);_0x378b32['model']['change'](()=>{if(_0x4fbcdb)return void _0x20fcf0['markDeletion'](_0x378b32['model']['createRangeOn'](_0x4fbcdb));const _0x4c84b7=_0x113ff0['isBlockImage'](_0x3d3438);_0x34ed6f(_0x1449e1),_0x3d3438=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x4fbcdb=_0x386368['getCaptionFromImageModelElement'](_0x3d3438),_0x20fcf0['markInsertion'](_0x378b32['model']['createRangeOn'](_0x4fbcdb),_0x4c84b7?null:'imageCaption');});}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x72bf14));const _0x1a017e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4572f4(_0xdfd915,_0x5ba452){const _0x199030=_0x1a017e['findIndex'](({type:_0x303fb5,subType:_0x3d7fff})=>_0xdfd915['type']==_0x303fb5&&_0xdfd915['subType']==_0x3d7fff),_0x12217f=_0x1a017e['findIndex'](({type:_0x273792,subType:_0x43565a})=>_0x5ba452['type']==_0x273792&&_0x5ba452['subType']==_0x43565a);if(_0x199030<0x0||_0x12217f<0x0)return!0x1;const _0x1f8b67=_0xdfd915['getFirstRange'](),_0x44c67a=_0x5ba452['getFirstRange']();if((0x0==_0x199030||0x1==_0x199030)&&0x2==_0x12217f&&_0x1f8b67['isIntersecting'](_0x44c67a))return!0x0;if(0x2==_0x199030&&0x3==_0x12217f){const _0x19cff3=_0x20fcf0['_findSuggestions'](_0x1f8b67,'insertion')['filter'](({suggestion:_0x3a1fa3,meta:_0x5bc06e})=>_0x5bc06e['isOwn']&&'convertInlineImageToBlock'==_0x3a1fa3['subType']);if(_0x19cff3['length']>0x1&&_0x44c67a['end']['isEqual'](_0x1f8b67['start']))return!0x0;if(0x1==_0x19cff3['length']&&(_0x1f8b67['start']['isEqual'](_0x44c67a['end'])||_0x1f8b67['end']['isEqual'](_0x44c67a['start'])))return!0x0;}if(0x3==_0x199030&&0x3==_0x12217f&&_0x1f8b67['start']['isBefore'](_0x44c67a['start'])){const _0x590b04=_0x1f8b67['end']['nodeAfter'],_0x42ee16=_0x44c67a['start']['nodeBefore'];return _0x113ff0['isBlockImage'](_0x590b04)&&_0x590b04===_0x42ee16;}return!0x1;}function _0x72bf14(_0x201bad,_0x586d8d){return _0x4572f4(_0x201bad,_0x586d8d)?[_0x201bad,_0x586d8d]:_0x4572f4(_0x586d8d,_0x201bad)?[_0x586d8d,_0x201bad]:null;}_0x378b32['plugins']['has']('ImageResize')&&(_0x20fcf0['enableDefaultAttributesIntegration']('resizeImage'),_0x20fcf0['registerBlockAttribute']('resizedWidth'),_0x20fcf0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3f8687,'FORMAT_IMAGE_SIZE'))),_0x378b32['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20fcf0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20fcf0['registerBlockAttribute']('alt')),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x5c2eb2=>{if(!!_0x1a017e['find'](({type:_0x121437,subType:_0x28cf0a})=>_0x5c2eb2['type']==_0x121437&&_0x5c2eb2['subType']==_0x28cf0a))return _0x5c2eb2['previous']?{}:void 0x0;}),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x4499e8=>{if('insertion'==_0x4499e8['type']||'deletion'==_0x4499e8['type']){const _0x127498=_0x4499e8['getContainedElement']();if(_0x127498&&_0x127498['is']('element','caption'))return{'type':'insertion'==_0x4499e8['type']?'addObject':'removeObject','element':_0x127498,'quantity':0x1};}}),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x29c762=>'formatBlock'==_0x29c762['type']&&'convertInlineImageToBlock'==_0x29c762['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29c762['type']&&'convertBlockImageToInline'==_0x29c762['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x5ed698=>{if('attribute'!=_0x5ed698['type'])return;const {data:_0x3f5c4b}=_0x5ed698;if(!_0x3f5c4b||'alt'!=_0x3f5c4b['key'])return;const _0x418a4c=_0x3f5c4b['newValue'];return _0x418a4c?{'type':'format','content':o(_0x3f8687,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x418a4c+'\x22')}:{'type':'format','content':o(_0x3f8687,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x123aa5=this['editor'],_0x1a2fe2=_0x123aa5['locale'];_0x123aa5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168f23=>{if('formatBlock'!=_0x168f23['type']&&'formatInline'!=_0x168f23['type'])return;const {data:_0x1239ba}=_0x168f23;if(_0x1239ba){if('imageTextAlternative'==_0x1239ba['commandName']){const _0x544c70=_0x1239ba['commandParams'][0x0]['newValue'];return _0x544c70?{'type':'format','content':o(_0x1a2fe2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x544c70+'\x22')}:{'type':'format','content':o(_0x1a2fe2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1239ba['commandName']){const _0x23c704=_0x1239ba['commandParams'][0x0]['width'];return _0x23c704?{'type':'format','content':o(_0x1a2fe2,'*Set\x20image\x20width:*\x20%0',_0x23c704)}:{'type':'format','content':o(_0x1a2fe2,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x53f0d4=this['editor']['locale'],_0x4c3767=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c3767['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c3767['registerBlockAttribute']('src'),_0x4c3767['descriptionFactory']['registerDescriptionCallback'](_0x26402d=>{if('attribute'!=_0x26402d['type'])return;const {data:_0x364552}=_0x26402d;return _0x364552&&'src'==_0x364552['key']?_0x364552['newValue']&&_0x364552['oldValue']?{'type':'format','content':o(_0x53f0d4,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe2aa1c=this['editor']['plugins']['get']('TrackChangesEditing');_0xe2aa1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xe2aa1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe2aa1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xe2aa1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e789=this['editor'],_0x5b9132=_0x25e789['locale'];_0x25e789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14f158=>{if('formatBlock'!=_0x14f158['type']&&'formatInline'!=_0x14f158['type'])return;const {data:_0x395d76}=_0x14f158;if(!_0x395d76||'replaceImageSource'!=_0x395d76['commandName'])return;return{'type':'format','content':o(_0x5b9132,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5a19c7{['afterInit'](){const _0x317e62=this['editor'];if(!_0x317e62['plugins']['has']('ImageStyleEditing'))return;const _0xc343b9=_0x317e62['plugins']['get']('TrackChangesEditing'),_0x91b623=_0x317e62['plugins']['get']('ImageUtils'),_0x463a49={};_0xc343b9['enableCommand']('imageStyle',(_0x204eb9,_0x6a9b38)=>{const _0x1d8f44=_0x317e62['plugins']['get']('Users')['me'],_0x5f3218=_0x317e62['commands']['get']('imageStyle');let _0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),_0xb88e36=_0x317e62['model']['createRangeOn'](_0x2db61a),_0x213eb0=_0x5f3218['value'];if(_0x213eb0==_0x6a9b38['value'])return;const _0x1cf9df={'commandName':'imageStyle','commandParams':[_0x6a9b38],'formatGroupId':_0x429a07()};_0x317e62['model']['change'](()=>{if(_0xc343b9['getSuggestions']()['filter'](_0x34e971=>_0x34e971['isInContent']&&_0x1d8f44==_0x34e971['author']&&('formatBlock'==_0x34e971['type']||'formatInline'==_0x34e971['type'])&&('imageStylePreApply'==_0x34e971['subType']||'imageStylePostApply'==_0x34e971['subType'])&&_0x34e971['getFirstRange']()['isEqual'](_0xb88e36))['forEach'](_0x52fd47=>_0xc343b9['discardSuggestion'](_0x52fd47['head'])),_0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),_0xb88e36=_0x317e62['model']['createRangeOn'](_0x2db61a),_0x5f3218['refresh'](),_0x317e62['commands']['get']('imageTypeInline')['refresh'](),_0x317e62['commands']['get']('imageTypeBlock')['refresh'](),_0x213eb0=_0x5f3218['value'],_0x213eb0!=_0x6a9b38['value'])return _0x91b623['isInlineImage'](_0x2db61a)&&_0x5f3218['shouldConvertImageType'](_0x6a9b38['value'],_0x2db61a)?(_0x204eb9({..._0x6a9b38,'setImageSizes':!0x1}),_0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),void _0xc343b9['markBlockFormat'](_0x2db61a,{..._0x1cf9df,'commandReversedParams':[{'value':_0x213eb0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x91b623['isBlockImage'](_0x2db61a)?_0xc343b9['markBlockFormat'](_0x2db61a,_0x1cf9df,[],'imageStylePostApply'):_0xc343b9['markInlineFormat'](_0xb88e36,_0x1cf9df,'imageStylePostApply'));});});for(const _0xc2b5eb of _0x317e62['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x463a49[_0xc2b5eb['name']]=_0xc2b5eb['title']['toLowerCase']();_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x66f366])=>{_0x91b623['setImageNaturalSizeAttributes'](_0x66f366['getContainedElement']());}),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34ed52,_0x2f7d14)=>{_0xc343b9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34ed52,{'commandName':_0x2f7d14['commandName'],'commandParams':_0x2f7d14['commandReversedParams']});}),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x428fb0,_0x53d24c){if(_0x92df26(_0x428fb0,_0x53d24c))return[_0x428fb0,_0x53d24c];if(_0x92df26(_0x53d24c,_0x428fb0))return[_0x53d24c,_0x428fb0];return null;});const _0x5cfd00=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x92df26(_0x1f3758,_0x45fad5){const _0x2eed51=_0x5cfd00['findIndex'](({type:_0x3c65eb,subType:_0x2164e2})=>_0x1f3758['type']==_0x3c65eb&&_0x1f3758['subType']==_0x2164e2),_0x5a978e=_0x5cfd00['findIndex'](({type:_0x22e67e,subType:_0x246000})=>_0x45fad5['type']==_0x22e67e&&_0x45fad5['subType']==_0x246000);if(_0x2eed51<0x0||_0x5a978e<0x0)return!0x1;const _0x150aab=_0x1f3758['getFirstRange'](),_0xdecb59=_0x45fad5['getFirstRange']();if((0x0==_0x2eed51||0x1==_0x2eed51)&&0x2==_0x5a978e&&_0x150aab['isIntersecting'](_0xdecb59))return!0x0;if(0x2==_0x2eed51&&0x3==_0x5a978e){const _0x248fa1=_0xc343b9['_findSuggestions'](_0x150aab,'insertion')['filter'](({suggestion:_0xba9da9,meta:_0x3f8270})=>_0x3f8270['isOwn']&&'convertInlineImageToBlock'==_0xba9da9['subType']);if(_0x248fa1['length']>0x1&&_0xdecb59['end']['isEqual'](_0x150aab['start']))return!0x0;if(0x1==_0x248fa1['length']&&(_0x150aab['start']['isEqual'](_0xdecb59['end'])||_0x150aab['end']['isEqual'](_0xdecb59['start'])))return!0x0;}if(0x3==_0x2eed51&&0x3==_0x5a978e&&_0x150aab['start']['isBefore'](_0xdecb59['start'])){const _0x1d2685=_0x150aab['end']['nodeAfter'],_0x29ed2d=_0xdecb59['start']['nodeBefore'];return _0x91b623['isBlockImage'](_0x1d2685)&&_0x1d2685===_0x29ed2d;}return!0x1;}_0x317e62['model']['document']['registerPostFixer'](()=>{let _0x134fe5=!0x1;const _0x533a92=Array['from'](_0x317e62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13e792,data:_0x54886f}of _0x533a92){const {group:_0x8a5e86,type:_0x314718,subType:_0xc6da0d,id:_0x499cb2}=_0xc343b9['_splitMarkerName'](_0x13e792);if('suggestion'==_0x8a5e86&&_0xc343b9['hasSuggestion'](_0x499cb2)){if('formatBlock'==_0x314718&&('imageStylePreApply'==_0xc6da0d||'imageStylePostApply'==_0xc6da0d)){const _0x4fc1e8=_0xc343b9['getSuggestion'](_0x499cb2);if(_0x54886f['newRange']){const _0x161240=_0x4fc1e8['getFirstRange']()['getContainedElement']();if(_0x91b623['isBlockImage'](_0x161240))continue;_0xc343b9['discardSuggestion'](_0x4fc1e8),_0x134fe5=!0x0;}}if('insertion'==_0x314718&&'imageCaption'==_0xc6da0d&&!_0x54886f['newRange']){const _0x3c215c=_0xc343b9['getSuggestion'](_0x499cb2);_0x3c215c['next']&&_0x3c215c['next']['isInContent']&&(_0xc343b9['discardSuggestion'](_0x3c215c['next']),_0x134fe5=!0x0);}}}return _0x134fe5;}),this['_registerLegacyDescription'](_0x463a49);}['_registerLegacyDescription'](_0x419639){const _0x220890=this['editor'],_0x368f79=_0x220890['locale'];_0x220890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd5f32e=>{if('formatBlock'!=_0xd5f32e['type']&&'formatInline'!=_0xd5f32e['type'])return;const {data:_0x4988bd}=_0xd5f32e;if(!_0x4988bd||'imageStyle'!=_0x4988bd['commandName'])return;const _0xe13f13=_0x4988bd['commandParams'][0x0]['value'];return _0x582634('side'===_0xe13f13?o(_0x368f79,'FORMAT_SIDE_IMAGE'):_0x419639[_0xe13f13]||_0xe13f13);function _0x582634(_0x195655){return{'type':'format','content':o(_0x368f79,'*Format:*\x20%0',_0x195655)};}});}}class at extends _0x5a19c7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4164d4){super(_0x4164d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e0e20=this['editor'],_0x45172a=_0x5e0e20['commands']['get']('importWord'),_0x2b7543=_0x5e0e20['commands']['get']('trackChanges');_0x45172a&&(_0x45172a['on']('execute',(_0xe549f,[,_0x2d27af])=>{this['_trackChangesValueDuringImport']=_0x2b7543['value'],_0x2d27af['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x45172a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x45172a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b7543['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e0e20['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3128d9,_0x3d4bf6){const {suggestions:_0x13f180}=_0x3d4bf6,_0xd7a143=this['editor']['commands']['get']('trackChanges'),_0x47e716=_0xd7a143['value'];this['_trackChangesValueDuringImport']!==_0x47e716&&(_0xd7a143['execute'](),this['_trackChangesExecuted']=!0x0),_0x13f180&&_0x13f180['forEach'](({id:_0x42463e,type:_0x5e15e8,author:_0x57d400,created_at:_0x38da29})=>{const _0x23b001={'id':_0x42463e,'type':_0x5e15e8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57d400,'createdAt':_0x38da29?new Date(_0x38da29):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23b001);});}}class ct extends _0x5a19c7{['afterInit'](){const _0x4feb17=this['editor'],_0x5cc2f1=_0x4feb17['plugins']['get']('TrackChangesEditing');if(_0x4feb17['plugins']['has']('IndentEditing')&&(_0x5cc2f1['enableCommand']('indent'),_0x5cc2f1['enableCommand']('outdent')),_0x4feb17['plugins']['has']('IndentBlock')){for(const _0xce3e6e of['indentBlock','outdentBlock'])_0x5cc2f1['enableDefaultAttributesIntegration'](_0xce3e6e);}const _0x374364=_0x4feb17['locale'];_0x5cc2f1['registerBlockAttribute']('blockIndent'),_0x5cc2f1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x374364,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c1231=this['editor'],_0x425a2a=_0x1c1231['locale'],_0x3ce0ce=_0x1c1231['plugins']['get']('TrackChangesEditing');_0x3ce0ce['descriptionFactory']['registerDescriptionCallback'](_0x189bde=>{if('formatBlock'!=_0x189bde['type'])return;const {data:_0x34096e}=_0x189bde;if(!_0x34096e)return;if('indentBlock'!=_0x34096e['commandName']&&'outdentBlock'!=_0x34096e['commandName'])return;const _0x13a352=_0x189bde['getItems']()[0x0],_0x32447d=_0x3ce0ce['descriptionFactory']['getItemLabel'](_0x13a352);return'indentBlock'==_0x34096e['commandName']?{'type':'format','content':o(_0x425a2a,'*Indent:*\x20%0',_0x32447d)}:'outdentBlock'==_0x34096e['commandName']?{'type':'format','content':o(_0x425a2a,'*Outdent:*\x20%0',_0x32447d)}:void 0x0;});}}class ut extends _0x5a19c7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5a19c7{['afterInit'](){const _0x46feeb=this['editor'];if(!_0x46feeb['plugins']['has']('LinkEditing'))return;const _0x3b79c1=_0x46feeb['plugins']['get']('TrackChangesEditing'),_0x5bfc46=_0x46feeb['commands']['get']('link');_0x3b79c1['enableDefaultAttributesIntegration']('link'),_0x3b79c1['enableDefaultAttributesIntegration']('unlink'),_0x3b79c1['registerInlineAttribute']('linkHref');for(const _0x1fd492 of _0x5bfc46['manualDecorators'])_0x3b79c1['registerInlineAttribute'](_0x1fd492['id']),_0x3b79c1['descriptionFactory']['registerAttributeLabel'](_0x1fd492['id'],'link\x20('+_0x1fd492['label']['toLowerCase']()+')');_0x3b79c1['descriptionFactory']['registerDescriptionCallback'](_0x5a0c64=>{if('attribute'!=_0x5a0c64['type'])return;const {data:_0x4a69e8}=_0x5a0c64;if(!_0x4a69e8||'linkHref'!=_0x4a69e8['key'])return;const _0x5b9284=_0x4a69e8['newValue'],_0x595016=_0x46feeb['locale'];return{'type':'format','content':null==_0x5b9284?o(_0x595016,'*Remove\x20link*'):o(_0x595016,'*Set\x20link:*\x20%0','\x22'+_0x5b9284+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c366b=this['editor'],_0x1ae464=_0x4c366b['locale'];_0x4c366b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3edbd6=>{if('formatInline'!=_0x3edbd6['type'])return;const {data:_0xd8a2ae}=_0x3edbd6;if(_0xd8a2ae){if('link'==_0xd8a2ae['commandName']){const _0x4e22ce=_0xd8a2ae['commandParams'][0x0];return{'type':'format','content':o(_0x1ae464,'*Set\x20link:*\x20%0','\x22'+_0x4e22ce+'\x22')};}return'unlink'==_0xd8a2ae['commandName']?{'type':'format','content':o(_0x1ae464,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5a19c7{['afterInit'](){const _0x372770=this['editor'],_0x3c4cac=_0x372770['locale'];if(!_0x372770['plugins']['has']('LegacyListEditing'))return;const _0x58ed09=_0x372770['plugins']['get']('TrackChangesEditing'),_0x3522ca=_0x372770['plugins']['has']('LegacyTodoListEditing');function _0x41037d(_0x3122dc){return()=>{const _0x397ddd=_0x372770['model']['document']['selection'],_0x2a70a4=_0x372770['commands']['get'](_0x3122dc);if(_0x2a70a4['value'])return void _0x372770['execute']('paragraph',{});const _0x3831bb=_0x3122dc['slice'](0x0,-0x4),_0x4419d6=function(_0x13203b,_0x1427d2,_0x5a00f9){let _0x473a71=Array['from'](_0x13203b)['filter'](_0x25f41d=>function(_0x3c7e33,_0x4b70d0){return _0x4b70d0['checkChild'](_0x3c7e33['parent'],'listItem')&&!_0x4b70d0['isObject'](_0x3c7e33);}(_0x25f41d,_0x5a00f9));_0x473a71=_0x473a71['filter'](_0x350b77=>!_0x350b77['is']('element','listItem')||_0x350b77['getAttribute']('listType')!=_0x1427d2);const _0x5b9ce8=new Set();for(const _0xb05997 of _0x473a71)_0xb05997['is']('element','listItem')?_0x5b9ce8['add'](fe(_0xb05997)):_0x5b9ce8['add'](_0xb05997);return Array['from'](_0x5b9ce8);}(_0x397ddd['getSelectedBlocks'](),_0x3831bb,_0x372770['model']['schema']);_0x372770['model']['change'](()=>{for(const _0x31cb30 of _0x4419d6)_0x58ed09['markBlockFormat'](_0x31cb30,{'commandName':_0x3122dc,'commandParams':[{'forceValue':!_0x2a70a4['value']}],'formatGroupId':'blockName'},ue(_0x31cb30));});};}function _0x2d4042(_0x13f91e){return()=>{const _0x24c9d4=function(_0x3105d4){let _0x24275d=Array['from'](_0x3105d4);const _0x4399f7=_0x24275d['findIndex'](_0x1af0f9=>'listItem'!=_0x1af0f9['name']);return _0x4399f7>-0x1&&(_0x24275d=_0x24275d['slice'](0x0,_0x4399f7)),_0x24275d;}(_0x372770['model']['document']['selection']['getSelectedBlocks']()),_0x11063e=_0x372770['model']['createRange'](_0x372770['model']['createPositionAt'](_0x24c9d4[0x0],'before'),_0x372770['model']['createPositionAt'](_0x24c9d4[_0x24c9d4['length']-0x1],'end'));_0x372770['model']['change'](()=>{_0x58ed09['markBlockFormat'](_0x11063e,{'commandName':_0x13f91e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38a18c){const _0x48d186=new Set();for(const _0x595871 of _0x38a18c){let _0x5487d7=_0x595871['nextSibling'];for(;_0x5487d7&&_0x5487d7['getAttribute']('listIndent')>_0x595871['getAttribute']('listIndent');)_0x48d186['add'](_0x5487d7),_0x5487d7=_0x5487d7['nextSibling'];}return Array['from'](_0x48d186);}(_0x24c9d4));});};}_0x58ed09['enableCommand']('numberedList',_0x41037d('numberedList')),_0x58ed09['enableCommand']('bulletedList',_0x41037d('bulletedList')),_0x3522ca&&_0x58ed09['enableCommand']('todoList',_0x41037d('todoList')),_0x58ed09['enableCommand']('indentList',_0x2d4042('indentList')),_0x58ed09['enableCommand']('outdentList',_0x2d4042('outdentList')),_0x3522ca&&_0x58ed09['enableCommand']('checkTodoList',()=>{const _0x37e35b=_0x372770['commands']['get']('checkTodoList'),_0x211b0b=Array['from'](_0x37e35b['_selectedElements']);_0x211b0b['filter'](_0x414a58=>_0x414a58['getAttribute']('todoListChecked')!=_0x37e35b['value']),_0x372770['model']['change'](()=>{for(const _0x1963fe of _0x211b0b)_0x58ed09['markBlockFormat'](_0x1963fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37e35b['value']}]});});}),_0x58ed09['descriptionFactory']['registerElementLabel']('listItem',_0x55cee9=>o(_0x3c4cac,'ELEMENT_LIST_ITEM',_0x55cee9)),_0x58ed09['descriptionFactory']['registerDescriptionCallback'](_0x1522c7=>{if('formatBlock'!=_0x1522c7['type']&&'formatInline'!=_0x1522c7['type'])return;const {data:_0x25db75}=_0x1522c7;if(_0x25db75){if('numberedList'==_0x25db75['commandName']||'bulletedList'==_0x25db75['commandName']||'todoList'==_0x25db75['commandName'])switch(_0x25db75['commandName']['replace']('List','')){case'bulleted':return _0x58c13(o(_0x3c4cac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58c13(o(_0x3c4cac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58c13(o(_0x3c4cac,'ELEMENT_TODO_LIST'));}if('indentList'==_0x25db75['commandName'])return{'type':'format','content':o(_0x3c4cac,'*Indent:*\x20%0',o(_0x3c4cac,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x25db75['commandName'])return{'type':'format','content':o(_0x3c4cac,'*Outdent:*\x20%0',o(_0x3c4cac,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x25db75['commandName'])return _0x25db75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4cac,'*Check\x20item*')}:{'type':'format','content':o(_0x3c4cac,'*Uncheck\x20item*')};}function _0x58c13(_0x23bedb){return{'type':'format','content':o(_0x3c4cac,'*Change\x20to:*\x20%0',_0x23bedb)};}});}}function fe(_0x1ca765){const _0x4c7404=_0x1ca765['getAttribute']('listIndent');if(0x0==_0x4c7404)return _0x1ca765;let _0x5c04ef=_0x1ca765;for(;_0x1ca765['previousSibling']&&_0x1ca765['previousSibling']['is']('element','listItem');){const _0x4c20e3=_0x1ca765['previousSibling']['getAttribute']('listIndent');if(_0x4c20e3==_0x4c7404)_0x5c04ef=_0x1ca765['previousSibling'];else{if(_0x4c20e3<_0x4c7404)break;}_0x1ca765=_0x1ca765['previousSibling'];}return _0x5c04ef;}function ue(_0x59b088){const _0x35b4c3=[];if(_0x59b088['is']('element','listItem')&&_0x59b088['getAttribute']('listIndent')>0x0){let _0x9e38f7=_0x59b088['nextSibling'];for(;_0x9e38f7&&'listItem'==_0x9e38f7['name']&&_0x9e38f7['getAttribute']('listIndent')==_0x59b088['getAttribute']('listIndent');)_0x35b4c3['push'](_0x9e38f7),_0x9e38f7=_0x9e38f7['nextSibling'];}return _0x35b4c3;}class W extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c82d9=this['editor']['config']['get']('list.properties'),_0x26d827=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c82d9['styles']&&_0x26d827['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c82d9['reversed']&&_0x26d827['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c82d9['startIndex']&&_0x26d827['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26d827['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x69d593,_0x3a0d3a={}){const _0x42fb2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe9c4c3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42fb2b['markMultiRangeBlockFormat'](_0xe9c4c3,{'commandName':'listStyle','commandParams':[{'type':_0x3a0d3a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16b415,_0x19625f={}){const _0x44fc09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320ee9=this['_getSuggestionBlocks'](_0x23ee5f=>_0x23ee5f['is']('element','listItem')&&'numbered'===_0x23ee5f['getAttribute']('listType'));if(_0x320ee9['length']<0x1)return;const _0x294903=_0x320ee9['map'](_0x1c47e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c47e9,'before'),this['editor']['model']['createPositionAt'](_0x1c47e9,0x0)));this['editor']['model']['change'](()=>{_0x44fc09['markMultiRangeBlockFormat'](_0x294903,{'commandName':'listReversed','commandParams':[{'reversed':_0x19625f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x51c741,_0x9701a8={}){const _0x29b219=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51182b=this['_getSuggestionBlocks'](_0x3f2583=>_0x3f2583['is']('element','listItem')&&'numbered'===_0x3f2583['getAttribute']('listType'));if(_0x51182b['length']<0x1)return;const _0x5e136f=_0x51182b['map'](_0x488391=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x488391,'before'),this['editor']['model']['createPositionAt'](_0x488391,0x0)));this['editor']['model']['change'](()=>{_0x29b219['markMultiRangeBlockFormat'](_0x5e136f,{'commandName':'listStart','commandParams':[{'startIndex':_0x9701a8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x332e1a){if('formatBlock'!=_0x332e1a['type']&&'formatInline'!=_0x332e1a['type'])return;const _0x2e703d=this['editor']['locale'],{data:_0x10eb60}=_0x332e1a;if(!_0x10eb60)return;let _0xf06449,_0x26b745;switch(_0x10eb60['commandName']){case'listStyle':_0xf06449='*Change\x20to:*\x20%0',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449,o(_0x2e703d,this['_getTranslationKeyForListStyle'](_0x10eb60['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf06449=_0x10eb60['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449)};break;case'listStart':_0xf06449='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449,_0x10eb60['commandParams'][0x0]['startIndex'])};}return _0x26b745;}['_getSuggestionBlocksForListStyle'](){const _0xcdf578=this['editor']['plugins']['get']('LegacyListUtils');let _0x34960e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34960e[0x0]?.['is']('element','listItem')&&_0x34960e['unshift'](..._0xcdf578['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34960e[_0x34960e['length']-0x1]?.['is']('element','listItem')&&_0x34960e['push'](..._0xcdf578['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34960e=[...new Set(_0x34960e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34960e=_0x34960e['filter'](_0x4f3626=>_0x4f3626['is']('element','listItem'))),_0x34960e;}['_getSuggestionBlocks'](_0x18685f){const _0xa9ecf6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f0dc5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18685f)['map'](_0x5828a1=>{const _0x58327e=this['editor']['model']['createPositionAt'](_0x5828a1,0x0);return[..._0xa9ecf6['getSiblingNodes'](_0x58327e,'backward'),..._0xa9ecf6['getSiblingNodes'](_0x58327e,'forward')];})['flat']();return _0x3f0dc5=[...new Set(_0x3f0dc5)],_0x3f0dc5;}['_getTranslationKeyForListStyle'](_0x1bd95a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bd95a)||'default')['toUpperCase']()+'_LIST_'+_0x1bd95a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5a19c7{['afterInit'](){const _0xa47c22=this['editor'];if(!_0xa47c22['plugins']['has']('MediaEmbedEditing'))return;const _0xcc93b8=_0xa47c22['plugins']['get']('TrackChangesEditing'),_0x494f73=_0xa47c22['locale'];_0xcc93b8['enableCommand']('mediaEmbed'),_0xcc93b8['descriptionFactory']['registerElementLabel']('media',_0x10fa9a=>o(_0x494f73,'ELEMENT_MEDIA',_0x10fa9a)),_0xa47c22['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5dd2bb,{writer:_0x3553cf,options:_0x533839})=>{if(_0x533839['showSuggestionHighlights'])return _0x3553cf['createEmptyElement']('div');},'converterPriority':'high'}),_0xa47c22['data']['downcastDispatcher']['on']('attribute:url:media',(_0x217637,_0x365134,_0x32dcb3)=>{_0x32dcb3['options']['showSuggestionHighlights']&&_0x217637['stop']();},{'priority':'high'});}}class mt extends _0x5a19c7{['afterInit'](){const _0x21b070=this['editor'];_0x21b070['plugins']['has']('MentionEditing')&&_0x21b070['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5a19c7{['afterInit'](){const _0x5ec975=this['editor'];if(!_0x5ec975['plugins']['has']('MergeFieldsEditing'))return;_0x5ec975['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5ec975['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4c155f=_0x5ec975['plugins']['get']('TrackChangesEditing'),_0x26ceb0=_0x5ec975['locale'];_0x4c155f['descriptionFactory']['registerElementLabel']('mergeField',_0x4761ec=>o(_0x26ceb0,'ELEMENT_MERGE_FIELD',_0x4761ec)),_0x4c155f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12d09d=>o(_0x26ceb0,'ELEMENT_MERGE_FIELD',_0x12d09d)),_0x4c155f['descriptionFactory']['registerDescriptionCallback'](_0x2e5a5d=>{if('insertion'!=_0x2e5a5d['type']&&'deletion'!=_0x2e5a5d['type'])return;const _0x3a026e=_0x2e5a5d['getContainedElement']();if(null==_0x3a026e)return;if(!_0x3a026e['is']('element','mergeField')&&!_0x3a026e['is']('element','mergeFieldBlock'))return;const _0x365f53=_0x5ec975['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3a026e['getAttribute']('id'));return'insertion'==_0x2e5a5d['type']?{'type':'insertion','content':o(_0x26ceb0,'*Insert:*\x20%0','\x22'+_0x365f53+'\x22\x20'+o(_0x26ceb0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x26ceb0,'*Remove:*\x20%0','\x22'+_0x365f53+'\x22\x20'+o(_0x26ceb0,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5a19c7{['afterInit'](){const _0x5f19d0=this['editor'],_0x55c585=_0x5f19d0['plugins']['get']('TrackChangesEditing');_0x5f19d0['plugins']['has']('MultiLevelList')&&(_0x55c585['enableDefaultAttributesIntegration']('multiLevelList'),_0x55c585['registerBlockAttribute']('listMarkerStyle'),_0x55c585['descriptionFactory']['registerDescriptionCallback'](_0x196ff5=>this['handleDescriptions'](_0x196ff5)));}['handleDescriptions'](_0x291c71){const _0x53a18d=this['editor']['locale'],{data:_0x18e8c0}=_0x291c71,_0x454358={'type':'format','content':''};if(_0x18e8c0&&'listMarkerStyle'==_0x18e8c0['key']){if(!_0x18e8c0['oldValue'])return{'type':'format','content':o(_0x53a18d,'*Set\x20format:*\x20%0',o(_0x53a18d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18e8c0['newValue']+')'};if(!_0x18e8c0['newValue']){let _0x1bf33f=_0x291c71['head'];for(;_0x1bf33f;){if(_0x1bf33f['data']&&'listType'==_0x1bf33f['data']['key']&&_0x1bf33f['data']['newValue'])return _0x454358;_0x1bf33f=_0x1bf33f['next'];}return{'type':'format','content':o(_0x53a18d,'*Remove\x20format:*\x20%0',o(_0x53a18d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18e8c0['oldValue']+')'};}}}}class kt extends _0x5a19c7{['afterInit'](){const _0x1d3605=this['editor'];if(!_0x1d3605['plugins']['has']('PageBreakEditing'))return;_0x1d3605['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x417cf1=_0x1d3605['plugins']['get']('TrackChangesEditing'),_0xb75a14=_0x1d3605['locale'];_0x417cf1['descriptionFactory']['registerElementLabel']('pageBreak',_0x19d75f=>o(_0xb75a14,'ELEMENT_PAGE_BREAK',_0x19d75f));}}class bt extends _0x5a19c7{['afterInit'](){const _0x58fc9f=this['editor'];if(!_0x58fc9f['plugins']['has']('Paragraph'))return;const _0x433a48=_0x58fc9f['locale'],_0x5c9f71=_0x58fc9f['plugins']['get']('TrackChangesEditing');_0x5c9f71['descriptionFactory']['registerElementLabel']('paragraph',_0x4229ea=>o(_0x433a48,'ELEMENT_PARAGRAPH',_0x4229ea)),_0x5c9f71['enableDefaultAttributesIntegration']('paragraph'),_0x5c9f71['enableCommand']('insertParagraph'),_0x58fc9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58fc9f),{'priority':'highest'}),_0x58fc9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e01a4,_0x80b1e9,_0x20379b)=>{_0x20379b['options']['showSuggestionHighlights']&&nr(_0x58fc9f,{'showActiveMarker':!0x1})(_0x1e01a4,_0x80b1e9,_0x20379b);},{'priority':'highest'});const _0x342124=_0x5c9f71['descriptionFactory'];_0x342124['registerDescriptionCallback'](_0x132bb4=>{if('insertion'!==_0x132bb4['type'])return;const {start:_0x57c52c,end:_0xdf98c0}=_0x132bb4['getFirstRange']();if(!_0x57c52c['isTouching'](_0xdf98c0)||!_0x57c52c['nodeAfter'])return;const _0x475ea9=_0x58fc9f['model']['schema'],_0x566a55=_0x57c52c['nodeAfter'];return _0x475ea9['isBlock'](_0x566a55)&&!_0x475ea9['isLimit'](_0x566a55)&&_0x475ea9['checkChild'](_0x566a55,'$text')?{'type':'insertion','content':o(_0x433a48,'*Insert:*\x20%0',_0x342124['getItemLabel'](_0x566a55,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bbb29=this['editor'],_0x20a0c7=_0x4bbb29['locale'];_0x4bbb29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310936=>{if('formatBlock'!=_0x310936['type'])return;const {data:_0x302695}=_0x310936;return _0x302695&&'paragraph'==_0x302695['commandName']?{'type':'format','content':o(_0x20a0c7,'*Change\x20to:*\x20%0',o(_0x20a0c7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1649bf,{showActiveMarker:_0x23e086=!0x0}={}){return(_0x375b43,_0x54ca33,_0x1d4984)=>{const _0x9bb6ca=_0x1649bf['plugins']['get']('TrackChangesEditing'),_0x31b5b0=_0x54ca33['markerRange']['start'],_0x3edfa2=_0x54ca33['markerRange']['end'],_0x59ccb3=_0x1649bf['model']['schema'];if(!_0x31b5b0['isTouching'](_0x3edfa2)||!_0x31b5b0['nodeAfter'])return;const _0x2936af=_0x31b5b0['nodeAfter'];if(_0x59ccb3['isBlock'](_0x2936af)&&!_0x59ccb3['isLimit'](_0x2936af)&&_0x59ccb3['checkChild'](_0x2936af,'$text')){if(!_0x1d4984['consumable']['consume'](_0x54ca33['markerRange'],_0x375b43['name']))return;const {authorId:_0x35692f}=_0x9bb6ca['_splitMarkerName'](_0x54ca33['markerName']),_0x35f19a=_0x1d4984['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x35692f}),_0xb4e6cd=_0x1d4984['mapper']['toViewPosition'](_0x3edfa2);_0x23e086&&_0x9bb6ca['activeMarkers']['includes'](_0x54ca33['markerName'])&&_0x1d4984['writer']['addClass']('ck-suggestion-marker--active',_0x35f19a),_0x1d4984['writer']['insert'](_0xb4e6cd,_0x35f19a),_0x1d4984['mapper']['bindElementToMarker'](_0x35f19a,_0x54ca33['markerName']);}};}class wt extends _0x5a19c7{['afterInit'](){const _0x358b6b=this['editor'];if(!_0x358b6b['plugins']['has']('RemoveFormatEditing'))return;_0x358b6b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18c1cd=this['editor'];_0x18c1cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f03f=>{if('formatBlock'!=_0x44f03f['type']&&'formatInline'!=_0x44f03f['type'])return;const {data:_0x29aa43}=_0x44f03f;return _0x29aa43&&'removeFormat'==_0x29aa43['commandName']?{'type':'format','content':o(_0x18c1cd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5a19c7{['afterInit'](){const _0x2a569b=this['editor'];if(!_0x2a569b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8e7283=_0x2a569b['plugins']['get']('TrackChangesEditing');_0x8e7283['enableCommand']('goToPreviousRestrictedEditingException'),_0x8e7283['enableCommand']('goToNextRestrictedEditingException');const _0x28bc82=_0x2a569b['plugins']['get']('RestrictedEditingModeEditing');_0x28bc82['enableCommand']('trackChanges'),_0x28bc82['enableCommand']('acceptSuggestion'),_0x28bc82['enableCommand']('discardSuggestion'),_0x28bc82['enableCommand']('acceptAllSuggestions'),_0x28bc82['enableCommand']('discardAllSuggestions'),_0x28bc82['enableCommand']('acceptSelectedSuggestions'),_0x28bc82['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5a19c7{static get['requires'](){return[_0x8df071];}['init'](){const _0x5e1c6b=this['editor'],_0x3f3d3a=_0x5e1c6b['plugins']['get']('TrackChangesEditing');_0x3f3d3a['enableCommand']('shiftEnter'),_0x5e1c6b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5e1c6b),{'priority':'high'}),_0x5e1c6b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5e1c6b),{'priority':'high'}),_0x5e1c6b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cefd9,_0x357921,_0x371e34)=>{_0x371e34['options']['showSuggestionHighlights']&&ge(_0x5e1c6b,{'showActiveMarker':!0x1})(_0x5cefd9,_0x357921,_0x371e34);}),_0x3f3d3a['descriptionFactory']['registerElementLabel']('softBreak',_0x4eb234=>o(_0x5e1c6b['locale'],'ELEMENT_LINE_BREAK',_0x4eb234));}}function ge(_0x13e1db,{showActiveMarker:_0x5b2d77=!0x0}={}){return(_0x5d92ff,_0x945df8,_0x320777)=>{const _0x5b6956=_0x13e1db['plugins']['get']('TrackChangesEditing');if(!_0x320777['consumable']['test'](_0x945df8['markerRange'],_0x5d92ff['name']))return;const _0x1cfeb8=_0x13e1db['model'];for(const _0xbd8271 of _0x945df8['markerRange']['getItems']()){if(!_0xbd8271['is']('element','softBreak'))continue;const _0x4ee42a='deletion'==_0x945df8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5e7940}=_0x5b6956['_splitMarkerName'](_0x945df8['markerName']),_0xff0630=_0x320777['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ee42a,'data-author-id':_0x5e7940}),_0x268ba6=_0x320777['mapper']['toViewPosition'](_0x1cfeb8['createPositionBefore'](_0xbd8271));_0x5b2d77&&_0x5b6956['activeMarkers']['includes'](_0x945df8['markerName'])&&_0x320777['writer']['addClass']('ck-suggestion-marker--active',_0xff0630),_0x320777['writer']['insert'](_0x268ba6,_0xff0630),_0x320777['mapper']['bindElementToMarker'](_0xff0630,_0x945df8['markerName']);}};}class St extends _0x5a19c7{['afterInit'](){const _0x420581=this['editor'],_0xff48b8=_0x420581['model'],_0x17241e=_0x420581['locale'];if(!_0x420581['plugins']['has']('StandardEditingModeEditing'))return;const _0x23befb=_0x420581['plugins']['get']('TrackChangesEditing'),_0x316cd8='restrictedEditingException',_0x4da420=_0x420581['commands']['get'](_0x316cd8);_0x23befb['enableCommand'](_0x316cd8,(_0x191cc5,_0x3b7cdb={})=>{const _0x460e37=_0xff48b8['document']['selection'];if(_0x460e37['isCollapsed'])return void _0x191cc5(_0x3b7cdb);const _0x15b16f=void 0x0!==_0x3b7cdb['forceValue']?_0x3b7cdb['forceValue']:!_0x4da420['value'];_0xff48b8['change'](()=>{const _0x220de1=Array['from'](_0x460e37['getRanges']());for(const _0x167c90 of _0x220de1){const _0x2b0f68=_0x15b16f?[_0x167c90]:io(_0x316cd8,_0x167c90,_0xff48b8);for(const _0x2bc5d1 of _0x2b0f68)_0x23befb['markInlineFormat'](_0x2bc5d1,{'commandName':_0x316cd8,'commandParams':[{'forceValue':_0x15b16f}]});}});}),_0x23befb['descriptionFactory']['registerDescriptionCallback'](_0x1d055c=>{if('formatBlock'!=_0x1d055c['type']&&'formatInline'!=_0x1d055c['type'])return;const {data:_0x433f84}=_0x1d055c;return _0x433f84&&_0x433f84['commandName']==_0x316cd8?_0x433f84['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17241e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17241e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5a19c7{['afterInit'](){const _0x105a64=this['editor'];if(!_0x105a64['plugins']['has']('Style')||!_0x105a64['plugins']['has']('DataSchema'))return;const _0x47bffc=_0x105a64['plugins']['get']('TrackChangesEditing'),_0x230d5e=_0x105a64['locale'],_0x3aa160=_0x105a64['config']['get']('style')||{},_0x4e7ccd=_0x105a64['plugins']['get']('GeneralHtmlSupport'),_0x41819a=_0x105a64['plugins']['get']('StyleUtils')['normalizeConfig'](_0x105a64['plugins']['get']('DataSchema'),_0x3aa160['definitions']);_0x47bffc['enableDefaultAttributesIntegration']('style');const _0x9a9359=new Set();for(const _0x5b8413 of _0x41819a['block']){const _0x52af20=_0x4e7ccd['getGhsAttributeNameForElement'](_0x5b8413['element']);_0x9a9359['add'](_0x52af20);}const _0x315bc0=new Set();for(const _0x2c5e33 of _0x41819a['inline']){const _0x1afa5f=_0x4e7ccd['getGhsAttributeNameForElement'](_0x2c5e33['element']);_0x315bc0['add'](_0x1afa5f);for(const _0xacd98e of _0x2c5e33['ghsAttributes'])_0x315bc0['add'](_0xacd98e);}for(const _0x48184c of _0x9a9359)_0x47bffc['registerBlockAttribute'](_0x48184c),_0x47bffc['descriptionFactory']['registerAttributeLabel'](_0x48184c,o(_0x230d5e,'FORMAT_STYLE'));for(const _0x10e010 of _0x315bc0)_0x47bffc['registerInlineAttribute'](_0x10e010),_0x47bffc['descriptionFactory']['registerAttributeLabel'](_0x10e010,o(_0x230d5e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe837a2=this['editor'],_0xebe4c6=_0xe837a2['locale'];_0xe837a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x560a2b=>{if('formatBlock'!=_0x560a2b['type']&&'formatInline'!=_0x560a2b['type'])return;const {data:_0x540fc5}=_0x560a2b;return _0x540fc5&&'style'===_0x540fc5['commandName']?_0x540fc5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xebe4c6,'*Set\x20format:*\x20%0',_0x540fc5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xebe4c6,'*Remove\x20format:*\x20%0',_0x540fc5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5a19c7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4ca7f0){super(_0x4ca7f0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d63bd=this['editor'],_0x556b80=_0x3d63bd['model']['document']['selection'];if(!_0x3d63bd['plugins']['has']('TableEditing'))return;const _0x1dd576=_0x3d63bd['locale'],_0x2c0acb=_0x3d63bd['plugins']['get']('TrackChangesEditing'),_0x1af88e=_0x3d63bd['plugins']['get']('TableUtils');_0x2c0acb['descriptionFactory']['registerElementLabel']('table',_0x27a483=>o(_0x1dd576,'ELEMENT_TABLE',_0x27a483)),this['_setupColumnsRowsFixing'](),_0x2c0acb['enableCommand']('insertTable'),_0x2c0acb['enableCommand']('selectTableRow'),_0x2c0acb['enableCommand']('selectTableColumn');for(const _0x2b94a0 of['insertTableRowAbove','insertTableRowBelow']){const _0x447e43=_0x3d63bd['commands']['get'](_0x2b94a0);_0x2c0acb['enableCommand'](_0x2b94a0,_0x52c6f4=>{_0x3d63bd['model']['change'](_0xa65027=>{_0x52c6f4();const _0x279cdc='above'===_0x447e43['order'],_0x3bd633=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x255806=_0x1af88e['getRowIndexes'](_0x3bd633),_0x572b07=_0x279cdc?_0x255806['first']-0x1:_0x255806['last']+0x1,_0xcb5e8a=_0x3bd633[0x0]['findAncestor']('table'),_0x181dfb=_0x1af88e['createTableWalker'](_0xcb5e8a,{'startRow':_0x572b07,'endRow':_0x572b07}),_0x28355c=Array['from'](_0x181dfb)['map'](_0xaeecca=>_0xa65027['createRangeOn'](_0xaeecca['cell']));_0x2c0acb['markMultiRangeInsertion'](_0x28355c,'tableRow');});});}for(const _0x5b40dd of['insertTableColumnLeft','insertTableColumnRight']){const _0x239758=_0x3d63bd['commands']['get'](_0x5b40dd);_0x2c0acb['enableCommand'](_0x5b40dd,_0x287a22=>{_0x3d63bd['model']['change'](_0x49fef3=>{_0x287a22();const _0x2c09f8='left'===_0x239758['order'],_0x5a0bfc=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x4c5f9f=_0x1af88e['getColumnIndexes'](_0x5a0bfc),_0x3ebf41=_0x2c09f8?_0x4c5f9f['first']-0x1:_0x4c5f9f['last']+0x1,_0x30cfb7=_0x5a0bfc[0x0]['findAncestor']('table'),_0x44d99c=_0x1af88e['createTableWalker'](_0x30cfb7,{'startRow':0x0,'column':_0x3ebf41,'includeAllSlots':!0x1}),_0x441b51=Array['from'](_0x44d99c)['map'](_0x5ba38e=>_0x49fef3['createRangeOn'](_0x5ba38e['cell']));_0x2c0acb['markMultiRangeInsertion'](_0x441b51,'tableColumn');});});}for(const _0x440a04 of['removeTableRow','removeTableColumn']){const _0x15bf62=_0x440a04['substr'](0xb),_0x42193c=_0x15bf62['toLowerCase'](),_0x4b78a7=_0x42193c['substr'](0x0,0x3)+'span',_0x1ffdde='table'+_0x15bf62,_0x13ed5f='min'+_0x15bf62,_0x5f33a9='max'+_0x15bf62;_0x2c0acb['enableCommand'](_0x440a04,()=>{_0x3d63bd['model']['change'](_0x3e3170=>{const _0x3d934e=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x396d24=_0x3d934e[0x0]['findAncestor']('table');let _0x563822;if('removeTableRow'==_0x440a04){const _0x40b28f=_0x1af88e['getRowIndexes'](_0x3d934e);_0x563822={'startRow':_0x40b28f['first'],'endRow':_0x40b28f['last'],'includeAllSlots':!0x0};}else{const _0x3f8e19=_0x1af88e['getColumnIndexes'](_0x3d934e);_0x563822={'startColumn':_0x3f8e19['first'],'endColumn':_0x3f8e19['last'],'includeAllSlots':!0x0};}const _0x3d6de4=_0x1af88e['createTableWalker'](_0x396d24,_0x563822),_0x1acb65=Array['from'](_0x3d6de4)['map'](({cell:_0x145ef8})=>_0x145ef8),_0xe1c39f=be(_0x1acb65['filter'](_0x5cf5f2=>_0x5cf5f2['hasAttribute'](_0x4b78a7))),_0x4e92d2=be(_0x1acb65['filter'](_0x41c6e0=>!_0x41c6e0['hasAttribute'](_0x4b78a7)))['map'](_0xdf76c3=>_0x3e3170['createRangeOn'](_0xdf76c3)),_0xd7c154=_0x2c0acb['markMultiRangeDeletion'](_0x4e92d2,_0x1ffdde);if(_0xd7c154&&('tableRow'==_0xd7c154['subType']||'tableColumn'==_0xd7c154['subType'])){const _0x4a0794=this['_getSuggestionCoords'](_0xd7c154);for(const _0x2c7d2a of _0xe1c39f){const _0x5a3b05=_0x3e3170['createRangeOn'](_0x2c7d2a),_0x42472a=_0x1af88e['getCellLocation'](_0x2c7d2a),_0x5334b6=_0x2c7d2a['getAttribute'](_0x4b78a7)-0x1,_0x188a06=_0x4a0794[_0x13ed5f],_0x5b676f=_0x4a0794[_0x5f33a9];_0x188a06<=_0x42472a[_0x42193c]&&_0x42472a[_0x42193c]+_0x5334b6<=_0x5b676f&&_0xd7c154['addRange'](_0x5a3b05);}}});});}function _0xff52f0(_0x59efb3){const _0x1ff3bc=Array['from'](_0x556b80['getRanges']())['map'](_0x2ce8ad=>_0x31c9bf['fromRange'](_0x2ce8ad));_0x3d63bd['model']['change'](_0x133a4c=>{const _0x1549df=_0x133a4c['batch'];_0x59efb3=_0x59efb3['filter'](_0x46a972=>'$graveyard'!=_0x46a972['root']['rootName']),_0x133a4c['setSelection'](_0x59efb3),_0x3d63bd['commands']['get']('removeTableRow')['refresh'](),_0x3d63bd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d63bd['model']['enqueueChange'](()=>{_0x3d63bd['model']['enqueueChange'](_0x1549df,_0x2d48f2=>{const _0x4628c5=_0x1ff3bc['filter'](_0x5087ae=>'$graveyard'!=_0x5087ae['root']['rootName']);_0x4628c5['length']>0x0&&_0x2d48f2['setSelection'](_0x4628c5);for(const _0x97d7e7 of _0x1ff3bc)_0x97d7e7['detach']();});});});}function _0x3797fb(_0xf14a3d){_0x3d63bd['model']['change'](_0x28006f=>{const _0x57b7ff=Array['from'](_0x556b80['getRanges']())['map'](_0x281794=>_0x31c9bf['fromRange'](_0x281794)),_0xd7c105=[];for(const _0x5da580 of _0xf14a3d)for(const _0x3ad420 of _0x5da580['getItems']({'shallow':!0x0}))_0xd7c105['push'](_0x3ad420);for(const _0x554ac4 of _0xd7c105)'$graveyard'!=_0x554ac4['root']['rootName']&&(_0x28006f['setSelection'](_0x28006f['createPositionAt'](_0x554ac4,0x0)),_0x3d63bd['commands']['get']('removeTableColumn')['refresh'](),_0x3d63bd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c1997=_0x57b7ff['filter'](_0x5e171e=>'$graveyard'!=_0x5e171e['root']['rootName']);_0x4c1997['length']>0x0&&_0x28006f['setSelection'](_0x4c1997);for(const _0xf69064 of _0x57b7ff)_0xf69064['detach']();});}function _0x328e0c(_0x51015b,_0x514f92){return _0x514f92['every'](_0xd469a6=>_0x51015b['some'](_0x3cd939=>_0x3cd939['end']['isEqual'](_0xd469a6['start'])||_0xd469a6['end']['isEqual'](_0x3cd939['start'])));}function _0x423f70(_0x3dd731,_0x3ac974){return!_0x3dd731['some'](_0x2af7a1=>_0x3ac974['some'](_0x207e59=>_0x2af7a1['isIntersecting'](_0x207e59)))&&_0x3dd731['some'](_0x2f2678=>_0x3ac974['some'](_0x243a84=>_0x2f2678['end']['isTouching'](_0x243a84['start'])));}_0x3d63bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb598,_0x407f68,_0x15baf2)=>{if(!_0x15baf2['options']['showSuggestionHighlights'])return;const _0x15e172=_0x407f68['item'];if(!_0x15e172)return;const _0xb46139=_0x15baf2['mapper']['toViewElement'](_0x15e172);function _0x5a1729(_0x19d73f){return Array['isArray'](_0x19d73f)?_0x19d73f:[_0x19d73f];}_0xb46139&&'tableCell'===_0x15e172['name']&&_0x12a762(_0xb46139,_0x15baf2['writer'],(_0x542350,_0x2ada4e,_0x231f4c)=>_0x231f4c['addClass'](_0x5a1729(_0x2ada4e['classes']),_0x542350),(_0x168fd4,_0x5df5e2,_0x6b1d6a)=>_0x6b1d6a['removeClass'](_0x5a1729(_0x5df5e2['classes']),_0x168fd4));},{'priority':'highest'}),_0x2c0acb['descriptionFactory']['registerDescriptionCallback'](_0x5ae97a=>{if('insertion'!=_0x5ae97a['type']&&'deletion'!=_0x5ae97a['type'])return;const _0x10baeb=_0x5ae97a['getContainedElement']();if(null!=_0x10baeb&&_0x10baeb['is']('element','table')){if('insertion'==_0x5ae97a['type']){const _0x3f830d=_0x5ae97a['getItems']()['filter'](_0x43e9a0=>_0x43e9a0['is']('$textProxy'))['map'](_0x5e22bc=>_0x5e22bc['data']);if(_0x3f830d['length'])return{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f830d['join']('\x20')+'\x22'))};}if('deletion'==_0x5ae97a['type']){const _0x1483c4=_0x5ae97a['getItems']()['filter'](_0x4eec2a=>_0x4eec2a['is']('$textProxy'))['map'](_0x209f79=>_0x209f79['data']);if(_0x1483c4['length'])return{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1483c4['join']('\x20')+'\x22'))};}}}),_0x2c0acb['descriptionFactory']['registerDescriptionCallback'](_0x3017d7=>{if('tableRow'==_0x3017d7['subType']){const _0x54edba=_0x3017d7['getItems']()['filter'](_0x3125d8=>_0x3125d8['is']('$textProxy'))['map'](_0x1319c3=>_0x1319c3['data']),_0x10ad2f=this['_getSuggestionCoords'](_0x3017d7),_0x4093de=_0x10ad2f['maxRow']-_0x10ad2f['minRow']+0x1;if('insertion'==_0x3017d7['type'])return _0x54edba['length']?{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4093de,'\x22'+_0x54edba['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW',_0x4093de))};if('deletion'==_0x3017d7['type'])return _0x54edba['length']?{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4093de,'\x22'+_0x54edba['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW',_0x4093de))};}if('tableColumn'==_0x3017d7['subType']){const _0x44d893=_0x3017d7['getItems']()['filter'](_0x28b802=>_0x28b802['is']('$textProxy'))['map'](_0x31bbd8=>_0x31bbd8['data']),_0x4beb12=this['_getSuggestionCoords'](_0x3017d7),_0x3ffcf4=_0x4beb12['maxColumn']-_0x4beb12['minColumn']+0x1;if('insertion'==_0x3017d7['type'])return _0x44d893['length']?{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffcf4,'\x22'+_0x44d893['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN',_0x3ffcf4))};if('deletion'==_0x3017d7['type'])return _0x44d893['length']?{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffcf4,'\x22'+_0x44d893['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN',_0x3ffcf4))};}}),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xff52f0),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xff52f0),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3797fb),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3797fb),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x328e0c),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x328e0c),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x423f70),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x423f70);}['_acceptFormatSuggestionCallbackFactory'](){const _0x405e57=this['editor'],_0x340106=_0x405e57['model']['document']['selection'];return(_0x3cc5dd,_0xfbf112)=>{_0x405e57['model']['change'](_0x3d5a6f=>{const {commandName:_0xa6bf37,commandParams:_0x30810d}=_0xfbf112;let _0x44923e=_0x3cc5dd[0x0]['end']['nodeBefore'];_0x30810d&&_0x30810d[0x0]&&!0x1===_0x30810d[0x0]['forceValue']&&(_0x44923e=_0x3cc5dd[0x0]['start']['nodeAfter']);const _0x3675de=_0x3d5a6f['createRangeIn'](_0x44923e);if('$graveyard'==_0x3675de['root']['rootName'])return;const _0x4f0c5a=Array['from'](_0x340106['getRanges']())['map'](_0x5336b8=>_0x31c9bf['fromRange'](_0x5336b8));_0x3d5a6f['setSelection'](_0x3675de),_0x405e57['commands']['get'](_0xa6bf37)['refresh'](),_0x30810d['push']({'forceDefaultExecution':!0x0}),_0x405e57['execute'](_0xa6bf37,..._0x30810d);const _0x27567e=_0x4f0c5a['filter'](_0x510317=>'$graveyard'!=_0x510317['root']['rootName']);_0x27567e['length']>0x0&&_0x3d5a6f['setSelection'](_0x27567e);for(const _0x31c6bc of _0x4f0c5a)_0x31c6bc['detach']();});};}['_getCoordsForCells'](_0x266ea5){const _0x1e6ae3=this['editor']['plugins']['get']('TableUtils');let _0x56e3b7=Number['MAX_SAFE_INTEGER'],_0x55249f=Number['MIN_SAFE_INTEGER'],_0x251e26=Number['MAX_SAFE_INTEGER'],_0x25bc7f=Number['MIN_SAFE_INTEGER'];for(const _0xacdf91 of _0x266ea5){if('$graveyard'==_0xacdf91['root']['rootName'])continue;const {row:_0x4fc5eb,column:_0x5360f4}=_0x1e6ae3['getCellLocation'](_0xacdf91),_0x1725f4=_0xacdf91['hasAttribute']('rowspan')?_0xacdf91['getAttribute']('rowspan')-0x1:0x0,_0x2a2502=_0xacdf91['hasAttribute']('colspan')?_0xacdf91['getAttribute']('colspan')-0x1:0x0;_0x56e3b7=_0x4fc5eb<_0x56e3b7?_0x4fc5eb:_0x56e3b7,_0x55249f=_0x4fc5eb+_0x1725f4>_0x55249f?_0x4fc5eb+_0x1725f4:_0x55249f,_0x251e26=_0x5360f4<_0x251e26?_0x5360f4:_0x251e26,_0x25bc7f=_0x5360f4+_0x2a2502>_0x25bc7f?_0x5360f4+_0x2a2502:_0x25bc7f;}return{'minRow':_0x56e3b7,'maxRow':_0x55249f,'minColumn':_0x251e26,'maxColumn':_0x25bc7f};}['_setupColumnsRowsFixing'](){const _0x5dce26=this['editor'],_0x2daf14=_0x5dce26['plugins']['get']('TrackChangesEditing'),_0x402cc2=_0x5dce26['plugins']['get']('TableUtils');_0x5dce26['model']['document']['on']('change:data',()=>{const _0x371310=Array['from'](_0x5dce26['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x146769,data:_0x591048}of _0x371310){const {group:_0x211595,id:_0x27a54a,subType:_0x3ba628}=_0x2daf14['_splitMarkerName'](_0x146769);if('suggestion'!=_0x211595)continue;if(null!=_0x591048['oldRange'])continue;const _0x4db862=_0x2daf14['getSuggestion'](_0x27a54a);this['_tablePostFixingSubtypes']['includes'](_0x3ba628)&&this['_tableSuggestions']['add'](_0x4db862);}},{'priority':'low'});const _0x358fd1=(_0x3a114a,_0x22a62b)=>{let _0x4d2507=!0x1;const _0x5a9f66=_0x22a62b['createRangeOn'](_0x3a114a),_0x5879ab=_0x3a114a['findAncestor']('table'),_0x1decd8=_0x402cc2['getCellLocation'](_0x3a114a);for(const _0x5414b3 of this['_tableSuggestions']){const _0x37e222=_0x5414b3['subType'],_0x17d00b=_0x37e222['startsWith']('tablePaste'),_0x242d73=_0x37e222['substr'](_0x17d00b?0xa:0x5),_0x30eba1=_0x242d73['toLowerCase'](),_0x527faa=_0x30eba1['substr'](0x0,0x3)+'span',_0x7bc020='min'+_0x242d73,_0x4b6b80='max'+_0x242d73;if(!_0x5414b3['isInContent'])continue;if(_0x5879ab!=_0x5414b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5414b3['isIntersectingWithRange'](_0x5a9f66))continue;const _0x39fcfb=_0x3a114a['hasAttribute'](_0x527faa)?_0x3a114a['getAttribute'](_0x527faa)-0x1:0x0,_0x10dbf9=this['_getSuggestionCoords'](_0x5414b3),_0x38c354=_0x10dbf9[_0x7bc020],_0x481cec=_0x10dbf9[_0x4b6b80];_0x38c354<=_0x1decd8[_0x30eba1]&&_0x1decd8[_0x30eba1]+_0x39fcfb<=_0x481cec&&(_0x5414b3['addRange'](_0x5a9f66),_0x4d2507=!0x0);}return _0x4d2507;};_0x5dce26['model']['document']['registerPostFixer'](_0x2615fe=>{let _0x22dc63=!0x1;for(const _0x253fac of _0x5dce26['model']['document']['differ']['getChanges']())if('insert'==_0x253fac['type']){if('tableRow'==_0x253fac['name']){for(const _0xa0153b of _0x253fac['position']['nodeAfter']['getChildren']())_0x22dc63=_0x22dc63||_0x358fd1(_0xa0153b,_0x2615fe);}else'tableCell'==_0x253fac['name']&&(_0x22dc63=_0x22dc63||_0x358fd1(_0x253fac['position']['nodeAfter'],_0x2615fe));}return _0x22dc63;});}['_getSuggestionCoords'](_0xe24ae4){return this['_getCoordsForCells'](_0xe24ae4['getRanges']()['map'](_0x1599f9=>_0x1599f9['start']['nodeAfter']));}}function be(_0x2a4d5b){return Array['from'](new Set(_0x2a4d5b)['values']());}class vt extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x3727e8=this['editor'],_0x48febd=_0x3727e8['model']['document']['selection'],_0x5b11f9=_0x3727e8['locale'];if(!_0x3727e8['plugins']['has']('TableEditing'))return;const _0x21029a=_0x3727e8['plugins']['get']('TrackChangesEditing'),_0x2ddeb7=_0x3727e8['plugins']['get']('TableUtils'),_0x34bc3d=_0x3727e8['plugins']['get'](It);_0x34bc3d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21029a['enableCommand']('mergeTableCells',()=>{const _0x1c7376=_0x2ddeb7['getSelectionAffectedTableCells'](_0x3727e8['model']['document']['selection']);_0x3727e8['model']['change'](()=>{_0x21029a['markMultiRangeBlockFormat'](_0x1c7376,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3727e8['commands']['get']('mergeTableCells')['on']('execute',(_0x5bf48e,_0x1d04c1)=>{_0x3727e8['commands']['get']('trackChanges')['value']&&(_0x1d04c1['length']>0x0&&_0x1d04c1[_0x1d04c1['length']-0x1]&&_0x1d04c1[_0x1d04c1['length']-0x1]['forceDefaultExecution']||_0x21029a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5bf48e['stop']());},{'priority':'highest'});for(const _0x372750 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3fb895=_0x3727e8['commands']['get'](_0x372750);_0x21029a['enableCommand'](_0x372750,()=>{const _0x4bd69b=_0x3727e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40503c=>_0x40503c['is']('element','tableCell')),_0xbd272=_0x3fb895['value'];_0x3727e8['model']['change'](()=>{_0x21029a['markMultiRangeBlockFormat']([_0x4bd69b,_0xbd272],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4367b7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5b8d21=_0x3727e8['commands']['get'](_0x4367b7);_0x21029a['enableCommand'](_0x4367b7,()=>{const _0x3698c8=_0x2ddeb7['getSelectionAffectedTableCells'](_0x3727e8['model']['document']['selection'])[0x0],_0x3c0035=_0x3698c8['findAncestor']('table'),{column:_0x142284,row:_0x7e0550}=_0x2ddeb7['getCellLocation'](_0x3698c8);let _0x52ffc2=[];if('horizontally'==_0x5b8d21['direction']){const _0x5bd11d=_0x2ddeb7['createTableWalker'](_0x3c0035,{'startRow':_0x7e0550,'endRow':_0x7e0550,'includeAllSlots':!0x0});_0x52ffc2=Array['from'](_0x5bd11d)['map'](_0x2e37a6=>_0x2e37a6['cell']);}else{const _0x3e112a=_0x2ddeb7['createTableWalker'](_0x3c0035,{'column':_0x142284,'includeAllSlots':!0x0});_0x52ffc2=Array['from'](_0x3e112a)['map'](_0x403469=>_0x403469['cell']);}_0x3727e8['model']['change'](_0x3220b2=>{_0x21029a['markBlockFormat'](_0x3220b2['createRangeOn'](_0x3698c8),{'commandName':_0x4367b7,'commandParams':[]},_0x52ffc2,_0x4367b7);});});}_0x21029a['descriptionFactory']['registerDescriptionCallback'](_0xd28e58=>{if('formatBlock'!=_0xd28e58['type']&&'formatInline'!=_0xd28e58['type'])return;const {data:_0xc01659}=_0xd28e58;return _0xc01659&&'mergeTableCells'==_0xc01659['commandName']?{'type':'format','content':o(_0x5b11f9,'*Merge\x20cells*')}:void 0x0;}),_0x21029a['descriptionFactory']['registerDescriptionCallback'](_0x35335d=>{if('formatBlock'!=_0x35335d['type']&&'formatInline'!=_0x35335d['type'])return;const {data:_0x544674}=_0x35335d;return _0x544674?'splitTableCellVertically'==_0x544674['commandName']?{'type':'format','content':o(_0x5b11f9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x544674['commandName']?{'type':'format','content':o(_0x5b11f9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31fa3e=_0x34bc3d['_acceptFormatSuggestionCallbackFactory']();for(const _0x409ed4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x409ed4,'accept',_0x31fa3e);for(const _0x39993c of['splitTableCellVertically','splitTableCellHorizontally'])_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39993c,'accept',_0x31fa3e);_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2f563c=>{_0x3727e8['model']['change'](_0x23205c=>{const _0x4f76ef=Array['from'](_0x48febd['getRanges']())['map'](_0x3a0625=>_0x31c9bf['fromRange'](_0x3a0625));_0x23205c['setSelection'](_0x2f563c),_0x3727e8['commands']['get']('mergeTableCells')['refresh'](),_0x3727e8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x156f3f=_0x4f76ef['filter'](_0x3d6470=>'$graveyard'!=_0x3d6470['root']['rootName']);_0x156f3f['length']>0x0&&_0x23205c['setSelection'](_0x156f3f);for(const _0x5b017f of _0x4f76ef)_0x5b017f['detach']();});});for(const _0x3a7e45 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3778ad=_0x3727e8['commands']['get'](_0x3a7e45);_0x3778ad['on']('set:isEnabled',(_0x56c34d,_0x5b8158,_0x4dc90d)=>{if(_0x4dc90d){const _0xeed792=_0x3727e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x297ade=>_0x297ade['is']('element','tableCell'));this['_areMergableCells'](_0x3778ad['value'],_0xeed792)||(_0x56c34d['return']=!0x1,_0x56c34d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13e1f6=this['editor']['commands']['get']('mergeTableCells'),_0x436261=this['editor']['plugins']['get']('TableUtils');if(!_0x13e1f6['isEnabled'])return!0x1;const _0x1584ff=_0x436261['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x13d0eb of _0x1584ff)for(const _0x884fea of _0x1584ff)if(_0x13d0eb!=_0x884fea&&!this['_areMergableCells'](_0x13d0eb,_0x884fea))return!0x1;return!0x0;}['_areMergableCells'](_0x4f9944,_0x462906){const _0x4efdd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2406b4=this['editor']['model']['createRangeOn'](_0x4f9944),_0x19265b=this['editor']['model']['createRangeOn'](_0x462906),_0x1a677f=new Set(),_0x310572=new Set();for(const _0x46a4c0 of _0x4efdd4['getSuggestions']())if(('insertion'==_0x46a4c0['type']||'deletion'==_0x46a4c0['type']||'mergeTableCells'==_0x46a4c0['subType'])&&_0x46a4c0['isInContent']){for(const _0x19242a of _0x46a4c0['getRanges']())_0x19242a['containsRange'](_0x2406b4,!0x0)&&_0x1a677f['add'](_0x46a4c0['type']+':'+_0x46a4c0['author']['id']),_0x19242a['containsRange'](_0x19265b,!0x0)&&_0x310572['add'](_0x46a4c0['type']+':'+_0x46a4c0['author']['id']);}if(_0x1a677f['size']!=_0x310572['size'])return!0x1;for(const _0x106b43 of _0x1a677f)if(!_0x310572['has'](_0x106b43))return!0x1;return!0x0;}}class Ct extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x3894c6=this['editor'];if(!_0x3894c6['plugins']['has']('TableEditing'))return;const _0x382aad=_0x3894c6['locale'],_0x180ccf=_0x3894c6['plugins']['get']('TrackChangesEditing');_0x180ccf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x180ccf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x180ccf['registerBlockAttribute']('headingRows'),_0x180ccf['registerBlockAttribute']('headingColumns'),_0x180ccf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x382aad,'FORMAT_HEADER_ROW')),_0x180ccf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x382aad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x349f9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26345a=this['editor']['plugins']['get']('TableUtils'),_0x8fd47d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x303427({showActiveMarker:_0x358ae2=!0x0,setDataAttribute:_0x30783d=!0x0}={}){return(_0x1d7f75,_0x5388ec,_0x4b01bf)=>{const {type:_0x53624c,id:_0x96cf2d}=_0x349f9b['_splitMarkerName'](_0x5388ec['markerName']),_0x3115a3=_0x349f9b['getSuggestion'](_0x96cf2d),_0x322b48=_0x3115a3['data'];if('formatBlock'!=_0x3115a3['type']||!_0x322b48||'setTableColumnHeader'!=_0x322b48['commandName'])return;if(_0x5388ec['item'])return void _0x1d7f75['stop']();if(!_0x4b01bf['consumable']['consume'](_0x5388ec['markerRange'],_0x1d7f75['name']))return;const _0x319f07=_0x5388ec['markerRange']['start']['nodeAfter'],_0x15530d=_0x5388ec['markerRange']['end']['nodeBefore'],_0x5c8785=_0x319f07['parent']['parent'],{column:_0xee85be}=_0x26345a['getCellLocation'](_0x319f07),{column:_0x1082f3}=_0x26345a['getCellLocation'](_0x15530d);for(let _0x5656c=_0xee85be;_0x5656c<=_0x1082f3;_0x5656c++){const _0x2e7dd7=_0x26345a['createTableWalker'](_0x5c8785,{'column':_0x5656c,'includeAllSlots':!0x1});for(const _0x5e7ce5 of _0x2e7dd7){const _0x2baf4b=_0x5e7ce5['cell'],_0x409a9a=_0x4b01bf['mapper']['toViewElement'](_0x2baf4b);_0x4b01bf['writer']['addClass']('ck-suggestion-marker-'+_0x53624c,_0x409a9a),_0x30783d&&_0x4b01bf['writer']['setAttribute']('data-suggestion',_0x96cf2d,_0x409a9a),_0x4b01bf['mapper']['bindElementToMarker'](_0x409a9a,_0x5388ec['markerName']),_0x358ae2&&(_0x349f9b['activeMarkers']['includes'](_0x5388ec['markerName'])?_0x4b01bf['writer']['addClass']('ck-suggestion-marker--active',_0x409a9a):_0x4b01bf['writer']['removeClass']('ck-suggestion-marker--active',_0x409a9a));}}};}_0x349f9b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8fd47d),_0x349f9b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8fd47d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x303427(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52e7d5,_0x3b257b,_0x308e36)=>{_0x308e36['options']['showSuggestionHighlights']&&_0x303427({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x52e7d5,_0x3b257b,_0x308e36);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x310ad1,_0x2e3242,_0x54bb4a)=>{const {type:_0x4105f0,id:_0x11fd85}=_0x349f9b['_splitMarkerName'](_0x2e3242['markerName']),_0x2e9d84=_0x349f9b['getSuggestion'](_0x11fd85),_0x4346d0=_0x2e9d84['data'];if('formatBlock'!=_0x2e9d84['type']||!_0x4346d0||'setTableColumnHeader'!=_0x4346d0['commandName'])return;const _0x116372=_0x54bb4a['mapper']['markerNameToElements'](_0x2e3242['markerName']);if(_0x116372){for(const _0xb662e4 of _0x116372)_0x54bb4a['writer']['removeClass']('ck-suggestion-marker-'+_0x4105f0,_0xb662e4),_0x54bb4a['writer']['removeClass']('ck-suggestion-marker--active',_0xb662e4),_0x54bb4a['writer']['removeAttribute']('data-suggestion',_0xb662e4),_0x54bb4a['mapper']['unbindElementFromMarkerName'](_0xb662e4,_0x2e3242['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x343171=this['editor'],_0x4d43a0=_0x343171['locale'];function _0x39bac2(_0x3c38b6){return{'type':'format','content':o(_0x4d43a0,'*Format:*\x20%0',_0x3c38b6)};}_0x343171['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dd145=>{if('formatBlock'!=_0x5dd145['type'])return;const {data:_0x6837e6}=_0x5dd145;if(_0x6837e6){if('setTableRowHeader'==_0x6837e6['commandName']){const _0x42de15=_0x6837e6['commandParams'][0x0]['forceValue'];return _0x39bac2(o(_0x4d43a0,_0x42de15?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x6837e6['commandName']){const _0x3a3384=_0x6837e6['commandParams'][0x0]['forceValue'];return _0x39bac2(o(_0x4d43a0,_0x3a3384?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x50d81a=>[_0x50d81a,null]));class _t extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x5551ee=this['editor'];if(!_0x5551ee['plugins']['has']('TableClipboard'))return;const _0x417da2=_0x5551ee['plugins']['get']('TrackChangesEditing'),_0x139e80=_0x5551ee['plugins']['get']('TableUtils'),_0x42f2dc=_0x5551ee['plugins']['get'](It),_0x3911b7=_0x5551ee['plugins']['get']('TableClipboard');_0x42f2dc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5551ee['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5551ee['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f7172=null;_0x5551ee['model']['on']('insertContent',(_0x1e50da,_0x2c6f32)=>{const [_0x2b5e64,_0xef0ae7]=_0x2c6f32,_0x370b1f=_0x2c6f32[_0x2c6f32['length']-0x1];_0x370b1f&&_0x370b1f['forceDefaultExecution']||_0x417da2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4fa150,_0x14aa3f,_0x2e525d,_0x4a4c1c,_0x3c9ba7){if(_0x14aa3f&&!_0x14aa3f['is']('documentSelection'))return!0x1;const _0x4fb0fa=_0x3c9ba7['getTableIfOnlyTableInContent'](_0x4fa150,_0x2e525d);if(!_0x4fb0fa||!Re(_0x4fb0fa,void 0x0,_0x4a4c1c))return!0x1;const _0x52d31a=_0x4a4c1c['getSelectionAffectedTableCells'](_0x2e525d['document']['selection']);if(!_0x52d31a['length'])return!0x1;const _0x542d72=_0x52d31a[0x0]['findAncestor']('table'),_0x24104c=_0x4a4c1c['getRowIndexes'](_0x52d31a),_0x1666c3=_0x4a4c1c['getColumnIndexes'](_0x52d31a),_0x2418d3={'startRow':_0x24104c['first'],'endRow':_0x24104c['last'],'startColumn':_0x1666c3['first'],'endColumn':_0x1666c3['last']};return 0x1==_0x52d31a['length']&&(_0x2418d3['endRow']+=_0x4a4c1c['getRows'](_0x4fb0fa)-0x1,_0x2418d3['endColumn']+=_0x4a4c1c['getColumns'](_0x4fb0fa)-0x1),Re(_0x542d72,_0x2418d3,_0x4a4c1c);}(_0x2b5e64,_0xef0ae7,_0x5551ee['model'],_0x139e80,_0x3911b7)&&(_0x1e50da['stop'](),_0x1f7172={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5551ee['model']['change'](()=>{_0x5551ee['model']['insertContent'](_0x2c6f32[0x0],_0x2c6f32[0x1],_0x2c6f32[0x2],{'forceDefaultExecution':!0x0});const _0x11e237=_0x429a07(),{rowInsertionRanges:_0x10a534,columnInsertionRanges:_0x4193e0,insertionRanges:_0x19b11e,deletionRanges:_0x536a02,cells:_0x3db08e}=_0x1f7172;_0x10a534['length']&&_0x417da2['markMultiRangeInsertion'](_0x10a534,'tablePasteRow',{'tablePasteChainId':_0x11e237}),_0x4193e0['length']&&_0x417da2['markMultiRangeInsertion'](_0x4193e0,'tablePasteColumn',{'tablePasteChainId':_0x11e237}),_0x19b11e['length']&&(_0x417da2['markMultiRangeInsertion'](_0x19b11e,'tablePaste',{'tablePasteChainId':_0x11e237,'skipNestingCheck':!0x0}),_0x19b11e['forEach'](_0x40634c=>_0x40634c['detach']?.())),_0x536a02['length']&&(_0x417da2['markMultiRangeDeletion'](_0x536a02,'tablePaste',{'tablePasteChainId':_0x11e237,'skipNestingCheck':!0x0}),_0x536a02['forEach'](_0xc0d1a7=>_0xc0d1a7['detach']?.()));const _0x4e4135=_0x417da2['markMultiRangeBlockFormat'](_0x3db08e['map'](({element:_0x1c231e})=>_0x1c231e),{'formatGroupId':_0x429a07()},[],'tablePasteCell',{'tablePasteChainId':_0x11e237});if(_0x4e4135){const _0x25ed5e=_0x4e4135['getMarkers'](),_0x1556fd=[];for(const {element:_0x37ecf0,attributes:_0x2a995b}of _0x3db08e){if(!_0x2a995b)continue;const _0x329ef2=_0x5551ee['model']['createRangeOn'](_0x37ecf0),_0x35ca26=_0x25ed5e['find'](_0x742895=>_0x742895['getRange']()['isEqual'](_0x329ef2));_0x35ca26&&_0x1556fd['push']([_0x35ca26['name'],_0x2a995b]);}_0x1556fd['length']&&_0x4e4135['setAttribute']('markerAttributes',Object['fromEntries'](_0x1556fd));}_0x1f7172=null;}));},{'priority':_0x1f1c0f['high']+0xa}),_0x5551ee['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xc3b204,_0x532743)=>{const [_0x1e475b,_0x516122,,_0x33a4b0]=_0x532743;if(!_0x1f7172)return;_0xc3b204['stop']();const _0xba63b7=_0x1e475b['cell'],_0x321370=_0x516122,_0x48a2a7=ke(_0xba63b7),_0x5eecdf=ke(_0x321370);_0xc3b204['return']=_0xba63b7;let _0x3f8590=null,_0x36e35f=null;if(_0x5eecdf||_0x48a2a7){if(_0x48a2a7&&!_0x5eecdf){_0x33a4b0['remove'](_0xba63b7['getChild'](0x0));for(const _0x42f99d of Array['from'](_0x321370['getChildren']()))_0x33a4b0['insert'](_0x42f99d,_0xba63b7,'end');const _0x2b9aae=_0x1f7172['rowInsertionIndexes']['includes'](_0x1e475b['row']),_0x209569=_0x1f7172['columnInsertionIndexes']['includes'](_0x1e475b['column']);_0x2b9aae||_0x209569||(_0x3f8590=_0x31c9bf['fromRange'](_0x33a4b0['createRangeIn'](_0xba63b7)));}else _0x5eecdf&&!_0x48a2a7&&(_0x36e35f=_0x33a4b0['createRangeIn'](_0xba63b7));}else{const _0x16c0ab=_0x33a4b0['createElement']('tableCellSuggestion'),_0x1a71e7=_0x33a4b0['createElement']('tableCellSuggestion');_0x33a4b0['wrap'](_0x33a4b0['createRangeIn'](_0xba63b7),_0x1a71e7),_0x33a4b0['insert'](_0x16c0ab,_0xba63b7,0x0);for(const _0x4daa8a of Array['from'](_0x321370['getChildren']()))_0x33a4b0['insert'](_0x4daa8a,_0x16c0ab,'end');_0x3f8590=_0x31c9bf['fromRange'](_0x33a4b0['createRangeOn'](_0x16c0ab)),_0x36e35f=_0x31c9bf['fromRange'](_0x33a4b0['createRangeOn'](_0x1a71e7));}const _0xc5062d=Array['from'](_0x321370['getAttributes']())['filter'](([_0x3ea291])=>Pe['includes'](_0x3ea291));_0x1f7172['cells']['push']({'element':_0xba63b7,'attributes':_0xc5062d['length']?Object['fromEntries'](_0xc5062d):null}),_0x3f8590&&_0x1f7172['insertionRanges']['push'](_0x3f8590),_0x36e35f&&_0x1f7172['deletionRanges']['push'](_0x36e35f);},{'priority':'high'}),_0x139e80['on']('insertColumns',(_0x153ff0,_0x2ee784)=>{const [_0x68e25,_0x4744b9={}]=_0x2ee784;if(!_0x1f7172)return;const _0x1915e3=_0x4744b9['at']||0x0,_0x4aacef=_0x4744b9['columns']||0x1;_0x1f7172['columnInsertionIndexes']=new Array(_0x4aacef)['fill'](_0x1915e3)['map']((_0x101925,_0x1779c7)=>_0x101925+_0x1779c7);for(const {cell:_0x512989}of _0x139e80['createTableWalker'](_0x68e25,{'startColumn':_0x1915e3,'endColumn':_0x1915e3+_0x4aacef-0x1}))_0x1f7172['columnInsertionRanges']['push'](_0x5551ee['model']['createRangeOn'](_0x512989));},{'priority':'low'}),_0x139e80['on']('insertRows',(_0x29ba27,_0x3eb4c5)=>{const [_0x567422,_0x24200d={}]=_0x3eb4c5;if(!_0x1f7172)return;const _0x4623b4=_0x24200d['at']||0x0,_0x4d81c7=_0x24200d['rows']||0x1;_0x1f7172['rowInsertionIndexes']=new Array(_0x4d81c7)['fill'](_0x4623b4)['map']((_0x3d2080,_0x5c80e6)=>_0x3d2080+_0x5c80e6);for(const {cell:_0x466af4}of _0x139e80['createTableWalker'](_0x567422,{'startRow':_0x4623b4,'endRow':_0x4623b4+_0x4d81c7-0x1}))_0x1f7172['rowInsertionRanges']['push'](_0x5551ee['model']['createRangeOn'](_0x466af4));},{'priority':'low'}),_0x417da2['descriptionFactory']['registerDescriptionCallback'](_0x456ab5=>{if(_0x456ab5['subType']&&_0x456ab5['subType']['startsWith']('tablePaste'))return _0x456ab5['previous']?{}:{'type':'insertion','content':o(_0x5551ee['locale'],'*Replace\x20table\x20cells*')};});const _0x250ba4=()=>!0x1;for(const _0x1ba0b7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ba0b7,'join',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ba0b7,'join',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ba0b7,'join',_0x250ba4);_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28fd50,_0x2ba4eb,_0x9aae19)=>{const _0x70614f=_0x28fd50['map'](_0x4cbd5b=>_0x4cbd5b['getContainedElement']())['filter'](_0x3932ec=>_0x3932ec),_0x11fe59=new Map(_0x70614f['map'](_0x54b33a=>[_0x54b33a,null]));if(_0x1f7172){for(const {element:_0x486e29,attributes:_0xe2bb8f}of _0x1f7172['cells'])_0xe2bb8f&&_0x11fe59['set'](_0x486e29,_0xe2bb8f);}else{if(_0x9aae19&&_0x9aae19['markerAttributes'])for(const [_0xe522fa,_0xe1b07a]of Object['entries'](_0x9aae19['markerAttributes'])){const _0x43249e=_0x5551ee['model']['markers']['get'](_0xe522fa),_0x20ec0b=_0x43249e?_0x43249e['getRange']()['getContainedElement']():null;_0x20ec0b&&_0x11fe59['set'](_0x20ec0b,_0xe1b07a);}}_0x5551ee['model']['change'](_0x52cb59=>{for(const [_0x3d9011,_0x4867f9]of _0x11fe59)_0x52cb59['setAttributes']({...we,..._0x4867f9},_0x3d9011);});});const _0x32a094=(_0x1eaf3b,_0x1f8720)=>{_0x417da2['_suggestionFactory']['registerCustomCallback'](_0x1eaf3b,'tablePaste',_0x1f8720,(_0x57e982,_0x281b0b,_0x4178d3)=>{_0x5551ee['model']['change'](_0x22d266=>{const _0x48b973=[];for(const _0x4d3a82 of _0x57e982){const _0x325535=_0x4d3a82['start']['nodeAfter'];_0x325535['is']('element','tableCellSuggestion')&&_0x48b973['push'](_0x325535);}_0x417da2['_suggestionFactory']['getSuggestionCallback'](_0x1eaf3b,null,_0x1f8720)(_0x57e982,_0x281b0b,_0x4178d3);for(const _0x2dea50 of _0x48b973)'$graveyard'!=_0x2dea50['root']['rootName']&&_0x22d266['unwrap'](_0x2dea50);});});};_0x32a094('insertion','accept'),_0x32a094('insertion','discard'),_0x32a094('deletion','accept'),_0x32a094('deletion','discard'),_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x11c36b=>{const _0x5690bc=_0x11c36b['map'](_0x2f2b98=>_0x2f2b98['getContainedElement']()),_0x5a76d7=_0x5690bc[0x0]['findAncestor']('table'),{minRow:_0x15ad0d,maxRow:_0x1b6eeb}=_0x42f2dc['_getCoordsForCells'](_0x5690bc);_0x139e80['removeRows'](_0x5a76d7,{'at':_0x15ad0d,'rows':_0x1b6eeb-_0x15ad0d+0x1});}),_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22947b=>{const _0x4c00e2=_0x22947b['map'](_0x4754e3=>_0x4754e3['getContainedElement']()),_0xf5534c=_0x4c00e2[0x0]['findAncestor']('table'),{minColumn:_0x2b976c,maxColumn:_0x36766b}=_0x42f2dc['_getCoordsForCells'](_0x4c00e2);_0x139e80['removeColumns'](_0xf5534c,{'at':_0x2b976c,'columns':_0x36766b-_0x2b976c+0x1});});const _0x47c608=(_0x2ba137,_0x397092)=>{if(!_0x397092['subType']||!_0x397092['subType']['startsWith']('tablePaste'))return;const _0x257e26=_0x397092['attributes']['tablePasteChainId'],_0x2f60d=_0x417da2['getSuggestions']()['filter'](_0x10e68c=>_0x10e68c['isInContent']&&_0x10e68c['attributes']&&_0x10e68c['attributes']['tablePasteChainId']==_0x257e26);_0x2f60d['length']&&_0x397092['getAllAdjacentSuggestions']()['length']!=_0x2f60d['length']&&_0x2f60d['reduce']((_0x255ab5,_0x25cc28)=>(_0x255ab5['next']=_0x25cc28,_0x25cc28['previous']=_0x255ab5,_0x25cc28));};function _0xb2a530(_0x36bf88,_0x49f3b9=!0x0){const {id:_0xcd4f80,authorId:_0x183eaa}=_0x417da2['_splitMarkerName'](_0x36bf88['markerName']),_0x51fd0c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xca6880=_0x417da2['activeMarkers']['includes'](_0x36bf88['markerName']);return _0xca6880&&_0x51fd0c['push']('ck-suggestion-marker--active'),{'classes':_0x51fd0c,'attributes':{'data-suggestion':_0xcd4f80,'data-author-id':_0x183eaa},'priority':_0xca6880&&_0x49f3b9?0xbc2:0xbb8};}_0x417da2['on']('suggestionLoaded',_0x47c608,{'priority':'high'}),_0x417da2['on']('suggestionUnloaded',_0x47c608,{'priority':'high'}),_0x5551ee['model']['document']['registerPostFixer'](()=>{let _0x150f20=!0x1;const _0x3d5424=Array['from'](_0x5551ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c8d94,data:_0x10201c}of _0x3d5424){const {group:_0xa707cf,type:_0x363163,id:_0x18424a}=_0x417da2['_splitMarkerName'](_0x2c8d94);if('suggestion'!=_0xa707cf||'deletion'!=_0x363163||_0x10201c['oldRange'])continue;if(!_0x417da2['hasSuggestion'](_0x18424a))continue;const _0x3ec720=_0x417da2['getSuggestion'](_0x18424a)['getRanges'](),_0x394cfe=_0x5551ee['plugins']['get']('Users')['me'];for(const _0x339f04 of _0x417da2['getSuggestions']()){if(!_0x339f04['isInContent']||_0x339f04['author']!=_0x394cfe)continue;if('formatBlock'!=_0x339f04['type']||'tablePasteCell'!=_0x339f04['subType'])continue;if(_0x339f04['getRanges']()['every'](_0x4210f0=>_0x3ec720['some'](_0x1f58f1=>_0x1f58f1['containsRange'](_0x4210f0,!0x0)))){for(const _0x43a2d2 of _0x339f04['getAllAdjacentSuggestions']())_0x43a2d2['isInContent']&&(_0x43a2d2['discard'](),_0x150f20=!0x0);}}}return _0x150f20;}),_0x5551ee['model']['document']['registerPostFixer'](_0x118e08=>{const _0x22d39e=_0x5551ee['commands']['get']('redo');if(!_0x22d39e||!_0x22d39e['_createdBatches']['has'](_0x118e08['batch']))return!0x1;let _0x559350=!0x1;const _0x26c5dc=_0x5551ee['plugins']['get']('Users')['me'],_0x2dd4ec=_0x5551ee['model']['document']['differ']['getChanges'](),_0x4ff10f=Array['from'](_0x5551ee['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4c00fc,data:_0x50ba13})=>{const {group:_0x4223b8,subType:_0x30991f,authorId:_0x49b732}=_0x417da2['_splitMarkerName'](_0x4c00fc);return'suggestion'==_0x4223b8&&'tablePaste'==_0x30991f&&_0x49b732==_0x26c5dc['id']&&!_0x50ba13['oldRange'];});for(const _0x534a0e of _0x2dd4ec){if('insert'!=_0x534a0e['type']||'tableCellSuggestion'!=_0x534a0e['name']||0x1!=_0x534a0e['length'])continue;const _0x55421a=_0x118e08['createRange'](_0x534a0e['position'],_0x534a0e['position']['getShiftedBy'](0x1));if(!_0x4ff10f['find'](({data:_0x2b9fce})=>_0x2b9fce['newRange']['isEqual'](_0x55421a))){for(const {name:_0x43c104,data:_0x317d9a}of _0x4ff10f)if(_0x55421a['containsRange'](_0x317d9a['newRange'])){_0x118e08['updateMarker'](_0x43c104,{'range':_0x55421a}),_0x559350=!0x0;break;}}}return _0x559350;}),_0x5551ee['model']['document']['registerPostFixer'](_0x449475=>{let _0x4bdedb=!0x1;const _0xb0a1ac=_0x5551ee['plugins']['get']('Users')['me'],_0x55036a=_0x417da2['getSuggestions']()['filter'](_0x5220bd=>_0x5220bd['isInContent']&&_0x5220bd['author']==_0xb0a1ac),_0x42f134=new Set(),_0x4b5c75=new Set();for(const _0x5856d0 of _0x55036a)if('tablePaste'==_0x5856d0['subType'])for(const _0x3a3de2 of _0x5856d0['getMarkers']()){const _0x1e3a3f=_0x3a3de2['getRange']()['getContainedElement']();if(_0x1e3a3f){if(_0x1e3a3f['is']('element','tableCellSuggestion')&&ke(_0x1e3a3f)){_0x5856d0['removeMarker'](_0x3a3de2['name']),_0x42f134['add'](_0x1e3a3f),_0x4bdedb=!0x0;const _0xb4d648=_0x1e3a3f['nextSibling'],_0x132ffd=_0x1e3a3f['previousSibling'],_0x3a21a3=_0xb4d648&&_0xb4d648['is']('element','tableCellSuggestion'),_0xa6f629=_0x132ffd&&_0x132ffd['is']('element','tableCellSuggestion');_0x3a21a3&&!_0x42f134['has'](_0xb4d648)&&_0x4b5c75['add'](_0xb4d648),_0xa6f629&&!_0x42f134['has'](_0x132ffd)&&_0x4b5c75['add'](_0x132ffd);}else _0x1e3a3f['is']('element','paragraph')&&_0x1e3a3f['isEmpty']&&(_0x5856d0['removeMarker'](_0x3a3de2['name']),_0x4bdedb=!0x0);}}else{if('tablePasteCell'==_0x5856d0['subType']){if(!_0x5856d0['attributes']||!_0x5856d0['attributes']['tablePasteChainId'])continue;const _0x4cddfe=_0x5856d0['attributes']['markerAttributes'];if(_0x4cddfe&&Object['keys'](_0x4cddfe)['length'])continue;const _0x265c21=_0x5856d0['attributes']['tablePasteChainId'];let _0x55d69f=!0x0,_0x4100b2=!0x0;for(const _0x298ced of _0x55036a)if(_0x298ced['subType']&&_0x298ced['subType']['startsWith']('tablePaste')){if(!_0x298ced['attributes']['tablePasteChainId']){_0x4100b2=!0x1;break;}if(_0x298ced['id']!=_0x5856d0['id']&&_0x298ced['attributes']['tablePasteChainId']==_0x265c21){_0x55d69f=!0x1;break;}}_0x4100b2&&_0x55d69f&&(_0x5856d0['removeMarkers'](),_0x4bdedb=!0x0);}}for(const _0x493f2c of _0x42f134)_0x449475['remove'](_0x493f2c);for(const _0x1ba0ce of _0x4b5c75)_0x449475['unwrap'](_0x1ba0ce);return _0x4bdedb;}),_0x5551ee['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x50d526=>_0xb2a530(_0x50d526),'converterPriority':'high'}),_0x5551ee['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x568972,_0x2518f4)=>_0x2518f4['options']['showSuggestionHighlights']?_0xb2a530(_0x568972,!0x1):null,'converterPriority':'high'});const _0x440601=_0x5551ee['editing']['view'];this['listenTo'](_0x440601['document'],'clipboardOutput',(_0x533f79,_0x496926)=>{const _0x229045=[];for(const _0x555bd1 of _0x440601['createRangeIn'](_0x496926['content'])['getItems']())_0x555bd1['is']('element','suggestion-td')&&_0x229045['push'](_0x555bd1);_0x440601['change'](_0xb4806f=>{for(const _0x7581eb of _0x229045)_0xb4806f['move'](_0xb4806f['createRangeIn'](_0x7581eb),_0xb4806f['createPositionBefore'](_0x7581eb)),_0xb4806f['remove'](_0x7581eb);});});}}function ke(_0x49a0cd){if(_0x49a0cd['isEmpty'])return!0x0;const _0x5c632d=_0x49a0cd['getChild'](0x0);return _0x5c632d['is']('element','paragraph')&&_0x5c632d['isEmpty'];}function Re(_0x5cab49,_0x1fad4a={},_0x44294d){for(const {isAnchor:_0x3c7d5d,cellHeight:_0x4e18e2,cellWidth:_0x50e8a4}of _0x44294d['createTableWalker'](_0x5cab49,{'includeAllSlots':!0x0,..._0x1fad4a}))if(!_0x3c7d5d||0x1!=_0x4e18e2||0x1!=_0x50e8a4)return!0x1;return!0x0;}class Nt extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b4763=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b4763['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b4763['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b4763['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b4763['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b4763['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b4763['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16446f,_0xc286b3){const _0xa95f48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d4961=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2099f7=_0xc286b3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d4cfe=_0x4d4961['getColumnGroupElement'](_0x2099f7);let _0x28e9db=_0x5d4cfe?_0x4d4961['getTableColumnsWidths'](_0x5d4cfe):null,_0x10c09f=_0x2099f7['getAttribute']('tableWidth')||null;const _0x47a34d=_0xc286b3['tableWidth']||_0x10c09f,_0x5c0252=_0xc286b3['columnWidths']||_0x28e9db,_0x196fbf=this['editor']['plugins']['get']('Users')['me'];for(const _0x48af33 of _0xa95f48['getSuggestions']()){const _0x5398af=_0x48af33['getContainedElement']();if('resizeTable'===_0x48af33['subType']&&_0x5398af===_0x2099f7){_0x48af33['author']!==_0x196fbf&&_0x48af33['discard']();const _0x3d60f4=_0x48af33['data']['commandParams'];_0x10c09f=_0x3d60f4[0x0]['tableWidth'],_0x28e9db=_0x3d60f4[0x0]['columnWidths'];break;}}_0x16446f({'table':_0x2099f7,'tableWidth':_0x47a34d,'columnWidths':_0x5c0252}),_0xa95f48['markBlockFormat'](_0x2099f7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10c09f,'columnWidths':_0x28e9db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x531376){if('formatBlock'!=_0x531376['type']&&'formatInline'!=_0x531376['type'])return;const {data:_0x94087a}=_0x531376;if(_0x94087a&&'resizeTable'===_0x94087a['formatGroupId']){const _0xe73832='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xe73832)};}}}class Dt extends _0x5a19c7{['afterInit'](){const _0x5b1cc2=this['editor'];_0x5b1cc2['plugins']['has']('Template')&&_0x5b1cc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5a19c7{['afterInit'](){const _0x5e50be=this['editor'];if(!_0x5e50be['commands']['get']('insertTableOfContents'))return;_0x5e50be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3cfde0=_0x5e50be['plugins']['get']('TrackChangesEditing'),_0x4807cf=_0x5e50be['locale'];_0x3cfde0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39af77=>o(_0x4807cf,'ELEMENT_TABLE_OF_CONTENTS',_0x39af77));}}class $t extends _0x5a19c7{['afterInit'](){const _0x5a8c32=this['editor'];if(!_0x5a8c32['plugins']['has']('Title'))return;const _0x590538=_0x5a8c32['plugins']['get']('TrackChangesEditing');_0x590538['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5a8c32['locale'],'ELEMENT_TITLE')),_0x5a8c32['model']['document']['registerPostFixer'](_0x1e8b31=>{let _0x468f95=!0x1;const _0xca4c4a=Array['from'](_0x5a8c32['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x270dea,data:_0x551e5f}of _0xca4c4a){const {group:_0x34cc96}=_0x590538['_splitMarkerName'](_0x270dea);if('suggestion'!==_0x34cc96||!_0x551e5f['newRange'])continue;const _0x5ac388=_0x551e5f['newRange'],_0x64a215=_0x5ac388['end']['nodeBefore'];if(!_0x64a215||!_0x64a215['is']('element','title-content'))continue;if(!_0x5ac388['start']['isTouching'](_0x5ac388['end']))continue;const _0x5fdd7b=_0x5a8c32['model']['schema']['getNearestSelectionRange'](_0x5ac388['end'],'forward');if(_0x5fdd7b&&_0x5fdd7b['isCollapsed']){const _0x41425b=_0x1e8b31['createRange'](_0x5ac388['start'],_0x5fdd7b['start']);_0x41425b['isEqual'](_0x5ac388)||(_0x1e8b31['updateMarker'](_0x270dea,{'range':_0x41425b}),_0x468f95=!0x0);}_0x468f95||(_0x1e8b31['removeMarker'](_0x270dea),_0x468f95=!0x0);}return _0x468f95;});}}class Bt extends _0x5a19c7{['afterInit'](){const _0xc4ddcd=this['editor'],_0x2d1859=_0xc4ddcd['plugins']['get']('TrackChangesEditing');_0xc4ddcd['plugins']['has']('UndoEditing')&&(_0x2d1859['enableCommand']('undo'),_0x2d1859['enableCommand']('redo'));}}class xt extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x4644d7=this['editor'];if(!_0x4644d7['plugins']['has']('TableCaptionEditing'))return;_0x4644d7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5a19c7{['tableProperties'];['tableCellProperties'];constructor(_0x3cff1a){super(_0x3cff1a),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 _0x29bda5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1fb00d of this['tableProperties'])_0x29bda5['enableCommand'](_0x1fb00d,(_0xddd4b8,_0x34ce9a)=>{const _0x34cfee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1fb00d,[_0x34cfee],this['tableProperties'],'tableProperties',_0xddd4b8,_0x34ce9a);});_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29bda5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x42b663,_0x555802)=>this['handleDiscardAction'](this['tableProperties'],_0x42b663,_0x555802)),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14a177 of this['tableCellProperties'])_0x29bda5['enableCommand'](_0x14a177,(_0x55da23,_0x22809e)=>{const _0x2d2705=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14a177,_0x2d2705,this['tableCellProperties'],'tableCellProperties',_0x55da23,_0x22809e);});_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29bda5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x164175,_0x5ea594)=>this['handleDiscardAction'](this['tableCellProperties'],_0x164175,_0x5ea594)),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x29bda5['descriptionFactory']['registerDescriptionCallback'](_0x3d6c2a=>this['handleSuggestionDescription'](_0x3d6c2a));}['_handlePropertyChange'](_0x4a806b,_0x305d7e,_0x377c32,_0x2cac30,_0x864469,_0x1f1d64){const _0xc31ece=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f1d64['batch'],()=>{for(const _0x1adceb of _0x305d7e){if(this['_getSuggestion'](_0x1adceb,_0x2cac30))_0x864469(_0x1f1d64);else{const _0x1025ce={};for(const _0x527f45 of _0x377c32){const _0x36f784=_0x1adceb['getAttribute'](_0x527f45);void 0x0!==_0x36f784&&(_0x1025ce[_0x527f45]=_0x36f784);}_0x864469(_0x1f1d64),_0xc31ece['markBlockFormat'](_0x1adceb,{'commandParams':[_0x1025ce]},[],_0x2cac30);}}});}['handleDiscardAction'](_0x12dfdc,_0x19db78,_0xe918a0){const _0x5b4410=_0x19db78[0x0]['start']['nodeAfter'],_0x11af91=_0xe918a0['commandParams'][0x0];this['editor']['model']['change'](_0x2c8458=>{for(const _0x2d1287 of _0x12dfdc)void 0x0!==_0x11af91[_0x2d1287]?_0x2c8458['setAttribute'](_0x2d1287,_0x11af91[_0x2d1287],_0x5b4410):_0x2c8458['removeAttribute'](_0x2d1287,_0x5b4410);});}['handleSuggestionDescription'](_0x5e9f96){if(_0x5e9f96['data'])switch(_0x5e9f96['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'](_0x591217,_0x4c9b33){const _0xac94b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43cab0 of _0xac94b['getSuggestions']({'skipNotAttached':!0x0})){const _0xb24e52=_0x43cab0['getContainedElement']();if(_0x43cab0['subType']===_0x4c9b33&&_0xb24e52===_0x591217)return _0x43cab0;}return null;}}const m='$elementName';class p extends _0x5a19c7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39c210,_0x36e86d,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(_0x480490){function _0x3413e5(_0x321b32){return _0x321b32['map'](_0x58eaef=>String['fromCharCode'](_0x58eaef))['join']('');}super(_0x480490),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x13cd31,_0x388c61,_0x596a71,_0x713937)=>{this['_model']['change'](()=>{for(const _0x3c9ee6 of[..._0x713937,..._0x596a71])this['_model']['markers']['has'](_0x3c9ee6)&&_0x480490['editing']['reconvertMarker'](_0x3c9ee6);});}),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']=_0x480490['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(),_0x480490['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x480490['config']['get']('trackChanges.trackFormatChanges'),_0x480490['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x480490['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x480490,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3413e5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3413e5([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x38]);}['init'](){const _0x521814=this['editor'],_0x10019c=(_0x5d6b41,_0x91d76c)=>{if('attribute'!=_0x5d6b41)return'ck-suggestion-marker-'+_0x5d6b41;const _0x4b24cd=_0x91d76c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4b24cd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x521814['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3f04da=>{const {id:_0x1c3ce7,authorId:_0x372bec,type:_0x12f63c,subType:_0x1503b1}=this['_splitMarkerName'](_0x3f04da['markerName']),_0x3e62d6=['ck-suggestion-marker',_0x10019c(_0x12f63c,_0x1503b1)];let _0x4daa7f=0xbb8;return this['activeMarkers']['includes'](_0x3f04da['markerName'])&&(_0x3e62d6['push']('ck-suggestion-marker--active'),_0x4daa7f=0xbc2),'deletion'==_0x12f63c&&(_0x4daa7f+=0x5),{'classes':_0x3e62d6,'attributes':{'data-suggestion':_0x1c3ce7,'data-author-id':_0x372bec},'priority':_0x4daa7f};}}),_0x521814['conversion']['for']('dataDowncast')['add'](_0x38e7b2=>{_0x38e7b2['on']('addMarker:suggestion',(_0xd2163f,_0x434c7a,_0x26d941)=>{if(!_0x26d941['options']['showSuggestionHighlights'])return;const _0xea7407=_0x434c7a['item'];if(!_0xea7407)return;const _0x493333=_0x26d941['mapper']['toViewElement'](_0xea7407);_0x521814['model']['schema']['isObject'](_0xea7407)&&_0x493333&&!_0x493333['getCustomProperty']('widget')&&_0x493333['is']('containerElement')&&_0x365e95(_0x493333,_0x26d941['writer']);},{'priority':'high'});}),_0x521814['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4eeb1f,_0x27472d)=>{if(!_0x27472d['options']['showSuggestionHighlights'])return null;const {type:_0x46b667,subType:_0x4de29e}=this['_splitMarkerName'](_0x4eeb1f['markerName']);return{'classes':['ck-suggestion-marker',_0x10019c(_0x46b667,_0x4de29e)],'priority':0xbb8};}});const _0x4dab1f=({showActiveMarkers:_0xc64993=!0x0,isAttributeSuggestion:_0x104935=!0x1}={})=>(_0x529503,_0x479fb5,_0x2f1471)=>{if(!_0x479fb5['item'])return;const {id:_0x3a7a41,authorId:_0x47f544}=this['_splitMarkerName'](_0x479fb5['markerName']);if(_0x104935){const _0x2f5abc=this['_suggestions']['get'](_0x3a7a41),_0x17f22f=this['_getAttributeKey'](_0x2f5abc);if(!this['_isBlockAttribute'](_0x17f22f))return;}if(_0x479fb5['item']['is']('selection'))return void _0x2f1471['consumable']['consume'](_0x479fb5['item'],_0x529503['name']);const _0x33d92e=_0x2f1471['mapper']['toViewElement'](_0x479fb5['item']);if(_0x479fb5['item']['is']('element')&&_0x521814['model']['schema']['isBlock'](_0x479fb5['item'])&&!_0x33d92e['getCustomProperty']('addHighlight')){_0x2f1471['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x33d92e),_0x2f1471['writer']['setAttribute']('data-suggestion',_0x3a7a41,_0x33d92e),_0x2f1471['writer']['setAttribute']('data-author-id',_0x47f544,_0x33d92e),_0x2f1471['mapper']['bindElementToMarker'](_0x33d92e,_0x479fb5['markerName']),_0xc64993&&(this['activeMarkers']['includes'](_0x479fb5['markerName'])?_0x2f1471['writer']['addClass']('ck-suggestion-marker--active',_0x33d92e):_0x2f1471['writer']['removeClass']('ck-suggestion-marker--active',_0x33d92e));for(const _0x152717 of _0x521814['model']['createRangeIn'](_0x479fb5['item'])['getItems']())_0x2f1471['consumable']['consume'](_0x152717,_0x529503['name']);_0x2f1471['consumable']['consume'](_0x479fb5['item'],_0x529503['name']);}};_0x521814['conversion']['for']('dataDowncast')['add'](_0x557ed5=>{_0x557ed5['on']('addMarker:suggestion:formatBlock',(_0xae2fc3,_0x1380ef,_0x18d68a)=>{_0x18d68a['options']['showSuggestionHighlights']&&_0x4dab1f({'showActiveMarkers':!0x1})(_0xae2fc3,_0x1380ef,_0x18d68a);},{'priority':'highest'});}),_0x521814['conversion']['for']('dataDowncast')['add'](_0x3c4151=>{_0x3c4151['on']('addMarker:suggestion:attribute',(_0x6e92d1,_0x5aa70f,_0x1b8cc9)=>{_0x1b8cc9['options']['showSuggestionHighlights']&&_0x4dab1f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6e92d1,_0x5aa70f,_0x1b8cc9);},{'priority':'highest'});}),_0x521814['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4fe7ce,_0x5c2085)=>_0x5c2085['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4fe7ce['substr'](0xb)}}),_0x521814['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41220f,{writer:_0x4f9eae})=>{let _0x5c625a='suggestion:'+_0x41220f['getAttribute']('suggestion-type')+':'+_0x41220f['getAttribute']('id');return _0x41220f['getAttribute']('marker-count')&&(_0x5c625a+=':'+_0x41220f['getAttribute']('marker-count')),_0x4f9eae['createElement']('$marker',{'data-name':_0x5c625a});}}),_0x521814['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x521814['conversion']['for']('editingDowncast')['add'](_0xd602ed=>{_0xd602ed['on']('addMarker:suggestion:formatBlock',_0x4dab1f(),{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x2f5bb0=>{_0x2f5bb0['on']('addMarker:suggestion:attribute',_0x4dab1f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x1c11ea=>{_0x1c11ea['on']('removeMarker:suggestion:formatBlock',(_0x1647ac,_0x4fc6ec,_0x10d37e)=>{const _0x44d52b=_0x10d37e['mapper']['markerNameToElements'](_0x4fc6ec['markerName']);if(_0x44d52b){for(const _0x3fb4c1 of _0x44d52b)_0x3fb4c1['getCustomProperty']('addHighlight')||(_0x10d37e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fb4c1),_0x10d37e['writer']['removeAttribute']('data-suggestion',_0x3fb4c1),_0x10d37e['writer']['removeAttribute']('data-author-id',_0x3fb4c1),_0x10d37e['mapper']['unbindElementFromMarkerName'](_0x3fb4c1,_0x4fc6ec['markerName']));}},{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x486248=>{_0x486248['on']('removeMarker:suggestion:attribute',(_0x585762,_0x588d21,_0x5c0654)=>{const _0x1c1708=_0x5c0654['mapper']['markerNameToElements'](_0x588d21['markerName']);if(!_0x1c1708)return;const {id:_0x2a412a}=this['_splitMarkerName'](_0x588d21['markerName']),_0x4dbddd=this['_suggestions']['get'](_0x2a412a),_0x16e948=this['_getAttributeKey'](_0x4dbddd);if(this['_isBlockAttribute'](_0x16e948)){for(const _0x50a2fb of _0x1c1708)_0x50a2fb['getCustomProperty']('addHighlight')||(_0x5c0654['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50a2fb),_0x5c0654['writer']['removeAttribute']('data-suggestion',_0x50a2fb),_0x5c0654['writer']['removeAttribute']('data-author-id',_0x50a2fb),_0x5c0654['mapper']['unbindElementFromMarkerName'](_0x50a2fb,_0x588d21['markerName']));}},{'priority':'high'});}),_0x521814['model']['document']['registerPostFixer'](_0x5be28f=>{let _0x428ab8=!0x1;const _0xe0d833=Array['from'](_0x521814['model']['document']['differ']['getChangedMarkers']()),_0x17a1ea=new Set();for(const {name:_0x485e78,data:_0x339552}of _0xe0d833){const {group:_0x5e537d,type:_0x3b1170,subType:_0x811dd8,id:_0x1ae4c7}=this['_splitMarkerName'](_0x485e78);if('suggestion'!==_0x5e537d)continue;const _0xb45df9=this['_suggestions']['get'](_0x1ae4c7);if(null!=_0x339552['newRange']){'formatInline'==_0x3b1170&&(_0x428ab8=_0x428ab8||Ut(_0x339552['newRange'],_0x485e78,_0x5be28f,_0x521814['model']['schema']));const _0x61a873='attribute'==_0x3b1170&&this['_isBlockAttribute'](_0x811dd8['split']('|')[0x0]);if(_0x339552['newRange']['isCollapsed']||'$graveyard'==_0x339552['newRange']['root']['rootName']||'formatBlock'==_0x3b1170&&!Ft(_0x339552['newRange'])||_0x61a873&&!Ft(_0x339552['newRange'])||'deletion'==_0x3b1170&&!(!Vt(_0x528c53=_0x339552['newRange'])&&!function(_0x59b34a){return _0x59b34a['start']['parent']==_0x59b34a['end']['nodeBefore']&&_0x59b34a['start']['isAtEnd'];}(_0x528c53)))_0x5be28f['removeMarker'](_0x485e78),_0x428ab8=!0x0;else{if(!_0xb45df9||!_0xb45df9['isInContent'])continue;if(_0x339552['newRange']&&_0x339552['oldRange']&&_0x339552['newRange']['isEqual'](_0x339552['oldRange']))continue;_0x17a1ea['add'](_0xb45df9);}}}var _0x528c53;return _0x17a1ea['size']>0x0&&(_0x428ab8=!!this['_joinWithAdjacentSuggestions'](_0x17a1ea)||_0x428ab8),_0x428ab8;}),_0x521814['model']['document']['registerPostFixer'](_0x9826ee=>{let _0x5be6f4=!0x1;for(const _0x2123d4 of _0x521814['model']['document']['differ']['getChanges']())if('insert'==_0x2123d4['type'])for(const _0x51d14d of this['_suggestions']['values']()){if(_0x51d14d['isMultiRange']||!_0x51d14d['isInContent'])continue;const _0x2e0ca1='formatBlock'==_0x51d14d['type'],_0x5fc26c=this['_getAttributeKey'](_0x51d14d),_0x1a4539=_0x5fc26c&&this['_isBlockAttribute'](_0x5fc26c);if(!_0x2e0ca1&&!_0x1a4539)continue;const _0x274d14=_0x51d14d['getFirstRange']();if(_0x274d14['start']['parent']!=_0x274d14['end']['parent']&&!_0x274d14['end']['isAtEnd']){const _0x46304b=_0x521814['model']['createPositionAt'](_0x274d14['start']['nodeAfter'],'end'),_0x2b3b3e=_0x521814['model']['createRange'](_0x274d14['start'],_0x46304b);_0x9826ee['updateMarker'](_0x51d14d['getFirstMarker'](),{'range':_0x2b3b3e}),_0x5be6f4=!0x0;}}return _0x5be6f4;}),_0x521814['model']['document']['registerPostFixer'](_0x1eb0f4=>this['_processAttributeChanges'](_0x1eb0f4)),_0x521814['model']['document']['registerPostFixer'](_0x1f0135=>!_0x1f0135['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f0135)),_0x521814['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x521814['model']['document']['on']('change:data',(_0x30f9e9,_0x2e8e72)=>{if(!_0x2e8e72['isLocal']||_0x2e8e72['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dfd51=_0x521814['model']['document']['differ']['getChanges']();if(0x0==_0x5dfd51['length'])return;const _0x5be173=[],_0x4ccf6c=_0x5dfd51['filter'](_0x5f518e=>'attribute'==_0x5f518e['type']),_0x58800b=_0x5dfd51['filter'](_0x34cb6b=>'insert'==_0x34cb6b['type']&&'$text'!=_0x34cb6b['name']);for(const _0x4478c7 of _0x4ccf6c)this['_isRegisteredAttribute'](_0x4478c7['attributeKey'])&&_0x5be173['push']({'key':_0x4478c7['attributeKey'],'newValue':_0x4478c7['attributeNewValue'],'oldValue':_0x4478c7['attributeOldValue'],'range':Pt(_0x4478c7['range'],_0x521814['model'])});for(const _0x4d484e of _0x58800b){if('rename'!=_0x4d484e['action']&&'refresh'!=_0x4d484e['action'])continue;const _0x50697e=Lt(_0x4d484e['position']['nodeAfter'],_0x521814['model']),_0x41be90=_0x4d484e['before'];'rename'==_0x4d484e['action']&&_0x5be173['push']({'key':m,'newValue':_0x4d484e['name'],'oldValue':_0x41be90['name'],'range':_0x50697e});for(const [_0x35c61a,_0x4d9d1f]of _0x41be90['attributes']){if(!this['_isRegisteredAttribute'](_0x35c61a))continue;const _0x31db42=_0x4d484e['attributes']['get'](_0x35c61a);_0x4d9d1f!==_0x31db42&&_0x5be173['push']({'key':_0x35c61a,'newValue':_0x31db42,'oldValue':_0x4d9d1f,'range':_0x50697e});}for(const [_0x530403,_0x57b98d]of _0x4d484e['attributes'])this['_isRegisteredAttribute'](_0x530403)&&(_0x41be90['attributes']['has'](_0x530403)||_0x5be173['push']({'key':_0x530403,'newValue':_0x57b98d,'oldValue':null,'range':_0x50697e}));}0x0!=_0x5be173['length']&&_0x521814['model']['enqueueChange'](_0x2e8e72,_0x3dcf7a=>{const _0x84111d=_0x429a07();for(const {range:_0x2428b5,key:_0x29fcaf,oldValue:_0x22d248,newValue:_0x451d02}of _0x5be173)this['markAttributeChange'](_0x2428b5,_0x29fcaf,_0x22d248,_0x451d02,{'groupId':_0x84111d});this['_reduceExistingSuggestions'](_0x3dcf7a,_0x5be173);});},{'priority':'lowest'}),_0x521814['model']['markers']['on']('update:suggestion',(_0x57d98b,_0x8ff90f,_0xa99c5a)=>{if(null==_0xa99c5a){const {id:_0x2ba7f9}=this['_splitMarkerName'](_0x8ff90f['name']),_0x3f4a18=this['_suggestions']['get'](_0x2ba7f9);_0x3f4a18&&_0x3f4a18['addMarkerName'](_0x8ff90f['name']);}}),_0x521814['model']['document']['on']('change:data',()=>{const _0x5f113f=Array['from'](_0x521814['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1735ed=>'suggestion'===this['_splitMarkerName'](_0x1735ed['name'])['group']);if(0x0===_0x5f113f['length'])return;_0x5f113f['sort']((_0x46af5a,_0x3d1845)=>{const _0x2e3c1d=_0x46af5a['data']['oldRange'],_0x214449=_0x3d1845['data']['oldRange'];return null===_0x2e3c1d&&null===_0x214449?0x0:null===_0x2e3c1d&&null!==_0x214449?-0x1:null!==_0x2e3c1d&&null===_0x214449?0x1:_0x2e3c1d['start']['isBefore'](_0x214449['start'])?-0x1:0x1;});const _0x20e3aa=new Set(),_0x16d513=new Set();for(const {name:_0x5f4a55,data:_0x5ac179}of _0x5f113f){const {id:_0x53a2dd}=this['_splitMarkerName'](_0x5f4a55);if(null===_0x5ac179['oldRange']){const _0x4b6c59=this['_handleNewSuggestionMarker'](_0x5f4a55);_0x16d513['add'](_0x4b6c59);}else{const _0x5246a6=this['_suggestions']['get'](_0x53a2dd);null!==_0x5ac179['newRange']||_0x5246a6['isInContent']?(_0x20e3aa['add'](_0x5246a6['head']),_0x16d513['add'](_0x5246a6)):this['_removeSuggestion'](_0x5246a6);}}_0x16d513['size']>0x0&&this['_refreshSuggestionsChain'](_0x16d513);for(const _0x2cc85d of _0x20e3aa)this['fire']('suggestionChanged',_0x2cc85d);}),_0x521814['model']['on']('applyOperation',(_0x1f9bff,_0x5bc339)=>{const _0x342d23=_0x5bc339[0x0];if(!this['_suggestions']['size'])return;if(!_0x342d23['isDocumentOperation'])return;if(_0x342d23['batch']['isUndo']||!_0x342d23['batch']['isLocal'])return;let _0x29261d,_0x376ff4;switch(_0x342d23['type']){case'insert':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['position']),_0x376ff4=_0x29261d['getShiftedBy'](_0x342d23['howMany']);break;case'split':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['splitPosition']),_0x376ff4=_0x521814['model']['createPositionAt'](_0x342d23['moveTargetPosition']);break;case'move':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['targetPosition']),_0x376ff4=_0x29261d['getShiftedBy'](_0x342d23['howMany']);break;default:return;}const _0x576f18=_0x521814['model']['createRange'](_0x29261d,_0x376ff4);_0x521814['model']['change'](()=>{for(const {suggestion:_0x5d1e5a,meta:_0x59da18}of this['_findSuggestions'](_0x576f18)){if(_0x5d1e5a['isMultiRange'])continue;if('formatInline'==_0x5d1e5a['type'])continue;const _0x3493d1=this['_getAttributeKey'](_0x5d1e5a);if(_0x3493d1&&this['_isBlockAttribute'](_0x3493d1)&&'split'!=_0x342d23['type'])continue;const _0x49f081=_0x5d1e5a['data']&&_0x5d1e5a['data']['multipleBlocks'];('formatBlock'!=_0x5d1e5a['type']||'split'==_0x342d23['type']&&!_0x49f081)&&(_0x59da18['containsRangeInObject']||'insertion'==_0x5d1e5a['type']&&_0x59da18['isOwn']||_0x5d1e5a['getFirstRange']()['containsRange'](_0x576f18)&&this['_breakSuggestionMarker'](_0x5d1e5a,_0x29261d,_0x376ff4));}});},{'priority':'lowest'}),_0x521814['model']['on']('deleteContent',(_0x5960a0,_0x54695b)=>{const _0x287202=_0x54695b[0x0],_0xe9f951=_0x54695b[0x1];if(_0xe9f951&&_0xe9f951['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x287202['isCollapsed'])return;const _0x77c6e=_0x521814['model']['schema'],{start:_0x574d57,end:_0x260856}=_0x287202['getFirstRange'](),_0x1625bf=_0x574d57['nodeAfter']&&_0x77c6e['isLimit'](_0x574d57['nodeAfter'])?null:_0x77c6e['getNearestSelectionRange'](_0x574d57,'forward'),_0x2a1224=_0x260856['nodeBefore']&&_0x77c6e['isLimit'](_0x260856['nodeBefore'])?null:_0x77c6e['getNearestSelectionRange'](_0x260856,'backward'),_0x163571=_0x521814['model']['createRange'](_0x1625bf?_0x1625bf['start']:_0x574d57,_0x2a1224?_0x2a1224['end']:_0x260856);_0x521814['model']['change'](_0x57febf=>{this['markDeletion'](_0x163571);const _0x551ff5=_0x521814['model']['schema']['getNearestSelectionRange'](_0x163571['start']);_0x287202['is']('documentSelection')?_0x57febf['setSelection'](_0x551ff5):_0x287202['setTo'](_0x551ff5);}),_0x5960a0['stop']();},{'priority':_0x1f1c0f['normal']+0xa}),_0x521814['model']['on']('insertContent',(_0x386d16,_0x5b4c2c)=>{const _0x48ccef=_0x5b4c2c[_0x5b4c2c['length']-0x1];_0x48ccef&&_0x48ccef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x521814['model']['change'](()=>{let _0x54db32=_0x521814['model']['insertContent'](_0x5b4c2c[0x0],_0x5b4c2c[0x1],_0x5b4c2c[0x2],{'forceDefaultExecution':!0x0});if(!_0x54db32)return;_0x386d16['return']=_0x54db32['clone']();const _0x1a3069=_0x54db32['end']['nodeBefore'],_0x2bb7ba=_0x521814['model']['schema'];_0x1a3069&&_0x2bb7ba['isBlock'](_0x1a3069)&&!_0x2bb7ba['isObject'](_0x1a3069)&&(_0x54db32=_0x521814['model']['createRange'](_0x54db32['start'],_0x521814['model']['createPositionAt'](_0x1a3069,'end'))),this['markInsertion'](_0x54db32);}),_0x386d16['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x7d4c61=new x(_0x521814,this['_suggestions']);_0x521814['commands']['add']('acceptSuggestion',_0x7d4c61),this['enableCommand']('acceptSuggestion');const _0x52ee84=new R(_0x521814,this['_suggestions']);_0x521814['commands']['add']('discardSuggestion',_0x52ee84),this['enableCommand']('discardSuggestion'),_0x521814['commands']['add']('acceptAllSuggestions',new E(_0x521814,_0x7d4c61,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x521814['commands']['add']('discardAllSuggestions',new E(_0x521814,_0x52ee84,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x521814['commands']['add']('acceptSelectedSuggestions',new O(_0x521814,_0x7d4c61,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x521814['commands']['add']('discardSelectedSuggestions',new O(_0x521814,_0x52ee84,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b0499=_0x521814['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b0499,'addComment',(_0x5d51a0,{threadId:_0x15f11d})=>{const _0x50137c=this['_suggestions']['get'](_0x15f11d);_0x50137c&&_0x50137c['commentThread']&&0x1===_0x50137c['commentThread']['length']&&this['_updateSuggestionData'](_0x15f11d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b0499,'removeComment',(_0x22cbf6,{threadId:_0x40cb7c})=>{const _0x214c61=this['_suggestions']['get'](_0x40cb7c);_0x214c61&&_0x214c61['commentThread']&&!_0x214c61['commentThread']['length']&&this['_updateSuggestionData'](_0x40cb7c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x41e137){if(this['_adapter'])throw new _0x4a7393('track-changes-adapter-already-set',this);this['_adapter']=_0x41e137;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x28d1c4=!0x1,toJSON:_0x5badc1=!0x1}={}){const _0x2fbcbb=[];for(const _0x14db72 of this['_suggestions']['values']())_0x28d1c4&&!_0x14db72['isInContent']||_0x2fbcbb['push'](_0x14db72);return _0x5badc1?_0x2fbcbb['map'](_0x502d5e=>_0x502d5e['toJSON']()):_0x2fbcbb;}['getSuggestion'](_0x418143){const _0x1bd2d9=this['_suggestions']['get'](_0x418143);if(!_0x1bd2d9)throw new _0x4a7393('track-changes-suggestion-not-found',this);return _0x1bd2d9;}['hasSuggestion'](_0x16604f){return this['_suggestions']['has'](_0x16604f);}['addSuggestionData'](_0x42be90){const {authorId:_0x167b3c,id:_0x55cdbb,attributes:_0x483c06}=_0x42be90,[_0x204188,_0x2ea56e]=_0x42be90['type']['split'](':'),_0x4e597d=this['_suggestions']['get'](_0x55cdbb)||this['_createSuggestion'](_0x204188,_0x2ea56e,_0x55cdbb,_0x167b3c,_0x483c06);if(this['_addThreadToSuggestion'](_0x4e597d),this['_checkSuggestionCorrectness'](_0x4e597d,_0x204188,_0x2ea56e||null,_0x167b3c),_0x4e597d['createdAt']=_0x42be90['createdAt'],_0x4e597d['_isDataLoaded']=!0x0,_0x483c06&&_0x483c06['@external']){const _0x156581=_0x483c06['@external'],_0x40927b=this['_getExternalAuthor'](_0x156581['authorName']);_0x4e597d['authoredAt']=_0x156581['createdAt'],_0x4e597d['author']=_0x40927b,_0x4e597d['isExternal']=!0x0;}else _0x4e597d['authoredAt']=_0x42be90['createdAt'];switch(_0x42be90['data']&&(_0x4e597d['data']=_0x42be90['data']),_0x42be90['attributes']&&(_0x4e597d['attributes']=_0x42be90['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e597d['_saved']=!0x0),this['_suggestionState']['get'](_0x4e597d)){case'notReady':this['_suggestionState']['set'](_0x4e597d,'dataReady');break;case'markerReady':_0x4e597d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4e597d])),this['_refreshSuggestionsChain'](new Set([_0x4e597d])),this['_suggestionState']['set'](_0x4e597d,'ready'),this['fire']('suggestionLoaded',_0x4e597d)):this['_suggestionState']['set'](_0x4e597d,'removed');}return _0x4e597d;}['acceptSuggestion'](_0x5b2b76){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e5047 of _0x5b2b76['getAllAdjacentSuggestions']())_0x4e5047['accept']();});});}['discardSuggestion'](_0x43fd8b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14a0d3 of _0x43fd8b['getAllAdjacentSuggestions']())_0x14a0d3['discard']();});});}['enableCommand'](_0x4aa024,_0x475738){const _0x291fd0=this['editor']['commands']['get'](_0x4aa024);if(!_0x291fd0)throw new _0x4a7393('track-changes-command-not-found',this,{'commandName':_0x4aa024});if(this['_enabledCommands']['has'](_0x291fd0))throw new _0x4a7393('track-changes-enable-command-twice',this,{'commandName':_0x4aa024});this['_enabledCommands']['add'](_0x291fd0),_0x475738&&_0x291fd0['on']('execute',(_0x2c3a3b,_0x545567)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x545567['length']>0x0&&_0x545567[_0x545567['length']-0x1]&&_0x545567[_0x545567['length']-0x1]['forceDefaultExecution']?_0x545567['pop']():(_0x2c3a3b['return']=_0x475738((..._0x2ecf27)=>_0x291fd0['execute'](..._0x2ecf27,{'forceDefaultExecution':!0x0}),..._0x545567),_0x2c3a3b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x163713){let _0x16f493,_0x53c05e;const _0x51666d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16f493=_0x163713();}catch(_0x2708e6){_0x53c05e=_0x2708e6;}return _0x51666d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53c05e&&_0x4a7393['rethrowUnexpectedError'](_0x53c05e,this),_0x16f493;}['markInsertion'](_0x484ebe,_0xcfaae4=null,_0x3c80d5={}){if(_0x484ebe['isCollapsed'])return null;const _0x14df64=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x74032b,meta:_0x22744f}of this['_findSuggestions'](_0x484ebe,'insertion'))if(_0x22744f['isOwn']){if(!_0x22744f['isNextTo']){if(_0x22744f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x74032b,_0x3c80d5))continue;return _0x74032b;}if(qt(_0x74032b,_0x3c80d5))return _0x74032b;this['_breakSuggestionMarker'](_0x74032b,_0x484ebe['start'],_0x484ebe['end']);break;}if(_0xcfaae4==_0x74032b['subType']&&qt(_0x74032b,_0x3c80d5)){const _0x1eab01=_0x74032b['getFirstRange']();return _0x1eab01['start']['isEqual'](_0x484ebe['end'])?this['_setSuggestionRange'](_0x74032b,this['_model']['createRange'](_0x484ebe['start'],_0x1eab01['end'])):this['_setSuggestionRange'](_0x74032b,this['_model']['createRange'](_0x1eab01['start'],_0x484ebe['end'])),_0x74032b;}}const _0x3834b6=_0x429a07(),_0x365f76=_0x14df64['id'],_0x4a4d70=_0xcfaae4?'insertion:'+_0xcfaae4:'insertion',_0xd7de45=this['_setSuggestionData']({'id':_0x3834b6,'type':_0x4a4d70,'createdAt':new Date(),'authorId':_0x365f76,'attributes':_0x3c80d5});return this['_addSuggestionMarker'](_0x4a4d70,_0x3834b6,_0x365f76,_0x484ebe),_0xd7de45;}['markMultiRangeInsertion'](_0x517f7a,_0xa0fdf1='multi',_0x5c384a={}){const _0x474776=this['editor']['plugins']['get']('Users')['me'],_0x29560f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa0fdf1,'join');for(const _0xbeaadd of this['getSuggestions']())if(_0xbeaadd['author']['id']==_0x474776['id']&&'insertion'==_0xbeaadd['type']&&_0xbeaadd['subType']==_0xa0fdf1&&qt(_0xbeaadd,_0x5c384a)&&(_0x29560f(_0xbeaadd['getRanges'](),_0x517f7a)||_0x29560f(_0x517f7a,_0xbeaadd['getRanges']()))){for(const _0x15de14 of _0x517f7a)_0xbeaadd['addRange'](_0x15de14);return _0xbeaadd;}for(const {suggestion:_0x5d3ba1,meta:_0x381cd7}of this['_findSuggestions'](_0x517f7a,'insertion')){if(!_0x381cd7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x381cd7['containsRangeInObject'])continue;if(!qt(_0x5d3ba1,_0x5c384a))continue;let _0x5e32de=!0x0;for(const _0x33a25e of _0x5d3ba1['getRanges']())for(const _0x62f1c3 of _0x517f7a)if(!_0x33a25e['containsRange'](_0x62f1c3)){_0x5e32de=!0x1;break;}if(_0x5e32de)return _0x5d3ba1;}const _0x2e85f7=_0x429a07(),_0x1cbffd=_0x474776['id'],_0xe490c8='insertion:'+_0xa0fdf1,_0x33adc3=this['_setSuggestionData']({'id':_0x2e85f7,'type':_0xe490c8,'createdAt':new Date(),'authorId':_0x1cbffd,'attributes':_0x5c384a});for(const _0x2de6d6 of _0x517f7a)this['_addSuggestionMarker'](_0xe490c8,_0x2e85f7,_0x1cbffd,_0x2de6d6,u['getMultiRangeId']());return _0x33adc3;}['markInlineFormat'](_0x4f6ca7,_0x10d0da,_0x460258=null,_0xa7ac8d={}){if(_0x460258=_0x460258||Gt(_0x10d0da),_0x4f6ca7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x545443=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460258,'accept');return this['forceDefaultExecution'](()=>_0x545443([_0x4f6ca7],_0x10d0da,_0xa7ac8d)),null;}const _0x55eafc=this['editor']['plugins']['get']('Users')['me'],_0x2a2232=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x304867,meta:_0x59eedf}of this['_findSuggestions'](_0x4f6ca7,'insertion'))_0x59eedf['isOwn']&&!_0x59eedf['isInsideObject']&&_0x2a2232['push'](..._0x304867['getRanges']());}const _0x1cccad=function(_0x547843,_0x4568ea){const _0x2217d1=[];for(const _0x47267c of _0x4568ea){const _0x42b11a=_0x547843['getIntersection'](_0x47267c);_0x42b11a&&_0x2217d1['push'](_0x42b11a);}return _0x2217d1;}(_0x4f6ca7,_0x2a2232),_0x29fff5=function(_0x1ac802,_0x5f1580){const _0x27a8f0=[_0x1ac802];for(const _0x1bbf8b of _0x5f1580){let _0x59803b=0x0;for(;_0x59803b<_0x27a8f0['length'];){const _0x242340=_0x27a8f0[_0x59803b]['getDifference'](_0x1bbf8b);_0x27a8f0['splice'](_0x59803b,0x1,..._0x242340),_0x59803b+=_0x242340['length'];}}return _0x27a8f0;}(_0x4f6ca7,_0x2a2232);_0x1cccad['length']&&this['_model']['change'](()=>{for(const _0x4905c8 of _0x1cccad){const _0x4619ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460258,'accept');this['forceDefaultExecution'](()=>_0x4619ad([_0x4905c8],_0x10d0da,_0xa7ac8d));}});for(const _0x456134 of _0x29fff5){let _0x446321=null,_0x5ba40a=_0x456134['start'],_0x5cdbf9=_0x456134['end'];for(const {suggestion:_0x5d823e,meta:_0x2863e2}of this['_findSuggestions'](_0x456134,'formatInline')){if(!_0x2863e2['isOwn'])continue;if(_0x5d823e['subType']!=_0x460258)continue;if(!qt(_0x5d823e,_0xa7ac8d))continue;const _0x514c7a=_0x5d823e['getFirstRange']();if(_0x514c7a['containsRange'](_0x456134,!0x0))return null;_0x5ba40a=_0x5ba40a['isBefore'](_0x514c7a['start'])?_0x5ba40a:_0x514c7a['start'],_0x5cdbf9=_0x5cdbf9['isAfter'](_0x514c7a['end'])?_0x5cdbf9:_0x514c7a['end'],_0x446321?_0x514c7a['start']['isBefore'](_0x446321['getFirstRange']()['start'])?(_0x446321['removeMarkers'](),_0x446321=_0x5d823e):_0x5d823e['removeMarkers']():_0x446321=_0x5d823e;}const _0x221ed3=this['_model']['createRange'](_0x5ba40a,_0x5cdbf9);if(_0x446321)this['_setSuggestionRange'](_0x446321,_0x221ed3);else{const _0x5e7b5e=_0x429a07(),_0x4334c4=_0x55eafc['id'];this['_setSuggestionData']({'id':_0x5e7b5e,'type':'formatInline:'+_0x460258,'data':_0x10d0da,'createdAt':new Date(),'authorId':_0x4334c4,'attributes':_0xa7ac8d}),this['_addSuggestionMarker']('formatInline:'+_0x460258,_0x5e7b5e,_0x4334c4,_0x221ed3);}}return null;}['markBlockFormat'](_0xd9d56c,_0x4b4dfd,_0x54d971=[],_0x380ad8=null,_0x36ffb9={}){_0x4b4dfd['formatGroupId']||(_0x4b4dfd['formatGroupId']=_0x4b4dfd['commandName']),_0x4b4dfd['multipleBlocks']=_0xd9d56c['is']('range'),_0x380ad8=_0x380ad8||Gt(_0x4b4dfd);const _0xdb8fa4=_0x54d971['map'](_0x8c1afc=>Lt(_0x8c1afc,this['_model'])),_0x2f424e=_0xd9d56c['is']('range')?_0xd9d56c:Lt(_0xd9d56c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x595aa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380ad8,'accept');return this['forceDefaultExecution'](()=>_0x595aa1([_0x2f424e],_0x4b4dfd,_0x36ffb9)),null;}_0xdb8fa4['push'](_0x2f424e);let _0x2a4ea2=!0x0;for(const _0x34551a of _0xdb8fa4)if(!this['_rangeIsInLocalUserInsertion'](_0x34551a)){_0x2a4ea2=!0x1;break;}if(_0x2a4ea2&&'always'!==this['_trackFormatChanges']){const _0xb2fa4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380ad8,'accept');return this['forceDefaultExecution'](()=>_0xb2fa4d([_0x2f424e],_0x4b4dfd,_0x36ffb9)),null;}let _0x1fe140=null,_0x302924=_0x2f424e['start'],_0x5bb583=_0x2f424e['end'];for(const {suggestion:_0x4e5636,meta:_0x31d0af}of this['_findSuggestions'](_0x2f424e,'formatBlock')){if(!_0x31d0af['isOwn'])continue;if(_0x31d0af['isNextTo']||_0x31d0af['containsRangeInObject']||_0x31d0af['isInsideObject'])continue;if(_0x4e5636['data']['formatGroupId']!=_0x4b4dfd['formatGroupId'])continue;if(!qt(_0x4e5636,_0x36ffb9))continue;const _0x244054=_0x4e5636['getFirstRange']();if(_0x4e5636['subType']==_0x380ad8){if(_0x244054['containsRange'](_0x2f424e,!0x0))return null;_0x302924=_0x302924['isBefore'](_0x244054['start'])?_0x302924:_0x244054['start'],_0x5bb583=_0x5bb583['isAfter'](_0x244054['end'])?_0x5bb583:_0x244054['end'],_0x1fe140?_0x244054['start']['isBefore'](_0x1fe140['getFirstRange']()['start'])?(_0x1fe140['removeMarkers'](),_0x1fe140=_0x4e5636):_0x4e5636['removeMarkers']():_0x1fe140=_0x4e5636;}else{const _0x3a32bd=_0x2f424e['getIntersection'](_0x244054);this['_cutOutSuggestionMarker'](_0x4e5636,_0x3a32bd);}}const _0x4a7b9f=this['editor']['plugins']['get']('Users')['me'],_0x2b5f43=_0x429a07(),_0x2b390e=_0x4a7b9f['id'];if(_0x1fe140)return this['_setSuggestionRange'](_0x1fe140,this['_model']['createRange'](_0x302924,_0x5bb583)),_0x1fe140;{const _0x3bf47a=this['_setSuggestionData']({'id':_0x2b5f43,'type':'formatBlock:'+_0x380ad8,'data':_0x4b4dfd,'createdAt':new Date(),'authorId':_0x2b390e,'attributes':_0x36ffb9});return this['_addSuggestionMarker']('formatBlock:'+_0x380ad8,_0x2b5f43,_0x2b390e,this['_model']['createRange'](_0x302924,_0x5bb583)),_0x3bf47a;}}['markMultiRangeBlockFormat'](_0x28a140,_0x5829c5,_0x591509=[],_0x17630f=null,_0x59ff98={}){_0x5829c5['formatGroupId']||(_0x5829c5['formatGroupId']=_0x5829c5['commandName']);const _0x302a25=_0x28a140[0x0];_0x5829c5['multipleBlocks']=_0x302a25['is']('range'),_0x17630f=_0x17630f||Gt(_0x5829c5);const _0x884013=_0x591509['map'](_0x5581c0=>Lt(_0x5581c0,this['_model'])),_0x435527=_0x302a25['is']('range')?_0x28a140:_0x28a140['map'](_0x1ae339=>Lt(_0x1ae339,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23c2bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'accept');return this['forceDefaultExecution'](()=>_0x23c2bd(_0x435527,_0x5829c5,_0x59ff98)),null;}_0x884013['push'](..._0x435527);let _0x286af2=!0x0;for(const _0x2c656e of _0x884013)if(!this['_rangeIsInLocalUserInsertion'](_0x2c656e)){_0x286af2=!0x1;break;}if(_0x286af2&&'always'!==this['_trackFormatChanges']){const _0x3fe777=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'accept');return this['forceDefaultExecution'](()=>_0x3fe777(_0x435527,_0x5829c5,_0x59ff98)),null;}const _0x2bc02e=this['editor']['plugins']['get']('Users')['me'];for(const _0x23d889 of this['getSuggestions']()){if(_0x23d889['author']['id']!=_0x2bc02e['id'])continue;if('formatBlock'!=_0x23d889['type']||_0x23d889['data']['formatGroupId']!=_0x5829c5['formatGroupId'])continue;if(!qt(_0x23d889,_0x59ff98))continue;const _0x1e2789=_0x23d889['subType']==_0x17630f;for(let _0x5750c9=0x0;_0x5750c9<_0x435527['length'];_0x5750c9++){const _0x210b5d=_0x435527[_0x5750c9];for(const _0x5dc052 of _0x23d889['getMarkers']()){const _0x1fc492=_0x5dc052['getRange']();if(_0x210b5d['isEqual'](_0x1fc492)){_0x1e2789?(_0x435527['splice'](_0x5750c9,0x1),_0x5750c9--):_0x23d889['removeMarker'](_0x5dc052['name']);break;}}}}if(0x0==_0x435527['length'])return null;const _0x1fff94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'join');for(const _0xbb6a3f of this['getSuggestions']())if(_0xbb6a3f['author']['id']==_0x2bc02e['id']&&'formatBlock'==_0xbb6a3f['type']&&_0xbb6a3f['data']['formatGroupId']==_0x5829c5['formatGroupId']&&_0xbb6a3f['subType']==_0x17630f&&qt(_0xbb6a3f,_0x59ff98)&&(_0x1fff94(_0xbb6a3f['getRanges'](),_0x435527)||_0x1fff94(_0x435527,_0xbb6a3f['getRanges']()))){for(const _0x3afb87 of _0x435527)_0xbb6a3f['addRange'](_0x3afb87);return _0xbb6a3f;}const _0x3bf25d=_0x429a07(),_0x18d912=_0x2bc02e['id'],_0x374909='formatBlock:'+_0x17630f,_0x5a7cd9=this['_setSuggestionData']({'id':_0x3bf25d,'type':_0x374909,'data':_0x5829c5,'createdAt':new Date(),'authorId':_0x18d912,'attributes':_0x59ff98});for(const _0x3da4fd of _0x435527)this['_addSuggestionMarker'](_0x374909,_0x3bf25d,_0x18d912,_0x3da4fd,u['getMultiRangeId']());return _0x5a7cd9;}['markDeletion'](_0x106007,_0x51b67a=null,_0x4ce667={}){if(_0x106007['isCollapsed'])return null;const _0x19be97=this['editor']['plugins']['get']('Users')['me'],_0x1454e1=new _0x31c9bf(_0x106007['start'],_0x106007['end']);for(const {suggestion:_0xb930a2,meta:_0x1601a9}of this['_findSuggestions'](_0x1454e1,'insertion'))if(_0x1601a9['isOwn']&&!_0x1601a9['isNextTo']){if(_0xb930a2['isMultiRange']){const _0x1d01da=_0xb930a2['getRanges']()['filter'](_0x25e2b8=>'$graveyard'!=_0x25e2b8['root']['rootName']);_0x1d01da['every'](_0x2ee55e=>_0x1454e1['containsRange'](_0x2ee55e,!0x0))&&_0xb930a2['discard']();if(_0x1d01da['some'](_0x2625eb=>_0x2625eb['containsRange'](_0x1454e1,!0x0))){const _0x277555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51b67a,'accept');return this['forceDefaultExecution'](()=>_0x277555([_0x1454e1],null,_0x4ce667)),null;}}else{const _0x251d5a=_0x1454e1['getIntersection'](_0xb930a2['getFirstRange']());null!==_0x251d5a&&_0xb930a2['_onDiscard']([_0x251d5a],null,_0x4ce667);}}if(_0x1454e1['detach'](),_0x1454e1['isCollapsed']||'$graveyard'==_0x1454e1['root']['rootName'])return null;let _0xf78906=null,_0x2f7df7=_0x1454e1['start'],_0x3f307c=_0x1454e1['end'];const _0x398984=this['_findSuggestions'](_0x1454e1,'deletion');for(const {suggestion:_0x395af0,meta:_0x42d6ad}of _0x398984){const _0x518b7b=this['_model']['createRange'](_0x2f7df7,_0x3f307c);if(_0x42d6ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42d6ad['containsRangeInObject']&&!_0x42d6ad['isInsideObject'])){if(_0x395af0['isMultiRange']){if(!qt(_0x395af0,_0x4ce667))continue;let _0x26238d=!0x0;for(const _0xd54ea5 of _0x395af0['getRanges']()){if(_0xd54ea5['containsRange'](_0x518b7b,!0x0))return _0x395af0;_0x518b7b['containsRange'](_0xd54ea5)||(_0x26238d=!0x1);}_0x26238d&&_0x395af0['discard']();}else{const _0x69108e=_0x395af0['getFirstRange']();if(_0x69108e['containsRange'](_0x518b7b,!0x0))return _0x395af0;if(!qt(_0x395af0,_0x4ce667)){_0x518b7b['containsRange'](_0x69108e)?_0x395af0['removeMarkers']():_0x69108e['containsPosition'](_0x2f7df7)?_0x2f7df7=_0x69108e['end']:_0x69108e['containsPosition'](_0x3f307c)&&(_0x3f307c=_0x69108e['start']);continue;}_0x2f7df7=_0x2f7df7['isBefore'](_0x69108e['start'])?_0x2f7df7:_0x69108e['start'],_0x3f307c=_0x3f307c['isAfter'](_0x69108e['end'])?_0x3f307c:_0x69108e['end'],_0x4ce667=Object['assign']({},_0x395af0['attributes']),_0xf78906?_0x69108e['start']['isBefore'](_0xf78906['getFirstRange']()['start'])?(_0xf78906['removeMarkers'](),_0xf78906=_0x395af0):_0x395af0['removeMarkers']():_0xf78906=_0x395af0;}}}if(_0xf78906)return this['_setSuggestionRange'](_0xf78906,this['_model']['createRange'](_0x2f7df7,_0x3f307c)),_0xf78906;{const _0x544c61=_0x429a07(),_0x1c4957=this['_model']['createRange'](_0x2f7df7,_0x3f307c),_0xa578a1=_0x19be97['id'],_0x252f56=_0x51b67a?'deletion:'+_0x51b67a:'deletion',_0xa39181=this['_setSuggestionData']({'id':_0x544c61,'type':_0x252f56,'createdAt':new Date(),'authorId':_0xa578a1,'attributes':_0x4ce667});return this['_addSuggestionMarker'](_0x252f56,_0x544c61,_0xa578a1,_0x1c4957),_0xa39181;}}['markMultiRangeDeletion'](_0x33d895,_0x107976='multi',_0x259f43={}){const _0xde45e8=this['editor']['plugins']['get']('Users')['me'],_0x4cdca5=_0x33d895['map'](_0x519d88=>new _0x31c9bf(_0x519d88['start'],_0x519d88['end'])),_0x3c2bfc=new Set();for(const {suggestion:_0x164418,meta:_0x8ea43f}of this['_findSuggestions'](_0x4cdca5,'insertion'))_0x8ea43f['isOwn']&&!_0x8ea43f['isNextTo']&&_0x3c2bfc['add'](_0x164418);for(const _0x5a42ba of _0x3c2bfc)if(_0x5a42ba['isMultiRange']){const _0x2f380b=_0x5a42ba['getRanges']();(!_0x5a42ba['attributes']||!_0x5a42ba['attributes']['skipNestingCheck'])&&(_0x2f380b['every'](_0x4076ce=>_0x4cdca5['some'](_0x4a602d=>_0x4a602d['containsRange'](_0x4076ce,!0x0)))&&_0x5a42ba['discard']());if(_0x4cdca5['every'](_0x445d41=>_0x2f380b['some'](_0xa52ab9=>_0xa52ab9['containsRange'](_0x445d41,!0x0)))){const _0x5b3a2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'accept');return this['forceDefaultExecution'](()=>_0x5b3a2f(_0x33d895,null,_0x259f43)),null;}}else{const _0x4e3fd0=_0x5a42ba['getFirstRange']();_0x4cdca5['some'](_0x27dde7=>_0x27dde7['containsRange'](_0x4e3fd0,!0x0))&&_0x5a42ba['discard']();if(_0x4cdca5['every'](_0x3b2983=>_0x4e3fd0['containsRange'](_0x3b2983,!0x0))){const _0x28e7ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'accept');return this['forceDefaultExecution'](()=>_0x28e7ec(_0x4cdca5,null,_0x259f43)),null;}}const _0x577f74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'join');let _0x5ca059=null;for(const _0x5c9091 of this['getSuggestions']())if(_0x5c9091['author']['id']==_0xde45e8['id']&&_0x5c9091['isInContent']&&'deletion'==_0x5c9091['type']&&_0x5c9091['subType']==_0x107976&&qt(_0x5c9091,_0x259f43)&&(_0x577f74(_0x5c9091['getRanges'](),_0x4cdca5)||_0x577f74(_0x4cdca5,_0x5c9091['getRanges']()))){if(_0x5ca059){if(_0x5c9091['commentThread']&&_0x5c9091['commentThread']['length'])continue;for(const _0x4e9389 of _0x5c9091['getRanges']())_0x5ca059['isIntersectingWithRange'](_0x4e9389)||_0x5ca059['addRange'](_0x4e9389);_0x5c9091['removeMarkers']();}else{_0x5ca059=_0x5c9091;for(const _0x2318dd of _0x4cdca5)_0x5c9091['isIntersectingWithRange'](_0x2318dd)||_0x5c9091['addRange'](_0x2318dd);}}if(_0x5ca059)return _0x5ca059;_0x3c2bfc['clear']();for(const {suggestion:_0x49d670,meta:_0x15257e}of this['_findSuggestions'](_0x4cdca5,'deletion'))_0x15257e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15257e['containsRangeInObject']&&!_0x15257e['isInsideObject'])&&qt(_0x49d670,_0x259f43)&&_0x3c2bfc['add'](_0x49d670);for(const _0x3b917b of _0x3c2bfc){const _0x174685=_0x3b917b['getRanges']();if(!_0x259f43||!_0x259f43['skipNestingCheck']){if(_0x4cdca5['every'](_0xa98462=>_0x174685['some'](_0x13d6a9=>_0x13d6a9['containsRange'](_0xa98462,!0x0))))return _0x3b917b;}(!_0x3b917b['attributes']||!_0x3b917b['attributes']['skipNestingCheck'])&&(_0x174685['every'](_0x122208=>_0x4cdca5['some'](_0x2a4a63=>_0x2a4a63['containsRange'](_0x122208,!0x0)))&&_0x3b917b['discard']());}const _0x22baa8=_0x429a07(),_0x2cea8e=_0xde45e8['id'],_0x21f4da='deletion:'+_0x107976,_0x210933=this['_setSuggestionData']({'id':_0x22baa8,'type':_0x21f4da,'createdAt':new Date(),'authorId':_0x2cea8e,'attributes':_0x259f43});for(const _0x4d20a3 of _0x4cdca5)_0x4d20a3['detach'](),_0x4d20a3['isCollapsed']||'$graveyard'==_0x4d20a3['root']['rootName']||this['_addSuggestionMarker'](_0x21f4da,_0x22baa8,_0x2cea8e,_0x4d20a3,u['getMultiRangeId']());return _0x210933;}['markAttributeChange'](_0x300128,_0x5d66e5,_0x2072b7,_0x48dd41,_0x3786a6){if(_0x300128['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c2c1f=this['editor']['plugins']['get']('Users')['me']['id'],_0x17940e=Array['from'](this['_suggestions']['values']())['filter'](_0xe725a5=>'attribute'==_0xe725a5['type']&&_0xe725a5['data']['key']==_0x5d66e5&&_0xe725a5['isIntersectingWithRange'](_0x300128));if('default'===this['_trackFormatChanges']){const _0x13234a=this['_findSuggestions'](_0x300128,'insertion')['filter'](({meta:_0x1e730a})=>_0x1e730a['isOwn']&&!_0x1e730a['isInsideObject']&&!_0x1e730a['isNextTo'])['map'](({suggestion:_0x116abf})=>_0x116abf);_0x17940e['unshift'](..._0x13234a);}const _0x1acb73=new Map([[_0x300128,_0x2072b7]]);for(const _0x4ee1a5 of _0x17940e){const _0xa23e7f='attribute'==_0x4ee1a5['type']?_0x4ee1a5['data']['oldValue']:void 0x0,_0x431f16=_0x4ee1a5['getFirstRange'](),_0x925da7=Array['from'](_0x1acb73['keys']())['find'](_0x3b96ed=>_0x3b96ed['isIntersecting'](_0x431f16));if(!_0x925da7)continue;const _0x30a111=_0x925da7['getDifference'](_0x431f16);this['_isBlockAttribute'](_0x5d66e5)&&'insertion'==_0x4ee1a5['type']&&0x0!=_0x30a111['length']||(_0x1acb73['delete'](_0x925da7),_0x30a111['forEach'](_0x202e3c=>{_0x1acb73['set'](_0x202e3c,_0x2072b7);}),'insertion'!=_0x4ee1a5['type']&&_0xa23e7f!=_0x48dd41&&_0x1acb73['set'](_0x925da7['getIntersection'](_0x431f16),_0xa23e7f));}const _0x1811ee=[];for(const [_0x45dc21,_0x50199e]of _0x1acb73){const _0x176063=_0x429a07(),_0x54a078={'key':_0x5d66e5,'oldValue':_0x50199e,'newValue':_0x48dd41};_0x5d66e5['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':_0x5d66e5});const _0x4eb870=('attribute:'+(_0x5d66e5+'|'+Gt({'newValue':_0x48dd41})))['substring'](0x0,0x3c),_0x30a8bc=this['_setSuggestionData']({'id':_0x176063,'type':_0x4eb870,'data':_0x54a078,'createdAt':new Date(),'authorId':_0x2c2c1f,'attributes':_0x3786a6});_0x1811ee['push'](_0x30a8bc),this['_addSuggestionMarker'](_0x4eb870,_0x176063,_0x2c2c1f,_0x45dc21);}return _0x1811ee;}['enableDefaultAttributesIntegration'](_0x56b758){this['enableCommand'](_0x56b758,(_0x2e1629,..._0x5326d4)=>{this['_recordAttributeChanges'](()=>{_0x2e1629(..._0x5326d4);});});}['registerBlockAttribute'](_0x38d4c5){this['_blockAttributeKeys']['add'](_0x38d4c5);}['registerInlineAttribute'](_0x2a6525){this['_inlineAttributeKeys']['add'](_0x2a6525);}['_getAttributeKey'](_0x254997){return'attribute'==_0x254997['type']?_0x254997['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x48c23f,_0x4daf3f){const _0x2e789c=_0x48c23f['getFirstMarker']();this['_model']['change'](_0x472b59=>{_0x472b59['updateMarker'](_0x2e789c,{'range':_0x4daf3f});});}['_addThreadToSuggestion'](_0x1487b0){const _0x5c24d9=_0x1487b0['id'],_0x2addc6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c24d9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2addc6,'threadId':_0x5c24d9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4a41ef=this['_commentsRepository']['getCommentThread'](_0x5c24d9);_0x4a41ef['unbind']('isRemovable'),_0x4a41ef['isRemovable']=!0x1,_0x1487b0['commentThread']=_0x4a41ef;}['_checkSuggestionCorrectness'](_0x39bdf5,_0x4d2698,_0x4bd49a,_0x9caf5c){if(_0x39bdf5['type']!=_0x4d2698||_0x39bdf5['subType']!=_0x4bd49a||_0x39bdf5['creator']['id']!=_0x9caf5c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a7393('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27b2ca,_0x19b35b){const _0x381377=_0x27b2ca['getFirstRange']();if(_0x19b35b['isEqual'](_0x381377))_0x27b2ca['removeMarkers']();else{if(_0x381377['containsRange'](_0x19b35b)){const _0x2a4b30=this['_model']['createPositionAt'](_0x19b35b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x381377['start'],_0x2a4b30));const _0xe333a0=_0x429a07(),_0x113a37=_0x27b2ca['creator']['id'],_0x3b153e=_0x27b2ca['type']+':'+_0x27b2ca['subType'];this['_setSuggestionData']({'id':_0xe333a0,'type':_0x3b153e,'createdAt':new Date(),'authorId':_0x113a37,'data':_0x27b2ca['data'],'attributes':_0x27b2ca['attributes']});const _0x3a7157=this['_model']['createPositionAt'](_0x19b35b['end']['parent'],'after'),_0x3516a1=this['_model']['createRange'](_0x3a7157,_0x381377['end']);this['_addSuggestionMarker'](_0x3b153e,_0xe333a0,_0x113a37,_0x3516a1);}else{if(_0x381377['containsPosition'](_0x19b35b['start'])){const _0x11b84a=this['_model']['createPositionAt'](_0x19b35b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x381377['start'],_0x11b84a));}else{const _0x246820=this['_model']['createPositionAt'](_0x19b35b['end']['parent'],'after');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x246820,_0x381377['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x18ae36){for(const {suggestion:_0x5c275d,meta:_0x2dd375}of this['_findSuggestions'](_0x18ae36,'insertion')){if(!_0x2dd375['isOwn'])continue;const _0x1bd915=_0x5c275d['getRanges']();for(const _0x1d8bc3 of _0x1bd915)if(!_0x18ae36['getDifference'](_0x1d8bc3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46cca6){const _0x932446=this['editor']['plugins']['get']('Users')['getUser'](_0x46cca6);if(!_0x932446)throw new _0x4a7393('track-changes-user-not-found',this);return _0x932446;}['_getExternalAuthor'](_0x4c1380){const _0x14f944=this['editor']['plugins']['get']('Users'),_0x407325=_0x5c5065('external:'+_0x4c1380),_0x561946=_0x14f944['getUser'](_0x407325);return _0x561946||_0x14f944['addUser']({'id':_0x407325,'name':_0x4c1380});}['_createSuggestion'](_0x4d4dc6,_0xd27a44,_0x5c6e9e,_0x144e21,_0x69dcb0){const _0x12c373=this['_getAuthorFromId'](_0x144e21),_0x29b21b=this['_suggestionFactory']['buildSuggestion'](_0x4d4dc6,_0xd27a44,_0x5c6e9e,_0x12c373,_0x69dcb0,_0x15c3f2=>{this['_updateSuggestionData'](_0x5c6e9e,{'attributes':_0x15c3f2});const _0xdebd6b=this['getSuggestion'](_0x5c6e9e);this['_joinWithAdjacentSuggestions'](new Set([_0xdebd6b])),this['_refreshSuggestionsChain'](new Set([_0xdebd6b]));});return this['listenTo'](_0x29b21b,'accept',()=>{this['_updateSuggestionData'](_0x5c6e9e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x29b21b,'discard',()=>{this['_updateSuggestionData'](_0x5c6e9e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c6e9e,_0x29b21b),this['_suggestionState']['set'](_0x29b21b,'notReady'),_0x29b21b;}['_splitMarkerName'](_0x4cbffa){const _0x4a5b6d=_0x4cbffa['split'](':');return{'group':_0x4a5b6d[0x0],'type':_0x4a5b6d[0x1],'subType':_0x4a5b6d['length']>=0x5?_0x4a5b6d[0x2]:null,'id':_0x4a5b6d['length']<0x5?_0x4a5b6d[0x2]:_0x4a5b6d[0x3],'authorId':_0x4a5b6d['length']<0x5?_0x4a5b6d[0x3]:_0x4a5b6d[0x4],'markerCount':0x6==_0x4a5b6d['length']?_0x4a5b6d[0x5]:null};}['_breakSuggestionMarker'](_0x4274e4,_0x1f9f01,_0x53a9a){const _0x31a3a0=_0x4274e4['getFirstRange'](),_0x453f3b=_0x31a3a0['start'],_0x12a1d9=_0x31a3a0['end'];this['_setSuggestionRange'](_0x4274e4,this['_model']['createRange'](_0x453f3b,_0x1f9f01));const _0x5f368e=_0x429a07(),_0x56436d=_0x4274e4['creator']['id'],_0x636c7d=_0x4274e4['type']+(_0x4274e4['subType']?':'+_0x4274e4['subType']:'');this['_setSuggestionData']({'id':_0x5f368e,'type':_0x636c7d,'createdAt':new Date(),'authorId':_0x56436d,'originalSuggestionId':_0x4274e4['id'],'attributes':_0x4274e4['attributes'],'data':_0x4274e4['data']});const _0x441d32=this['_getAttributeKey'](_0x4274e4);('formatBlock'==_0x4274e4['type']||_0x441d32&&this['_isBlockAttribute'](_0x441d32))&&(_0x53a9a=this['_model']['createPositionBefore'](_0x53a9a['parent'])),this['_addSuggestionMarker'](_0x636c7d,_0x5f368e,_0x56436d,this['_model']['createRange'](_0x53a9a,_0x12a1d9));}['_findSuggestions'](_0x33b7c7,_0x1f664a=null){const _0x240410=[],_0x2b4fce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33b7c7)||(_0x33b7c7=[_0x33b7c7]);for(const _0x1d90f6 of this['getSuggestions']()){if(!_0x1d90f6['isInContent'])continue;if(_0x1f664a&&_0x1d90f6['type']!=_0x1f664a)continue;let _0x3b730c=!0x1;for(const _0x4499d8 of _0x1d90f6['getRanges']()){for(const _0xef8fde of _0x33b7c7){const _0x2886de=_0xef8fde['start']['isEqual'](_0x4499d8['end'])||_0xef8fde['end']['isEqual'](_0x4499d8['start']);if(_0x2886de||_0xef8fde['getIntersection'](_0x4499d8)){const _0x48a471=_0xef8fde['containsRange'](_0x4499d8)&&Ot(this['_model']['schema'],_0x4499d8['start'],_0xef8fde),_0x205310=_0x4499d8['containsRange'](_0xef8fde)&&Ot(this['_model']['schema'],_0xef8fde['start'],_0x4499d8);_0x240410['push']({'suggestion':_0x1d90f6,'meta':{'isOwn':_0x2b4fce==_0x1d90f6['author'],'isNextTo':_0x2886de,'isInsideObject':_0x48a471,'containsRangeInObject':_0x205310}}),_0x3b730c=!0x0;break;}}if(_0x3b730c)break;}}return _0x240410;}['_addSuggestionMarker'](_0x152a32,_0x6c2185,_0x127aa1,_0x4ee1d4,_0x5e97e5){this['_model']['change'](_0xd9a75=>{let _0x906c95='suggestion:'+_0x152a32+':'+_0x6c2185+':'+_0x127aa1;_0x5e97e5&&(_0x906c95=_0x906c95+':'+_0x5e97e5),_0xd9a75['addMarker'](_0x906c95,{'range':_0x4ee1d4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x47c991){const _0x18f6dc=_0x47c991['previous'],_0x52adc5=_0x47c991['next'];_0x47c991['previous']=null,_0x47c991['next']=null,null!=_0x18f6dc&&_0x18f6dc['next']==_0x47c991&&(_0x18f6dc['next']=_0x52adc5),null!=_0x52adc5&&_0x52adc5['previous']==_0x47c991&&(_0x52adc5['previous']=_0x18f6dc),'ready'==this['_suggestionState']['get'](_0x47c991)&&(this['_suggestionState']['set'](_0x47c991,'removed'),this['fire']('suggestionUnloaded',_0x47c991,_0x18f6dc,_0x52adc5));}['_setSuggestionData'](_0x4e81e9){const _0xf02d63=_0x4e81e9['id'],_0x14671=this['addSuggestionData'](_0x4e81e9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f9b6a=this['editor']['plugins']['get']('PendingActions'),_0x57462d=_0x14671['hasComments'],_0x47f793=_0x14671['subType']?_0x14671['type']+':'+_0x14671['subType']:_0x14671['type'],_0x1c3200=this['editor']['locale'],_0x15725a=_0x1f9b6a['add'](o(_0x1c3200,'PENDING_ACTION_SUGGESTION')),_0xeec0d8={'id':_0xf02d63,'type':_0x47f793,'hasComments':_0x57462d,'data':_0x4e81e9['data']||null,'originalSuggestionId':_0x4e81e9['originalSuggestionId']||null,'attributes':_0x14671['attributes']};this['_adapter']['addSuggestion'](_0xeec0d8)['then'](_0x1e89ed=>{_0x14671['_saved']=!0x0,_0x1f9b6a['remove'](_0x15725a),_0x1e89ed&&_0x1e89ed['createdAt']&&(this['_suggestions']['get'](_0xf02d63)['createdAt']=_0x1e89ed['createdAt']);})['catch'](_0x7ebca9=>{throw _0x8063a7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14671['discard']();}),_0x14671['stopListening'](),this['_suggestions']['delete'](_0x14671['id']),this['_suggestionState']['delete'](_0x14671),_0x7ebca9;});}return _0x14671;}['_isBlockAttribute'](_0x522539){return this['_blockAttributeKeys']['has'](_0x522539);}['_updateSuggestionData'](_0x9aba29,_0x2e528c){const _0x2df38e=this['editor']['plugins']['get']('PendingActions'),_0x54f3bb=this['getSuggestion'](_0x9aba29);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x54f3bb['_saved']){const _0x1d0cc1=_0x2df38e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9aba29,_0x2e528c)['then'](()=>{_0x2df38e['remove'](_0x1d0cc1);});}else _0x54f3bb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9aba29,_0x2e528c);});}}['_getSuggestionData'](_0x200dc0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a7393('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x200dc0);}['_handleNewSuggestionMarker'](_0x401d88){const {id:_0x57611b,type:_0x5ac40d,subType:_0x4aa055,authorId:_0x103c1a}=this['_splitMarkerName'](_0x401d88),_0x1c77c0=this['_suggestions']['get'](_0x57611b)||this['_createSuggestion'](_0x5ac40d,_0x4aa055,_0x57611b,_0x103c1a,{});switch(this['_checkSuggestionCorrectness'](_0x1c77c0,_0x5ac40d,_0x4aa055,_0x103c1a),this['_suggestionState']['get'](_0x1c77c0)){case'notReady':this['_getSuggestionData'](_0x57611b)['then'](_0x576670=>{let _0x39724f=Promise['resolve']();_0x576670['hasComments']&&(_0x39724f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x57611b})),_0x39724f['then'](()=>{this['addSuggestionData'](_0x576670)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c77c0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x57611b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c77c0,'ready'),this['fire']('suggestionLoaded',_0x1c77c0);break;case'ready':this['fire']('suggestionChanged',_0x1c77c0);}return _0x1c77c0['addMarkerName'](_0x401d88),_0x1c77c0;}['_refreshSuggestionsChain'](_0x134148){const _0x65e6fa=Array['from'](_0x134148),_0x9a1b5f=_0x65e6fa['filter'](_0x552e88=>'attribute'==_0x552e88['type']);this['_refreshAttributeSuggestionsChain'](_0x9a1b5f);const _0x59823a=_0x65e6fa['filter'](_0x2a8ded=>!_0x2a8ded['isMultiRange']&&'attribute'!=_0x2a8ded['type']),_0x246c6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1c84=>!_0x5d1c84['isMultiRange']&&'attribute'!=_0x5d1c84['type']),_0x45892f=_0x246c6c['filter'](_0xf8de2d=>!_0x134148['has'](_0xf8de2d)),_0x472105=new Map(_0x246c6c['map'](_0x3ecb70=>[_0x3ecb70,this['_suggestionFactory']['getSuggestionCallback'](_0x3ecb70['type'],_0x3ecb70['subType'],'chain')])),_0x12de05=new Map(_0x246c6c['map'](_0x4fd45e=>[_0x4fd45e,_0x4fd45e['getFirstRange']()])),_0xf26e2=new Set(),_0xd0fb86=new Set();for(let _0x436a85=0x0;_0x436a85<_0x59823a['length'];_0x436a85++)_0x1a73d4(_0x59823a[_0x436a85],_0x59823a,_0x436a85+0x1);for(let _0x1718c7=0x0;_0x1718c7<_0x59823a['length'];_0x1718c7++)_0x1a73d4(_0x59823a[_0x1718c7],_0x45892f,0x0);const _0x14ffa3=new Set();for(let _0x163bdb=0x0;_0x163bdb<_0x59823a['length'];_0x163bdb++){const _0x15c530=_0x59823a[_0x163bdb];!_0xd0fb86['has'](_0x15c530)&&_0x15c530['previous']&&(_0x14ffa3['add'](_0x15c530['previous']),_0x15c530['previous']['next']===_0x15c530&&(_0x15c530['previous']['next']=null),_0x15c530['previous']=null),!_0xf26e2['has'](_0x15c530)&&_0x15c530['next']&&(_0x14ffa3['add'](_0x15c530['next']),_0x15c530['next']['previous']===_0x15c530&&(_0x15c530['next']['previous']=null),_0x15c530['next']=null);}function _0x1a73d4(_0x1a0c5c,_0x49898c,_0xfdc04d){for(let _0xce1b3=_0xfdc04d;_0xce1b3<_0x49898c['length'];_0xce1b3++){const _0x275883=_0x320180(_0x1a0c5c,_0x49898c[_0xce1b3]);_0x275883&&(_0x275883[0x0]['next']=_0x275883[0x1],_0x275883[0x1]['previous']=_0x275883[0x0],_0xf26e2['add'](_0x275883[0x0]),_0xd0fb86['add'](_0x275883[0x1]));}}function _0x320180(_0x565535,_0x573bab){if(_0x565535['author']['id']!==_0x573bab['author']['id'])return null;const _0x4f11ac=_0x472105['get'](_0x565535)(_0x565535,_0x573bab,_0x12de05['get'](_0x565535),_0x12de05['get'](_0x573bab));if(!_0x4f11ac)return null;return _0x472105['get'](_0x573bab)(_0x565535,_0x573bab,_0x12de05['get'](_0x565535),_0x12de05['get'](_0x573bab))?_0x4f11ac[0x1]['commentThread']&&_0x4f11ac[0x1]['commentThread']['length']?null:_0x4f11ac:null;}_0x14ffa3['size']&&this['_refreshSuggestionsChain'](_0x14ffa3);}['_refreshAttributeSuggestionsChain'](_0x5529d7){if(0x0==_0x5529d7['length'])return;const _0x4787cb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e7c1b=>'attribute'==_0x4e7c1b['type']&&_0x4e7c1b['_isDataLoaded']),_0x47a49d=[],_0x481a22=new Map();for(const _0x51d315 of _0x4787cb){const _0x39c9b3=_0x5c5065(_0x51d315['attributes']);_0x481a22['has'](_0x39c9b3)||(_0x481a22['set'](_0x39c9b3,_0x47a49d['length']),_0x47a49d['push']([]));const _0x5562de=_0x481a22['get'](_0x39c9b3);_0x47a49d[_0x5562de]['push'](_0x51d315);}!(function(){_0x47a49d['sort']((_0xdd5454,_0xc55792)=>{const _0x2d3cc8=_0xdd5454[0x0]['createdAt'],_0xef20f4=_0xc55792[0x0]['createdAt'];return _0x2d3cc8==_0xef20f4?_0xdd5454[0x0]['attributes']['groupId']<_0xc55792[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d3cc8<_0xef20f4?-0x1:0x1;});for(const _0x395e71 of _0x47a49d)_0x395e71['sort']((_0xc058d2,_0x1b1284)=>_0xc058d2['id']<_0x1b1284['id']?-0x1:0x1);}());for(let _0x19b132=0x0;_0x19b132<_0x47a49d['length'];_0x19b132++){if(0x0==_0x47a49d[_0x19b132]['length'])continue;const _0x37a8f1=[];for(let _0x5cb1c5=_0x19b132+0x1;_0x5cb1c5<_0x47a49d['length'];_0x5cb1c5++)0x0!=_0x47a49d[_0x5cb1c5]['length']&&_0x2fe029(_0x47a49d[_0x19b132],_0x47a49d[_0x5cb1c5])&&_0x37a8f1['push'](_0x5cb1c5);for(const _0x6885d9 of _0x37a8f1)_0x47a49d[_0x19b132]=_0x47a49d[_0x19b132]['concat'](_0x47a49d[_0x6885d9]),_0x47a49d[_0x6885d9]=[];}for(const _0x5e68f0 of _0x47a49d)for(let _0x2def6c=0x0;_0x2def6c<_0x5e68f0['length'];_0x2def6c++){const _0x46e4b4=_0x5e68f0[_0x2def6c+0x1]||null;_0x5e68f0[_0x2def6c]['next']!==_0x46e4b4&&(_0x5e68f0[_0x2def6c]['next']=_0x46e4b4);}for(const _0xbd18e0 of _0x47a49d)for(let _0x36ad93=0x0;_0x36ad93<_0xbd18e0['length'];_0x36ad93++){const _0x182d2e=_0xbd18e0[_0x36ad93-0x1]||null;_0xbd18e0[_0x36ad93]['previous']!==_0x182d2e&&(_0xbd18e0[_0x36ad93]['previous']=_0x182d2e);}function _0x2fe029(_0x49f015,_0xb408f){if(_0x49f015[0x0]['attributes']['groupId']!==_0xb408f[0x0]['attributes']['groupId']&&_0x49f015[0x0]['author']!==_0xb408f[0x0]['author'])return!0x1;if(!function(_0x5e8ce6,_0x19c8fb){if(!_0x5e8ce6['hasComments']&&!_0x19c8fb['hasComments'])return!0x0;if(_0x5e8ce6['hasComments']&&_0x19c8fb['hasComments'])return!0x1;if(_0x5e8ce6['hasComments']&&_0x19c8fb['createdAt']<_0x5e8ce6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x19c8fb['hasComments']&&_0x5e8ce6['createdAt']<_0x19c8fb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x49f015[0x0],_0xb408f[0x0]))return!0x1;const _0x39795f=Tt(_0x49f015[0x0]['attributes'],'groupId'),_0x184dee=Tt(_0xb408f[0x0]['attributes'],'groupId');if(!_0x2dfb64(_0x39795f,_0x184dee))return!0x1;return!!_0x49f015['every'](_0x3978d5=>_0xb408f['some'](_0xb233ac=>_0x3978d5['getFirstRange']()['isEqual'](_0xb233ac['getFirstRange']())))&&_0xb408f['every'](_0x48b0f2=>_0x49f015['some'](_0x27e290=>_0x48b0f2['getFirstRange']()['isEqual'](_0x27e290['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x57c481){const _0x3f583a=Array['from'](_0x57c481),_0x67c7f8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3fab57=_0x67c7f8['filter'](_0x409cf1=>!_0x57c481['has'](_0x409cf1)),_0x114f0d=new Map(_0x3f583a['map'](_0x201c3a=>[_0x201c3a,this['_suggestionFactory']['getSuggestionCallback'](_0x201c3a['type'],_0x201c3a['subType'],'join')])),_0xa1d1dd=new Map(_0x67c7f8['map'](_0x246f12=>[_0x246f12,_0x246f12['getRanges']()]));for(let _0x5de9e3=0x0;_0x5de9e3<_0x3f583a['length'];_0x5de9e3++){if(_0x1f7b36(this,_0x3f583a[_0x5de9e3],_0x3f583a,_0x5de9e3+0x1))return!0x0;}for(let _0x4d7b4d=0x0;_0x4d7b4d<_0x3f583a['length'];_0x4d7b4d++){if(_0x1f7b36(this,_0x3f583a[_0x4d7b4d],_0x3fab57,0x0))return!0x0;}return!0x1;function _0x1f7b36(_0x1aefb4,_0xc44721,_0x1162c7,_0x599eb5){for(let _0x507adc=_0x599eb5;_0x507adc<_0x1162c7['length'];_0x507adc++){const _0x3ffd79=_0x1162c7[_0x507adc];if(_0x3ffd79['type']!==_0xc44721['type']||_0x3ffd79['author']['id']!==_0xc44721['author']['id']||_0x3ffd79['subType']!==_0xc44721['subType'])continue;if(!Jt(_0xc44721,_0x3ffd79))continue;if('attribute'==_0xc44721['type']&&_0xc44721['data']['oldValue']!=_0x3ffd79['data']['oldValue'])continue;if('attribute'==_0xc44721['type']&&_0x1aefb4['_isBlockAttribute'](_0xc44721['data']['key']))continue;if('formatBlock'==_0xc44721['type']){const _0x2f25d1=_0x1aefb4['editor']['model'],_0x355777=_0xc44721['getContainedElement']();if(_0x355777&&(_0x2f25d1['schema']['isObject'](_0x355777)||_0x2f25d1['schema']['isLimit'](_0x355777)))continue;}const _0x2e7ac7=_0x114f0d['get'](_0xc44721),_0x54d48b=_0xa1d1dd['get'](_0xc44721),_0x354067=_0xa1d1dd['get'](_0x3ffd79),_0x252c46=_0xc44721['commentThread']&&_0xc44721['commentThread']['length'],_0x577f83=_0x3ffd79['commentThread']&&_0x3ffd79['commentThread']['length'];if(!_0x252c46&&_0x2e7ac7(_0x354067,_0x54d48b))return _0x1aefb4['_joinSuggestions'](_0x3ffd79,_0xc44721),_0xa1d1dd['delete'](_0xc44721),!0x0;if(!_0x577f83&&_0x2e7ac7(_0x54d48b,_0x354067))return _0x1aefb4['_joinSuggestions'](_0xc44721,_0x3ffd79),_0xa1d1dd['delete'](_0x3ffd79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x201df8,_0x4c79c3){if(_0x201df8['isMultiRange']){for(const _0x12f356 of _0x4c79c3['getRanges']())_0x201df8['addRange'](_0x12f356);}else{const _0x23da8c=_0x4c79c3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x201df8,this['_model']['createRange'](_0x201df8['getFirstRange']()['start'],_0x23da8c));}_0x4c79c3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x170245,_0xbb2409,_0x39f411){const _0x340938=_0x170245['startsWith']('format')||_0x170245['startsWith']('attribute')?'FORMATTING':_0x170245['toUpperCase']();return o(this['editor']['locale'],_0xbb2409+'_'+_0x340938+'_SUGGESTION_ANNOUNCEMENT',_0x39f411);}['_initAriaMarkerChangeAnnouncements'](){const _0x5984c6=this['editor'];if(!_0x5984c6['ui'])return;const {ariaLiveAnnouncer:_0x30c9b1}=_0x5984c6['ui'];_0x22115e(this['_model'],({left:_0x7b9312,entered:_0x13287f})=>{for(const _0x4c3145 of _0x7b9312){const {group:_0x18444a,type:_0x64f8c8}=this['_splitMarkerName'](_0x4c3145['name']);if('suggestion'===_0x18444a){_0x30c9b1['announce'](this['_getMarkerAnnouncementText'](_0x64f8c8,'LEAVE'));break;}}for(const _0x5c5b05 of _0x13287f){const {group:_0x29aa6f,type:_0x805c86}=this['_splitMarkerName'](_0x5c5b05['name']);if('suggestion'===_0x29aa6f){_0x30c9b1['announce'](this['_getMarkerAnnouncementText'](_0x805c86,'ENTER',_0xbae308(_0x3c78cd)));break;}}});}['_processAttributeChanges'](_0x44e283){if(this['_recordAttributeSuggestions'])return!0x1;const _0x364d84=this['editor'],_0x2fc01c=_0x364d84['model']['document']['differ']['getChanges']();if(0x0==_0x2fc01c['length'])return!0x1;const _0x44600f=[],_0x44c8c5=_0x2fc01c['filter'](_0x22af7f=>'attribute'==_0x22af7f['type']),_0x4615e6=_0x2fc01c['filter'](_0x47c8b5=>'insert'==_0x47c8b5['type']&&'$text'!=_0x47c8b5['name']),_0x37e798=_0x2fc01c['filter'](_0x5f22ee=>'remove'==_0x5f22ee['type']&&'$text'!=_0x5f22ee['name']);for(const _0x4f1d2e of _0x44c8c5)_0x44600f['push']({'key':_0x4f1d2e['attributeKey'],'newValue':_0x4f1d2e['attributeNewValue'],'oldValue':_0x4f1d2e['attributeOldValue'],'range':Pt(_0x4f1d2e['range'],_0x364d84['model'])});for(const _0x4263d1 of _0x4615e6){const _0x4d3c1f=_0x37e798['find'](_0x565766=>_0x565766['position']['isEqual'](_0x4263d1['position']));_0x4d3c1f&&_0x44600f['push']({'key':m,'newValue':_0x4263d1['name'],'oldValue':_0x4d3c1f['name'],'range':_0x364d84['model']['createRangeOn'](_0x4263d1['position']['nodeAfter'])});}return 0x0!=_0x44600f['length']&&this['_reduceExistingSuggestions'](_0x44e283,_0x44600f);}['_processAttributeSuggestions'](_0x4c3892){let _0x4bce74=!0x1;const _0xc3457=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa931cf=>_0xa931cf['data']['newRange']&&_0xa931cf['name']['startsWith']('suggestion:attribute:'));for(const _0x9cd54c of _0xc3457){const {subType:_0x4a4b0f,id:_0x2a4a85}=this['_splitMarkerName'](_0x9cd54c['name']),_0x3e6c59=_0x4a4b0f['split']('|')[0x0];for(const _0x458891 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x458891['id']!=_0x2a4a85&&'attribute'==_0x458891['type']&&_0x458891['data']&&_0x458891['data']['key']==_0x3e6c59&&_0x458891['getFirstRange']()['isIntersecting'](_0x9cd54c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x458891,_0x9cd54c['data']['newRange'],_0x4c3892),_0x4bce74=!0x0);}return _0x4bce74;}['_recordAttributeChanges'](_0x3bcf46){this['_recordAttributeSuggestions']=!0x0,_0x3bcf46();}['_isRegisteredAttribute'](_0x224e31){const _0x1451f7=this['_isBlockAttribute'](_0x224e31),_0x1feed1=this['_inlineAttributeKeys']['has'](_0x224e31);return _0x1451f7||_0x1feed1;}['_reduceExistingSuggestions'](_0x27ae7b,_0x497682){if(0x0==_0x497682['length'])return!0x1;let _0x4757f2=!0x1;for(const _0x1d2b51 of _0x497682){const _0x362e37=this['_findSuggestions'](_0x1d2b51['range'],'attribute')['filter'](_0x3c75d0=>!_0x3c75d0['meta']['isNextTo'])['map'](_0x18d6fc=>_0x18d6fc['suggestion']),_0x3d67bf=_0x5c5065({'newValue':_0x1d2b51['newValue']});_0x362e37['filter'](_0x3dbd31=>{const [_0x1152b4,_0x21b33a]=_0x3dbd31['subType']['split']('|');return _0x1152b4==_0x1d2b51['key']&&_0x21b33a!=_0x3d67bf;})['forEach'](_0x29b09d=>{this['_reduceSuggestionAttributeRange'](_0x29b09d,_0x1d2b51['range'],_0x27ae7b),_0x4757f2=!0x0;});}return _0x4757f2;}['_reduceSuggestionAttributeRange'](_0x5592bb,_0x44de66,_0x4b6c20){const _0x35fd52=_0x5592bb['getFirstRange']()['getDifference'](_0x44de66);0x0!==_0x35fd52['length']?0x1!==_0x35fd52['length']?this['_breakSuggestionMarker'](_0x5592bb,_0x44de66['start'],_0x44de66['end']):this['_setSuggestionRange'](_0x5592bb,_0x35fd52[0x0]):_0x4b6c20['removeMarker'](_0x5592bb['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1753d1){this['_editor']=_0x1753d1,this['_model']=_0x1753d1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15ad19,_0x141bc4,_0x222fe8,_0x11ff89,_0x99ae3b,_0x27fece){return new u(this['_model'],{'type':_0x15ad19,'subType':_0x141bc4,'id':_0x222fe8,'author':_0x11ff89,'creator':_0x11ff89,'attributes':_0x99ae3b,'onAttributesChange':_0x27fece,'onAccept':(..._0x317f94)=>this['getSuggestionCallback'](_0x15ad19,_0x141bc4,'accept')(..._0x317f94),'onDiscard':(..._0x3a8f33)=>this['getSuggestionCallback'](_0x15ad19,_0x141bc4,'discard')(..._0x3a8f33)});}['registerCustomCallback'](_0x1deaa5,_0x21556a,_0x22d994,_0x2c3673){const _0x3affe0=_0x1deaa5+':'+_0x21556a+':'+_0x22d994;this['_customCallbacks']['set'](_0x3affe0,_0x2c3673);}['getSuggestionCallback'](_0x27d948,_0x207a98,_0x5027f2){const _0x48788c=_0x27d948+':'+_0x207a98+':'+_0x5027f2;return this['_customCallbacks']['get'](_0x48788c)||this['_defaultCallbacks']['get'](_0x27d948+':'+_0x5027f2);}['_registerDefaultCallbacks'](){const _0x464182=()=>!0x1,_0x586f2e=_0x4851a9=>{_0x4851a9['sort']((_0x34ab6b,_0x549990)=>_0x34ab6b['start']['isBefore'](_0x549990['start'])?0x1:-0x1),this['_model']['change'](_0x3401d2=>{for(const _0x1b6473 of _0x4851a9){let _0x155114;_0x155114=_0x1b6473['end']['isAtEnd']&&_0x1b6473['end']['parent']==_0x1b6473['start']['nodeAfter']?_0x3401d2['createSelection'](_0x1b6473['start']['nodeAfter'],'on'):_0x3401d2['createSelection'](_0x1b6473),this['_model']['deleteContent'](_0x155114,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ece21=(_0x354952,_0x27c54f)=>{_0x27c54f&&this['_model']['change'](_0x211ebf=>{const {commandName:_0x4d176a,commandParams:_0x449cd9=[]}=_0x27c54f,_0x36f365=_0x354952['map'](_0x1f616a=>(Vt(_0x1f616a)&&(_0x1f616a=this['_model']['createRange'](_0x1f616a['end'])),_0x1f616a))['filter'](_0x19ad14=>'$graveyard'!==_0x19ad14['root']['rootName']);if(_0x36f365['length']<0x1)return;const _0x57c9af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x429a78=>_0x31c9bf['fromRange'](_0x429a78));_0x211ebf['setSelection'](_0x36f365);for(const _0x5410ce of this['_editor']['commands']['commands']())_0x5410ce['refresh']();_0x449cd9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4d176a,..._0x449cd9);const _0x5f197a=_0x57c9af['filter'](_0x292933=>'$graveyard'!=_0x292933['root']['rootName']);_0x5f197a['length']>0x0&&_0x211ebf['setSelection'](_0x5f197a);for(const _0xb16f5c of _0x57c9af)_0xb16f5c['detach']();});},_0x1b195c=(_0x4129c6,_0x2e3c9b)=>0x1==_0x4129c6['length']&&0x1==_0x2e3c9b['length']&&_0x4129c6[0x0]['end']['isEqual'](_0x2e3c9b[0x0]['start']),_0x50bcfa=(_0x16f378,_0x57c024,_0x1b9352,_0x1644e9)=>Ht(_0x16f378,_0x57c024,_0x1b9352,_0x1644e9,this['_model'])?[_0x16f378,_0x57c024]:Ht(_0x57c024,_0x16f378,_0x1644e9,_0x1b9352,this['_model'])?[_0x57c024,_0x16f378]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x464182),this['_defaultCallbacks']['set']('insertion:discard',_0x586f2e),this['_defaultCallbacks']['set']('insertion:join',_0x1b195c),this['_defaultCallbacks']['set']('insertion:chain',_0x50bcfa),this['_defaultCallbacks']['set']('deletion:accept',_0x586f2e),this['_defaultCallbacks']['set']('deletion:discard',_0x464182),this['_defaultCallbacks']['set']('deletion:join',_0x1b195c),this['_defaultCallbacks']['set']('deletion:chain',_0x50bcfa),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ece21),this['_defaultCallbacks']['set']('formatInline:discard',_0x464182),this['_defaultCallbacks']['set']('formatInline:join',_0x1b195c),this['_defaultCallbacks']['set']('formatInline:chain',_0x464182),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ece21),this['_defaultCallbacks']['set']('formatBlock:discard',_0x464182),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b195c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x464182),this['_defaultCallbacks']['set']('attribute:accept',_0x464182),this['_defaultCallbacks']['set']('attribute:discard',(_0x32b8b,_0x12ebaf)=>{if(!_0x12ebaf)return;const _0x2c8fe5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1afc29=>{if(_0x12ebaf['key']==m)for(const _0x5575b5 of _0x32b8b){const _0xa3879a=_0x5575b5['start']['nodeAfter'],_0x247f6a=_0x12ebaf['oldValue'];_0x1afc29['rename'](_0xa3879a,_0x247f6a);}else{if(_0x2c8fe5['_isBlockAttribute'](_0x12ebaf['key'])){for(const _0x5f4ad7 of _0x32b8b)void 0x0!==_0x12ebaf['oldValue']?_0x1afc29['setAttribute'](_0x12ebaf['key'],_0x12ebaf['oldValue'],_0x5f4ad7['start']['nodeAfter']):_0x1afc29['removeAttribute'](_0x12ebaf['key'],_0x5f4ad7['start']['nodeAfter']);}else{for(const _0x3f2201 of _0x32b8b)_0x12ebaf['oldValue']?_0x1afc29['setAttribute'](_0x12ebaf['key'],_0x12ebaf['oldValue'],_0x3f2201):_0x1afc29['removeAttribute'](_0x12ebaf['key'],_0x3f2201);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b195c);}}function Ot(_0x24b9e7,_0x2f4626,_0x6b8376){for(const _0x3b00ca of _0x2f4626['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b00ca['root']==_0x3b00ca)return!0x1;if(!_0x6b8376['containsItem'](_0x3b00ca))return!0x1;if(_0x24b9e7['isObject'](_0x3b00ca)||_0x24b9e7['isLimit'](_0x3b00ca))return!0x0;}return!0x1;}function Vt(_0x4b45fa){return _0x4b45fa['end']['parent']==_0x4b45fa['start']['nodeAfter']&&_0x4b45fa['end']['isAtStart'];}function Ut(_0x2f687e,_0x123b56,_0x5495fc,_0x2fcd4f){const _0x56218f=_0x4fa707=>!_0x4fa707['item']['is']('$textProxy')&&!_0x2fcd4f['isObject'](_0x4fa707['item']),_0x56296b=_0x2f687e['start']['getLastMatchingPosition'](_0x56218f),_0x4b4dad=_0x2f687e['end']['getLastMatchingPosition'](_0x56218f,{'direction':'backward'});return(!_0x2f687e['start']['isEqual'](_0x56296b)||!_0x2f687e['end']['isEqual'](_0x4b4dad))&&(_0x56296b['isBefore'](_0x4b4dad)?_0x5495fc['updateMarker'](_0x123b56,{'range':_0x5495fc['createRange'](_0x56296b,_0x4b4dad)}):_0x5495fc['removeMarker'](_0x123b56),!0x0);}function Gt(_0x4f305d){return _0x5c5065(_0x4f305d);}function Ft(_0xaf64ad){const _0x298de9=_0xaf64ad['start']['nodeAfter'];return _0x298de9&&_0x298de9['is']('element');}function Pt(_0x731781,_0x1de843){return null==_0x731781['end']['nodeBefore']&&_0x731781['end']['parent']==_0x731781['start']['nodeAfter']?Lt(_0x731781['start']['nodeAfter'],_0x1de843):_0x731781;}function Lt(_0x273917,_0x571050){const _0x2abe6a=_0x571050['schema']['isObject'](_0x273917)||_0x571050['schema']['isSelectable'](_0x273917);return _0x571050['createRange'](_0x571050['createPositionAt'](_0x273917,'before'),_0x2abe6a?_0x571050['createPositionAfter'](_0x273917):_0x571050['createPositionAt'](_0x273917,'end'));}function Ht(_0x48849d,_0x5f0ecc,_0x582c17,_0xc594f6,_0x47c03c){if(_0x48849d['next'])return!0x1;if(!Jt(_0x48849d,_0x5f0ecc))return!0x1;if(_0x582c17['end']['isEqual'](_0xc594f6['start']))return!0x0;if(_0x48849d['type']!=_0x5f0ecc['type'])return!0x1;if(!_0x582c17['end']['isTouching'](_0xc594f6['start']))return!0x1;const _0x402894=_0x47c03c['createRange'](_0x582c17['end'],_0xc594f6['start'])['getWalker']();for(const _0x3134e3 of _0x402894)if(['elementStart','elementEnd']['includes'](_0x3134e3['type'])&&_0x47c03c['schema']['isLimit'](_0x3134e3['item']))return!0x1;return!0x0;}function Jt(_0xfae5fd,_0x4822f1){if(!_0xfae5fd['_isDataLoaded']||!_0x4822f1['_isDataLoaded'])return!0x1;const _0x4886aa=new Set(Object['keys'](_0xfae5fd['attributes'])),_0x2d6bed=new Set(Object['keys'](_0x4822f1['attributes']));if(_0x4886aa['delete']('groupId'),_0x2d6bed['delete']('groupId'),0x0==_0x4886aa['size']&&0x0==_0x2d6bed['size'])return!0x0;if(_0x4886aa['size']!=_0x2d6bed['size'])return!0x1;const _0x59e788={..._0xfae5fd['attributes']},_0x1a7dcf={..._0x4822f1['attributes']};return delete _0x59e788['groupId'],delete _0x1a7dcf['groupId'],JSON['stringify'](_0x59e788)==JSON['stringify'](_0x1a7dcf);}function qt(_0x2baf6c,_0x1f3797){const _0x37562f=zt(_0x2baf6c['attributes']),_0x6ab45e=zt(_0x1f3797);if(!_0x2baf6c['_isDataLoaded'])return!0x1;for(const _0x22a2ef of Object['keys'](_0x6ab45e))if(!_0x2dfb64(_0x37562f[_0x22a2ef],_0x6ab45e[_0x22a2ef]))return!0x1;return!0x0;}function zt(_0x5338f1){const _0x4fc796=Object['assign']({},_0x5338f1);return delete _0x4fc796['skipNestingCheck'],delete _0x4fc796['tablePasteChainId'],_0x4fc796;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x609870(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40add3,_0x46a3e1,_0x998610,_0x158b09){super(),this['model']=_0x46a3e1,this['view']=_0x998610,this['commentThreadController']=_0x158b09,this['_editor']=_0x40add3,this['_acceptCommand']=_0x40add3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40add3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5682b5,_0x1b0f64)=>_0x5682b5||_0x1b0f64),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3ccdc7=>_0x3ccdc7&&this['_editor']['model']['canEditAt'](_0x46a3e1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x165e2f=>_0x165e2f&&this['_editor']['model']['canEditAt'](_0x46a3e1['getRanges']())),this['_pendingAction']=null,_0x998610['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x998610,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x998610,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x998610,'change:isDirty',()=>{_0x998610['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 _0x413936=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x413936);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x30ef7e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x467b95,_0x154934,_0x8d96b4,_0x5b537d){super(_0x467b95),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f032d(_0x467b95,o(_0x467b95,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x154934['authoredAt']),this['bind']('authoredAt')['to'](_0x154934),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',_0x154934,'authoredAt',this,'descriptionParts',(_0x3573ba,_0x74ec13,_0x431eb2)=>{const _0x402ba0=_0x431eb2['map'](_0x543fb2=>ls(_0x543fb2['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3573ba-0x1,_0x154934['author']['name'],_0x74ec13?_0x5b537d['formatDateTime'](_0x74ec13):'',new DOMParser()['parseFromString'](_0x402ba0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2df4da(),this['focusTracker']=new _0x552d29(),this['keystrokes']=new _0x15e3b6(),this['focusCycler']=new _0x21f6d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18a9da=>_0x18a9da['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x154934,this['_localUser']=_0x8d96b4,this['_config']=_0x5b537d,_0x5b537d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x13ef58(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4192b3}=this['_config'];this['commentsListView']=new _0x4192b3(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',_0x3fb803=>_0x3fb803+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x849bba,_0x216bbf)=>_0x849bba||!!_0x216bbf);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ca490}=this['_config'],_0x463fd7=new _0x2ca490(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32fe1c=_0x463fd7['commentInputView'];return _0x463fd7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32fe1c,'value',(_0x450911,_0x2163dd,_0x29414e)=>!!_0x29414e||_0x450911&&!_0x2163dd),_0x32fe1c['on']('submit',(_0x6616a9,_0x1643bc)=>{this['fire']('addComment',_0x1643bc),_0x32fe1c['editor']['setData']('');}),_0x32fe1c['on']('cancel',()=>this['focus']()),_0x32fe1c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x463fd7;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cc45,_0x2ef728,_0x1b187f,_0x46b1fe){super(_0x1cc45,_0x2ef728,_0x1b187f,_0x46b1fe),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10405e=>_0x10405e&&_0x10405e[0x0]?_0x10405e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x7accf0,_0x4a93fb)=>{let _0x59b93d='';for(const _0x1bd7b5 of _0x7accf0)_0x59b93d+='<p>'+ls(_0x1bd7b5['content'],_0x1bd7b5['color'])+'</p>';return _0x4a93fb?_0x59b93d:_0xaf0486(_0x59b93d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46b1fe['SuggestionView'](_0x1cc45,_0x2ef728,{'formatDateTime':_0x46b1fe['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 _0x334955=this['bindTemplate'],_0x139b0f=[this['suggestionView']];return this['commentsListView']&&_0x139b0f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x139b0f['push'](this['commentThreadInputView']),_0x139b0f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x334955['if']('isActive','ck-suggestion-wrapper--active'),_0x334955['to']('type',_0x3c3089=>'ck-suggestion-'+_0x3c3089),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':_0x334955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x139b0f};}['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 _0x30ef7e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40b579,_0x21a205,_0x339d40){super(_0x40b579),this['_model']=_0x21a205,this['_config']=_0x339d40,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21a205),this['acceptButton']=this['_createButton'](o(_0x40b579,'Accept\x20suggestion'),_0x75a81b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40b579,'Discard\x20suggestion'),_0x75a81b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x320796(_0x40b579,_0x21a205['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2df4da([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x552d29(),this['keystrokes']=new _0x15e3b6(),this['focusCycler']=new _0x21f6d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b3f18=>_0x3b3f18['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2fd8f6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2fd8f6['innerHTML']=this['description'],this['on']('change:description',(_0x477696,_0x5d40fc,_0x2b952e)=>{_0x2fd8f6['innerHTML']=_0x2b952e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33b5ba=this['bindTemplate'],_0x529b52=[{'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':_0x33b5ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33b5ba['to']('authoredAt',_0x3506ee=>this['_config']['formatDateTime'](_0x3506ee))}]}]},{'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']&&_0x529b52['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':_0x529b52}]};}['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'](_0xbd38d8,_0x2e95cc,_0x5124af,_0xc96ea2,_0x54a219){const _0xeba169=new _0x252f49(this['locale']);return _0xeba169['set']({'label':_0xbd38d8,'icon':_0x2e95cc,'tooltip':!0x0,'tooltipPosition':_0x54a219}),_0xeba169['extendTemplate']({'attributes':{'class':_0x5124af}}),_0xeba169['on']('execute',()=>{this['fire'](_0xc96ea2,this['_model']['id']);}),_0xeba169;}['_setupKeyboardNavigation'](){const _0x331c16=this['element'];this['keystrokes']['listenTo'](_0x331c16);for(const _0x3f657b of this['focusables'])this['focusTracker']['add'](_0x3f657b['element']),this['keystrokes']['listenTo'](_0x3f657b['element']);this['keystrokes']['set']('enter',(_0x4ee16a,_0x448d8b)=>{_0x331c16===_0x4ee16a['target']&&(this['focusCycler']['focusFirst'](),_0x448d8b());}),this['keystrokes']['set']('esc',(_0x1cb6dc,_0x3a4581)=>{_0x331c16!==_0x1cb6dc['target']&&(this['focus'](),_0x3a4581());});}}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 _0x5a19c7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39c210,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5a7fb0){super(_0x5a7fb0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2ebb18=this['editor']['config'];_0x2ebb18['define']('trackChanges.SuggestionThreadView',re),_0x2ebb18['define']('trackChanges.SuggestionView',ce),_0x2ebb18['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2ebb18['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x386de0,_0x55e538){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x316201,_0x2cc03b]of this['_handleControllerBuffer']){const _0x1936fa=this['_suggestionToController']['has'](_0x316201);_0x1936fa||_0x2cc03b?_0x1936fa&&_0x2cc03b&&this['_destroyController'](_0x316201):this['_initializeController'](_0x316201);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x386de0,_0x55e538);}['init'](){const _0x237a77=this['editor'],_0x5895b0=_0x237a77['plugins']['get']('TrackChangesEditing'),_0x1782bb=_0x237a77['plugins']['get']('Annotations'),_0x222057=_0x237a77['plugins']['get']('EditorAnnotations'),_0x104b94=_0x237a77['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x222057['addSourceCollector'](()=>{const _0x469786=[];for(const [_0xfa5522,_0x3bb253]of Array['from'](this['_suggestionToController'])){const _0x1a1387=_0xfa5522['getAllAdjacentSuggestions'](),_0x1f14dd=[];for(const _0xbec602 of _0x1a1387){if(!_0xbec602['isInContent'])continue;if(_0xbec602['isMultiRange']){_0x1f14dd['push'](..._0xbec602['getRanges']());continue;}const _0x5e4e86=_0xbec602['getFirstRange']();if(_0x1f14dd['length']>0x0){const _0xc80d37=_0x1f14dd[0x0]['getJoined'](_0x5e4e86);if(_0xc80d37){_0x1f14dd[0x0]=_0xc80d37;continue;}}_0x1f14dd['push'](_0x5e4e86);}_0x469786['push']([_0x3bb253['view'],_0x1f14dd]);}return _0x469786;}),this['listenTo'](_0x5895b0,'suggestionLoaded',(_0x51c47a,_0x29c0fe)=>{this['listenTo'](_0x29c0fe,'change:previous',(_0x4e59d9,_0x3b1ab8,_0x133243,_0x5eaa50)=>{_0x29c0fe['isInContent']&&(null==_0x133243?(this['_updateController'](_0x5eaa50['head']),this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x1)):(this['_updateController'](_0x133243['head']),null==_0x5eaa50&&this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x0)));}),null!==_0x29c0fe['previous']?this['_updateController'](_0x29c0fe['head']):this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x1);}),this['listenTo'](_0x5895b0,'suggestionUnloaded',(_0x3c9ffd,_0x4c2f48,_0x58428d)=>{this['stopListening'](_0x4c2f48,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c2f48),this['_suggestionToController']['has'](_0x4c2f48)&&this['_destroyController'](_0x4c2f48),_0x58428d&&this['_updateController'](_0x58428d['head']);}),this['listenTo'](_0x5895b0,'suggestionChanged',(_0x48592b,_0x3b59ee)=>{this['_updateController'](_0x3b59ee);}),this['listenTo'](_0x1782bb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x104b94,'addComment',(_0x332c0e,{threadId:_0xe12c19,isFromAdapter:_0x1f8bfd})=>{if(_0x1f8bfd||!_0x5895b0['hasSuggestion'](_0xe12c19))return;const _0x597783=_0x5895b0['getSuggestion'](_0xe12c19);this['_suggestionToController']['get'](_0x597783)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5975c6=this['editor']['plugins']['get']('Annotations'),_0x4d6bad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2d12=Array['from'](_0x5975c6['activeAnnotations'],_0x3747c6=>_0x3747c6['innerView'])['filter'](_0x46d319=>this['_viewToController']['has'](_0x46d319)),_0xa3737c=[];for(const _0x4cb622 of _0x5c2d12){const _0x53ae0d=this['_viewToController']['get'](_0x4cb622)['model']['getAllAdjacentSuggestions']();_0xa3737c['push'](..._0x53ae0d['reduce']((_0x4e2ce9,_0xc25b51)=>[..._0x4e2ce9,..._0xc25b51['getMarkerNames']()],[]));}_0x4d6bad['activeMarkers']=_0xa3737c;}['_addUIComponentsToFactory'](){const _0xfa518a=this['editor'],_0x2415f8=_0xfa518a['locale'],_0x27b163=o(_0x2415f8,'Track\x20changes'),_0x2598d5=new Wt([{'type':'switchbutton','model':new _0x230214({'withText':!0x0,'isToggleable':!0x0,'label':_0x27b163,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1a4b5c of _0x2598d5)if(me(_0x1a4b5c)){const _0x224928=_0xfa518a['commands']['get'](_0x1a4b5c['model']['commandName']);_0x1a4b5c['model']['bind']('isOn','isEnabled')['to'](_0x224928,'value','isEnabled');}_0xfa518a['ui']['componentFactory']['add']('trackChanges',_0x6c0351=>this['_createToolbarButton'](_0x6c0351,_0x2598d5,_0x27b163)),_0xfa518a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x404cb6=>this['_createMenuBarMenu'](_0x404cb6,_0x2598d5,_0x27b163));}['_createToolbarButton'](_0x3ea42f,_0x580612,_0x33eefc){const _0xa52145=Qt(_0x3ea42f,_0x16eac9),_0x467220=this['editor']['commands']['get']('trackChanges');_0xa52145['buttonView']['set']({'tooltip':_0x33eefc,'label':_0x33eefc,'icon':he}),_0xa52145['buttonView']['bind']('isOn')['to'](_0x467220,'value'),_0xa52145['buttonView']['on']('execute',()=>{_0x467220['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xa52145,_0x580612,{'role':'menu'});const _0x2ca30b=[];for(const _0x3c0287 of _0x580612)me(_0x3c0287)&&_0x2ca30b['push'](this['editor']['commands']['get'](_0x3c0287['model']['commandName']));const _0x4876b4=_0xa52145['buttonView'];return _0x4876b4['actionView']['unbind']('isEnabled'),_0x4876b4['arrowView']['unbind']('isEnabled'),_0x4876b4['actionView']['bind']('isEnabled')['to'](_0x467220,'isEnabled'),_0x4876b4['arrowView']['bind']('isEnabled')['toMany'](_0x2ca30b,'isEnabled',(..._0x4cc84a)=>_0x4cc84a['some'](_0x153036=>_0x153036)),_0xa52145['on']('execute',_0xb08044=>{this['editor']['execute'](_0xb08044['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa52145;}['_createMenuBarMenu'](_0x3375f8,_0x27e736,_0x258ef3){const _0x3ea5ae=new Yt(_0x3375f8),_0x5d1c83=this['editor']['commands']['get']('trackChanges');_0x3ea5ae['buttonView']['set']({'label':_0x258ef3,'icon':he});const _0x7cb204=new Zt(_0x3375f8);for(const _0x130d33 of _0x27e736){if('separator'==_0x130d33['type']){_0x7cb204['items']['add'](new Xt(_0x3375f8));continue;}const _0x4e86f0=new te(_0x3375f8,_0x3ea5ae),_0x537d81=new _0x35f9d2(_0x3375f8),_0x50c4ea=_0x130d33['model'];_0x537d81['bind'](...Object['keys'](_0x50c4ea))['to'](_0x50c4ea),_0x537d81['delegate']('execute')['to'](_0x3ea5ae),_0x537d81['on']('execute',()=>{this['editor']['execute'](_0x50c4ea['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e86f0['children']['add'](_0x537d81),_0x7cb204['items']['add'](_0x4e86f0);}return _0x3ea5ae['bind']('isEnabled')['to'](_0x5d1c83,'isEnabled'),_0x3ea5ae['panelView']['children']['add'](_0x7cb204),_0x3ea5ae;}['_initializeController'](_0x43feb2){const _0x49e53f=this['editor'],_0x27c563=_0x49e53f['config'],_0x5660e2=_0x49e53f['plugins']['get']('Annotations'),_0x13bc7b=_0x49e53f['plugins']['get']('CommentsRepository'),_0x237871=_0x49e53f['plugins']['get']('EditorAnnotations'),_0x1c4680=_0x49e53f['plugins']['get'](_0x39c210)['me'],_0x4fad42=_0x27c563['get']('trackChanges')['SuggestionThreadView'],_0x27c81b=_0x27c563['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2527fd,CommentThreadInputView:_0x4f0234}=_0x49e53f['plugins']['get']('CommentsUI');let _0x360a5d,_0x47ec6f,_0x3503e5;this['_annotationViews']['has'](_0x43feb2['id'])?(_0x47ec6f=this['_annotationViews']['get'](_0x43feb2['id']),_0x360a5d=_0x47ec6f['mainView']):(_0x360a5d=new _0x4fad42(_0x49e53f['locale'],_0x43feb2,_0x1c4680,{'disableComments':this['_disableComments'],'editorConfig':_0x27c563['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x27c563['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27c563['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27c563['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x618079(_0x27c563['get']('locale')),'CommentView':_0x27c563['get']('comments')['CommentView'],'CommentsListView':_0x2527fd,'CommentThreadInputView':_0x4f0234,'SuggestionView':_0x27c81b}),_0x360a5d['suggestionView']['acceptButton']['on']('execute',()=>{_0x49e53f['editing']['view']['focus']();}),_0x360a5d['suggestionView']['discardButton']['on']('execute',()=>{_0x49e53f['editing']['view']['focus']();}),_0x47ec6f=_0x5660e2['createAnnotationView'](this['editor']['locale'],_0x360a5d),_0x47ec6f['bind']('isDirty')['to'](_0x360a5d,'isDirty'),_0x47ec6f['bind']('length')['to'](_0x360a5d),_0x47ec6f['bind']('type')['to'](_0x360a5d,'type',_0x1aaa21=>'suggestion-'+_0x1aaa21),_0x360a5d['on']('escape',()=>{_0x3503e5['fire']('escape');}),this['_annotationViews']['set'](_0x43feb2['id'],_0x47ec6f));const _0x10d732=_0x13bc7b['createCommentThreadController'](_0x43feb2['commentThread'],_0x360a5d),_0x4f76c3=new ae(_0x49e53f,_0x43feb2,_0x360a5d,_0x10d732),_0x208872=_0x43feb2['getAllAdjacentSuggestions']()['filter'](_0x5be318=>_0x5be318['isInContent']);_0x360a5d['descriptionParts']=_0x49e53f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x208872),this['_suggestionToController']['set'](_0x43feb2,_0x4f76c3),this['_viewToController']['set'](_0x360a5d,_0x4f76c3),_0x3503e5=_0x5660e2['createAnnotation']({'view':_0x47ec6f,'target':()=>{const _0x4e4a26=[],_0x296ad0=_0x43feb2['getAllAdjacentSuggestions']()['filter'](_0x360766=>_0x360766['isInContent']);for(const _0x5883ed of _0x296ad0)_0x4e4a26['push'](..._0x5883ed['getMarkers']());return _0x112ab5(_0x49e53f['editing'],_0x4e4a26);},'type':()=>'suggestion-'+_0x4f76c3['view']['type']}),_0x13bc7b['_bindAnnotationToEditors'](_0x360a5d,_0x3503e5),_0x5660e2['add'](_0x3503e5),_0x237871['registerAnnotation'](_0x3503e5);}['_destroyController'](_0x3644d0){const _0x919859=this['editor']['plugins']['get']('CommentsRepository'),_0x5183c1=this['editor']['plugins']['get']('Annotations'),_0x5d4cfb=this['_suggestionToController']['get'](_0x3644d0),_0x378632=_0x5d4cfb['view'],_0x5870ed=_0x5183c1['getByInnerView'](_0x378632);_0x919859['_unbindEditors'](_0x378632),_0x5870ed&&_0x5183c1['remove'](_0x5870ed),this['_suggestionToController']['delete'](_0x3644d0),this['_viewToController']['delete'](_0x378632),_0x5d4cfb['destroy']();}['_updateController'](_0x2df095){if(!_0x2df095['isInContent']||!this['_suggestionToController']['has'](_0x2df095))return;const _0x5660e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b5e9=this['_suggestionToController']['get'](_0x2df095),_0x34a6b3=_0x2df095['getAllAdjacentSuggestions']();_0x37b5e9['view']['descriptionParts']=_0x5660e1['descriptionFactory']['getDescriptions'](_0x34a6b3);}['destroy'](){for(const _0x11e267 of this['_suggestionToController']['keys']())this['_destroyController'](_0x11e267);for(const _0x2fca45 of this['_annotationViews']['values']())_0x2fca45['mainView']['destroy']();super['destroy']();}}function me(_0x397613){return'model'in _0x397613;}class k extends _0x5a19c7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x35979f){this['editor']['plugins']['get'](p)['adapter']=_0x35979f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5b11){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5b11);}['getSuggestions']({skipNotAttached:_0x169606=!0x1,toJSON:_0x129c94=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x169606,'toJSON':_0x129c94});}['getSuggestion'](_0x21160c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x21160c);}}const T=['Pagination'];class P extends _0x5a19c7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44ddeb=this['editor'];if(_0x44ddeb['config']['define']('trackChangesData.editorCreator',_0x559cf6=>{const _0x3e0352=_0x44ddeb['model']['document']['getRootNames']()['reduce']((_0x45da7b,_0x2160b6)=>(_0x45da7b[_0x2160b6]='',_0x45da7b),{});return _0x44ddeb['constructor']['create'](_0x3e0352,_0x559cf6);}),'function'!=typeof _0x44ddeb['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a7393('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44e3b4){return N(this['editor'],!0x0,_0x44e3b4);}['getDataWithDiscardedSuggestions'](_0x22c67b){return N(this['editor'],!0x1,_0x22c67b);}}class D extends _0x5a19c7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x537a84){super(_0x537a84),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(_0x1e03cd){return void 0x0!==_0x1e03cd['getRootsAttributes'];}async function N(_0x24e19c,_0x2002fb,_0x4927b6){const _0x309e65=_0x19a12e(_0x24e19c,T);_0x309e65['plugins']['push'](p,D),_0x309e65['rootsAttributes']=v(_0x24e19c)?_0x24e19c['getRootsAttributes']():void 0x0;const _0x4da289=document['createDocumentFragment'](),_0x140294=_0x24e19c['config']['get']('trackChangesData')['editorCreator'],_0xd7dacb=await _0x140294(_0x309e65,()=>function(_0xf914be){const _0x598851=document['createElement']('div');return _0xf914be['appendChild'](_0x598851),_0x598851;}(_0x4da289));!function(_0x2a1673,_0x189cae){const _0x30276f=_0x2a1673['model']['document']['getRootNames']()['reduce']((_0x589f90,_0x40bf26)=>(_0x589f90[_0x40bf26]=_0x2a1673['data']['get']({'rootName':_0x40bf26}),_0x589f90),{}),_0x1f884d=_0x2a1673['plugins']['get']('Users')['users']['map'](_0x3116bc=>({'id':_0x3116bc['id'],'name':_0x3116bc['name']})),_0x338745=_0x2a1673['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e6a89=_0x2a1673['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30eb16=_0x189cae['plugins']['get']('Users'),_0x28e28f=_0x189cae['plugins']['get']('TrackChangesEditing'),_0x3ce983=_0x189cae['plugins']['get']('CommentsRepository');for(const _0x36c5e7 of _0x3ce983['getCommentThreads']())_0x36c5e7['remove']();for(const _0x15ae2b of _0x1f884d)_0x30eb16['getUser'](_0x15ae2b['id'])||_0x30eb16['addUser'](_0x15ae2b);_0x30eb16['me']||_0x30eb16['useAnonymousUser']();for(const _0x5b8ca0 of _0x1e6a89)_0x3ce983['addCommentThread'](_0x5b8ca0);for(const _0x595ca2 of _0x338745)_0x28e28f['addSuggestionData'](_0x595ca2);_0x189cae['data']['set'](_0x30276f);}(_0x24e19c,_0xd7dacb),_0xd7dacb['execute'](_0x2002fb?'acceptAllSuggestions':'discardAllSuggestions');const _0x2fa40d=v(_0xd7dacb)?_0xd7dacb['getFullData'](_0x4927b6):_0xd7dacb['data']['get'](_0x4927b6);return await _0xd7dacb['destroy'](),_0x2fa40d;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|