@ckeditor/ckeditor5-track-changes 43.3.0-alpha.3 → 43.3.0-alpha.7
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
|
-
_0x5b20f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f9dff,_0x39a258){super(),this['id']=_0x39a258['id'],this['type']=_0x39a258['type'],this['subType']=_0x39a258['subType']||null,this['author']=_0x39a258['author'],this['creator']=_0x39a258['creator']||_0x39a258['author'],this['isExternal']=Boolean(_0x39a258['attributes']&&_0x39a258['attributes']['@external']),this['data']=null,this['_model']=_0x1f9dff,this['_onAccept']=_0x39a258['onAccept'],this['_onDiscard']=_0x39a258['onDiscard'],this['_onAttributesChange']=_0x39a258['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x39a258['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 _0x4a3e4a=this;for(;_0x4a3e4a['previous'];)_0x4a3e4a=_0x4a3e4a['previous'];return _0x4a3e4a;}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'](_0x1a7eb9){this['_markerNames']['add'](_0x1a7eb9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x58ac9d=>this['_model']['markers']['get'](_0x58ac9d))['filter'](_0x4fba95=>_0x4fba95);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1fa33c=>{for(const _0x4be3f3 of this['getMarkers']())_0x1fa33c['removeMarker'](_0x4be3f3);}),this['_markerNames']['clear']();}['removeMarker'](_0x58abfc){this['_model']['change'](_0x1dd5dc=>{_0x1dd5dc['removeMarker'](_0x58abfc);}),this['_markerNames']['delete'](_0x58abfc);}['addRange'](_0xc956f7){const _0x53b638='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x53b638),this['_model']['change'](_0x718ee=>{_0x718ee['addMarker'](_0x53b638,{'range':_0xc956f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c8bc5){for(const _0x3e7341 of this['getRanges']())if(_0x3e7341['isIntersecting'](_0x5c8bc5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x9f4b23=>_0x9f4b23['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x9acd63,_0xb1a577)=>[..._0x9acd63,..._0xb1a577['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x395bdc=this['getRanges']();if(0x1!=_0x395bdc['length'])return null;const _0x34102f=_0x395bdc[0x0],_0x813245=_0x34102f['start']['nodeAfter'],_0x4a3ae1=_0x34102f['end']['nodeBefore'];return _0x813245 instanceof _0x560627?_0x813245!=_0x4a3ae1?null:_0x813245: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 _0x52daa4=[];let _0x2d7e75=this['head'];for(;_0x2d7e75;)_0x52daa4['push'](_0x2d7e75),_0x2d7e75=_0x2d7e75['next'];return _0x52daa4;}['setAttribute'](_0x3b2a7b,_0x369e8b){const _0x365684=_0x289bbd(this['attributes']);_0x200643(_0x365684,_0x3b2a7b,_0x369e8b),_0x46161a(_0x365684,this['attributes'])||(this['attributes']=_0x365684,this['_onAttributesChange'](_0x365684));}['removeAttribute'](_0x3ce40b){const _0x406c86=_0x289bbd(this['attributes']);_0xc6ac9e(_0x406c86,_0x3ce40b),_0x46161a(_0x406c86,this['attributes'])||(this['attributes']=_0x406c86,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 _0x338779()['substr'](0x1,0x5);}}function o(_0x19f1e8,_0x520507,_0x1de269){const _0x23e12a=_0x19f1e8['t'],t=_0x19f1e8['t'];switch(_0x520507){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',_0x1de269);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1de269);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1de269);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1de269);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1de269);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',_0x1de269);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1de269);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',_0x1de269);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1de269);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1de269);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1de269);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1de269);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1de269);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1de269);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1de269);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1de269);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1de269);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1de269);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1de269);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1de269);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1de269);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1de269);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1de269);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'},_0x1de269);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1de269);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1de269);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1de269);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1de269);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1de269);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'},_0x1de269);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1de269);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1de269);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1de269);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1de269);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'},_0x1de269);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1de269);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'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1de269);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'},_0x1de269);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1de269);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1de269);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'},_0x1de269);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 _0x23e12a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1de269);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23e12a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1de269);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1de269);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'},_0x1de269);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'},_0x1de269);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'},_0x1de269);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x520507;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4b39c9,_0x75c619){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4b39c9,this['_locale']=_0x75c619;}['getDescriptions'](_0x39d9fa){const _0x232b3d=[],_0x28bccf=new Set(),_0x4ebe8f=new Set();for(let _0x836d9e=0x0;_0x836d9e<_0x39d9fa['length'];_0x836d9e++){const _0x35735f=_0x39d9fa[_0x836d9e];if(!_0x35735f['isInContent'])continue;const _0x530eaa=this['_handleCustomCallbackDescription'](_0x35735f);if(_0x530eaa){if(null!=_0x35735f['subType']){if(_0x28bccf['has'](_0x35735f['subType']))continue;_0x28bccf['add'](_0x35735f['subType']);}_0x232b3d['push'](_0x530eaa);}else{if('attribute'!=_0x35735f['type'])'insertion'!=_0x35735f['type']&&'deletion'!=_0x35735f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x232b3d,_0x35735f,_0x39d9fa[_0x836d9e+0x1]);else{const _0x428cca=_0x35735f['data']['key'];if(_0x4ebe8f['has'](_0x428cca))continue;_0x4ebe8f['add'](_0x35735f['data']['key']),_0x428cca==m?this['_handleRenameSuggestionDescription'](_0x232b3d,_0x35735f):this['_handleAttributeSuggestionDescription'](_0x232b3d,_0x35735f);}}}return this['_resolveDescriptionItems'](_0x232b3d);}['registerDescriptionCallback'](_0x1e1f45){this['_customCallbacks']['push'](_0x1e1f45);}['registerElementLabel'](_0x2c61eb,_0x570a8b,_0x30629c=_0x563ef4['normal']){'function'==typeof _0x2c61eb?_0x299098(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2c61eb,'label':_0x570a8b,'priority':_0x30629c}):this['_itemLabels']['set'](_0x2c61eb,_0x570a8b);}['registerAttributeLabel'](_0x11c5ff,_0x4cee88){this['_attributeLabels']['set'](_0x11c5ff,_0x4cee88);}['getItemLabel'](_0x2a0986,_0x2c3904=0x1){let _0x3d20a7;for(const _0x1bda16 of this['_itemLabelsCallbacks'])if(_0x1bda16['matchingCallback'](_0x2a0986)){_0x3d20a7=_0x1bda16['label'];break;}return _0x3d20a7||(_0x3d20a7=this['_itemLabels']['get'](_0x2a0986['name'])),_0x3d20a7?_0x3d20a7(_0x2c3904):0x1!==_0x2c3904?_0x2c3904+'\x20'+_0x2a0986['name']+'s':''+_0x2a0986['name'];}['_addDescriptionItems'](_0x2b589,_0x3e9914){const _0x126120=_0x3e9914['getFirstRange']()['getWalker'](),_0x3196f6='insertion'==_0x3e9914['type']?'add':'remove';for(const _0x59c051 of _0x126120){const _0x4b0e33=_0x59c051['item'],_0x5dd978=_0x2b589[_0x2b589['length']-0x1];if(_0x4b0e33['is']('$textProxy'))_0x5dd978&&_0x5dd978['type']['indexOf']('Container')>-0x1&&_0x2b589['pop'](),_0x5dd978&&'text'==_0x5dd978['type']?_0x5dd978[_0x3196f6]+=_0x4b0e33['data']:_0x2b589['push']({'type':'text','add':'add'==_0x3196f6?_0x4b0e33['data']:'','remove':'remove'==_0x3196f6?_0x4b0e33['data']:''});else{if(this['_schema']['isObject'](_0x4b0e33)){const _0x5e9744=_0x4b0e33;if(_0x5dd978&&_0x5dd978['type']['indexOf']('Container')>-0x1&&_0x2b589['pop'](),'elementEnd'==_0x59c051['type'])continue;_0x5dd978&&_0x5dd978['type']==_0x3196f6+'Object'&&_0x5dd978['element']['name']==_0x5e9744['name']?_0x5dd978['quantity']++:_0x2b589['push']({'type':_0x3196f6+'Object','element':_0x5e9744,'quantity':0x1}),_0x126120['skip'](_0x501466=>!('elementEnd'==_0x501466['type']&&_0x501466['item']==_0x4b0e33));}else{if(this['_schema']['checkChild'](_0x4b0e33,'$text')||_0x4b0e33['is']('element','softBreak')){const _0x8f5344=_0x4b0e33;if('add'==_0x3196f6&&'elementStart'==_0x59c051['type']||'remove'==_0x3196f6&&'elementEnd'==_0x59c051['type'])continue;if(_0x5dd978&&-0x1==_0x5dd978['type']['indexOf']('Container')){'text'==_0x5dd978['type']&&(_0x5dd978[_0x3196f6]+='\x0a');continue;}let _0x2bee4a;if(_0x2bee4a='add'==_0x3196f6?_0x8f5344['nextSibling']&&!this['_schema']['isObject'](_0x8f5344['nextSibling'])?_0x8f5344['nextSibling']:null:_0x8f5344['previousSibling']&&!this['_schema']['isObject'](_0x8f5344['previousSibling'])?_0x8f5344['previousSibling']:null,_0x8f5344['isEmpty']||_0x2bee4a&&_0x2bee4a['isEmpty']){const _0x1247b2=_0x2bee4a&&_0x2bee4a['isEmpty']?_0x2bee4a:_0x8f5344;_0x5dd978&&_0x5dd978['type']==_0x3196f6+'EmptyContainer'&&_0x5dd978['element']['name']==_0x1247b2['name']?_0x5dd978['quantity']++:_0x2b589['push']({'type':_0x3196f6+'EmptyContainer','element':_0x1247b2,'quantity':0x1});}else _0x2b589['push']({'type':_0x3196f6+'Container','element':_0x8f5344});}}}}}['_resolveDescriptionItems'](_0x4002fa){const _0x24763f=this['_locale'],_0x45f7e0=[],_0x13dd3b=[],_0x5efdb9=[];for(const _0x1d4db8 of _0x4002fa)switch(_0x1d4db8['type']){case'text':if(_0x1d4db8['add']=_0x1d4db8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d4db8['remove']=_0x1d4db8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d4db8['add']&&''!=_0x1d4db8['remove']){_0x45f7e0['push']({'type':'replace','content':o(_0x24763f,'REPLACE_TEXT',['\x22'+_0x1d4db8['remove']+'\x22','\x22'+_0x1d4db8['add']+'\x22'])});continue;}if(null!=_0x1d4db8['add']['match'](/^ +$/)){_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0',o(_0x24763f,'ELEMENT_SPACE',_0x1d4db8['add']['length']))});continue;}if(null!=_0x1d4db8['remove']['match'](/^ +$/)){_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0',o(_0x24763f,'ELEMENT_SPACE',_0x1d4db8['remove']['length']))});continue;}if(''!=_0x1d4db8['add']){_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0','\x22'+_0x1d4db8['add']+'\x22')});continue;}_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0','\x22'+_0x1d4db8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Insert:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Remove:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'addContainer':_0x45f7e0['push']({'type':'insertion','content':o(_0x24763f,'*Split:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'removeContainer':_0x45f7e0['push']({'type':'deletion','content':o(_0x24763f,'*Merge:*\x20%0',this['getItemLabel'](_0x1d4db8['element'],_0x1d4db8['quantity']))});continue;case'addFormat':_0x13dd3b['push'](_0x1d4db8['key']);continue;case'removeFormat':_0x5efdb9['push'](_0x1d4db8['key']);continue;default:_0x45f7e0['push'](_0x1d4db8);}if(_0x13dd3b['length']){const _0x4bb32c=_0x13dd3b['map'](_0x18b9ff=>this['_attributeLabels']['has'](_0x18b9ff)?this['_attributeLabels']['get'](_0x18b9ff):_0x18b9ff)['join'](',\x20');_0x45f7e0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4bb32c)});}if(_0x5efdb9['length']){const _0x305c7e=_0x5efdb9['map'](_0x33683a=>this['_attributeLabels']['has'](_0x33683a)?this['_attributeLabels']['get'](_0x33683a):_0x33683a)['join'](',\x20');_0x45f7e0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x305c7e)});}return _0x45f7e0;}['_handleCustomCallbackDescription'](_0x288ddf){for(const _0xab44c of this['_customCallbacks']){const _0x14a609=_0xab44c(_0x288ddf);if(_0x14a609&&'type'in _0x14a609)return _0x14a609;}}['_handleAttributeSuggestionDescription'](_0x4a793d,_0x48dc69){const _0x23b4eb=_0x48dc69['data'],_0x52e588=void 0x0===_0x23b4eb['newValue']?'removeFormat':'addFormat';_0x4a793d['push']({'type':_0x52e588,'key':_0x23b4eb['key']});}['_handleRenameSuggestionDescription'](_0x5def8e,_0x4b1809){_0x5def8e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b1809['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1165e1,_0x4f3eeb,_0x235dd0){if(this['_addDescriptionItems'](_0x1165e1,_0x4f3eeb),_0x235dd0&&_0x235dd0['getFirstRange']()&&!_0x4f3eeb['getFirstRange']()['end']['isEqual'](_0x235dd0['getFirstRange']()['start'])){const _0x520566=_0x1165e1[_0x1165e1['length']-0x1],_0x497504='insertion'==_0x4f3eeb['type']?'add':'remove';_0x520566&&'text'==_0x520566['type']&&(_0x520566[_0x497504]+='\x0a');}}}class V extends _0x1d1013{['afterInit'](){const _0x1f5851=this['editor'],_0x4a47f9=_0x1f5851['plugins']['get']('TrackChangesEditing');_0x1f5851['commands']['get']('showAIAssistant')&&_0x4a47f9['enableCommand']('showAIAssistant');}}class U extends _0x1d1013{['afterInit'](){const _0xc25d=this['editor'],_0x16c557=_0xc25d['locale'];if(!_0xc25d['plugins']['has']('AlignmentEditing'))return;const _0x3a4a9e=_0xc25d['plugins']['get']('TrackChangesEditing');_0x3a4a9e['enableDefaultAttributesIntegration']('alignment'),_0x3a4a9e['registerBlockAttribute']('alignment'),_0x3a4a9e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16c557,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a8654=this['editor'],_0x5dd842=_0x2a8654['locale'];_0x2a8654['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4537c5=>{if('formatBlock'!=_0x4537c5['type'])return;const {data:_0x26cdcc}=_0x4537c5;if(_0x26cdcc&&'alignment'==_0x26cdcc['commandName']){const _0x45788b=_0x26cdcc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5dd842,'*Format:*\x20%0',function(_0x3a6632){switch(_0x3a6632){case'left':return o(_0x5dd842,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5dd842,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5dd842,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5dd842,'FORMAT_JUSTIFY_TEXT');}}(_0x45788b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1d1013{['afterInit'](){const _0x3835df=this['editor'],_0x1ad038=_0x3835df['plugins']['get']('TrackChangesEditing'),_0x23a51a=_0x3835df['locale'];for(const _0x3a18d1 of ti){if(!_0x3835df['plugins']['has'](_0x3a18d1))continue;const _0x4233ba=_0x3a18d1['slice'](0x0,-0x7)['toLowerCase'](),_0xd2c54f='FORMAT_'+_0x4233ba['toUpperCase']();_0x1ad038['enableDefaultAttributesIntegration'](_0x4233ba),_0x1ad038['registerInlineAttribute'](_0x4233ba),_0x1ad038['descriptionFactory']['registerAttributeLabel'](_0x4233ba,o(_0x23a51a,_0xd2c54f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24cd6a=this['editor'],_0x4cfa52=_0x24cd6a['locale'],_0x53059a=_0x24cd6a['plugins']['get']('TrackChangesEditing');function _0x176b3f(_0x4e121c,_0x2569de){_0x53059a['descriptionFactory']['registerDescriptionCallback'](_0x57a004=>{if('formatInline'!=_0x57a004['type'])return;const {data:_0xee13b8}=_0x57a004;return _0xee13b8&&_0xee13b8['commandName']===_0x4e121c?_0xee13b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cfa52,'*Format:*\x20%0',_0x2569de)}:{'type':'format','content':o(_0x4cfa52,'*Remove\x20format:*\x20%0',_0x2569de)}:void 0x0;});}_0x176b3f('bold',o(_0x4cfa52,'FORMAT_BOLD')),_0x176b3f('italic',o(_0x4cfa52,'FORMAT_ITALIC')),_0x176b3f('underline',o(_0x4cfa52,'FORMAT_UNDERLINE')),_0x176b3f('code',o(_0x4cfa52,'FORMAT_CODE')),_0x176b3f('strikethrough',o(_0x4cfa52,'FORMAT_STRIKETHROUGH')),_0x176b3f('subscript',o(_0x4cfa52,'FORMAT_SUBSCRIPT')),_0x176b3f('superscript',o(_0x4cfa52,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1d1013{['afterInit'](){const _0x3033d0=this['editor'],_0x10e103=_0x3033d0['locale'];if(!_0x3033d0['plugins']['has']('BlockQuoteEditing'))return;const _0x44f1c6=_0x3033d0['plugins']['get']('TrackChangesEditing'),_0x41bd82=this['editor']['commands']['get']('blockQuote');_0x44f1c6['enableCommand']('blockQuote',(_0x5d7a67,_0x19f66a={})=>{const _0xdee148=this['editor']['model']['document']['selection'],_0x144db6=_0x19f66a&&void 0x0!==_0x19f66a['forceValue']?_0x19f66a['forceValue']:!_0x41bd82['value'];let _0x3437a4=[];if(_0x144db6){const _0x126bad=Array['from'](_0xdee148['getSelectedBlocks']())['filter'](_0x2afb02=>oo(_0x2afb02)||function(_0x2e9529,_0x54f807){const _0x1c06c4=_0x54f807['checkChild'](_0x2e9529['parent'],'blockQuote'),_0x2ebbc5=_0x54f807['checkChild'](['$root','blockQuote'],_0x2e9529);return _0x1c06c4&&_0x2ebbc5;}(_0x2afb02,this['editor']['model']['schema']));_0x3437a4=to(_0x126bad,_0x3033d0['model']);}else{const _0x36888f=Array['from'](_0xdee148['getSelectedBlocks']())['filter'](_0x4f8736=>oo(_0x4f8736));_0x3437a4=to(_0x36888f,_0x3033d0['model']);}_0x3033d0['model']['change'](()=>{for(const _0x5c98a9 of _0x3437a4)_0x44f1c6['markBlockFormat'](_0x5c98a9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x144db6}]});});}),_0x44f1c6['descriptionFactory']['registerDescriptionCallback'](_0x12630e=>{const {data:_0x4fbebc}=_0x12630e;if(_0x4fbebc&&'blockQuote'==_0x4fbebc['commandName']){const _0x4615c6=o(_0x10e103,'ELEMENT_BLOCK_QUOTE');return _0x4fbebc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10e103,'*Set\x20format:*\x20%0',_0x4615c6)}:{'type':'format','content':o(_0x10e103,'*Remove\x20format:*\x20%0',_0x4615c6)};}});}}function oo(_0x49be67){return'blockQuote'==_0x49be67['parent']['name'];}class L extends _0x1d1013{['afterInit'](){const _0x8f053=this['editor'];_0x8f053['plugins']['has']('CaseChange')&&(_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x8f053['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1d1013{['afterInit'](){const _0x2e65e6=this['editor'];_0x2e65e6['commands']['get']('ckbox')&&_0x2e65e6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1d1013{['afterInit'](){const _0x4b976c=this['editor'];if(!_0x4b976c['plugins']['has']('CodeBlock'))return;const _0x25fa88=_0x4b976c['plugins']['get']('TrackChangesEditing'),_0x5c91ac=_0x4b976c['locale'],_0x1a2295=_0x4b976c['config']['get']('codeBlock')['languages'],_0x2f2d19=_0x4b976c['commands']['get']('codeBlock');_0x25fa88['enableCommand']('indentCodeBlock'),_0x25fa88['enableCommand']('outdentCodeBlock'),_0x25fa88['enableCommand']('codeBlock',(_0x53da59,_0x203754={})=>{const _0x2a8b7d=_0x4b976c['model'],_0x19c530=_0x4b976c['model']['document']['selection'],_0x12a4e5=_0x203754&&void 0x0!==_0x203754['forceValue']?_0x203754['forceValue']:!_0x2f2d19['value'];let _0xc9066;_0x203754['language']||(_0x203754['language']=_0x1a2295[0x0]['language']),_0xc9066=_0x12a4e5?Array['from'](_0x19c530['getSelectedBlocks']())['filter'](_0xdfcde1=>eo(_0xdfcde1)||function(_0x16496d,_0x7c17d2){if(_0x16496d['is']('rootElement')||_0x7c17d2['isLimit'](_0x16496d))return!0x1;return _0x7c17d2['checkChild'](_0x16496d['parent'],'codeBlock');}(_0xdfcde1,_0x2a8b7d['schema'])):Array['from'](_0x19c530['getSelectedBlocks']())['filter'](_0xce766c=>eo(_0xce766c));const _0x3e1c53=to(_0xc9066,_0x2a8b7d);_0x2a8b7d['change'](()=>{for(const _0x153e42 of _0x3e1c53)_0x25fa88['markBlockFormat'](_0x153e42,{'commandName':'codeBlock','commandParams':[{..._0x203754,'forceValue':_0x12a4e5}],'formatGroupId':'blockName'});});}),(_0x25fa88['descriptionFactory']['registerElementLabel']('codeBlock',_0x34ee42=>o(_0x5c91ac,'ELEMENT_CODE_BLOCK',_0x34ee42)),_0x25fa88['descriptionFactory']['registerDescriptionCallback'](_0x4c2f3b=>{if('formatBlock'!=_0x4c2f3b['type'])return;const _0x386641=_0x5c91ac['t'],{data:_0x2d88d0}=_0x4c2f3b;if(!_0x2d88d0||'codeBlock'!=_0x2d88d0['commandName'])return;const _0x1a5ffb=_0x2d88d0['commandParams'][0x0]['language'],_0x1877f3=_0x386641(_0x1a2295['find'](_0x461a6f=>_0x461a6f['language']===_0x1a5ffb)['label'])['toLowerCase']();return _0x2d88d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c91ac,'*Set\x20format:*\x20%0',o(_0x5c91ac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1877f3+')')}:{'type':'format','content':o(_0x5c91ac,'*Remove\x20format:*\x20%0',o(_0x5c91ac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xb8c867){return'codeBlock'==_0xb8c867['name'];}class q extends _0x1d1013{['afterInit'](){const _0x39ed65=this['editor'];if(!_0x39ed65['plugins']['has']('CommentsEditing'))return;_0x39ed65['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x38f2a6,_0x4c2c9e,_0x50eff1){const _0x1270cf=[];for(const _0x493c23 of _0x4c2c9e['getItems']())_0x493c23['hasAttribute'](_0x38f2a6)&&_0x1270cf['push'](_0x50eff1['createRangeOn'](_0x493c23));return _0x1270cf;}function _e(_0x1f8f07,_0x372c48,{showActiveMarker:_0x581102=!0x0}={}){const _0x3aee36=_0x1f8f07['plugins']['get']('TrackChangesEditing');return(_0x114fbf,_0x567fe6,_0x3502ed)=>{if(!_0x3502ed['consumable']['test'](_0x567fe6['markerRange'],_0x114fbf['name']))return;const _0x20b23b=_0x567fe6['markerRange']['getWalker'](),_0x43ba8d=_0x567fe6['markerRange']['start'],_0x5e7eb7=_0x1f8f07['model']['schema'];let _0x469ff2=null,_0xc74030=null,_0x40aeeb=!0x1,_0xac586e=!0x1;for(const _0x5d1bcd of _0x20b23b){const _0x5410f0=_0x5d1bcd['item'];_0x40aeeb=_0x40aeeb||_0x5e7eb7['isContent'](_0x5410f0);const _0x20062b=_0x3502ed['mapper']['toViewElement'](_0x5410f0);if(_0x20062b&&_0x20062b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d1bcd['type']&&(_0x5e7eb7['isBlock'](_0x5410f0)&&!_0x5e7eb7['isLimit'](_0x5410f0)&&(_0x5410f0['nextSibling']||_0x43ba8d['isAtEnd']?_0x469ff2&&_0x469ff2['parent']==_0x5410f0||(_0x469ff2=_0x5410f0,_0x47c8f4(_0x5d1bcd['previousPosition']),_0xac586e=!0x0):_0xc74030=_0xc74030||_0x5d1bcd['previousPosition']));}function _0x47c8f4(_0x1c5bc){const {authorId:_0x565e0d}=_0x3aee36['_splitMarkerName'](_0x567fe6['markerName']),_0x41174a=_0x3502ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372c48,'data-author-id':_0x565e0d}),_0xb915c6=_0x3502ed['mapper']['toViewPosition'](_0x1c5bc);_0x581102&&_0x3aee36['activeMarkers']['includes'](_0x567fe6['markerName'])&&_0x3502ed['writer']['addClass']('ck-suggestion-marker--active',_0x41174a),_0x3502ed['writer']['insert'](_0xb915c6,_0x41174a),_0x3502ed['mapper']['bindElementToMarker'](_0x41174a,_0x567fe6['markerName']);}_0x40aeeb||_0xac586e||!_0xc74030||_0x47c8f4(_0xc74030);};}class z extends _0x1d1013{static get['requires'](){return[_0xf8fd26];}['init'](){const _0x547eb7=this['editor'],_0x4a2fc7=_0x547eb7['plugins']['get']('TrackChangesEditing');_0x4a2fc7['enableCommand']('delete');const _0x25764a=_0x547eb7['commands']['get']('deleteForward');_0x4a2fc7['enableCommand']('deleteForward',(_0x361e6e,_0x10779e={})=>{const _0x36ca63=_0x547eb7['model']['createSelection'](_0x547eb7['model']['document']['selection']);_0x36ca63['isCollapsed']&&_0x547eb7['model']['modifySelection'](_0x36ca63,{'direction':'forward','unit':_0x10779e['unit']});const _0x43fc80=_0x36ca63['getFirstRange'](),_0x280140=_0x4f83f9['fromRange'](_0x43fc80);let _0x4da045;_0x361e6e(_0x10779e),_0x4da045='$graveyard'==_0x280140['root']['rootName']?_0x547eb7['model']['createRange'](_0x43fc80['start']):_0x547eb7['model']['createRange'](_0x280140['start'],_0x280140['end']),_0x280140['detach'](),_0x547eb7['model']['enqueueChange'](_0x25764a['buffer']['batch'],_0x352873=>{_0x25764a['buffer']['lock'](),_0x352873['setSelection'](_0x352873['createRange'](_0x4da045['end'])),_0x25764a['buffer']['unlock']();});}),_0x547eb7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x547eb7,'merge'),{'priority':'high'}),_0x547eb7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46366d,_0x3f7841,_0x5f1768)=>{_0x5f1768['options']['showSuggestionHighlights']&&_e(_0x547eb7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46366d,_0x3f7841,_0x5f1768);},{'priority':'high'}),_0x547eb7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2f30ad,_0x4cc897,_0x434d55)=>{const _0x8e2373=_0x434d55['mapper']['markerNameToElements'](_0x4cc897['markerName']);if(_0x8e2373){for(const _0x5186e9 of _0x8e2373)_0x5186e9['is']('uiElement')&&(_0x434d55['mapper']['unbindElementFromMarkerName'](_0x5186e9,_0x4cc897['markerName']),_0x434d55['writer']['remove'](_0x5186e9));}},{'priority':'high'});}}class K extends _0x1d1013{['afterInit'](){const _0x5424f3=this['editor'];if(!_0x5424f3['plugins']['has']('ListEditing'))return;const _0x4173ea=_0x5424f3['locale'],_0x181e4f=_0x5424f3['plugins']['get']('TrackChangesEditing'),_0x11d9bd=_0x5424f3['plugins']['has']('TodoListEditing'),_0x33ecff=!!_0x5424f3['config']['get']('list.multiBlock');function _0x49eb86(_0x58c739){return{'type':'format','content':''+o(_0x4173ea,'*Set\x20format:*\x20%0',_0x58c739)};}function _0x14e022(_0x48ce01){return{'type':'format','content':''+o(_0x4173ea,'*Remove\x20format:*\x20%0',_0x48ce01)};}_0x181e4f['enableDefaultAttributesIntegration']('numberedList'),_0x181e4f['enableDefaultAttributesIntegration']('bulletedList'),_0x181e4f['enableDefaultAttributesIntegration']('customNumberedList'),_0x181e4f['enableDefaultAttributesIntegration']('customBulletedList'),_0x181e4f['enableDefaultAttributesIntegration']('indentList'),_0x181e4f['enableDefaultAttributesIntegration']('outdentList'),_0x181e4f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x181e4f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x181e4f['registerBlockAttribute']('listItemId'),_0x181e4f['registerBlockAttribute']('listType'),_0x181e4f['registerBlockAttribute']('listIndent'),_0x33ecff&&(_0x181e4f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x181e4f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x11d9bd&&(_0x181e4f['enableDefaultAttributesIntegration']('todoList'),_0x181e4f['enableDefaultAttributesIntegration']('checkTodoList'),_0x181e4f['registerBlockAttribute']('todoListChecked'),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x475d3b=>{const {data:_0x34ace1}=_0x475d3b;if(_0x34ace1&&'todoListChecked'==_0x34ace1['key'])return{'type':'format','content':_0x34ace1['newValue']?o(_0x4173ea,'*Check\x20item*'):o(_0x4173ea,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1f7438=>{if(_0x1f7438['batch']['isUndo'])return!0x1;let _0x4289e1=!0x1;const _0x5a5485=_0x181e4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1080cf=>'todoListChecked'===_0x181e4f['_getAttributeKey'](_0x1080cf));for(const _0x7ef3ef of _0x5a5485){'todo'!=_0x7ef3ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x181e4f['_findSuggestions'](_0x7ef3ef['getFirstRange'](),'attribute')['find'](_0x3b494d=>'listType'===_0x181e4f['_getAttributeKey'](_0x3b494d['suggestion']))||(_0x1f7438['removeMarker'](_0x7ef3ef['getFirstMarker']()),_0x4289e1=!0x0));}return _0x4289e1;})),_0x181e4f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4173ea,'FORMAT_INDENT'));const _0x5cd00f={'type':'format','content':''};_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x4f19ce=>{const {data:_0x5b5c7d}=_0x4f19ce;if(!_0x5b5c7d||'listType'!=_0x5b5c7d['key'])return;let _0x425d21=_0x4f19ce['head'];for(;_0x425d21;){if(_0x425d21['data']&&(('listStyle'==_0x425d21['data']['key']||'listMarkerStyle'==_0x425d21['data']['key'])&&(_0x425d21['data']['newValue']&&'default'!=_0x425d21['data']['newValue']||'default'!=_0x425d21['data']['oldValue']&&!_0x5b5c7d['newValue'])||!_0x33ecff&&_0x425d21['data']['key']==m))return _0x5cd00f;_0x425d21=_0x425d21['next'];}if(null==_0x5b5c7d['newValue'])switch(_0x5b5c7d['oldValue']){case'bulleted':return _0x14e022(o(_0x4173ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14e022(o(_0x4173ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14e022(o(_0x4173ea,'ELEMENT_TODO_LIST'));}switch(_0x5b5c7d['newValue']){case'bulleted':return _0x49eb86(o(_0x4173ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49eb86(o(_0x4173ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49eb86(o(_0x4173ea,'ELEMENT_TODO_LIST'));}}),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x3917fa=>{const {data:_0x41d42f}=_0x3917fa;if(_0x41d42f&&'listIndent'==_0x41d42f['key'])return null==_0x41d42f['newValue']||null==_0x41d42f['oldValue']&&0x0==_0x41d42f['newValue']?_0x5cd00f:void 0x0;}),_0x181e4f['descriptionFactory']['registerDescriptionCallback'](_0x3d0a2b=>{if('attribute'!=_0x3d0a2b['type'])return;const {data:_0x4623e8}=_0x3d0a2b;if(!_0x4623e8||'listItemId'!=_0x4623e8['key'])return;const _0x2bfe4a=Ee(_0x3d0a2b);return'newValue'==_0x2bfe4a?{'type':'format','content':o(_0x4173ea,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2bfe4a?{'type':'format','content':o(_0x4173ea,'*Split:*\x20list\x20item')}:_0x5cd00f;}),_0x5424f3['model']['document']['registerPostFixer'](_0x10c0a4=>this['listItemIdFixer'](_0x10c0a4)),_0x5424f3['model']['document']['registerPostFixer'](_0x52b4ce=>this['noTrackChangesFixer'](_0x52b4ce)),_0x5424f3['model']['document']['on']('change:data',(_0x130fd5,_0x347c95)=>{if(_0x347c95['isUndo']||!_0x347c95['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4b7369){if(_0x4b7369['batch']['isUndo']||!_0x4b7369['batch']['isLocal'])return!0x1;let _0x28c56b=!0x1;const _0x285bbf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50bddc=>_0x50bddc['data']&&'listItemId'==_0x50bddc['data']['key'])['filter'](_0x5397f2=>_0x5397f2['data']['newValue']&&_0x5397f2['data']['oldValue']);for(const _0x38980e of _0x285bbf)Ee(_0x38980e)||(_0x4b7369['removeMarker'](_0x38980e['getFirstMarker']()),_0x28c56b=!0x0);return _0x28c56b;}['noTrackChangesFixer'](_0x48d887){if(_0x48d887['batch']['isUndo']||!_0x48d887['batch']['isLocal'])return!0x1;const _0x1e14c0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e14c0['trackChangesCommand']['value'])return!0x1;let _0x52bc36=!0x1;const _0xd5867e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x201553=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x413387=>'attribute'==_0x413387['type'])['filter'](_0x4ebfba=>_0xd5867e['includes'](_0x4ebfba['attributeKey']));if(0x0==_0x201553['length'])return _0x52bc36;for(const _0x299ee3 of _0x201553){const _0x175c3a=_0x1e14c0['_findSuggestions'](_0x299ee3['range'],'attribute')['filter'](_0x580439=>!_0x580439['meta']['isNextTo'])['map'](_0x436c0c=>_0x436c0c['suggestion'])['filter'](_0x54b57c=>{const _0x43d56d=_0x1e14c0['_getAttributeKey'](_0x54b57c);return _0xd5867e['includes'](_0x43d56d);});if(_0x175c3a['length']){for(const _0x1906d1 of _0x175c3a)_0x48d887['removeMarker'](_0x1906d1['getFirstMarker']());_0x52bc36=!0x0;}}return _0x52bc36;}['assureChains'](){const _0x43f8e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2b15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x564bc9;const _0x5b50f2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21083b=>{if(_0x21083b['data']['oldRange']||!_0x21083b['data']['newRange'])return null;if(!_0x21083b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2563e5}=_0x43f8e4['_splitMarkerName'](_0x21083b['name']);if(!_0x43f8e4['hasSuggestion'](_0x2563e5))return null;const _0x5a7412=_0x43f8e4['getSuggestion'](_0x2563e5);return _0x5f2b15['includes'](_0x5a7412['data']['key']);})['map'](_0x1a2470=>{const {id:_0x2a6ce5}=_0x43f8e4['_splitMarkerName'](_0x1a2470['name']),_0x1ab67e=_0x43f8e4['getSuggestion'](_0x2a6ce5);return _0x564bc9=_0x1ab67e['attributes']['groupId'],_0x1ab67e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b50f2['size'])return;const _0x5198ba=_0x43f8e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c1b6=>'attribute'==_0x14c1b6['type']&&_0x14c1b6['data']&&_0x5f2b15['includes'](_0x14c1b6['data']['key'])&&_0x14c1b6['attributes']['groupId']!=_0x564bc9)['map'](_0x4590cf=>({'listItem':_0x4590cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4590cf['attributes']['groupId']})),_0x91f09f=new Set();for(const {groupId:_0x1fbb99,listItem:_0x4fa404}of _0x5198ba)_0x5b50f2['has'](_0x4fa404)&&_0x91f09f['add'](_0x1fbb99);for(const _0x3fe952 of _0x43f8e4['getSuggestions']())_0x91f09f['has'](_0x3fe952['attributes']['groupId'])&&_0x3fe952['setAttribute']('groupId',_0x564bc9);}['_supportLegacySuggestions'](){const _0x267459=this['editor'],_0x5aec1a=_0x267459['locale'],_0xde70d4=_0x267459['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xde70d4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x103f0d,_0xdc2706){const _0x297946=[];for(let _0x56efe3 of _0x103f0d)_0x56efe3['start']['nodeAfter']===_0x56efe3['end']['parent']&&(_0x56efe3=_0x267459['model']['createRange'](_0x267459['model']['createPositionAt'](_0x56efe3['start']['nodeAfter'],0x0))),_0x297946['push'](_0x56efe3);_0x267459['model']['change'](_0x3ac1fa=>{const _0x269ce8=_0x267459['model']['document']['selection'],_0x2f4abf=Array['from'](_0x269ce8['getRanges']())['map'](_0x22e3b9=>_0x4f83f9['fromRange'](_0x22e3b9));_0x3ac1fa['setSelection'](_0x297946),_0x267459['commands']['get'](_0xdc2706['commandName'])['refresh'](),_0xdc2706['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x267459['execute'](_0xdc2706['commandName'],..._0xdc2706['commandParams']),_0x3ac1fa['setSelection'](_0x2f4abf);for(const _0x4f2ff6 of _0x2f4abf)_0x4f2ff6['detach']();});}),_0xde70d4['descriptionFactory']['registerElementLabel'](function(_0x22e92f){const _0x838c00=!_0x267459['model']['schema']['isObject'](_0x22e92f),_0x220490=_0x22e92f['previousSibling'],_0xef7787=_0x22e92f['nextSibling'],_0x445482=_0x22e92f['getAttribute']('listItemId'),_0x4bbd4f=!_0x220490||_0x220490['getAttribute']('listItemId')!==_0x445482,_0x552d2f=!_0xef7787||_0xef7787['getAttribute']('listItemId')!==_0x445482;return _0x838c00&&Boolean(_0x445482)&&_0x4bbd4f&&_0x552d2f;},_0x3b2037=>o(_0x5aec1a,'ELEMENT_LIST_ITEM',_0x3b2037));}['_registerLegacyDescription'](){const _0x52e452=this['editor'],_0x1c5951=_0x52e452['locale'];function _0x3048bb(_0x172e41){const _0x45c5a1=_0x52e452['commands']['get']('bulletedList')['value'],_0x3202ea=_0x52e452['commands']['get']('numberedList')['value'];return'numberedList'===_0x172e41?_0x45c5a1:_0x3202ea;}_0x52e452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c18c8){if('formatBlock'!=_0x3c18c8['type'])return;const {data:_0x17dc83}=_0x3c18c8;if(!_0x17dc83)return;let _0x5cfb1a,_0x148a12,_0x451cbe,_0x39a319;switch(_0x17dc83['commandName']){case'bulletedList':_0x451cbe=_0x17dc83['commandParams'][0x0]['forceValue'],_0x39a319=_0x3048bb(_0x17dc83['commandName']),_0x5cfb1a=_0x451cbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39a319&&_0x52e452['config']['get']('list.multiBlock')||(_0x5cfb1a='*Change\x20to:*\x20%0'),_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x451cbe=_0x17dc83['commandParams'][0x0]['forceValue'],_0x39a319=_0x3048bb(_0x17dc83['commandName']),_0x5cfb1a=_0x451cbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39a319&&_0x52e452['config']['get']('list.multiBlock')||(_0x5cfb1a='*Change\x20to:*\x20%0'),_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5cfb1a='*Indent:*\x20%0',_0x148a12={'type':'format','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5cfb1a=function(_0x1fe4d7){const _0x45c65a=_0x1fe4d7['getFirstRange']();let _0xecae1d=_0x45c65a['start']['nodeAfter'];for(;_0xecae1d&&_0x45c65a['containsItem'](_0xecae1d);){if(_0xecae1d['getAttribute']('listIndent')>0x0)return!0x1;_0xecae1d=_0xecae1d['nextSibling'];}return!0x0;}(_0x3c18c8)?o(_0x1c5951,'*Format:*\x20remove\x20from\x20%0',o(_0x1c5951,function(_0x2d2acc){return'ELEMENT_'+_0x2d2acc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c18c8))):o(_0x1c5951,'*Outdent:*\x20%0',o(_0x1c5951,'ELEMENT_LIST_ITEM')),_0x148a12={'type':'format','content':_0x5cfb1a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17dc83['multipleBlocks']&&(_0x5cfb1a='*Merge:*\x20%0',_0x148a12={'type':'deletion','content':o(_0x1c5951,_0x5cfb1a,o(_0x1c5951,'ELEMENT_LIST_ITEM'))});}return _0x148a12;});}}function Ee(_0x11c8ee){let _0x1d85c2=_0x11c8ee['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d85c2;){const _0x403644=_0x1d85c2['getAttribute']('listItemId');if(!_0x403644)return!0x1;if(_0x403644==_0x11c8ee['data']['newValue'])return'newValue';if(_0x403644==_0x11c8ee['data']['oldValue'])return'oldValue';_0x1d85c2=_0x1d85c2['previousSibling'];}return!0x1;}class pe extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xbcb7b6=this['editor']['config']['get']('list.properties'),_0x4e6e01=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcb7b6['styles']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listStyle'),_0x4e6e01['registerBlockAttribute']('listStyle')),_0xbcb7b6['reversed']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listReversed'),_0x4e6e01['registerBlockAttribute']('listReversed')),_0xbcb7b6['startIndex']&&(_0x4e6e01['enableDefaultAttributesIntegration']('listStart'),_0x4e6e01['registerBlockAttribute']('listStart'));const _0x408a28={'type':'format','content':''};_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3cdc6d=this['editor']['locale'];_0x4e6e01['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3cdc6d,'FORMAT_LIST_REVERSED')),_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](_0x3f5b89=>{const {data:_0x21392c}=_0x3f5b89;if(_0x21392c&&'listReversed'==_0x21392c['key'])return null==_0x21392c['newValue']||0x0==_0x21392c['newValue']&&null==_0x21392c['oldValue']?_0x408a28:void 0x0;}),_0x4e6e01['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3cdc6d,'FORMAT_LIST_START')),_0x4e6e01['descriptionFactory']['registerDescriptionCallback'](_0x3a7fe9=>{const {data:_0x4e6f0c}=_0x3a7fe9;if(_0x4e6f0c&&'listStart'==_0x4e6f0c['key'])return null==_0x4e6f0c['newValue']||0x1==_0x4e6f0c['newValue']&&null==_0x4e6f0c['oldValue']?_0x408a28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa052d0=>{if(_0xa052d0['batch']['isUndo'])return!0x1;let _0xbae871=!0x1;const _0x1a0b65=_0x4e6e01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b553a=>{const _0x118842=_0x4e6e01['_getAttributeKey'](_0x2b553a);return'listStart'==_0x118842||'listReversed'==_0x118842;});for(const _0x31e309 of _0x1a0b65){const _0x416986=_0x31e309['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x416986||'customNumbered'==_0x416986)continue;_0x4e6e01['_findSuggestions'](_0x31e309['getFirstRange'](),'attribute')['find'](_0x59123b=>'listType'==_0x4e6e01['_getAttributeKey'](_0x59123b['suggestion']))||(_0xa052d0['removeMarker'](_0x31e309['getFirstMarker']()),_0xbae871=!0x0);}return _0xbae871;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3247d2){const _0x5bb424=this['editor']['locale'],{data:_0x2dc2b8}=_0x3247d2,_0x5a3f46={'type':'format','content':''};if(!_0x2dc2b8||'listStyle'!=_0x2dc2b8['key'])return;if(!_0x2dc2b8['oldValue'])return'default'==_0x2dc2b8['newValue']?_0x5a3f46:{'type':'format','content':''+o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['newValue'])))};if(!_0x2dc2b8['newValue']){if('default'==_0x2dc2b8['oldValue'])return _0x5a3f46;let _0x434746=_0x3247d2['head'];for(;_0x434746;){if(_0x434746['data']&&'listType'==_0x434746['data']['key']&&_0x434746['data']['newValue'])return _0x5a3f46;_0x434746=_0x434746['next'];}return{'type':'format','content':''+o(_0x5bb424,'*Remove\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['oldValue'])))};}if('default'!=_0x2dc2b8['newValue'])return{'type':'format','content':''+o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,this['_getTranslationKeyForListStyle'](_0x2dc2b8['newValue'])))};let _0x189f7c=_0x3247d2['head'];for(;_0x189f7c;){if(_0x189f7c['data']&&'listType'==_0x189f7c['data']['key']&&_0x189f7c['data']['newValue']&&_0x189f7c['data']['oldValue'])return _0x5a3f46;_0x189f7c=_0x189f7c['next'];}return{'type':'format','content':o(_0x5bb424,'*Set\x20format:*\x20%0',o(_0x5bb424,'ELEMENT_'+_0x3247d2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x153d6b=this['editor'],_0xf4b620=_0x153d6b['locale'];_0x153d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506358=>{if('formatBlock'!=_0x506358['type'])return;const {data:_0x487f36}=_0x506358;if(!_0x487f36)return;let _0x439339,_0x5e5d9d;switch(_0x487f36['commandName']){case'listStyle':_0x439339='*Change\x20to:*\x20%0',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339,o(_0xf4b620,this['_getTranslationKeyForListStyle'](_0x487f36['commandParams'][0x0]['type'])))};break;case'listReversed':_0x439339=_0x487f36['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339)};break;case'listStart':_0x439339='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e5d9d={'type':'format','content':o(_0xf4b620,_0x439339,_0x487f36['commandParams'][0x0]['startIndex'])};}return _0x5e5d9d;});}['_getTranslationKeyForListStyle'](_0x62f903){return'ELEMENT_'+function(_0x41b3cf){if(ye['includes'](_0x41b3cf))return'bulleted';if(Se['includes'](_0x41b3cf))return'numbered';return null;}(_0x62f903)['toUpperCase']()+'_LIST_'+_0x62f903['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1d1013{static get['requires'](){return[_0x563a8e];}['init'](){const _0x5695a4=this['editor'],_0x3b26fc=_0x5695a4['plugins']['get']('TrackChangesEditing'),_0x23cd4f=_0x5695a4['commands']['get']('enter');_0x3b26fc['enableCommand']('enter',()=>{_0x5695a4['model']['change'](_0x5109e5=>{const _0x16f2e4=_0x5695a4['model']['document']['selection'],_0xaeeb3b=_0x16f2e4['getFirstPosition'](),_0x5c6cfe=_0x4f83f9['fromRange'](_0x16f2e4['getFirstRange']());if(_0x23cd4f['enterBlock'](_0x5109e5)){const _0x59045b=_0x5695a4['model']['createPositionAt'](_0xaeeb3b['parent']['nextSibling'],0x0),_0x1b384e=_0x5109e5['createRange'](_0xaeeb3b,_0x59045b);_0x3b26fc['markInsertion'](_0x1b384e);}else _0x5109e5['setSelection'](_0x5109e5['createRange'](_0x5c6cfe['end']));_0x5c6cfe['detach'](),_0x23cd4f['fire']('afterExecute',{'writer':_0x5109e5});});}),_0x5695a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5695a4,'split'),{'priority':'high'}),_0x5695a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2de5ed,_0xab189b,_0x232703)=>{const _0x474e96=_0x232703['mapper']['markerNameToElements'](_0xab189b['markerName']);if(_0x474e96){for(const _0x29f1b1 of _0x474e96)_0x29f1b1['hasClass']('ck-suggestion-marker-split')&&(_0x232703['mapper']['unbindElementFromMarkerName'](_0x29f1b1,_0xab189b['markerName']),_0x232703['writer']['remove'](_0x29f1b1));}},{'priority':'high'}),_0x5695a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4bb584,_0x2b3556,_0x18acc4)=>{_0x18acc4['options']['showSuggestionHighlights']&&_e(_0x5695a4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4bb584,_0x2b3556,_0x18acc4);},{'priority':'high'});}}class X extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11b0d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x11b0d2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11b0d2['enableCommand']('findNext'),_0x11b0d2['enableCommand']('findPrevious'),_0x11b0d2['enableCommand']('replace'),_0x11b0d2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ce067,_0x3afe26,_0x479e7e={}){const _0x518535=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ce067(_0x2cc2da=>{let _0x3b4e59=('string'==typeof _0x3afe26?_0x518535['findByTextCallback'](_0x3afe26,_0x479e7e):_0x3afe26)(_0x2cc2da);Array['isArray'](_0x3b4e59)&&(_0x3b4e59={'results':_0x3b4e59,'searchText':'string'==typeof _0x3afe26?_0x3afe26:''});const _0x742da8=_0x3b4e59['results']['filter'](_0x5ec4d1=>!0x1===this['_isInDeletionRange'](_0x5ec4d1,_0x2cc2da['item']));return{..._0x3b4e59,'results':_0x742da8};},_0x479e7e);}['_isInDeletionRange'](_0x5d4cc4,_0x422097){const _0x598340=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x422097,_0x5d4cc4['start']),this['editor']['model']['createPositionAt'](_0x422097,_0x5d4cc4['end']));for(const _0x32ce49 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x598340['getIntersection'](_0x32ce49['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 _0x1d1013{['afterInit'](){const _0x6a3231=this['editor']['locale'],_0x48327c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x470a7a,commandName:_0xd4e6fc}of ro)this['editor']['plugins']['has'](_0x470a7a)&&(_0x48327c['enableDefaultAttributesIntegration'](_0xd4e6fc),_0x48327c['registerInlineAttribute'](_0xd4e6fc));_0x48327c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6a3231,'FORMAT_FONT_SIZE')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6a3231,'FORMAT_FONT_FAMILY')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6a3231,'FORMAT_FONT_COLOR')),_0x48327c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6a3231,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e866=this['editor'],_0x21438d=_0x56e866['locale'];_0x56e866['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351568=>{const _0x2b2857=_0x21438d['t'];if('formatInline'!=_0x351568['type'])return;const {data:_0x54b5f4}=_0x351568;if(null!=_0x54b5f4){if('fontSize'==_0x54b5f4['commandName']){const _0x1c00e8=_0x54b5f4['commandParams'][0x0]['value'];if(_0x1c00e8){const _0x5d1663=_0x2b2857(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2c2c98=>_0x2c2c98['model']==_0x1c00e8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21438d,'*Set\x20font\x20size:*\x20%0',_0x5d1663)};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x54b5f4['commandName']){const _0x15ac19=_0x54b5f4['commandParams'][0x0]['value'];return _0x15ac19?{'type':'format','content':o(_0x21438d,'*Set\x20font\x20family:*\x20%0',_0x15ac19)}:{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x54b5f4['commandName']){const _0x5c3288=_0x54b5f4['commandParams'][0x0]['value'];if(_0x5c3288){const _0x4f0f63=_0x1b5af7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6480f6=>_0x6480f6['model']==_0x5c3288);let _0x2e171a=_0x5c3288,_0x5781fa='';return _0x4f0f63&&(_0x2e171a=_0x4f0f63['label'],_0x5781fa=_0x2b2857(_0x2e171a)['toLowerCase']()),{'type':'format','content':o(_0x21438d,'*Set\x20font\x20color:*\x20%0',_0x5781fa)['trim'](),'color':{'value':_0x5c3288,'title':_0x5781fa||_0x2e171a}};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x54b5f4['commandName']){const _0x330e0a=_0x54b5f4['commandParams'][0x0]['value'];if(_0x330e0a){const _0x307382=_0x1b5af7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10efea=>_0x10efea['model']==_0x330e0a);let _0x3fc947=_0x330e0a,_0x379ea6='';return _0x307382&&(_0x3fc947=_0x307382['label'],_0x379ea6=_0x2b2857(_0x3fc947)['toLowerCase']()),{'type':'format','content':o(_0x21438d,'*Set\x20font\x20background\x20color:*\x20%0',_0x379ea6)['trim'](),'color':{'value':_0x330e0a,'title':_0x379ea6||_0x3fc947}};}return{'type':'format','content':o(_0x21438d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1d1013{['afterInit'](){const _0x49b4ff=this['editor'],_0x45d5a4=_0x49b4ff['plugins']['get']('TrackChangesEditing'),_0x391361=_0x49b4ff['commands']['get']('copyFormat'),_0x136fcc=_0x49b4ff['commands']['get']('pasteFormat');_0x391361&&_0x136fcc&&(_0x45d5a4['enableDefaultAttributesIntegration']('pasteFormat'),_0x45d5a4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d2549=this['editor'],_0xbd76ea=_0x1d2549['locale'];_0x1d2549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ed8a=>{if('formatBlock'!=_0x20ed8a['type']&&'formatInline'!=_0x20ed8a['type'])return;const {data:_0x3f1773}=_0x20ed8a;if(_0x3f1773&&'pasteFormat'===_0x3f1773['commandName']){const _0x575eee=[],_0x24e9be=_0x3f1773['commandParams'][0x0];for(const [_0x5e820f,_0x3335c2]of Object['entries'](_0x24e9be))_0x575eee['push'](so(_0x1d2549,_0x5e820f,_0x3335c2));return _0x575eee['length']?{'type':'format','content':o(_0xbd76ea,'*Set\x20format\x20to:*\x20%0',_0x575eee['join'](',\x20'))}:{'type':'format','content':o(_0xbd76ea,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e22ff,_0x4d48d2,_0xaeafe4){const _0x5a41a6=_0x1e22ff['locale']['t'],_0x23d15f=_0x4d48d2['split'](/(?=[A-Z])/)['join']('\x20'),_0x55ab2f=_0x5a41a6(_0x23d15f['charAt'](0x0)['toUpperCase']()+_0x23d15f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xaeafe4)return _0x55ab2f;if('fontColor'===_0x4d48d2||'fontBackgroundColor'===_0x4d48d2){const _0x1e7bc7=_0x1b5af7(_0x1e22ff['config']['get']('fontColor.colors'))['find'](_0x25bed8=>_0x25bed8['model']==_0xaeafe4);return _0x55ab2f+'\x20('+(_0x1e7bc7?_0x5a41a6(_0x1e7bc7['label'])['toLowerCase']():_0xaeafe4)+')';}if('fontSize'===_0x4d48d2&&isNaN(parseFloat(_0xaeafe4))){const _0x294a76=_0x1e22ff['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e22ff['config']['get']('fontSize.options'))['find'](_0x100673=>_0x100673['model']==_0xaeafe4);return _0x55ab2f+'\x20('+(_0x294a76?_0x5a41a6(_0x294a76['title'])['toLowerCase']():_0xaeafe4)+')';}return _0x55ab2f+'\x20('+_0xaeafe4+')';}class tt extends _0x1d1013{['_headingOptions'];['afterInit'](){const _0x1314fb=this['editor'];if(!_0x1314fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1314fb['config']['get']('heading.options');const _0x4c927c=_0x1314fb['locale'],_0x39af12=_0x1314fb['plugins']['get']('TrackChangesEditing');_0x39af12['enableDefaultAttributesIntegration']('heading');for(const _0x32db85 of this['_headingOptions'])'paragraph'!=_0x32db85['model']&&_0x39af12['descriptionFactory']['registerElementLabel'](_0x32db85['model'],_0x4770c6=>{const _0x1eb9cd=this['_getHeadingLevel'](_0x32db85['model']);return null!==_0x1eb9cd?_0x364980(_0x4770c6,_0x1eb9cd):_0x1b70d0(_0x4770c6,_0x32db85['title']);});function _0x364980(_0x48cfa1,_0x2744d5){return o(_0x4c927c,'ELEMENT_HEADING',[_0x48cfa1,_0x2744d5]);}function _0x1b70d0(_0x4ff9f4,_0x23880e){return o(_0x4c927c,'ELEMENT_HEADING_CUSTOM',[_0x4ff9f4,_0x23880e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432ebc=this['editor'],_0x348538=_0x432ebc['locale'];function _0x331a6f(_0x3d4bc9,_0x2499f9){return o(_0x348538,'ELEMENT_HEADING_CUSTOM',[_0x3d4bc9,_0x2499f9]);}_0x432ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x80fd11=>{if('formatBlock'!=_0x80fd11['type'])return;const {data:_0x16e8dc}=_0x80fd11;if(_0x16e8dc&&'heading'==_0x16e8dc['commandName']){const _0x301e2e=_0x16e8dc['commandParams'][0x0]['value'],_0x1d0d61=this['_getHeadingLevel'](_0x301e2e);if(null!==_0x1d0d61)return{'type':'format','content':o(_0x348538,'*Change\x20to:*\x20%0',(_0x580e96=0x1,_0x42c85f=_0x1d0d61,o(_0x348538,'ELEMENT_HEADING',[_0x580e96,_0x42c85f])))};const _0x46ac3e=this['_headingOptions']['find'](_0x4ab8a6=>_0x4ab8a6['model']===_0x301e2e)['title'];return{'type':'format','content':o(_0x348538,'*Change\x20to:*\x20%0',_0x331a6f(0x1,_0x46ac3e))};}var _0x580e96,_0x42c85f;});}['_getHeadingLevel'](_0xddc8c4){const _0x2df0b1=_0xddc8c4['match'](/^heading(\d+)/);if(_0x2df0b1)return _0x2df0b1[0x1];const _0x21279e=this['_headingOptions']?.['find'](_0x39a8a6=>_0x39a8a6['model']==_0xddc8c4);if(_0x21279e&&_0x21279e['view']){const _0x24c2f0=_0x21279e['view'],_0x165492=(_0x24c2f0['name']??_0x24c2f0)['match'](/^h(\d+)/);if(_0x165492)return _0x165492[0x1];}return null;}}class et extends _0x1d1013{['afterInit'](){const _0x2c8d0d=this['editor'];if(!_0x2c8d0d['plugins']['has']('HighlightEditing'))return;const _0x4b6382=_0x2c8d0d['plugins']['get']('TrackChangesEditing'),_0x2e4c4a=_0x2c8d0d['locale'];_0x4b6382['enableDefaultAttributesIntegration']('highlight'),_0x4b6382['registerInlineAttribute']('highlight'),_0x4b6382['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2e4c4a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4cb3=this['editor'],_0x431893=_0x5e4cb3['locale'];_0x5e4cb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1517=>{if('formatInline'!=_0x5e1517['type'])return;const {data:_0x58d5c4}=_0x5e1517;if(_0x58d5c4&&'highlight'==_0x58d5c4['commandName']){const _0x9d2d92=_0x431893['t'],_0x10ec41=_0x58d5c4['commandParams'][0x0]['value'];if(_0x10ec41){const _0x576e96=_0x5e4cb3['config']['get']('highlight.options')['find'](_0x1686ac=>_0x1686ac['model']==_0x10ec41),_0x5b76ad=_0x9d2d92(_0x576e96['title'])['toLowerCase']();return{'type':'format','content':o(_0x431893,'*Set\x20highlight:*\x20%0',_0x5b76ad),'color':{'value':_0x576e96['color'],'title':_0x576e96['title']}};}return{'type':'format','content':o(_0x431893,'*Remove\x20highlight*',o(_0x431893,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1d1013{['afterInit'](){const _0x335217=this['editor'];if(!_0x335217['plugins']['has']('HorizontalLineEditing'))return;_0x335217['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x395a00=_0x335217['plugins']['get']('TrackChangesEditing'),_0x139acc=_0x335217['locale'];_0x395a00['descriptionFactory']['registerElementLabel']('horizontalLine',_0x242303=>o(_0x139acc,'ELEMENT_HORIZONTAL_LINE',_0x242303)),_0x335217['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5801d7,{writer:_0x4ea48b,options:_0x4c4ded})=>{if(!_0x4c4ded['showSuggestionHighlights'])return null;const _0xc07712=_0x4ea48b['createContainerElement']('div'),_0x10be37=_0x4ea48b['createEmptyElement']('hr');return _0x4ea48b['addClass']('ck-horizontal-line',_0xc07712),_0x4ea48b['insert'](_0x4ea48b['createPositionAt'](_0xc07712,0x0),_0x10be37),_0xc07712;},'converterPriority':'high'});}}class st extends _0x1d1013{['afterInit'](){const _0x50d40d=this['editor'];if(!_0x50d40d['plugins']['has']('HtmlEmbed'))return;const _0x27f752=_0x50d40d['plugins']['get']('TrackChangesEditing'),_0x57f107=_0x50d40d['locale'];_0x27f752['descriptionFactory']['registerElementLabel']('rawHtml',_0x4101e1=>o(_0x57f107,'ELEMENT_HTML_EMBED',_0x4101e1)),_0x27f752['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27f752['registerBlockAttribute']('value'),_0x27f752['descriptionFactory']['registerDescriptionCallback'](_0x56768a=>{if('attribute'!=_0x56768a['type'])return;const {data:_0x207eed}=_0x56768a;if(_0x207eed&&'value'==_0x207eed['key']&&_0x56768a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2cb712=o(_0x57f107,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x57f107,'*Change\x20%0\x20content*',_0x2cb712)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf082=this['editor'],_0x557083=_0x5bf082['locale'];_0x5bf082['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21bd6a=>{if('formatBlock'!=_0x21bd6a['type'])return;const {data:_0x3890fc}=_0x21bd6a;if(_0x3890fc&&'htmlEmbed'==_0x3890fc['commandName']){const _0x460b06=o(_0x557083,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x557083,'*Change\x20%0\x20content*',_0x460b06)};}});}}class nt extends _0x1d1013{['afterInit'](){const _0x38cc37=this['editor'];if(!_0x38cc37['plugins']['has']('ImageEditing'))return;const _0x862b55=_0x38cc37['plugins']['get']('TrackChangesEditing'),_0x296dc9=_0x38cc37['plugins']['get']('ImageUtils'),_0x50ccb1=_0x38cc37['locale'];_0x862b55['enableCommand']('insertImage'),_0x862b55['descriptionFactory']['registerElementLabel']('imageBlock',_0xbf5b5a=>o(_0x50ccb1,'ELEMENT_IMAGE',_0xbf5b5a)),_0x862b55['descriptionFactory']['registerElementLabel']('imageInline',_0x14f767=>o(_0x50ccb1,'ELEMENT_INLINE_IMAGE',_0x14f767)),_0x862b55['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x50ccb1,'ELEMENT_CAPTION')),_0x38cc37['plugins']['has']('ImageUploadEditing')&&_0x862b55['enableCommand']('uploadImage'),_0x38cc37['plugins']['has']('ImageBlockEditing')&&_0x38cc37['plugins']['has']('ImageInlineEditing')&&(_0x862b55['enableCommand']('imageTypeInline',(_0x2a953e,_0x5062e5)=>{const _0xfd828c=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']);_0x38cc37['model']['change'](()=>{_0x862b55['markBlockFormat'](_0xfd828c,{'commandName':'imageTypeInline','commandParams':[_0x5062e5]},[],'convertBlockImageToInline');});}),_0x862b55['enableCommand']('imageTypeBlock',(_0x29c46d,_0x5a36cd)=>{_0x38cc37['model']['change'](_0x1a5eb7=>{let _0x3fbbcb=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x596f26=_0x1a5eb7['createRangeOn'](_0x3fbbcb);const _0x15e103=_0x50c72e['fromPosition'](_0x596f26['start'],'toPrevious'),_0x59725c=_0x50c72e['fromPosition'](_0x596f26['end'],'toNext');_0x862b55['forceDefaultExecution'](()=>_0x29c46d(_0x5a36cd)),_0x3fbbcb=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x596f26=_0x1a5eb7['createRangeOn'](_0x3fbbcb);const _0x308212=_0x1a5eb7['createRange'](_0x15e103,_0x59725c);_0x15e103['detach'](),_0x59725c['detach'](),_0x862b55['markBlockFormat'](_0x3fbbcb,{'commandName':'imageTypeInline','commandParams':[_0x5a36cd]},[],'convertInlineImageToBlock'),_0x308212['start']['isBefore'](_0x596f26['start'])&&_0x862b55['markInsertion'](_0x1a5eb7['createRange'](_0x308212['start'],_0x596f26['start']),'convertInlineImageToBlock'),_0x596f26['end']['isBefore'](_0x308212['end'])&&_0x862b55['markInsertion'](_0x1a5eb7['createRange'](_0x596f26['end'],_0x308212['end']),'convertInlineImageToBlock');});}),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x862b55['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1276a3])=>{const _0x55f6e8=_0x862b55['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b1978=_0x1276a3['start'],_0x5e4d2c=_0x1276a3['end'];const _0x1e68b5=_0x38cc37['model']['schema']['getNearestSelectionRange'](_0x4b1978,'backward'),_0x17a8dd=_0x38cc37['model']['schema']['getNearestSelectionRange'](_0x5e4d2c,'forward');_0x1e68b5['isCollapsed']&&(_0x4b1978=_0x1e68b5['start']),_0x17a8dd['isCollapsed']&&(_0x5e4d2c=_0x17a8dd['end']),_0x55f6e8([_0x38cc37['model']['createRange'](_0x4b1978,_0x5e4d2c)]);}),_0x862b55['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10fed9),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10fed9)),_0x38cc37['plugins']['has']('ImageCaptionEditing')&&(_0x862b55['enableCommand']('toggleImageCaption',(_0x3b2d2a,_0x2db70f)=>{const _0x2cfbba=_0x38cc37['plugins']['get']('ImageCaptionUtils');let _0x4a6a88=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x57921b=_0x2cfbba['getCaptionFromImageModelElement'](_0x4a6a88);_0x38cc37['model']['change'](()=>{if(_0x57921b)return void _0x862b55['markDeletion'](_0x38cc37['model']['createRangeOn'](_0x57921b));const _0x2224f8=_0x296dc9['isBlockImage'](_0x4a6a88);_0x3b2d2a(_0x2db70f),_0x4a6a88=_0x296dc9['getClosestSelectedImageElement'](_0x38cc37['model']['document']['selection']),_0x57921b=_0x2cfbba['getCaptionFromImageModelElement'](_0x4a6a88),_0x862b55['markInsertion'](_0x38cc37['model']['createRangeOn'](_0x57921b),_0x2224f8?null:'imageCaption');});}),_0x862b55['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10fed9));const _0x18095=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13f324(_0x1bd5ec,_0x54a532){const _0x238261=_0x18095['findIndex'](({type:_0x1ffb4a,subType:_0x24889d})=>_0x1bd5ec['type']==_0x1ffb4a&&_0x1bd5ec['subType']==_0x24889d),_0x4a9d1f=_0x18095['findIndex'](({type:_0x3e33b2,subType:_0x1b12b0})=>_0x54a532['type']==_0x3e33b2&&_0x54a532['subType']==_0x1b12b0);if(_0x238261<0x0||_0x4a9d1f<0x0)return!0x1;const _0x4227c7=_0x1bd5ec['getFirstRange'](),_0x54148e=_0x54a532['getFirstRange']();if((0x0==_0x238261||0x1==_0x238261)&&0x2==_0x4a9d1f&&_0x4227c7['isIntersecting'](_0x54148e))return!0x0;if(0x2==_0x238261&&0x3==_0x4a9d1f){const _0x202190=_0x862b55['_findSuggestions'](_0x4227c7,'insertion')['filter'](({suggestion:_0x4a80e3,meta:_0x32b667})=>_0x32b667['isOwn']&&'convertInlineImageToBlock'==_0x4a80e3['subType']);if(_0x202190['length']>0x1&&_0x54148e['end']['isEqual'](_0x4227c7['start']))return!0x0;if(0x1==_0x202190['length']&&(_0x4227c7['start']['isEqual'](_0x54148e['end'])||_0x4227c7['end']['isEqual'](_0x54148e['start'])))return!0x0;}if(0x3==_0x238261&&0x3==_0x4a9d1f&&_0x4227c7['start']['isBefore'](_0x54148e['start'])){const _0x3514fa=_0x4227c7['end']['nodeAfter'],_0x4473a8=_0x54148e['start']['nodeBefore'];return _0x296dc9['isBlockImage'](_0x3514fa)&&_0x3514fa===_0x4473a8;}return!0x1;}function _0x10fed9(_0x3ea44f,_0x34f17d){return _0x13f324(_0x3ea44f,_0x34f17d)?[_0x3ea44f,_0x34f17d]:_0x13f324(_0x34f17d,_0x3ea44f)?[_0x34f17d,_0x3ea44f]:null;}_0x38cc37['plugins']['has']('ImageResize')&&(_0x862b55['enableDefaultAttributesIntegration']('resizeImage'),_0x862b55['registerBlockAttribute']('resizedWidth'),_0x862b55['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x50ccb1,'FORMAT_IMAGE_SIZE'))),_0x38cc37['plugins']['has']('ImageTextAlternativeEditing')&&(_0x862b55['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x862b55['registerBlockAttribute']('alt')),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x39b79c=>{if(!!_0x18095['find'](({type:_0x5ec747,subType:_0x21defc})=>_0x39b79c['type']==_0x5ec747&&_0x39b79c['subType']==_0x21defc))return _0x39b79c['previous']?{}:void 0x0;}),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x3ee105=>{if('insertion'==_0x3ee105['type']||'deletion'==_0x3ee105['type']){const _0x4b0910=_0x3ee105['getContainedElement']();if(_0x4b0910&&_0x4b0910['is']('element','caption'))return{'type':'insertion'==_0x3ee105['type']?'addObject':'removeObject','element':_0x4b0910,'quantity':0x1};}}),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x11d1a8=>'formatBlock'==_0x11d1a8['type']&&'convertInlineImageToBlock'==_0x11d1a8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11d1a8['type']&&'convertBlockImageToInline'==_0x11d1a8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x862b55['descriptionFactory']['registerDescriptionCallback'](_0x3758c1=>{if('attribute'!=_0x3758c1['type'])return;const {data:_0x2e97bc}=_0x3758c1;if(!_0x2e97bc||'alt'!=_0x2e97bc['key'])return;const _0x2add21=_0x2e97bc['newValue'];return _0x2add21?{'type':'format','content':o(_0x50ccb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2add21+'\x22')}:{'type':'format','content':o(_0x50ccb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59a9af=this['editor'],_0x5ad34f=_0x59a9af['locale'];_0x59a9af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2fcb=>{if('formatBlock'!=_0x1c2fcb['type']&&'formatInline'!=_0x1c2fcb['type'])return;const {data:_0x502bf1}=_0x1c2fcb;if(_0x502bf1){if('imageTextAlternative'==_0x502bf1['commandName']){const _0x850a73=_0x502bf1['commandParams'][0x0]['newValue'];return _0x850a73?{'type':'format','content':o(_0x5ad34f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x850a73+'\x22')}:{'type':'format','content':o(_0x5ad34f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x502bf1['commandName']){const _0x9284e3=_0x502bf1['commandParams'][0x0]['width'];return _0x9284e3?{'type':'format','content':o(_0x5ad34f,'*Set\x20image\x20width:*\x20%0',_0x9284e3)}:{'type':'format','content':o(_0x5ad34f,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17039e=this['editor']['locale'],_0x1606d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1606d6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1606d6['registerBlockAttribute']('src'),_0x1606d6['descriptionFactory']['registerDescriptionCallback'](_0x15bbb9=>{if('attribute'!=_0x15bbb9['type'])return;const {data:_0x20c2bc}=_0x15bbb9;return _0x20c2bc&&'src'==_0x20c2bc['key']?_0x20c2bc['newValue']&&_0x20c2bc['oldValue']?{'type':'format','content':o(_0x17039e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55756b=this['editor']['plugins']['get']('TrackChangesEditing');_0x55756b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x55756b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55756b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x55756b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c6e=this['editor'],_0x463c4a=_0x395c6e['locale'];_0x395c6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24ef7f=>{if('formatBlock'!=_0x24ef7f['type']&&'formatInline'!=_0x24ef7f['type'])return;const {data:_0x56f0d2}=_0x24ef7f;if(!_0x56f0d2||'replaceImageSource'!=_0x56f0d2['commandName'])return;return{'type':'format','content':o(_0x463c4a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1d1013{['afterInit'](){const _0x3cc5e8=this['editor'];if(!_0x3cc5e8['plugins']['has']('ImageStyleEditing'))return;const _0x42bf63=_0x3cc5e8['plugins']['get']('TrackChangesEditing'),_0x46b015=_0x3cc5e8['plugins']['get']('ImageUtils'),_0x190f86={};_0x42bf63['enableCommand']('imageStyle',(_0xa0ef87,_0x48683a)=>{const _0x119a4a=_0x3cc5e8['plugins']['get']('Users')['me'],_0x529876=_0x3cc5e8['commands']['get']('imageStyle');let _0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),_0x804152=_0x3cc5e8['model']['createRangeOn'](_0x60f8c),_0x1da47d=_0x529876['value'];if(_0x1da47d==_0x48683a['value'])return;const _0x6dcfdc={'commandName':'imageStyle','commandParams':[_0x48683a],'formatGroupId':_0x338779()};_0x3cc5e8['model']['change'](()=>{if(_0x42bf63['getSuggestions']()['filter'](_0x4b7829=>_0x4b7829['isInContent']&&_0x119a4a==_0x4b7829['author']&&('formatBlock'==_0x4b7829['type']||'formatInline'==_0x4b7829['type'])&&('imageStylePreApply'==_0x4b7829['subType']||'imageStylePostApply'==_0x4b7829['subType'])&&_0x4b7829['getFirstRange']()['isEqual'](_0x804152))['forEach'](_0x503489=>_0x42bf63['discardSuggestion'](_0x503489['head'])),_0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),_0x804152=_0x3cc5e8['model']['createRangeOn'](_0x60f8c),_0x529876['refresh'](),_0x3cc5e8['commands']['get']('imageTypeInline')['refresh'](),_0x3cc5e8['commands']['get']('imageTypeBlock')['refresh'](),_0x1da47d=_0x529876['value'],_0x1da47d!=_0x48683a['value'])return _0x46b015['isInlineImage'](_0x60f8c)&&_0x529876['shouldConvertImageType'](_0x48683a['value'],_0x60f8c)?(_0xa0ef87({..._0x48683a,'setImageSizes':!0x1}),_0x60f8c=_0x46b015['getClosestSelectedImageElement'](_0x3cc5e8['model']['document']['selection']),void _0x42bf63['markBlockFormat'](_0x60f8c,{..._0x6dcfdc,'commandReversedParams':[{'value':_0x1da47d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46b015['isBlockImage'](_0x60f8c)?_0x42bf63['markBlockFormat'](_0x60f8c,_0x6dcfdc,[],'imageStylePostApply'):_0x42bf63['markInlineFormat'](_0x804152,_0x6dcfdc,'imageStylePostApply'));});});for(const _0x34bf83 of _0x3cc5e8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x190f86[_0x34bf83['name']]=_0x34bf83['title']['toLowerCase']();_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3eec48])=>{_0x46b015['setImageNaturalSizeAttributes'](_0x3eec48['getContainedElement']());}),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x183535,_0x13f2cc)=>{_0x42bf63['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x183535,{'commandName':_0x13f2cc['commandName'],'commandParams':_0x13f2cc['commandReversedParams']});}),_0x42bf63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd88dec,_0x157d3e){if(_0x1683b3(_0xd88dec,_0x157d3e))return[_0xd88dec,_0x157d3e];if(_0x1683b3(_0x157d3e,_0xd88dec))return[_0x157d3e,_0xd88dec];return null;});const _0x585351=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1683b3(_0x29a195,_0x470ca2){const _0x3c19a6=_0x585351['findIndex'](({type:_0xc79efb,subType:_0x19fce9})=>_0x29a195['type']==_0xc79efb&&_0x29a195['subType']==_0x19fce9),_0x565286=_0x585351['findIndex'](({type:_0x12a256,subType:_0x3dc2d9})=>_0x470ca2['type']==_0x12a256&&_0x470ca2['subType']==_0x3dc2d9);if(_0x3c19a6<0x0||_0x565286<0x0)return!0x1;const _0x1743b0=_0x29a195['getFirstRange'](),_0x56e127=_0x470ca2['getFirstRange']();if((0x0==_0x3c19a6||0x1==_0x3c19a6)&&0x2==_0x565286&&_0x1743b0['isIntersecting'](_0x56e127))return!0x0;if(0x2==_0x3c19a6&&0x3==_0x565286){const _0x593534=_0x42bf63['_findSuggestions'](_0x1743b0,'insertion')['filter'](({suggestion:_0x92454d,meta:_0x5ae3dc})=>_0x5ae3dc['isOwn']&&'convertInlineImageToBlock'==_0x92454d['subType']);if(_0x593534['length']>0x1&&_0x56e127['end']['isEqual'](_0x1743b0['start']))return!0x0;if(0x1==_0x593534['length']&&(_0x1743b0['start']['isEqual'](_0x56e127['end'])||_0x1743b0['end']['isEqual'](_0x56e127['start'])))return!0x0;}if(0x3==_0x3c19a6&&0x3==_0x565286&&_0x1743b0['start']['isBefore'](_0x56e127['start'])){const _0x1bfd43=_0x1743b0['end']['nodeAfter'],_0x3bee89=_0x56e127['start']['nodeBefore'];return _0x46b015['isBlockImage'](_0x1bfd43)&&_0x1bfd43===_0x3bee89;}return!0x1;}_0x3cc5e8['model']['document']['registerPostFixer'](()=>{let _0x38e53b=!0x1;const _0x2fd5e5=Array['from'](_0x3cc5e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48bfee,data:_0x1f1063}of _0x2fd5e5){const {group:_0x3a4dc4,type:_0x3b97b2,subType:_0x470578,id:_0x366f19}=_0x42bf63['_splitMarkerName'](_0x48bfee);if('suggestion'==_0x3a4dc4&&_0x42bf63['hasSuggestion'](_0x366f19)){if('formatBlock'==_0x3b97b2&&('imageStylePreApply'==_0x470578||'imageStylePostApply'==_0x470578)){const _0x3f1fcd=_0x42bf63['getSuggestion'](_0x366f19);if(_0x1f1063['newRange']){const _0x23730a=_0x3f1fcd['getFirstRange']()['getContainedElement']();if(_0x46b015['isBlockImage'](_0x23730a))continue;_0x42bf63['discardSuggestion'](_0x3f1fcd),_0x38e53b=!0x0;}}if('insertion'==_0x3b97b2&&'imageCaption'==_0x470578&&!_0x1f1063['newRange']){const _0x18ca24=_0x42bf63['getSuggestion'](_0x366f19);_0x18ca24['next']&&_0x18ca24['next']['isInContent']&&(_0x42bf63['discardSuggestion'](_0x18ca24['next']),_0x38e53b=!0x0);}}}return _0x38e53b;}),this['_registerLegacyDescription'](_0x190f86);}['_registerLegacyDescription'](_0xf961a5){const _0x45719c=this['editor'],_0xd289a7=_0x45719c['locale'];_0x45719c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29a4a1=>{if('formatBlock'!=_0x29a4a1['type']&&'formatInline'!=_0x29a4a1['type'])return;const {data:_0x45d2bf}=_0x29a4a1;if(!_0x45d2bf||'imageStyle'!=_0x45d2bf['commandName'])return;const _0x1ca340=_0x45d2bf['commandParams'][0x0]['value'];return _0x3d3711('side'===_0x1ca340?o(_0xd289a7,'FORMAT_SIDE_IMAGE'):_0xf961a5[_0x1ca340]||_0x1ca340);function _0x3d3711(_0x1ca4a6){return{'type':'format','content':o(_0xd289a7,'*Format:*\x20%0',_0x1ca4a6)};}});}}class at extends _0x1d1013{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c3318){super(_0x4c3318),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x552e4d=this['editor'],_0xb62274=_0x552e4d['commands']['get']('importWord'),_0x14df8a=_0x552e4d['commands']['get']('trackChanges');_0xb62274&&(_0xb62274['on']('execute',(_0x1ba875,[,_0x527fe5])=>{this['_trackChangesValueDuringImport']=_0x14df8a['value'],_0x527fe5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb62274,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb62274,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x14df8a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x552e4d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3b9c24,_0x16d351){const {suggestions:_0x5c41ff}=_0x16d351,_0x1ee0fa=this['editor']['commands']['get']('trackChanges'),_0x1e1fd5=_0x1ee0fa['value'];this['_trackChangesValueDuringImport']!==_0x1e1fd5&&(_0x1ee0fa['execute'](),this['_trackChangesExecuted']=!0x0),_0x5c41ff&&_0x5c41ff['forEach'](({id:_0x46818c,type:_0x450b67,author:_0xa0db91,created_at:_0x20c61b})=>{const _0x243012={'id':_0x46818c,'type':_0x450b67,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa0db91,'createdAt':_0x20c61b?new Date(_0x20c61b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x243012);});}}class ct extends _0x1d1013{['afterInit'](){const _0x1fad66=this['editor'],_0x2d2576=_0x1fad66['plugins']['get']('TrackChangesEditing');if(_0x1fad66['plugins']['has']('IndentEditing')&&(_0x2d2576['enableCommand']('indent'),_0x2d2576['enableCommand']('outdent')),_0x1fad66['plugins']['has']('IndentBlock')){for(const _0x528e80 of['indentBlock','outdentBlock'])_0x2d2576['enableDefaultAttributesIntegration'](_0x528e80);}const _0x2574ec=_0x1fad66['locale'];_0x2d2576['registerBlockAttribute']('blockIndent'),_0x2d2576['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2574ec,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x384639=this['editor'],_0x2956d9=_0x384639['locale'],_0x33cae7=_0x384639['plugins']['get']('TrackChangesEditing');_0x33cae7['descriptionFactory']['registerDescriptionCallback'](_0x4511ce=>{if('formatBlock'!=_0x4511ce['type'])return;const {data:_0x56b86e}=_0x4511ce;if(!_0x56b86e)return;if('indentBlock'!=_0x56b86e['commandName']&&'outdentBlock'!=_0x56b86e['commandName'])return;const _0x547fc6=_0x4511ce['getItems']()[0x0],_0x58018e=_0x33cae7['descriptionFactory']['getItemLabel'](_0x547fc6);return'indentBlock'==_0x56b86e['commandName']?{'type':'format','content':o(_0x2956d9,'*Indent:*\x20%0',_0x58018e)}:'outdentBlock'==_0x56b86e['commandName']?{'type':'format','content':o(_0x2956d9,'*Outdent:*\x20%0',_0x58018e)}:void 0x0;});}}class ut extends _0x1d1013{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1d1013{['afterInit'](){const _0x5e13d0=this['editor'];if(!_0x5e13d0['plugins']['has']('LinkEditing'))return;const _0x1c3ea9=_0x5e13d0['plugins']['get']('TrackChangesEditing'),_0x57c553=_0x5e13d0['commands']['get']('link');_0x1c3ea9['enableDefaultAttributesIntegration']('link'),_0x1c3ea9['enableDefaultAttributesIntegration']('unlink'),_0x1c3ea9['registerInlineAttribute']('linkHref');for(const _0x304d68 of _0x57c553['manualDecorators'])_0x1c3ea9['registerInlineAttribute'](_0x304d68['id']),_0x1c3ea9['descriptionFactory']['registerAttributeLabel'](_0x304d68['id'],'link\x20('+_0x304d68['label']['toLowerCase']()+')');_0x1c3ea9['descriptionFactory']['registerDescriptionCallback'](_0x4ee041=>{if('attribute'!=_0x4ee041['type'])return;const {data:_0x4a5977}=_0x4ee041;if(!_0x4a5977||'linkHref'!=_0x4a5977['key'])return;const _0x4d730a=_0x4a5977['newValue'],_0xc0db4=_0x5e13d0['locale'];return{'type':'format','content':null==_0x4d730a?o(_0xc0db4,'*Remove\x20link*'):o(_0xc0db4,'*Set\x20link:*\x20%0','\x22'+_0x4d730a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456662=this['editor'],_0x478388=_0x456662['locale'];_0x456662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a102=>{if('formatInline'!=_0x34a102['type'])return;const {data:_0x538f6c}=_0x34a102;if(_0x538f6c){if('link'==_0x538f6c['commandName']){const _0x440b8f=_0x538f6c['commandParams'][0x0];return{'type':'format','content':o(_0x478388,'*Set\x20link:*\x20%0','\x22'+_0x440b8f+'\x22')};}return'unlink'==_0x538f6c['commandName']?{'type':'format','content':o(_0x478388,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1d1013{['afterInit'](){const _0x1dad8d=this['editor'],_0x270902=_0x1dad8d['locale'];if(!_0x1dad8d['plugins']['has']('LegacyListEditing'))return;const _0x2a7806=_0x1dad8d['plugins']['get']('TrackChangesEditing'),_0x32d56a=_0x1dad8d['plugins']['has']('LegacyTodoListEditing');function _0xc9aec5(_0x2fe5dc){return()=>{const _0x46c3cc=_0x1dad8d['model']['document']['selection'],_0x43be89=_0x1dad8d['commands']['get'](_0x2fe5dc);if(_0x43be89['value'])return void _0x1dad8d['execute']('paragraph',{});const _0x1eb2fd=_0x2fe5dc['slice'](0x0,-0x4),_0x5705c6=function(_0x4aa126,_0x2fa0ee,_0x4b42ff){let _0x365429=Array['from'](_0x4aa126)['filter'](_0x131729=>function(_0x1c9730,_0x216dd5){return _0x216dd5['checkChild'](_0x1c9730['parent'],'listItem')&&!_0x216dd5['isObject'](_0x1c9730);}(_0x131729,_0x4b42ff));_0x365429=_0x365429['filter'](_0x410fe4=>!_0x410fe4['is']('element','listItem')||_0x410fe4['getAttribute']('listType')!=_0x2fa0ee);const _0x5f3626=new Set();for(const _0x423615 of _0x365429)_0x423615['is']('element','listItem')?_0x5f3626['add'](fe(_0x423615)):_0x5f3626['add'](_0x423615);return Array['from'](_0x5f3626);}(_0x46c3cc['getSelectedBlocks'](),_0x1eb2fd,_0x1dad8d['model']['schema']);_0x1dad8d['model']['change'](()=>{for(const _0x3c6344 of _0x5705c6)_0x2a7806['markBlockFormat'](_0x3c6344,{'commandName':_0x2fe5dc,'commandParams':[{'forceValue':!_0x43be89['value']}],'formatGroupId':'blockName'},ue(_0x3c6344));});};}function _0x2bdd6(_0x1653c2){return()=>{const _0x1f6241=function(_0x14edad){let _0x19dfe7=Array['from'](_0x14edad);const _0x154411=_0x19dfe7['findIndex'](_0x5bea9a=>'listItem'!=_0x5bea9a['name']);return _0x154411>-0x1&&(_0x19dfe7=_0x19dfe7['slice'](0x0,_0x154411)),_0x19dfe7;}(_0x1dad8d['model']['document']['selection']['getSelectedBlocks']()),_0x31b95b=_0x1dad8d['model']['createRange'](_0x1dad8d['model']['createPositionAt'](_0x1f6241[0x0],'before'),_0x1dad8d['model']['createPositionAt'](_0x1f6241[_0x1f6241['length']-0x1],'end'));_0x1dad8d['model']['change'](()=>{_0x2a7806['markBlockFormat'](_0x31b95b,{'commandName':_0x1653c2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23a488){const _0x34a4b4=new Set();for(const _0x1cbc96 of _0x23a488){let _0x346848=_0x1cbc96['nextSibling'];for(;_0x346848&&_0x346848['getAttribute']('listIndent')>_0x1cbc96['getAttribute']('listIndent');)_0x34a4b4['add'](_0x346848),_0x346848=_0x346848['nextSibling'];}return Array['from'](_0x34a4b4);}(_0x1f6241));});};}_0x2a7806['enableCommand']('numberedList',_0xc9aec5('numberedList')),_0x2a7806['enableCommand']('bulletedList',_0xc9aec5('bulletedList')),_0x32d56a&&_0x2a7806['enableCommand']('todoList',_0xc9aec5('todoList')),_0x2a7806['enableCommand']('indentList',_0x2bdd6('indentList')),_0x2a7806['enableCommand']('outdentList',_0x2bdd6('outdentList')),_0x32d56a&&_0x2a7806['enableCommand']('checkTodoList',()=>{const _0x4850a8=_0x1dad8d['commands']['get']('checkTodoList'),_0x18eb0a=Array['from'](_0x4850a8['_selectedElements']);_0x18eb0a['filter'](_0x375811=>_0x375811['getAttribute']('todoListChecked')!=_0x4850a8['value']),_0x1dad8d['model']['change'](()=>{for(const _0x3a16be of _0x18eb0a)_0x2a7806['markBlockFormat'](_0x3a16be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4850a8['value']}]});});}),_0x2a7806['descriptionFactory']['registerElementLabel']('listItem',_0x266d0a=>o(_0x270902,'ELEMENT_LIST_ITEM',_0x266d0a)),_0x2a7806['descriptionFactory']['registerDescriptionCallback'](_0x3d93aa=>{if('formatBlock'!=_0x3d93aa['type']&&'formatInline'!=_0x3d93aa['type'])return;const {data:_0x530b55}=_0x3d93aa;if(_0x530b55){if('numberedList'==_0x530b55['commandName']||'bulletedList'==_0x530b55['commandName']||'todoList'==_0x530b55['commandName'])switch(_0x530b55['commandName']['replace']('List','')){case'bulleted':return _0x38274e(o(_0x270902,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38274e(o(_0x270902,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38274e(o(_0x270902,'ELEMENT_TODO_LIST'));}if('indentList'==_0x530b55['commandName'])return{'type':'format','content':o(_0x270902,'*Indent:*\x20%0',o(_0x270902,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x530b55['commandName'])return{'type':'format','content':o(_0x270902,'*Outdent:*\x20%0',o(_0x270902,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x530b55['commandName'])return _0x530b55['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x270902,'*Check\x20item*')}:{'type':'format','content':o(_0x270902,'*Uncheck\x20item*')};}function _0x38274e(_0x4acfb6){return{'type':'format','content':o(_0x270902,'*Change\x20to:*\x20%0',_0x4acfb6)};}});}}function fe(_0x2d2bb4){const _0x1754fe=_0x2d2bb4['getAttribute']('listIndent');if(0x0==_0x1754fe)return _0x2d2bb4;let _0x3d8793=_0x2d2bb4;for(;_0x2d2bb4['previousSibling']&&_0x2d2bb4['previousSibling']['is']('element','listItem');){const _0x10d2f0=_0x2d2bb4['previousSibling']['getAttribute']('listIndent');if(_0x10d2f0==_0x1754fe)_0x3d8793=_0x2d2bb4['previousSibling'];else{if(_0x10d2f0<_0x1754fe)break;}_0x2d2bb4=_0x2d2bb4['previousSibling'];}return _0x3d8793;}function ue(_0x1e4318){const _0x2e7433=[];if(_0x1e4318['is']('element','listItem')&&_0x1e4318['getAttribute']('listIndent')>0x0){let _0x39ebf5=_0x1e4318['nextSibling'];for(;_0x39ebf5&&'listItem'==_0x39ebf5['name']&&_0x39ebf5['getAttribute']('listIndent')==_0x1e4318['getAttribute']('listIndent');)_0x2e7433['push'](_0x39ebf5),_0x39ebf5=_0x39ebf5['nextSibling'];}return _0x2e7433;}class W extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3c7411=this['editor']['config']['get']('list.properties'),_0x247631=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c7411['styles']&&_0x247631['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3c7411['reversed']&&_0x247631['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3c7411['startIndex']&&_0x247631['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x247631['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5b4a0d,_0x2ac13d={}){const _0x91fff6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21c774=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x91fff6['markMultiRangeBlockFormat'](_0x21c774,{'commandName':'listStyle','commandParams':[{'type':_0x2ac13d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b098c,_0x17a8cb={}){const _0x2e2bb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4197d2=this['_getSuggestionBlocks'](_0x962214=>_0x962214['is']('element','listItem')&&'numbered'===_0x962214['getAttribute']('listType'));if(_0x4197d2['length']<0x1)return;const _0x5dc9cb=_0x4197d2['map'](_0x5e333d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e333d,'before'),this['editor']['model']['createPositionAt'](_0x5e333d,0x0)));this['editor']['model']['change'](()=>{_0x2e2bb8['markMultiRangeBlockFormat'](_0x5dc9cb,{'commandName':'listReversed','commandParams':[{'reversed':_0x17a8cb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x504b5e,_0x5b6682={}){const _0x452f52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cf6bb=this['_getSuggestionBlocks'](_0x4e5622=>_0x4e5622['is']('element','listItem')&&'numbered'===_0x4e5622['getAttribute']('listType'));if(_0x2cf6bb['length']<0x1)return;const _0x2978b0=_0x2cf6bb['map'](_0x52625f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52625f,'before'),this['editor']['model']['createPositionAt'](_0x52625f,0x0)));this['editor']['model']['change'](()=>{_0x452f52['markMultiRangeBlockFormat'](_0x2978b0,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b6682['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a5b10){if('formatBlock'!=_0x4a5b10['type']&&'formatInline'!=_0x4a5b10['type'])return;const _0x1b8b21=this['editor']['locale'],{data:_0x15ea22}=_0x4a5b10;if(!_0x15ea22)return;let _0xd5a836,_0x407bfb;switch(_0x15ea22['commandName']){case'listStyle':_0xd5a836='*Change\x20to:*\x20%0',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836,o(_0x1b8b21,this['_getTranslationKeyForListStyle'](_0x15ea22['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd5a836=_0x15ea22['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836)};break;case'listStart':_0xd5a836='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x407bfb={'type':'format','content':o(_0x1b8b21,_0xd5a836,_0x15ea22['commandParams'][0x0]['startIndex'])};}return _0x407bfb;}['_getSuggestionBlocksForListStyle'](){const _0x6c07f0=this['editor']['plugins']['get']('LegacyListUtils');let _0x1046aa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1046aa[0x0]?.['is']('element','listItem')&&_0x1046aa['unshift'](..._0x6c07f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1046aa[_0x1046aa['length']-0x1]?.['is']('element','listItem')&&_0x1046aa['push'](..._0x6c07f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1046aa=[...new Set(_0x1046aa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1046aa=_0x1046aa['filter'](_0x23c9a6=>_0x23c9a6['is']('element','listItem'))),_0x1046aa;}['_getSuggestionBlocks'](_0x1f5d29){const _0x1685c3=this['editor']['plugins']['get']('LegacyListUtils');let _0x1aa531=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f5d29)['map'](_0x45e853=>{const _0x3da2ca=this['editor']['model']['createPositionAt'](_0x45e853,0x0);return[..._0x1685c3['getSiblingNodes'](_0x3da2ca,'backward'),..._0x1685c3['getSiblingNodes'](_0x3da2ca,'forward')];})['flat']();return _0x1aa531=[...new Set(_0x1aa531)],_0x1aa531;}['_getTranslationKeyForListStyle'](_0x2610d1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2610d1)||'default')['toUpperCase']()+'_LIST_'+_0x2610d1['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1d1013{['afterInit'](){const _0x492887=this['editor'];if(!_0x492887['plugins']['has']('MediaEmbedEditing'))return;const _0x2d7138=_0x492887['plugins']['get']('TrackChangesEditing'),_0x2b8130=_0x492887['locale'];_0x2d7138['enableCommand']('mediaEmbed'),_0x2d7138['descriptionFactory']['registerElementLabel']('media',_0x3b50b8=>o(_0x2b8130,'ELEMENT_MEDIA',_0x3b50b8)),_0x492887['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x348834,{writer:_0x39f4dd,options:_0x404a8c})=>{if(_0x404a8c['showSuggestionHighlights'])return _0x39f4dd['createEmptyElement']('div');},'converterPriority':'high'}),_0x492887['data']['downcastDispatcher']['on']('attribute:url:media',(_0x472481,_0x5e9233,_0x5b1e14)=>{_0x5b1e14['options']['showSuggestionHighlights']&&_0x472481['stop']();},{'priority':'high'});}}class mt extends _0x1d1013{['afterInit'](){const _0x5368b7=this['editor'];_0x5368b7['plugins']['has']('MentionEditing')&&_0x5368b7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1d1013{['afterInit'](){const _0x58b8cb=this['editor'];if(!_0x58b8cb['plugins']['has']('MergeFieldsEditing'))return;_0x58b8cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x58b8cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x42612a=_0x58b8cb['plugins']['get']('TrackChangesEditing'),_0x21fcd7=_0x58b8cb['locale'];_0x42612a['descriptionFactory']['registerElementLabel']('mergeField',_0x921f08=>o(_0x21fcd7,'ELEMENT_MERGE_FIELD',_0x921f08)),_0x42612a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32bcf2=>o(_0x21fcd7,'ELEMENT_MERGE_FIELD',_0x32bcf2)),_0x42612a['descriptionFactory']['registerDescriptionCallback'](_0x2e7092=>{if('insertion'!=_0x2e7092['type']&&'deletion'!=_0x2e7092['type'])return;const _0x24ce20=_0x2e7092['getContainedElement']();if(null==_0x24ce20)return;if(!_0x24ce20['is']('element','mergeField')&&!_0x24ce20['is']('element','mergeFieldBlock'))return;const _0x15dd17=_0x58b8cb['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x24ce20['getAttribute']('id'));return'insertion'==_0x2e7092['type']?{'type':'insertion','content':o(_0x21fcd7,'*Insert:*\x20%0','\x22'+_0x15dd17+'\x22\x20'+o(_0x21fcd7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x21fcd7,'*Remove:*\x20%0','\x22'+_0x15dd17+'\x22\x20'+o(_0x21fcd7,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1d1013{['afterInit'](){const _0x614f51=this['editor'],_0x4d2a8b=_0x614f51['plugins']['get']('TrackChangesEditing');_0x614f51['plugins']['has']('MultiLevelList')&&(_0x4d2a8b['enableDefaultAttributesIntegration']('multiLevelList'),_0x4d2a8b['registerBlockAttribute']('listMarkerStyle'),_0x4d2a8b['descriptionFactory']['registerDescriptionCallback'](_0xefd6be=>this['handleDescriptions'](_0xefd6be)));}['handleDescriptions'](_0x1d3a49){const _0x8df939=this['editor']['locale'],{data:_0x711800}=_0x1d3a49,_0x259587={'type':'format','content':''};if(_0x711800&&'listMarkerStyle'==_0x711800['key']){if(!_0x711800['oldValue'])return{'type':'format','content':o(_0x8df939,'*Set\x20format:*\x20%0',o(_0x8df939,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x711800['newValue']+')'};if(!_0x711800['newValue']){let _0x41141c=_0x1d3a49['head'];for(;_0x41141c;){if(_0x41141c['data']&&'listType'==_0x41141c['data']['key']&&_0x41141c['data']['newValue'])return _0x259587;_0x41141c=_0x41141c['next'];}return{'type':'format','content':o(_0x8df939,'*Remove\x20format:*\x20%0',o(_0x8df939,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x711800['oldValue']+')'};}}}}class kt extends _0x1d1013{['afterInit'](){const _0x164a08=this['editor'];if(!_0x164a08['plugins']['has']('PageBreakEditing'))return;_0x164a08['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x897a6f=_0x164a08['plugins']['get']('TrackChangesEditing'),_0x543e86=_0x164a08['locale'];_0x897a6f['descriptionFactory']['registerElementLabel']('pageBreak',_0x34e4cf=>o(_0x543e86,'ELEMENT_PAGE_BREAK',_0x34e4cf));}}class bt extends _0x1d1013{['afterInit'](){const _0x3cc799=this['editor'];if(!_0x3cc799['plugins']['has']('Paragraph'))return;const _0x232e30=_0x3cc799['locale'],_0x5ae418=_0x3cc799['plugins']['get']('TrackChangesEditing');_0x5ae418['descriptionFactory']['registerElementLabel']('paragraph',_0x12f375=>o(_0x232e30,'ELEMENT_PARAGRAPH',_0x12f375)),_0x5ae418['enableDefaultAttributesIntegration']('paragraph'),_0x5ae418['enableCommand']('insertParagraph'),_0x3cc799['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3cc799),{'priority':'highest'}),_0x3cc799['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x79623c,_0x4eb889,_0x2f5e02)=>{_0x2f5e02['options']['showSuggestionHighlights']&&nr(_0x3cc799,{'showActiveMarker':!0x1})(_0x79623c,_0x4eb889,_0x2f5e02);},{'priority':'highest'});const _0x4c20bb=_0x5ae418['descriptionFactory'];_0x4c20bb['registerDescriptionCallback'](_0x42811c=>{if('insertion'!==_0x42811c['type'])return;const {start:_0x2ceeb5,end:_0x55e77a}=_0x42811c['getFirstRange']();if(!_0x2ceeb5['isTouching'](_0x55e77a)||!_0x2ceeb5['nodeAfter'])return;const _0x269dc8=_0x3cc799['model']['schema'],_0x57f3a0=_0x2ceeb5['nodeAfter'];return _0x269dc8['isBlock'](_0x57f3a0)&&!_0x269dc8['isLimit'](_0x57f3a0)&&_0x269dc8['checkChild'](_0x57f3a0,'$text')?{'type':'insertion','content':o(_0x232e30,'*Insert:*\x20%0',_0x4c20bb['getItemLabel'](_0x57f3a0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3d36=this['editor'],_0x2b9256=_0x3e3d36['locale'];_0x3e3d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8952=>{if('formatBlock'!=_0x4a8952['type'])return;const {data:_0x3bbe2e}=_0x4a8952;return _0x3bbe2e&&'paragraph'==_0x3bbe2e['commandName']?{'type':'format','content':o(_0x2b9256,'*Change\x20to:*\x20%0',o(_0x2b9256,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcae091,{showActiveMarker:_0x528d6e=!0x0}={}){return(_0x4e14e2,_0x520350,_0x40f221)=>{const _0x3a17f9=_0xcae091['plugins']['get']('TrackChangesEditing'),_0x537d1f=_0x520350['markerRange']['start'],_0x247f7e=_0x520350['markerRange']['end'],_0x25c770=_0xcae091['model']['schema'];if(!_0x537d1f['isTouching'](_0x247f7e)||!_0x537d1f['nodeAfter'])return;const _0x2e4160=_0x537d1f['nodeAfter'];if(_0x25c770['isBlock'](_0x2e4160)&&!_0x25c770['isLimit'](_0x2e4160)&&_0x25c770['checkChild'](_0x2e4160,'$text')){if(!_0x40f221['consumable']['consume'](_0x520350['markerRange'],_0x4e14e2['name']))return;const {authorId:_0x2c6eed}=_0x3a17f9['_splitMarkerName'](_0x520350['markerName']),_0x314420=_0x40f221['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2c6eed}),_0x1225d8=_0x40f221['mapper']['toViewPosition'](_0x247f7e);_0x528d6e&&_0x3a17f9['activeMarkers']['includes'](_0x520350['markerName'])&&_0x40f221['writer']['addClass']('ck-suggestion-marker--active',_0x314420),_0x40f221['writer']['insert'](_0x1225d8,_0x314420),_0x40f221['mapper']['bindElementToMarker'](_0x314420,_0x520350['markerName']);}};}class wt extends _0x1d1013{['afterInit'](){const _0x20fb1c=this['editor'];if(!_0x20fb1c['plugins']['has']('RemoveFormatEditing'))return;_0x20fb1c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377f32=this['editor'];_0x377f32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36bfee=>{if('formatBlock'!=_0x36bfee['type']&&'formatInline'!=_0x36bfee['type'])return;const {data:_0x38a96f}=_0x36bfee;return _0x38a96f&&'removeFormat'==_0x38a96f['commandName']?{'type':'format','content':o(_0x377f32['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1d1013{['afterInit'](){const _0x36e4de=this['editor'];if(!_0x36e4de['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d1aff=_0x36e4de['plugins']['get']('TrackChangesEditing');_0x3d1aff['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d1aff['enableCommand']('goToNextRestrictedEditingException');const _0x5aae64=_0x36e4de['plugins']['get']('RestrictedEditingModeEditing');_0x5aae64['enableCommand']('trackChanges'),_0x5aae64['enableCommand']('acceptSuggestion'),_0x5aae64['enableCommand']('discardSuggestion'),_0x5aae64['enableCommand']('acceptAllSuggestions'),_0x5aae64['enableCommand']('discardAllSuggestions'),_0x5aae64['enableCommand']('acceptSelectedSuggestions'),_0x5aae64['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1d1013{static get['requires'](){return[_0x156e28];}['init'](){const _0x5a8942=this['editor'],_0x20d930=_0x5a8942['plugins']['get']('TrackChangesEditing');_0x20d930['enableCommand']('shiftEnter'),_0x5a8942['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5a8942),{'priority':'high'}),_0x5a8942['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5a8942),{'priority':'high'}),_0x5a8942['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdf3e54,_0x395cea,_0x5449ae)=>{_0x5449ae['options']['showSuggestionHighlights']&&ge(_0x5a8942,{'showActiveMarker':!0x1})(_0xdf3e54,_0x395cea,_0x5449ae);}),_0x20d930['descriptionFactory']['registerElementLabel']('softBreak',_0x4ef0e8=>o(_0x5a8942['locale'],'ELEMENT_LINE_BREAK',_0x4ef0e8));}}function ge(_0x418546,{showActiveMarker:_0x230662=!0x0}={}){return(_0x4f2ee4,_0x52b13e,_0x5a1e64)=>{const _0x2c3c1b=_0x418546['plugins']['get']('TrackChangesEditing');if(!_0x5a1e64['consumable']['test'](_0x52b13e['markerRange'],_0x4f2ee4['name']))return;const _0xfbc32d=_0x418546['model'];for(const _0x5bc2b3 of _0x52b13e['markerRange']['getItems']()){if(!_0x5bc2b3['is']('element','softBreak'))continue;const _0x48ba60='deletion'==_0x52b13e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x115ca9}=_0x2c3c1b['_splitMarkerName'](_0x52b13e['markerName']),_0x2ae72d=_0x5a1e64['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48ba60,'data-author-id':_0x115ca9}),_0x59853a=_0x5a1e64['mapper']['toViewPosition'](_0xfbc32d['createPositionBefore'](_0x5bc2b3));_0x230662&&_0x2c3c1b['activeMarkers']['includes'](_0x52b13e['markerName'])&&_0x5a1e64['writer']['addClass']('ck-suggestion-marker--active',_0x2ae72d),_0x5a1e64['writer']['insert'](_0x59853a,_0x2ae72d),_0x5a1e64['mapper']['bindElementToMarker'](_0x2ae72d,_0x52b13e['markerName']);}};}class St extends _0x1d1013{['afterInit'](){const _0x4f01e1=this['editor'],_0x3bff60=_0x4f01e1['model'],_0x232beb=_0x4f01e1['locale'];if(!_0x4f01e1['plugins']['has']('StandardEditingModeEditing'))return;const _0x541e2a=_0x4f01e1['plugins']['get']('TrackChangesEditing'),_0x2f6067='restrictedEditingException',_0x448207=_0x4f01e1['commands']['get'](_0x2f6067);_0x541e2a['enableCommand'](_0x2f6067,(_0x35f576,_0x2391df={})=>{const _0x25e7a1=_0x3bff60['document']['selection'];if(_0x25e7a1['isCollapsed'])return void _0x35f576(_0x2391df);const _0x58b571=void 0x0!==_0x2391df['forceValue']?_0x2391df['forceValue']:!_0x448207['value'];_0x3bff60['change'](()=>{const _0x5bee01=Array['from'](_0x25e7a1['getRanges']());for(const _0x56af67 of _0x5bee01){const _0x530452=_0x58b571?[_0x56af67]:io(_0x2f6067,_0x56af67,_0x3bff60);for(const _0x1ffaef of _0x530452)_0x541e2a['markInlineFormat'](_0x1ffaef,{'commandName':_0x2f6067,'commandParams':[{'forceValue':_0x58b571}]});}});}),_0x541e2a['descriptionFactory']['registerDescriptionCallback'](_0x409d0b=>{if('formatBlock'!=_0x409d0b['type']&&'formatInline'!=_0x409d0b['type'])return;const {data:_0x5b73fc}=_0x409d0b;return _0x5b73fc&&_0x5b73fc['commandName']==_0x2f6067?_0x5b73fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x232beb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x232beb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1d1013{['afterInit'](){const _0x537502=this['editor'];if(!_0x537502['plugins']['has']('Style')||!_0x537502['plugins']['has']('DataSchema'))return;const _0x3e2392=_0x537502['plugins']['get']('TrackChangesEditing'),_0x2e7b53=_0x537502['locale'],_0x24a495=_0x537502['config']['get']('style')||{},_0x221aca=_0x537502['plugins']['get']('GeneralHtmlSupport'),_0x568f86=_0x537502['plugins']['get']('StyleUtils')['normalizeConfig'](_0x537502['plugins']['get']('DataSchema'),_0x24a495['definitions']);_0x3e2392['enableDefaultAttributesIntegration']('style');const _0x1e8b28=new Set();for(const _0x59dd39 of _0x568f86['block']){const _0x37d00a=_0x221aca['getGhsAttributeNameForElement'](_0x59dd39['element']);_0x1e8b28['add'](_0x37d00a);}const _0x104412=new Set();for(const _0x51c3c1 of _0x568f86['inline']){const _0x362d0d=_0x221aca['getGhsAttributeNameForElement'](_0x51c3c1['element']);_0x104412['add'](_0x362d0d);for(const _0x4c8c62 of _0x51c3c1['ghsAttributes'])_0x104412['add'](_0x4c8c62);}for(const _0x2f06c5 of _0x1e8b28)_0x3e2392['registerBlockAttribute'](_0x2f06c5),_0x3e2392['descriptionFactory']['registerAttributeLabel'](_0x2f06c5,o(_0x2e7b53,'FORMAT_STYLE'));for(const _0x10d9f4 of _0x104412)_0x3e2392['registerInlineAttribute'](_0x10d9f4),_0x3e2392['descriptionFactory']['registerAttributeLabel'](_0x10d9f4,o(_0x2e7b53,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x529803=this['editor'],_0x4d1055=_0x529803['locale'];_0x529803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e96f8=>{if('formatBlock'!=_0x5e96f8['type']&&'formatInline'!=_0x5e96f8['type'])return;const {data:_0x3d1af6}=_0x5e96f8;return _0x3d1af6&&'style'===_0x3d1af6['commandName']?_0x3d1af6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1055,'*Set\x20format:*\x20%0',_0x3d1af6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4d1055,'*Remove\x20format:*\x20%0',_0x3d1af6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1d1013{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31ee93){super(_0x31ee93),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22d048=this['editor'],_0x134944=_0x22d048['model']['document']['selection'];if(!_0x22d048['plugins']['has']('TableEditing'))return;const _0x25d0ca=_0x22d048['locale'],_0x41e74d=_0x22d048['plugins']['get']('TrackChangesEditing'),_0x117e65=_0x22d048['plugins']['get']('TableUtils');_0x41e74d['descriptionFactory']['registerElementLabel']('table',_0x13b29a=>o(_0x25d0ca,'ELEMENT_TABLE',_0x13b29a)),this['_setupColumnsRowsFixing'](),_0x41e74d['enableCommand']('insertTable'),_0x41e74d['enableCommand']('selectTableRow'),_0x41e74d['enableCommand']('selectTableColumn');for(const _0x4c923c of['insertTableRowAbove','insertTableRowBelow']){const _0x247ff7=_0x22d048['commands']['get'](_0x4c923c);_0x41e74d['enableCommand'](_0x4c923c,_0x3c3581=>{_0x22d048['model']['change'](_0x3da4c0=>{_0x3c3581();const _0x5d57ed='above'===_0x247ff7['order'],_0x4b56a5=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x192f54=_0x117e65['getRowIndexes'](_0x4b56a5),_0x374027=_0x5d57ed?_0x192f54['first']-0x1:_0x192f54['last']+0x1,_0x1bd428=_0x4b56a5[0x0]['findAncestor']('table'),_0x3ff19b=_0x117e65['createTableWalker'](_0x1bd428,{'startRow':_0x374027,'endRow':_0x374027}),_0x5f0ea9=Array['from'](_0x3ff19b)['map'](_0x2b6561=>_0x3da4c0['createRangeOn'](_0x2b6561['cell']));_0x41e74d['markMultiRangeInsertion'](_0x5f0ea9,'tableRow');});});}for(const _0x40c23b of['insertTableColumnLeft','insertTableColumnRight']){const _0x13d841=_0x22d048['commands']['get'](_0x40c23b);_0x41e74d['enableCommand'](_0x40c23b,_0x31f1d3=>{_0x22d048['model']['change'](_0x484779=>{_0x31f1d3();const _0x39d097='left'===_0x13d841['order'],_0x2c95d7=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x10a3e4=_0x117e65['getColumnIndexes'](_0x2c95d7),_0x430296=_0x39d097?_0x10a3e4['first']-0x1:_0x10a3e4['last']+0x1,_0x373ad3=_0x2c95d7[0x0]['findAncestor']('table'),_0x3dae6a=_0x117e65['createTableWalker'](_0x373ad3,{'startRow':0x0,'column':_0x430296,'includeAllSlots':!0x1}),_0x72e47c=Array['from'](_0x3dae6a)['map'](_0xe92905=>_0x484779['createRangeOn'](_0xe92905['cell']));_0x41e74d['markMultiRangeInsertion'](_0x72e47c,'tableColumn');});});}for(const _0x1f7038 of['removeTableRow','removeTableColumn']){const _0x1fec06=_0x1f7038['substr'](0xb),_0x49b439=_0x1fec06['toLowerCase'](),_0xae8da8=_0x49b439['substr'](0x0,0x3)+'span',_0x46a34d='table'+_0x1fec06,_0x56dba6='min'+_0x1fec06,_0xbb3515='max'+_0x1fec06;_0x41e74d['enableCommand'](_0x1f7038,()=>{_0x22d048['model']['change'](_0x2aadcb=>{const _0x457b64=_0x117e65['getSelectionAffectedTableCells'](_0x134944),_0x5a97f9=_0x457b64[0x0]['findAncestor']('table');let _0x521923;if('removeTableRow'==_0x1f7038){const _0x4b5e70=_0x117e65['getRowIndexes'](_0x457b64);_0x521923={'startRow':_0x4b5e70['first'],'endRow':_0x4b5e70['last'],'includeAllSlots':!0x0};}else{const _0x4eb87b=_0x117e65['getColumnIndexes'](_0x457b64);_0x521923={'startColumn':_0x4eb87b['first'],'endColumn':_0x4eb87b['last'],'includeAllSlots':!0x0};}const _0x22a998=_0x117e65['createTableWalker'](_0x5a97f9,_0x521923),_0x290d59=Array['from'](_0x22a998)['map'](({cell:_0x3bfe8d})=>_0x3bfe8d),_0x19f0ba=be(_0x290d59['filter'](_0xb6d5ff=>_0xb6d5ff['hasAttribute'](_0xae8da8))),_0x1d4cb5=be(_0x290d59['filter'](_0x78c785=>!_0x78c785['hasAttribute'](_0xae8da8)))['map'](_0x369dae=>_0x2aadcb['createRangeOn'](_0x369dae)),_0x18c633=_0x41e74d['markMultiRangeDeletion'](_0x1d4cb5,_0x46a34d);if(_0x18c633&&('tableRow'==_0x18c633['subType']||'tableColumn'==_0x18c633['subType'])){const _0x36d890=this['_getSuggestionCoords'](_0x18c633);for(const _0x268476 of _0x19f0ba){const _0x409618=_0x2aadcb['createRangeOn'](_0x268476),_0x221cc9=_0x117e65['getCellLocation'](_0x268476),_0x2e1ac4=_0x268476['getAttribute'](_0xae8da8)-0x1,_0x5dfc0e=_0x36d890[_0x56dba6],_0x4325f=_0x36d890[_0xbb3515];_0x5dfc0e<=_0x221cc9[_0x49b439]&&_0x221cc9[_0x49b439]+_0x2e1ac4<=_0x4325f&&_0x18c633['addRange'](_0x409618);}}});});}function _0x4e7478(_0x159baf){const _0x3eec07=Array['from'](_0x134944['getRanges']())['map'](_0x2c9ef6=>_0x4f83f9['fromRange'](_0x2c9ef6));_0x22d048['model']['change'](_0x55b177=>{const _0x47e45e=_0x55b177['batch'];_0x159baf=_0x159baf['filter'](_0x83a577=>'$graveyard'!=_0x83a577['root']['rootName']),_0x55b177['setSelection'](_0x159baf),_0x22d048['commands']['get']('removeTableRow')['refresh'](),_0x22d048['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22d048['model']['enqueueChange'](()=>{_0x22d048['model']['enqueueChange'](_0x47e45e,_0x1458d5=>{const _0x4613a1=_0x3eec07['filter'](_0x5df974=>'$graveyard'!=_0x5df974['root']['rootName']);_0x4613a1['length']>0x0&&_0x1458d5['setSelection'](_0x4613a1);for(const _0x153d69 of _0x3eec07)_0x153d69['detach']();});});});}function _0x2f7823(_0x3cf7b3){_0x22d048['model']['change'](_0x17ff0a=>{const _0x53fce2=Array['from'](_0x134944['getRanges']())['map'](_0x253ff6=>_0x4f83f9['fromRange'](_0x253ff6)),_0x14a372=[];for(const _0x555228 of _0x3cf7b3)for(const _0x2e4aa7 of _0x555228['getItems']({'shallow':!0x0}))_0x14a372['push'](_0x2e4aa7);for(const _0x583f84 of _0x14a372)'$graveyard'!=_0x583f84['root']['rootName']&&(_0x17ff0a['setSelection'](_0x17ff0a['createPositionAt'](_0x583f84,0x0)),_0x22d048['commands']['get']('removeTableColumn')['refresh'](),_0x22d048['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x193f0b=_0x53fce2['filter'](_0x3ddc65=>'$graveyard'!=_0x3ddc65['root']['rootName']);_0x193f0b['length']>0x0&&_0x17ff0a['setSelection'](_0x193f0b);for(const _0x11e7c9 of _0x53fce2)_0x11e7c9['detach']();});}function _0x13609e(_0x410d91,_0x368d3b){return _0x368d3b['every'](_0x87a455=>_0x410d91['some'](_0x45799f=>_0x45799f['end']['isEqual'](_0x87a455['start'])||_0x87a455['end']['isEqual'](_0x45799f['start'])));}function _0x21774f(_0x2f113b,_0x2b9b24){return!_0x2f113b['some'](_0x345459=>_0x2b9b24['some'](_0x467f25=>_0x345459['isIntersecting'](_0x467f25)))&&_0x2f113b['some'](_0x43cad9=>_0x2b9b24['some'](_0x26b535=>_0x43cad9['end']['isTouching'](_0x26b535['start'])));}_0x22d048['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fe433,_0x3bd814,_0x318c9f)=>{if(!_0x318c9f['options']['showSuggestionHighlights'])return;const _0x1231a8=_0x3bd814['item'];if(!_0x1231a8)return;const _0x5067f1=_0x318c9f['mapper']['toViewElement'](_0x1231a8);function _0x1fc96f(_0x519436){return Array['isArray'](_0x519436)?_0x519436:[_0x519436];}_0x5067f1&&'tableCell'===_0x1231a8['name']&&_0x11169f(_0x5067f1,_0x318c9f['writer'],(_0x509f02,_0x17d4b5,_0x58d4fb)=>_0x58d4fb['addClass'](_0x1fc96f(_0x17d4b5['classes']),_0x509f02),(_0xca5a8f,_0x2a55ed,_0x5cbe09)=>_0x5cbe09['removeClass'](_0x1fc96f(_0x2a55ed['classes']),_0xca5a8f));},{'priority':'highest'}),_0x41e74d['descriptionFactory']['registerDescriptionCallback'](_0x282378=>{if('insertion'!=_0x282378['type']&&'deletion'!=_0x282378['type'])return;const _0x347b5b=_0x282378['getContainedElement']();if(null!=_0x347b5b&&_0x347b5b['is']('element','table')){if('insertion'==_0x282378['type']){const _0x5dcab3=_0x282378['getItems']()['filter'](_0x56ed4e=>_0x56ed4e['is']('$textProxy'))['map'](_0xf35af2=>_0xf35af2['data']);if(_0x5dcab3['length'])return{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dcab3['join']('\x20')+'\x22'))};}if('deletion'==_0x282378['type']){const _0x173288=_0x282378['getItems']()['filter'](_0x401b72=>_0x401b72['is']('$textProxy'))['map'](_0x158155=>_0x158155['data']);if(_0x173288['length'])return{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x173288['join']('\x20')+'\x22'))};}}}),_0x41e74d['descriptionFactory']['registerDescriptionCallback'](_0x1c992b=>{if('tableRow'==_0x1c992b['subType']){const _0x173238=_0x1c992b['getItems']()['filter'](_0x1ac80b=>_0x1ac80b['is']('$textProxy'))['map'](_0x40e87a=>_0x40e87a['data']),_0x57d789=this['_getSuggestionCoords'](_0x1c992b),_0x5e1444=_0x57d789['maxRow']-_0x57d789['minRow']+0x1;if('insertion'==_0x1c992b['type'])return _0x173238['length']?{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e1444,'\x22'+_0x173238['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW',_0x5e1444))};if('deletion'==_0x1c992b['type'])return _0x173238['length']?{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e1444,'\x22'+_0x173238['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_ROW',_0x5e1444))};}if('tableColumn'==_0x1c992b['subType']){const _0x3eb403=_0x1c992b['getItems']()['filter'](_0x4b7890=>_0x4b7890['is']('$textProxy'))['map'](_0x46ad27=>_0x46ad27['data']),_0x3ea9bf=this['_getSuggestionCoords'](_0x1c992b),_0x47ff80=_0x3ea9bf['maxColumn']-_0x3ea9bf['minColumn']+0x1;if('insertion'==_0x1c992b['type'])return _0x3eb403['length']?{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x47ff80,'\x22'+_0x3eb403['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25d0ca,'*Insert:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN',_0x47ff80))};if('deletion'==_0x1c992b['type'])return _0x3eb403['length']?{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x47ff80,'\x22'+_0x3eb403['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25d0ca,'*Remove:*\x20%0',o(_0x25d0ca,'ELEMENT_TABLE_COLUMN',_0x47ff80))};}}),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e7478),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e7478),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f7823),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f7823),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13609e),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13609e),_0x41e74d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21774f),_0x41e74d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21774f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3413e8=this['editor'],_0x122863=_0x3413e8['model']['document']['selection'];return(_0x52e92,_0x18e0ab)=>{_0x3413e8['model']['change'](_0x812eca=>{const {commandName:_0x1a1cf6,commandParams:_0x3b9554}=_0x18e0ab;let _0x2d0a41=_0x52e92[0x0]['end']['nodeBefore'];_0x3b9554&&_0x3b9554[0x0]&&!0x1===_0x3b9554[0x0]['forceValue']&&(_0x2d0a41=_0x52e92[0x0]['start']['nodeAfter']);const _0x15be8c=_0x812eca['createRangeIn'](_0x2d0a41);if('$graveyard'==_0x15be8c['root']['rootName'])return;const _0x19bde9=Array['from'](_0x122863['getRanges']())['map'](_0x234550=>_0x4f83f9['fromRange'](_0x234550));_0x812eca['setSelection'](_0x15be8c),_0x3413e8['commands']['get'](_0x1a1cf6)['refresh'](),_0x3b9554['push']({'forceDefaultExecution':!0x0}),_0x3413e8['execute'](_0x1a1cf6,..._0x3b9554);const _0x35b381=_0x19bde9['filter'](_0x2432d9=>'$graveyard'!=_0x2432d9['root']['rootName']);_0x35b381['length']>0x0&&_0x812eca['setSelection'](_0x35b381);for(const _0x469aaf of _0x19bde9)_0x469aaf['detach']();});};}['_getCoordsForCells'](_0x23373f){const _0x2992c0=this['editor']['plugins']['get']('TableUtils');let _0x22c52d=Number['MAX_SAFE_INTEGER'],_0x3bf77e=Number['MIN_SAFE_INTEGER'],_0x3ccb83=Number['MAX_SAFE_INTEGER'],_0x5cdb2d=Number['MIN_SAFE_INTEGER'];for(const _0x5b6c6e of _0x23373f){if('$graveyard'==_0x5b6c6e['root']['rootName'])continue;const {row:_0x3c8411,column:_0x25e634}=_0x2992c0['getCellLocation'](_0x5b6c6e),_0x476b51=_0x5b6c6e['hasAttribute']('rowspan')?_0x5b6c6e['getAttribute']('rowspan')-0x1:0x0,_0x12ac21=_0x5b6c6e['hasAttribute']('colspan')?_0x5b6c6e['getAttribute']('colspan')-0x1:0x0;_0x22c52d=_0x3c8411<_0x22c52d?_0x3c8411:_0x22c52d,_0x3bf77e=_0x3c8411+_0x476b51>_0x3bf77e?_0x3c8411+_0x476b51:_0x3bf77e,_0x3ccb83=_0x25e634<_0x3ccb83?_0x25e634:_0x3ccb83,_0x5cdb2d=_0x25e634+_0x12ac21>_0x5cdb2d?_0x25e634+_0x12ac21:_0x5cdb2d;}return{'minRow':_0x22c52d,'maxRow':_0x3bf77e,'minColumn':_0x3ccb83,'maxColumn':_0x5cdb2d};}['_setupColumnsRowsFixing'](){const _0x481252=this['editor'],_0x5d9551=_0x481252['plugins']['get']('TrackChangesEditing'),_0x4ebe4b=_0x481252['plugins']['get']('TableUtils');_0x481252['model']['document']['on']('change:data',()=>{const _0x2853bc=Array['from'](_0x481252['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x88331,data:_0x425d80}of _0x2853bc){const {group:_0x30f2dd,id:_0x43bdc2,subType:_0x32c85a}=_0x5d9551['_splitMarkerName'](_0x88331);if('suggestion'!=_0x30f2dd)continue;if(null!=_0x425d80['oldRange'])continue;const _0xfba6c9=_0x5d9551['getSuggestion'](_0x43bdc2);this['_tablePostFixingSubtypes']['includes'](_0x32c85a)&&this['_tableSuggestions']['add'](_0xfba6c9);}},{'priority':'low'});const _0xd1a46c=(_0x27a3bf,_0x4f7ab9)=>{let _0x1ed4a2=!0x1;const _0x10c7be=_0x4f7ab9['createRangeOn'](_0x27a3bf),_0x4a30bc=_0x27a3bf['findAncestor']('table'),_0x293376=_0x4ebe4b['getCellLocation'](_0x27a3bf);for(const _0xca5b15 of this['_tableSuggestions']){const _0x464a83=_0xca5b15['subType'],_0x3060a8=_0x464a83['startsWith']('tablePaste'),_0x5029ae=_0x464a83['substr'](_0x3060a8?0xa:0x5),_0x14a34e=_0x5029ae['toLowerCase'](),_0x14d18d=_0x14a34e['substr'](0x0,0x3)+'span',_0x43d095='min'+_0x5029ae,_0x840476='max'+_0x5029ae;if(!_0xca5b15['isInContent'])continue;if(_0x4a30bc!=_0xca5b15['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xca5b15['isIntersectingWithRange'](_0x10c7be))continue;const _0x380a9d=_0x27a3bf['hasAttribute'](_0x14d18d)?_0x27a3bf['getAttribute'](_0x14d18d)-0x1:0x0,_0x37d65b=this['_getSuggestionCoords'](_0xca5b15),_0x5a7823=_0x37d65b[_0x43d095],_0x2dcc68=_0x37d65b[_0x840476];_0x5a7823<=_0x293376[_0x14a34e]&&_0x293376[_0x14a34e]+_0x380a9d<=_0x2dcc68&&(_0xca5b15['addRange'](_0x10c7be),_0x1ed4a2=!0x0);}return _0x1ed4a2;};_0x481252['model']['document']['registerPostFixer'](_0x222ca1=>{let _0x84d524=!0x1;for(const _0x434ce4 of _0x481252['model']['document']['differ']['getChanges']())if('insert'==_0x434ce4['type']){if('tableRow'==_0x434ce4['name']){for(const _0x4328f6 of _0x434ce4['position']['nodeAfter']['getChildren']())_0x84d524=_0x84d524||_0xd1a46c(_0x4328f6,_0x222ca1);}else'tableCell'==_0x434ce4['name']&&(_0x84d524=_0x84d524||_0xd1a46c(_0x434ce4['position']['nodeAfter'],_0x222ca1));}return _0x84d524;});}['_getSuggestionCoords'](_0x5e7f94){return this['_getCoordsForCells'](_0x5e7f94['getRanges']()['map'](_0x31a9ba=>_0x31a9ba['start']['nodeAfter']));}}function be(_0x154a8e){return Array['from'](new Set(_0x154a8e)['values']());}class vt extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x46fd8e=this['editor'],_0x3ad5b9=_0x46fd8e['model']['document']['selection'],_0x25e409=_0x46fd8e['locale'];if(!_0x46fd8e['plugins']['has']('TableEditing'))return;const _0x277139=_0x46fd8e['plugins']['get']('TrackChangesEditing'),_0x420771=_0x46fd8e['plugins']['get']('TableUtils'),_0x4bda04=_0x46fd8e['plugins']['get'](It);_0x4bda04['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x277139['enableCommand']('mergeTableCells',()=>{const _0x29b8e4=_0x420771['getSelectionAffectedTableCells'](_0x46fd8e['model']['document']['selection']);_0x46fd8e['model']['change'](()=>{_0x277139['markMultiRangeBlockFormat'](_0x29b8e4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x46fd8e['commands']['get']('mergeTableCells')['on']('execute',(_0xc6ee5d,_0x597f2c)=>{_0x46fd8e['commands']['get']('trackChanges')['value']&&(_0x597f2c['length']>0x0&&_0x597f2c[_0x597f2c['length']-0x1]&&_0x597f2c[_0x597f2c['length']-0x1]['forceDefaultExecution']||_0x277139['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc6ee5d['stop']());},{'priority':'highest'});for(const _0x484322 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x427ed0=_0x46fd8e['commands']['get'](_0x484322);_0x277139['enableCommand'](_0x484322,()=>{const _0x342920=_0x46fd8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c80b8=>_0x1c80b8['is']('element','tableCell')),_0x5671ec=_0x427ed0['value'];_0x46fd8e['model']['change'](()=>{_0x277139['markMultiRangeBlockFormat']([_0x342920,_0x5671ec],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2acac5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6cb7de=_0x46fd8e['commands']['get'](_0x2acac5);_0x277139['enableCommand'](_0x2acac5,()=>{const _0x303f24=_0x420771['getSelectionAffectedTableCells'](_0x46fd8e['model']['document']['selection'])[0x0],_0x4d61d9=_0x303f24['findAncestor']('table'),{column:_0x43e29f,row:_0x27108c}=_0x420771['getCellLocation'](_0x303f24);let _0x25f798=[];if('horizontally'==_0x6cb7de['direction']){const _0x3a9339=_0x420771['createTableWalker'](_0x4d61d9,{'startRow':_0x27108c,'endRow':_0x27108c,'includeAllSlots':!0x0});_0x25f798=Array['from'](_0x3a9339)['map'](_0x467543=>_0x467543['cell']);}else{const _0x13e8fb=_0x420771['createTableWalker'](_0x4d61d9,{'column':_0x43e29f,'includeAllSlots':!0x0});_0x25f798=Array['from'](_0x13e8fb)['map'](_0x2d4aa9=>_0x2d4aa9['cell']);}_0x46fd8e['model']['change'](_0x33221b=>{_0x277139['markBlockFormat'](_0x33221b['createRangeOn'](_0x303f24),{'commandName':_0x2acac5,'commandParams':[]},_0x25f798,_0x2acac5);});});}_0x277139['descriptionFactory']['registerDescriptionCallback'](_0x126316=>{if('formatBlock'!=_0x126316['type']&&'formatInline'!=_0x126316['type'])return;const {data:_0x3dfa8a}=_0x126316;return _0x3dfa8a&&'mergeTableCells'==_0x3dfa8a['commandName']?{'type':'format','content':o(_0x25e409,'*Merge\x20cells*')}:void 0x0;}),_0x277139['descriptionFactory']['registerDescriptionCallback'](_0x1bfded=>{if('formatBlock'!=_0x1bfded['type']&&'formatInline'!=_0x1bfded['type'])return;const {data:_0x3b77f2}=_0x1bfded;return _0x3b77f2?'splitTableCellVertically'==_0x3b77f2['commandName']?{'type':'format','content':o(_0x25e409,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b77f2['commandName']?{'type':'format','content':o(_0x25e409,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38c389=_0x4bda04['_acceptFormatSuggestionCallbackFactory']();for(const _0x6bc50 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6bc50,'accept',_0x38c389);for(const _0x1cad85 of['splitTableCellVertically','splitTableCellHorizontally'])_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cad85,'accept',_0x38c389);_0x277139['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x385eb6=>{_0x46fd8e['model']['change'](_0x3fc08c=>{const _0x3698ad=Array['from'](_0x3ad5b9['getRanges']())['map'](_0x137634=>_0x4f83f9['fromRange'](_0x137634));_0x3fc08c['setSelection'](_0x385eb6),_0x46fd8e['commands']['get']('mergeTableCells')['refresh'](),_0x46fd8e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x52b461=_0x3698ad['filter'](_0x36c109=>'$graveyard'!=_0x36c109['root']['rootName']);_0x52b461['length']>0x0&&_0x3fc08c['setSelection'](_0x52b461);for(const _0x482d00 of _0x3698ad)_0x482d00['detach']();});});for(const _0x4079ba of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x17a12d=_0x46fd8e['commands']['get'](_0x4079ba);_0x17a12d['on']('set:isEnabled',(_0x4aa084,_0x4ad08c,_0x135651)=>{if(_0x135651){const _0x1514a4=_0x46fd8e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2298d2=>_0x2298d2['is']('element','tableCell'));this['_areMergableCells'](_0x17a12d['value'],_0x1514a4)||(_0x4aa084['return']=!0x1,_0x4aa084['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x11ebbe=this['editor']['commands']['get']('mergeTableCells'),_0x41397b=this['editor']['plugins']['get']('TableUtils');if(!_0x11ebbe['isEnabled'])return!0x1;const _0x11e034=_0x41397b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15c8e7 of _0x11e034)for(const _0x16b8fa of _0x11e034)if(_0x15c8e7!=_0x16b8fa&&!this['_areMergableCells'](_0x15c8e7,_0x16b8fa))return!0x1;return!0x0;}['_areMergableCells'](_0x2daf5c,_0x8df441){const _0x348db8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6c34=this['editor']['model']['createRangeOn'](_0x2daf5c),_0x16740a=this['editor']['model']['createRangeOn'](_0x8df441),_0x2044ee=new Set(),_0x3544fa=new Set();for(const _0xa6e64f of _0x348db8['getSuggestions']())if(('insertion'==_0xa6e64f['type']||'deletion'==_0xa6e64f['type']||'mergeTableCells'==_0xa6e64f['subType'])&&_0xa6e64f['isInContent']){for(const _0x16cf03 of _0xa6e64f['getRanges']())_0x16cf03['containsRange'](_0x4e6c34,!0x0)&&_0x2044ee['add'](_0xa6e64f['type']+':'+_0xa6e64f['author']['id']),_0x16cf03['containsRange'](_0x16740a,!0x0)&&_0x3544fa['add'](_0xa6e64f['type']+':'+_0xa6e64f['author']['id']);}if(_0x2044ee['size']!=_0x3544fa['size'])return!0x1;for(const _0x58daf6 of _0x2044ee)if(!_0x3544fa['has'](_0x58daf6))return!0x1;return!0x0;}}class Ct extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x2bbc50=this['editor'];if(!_0x2bbc50['plugins']['has']('TableEditing'))return;const _0x4f2416=_0x2bbc50['locale'],_0x5e2af1=_0x2bbc50['plugins']['get']('TrackChangesEditing');_0x5e2af1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e2af1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e2af1['registerBlockAttribute']('headingRows'),_0x5e2af1['registerBlockAttribute']('headingColumns'),_0x5e2af1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f2416,'FORMAT_HEADER_ROW')),_0x5e2af1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f2416,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x506b5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421faf=this['editor']['plugins']['get']('TableUtils'),_0x2d5a55=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x53784a({showActiveMarker:_0x28c14d=!0x0,setDataAttribute:_0x384e29=!0x0}={}){return(_0x55ed98,_0x58477f,_0x25ebae)=>{const {type:_0x2a865e,id:_0x1384f4}=_0x506b5a['_splitMarkerName'](_0x58477f['markerName']),_0x255e52=_0x506b5a['getSuggestion'](_0x1384f4),_0x1d928c=_0x255e52['data'];if('formatBlock'!=_0x255e52['type']||!_0x1d928c||'setTableColumnHeader'!=_0x1d928c['commandName'])return;if(_0x58477f['item'])return void _0x55ed98['stop']();if(!_0x25ebae['consumable']['consume'](_0x58477f['markerRange'],_0x55ed98['name']))return;const _0x2bd3ea=_0x58477f['markerRange']['start']['nodeAfter'],_0x2f6ff0=_0x58477f['markerRange']['end']['nodeBefore'],_0x2ff2d2=_0x2bd3ea['parent']['parent'],{column:_0x4e08ec}=_0x421faf['getCellLocation'](_0x2bd3ea),{column:_0x5d4d30}=_0x421faf['getCellLocation'](_0x2f6ff0);for(let _0x543312=_0x4e08ec;_0x543312<=_0x5d4d30;_0x543312++){const _0x50f043=_0x421faf['createTableWalker'](_0x2ff2d2,{'column':_0x543312,'includeAllSlots':!0x1});for(const _0x20b208 of _0x50f043){const _0x2c76c0=_0x20b208['cell'],_0x414093=_0x25ebae['mapper']['toViewElement'](_0x2c76c0);_0x25ebae['writer']['addClass']('ck-suggestion-marker-'+_0x2a865e,_0x414093),_0x384e29&&_0x25ebae['writer']['setAttribute']('data-suggestion',_0x1384f4,_0x414093),_0x25ebae['mapper']['bindElementToMarker'](_0x414093,_0x58477f['markerName']),_0x28c14d&&(_0x506b5a['activeMarkers']['includes'](_0x58477f['markerName'])?_0x25ebae['writer']['addClass']('ck-suggestion-marker--active',_0x414093):_0x25ebae['writer']['removeClass']('ck-suggestion-marker--active',_0x414093));}}};}_0x506b5a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2d5a55),_0x506b5a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2d5a55),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x53784a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x131c74,_0x2c35a2,_0x353523)=>{_0x353523['options']['showSuggestionHighlights']&&_0x53784a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x131c74,_0x2c35a2,_0x353523);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x9011a1,_0x477be4,_0x269bec)=>{const {type:_0x3c4505,id:_0x460736}=_0x506b5a['_splitMarkerName'](_0x477be4['markerName']),_0x5c1101=_0x506b5a['getSuggestion'](_0x460736),_0x2f2d85=_0x5c1101['data'];if('formatBlock'!=_0x5c1101['type']||!_0x2f2d85||'setTableColumnHeader'!=_0x2f2d85['commandName'])return;const _0x363dac=_0x269bec['mapper']['markerNameToElements'](_0x477be4['markerName']);if(_0x363dac){for(const _0x548337 of _0x363dac)_0x269bec['writer']['removeClass']('ck-suggestion-marker-'+_0x3c4505,_0x548337),_0x269bec['writer']['removeClass']('ck-suggestion-marker--active',_0x548337),_0x269bec['writer']['removeAttribute']('data-suggestion',_0x548337),_0x269bec['mapper']['unbindElementFromMarkerName'](_0x548337,_0x477be4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539fd9=this['editor'],_0x3fdb16=_0x539fd9['locale'];function _0x11978f(_0x5357ae){return{'type':'format','content':o(_0x3fdb16,'*Format:*\x20%0',_0x5357ae)};}_0x539fd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8e3a=>{if('formatBlock'!=_0x4b8e3a['type'])return;const {data:_0x3b5eda}=_0x4b8e3a;if(_0x3b5eda){if('setTableRowHeader'==_0x3b5eda['commandName']){const _0x1781fe=_0x3b5eda['commandParams'][0x0]['forceValue'];return _0x11978f(o(_0x3fdb16,_0x1781fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b5eda['commandName']){const _0x4e07ba=_0x3b5eda['commandParams'][0x0]['forceValue'];return _0x11978f(o(_0x3fdb16,_0x4e07ba?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x228bd8=>[_0x228bd8,null]));class _t extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x5232ba=this['editor'];if(!_0x5232ba['plugins']['has']('TableClipboard'))return;const _0x3a14c2=_0x5232ba['plugins']['get']('TrackChangesEditing'),_0x56fb22=_0x5232ba['plugins']['get']('TableUtils'),_0x540472=_0x5232ba['plugins']['get'](It),_0x220917=_0x5232ba['plugins']['get']('TableClipboard');_0x540472['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5232ba['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5232ba['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f4b83=null;_0x5232ba['model']['on']('insertContent',(_0x164002,_0x3a6ce1)=>{const [_0x551d37,_0x5801bd]=_0x3a6ce1,_0x32b8f1=_0x3a6ce1[_0x3a6ce1['length']-0x1];_0x32b8f1&&_0x32b8f1['forceDefaultExecution']||_0x3a14c2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xaecd20,_0x32ee7d,_0x1ada5f,_0x3b628f,_0x55b6d6){if(_0x32ee7d&&!_0x32ee7d['is']('documentSelection'))return!0x1;const _0x3eb37a=_0x55b6d6['getTableIfOnlyTableInContent'](_0xaecd20,_0x1ada5f);if(!_0x3eb37a||!Re(_0x3eb37a,void 0x0,_0x3b628f))return!0x1;const _0x38de50=_0x3b628f['getSelectionAffectedTableCells'](_0x1ada5f['document']['selection']);if(!_0x38de50['length'])return!0x1;const _0x44a090=_0x38de50[0x0]['findAncestor']('table'),_0x34a734=_0x3b628f['getRowIndexes'](_0x38de50),_0x579670=_0x3b628f['getColumnIndexes'](_0x38de50),_0x4ebdfe={'startRow':_0x34a734['first'],'endRow':_0x34a734['last'],'startColumn':_0x579670['first'],'endColumn':_0x579670['last']};return 0x1==_0x38de50['length']&&(_0x4ebdfe['endRow']+=_0x3b628f['getRows'](_0x3eb37a)-0x1,_0x4ebdfe['endColumn']+=_0x3b628f['getColumns'](_0x3eb37a)-0x1),Re(_0x44a090,_0x4ebdfe,_0x3b628f);}(_0x551d37,_0x5801bd,_0x5232ba['model'],_0x56fb22,_0x220917)&&(_0x164002['stop'](),_0x2f4b83={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5232ba['model']['change'](()=>{_0x5232ba['model']['insertContent'](_0x3a6ce1[0x0],_0x3a6ce1[0x1],_0x3a6ce1[0x2],{'forceDefaultExecution':!0x0});const _0x293f36=_0x338779(),{rowInsertionRanges:_0x4357de,columnInsertionRanges:_0x1f5a23,insertionRanges:_0xd1f095,deletionRanges:_0x43aa37,cells:_0x1ea41a}=_0x2f4b83;_0x4357de['length']&&_0x3a14c2['markMultiRangeInsertion'](_0x4357de,'tablePasteRow',{'tablePasteChainId':_0x293f36}),_0x1f5a23['length']&&_0x3a14c2['markMultiRangeInsertion'](_0x1f5a23,'tablePasteColumn',{'tablePasteChainId':_0x293f36}),_0xd1f095['length']&&(_0x3a14c2['markMultiRangeInsertion'](_0xd1f095,'tablePaste',{'tablePasteChainId':_0x293f36,'skipNestingCheck':!0x0}),_0xd1f095['forEach'](_0xae2b7e=>_0xae2b7e['detach']?.())),_0x43aa37['length']&&(_0x3a14c2['markMultiRangeDeletion'](_0x43aa37,'tablePaste',{'tablePasteChainId':_0x293f36,'skipNestingCheck':!0x0}),_0x43aa37['forEach'](_0x424eb9=>_0x424eb9['detach']?.()));const _0x334474=_0x3a14c2['markMultiRangeBlockFormat'](_0x1ea41a['map'](({element:_0x23f31f})=>_0x23f31f),{'formatGroupId':_0x338779()},[],'tablePasteCell',{'tablePasteChainId':_0x293f36});if(_0x334474){const _0x6a82b=_0x334474['getMarkers'](),_0x11d99c=[];for(const {element:_0x4005b1,attributes:_0x3bf3ac}of _0x1ea41a){if(!_0x3bf3ac)continue;const _0x483308=_0x5232ba['model']['createRangeOn'](_0x4005b1),_0x5e4428=_0x6a82b['find'](_0x2c5abd=>_0x2c5abd['getRange']()['isEqual'](_0x483308));_0x5e4428&&_0x11d99c['push']([_0x5e4428['name'],_0x3bf3ac]);}_0x11d99c['length']&&_0x334474['setAttribute']('markerAttributes',Object['fromEntries'](_0x11d99c));}_0x2f4b83=null;}));},{'priority':_0x563ef4['high']+0xa}),_0x5232ba['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57adac,_0x661b6d)=>{const [_0x23e472,_0x19218f,,_0x257186]=_0x661b6d;if(!_0x2f4b83)return;_0x57adac['stop']();const _0x156442=_0x23e472['cell'],_0x220d8b=_0x19218f,_0x58703b=ke(_0x156442),_0x868918=ke(_0x220d8b);_0x57adac['return']=_0x156442;let _0x52d44e=null,_0x70c546=null;if(_0x868918||_0x58703b){if(_0x58703b&&!_0x868918){_0x257186['remove'](_0x156442['getChild'](0x0));for(const _0x1347a0 of Array['from'](_0x220d8b['getChildren']()))_0x257186['insert'](_0x1347a0,_0x156442,'end');const _0x55cc1a=_0x2f4b83['rowInsertionIndexes']['includes'](_0x23e472['row']),_0x160448=_0x2f4b83['columnInsertionIndexes']['includes'](_0x23e472['column']);_0x55cc1a||_0x160448||(_0x52d44e=_0x4f83f9['fromRange'](_0x257186['createRangeIn'](_0x156442)));}else _0x868918&&!_0x58703b&&(_0x70c546=_0x257186['createRangeIn'](_0x156442));}else{const _0x3fd673=_0x257186['createElement']('tableCellSuggestion'),_0x17acdb=_0x257186['createElement']('tableCellSuggestion');_0x257186['wrap'](_0x257186['createRangeIn'](_0x156442),_0x17acdb),_0x257186['insert'](_0x3fd673,_0x156442,0x0);for(const _0xbfcbc2 of Array['from'](_0x220d8b['getChildren']()))_0x257186['insert'](_0xbfcbc2,_0x3fd673,'end');_0x52d44e=_0x4f83f9['fromRange'](_0x257186['createRangeOn'](_0x3fd673)),_0x70c546=_0x4f83f9['fromRange'](_0x257186['createRangeOn'](_0x17acdb));}const _0x2c7282=Array['from'](_0x220d8b['getAttributes']())['filter'](([_0x4c1139])=>Pe['includes'](_0x4c1139));_0x2f4b83['cells']['push']({'element':_0x156442,'attributes':_0x2c7282['length']?Object['fromEntries'](_0x2c7282):null}),_0x52d44e&&_0x2f4b83['insertionRanges']['push'](_0x52d44e),_0x70c546&&_0x2f4b83['deletionRanges']['push'](_0x70c546);},{'priority':'high'}),_0x56fb22['on']('insertColumns',(_0x408200,_0x5a21be)=>{const [_0x216066,_0x51b45d={}]=_0x5a21be;if(!_0x2f4b83)return;const _0x2dfa58=_0x51b45d['at']||0x0,_0x2763e0=_0x51b45d['columns']||0x1;_0x2f4b83['columnInsertionIndexes']=new Array(_0x2763e0)['fill'](_0x2dfa58)['map']((_0x25b731,_0x51b31f)=>_0x25b731+_0x51b31f);for(const {cell:_0x1eafa8}of _0x56fb22['createTableWalker'](_0x216066,{'startColumn':_0x2dfa58,'endColumn':_0x2dfa58+_0x2763e0-0x1}))_0x2f4b83['columnInsertionRanges']['push'](_0x5232ba['model']['createRangeOn'](_0x1eafa8));},{'priority':'low'}),_0x56fb22['on']('insertRows',(_0x3f9d14,_0x108a15)=>{const [_0x49fad7,_0x2f280f={}]=_0x108a15;if(!_0x2f4b83)return;const _0x45ed34=_0x2f280f['at']||0x0,_0x4032cc=_0x2f280f['rows']||0x1;_0x2f4b83['rowInsertionIndexes']=new Array(_0x4032cc)['fill'](_0x45ed34)['map']((_0x5a5aca,_0x55d460)=>_0x5a5aca+_0x55d460);for(const {cell:_0x107c77}of _0x56fb22['createTableWalker'](_0x49fad7,{'startRow':_0x45ed34,'endRow':_0x45ed34+_0x4032cc-0x1}))_0x2f4b83['rowInsertionRanges']['push'](_0x5232ba['model']['createRangeOn'](_0x107c77));},{'priority':'low'}),_0x3a14c2['descriptionFactory']['registerDescriptionCallback'](_0x5f5999=>{if(_0x5f5999['subType']&&_0x5f5999['subType']['startsWith']('tablePaste'))return _0x5f5999['previous']?{}:{'type':'insertion','content':o(_0x5232ba['locale'],'*Replace\x20table\x20cells*')};});const _0x1ec00d=()=>!0x1;for(const _0x218778 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion',_0x218778,'join',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('deletion',_0x218778,'join',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x218778,'join',_0x1ec00d);_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ec00d),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42a0ad,_0x281917,_0x4c3121)=>{const _0x3b1aae=_0x42a0ad['map'](_0x22bf64=>_0x22bf64['getContainedElement']())['filter'](_0xed0db6=>_0xed0db6),_0x1fa0da=new Map(_0x3b1aae['map'](_0xc3cb60=>[_0xc3cb60,null]));if(_0x2f4b83){for(const {element:_0x4c794b,attributes:_0x57b7cb}of _0x2f4b83['cells'])_0x57b7cb&&_0x1fa0da['set'](_0x4c794b,_0x57b7cb);}else{if(_0x4c3121&&_0x4c3121['markerAttributes'])for(const [_0x5afd4f,_0x42537d]of Object['entries'](_0x4c3121['markerAttributes'])){const _0x1d9a07=_0x5232ba['model']['markers']['get'](_0x5afd4f),_0x809db4=_0x1d9a07?_0x1d9a07['getRange']()['getContainedElement']():null;_0x809db4&&_0x1fa0da['set'](_0x809db4,_0x42537d);}}_0x5232ba['model']['change'](_0x361b1a=>{for(const [_0x42201f,_0x6333b2]of _0x1fa0da)_0x361b1a['setAttributes']({...we,..._0x6333b2},_0x42201f);});});const _0xc27ead=(_0x309e7e,_0x398568)=>{_0x3a14c2['_suggestionFactory']['registerCustomCallback'](_0x309e7e,'tablePaste',_0x398568,(_0x4e3934,_0x12f198,_0x304ca8)=>{_0x5232ba['model']['change'](_0x45f0ac=>{const _0x3729ac=[];for(const _0x583bad of _0x4e3934){const _0xf53ebd=_0x583bad['start']['nodeAfter'];_0xf53ebd['is']('element','tableCellSuggestion')&&_0x3729ac['push'](_0xf53ebd);}_0x3a14c2['_suggestionFactory']['getSuggestionCallback'](_0x309e7e,null,_0x398568)(_0x4e3934,_0x12f198,_0x304ca8);for(const _0x490718 of _0x3729ac)'$graveyard'!=_0x490718['root']['rootName']&&_0x45f0ac['unwrap'](_0x490718);});});};_0xc27ead('insertion','accept'),_0xc27ead('insertion','discard'),_0xc27ead('deletion','accept'),_0xc27ead('deletion','discard'),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43cf76=>{const _0xc31350=_0x43cf76['map'](_0x16c709=>_0x16c709['getContainedElement']()),_0x4f7eae=_0xc31350[0x0]['findAncestor']('table'),{minRow:_0x245778,maxRow:_0x2507b8}=_0x540472['_getCoordsForCells'](_0xc31350);_0x56fb22['removeRows'](_0x4f7eae,{'at':_0x245778,'rows':_0x2507b8-_0x245778+0x1});}),_0x3a14c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41163=>{const _0x35855d=_0x41163['map'](_0x380bb4=>_0x380bb4['getContainedElement']()),_0x516a9b=_0x35855d[0x0]['findAncestor']('table'),{minColumn:_0x399d1f,maxColumn:_0x1a9678}=_0x540472['_getCoordsForCells'](_0x35855d);_0x56fb22['removeColumns'](_0x516a9b,{'at':_0x399d1f,'columns':_0x1a9678-_0x399d1f+0x1});});const _0x5c8456=(_0xb18ec4,_0x155511)=>{if(!_0x155511['subType']||!_0x155511['subType']['startsWith']('tablePaste'))return;const _0x2207fe=_0x155511['attributes']['tablePasteChainId'],_0xf8083e=_0x3a14c2['getSuggestions']()['filter'](_0x31bc47=>_0x31bc47['isInContent']&&_0x31bc47['attributes']&&_0x31bc47['attributes']['tablePasteChainId']==_0x2207fe);_0xf8083e['length']&&_0x155511['getAllAdjacentSuggestions']()['length']!=_0xf8083e['length']&&_0xf8083e['reduce']((_0x4b6eec,_0x4f3d79)=>(_0x4b6eec['next']=_0x4f3d79,_0x4f3d79['previous']=_0x4b6eec,_0x4f3d79));};function _0x1e82d3(_0xdc8e4e,_0x14b97c=!0x0){const {id:_0x29f82b,authorId:_0x2c5634}=_0x3a14c2['_splitMarkerName'](_0xdc8e4e['markerName']),_0xd888ab=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x59d372=_0x3a14c2['activeMarkers']['includes'](_0xdc8e4e['markerName']);return _0x59d372&&_0xd888ab['push']('ck-suggestion-marker--active'),{'classes':_0xd888ab,'attributes':{'data-suggestion':_0x29f82b,'data-author-id':_0x2c5634},'priority':_0x59d372&&_0x14b97c?0xbc2:0xbb8};}_0x3a14c2['on']('suggestionLoaded',_0x5c8456,{'priority':'high'}),_0x3a14c2['on']('suggestionUnloaded',_0x5c8456,{'priority':'high'}),_0x5232ba['model']['document']['registerPostFixer'](()=>{let _0x1fbef5=!0x1;const _0x5f20bb=Array['from'](_0x5232ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37a9bf,data:_0x59f838}of _0x5f20bb){const {group:_0xe3f8,type:_0x3b9301,id:_0x106fe5}=_0x3a14c2['_splitMarkerName'](_0x37a9bf);if('suggestion'!=_0xe3f8||'deletion'!=_0x3b9301||_0x59f838['oldRange'])continue;if(!_0x3a14c2['hasSuggestion'](_0x106fe5))continue;const _0x2c5a0e=_0x3a14c2['getSuggestion'](_0x106fe5)['getRanges'](),_0x436d74=_0x5232ba['plugins']['get']('Users')['me'];for(const _0x4ec880 of _0x3a14c2['getSuggestions']()){if(!_0x4ec880['isInContent']||_0x4ec880['author']!=_0x436d74)continue;if('formatBlock'!=_0x4ec880['type']||'tablePasteCell'!=_0x4ec880['subType'])continue;if(_0x4ec880['getRanges']()['every'](_0x5be8d0=>_0x2c5a0e['some'](_0x2cc8e4=>_0x2cc8e4['containsRange'](_0x5be8d0,!0x0)))){for(const _0x42144b of _0x4ec880['getAllAdjacentSuggestions']())_0x42144b['isInContent']&&(_0x42144b['discard'](),_0x1fbef5=!0x0);}}}return _0x1fbef5;}),_0x5232ba['model']['document']['registerPostFixer'](_0x2033ec=>{const _0x19666c=_0x5232ba['commands']['get']('redo');if(!_0x19666c||!_0x19666c['_createdBatches']['has'](_0x2033ec['batch']))return!0x1;let _0x1f42c9=!0x1;const _0x49ea1d=_0x5232ba['plugins']['get']('Users')['me'],_0x2c8ec9=_0x5232ba['model']['document']['differ']['getChanges'](),_0x10c05a=Array['from'](_0x5232ba['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x247d7c,data:_0x14a6f2})=>{const {group:_0x3e34fa,subType:_0x1206cf,authorId:_0x580ea5}=_0x3a14c2['_splitMarkerName'](_0x247d7c);return'suggestion'==_0x3e34fa&&'tablePaste'==_0x1206cf&&_0x580ea5==_0x49ea1d['id']&&!_0x14a6f2['oldRange'];});for(const _0x1ce267 of _0x2c8ec9){if('insert'!=_0x1ce267['type']||'tableCellSuggestion'!=_0x1ce267['name']||0x1!=_0x1ce267['length'])continue;const _0x7fd468=_0x2033ec['createRange'](_0x1ce267['position'],_0x1ce267['position']['getShiftedBy'](0x1));if(!_0x10c05a['find'](({data:_0x1e13ac})=>_0x1e13ac['newRange']['isEqual'](_0x7fd468))){for(const {name:_0x1e03ca,data:_0x45e620}of _0x10c05a)if(_0x7fd468['containsRange'](_0x45e620['newRange'])){_0x2033ec['updateMarker'](_0x1e03ca,{'range':_0x7fd468}),_0x1f42c9=!0x0;break;}}}return _0x1f42c9;}),_0x5232ba['model']['document']['registerPostFixer'](_0x126204=>{let _0x59b849=!0x1;const _0x50f678=_0x5232ba['plugins']['get']('Users')['me'],_0x25d5c3=_0x3a14c2['getSuggestions']()['filter'](_0x4c2e03=>_0x4c2e03['isInContent']&&_0x4c2e03['author']==_0x50f678),_0x2530a1=new Set(),_0x2f7e23=new Set();for(const _0xe053f6 of _0x25d5c3)if('tablePaste'==_0xe053f6['subType'])for(const _0x508bc7 of _0xe053f6['getMarkers']()){const _0x3c52b9=_0x508bc7['getRange']()['getContainedElement']();if(_0x3c52b9){if(_0x3c52b9['is']('element','tableCellSuggestion')&&ke(_0x3c52b9)){_0xe053f6['removeMarker'](_0x508bc7['name']),_0x2530a1['add'](_0x3c52b9),_0x59b849=!0x0;const _0x262935=_0x3c52b9['nextSibling'],_0x2cfc25=_0x3c52b9['previousSibling'],_0x4c127e=_0x262935&&_0x262935['is']('element','tableCellSuggestion'),_0x1f9f37=_0x2cfc25&&_0x2cfc25['is']('element','tableCellSuggestion');_0x4c127e&&!_0x2530a1['has'](_0x262935)&&_0x2f7e23['add'](_0x262935),_0x1f9f37&&!_0x2530a1['has'](_0x2cfc25)&&_0x2f7e23['add'](_0x2cfc25);}else _0x3c52b9['is']('element','paragraph')&&_0x3c52b9['isEmpty']&&(_0xe053f6['removeMarker'](_0x508bc7['name']),_0x59b849=!0x0);}}else{if('tablePasteCell'==_0xe053f6['subType']){if(!_0xe053f6['attributes']||!_0xe053f6['attributes']['tablePasteChainId'])continue;const _0x1f328b=_0xe053f6['attributes']['markerAttributes'];if(_0x1f328b&&Object['keys'](_0x1f328b)['length'])continue;const _0x216633=_0xe053f6['attributes']['tablePasteChainId'];let _0x3e018f=!0x0,_0x37cef8=!0x0;for(const _0x564027 of _0x25d5c3)if(_0x564027['subType']&&_0x564027['subType']['startsWith']('tablePaste')){if(!_0x564027['attributes']['tablePasteChainId']){_0x37cef8=!0x1;break;}if(_0x564027['id']!=_0xe053f6['id']&&_0x564027['attributes']['tablePasteChainId']==_0x216633){_0x3e018f=!0x1;break;}}_0x37cef8&&_0x3e018f&&(_0xe053f6['removeMarkers'](),_0x59b849=!0x0);}}for(const _0x371cbb of _0x2530a1)_0x126204['remove'](_0x371cbb);for(const _0x103f5b of _0x2f7e23)_0x126204['unwrap'](_0x103f5b);return _0x59b849;}),_0x5232ba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a73c7=>_0x1e82d3(_0x5a73c7),'converterPriority':'high'}),_0x5232ba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb1514e,_0x489cd0)=>_0x489cd0['options']['showSuggestionHighlights']?_0x1e82d3(_0xb1514e,!0x1):null,'converterPriority':'high'});const _0x37011f=_0x5232ba['editing']['view'];this['listenTo'](_0x37011f['document'],'clipboardOutput',(_0x234059,_0x4446d2)=>{const _0x3f2a6f=[];for(const _0x39e600 of _0x37011f['createRangeIn'](_0x4446d2['content'])['getItems']())_0x39e600['is']('element','suggestion-td')&&_0x3f2a6f['push'](_0x39e600);_0x37011f['change'](_0x3729cc=>{for(const _0x341ae8 of _0x3f2a6f)_0x3729cc['move'](_0x3729cc['createRangeIn'](_0x341ae8),_0x3729cc['createPositionBefore'](_0x341ae8)),_0x3729cc['remove'](_0x341ae8);});});}}function ke(_0x2f30b3){if(_0x2f30b3['isEmpty'])return!0x0;const _0x3a2324=_0x2f30b3['getChild'](0x0);return _0x3a2324['is']('element','paragraph')&&_0x3a2324['isEmpty'];}function Re(_0x355682,_0x23d102={},_0x1eca49){for(const {isAnchor:_0x256aa6,cellHeight:_0x2e4046,cellWidth:_0x31a47e}of _0x1eca49['createTableWalker'](_0x355682,{'includeAllSlots':!0x0,..._0x23d102}))if(!_0x256aa6||0x1!=_0x2e4046||0x1!=_0x31a47e)return!0x1;return!0x0;}class Nt extends _0x1d1013{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bd181=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bd181['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bd181['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bd181['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bd181['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bd181['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bd181['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d9462,_0x132a14){const _0x59794e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50e8c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1b81f2=_0x132a14['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x6c31f9=_0x50e8c3['getColumnGroupElement'](_0x1b81f2);let _0x50f0d7=_0x6c31f9?_0x50e8c3['getTableColumnsWidths'](_0x6c31f9):null,_0x24a366=_0x1b81f2['getAttribute']('tableWidth')||null;const _0x159f73=_0x132a14['tableWidth']||_0x24a366,_0x57b7e9=_0x132a14['columnWidths']||_0x50f0d7,_0x417e05=this['editor']['plugins']['get']('Users')['me'];for(const _0x407786 of _0x59794e['getSuggestions']()){const _0x323ce6=_0x407786['getContainedElement']();if('resizeTable'===_0x407786['subType']&&_0x323ce6===_0x1b81f2){_0x407786['author']!==_0x417e05&&_0x407786['discard']();const _0x29187a=_0x407786['data']['commandParams'];_0x24a366=_0x29187a[0x0]['tableWidth'],_0x50f0d7=_0x29187a[0x0]['columnWidths'];break;}}_0x5d9462({'table':_0x1b81f2,'tableWidth':_0x159f73,'columnWidths':_0x57b7e9}),_0x59794e['markBlockFormat'](_0x1b81f2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x24a366,'columnWidths':_0x50f0d7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4db897){if('formatBlock'!=_0x4db897['type']&&'formatInline'!=_0x4db897['type'])return;const {data:_0x2cf6c1}=_0x4db897;if(_0x2cf6c1&&'resizeTable'===_0x2cf6c1['formatGroupId']){const _0x2cb7fd='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2cb7fd)};}}}class Dt extends _0x1d1013{['afterInit'](){const _0x1d0551=this['editor'];_0x1d0551['plugins']['has']('Template')&&_0x1d0551['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1d1013{['afterInit'](){const _0x5888a0=this['editor'];if(!_0x5888a0['commands']['get']('insertTableOfContents'))return;_0x5888a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x487529=_0x5888a0['plugins']['get']('TrackChangesEditing'),_0x4e161a=_0x5888a0['locale'];_0x487529['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12ace7=>o(_0x4e161a,'ELEMENT_TABLE_OF_CONTENTS',_0x12ace7));}}class $t extends _0x1d1013{['afterInit'](){const _0x543c6f=this['editor'];if(!_0x543c6f['plugins']['has']('Title'))return;const _0x56d2d2=_0x543c6f['plugins']['get']('TrackChangesEditing');_0x56d2d2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x543c6f['locale'],'ELEMENT_TITLE')),_0x543c6f['model']['document']['registerPostFixer'](_0x1ca9f4=>{let _0x25c6ff=!0x1;const _0x3de510=Array['from'](_0x543c6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b0aa6,data:_0x5065e5}of _0x3de510){const {group:_0x1e7fa6}=_0x56d2d2['_splitMarkerName'](_0x5b0aa6);if('suggestion'!==_0x1e7fa6||!_0x5065e5['newRange'])continue;const _0x43c978=_0x5065e5['newRange'],_0x47114f=_0x43c978['end']['nodeBefore'];if(!_0x47114f||!_0x47114f['is']('element','title-content'))continue;if(!_0x43c978['start']['isTouching'](_0x43c978['end']))continue;const _0x5ae225=_0x543c6f['model']['schema']['getNearestSelectionRange'](_0x43c978['end'],'forward');if(_0x5ae225&&_0x5ae225['isCollapsed']){const _0x30aa03=_0x1ca9f4['createRange'](_0x43c978['start'],_0x5ae225['start']);_0x30aa03['isEqual'](_0x43c978)||(_0x1ca9f4['updateMarker'](_0x5b0aa6,{'range':_0x30aa03}),_0x25c6ff=!0x0);}_0x25c6ff||(_0x1ca9f4['removeMarker'](_0x5b0aa6),_0x25c6ff=!0x0);}return _0x25c6ff;});}}class Bt extends _0x1d1013{['afterInit'](){const _0x5ae2a4=this['editor'],_0x385971=_0x5ae2a4['plugins']['get']('TrackChangesEditing');_0x5ae2a4['plugins']['has']('UndoEditing')&&(_0x385971['enableCommand']('undo'),_0x385971['enableCommand']('redo'));}}class xt extends _0x1d1013{static get['requires'](){return[It];}['afterInit'](){const _0x130582=this['editor'];if(!_0x130582['plugins']['has']('TableCaptionEditing'))return;_0x130582['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x1d1013{['tableProperties'];['tableCellProperties'];constructor(_0x18fd53){super(_0x18fd53),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x48c9c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x59da28 of this['tableProperties'])_0x48c9c0['enableCommand'](_0x59da28,(_0x498716,_0x12403d)=>{const _0x135bd5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x59da28,[_0x135bd5],this['tableProperties'],'tableProperties',_0x498716,_0x12403d);});_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x33c12c,_0x1c1124)=>this['handleDiscardAction'](this['tableProperties'],_0x33c12c,_0x1c1124)),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56e25a of this['tableCellProperties'])_0x48c9c0['enableCommand'](_0x56e25a,(_0x1480c7,_0x48561e)=>{const _0x3e2f61=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56e25a,_0x3e2f61,this['tableCellProperties'],'tableCellProperties',_0x1480c7,_0x48561e);});_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f75eb,_0x180567)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f75eb,_0x180567)),_0x48c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x48c9c0['descriptionFactory']['registerDescriptionCallback'](_0x2950e5=>this['handleSuggestionDescription'](_0x2950e5));}['_handlePropertyChange'](_0x3bb29f,_0x16efb7,_0x4f3aac,_0x2449de,_0x459071,_0x2fc073){const _0x5756f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2fc073['batch'],()=>{for(const _0x5d80b3 of _0x16efb7){if(this['_getSuggestion'](_0x5d80b3,_0x2449de))_0x459071(_0x2fc073);else{const _0xaf4bf5={};for(const _0x29586e of _0x4f3aac){const _0x5a887d=_0x5d80b3['getAttribute'](_0x29586e);void 0x0!==_0x5a887d&&(_0xaf4bf5[_0x29586e]=_0x5a887d);}_0x459071(_0x2fc073),_0x5756f0['markBlockFormat'](_0x5d80b3,{'commandParams':[_0xaf4bf5]},[],_0x2449de);}}});}['handleDiscardAction'](_0xe7d188,_0x2f9c5b,_0x5eb87e){const _0x4e4cde=_0x2f9c5b[0x0]['start']['nodeAfter'],_0x269fe7=_0x5eb87e['commandParams'][0x0];this['editor']['model']['change'](_0x54bb9a=>{for(const _0x14bf95 of _0xe7d188)void 0x0!==_0x269fe7[_0x14bf95]?_0x54bb9a['setAttribute'](_0x14bf95,_0x269fe7[_0x14bf95],_0x4e4cde):_0x54bb9a['removeAttribute'](_0x14bf95,_0x4e4cde);});}['handleSuggestionDescription'](_0x369557){if(_0x369557['data'])switch(_0x369557['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'](_0x3f09d8,_0x44e279){const _0x13651f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10030d of _0x13651f['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f00b5=_0x10030d['getContainedElement']();if(_0x10030d['subType']===_0x44e279&&_0x3f00b5===_0x3f09d8)return _0x10030d;}return null;}}const m='$elementName';class p extends _0x1d1013{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ad360,_0x2b6a22,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56ad67){function _0x10b104(_0x1052c9){return _0x1052c9['map'](_0x295a3a=>String['fromCharCode'](_0x295a3a))['join']('');}super(_0x56ad67),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b4db2,_0x2d6238,_0x471b0c,_0x22f99e)=>{this['_model']['change'](()=>{for(const _0x21dd51 of[..._0x22f99e,..._0x471b0c])this['_model']['markers']['has'](_0x21dd51)&&_0x56ad67['editing']['reconvertMarker'](_0x21dd51);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x56ad67['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(),_0x56ad67['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56ad67['config']['get']('trackChanges.trackFormatChanges'),_0x56ad67['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56ad67['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x56ad67,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x10b104([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10b104([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x5132b8=this['editor'],_0x2032df=(_0x44873a,_0x593508)=>{if('attribute'!=_0x44873a)return'ck-suggestion-marker-'+_0x44873a;const _0x544fc3=_0x593508['split']('|')[0x0];return this['_isBlockAttribute'](_0x544fc3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5132b8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x51677a=>{const {id:_0x9df36f,authorId:_0x51583d,type:_0x19baae,subType:_0x5ca736}=this['_splitMarkerName'](_0x51677a['markerName']),_0x5644ab=['ck-suggestion-marker',_0x2032df(_0x19baae,_0x5ca736)];let _0x53d73c=0xbb8;return this['activeMarkers']['includes'](_0x51677a['markerName'])&&(_0x5644ab['push']('ck-suggestion-marker--active'),_0x53d73c=0xbc2),'deletion'==_0x19baae&&(_0x53d73c+=0x5),{'classes':_0x5644ab,'attributes':{'data-suggestion':_0x9df36f,'data-author-id':_0x51583d},'priority':_0x53d73c};}}),_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x35f77a=>{_0x35f77a['on']('addMarker:suggestion',(_0x4b6ffc,_0x3bd53e,_0x78805c)=>{if(!_0x78805c['options']['showSuggestionHighlights'])return;const _0x5e46a6=_0x3bd53e['item'];if(!_0x5e46a6)return;const _0x11a7fd=_0x78805c['mapper']['toViewElement'](_0x5e46a6);_0x5132b8['model']['schema']['isObject'](_0x5e46a6)&&_0x11a7fd&&!_0x11a7fd['getCustomProperty']('widget')&&_0x11a7fd['is']('containerElement')&&_0x323006(_0x11a7fd,_0x78805c['writer']);},{'priority':'high'});}),_0x5132b8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5054d7,_0x71a7f5)=>{if(!_0x71a7f5['options']['showSuggestionHighlights'])return null;const {type:_0x195b7e,subType:_0x4356de}=this['_splitMarkerName'](_0x5054d7['markerName']);return{'classes':['ck-suggestion-marker',_0x2032df(_0x195b7e,_0x4356de)],'priority':0xbb8};}});const _0xd9cfbe=({showActiveMarkers:_0x1b291a=!0x0,isAttributeSuggestion:_0x5f022b=!0x1}={})=>(_0x1c7c59,_0x4b371c,_0x29dcde)=>{if(!_0x4b371c['item'])return;const {id:_0x4c6819,authorId:_0x564ab0}=this['_splitMarkerName'](_0x4b371c['markerName']);if(_0x5f022b){const _0x593dd4=this['_suggestions']['get'](_0x4c6819),_0x57ddf9=this['_getAttributeKey'](_0x593dd4);if(!this['_isBlockAttribute'](_0x57ddf9))return;}if(_0x4b371c['item']['is']('selection'))return void _0x29dcde['consumable']['consume'](_0x4b371c['item'],_0x1c7c59['name']);const _0x2a26a8=_0x29dcde['mapper']['toViewElement'](_0x4b371c['item']);if(_0x4b371c['item']['is']('element')&&_0x5132b8['model']['schema']['isBlock'](_0x4b371c['item'])&&!_0x2a26a8['getCustomProperty']('addHighlight')){_0x29dcde['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2a26a8),_0x29dcde['writer']['setAttribute']('data-suggestion',_0x4c6819,_0x2a26a8),_0x29dcde['writer']['setAttribute']('data-author-id',_0x564ab0,_0x2a26a8),_0x29dcde['mapper']['bindElementToMarker'](_0x2a26a8,_0x4b371c['markerName']),_0x1b291a&&(this['activeMarkers']['includes'](_0x4b371c['markerName'])?_0x29dcde['writer']['addClass']('ck-suggestion-marker--active',_0x2a26a8):_0x29dcde['writer']['removeClass']('ck-suggestion-marker--active',_0x2a26a8));for(const _0x466247 of _0x5132b8['model']['createRangeIn'](_0x4b371c['item'])['getItems']())_0x29dcde['consumable']['consume'](_0x466247,_0x1c7c59['name']);_0x29dcde['consumable']['consume'](_0x4b371c['item'],_0x1c7c59['name']);}};_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x77dda=>{_0x77dda['on']('addMarker:suggestion:formatBlock',(_0x846edb,_0x459b09,_0x5225d5)=>{_0x5225d5['options']['showSuggestionHighlights']&&_0xd9cfbe({'showActiveMarkers':!0x1})(_0x846edb,_0x459b09,_0x5225d5);},{'priority':'highest'});}),_0x5132b8['conversion']['for']('dataDowncast')['add'](_0x414770=>{_0x414770['on']('addMarker:suggestion:attribute',(_0x2e8e20,_0xf7061b,_0x527bd0)=>{_0x527bd0['options']['showSuggestionHighlights']&&_0xd9cfbe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e8e20,_0xf7061b,_0x527bd0);},{'priority':'highest'});}),_0x5132b8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x56cde6,_0x3fb0d1)=>_0x3fb0d1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x56cde6['substr'](0xb)}}),_0x5132b8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1f618e,{writer:_0x170894})=>{let _0x39c5b1='suggestion:'+_0x1f618e['getAttribute']('suggestion-type')+':'+_0x1f618e['getAttribute']('id');return _0x1f618e['getAttribute']('marker-count')&&(_0x39c5b1+=':'+_0x1f618e['getAttribute']('marker-count')),_0x170894['createElement']('$marker',{'data-name':_0x39c5b1});}}),_0x5132b8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x5a139b=>{_0x5a139b['on']('addMarker:suggestion:formatBlock',_0xd9cfbe(),{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x21b805=>{_0x21b805['on']('addMarker:suggestion:attribute',_0xd9cfbe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x93cc1b=>{_0x93cc1b['on']('removeMarker:suggestion:formatBlock',(_0x271a0c,_0x1e0567,_0x283a80)=>{const _0x4a7b47=_0x283a80['mapper']['markerNameToElements'](_0x1e0567['markerName']);if(_0x4a7b47){for(const _0x1b86e7 of _0x4a7b47)_0x1b86e7['getCustomProperty']('addHighlight')||(_0x283a80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b86e7),_0x283a80['writer']['removeAttribute']('data-suggestion',_0x1b86e7),_0x283a80['writer']['removeAttribute']('data-author-id',_0x1b86e7),_0x283a80['mapper']['unbindElementFromMarkerName'](_0x1b86e7,_0x1e0567['markerName']));}},{'priority':'high'});}),_0x5132b8['conversion']['for']('editingDowncast')['add'](_0x568f73=>{_0x568f73['on']('removeMarker:suggestion:attribute',(_0x30bbfd,_0xe97497,_0x2d6f40)=>{const _0x57ac44=_0x2d6f40['mapper']['markerNameToElements'](_0xe97497['markerName']);if(!_0x57ac44)return;const {id:_0x54a489}=this['_splitMarkerName'](_0xe97497['markerName']),_0x4f8596=this['_suggestions']['get'](_0x54a489),_0x5e9046=this['_getAttributeKey'](_0x4f8596);if(this['_isBlockAttribute'](_0x5e9046)){for(const _0x26ab31 of _0x57ac44)_0x26ab31['getCustomProperty']('addHighlight')||(_0x2d6f40['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26ab31),_0x2d6f40['writer']['removeAttribute']('data-suggestion',_0x26ab31),_0x2d6f40['writer']['removeAttribute']('data-author-id',_0x26ab31),_0x2d6f40['mapper']['unbindElementFromMarkerName'](_0x26ab31,_0xe97497['markerName']));}},{'priority':'high'});}),_0x5132b8['model']['document']['registerPostFixer'](_0xf333a2=>{let _0x2982b7=!0x1;const _0x2f5617=Array['from'](_0x5132b8['model']['document']['differ']['getChangedMarkers']()),_0x240fe4=new Set();for(const {name:_0x2e3364,data:_0x53589c}of _0x2f5617){const {group:_0xdb182c,type:_0x3c7717,subType:_0xb80f32,id:_0x5f4444}=this['_splitMarkerName'](_0x2e3364);if('suggestion'!==_0xdb182c)continue;const _0x4b0e2a=this['_suggestions']['get'](_0x5f4444);if(null!=_0x53589c['newRange']){'formatInline'==_0x3c7717&&(_0x2982b7=_0x2982b7||Ut(_0x53589c['newRange'],_0x2e3364,_0xf333a2,_0x5132b8['model']['schema']));const _0x24dddf='attribute'==_0x3c7717&&this['_isBlockAttribute'](_0xb80f32['split']('|')[0x0]);if(_0x53589c['newRange']['isCollapsed']||'$graveyard'==_0x53589c['newRange']['root']['rootName']||'formatBlock'==_0x3c7717&&!Gt(_0x53589c['newRange'])||_0x24dddf&&!Gt(_0x53589c['newRange'])||'deletion'==_0x3c7717&&!(!Vt(_0x22c1f4=_0x53589c['newRange'])&&!function(_0x240e4c){return _0x240e4c['start']['parent']==_0x240e4c['end']['nodeBefore']&&_0x240e4c['start']['isAtEnd'];}(_0x22c1f4)))_0xf333a2['removeMarker'](_0x2e3364),_0x2982b7=!0x0;else{if(!_0x4b0e2a||!_0x4b0e2a['isInContent'])continue;if(_0x53589c['newRange']&&_0x53589c['oldRange']&&_0x53589c['newRange']['isEqual'](_0x53589c['oldRange']))continue;_0x240fe4['add'](_0x4b0e2a);}}}var _0x22c1f4;return _0x240fe4['size']>0x0&&(_0x2982b7=!!this['_joinWithAdjacentSuggestions'](_0x240fe4)||_0x2982b7),_0x2982b7;}),_0x5132b8['model']['document']['registerPostFixer'](_0x1c8e55=>{let _0x135118=!0x1;for(const _0x2742d8 of _0x5132b8['model']['document']['differ']['getChanges']())if('insert'==_0x2742d8['type'])for(const _0x3a5606 of this['_suggestions']['values']()){if(_0x3a5606['isMultiRange']||!_0x3a5606['isInContent'])continue;const _0x3f195d='formatBlock'==_0x3a5606['type'],_0x378a62=this['_getAttributeKey'](_0x3a5606),_0xc19173=_0x378a62&&this['_isBlockAttribute'](_0x378a62);if(!_0x3f195d&&!_0xc19173)continue;const _0x55edfe=_0x3a5606['getFirstRange']();if(_0x55edfe['start']['parent']!=_0x55edfe['end']['parent']&&!_0x55edfe['end']['isAtEnd']){const _0x548ddb=_0x5132b8['model']['createPositionAt'](_0x55edfe['start']['nodeAfter'],'end'),_0x304bb7=_0x5132b8['model']['createRange'](_0x55edfe['start'],_0x548ddb);_0x1c8e55['updateMarker'](_0x3a5606['getFirstMarker'](),{'range':_0x304bb7}),_0x135118=!0x0;}}return _0x135118;}),_0x5132b8['model']['document']['registerPostFixer'](_0x42ed7c=>this['_processAttributeChanges'](_0x42ed7c)),_0x5132b8['model']['document']['registerPostFixer'](_0x210aaf=>!_0x210aaf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x210aaf)),_0x5132b8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5132b8['model']['document']['on']('change:data',(_0x575409,_0x114054)=>{if(!_0x114054['isLocal']||_0x114054['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x14548e=_0x5132b8['model']['document']['differ']['getChanges']();if(0x0==_0x14548e['length'])return;const _0x4774bf=[],_0x48f25b=_0x14548e['filter'](_0x18157b=>'attribute'==_0x18157b['type']),_0x3fee4d=_0x14548e['filter'](_0x999cfd=>'insert'==_0x999cfd['type']&&'$text'!=_0x999cfd['name']);for(const _0x34196a of _0x48f25b)this['_isRegisteredAttribute'](_0x34196a['attributeKey'])&&_0x4774bf['push']({'key':_0x34196a['attributeKey'],'newValue':_0x34196a['attributeNewValue'],'oldValue':_0x34196a['attributeOldValue'],'range':Ft(_0x34196a['range'],_0x5132b8['model'])});for(const _0x531c23 of _0x3fee4d){if('rename'!=_0x531c23['action']&&'refresh'!=_0x531c23['action'])continue;const _0x45072c=Lt(_0x531c23['position']['nodeAfter'],_0x5132b8['model']),_0x34dac5=_0x531c23['before'];'rename'==_0x531c23['action']&&_0x4774bf['push']({'key':m,'newValue':_0x531c23['name'],'oldValue':_0x34dac5['name'],'range':_0x45072c});for(const [_0x5eed17,_0x5dee0f]of _0x34dac5['attributes']){if(!this['_isRegisteredAttribute'](_0x5eed17))continue;const _0x67167c=_0x531c23['attributes']['get'](_0x5eed17);_0x5dee0f!==_0x67167c&&_0x4774bf['push']({'key':_0x5eed17,'newValue':_0x67167c,'oldValue':_0x5dee0f,'range':_0x45072c});}for(const [_0x57be4f,_0x2116cd]of _0x531c23['attributes'])this['_isRegisteredAttribute'](_0x57be4f)&&(_0x34dac5['attributes']['has'](_0x57be4f)||_0x4774bf['push']({'key':_0x57be4f,'newValue':_0x2116cd,'oldValue':null,'range':_0x45072c}));}0x0!=_0x4774bf['length']&&_0x5132b8['model']['enqueueChange'](_0x114054,_0x240811=>{const _0x400a99=_0x338779();for(const {range:_0x3f8e63,key:_0x5521c4,oldValue:_0x546ff9,newValue:_0x99a43e}of _0x4774bf)this['markAttributeChange'](_0x3f8e63,_0x5521c4,_0x546ff9,_0x99a43e,{'groupId':_0x400a99});this['_reduceExistingSuggestions'](_0x240811,_0x4774bf);});},{'priority':'lowest'}),_0x5132b8['model']['markers']['on']('update:suggestion',(_0x3c4034,_0x2063a6,_0x4f471)=>{if(null==_0x4f471){const {id:_0x387d18}=this['_splitMarkerName'](_0x2063a6['name']),_0x51a364=this['_suggestions']['get'](_0x387d18);_0x51a364&&_0x51a364['addMarkerName'](_0x2063a6['name']);}}),_0x5132b8['model']['document']['on']('change:data',()=>{const _0x393887=Array['from'](_0x5132b8['model']['document']['differ']['getChangedMarkers']())['filter'](_0xa24fe7=>'suggestion'===this['_splitMarkerName'](_0xa24fe7['name'])['group']);if(0x0===_0x393887['length'])return;_0x393887['sort']((_0x2c1fcc,_0x3c84e2)=>{const _0x54c76a=_0x2c1fcc['data']['oldRange'],_0x5734df=_0x3c84e2['data']['oldRange'];return null===_0x54c76a&&null===_0x5734df?0x0:null===_0x54c76a&&null!==_0x5734df?-0x1:null!==_0x54c76a&&null===_0x5734df?0x1:_0x54c76a['start']['isBefore'](_0x5734df['start'])?-0x1:0x1;});const _0x10559e=new Set(),_0x628636=new Set();for(const {name:_0x1c38cb,data:_0x4e5cea}of _0x393887){const {id:_0xcccdb4}=this['_splitMarkerName'](_0x1c38cb);if(null===_0x4e5cea['oldRange']){const _0x4dc8d6=this['_handleNewSuggestionMarker'](_0x1c38cb);_0x628636['add'](_0x4dc8d6);}else{const _0xb34ff=this['_suggestions']['get'](_0xcccdb4);null!==_0x4e5cea['newRange']||_0xb34ff['isInContent']?(_0x10559e['add'](_0xb34ff['head']),_0x628636['add'](_0xb34ff)):this['_removeSuggestion'](_0xb34ff);}}_0x628636['size']>0x0&&this['_refreshSuggestionsChain'](_0x628636);for(const _0x3ebaa3 of _0x10559e)this['fire']('suggestionChanged',_0x3ebaa3);}),_0x5132b8['model']['on']('applyOperation',(_0x4756bf,_0x3fd93a)=>{const _0x26d635=_0x3fd93a[0x0];if(!this['_suggestions']['size'])return;if(!_0x26d635['isDocumentOperation'])return;if(_0x26d635['batch']['isUndo']||!_0x26d635['batch']['isLocal'])return;let _0x66494c,_0x4b484b;switch(_0x26d635['type']){case'insert':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['position']),_0x4b484b=_0x66494c['getShiftedBy'](_0x26d635['howMany']);break;case'split':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['splitPosition']),_0x4b484b=_0x5132b8['model']['createPositionAt'](_0x26d635['moveTargetPosition']);break;case'move':_0x66494c=_0x5132b8['model']['createPositionAt'](_0x26d635['targetPosition']),_0x4b484b=_0x66494c['getShiftedBy'](_0x26d635['howMany']);break;default:return;}const _0x33ca03=_0x5132b8['model']['createRange'](_0x66494c,_0x4b484b);_0x5132b8['model']['change'](()=>{for(const {suggestion:_0x4efd1f,meta:_0x2a27bc}of this['_findSuggestions'](_0x33ca03)){if(_0x4efd1f['isMultiRange'])continue;if('formatInline'==_0x4efd1f['type'])continue;const _0x38f905=this['_getAttributeKey'](_0x4efd1f);if(_0x38f905&&this['_isBlockAttribute'](_0x38f905)&&'split'!=_0x26d635['type'])continue;const _0x3984ff=_0x4efd1f['data']&&_0x4efd1f['data']['multipleBlocks'];('formatBlock'!=_0x4efd1f['type']||'split'==_0x26d635['type']&&!_0x3984ff)&&(_0x2a27bc['containsRangeInObject']||'insertion'==_0x4efd1f['type']&&_0x2a27bc['isOwn']||_0x4efd1f['getFirstRange']()['containsRange'](_0x33ca03)&&this['_breakSuggestionMarker'](_0x4efd1f,_0x66494c,_0x4b484b));}});},{'priority':'lowest'}),_0x5132b8['model']['on']('deleteContent',(_0x53cedb,_0x5a9c86)=>{const _0x168841=_0x5a9c86[0x0],_0x143cd7=_0x5a9c86[0x1];if(_0x143cd7&&_0x143cd7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x168841['isCollapsed'])return;const _0x25145c=_0x5132b8['model']['schema'],{start:_0xe8a200,end:_0x172a4f}=_0x168841['getFirstRange'](),_0x8bd2a4=_0xe8a200['nodeAfter']&&_0x25145c['isLimit'](_0xe8a200['nodeAfter'])?null:_0x25145c['getNearestSelectionRange'](_0xe8a200,'forward'),_0x347e8a=_0x172a4f['nodeBefore']&&_0x25145c['isLimit'](_0x172a4f['nodeBefore'])?null:_0x25145c['getNearestSelectionRange'](_0x172a4f,'backward'),_0x7bb708=_0x5132b8['model']['createRange'](_0x8bd2a4?_0x8bd2a4['start']:_0xe8a200,_0x347e8a?_0x347e8a['end']:_0x172a4f);_0x5132b8['model']['change'](_0x1b5fba=>{this['markDeletion'](_0x7bb708);const _0x814816=_0x5132b8['model']['schema']['getNearestSelectionRange'](_0x7bb708['start']);_0x168841['is']('documentSelection')?_0x1b5fba['setSelection'](_0x814816):_0x168841['setTo'](_0x814816);}),_0x53cedb['stop']();},{'priority':_0x563ef4['normal']+0xa}),_0x5132b8['model']['on']('insertContent',(_0x29d6f9,_0x443c3c)=>{const _0x2569c5=_0x443c3c[_0x443c3c['length']-0x1];_0x2569c5&&_0x2569c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5132b8['model']['change'](()=>{let _0x528f72=_0x5132b8['model']['insertContent'](_0x443c3c[0x0],_0x443c3c[0x1],_0x443c3c[0x2],{'forceDefaultExecution':!0x0});if(!_0x528f72)return;_0x29d6f9['return']=_0x528f72['clone']();const _0x882b10=_0x528f72['end']['nodeBefore'],_0x3b58bd=_0x5132b8['model']['schema'];_0x882b10&&_0x3b58bd['isBlock'](_0x882b10)&&!_0x3b58bd['isObject'](_0x882b10)&&(_0x528f72=_0x5132b8['model']['createRange'](_0x528f72['start'],_0x5132b8['model']['createPositionAt'](_0x882b10,'end'))),this['markInsertion'](_0x528f72);}),_0x29d6f9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x412a24=new x(_0x5132b8,this['_suggestions']);_0x5132b8['commands']['add']('acceptSuggestion',_0x412a24),this['enableCommand']('acceptSuggestion');const _0x498192=new O(_0x5132b8,this['_suggestions']);_0x5132b8['commands']['add']('discardSuggestion',_0x498192),this['enableCommand']('discardSuggestion'),_0x5132b8['commands']['add']('acceptAllSuggestions',new R(_0x5132b8,_0x412a24,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5132b8['commands']['add']('discardAllSuggestions',new R(_0x5132b8,_0x498192,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5132b8['commands']['add']('acceptSelectedSuggestions',new E(_0x5132b8,_0x412a24,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5132b8['commands']['add']('discardSelectedSuggestions',new E(_0x5132b8,_0x498192,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2e2420=_0x5132b8['plugins']['get']('CommentsRepository');this['listenTo'](_0x2e2420,'addComment',(_0x19016f,{threadId:_0x549678})=>{const _0x4803c3=this['_suggestions']['get'](_0x549678);_0x4803c3&&_0x4803c3['commentThread']&&0x1===_0x4803c3['commentThread']['length']&&this['_updateSuggestionData'](_0x549678,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2e2420,'removeComment',(_0x3a588e,{threadId:_0x4811c5})=>{const _0x2f8b2c=this['_suggestions']['get'](_0x4811c5);_0x2f8b2c&&_0x2f8b2c['commentThread']&&!_0x2f8b2c['commentThread']['length']&&this['_updateSuggestionData'](_0x4811c5,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c503e){if(this['_adapter'])throw new _0xc9e6ca('track-changes-adapter-already-set',this);this['_adapter']=_0x4c503e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1f1d54=!0x1,toJSON:_0x34692c=!0x1}={}){const _0x3fcbdb=[];for(const _0x1b281a of this['_suggestions']['values']())_0x1f1d54&&!_0x1b281a['isInContent']||_0x3fcbdb['push'](_0x1b281a);return _0x34692c?_0x3fcbdb['map'](_0x6cb173=>_0x6cb173['toJSON']()):_0x3fcbdb;}['getSuggestion'](_0x94234d){const _0x3655fa=this['_suggestions']['get'](_0x94234d);if(!_0x3655fa)throw new _0xc9e6ca('track-changes-suggestion-not-found',this);return _0x3655fa;}['hasSuggestion'](_0x31064a){return this['_suggestions']['has'](_0x31064a);}['addSuggestionData'](_0x14784b){const {authorId:_0x5e7f07,id:_0x498bf6,attributes:_0xfbaaa0}=_0x14784b,[_0x130304,_0x1732c9]=_0x14784b['type']['split'](':'),_0x52ca67=this['_suggestions']['get'](_0x498bf6)||this['_createSuggestion'](_0x130304,_0x1732c9,_0x498bf6,_0x5e7f07,_0xfbaaa0);if(this['_addThreadToSuggestion'](_0x52ca67),this['_checkSuggestionCorrectness'](_0x52ca67,_0x130304,_0x1732c9||null,_0x5e7f07),_0x52ca67['createdAt']=_0x14784b['createdAt'],_0x52ca67['_isDataLoaded']=!0x0,_0xfbaaa0&&_0xfbaaa0['@external']){const _0x1fb27e=_0xfbaaa0['@external'],_0x568b84=this['_getExternalAuthor'](_0x1fb27e['authorName']);_0x52ca67['authoredAt']=_0x1fb27e['createdAt'],_0x52ca67['author']=_0x568b84,_0x52ca67['isExternal']=!0x0;}else _0x52ca67['authoredAt']=_0x14784b['createdAt'];switch(_0x14784b['data']&&(_0x52ca67['data']=_0x14784b['data']),_0x14784b['attributes']&&(_0x52ca67['attributes']=_0x14784b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x52ca67['_saved']=!0x0),this['_suggestionState']['get'](_0x52ca67)){case'notReady':this['_suggestionState']['set'](_0x52ca67,'dataReady');break;case'markerReady':_0x52ca67['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x52ca67])),this['_refreshSuggestionsChain'](new Set([_0x52ca67])),this['_suggestionState']['set'](_0x52ca67,'ready'),this['fire']('suggestionLoaded',_0x52ca67)):this['_suggestionState']['set'](_0x52ca67,'removed');}return _0x52ca67;}['acceptSuggestion'](_0xf75428){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x193e13 of _0xf75428['getAllAdjacentSuggestions']())_0x193e13['accept']();});});}['discardSuggestion'](_0x35f655){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3cd87f of _0x35f655['getAllAdjacentSuggestions']())_0x3cd87f['discard']();});});}['enableCommand'](_0x3069f1,_0x30980e){const _0x4a5f18=this['editor']['commands']['get'](_0x3069f1);if(!_0x4a5f18)throw new _0xc9e6ca('track-changes-command-not-found',this,{'commandName':_0x3069f1});if(this['_enabledCommands']['has'](_0x4a5f18))throw new _0xc9e6ca('track-changes-enable-command-twice',this,{'commandName':_0x3069f1});this['_enabledCommands']['add'](_0x4a5f18),_0x30980e&&_0x4a5f18['on']('execute',(_0x74c05e,_0x2d852b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d852b['length']>0x0&&_0x2d852b[_0x2d852b['length']-0x1]&&_0x2d852b[_0x2d852b['length']-0x1]['forceDefaultExecution']?_0x2d852b['pop']():(_0x74c05e['return']=_0x30980e((..._0x347405)=>_0x4a5f18['execute'](..._0x347405,{'forceDefaultExecution':!0x0}),..._0x2d852b),_0x74c05e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1d31e2){let _0x5e68c9,_0x1ef6bd;const _0x2fc069=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e68c9=_0x1d31e2();}catch(_0xff73ee){_0x1ef6bd=_0xff73ee;}return _0x2fc069||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ef6bd&&_0xc9e6ca['rethrowUnexpectedError'](_0x1ef6bd,this),_0x5e68c9;}['markInsertion'](_0x33a5d4,_0x385c24=null,_0x4c3324={}){if(_0x33a5d4['isCollapsed'])return null;const _0x6cd472=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2b0ce2,meta:_0x480ddc}of this['_findSuggestions'](_0x33a5d4,'insertion'))if(_0x480ddc['isOwn']){if(!_0x480ddc['isNextTo']){if(_0x480ddc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x2b0ce2,_0x4c3324))continue;return _0x2b0ce2;}if(qt(_0x2b0ce2,_0x4c3324))return _0x2b0ce2;this['_breakSuggestionMarker'](_0x2b0ce2,_0x33a5d4['start'],_0x33a5d4['end']);break;}if(_0x385c24==_0x2b0ce2['subType']&&qt(_0x2b0ce2,_0x4c3324)){const _0x131581=_0x2b0ce2['getFirstRange']();return _0x131581['start']['isEqual'](_0x33a5d4['end'])?this['_setSuggestionRange'](_0x2b0ce2,this['_model']['createRange'](_0x33a5d4['start'],_0x131581['end'])):this['_setSuggestionRange'](_0x2b0ce2,this['_model']['createRange'](_0x131581['start'],_0x33a5d4['end'])),_0x2b0ce2;}}const _0xff077=_0x338779(),_0x554755=_0x6cd472['id'],_0x210b35=_0x385c24?'insertion:'+_0x385c24:'insertion',_0x53048c=this['_setSuggestionData']({'id':_0xff077,'type':_0x210b35,'createdAt':new Date(),'authorId':_0x554755,'attributes':_0x4c3324});return this['_addSuggestionMarker'](_0x210b35,_0xff077,_0x554755,_0x33a5d4),_0x53048c;}['markMultiRangeInsertion'](_0x27e1a2,_0x5dd876='multi',_0x393415={}){const _0x2680ac=this['editor']['plugins']['get']('Users')['me'],_0x5bd71e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5dd876,'join');for(const _0x4d2530 of this['getSuggestions']())if(_0x4d2530['author']['id']==_0x2680ac['id']&&'insertion'==_0x4d2530['type']&&_0x4d2530['subType']==_0x5dd876&&qt(_0x4d2530,_0x393415)&&(_0x5bd71e(_0x4d2530['getRanges'](),_0x27e1a2)||_0x5bd71e(_0x27e1a2,_0x4d2530['getRanges']()))){for(const _0x29cf85 of _0x27e1a2)_0x4d2530['addRange'](_0x29cf85);return _0x4d2530;}for(const {suggestion:_0x3274cf,meta:_0x4b0374}of this['_findSuggestions'](_0x27e1a2,'insertion')){if(!_0x4b0374['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b0374['containsRangeInObject'])continue;if(!qt(_0x3274cf,_0x393415))continue;let _0x3c9fb2=!0x0;for(const _0x2851ea of _0x3274cf['getRanges']())for(const _0x55938c of _0x27e1a2)if(!_0x2851ea['containsRange'](_0x55938c)){_0x3c9fb2=!0x1;break;}if(_0x3c9fb2)return _0x3274cf;}const _0xa39976=_0x338779(),_0x5e7308=_0x2680ac['id'],_0x4cc965='insertion:'+_0x5dd876,_0x286cf7=this['_setSuggestionData']({'id':_0xa39976,'type':_0x4cc965,'createdAt':new Date(),'authorId':_0x5e7308,'attributes':_0x393415});for(const _0x212c36 of _0x27e1a2)this['_addSuggestionMarker'](_0x4cc965,_0xa39976,_0x5e7308,_0x212c36,u['getMultiRangeId']());return _0x286cf7;}['markInlineFormat'](_0x3f5fad,_0x7daa06,_0x5b4929=null,_0x3f822b={}){if(_0x5b4929=_0x5b4929||Pt(_0x7daa06),_0x3f5fad['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x226fbe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4929,'accept');return this['forceDefaultExecution'](()=>_0x226fbe([_0x3f5fad],_0x7daa06,_0x3f822b)),null;}const _0x498c41=this['editor']['plugins']['get']('Users')['me'],_0x5cf34c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2977e3,meta:_0x411e1d}of this['_findSuggestions'](_0x3f5fad,'insertion'))_0x411e1d['isOwn']&&!_0x411e1d['isInsideObject']&&_0x5cf34c['push'](..._0x2977e3['getRanges']());}const _0xa250d=function(_0x519371,_0x105ed8){const _0x4dd5ef=[];for(const _0x168567 of _0x105ed8){const _0x971e65=_0x519371['getIntersection'](_0x168567);_0x971e65&&_0x4dd5ef['push'](_0x971e65);}return _0x4dd5ef;}(_0x3f5fad,_0x5cf34c),_0x4cd6a3=function(_0x2845b2,_0x36551c){const _0x592f94=[_0x2845b2];for(const _0x4a0bc4 of _0x36551c){let _0x2af770=0x0;for(;_0x2af770<_0x592f94['length'];){const _0x217cf8=_0x592f94[_0x2af770]['getDifference'](_0x4a0bc4);_0x592f94['splice'](_0x2af770,0x1,..._0x217cf8),_0x2af770+=_0x217cf8['length'];}}return _0x592f94;}(_0x3f5fad,_0x5cf34c);_0xa250d['length']&&this['_model']['change'](()=>{for(const _0x5cdc64 of _0xa250d){const _0x53693b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4929,'accept');this['forceDefaultExecution'](()=>_0x53693b([_0x5cdc64],_0x7daa06,_0x3f822b));}});for(const _0x1258df of _0x4cd6a3){let _0x2a04e8=null,_0x124ea9=_0x1258df['start'],_0x4f51b2=_0x1258df['end'];for(const {suggestion:_0x1a47ec,meta:_0x3e29bc}of this['_findSuggestions'](_0x1258df,'formatInline')){if(!_0x3e29bc['isOwn'])continue;if(_0x1a47ec['subType']!=_0x5b4929)continue;if(!qt(_0x1a47ec,_0x3f822b))continue;const _0xf3b476=_0x1a47ec['getFirstRange']();if(_0xf3b476['containsRange'](_0x1258df,!0x0))return null;_0x124ea9=_0x124ea9['isBefore'](_0xf3b476['start'])?_0x124ea9:_0xf3b476['start'],_0x4f51b2=_0x4f51b2['isAfter'](_0xf3b476['end'])?_0x4f51b2:_0xf3b476['end'],_0x2a04e8?_0xf3b476['start']['isBefore'](_0x2a04e8['getFirstRange']()['start'])?(_0x2a04e8['removeMarkers'](),_0x2a04e8=_0x1a47ec):_0x1a47ec['removeMarkers']():_0x2a04e8=_0x1a47ec;}const _0x41fa78=this['_model']['createRange'](_0x124ea9,_0x4f51b2);if(_0x2a04e8)this['_setSuggestionRange'](_0x2a04e8,_0x41fa78);else{const _0x3acc28=_0x338779(),_0x42849c=_0x498c41['id'];this['_setSuggestionData']({'id':_0x3acc28,'type':'formatInline:'+_0x5b4929,'data':_0x7daa06,'createdAt':new Date(),'authorId':_0x42849c,'attributes':_0x3f822b}),this['_addSuggestionMarker']('formatInline:'+_0x5b4929,_0x3acc28,_0x42849c,_0x41fa78);}}return null;}['markBlockFormat'](_0x127760,_0x2fad63,_0x471645=[],_0x2fd167=null,_0xf32501={}){_0x2fad63['formatGroupId']||(_0x2fad63['formatGroupId']=_0x2fad63['commandName']),_0x2fad63['multipleBlocks']=_0x127760['is']('range'),_0x2fd167=_0x2fd167||Pt(_0x2fad63);const _0x3b6930=_0x471645['map'](_0x156622=>Lt(_0x156622,this['_model'])),_0x2e5735=_0x127760['is']('range')?_0x127760:Lt(_0x127760,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4052e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd167,'accept');return this['forceDefaultExecution'](()=>_0x4052e2([_0x2e5735],_0x2fad63,_0xf32501)),null;}_0x3b6930['push'](_0x2e5735);let _0x2f9877=!0x0;for(const _0x592e85 of _0x3b6930)if(!this['_rangeIsInLocalUserInsertion'](_0x592e85)){_0x2f9877=!0x1;break;}if(_0x2f9877&&'always'!==this['_trackFormatChanges']){const _0x258308=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd167,'accept');return this['forceDefaultExecution'](()=>_0x258308([_0x2e5735],_0x2fad63,_0xf32501)),null;}let _0x34c41d=null,_0x10fea7=_0x2e5735['start'],_0x1a8aed=_0x2e5735['end'];for(const {suggestion:_0x10d223,meta:_0x77010}of this['_findSuggestions'](_0x2e5735,'formatBlock')){if(!_0x77010['isOwn'])continue;if(_0x77010['isNextTo']||_0x77010['containsRangeInObject']||_0x77010['isInsideObject'])continue;if(_0x10d223['data']['formatGroupId']!=_0x2fad63['formatGroupId'])continue;if(!qt(_0x10d223,_0xf32501))continue;const _0x46c42b=_0x10d223['getFirstRange']();if(_0x10d223['subType']==_0x2fd167){if(_0x46c42b['containsRange'](_0x2e5735,!0x0))return null;_0x10fea7=_0x10fea7['isBefore'](_0x46c42b['start'])?_0x10fea7:_0x46c42b['start'],_0x1a8aed=_0x1a8aed['isAfter'](_0x46c42b['end'])?_0x1a8aed:_0x46c42b['end'],_0x34c41d?_0x46c42b['start']['isBefore'](_0x34c41d['getFirstRange']()['start'])?(_0x34c41d['removeMarkers'](),_0x34c41d=_0x10d223):_0x10d223['removeMarkers']():_0x34c41d=_0x10d223;}else{const _0x26e72a=_0x2e5735['getIntersection'](_0x46c42b);this['_cutOutSuggestionMarker'](_0x10d223,_0x26e72a);}}const _0x4c6c4d=this['editor']['plugins']['get']('Users')['me'],_0x1a6cdf=_0x338779(),_0x310301=_0x4c6c4d['id'];if(_0x34c41d)return this['_setSuggestionRange'](_0x34c41d,this['_model']['createRange'](_0x10fea7,_0x1a8aed)),_0x34c41d;{const _0x177f1d=this['_setSuggestionData']({'id':_0x1a6cdf,'type':'formatBlock:'+_0x2fd167,'data':_0x2fad63,'createdAt':new Date(),'authorId':_0x310301,'attributes':_0xf32501});return this['_addSuggestionMarker']('formatBlock:'+_0x2fd167,_0x1a6cdf,_0x310301,this['_model']['createRange'](_0x10fea7,_0x1a8aed)),_0x177f1d;}}['markMultiRangeBlockFormat'](_0x4315f1,_0x306099,_0x2220c5=[],_0x53d1d2=null,_0x34048a={}){_0x306099['formatGroupId']||(_0x306099['formatGroupId']=_0x306099['commandName']);const _0x41bf6b=_0x4315f1[0x0];_0x306099['multipleBlocks']=_0x41bf6b['is']('range'),_0x53d1d2=_0x53d1d2||Pt(_0x306099);const _0x309068=_0x2220c5['map'](_0x507073=>Lt(_0x507073,this['_model'])),_0x1a6e13=_0x41bf6b['is']('range')?_0x4315f1:_0x4315f1['map'](_0x5c945c=>Lt(_0x5c945c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x485a61=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'accept');return this['forceDefaultExecution'](()=>_0x485a61(_0x1a6e13,_0x306099,_0x34048a)),null;}_0x309068['push'](..._0x1a6e13);let _0x4be4fa=!0x0;for(const _0x476d1c of _0x309068)if(!this['_rangeIsInLocalUserInsertion'](_0x476d1c)){_0x4be4fa=!0x1;break;}if(_0x4be4fa&&'always'!==this['_trackFormatChanges']){const _0x36adb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'accept');return this['forceDefaultExecution'](()=>_0x36adb6(_0x1a6e13,_0x306099,_0x34048a)),null;}const _0x4d7de4=this['editor']['plugins']['get']('Users')['me'];for(const _0x582380 of this['getSuggestions']()){if(_0x582380['author']['id']!=_0x4d7de4['id'])continue;if('formatBlock'!=_0x582380['type']||_0x582380['data']['formatGroupId']!=_0x306099['formatGroupId'])continue;if(!qt(_0x582380,_0x34048a))continue;const _0x5a8e25=_0x582380['subType']==_0x53d1d2;for(let _0x157629=0x0;_0x157629<_0x1a6e13['length'];_0x157629++){const _0x4b3978=_0x1a6e13[_0x157629];for(const _0x3b69ad of _0x582380['getMarkers']()){const _0x44836b=_0x3b69ad['getRange']();if(_0x4b3978['isEqual'](_0x44836b)){_0x5a8e25?(_0x1a6e13['splice'](_0x157629,0x1),_0x157629--):_0x582380['removeMarker'](_0x3b69ad['name']);break;}}}}if(0x0==_0x1a6e13['length'])return null;const _0x3dff05=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53d1d2,'join');for(const _0x562975 of this['getSuggestions']())if(_0x562975['author']['id']==_0x4d7de4['id']&&'formatBlock'==_0x562975['type']&&_0x562975['data']['formatGroupId']==_0x306099['formatGroupId']&&_0x562975['subType']==_0x53d1d2&&qt(_0x562975,_0x34048a)&&(_0x3dff05(_0x562975['getRanges'](),_0x1a6e13)||_0x3dff05(_0x1a6e13,_0x562975['getRanges']()))){for(const _0x15d728 of _0x1a6e13)_0x562975['addRange'](_0x15d728);return _0x562975;}const _0x5d20e3=_0x338779(),_0x5e67b5=_0x4d7de4['id'],_0x422637='formatBlock:'+_0x53d1d2,_0x3a0d96=this['_setSuggestionData']({'id':_0x5d20e3,'type':_0x422637,'data':_0x306099,'createdAt':new Date(),'authorId':_0x5e67b5,'attributes':_0x34048a});for(const _0x40dedb of _0x1a6e13)this['_addSuggestionMarker'](_0x422637,_0x5d20e3,_0x5e67b5,_0x40dedb,u['getMultiRangeId']());return _0x3a0d96;}['markDeletion'](_0x1aa354,_0x42bd63=null,_0x59e136={}){if(_0x1aa354['isCollapsed'])return null;const _0x56e3c6=this['editor']['plugins']['get']('Users')['me'],_0x296ecd=new _0x4f83f9(_0x1aa354['start'],_0x1aa354['end']);for(const {suggestion:_0x472407,meta:_0x30d151}of this['_findSuggestions'](_0x296ecd,'insertion'))if(_0x30d151['isOwn']&&!_0x30d151['isNextTo']){if(_0x472407['isMultiRange']){const _0x2c04c5=_0x472407['getRanges']()['filter'](_0x34306b=>'$graveyard'!=_0x34306b['root']['rootName']);_0x2c04c5['every'](_0x1ad4b9=>_0x296ecd['containsRange'](_0x1ad4b9,!0x0))&&_0x472407['discard']();if(_0x2c04c5['some'](_0x5c9ed4=>_0x5c9ed4['containsRange'](_0x296ecd,!0x0))){const _0x297f77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42bd63,'accept');return this['forceDefaultExecution'](()=>_0x297f77([_0x296ecd],null,_0x59e136)),null;}}else{const _0xa3bdce=_0x296ecd['getIntersection'](_0x472407['getFirstRange']());null!==_0xa3bdce&&_0x472407['_onDiscard']([_0xa3bdce],null,_0x59e136);}}if(_0x296ecd['detach'](),_0x296ecd['isCollapsed']||'$graveyard'==_0x296ecd['root']['rootName'])return null;let _0x1793f6=null,_0x469be9=_0x296ecd['start'],_0x4b896c=_0x296ecd['end'];const _0x3ecf2d=this['_findSuggestions'](_0x296ecd,'deletion');for(const {suggestion:_0x518411,meta:_0x36aec9}of _0x3ecf2d){const _0x168e24=this['_model']['createRange'](_0x469be9,_0x4b896c);if(_0x36aec9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36aec9['containsRangeInObject']&&!_0x36aec9['isInsideObject'])){if(_0x518411['isMultiRange']){if(!qt(_0x518411,_0x59e136))continue;let _0x3fe3cc=!0x0;for(const _0x586f1d of _0x518411['getRanges']()){if(_0x586f1d['containsRange'](_0x168e24,!0x0))return _0x518411;_0x168e24['containsRange'](_0x586f1d)||(_0x3fe3cc=!0x1);}_0x3fe3cc&&_0x518411['discard']();}else{const _0x374db9=_0x518411['getFirstRange']();if(_0x374db9['containsRange'](_0x168e24,!0x0))return _0x518411;if(!qt(_0x518411,_0x59e136)){_0x168e24['containsRange'](_0x374db9)?_0x518411['removeMarkers']():_0x374db9['containsPosition'](_0x469be9)?_0x469be9=_0x374db9['end']:_0x374db9['containsPosition'](_0x4b896c)&&(_0x4b896c=_0x374db9['start']);continue;}_0x469be9=_0x469be9['isBefore'](_0x374db9['start'])?_0x469be9:_0x374db9['start'],_0x4b896c=_0x4b896c['isAfter'](_0x374db9['end'])?_0x4b896c:_0x374db9['end'],_0x59e136=Object['assign']({},_0x518411['attributes']),_0x1793f6?_0x374db9['start']['isBefore'](_0x1793f6['getFirstRange']()['start'])?(_0x1793f6['removeMarkers'](),_0x1793f6=_0x518411):_0x518411['removeMarkers']():_0x1793f6=_0x518411;}}}if(_0x1793f6)return this['_setSuggestionRange'](_0x1793f6,this['_model']['createRange'](_0x469be9,_0x4b896c)),_0x1793f6;{const _0x5a5031=_0x338779(),_0x4667e6=this['_model']['createRange'](_0x469be9,_0x4b896c),_0x416c71=_0x56e3c6['id'],_0x1ca89e=_0x42bd63?'deletion:'+_0x42bd63:'deletion',_0xfb4f70=this['_setSuggestionData']({'id':_0x5a5031,'type':_0x1ca89e,'createdAt':new Date(),'authorId':_0x416c71,'attributes':_0x59e136});return this['_addSuggestionMarker'](_0x1ca89e,_0x5a5031,_0x416c71,_0x4667e6),_0xfb4f70;}}['markMultiRangeDeletion'](_0x1fb8e0,_0x1b2018='multi',_0x23807e={}){const _0x122a44=this['editor']['plugins']['get']('Users')['me'],_0x3edb52=_0x1fb8e0['map'](_0x3df333=>new _0x4f83f9(_0x3df333['start'],_0x3df333['end'])),_0x5efdb6=new Set();for(const {suggestion:_0x366c75,meta:_0x338239}of this['_findSuggestions'](_0x3edb52,'insertion'))_0x338239['isOwn']&&!_0x338239['isNextTo']&&_0x5efdb6['add'](_0x366c75);for(const _0x49eecf of _0x5efdb6)if(_0x49eecf['isMultiRange']){const _0x2eee29=_0x49eecf['getRanges']();(!_0x49eecf['attributes']||!_0x49eecf['attributes']['skipNestingCheck'])&&(_0x2eee29['every'](_0x365a11=>_0x3edb52['some'](_0x2b5218=>_0x2b5218['containsRange'](_0x365a11,!0x0)))&&_0x49eecf['discard']());if(_0x3edb52['every'](_0x173777=>_0x2eee29['some'](_0x2cec30=>_0x2cec30['containsRange'](_0x173777,!0x0)))){const _0x305cc3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'accept');return this['forceDefaultExecution'](()=>_0x305cc3(_0x1fb8e0,null,_0x23807e)),null;}}else{const _0x112ae9=_0x49eecf['getFirstRange']();_0x3edb52['some'](_0x493d76=>_0x493d76['containsRange'](_0x112ae9,!0x0))&&_0x49eecf['discard']();if(_0x3edb52['every'](_0x534718=>_0x112ae9['containsRange'](_0x534718,!0x0))){const _0x949b24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'accept');return this['forceDefaultExecution'](()=>_0x949b24(_0x3edb52,null,_0x23807e)),null;}}const _0x5cd486=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b2018,'join');let _0xebad9a=null;for(const _0x486a95 of this['getSuggestions']())if(_0x486a95['author']['id']==_0x122a44['id']&&_0x486a95['isInContent']&&'deletion'==_0x486a95['type']&&_0x486a95['subType']==_0x1b2018&&qt(_0x486a95,_0x23807e)&&(_0x5cd486(_0x486a95['getRanges'](),_0x3edb52)||_0x5cd486(_0x3edb52,_0x486a95['getRanges']()))){if(_0xebad9a){if(_0x486a95['commentThread']&&_0x486a95['commentThread']['length'])continue;for(const _0x3fb09d of _0x486a95['getRanges']())_0xebad9a['isIntersectingWithRange'](_0x3fb09d)||_0xebad9a['addRange'](_0x3fb09d);_0x486a95['removeMarkers']();}else{_0xebad9a=_0x486a95;for(const _0x3fa1a9 of _0x3edb52)_0x486a95['isIntersectingWithRange'](_0x3fa1a9)||_0x486a95['addRange'](_0x3fa1a9);}}if(_0xebad9a)return _0xebad9a;_0x5efdb6['clear']();for(const {suggestion:_0x425f30,meta:_0x4cae0b}of this['_findSuggestions'](_0x3edb52,'deletion'))_0x4cae0b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cae0b['containsRangeInObject']&&!_0x4cae0b['isInsideObject'])&&qt(_0x425f30,_0x23807e)&&_0x5efdb6['add'](_0x425f30);for(const _0x510b37 of _0x5efdb6){const _0xd7d465=_0x510b37['getRanges']();if(!_0x23807e||!_0x23807e['skipNestingCheck']){if(_0x3edb52['every'](_0x1f5653=>_0xd7d465['some'](_0x2593e0=>_0x2593e0['containsRange'](_0x1f5653,!0x0))))return _0x510b37;}(!_0x510b37['attributes']||!_0x510b37['attributes']['skipNestingCheck'])&&(_0xd7d465['every'](_0x5e8dc1=>_0x3edb52['some'](_0x563634=>_0x563634['containsRange'](_0x5e8dc1,!0x0)))&&_0x510b37['discard']());}const _0x2ec2dc=_0x338779(),_0x353ec0=_0x122a44['id'],_0x26dd1a='deletion:'+_0x1b2018,_0xc44dcb=this['_setSuggestionData']({'id':_0x2ec2dc,'type':_0x26dd1a,'createdAt':new Date(),'authorId':_0x353ec0,'attributes':_0x23807e});for(const _0x31a593 of _0x3edb52)_0x31a593['detach'](),_0x31a593['isCollapsed']||'$graveyard'==_0x31a593['root']['rootName']||this['_addSuggestionMarker'](_0x26dd1a,_0x2ec2dc,_0x353ec0,_0x31a593,u['getMultiRangeId']());return _0xc44dcb;}['markAttributeChange'](_0x39978c,_0x1736e5,_0x5bf8c5,_0x410b00,_0x379b1b){if(_0x39978c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x149b00=this['editor']['plugins']['get']('Users')['me']['id'],_0x364217=Array['from'](this['_suggestions']['values']())['filter'](_0x3acf8c=>'attribute'==_0x3acf8c['type']&&_0x3acf8c['data']['key']==_0x1736e5&&_0x3acf8c['isIntersectingWithRange'](_0x39978c));if('default'===this['_trackFormatChanges']){const _0x333281=this['_findSuggestions'](_0x39978c,'insertion')['filter'](({meta:_0xea523f})=>_0xea523f['isOwn']&&!_0xea523f['isInsideObject']&&!_0xea523f['isNextTo'])['map'](({suggestion:_0x2afea6})=>_0x2afea6);_0x364217['unshift'](..._0x333281);}const _0x23615e=new Map([[_0x39978c,_0x5bf8c5]]);for(const _0x10501c of _0x364217){const _0x30586e='attribute'==_0x10501c['type']?_0x10501c['data']['oldValue']:void 0x0,_0x27c17b=_0x10501c['getFirstRange'](),_0x36da1f=Array['from'](_0x23615e['keys']())['find'](_0xe6d610=>_0xe6d610['isIntersecting'](_0x27c17b));if(!_0x36da1f)continue;const _0x371f95=_0x36da1f['getDifference'](_0x27c17b);this['_isBlockAttribute'](_0x1736e5)&&'insertion'==_0x10501c['type']&&0x0!=_0x371f95['length']||(_0x23615e['delete'](_0x36da1f),_0x371f95['forEach'](_0x1b801e=>{_0x23615e['set'](_0x1b801e,_0x5bf8c5);}),'insertion'!=_0x10501c['type']&&_0x30586e!=_0x410b00&&_0x23615e['set'](_0x36da1f['getIntersection'](_0x27c17b),_0x30586e));}const _0x3d5ea5=[];for(const [_0x499a21,_0x18b662]of _0x23615e){const _0x3016ab=_0x338779(),_0x49dd86={'key':_0x1736e5,'oldValue':_0x18b662,'newValue':_0x410b00};_0x1736e5['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':_0x1736e5});const _0x5b7c83=('attribute:'+(_0x1736e5+'|'+Pt({'newValue':_0x410b00})))['substring'](0x0,0x3c),_0x40c604=this['_setSuggestionData']({'id':_0x3016ab,'type':_0x5b7c83,'data':_0x49dd86,'createdAt':new Date(),'authorId':_0x149b00,'attributes':_0x379b1b});_0x3d5ea5['push'](_0x40c604),this['_addSuggestionMarker'](_0x5b7c83,_0x3016ab,_0x149b00,_0x499a21);}return _0x3d5ea5;}['enableDefaultAttributesIntegration'](_0x276999){this['enableCommand'](_0x276999,(_0x11aee5,..._0x5b7aa1)=>{this['_recordAttributeChanges'](()=>{_0x11aee5(..._0x5b7aa1);});});}['registerBlockAttribute'](_0x295777){this['_blockAttributeKeys']['add'](_0x295777);}['registerInlineAttribute'](_0x316eaa){this['_inlineAttributeKeys']['add'](_0x316eaa);}['_getAttributeKey'](_0x18daa8){return'attribute'==_0x18daa8['type']?_0x18daa8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe2fb26,_0x5050f4){const _0x4fd26b=_0xe2fb26['getFirstMarker']();this['_model']['change'](_0x31e3c3=>{_0x31e3c3['updateMarker'](_0x4fd26b,{'range':_0x5050f4});});}['_addThreadToSuggestion'](_0x3d5093){const _0x59ab22=_0x3d5093['id'],_0x493a36=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59ab22)||this['_commentsRepository']['addCommentThread']({'channelId':_0x493a36,'threadId':_0x59ab22,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x329afe=this['_commentsRepository']['getCommentThread'](_0x59ab22);_0x329afe['unbind']('isRemovable'),_0x329afe['isRemovable']=!0x1,_0x3d5093['commentThread']=_0x329afe;}['_checkSuggestionCorrectness'](_0x252921,_0x21e0e8,_0x448db0,_0x493122){if(_0x252921['type']!=_0x21e0e8||_0x252921['subType']!=_0x448db0||_0x252921['creator']['id']!=_0x493122)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xc9e6ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9738cd,_0x5ecc19){const _0x2534fd=_0x9738cd['getFirstRange']();if(_0x5ecc19['isEqual'](_0x2534fd))_0x9738cd['removeMarkers']();else{if(_0x2534fd['containsRange'](_0x5ecc19)){const _0x432d1e=this['_model']['createPositionAt'](_0x5ecc19['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2534fd['start'],_0x432d1e));const _0x1d01f6=_0x338779(),_0x290cf8=_0x9738cd['creator']['id'],_0x117848=_0x9738cd['type']+':'+_0x9738cd['subType'];this['_setSuggestionData']({'id':_0x1d01f6,'type':_0x117848,'createdAt':new Date(),'authorId':_0x290cf8,'data':_0x9738cd['data'],'attributes':_0x9738cd['attributes']});const _0x205116=this['_model']['createPositionAt'](_0x5ecc19['end']['parent'],'after'),_0x3f6f00=this['_model']['createRange'](_0x205116,_0x2534fd['end']);this['_addSuggestionMarker'](_0x117848,_0x1d01f6,_0x290cf8,_0x3f6f00);}else{if(_0x2534fd['containsPosition'](_0x5ecc19['start'])){const _0xeba469=this['_model']['createPositionAt'](_0x5ecc19['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2534fd['start'],_0xeba469));}else{const _0x2c126f=this['_model']['createPositionAt'](_0x5ecc19['end']['parent'],'after');this['_setSuggestionRange'](_0x9738cd,this['_model']['createRange'](_0x2c126f,_0x2534fd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d4a75){for(const {suggestion:_0x450238,meta:_0x185fc3}of this['_findSuggestions'](_0x5d4a75,'insertion')){if(!_0x185fc3['isOwn'])continue;const _0x3d4554=_0x450238['getRanges']();for(const _0x2e76ba of _0x3d4554)if(!_0x5d4a75['getDifference'](_0x2e76ba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3fc426){const _0x334b33=this['editor']['plugins']['get']('Users')['getUser'](_0x3fc426);if(!_0x334b33)throw new _0xc9e6ca('track-changes-user-not-found',this);return _0x334b33;}['_getExternalAuthor'](_0x429e2e){const _0x38dcb1=this['editor']['plugins']['get']('Users'),_0x3ba137=_0x35240c('external:'+_0x429e2e),_0x19eca1=_0x38dcb1['getUser'](_0x3ba137);return _0x19eca1||_0x38dcb1['addUser']({'id':_0x3ba137,'name':_0x429e2e});}['_createSuggestion'](_0x59bf57,_0x1f30ff,_0x23e2d4,_0x432baa,_0x1d31d5){const _0x329a99=this['_getAuthorFromId'](_0x432baa),_0x516ef3=this['_suggestionFactory']['buildSuggestion'](_0x59bf57,_0x1f30ff,_0x23e2d4,_0x329a99,_0x1d31d5,_0x5aa799=>{this['_updateSuggestionData'](_0x23e2d4,{'attributes':_0x5aa799});const _0x1fefb3=this['getSuggestion'](_0x23e2d4);this['_joinWithAdjacentSuggestions'](new Set([_0x1fefb3])),this['_refreshSuggestionsChain'](new Set([_0x1fefb3]));});return this['listenTo'](_0x516ef3,'accept',()=>{this['_updateSuggestionData'](_0x23e2d4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x516ef3,'discard',()=>{this['_updateSuggestionData'](_0x23e2d4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x23e2d4,_0x516ef3),this['_suggestionState']['set'](_0x516ef3,'notReady'),_0x516ef3;}['_splitMarkerName'](_0x37ba23){const _0x2907d4=_0x37ba23['split'](':');return{'group':_0x2907d4[0x0],'type':_0x2907d4[0x1],'subType':_0x2907d4['length']>=0x5?_0x2907d4[0x2]:null,'id':_0x2907d4['length']<0x5?_0x2907d4[0x2]:_0x2907d4[0x3],'authorId':_0x2907d4['length']<0x5?_0x2907d4[0x3]:_0x2907d4[0x4],'markerCount':0x6==_0x2907d4['length']?_0x2907d4[0x5]:null};}['_breakSuggestionMarker'](_0x15518e,_0x90dbe2,_0x255545){const _0x3aaf83=_0x15518e['getFirstRange'](),_0x378ea7=_0x3aaf83['start'],_0x60d4a5=_0x3aaf83['end'];this['_setSuggestionRange'](_0x15518e,this['_model']['createRange'](_0x378ea7,_0x90dbe2));const _0x524ae3=_0x338779(),_0x375818=_0x15518e['creator']['id'],_0x4e4eef=_0x15518e['type']+(_0x15518e['subType']?':'+_0x15518e['subType']:'');this['_setSuggestionData']({'id':_0x524ae3,'type':_0x4e4eef,'createdAt':new Date(),'authorId':_0x375818,'originalSuggestionId':_0x15518e['id'],'attributes':_0x15518e['attributes'],'data':_0x15518e['data']});const _0x17e521=this['_getAttributeKey'](_0x15518e);('formatBlock'==_0x15518e['type']||_0x17e521&&this['_isBlockAttribute'](_0x17e521))&&(_0x255545=this['_model']['createPositionBefore'](_0x255545['parent'])),this['_addSuggestionMarker'](_0x4e4eef,_0x524ae3,_0x375818,this['_model']['createRange'](_0x255545,_0x60d4a5));}['_findSuggestions'](_0x5da582,_0x5ceb2f=null){const _0x5ab7a8=[],_0xa6c563=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5da582)||(_0x5da582=[_0x5da582]);for(const _0x225b1c of this['getSuggestions']()){if(!_0x225b1c['isInContent'])continue;if(_0x5ceb2f&&_0x225b1c['type']!=_0x5ceb2f)continue;let _0x58a46c=!0x1;for(const _0x317629 of _0x225b1c['getRanges']()){for(const _0x403da3 of _0x5da582){const _0x39e819=_0x403da3['start']['isEqual'](_0x317629['end'])||_0x403da3['end']['isEqual'](_0x317629['start']);if(_0x39e819||_0x403da3['getIntersection'](_0x317629)){const _0x5efb36=_0x403da3['containsRange'](_0x317629)&&Et(this['_model']['schema'],_0x317629['start'],_0x403da3),_0x1df957=_0x317629['containsRange'](_0x403da3)&&Et(this['_model']['schema'],_0x403da3['start'],_0x317629);_0x5ab7a8['push']({'suggestion':_0x225b1c,'meta':{'isOwn':_0xa6c563==_0x225b1c['author'],'isNextTo':_0x39e819,'isInsideObject':_0x5efb36,'containsRangeInObject':_0x1df957}}),_0x58a46c=!0x0;break;}}if(_0x58a46c)break;}}return _0x5ab7a8;}['_addSuggestionMarker'](_0x3c65b0,_0x2ab122,_0x43bfe3,_0x3563a9,_0x50b084){this['_model']['change'](_0xf95685=>{let _0x368048='suggestion:'+_0x3c65b0+':'+_0x2ab122+':'+_0x43bfe3;_0x50b084&&(_0x368048=_0x368048+':'+_0x50b084),_0xf95685['addMarker'](_0x368048,{'range':_0x3563a9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xda8d93){const _0x4af2e2=_0xda8d93['previous'],_0x1b25ea=_0xda8d93['next'];_0xda8d93['previous']=null,_0xda8d93['next']=null,null!=_0x4af2e2&&_0x4af2e2['next']==_0xda8d93&&(_0x4af2e2['next']=_0x1b25ea),null!=_0x1b25ea&&_0x1b25ea['previous']==_0xda8d93&&(_0x1b25ea['previous']=_0x4af2e2),'ready'==this['_suggestionState']['get'](_0xda8d93)&&(this['_suggestionState']['set'](_0xda8d93,'removed'),this['fire']('suggestionUnloaded',_0xda8d93,_0x4af2e2,_0x1b25ea));}['_setSuggestionData'](_0xae9515){const _0x37d35e=_0xae9515['id'],_0x5b3804=this['addSuggestionData'](_0xae9515);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f7ea3=this['editor']['plugins']['get']('PendingActions'),_0x92c7c9=_0x5b3804['hasComments'],_0x104102=_0x5b3804['subType']?_0x5b3804['type']+':'+_0x5b3804['subType']:_0x5b3804['type'],_0xfafd4c=this['editor']['locale'],_0x3d6c67=_0x1f7ea3['add'](o(_0xfafd4c,'PENDING_ACTION_SUGGESTION')),_0x452ca7={'id':_0x37d35e,'type':_0x104102,'hasComments':_0x92c7c9,'data':_0xae9515['data']||null,'originalSuggestionId':_0xae9515['originalSuggestionId']||null,'attributes':_0x5b3804['attributes']};this['_adapter']['addSuggestion'](_0x452ca7)['then'](_0xf2e981=>{_0x5b3804['_saved']=!0x0,_0x1f7ea3['remove'](_0x3d6c67),_0xf2e981&&_0xf2e981['createdAt']&&(this['_suggestions']['get'](_0x37d35e)['createdAt']=_0xf2e981['createdAt']);})['catch'](_0xf463e6=>{throw _0x504e87('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b3804['discard']();}),_0x5b3804['stopListening'](),this['_suggestions']['delete'](_0x5b3804['id']),this['_suggestionState']['delete'](_0x5b3804),_0xf463e6;});}return _0x5b3804;}['_isBlockAttribute'](_0x3e3cc2){return this['_blockAttributeKeys']['has'](_0x3e3cc2);}['_updateSuggestionData'](_0x38e57c,_0x476e5e){const _0xf9c094=this['editor']['plugins']['get']('PendingActions'),_0x30127c=this['getSuggestion'](_0x38e57c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30127c['_saved']){const _0x2e417f=_0xf9c094['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x38e57c,_0x476e5e)['then'](()=>{_0xf9c094['remove'](_0x2e417f);});}else _0x30127c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x38e57c,_0x476e5e);});}}['_getSuggestionData'](_0x59e369){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xc9e6ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59e369);}['_handleNewSuggestionMarker'](_0x51a547){const {id:_0x256218,type:_0x184781,subType:_0x31bdb9,authorId:_0x10bd74}=this['_splitMarkerName'](_0x51a547),_0x30d73c=this['_suggestions']['get'](_0x256218)||this['_createSuggestion'](_0x184781,_0x31bdb9,_0x256218,_0x10bd74,{});switch(this['_checkSuggestionCorrectness'](_0x30d73c,_0x184781,_0x31bdb9,_0x10bd74),this['_suggestionState']['get'](_0x30d73c)){case'notReady':this['_getSuggestionData'](_0x256218)['then'](_0x584fb3=>{let _0x368786=Promise['resolve']();_0x584fb3['hasComments']&&(_0x368786=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x256218})),_0x368786['then'](()=>{this['addSuggestionData'](_0x584fb3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30d73c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x256218,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30d73c,'ready'),this['fire']('suggestionLoaded',_0x30d73c);break;case'ready':this['fire']('suggestionChanged',_0x30d73c);}return _0x30d73c['addMarkerName'](_0x51a547),_0x30d73c;}['_refreshSuggestionsChain'](_0x54cf8a){const _0x240779=Array['from'](_0x54cf8a),_0x5e609d=_0x240779['filter'](_0x934359=>'attribute'==_0x934359['type']);this['_refreshAttributeSuggestionsChain'](_0x5e609d);const _0x5e46f4=_0x240779['filter'](_0x110324=>!_0x110324['isMultiRange']&&'attribute'!=_0x110324['type']),_0x1eaf75=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x240396=>!_0x240396['isMultiRange']&&'attribute'!=_0x240396['type']),_0x1e6afc=_0x1eaf75['filter'](_0x2d9d46=>!_0x54cf8a['has'](_0x2d9d46)),_0x2db68d=new Map(_0x1eaf75['map'](_0x57e534=>[_0x57e534,this['_suggestionFactory']['getSuggestionCallback'](_0x57e534['type'],_0x57e534['subType'],'chain')])),_0x429b0f=new Map(_0x1eaf75['map'](_0x4fbc63=>[_0x4fbc63,_0x4fbc63['getFirstRange']()])),_0x445f1e=new Set(),_0x48dd9f=new Set();for(let _0xba3f2c=0x0;_0xba3f2c<_0x5e46f4['length'];_0xba3f2c++)_0x236980(_0x5e46f4[_0xba3f2c],_0x5e46f4,_0xba3f2c+0x1);for(let _0x12d991=0x0;_0x12d991<_0x5e46f4['length'];_0x12d991++)_0x236980(_0x5e46f4[_0x12d991],_0x1e6afc,0x0);const _0x2e4e80=new Set();for(let _0x2c7be7=0x0;_0x2c7be7<_0x5e46f4['length'];_0x2c7be7++){const _0x2fcfa9=_0x5e46f4[_0x2c7be7];!_0x48dd9f['has'](_0x2fcfa9)&&_0x2fcfa9['previous']&&(_0x2e4e80['add'](_0x2fcfa9['previous']),_0x2fcfa9['previous']['next']===_0x2fcfa9&&(_0x2fcfa9['previous']['next']=null),_0x2fcfa9['previous']=null),!_0x445f1e['has'](_0x2fcfa9)&&_0x2fcfa9['next']&&(_0x2e4e80['add'](_0x2fcfa9['next']),_0x2fcfa9['next']['previous']===_0x2fcfa9&&(_0x2fcfa9['next']['previous']=null),_0x2fcfa9['next']=null);}function _0x236980(_0x2467d3,_0x58ff72,_0x7d9b13){for(let _0xc6c753=_0x7d9b13;_0xc6c753<_0x58ff72['length'];_0xc6c753++){const _0x1bff86=_0x2e3266(_0x2467d3,_0x58ff72[_0xc6c753]);_0x1bff86&&(_0x1bff86[0x0]['next']=_0x1bff86[0x1],_0x1bff86[0x1]['previous']=_0x1bff86[0x0],_0x445f1e['add'](_0x1bff86[0x0]),_0x48dd9f['add'](_0x1bff86[0x1]));}}function _0x2e3266(_0x24acdf,_0x32fc39){if(_0x24acdf['author']['id']!==_0x32fc39['author']['id'])return null;const _0x43b115=_0x2db68d['get'](_0x24acdf)(_0x24acdf,_0x32fc39,_0x429b0f['get'](_0x24acdf),_0x429b0f['get'](_0x32fc39));if(!_0x43b115)return null;return _0x2db68d['get'](_0x32fc39)(_0x24acdf,_0x32fc39,_0x429b0f['get'](_0x24acdf),_0x429b0f['get'](_0x32fc39))?_0x43b115[0x1]['commentThread']&&_0x43b115[0x1]['commentThread']['length']?null:_0x43b115:null;}_0x2e4e80['size']&&this['_refreshSuggestionsChain'](_0x2e4e80);}['_refreshAttributeSuggestionsChain'](_0xba18a7){if(0x0==_0xba18a7['length'])return;const _0x57bb02=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52423f=>'attribute'==_0x52423f['type']&&_0x52423f['_isDataLoaded']),_0x33d645=[],_0x1238a5=new Map();for(const _0x4485dd of _0x57bb02){const _0x49b84b=_0x35240c(_0x4485dd['attributes']);_0x1238a5['has'](_0x49b84b)||(_0x1238a5['set'](_0x49b84b,_0x33d645['length']),_0x33d645['push']([]));const _0x39695a=_0x1238a5['get'](_0x49b84b);_0x33d645[_0x39695a]['push'](_0x4485dd);}!(function(){_0x33d645['sort']((_0x4a865d,_0x3952db)=>{const _0x4e15bb=_0x4a865d[0x0]['createdAt'],_0x4c06dc=_0x3952db[0x0]['createdAt'];return _0x4e15bb==_0x4c06dc?_0x4a865d[0x0]['attributes']['groupId']<_0x3952db[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e15bb<_0x4c06dc?-0x1:0x1;});for(const _0x31a1b3 of _0x33d645)_0x31a1b3['sort']((_0x254d06,_0x456fca)=>_0x254d06['id']<_0x456fca['id']?-0x1:0x1);}());for(let _0x3f948e=0x0;_0x3f948e<_0x33d645['length'];_0x3f948e++){if(0x0==_0x33d645[_0x3f948e]['length'])continue;const _0x16e0d8=[];for(let _0x47a2b3=_0x3f948e+0x1;_0x47a2b3<_0x33d645['length'];_0x47a2b3++)0x0!=_0x33d645[_0x47a2b3]['length']&&_0x3fb9a9(_0x33d645[_0x3f948e],_0x33d645[_0x47a2b3])&&_0x16e0d8['push'](_0x47a2b3);for(const _0x4e4245 of _0x16e0d8)_0x33d645[_0x3f948e]=_0x33d645[_0x3f948e]['concat'](_0x33d645[_0x4e4245]),_0x33d645[_0x4e4245]=[];}for(const _0x4764bc of _0x33d645)for(let _0x18e2a0=0x0;_0x18e2a0<_0x4764bc['length'];_0x18e2a0++){const _0x533605=_0x4764bc[_0x18e2a0+0x1]||null;_0x4764bc[_0x18e2a0]['next']!==_0x533605&&(_0x4764bc[_0x18e2a0]['next']=_0x533605);}for(const _0x309e4c of _0x33d645)for(let _0x16ebb1=0x0;_0x16ebb1<_0x309e4c['length'];_0x16ebb1++){const _0xc76f14=_0x309e4c[_0x16ebb1-0x1]||null;_0x309e4c[_0x16ebb1]['previous']!==_0xc76f14&&(_0x309e4c[_0x16ebb1]['previous']=_0xc76f14);}function _0x3fb9a9(_0x1579c0,_0x3d9bf7){if(_0x1579c0[0x0]['attributes']['groupId']!==_0x3d9bf7[0x0]['attributes']['groupId']&&_0x1579c0[0x0]['author']!==_0x3d9bf7[0x0]['author'])return!0x1;if(!function(_0xb8e25d,_0x3191a0){if(!_0xb8e25d['hasComments']&&!_0x3191a0['hasComments'])return!0x0;if(_0xb8e25d['hasComments']&&_0x3191a0['hasComments'])return!0x1;if(_0xb8e25d['hasComments']&&_0x3191a0['createdAt']<_0xb8e25d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3191a0['hasComments']&&_0xb8e25d['createdAt']<_0x3191a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1579c0[0x0],_0x3d9bf7[0x0]))return!0x1;const _0x54d71d=Rt(_0x1579c0[0x0]['attributes'],'groupId'),_0x1301eb=Rt(_0x3d9bf7[0x0]['attributes'],'groupId');if(!_0x46161a(_0x54d71d,_0x1301eb))return!0x1;return!!_0x1579c0['every'](_0x5a175c=>_0x3d9bf7['some'](_0x11c917=>_0x5a175c['getFirstRange']()['isEqual'](_0x11c917['getFirstRange']())))&&_0x3d9bf7['every'](_0x45bc24=>_0x1579c0['some'](_0x417bed=>_0x45bc24['getFirstRange']()['isEqual'](_0x417bed['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d9171){const _0x475256=Array['from'](_0x5d9171),_0x3b2356=this['getSuggestions']({'skipNotAttached':!0x0}),_0x424607=_0x3b2356['filter'](_0x3fc425=>!_0x5d9171['has'](_0x3fc425)),_0x1df6bd=new Map(_0x475256['map'](_0x301001=>[_0x301001,this['_suggestionFactory']['getSuggestionCallback'](_0x301001['type'],_0x301001['subType'],'join')])),_0x52d1c3=new Map(_0x3b2356['map'](_0x96fa55=>[_0x96fa55,_0x96fa55['getRanges']()]));for(let _0x3447db=0x0;_0x3447db<_0x475256['length'];_0x3447db++){if(_0x452fc8(this,_0x475256[_0x3447db],_0x475256,_0x3447db+0x1))return!0x0;}for(let _0x3149df=0x0;_0x3149df<_0x475256['length'];_0x3149df++){if(_0x452fc8(this,_0x475256[_0x3149df],_0x424607,0x0))return!0x0;}return!0x1;function _0x452fc8(_0x303221,_0x17367e,_0xafdc2e,_0x2ba1f1){for(let _0x55c23a=_0x2ba1f1;_0x55c23a<_0xafdc2e['length'];_0x55c23a++){const _0x119b8f=_0xafdc2e[_0x55c23a];if(_0x119b8f['type']!==_0x17367e['type']||_0x119b8f['author']['id']!==_0x17367e['author']['id']||_0x119b8f['subType']!==_0x17367e['subType'])continue;if(!Jt(_0x17367e,_0x119b8f))continue;if('attribute'==_0x17367e['type']&&_0x17367e['data']['oldValue']!=_0x119b8f['data']['oldValue'])continue;if('attribute'==_0x17367e['type']&&_0x303221['_isBlockAttribute'](_0x17367e['data']['key']))continue;if('formatBlock'==_0x17367e['type']){const _0xf13029=_0x303221['editor']['model'],_0x23b6d6=_0x17367e['getContainedElement']();if(_0x23b6d6&&(_0xf13029['schema']['isObject'](_0x23b6d6)||_0xf13029['schema']['isLimit'](_0x23b6d6)))continue;}const _0x265670=_0x1df6bd['get'](_0x17367e),_0x389535=_0x52d1c3['get'](_0x17367e),_0x35be0c=_0x52d1c3['get'](_0x119b8f),_0x350cdb=_0x17367e['commentThread']&&_0x17367e['commentThread']['length'],_0x329e3d=_0x119b8f['commentThread']&&_0x119b8f['commentThread']['length'];if(!_0x350cdb&&_0x265670(_0x35be0c,_0x389535))return _0x303221['_joinSuggestions'](_0x119b8f,_0x17367e),_0x52d1c3['delete'](_0x17367e),!0x0;if(!_0x329e3d&&_0x265670(_0x389535,_0x35be0c))return _0x303221['_joinSuggestions'](_0x17367e,_0x119b8f),_0x52d1c3['delete'](_0x119b8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2183f5,_0x4fd738){if(_0x2183f5['isMultiRange']){for(const _0x38054d of _0x4fd738['getRanges']())_0x2183f5['addRange'](_0x38054d);}else{const _0x3a0824=_0x4fd738['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2183f5,this['_model']['createRange'](_0x2183f5['getFirstRange']()['start'],_0x3a0824));}_0x4fd738['removeMarkers']();}['_getMarkerAnnouncementText'](_0x256bdf,_0x449e21,_0x3819cc){const _0x47e2c1=_0x256bdf['startsWith']('format')||_0x256bdf['startsWith']('attribute')?'FORMATTING':_0x256bdf['toUpperCase']();return o(this['editor']['locale'],_0x449e21+'_'+_0x47e2c1+'_SUGGESTION_ANNOUNCEMENT',_0x3819cc);}['_initAriaMarkerChangeAnnouncements'](){const _0x24008c=this['editor'];if(!_0x24008c['ui'])return;const {ariaLiveAnnouncer:_0x3a4452}=_0x24008c['ui'];_0x4b4fad(this['_model'],({left:_0x5348a7,entered:_0x1284f9})=>{for(const _0x37b81f of _0x5348a7){const {group:_0x42540a,type:_0x2b03f5}=this['_splitMarkerName'](_0x37b81f['name']);if('suggestion'===_0x42540a){_0x3a4452['announce'](this['_getMarkerAnnouncementText'](_0x2b03f5,'LEAVE'));break;}}for(const _0x2f23c5 of _0x1284f9){const {group:_0x2de94f,type:_0x1ed6ef}=this['_splitMarkerName'](_0x2f23c5['name']);if('suggestion'===_0x2de94f){_0x3a4452['announce'](this['_getMarkerAnnouncementText'](_0x1ed6ef,'ENTER',_0x296b3e(_0x4ca322)));break;}}});}['_processAttributeChanges'](_0x287453){if(this['_recordAttributeSuggestions'])return!0x1;const _0x506708=this['editor'],_0xec338a=_0x506708['model']['document']['differ']['getChanges']();if(0x0==_0xec338a['length'])return!0x1;const _0x522bc8=[],_0x38b5d8=_0xec338a['filter'](_0x360c4a=>'attribute'==_0x360c4a['type']),_0x3790a8=_0xec338a['filter'](_0x1cb230=>'insert'==_0x1cb230['type']&&'$text'!=_0x1cb230['name']),_0x3780b2=_0xec338a['filter'](_0x147119=>'remove'==_0x147119['type']&&'$text'!=_0x147119['name']);for(const _0x17f672 of _0x38b5d8)_0x522bc8['push']({'key':_0x17f672['attributeKey'],'newValue':_0x17f672['attributeNewValue'],'oldValue':_0x17f672['attributeOldValue'],'range':Ft(_0x17f672['range'],_0x506708['model'])});for(const _0x5b6dd4 of _0x3790a8){const _0x25da27=_0x3780b2['find'](_0x89b1ef=>_0x89b1ef['position']['isEqual'](_0x5b6dd4['position']));_0x25da27&&_0x522bc8['push']({'key':m,'newValue':_0x5b6dd4['name'],'oldValue':_0x25da27['name'],'range':_0x506708['model']['createRangeOn'](_0x5b6dd4['position']['nodeAfter'])});}return 0x0!=_0x522bc8['length']&&this['_reduceExistingSuggestions'](_0x287453,_0x522bc8);}['_processAttributeSuggestions'](_0xef8a04){let _0x27f2da=!0x1;const _0x1e2673=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x129753=>_0x129753['data']['newRange']&&_0x129753['name']['startsWith']('suggestion:attribute:'));for(const _0x2b5d9f of _0x1e2673){const {subType:_0x5170cc,id:_0x5993fd}=this['_splitMarkerName'](_0x2b5d9f['name']),_0x1d96a6=_0x5170cc['split']('|')[0x0];for(const _0x29bf65 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x29bf65['id']!=_0x5993fd&&'attribute'==_0x29bf65['type']&&_0x29bf65['data']&&_0x29bf65['data']['key']==_0x1d96a6&&_0x29bf65['getFirstRange']()['isIntersecting'](_0x2b5d9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x29bf65,_0x2b5d9f['data']['newRange'],_0xef8a04),_0x27f2da=!0x0);}return _0x27f2da;}['_recordAttributeChanges'](_0x162b3d){this['_recordAttributeSuggestions']=!0x0,_0x162b3d();}['_isRegisteredAttribute'](_0xc71632){const _0x17974e=this['_isBlockAttribute'](_0xc71632),_0x199b50=this['_inlineAttributeKeys']['has'](_0xc71632);return _0x17974e||_0x199b50;}['_reduceExistingSuggestions'](_0x3ad855,_0x31163c){if(0x0==_0x31163c['length'])return!0x1;let _0x2818e9=!0x1;for(const _0x4bf1cd of _0x31163c){const _0x33bf02=this['_findSuggestions'](_0x4bf1cd['range'],'attribute')['filter'](_0xce3e23=>!_0xce3e23['meta']['isNextTo'])['map'](_0x5ed87e=>_0x5ed87e['suggestion']),_0x3b7f7f=_0x35240c({'newValue':_0x4bf1cd['newValue']});_0x33bf02['filter'](_0x372d86=>{const [_0x141b88,_0xa29ec0]=_0x372d86['subType']['split']('|');return _0x141b88==_0x4bf1cd['key']&&_0xa29ec0!=_0x3b7f7f;})['forEach'](_0x159c4f=>{this['_reduceSuggestionAttributeRange'](_0x159c4f,_0x4bf1cd['range'],_0x3ad855),_0x2818e9=!0x0;});}return _0x2818e9;}['_reduceSuggestionAttributeRange'](_0x46039c,_0x3b90f3,_0x296531){const _0x7550d3=_0x46039c['getFirstRange']()['getDifference'](_0x3b90f3);0x0!==_0x7550d3['length']?0x1!==_0x7550d3['length']?this['_breakSuggestionMarker'](_0x46039c,_0x3b90f3['start'],_0x3b90f3['end']):this['_setSuggestionRange'](_0x46039c,_0x7550d3[0x0]):_0x296531['removeMarker'](_0x46039c['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x241466){this['_editor']=_0x241466,this['_model']=_0x241466['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb7b290,_0x22635f,_0x2b3ab8,_0x48e437,_0x40fdd8,_0x3d3415){return new u(this['_model'],{'type':_0xb7b290,'subType':_0x22635f,'id':_0x2b3ab8,'author':_0x48e437,'creator':_0x48e437,'attributes':_0x40fdd8,'onAttributesChange':_0x3d3415,'onAccept':(..._0x14d137)=>this['getSuggestionCallback'](_0xb7b290,_0x22635f,'accept')(..._0x14d137),'onDiscard':(..._0x559a27)=>this['getSuggestionCallback'](_0xb7b290,_0x22635f,'discard')(..._0x559a27)});}['registerCustomCallback'](_0x4e7c91,_0x3d21ad,_0x3aae09,_0x2295a7){const _0x473b7a=_0x4e7c91+':'+_0x3d21ad+':'+_0x3aae09;this['_customCallbacks']['set'](_0x473b7a,_0x2295a7);}['getSuggestionCallback'](_0x26e8d0,_0x174f55,_0x5dc584){const _0x3a4957=_0x26e8d0+':'+_0x174f55+':'+_0x5dc584;return this['_customCallbacks']['get'](_0x3a4957)||this['_defaultCallbacks']['get'](_0x26e8d0+':'+_0x5dc584);}['_registerDefaultCallbacks'](){const _0x41e909=()=>!0x1,_0x5673ed=_0x1a20c6=>{_0x1a20c6['sort']((_0x11eb06,_0x17b96e)=>_0x11eb06['start']['isBefore'](_0x17b96e['start'])?0x1:-0x1),this['_model']['change'](_0x5862f2=>{for(const _0x81e530 of _0x1a20c6){let _0x406149;_0x406149=_0x81e530['end']['isAtEnd']&&_0x81e530['end']['parent']==_0x81e530['start']['nodeAfter']?_0x5862f2['createSelection'](_0x81e530['start']['nodeAfter'],'on'):_0x5862f2['createSelection'](_0x81e530),this['_model']['deleteContent'](_0x406149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4956a0=(_0x545540,_0x32d2a6)=>{_0x32d2a6&&this['_model']['change'](_0x2b4ff9=>{const {commandName:_0x254be3,commandParams:_0x4f3e04=[]}=_0x32d2a6,_0x4548b5=_0x545540['map'](_0x2e3545=>(Vt(_0x2e3545)&&(_0x2e3545=this['_model']['createRange'](_0x2e3545['end'])),_0x2e3545))['filter'](_0xb2bc12=>'$graveyard'!==_0xb2bc12['root']['rootName']);if(_0x4548b5['length']<0x1)return;const _0x38b544=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49de3e=>_0x4f83f9['fromRange'](_0x49de3e));_0x2b4ff9['setSelection'](_0x4548b5);for(const _0x3910dc of this['_editor']['commands']['commands']())_0x3910dc['refresh']();_0x4f3e04['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x254be3,..._0x4f3e04);const _0x4e8e02=_0x38b544['filter'](_0xdfe4b5=>'$graveyard'!=_0xdfe4b5['root']['rootName']);_0x4e8e02['length']>0x0&&_0x2b4ff9['setSelection'](_0x4e8e02);for(const _0x1d7481 of _0x38b544)_0x1d7481['detach']();});},_0x51b457=(_0x445d7c,_0x32ed26)=>0x1==_0x445d7c['length']&&0x1==_0x32ed26['length']&&_0x445d7c[0x0]['end']['isEqual'](_0x32ed26[0x0]['start']),_0x4648d9=(_0x58fb25,_0x5b21ed,_0x424462,_0x219c7a)=>Ht(_0x58fb25,_0x5b21ed,_0x424462,_0x219c7a,this['_model'])?[_0x58fb25,_0x5b21ed]:Ht(_0x5b21ed,_0x58fb25,_0x219c7a,_0x424462,this['_model'])?[_0x5b21ed,_0x58fb25]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41e909),this['_defaultCallbacks']['set']('insertion:discard',_0x5673ed),this['_defaultCallbacks']['set']('insertion:join',_0x51b457),this['_defaultCallbacks']['set']('insertion:chain',_0x4648d9),this['_defaultCallbacks']['set']('deletion:accept',_0x5673ed),this['_defaultCallbacks']['set']('deletion:discard',_0x41e909),this['_defaultCallbacks']['set']('deletion:join',_0x51b457),this['_defaultCallbacks']['set']('deletion:chain',_0x4648d9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4956a0),this['_defaultCallbacks']['set']('formatInline:discard',_0x41e909),this['_defaultCallbacks']['set']('formatInline:join',_0x51b457),this['_defaultCallbacks']['set']('formatInline:chain',_0x41e909),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4956a0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41e909),this['_defaultCallbacks']['set']('formatBlock:join',_0x51b457),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41e909),this['_defaultCallbacks']['set']('attribute:accept',_0x41e909),this['_defaultCallbacks']['set']('attribute:discard',(_0xe1f7d4,_0x227962)=>{if(!_0x227962)return;const _0x3f8925=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2dd032=>{if(_0x227962['key']==m)for(const _0x1ecf7e of _0xe1f7d4){const _0x59f6e7=_0x1ecf7e['start']['nodeAfter'],_0x10e9e5=_0x227962['oldValue'];_0x2dd032['rename'](_0x59f6e7,_0x10e9e5);}else{if(_0x3f8925['_isBlockAttribute'](_0x227962['key'])){for(const _0x38529a of _0xe1f7d4)void 0x0!==_0x227962['oldValue']?_0x2dd032['setAttribute'](_0x227962['key'],_0x227962['oldValue'],_0x38529a['start']['nodeAfter']):_0x2dd032['removeAttribute'](_0x227962['key'],_0x38529a['start']['nodeAfter']);}else{for(const _0x55ff89 of _0xe1f7d4)_0x227962['oldValue']?_0x2dd032['setAttribute'](_0x227962['key'],_0x227962['oldValue'],_0x55ff89):_0x2dd032['removeAttribute'](_0x227962['key'],_0x55ff89);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51b457);}}function Et(_0x1e3ed4,_0x10c7b6,_0x47b920){for(const _0x31dd7d of _0x10c7b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x31dd7d['root']==_0x31dd7d)return!0x1;if(!_0x47b920['containsItem'](_0x31dd7d))return!0x1;if(_0x1e3ed4['isObject'](_0x31dd7d)||_0x1e3ed4['isLimit'](_0x31dd7d))return!0x0;}return!0x1;}function Vt(_0x51a83a){return _0x51a83a['end']['parent']==_0x51a83a['start']['nodeAfter']&&_0x51a83a['end']['isAtStart'];}function Ut(_0x191482,_0x2fec33,_0x4f4a9c,_0x359f23){const _0x4a8d7c=_0x2b189f=>!_0x2b189f['item']['is']('$textProxy')&&!_0x359f23['isObject'](_0x2b189f['item']),_0x182aac=_0x191482['start']['getLastMatchingPosition'](_0x4a8d7c),_0x679bf5=_0x191482['end']['getLastMatchingPosition'](_0x4a8d7c,{'direction':'backward'});return(!_0x191482['start']['isEqual'](_0x182aac)||!_0x191482['end']['isEqual'](_0x679bf5))&&(_0x182aac['isBefore'](_0x679bf5)?_0x4f4a9c['updateMarker'](_0x2fec33,{'range':_0x4f4a9c['createRange'](_0x182aac,_0x679bf5)}):_0x4f4a9c['removeMarker'](_0x2fec33),!0x0);}function Pt(_0x12168a){return _0x35240c(_0x12168a);}function Gt(_0x46dacc){const _0x56a915=_0x46dacc['start']['nodeAfter'];return _0x56a915&&_0x56a915['is']('element');}function Ft(_0x260622,_0x276f6a){return null==_0x260622['end']['nodeBefore']&&_0x260622['end']['parent']==_0x260622['start']['nodeAfter']?Lt(_0x260622['start']['nodeAfter'],_0x276f6a):_0x260622;}function Lt(_0x25ba9f,_0x430927){const _0x3cbf34=_0x430927['schema']['isObject'](_0x25ba9f)||_0x430927['schema']['isSelectable'](_0x25ba9f);return _0x430927['createRange'](_0x430927['createPositionAt'](_0x25ba9f,'before'),_0x3cbf34?_0x430927['createPositionAfter'](_0x25ba9f):_0x430927['createPositionAt'](_0x25ba9f,'end'));}function Ht(_0x211eaf,_0x1736c2,_0x49d068,_0x373c41,_0x1a8f3f){if(_0x211eaf['next'])return!0x1;if(!Jt(_0x211eaf,_0x1736c2))return!0x1;if(_0x49d068['end']['isEqual'](_0x373c41['start']))return!0x0;if(_0x211eaf['type']!=_0x1736c2['type'])return!0x1;if(!_0x49d068['end']['isTouching'](_0x373c41['start']))return!0x1;const _0xf1a62a=_0x1a8f3f['createRange'](_0x49d068['end'],_0x373c41['start'])['getWalker']();for(const _0x883849 of _0xf1a62a)if(['elementStart','elementEnd']['includes'](_0x883849['type'])&&_0x1a8f3f['schema']['isLimit'](_0x883849['item']))return!0x1;return!0x0;}function Jt(_0x29be02,_0x385a05){if(!_0x29be02['_isDataLoaded']||!_0x385a05['_isDataLoaded'])return!0x1;const _0x10d300=new Set(Object['keys'](_0x29be02['attributes'])),_0x22e44b=new Set(Object['keys'](_0x385a05['attributes']));if(_0x10d300['delete']('groupId'),_0x22e44b['delete']('groupId'),0x0==_0x10d300['size']&&0x0==_0x22e44b['size'])return!0x0;if(_0x10d300['size']!=_0x22e44b['size'])return!0x1;const _0x4fe9cb={..._0x29be02['attributes']},_0x48b287={..._0x385a05['attributes']};return delete _0x4fe9cb['groupId'],delete _0x48b287['groupId'],JSON['stringify'](_0x4fe9cb)==JSON['stringify'](_0x48b287);}function qt(_0x1f9085,_0x4e113f){const _0x198936=zt(_0x1f9085['attributes']),_0x1f3dd2=zt(_0x4e113f);if(!_0x1f9085['_isDataLoaded'])return!0x1;for(const _0x3ade2e of Object['keys'](_0x1f3dd2))if(!_0x46161a(_0x198936[_0x3ade2e],_0x1f3dd2[_0x3ade2e]))return!0x1;return!0x0;}function zt(_0xba76ac){const _0x121cc8=Object['assign']({},_0xba76ac);return delete _0x121cc8['skipNestingCheck'],delete _0x121cc8['tablePasteChainId'],_0x121cc8;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5b20f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21fdc9,_0xef734f,_0x5c4a49,_0x5894cc){super(),this['model']=_0xef734f,this['view']=_0x5c4a49,this['commentThreadController']=_0x5894cc,this['_editor']=_0x21fdc9,this['_acceptCommand']=_0x21fdc9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21fdc9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c4b1c,_0xbb7678)=>_0x3c4b1c||_0xbb7678),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x606291=>_0x606291&&this['_editor']['model']['canEditAt'](_0xef734f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x30ab74=>_0x30ab74&&this['_editor']['model']['canEditAt'](_0xef734f['getRanges']())),this['_pendingAction']=null,_0x5c4a49['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5c4a49,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5c4a49,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5c4a49,'change:isDirty',()=>{_0x5c4a49['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 _0x360e29=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x360e29);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1840de{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a82ae,_0x33d945,_0x2fa536,_0x56d7ca){super(_0x2a82ae),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1afc9a(_0x2a82ae,o(_0x2a82ae,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x33d945['authoredAt']),this['bind']('authoredAt')['to'](_0x33d945),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',_0x33d945,'authoredAt',this,'descriptionParts',(_0x7bcc72,_0x5a1058,_0x48a6aa)=>{const _0x229b9b=_0x48a6aa['map'](_0x4b842b=>ls(_0x4b842b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x7bcc72-0x1,_0x33d945['author']['name'],_0x5a1058?_0x56d7ca['formatDateTime'](_0x5a1058):'',new DOMParser()['parseFromString'](_0x229b9b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4960e1(),this['focusTracker']=new _0x2f03c4(),this['keystrokes']=new _0x9c9a0d(),this['focusCycler']=new _0x14a7fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c11ae=>_0x3c11ae['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x33d945,this['_localUser']=_0x2fa536,this['_config']=_0x56d7ca,_0x56d7ca['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x35c5a3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x24b53a}=this['_config'];this['commentsListView']=new _0x24b53a(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',_0x274adb=>_0x274adb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bfb4f,_0x32b960)=>_0x5bfb4f||!!_0x32b960);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x57257f}=this['_config'],_0x103d55=new _0x57257f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x36903e=_0x103d55['commentInputView'];return _0x103d55['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x36903e,'value',(_0x20ac92,_0x244d78,_0xca7df9)=>!!_0xca7df9||_0x20ac92&&!_0x244d78),_0x36903e['on']('submit',(_0x5b8563,_0x25d963)=>{this['fire']('addComment',_0x25d963),_0x36903e['editor']['setData']('');}),_0x36903e['on']('cancel',()=>this['focus']()),_0x36903e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x103d55;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xa7734a,_0x5207a0,_0x19961c,_0x4c7be7){super(_0xa7734a,_0x5207a0,_0x19961c,_0x4c7be7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d1bdd=>_0x4d1bdd&&_0x4d1bdd[0x0]?_0x4d1bdd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44d516,_0x57571b)=>{let _0x3c1f92='';for(const _0x2b553e of _0x44d516)_0x3c1f92+='<p>'+ls(_0x2b553e['content'],_0x2b553e['color'])+'</p>';return _0x57571b?_0x3c1f92:_0x4d23af(_0x3c1f92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4c7be7['SuggestionView'](_0xa7734a,_0x5207a0,{'formatDateTime':_0x4c7be7['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 _0x6fb166=this['bindTemplate'],_0x5bdadc=[this['suggestionView']];return this['commentsListView']&&_0x5bdadc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5bdadc['push'](this['commentThreadInputView']),_0x5bdadc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x6fb166['if']('isActive','ck-suggestion-wrapper--active'),_0x6fb166['to']('type',_0x443b7a=>'ck-suggestion-'+_0x443b7a),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':_0x6fb166['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5bdadc};}['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 _0x1840de{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d87b0,_0x54a96b,_0x4a3bdf){super(_0x4d87b0),this['_model']=_0x54a96b,this['_config']=_0x4a3bdf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x54a96b),this['acceptButton']=this['_createButton'](o(_0x4d87b0,'Accept\x20suggestion'),_0xef2bba['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4d87b0,'Discard\x20suggestion'),_0xef2bba['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xc698bf(_0x4d87b0,_0x54a96b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4960e1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2f03c4(),this['keystrokes']=new _0x9c9a0d(),this['focusCycler']=new _0x14a7fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x339f7a=>_0x339f7a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x14c5c9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x14c5c9['innerHTML']=this['description'],this['on']('change:description',(_0x95ab72,_0x9f5903,_0x286687)=>{_0x14c5c9['innerHTML']=_0x286687;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x547ac1=this['bindTemplate'],_0x18c9a8=[{'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':_0x547ac1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x547ac1['to']('authoredAt',_0x455092=>this['_config']['formatDateTime'](_0x455092))}]}]},{'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']&&_0x18c9a8['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':_0x18c9a8}]};}['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'](_0x5ba9a8,_0x21d054,_0x3754ac,_0xb3bee4,_0x111099){const _0x26d75d=new _0x1765ae(this['locale']);return _0x26d75d['set']({'label':_0x5ba9a8,'icon':_0x21d054,'tooltip':!0x0,'tooltipPosition':_0x111099}),_0x26d75d['extendTemplate']({'attributes':{'class':_0x3754ac}}),_0x26d75d['on']('execute',()=>{this['fire'](_0xb3bee4,this['_model']['id']);}),_0x26d75d;}['_setupKeyboardNavigation'](){const _0x155898=this['element'];this['keystrokes']['listenTo'](_0x155898);for(const _0x1d333b of this['focusables'])this['focusTracker']['add'](_0x1d333b['element']),this['keystrokes']['listenTo'](_0x1d333b['element']);this['keystrokes']['set']('enter',(_0x55caeb,_0x3e7b6f)=>{_0x155898===_0x55caeb['target']&&(this['focusCycler']['focusFirst'](),_0x3e7b6f());}),this['keystrokes']['set']('esc',(_0x7bdb74,_0x542145)=>{_0x155898!==_0x7bdb74['target']&&(this['focus'](),_0x542145());});}}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 _0x1d1013{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ad360,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43f10f){super(_0x43f10f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31dc07=this['editor']['config'];_0x31dc07['define']('trackChanges.SuggestionThreadView',re),_0x31dc07['define']('trackChanges.SuggestionView',ce),_0x31dc07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31dc07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x527b02,_0x33737a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b481b,_0x2497f2]of this['_handleControllerBuffer']){const _0x4dc80f=this['_suggestionToController']['has'](_0x1b481b);_0x4dc80f||_0x2497f2?_0x4dc80f&&_0x2497f2&&this['_destroyController'](_0x1b481b):this['_initializeController'](_0x1b481b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x527b02,_0x33737a);}['init'](){const _0x29ca85=this['editor'],_0x4b587a=_0x29ca85['plugins']['get']('TrackChangesEditing'),_0x2e818e=_0x29ca85['plugins']['get']('Annotations'),_0x952660=_0x29ca85['plugins']['get']('EditorAnnotations'),_0x5bc8f0=_0x29ca85['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x952660['addSourceCollector'](()=>{const _0xbae90e=[];for(const [_0x879376,_0x371095]of Array['from'](this['_suggestionToController'])){const _0x62f61=_0x879376['getAllAdjacentSuggestions'](),_0x4f1b1c=[];for(const _0x566f6a of _0x62f61){if(!_0x566f6a['isInContent'])continue;if(_0x566f6a['isMultiRange']){_0x4f1b1c['push'](..._0x566f6a['getRanges']());continue;}const _0x14491b=_0x566f6a['getFirstRange']();if(_0x4f1b1c['length']>0x0){const _0x463814=_0x4f1b1c[0x0]['getJoined'](_0x14491b);if(_0x463814){_0x4f1b1c[0x0]=_0x463814;continue;}}_0x4f1b1c['push'](_0x14491b);}_0xbae90e['push']([_0x371095['view'],_0x4f1b1c]);}return _0xbae90e;}),this['listenTo'](_0x4b587a,'suggestionLoaded',(_0x1969aa,_0x3659a5)=>{this['listenTo'](_0x3659a5,'change:previous',(_0x3ac4e0,_0x3179a2,_0x58e092,_0x5a4b3e)=>{_0x3659a5['isInContent']&&(null==_0x58e092?(this['_updateController'](_0x5a4b3e['head']),this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x1)):(this['_updateController'](_0x58e092['head']),null==_0x5a4b3e&&this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x0)));}),null!==_0x3659a5['previous']?this['_updateController'](_0x3659a5['head']):this['_handleSuggestionControllerDelayed'](_0x3659a5,!0x1);}),this['listenTo'](_0x4b587a,'suggestionUnloaded',(_0x49bcb6,_0x3449ab,_0x4c5023)=>{this['stopListening'](_0x3449ab,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3449ab),this['_suggestionToController']['has'](_0x3449ab)&&this['_destroyController'](_0x3449ab),_0x4c5023&&this['_updateController'](_0x4c5023['head']);}),this['listenTo'](_0x4b587a,'suggestionChanged',(_0xc19d0a,_0x1c1c99)=>{this['_updateController'](_0x1c1c99);}),this['listenTo'](_0x2e818e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5bc8f0,'addComment',(_0x342efd,{threadId:_0x3115a1,isFromAdapter:_0x3317e5})=>{if(_0x3317e5||!_0x4b587a['hasSuggestion'](_0x3115a1))return;const _0x2a5f50=_0x4b587a['getSuggestion'](_0x3115a1);this['_suggestionToController']['get'](_0x2a5f50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x32d063=this['editor']['plugins']['get']('Annotations'),_0x45b375=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45375b=Array['from'](_0x32d063['activeAnnotations'],_0x2ca3ef=>_0x2ca3ef['innerView'])['filter'](_0x275ebf=>this['_viewToController']['has'](_0x275ebf)),_0x2efd30=[];for(const _0x28501e of _0x45375b){const _0x46130c=this['_viewToController']['get'](_0x28501e)['model']['getAllAdjacentSuggestions']();_0x2efd30['push'](..._0x46130c['reduce']((_0x11622f,_0x43c8f4)=>[..._0x11622f,..._0x43c8f4['getMarkerNames']()],[]));}_0x45b375['activeMarkers']=_0x2efd30;}['_addUIComponentsToFactory'](){const _0x3ffaac=this['editor'],_0x450149=_0x3ffaac['locale'],_0x30e095=o(_0x450149,'Track\x20changes'),_0x235af2=new Wt([{'type':'switchbutton','model':new _0x2060c6({'withText':!0x0,'isToggleable':!0x0,'label':_0x30e095,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060c6({'withText':!0x0,'label':o(_0x450149,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11fddd of _0x235af2)if(me(_0x11fddd)){const _0x3df733=_0x3ffaac['commands']['get'](_0x11fddd['model']['commandName']);_0x11fddd['model']['bind']('isOn','isEnabled')['to'](_0x3df733,'value','isEnabled');}_0x3ffaac['ui']['componentFactory']['add']('trackChanges',_0x40d304=>this['_createToolbarButton'](_0x40d304,_0x235af2,_0x30e095)),_0x3ffaac['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc6d60e=>this['_createMenuBarMenu'](_0xc6d60e,_0x235af2,_0x30e095));}['_createToolbarButton'](_0x3864fd,_0x1621dd,_0x50d030){const _0x2fa85f=Qt(_0x3864fd,_0x27ca1a),_0x4b14a=this['editor']['commands']['get']('trackChanges');_0x2fa85f['buttonView']['set']({'tooltip':_0x50d030,'label':_0x50d030,'icon':he}),_0x2fa85f['buttonView']['bind']('isOn')['to'](_0x4b14a,'value'),_0x2fa85f['buttonView']['on']('execute',()=>{_0x4b14a['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2fa85f,_0x1621dd,{'role':'menu'});const _0x262d7a=[];for(const _0x441933 of _0x1621dd)me(_0x441933)&&_0x262d7a['push'](this['editor']['commands']['get'](_0x441933['model']['commandName']));const _0x1f4e7f=_0x2fa85f['buttonView'];return _0x1f4e7f['actionView']['unbind']('isEnabled'),_0x1f4e7f['arrowView']['unbind']('isEnabled'),_0x1f4e7f['actionView']['bind']('isEnabled')['to'](_0x4b14a,'isEnabled'),_0x1f4e7f['arrowView']['bind']('isEnabled')['toMany'](_0x262d7a,'isEnabled',(..._0x1b9dd0)=>_0x1b9dd0['some'](_0x50b247=>_0x50b247)),_0x2fa85f['on']('execute',_0x31d78d=>{this['editor']['execute'](_0x31d78d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fa85f;}['_createMenuBarMenu'](_0xb8540c,_0x27ea29,_0x55c77e){const _0x25f5c9=new Yt(_0xb8540c),_0x3c78f4=this['editor']['commands']['get']('trackChanges');_0x25f5c9['buttonView']['set']({'label':_0x55c77e,'icon':he});const _0x44746e=new Zt(_0xb8540c);for(const _0x5897bb of _0x27ea29){if('separator'==_0x5897bb['type']){_0x44746e['items']['add'](new Xt(_0xb8540c));continue;}const _0x3b734c=new te(_0xb8540c,_0x25f5c9),_0x58241e=new _0x423b6(_0xb8540c),_0x58463e=_0x5897bb['model'];_0x58241e['bind'](...Object['keys'](_0x58463e))['to'](_0x58463e),_0x58241e['delegate']('execute')['to'](_0x25f5c9),_0x58241e['on']('execute',()=>{this['editor']['execute'](_0x58463e['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b734c['children']['add'](_0x58241e),_0x44746e['items']['add'](_0x3b734c);}return _0x25f5c9['bind']('isEnabled')['to'](_0x3c78f4,'isEnabled'),_0x25f5c9['panelView']['children']['add'](_0x44746e),_0x25f5c9;}['_initializeController'](_0x269cbd){const _0x3b2222=this['editor'],_0x5bd2bb=_0x3b2222['config'],_0x18a1b3=_0x3b2222['plugins']['get']('Annotations'),_0x4103d7=_0x3b2222['plugins']['get']('CommentsRepository'),_0x47a129=_0x3b2222['plugins']['get']('EditorAnnotations'),_0x44bb0e=_0x3b2222['plugins']['get'](_0x2ad360)['me'],_0xfbc163=_0x5bd2bb['get']('trackChanges')['SuggestionThreadView'],_0x54e878=_0x5bd2bb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2709c8,CommentThreadInputView:_0x4e429a}=_0x3b2222['plugins']['get']('CommentsUI');let _0x3c6747,_0x14b1b9,_0xde69a6;this['_annotationViews']['has'](_0x269cbd['id'])?(_0x14b1b9=this['_annotationViews']['get'](_0x269cbd['id']),_0x3c6747=_0x14b1b9['mainView']):(_0x3c6747=new _0xfbc163(_0x3b2222['locale'],_0x269cbd,_0x44bb0e,{'disableComments':this['_disableComments'],'editorConfig':_0x5bd2bb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5bd2bb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5bd2bb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5bd2bb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3460fc(_0x5bd2bb['get']('locale')),'CommentView':_0x5bd2bb['get']('comments')['CommentView'],'CommentsListView':_0x2709c8,'CommentThreadInputView':_0x4e429a,'SuggestionView':_0x54e878}),_0x3c6747['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b2222['editing']['view']['focus']();}),_0x3c6747['suggestionView']['discardButton']['on']('execute',()=>{_0x3b2222['editing']['view']['focus']();}),_0x14b1b9=_0x18a1b3['createAnnotationView'](this['editor']['locale'],_0x3c6747),_0x14b1b9['bind']('isDirty')['to'](_0x3c6747,'isDirty'),_0x14b1b9['bind']('length')['to'](_0x3c6747),_0x14b1b9['bind']('type')['to'](_0x3c6747,'type',_0x20fb14=>'suggestion-'+_0x20fb14),_0x3c6747['on']('escape',()=>{_0xde69a6['fire']('escape');}),this['_annotationViews']['set'](_0x269cbd['id'],_0x14b1b9));const _0x54f576=_0x4103d7['createCommentThreadController'](_0x269cbd['commentThread'],_0x3c6747),_0x98e473=new ae(_0x3b2222,_0x269cbd,_0x3c6747,_0x54f576),_0x525bb1=_0x269cbd['getAllAdjacentSuggestions']()['filter'](_0x5d56be=>_0x5d56be['isInContent']);_0x3c6747['descriptionParts']=_0x3b2222['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x525bb1),this['_suggestionToController']['set'](_0x269cbd,_0x98e473),this['_viewToController']['set'](_0x3c6747,_0x98e473),_0xde69a6=_0x18a1b3['createAnnotation']({'view':_0x14b1b9,'target':()=>{const _0x54a9ff=[],_0x5bebe2=_0x269cbd['getAllAdjacentSuggestions']()['filter'](_0x563e49=>_0x563e49['isInContent']);for(const _0x31d6bc of _0x5bebe2)_0x54a9ff['push'](..._0x31d6bc['getMarkers']());return _0x73809(_0x3b2222['editing'],_0x54a9ff);},'type':()=>'suggestion-'+_0x98e473['view']['type']}),_0x4103d7['_bindAnnotationToEditors'](_0x3c6747,_0xde69a6),_0x18a1b3['add'](_0xde69a6),_0x47a129['registerAnnotation'](_0xde69a6);}['_destroyController'](_0x80c01b){const _0x5bfc3c=this['editor']['plugins']['get']('CommentsRepository'),_0x5081bb=this['editor']['plugins']['get']('Annotations'),_0x1cde1e=this['_suggestionToController']['get'](_0x80c01b),_0xd1c3dd=_0x1cde1e['view'],_0x59c751=_0x5081bb['getByInnerView'](_0xd1c3dd);_0x5bfc3c['_unbindEditors'](_0xd1c3dd),_0x59c751&&_0x5081bb['remove'](_0x59c751),this['_suggestionToController']['delete'](_0x80c01b),this['_viewToController']['delete'](_0xd1c3dd),_0x1cde1e['destroy']();}['_updateController'](_0x269860){if(!_0x269860['isInContent']||!this['_suggestionToController']['has'](_0x269860))return;const _0x5ad085=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141b1c=this['_suggestionToController']['get'](_0x269860),_0x5bd6b9=_0x269860['getAllAdjacentSuggestions']();_0x141b1c['view']['descriptionParts']=_0x5ad085['descriptionFactory']['getDescriptions'](_0x5bd6b9);}['destroy'](){for(const _0x28dbdb of this['_suggestionToController']['keys']())this['_destroyController'](_0x28dbdb);for(const _0x4baa15 of this['_annotationViews']['values']())_0x4baa15['mainView']['destroy']();super['destroy']();}}function me(_0x3922bd){return'model'in _0x3922bd;}class k extends _0x1d1013{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5238cc){this['editor']['plugins']['get'](p)['adapter']=_0x5238cc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d6653){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d6653);}['getSuggestions']({skipNotAttached:_0x91b465=!0x1,toJSON:_0x439270=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x91b465,'toJSON':_0x439270});}['getSuggestion'](_0x550e41){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x550e41);}}const w=['Pagination'];class T extends _0x1d1013{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x178f3f=this['editor'];if(_0x178f3f['config']['define']('trackChangesData.editorCreator',_0x5a193f=>{const _0x256a13=_0x178f3f['model']['document']['getRootNames']()['reduce']((_0xf67117,_0x259730)=>(_0xf67117[_0x259730]='',_0xf67117),{});return _0x178f3f['constructor']['create'](_0x256a13,_0x5a193f);}),'function'!=typeof _0x178f3f['config']['get']('trackChangesData')['editorCreator'])throw new _0xc9e6ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x31b602){return N(this['editor'],!0x0,_0x31b602);}['getDataWithDiscardedSuggestions'](_0x499d5d){return N(this['editor'],!0x1,_0x499d5d);}}class D extends _0x1d1013{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a2264){super(_0x2a2264),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(_0x5dd095){return void 0x0!==_0x5dd095['getRootsAttributes'];}async function N(_0x1be103,_0x1383ab,_0x13c933){const _0x2a05a4=_0x222606(_0x1be103,w);_0x2a05a4['plugins']['push'](p,D),_0x2a05a4['rootsAttributes']=v(_0x1be103)?_0x1be103['getRootsAttributes']():void 0x0;const _0x1e0ba4=document['createDocumentFragment'](),_0x14ba36=_0x1be103['config']['get']('trackChangesData')['editorCreator'],_0x5a57de=await _0x14ba36(_0x2a05a4,()=>function(_0x15d010){const _0x2100bd=document['createElement']('div');return _0x15d010['appendChild'](_0x2100bd),_0x2100bd;}(_0x1e0ba4));!function(_0x2e8463,_0x14ca12){const _0x323e12=_0x2e8463['model']['document']['getRootNames']()['reduce']((_0x26934e,_0x1bf639)=>(_0x26934e[_0x1bf639]=_0x2e8463['data']['get']({'rootName':_0x1bf639}),_0x26934e),{}),_0x2741fb=_0x2e8463['plugins']['get']('Users')['users']['map'](_0xec1eea=>({'id':_0xec1eea['id'],'name':_0xec1eea['name']})),_0x29d8a4=_0x2e8463['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b16dc=_0x2e8463['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe69c0d=_0x14ca12['plugins']['get']('Users'),_0xfbdbc2=_0x14ca12['plugins']['get']('TrackChangesEditing'),_0x54c6ca=_0x14ca12['plugins']['get']('CommentsRepository');for(const _0x5729ea of _0x54c6ca['getCommentThreads']())_0x5729ea['remove']();for(const _0x55ca0e of _0x2741fb)_0xe69c0d['getUser'](_0x55ca0e['id'])||_0xe69c0d['addUser'](_0x55ca0e);_0xe69c0d['me']||_0xe69c0d['useAnonymousUser']();for(const _0x33a8bc of _0x3b16dc)_0x54c6ca['addCommentThread'](_0x33a8bc);for(const _0x5c4999 of _0x29d8a4)_0xfbdbc2['addSuggestionData'](_0x5c4999);_0x14ca12['data']['set'](_0x323e12);}(_0x1be103,_0x5a57de),_0x5a57de['execute'](_0x1383ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x454b82=v(_0x5a57de)?_0x5a57de['getFullData'](_0x13c933):_0x5a57de['data']['get'](_0x13c933);return await _0x5a57de['destroy'](),_0x454b82;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x3b6e0a,PendingActions as _0x47d7f8,icons as _0x115a1c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10426e,ObservableMixin as _0x4180ac,uid as _0x1f1646,insertToPriorityArray as _0x192071,priorities as _0x1e8134,logWarning as _0x527ed6,getEnvKeystrokeText as _0xdcc2ca,FocusTracker as _0x1c1530,KeystrokeHandler as _0xf0088f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x21f98a,View as _0x5e7b63,ViewCollection as _0xb4b9f3,FocusCycler as _0x1c4ad3,ViewModel as _0x29fb94,createDropdown as Qt,SplitButtonView as _0x3752b7,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2f0859}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5d7b22,hashObject as _0x478e56,surroundingMarkersDetector as _0x41087d,FOCUS_ANNOTATION_KEYSTROKE as _0x4c6663,AriaDescriptionView as _0x2c21bb,setupThreadKeyboardNavigation as _0x63269f,trimHtml as _0x3fbc93,UserView as _0x2f5c80,LateFocusButtonView as _0x4d4fa2,getDateTimeFormatter as _0x23a33a,getAllMarkersDomElementsSorted as _0x30e9f4,sanitizeEditorConfig as _0x2d45b2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x34fc06,LiveRange as _0x544abc,LivePosition as _0x20b35b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x506894,toWidget as _0x10dd68}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xb72769,set as _0x2f341,isEqual as _0xf20d03,unset as _0x1b79d8,omit as Rt}from'lodash-es';import{Delete as _0x1086b0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd6976d,ShiftEnter as _0x4f3c35}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4a8473,_0x5d99cd){super(_0x4a8473),this['_enabledCommands']=_0x5d99cd,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 _0x4cc182 of this['editor']['commands']['commands']())_0x4cc182['affectsData']&&!this['_enabledCommands']['has'](_0x4cc182)&&_0x4cc182['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x8b4784 of this['editor']['commands']['commands']())_0x8b4784['affectsData']&&!this['_enabledCommands']['has'](_0x8b4784)&&_0x8b4784['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x42842a,_0x3a3ae6){super(_0x42842a),this['_suggestions']=_0x3a3ae6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3cb8a1){const _0x2a8f83=this['_suggestions']['get'](_0x3cb8a1);if(!_0x2a8f83)throw new _0x10426e('track-changes-accept-suggestion-not-found',this);const _0xd44738=_0x2a8f83['getRanges']();this['editor']['model']['canEditAt'](_0xd44738)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2a8f83);}}class O extends ts{['_suggestions'];constructor(_0x648ac2,_0x443d3d){super(_0x648ac2),this['_suggestions']=_0x443d3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2fdbc3){const _0x45a4eb=this['_suggestions']['get'](_0x2fdbc3);if(!_0x45a4eb)throw new _0x10426e('track-changes-discard-suggestion-not-found',this);const _0x1311ed=_0x45a4eb['getRanges']();this['editor']['model']['canEditAt'](_0x1311ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x45a4eb);}}function ls(_0x4deda3,_0x52a9ff){let _0x2ff7b0='';return _0x2ff7b0+=_0x4deda3['split']('*')['map']((_0x3342ed,_0x4b341c)=>_0x4b341c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3342ed)+'</span>':nn(_0x3342ed))['join'](''),_0x52a9ff&&(_0x2ff7b0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x52a9ff['value']+'\x22\x20title=\x22'+_0x52a9ff['title']+'\x22></span>'),_0x2ff7b0;}function nn(_0x36dcbd){const _0x5def14=document['createElement']('span');return _0x5def14['innerText']=_0x36dcbd,_0x5def14['innerHTML'];}function ss(_0x54bd7a){return _0x54bd7a['sort']((_0xeb2229,_0x47afbd)=>'deletion'==_0xeb2229['type']&&'deletion'!=_0x47afbd['type']?-0x1:'deletion'!=_0xeb2229['type']&&'deletion'==_0x47afbd['type']?0x1:0x0);}function to(_0x506641,_0x259301){let _0x40260c,_0x3394e6=0x0;const _0x24c890=[],_0x34a99b=_0x259301['schema'];for(;_0x3394e6<_0x506641['length'];){const _0x5e73f8=_0x506641[_0x3394e6],_0x27a7c8=_0x506641[_0x3394e6+0x1];_0x40260c||(_0x40260c=_0x259301['createPositionBefore'](_0x5e73f8)),on(_0x259301,_0x5e73f8,_0x27a7c8)||(_0x24c890['push'](_0x259301['createRange'](_0x40260c,_0x34a99b['isObject'](_0x5e73f8)?_0x259301['createPositionAfter'](_0x5e73f8):_0x259301['createPositionAt'](_0x5e73f8,'end'))),_0x40260c=null),_0x3394e6++;}return _0x24c890;}function on(_0x459e60,_0x59bdb2,_0x378f73){if(!_0x378f73)return!0x1;const _0x256604=_0x459e60['createPositionAfter'](_0x59bdb2),_0x4d87ec=_0x459e60['createPositionBefore'](_0x378f73);return _0x256604['isTouching'](_0x4d87ec);}function rs(_0x5d5fe6,_0x4c3457,_0x34fcd3){for(;_0x34fcd3['length'];){const _0x368486=_0x34fcd3['splice'](0x0,0x64);_0x5d5fe6['change'](()=>{for(const _0x4fe490 of _0x368486)_0x4fe490['isInContent']&&_0x4c3457['execute'](_0x4fe490['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x25a4cd,_0x36f379,_0x2b7cf0){super(_0x25a4cd),this['_command']=_0x36f379,this['_suggestions']=_0x2b7cf0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x226823=Array['from'](this['_suggestions']['values']())['some'](_0x4770ce=>_0x4770ce['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x226823;}['execute'](){const _0x4e3dfd=ss(Array['from'](this['_suggestions']['values']()));for(const _0xccbfa5 of _0x4e3dfd){const _0x11d55b=_0xccbfa5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11d55b))return;}rs(this['editor']['model'],this['_command'],_0x4e3dfd);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3d9a46,_0x1ebfb7,_0x1bb1a2){super(_0x3d9a46),this['_command']=_0x1ebfb7,this['_suggestions']=_0x1bb1a2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x492518=this['editor']['model']['document']['selection'],_0x9a7d22=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b4beb,_0x2a3cda){const _0x3a5f5e=Array['from'](_0x3b4beb['getRanges']()),_0xde9de3=new Set();for(const _0x1b0f2d of _0x2a3cda)if(_0x1b0f2d['isInContent']){for(const _0x523410 of _0x3a5f5e)for(const _0x5a629a of _0x1b0f2d['getRanges']())(_0x523410['isIntersecting'](_0x5a629a)||_0x3b4beb['isCollapsed']&&!_0x1b0f2d['isMultiRange']&&_0x1b0f2d['next']&&_0x5a629a['end']['isTouching'](_0x523410['start']))&&_0xde9de3['add'](_0x1b0f2d);}return _0xde9de3;}(_0x492518,_0x9a7d22),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5730c5=ss(Array['from'](this['_selectedSuggestions']));for(const _0x58b277 of _0x5730c5){const _0x5909c5=_0x58b277['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5909c5))return;}rs(this['editor']['model'],this['_command'],_0x5730c5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4180ac(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b44b2,_0x1e7962){super(),this['id']=_0x1e7962['id'],this['type']=_0x1e7962['type'],this['subType']=_0x1e7962['subType']||null,this['author']=_0x1e7962['author'],this['creator']=_0x1e7962['creator']||_0x1e7962['author'],this['isExternal']=Boolean(_0x1e7962['attributes']&&_0x1e7962['attributes']['@external']),this['data']=null,this['_model']=_0x3b44b2,this['_onAccept']=_0x1e7962['onAccept'],this['_onDiscard']=_0x1e7962['onDiscard'],this['_onAttributesChange']=_0x1e7962['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e7962['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 _0x43bb34=this;for(;_0x43bb34['previous'];)_0x43bb34=_0x43bb34['previous'];return _0x43bb34;}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'](_0x130135){this['_markerNames']['add'](_0x130135);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x17e4b6=>this['_model']['markers']['get'](_0x17e4b6))['filter'](_0x390a29=>_0x390a29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x479137=>{for(const _0x240efb of this['getMarkers']())_0x479137['removeMarker'](_0x240efb);}),this['_markerNames']['clear']();}['removeMarker'](_0x36481f){this['_model']['change'](_0x36de71=>{_0x36de71['removeMarker'](_0x36481f);}),this['_markerNames']['delete'](_0x36481f);}['addRange'](_0xf35ff2){const _0x576bb9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x576bb9),this['_model']['change'](_0x20b153=>{_0x20b153['addMarker'](_0x576bb9,{'range':_0xf35ff2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2e2901){for(const _0x4b8c70 of this['getRanges']())if(_0x4b8c70['isIntersecting'](_0x2e2901))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xe63e0a=>_0xe63e0a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x517fca,_0x109c43)=>[..._0x517fca,..._0x109c43['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x770f4b=this['getRanges']();if(0x1!=_0x770f4b['length'])return null;const _0x2f14cf=_0x770f4b[0x0],_0x42cd1b=_0x2f14cf['start']['nodeAfter'],_0xe91888=_0x2f14cf['end']['nodeBefore'];return _0x42cd1b instanceof _0x34fc06?_0x42cd1b!=_0xe91888?null:_0x42cd1b: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 _0x472f53=[];let _0x6f9499=this['head'];for(;_0x6f9499;)_0x472f53['push'](_0x6f9499),_0x6f9499=_0x6f9499['next'];return _0x472f53;}['setAttribute'](_0x568a96,_0x1844a1){const _0x27a53a=_0xb72769(this['attributes']);_0x2f341(_0x27a53a,_0x568a96,_0x1844a1),_0xf20d03(_0x27a53a,this['attributes'])||(this['attributes']=_0x27a53a,this['_onAttributesChange'](_0x27a53a));}['removeAttribute'](_0x397e70){const _0x34f44b=_0xb72769(this['attributes']);_0x1b79d8(_0x34f44b,_0x397e70),_0xf20d03(_0x34f44b,this['attributes'])||(this['attributes']=_0x34f44b,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 _0x1f1646()['substr'](0x1,0x5);}}function o(_0x4e3681,_0x5a0464,_0x27858b){const _0x346b11=_0x4e3681['t'],t=_0x4e3681['t'];switch(_0x5a0464){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',_0x27858b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27858b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27858b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27858b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27858b);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',_0x27858b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27858b);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',_0x27858b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27858b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27858b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27858b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27858b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27858b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27858b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27858b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27858b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27858b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27858b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27858b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27858b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27858b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27858b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27858b);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'},_0x27858b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27858b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27858b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27858b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27858b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27858b);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'},_0x27858b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27858b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27858b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27858b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27858b);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'},_0x27858b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27858b);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'},_0x27858b);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'},_0x27858b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27858b);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'},_0x27858b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27858b);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'},_0x27858b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27858b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27858b);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'},_0x27858b);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 _0x346b11({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x27858b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x346b11({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x27858b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x27858b);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'},_0x27858b);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'},_0x27858b);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'},_0x27858b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5a0464;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x396ecd,_0x1fb0d1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x396ecd,this['_locale']=_0x1fb0d1;}['getDescriptions'](_0x39d5f8){const _0xd33ec0=[],_0x5f5a20=new Set(),_0x4a236a=new Set();for(let _0x6f4cb=0x0;_0x6f4cb<_0x39d5f8['length'];_0x6f4cb++){const _0x364952=_0x39d5f8[_0x6f4cb];if(!_0x364952['isInContent'])continue;const _0x4c3c88=this['_handleCustomCallbackDescription'](_0x364952);if(_0x4c3c88){if(null!=_0x364952['subType']){if(_0x5f5a20['has'](_0x364952['subType']))continue;_0x5f5a20['add'](_0x364952['subType']);}_0xd33ec0['push'](_0x4c3c88);}else{if('attribute'!=_0x364952['type'])'insertion'!=_0x364952['type']&&'deletion'!=_0x364952['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd33ec0,_0x364952,_0x39d5f8[_0x6f4cb+0x1]);else{const _0x4d66cb=_0x364952['data']['key'];if(_0x4a236a['has'](_0x4d66cb))continue;_0x4a236a['add'](_0x364952['data']['key']),_0x4d66cb==m?this['_handleRenameSuggestionDescription'](_0xd33ec0,_0x364952):this['_handleAttributeSuggestionDescription'](_0xd33ec0,_0x364952);}}}return this['_resolveDescriptionItems'](_0xd33ec0);}['registerDescriptionCallback'](_0x5925d1){this['_customCallbacks']['push'](_0x5925d1);}['registerElementLabel'](_0x4815bb,_0x4baf4a,_0x5bf320=_0x1e8134['normal']){'function'==typeof _0x4815bb?_0x192071(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4815bb,'label':_0x4baf4a,'priority':_0x5bf320}):this['_itemLabels']['set'](_0x4815bb,_0x4baf4a);}['registerAttributeLabel'](_0x507a2b,_0x180889){this['_attributeLabels']['set'](_0x507a2b,_0x180889);}['getItemLabel'](_0x1dd810,_0x2aa39b=0x1){let _0x37883a;for(const _0x3b20b6 of this['_itemLabelsCallbacks'])if(_0x3b20b6['matchingCallback'](_0x1dd810)){_0x37883a=_0x3b20b6['label'];break;}return _0x37883a||(_0x37883a=this['_itemLabels']['get'](_0x1dd810['name'])),_0x37883a?_0x37883a(_0x2aa39b):0x1!==_0x2aa39b?_0x2aa39b+'\x20'+_0x1dd810['name']+'s':''+_0x1dd810['name'];}['_addDescriptionItems'](_0x23e91d,_0x24a50b){const _0x5671ed=_0x24a50b['getFirstRange']()['getWalker'](),_0x33e8c6='insertion'==_0x24a50b['type']?'add':'remove';for(const _0x16675c of _0x5671ed){const _0x36bdda=_0x16675c['item'],_0x535b56=_0x23e91d[_0x23e91d['length']-0x1];if(_0x36bdda['is']('$textProxy'))_0x535b56&&_0x535b56['type']['indexOf']('Container')>-0x1&&_0x23e91d['pop'](),_0x535b56&&'text'==_0x535b56['type']?_0x535b56[_0x33e8c6]+=_0x36bdda['data']:_0x23e91d['push']({'type':'text','add':'add'==_0x33e8c6?_0x36bdda['data']:'','remove':'remove'==_0x33e8c6?_0x36bdda['data']:''});else{if(this['_schema']['isObject'](_0x36bdda)){const _0x2420be=_0x36bdda;if(_0x535b56&&_0x535b56['type']['indexOf']('Container')>-0x1&&_0x23e91d['pop'](),'elementEnd'==_0x16675c['type'])continue;_0x535b56&&_0x535b56['type']==_0x33e8c6+'Object'&&_0x535b56['element']['name']==_0x2420be['name']?_0x535b56['quantity']++:_0x23e91d['push']({'type':_0x33e8c6+'Object','element':_0x2420be,'quantity':0x1}),_0x5671ed['skip'](_0x1e5079=>!('elementEnd'==_0x1e5079['type']&&_0x1e5079['item']==_0x36bdda));}else{if(this['_schema']['checkChild'](_0x36bdda,'$text')||_0x36bdda['is']('element','softBreak')){const _0x55c0a2=_0x36bdda;if('add'==_0x33e8c6&&'elementStart'==_0x16675c['type']||'remove'==_0x33e8c6&&'elementEnd'==_0x16675c['type'])continue;if(_0x535b56&&-0x1==_0x535b56['type']['indexOf']('Container')){'text'==_0x535b56['type']&&(_0x535b56[_0x33e8c6]+='\x0a');continue;}let _0x1c0655;if(_0x1c0655='add'==_0x33e8c6?_0x55c0a2['nextSibling']&&!this['_schema']['isObject'](_0x55c0a2['nextSibling'])?_0x55c0a2['nextSibling']:null:_0x55c0a2['previousSibling']&&!this['_schema']['isObject'](_0x55c0a2['previousSibling'])?_0x55c0a2['previousSibling']:null,_0x55c0a2['isEmpty']||_0x1c0655&&_0x1c0655['isEmpty']){const _0x2ef811=_0x1c0655&&_0x1c0655['isEmpty']?_0x1c0655:_0x55c0a2;_0x535b56&&_0x535b56['type']==_0x33e8c6+'EmptyContainer'&&_0x535b56['element']['name']==_0x2ef811['name']?_0x535b56['quantity']++:_0x23e91d['push']({'type':_0x33e8c6+'EmptyContainer','element':_0x2ef811,'quantity':0x1});}else _0x23e91d['push']({'type':_0x33e8c6+'Container','element':_0x55c0a2});}}}}}['_resolveDescriptionItems'](_0x255ed0){const _0x34a22f=this['_locale'],_0xb9cc54=[],_0x5230ee=[],_0x191013=[];for(const _0x348a72 of _0x255ed0)switch(_0x348a72['type']){case'text':if(_0x348a72['add']=_0x348a72['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x348a72['remove']=_0x348a72['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x348a72['add']&&''!=_0x348a72['remove']){_0xb9cc54['push']({'type':'replace','content':o(_0x34a22f,'REPLACE_TEXT',['\x22'+_0x348a72['remove']+'\x22','\x22'+_0x348a72['add']+'\x22'])});continue;}if(null!=_0x348a72['add']['match'](/^ +$/)){_0xb9cc54['push']({'type':'insertion','content':o(_0x34a22f,'*Insert:*\x20%0',o(_0x34a22f,'ELEMENT_SPACE',_0x348a72['add']['length']))});continue;}if(null!=_0x348a72['remove']['match'](/^ +$/)){_0xb9cc54['push']({'type':'deletion','content':o(_0x34a22f,'*Remove:*\x20%0',o(_0x34a22f,'ELEMENT_SPACE',_0x348a72['remove']['length']))});continue;}if(''!=_0x348a72['add']){_0xb9cc54['push']({'type':'insertion','content':o(_0x34a22f,'*Insert:*\x20%0','\x22'+_0x348a72['add']+'\x22')});continue;}_0xb9cc54['push']({'type':'deletion','content':o(_0x34a22f,'*Remove:*\x20%0','\x22'+_0x348a72['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xb9cc54['push']({'type':'insertion','content':o(_0x34a22f,'*Insert:*\x20%0',this['getItemLabel'](_0x348a72['element'],_0x348a72['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xb9cc54['push']({'type':'deletion','content':o(_0x34a22f,'*Remove:*\x20%0',this['getItemLabel'](_0x348a72['element'],_0x348a72['quantity']))});continue;case'addContainer':_0xb9cc54['push']({'type':'insertion','content':o(_0x34a22f,'*Split:*\x20%0',this['getItemLabel'](_0x348a72['element'],_0x348a72['quantity']))});continue;case'removeContainer':_0xb9cc54['push']({'type':'deletion','content':o(_0x34a22f,'*Merge:*\x20%0',this['getItemLabel'](_0x348a72['element'],_0x348a72['quantity']))});continue;case'addFormat':_0x5230ee['push'](_0x348a72['key']);continue;case'removeFormat':_0x191013['push'](_0x348a72['key']);continue;default:_0xb9cc54['push'](_0x348a72);}if(_0x5230ee['length']){const _0x5bbb3a=_0x5230ee['map'](_0x4e1481=>this['_attributeLabels']['has'](_0x4e1481)?this['_attributeLabels']['get'](_0x4e1481):_0x4e1481)['join'](',\x20');_0xb9cc54['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5bbb3a)});}if(_0x191013['length']){const _0x5004c0=_0x191013['map'](_0x323abe=>this['_attributeLabels']['has'](_0x323abe)?this['_attributeLabels']['get'](_0x323abe):_0x323abe)['join'](',\x20');_0xb9cc54['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5004c0)});}return _0xb9cc54;}['_handleCustomCallbackDescription'](_0x34bd75){for(const _0x5e128b of this['_customCallbacks']){const _0x4eec45=_0x5e128b(_0x34bd75);if(_0x4eec45&&'type'in _0x4eec45)return _0x4eec45;}}['_handleAttributeSuggestionDescription'](_0x927422,_0x59cd05){const _0x528232=_0x59cd05['data'],_0x513c7d=void 0x0===_0x528232['newValue']?'removeFormat':'addFormat';_0x927422['push']({'type':_0x513c7d,'key':_0x528232['key']});}['_handleRenameSuggestionDescription'](_0x508c74,_0x4efacd){_0x508c74['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4efacd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x463c34,_0x175ae7,_0x206332){if(this['_addDescriptionItems'](_0x463c34,_0x175ae7),_0x206332&&_0x206332['getFirstRange']()&&!_0x175ae7['getFirstRange']()['end']['isEqual'](_0x206332['getFirstRange']()['start'])){const _0xc9ef79=_0x463c34[_0x463c34['length']-0x1],_0x405b5a='insertion'==_0x175ae7['type']?'add':'remove';_0xc9ef79&&'text'==_0xc9ef79['type']&&(_0xc9ef79[_0x405b5a]+='\x0a');}}}class V extends _0x3b6e0a{['afterInit'](){const _0x52b2ff=this['editor'],_0x306b1a=_0x52b2ff['plugins']['get']('TrackChangesEditing');_0x52b2ff['commands']['get']('showAIAssistant')&&_0x306b1a['enableCommand']('showAIAssistant');}}class U extends _0x3b6e0a{['afterInit'](){const _0x33d0b5=this['editor'],_0xdd4862=_0x33d0b5['locale'];if(!_0x33d0b5['plugins']['has']('AlignmentEditing'))return;const _0x1d9fb3=_0x33d0b5['plugins']['get']('TrackChangesEditing');_0x1d9fb3['enableDefaultAttributesIntegration']('alignment'),_0x1d9fb3['registerBlockAttribute']('alignment'),_0x1d9fb3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xdd4862,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c266f=this['editor'],_0x4ca0e2=_0x3c266f['locale'];_0x3c266f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b94c2=>{if('formatBlock'!=_0x2b94c2['type'])return;const {data:_0x310c4e}=_0x2b94c2;if(_0x310c4e&&'alignment'==_0x310c4e['commandName']){const _0x36faaa=_0x310c4e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4ca0e2,'*Format:*\x20%0',function(_0x31e15f){switch(_0x31e15f){case'left':return o(_0x4ca0e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4ca0e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4ca0e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4ca0e2,'FORMAT_JUSTIFY_TEXT');}}(_0x36faaa))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b6e0a{['afterInit'](){const _0x290f3f=this['editor'],_0x10245e=_0x290f3f['plugins']['get']('TrackChangesEditing'),_0x508746=_0x290f3f['locale'];for(const _0x25f07a of ti){if(!_0x290f3f['plugins']['has'](_0x25f07a))continue;const _0x309185=_0x25f07a['slice'](0x0,-0x7)['toLowerCase'](),_0x55f4dc='FORMAT_'+_0x309185['toUpperCase']();_0x10245e['enableDefaultAttributesIntegration'](_0x309185),_0x10245e['registerInlineAttribute'](_0x309185),_0x10245e['descriptionFactory']['registerAttributeLabel'](_0x309185,o(_0x508746,_0x55f4dc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bd90=this['editor'],_0x569110=_0x49bd90['locale'],_0xab4e28=_0x49bd90['plugins']['get']('TrackChangesEditing');function _0x1ee2cf(_0x1ca7a4,_0x475a3d){_0xab4e28['descriptionFactory']['registerDescriptionCallback'](_0x1a10df=>{if('formatInline'!=_0x1a10df['type'])return;const {data:_0x4ff22a}=_0x1a10df;return _0x4ff22a&&_0x4ff22a['commandName']===_0x1ca7a4?_0x4ff22a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x569110,'*Format:*\x20%0',_0x475a3d)}:{'type':'format','content':o(_0x569110,'*Remove\x20format:*\x20%0',_0x475a3d)}:void 0x0;});}_0x1ee2cf('bold',o(_0x569110,'FORMAT_BOLD')),_0x1ee2cf('italic',o(_0x569110,'FORMAT_ITALIC')),_0x1ee2cf('underline',o(_0x569110,'FORMAT_UNDERLINE')),_0x1ee2cf('code',o(_0x569110,'FORMAT_CODE')),_0x1ee2cf('strikethrough',o(_0x569110,'FORMAT_STRIKETHROUGH')),_0x1ee2cf('subscript',o(_0x569110,'FORMAT_SUBSCRIPT')),_0x1ee2cf('superscript',o(_0x569110,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3b6e0a{['afterInit'](){const _0x215e04=this['editor'],_0x67c8b6=_0x215e04['locale'];if(!_0x215e04['plugins']['has']('BlockQuoteEditing'))return;const _0x23a820=_0x215e04['plugins']['get']('TrackChangesEditing'),_0x2d7e21=this['editor']['commands']['get']('blockQuote');_0x23a820['enableCommand']('blockQuote',(_0x3d37d1,_0x33718a={})=>{const _0x383b9a=this['editor']['model']['document']['selection'],_0x447e7d=_0x33718a&&void 0x0!==_0x33718a['forceValue']?_0x33718a['forceValue']:!_0x2d7e21['value'];let _0x5e6f3d=[];if(_0x447e7d){const _0x2a71b6=Array['from'](_0x383b9a['getSelectedBlocks']())['filter'](_0xd5dc89=>oo(_0xd5dc89)||function(_0x288f0b,_0x1a6816){const _0x18a7dc=_0x1a6816['checkChild'](_0x288f0b['parent'],'blockQuote'),_0x81f5a3=_0x1a6816['checkChild'](['$root','blockQuote'],_0x288f0b);return _0x18a7dc&&_0x81f5a3;}(_0xd5dc89,this['editor']['model']['schema']));_0x5e6f3d=to(_0x2a71b6,_0x215e04['model']);}else{const _0x90593f=Array['from'](_0x383b9a['getSelectedBlocks']())['filter'](_0x6d56e9=>oo(_0x6d56e9));_0x5e6f3d=to(_0x90593f,_0x215e04['model']);}_0x215e04['model']['change'](()=>{for(const _0x3c89e1 of _0x5e6f3d)_0x23a820['markBlockFormat'](_0x3c89e1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x447e7d}]});});}),_0x23a820['descriptionFactory']['registerDescriptionCallback'](_0x487423=>{const {data:_0x342c55}=_0x487423;if(_0x342c55&&'blockQuote'==_0x342c55['commandName']){const _0x4e015e=o(_0x67c8b6,'ELEMENT_BLOCK_QUOTE');return _0x342c55['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x67c8b6,'*Set\x20format:*\x20%0',_0x4e015e)}:{'type':'format','content':o(_0x67c8b6,'*Remove\x20format:*\x20%0',_0x4e015e)};}});}}function oo(_0x3bfc62){return'blockQuote'==_0x3bfc62['parent']['name'];}class L extends _0x3b6e0a{['afterInit'](){const _0x54ebc2=this['editor'];_0x54ebc2['plugins']['has']('CaseChange')&&(_0x54ebc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54ebc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54ebc2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3b6e0a{['afterInit'](){const _0x2c90b1=this['editor'];_0x2c90b1['commands']['get']('ckbox')&&_0x2c90b1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3b6e0a{['afterInit'](){const _0x10a6c4=this['editor'];if(!_0x10a6c4['plugins']['has']('CodeBlock'))return;const _0x558224=_0x10a6c4['plugins']['get']('TrackChangesEditing'),_0x51b773=_0x10a6c4['locale'],_0x34e071=_0x10a6c4['config']['get']('codeBlock')['languages'],_0x5987ea=_0x10a6c4['commands']['get']('codeBlock');_0x558224['enableCommand']('indentCodeBlock'),_0x558224['enableCommand']('outdentCodeBlock'),_0x558224['enableCommand']('codeBlock',(_0x3f7f1d,_0x414b16={})=>{const _0x442231=_0x10a6c4['model'],_0x4f49c6=_0x10a6c4['model']['document']['selection'],_0x336302=_0x414b16&&void 0x0!==_0x414b16['forceValue']?_0x414b16['forceValue']:!_0x5987ea['value'];let _0x9af555;_0x414b16['language']||(_0x414b16['language']=_0x34e071[0x0]['language']),_0x9af555=_0x336302?Array['from'](_0x4f49c6['getSelectedBlocks']())['filter'](_0x5c9a95=>eo(_0x5c9a95)||function(_0xea61d9,_0xd99b72){if(_0xea61d9['is']('rootElement')||_0xd99b72['isLimit'](_0xea61d9))return!0x1;return _0xd99b72['checkChild'](_0xea61d9['parent'],'codeBlock');}(_0x5c9a95,_0x442231['schema'])):Array['from'](_0x4f49c6['getSelectedBlocks']())['filter'](_0x56ffa9=>eo(_0x56ffa9));const _0x170120=to(_0x9af555,_0x442231);_0x442231['change'](()=>{for(const _0x107000 of _0x170120)_0x558224['markBlockFormat'](_0x107000,{'commandName':'codeBlock','commandParams':[{..._0x414b16,'forceValue':_0x336302}],'formatGroupId':'blockName'});});}),(_0x558224['descriptionFactory']['registerElementLabel']('codeBlock',_0x4c032e=>o(_0x51b773,'ELEMENT_CODE_BLOCK',_0x4c032e)),_0x558224['descriptionFactory']['registerDescriptionCallback'](_0x4f363c=>{if('formatBlock'!=_0x4f363c['type'])return;const _0x2f8ebc=_0x51b773['t'],{data:_0xf8cbe9}=_0x4f363c;if(!_0xf8cbe9||'codeBlock'!=_0xf8cbe9['commandName'])return;const _0x30f7af=_0xf8cbe9['commandParams'][0x0]['language'],_0x3a5a5a=_0x2f8ebc(_0x34e071['find'](_0x5f0c1c=>_0x5f0c1c['language']===_0x30f7af)['label'])['toLowerCase']();return _0xf8cbe9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51b773,'*Set\x20format:*\x20%0',o(_0x51b773,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3a5a5a+')')}:{'type':'format','content':o(_0x51b773,'*Remove\x20format:*\x20%0',o(_0x51b773,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xdc0a4c){return'codeBlock'==_0xdc0a4c['name'];}class q extends _0x3b6e0a{['afterInit'](){const _0x7d2437=this['editor'];if(!_0x7d2437['plugins']['has']('CommentsEditing'))return;_0x7d2437['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4c76ab,_0x30ee40,_0xa8bb63){const _0x4f2f88=[];for(const _0x2905ee of _0x30ee40['getItems']())_0x2905ee['hasAttribute'](_0x4c76ab)&&_0x4f2f88['push'](_0xa8bb63['createRangeOn'](_0x2905ee));return _0x4f2f88;}function _e(_0x491492,_0x20d678,{showActiveMarker:_0x1279e8=!0x0}={}){const _0x4248e9=_0x491492['plugins']['get']('TrackChangesEditing');return(_0x59e947,_0x123480,_0x55dbe4)=>{if(!_0x55dbe4['consumable']['test'](_0x123480['markerRange'],_0x59e947['name']))return;const _0x4dbbb2=_0x123480['markerRange']['getWalker'](),_0x5cbe02=_0x123480['markerRange']['start'],_0x475f0e=_0x491492['model']['schema'];let _0x21bba1=null,_0x395f39=null,_0x5054ca=!0x1,_0x412919=!0x1;for(const _0x3295ee of _0x4dbbb2){const _0x1b4c91=_0x3295ee['item'];_0x5054ca=_0x5054ca||_0x475f0e['isContent'](_0x1b4c91);const _0x1dac56=_0x55dbe4['mapper']['toViewElement'](_0x1b4c91);if(_0x1dac56&&_0x1dac56['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3295ee['type']&&(_0x475f0e['isBlock'](_0x1b4c91)&&!_0x475f0e['isLimit'](_0x1b4c91)&&(_0x1b4c91['nextSibling']||_0x5cbe02['isAtEnd']?_0x21bba1&&_0x21bba1['parent']==_0x1b4c91||(_0x21bba1=_0x1b4c91,_0x4f18bd(_0x3295ee['previousPosition']),_0x412919=!0x0):_0x395f39=_0x395f39||_0x3295ee['previousPosition']));}function _0x4f18bd(_0x1392b2){const {authorId:_0x492003}=_0x4248e9['_splitMarkerName'](_0x123480['markerName']),_0x4f0736=_0x55dbe4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20d678,'data-author-id':_0x492003}),_0x53f2fe=_0x55dbe4['mapper']['toViewPosition'](_0x1392b2);_0x1279e8&&_0x4248e9['activeMarkers']['includes'](_0x123480['markerName'])&&_0x55dbe4['writer']['addClass']('ck-suggestion-marker--active',_0x4f0736),_0x55dbe4['writer']['insert'](_0x53f2fe,_0x4f0736),_0x55dbe4['mapper']['bindElementToMarker'](_0x4f0736,_0x123480['markerName']);}_0x5054ca||_0x412919||!_0x395f39||_0x4f18bd(_0x395f39);};}class z extends _0x3b6e0a{static get['requires'](){return[_0x1086b0];}['init'](){const _0x446585=this['editor'],_0x4462fa=_0x446585['plugins']['get']('TrackChangesEditing');_0x4462fa['enableCommand']('delete');const _0x2d4f56=_0x446585['commands']['get']('deleteForward');_0x4462fa['enableCommand']('deleteForward',(_0x2adb28,_0x394e45={})=>{const _0x366c84=_0x446585['model']['createSelection'](_0x446585['model']['document']['selection']);_0x366c84['isCollapsed']&&_0x446585['model']['modifySelection'](_0x366c84,{'direction':'forward','unit':_0x394e45['unit']});const _0x32e971=_0x366c84['getFirstRange'](),_0x5487bd=_0x544abc['fromRange'](_0x32e971);let _0x103367;_0x2adb28(_0x394e45),_0x103367='$graveyard'==_0x5487bd['root']['rootName']?_0x446585['model']['createRange'](_0x32e971['start']):_0x446585['model']['createRange'](_0x5487bd['start'],_0x5487bd['end']),_0x5487bd['detach'](),_0x446585['model']['enqueueChange'](_0x2d4f56['buffer']['batch'],_0xe01cb=>{_0x2d4f56['buffer']['lock'](),_0xe01cb['setSelection'](_0xe01cb['createRange'](_0x103367['end'])),_0x2d4f56['buffer']['unlock']();});}),_0x446585['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x446585,'merge'),{'priority':'high'}),_0x446585['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x512fec,_0x176903,_0x375d1f)=>{_0x375d1f['options']['showSuggestionHighlights']&&_e(_0x446585,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x512fec,_0x176903,_0x375d1f);},{'priority':'high'}),_0x446585['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x13918b,_0x26dfde,_0x4640ab)=>{const _0x19e6a9=_0x4640ab['mapper']['markerNameToElements'](_0x26dfde['markerName']);if(_0x19e6a9){for(const _0xcb1db6 of _0x19e6a9)_0xcb1db6['is']('uiElement')&&(_0x4640ab['mapper']['unbindElementFromMarkerName'](_0xcb1db6,_0x26dfde['markerName']),_0x4640ab['writer']['remove'](_0xcb1db6));}},{'priority':'high'});}}class K extends _0x3b6e0a{['afterInit'](){const _0x424f93=this['editor'];if(!_0x424f93['plugins']['has']('ListEditing'))return;const _0xcb2b8d=_0x424f93['locale'],_0x227153=_0x424f93['plugins']['get']('TrackChangesEditing'),_0x489fb5=_0x424f93['plugins']['has']('TodoListEditing'),_0x5e702f=!!_0x424f93['config']['get']('list.multiBlock');function _0x5ac768(_0x4a084){return{'type':'format','content':''+o(_0xcb2b8d,'*Set\x20format:*\x20%0',_0x4a084)};}function _0x5d5d98(_0x2f665a){return{'type':'format','content':''+o(_0xcb2b8d,'*Remove\x20format:*\x20%0',_0x2f665a)};}_0x227153['enableDefaultAttributesIntegration']('numberedList'),_0x227153['enableDefaultAttributesIntegration']('bulletedList'),_0x227153['enableDefaultAttributesIntegration']('customNumberedList'),_0x227153['enableDefaultAttributesIntegration']('customBulletedList'),_0x227153['enableDefaultAttributesIntegration']('indentList'),_0x227153['enableDefaultAttributesIntegration']('outdentList'),_0x227153['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x227153['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x227153['registerBlockAttribute']('listItemId'),_0x227153['registerBlockAttribute']('listType'),_0x227153['registerBlockAttribute']('listIndent'),_0x5e702f&&(_0x227153['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x227153['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x489fb5&&(_0x227153['enableDefaultAttributesIntegration']('todoList'),_0x227153['enableDefaultAttributesIntegration']('checkTodoList'),_0x227153['registerBlockAttribute']('todoListChecked'),_0x227153['descriptionFactory']['registerDescriptionCallback'](_0xc0fcc3=>{const {data:_0x38027a}=_0xc0fcc3;if(_0x38027a&&'todoListChecked'==_0x38027a['key'])return{'type':'format','content':_0x38027a['newValue']?o(_0xcb2b8d,'*Check\x20item*'):o(_0xcb2b8d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x564309=>{if(_0x564309['batch']['isUndo'])return!0x1;let _0x1fedac=!0x1;const _0x155742=_0x227153['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e32d2=>'todoListChecked'===_0x227153['_getAttributeKey'](_0x1e32d2));for(const _0x3a2b72 of _0x155742){'todo'!=_0x3a2b72['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x227153['_findSuggestions'](_0x3a2b72['getFirstRange'](),'attribute')['find'](_0x306f00=>'listType'===_0x227153['_getAttributeKey'](_0x306f00['suggestion']))||(_0x564309['removeMarker'](_0x3a2b72['getFirstMarker']()),_0x1fedac=!0x0));}return _0x1fedac;})),_0x227153['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xcb2b8d,'FORMAT_INDENT'));const _0x24e228={'type':'format','content':''};_0x227153['descriptionFactory']['registerDescriptionCallback'](_0x192521=>{const {data:_0x3aaa03}=_0x192521;if(!_0x3aaa03||'listType'!=_0x3aaa03['key'])return;let _0x690cf3=_0x192521['head'];for(;_0x690cf3;){if(_0x690cf3['data']&&(('listStyle'==_0x690cf3['data']['key']||'listMarkerStyle'==_0x690cf3['data']['key'])&&(_0x690cf3['data']['newValue']&&'default'!=_0x690cf3['data']['newValue']||'default'!=_0x690cf3['data']['oldValue']&&!_0x3aaa03['newValue'])||!_0x5e702f&&_0x690cf3['data']['key']==m))return _0x24e228;_0x690cf3=_0x690cf3['next'];}if(null==_0x3aaa03['newValue'])switch(_0x3aaa03['oldValue']){case'bulleted':return _0x5d5d98(o(_0xcb2b8d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d5d98(o(_0xcb2b8d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d5d98(o(_0xcb2b8d,'ELEMENT_TODO_LIST'));}switch(_0x3aaa03['newValue']){case'bulleted':return _0x5ac768(o(_0xcb2b8d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ac768(o(_0xcb2b8d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ac768(o(_0xcb2b8d,'ELEMENT_TODO_LIST'));}}),_0x227153['descriptionFactory']['registerDescriptionCallback'](_0x5b9cac=>{const {data:_0x56b4a8}=_0x5b9cac;if(_0x56b4a8&&'listIndent'==_0x56b4a8['key'])return null==_0x56b4a8['newValue']||null==_0x56b4a8['oldValue']&&0x0==_0x56b4a8['newValue']?_0x24e228:void 0x0;}),_0x227153['descriptionFactory']['registerDescriptionCallback'](_0x5554fe=>{if('attribute'!=_0x5554fe['type'])return;const {data:_0x48fa2a}=_0x5554fe;if(!_0x48fa2a||'listItemId'!=_0x48fa2a['key'])return;const _0x3b729b=Ee(_0x5554fe);return'newValue'==_0x3b729b?{'type':'format','content':o(_0xcb2b8d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b729b?{'type':'format','content':o(_0xcb2b8d,'*Split:*\x20list\x20item')}:_0x24e228;}),_0x424f93['model']['document']['registerPostFixer'](_0x55eb96=>this['listItemIdFixer'](_0x55eb96)),_0x424f93['model']['document']['registerPostFixer'](_0xe0af0=>this['noTrackChangesFixer'](_0xe0af0)),_0x424f93['model']['document']['on']('change:data',(_0xf20a8f,_0x23dab4)=>{if(_0x23dab4['isUndo']||!_0x23dab4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3ff421){if(_0x3ff421['batch']['isUndo']||!_0x3ff421['batch']['isLocal'])return!0x1;let _0x352c2c=!0x1;const _0x4370d6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2042e1=>_0x2042e1['data']&&'listItemId'==_0x2042e1['data']['key'])['filter'](_0x57f0b9=>_0x57f0b9['data']['newValue']&&_0x57f0b9['data']['oldValue']);for(const _0x378342 of _0x4370d6)Ee(_0x378342)||(_0x3ff421['removeMarker'](_0x378342['getFirstMarker']()),_0x352c2c=!0x0);return _0x352c2c;}['noTrackChangesFixer'](_0x2f7898){if(_0x2f7898['batch']['isUndo']||!_0x2f7898['batch']['isLocal'])return!0x1;const _0x24423a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24423a['trackChangesCommand']['value'])return!0x1;let _0x13ff68=!0x1;const _0x283e2f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x38e253=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x46534c=>'attribute'==_0x46534c['type'])['filter'](_0x3d1d00=>_0x283e2f['includes'](_0x3d1d00['attributeKey']));if(0x0==_0x38e253['length'])return _0x13ff68;for(const _0x5231bd of _0x38e253){const _0x74dec6=_0x24423a['_findSuggestions'](_0x5231bd['range'],'attribute')['filter'](_0x2b4b4b=>!_0x2b4b4b['meta']['isNextTo'])['map'](_0x455289=>_0x455289['suggestion'])['filter'](_0x48f219=>{const _0x8cd865=_0x24423a['_getAttributeKey'](_0x48f219);return _0x283e2f['includes'](_0x8cd865);});if(_0x74dec6['length']){for(const _0x33226e of _0x74dec6)_0x2f7898['removeMarker'](_0x33226e['getFirstMarker']());_0x13ff68=!0x0;}}return _0x13ff68;}['assureChains'](){const _0x35a4b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e4feb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1060b6;const _0x11c515=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x581dab=>{if(_0x581dab['data']['oldRange']||!_0x581dab['data']['newRange'])return null;if(!_0x581dab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x13dddb}=_0x35a4b8['_splitMarkerName'](_0x581dab['name']);if(!_0x35a4b8['hasSuggestion'](_0x13dddb))return null;const _0x2f3f16=_0x35a4b8['getSuggestion'](_0x13dddb);return _0x2e4feb['includes'](_0x2f3f16['data']['key']);})['map'](_0x3f9c8f=>{const {id:_0x4ca7a2}=_0x35a4b8['_splitMarkerName'](_0x3f9c8f['name']),_0x5be2ef=_0x35a4b8['getSuggestion'](_0x4ca7a2);return _0x1060b6=_0x5be2ef['attributes']['groupId'],_0x5be2ef['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11c515['size'])return;const _0x234b4e=_0x35a4b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24bae6=>'attribute'==_0x24bae6['type']&&_0x24bae6['data']&&_0x2e4feb['includes'](_0x24bae6['data']['key'])&&_0x24bae6['attributes']['groupId']!=_0x1060b6)['map'](_0xf5bd69=>({'listItem':_0xf5bd69['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf5bd69['attributes']['groupId']})),_0x150ff1=new Set();for(const {groupId:_0x13bd3e,listItem:_0x16098b}of _0x234b4e)_0x11c515['has'](_0x16098b)&&_0x150ff1['add'](_0x13bd3e);for(const _0x436413 of _0x35a4b8['getSuggestions']())_0x150ff1['has'](_0x436413['attributes']['groupId'])&&_0x436413['setAttribute']('groupId',_0x1060b6);}['_supportLegacySuggestions'](){const _0x3a63d0=this['editor'],_0x53e5fa=_0x3a63d0['locale'],_0x26c1fb=_0x3a63d0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26c1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5c5c1d,_0x39aca7){const _0x395b92=[];for(let _0x1e904e of _0x5c5c1d)_0x1e904e['start']['nodeAfter']===_0x1e904e['end']['parent']&&(_0x1e904e=_0x3a63d0['model']['createRange'](_0x3a63d0['model']['createPositionAt'](_0x1e904e['start']['nodeAfter'],0x0))),_0x395b92['push'](_0x1e904e);_0x3a63d0['model']['change'](_0x13aae4=>{const _0x460282=_0x3a63d0['model']['document']['selection'],_0x161425=Array['from'](_0x460282['getRanges']())['map'](_0x4f40fd=>_0x544abc['fromRange'](_0x4f40fd));_0x13aae4['setSelection'](_0x395b92),_0x3a63d0['commands']['get'](_0x39aca7['commandName'])['refresh'](),_0x39aca7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a63d0['execute'](_0x39aca7['commandName'],..._0x39aca7['commandParams']),_0x13aae4['setSelection'](_0x161425);for(const _0x36e7f4 of _0x161425)_0x36e7f4['detach']();});}),_0x26c1fb['descriptionFactory']['registerElementLabel'](function(_0x857de5){const _0xc773ce=!_0x3a63d0['model']['schema']['isObject'](_0x857de5),_0x46e95a=_0x857de5['previousSibling'],_0x1cd62=_0x857de5['nextSibling'],_0x56c884=_0x857de5['getAttribute']('listItemId'),_0x14e620=!_0x46e95a||_0x46e95a['getAttribute']('listItemId')!==_0x56c884,_0x536041=!_0x1cd62||_0x1cd62['getAttribute']('listItemId')!==_0x56c884;return _0xc773ce&&Boolean(_0x56c884)&&_0x14e620&&_0x536041;},_0x338f42=>o(_0x53e5fa,'ELEMENT_LIST_ITEM',_0x338f42));}['_registerLegacyDescription'](){const _0xf10790=this['editor'],_0x46d77b=_0xf10790['locale'];function _0x900939(_0xdfae88){const _0x5903bb=_0xf10790['commands']['get']('bulletedList')['value'],_0x397009=_0xf10790['commands']['get']('numberedList')['value'];return'numberedList'===_0xdfae88?_0x5903bb:_0x397009;}_0xf10790['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x447ea7){if('formatBlock'!=_0x447ea7['type'])return;const {data:_0x5a6d59}=_0x447ea7;if(!_0x5a6d59)return;let _0x28178b,_0x5dac96,_0x32d5f4,_0x3ba150;switch(_0x5a6d59['commandName']){case'bulletedList':_0x32d5f4=_0x5a6d59['commandParams'][0x0]['forceValue'],_0x3ba150=_0x900939(_0x5a6d59['commandName']),_0x28178b=_0x32d5f4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba150&&_0xf10790['config']['get']('list.multiBlock')||(_0x28178b='*Change\x20to:*\x20%0'),_0x5dac96={'type':'format','content':o(_0x46d77b,_0x28178b,o(_0x46d77b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x32d5f4=_0x5a6d59['commandParams'][0x0]['forceValue'],_0x3ba150=_0x900939(_0x5a6d59['commandName']),_0x28178b=_0x32d5f4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba150&&_0xf10790['config']['get']('list.multiBlock')||(_0x28178b='*Change\x20to:*\x20%0'),_0x5dac96={'type':'format','content':o(_0x46d77b,_0x28178b,o(_0x46d77b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x28178b='*Indent:*\x20%0',_0x5dac96={'type':'format','content':o(_0x46d77b,_0x28178b,o(_0x46d77b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x28178b=function(_0x2eedd5){const _0x590feb=_0x2eedd5['getFirstRange']();let _0x4d0d7b=_0x590feb['start']['nodeAfter'];for(;_0x4d0d7b&&_0x590feb['containsItem'](_0x4d0d7b);){if(_0x4d0d7b['getAttribute']('listIndent')>0x0)return!0x1;_0x4d0d7b=_0x4d0d7b['nextSibling'];}return!0x0;}(_0x447ea7)?o(_0x46d77b,'*Format:*\x20remove\x20from\x20%0',o(_0x46d77b,function(_0x3f9278){return'ELEMENT_'+_0x3f9278['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x447ea7))):o(_0x46d77b,'*Outdent:*\x20%0',o(_0x46d77b,'ELEMENT_LIST_ITEM')),_0x5dac96={'type':'format','content':_0x28178b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a6d59['multipleBlocks']&&(_0x28178b='*Merge:*\x20%0',_0x5dac96={'type':'deletion','content':o(_0x46d77b,_0x28178b,o(_0x46d77b,'ELEMENT_LIST_ITEM'))});}return _0x5dac96;});}}function Ee(_0x28fc6a){let _0x5772cc=_0x28fc6a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5772cc;){const _0xfc2691=_0x5772cc['getAttribute']('listItemId');if(!_0xfc2691)return!0x1;if(_0xfc2691==_0x28fc6a['data']['newValue'])return'newValue';if(_0xfc2691==_0x28fc6a['data']['oldValue'])return'oldValue';_0x5772cc=_0x5772cc['previousSibling'];}return!0x1;}class pe extends _0x3b6e0a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x50ee6b=this['editor']['config']['get']('list.properties'),_0xc16016=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ee6b['styles']&&(_0xc16016['enableDefaultAttributesIntegration']('listStyle'),_0xc16016['registerBlockAttribute']('listStyle')),_0x50ee6b['reversed']&&(_0xc16016['enableDefaultAttributesIntegration']('listReversed'),_0xc16016['registerBlockAttribute']('listReversed')),_0x50ee6b['startIndex']&&(_0xc16016['enableDefaultAttributesIntegration']('listStart'),_0xc16016['registerBlockAttribute']('listStart'));const _0x3cda4d={'type':'format','content':''};_0xc16016['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4e2fe7=this['editor']['locale'];_0xc16016['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4e2fe7,'FORMAT_LIST_REVERSED')),_0xc16016['descriptionFactory']['registerDescriptionCallback'](_0x507cf6=>{const {data:_0x1f6ec6}=_0x507cf6;if(_0x1f6ec6&&'listReversed'==_0x1f6ec6['key'])return null==_0x1f6ec6['newValue']||0x0==_0x1f6ec6['newValue']&&null==_0x1f6ec6['oldValue']?_0x3cda4d:void 0x0;}),_0xc16016['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4e2fe7,'FORMAT_LIST_START')),_0xc16016['descriptionFactory']['registerDescriptionCallback'](_0xddae0a=>{const {data:_0x2759d9}=_0xddae0a;if(_0x2759d9&&'listStart'==_0x2759d9['key'])return null==_0x2759d9['newValue']||0x1==_0x2759d9['newValue']&&null==_0x2759d9['oldValue']?_0x3cda4d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4fa0ac=>{if(_0x4fa0ac['batch']['isUndo'])return!0x1;let _0x2b091f=!0x1;const _0x1c667b=_0xc16016['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c6d0=>{const _0x4ae477=_0xc16016['_getAttributeKey'](_0x19c6d0);return'listStart'==_0x4ae477||'listReversed'==_0x4ae477;});for(const _0x2006e4 of _0x1c667b){const _0x2885ed=_0x2006e4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2885ed||'customNumbered'==_0x2885ed)continue;_0xc16016['_findSuggestions'](_0x2006e4['getFirstRange'](),'attribute')['find'](_0x2051d7=>'listType'==_0xc16016['_getAttributeKey'](_0x2051d7['suggestion']))||(_0x4fa0ac['removeMarker'](_0x2006e4['getFirstMarker']()),_0x2b091f=!0x0);}return _0x2b091f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x119f69){const _0x3fa8dd=this['editor']['locale'],{data:_0x9c7c87}=_0x119f69,_0x40f653={'type':'format','content':''};if(!_0x9c7c87||'listStyle'!=_0x9c7c87['key'])return;if(!_0x9c7c87['oldValue'])return'default'==_0x9c7c87['newValue']?_0x40f653:{'type':'format','content':''+o(_0x3fa8dd,'*Set\x20format:*\x20%0',o(_0x3fa8dd,this['_getTranslationKeyForListStyle'](_0x9c7c87['newValue'])))};if(!_0x9c7c87['newValue']){if('default'==_0x9c7c87['oldValue'])return _0x40f653;let _0x2040a3=_0x119f69['head'];for(;_0x2040a3;){if(_0x2040a3['data']&&'listType'==_0x2040a3['data']['key']&&_0x2040a3['data']['newValue'])return _0x40f653;_0x2040a3=_0x2040a3['next'];}return{'type':'format','content':''+o(_0x3fa8dd,'*Remove\x20format:*\x20%0',o(_0x3fa8dd,this['_getTranslationKeyForListStyle'](_0x9c7c87['oldValue'])))};}if('default'!=_0x9c7c87['newValue'])return{'type':'format','content':''+o(_0x3fa8dd,'*Set\x20format:*\x20%0',o(_0x3fa8dd,this['_getTranslationKeyForListStyle'](_0x9c7c87['newValue'])))};let _0x277549=_0x119f69['head'];for(;_0x277549;){if(_0x277549['data']&&'listType'==_0x277549['data']['key']&&_0x277549['data']['newValue']&&_0x277549['data']['oldValue'])return _0x40f653;_0x277549=_0x277549['next'];}return{'type':'format','content':o(_0x3fa8dd,'*Set\x20format:*\x20%0',o(_0x3fa8dd,'ELEMENT_'+_0x119f69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3dbe37=this['editor'],_0x5ef0b5=_0x3dbe37['locale'];_0x3dbe37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5730=>{if('formatBlock'!=_0x2e5730['type'])return;const {data:_0x64b80c}=_0x2e5730;if(!_0x64b80c)return;let _0xa4f7d4,_0x5a9b71;switch(_0x64b80c['commandName']){case'listStyle':_0xa4f7d4='*Change\x20to:*\x20%0',_0x5a9b71={'type':'format','content':o(_0x5ef0b5,_0xa4f7d4,o(_0x5ef0b5,this['_getTranslationKeyForListStyle'](_0x64b80c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa4f7d4=_0x64b80c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a9b71={'type':'format','content':o(_0x5ef0b5,_0xa4f7d4)};break;case'listStart':_0xa4f7d4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a9b71={'type':'format','content':o(_0x5ef0b5,_0xa4f7d4,_0x64b80c['commandParams'][0x0]['startIndex'])};}return _0x5a9b71;});}['_getTranslationKeyForListStyle'](_0x505915){return'ELEMENT_'+function(_0x5c25d5){if(ye['includes'](_0x5c25d5))return'bulleted';if(Se['includes'](_0x5c25d5))return'numbered';return null;}(_0x505915)['toUpperCase']()+'_LIST_'+_0x505915['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3b6e0a{static get['requires'](){return[_0xd6976d];}['init'](){const _0x13e3c2=this['editor'],_0x2cc7a5=_0x13e3c2['plugins']['get']('TrackChangesEditing'),_0x4dd2c4=_0x13e3c2['commands']['get']('enter');_0x2cc7a5['enableCommand']('enter',()=>{_0x13e3c2['model']['change'](_0x51b770=>{const _0x1edb17=_0x13e3c2['model']['document']['selection'],_0x31f439=_0x1edb17['getFirstPosition'](),_0x515669=_0x544abc['fromRange'](_0x1edb17['getFirstRange']());if(_0x4dd2c4['enterBlock'](_0x51b770)){const _0x520398=_0x13e3c2['model']['createPositionAt'](_0x31f439['parent']['nextSibling'],0x0),_0x26e0c4=_0x51b770['createRange'](_0x31f439,_0x520398);_0x2cc7a5['markInsertion'](_0x26e0c4);}else _0x51b770['setSelection'](_0x51b770['createRange'](_0x515669['end']));_0x515669['detach'](),_0x4dd2c4['fire']('afterExecute',{'writer':_0x51b770});});}),_0x13e3c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x13e3c2,'split'),{'priority':'high'}),_0x13e3c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3a0131,_0x4579ca,_0x3a5353)=>{const _0x21ae8e=_0x3a5353['mapper']['markerNameToElements'](_0x4579ca['markerName']);if(_0x21ae8e){for(const _0x900a22 of _0x21ae8e)_0x900a22['hasClass']('ck-suggestion-marker-split')&&(_0x3a5353['mapper']['unbindElementFromMarkerName'](_0x900a22,_0x4579ca['markerName']),_0x3a5353['writer']['remove'](_0x900a22));}},{'priority':'high'}),_0x13e3c2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c07e8,_0xbd0457,_0x24e123)=>{_0x24e123['options']['showSuggestionHighlights']&&_e(_0x13e3c2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4c07e8,_0xbd0457,_0x24e123);},{'priority':'high'});}}class X extends _0x3b6e0a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1a1da5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a1da5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1a1da5['enableCommand']('findNext'),_0x1a1da5['enableCommand']('findPrevious'),_0x1a1da5['enableCommand']('replace'),_0x1a1da5['enableCommand']('replaceAll');}['handleFindCommand'](_0x1c6555,_0x2235bd,_0x43bb78={}){const _0xba8097=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1c6555(_0x43acd5=>{let _0x7f115f=('string'==typeof _0x2235bd?_0xba8097['findByTextCallback'](_0x2235bd,_0x43bb78):_0x2235bd)(_0x43acd5);Array['isArray'](_0x7f115f)&&(_0x7f115f={'results':_0x7f115f,'searchText':'string'==typeof _0x2235bd?_0x2235bd:''});const _0x35045b=_0x7f115f['results']['filter'](_0x425a40=>!0x1===this['_isInDeletionRange'](_0x425a40,_0x43acd5['item']));return{..._0x7f115f,'results':_0x35045b};},_0x43bb78);}['_isInDeletionRange'](_0x56e801,_0x2e502b){const _0x1881a9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e502b,_0x56e801['start']),this['editor']['model']['createPositionAt'](_0x2e502b,_0x56e801['end']));for(const _0x67817f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1881a9['getIntersection'](_0x67817f['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 _0x3b6e0a{['afterInit'](){const _0x169e47=this['editor']['locale'],_0x45e272=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x575d03,commandName:_0x2c8c2b}of ro)this['editor']['plugins']['has'](_0x575d03)&&(_0x45e272['enableDefaultAttributesIntegration'](_0x2c8c2b),_0x45e272['registerInlineAttribute'](_0x2c8c2b));_0x45e272['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x169e47,'FORMAT_FONT_SIZE')),_0x45e272['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x169e47,'FORMAT_FONT_FAMILY')),_0x45e272['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x169e47,'FORMAT_FONT_COLOR')),_0x45e272['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x169e47,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11c356=this['editor'],_0x3df57d=_0x11c356['locale'];_0x11c356['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0671=>{const _0x3506d6=_0x3df57d['t'];if('formatInline'!=_0x1a0671['type'])return;const {data:_0x3a3709}=_0x1a0671;if(null!=_0x3a3709){if('fontSize'==_0x3a3709['commandName']){const _0x34b967=_0x3a3709['commandParams'][0x0]['value'];if(_0x34b967){const _0x37d120=_0x3506d6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1e744e=>_0x1e744e['model']==_0x34b967)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3df57d,'*Set\x20font\x20size:*\x20%0',_0x37d120)};}return{'type':'format','content':o(_0x3df57d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a3709['commandName']){const _0x17ea27=_0x3a3709['commandParams'][0x0]['value'];return _0x17ea27?{'type':'format','content':o(_0x3df57d,'*Set\x20font\x20family:*\x20%0',_0x17ea27)}:{'type':'format','content':o(_0x3df57d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a3709['commandName']){const _0x359618=_0x3a3709['commandParams'][0x0]['value'];if(_0x359618){const _0x1e3994=_0x21f98a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5537f7=>_0x5537f7['model']==_0x359618);let _0x1de800=_0x359618,_0x38f3c9='';return _0x1e3994&&(_0x1de800=_0x1e3994['label'],_0x38f3c9=_0x3506d6(_0x1de800)['toLowerCase']()),{'type':'format','content':o(_0x3df57d,'*Set\x20font\x20color:*\x20%0',_0x38f3c9)['trim'](),'color':{'value':_0x359618,'title':_0x38f3c9||_0x1de800}};}return{'type':'format','content':o(_0x3df57d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a3709['commandName']){const _0x244120=_0x3a3709['commandParams'][0x0]['value'];if(_0x244120){const _0x12a10e=_0x21f98a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x270ac5=>_0x270ac5['model']==_0x244120);let _0x4e155f=_0x244120,_0x577013='';return _0x12a10e&&(_0x4e155f=_0x12a10e['label'],_0x577013=_0x3506d6(_0x4e155f)['toLowerCase']()),{'type':'format','content':o(_0x3df57d,'*Set\x20font\x20background\x20color:*\x20%0',_0x577013)['trim'](),'color':{'value':_0x244120,'title':_0x577013||_0x4e155f}};}return{'type':'format','content':o(_0x3df57d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3b6e0a{['afterInit'](){const _0x5a9a82=this['editor'],_0xc3f3d4=_0x5a9a82['plugins']['get']('TrackChangesEditing'),_0xe3bde4=_0x5a9a82['commands']['get']('copyFormat'),_0x413513=_0x5a9a82['commands']['get']('pasteFormat');_0xe3bde4&&_0x413513&&(_0xc3f3d4['enableDefaultAttributesIntegration']('pasteFormat'),_0xc3f3d4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x21ffe2=this['editor'],_0x3ec71e=_0x21ffe2['locale'];_0x21ffe2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x484f08=>{if('formatBlock'!=_0x484f08['type']&&'formatInline'!=_0x484f08['type'])return;const {data:_0x39bbed}=_0x484f08;if(_0x39bbed&&'pasteFormat'===_0x39bbed['commandName']){const _0x14bf54=[],_0x1e28af=_0x39bbed['commandParams'][0x0];for(const [_0x46d9c4,_0x541cc0]of Object['entries'](_0x1e28af))_0x14bf54['push'](so(_0x21ffe2,_0x46d9c4,_0x541cc0));return _0x14bf54['length']?{'type':'format','content':o(_0x3ec71e,'*Set\x20format\x20to:*\x20%0',_0x14bf54['join'](',\x20'))}:{'type':'format','content':o(_0x3ec71e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37bb97,_0x4fd3ce,_0x364bd2){const _0x59e086=_0x37bb97['locale']['t'],_0x2373eb=_0x4fd3ce['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e5dbc=_0x59e086(_0x2373eb['charAt'](0x0)['toUpperCase']()+_0x2373eb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x364bd2)return _0x4e5dbc;if('fontColor'===_0x4fd3ce||'fontBackgroundColor'===_0x4fd3ce){const _0x483094=_0x21f98a(_0x37bb97['config']['get']('fontColor.colors'))['find'](_0x549321=>_0x549321['model']==_0x364bd2);return _0x4e5dbc+'\x20('+(_0x483094?_0x59e086(_0x483094['label'])['toLowerCase']():_0x364bd2)+')';}if('fontSize'===_0x4fd3ce&&isNaN(parseFloat(_0x364bd2))){const _0x6d6dd9=_0x37bb97['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37bb97['config']['get']('fontSize.options'))['find'](_0x12b80f=>_0x12b80f['model']==_0x364bd2);return _0x4e5dbc+'\x20('+(_0x6d6dd9?_0x59e086(_0x6d6dd9['title'])['toLowerCase']():_0x364bd2)+')';}return _0x4e5dbc+'\x20('+_0x364bd2+')';}class tt extends _0x3b6e0a{['_headingOptions'];['afterInit'](){const _0x59d8b6=this['editor'];if(!_0x59d8b6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59d8b6['config']['get']('heading.options');const _0x1ed21f=_0x59d8b6['locale'],_0x4771f1=_0x59d8b6['plugins']['get']('TrackChangesEditing');_0x4771f1['enableDefaultAttributesIntegration']('heading');for(const _0x3bf78d of this['_headingOptions'])'paragraph'!=_0x3bf78d['model']&&_0x4771f1['descriptionFactory']['registerElementLabel'](_0x3bf78d['model'],_0x4b54ca=>{const _0x184b75=this['_getHeadingLevel'](_0x3bf78d['model']);return null!==_0x184b75?_0x23dd76(_0x4b54ca,_0x184b75):_0x5a769f(_0x4b54ca,_0x3bf78d['title']);});function _0x23dd76(_0x82a9fa,_0xe46e6f){return o(_0x1ed21f,'ELEMENT_HEADING',[_0x82a9fa,_0xe46e6f]);}function _0x5a769f(_0x2ffd61,_0xcfcff){return o(_0x1ed21f,'ELEMENT_HEADING_CUSTOM',[_0x2ffd61,_0xcfcff]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49db0c=this['editor'],_0x9cd886=_0x49db0c['locale'];function _0xe88bb7(_0x2559bc,_0x5ce82c){return o(_0x9cd886,'ELEMENT_HEADING_CUSTOM',[_0x2559bc,_0x5ce82c]);}_0x49db0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b3d20=>{if('formatBlock'!=_0x4b3d20['type'])return;const {data:_0x29ff68}=_0x4b3d20;if(_0x29ff68&&'heading'==_0x29ff68['commandName']){const _0x2baaaa=_0x29ff68['commandParams'][0x0]['value'],_0x51b5f7=this['_getHeadingLevel'](_0x2baaaa);if(null!==_0x51b5f7)return{'type':'format','content':o(_0x9cd886,'*Change\x20to:*\x20%0',(_0x4f505b=0x1,_0x28f26c=_0x51b5f7,o(_0x9cd886,'ELEMENT_HEADING',[_0x4f505b,_0x28f26c])))};const _0x375c75=this['_headingOptions']['find'](_0x2dd127=>_0x2dd127['model']===_0x2baaaa)['title'];return{'type':'format','content':o(_0x9cd886,'*Change\x20to:*\x20%0',_0xe88bb7(0x1,_0x375c75))};}var _0x4f505b,_0x28f26c;});}['_getHeadingLevel'](_0x418a06){const _0x239d61=_0x418a06['match'](/^heading(\d+)/);if(_0x239d61)return _0x239d61[0x1];const _0x550fbf=this['_headingOptions']?.['find'](_0x37e7ff=>_0x37e7ff['model']==_0x418a06);if(_0x550fbf&&_0x550fbf['view']){const _0x46ab49=_0x550fbf['view'],_0x1ed4fd=(_0x46ab49['name']??_0x46ab49)['match'](/^h(\d+)/);if(_0x1ed4fd)return _0x1ed4fd[0x1];}return null;}}class et extends _0x3b6e0a{['afterInit'](){const _0x15fe6d=this['editor'];if(!_0x15fe6d['plugins']['has']('HighlightEditing'))return;const _0x5310f7=_0x15fe6d['plugins']['get']('TrackChangesEditing'),_0x351c22=_0x15fe6d['locale'];_0x5310f7['enableDefaultAttributesIntegration']('highlight'),_0x5310f7['registerInlineAttribute']('highlight'),_0x5310f7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x351c22,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f2081=this['editor'],_0x1952d3=_0x5f2081['locale'];_0x5f2081['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x241218=>{if('formatInline'!=_0x241218['type'])return;const {data:_0x4fa062}=_0x241218;if(_0x4fa062&&'highlight'==_0x4fa062['commandName']){const _0x459d6c=_0x1952d3['t'],_0x1567c7=_0x4fa062['commandParams'][0x0]['value'];if(_0x1567c7){const _0x2d2eb3=_0x5f2081['config']['get']('highlight.options')['find'](_0x14893c=>_0x14893c['model']==_0x1567c7),_0x4083d5=_0x459d6c(_0x2d2eb3['title'])['toLowerCase']();return{'type':'format','content':o(_0x1952d3,'*Set\x20highlight:*\x20%0',_0x4083d5),'color':{'value':_0x2d2eb3['color'],'title':_0x2d2eb3['title']}};}return{'type':'format','content':o(_0x1952d3,'*Remove\x20highlight*',o(_0x1952d3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3b6e0a{['afterInit'](){const _0x3a84fe=this['editor'];if(!_0x3a84fe['plugins']['has']('HorizontalLineEditing'))return;_0x3a84fe['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x227935=_0x3a84fe['plugins']['get']('TrackChangesEditing'),_0xa58b9e=_0x3a84fe['locale'];_0x227935['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e18be=>o(_0xa58b9e,'ELEMENT_HORIZONTAL_LINE',_0x5e18be)),_0x3a84fe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x30c3a2,{writer:_0x46ca55,options:_0x37c517})=>{if(!_0x37c517['showSuggestionHighlights'])return null;const _0x2777f0=_0x46ca55['createContainerElement']('div'),_0x5a3d9f=_0x46ca55['createEmptyElement']('hr');return _0x46ca55['addClass']('ck-horizontal-line',_0x2777f0),_0x46ca55['insert'](_0x46ca55['createPositionAt'](_0x2777f0,0x0),_0x5a3d9f),_0x2777f0;},'converterPriority':'high'});}}class st extends _0x3b6e0a{['afterInit'](){const _0x2b605f=this['editor'];if(!_0x2b605f['plugins']['has']('HtmlEmbed'))return;const _0x1540a2=_0x2b605f['plugins']['get']('TrackChangesEditing'),_0x51703d=_0x2b605f['locale'];_0x1540a2['descriptionFactory']['registerElementLabel']('rawHtml',_0x565e65=>o(_0x51703d,'ELEMENT_HTML_EMBED',_0x565e65)),_0x1540a2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1540a2['registerBlockAttribute']('value'),_0x1540a2['descriptionFactory']['registerDescriptionCallback'](_0xd14414=>{if('attribute'!=_0xd14414['type'])return;const {data:_0x335f11}=_0xd14414;if(_0x335f11&&'value'==_0x335f11['key']&&_0xd14414['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x36e991=o(_0x51703d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51703d,'*Change\x20%0\x20content*',_0x36e991)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b263f=this['editor'],_0x1fd8c2=_0x4b263f['locale'];_0x4b263f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60d16=>{if('formatBlock'!=_0x60d16['type'])return;const {data:_0x6c9e7b}=_0x60d16;if(_0x6c9e7b&&'htmlEmbed'==_0x6c9e7b['commandName']){const _0x1e5294=o(_0x1fd8c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fd8c2,'*Change\x20%0\x20content*',_0x1e5294)};}});}}class nt extends _0x3b6e0a{['afterInit'](){const _0x170095=this['editor'];if(!_0x170095['plugins']['has']('ImageEditing'))return;const _0x4cf3f1=_0x170095['plugins']['get']('TrackChangesEditing'),_0x8d739f=_0x170095['plugins']['get']('ImageUtils'),_0x8673e4=_0x170095['locale'];_0x4cf3f1['enableCommand']('insertImage'),_0x4cf3f1['descriptionFactory']['registerElementLabel']('imageBlock',_0x3e74d5=>o(_0x8673e4,'ELEMENT_IMAGE',_0x3e74d5)),_0x4cf3f1['descriptionFactory']['registerElementLabel']('imageInline',_0x1a3168=>o(_0x8673e4,'ELEMENT_INLINE_IMAGE',_0x1a3168)),_0x4cf3f1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x8673e4,'ELEMENT_CAPTION')),_0x170095['plugins']['has']('ImageUploadEditing')&&_0x4cf3f1['enableCommand']('uploadImage'),_0x170095['plugins']['has']('ImageBlockEditing')&&_0x170095['plugins']['has']('ImageInlineEditing')&&(_0x4cf3f1['enableCommand']('imageTypeInline',(_0x3c5d5c,_0x231a9f)=>{const _0x329671=_0x8d739f['getClosestSelectedImageElement'](_0x170095['model']['document']['selection']);_0x170095['model']['change'](()=>{_0x4cf3f1['markBlockFormat'](_0x329671,{'commandName':'imageTypeInline','commandParams':[_0x231a9f]},[],'convertBlockImageToInline');});}),_0x4cf3f1['enableCommand']('imageTypeBlock',(_0x4693c5,_0x3e3c55)=>{_0x170095['model']['change'](_0x3320be=>{let _0x76ee6e=_0x8d739f['getClosestSelectedImageElement'](_0x170095['model']['document']['selection']),_0x1d6b65=_0x3320be['createRangeOn'](_0x76ee6e);const _0x1b5ad0=_0x20b35b['fromPosition'](_0x1d6b65['start'],'toPrevious'),_0x2a5cb2=_0x20b35b['fromPosition'](_0x1d6b65['end'],'toNext');_0x4cf3f1['forceDefaultExecution'](()=>_0x4693c5(_0x3e3c55)),_0x76ee6e=_0x8d739f['getClosestSelectedImageElement'](_0x170095['model']['document']['selection']),_0x1d6b65=_0x3320be['createRangeOn'](_0x76ee6e);const _0x2662c9=_0x3320be['createRange'](_0x1b5ad0,_0x2a5cb2);_0x1b5ad0['detach'](),_0x2a5cb2['detach'](),_0x4cf3f1['markBlockFormat'](_0x76ee6e,{'commandName':'imageTypeInline','commandParams':[_0x3e3c55]},[],'convertInlineImageToBlock'),_0x2662c9['start']['isBefore'](_0x1d6b65['start'])&&_0x4cf3f1['markInsertion'](_0x3320be['createRange'](_0x2662c9['start'],_0x1d6b65['start']),'convertInlineImageToBlock'),_0x1d6b65['end']['isBefore'](_0x2662c9['end'])&&_0x4cf3f1['markInsertion'](_0x3320be['createRange'](_0x1d6b65['end'],_0x2662c9['end']),'convertInlineImageToBlock');});}),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4cf3f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x595e40])=>{const _0x23c25d=_0x4cf3f1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b9fc8=_0x595e40['start'],_0x63656a=_0x595e40['end'];const _0x23c80c=_0x170095['model']['schema']['getNearestSelectionRange'](_0x3b9fc8,'backward'),_0x2c4630=_0x170095['model']['schema']['getNearestSelectionRange'](_0x63656a,'forward');_0x23c80c['isCollapsed']&&(_0x3b9fc8=_0x23c80c['start']),_0x2c4630['isCollapsed']&&(_0x63656a=_0x2c4630['end']),_0x23c25d([_0x170095['model']['createRange'](_0x3b9fc8,_0x63656a)]);}),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x541fc7),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x541fc7)),_0x170095['plugins']['has']('ImageCaptionEditing')&&(_0x4cf3f1['enableCommand']('toggleImageCaption',(_0x21a03b,_0x23eade)=>{const _0x398f76=_0x170095['plugins']['get']('ImageCaptionUtils');let _0x3ab45b=_0x8d739f['getClosestSelectedImageElement'](_0x170095['model']['document']['selection']),_0x22b123=_0x398f76['getCaptionFromImageModelElement'](_0x3ab45b);_0x170095['model']['change'](()=>{if(_0x22b123)return void _0x4cf3f1['markDeletion'](_0x170095['model']['createRangeOn'](_0x22b123));const _0x435455=_0x8d739f['isBlockImage'](_0x3ab45b);_0x21a03b(_0x23eade),_0x3ab45b=_0x8d739f['getClosestSelectedImageElement'](_0x170095['model']['document']['selection']),_0x22b123=_0x398f76['getCaptionFromImageModelElement'](_0x3ab45b),_0x4cf3f1['markInsertion'](_0x170095['model']['createRangeOn'](_0x22b123),_0x435455?null:'imageCaption');});}),_0x4cf3f1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x541fc7));const _0x9584de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b27f1(_0xb766f0,_0x259327){const _0x425ce2=_0x9584de['findIndex'](({type:_0x3f025d,subType:_0x229c19})=>_0xb766f0['type']==_0x3f025d&&_0xb766f0['subType']==_0x229c19),_0xd613d=_0x9584de['findIndex'](({type:_0x20b87c,subType:_0x56b4d0})=>_0x259327['type']==_0x20b87c&&_0x259327['subType']==_0x56b4d0);if(_0x425ce2<0x0||_0xd613d<0x0)return!0x1;const _0x3fd320=_0xb766f0['getFirstRange'](),_0x111c34=_0x259327['getFirstRange']();if((0x0==_0x425ce2||0x1==_0x425ce2)&&0x2==_0xd613d&&_0x3fd320['isIntersecting'](_0x111c34))return!0x0;if(0x2==_0x425ce2&&0x3==_0xd613d){const _0x38009a=_0x4cf3f1['_findSuggestions'](_0x3fd320,'insertion')['filter'](({suggestion:_0x689909,meta:_0x24e4f0})=>_0x24e4f0['isOwn']&&'convertInlineImageToBlock'==_0x689909['subType']);if(_0x38009a['length']>0x1&&_0x111c34['end']['isEqual'](_0x3fd320['start']))return!0x0;if(0x1==_0x38009a['length']&&(_0x3fd320['start']['isEqual'](_0x111c34['end'])||_0x3fd320['end']['isEqual'](_0x111c34['start'])))return!0x0;}if(0x3==_0x425ce2&&0x3==_0xd613d&&_0x3fd320['start']['isBefore'](_0x111c34['start'])){const _0x2e37fb=_0x3fd320['end']['nodeAfter'],_0x2c9ca9=_0x111c34['start']['nodeBefore'];return _0x8d739f['isBlockImage'](_0x2e37fb)&&_0x2e37fb===_0x2c9ca9;}return!0x1;}function _0x541fc7(_0x374f84,_0x4dff89){return _0x3b27f1(_0x374f84,_0x4dff89)?[_0x374f84,_0x4dff89]:_0x3b27f1(_0x4dff89,_0x374f84)?[_0x4dff89,_0x374f84]:null;}_0x170095['plugins']['has']('ImageResize')&&(_0x4cf3f1['enableDefaultAttributesIntegration']('resizeImage'),_0x4cf3f1['registerBlockAttribute']('resizedWidth'),_0x4cf3f1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x8673e4,'FORMAT_IMAGE_SIZE'))),_0x170095['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4cf3f1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4cf3f1['registerBlockAttribute']('alt')),_0x4cf3f1['descriptionFactory']['registerDescriptionCallback'](_0x431c79=>{if(!!_0x9584de['find'](({type:_0x5214a1,subType:_0x46c6b4})=>_0x431c79['type']==_0x5214a1&&_0x431c79['subType']==_0x46c6b4))return _0x431c79['previous']?{}:void 0x0;}),_0x4cf3f1['descriptionFactory']['registerDescriptionCallback'](_0x12ebb8=>{if('insertion'==_0x12ebb8['type']||'deletion'==_0x12ebb8['type']){const _0x27f046=_0x12ebb8['getContainedElement']();if(_0x27f046&&_0x27f046['is']('element','caption'))return{'type':'insertion'==_0x12ebb8['type']?'addObject':'removeObject','element':_0x27f046,'quantity':0x1};}}),_0x4cf3f1['descriptionFactory']['registerDescriptionCallback'](_0x5cc75c=>'formatBlock'==_0x5cc75c['type']&&'convertInlineImageToBlock'==_0x5cc75c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5cc75c['type']&&'convertBlockImageToInline'==_0x5cc75c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4cf3f1['descriptionFactory']['registerDescriptionCallback'](_0x39b3e6=>{if('attribute'!=_0x39b3e6['type'])return;const {data:_0x1a3e93}=_0x39b3e6;if(!_0x1a3e93||'alt'!=_0x1a3e93['key'])return;const _0x30f38e=_0x1a3e93['newValue'];return _0x30f38e?{'type':'format','content':o(_0x8673e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30f38e+'\x22')}:{'type':'format','content':o(_0x8673e4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4820=this['editor'],_0x30c99a=_0x5a4820['locale'];_0x5a4820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf6a897=>{if('formatBlock'!=_0xf6a897['type']&&'formatInline'!=_0xf6a897['type'])return;const {data:_0x2d44c3}=_0xf6a897;if(_0x2d44c3){if('imageTextAlternative'==_0x2d44c3['commandName']){const _0x169a57=_0x2d44c3['commandParams'][0x0]['newValue'];return _0x169a57?{'type':'format','content':o(_0x30c99a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x169a57+'\x22')}:{'type':'format','content':o(_0x30c99a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d44c3['commandName']){const _0x5c11ff=_0x2d44c3['commandParams'][0x0]['width'];return _0x5c11ff?{'type':'format','content':o(_0x30c99a,'*Set\x20image\x20width:*\x20%0',_0x5c11ff)}:{'type':'format','content':o(_0x30c99a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3b6e0a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x330e83=this['editor']['locale'],_0x242883=this['editor']['plugins']['get']('TrackChangesEditing');_0x242883['enableDefaultAttributesIntegration']('replaceImageSource'),_0x242883['registerBlockAttribute']('src'),_0x242883['descriptionFactory']['registerDescriptionCallback'](_0x596cca=>{if('attribute'!=_0x596cca['type'])return;const {data:_0xfd52fe}=_0x596cca;return _0xfd52fe&&'src'==_0xfd52fe['key']?_0xfd52fe['newValue']&&_0xfd52fe['oldValue']?{'type':'format','content':o(_0x330e83,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48eda4=this['editor']['plugins']['get']('TrackChangesEditing');_0x48eda4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48eda4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48eda4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48eda4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dbf7e=this['editor'],_0x1e4049=_0x3dbf7e['locale'];_0x3dbf7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f0e3c=>{if('formatBlock'!=_0x5f0e3c['type']&&'formatInline'!=_0x5f0e3c['type'])return;const {data:_0x379a85}=_0x5f0e3c;if(!_0x379a85||'replaceImageSource'!=_0x379a85['commandName'])return;return{'type':'format','content':o(_0x1e4049,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3b6e0a{['afterInit'](){const _0x28c8e7=this['editor'];if(!_0x28c8e7['plugins']['has']('ImageStyleEditing'))return;const _0x302a80=_0x28c8e7['plugins']['get']('TrackChangesEditing'),_0x20d966=_0x28c8e7['plugins']['get']('ImageUtils'),_0x211515={};_0x302a80['enableCommand']('imageStyle',(_0x3292f5,_0x236ae3)=>{const _0x4be294=_0x28c8e7['plugins']['get']('Users')['me'],_0x22758f=_0x28c8e7['commands']['get']('imageStyle');let _0x13f9bf=_0x20d966['getClosestSelectedImageElement'](_0x28c8e7['model']['document']['selection']),_0x1b560a=_0x28c8e7['model']['createRangeOn'](_0x13f9bf),_0x2682a7=_0x22758f['value'];if(_0x2682a7==_0x236ae3['value'])return;const _0x12897e={'commandName':'imageStyle','commandParams':[_0x236ae3],'formatGroupId':_0x1f1646()};_0x28c8e7['model']['change'](()=>{if(_0x302a80['getSuggestions']()['filter'](_0x3334ec=>_0x3334ec['isInContent']&&_0x4be294==_0x3334ec['author']&&('formatBlock'==_0x3334ec['type']||'formatInline'==_0x3334ec['type'])&&('imageStylePreApply'==_0x3334ec['subType']||'imageStylePostApply'==_0x3334ec['subType'])&&_0x3334ec['getFirstRange']()['isEqual'](_0x1b560a))['forEach'](_0x4980d5=>_0x302a80['discardSuggestion'](_0x4980d5['head'])),_0x13f9bf=_0x20d966['getClosestSelectedImageElement'](_0x28c8e7['model']['document']['selection']),_0x1b560a=_0x28c8e7['model']['createRangeOn'](_0x13f9bf),_0x22758f['refresh'](),_0x28c8e7['commands']['get']('imageTypeInline')['refresh'](),_0x28c8e7['commands']['get']('imageTypeBlock')['refresh'](),_0x2682a7=_0x22758f['value'],_0x2682a7!=_0x236ae3['value'])return _0x20d966['isInlineImage'](_0x13f9bf)&&_0x22758f['shouldConvertImageType'](_0x236ae3['value'],_0x13f9bf)?(_0x3292f5({..._0x236ae3,'setImageSizes':!0x1}),_0x13f9bf=_0x20d966['getClosestSelectedImageElement'](_0x28c8e7['model']['document']['selection']),void _0x302a80['markBlockFormat'](_0x13f9bf,{..._0x12897e,'commandReversedParams':[{'value':_0x2682a7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20d966['isBlockImage'](_0x13f9bf)?_0x302a80['markBlockFormat'](_0x13f9bf,_0x12897e,[],'imageStylePostApply'):_0x302a80['markInlineFormat'](_0x1b560a,_0x12897e,'imageStylePostApply'));});});for(const _0x2467e9 of _0x28c8e7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x211515[_0x2467e9['name']]=_0x2467e9['title']['toLowerCase']();_0x302a80['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x302a80['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x302a80['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x302a80['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x537c51])=>{_0x20d966['setImageNaturalSizeAttributes'](_0x537c51['getContainedElement']());}),_0x302a80['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xd6c59a,_0x5d45b2)=>{_0x302a80['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xd6c59a,{'commandName':_0x5d45b2['commandName'],'commandParams':_0x5d45b2['commandReversedParams']});}),_0x302a80['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x114f8c,_0x2f9841){if(_0x4a4e45(_0x114f8c,_0x2f9841))return[_0x114f8c,_0x2f9841];if(_0x4a4e45(_0x2f9841,_0x114f8c))return[_0x2f9841,_0x114f8c];return null;});const _0x5b6835=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a4e45(_0x488fbe,_0x5d84f2){const _0x1c5623=_0x5b6835['findIndex'](({type:_0x1ada88,subType:_0x104a71})=>_0x488fbe['type']==_0x1ada88&&_0x488fbe['subType']==_0x104a71),_0x2bf19e=_0x5b6835['findIndex'](({type:_0x4da450,subType:_0x58c90b})=>_0x5d84f2['type']==_0x4da450&&_0x5d84f2['subType']==_0x58c90b);if(_0x1c5623<0x0||_0x2bf19e<0x0)return!0x1;const _0x34a03a=_0x488fbe['getFirstRange'](),_0x46ff99=_0x5d84f2['getFirstRange']();if((0x0==_0x1c5623||0x1==_0x1c5623)&&0x2==_0x2bf19e&&_0x34a03a['isIntersecting'](_0x46ff99))return!0x0;if(0x2==_0x1c5623&&0x3==_0x2bf19e){const _0x346722=_0x302a80['_findSuggestions'](_0x34a03a,'insertion')['filter'](({suggestion:_0x17ebdc,meta:_0x4f5feb})=>_0x4f5feb['isOwn']&&'convertInlineImageToBlock'==_0x17ebdc['subType']);if(_0x346722['length']>0x1&&_0x46ff99['end']['isEqual'](_0x34a03a['start']))return!0x0;if(0x1==_0x346722['length']&&(_0x34a03a['start']['isEqual'](_0x46ff99['end'])||_0x34a03a['end']['isEqual'](_0x46ff99['start'])))return!0x0;}if(0x3==_0x1c5623&&0x3==_0x2bf19e&&_0x34a03a['start']['isBefore'](_0x46ff99['start'])){const _0x267da5=_0x34a03a['end']['nodeAfter'],_0x1e58fc=_0x46ff99['start']['nodeBefore'];return _0x20d966['isBlockImage'](_0x267da5)&&_0x267da5===_0x1e58fc;}return!0x1;}_0x28c8e7['model']['document']['registerPostFixer'](()=>{let _0x140a66=!0x1;const _0x494a92=Array['from'](_0x28c8e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b8882,data:_0x1a29e2}of _0x494a92){const {group:_0xeaf7d8,type:_0x5517d3,subType:_0xb09ad1,id:_0x2905b5}=_0x302a80['_splitMarkerName'](_0x1b8882);if('suggestion'==_0xeaf7d8&&_0x302a80['hasSuggestion'](_0x2905b5)){if('formatBlock'==_0x5517d3&&('imageStylePreApply'==_0xb09ad1||'imageStylePostApply'==_0xb09ad1)){const _0x169536=_0x302a80['getSuggestion'](_0x2905b5);if(_0x1a29e2['newRange']){const _0x694f1f=_0x169536['getFirstRange']()['getContainedElement']();if(_0x20d966['isBlockImage'](_0x694f1f))continue;_0x302a80['discardSuggestion'](_0x169536),_0x140a66=!0x0;}}if('insertion'==_0x5517d3&&'imageCaption'==_0xb09ad1&&!_0x1a29e2['newRange']){const _0x52b51a=_0x302a80['getSuggestion'](_0x2905b5);_0x52b51a['next']&&_0x52b51a['next']['isInContent']&&(_0x302a80['discardSuggestion'](_0x52b51a['next']),_0x140a66=!0x0);}}}return _0x140a66;}),this['_registerLegacyDescription'](_0x211515);}['_registerLegacyDescription'](_0x1b769b){const _0x33322b=this['editor'],_0x13b4aa=_0x33322b['locale'];_0x33322b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487825=>{if('formatBlock'!=_0x487825['type']&&'formatInline'!=_0x487825['type'])return;const {data:_0x4c6b7c}=_0x487825;if(!_0x4c6b7c||'imageStyle'!=_0x4c6b7c['commandName'])return;const _0x10b013=_0x4c6b7c['commandParams'][0x0]['value'];return _0x54b8b0('side'===_0x10b013?o(_0x13b4aa,'FORMAT_SIDE_IMAGE'):_0x1b769b[_0x10b013]||_0x10b013);function _0x54b8b0(_0x25855d){return{'type':'format','content':o(_0x13b4aa,'*Format:*\x20%0',_0x25855d)};}});}}class at extends _0x3b6e0a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b28e3){super(_0x3b28e3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x43b07b=this['editor'],_0x34869e=_0x43b07b['commands']['get']('importWord'),_0x2c0efd=_0x43b07b['commands']['get']('trackChanges');_0x34869e&&(_0x34869e['on']('execute',(_0x102e0c,[,_0x5e6d34])=>{this['_trackChangesValueDuringImport']=_0x2c0efd['value'],_0x5e6d34['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x34869e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x34869e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c0efd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x43b07b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x322228,_0x745e84){const {suggestions:_0x2d86c5}=_0x745e84,_0x216603=this['editor']['commands']['get']('trackChanges'),_0x16a334=_0x216603['value'];this['_trackChangesValueDuringImport']!==_0x16a334&&(_0x216603['execute'](),this['_trackChangesExecuted']=!0x0),_0x2d86c5&&_0x2d86c5['forEach'](({id:_0x5470ab,type:_0xd60f0c,author:_0x5eea7d,created_at:_0x3a93a5})=>{const _0x2e5357={'id':_0x5470ab,'type':_0xd60f0c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5eea7d,'createdAt':_0x3a93a5?new Date(_0x3a93a5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2e5357);});}}class ct extends _0x3b6e0a{['afterInit'](){const _0x3ddbfa=this['editor'],_0x13446d=_0x3ddbfa['plugins']['get']('TrackChangesEditing');if(_0x3ddbfa['plugins']['has']('IndentEditing')&&(_0x13446d['enableCommand']('indent'),_0x13446d['enableCommand']('outdent')),_0x3ddbfa['plugins']['has']('IndentBlock')){for(const _0x4b4d1a of['indentBlock','outdentBlock'])_0x13446d['enableDefaultAttributesIntegration'](_0x4b4d1a);}const _0x2af334=_0x3ddbfa['locale'];_0x13446d['registerBlockAttribute']('blockIndent'),_0x13446d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2af334,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b49a3=this['editor'],_0x52822d=_0x3b49a3['locale'],_0x5b434d=_0x3b49a3['plugins']['get']('TrackChangesEditing');_0x5b434d['descriptionFactory']['registerDescriptionCallback'](_0x1ce3a0=>{if('formatBlock'!=_0x1ce3a0['type'])return;const {data:_0x1f325e}=_0x1ce3a0;if(!_0x1f325e)return;if('indentBlock'!=_0x1f325e['commandName']&&'outdentBlock'!=_0x1f325e['commandName'])return;const _0x2a62e8=_0x1ce3a0['getItems']()[0x0],_0x194eab=_0x5b434d['descriptionFactory']['getItemLabel'](_0x2a62e8);return'indentBlock'==_0x1f325e['commandName']?{'type':'format','content':o(_0x52822d,'*Indent:*\x20%0',_0x194eab)}:'outdentBlock'==_0x1f325e['commandName']?{'type':'format','content':o(_0x52822d,'*Outdent:*\x20%0',_0x194eab)}:void 0x0;});}}class ut extends _0x3b6e0a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3b6e0a{['afterInit'](){const _0x599a7c=this['editor'];if(!_0x599a7c['plugins']['has']('LinkEditing'))return;const _0x2bf1d0=_0x599a7c['plugins']['get']('TrackChangesEditing'),_0x5e566f=_0x599a7c['commands']['get']('link');_0x2bf1d0['enableDefaultAttributesIntegration']('link'),_0x2bf1d0['enableDefaultAttributesIntegration']('unlink'),_0x2bf1d0['registerInlineAttribute']('linkHref');for(const _0x49ad0c of _0x5e566f['manualDecorators'])_0x2bf1d0['registerInlineAttribute'](_0x49ad0c['id']),_0x2bf1d0['descriptionFactory']['registerAttributeLabel'](_0x49ad0c['id'],'link\x20('+_0x49ad0c['label']['toLowerCase']()+')');_0x2bf1d0['descriptionFactory']['registerDescriptionCallback'](_0x2230b6=>{if('attribute'!=_0x2230b6['type'])return;const {data:_0x52cffe}=_0x2230b6;if(!_0x52cffe||'linkHref'!=_0x52cffe['key'])return;const _0x231889=_0x52cffe['newValue'],_0x3de14f=_0x599a7c['locale'];return{'type':'format','content':null==_0x231889?o(_0x3de14f,'*Remove\x20link*'):o(_0x3de14f,'*Set\x20link:*\x20%0','\x22'+_0x231889+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445cf3=this['editor'],_0x647f8f=_0x445cf3['locale'];_0x445cf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8fb763=>{if('formatInline'!=_0x8fb763['type'])return;const {data:_0x397d35}=_0x8fb763;if(_0x397d35){if('link'==_0x397d35['commandName']){const _0x442a3c=_0x397d35['commandParams'][0x0];return{'type':'format','content':o(_0x647f8f,'*Set\x20link:*\x20%0','\x22'+_0x442a3c+'\x22')};}return'unlink'==_0x397d35['commandName']?{'type':'format','content':o(_0x647f8f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3b6e0a{['afterInit'](){const _0x352bc4=this['editor'],_0x1f0e01=_0x352bc4['locale'];if(!_0x352bc4['plugins']['has']('LegacyListEditing'))return;const _0x54602c=_0x352bc4['plugins']['get']('TrackChangesEditing'),_0x13f38a=_0x352bc4['plugins']['has']('LegacyTodoListEditing');function _0x33d987(_0x4f54bb){return()=>{const _0x5db06c=_0x352bc4['model']['document']['selection'],_0xdadce8=_0x352bc4['commands']['get'](_0x4f54bb);if(_0xdadce8['value'])return void _0x352bc4['execute']('paragraph',{});const _0x58a4c7=_0x4f54bb['slice'](0x0,-0x4),_0x225333=function(_0x20e400,_0x19885f,_0x489d3f){let _0x2846ec=Array['from'](_0x20e400)['filter'](_0x1f9326=>function(_0x305161,_0x315b55){return _0x315b55['checkChild'](_0x305161['parent'],'listItem')&&!_0x315b55['isObject'](_0x305161);}(_0x1f9326,_0x489d3f));_0x2846ec=_0x2846ec['filter'](_0x2350aa=>!_0x2350aa['is']('element','listItem')||_0x2350aa['getAttribute']('listType')!=_0x19885f);const _0x2225ba=new Set();for(const _0x463685 of _0x2846ec)_0x463685['is']('element','listItem')?_0x2225ba['add'](fe(_0x463685)):_0x2225ba['add'](_0x463685);return Array['from'](_0x2225ba);}(_0x5db06c['getSelectedBlocks'](),_0x58a4c7,_0x352bc4['model']['schema']);_0x352bc4['model']['change'](()=>{for(const _0x1a2348 of _0x225333)_0x54602c['markBlockFormat'](_0x1a2348,{'commandName':_0x4f54bb,'commandParams':[{'forceValue':!_0xdadce8['value']}],'formatGroupId':'blockName'},ue(_0x1a2348));});};}function _0x26034e(_0x27f3e5){return()=>{const _0x494daf=function(_0x75a112){let _0x24dc51=Array['from'](_0x75a112);const _0x34064c=_0x24dc51['findIndex'](_0x43cd38=>'listItem'!=_0x43cd38['name']);return _0x34064c>-0x1&&(_0x24dc51=_0x24dc51['slice'](0x0,_0x34064c)),_0x24dc51;}(_0x352bc4['model']['document']['selection']['getSelectedBlocks']()),_0x4abd3c=_0x352bc4['model']['createRange'](_0x352bc4['model']['createPositionAt'](_0x494daf[0x0],'before'),_0x352bc4['model']['createPositionAt'](_0x494daf[_0x494daf['length']-0x1],'end'));_0x352bc4['model']['change'](()=>{_0x54602c['markBlockFormat'](_0x4abd3c,{'commandName':_0x27f3e5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f2049){const _0x2ccfb9=new Set();for(const _0x580a2d of _0x4f2049){let _0x37f569=_0x580a2d['nextSibling'];for(;_0x37f569&&_0x37f569['getAttribute']('listIndent')>_0x580a2d['getAttribute']('listIndent');)_0x2ccfb9['add'](_0x37f569),_0x37f569=_0x37f569['nextSibling'];}return Array['from'](_0x2ccfb9);}(_0x494daf));});};}_0x54602c['enableCommand']('numberedList',_0x33d987('numberedList')),_0x54602c['enableCommand']('bulletedList',_0x33d987('bulletedList')),_0x13f38a&&_0x54602c['enableCommand']('todoList',_0x33d987('todoList')),_0x54602c['enableCommand']('indentList',_0x26034e('indentList')),_0x54602c['enableCommand']('outdentList',_0x26034e('outdentList')),_0x13f38a&&_0x54602c['enableCommand']('checkTodoList',()=>{const _0x228b4e=_0x352bc4['commands']['get']('checkTodoList'),_0x14612f=Array['from'](_0x228b4e['_selectedElements']);_0x14612f['filter'](_0x16fc5b=>_0x16fc5b['getAttribute']('todoListChecked')!=_0x228b4e['value']),_0x352bc4['model']['change'](()=>{for(const _0x4f0ed5 of _0x14612f)_0x54602c['markBlockFormat'](_0x4f0ed5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x228b4e['value']}]});});}),_0x54602c['descriptionFactory']['registerElementLabel']('listItem',_0xaa8c3=>o(_0x1f0e01,'ELEMENT_LIST_ITEM',_0xaa8c3)),_0x54602c['descriptionFactory']['registerDescriptionCallback'](_0x2758b0=>{if('formatBlock'!=_0x2758b0['type']&&'formatInline'!=_0x2758b0['type'])return;const {data:_0x11f461}=_0x2758b0;if(_0x11f461){if('numberedList'==_0x11f461['commandName']||'bulletedList'==_0x11f461['commandName']||'todoList'==_0x11f461['commandName'])switch(_0x11f461['commandName']['replace']('List','')){case'bulleted':return _0x1a2ffa(o(_0x1f0e01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a2ffa(o(_0x1f0e01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a2ffa(o(_0x1f0e01,'ELEMENT_TODO_LIST'));}if('indentList'==_0x11f461['commandName'])return{'type':'format','content':o(_0x1f0e01,'*Indent:*\x20%0',o(_0x1f0e01,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x11f461['commandName'])return{'type':'format','content':o(_0x1f0e01,'*Outdent:*\x20%0',o(_0x1f0e01,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x11f461['commandName'])return _0x11f461['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f0e01,'*Check\x20item*')}:{'type':'format','content':o(_0x1f0e01,'*Uncheck\x20item*')};}function _0x1a2ffa(_0x506d2e){return{'type':'format','content':o(_0x1f0e01,'*Change\x20to:*\x20%0',_0x506d2e)};}});}}function fe(_0x311c95){const _0x185d1e=_0x311c95['getAttribute']('listIndent');if(0x0==_0x185d1e)return _0x311c95;let _0x9d9ef6=_0x311c95;for(;_0x311c95['previousSibling']&&_0x311c95['previousSibling']['is']('element','listItem');){const _0x537860=_0x311c95['previousSibling']['getAttribute']('listIndent');if(_0x537860==_0x185d1e)_0x9d9ef6=_0x311c95['previousSibling'];else{if(_0x537860<_0x185d1e)break;}_0x311c95=_0x311c95['previousSibling'];}return _0x9d9ef6;}function ue(_0x9656c6){const _0x3cc14d=[];if(_0x9656c6['is']('element','listItem')&&_0x9656c6['getAttribute']('listIndent')>0x0){let _0x233ec3=_0x9656c6['nextSibling'];for(;_0x233ec3&&'listItem'==_0x233ec3['name']&&_0x233ec3['getAttribute']('listIndent')==_0x9656c6['getAttribute']('listIndent');)_0x3cc14d['push'](_0x233ec3),_0x233ec3=_0x233ec3['nextSibling'];}return _0x3cc14d;}class W extends _0x3b6e0a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a5efb=this['editor']['config']['get']('list.properties'),_0x4991f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a5efb['styles']&&_0x4991f3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a5efb['reversed']&&_0x4991f3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a5efb['startIndex']&&_0x4991f3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4991f3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x14b6a8,_0x3939a7={}){const _0x4a959b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x268565=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4a959b['markMultiRangeBlockFormat'](_0x268565,{'commandName':'listStyle','commandParams':[{'type':_0x3939a7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x543678,_0x2da405={}){const _0x2bbcdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf638=this['_getSuggestionBlocks'](_0x1e85a6=>_0x1e85a6['is']('element','listItem')&&'numbered'===_0x1e85a6['getAttribute']('listType'));if(_0x3cf638['length']<0x1)return;const _0x10ae7c=_0x3cf638['map'](_0x142789=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x142789,'before'),this['editor']['model']['createPositionAt'](_0x142789,0x0)));this['editor']['model']['change'](()=>{_0x2bbcdd['markMultiRangeBlockFormat'](_0x10ae7c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2da405['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x23a78c,_0x4fc0e5={}){const _0x484bb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e87c=this['_getSuggestionBlocks'](_0x389912=>_0x389912['is']('element','listItem')&&'numbered'===_0x389912['getAttribute']('listType'));if(_0x15e87c['length']<0x1)return;const _0x5481c1=_0x15e87c['map'](_0x347176=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x347176,'before'),this['editor']['model']['createPositionAt'](_0x347176,0x0)));this['editor']['model']['change'](()=>{_0x484bb5['markMultiRangeBlockFormat'](_0x5481c1,{'commandName':'listStart','commandParams':[{'startIndex':_0x4fc0e5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x311370){if('formatBlock'!=_0x311370['type']&&'formatInline'!=_0x311370['type'])return;const _0xad3715=this['editor']['locale'],{data:_0x2598f4}=_0x311370;if(!_0x2598f4)return;let _0x5cfdfb,_0xfa1160;switch(_0x2598f4['commandName']){case'listStyle':_0x5cfdfb='*Change\x20to:*\x20%0',_0xfa1160={'type':'format','content':o(_0xad3715,_0x5cfdfb,o(_0xad3715,this['_getTranslationKeyForListStyle'](_0x2598f4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5cfdfb=_0x2598f4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfa1160={'type':'format','content':o(_0xad3715,_0x5cfdfb)};break;case'listStart':_0x5cfdfb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfa1160={'type':'format','content':o(_0xad3715,_0x5cfdfb,_0x2598f4['commandParams'][0x0]['startIndex'])};}return _0xfa1160;}['_getSuggestionBlocksForListStyle'](){const _0x2daf78=this['editor']['plugins']['get']('LegacyListUtils');let _0x4679f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4679f2[0x0]?.['is']('element','listItem')&&_0x4679f2['unshift'](..._0x2daf78['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4679f2[_0x4679f2['length']-0x1]?.['is']('element','listItem')&&_0x4679f2['push'](..._0x2daf78['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4679f2=[...new Set(_0x4679f2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4679f2=_0x4679f2['filter'](_0x1d3c61=>_0x1d3c61['is']('element','listItem'))),_0x4679f2;}['_getSuggestionBlocks'](_0x3c4b9b){const _0x190134=this['editor']['plugins']['get']('LegacyListUtils');let _0x530c32=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c4b9b)['map'](_0x1871e3=>{const _0x2cd3b2=this['editor']['model']['createPositionAt'](_0x1871e3,0x0);return[..._0x190134['getSiblingNodes'](_0x2cd3b2,'backward'),..._0x190134['getSiblingNodes'](_0x2cd3b2,'forward')];})['flat']();return _0x530c32=[...new Set(_0x530c32)],_0x530c32;}['_getTranslationKeyForListStyle'](_0x5b04b5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b04b5)||'default')['toUpperCase']()+'_LIST_'+_0x5b04b5['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3b6e0a{['afterInit'](){const _0x442f34=this['editor'];if(!_0x442f34['plugins']['has']('MediaEmbedEditing'))return;const _0x5da6f9=_0x442f34['plugins']['get']('TrackChangesEditing'),_0x40d146=_0x442f34['locale'];_0x5da6f9['enableCommand']('mediaEmbed'),_0x5da6f9['descriptionFactory']['registerElementLabel']('media',_0x55700d=>o(_0x40d146,'ELEMENT_MEDIA',_0x55700d)),_0x442f34['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x258136,{writer:_0x2b6628,options:_0x500899})=>{if(_0x500899['showSuggestionHighlights'])return _0x2b6628['createEmptyElement']('div');},'converterPriority':'high'}),_0x442f34['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4611ce,_0x4a2755,_0x3897de)=>{_0x3897de['options']['showSuggestionHighlights']&&_0x4611ce['stop']();},{'priority':'high'});}}class mt extends _0x3b6e0a{['afterInit'](){const _0x3df2fb=this['editor'];_0x3df2fb['plugins']['has']('MentionEditing')&&_0x3df2fb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3b6e0a{['afterInit'](){const _0x39d681=this['editor'];if(!_0x39d681['plugins']['has']('MergeFieldsEditing'))return;_0x39d681['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x39d681['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4648f8=_0x39d681['plugins']['get']('TrackChangesEditing'),_0x2c9ecf=_0x39d681['locale'];_0x4648f8['descriptionFactory']['registerElementLabel']('mergeField',_0x2183a9=>o(_0x2c9ecf,'ELEMENT_MERGE_FIELD',_0x2183a9)),_0x4648f8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a478b=>o(_0x2c9ecf,'ELEMENT_MERGE_FIELD',_0x5a478b)),_0x4648f8['descriptionFactory']['registerDescriptionCallback'](_0x3b6294=>{if('insertion'!=_0x3b6294['type']&&'deletion'!=_0x3b6294['type'])return;const _0x463022=_0x3b6294['getContainedElement']();if(null==_0x463022)return;if(!_0x463022['is']('element','mergeField')&&!_0x463022['is']('element','mergeFieldBlock'))return;const _0x58b2b6=_0x39d681['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x463022['getAttribute']('id'));return'insertion'==_0x3b6294['type']?{'type':'insertion','content':o(_0x2c9ecf,'*Insert:*\x20%0','\x22'+_0x58b2b6+'\x22\x20'+o(_0x2c9ecf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2c9ecf,'*Remove:*\x20%0','\x22'+_0x58b2b6+'\x22\x20'+o(_0x2c9ecf,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3b6e0a{['afterInit'](){const _0x30c458=this['editor'],_0x13b47a=_0x30c458['plugins']['get']('TrackChangesEditing');_0x30c458['plugins']['has']('MultiLevelList')&&(_0x13b47a['enableDefaultAttributesIntegration']('multiLevelList'),_0x13b47a['registerBlockAttribute']('listMarkerStyle'),_0x13b47a['descriptionFactory']['registerDescriptionCallback'](_0x5ab742=>this['handleDescriptions'](_0x5ab742)));}['handleDescriptions'](_0x15edd3){const _0x4f8ac2=this['editor']['locale'],{data:_0x2f0fb1}=_0x15edd3,_0x3a1a53={'type':'format','content':''};if(_0x2f0fb1&&'listMarkerStyle'==_0x2f0fb1['key']){if(!_0x2f0fb1['oldValue'])return{'type':'format','content':o(_0x4f8ac2,'*Set\x20format:*\x20%0',o(_0x4f8ac2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0fb1['newValue']+')'};if(!_0x2f0fb1['newValue']){let _0xbecb76=_0x15edd3['head'];for(;_0xbecb76;){if(_0xbecb76['data']&&'listType'==_0xbecb76['data']['key']&&_0xbecb76['data']['newValue'])return _0x3a1a53;_0xbecb76=_0xbecb76['next'];}return{'type':'format','content':o(_0x4f8ac2,'*Remove\x20format:*\x20%0',o(_0x4f8ac2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0fb1['oldValue']+')'};}}}}class kt extends _0x3b6e0a{['afterInit'](){const _0x450cc4=this['editor'];if(!_0x450cc4['plugins']['has']('PageBreakEditing'))return;_0x450cc4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58beb9=_0x450cc4['plugins']['get']('TrackChangesEditing'),_0x5ad160=_0x450cc4['locale'];_0x58beb9['descriptionFactory']['registerElementLabel']('pageBreak',_0x48f517=>o(_0x5ad160,'ELEMENT_PAGE_BREAK',_0x48f517));}}class bt extends _0x3b6e0a{['afterInit'](){const _0x405531=this['editor'];if(!_0x405531['plugins']['has']('Paragraph'))return;const _0x5e5872=_0x405531['locale'],_0x291d61=_0x405531['plugins']['get']('TrackChangesEditing');_0x291d61['descriptionFactory']['registerElementLabel']('paragraph',_0x28602c=>o(_0x5e5872,'ELEMENT_PARAGRAPH',_0x28602c)),_0x291d61['enableDefaultAttributesIntegration']('paragraph'),_0x291d61['enableCommand']('insertParagraph'),_0x405531['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x405531),{'priority':'highest'}),_0x405531['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c9735,_0x26b340,_0x2b649a)=>{_0x2b649a['options']['showSuggestionHighlights']&&nr(_0x405531,{'showActiveMarker':!0x1})(_0x3c9735,_0x26b340,_0x2b649a);},{'priority':'highest'});const _0x5b7d7c=_0x291d61['descriptionFactory'];_0x5b7d7c['registerDescriptionCallback'](_0x8652c4=>{if('insertion'!==_0x8652c4['type'])return;const {start:_0x3ca596,end:_0x1fba79}=_0x8652c4['getFirstRange']();if(!_0x3ca596['isTouching'](_0x1fba79)||!_0x3ca596['nodeAfter'])return;const _0x283a15=_0x405531['model']['schema'],_0xe7966d=_0x3ca596['nodeAfter'];return _0x283a15['isBlock'](_0xe7966d)&&!_0x283a15['isLimit'](_0xe7966d)&&_0x283a15['checkChild'](_0xe7966d,'$text')?{'type':'insertion','content':o(_0x5e5872,'*Insert:*\x20%0',_0x5b7d7c['getItemLabel'](_0xe7966d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4158a4=this['editor'],_0x39f55d=_0x4158a4['locale'];_0x4158a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db687=>{if('formatBlock'!=_0x4db687['type'])return;const {data:_0x119517}=_0x4db687;return _0x119517&&'paragraph'==_0x119517['commandName']?{'type':'format','content':o(_0x39f55d,'*Change\x20to:*\x20%0',o(_0x39f55d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x6e3152,{showActiveMarker:_0x226212=!0x0}={}){return(_0xef2430,_0x592f91,_0x3ec503)=>{const _0x319b14=_0x6e3152['plugins']['get']('TrackChangesEditing'),_0x3536ce=_0x592f91['markerRange']['start'],_0x11e84b=_0x592f91['markerRange']['end'],_0x480f8c=_0x6e3152['model']['schema'];if(!_0x3536ce['isTouching'](_0x11e84b)||!_0x3536ce['nodeAfter'])return;const _0x325ccb=_0x3536ce['nodeAfter'];if(_0x480f8c['isBlock'](_0x325ccb)&&!_0x480f8c['isLimit'](_0x325ccb)&&_0x480f8c['checkChild'](_0x325ccb,'$text')){if(!_0x3ec503['consumable']['consume'](_0x592f91['markerRange'],_0xef2430['name']))return;const {authorId:_0xe87b50}=_0x319b14['_splitMarkerName'](_0x592f91['markerName']),_0xe0e24e=_0x3ec503['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xe87b50}),_0x5e21bf=_0x3ec503['mapper']['toViewPosition'](_0x11e84b);_0x226212&&_0x319b14['activeMarkers']['includes'](_0x592f91['markerName'])&&_0x3ec503['writer']['addClass']('ck-suggestion-marker--active',_0xe0e24e),_0x3ec503['writer']['insert'](_0x5e21bf,_0xe0e24e),_0x3ec503['mapper']['bindElementToMarker'](_0xe0e24e,_0x592f91['markerName']);}};}class wt extends _0x3b6e0a{['afterInit'](){const _0x4b2455=this['editor'];if(!_0x4b2455['plugins']['has']('RemoveFormatEditing'))return;_0x4b2455['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd2ec1a=this['editor'];_0xd2ec1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fd04=>{if('formatBlock'!=_0x14fd04['type']&&'formatInline'!=_0x14fd04['type'])return;const {data:_0x2edc36}=_0x14fd04;return _0x2edc36&&'removeFormat'==_0x2edc36['commandName']?{'type':'format','content':o(_0xd2ec1a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3b6e0a{['afterInit'](){const _0x58f840=this['editor'];if(!_0x58f840['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xbd8591=_0x58f840['plugins']['get']('TrackChangesEditing');_0xbd8591['enableCommand']('goToPreviousRestrictedEditingException'),_0xbd8591['enableCommand']('goToNextRestrictedEditingException');const _0xb2124a=_0x58f840['plugins']['get']('RestrictedEditingModeEditing');_0xb2124a['enableCommand']('trackChanges'),_0xb2124a['enableCommand']('acceptSuggestion'),_0xb2124a['enableCommand']('discardSuggestion'),_0xb2124a['enableCommand']('acceptAllSuggestions'),_0xb2124a['enableCommand']('discardAllSuggestions'),_0xb2124a['enableCommand']('acceptSelectedSuggestions'),_0xb2124a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3b6e0a{static get['requires'](){return[_0x4f3c35];}['init'](){const _0x559e34=this['editor'],_0x4c944c=_0x559e34['plugins']['get']('TrackChangesEditing');_0x4c944c['enableCommand']('shiftEnter'),_0x559e34['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x559e34),{'priority':'high'}),_0x559e34['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x559e34),{'priority':'high'}),_0x559e34['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c6526,_0x3a3cde,_0x4849ed)=>{_0x4849ed['options']['showSuggestionHighlights']&&ge(_0x559e34,{'showActiveMarker':!0x1})(_0x2c6526,_0x3a3cde,_0x4849ed);}),_0x4c944c['descriptionFactory']['registerElementLabel']('softBreak',_0x14d132=>o(_0x559e34['locale'],'ELEMENT_LINE_BREAK',_0x14d132));}}function ge(_0x361664,{showActiveMarker:_0x5d17b7=!0x0}={}){return(_0x473609,_0x5fd5e8,_0x525224)=>{const _0x1ebe6d=_0x361664['plugins']['get']('TrackChangesEditing');if(!_0x525224['consumable']['test'](_0x5fd5e8['markerRange'],_0x473609['name']))return;const _0x2a1403=_0x361664['model'];for(const _0x257dfc of _0x5fd5e8['markerRange']['getItems']()){if(!_0x257dfc['is']('element','softBreak'))continue;const _0x4bd6de='deletion'==_0x5fd5e8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x31a8f3}=_0x1ebe6d['_splitMarkerName'](_0x5fd5e8['markerName']),_0x26deb8=_0x525224['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bd6de,'data-author-id':_0x31a8f3}),_0xb5d88c=_0x525224['mapper']['toViewPosition'](_0x2a1403['createPositionBefore'](_0x257dfc));_0x5d17b7&&_0x1ebe6d['activeMarkers']['includes'](_0x5fd5e8['markerName'])&&_0x525224['writer']['addClass']('ck-suggestion-marker--active',_0x26deb8),_0x525224['writer']['insert'](_0xb5d88c,_0x26deb8),_0x525224['mapper']['bindElementToMarker'](_0x26deb8,_0x5fd5e8['markerName']);}};}class St extends _0x3b6e0a{['afterInit'](){const _0x1af7d3=this['editor'],_0x5b3ad1=_0x1af7d3['model'],_0x582bcd=_0x1af7d3['locale'];if(!_0x1af7d3['plugins']['has']('StandardEditingModeEditing'))return;const _0x435bc4=_0x1af7d3['plugins']['get']('TrackChangesEditing'),_0x18b902='restrictedEditingException',_0x320ca0=_0x1af7d3['commands']['get'](_0x18b902);_0x435bc4['enableCommand'](_0x18b902,(_0x30403e,_0x5457b6={})=>{const _0x7429e0=_0x5b3ad1['document']['selection'];if(_0x7429e0['isCollapsed'])return void _0x30403e(_0x5457b6);const _0x26e99f=void 0x0!==_0x5457b6['forceValue']?_0x5457b6['forceValue']:!_0x320ca0['value'];_0x5b3ad1['change'](()=>{const _0x486847=Array['from'](_0x7429e0['getRanges']());for(const _0x49f164 of _0x486847){const _0x2832c1=_0x26e99f?[_0x49f164]:io(_0x18b902,_0x49f164,_0x5b3ad1);for(const _0x182bb3 of _0x2832c1)_0x435bc4['markInlineFormat'](_0x182bb3,{'commandName':_0x18b902,'commandParams':[{'forceValue':_0x26e99f}]});}});}),_0x435bc4['descriptionFactory']['registerDescriptionCallback'](_0x252034=>{if('formatBlock'!=_0x252034['type']&&'formatInline'!=_0x252034['type'])return;const {data:_0x3e2c46}=_0x252034;return _0x3e2c46&&_0x3e2c46['commandName']==_0x18b902?_0x3e2c46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x582bcd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x582bcd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3b6e0a{['afterInit'](){const _0x279cef=this['editor'];if(!_0x279cef['plugins']['has']('Style')||!_0x279cef['plugins']['has']('DataSchema'))return;const _0x10c5b8=_0x279cef['plugins']['get']('TrackChangesEditing'),_0x480942=_0x279cef['locale'],_0x455892=_0x279cef['config']['get']('style')||{},_0x1f02d0=_0x279cef['plugins']['get']('GeneralHtmlSupport'),_0x262196=_0x279cef['plugins']['get']('StyleUtils')['normalizeConfig'](_0x279cef['plugins']['get']('DataSchema'),_0x455892['definitions']);_0x10c5b8['enableDefaultAttributesIntegration']('style');const _0x537895=new Set();for(const _0x5a3fba of _0x262196['block']){const _0x1631df=_0x1f02d0['getGhsAttributeNameForElement'](_0x5a3fba['element']);_0x537895['add'](_0x1631df);}const _0x387cbe=new Set();for(const _0x504a4a of _0x262196['inline']){const _0x1b6dbd=_0x1f02d0['getGhsAttributeNameForElement'](_0x504a4a['element']);_0x387cbe['add'](_0x1b6dbd);for(const _0x4228d6 of _0x504a4a['ghsAttributes'])_0x387cbe['add'](_0x4228d6);}for(const _0x56ac4d of _0x537895)_0x10c5b8['registerBlockAttribute'](_0x56ac4d),_0x10c5b8['descriptionFactory']['registerAttributeLabel'](_0x56ac4d,o(_0x480942,'FORMAT_STYLE'));for(const _0x1e8f22 of _0x387cbe)_0x10c5b8['registerInlineAttribute'](_0x1e8f22),_0x10c5b8['descriptionFactory']['registerAttributeLabel'](_0x1e8f22,o(_0x480942,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ace06=this['editor'],_0xf9637e=_0x4ace06['locale'];_0x4ace06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370f14=>{if('formatBlock'!=_0x370f14['type']&&'formatInline'!=_0x370f14['type'])return;const {data:_0x3ea3e6}=_0x370f14;return _0x3ea3e6&&'style'===_0x3ea3e6['commandName']?_0x3ea3e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf9637e,'*Set\x20format:*\x20%0',_0x3ea3e6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xf9637e,'*Remove\x20format:*\x20%0',_0x3ea3e6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3b6e0a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f565e){super(_0x5f565e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473832=this['editor'],_0x265f61=_0x473832['model']['document']['selection'];if(!_0x473832['plugins']['has']('TableEditing'))return;const _0x1c7273=_0x473832['locale'],_0x5bd5f7=_0x473832['plugins']['get']('TrackChangesEditing'),_0x53ba2c=_0x473832['plugins']['get']('TableUtils');_0x5bd5f7['descriptionFactory']['registerElementLabel']('table',_0x2525cf=>o(_0x1c7273,'ELEMENT_TABLE',_0x2525cf)),this['_setupColumnsRowsFixing'](),_0x5bd5f7['enableCommand']('insertTable'),_0x5bd5f7['enableCommand']('selectTableRow'),_0x5bd5f7['enableCommand']('selectTableColumn');for(const _0xce1801 of['insertTableRowAbove','insertTableRowBelow']){const _0x529509=_0x473832['commands']['get'](_0xce1801);_0x5bd5f7['enableCommand'](_0xce1801,_0x7d8f70=>{_0x473832['model']['change'](_0x225a02=>{_0x7d8f70();const _0x1c4ca7='above'===_0x529509['order'],_0x1339d3=_0x53ba2c['getSelectionAffectedTableCells'](_0x265f61),_0x4c75b9=_0x53ba2c['getRowIndexes'](_0x1339d3),_0x3fbf67=_0x1c4ca7?_0x4c75b9['first']-0x1:_0x4c75b9['last']+0x1,_0x4f6e03=_0x1339d3[0x0]['findAncestor']('table'),_0x430e11=_0x53ba2c['createTableWalker'](_0x4f6e03,{'startRow':_0x3fbf67,'endRow':_0x3fbf67}),_0x14b6cb=Array['from'](_0x430e11)['map'](_0x51c8b3=>_0x225a02['createRangeOn'](_0x51c8b3['cell']));_0x5bd5f7['markMultiRangeInsertion'](_0x14b6cb,'tableRow');});});}for(const _0x14de88 of['insertTableColumnLeft','insertTableColumnRight']){const _0x440c8b=_0x473832['commands']['get'](_0x14de88);_0x5bd5f7['enableCommand'](_0x14de88,_0x30f361=>{_0x473832['model']['change'](_0x2c9f22=>{_0x30f361();const _0x22b8e2='left'===_0x440c8b['order'],_0x11abe9=_0x53ba2c['getSelectionAffectedTableCells'](_0x265f61),_0x5aa4e8=_0x53ba2c['getColumnIndexes'](_0x11abe9),_0x26afc5=_0x22b8e2?_0x5aa4e8['first']-0x1:_0x5aa4e8['last']+0x1,_0x3e76ff=_0x11abe9[0x0]['findAncestor']('table'),_0x19c76d=_0x53ba2c['createTableWalker'](_0x3e76ff,{'startRow':0x0,'column':_0x26afc5,'includeAllSlots':!0x1}),_0x216fb5=Array['from'](_0x19c76d)['map'](_0x37eebc=>_0x2c9f22['createRangeOn'](_0x37eebc['cell']));_0x5bd5f7['markMultiRangeInsertion'](_0x216fb5,'tableColumn');});});}for(const _0x149545 of['removeTableRow','removeTableColumn']){const _0x66cff4=_0x149545['substr'](0xb),_0x118d63=_0x66cff4['toLowerCase'](),_0x5ee331=_0x118d63['substr'](0x0,0x3)+'span',_0x4b590c='table'+_0x66cff4,_0x5d6595='min'+_0x66cff4,_0xecc8a0='max'+_0x66cff4;_0x5bd5f7['enableCommand'](_0x149545,()=>{_0x473832['model']['change'](_0xd71b47=>{const _0x153658=_0x53ba2c['getSelectionAffectedTableCells'](_0x265f61),_0x5d184e=_0x153658[0x0]['findAncestor']('table');let _0x3d6123;if('removeTableRow'==_0x149545){const _0x19c6ff=_0x53ba2c['getRowIndexes'](_0x153658);_0x3d6123={'startRow':_0x19c6ff['first'],'endRow':_0x19c6ff['last'],'includeAllSlots':!0x0};}else{const _0x4a8b31=_0x53ba2c['getColumnIndexes'](_0x153658);_0x3d6123={'startColumn':_0x4a8b31['first'],'endColumn':_0x4a8b31['last'],'includeAllSlots':!0x0};}const _0x51056b=_0x53ba2c['createTableWalker'](_0x5d184e,_0x3d6123),_0x404ce3=Array['from'](_0x51056b)['map'](({cell:_0x3c2537})=>_0x3c2537),_0x3a50d6=be(_0x404ce3['filter'](_0x354298=>_0x354298['hasAttribute'](_0x5ee331))),_0x37ef5f=be(_0x404ce3['filter'](_0x1638e4=>!_0x1638e4['hasAttribute'](_0x5ee331)))['map'](_0x505ca8=>_0xd71b47['createRangeOn'](_0x505ca8)),_0x1c442e=_0x5bd5f7['markMultiRangeDeletion'](_0x37ef5f,_0x4b590c);if(_0x1c442e&&('tableRow'==_0x1c442e['subType']||'tableColumn'==_0x1c442e['subType'])){const _0x463950=this['_getSuggestionCoords'](_0x1c442e);for(const _0x47ab51 of _0x3a50d6){const _0x374b73=_0xd71b47['createRangeOn'](_0x47ab51),_0x221a6b=_0x53ba2c['getCellLocation'](_0x47ab51),_0x26ca97=_0x47ab51['getAttribute'](_0x5ee331)-0x1,_0x107347=_0x463950[_0x5d6595],_0x4cdf09=_0x463950[_0xecc8a0];_0x107347<=_0x221a6b[_0x118d63]&&_0x221a6b[_0x118d63]+_0x26ca97<=_0x4cdf09&&_0x1c442e['addRange'](_0x374b73);}}});});}function _0x34008a(_0x1a1d08){const _0x2e812e=Array['from'](_0x265f61['getRanges']())['map'](_0x2c304a=>_0x544abc['fromRange'](_0x2c304a));_0x473832['model']['change'](_0x150334=>{const _0x53dd0c=_0x150334['batch'];_0x1a1d08=_0x1a1d08['filter'](_0xfbfcb5=>'$graveyard'!=_0xfbfcb5['root']['rootName']),_0x150334['setSelection'](_0x1a1d08),_0x473832['commands']['get']('removeTableRow')['refresh'](),_0x473832['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473832['model']['enqueueChange'](()=>{_0x473832['model']['enqueueChange'](_0x53dd0c,_0x223cfb=>{const _0x4b11ca=_0x2e812e['filter'](_0x33016b=>'$graveyard'!=_0x33016b['root']['rootName']);_0x4b11ca['length']>0x0&&_0x223cfb['setSelection'](_0x4b11ca);for(const _0x384849 of _0x2e812e)_0x384849['detach']();});});});}function _0x116736(_0x326256){_0x473832['model']['change'](_0x2462ea=>{const _0x579c4d=Array['from'](_0x265f61['getRanges']())['map'](_0x59d611=>_0x544abc['fromRange'](_0x59d611)),_0x36c309=[];for(const _0x412dbe of _0x326256)for(const _0x389620 of _0x412dbe['getItems']({'shallow':!0x0}))_0x36c309['push'](_0x389620);for(const _0x44d57a of _0x36c309)'$graveyard'!=_0x44d57a['root']['rootName']&&(_0x2462ea['setSelection'](_0x2462ea['createPositionAt'](_0x44d57a,0x0)),_0x473832['commands']['get']('removeTableColumn')['refresh'](),_0x473832['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb43b13=_0x579c4d['filter'](_0x511e23=>'$graveyard'!=_0x511e23['root']['rootName']);_0xb43b13['length']>0x0&&_0x2462ea['setSelection'](_0xb43b13);for(const _0x286edd of _0x579c4d)_0x286edd['detach']();});}function _0x311a8c(_0x162bab,_0x5a6752){return _0x5a6752['every'](_0xf86fca=>_0x162bab['some'](_0x3c3709=>_0x3c3709['end']['isEqual'](_0xf86fca['start'])||_0xf86fca['end']['isEqual'](_0x3c3709['start'])));}function _0x7cd287(_0x55ccbc,_0x130314){return!_0x55ccbc['some'](_0x1f7060=>_0x130314['some'](_0x2f9476=>_0x1f7060['isIntersecting'](_0x2f9476)))&&_0x55ccbc['some'](_0xdf0528=>_0x130314['some'](_0x1d0f6b=>_0xdf0528['end']['isTouching'](_0x1d0f6b['start'])));}_0x473832['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2570dd,_0x42ef52,_0x27e414)=>{if(!_0x27e414['options']['showSuggestionHighlights'])return;const _0x21b08c=_0x42ef52['item'];if(!_0x21b08c)return;const _0x1746b9=_0x27e414['mapper']['toViewElement'](_0x21b08c);function _0x3e507d(_0x362d2e){return Array['isArray'](_0x362d2e)?_0x362d2e:[_0x362d2e];}_0x1746b9&&'tableCell'===_0x21b08c['name']&&_0x506894(_0x1746b9,_0x27e414['writer'],(_0x49f443,_0x254649,_0x44b7ae)=>_0x44b7ae['addClass'](_0x3e507d(_0x254649['classes']),_0x49f443),(_0x110fad,_0x4c9149,_0x2110d9)=>_0x2110d9['removeClass'](_0x3e507d(_0x4c9149['classes']),_0x110fad));},{'priority':'highest'}),_0x5bd5f7['descriptionFactory']['registerDescriptionCallback'](_0x206b8e=>{if('insertion'!=_0x206b8e['type']&&'deletion'!=_0x206b8e['type'])return;const _0x81c14=_0x206b8e['getContainedElement']();if(null!=_0x81c14&&_0x81c14['is']('element','table')){if('insertion'==_0x206b8e['type']){const _0x24c805=_0x206b8e['getItems']()['filter'](_0x2af21a=>_0x2af21a['is']('$textProxy'))['map'](_0x314458=>_0x314458['data']);if(_0x24c805['length'])return{'type':'insertion','content':o(_0x1c7273,'*Insert:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x24c805['join']('\x20')+'\x22'))};}if('deletion'==_0x206b8e['type']){const _0x1091c7=_0x206b8e['getItems']()['filter'](_0x5c6364=>_0x5c6364['is']('$textProxy'))['map'](_0x103adb=>_0x103adb['data']);if(_0x1091c7['length'])return{'type':'deletion','content':o(_0x1c7273,'*Remove:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1091c7['join']('\x20')+'\x22'))};}}}),_0x5bd5f7['descriptionFactory']['registerDescriptionCallback'](_0x249492=>{if('tableRow'==_0x249492['subType']){const _0x427e91=_0x249492['getItems']()['filter'](_0x3a43af=>_0x3a43af['is']('$textProxy'))['map'](_0x5457a8=>_0x5457a8['data']),_0xf97368=this['_getSuggestionCoords'](_0x249492),_0x71aec3=_0xf97368['maxRow']-_0xf97368['minRow']+0x1;if('insertion'==_0x249492['type'])return _0x427e91['length']?{'type':'insertion','content':o(_0x1c7273,'*Insert:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x71aec3,'\x22'+_0x427e91['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1c7273,'*Insert:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_ROW',_0x71aec3))};if('deletion'==_0x249492['type'])return _0x427e91['length']?{'type':'deletion','content':o(_0x1c7273,'*Remove:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x71aec3,'\x22'+_0x427e91['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1c7273,'*Remove:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_ROW',_0x71aec3))};}if('tableColumn'==_0x249492['subType']){const _0x364e7b=_0x249492['getItems']()['filter'](_0x29c8c9=>_0x29c8c9['is']('$textProxy'))['map'](_0x437bec=>_0x437bec['data']),_0x4f4910=this['_getSuggestionCoords'](_0x249492),_0x413629=_0x4f4910['maxColumn']-_0x4f4910['minColumn']+0x1;if('insertion'==_0x249492['type'])return _0x364e7b['length']?{'type':'insertion','content':o(_0x1c7273,'*Insert:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x413629,'\x22'+_0x364e7b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1c7273,'*Insert:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_COLUMN',_0x413629))};if('deletion'==_0x249492['type'])return _0x364e7b['length']?{'type':'deletion','content':o(_0x1c7273,'*Remove:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x413629,'\x22'+_0x364e7b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1c7273,'*Remove:*\x20%0',o(_0x1c7273,'ELEMENT_TABLE_COLUMN',_0x413629))};}}),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34008a),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34008a),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x116736),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x116736),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x311a8c),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x311a8c),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x7cd287),_0x5bd5f7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x7cd287);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c6a44=this['editor'],_0x541327=_0x5c6a44['model']['document']['selection'];return(_0x516ea3,_0x5814c9)=>{_0x5c6a44['model']['change'](_0x417bab=>{const {commandName:_0x115df6,commandParams:_0x250c06}=_0x5814c9;let _0xaa113a=_0x516ea3[0x0]['end']['nodeBefore'];_0x250c06&&_0x250c06[0x0]&&!0x1===_0x250c06[0x0]['forceValue']&&(_0xaa113a=_0x516ea3[0x0]['start']['nodeAfter']);const _0x16f845=_0x417bab['createRangeIn'](_0xaa113a);if('$graveyard'==_0x16f845['root']['rootName'])return;const _0x1dbceb=Array['from'](_0x541327['getRanges']())['map'](_0x5e976a=>_0x544abc['fromRange'](_0x5e976a));_0x417bab['setSelection'](_0x16f845),_0x5c6a44['commands']['get'](_0x115df6)['refresh'](),_0x250c06['push']({'forceDefaultExecution':!0x0}),_0x5c6a44['execute'](_0x115df6,..._0x250c06);const _0x45020d=_0x1dbceb['filter'](_0x5f2435=>'$graveyard'!=_0x5f2435['root']['rootName']);_0x45020d['length']>0x0&&_0x417bab['setSelection'](_0x45020d);for(const _0x509172 of _0x1dbceb)_0x509172['detach']();});};}['_getCoordsForCells'](_0x407695){const _0x515b2c=this['editor']['plugins']['get']('TableUtils');let _0x32ceed=Number['MAX_SAFE_INTEGER'],_0x1dc249=Number['MIN_SAFE_INTEGER'],_0x2feb27=Number['MAX_SAFE_INTEGER'],_0x24d9ca=Number['MIN_SAFE_INTEGER'];for(const _0x591a64 of _0x407695){if('$graveyard'==_0x591a64['root']['rootName'])continue;const {row:_0xd099d8,column:_0x26932b}=_0x515b2c['getCellLocation'](_0x591a64),_0x473ae7=_0x591a64['hasAttribute']('rowspan')?_0x591a64['getAttribute']('rowspan')-0x1:0x0,_0x57bd5d=_0x591a64['hasAttribute']('colspan')?_0x591a64['getAttribute']('colspan')-0x1:0x0;_0x32ceed=_0xd099d8<_0x32ceed?_0xd099d8:_0x32ceed,_0x1dc249=_0xd099d8+_0x473ae7>_0x1dc249?_0xd099d8+_0x473ae7:_0x1dc249,_0x2feb27=_0x26932b<_0x2feb27?_0x26932b:_0x2feb27,_0x24d9ca=_0x26932b+_0x57bd5d>_0x24d9ca?_0x26932b+_0x57bd5d:_0x24d9ca;}return{'minRow':_0x32ceed,'maxRow':_0x1dc249,'minColumn':_0x2feb27,'maxColumn':_0x24d9ca};}['_setupColumnsRowsFixing'](){const _0x137977=this['editor'],_0x57c15b=_0x137977['plugins']['get']('TrackChangesEditing'),_0x3637b0=_0x137977['plugins']['get']('TableUtils');_0x137977['model']['document']['on']('change:data',()=>{const _0x1e9144=Array['from'](_0x137977['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x472047,data:_0x353ee7}of _0x1e9144){const {group:_0x655010,id:_0x32c640,subType:_0x2d55b2}=_0x57c15b['_splitMarkerName'](_0x472047);if('suggestion'!=_0x655010)continue;if(null!=_0x353ee7['oldRange'])continue;const _0x29f561=_0x57c15b['getSuggestion'](_0x32c640);this['_tablePostFixingSubtypes']['includes'](_0x2d55b2)&&this['_tableSuggestions']['add'](_0x29f561);}},{'priority':'low'});const _0x3d93a4=(_0x40ef46,_0x3929c5)=>{let _0x4e8c2e=!0x1;const _0x42509a=_0x3929c5['createRangeOn'](_0x40ef46),_0x4bfce1=_0x40ef46['findAncestor']('table'),_0x4627c2=_0x3637b0['getCellLocation'](_0x40ef46);for(const _0x4fe209 of this['_tableSuggestions']){const _0x4210f7=_0x4fe209['subType'],_0x41bf38=_0x4210f7['startsWith']('tablePaste'),_0x1132d1=_0x4210f7['substr'](_0x41bf38?0xa:0x5),_0x4de2e6=_0x1132d1['toLowerCase'](),_0x4fe3c1=_0x4de2e6['substr'](0x0,0x3)+'span',_0x5ba2b7='min'+_0x1132d1,_0xa61105='max'+_0x1132d1;if(!_0x4fe209['isInContent'])continue;if(_0x4bfce1!=_0x4fe209['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4fe209['isIntersectingWithRange'](_0x42509a))continue;const _0x36f180=_0x40ef46['hasAttribute'](_0x4fe3c1)?_0x40ef46['getAttribute'](_0x4fe3c1)-0x1:0x0,_0x415097=this['_getSuggestionCoords'](_0x4fe209),_0x434320=_0x415097[_0x5ba2b7],_0x3e553d=_0x415097[_0xa61105];_0x434320<=_0x4627c2[_0x4de2e6]&&_0x4627c2[_0x4de2e6]+_0x36f180<=_0x3e553d&&(_0x4fe209['addRange'](_0x42509a),_0x4e8c2e=!0x0);}return _0x4e8c2e;};_0x137977['model']['document']['registerPostFixer'](_0x3ad9fb=>{let _0x57c874=!0x1;for(const _0x56e0d9 of _0x137977['model']['document']['differ']['getChanges']())if('insert'==_0x56e0d9['type']){if('tableRow'==_0x56e0d9['name']){for(const _0x4563d0 of _0x56e0d9['position']['nodeAfter']['getChildren']())_0x57c874=_0x57c874||_0x3d93a4(_0x4563d0,_0x3ad9fb);}else'tableCell'==_0x56e0d9['name']&&(_0x57c874=_0x57c874||_0x3d93a4(_0x56e0d9['position']['nodeAfter'],_0x3ad9fb));}return _0x57c874;});}['_getSuggestionCoords'](_0x2b1c89){return this['_getCoordsForCells'](_0x2b1c89['getRanges']()['map'](_0x2e269d=>_0x2e269d['start']['nodeAfter']));}}function be(_0x59d67c){return Array['from'](new Set(_0x59d67c)['values']());}class vt extends _0x3b6e0a{static get['requires'](){return[It];}['afterInit'](){const _0x3bb647=this['editor'],_0x15294a=_0x3bb647['model']['document']['selection'],_0x527a6b=_0x3bb647['locale'];if(!_0x3bb647['plugins']['has']('TableEditing'))return;const _0x3606b0=_0x3bb647['plugins']['get']('TrackChangesEditing'),_0x5b96ac=_0x3bb647['plugins']['get']('TableUtils'),_0x2f2b52=_0x3bb647['plugins']['get'](It);_0x2f2b52['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3606b0['enableCommand']('mergeTableCells',()=>{const _0x474e42=_0x5b96ac['getSelectionAffectedTableCells'](_0x3bb647['model']['document']['selection']);_0x3bb647['model']['change'](()=>{_0x3606b0['markMultiRangeBlockFormat'](_0x474e42,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3bb647['commands']['get']('mergeTableCells')['on']('execute',(_0x5c1d93,_0x43955c)=>{_0x3bb647['commands']['get']('trackChanges')['value']&&(_0x43955c['length']>0x0&&_0x43955c[_0x43955c['length']-0x1]&&_0x43955c[_0x43955c['length']-0x1]['forceDefaultExecution']||_0x3606b0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c1d93['stop']());},{'priority':'highest'});for(const _0x8eabb1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x552334=_0x3bb647['commands']['get'](_0x8eabb1);_0x3606b0['enableCommand'](_0x8eabb1,()=>{const _0x52e453=_0x3bb647['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xdc1768=>_0xdc1768['is']('element','tableCell')),_0x1cfc4a=_0x552334['value'];_0x3bb647['model']['change'](()=>{_0x3606b0['markMultiRangeBlockFormat']([_0x52e453,_0x1cfc4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2ff00a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x142a1=_0x3bb647['commands']['get'](_0x2ff00a);_0x3606b0['enableCommand'](_0x2ff00a,()=>{const _0x23ad4=_0x5b96ac['getSelectionAffectedTableCells'](_0x3bb647['model']['document']['selection'])[0x0],_0x4dfa2f=_0x23ad4['findAncestor']('table'),{column:_0x33bc4f,row:_0x3f3dc9}=_0x5b96ac['getCellLocation'](_0x23ad4);let _0x1e53ed=[];if('horizontally'==_0x142a1['direction']){const _0x5dfd25=_0x5b96ac['createTableWalker'](_0x4dfa2f,{'startRow':_0x3f3dc9,'endRow':_0x3f3dc9,'includeAllSlots':!0x0});_0x1e53ed=Array['from'](_0x5dfd25)['map'](_0x2dabda=>_0x2dabda['cell']);}else{const _0x4bf6cb=_0x5b96ac['createTableWalker'](_0x4dfa2f,{'column':_0x33bc4f,'includeAllSlots':!0x0});_0x1e53ed=Array['from'](_0x4bf6cb)['map'](_0x3ecab2=>_0x3ecab2['cell']);}_0x3bb647['model']['change'](_0x197b00=>{_0x3606b0['markBlockFormat'](_0x197b00['createRangeOn'](_0x23ad4),{'commandName':_0x2ff00a,'commandParams':[]},_0x1e53ed,_0x2ff00a);});});}_0x3606b0['descriptionFactory']['registerDescriptionCallback'](_0x1ee5d5=>{if('formatBlock'!=_0x1ee5d5['type']&&'formatInline'!=_0x1ee5d5['type'])return;const {data:_0x48c8a2}=_0x1ee5d5;return _0x48c8a2&&'mergeTableCells'==_0x48c8a2['commandName']?{'type':'format','content':o(_0x527a6b,'*Merge\x20cells*')}:void 0x0;}),_0x3606b0['descriptionFactory']['registerDescriptionCallback'](_0x57845f=>{if('formatBlock'!=_0x57845f['type']&&'formatInline'!=_0x57845f['type'])return;const {data:_0x416fe8}=_0x57845f;return _0x416fe8?'splitTableCellVertically'==_0x416fe8['commandName']?{'type':'format','content':o(_0x527a6b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x416fe8['commandName']?{'type':'format','content':o(_0x527a6b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f7bf8=_0x2f2b52['_acceptFormatSuggestionCallbackFactory']();for(const _0x5743b6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3606b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5743b6,'accept',_0x3f7bf8);for(const _0x5eaef6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3606b0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5eaef6,'accept',_0x3f7bf8);_0x3606b0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x27c51f=>{_0x3bb647['model']['change'](_0x4c76d7=>{const _0x480856=Array['from'](_0x15294a['getRanges']())['map'](_0x951254=>_0x544abc['fromRange'](_0x951254));_0x4c76d7['setSelection'](_0x27c51f),_0x3bb647['commands']['get']('mergeTableCells')['refresh'](),_0x3bb647['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x275cdc=_0x480856['filter'](_0x13d65b=>'$graveyard'!=_0x13d65b['root']['rootName']);_0x275cdc['length']>0x0&&_0x4c76d7['setSelection'](_0x275cdc);for(const _0x370701 of _0x480856)_0x370701['detach']();});});for(const _0x45ce07 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a49bf=_0x3bb647['commands']['get'](_0x45ce07);_0x2a49bf['on']('set:isEnabled',(_0x38ce30,_0x2e4217,_0x3ba1bd)=>{if(_0x3ba1bd){const _0x36a7f1=_0x3bb647['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bd12c=>_0x3bd12c['is']('element','tableCell'));this['_areMergableCells'](_0x2a49bf['value'],_0x36a7f1)||(_0x38ce30['return']=!0x1,_0x38ce30['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x53bfa4=this['editor']['commands']['get']('mergeTableCells'),_0x47da4c=this['editor']['plugins']['get']('TableUtils');if(!_0x53bfa4['isEnabled'])return!0x1;const _0x16e1a4=_0x47da4c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d4276 of _0x16e1a4)for(const _0x257a70 of _0x16e1a4)if(_0x5d4276!=_0x257a70&&!this['_areMergableCells'](_0x5d4276,_0x257a70))return!0x1;return!0x0;}['_areMergableCells'](_0x1032e0,_0x51119b){const _0x19c8cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cd457=this['editor']['model']['createRangeOn'](_0x1032e0),_0x278b14=this['editor']['model']['createRangeOn'](_0x51119b),_0x347813=new Set(),_0x57cc4d=new Set();for(const _0x23e187 of _0x19c8cf['getSuggestions']())if(('insertion'==_0x23e187['type']||'deletion'==_0x23e187['type']||'mergeTableCells'==_0x23e187['subType'])&&_0x23e187['isInContent']){for(const _0x1d4129 of _0x23e187['getRanges']())_0x1d4129['containsRange'](_0x5cd457,!0x0)&&_0x347813['add'](_0x23e187['type']+':'+_0x23e187['author']['id']),_0x1d4129['containsRange'](_0x278b14,!0x0)&&_0x57cc4d['add'](_0x23e187['type']+':'+_0x23e187['author']['id']);}if(_0x347813['size']!=_0x57cc4d['size'])return!0x1;for(const _0x107944 of _0x347813)if(!_0x57cc4d['has'](_0x107944))return!0x1;return!0x0;}}class Ct extends _0x3b6e0a{static get['requires'](){return[It];}['afterInit'](){const _0x189ac9=this['editor'];if(!_0x189ac9['plugins']['has']('TableEditing'))return;const _0x285835=_0x189ac9['locale'],_0x1a07a9=_0x189ac9['plugins']['get']('TrackChangesEditing');_0x1a07a9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1a07a9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1a07a9['registerBlockAttribute']('headingRows'),_0x1a07a9['registerBlockAttribute']('headingColumns'),_0x1a07a9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x285835,'FORMAT_HEADER_ROW')),_0x1a07a9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x285835,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2476ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fdd9a=this['editor']['plugins']['get']('TableUtils'),_0x50cf5f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x141556({showActiveMarker:_0x5d6f8b=!0x0,setDataAttribute:_0x298ff6=!0x0}={}){return(_0x204acb,_0x4da393,_0x127dc7)=>{const {type:_0x9c5ffc,id:_0x11c764}=_0x2476ed['_splitMarkerName'](_0x4da393['markerName']),_0x47d536=_0x2476ed['getSuggestion'](_0x11c764),_0x517883=_0x47d536['data'];if('formatBlock'!=_0x47d536['type']||!_0x517883||'setTableColumnHeader'!=_0x517883['commandName'])return;if(_0x4da393['item'])return void _0x204acb['stop']();if(!_0x127dc7['consumable']['consume'](_0x4da393['markerRange'],_0x204acb['name']))return;const _0x1ea906=_0x4da393['markerRange']['start']['nodeAfter'],_0x33803e=_0x4da393['markerRange']['end']['nodeBefore'],_0x3df85f=_0x1ea906['parent']['parent'],{column:_0x1123a2}=_0x1fdd9a['getCellLocation'](_0x1ea906),{column:_0x3370d1}=_0x1fdd9a['getCellLocation'](_0x33803e);for(let _0x157f91=_0x1123a2;_0x157f91<=_0x3370d1;_0x157f91++){const _0x3b1a6e=_0x1fdd9a['createTableWalker'](_0x3df85f,{'column':_0x157f91,'includeAllSlots':!0x1});for(const _0x1a9f37 of _0x3b1a6e){const _0x397fb6=_0x1a9f37['cell'],_0x3b2687=_0x127dc7['mapper']['toViewElement'](_0x397fb6);_0x127dc7['writer']['addClass']('ck-suggestion-marker-'+_0x9c5ffc,_0x3b2687),_0x298ff6&&_0x127dc7['writer']['setAttribute']('data-suggestion',_0x11c764,_0x3b2687),_0x127dc7['mapper']['bindElementToMarker'](_0x3b2687,_0x4da393['markerName']),_0x5d6f8b&&(_0x2476ed['activeMarkers']['includes'](_0x4da393['markerName'])?_0x127dc7['writer']['addClass']('ck-suggestion-marker--active',_0x3b2687):_0x127dc7['writer']['removeClass']('ck-suggestion-marker--active',_0x3b2687));}}};}_0x2476ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50cf5f),_0x2476ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50cf5f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x141556(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b9732,_0x18c19a,_0x5bdbf8)=>{_0x5bdbf8['options']['showSuggestionHighlights']&&_0x141556({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b9732,_0x18c19a,_0x5bdbf8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4203ac,_0x3d2725,_0x95013c)=>{const {type:_0x30bd77,id:_0x2dc00b}=_0x2476ed['_splitMarkerName'](_0x3d2725['markerName']),_0x31e88c=_0x2476ed['getSuggestion'](_0x2dc00b),_0xddacf3=_0x31e88c['data'];if('formatBlock'!=_0x31e88c['type']||!_0xddacf3||'setTableColumnHeader'!=_0xddacf3['commandName'])return;const _0x599ea1=_0x95013c['mapper']['markerNameToElements'](_0x3d2725['markerName']);if(_0x599ea1){for(const _0x16c5d1 of _0x599ea1)_0x95013c['writer']['removeClass']('ck-suggestion-marker-'+_0x30bd77,_0x16c5d1),_0x95013c['writer']['removeClass']('ck-suggestion-marker--active',_0x16c5d1),_0x95013c['writer']['removeAttribute']('data-suggestion',_0x16c5d1),_0x95013c['mapper']['unbindElementFromMarkerName'](_0x16c5d1,_0x3d2725['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fecdd=this['editor'],_0x3e6798=_0x1fecdd['locale'];function _0x56f1c3(_0x397fa1){return{'type':'format','content':o(_0x3e6798,'*Format:*\x20%0',_0x397fa1)};}_0x1fecdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e85b6=>{if('formatBlock'!=_0x2e85b6['type'])return;const {data:_0x24705f}=_0x2e85b6;if(_0x24705f){if('setTableRowHeader'==_0x24705f['commandName']){const _0x2c1fc=_0x24705f['commandParams'][0x0]['forceValue'];return _0x56f1c3(o(_0x3e6798,_0x2c1fc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24705f['commandName']){const _0x2c5b5d=_0x24705f['commandParams'][0x0]['forceValue'];return _0x56f1c3(o(_0x3e6798,_0x2c5b5d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x5de88e=>[_0x5de88e,null]));class _t extends _0x3b6e0a{static get['requires'](){return[It];}['afterInit'](){const _0x53f5db=this['editor'];if(!_0x53f5db['plugins']['has']('TableClipboard'))return;const _0x440ba8=_0x53f5db['plugins']['get']('TrackChangesEditing'),_0x5f4fcb=_0x53f5db['plugins']['get']('TableUtils'),_0x2cc8ec=_0x53f5db['plugins']['get'](It),_0x317e6a=_0x53f5db['plugins']['get']('TableClipboard');_0x2cc8ec['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53f5db['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53f5db['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d9441=null;_0x53f5db['model']['on']('insertContent',(_0x43b6a3,_0x42ead3)=>{const [_0x59085a,_0x42b07e]=_0x42ead3,_0x21e49c=_0x42ead3[_0x42ead3['length']-0x1];_0x21e49c&&_0x21e49c['forceDefaultExecution']||_0x440ba8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a182f,_0x4f8dc9,_0x55f4af,_0x100542,_0xe420ed){if(_0x4f8dc9&&!_0x4f8dc9['is']('documentSelection'))return!0x1;const _0x26f1f2=_0xe420ed['getTableIfOnlyTableInContent'](_0x1a182f,_0x55f4af);if(!_0x26f1f2||!Re(_0x26f1f2,void 0x0,_0x100542))return!0x1;const _0x811731=_0x100542['getSelectionAffectedTableCells'](_0x55f4af['document']['selection']);if(!_0x811731['length'])return!0x1;const _0x274eb9=_0x811731[0x0]['findAncestor']('table'),_0xe3eb8c=_0x100542['getRowIndexes'](_0x811731),_0x82ed10=_0x100542['getColumnIndexes'](_0x811731),_0x16772a={'startRow':_0xe3eb8c['first'],'endRow':_0xe3eb8c['last'],'startColumn':_0x82ed10['first'],'endColumn':_0x82ed10['last']};return 0x1==_0x811731['length']&&(_0x16772a['endRow']+=_0x100542['getRows'](_0x26f1f2)-0x1,_0x16772a['endColumn']+=_0x100542['getColumns'](_0x26f1f2)-0x1),Re(_0x274eb9,_0x16772a,_0x100542);}(_0x59085a,_0x42b07e,_0x53f5db['model'],_0x5f4fcb,_0x317e6a)&&(_0x43b6a3['stop'](),_0x1d9441={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53f5db['model']['change'](()=>{_0x53f5db['model']['insertContent'](_0x42ead3[0x0],_0x42ead3[0x1],_0x42ead3[0x2],{'forceDefaultExecution':!0x0});const _0x5ea6a8=_0x1f1646(),{rowInsertionRanges:_0x45b2ee,columnInsertionRanges:_0x288ceb,insertionRanges:_0x42cdeb,deletionRanges:_0x6f46cc,cells:_0x42ad2b}=_0x1d9441;_0x45b2ee['length']&&_0x440ba8['markMultiRangeInsertion'](_0x45b2ee,'tablePasteRow',{'tablePasteChainId':_0x5ea6a8}),_0x288ceb['length']&&_0x440ba8['markMultiRangeInsertion'](_0x288ceb,'tablePasteColumn',{'tablePasteChainId':_0x5ea6a8}),_0x42cdeb['length']&&(_0x440ba8['markMultiRangeInsertion'](_0x42cdeb,'tablePaste',{'tablePasteChainId':_0x5ea6a8,'skipNestingCheck':!0x0}),_0x42cdeb['forEach'](_0x18fbbd=>_0x18fbbd['detach']?.())),_0x6f46cc['length']&&(_0x440ba8['markMultiRangeDeletion'](_0x6f46cc,'tablePaste',{'tablePasteChainId':_0x5ea6a8,'skipNestingCheck':!0x0}),_0x6f46cc['forEach'](_0x1a9c8d=>_0x1a9c8d['detach']?.()));const _0x2bb0ff=_0x440ba8['markMultiRangeBlockFormat'](_0x42ad2b['map'](({element:_0x299111})=>_0x299111),{'formatGroupId':_0x1f1646()},[],'tablePasteCell',{'tablePasteChainId':_0x5ea6a8});if(_0x2bb0ff){const _0x32034f=_0x2bb0ff['getMarkers'](),_0x531060=[];for(const {element:_0x4c8d5e,attributes:_0x1b59bd}of _0x42ad2b){if(!_0x1b59bd)continue;const _0x395556=_0x53f5db['model']['createRangeOn'](_0x4c8d5e),_0x4708e4=_0x32034f['find'](_0x5b2534=>_0x5b2534['getRange']()['isEqual'](_0x395556));_0x4708e4&&_0x531060['push']([_0x4708e4['name'],_0x1b59bd]);}_0x531060['length']&&_0x2bb0ff['setAttribute']('markerAttributes',Object['fromEntries'](_0x531060));}_0x1d9441=null;}));},{'priority':_0x1e8134['high']+0xa}),_0x53f5db['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d9f64,_0x3fd7d4)=>{const [_0x398a64,_0x60a285,,_0x22c551]=_0x3fd7d4;if(!_0x1d9441)return;_0x3d9f64['stop']();const _0x141a55=_0x398a64['cell'],_0xe0b74a=_0x60a285,_0x1984ea=ke(_0x141a55),_0x588c38=ke(_0xe0b74a);_0x3d9f64['return']=_0x141a55;let _0x1aa5d3=null,_0x42195d=null;if(_0x588c38||_0x1984ea){if(_0x1984ea&&!_0x588c38){_0x22c551['remove'](_0x141a55['getChild'](0x0));for(const _0x260b8d of Array['from'](_0xe0b74a['getChildren']()))_0x22c551['insert'](_0x260b8d,_0x141a55,'end');const _0x2f396b=_0x1d9441['rowInsertionIndexes']['includes'](_0x398a64['row']),_0x429752=_0x1d9441['columnInsertionIndexes']['includes'](_0x398a64['column']);_0x2f396b||_0x429752||(_0x1aa5d3=_0x544abc['fromRange'](_0x22c551['createRangeIn'](_0x141a55)));}else _0x588c38&&!_0x1984ea&&(_0x42195d=_0x22c551['createRangeIn'](_0x141a55));}else{const _0x2deb85=_0x22c551['createElement']('tableCellSuggestion'),_0x56c288=_0x22c551['createElement']('tableCellSuggestion');_0x22c551['wrap'](_0x22c551['createRangeIn'](_0x141a55),_0x56c288),_0x22c551['insert'](_0x2deb85,_0x141a55,0x0);for(const _0x594a51 of Array['from'](_0xe0b74a['getChildren']()))_0x22c551['insert'](_0x594a51,_0x2deb85,'end');_0x1aa5d3=_0x544abc['fromRange'](_0x22c551['createRangeOn'](_0x2deb85)),_0x42195d=_0x544abc['fromRange'](_0x22c551['createRangeOn'](_0x56c288));}const _0x4bae0d=Array['from'](_0xe0b74a['getAttributes']())['filter'](([_0x51b0e1])=>Pe['includes'](_0x51b0e1));_0x1d9441['cells']['push']({'element':_0x141a55,'attributes':_0x4bae0d['length']?Object['fromEntries'](_0x4bae0d):null}),_0x1aa5d3&&_0x1d9441['insertionRanges']['push'](_0x1aa5d3),_0x42195d&&_0x1d9441['deletionRanges']['push'](_0x42195d);},{'priority':'high'}),_0x5f4fcb['on']('insertColumns',(_0x2a35df,_0x2cf2cc)=>{const [_0x3b6a20,_0x38a334={}]=_0x2cf2cc;if(!_0x1d9441)return;const _0x12b1ea=_0x38a334['at']||0x0,_0x424f10=_0x38a334['columns']||0x1;_0x1d9441['columnInsertionIndexes']=new Array(_0x424f10)['fill'](_0x12b1ea)['map']((_0x13a68d,_0x549751)=>_0x13a68d+_0x549751);for(const {cell:_0xb6c88e}of _0x5f4fcb['createTableWalker'](_0x3b6a20,{'startColumn':_0x12b1ea,'endColumn':_0x12b1ea+_0x424f10-0x1}))_0x1d9441['columnInsertionRanges']['push'](_0x53f5db['model']['createRangeOn'](_0xb6c88e));},{'priority':'low'}),_0x5f4fcb['on']('insertRows',(_0x7172ba,_0x333b03)=>{const [_0x5b5ed3,_0x548ff7={}]=_0x333b03;if(!_0x1d9441)return;const _0x4fa89d=_0x548ff7['at']||0x0,_0x471649=_0x548ff7['rows']||0x1;_0x1d9441['rowInsertionIndexes']=new Array(_0x471649)['fill'](_0x4fa89d)['map']((_0x117d3d,_0x3f1396)=>_0x117d3d+_0x3f1396);for(const {cell:_0x4e131b}of _0x5f4fcb['createTableWalker'](_0x5b5ed3,{'startRow':_0x4fa89d,'endRow':_0x4fa89d+_0x471649-0x1}))_0x1d9441['rowInsertionRanges']['push'](_0x53f5db['model']['createRangeOn'](_0x4e131b));},{'priority':'low'}),_0x440ba8['descriptionFactory']['registerDescriptionCallback'](_0x4aa4b1=>{if(_0x4aa4b1['subType']&&_0x4aa4b1['subType']['startsWith']('tablePaste'))return _0x4aa4b1['previous']?{}:{'type':'insertion','content':o(_0x53f5db['locale'],'*Replace\x20table\x20cells*')};});const _0x40e7da=()=>!0x1;for(const _0x1b2c25 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x440ba8['_suggestionFactory']['registerCustomCallback']('insertion',_0x1b2c25,'join',_0x40e7da),_0x440ba8['_suggestionFactory']['registerCustomCallback']('deletion',_0x1b2c25,'join',_0x40e7da),_0x440ba8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b2c25,'join',_0x40e7da);_0x440ba8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x40e7da),_0x440ba8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x385c44,_0x1812d9,_0x17de4d)=>{const _0x11e0de=_0x385c44['map'](_0x52d42e=>_0x52d42e['getContainedElement']())['filter'](_0x3ea5e9=>_0x3ea5e9),_0x566f6a=new Map(_0x11e0de['map'](_0x23e370=>[_0x23e370,null]));if(_0x1d9441){for(const {element:_0x135f64,attributes:_0xd935f5}of _0x1d9441['cells'])_0xd935f5&&_0x566f6a['set'](_0x135f64,_0xd935f5);}else{if(_0x17de4d&&_0x17de4d['markerAttributes'])for(const [_0x1ac0ef,_0x1ed9fd]of Object['entries'](_0x17de4d['markerAttributes'])){const _0x288aa1=_0x53f5db['model']['markers']['get'](_0x1ac0ef),_0x163a4e=_0x288aa1?_0x288aa1['getRange']()['getContainedElement']():null;_0x163a4e&&_0x566f6a['set'](_0x163a4e,_0x1ed9fd);}}_0x53f5db['model']['change'](_0x4bb4e0=>{for(const [_0x15dc91,_0x44cc1a]of _0x566f6a)_0x4bb4e0['setAttributes']({...we,..._0x44cc1a},_0x15dc91);});});const _0xe56d26=(_0x1a9e62,_0x560f4d)=>{_0x440ba8['_suggestionFactory']['registerCustomCallback'](_0x1a9e62,'tablePaste',_0x560f4d,(_0x6678a8,_0x550e6c,_0x599721)=>{_0x53f5db['model']['change'](_0x355a6b=>{const _0x462cec=[];for(const _0x582b6f of _0x6678a8){const _0x128f0e=_0x582b6f['start']['nodeAfter'];_0x128f0e['is']('element','tableCellSuggestion')&&_0x462cec['push'](_0x128f0e);}_0x440ba8['_suggestionFactory']['getSuggestionCallback'](_0x1a9e62,null,_0x560f4d)(_0x6678a8,_0x550e6c,_0x599721);for(const _0x5efa65 of _0x462cec)'$graveyard'!=_0x5efa65['root']['rootName']&&_0x355a6b['unwrap'](_0x5efa65);});});};_0xe56d26('insertion','accept'),_0xe56d26('insertion','discard'),_0xe56d26('deletion','accept'),_0xe56d26('deletion','discard'),_0x440ba8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x173b42=>{const _0x1995d1=_0x173b42['map'](_0x3b2b1c=>_0x3b2b1c['getContainedElement']()),_0x5004b8=_0x1995d1[0x0]['findAncestor']('table'),{minRow:_0x4e455b,maxRow:_0x479d55}=_0x2cc8ec['_getCoordsForCells'](_0x1995d1);_0x5f4fcb['removeRows'](_0x5004b8,{'at':_0x4e455b,'rows':_0x479d55-_0x4e455b+0x1});}),_0x440ba8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x211b22=>{const _0x148dd1=_0x211b22['map'](_0x4de043=>_0x4de043['getContainedElement']()),_0xff1666=_0x148dd1[0x0]['findAncestor']('table'),{minColumn:_0x1a6c6c,maxColumn:_0x2f2fd2}=_0x2cc8ec['_getCoordsForCells'](_0x148dd1);_0x5f4fcb['removeColumns'](_0xff1666,{'at':_0x1a6c6c,'columns':_0x2f2fd2-_0x1a6c6c+0x1});});const _0xb20549=(_0x1a50c4,_0x518d7b)=>{if(!_0x518d7b['subType']||!_0x518d7b['subType']['startsWith']('tablePaste'))return;const _0x281ca5=_0x518d7b['attributes']['tablePasteChainId'],_0x2db841=_0x440ba8['getSuggestions']()['filter'](_0x662f0c=>_0x662f0c['isInContent']&&_0x662f0c['attributes']&&_0x662f0c['attributes']['tablePasteChainId']==_0x281ca5);_0x2db841['length']&&_0x518d7b['getAllAdjacentSuggestions']()['length']!=_0x2db841['length']&&_0x2db841['reduce']((_0x1681fe,_0x190ab2)=>(_0x1681fe['next']=_0x190ab2,_0x190ab2['previous']=_0x1681fe,_0x190ab2));};function _0x5434d0(_0x36a64b,_0x50ee41=!0x0){const {id:_0x4ca57e,authorId:_0x6169f3}=_0x440ba8['_splitMarkerName'](_0x36a64b['markerName']),_0x31949f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x335304=_0x440ba8['activeMarkers']['includes'](_0x36a64b['markerName']);return _0x335304&&_0x31949f['push']('ck-suggestion-marker--active'),{'classes':_0x31949f,'attributes':{'data-suggestion':_0x4ca57e,'data-author-id':_0x6169f3},'priority':_0x335304&&_0x50ee41?0xbc2:0xbb8};}_0x440ba8['on']('suggestionLoaded',_0xb20549,{'priority':'high'}),_0x440ba8['on']('suggestionUnloaded',_0xb20549,{'priority':'high'}),_0x53f5db['model']['document']['registerPostFixer'](()=>{let _0x475df7=!0x1;const _0x53636b=Array['from'](_0x53f5db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c65b5,data:_0x16c83f}of _0x53636b){const {group:_0x3631d6,type:_0x7800c3,id:_0x52c0e5}=_0x440ba8['_splitMarkerName'](_0x1c65b5);if('suggestion'!=_0x3631d6||'deletion'!=_0x7800c3||_0x16c83f['oldRange'])continue;if(!_0x440ba8['hasSuggestion'](_0x52c0e5))continue;const _0x8650fc=_0x440ba8['getSuggestion'](_0x52c0e5)['getRanges'](),_0x320427=_0x53f5db['plugins']['get']('Users')['me'];for(const _0x1135e2 of _0x440ba8['getSuggestions']()){if(!_0x1135e2['isInContent']||_0x1135e2['author']!=_0x320427)continue;if('formatBlock'!=_0x1135e2['type']||'tablePasteCell'!=_0x1135e2['subType'])continue;if(_0x1135e2['getRanges']()['every'](_0x545622=>_0x8650fc['some'](_0xc5f716=>_0xc5f716['containsRange'](_0x545622,!0x0)))){for(const _0x326a08 of _0x1135e2['getAllAdjacentSuggestions']())_0x326a08['isInContent']&&(_0x326a08['discard'](),_0x475df7=!0x0);}}}return _0x475df7;}),_0x53f5db['model']['document']['registerPostFixer'](_0x337c15=>{const _0x1645f7=_0x53f5db['commands']['get']('redo');if(!_0x1645f7||!_0x1645f7['_createdBatches']['has'](_0x337c15['batch']))return!0x1;let _0x5222e7=!0x1;const _0x46b4cb=_0x53f5db['plugins']['get']('Users')['me'],_0x1d5b21=_0x53f5db['model']['document']['differ']['getChanges'](),_0x5475f6=Array['from'](_0x53f5db['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x15f11f,data:_0x9f558d})=>{const {group:_0x3d856b,subType:_0x51018d,authorId:_0x529dfe}=_0x440ba8['_splitMarkerName'](_0x15f11f);return'suggestion'==_0x3d856b&&'tablePaste'==_0x51018d&&_0x529dfe==_0x46b4cb['id']&&!_0x9f558d['oldRange'];});for(const _0x1ff042 of _0x1d5b21){if('insert'!=_0x1ff042['type']||'tableCellSuggestion'!=_0x1ff042['name']||0x1!=_0x1ff042['length'])continue;const _0x4cd461=_0x337c15['createRange'](_0x1ff042['position'],_0x1ff042['position']['getShiftedBy'](0x1));if(!_0x5475f6['find'](({data:_0x226e5c})=>_0x226e5c['newRange']['isEqual'](_0x4cd461))){for(const {name:_0x5ddfe1,data:_0x555665}of _0x5475f6)if(_0x4cd461['containsRange'](_0x555665['newRange'])){_0x337c15['updateMarker'](_0x5ddfe1,{'range':_0x4cd461}),_0x5222e7=!0x0;break;}}}return _0x5222e7;}),_0x53f5db['model']['document']['registerPostFixer'](_0x22e953=>{let _0x4b2334=!0x1;const _0x1e9e16=_0x53f5db['plugins']['get']('Users')['me'],_0xdddd1b=_0x440ba8['getSuggestions']()['filter'](_0x56077b=>_0x56077b['isInContent']&&_0x56077b['author']==_0x1e9e16),_0x321950=new Set(),_0x573ab4=new Set();for(const _0x586ffa of _0xdddd1b)if('tablePaste'==_0x586ffa['subType'])for(const _0x33c70d of _0x586ffa['getMarkers']()){const _0x4db4e3=_0x33c70d['getRange']()['getContainedElement']();if(_0x4db4e3){if(_0x4db4e3['is']('element','tableCellSuggestion')&&ke(_0x4db4e3)){_0x586ffa['removeMarker'](_0x33c70d['name']),_0x321950['add'](_0x4db4e3),_0x4b2334=!0x0;const _0x5e238b=_0x4db4e3['nextSibling'],_0x25a50b=_0x4db4e3['previousSibling'],_0x403699=_0x5e238b&&_0x5e238b['is']('element','tableCellSuggestion'),_0x184e25=_0x25a50b&&_0x25a50b['is']('element','tableCellSuggestion');_0x403699&&!_0x321950['has'](_0x5e238b)&&_0x573ab4['add'](_0x5e238b),_0x184e25&&!_0x321950['has'](_0x25a50b)&&_0x573ab4['add'](_0x25a50b);}else _0x4db4e3['is']('element','paragraph')&&_0x4db4e3['isEmpty']&&(_0x586ffa['removeMarker'](_0x33c70d['name']),_0x4b2334=!0x0);}}else{if('tablePasteCell'==_0x586ffa['subType']){if(!_0x586ffa['attributes']||!_0x586ffa['attributes']['tablePasteChainId'])continue;const _0x5b9e9f=_0x586ffa['attributes']['markerAttributes'];if(_0x5b9e9f&&Object['keys'](_0x5b9e9f)['length'])continue;const _0x5b80bd=_0x586ffa['attributes']['tablePasteChainId'];let _0x343388=!0x0,_0x1d9167=!0x0;for(const _0x1a3bec of _0xdddd1b)if(_0x1a3bec['subType']&&_0x1a3bec['subType']['startsWith']('tablePaste')){if(!_0x1a3bec['attributes']['tablePasteChainId']){_0x1d9167=!0x1;break;}if(_0x1a3bec['id']!=_0x586ffa['id']&&_0x1a3bec['attributes']['tablePasteChainId']==_0x5b80bd){_0x343388=!0x1;break;}}_0x1d9167&&_0x343388&&(_0x586ffa['removeMarkers'](),_0x4b2334=!0x0);}}for(const _0x3c9b08 of _0x321950)_0x22e953['remove'](_0x3c9b08);for(const _0x374f83 of _0x573ab4)_0x22e953['unwrap'](_0x374f83);return _0x4b2334;}),_0x53f5db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2437ec=>_0x5434d0(_0x2437ec),'converterPriority':'high'}),_0x53f5db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf17cad,_0x418b70)=>_0x418b70['options']['showSuggestionHighlights']?_0x5434d0(_0xf17cad,!0x1):null,'converterPriority':'high'});const _0x2e1d0f=_0x53f5db['editing']['view'];this['listenTo'](_0x2e1d0f['document'],'clipboardOutput',(_0x38f798,_0x55d5d1)=>{const _0x1de8a6=[];for(const _0x3fbd37 of _0x2e1d0f['createRangeIn'](_0x55d5d1['content'])['getItems']())_0x3fbd37['is']('element','suggestion-td')&&_0x1de8a6['push'](_0x3fbd37);_0x2e1d0f['change'](_0x489afd=>{for(const _0x467419 of _0x1de8a6)_0x489afd['move'](_0x489afd['createRangeIn'](_0x467419),_0x489afd['createPositionBefore'](_0x467419)),_0x489afd['remove'](_0x467419);});});}}function ke(_0x3cfadb){if(_0x3cfadb['isEmpty'])return!0x0;const _0x3b3e30=_0x3cfadb['getChild'](0x0);return _0x3b3e30['is']('element','paragraph')&&_0x3b3e30['isEmpty'];}function Re(_0x34c557,_0x59c29e={},_0x5cc625){for(const {isAnchor:_0x35d6ea,cellHeight:_0x3eaf07,cellWidth:_0x4aa9ad}of _0x5cc625['createTableWalker'](_0x34c557,{'includeAllSlots':!0x0,..._0x59c29e}))if(!_0x35d6ea||0x1!=_0x3eaf07||0x1!=_0x4aa9ad)return!0x1;return!0x0;}class Nt extends _0x3b6e0a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x319df5=this['editor']['plugins']['get']('TrackChangesEditing');_0x319df5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x319df5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x319df5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x319df5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x319df5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x319df5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xefa294,_0x529b26){const _0xd965d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4640cb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbd5e27=_0x529b26['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b55e0=_0x4640cb['getColumnGroupElement'](_0xbd5e27);let _0x4f77d8=_0x5b55e0?_0x4640cb['getTableColumnsWidths'](_0x5b55e0):null,_0xd11da6=_0xbd5e27['getAttribute']('tableWidth')||null;const _0x101248=_0x529b26['tableWidth']||_0xd11da6,_0x2db4f8=_0x529b26['columnWidths']||_0x4f77d8,_0x3f9a56=this['editor']['plugins']['get']('Users')['me'];for(const _0x3232da of _0xd965d1['getSuggestions']()){const _0x3cff4e=_0x3232da['getContainedElement']();if('resizeTable'===_0x3232da['subType']&&_0x3cff4e===_0xbd5e27){_0x3232da['author']!==_0x3f9a56&&_0x3232da['discard']();const _0x1f5790=_0x3232da['data']['commandParams'];_0xd11da6=_0x1f5790[0x0]['tableWidth'],_0x4f77d8=_0x1f5790[0x0]['columnWidths'];break;}}_0xefa294({'table':_0xbd5e27,'tableWidth':_0x101248,'columnWidths':_0x2db4f8}),_0xd965d1['markBlockFormat'](_0xbd5e27,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd11da6,'columnWidths':_0x4f77d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22f56b){if('formatBlock'!=_0x22f56b['type']&&'formatInline'!=_0x22f56b['type'])return;const {data:_0x5ee5c4}=_0x22f56b;if(_0x5ee5c4&&'resizeTable'===_0x5ee5c4['formatGroupId']){const _0x1915a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1915a6)};}}}class Dt extends _0x3b6e0a{['afterInit'](){const _0x228992=this['editor'];_0x228992['plugins']['has']('Template')&&_0x228992['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3b6e0a{['afterInit'](){const _0x3bb9f5=this['editor'];if(!_0x3bb9f5['commands']['get']('insertTableOfContents'))return;_0x3bb9f5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b40bb=_0x3bb9f5['plugins']['get']('TrackChangesEditing'),_0x383994=_0x3bb9f5['locale'];_0x4b40bb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x332fe4=>o(_0x383994,'ELEMENT_TABLE_OF_CONTENTS',_0x332fe4));}}class $t extends _0x3b6e0a{['afterInit'](){const _0x3e6e2d=this['editor'];if(!_0x3e6e2d['plugins']['has']('Title'))return;const _0x17ae92=_0x3e6e2d['plugins']['get']('TrackChangesEditing');_0x17ae92['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3e6e2d['locale'],'ELEMENT_TITLE')),_0x3e6e2d['model']['document']['registerPostFixer'](_0x936543=>{let _0x3724d7=!0x1;const _0x4f5b54=Array['from'](_0x3e6e2d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x364f4a,data:_0x2544ae}of _0x4f5b54){const {group:_0x452ad6}=_0x17ae92['_splitMarkerName'](_0x364f4a);if('suggestion'!==_0x452ad6||!_0x2544ae['newRange'])continue;const _0x3fc5af=_0x2544ae['newRange'],_0x13f120=_0x3fc5af['end']['nodeBefore'];if(!_0x13f120||!_0x13f120['is']('element','title-content'))continue;if(!_0x3fc5af['start']['isTouching'](_0x3fc5af['end']))continue;const _0x757d1=_0x3e6e2d['model']['schema']['getNearestSelectionRange'](_0x3fc5af['end'],'forward');if(_0x757d1&&_0x757d1['isCollapsed']){const _0x396dbe=_0x936543['createRange'](_0x3fc5af['start'],_0x757d1['start']);_0x396dbe['isEqual'](_0x3fc5af)||(_0x936543['updateMarker'](_0x364f4a,{'range':_0x396dbe}),_0x3724d7=!0x0);}_0x3724d7||(_0x936543['removeMarker'](_0x364f4a),_0x3724d7=!0x0);}return _0x3724d7;});}}class Bt extends _0x3b6e0a{['afterInit'](){const _0x305e8a=this['editor'],_0x538f5f=_0x305e8a['plugins']['get']('TrackChangesEditing');_0x305e8a['plugins']['has']('UndoEditing')&&(_0x538f5f['enableCommand']('undo'),_0x538f5f['enableCommand']('redo'));}}class xt extends _0x3b6e0a{static get['requires'](){return[It];}['afterInit'](){const _0x15ace5=this['editor'];if(!_0x15ace5['plugins']['has']('TableCaptionEditing'))return;_0x15ace5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x3b6e0a{['tableProperties'];['tableCellProperties'];constructor(_0x5b771){super(_0x5b771),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x19881d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf57c62 of this['tableProperties'])_0x19881d['enableCommand'](_0xf57c62,(_0x72be97,_0x11b286)=>{const _0x2fc4c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf57c62,[_0x2fc4c],this['tableProperties'],'tableProperties',_0x72be97,_0x11b286);});_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19881d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45177f,_0x1d3ff1)=>this['handleDiscardAction'](this['tableProperties'],_0x45177f,_0x1d3ff1)),_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3432ca of this['tableCellProperties'])_0x19881d['enableCommand'](_0x3432ca,(_0x200f65,_0x329e89)=>{const _0x56ff0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3432ca,_0x56ff0,this['tableCellProperties'],'tableCellProperties',_0x200f65,_0x329e89);});_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19881d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x52704f,_0x1f53ce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x52704f,_0x1f53ce)),_0x19881d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19881d['descriptionFactory']['registerDescriptionCallback'](_0x2f46eb=>this['handleSuggestionDescription'](_0x2f46eb));}['_handlePropertyChange'](_0x581088,_0x52f721,_0x58093b,_0x1d0370,_0xef1476,_0x343760){const _0x5d590f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x343760['batch'],()=>{for(const _0x3f29be of _0x52f721){if(this['_getSuggestion'](_0x3f29be,_0x1d0370))_0xef1476(_0x343760);else{const _0x23b4c5={};for(const _0x415692 of _0x58093b){const _0x3ec918=_0x3f29be['getAttribute'](_0x415692);void 0x0!==_0x3ec918&&(_0x23b4c5[_0x415692]=_0x3ec918);}_0xef1476(_0x343760),_0x5d590f['markBlockFormat'](_0x3f29be,{'commandParams':[_0x23b4c5]},[],_0x1d0370);}}});}['handleDiscardAction'](_0x59677c,_0x413ce3,_0x680ce2){const _0x229551=_0x413ce3[0x0]['start']['nodeAfter'],_0x29a6d4=_0x680ce2['commandParams'][0x0];this['editor']['model']['change'](_0x32b895=>{for(const _0x5c0306 of _0x59677c)void 0x0!==_0x29a6d4[_0x5c0306]?_0x32b895['setAttribute'](_0x5c0306,_0x29a6d4[_0x5c0306],_0x229551):_0x32b895['removeAttribute'](_0x5c0306,_0x229551);});}['handleSuggestionDescription'](_0x13d23a){if(_0x13d23a['data'])switch(_0x13d23a['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'](_0x311a1a,_0x469850){const _0x4e4a8c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53e495 of _0x4e4a8c['getSuggestions']({'skipNotAttached':!0x0})){const _0x55316a=_0x53e495['getContainedElement']();if(_0x53e495['subType']===_0x469850&&_0x55316a===_0x311a1a)return _0x53e495;}return null;}}const m='$elementName';class p extends _0x3b6e0a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5d7b22,_0x47d7f8,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2201f4){function _0x256251(_0x19edb2){return _0x19edb2['map'](_0x1867e6=>String['fromCharCode'](_0x1867e6))['join']('');}super(_0x2201f4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x229cb0,_0x147e33,_0xcd956d,_0x4b75b7)=>{this['_model']['change'](()=>{for(const _0xb5de46 of[..._0x4b75b7,..._0xcd956d])this['_model']['markers']['has'](_0xb5de46)&&_0x2201f4['editing']['reconvertMarker'](_0xb5de46);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2201f4['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(),_0x2201f4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2201f4['config']['get']('trackChanges.trackFormatChanges'),_0x2201f4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2201f4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2201f4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x256251([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x256251([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x36]);}['init'](){const _0x232bba=this['editor'],_0x412ce6=(_0x286ccb,_0x3dd500)=>{if('attribute'!=_0x286ccb)return'ck-suggestion-marker-'+_0x286ccb;const _0x22c7a2=_0x3dd500['split']('|')[0x0];return this['_isBlockAttribute'](_0x22c7a2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x232bba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x456967=>{const {id:_0x2123a6,authorId:_0x3a1514,type:_0x4e9ffa,subType:_0x36f108}=this['_splitMarkerName'](_0x456967['markerName']),_0x5b2ff7=['ck-suggestion-marker',_0x412ce6(_0x4e9ffa,_0x36f108)];let _0x5d453d=0xbb8;return this['activeMarkers']['includes'](_0x456967['markerName'])&&(_0x5b2ff7['push']('ck-suggestion-marker--active'),_0x5d453d=0xbc2),'deletion'==_0x4e9ffa&&(_0x5d453d+=0x5),{'classes':_0x5b2ff7,'attributes':{'data-suggestion':_0x2123a6,'data-author-id':_0x3a1514},'priority':_0x5d453d};}}),_0x232bba['conversion']['for']('dataDowncast')['add'](_0x54b0ed=>{_0x54b0ed['on']('addMarker:suggestion',(_0x1eceac,_0x391f23,_0x1f16eb)=>{if(!_0x1f16eb['options']['showSuggestionHighlights'])return;const _0x2d1e60=_0x391f23['item'];if(!_0x2d1e60)return;const _0x67e32f=_0x1f16eb['mapper']['toViewElement'](_0x2d1e60);_0x232bba['model']['schema']['isObject'](_0x2d1e60)&&_0x67e32f&&!_0x67e32f['getCustomProperty']('widget')&&_0x67e32f['is']('containerElement')&&_0x10dd68(_0x67e32f,_0x1f16eb['writer']);},{'priority':'high'});}),_0x232bba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d75da,_0x5562ba)=>{if(!_0x5562ba['options']['showSuggestionHighlights'])return null;const {type:_0x4184f5,subType:_0x54692e}=this['_splitMarkerName'](_0x2d75da['markerName']);return{'classes':['ck-suggestion-marker',_0x412ce6(_0x4184f5,_0x54692e)],'priority':0xbb8};}});const _0x2481e2=({showActiveMarkers:_0x47c287=!0x0,isAttributeSuggestion:_0x372900=!0x1}={})=>(_0x309cd6,_0x4ab4de,_0x27d662)=>{if(!_0x4ab4de['item'])return;const {id:_0x2d524b,authorId:_0x355b05}=this['_splitMarkerName'](_0x4ab4de['markerName']);if(_0x372900){const _0x15e1e8=this['_suggestions']['get'](_0x2d524b),_0x59a3d1=this['_getAttributeKey'](_0x15e1e8);if(!this['_isBlockAttribute'](_0x59a3d1))return;}if(_0x4ab4de['item']['is']('selection'))return void _0x27d662['consumable']['consume'](_0x4ab4de['item'],_0x309cd6['name']);const _0x12959c=_0x27d662['mapper']['toViewElement'](_0x4ab4de['item']);if(_0x4ab4de['item']['is']('element')&&_0x232bba['model']['schema']['isBlock'](_0x4ab4de['item'])&&!_0x12959c['getCustomProperty']('addHighlight')){_0x27d662['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x12959c),_0x27d662['writer']['setAttribute']('data-suggestion',_0x2d524b,_0x12959c),_0x27d662['writer']['setAttribute']('data-author-id',_0x355b05,_0x12959c),_0x27d662['mapper']['bindElementToMarker'](_0x12959c,_0x4ab4de['markerName']),_0x47c287&&(this['activeMarkers']['includes'](_0x4ab4de['markerName'])?_0x27d662['writer']['addClass']('ck-suggestion-marker--active',_0x12959c):_0x27d662['writer']['removeClass']('ck-suggestion-marker--active',_0x12959c));for(const _0x22487c of _0x232bba['model']['createRangeIn'](_0x4ab4de['item'])['getItems']())_0x27d662['consumable']['consume'](_0x22487c,_0x309cd6['name']);_0x27d662['consumable']['consume'](_0x4ab4de['item'],_0x309cd6['name']);}};_0x232bba['conversion']['for']('dataDowncast')['add'](_0x2b3a7b=>{_0x2b3a7b['on']('addMarker:suggestion:formatBlock',(_0x5ac500,_0x1d24f4,_0x43bd93)=>{_0x43bd93['options']['showSuggestionHighlights']&&_0x2481e2({'showActiveMarkers':!0x1})(_0x5ac500,_0x1d24f4,_0x43bd93);},{'priority':'highest'});}),_0x232bba['conversion']['for']('dataDowncast')['add'](_0x3de202=>{_0x3de202['on']('addMarker:suggestion:attribute',(_0x4816aa,_0x22adfa,_0x466b90)=>{_0x466b90['options']['showSuggestionHighlights']&&_0x2481e2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4816aa,_0x22adfa,_0x466b90);},{'priority':'highest'});}),_0x232bba['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5480cd,_0x12119a)=>_0x12119a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5480cd['substr'](0xb)}}),_0x232bba['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x148793,{writer:_0x334293})=>{let _0xe835c2='suggestion:'+_0x148793['getAttribute']('suggestion-type')+':'+_0x148793['getAttribute']('id');return _0x148793['getAttribute']('marker-count')&&(_0xe835c2+=':'+_0x148793['getAttribute']('marker-count')),_0x334293['createElement']('$marker',{'data-name':_0xe835c2});}}),_0x232bba['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x232bba['conversion']['for']('editingDowncast')['add'](_0x5dd75c=>{_0x5dd75c['on']('addMarker:suggestion:formatBlock',_0x2481e2(),{'priority':'high'});}),_0x232bba['conversion']['for']('editingDowncast')['add'](_0x407124=>{_0x407124['on']('addMarker:suggestion:attribute',_0x2481e2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x232bba['conversion']['for']('editingDowncast')['add'](_0x441b17=>{_0x441b17['on']('removeMarker:suggestion:formatBlock',(_0x2d4a26,_0x4a3bc6,_0x173f8e)=>{const _0x482473=_0x173f8e['mapper']['markerNameToElements'](_0x4a3bc6['markerName']);if(_0x482473){for(const _0x54f1d0 of _0x482473)_0x54f1d0['getCustomProperty']('addHighlight')||(_0x173f8e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54f1d0),_0x173f8e['writer']['removeAttribute']('data-suggestion',_0x54f1d0),_0x173f8e['writer']['removeAttribute']('data-author-id',_0x54f1d0),_0x173f8e['mapper']['unbindElementFromMarkerName'](_0x54f1d0,_0x4a3bc6['markerName']));}},{'priority':'high'});}),_0x232bba['conversion']['for']('editingDowncast')['add'](_0x2aaa8d=>{_0x2aaa8d['on']('removeMarker:suggestion:attribute',(_0x438acb,_0xe5245b,_0x412795)=>{const _0x527f9f=_0x412795['mapper']['markerNameToElements'](_0xe5245b['markerName']);if(!_0x527f9f)return;const {id:_0x16f81e}=this['_splitMarkerName'](_0xe5245b['markerName']),_0x495d02=this['_suggestions']['get'](_0x16f81e),_0x53f2dc=this['_getAttributeKey'](_0x495d02);if(this['_isBlockAttribute'](_0x53f2dc)){for(const _0x460cfc of _0x527f9f)_0x460cfc['getCustomProperty']('addHighlight')||(_0x412795['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x460cfc),_0x412795['writer']['removeAttribute']('data-suggestion',_0x460cfc),_0x412795['writer']['removeAttribute']('data-author-id',_0x460cfc),_0x412795['mapper']['unbindElementFromMarkerName'](_0x460cfc,_0xe5245b['markerName']));}},{'priority':'high'});}),_0x232bba['model']['document']['registerPostFixer'](_0x5ac227=>{let _0x52d983=!0x1;const _0x39b18d=Array['from'](_0x232bba['model']['document']['differ']['getChangedMarkers']()),_0x3be858=new Set();for(const {name:_0x46d869,data:_0x3a7947}of _0x39b18d){const {group:_0x2174b2,type:_0x208339,subType:_0x2fdc3f,id:_0x193f4a}=this['_splitMarkerName'](_0x46d869);if('suggestion'!==_0x2174b2)continue;const _0x568a64=this['_suggestions']['get'](_0x193f4a);if(null!=_0x3a7947['newRange']){'formatInline'==_0x208339&&(_0x52d983=_0x52d983||Ut(_0x3a7947['newRange'],_0x46d869,_0x5ac227,_0x232bba['model']['schema']));const _0x3ca338='attribute'==_0x208339&&this['_isBlockAttribute'](_0x2fdc3f['split']('|')[0x0]);if(_0x3a7947['newRange']['isCollapsed']||'$graveyard'==_0x3a7947['newRange']['root']['rootName']||'formatBlock'==_0x208339&&!Gt(_0x3a7947['newRange'])||_0x3ca338&&!Gt(_0x3a7947['newRange'])||'deletion'==_0x208339&&!(!Vt(_0x354df4=_0x3a7947['newRange'])&&!function(_0xbe95c5){return _0xbe95c5['start']['parent']==_0xbe95c5['end']['nodeBefore']&&_0xbe95c5['start']['isAtEnd'];}(_0x354df4)))_0x5ac227['removeMarker'](_0x46d869),_0x52d983=!0x0;else{if(!_0x568a64||!_0x568a64['isInContent'])continue;if(_0x3a7947['newRange']&&_0x3a7947['oldRange']&&_0x3a7947['newRange']['isEqual'](_0x3a7947['oldRange']))continue;_0x3be858['add'](_0x568a64);}}}var _0x354df4;return _0x3be858['size']>0x0&&(_0x52d983=!!this['_joinWithAdjacentSuggestions'](_0x3be858)||_0x52d983),_0x52d983;}),_0x232bba['model']['document']['registerPostFixer'](_0x1acb1d=>{let _0x5bf0a1=!0x1;for(const _0x26d06f of _0x232bba['model']['document']['differ']['getChanges']())if('insert'==_0x26d06f['type'])for(const _0x2bb3ad of this['_suggestions']['values']()){if(_0x2bb3ad['isMultiRange']||!_0x2bb3ad['isInContent'])continue;const _0x1ed041='formatBlock'==_0x2bb3ad['type'],_0x4b4361=this['_getAttributeKey'](_0x2bb3ad),_0x786410=_0x4b4361&&this['_isBlockAttribute'](_0x4b4361);if(!_0x1ed041&&!_0x786410)continue;const _0x7ae2ce=_0x2bb3ad['getFirstRange']();if(_0x7ae2ce['start']['parent']!=_0x7ae2ce['end']['parent']&&!_0x7ae2ce['end']['isAtEnd']){const _0x389a21=_0x232bba['model']['createPositionAt'](_0x7ae2ce['start']['nodeAfter'],'end'),_0x43ce52=_0x232bba['model']['createRange'](_0x7ae2ce['start'],_0x389a21);_0x1acb1d['updateMarker'](_0x2bb3ad['getFirstMarker'](),{'range':_0x43ce52}),_0x5bf0a1=!0x0;}}return _0x5bf0a1;}),_0x232bba['model']['document']['registerPostFixer'](_0xff011c=>this['_processAttributeChanges'](_0xff011c)),_0x232bba['model']['document']['registerPostFixer'](_0x2b10c2=>!_0x2b10c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2b10c2)),_0x232bba['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x232bba['model']['document']['on']('change:data',(_0x420d4b,_0x29cf8b)=>{if(!_0x29cf8b['isLocal']||_0x29cf8b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4e935e=_0x232bba['model']['document']['differ']['getChanges']();if(0x0==_0x4e935e['length'])return;const _0x10c39b=[],_0x5746ed=_0x4e935e['filter'](_0x37c14e=>'attribute'==_0x37c14e['type']),_0xc06b51=_0x4e935e['filter'](_0x1a7a63=>'insert'==_0x1a7a63['type']&&'$text'!=_0x1a7a63['name']);for(const _0x4004f6 of _0x5746ed)this['_isRegisteredAttribute'](_0x4004f6['attributeKey'])&&_0x10c39b['push']({'key':_0x4004f6['attributeKey'],'newValue':_0x4004f6['attributeNewValue'],'oldValue':_0x4004f6['attributeOldValue'],'range':Ft(_0x4004f6['range'],_0x232bba['model'])});for(const _0x4cb6d6 of _0xc06b51){if('rename'!=_0x4cb6d6['action']&&'refresh'!=_0x4cb6d6['action'])continue;const _0x2f8e7e=Lt(_0x4cb6d6['position']['nodeAfter'],_0x232bba['model']),_0x130aea=_0x4cb6d6['before'];'rename'==_0x4cb6d6['action']&&_0x10c39b['push']({'key':m,'newValue':_0x4cb6d6['name'],'oldValue':_0x130aea['name'],'range':_0x2f8e7e});for(const [_0x4edfc2,_0x52989a]of _0x130aea['attributes']){if(!this['_isRegisteredAttribute'](_0x4edfc2))continue;const _0x557c92=_0x4cb6d6['attributes']['get'](_0x4edfc2);_0x52989a!==_0x557c92&&_0x10c39b['push']({'key':_0x4edfc2,'newValue':_0x557c92,'oldValue':_0x52989a,'range':_0x2f8e7e});}for(const [_0x3564ec,_0x172316]of _0x4cb6d6['attributes'])this['_isRegisteredAttribute'](_0x3564ec)&&(_0x130aea['attributes']['has'](_0x3564ec)||_0x10c39b['push']({'key':_0x3564ec,'newValue':_0x172316,'oldValue':null,'range':_0x2f8e7e}));}0x0!=_0x10c39b['length']&&_0x232bba['model']['enqueueChange'](_0x29cf8b,_0x5059c6=>{const _0x4f15d0=_0x1f1646();for(const {range:_0x3817a4,key:_0x51063b,oldValue:_0x439435,newValue:_0x1f89dc}of _0x10c39b)this['markAttributeChange'](_0x3817a4,_0x51063b,_0x439435,_0x1f89dc,{'groupId':_0x4f15d0});this['_reduceExistingSuggestions'](_0x5059c6,_0x10c39b);});},{'priority':'lowest'}),_0x232bba['model']['markers']['on']('update:suggestion',(_0x41db5c,_0x492769,_0x3499b3)=>{if(null==_0x3499b3){const {id:_0x363524}=this['_splitMarkerName'](_0x492769['name']),_0x858e3f=this['_suggestions']['get'](_0x363524);_0x858e3f&&_0x858e3f['addMarkerName'](_0x492769['name']);}}),_0x232bba['model']['document']['on']('change:data',()=>{const _0x4115c1=Array['from'](_0x232bba['model']['document']['differ']['getChangedMarkers']())['filter'](_0x26cfb7=>'suggestion'===this['_splitMarkerName'](_0x26cfb7['name'])['group']);if(0x0===_0x4115c1['length'])return;_0x4115c1['sort']((_0x377e0b,_0x3aa63f)=>{const _0x410616=_0x377e0b['data']['oldRange'],_0x20e3ce=_0x3aa63f['data']['oldRange'];return null===_0x410616&&null===_0x20e3ce?0x0:null===_0x410616&&null!==_0x20e3ce?-0x1:null!==_0x410616&&null===_0x20e3ce?0x1:_0x410616['start']['isBefore'](_0x20e3ce['start'])?-0x1:0x1;});const _0x10bf80=new Set(),_0x1912b4=new Set();for(const {name:_0x540df8,data:_0x3ee0a0}of _0x4115c1){const {id:_0x1df6f2}=this['_splitMarkerName'](_0x540df8);if(null===_0x3ee0a0['oldRange']){const _0x390722=this['_handleNewSuggestionMarker'](_0x540df8);_0x1912b4['add'](_0x390722);}else{const _0x3ac2f8=this['_suggestions']['get'](_0x1df6f2);null!==_0x3ee0a0['newRange']||_0x3ac2f8['isInContent']?(_0x10bf80['add'](_0x3ac2f8['head']),_0x1912b4['add'](_0x3ac2f8)):this['_removeSuggestion'](_0x3ac2f8);}}_0x1912b4['size']>0x0&&this['_refreshSuggestionsChain'](_0x1912b4);for(const _0x4bc20a of _0x10bf80)this['fire']('suggestionChanged',_0x4bc20a);}),_0x232bba['model']['on']('applyOperation',(_0x2b369b,_0x56499b)=>{const _0x2d5f84=_0x56499b[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d5f84['isDocumentOperation'])return;if(_0x2d5f84['batch']['isUndo']||!_0x2d5f84['batch']['isLocal'])return;let _0x3a7f85,_0x5e056e;switch(_0x2d5f84['type']){case'insert':_0x3a7f85=_0x232bba['model']['createPositionAt'](_0x2d5f84['position']),_0x5e056e=_0x3a7f85['getShiftedBy'](_0x2d5f84['howMany']);break;case'split':_0x3a7f85=_0x232bba['model']['createPositionAt'](_0x2d5f84['splitPosition']),_0x5e056e=_0x232bba['model']['createPositionAt'](_0x2d5f84['moveTargetPosition']);break;case'move':_0x3a7f85=_0x232bba['model']['createPositionAt'](_0x2d5f84['targetPosition']),_0x5e056e=_0x3a7f85['getShiftedBy'](_0x2d5f84['howMany']);break;default:return;}const _0x35a6c4=_0x232bba['model']['createRange'](_0x3a7f85,_0x5e056e);_0x232bba['model']['change'](()=>{for(const {suggestion:_0x32fae,meta:_0x3b5d68}of this['_findSuggestions'](_0x35a6c4)){if(_0x32fae['isMultiRange'])continue;if('formatInline'==_0x32fae['type'])continue;const _0xe1c72=this['_getAttributeKey'](_0x32fae);if(_0xe1c72&&this['_isBlockAttribute'](_0xe1c72)&&'split'!=_0x2d5f84['type'])continue;const _0xc94a6b=_0x32fae['data']&&_0x32fae['data']['multipleBlocks'];('formatBlock'!=_0x32fae['type']||'split'==_0x2d5f84['type']&&!_0xc94a6b)&&(_0x3b5d68['containsRangeInObject']||'insertion'==_0x32fae['type']&&_0x3b5d68['isOwn']||_0x32fae['getFirstRange']()['containsRange'](_0x35a6c4)&&this['_breakSuggestionMarker'](_0x32fae,_0x3a7f85,_0x5e056e));}});},{'priority':'lowest'}),_0x232bba['model']['on']('deleteContent',(_0x2643b1,_0x49da13)=>{const _0x1d0d8b=_0x49da13[0x0],_0x2f50d8=_0x49da13[0x1];if(_0x2f50d8&&_0x2f50d8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1d0d8b['isCollapsed'])return;const _0x3b30c5=_0x232bba['model']['schema'],{start:_0x12b4e1,end:_0x2c4587}=_0x1d0d8b['getFirstRange'](),_0x40d372=_0x12b4e1['nodeAfter']&&_0x3b30c5['isLimit'](_0x12b4e1['nodeAfter'])?null:_0x3b30c5['getNearestSelectionRange'](_0x12b4e1,'forward'),_0x29ceb6=_0x2c4587['nodeBefore']&&_0x3b30c5['isLimit'](_0x2c4587['nodeBefore'])?null:_0x3b30c5['getNearestSelectionRange'](_0x2c4587,'backward'),_0x214c98=_0x232bba['model']['createRange'](_0x40d372?_0x40d372['start']:_0x12b4e1,_0x29ceb6?_0x29ceb6['end']:_0x2c4587);_0x232bba['model']['change'](_0xcda485=>{this['markDeletion'](_0x214c98);const _0x51f043=_0x232bba['model']['schema']['getNearestSelectionRange'](_0x214c98['start']);_0x1d0d8b['is']('documentSelection')?_0xcda485['setSelection'](_0x51f043):_0x1d0d8b['setTo'](_0x51f043);}),_0x2643b1['stop']();},{'priority':_0x1e8134['normal']+0xa}),_0x232bba['model']['on']('insertContent',(_0x4812dc,_0x11fc5a)=>{const _0x5fda51=_0x11fc5a[_0x11fc5a['length']-0x1];_0x5fda51&&_0x5fda51['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x232bba['model']['change'](()=>{let _0x2c050e=_0x232bba['model']['insertContent'](_0x11fc5a[0x0],_0x11fc5a[0x1],_0x11fc5a[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c050e)return;_0x4812dc['return']=_0x2c050e['clone']();const _0x1e559f=_0x2c050e['end']['nodeBefore'],_0x2de9f4=_0x232bba['model']['schema'];_0x1e559f&&_0x2de9f4['isBlock'](_0x1e559f)&&!_0x2de9f4['isObject'](_0x1e559f)&&(_0x2c050e=_0x232bba['model']['createRange'](_0x2c050e['start'],_0x232bba['model']['createPositionAt'](_0x1e559f,'end'))),this['markInsertion'](_0x2c050e);}),_0x4812dc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x365e34=new x(_0x232bba,this['_suggestions']);_0x232bba['commands']['add']('acceptSuggestion',_0x365e34),this['enableCommand']('acceptSuggestion');const _0x31d202=new O(_0x232bba,this['_suggestions']);_0x232bba['commands']['add']('discardSuggestion',_0x31d202),this['enableCommand']('discardSuggestion'),_0x232bba['commands']['add']('acceptAllSuggestions',new R(_0x232bba,_0x365e34,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x232bba['commands']['add']('discardAllSuggestions',new R(_0x232bba,_0x31d202,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x232bba['commands']['add']('acceptSelectedSuggestions',new E(_0x232bba,_0x365e34,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x232bba['commands']['add']('discardSelectedSuggestions',new E(_0x232bba,_0x31d202,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2499cb=_0x232bba['plugins']['get']('CommentsRepository');this['listenTo'](_0x2499cb,'addComment',(_0x1ef943,{threadId:_0x40e4f5})=>{const _0x3e94e5=this['_suggestions']['get'](_0x40e4f5);_0x3e94e5&&_0x3e94e5['commentThread']&&0x1===_0x3e94e5['commentThread']['length']&&this['_updateSuggestionData'](_0x40e4f5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2499cb,'removeComment',(_0x3b8ddc,{threadId:_0x4ce02a})=>{const _0x4d5775=this['_suggestions']['get'](_0x4ce02a);_0x4d5775&&_0x4d5775['commentThread']&&!_0x4d5775['commentThread']['length']&&this['_updateSuggestionData'](_0x4ce02a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x90ec54){if(this['_adapter'])throw new _0x10426e('track-changes-adapter-already-set',this);this['_adapter']=_0x90ec54;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4ce7aa=!0x1,toJSON:_0x4efc15=!0x1}={}){const _0x3bc046=[];for(const _0xedda8 of this['_suggestions']['values']())_0x4ce7aa&&!_0xedda8['isInContent']||_0x3bc046['push'](_0xedda8);return _0x4efc15?_0x3bc046['map'](_0x281e97=>_0x281e97['toJSON']()):_0x3bc046;}['getSuggestion'](_0x340772){const _0x3d8590=this['_suggestions']['get'](_0x340772);if(!_0x3d8590)throw new _0x10426e('track-changes-suggestion-not-found',this);return _0x3d8590;}['hasSuggestion'](_0x7b27ac){return this['_suggestions']['has'](_0x7b27ac);}['addSuggestionData'](_0x12962f){const {authorId:_0x5dfcde,id:_0x384b49,attributes:_0x3956f3}=_0x12962f,[_0x32489c,_0x23caf8]=_0x12962f['type']['split'](':'),_0x118af7=this['_suggestions']['get'](_0x384b49)||this['_createSuggestion'](_0x32489c,_0x23caf8,_0x384b49,_0x5dfcde,_0x3956f3);if(this['_addThreadToSuggestion'](_0x118af7),this['_checkSuggestionCorrectness'](_0x118af7,_0x32489c,_0x23caf8||null,_0x5dfcde),_0x118af7['createdAt']=_0x12962f['createdAt'],_0x118af7['_isDataLoaded']=!0x0,_0x3956f3&&_0x3956f3['@external']){const _0x141685=_0x3956f3['@external'],_0x456b18=this['_getExternalAuthor'](_0x141685['authorName']);_0x118af7['authoredAt']=_0x141685['createdAt'],_0x118af7['author']=_0x456b18,_0x118af7['isExternal']=!0x0;}else _0x118af7['authoredAt']=_0x12962f['createdAt'];switch(_0x12962f['data']&&(_0x118af7['data']=_0x12962f['data']),_0x12962f['attributes']&&(_0x118af7['attributes']=_0x12962f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x118af7['_saved']=!0x0),this['_suggestionState']['get'](_0x118af7)){case'notReady':this['_suggestionState']['set'](_0x118af7,'dataReady');break;case'markerReady':_0x118af7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x118af7])),this['_refreshSuggestionsChain'](new Set([_0x118af7])),this['_suggestionState']['set'](_0x118af7,'ready'),this['fire']('suggestionLoaded',_0x118af7)):this['_suggestionState']['set'](_0x118af7,'removed');}return _0x118af7;}['acceptSuggestion'](_0x53c17d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x438b9f of _0x53c17d['getAllAdjacentSuggestions']())_0x438b9f['accept']();});});}['discardSuggestion'](_0x4a2bd7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x385867 of _0x4a2bd7['getAllAdjacentSuggestions']())_0x385867['discard']();});});}['enableCommand'](_0x34c54b,_0x51ae6f){const _0x51783e=this['editor']['commands']['get'](_0x34c54b);if(!_0x51783e)throw new _0x10426e('track-changes-command-not-found',this,{'commandName':_0x34c54b});if(this['_enabledCommands']['has'](_0x51783e))throw new _0x10426e('track-changes-enable-command-twice',this,{'commandName':_0x34c54b});this['_enabledCommands']['add'](_0x51783e),_0x51ae6f&&_0x51783e['on']('execute',(_0x393992,_0x519327)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x519327['length']>0x0&&_0x519327[_0x519327['length']-0x1]&&_0x519327[_0x519327['length']-0x1]['forceDefaultExecution']?_0x519327['pop']():(_0x393992['return']=_0x51ae6f((..._0x5c8e90)=>_0x51783e['execute'](..._0x5c8e90,{'forceDefaultExecution':!0x0}),..._0x519327),_0x393992['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5e36ee){let _0x4f430c,_0x6348f2;const _0x1549df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f430c=_0x5e36ee();}catch(_0x9babb1){_0x6348f2=_0x9babb1;}return _0x1549df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6348f2&&_0x10426e['rethrowUnexpectedError'](_0x6348f2,this),_0x4f430c;}['markInsertion'](_0x4aa9c1,_0x207a4e=null,_0x2d4531={}){if(_0x4aa9c1['isCollapsed'])return null;const _0x10d726=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x477d41,meta:_0x2bc879}of this['_findSuggestions'](_0x4aa9c1,'insertion'))if(_0x2bc879['isOwn']){if(!_0x2bc879['isNextTo']){if(_0x2bc879['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x477d41,_0x2d4531))continue;return _0x477d41;}if(qt(_0x477d41,_0x2d4531))return _0x477d41;this['_breakSuggestionMarker'](_0x477d41,_0x4aa9c1['start'],_0x4aa9c1['end']);break;}if(_0x207a4e==_0x477d41['subType']&&qt(_0x477d41,_0x2d4531)){const _0x4b4249=_0x477d41['getFirstRange']();return _0x4b4249['start']['isEqual'](_0x4aa9c1['end'])?this['_setSuggestionRange'](_0x477d41,this['_model']['createRange'](_0x4aa9c1['start'],_0x4b4249['end'])):this['_setSuggestionRange'](_0x477d41,this['_model']['createRange'](_0x4b4249['start'],_0x4aa9c1['end'])),_0x477d41;}}const _0x3d3c43=_0x1f1646(),_0x5b24a9=_0x10d726['id'],_0x1007c5=_0x207a4e?'insertion:'+_0x207a4e:'insertion',_0x339759=this['_setSuggestionData']({'id':_0x3d3c43,'type':_0x1007c5,'createdAt':new Date(),'authorId':_0x5b24a9,'attributes':_0x2d4531});return this['_addSuggestionMarker'](_0x1007c5,_0x3d3c43,_0x5b24a9,_0x4aa9c1),_0x339759;}['markMultiRangeInsertion'](_0x460a9d,_0x3f8f78='multi',_0x590000={}){const _0x46ab18=this['editor']['plugins']['get']('Users')['me'],_0x4b496b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3f8f78,'join');for(const _0xeeb004 of this['getSuggestions']())if(_0xeeb004['author']['id']==_0x46ab18['id']&&'insertion'==_0xeeb004['type']&&_0xeeb004['subType']==_0x3f8f78&&qt(_0xeeb004,_0x590000)&&(_0x4b496b(_0xeeb004['getRanges'](),_0x460a9d)||_0x4b496b(_0x460a9d,_0xeeb004['getRanges']()))){for(const _0x596da9 of _0x460a9d)_0xeeb004['addRange'](_0x596da9);return _0xeeb004;}for(const {suggestion:_0x41c618,meta:_0x4c0ce9}of this['_findSuggestions'](_0x460a9d,'insertion')){if(!_0x4c0ce9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4c0ce9['containsRangeInObject'])continue;if(!qt(_0x41c618,_0x590000))continue;let _0x3460b4=!0x0;for(const _0x2069c1 of _0x41c618['getRanges']())for(const _0x3b2eac of _0x460a9d)if(!_0x2069c1['containsRange'](_0x3b2eac)){_0x3460b4=!0x1;break;}if(_0x3460b4)return _0x41c618;}const _0x340e17=_0x1f1646(),_0x44b8fb=_0x46ab18['id'],_0x3ec0c4='insertion:'+_0x3f8f78,_0xd62e9f=this['_setSuggestionData']({'id':_0x340e17,'type':_0x3ec0c4,'createdAt':new Date(),'authorId':_0x44b8fb,'attributes':_0x590000});for(const _0x29fe6b of _0x460a9d)this['_addSuggestionMarker'](_0x3ec0c4,_0x340e17,_0x44b8fb,_0x29fe6b,u['getMultiRangeId']());return _0xd62e9f;}['markInlineFormat'](_0x4771e0,_0x64447c,_0x5cbf85=null,_0x5070f6={}){if(_0x5cbf85=_0x5cbf85||Pt(_0x64447c),_0x4771e0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9d9a8b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cbf85,'accept');return this['forceDefaultExecution'](()=>_0x9d9a8b([_0x4771e0],_0x64447c,_0x5070f6)),null;}const _0x3c0197=this['editor']['plugins']['get']('Users')['me'],_0x511721=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x491b59,meta:_0x5570c8}of this['_findSuggestions'](_0x4771e0,'insertion'))_0x5570c8['isOwn']&&!_0x5570c8['isInsideObject']&&_0x511721['push'](..._0x491b59['getRanges']());}const _0x25f109=function(_0x14ece7,_0x5a6484){const _0x31d225=[];for(const _0x32db7e of _0x5a6484){const _0x32a293=_0x14ece7['getIntersection'](_0x32db7e);_0x32a293&&_0x31d225['push'](_0x32a293);}return _0x31d225;}(_0x4771e0,_0x511721),_0x12e6f8=function(_0x247d9a,_0x30f4b3){const _0x467b2f=[_0x247d9a];for(const _0x29197d of _0x30f4b3){let _0x17c760=0x0;for(;_0x17c760<_0x467b2f['length'];){const _0x257945=_0x467b2f[_0x17c760]['getDifference'](_0x29197d);_0x467b2f['splice'](_0x17c760,0x1,..._0x257945),_0x17c760+=_0x257945['length'];}}return _0x467b2f;}(_0x4771e0,_0x511721);_0x25f109['length']&&this['_model']['change'](()=>{for(const _0x25ae26 of _0x25f109){const _0x4ddf0d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5cbf85,'accept');this['forceDefaultExecution'](()=>_0x4ddf0d([_0x25ae26],_0x64447c,_0x5070f6));}});for(const _0x25d627 of _0x12e6f8){let _0x3ad9e5=null,_0xfa8675=_0x25d627['start'],_0x413720=_0x25d627['end'];for(const {suggestion:_0x398e44,meta:_0x95eed6}of this['_findSuggestions'](_0x25d627,'formatInline')){if(!_0x95eed6['isOwn'])continue;if(_0x398e44['subType']!=_0x5cbf85)continue;if(!qt(_0x398e44,_0x5070f6))continue;const _0xaca5d7=_0x398e44['getFirstRange']();if(_0xaca5d7['containsRange'](_0x25d627,!0x0))return null;_0xfa8675=_0xfa8675['isBefore'](_0xaca5d7['start'])?_0xfa8675:_0xaca5d7['start'],_0x413720=_0x413720['isAfter'](_0xaca5d7['end'])?_0x413720:_0xaca5d7['end'],_0x3ad9e5?_0xaca5d7['start']['isBefore'](_0x3ad9e5['getFirstRange']()['start'])?(_0x3ad9e5['removeMarkers'](),_0x3ad9e5=_0x398e44):_0x398e44['removeMarkers']():_0x3ad9e5=_0x398e44;}const _0x4f2d76=this['_model']['createRange'](_0xfa8675,_0x413720);if(_0x3ad9e5)this['_setSuggestionRange'](_0x3ad9e5,_0x4f2d76);else{const _0x59345b=_0x1f1646(),_0x283812=_0x3c0197['id'];this['_setSuggestionData']({'id':_0x59345b,'type':'formatInline:'+_0x5cbf85,'data':_0x64447c,'createdAt':new Date(),'authorId':_0x283812,'attributes':_0x5070f6}),this['_addSuggestionMarker']('formatInline:'+_0x5cbf85,_0x59345b,_0x283812,_0x4f2d76);}}return null;}['markBlockFormat'](_0x546ede,_0xf0afc1,_0x30bc28=[],_0x14bbd7=null,_0x4fd406={}){_0xf0afc1['formatGroupId']||(_0xf0afc1['formatGroupId']=_0xf0afc1['commandName']),_0xf0afc1['multipleBlocks']=_0x546ede['is']('range'),_0x14bbd7=_0x14bbd7||Pt(_0xf0afc1);const _0x2de1db=_0x30bc28['map'](_0x11c95d=>Lt(_0x11c95d,this['_model'])),_0x40111e=_0x546ede['is']('range')?_0x546ede:Lt(_0x546ede,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a67ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14bbd7,'accept');return this['forceDefaultExecution'](()=>_0x5a67ff([_0x40111e],_0xf0afc1,_0x4fd406)),null;}_0x2de1db['push'](_0x40111e);let _0x3cfa01=!0x0;for(const _0x9dc2dc of _0x2de1db)if(!this['_rangeIsInLocalUserInsertion'](_0x9dc2dc)){_0x3cfa01=!0x1;break;}if(_0x3cfa01&&'always'!==this['_trackFormatChanges']){const _0x4b5f40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14bbd7,'accept');return this['forceDefaultExecution'](()=>_0x4b5f40([_0x40111e],_0xf0afc1,_0x4fd406)),null;}let _0x25854e=null,_0x421bfb=_0x40111e['start'],_0x3b6c1e=_0x40111e['end'];for(const {suggestion:_0x3b6b26,meta:_0x3f8b40}of this['_findSuggestions'](_0x40111e,'formatBlock')){if(!_0x3f8b40['isOwn'])continue;if(_0x3f8b40['isNextTo']||_0x3f8b40['containsRangeInObject']||_0x3f8b40['isInsideObject'])continue;if(_0x3b6b26['data']['formatGroupId']!=_0xf0afc1['formatGroupId'])continue;if(!qt(_0x3b6b26,_0x4fd406))continue;const _0x4927d9=_0x3b6b26['getFirstRange']();if(_0x3b6b26['subType']==_0x14bbd7){if(_0x4927d9['containsRange'](_0x40111e,!0x0))return null;_0x421bfb=_0x421bfb['isBefore'](_0x4927d9['start'])?_0x421bfb:_0x4927d9['start'],_0x3b6c1e=_0x3b6c1e['isAfter'](_0x4927d9['end'])?_0x3b6c1e:_0x4927d9['end'],_0x25854e?_0x4927d9['start']['isBefore'](_0x25854e['getFirstRange']()['start'])?(_0x25854e['removeMarkers'](),_0x25854e=_0x3b6b26):_0x3b6b26['removeMarkers']():_0x25854e=_0x3b6b26;}else{const _0x21cac3=_0x40111e['getIntersection'](_0x4927d9);this['_cutOutSuggestionMarker'](_0x3b6b26,_0x21cac3);}}const _0x22942e=this['editor']['plugins']['get']('Users')['me'],_0xc1a4cb=_0x1f1646(),_0x1074c8=_0x22942e['id'];if(_0x25854e)return this['_setSuggestionRange'](_0x25854e,this['_model']['createRange'](_0x421bfb,_0x3b6c1e)),_0x25854e;{const _0x19ac14=this['_setSuggestionData']({'id':_0xc1a4cb,'type':'formatBlock:'+_0x14bbd7,'data':_0xf0afc1,'createdAt':new Date(),'authorId':_0x1074c8,'attributes':_0x4fd406});return this['_addSuggestionMarker']('formatBlock:'+_0x14bbd7,_0xc1a4cb,_0x1074c8,this['_model']['createRange'](_0x421bfb,_0x3b6c1e)),_0x19ac14;}}['markMultiRangeBlockFormat'](_0x446c74,_0x100fac,_0x4471f2=[],_0x4dc1d5=null,_0x2a7c2a={}){_0x100fac['formatGroupId']||(_0x100fac['formatGroupId']=_0x100fac['commandName']);const _0x51a620=_0x446c74[0x0];_0x100fac['multipleBlocks']=_0x51a620['is']('range'),_0x4dc1d5=_0x4dc1d5||Pt(_0x100fac);const _0x4d62e8=_0x4471f2['map'](_0x407f1b=>Lt(_0x407f1b,this['_model'])),_0x112282=_0x51a620['is']('range')?_0x446c74:_0x446c74['map'](_0x32efc5=>Lt(_0x32efc5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x30e432=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc1d5,'accept');return this['forceDefaultExecution'](()=>_0x30e432(_0x112282,_0x100fac,_0x2a7c2a)),null;}_0x4d62e8['push'](..._0x112282);let _0x514ca2=!0x0;for(const _0x257c48 of _0x4d62e8)if(!this['_rangeIsInLocalUserInsertion'](_0x257c48)){_0x514ca2=!0x1;break;}if(_0x514ca2&&'always'!==this['_trackFormatChanges']){const _0x143074=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc1d5,'accept');return this['forceDefaultExecution'](()=>_0x143074(_0x112282,_0x100fac,_0x2a7c2a)),null;}const _0x4291da=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fec1a of this['getSuggestions']()){if(_0x4fec1a['author']['id']!=_0x4291da['id'])continue;if('formatBlock'!=_0x4fec1a['type']||_0x4fec1a['data']['formatGroupId']!=_0x100fac['formatGroupId'])continue;if(!qt(_0x4fec1a,_0x2a7c2a))continue;const _0x217cf8=_0x4fec1a['subType']==_0x4dc1d5;for(let _0x54e353=0x0;_0x54e353<_0x112282['length'];_0x54e353++){const _0x4268de=_0x112282[_0x54e353];for(const _0x236d66 of _0x4fec1a['getMarkers']()){const _0x355b9b=_0x236d66['getRange']();if(_0x4268de['isEqual'](_0x355b9b)){_0x217cf8?(_0x112282['splice'](_0x54e353,0x1),_0x54e353--):_0x4fec1a['removeMarker'](_0x236d66['name']);break;}}}}if(0x0==_0x112282['length'])return null;const _0x8f5d5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc1d5,'join');for(const _0x50d422 of this['getSuggestions']())if(_0x50d422['author']['id']==_0x4291da['id']&&'formatBlock'==_0x50d422['type']&&_0x50d422['data']['formatGroupId']==_0x100fac['formatGroupId']&&_0x50d422['subType']==_0x4dc1d5&&qt(_0x50d422,_0x2a7c2a)&&(_0x8f5d5d(_0x50d422['getRanges'](),_0x112282)||_0x8f5d5d(_0x112282,_0x50d422['getRanges']()))){for(const _0x233561 of _0x112282)_0x50d422['addRange'](_0x233561);return _0x50d422;}const _0x59539f=_0x1f1646(),_0x647432=_0x4291da['id'],_0x14d7ff='formatBlock:'+_0x4dc1d5,_0x2da404=this['_setSuggestionData']({'id':_0x59539f,'type':_0x14d7ff,'data':_0x100fac,'createdAt':new Date(),'authorId':_0x647432,'attributes':_0x2a7c2a});for(const _0x5d4bb2 of _0x112282)this['_addSuggestionMarker'](_0x14d7ff,_0x59539f,_0x647432,_0x5d4bb2,u['getMultiRangeId']());return _0x2da404;}['markDeletion'](_0x590b3a,_0x4c2f4a=null,_0x5022c6={}){if(_0x590b3a['isCollapsed'])return null;const _0x413a86=this['editor']['plugins']['get']('Users')['me'],_0x2247c0=new _0x544abc(_0x590b3a['start'],_0x590b3a['end']);for(const {suggestion:_0x22ed15,meta:_0x24c724}of this['_findSuggestions'](_0x2247c0,'insertion'))if(_0x24c724['isOwn']&&!_0x24c724['isNextTo']){if(_0x22ed15['isMultiRange']){const _0x23ee20=_0x22ed15['getRanges']()['filter'](_0x3bf3cc=>'$graveyard'!=_0x3bf3cc['root']['rootName']);_0x23ee20['every'](_0x139f76=>_0x2247c0['containsRange'](_0x139f76,!0x0))&&_0x22ed15['discard']();if(_0x23ee20['some'](_0x153c87=>_0x153c87['containsRange'](_0x2247c0,!0x0))){const _0x3c7266=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c2f4a,'accept');return this['forceDefaultExecution'](()=>_0x3c7266([_0x2247c0],null,_0x5022c6)),null;}}else{const _0x2ec511=_0x2247c0['getIntersection'](_0x22ed15['getFirstRange']());null!==_0x2ec511&&_0x22ed15['_onDiscard']([_0x2ec511],null,_0x5022c6);}}if(_0x2247c0['detach'](),_0x2247c0['isCollapsed']||'$graveyard'==_0x2247c0['root']['rootName'])return null;let _0x2e4952=null,_0x5648ad=_0x2247c0['start'],_0x58cc9d=_0x2247c0['end'];const _0x59c947=this['_findSuggestions'](_0x2247c0,'deletion');for(const {suggestion:_0x4b0faa,meta:_0x593fc9}of _0x59c947){const _0x8f3fe6=this['_model']['createRange'](_0x5648ad,_0x58cc9d);if(_0x593fc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x593fc9['containsRangeInObject']&&!_0x593fc9['isInsideObject'])){if(_0x4b0faa['isMultiRange']){if(!qt(_0x4b0faa,_0x5022c6))continue;let _0x3184b0=!0x0;for(const _0x19d289 of _0x4b0faa['getRanges']()){if(_0x19d289['containsRange'](_0x8f3fe6,!0x0))return _0x4b0faa;_0x8f3fe6['containsRange'](_0x19d289)||(_0x3184b0=!0x1);}_0x3184b0&&_0x4b0faa['discard']();}else{const _0x569a7e=_0x4b0faa['getFirstRange']();if(_0x569a7e['containsRange'](_0x8f3fe6,!0x0))return _0x4b0faa;if(!qt(_0x4b0faa,_0x5022c6)){_0x8f3fe6['containsRange'](_0x569a7e)?_0x4b0faa['removeMarkers']():_0x569a7e['containsPosition'](_0x5648ad)?_0x5648ad=_0x569a7e['end']:_0x569a7e['containsPosition'](_0x58cc9d)&&(_0x58cc9d=_0x569a7e['start']);continue;}_0x5648ad=_0x5648ad['isBefore'](_0x569a7e['start'])?_0x5648ad:_0x569a7e['start'],_0x58cc9d=_0x58cc9d['isAfter'](_0x569a7e['end'])?_0x58cc9d:_0x569a7e['end'],_0x5022c6=Object['assign']({},_0x4b0faa['attributes']),_0x2e4952?_0x569a7e['start']['isBefore'](_0x2e4952['getFirstRange']()['start'])?(_0x2e4952['removeMarkers'](),_0x2e4952=_0x4b0faa):_0x4b0faa['removeMarkers']():_0x2e4952=_0x4b0faa;}}}if(_0x2e4952)return this['_setSuggestionRange'](_0x2e4952,this['_model']['createRange'](_0x5648ad,_0x58cc9d)),_0x2e4952;{const _0x59e4c7=_0x1f1646(),_0x2da903=this['_model']['createRange'](_0x5648ad,_0x58cc9d),_0x3bec33=_0x413a86['id'],_0x4dcbb6=_0x4c2f4a?'deletion:'+_0x4c2f4a:'deletion',_0x18270a=this['_setSuggestionData']({'id':_0x59e4c7,'type':_0x4dcbb6,'createdAt':new Date(),'authorId':_0x3bec33,'attributes':_0x5022c6});return this['_addSuggestionMarker'](_0x4dcbb6,_0x59e4c7,_0x3bec33,_0x2da903),_0x18270a;}}['markMultiRangeDeletion'](_0x109afb,_0x47e85b='multi',_0x394b2f={}){const _0x24bf40=this['editor']['plugins']['get']('Users')['me'],_0x4de7bb=_0x109afb['map'](_0x40b99b=>new _0x544abc(_0x40b99b['start'],_0x40b99b['end'])),_0x21f5ee=new Set();for(const {suggestion:_0x925829,meta:_0x522476}of this['_findSuggestions'](_0x4de7bb,'insertion'))_0x522476['isOwn']&&!_0x522476['isNextTo']&&_0x21f5ee['add'](_0x925829);for(const _0x3c59b9 of _0x21f5ee)if(_0x3c59b9['isMultiRange']){const _0x1a6ba0=_0x3c59b9['getRanges']();(!_0x3c59b9['attributes']||!_0x3c59b9['attributes']['skipNestingCheck'])&&(_0x1a6ba0['every'](_0x2e7849=>_0x4de7bb['some'](_0x4cc284=>_0x4cc284['containsRange'](_0x2e7849,!0x0)))&&_0x3c59b9['discard']());if(_0x4de7bb['every'](_0x572214=>_0x1a6ba0['some'](_0x4b521a=>_0x4b521a['containsRange'](_0x572214,!0x0)))){const _0x21afe3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e85b,'accept');return this['forceDefaultExecution'](()=>_0x21afe3(_0x109afb,null,_0x394b2f)),null;}}else{const _0x12369e=_0x3c59b9['getFirstRange']();_0x4de7bb['some'](_0xa7301a=>_0xa7301a['containsRange'](_0x12369e,!0x0))&&_0x3c59b9['discard']();if(_0x4de7bb['every'](_0x3b0078=>_0x12369e['containsRange'](_0x3b0078,!0x0))){const _0xb77072=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e85b,'accept');return this['forceDefaultExecution'](()=>_0xb77072(_0x4de7bb,null,_0x394b2f)),null;}}const _0x31194c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e85b,'join');let _0x2f0802=null;for(const _0x29287e of this['getSuggestions']())if(_0x29287e['author']['id']==_0x24bf40['id']&&_0x29287e['isInContent']&&'deletion'==_0x29287e['type']&&_0x29287e['subType']==_0x47e85b&&qt(_0x29287e,_0x394b2f)&&(_0x31194c(_0x29287e['getRanges'](),_0x4de7bb)||_0x31194c(_0x4de7bb,_0x29287e['getRanges']()))){if(_0x2f0802){if(_0x29287e['commentThread']&&_0x29287e['commentThread']['length'])continue;for(const _0x16d649 of _0x29287e['getRanges']())_0x2f0802['isIntersectingWithRange'](_0x16d649)||_0x2f0802['addRange'](_0x16d649);_0x29287e['removeMarkers']();}else{_0x2f0802=_0x29287e;for(const _0x432afb of _0x4de7bb)_0x29287e['isIntersectingWithRange'](_0x432afb)||_0x29287e['addRange'](_0x432afb);}}if(_0x2f0802)return _0x2f0802;_0x21f5ee['clear']();for(const {suggestion:_0x4d387c,meta:_0x367718}of this['_findSuggestions'](_0x4de7bb,'deletion'))_0x367718['isOwn']&&(this['_mergeNestedSuggestions']||!_0x367718['containsRangeInObject']&&!_0x367718['isInsideObject'])&&qt(_0x4d387c,_0x394b2f)&&_0x21f5ee['add'](_0x4d387c);for(const _0x2bdbb9 of _0x21f5ee){const _0x3273d0=_0x2bdbb9['getRanges']();if(!_0x394b2f||!_0x394b2f['skipNestingCheck']){if(_0x4de7bb['every'](_0x3cf0e4=>_0x3273d0['some'](_0x27cf62=>_0x27cf62['containsRange'](_0x3cf0e4,!0x0))))return _0x2bdbb9;}(!_0x2bdbb9['attributes']||!_0x2bdbb9['attributes']['skipNestingCheck'])&&(_0x3273d0['every'](_0xd2219a=>_0x4de7bb['some'](_0x267d67=>_0x267d67['containsRange'](_0xd2219a,!0x0)))&&_0x2bdbb9['discard']());}const _0x4f737e=_0x1f1646(),_0x459153=_0x24bf40['id'],_0xa57176='deletion:'+_0x47e85b,_0x2ecebe=this['_setSuggestionData']({'id':_0x4f737e,'type':_0xa57176,'createdAt':new Date(),'authorId':_0x459153,'attributes':_0x394b2f});for(const _0x27e6e7 of _0x4de7bb)_0x27e6e7['detach'](),_0x27e6e7['isCollapsed']||'$graveyard'==_0x27e6e7['root']['rootName']||this['_addSuggestionMarker'](_0xa57176,_0x4f737e,_0x459153,_0x27e6e7,u['getMultiRangeId']());return _0x2ecebe;}['markAttributeChange'](_0x31a9af,_0x6b063e,_0x1b97c9,_0x3c3205,_0x34297b){if(_0x31a9af['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d2921=this['editor']['plugins']['get']('Users')['me']['id'],_0x1bdc09=Array['from'](this['_suggestions']['values']())['filter'](_0x549758=>'attribute'==_0x549758['type']&&_0x549758['data']['key']==_0x6b063e&&_0x549758['isIntersectingWithRange'](_0x31a9af));if('default'===this['_trackFormatChanges']){const _0x11dfc6=this['_findSuggestions'](_0x31a9af,'insertion')['filter'](({meta:_0x1ebf4c})=>_0x1ebf4c['isOwn']&&!_0x1ebf4c['isInsideObject']&&!_0x1ebf4c['isNextTo'])['map'](({suggestion:_0x1d8485})=>_0x1d8485);_0x1bdc09['unshift'](..._0x11dfc6);}const _0x13ba50=new Map([[_0x31a9af,_0x1b97c9]]);for(const _0x5b9d9e of _0x1bdc09){const _0xed8492='attribute'==_0x5b9d9e['type']?_0x5b9d9e['data']['oldValue']:void 0x0,_0x20d392=_0x5b9d9e['getFirstRange'](),_0x213aef=Array['from'](_0x13ba50['keys']())['find'](_0x133ee5=>_0x133ee5['isIntersecting'](_0x20d392));if(!_0x213aef)continue;const _0x339ef9=_0x213aef['getDifference'](_0x20d392);this['_isBlockAttribute'](_0x6b063e)&&'insertion'==_0x5b9d9e['type']&&0x0!=_0x339ef9['length']||(_0x13ba50['delete'](_0x213aef),_0x339ef9['forEach'](_0x2350a3=>{_0x13ba50['set'](_0x2350a3,_0x1b97c9);}),'insertion'!=_0x5b9d9e['type']&&_0xed8492!=_0x3c3205&&_0x13ba50['set'](_0x213aef['getIntersection'](_0x20d392),_0xed8492));}const _0x1b55d5=[];for(const [_0x5b8fea,_0x39a584]of _0x13ba50){const _0xc4db9d=_0x1f1646(),_0x594d4c={'key':_0x6b063e,'oldValue':_0x39a584,'newValue':_0x3c3205};_0x6b063e['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':_0x6b063e});const _0x1b4c6f=('attribute:'+(_0x6b063e+'|'+Pt({'newValue':_0x3c3205})))['substring'](0x0,0x3c),_0x590462=this['_setSuggestionData']({'id':_0xc4db9d,'type':_0x1b4c6f,'data':_0x594d4c,'createdAt':new Date(),'authorId':_0x1d2921,'attributes':_0x34297b});_0x1b55d5['push'](_0x590462),this['_addSuggestionMarker'](_0x1b4c6f,_0xc4db9d,_0x1d2921,_0x5b8fea);}return _0x1b55d5;}['enableDefaultAttributesIntegration'](_0x2d0b2f){this['enableCommand'](_0x2d0b2f,(_0xa5a38,..._0x3697f7)=>{this['_recordAttributeChanges'](()=>{_0xa5a38(..._0x3697f7);});});}['registerBlockAttribute'](_0x3bef75){this['_blockAttributeKeys']['add'](_0x3bef75);}['registerInlineAttribute'](_0x56030a){this['_inlineAttributeKeys']['add'](_0x56030a);}['_getAttributeKey'](_0x566298){return'attribute'==_0x566298['type']?_0x566298['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5c01fe,_0x3b2b2f){const _0x30c79e=_0x5c01fe['getFirstMarker']();this['_model']['change'](_0x2728e7=>{_0x2728e7['updateMarker'](_0x30c79e,{'range':_0x3b2b2f});});}['_addThreadToSuggestion'](_0x400e38){const _0x9aa70b=_0x400e38['id'],_0x227ead=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x9aa70b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x227ead,'threadId':_0x9aa70b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbed1f6=this['_commentsRepository']['getCommentThread'](_0x9aa70b);_0xbed1f6['unbind']('isRemovable'),_0xbed1f6['isRemovable']=!0x1,_0x400e38['commentThread']=_0xbed1f6;}['_checkSuggestionCorrectness'](_0xe29d9d,_0x109272,_0x4fe933,_0x180ff7){if(_0xe29d9d['type']!=_0x109272||_0xe29d9d['subType']!=_0x4fe933||_0xe29d9d['creator']['id']!=_0x180ff7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10426e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b3cd4,_0x5b6649){const _0x2d7aaf=_0x3b3cd4['getFirstRange']();if(_0x5b6649['isEqual'](_0x2d7aaf))_0x3b3cd4['removeMarkers']();else{if(_0x2d7aaf['containsRange'](_0x5b6649)){const _0x7ff520=this['_model']['createPositionAt'](_0x5b6649['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b3cd4,this['_model']['createRange'](_0x2d7aaf['start'],_0x7ff520));const _0x470c14=_0x1f1646(),_0x12361c=_0x3b3cd4['creator']['id'],_0x1926eb=_0x3b3cd4['type']+':'+_0x3b3cd4['subType'];this['_setSuggestionData']({'id':_0x470c14,'type':_0x1926eb,'createdAt':new Date(),'authorId':_0x12361c,'data':_0x3b3cd4['data'],'attributes':_0x3b3cd4['attributes']});const _0x1fc217=this['_model']['createPositionAt'](_0x5b6649['end']['parent'],'after'),_0x4b5a25=this['_model']['createRange'](_0x1fc217,_0x2d7aaf['end']);this['_addSuggestionMarker'](_0x1926eb,_0x470c14,_0x12361c,_0x4b5a25);}else{if(_0x2d7aaf['containsPosition'](_0x5b6649['start'])){const _0x2081e0=this['_model']['createPositionAt'](_0x5b6649['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b3cd4,this['_model']['createRange'](_0x2d7aaf['start'],_0x2081e0));}else{const _0x221a07=this['_model']['createPositionAt'](_0x5b6649['end']['parent'],'after');this['_setSuggestionRange'](_0x3b3cd4,this['_model']['createRange'](_0x221a07,_0x2d7aaf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a2c33){for(const {suggestion:_0x52c24c,meta:_0x41bbdf}of this['_findSuggestions'](_0x1a2c33,'insertion')){if(!_0x41bbdf['isOwn'])continue;const _0x4ae99b=_0x52c24c['getRanges']();for(const _0x14f47a of _0x4ae99b)if(!_0x1a2c33['getDifference'](_0x14f47a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x481f4e){const _0x2226e4=this['editor']['plugins']['get']('Users')['getUser'](_0x481f4e);if(!_0x2226e4)throw new _0x10426e('track-changes-user-not-found',this);return _0x2226e4;}['_getExternalAuthor'](_0x2bbd13){const _0x26ab78=this['editor']['plugins']['get']('Users'),_0x526afe=_0x478e56('external:'+_0x2bbd13),_0xa987f7=_0x26ab78['getUser'](_0x526afe);return _0xa987f7||_0x26ab78['addUser']({'id':_0x526afe,'name':_0x2bbd13});}['_createSuggestion'](_0x4ce38c,_0x1c5281,_0x567222,_0x156c1f,_0x5371e4){const _0x4fe8cd=this['_getAuthorFromId'](_0x156c1f),_0x1125fb=this['_suggestionFactory']['buildSuggestion'](_0x4ce38c,_0x1c5281,_0x567222,_0x4fe8cd,_0x5371e4,_0x296660=>{this['_updateSuggestionData'](_0x567222,{'attributes':_0x296660});const _0x5cc9ee=this['getSuggestion'](_0x567222);this['_joinWithAdjacentSuggestions'](new Set([_0x5cc9ee])),this['_refreshSuggestionsChain'](new Set([_0x5cc9ee]));});return this['listenTo'](_0x1125fb,'accept',()=>{this['_updateSuggestionData'](_0x567222,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1125fb,'discard',()=>{this['_updateSuggestionData'](_0x567222,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x567222,_0x1125fb),this['_suggestionState']['set'](_0x1125fb,'notReady'),_0x1125fb;}['_splitMarkerName'](_0x4e3c19){const _0x4ddbda=_0x4e3c19['split'](':');return{'group':_0x4ddbda[0x0],'type':_0x4ddbda[0x1],'subType':_0x4ddbda['length']>=0x5?_0x4ddbda[0x2]:null,'id':_0x4ddbda['length']<0x5?_0x4ddbda[0x2]:_0x4ddbda[0x3],'authorId':_0x4ddbda['length']<0x5?_0x4ddbda[0x3]:_0x4ddbda[0x4],'markerCount':0x6==_0x4ddbda['length']?_0x4ddbda[0x5]:null};}['_breakSuggestionMarker'](_0x3b3a0f,_0x2feb40,_0x2a1701){const _0x342dc2=_0x3b3a0f['getFirstRange'](),_0x4bc273=_0x342dc2['start'],_0x4257f5=_0x342dc2['end'];this['_setSuggestionRange'](_0x3b3a0f,this['_model']['createRange'](_0x4bc273,_0x2feb40));const _0x101153=_0x1f1646(),_0x54d6b4=_0x3b3a0f['creator']['id'],_0x383515=_0x3b3a0f['type']+(_0x3b3a0f['subType']?':'+_0x3b3a0f['subType']:'');this['_setSuggestionData']({'id':_0x101153,'type':_0x383515,'createdAt':new Date(),'authorId':_0x54d6b4,'originalSuggestionId':_0x3b3a0f['id'],'attributes':_0x3b3a0f['attributes'],'data':_0x3b3a0f['data']});const _0x445f69=this['_getAttributeKey'](_0x3b3a0f);('formatBlock'==_0x3b3a0f['type']||_0x445f69&&this['_isBlockAttribute'](_0x445f69))&&(_0x2a1701=this['_model']['createPositionBefore'](_0x2a1701['parent'])),this['_addSuggestionMarker'](_0x383515,_0x101153,_0x54d6b4,this['_model']['createRange'](_0x2a1701,_0x4257f5));}['_findSuggestions'](_0x2ab679,_0x45a030=null){const _0x179767=[],_0x49a3e1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ab679)||(_0x2ab679=[_0x2ab679]);for(const _0x17969f of this['getSuggestions']()){if(!_0x17969f['isInContent'])continue;if(_0x45a030&&_0x17969f['type']!=_0x45a030)continue;let _0x54d0db=!0x1;for(const _0x140aa0 of _0x17969f['getRanges']()){for(const _0x5240e6 of _0x2ab679){const _0xc5960b=_0x5240e6['start']['isEqual'](_0x140aa0['end'])||_0x5240e6['end']['isEqual'](_0x140aa0['start']);if(_0xc5960b||_0x5240e6['getIntersection'](_0x140aa0)){const _0x21538d=_0x5240e6['containsRange'](_0x140aa0)&&Et(this['_model']['schema'],_0x140aa0['start'],_0x5240e6),_0x2567fd=_0x140aa0['containsRange'](_0x5240e6)&&Et(this['_model']['schema'],_0x5240e6['start'],_0x140aa0);_0x179767['push']({'suggestion':_0x17969f,'meta':{'isOwn':_0x49a3e1==_0x17969f['author'],'isNextTo':_0xc5960b,'isInsideObject':_0x21538d,'containsRangeInObject':_0x2567fd}}),_0x54d0db=!0x0;break;}}if(_0x54d0db)break;}}return _0x179767;}['_addSuggestionMarker'](_0x3a5b9d,_0x58d616,_0x395920,_0x174a4b,_0x336b47){this['_model']['change'](_0x27ff0a=>{let _0x304cd6='suggestion:'+_0x3a5b9d+':'+_0x58d616+':'+_0x395920;_0x336b47&&(_0x304cd6=_0x304cd6+':'+_0x336b47),_0x27ff0a['addMarker'](_0x304cd6,{'range':_0x174a4b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30f782){const _0x10b1ed=_0x30f782['previous'],_0x15f190=_0x30f782['next'];_0x30f782['previous']=null,_0x30f782['next']=null,null!=_0x10b1ed&&_0x10b1ed['next']==_0x30f782&&(_0x10b1ed['next']=_0x15f190),null!=_0x15f190&&_0x15f190['previous']==_0x30f782&&(_0x15f190['previous']=_0x10b1ed),'ready'==this['_suggestionState']['get'](_0x30f782)&&(this['_suggestionState']['set'](_0x30f782,'removed'),this['fire']('suggestionUnloaded',_0x30f782,_0x10b1ed,_0x15f190));}['_setSuggestionData'](_0x214255){const _0x21bafe=_0x214255['id'],_0x188467=this['addSuggestionData'](_0x214255);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5e79c8=this['editor']['plugins']['get']('PendingActions'),_0x5e050e=_0x188467['hasComments'],_0x1fb5ba=_0x188467['subType']?_0x188467['type']+':'+_0x188467['subType']:_0x188467['type'],_0x20d94e=this['editor']['locale'],_0x2c8755=_0x5e79c8['add'](o(_0x20d94e,'PENDING_ACTION_SUGGESTION')),_0x565eb4={'id':_0x21bafe,'type':_0x1fb5ba,'hasComments':_0x5e050e,'data':_0x214255['data']||null,'originalSuggestionId':_0x214255['originalSuggestionId']||null,'attributes':_0x188467['attributes']};this['_adapter']['addSuggestion'](_0x565eb4)['then'](_0x273a79=>{_0x188467['_saved']=!0x0,_0x5e79c8['remove'](_0x2c8755),_0x273a79&&_0x273a79['createdAt']&&(this['_suggestions']['get'](_0x21bafe)['createdAt']=_0x273a79['createdAt']);})['catch'](_0x3c03ce=>{throw _0x527ed6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x188467['discard']();}),_0x188467['stopListening'](),this['_suggestions']['delete'](_0x188467['id']),this['_suggestionState']['delete'](_0x188467),_0x3c03ce;});}return _0x188467;}['_isBlockAttribute'](_0x3b78c0){return this['_blockAttributeKeys']['has'](_0x3b78c0);}['_updateSuggestionData'](_0x590a98,_0x17a7ea){const _0x3e4478=this['editor']['plugins']['get']('PendingActions'),_0x1336c0=this['getSuggestion'](_0x590a98);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1336c0['_saved']){const _0x1d3761=_0x3e4478['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x590a98,_0x17a7ea)['then'](()=>{_0x3e4478['remove'](_0x1d3761);});}else _0x1336c0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x590a98,_0x17a7ea);});}}['_getSuggestionData'](_0x3562b6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10426e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3562b6);}['_handleNewSuggestionMarker'](_0x25a0c1){const {id:_0x31dd23,type:_0x9073d5,subType:_0x275099,authorId:_0x4c7f26}=this['_splitMarkerName'](_0x25a0c1),_0x33d778=this['_suggestions']['get'](_0x31dd23)||this['_createSuggestion'](_0x9073d5,_0x275099,_0x31dd23,_0x4c7f26,{});switch(this['_checkSuggestionCorrectness'](_0x33d778,_0x9073d5,_0x275099,_0x4c7f26),this['_suggestionState']['get'](_0x33d778)){case'notReady':this['_getSuggestionData'](_0x31dd23)['then'](_0x4ebb90=>{let _0x1b0ba0=Promise['resolve']();_0x4ebb90['hasComments']&&(_0x1b0ba0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x31dd23})),_0x1b0ba0['then'](()=>{this['addSuggestionData'](_0x4ebb90)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x33d778,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x31dd23,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x33d778,'ready'),this['fire']('suggestionLoaded',_0x33d778);break;case'ready':this['fire']('suggestionChanged',_0x33d778);}return _0x33d778['addMarkerName'](_0x25a0c1),_0x33d778;}['_refreshSuggestionsChain'](_0x184ba6){const _0x340a2c=Array['from'](_0x184ba6),_0x3023cb=_0x340a2c['filter'](_0x54fa6f=>'attribute'==_0x54fa6f['type']);this['_refreshAttributeSuggestionsChain'](_0x3023cb);const _0x56089f=_0x340a2c['filter'](_0xea1cd1=>!_0xea1cd1['isMultiRange']&&'attribute'!=_0xea1cd1['type']),_0x47cbbc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7290b8=>!_0x7290b8['isMultiRange']&&'attribute'!=_0x7290b8['type']),_0x1d9e40=_0x47cbbc['filter'](_0x467dc1=>!_0x184ba6['has'](_0x467dc1)),_0x55e0f1=new Map(_0x47cbbc['map'](_0x1b017f=>[_0x1b017f,this['_suggestionFactory']['getSuggestionCallback'](_0x1b017f['type'],_0x1b017f['subType'],'chain')])),_0x4bd16d=new Map(_0x47cbbc['map'](_0x5c30e0=>[_0x5c30e0,_0x5c30e0['getFirstRange']()])),_0x4118db=new Set(),_0x486202=new Set();for(let _0x2f3613=0x0;_0x2f3613<_0x56089f['length'];_0x2f3613++)_0x31eed0(_0x56089f[_0x2f3613],_0x56089f,_0x2f3613+0x1);for(let _0x4e286=0x0;_0x4e286<_0x56089f['length'];_0x4e286++)_0x31eed0(_0x56089f[_0x4e286],_0x1d9e40,0x0);const _0x102fd0=new Set();for(let _0x4a593f=0x0;_0x4a593f<_0x56089f['length'];_0x4a593f++){const _0x259864=_0x56089f[_0x4a593f];!_0x486202['has'](_0x259864)&&_0x259864['previous']&&(_0x102fd0['add'](_0x259864['previous']),_0x259864['previous']['next']===_0x259864&&(_0x259864['previous']['next']=null),_0x259864['previous']=null),!_0x4118db['has'](_0x259864)&&_0x259864['next']&&(_0x102fd0['add'](_0x259864['next']),_0x259864['next']['previous']===_0x259864&&(_0x259864['next']['previous']=null),_0x259864['next']=null);}function _0x31eed0(_0x424710,_0x1bef17,_0x648aca){for(let _0x4040ff=_0x648aca;_0x4040ff<_0x1bef17['length'];_0x4040ff++){const _0x488b42=_0x531949(_0x424710,_0x1bef17[_0x4040ff]);_0x488b42&&(_0x488b42[0x0]['next']=_0x488b42[0x1],_0x488b42[0x1]['previous']=_0x488b42[0x0],_0x4118db['add'](_0x488b42[0x0]),_0x486202['add'](_0x488b42[0x1]));}}function _0x531949(_0x42a06a,_0x1eb613){if(_0x42a06a['author']['id']!==_0x1eb613['author']['id'])return null;const _0x6a6302=_0x55e0f1['get'](_0x42a06a)(_0x42a06a,_0x1eb613,_0x4bd16d['get'](_0x42a06a),_0x4bd16d['get'](_0x1eb613));if(!_0x6a6302)return null;return _0x55e0f1['get'](_0x1eb613)(_0x42a06a,_0x1eb613,_0x4bd16d['get'](_0x42a06a),_0x4bd16d['get'](_0x1eb613))?_0x6a6302[0x1]['commentThread']&&_0x6a6302[0x1]['commentThread']['length']?null:_0x6a6302:null;}_0x102fd0['size']&&this['_refreshSuggestionsChain'](_0x102fd0);}['_refreshAttributeSuggestionsChain'](_0x50f189){if(0x0==_0x50f189['length'])return;const _0x3f7254=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x328f35=>'attribute'==_0x328f35['type']&&_0x328f35['_isDataLoaded']),_0x5cbc17=[],_0x4051da=new Map();for(const _0x44cc27 of _0x3f7254){const _0x4fea52=_0x478e56(_0x44cc27['attributes']);_0x4051da['has'](_0x4fea52)||(_0x4051da['set'](_0x4fea52,_0x5cbc17['length']),_0x5cbc17['push']([]));const _0x11ab21=_0x4051da['get'](_0x4fea52);_0x5cbc17[_0x11ab21]['push'](_0x44cc27);}!(function(){_0x5cbc17['sort']((_0xd2a572,_0x2553bb)=>{const _0x1ba107=_0xd2a572[0x0]['createdAt'],_0x4a7f35=_0x2553bb[0x0]['createdAt'];return _0x1ba107==_0x4a7f35?_0xd2a572[0x0]['attributes']['groupId']<_0x2553bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ba107<_0x4a7f35?-0x1:0x1;});for(const _0xb842dd of _0x5cbc17)_0xb842dd['sort']((_0x2759f4,_0x10e336)=>_0x2759f4['id']<_0x10e336['id']?-0x1:0x1);}());for(let _0x49379c=0x0;_0x49379c<_0x5cbc17['length'];_0x49379c++){if(0x0==_0x5cbc17[_0x49379c]['length'])continue;const _0x253ee2=[];for(let _0x461f30=_0x49379c+0x1;_0x461f30<_0x5cbc17['length'];_0x461f30++)0x0!=_0x5cbc17[_0x461f30]['length']&&_0x40d427(_0x5cbc17[_0x49379c],_0x5cbc17[_0x461f30])&&_0x253ee2['push'](_0x461f30);for(const _0x102663 of _0x253ee2)_0x5cbc17[_0x49379c]=_0x5cbc17[_0x49379c]['concat'](_0x5cbc17[_0x102663]),_0x5cbc17[_0x102663]=[];}for(const _0x25e718 of _0x5cbc17)for(let _0x9b6737=0x0;_0x9b6737<_0x25e718['length'];_0x9b6737++){const _0x161652=_0x25e718[_0x9b6737+0x1]||null;_0x25e718[_0x9b6737]['next']!==_0x161652&&(_0x25e718[_0x9b6737]['next']=_0x161652);}for(const _0x555186 of _0x5cbc17)for(let _0x53f590=0x0;_0x53f590<_0x555186['length'];_0x53f590++){const _0x3c136c=_0x555186[_0x53f590-0x1]||null;_0x555186[_0x53f590]['previous']!==_0x3c136c&&(_0x555186[_0x53f590]['previous']=_0x3c136c);}function _0x40d427(_0x55dd75,_0x3d507e){if(_0x55dd75[0x0]['attributes']['groupId']!==_0x3d507e[0x0]['attributes']['groupId']&&_0x55dd75[0x0]['author']!==_0x3d507e[0x0]['author'])return!0x1;if(!function(_0x258859,_0x5b1bc2){if(!_0x258859['hasComments']&&!_0x5b1bc2['hasComments'])return!0x0;if(_0x258859['hasComments']&&_0x5b1bc2['hasComments'])return!0x1;if(_0x258859['hasComments']&&_0x5b1bc2['createdAt']<_0x258859['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b1bc2['hasComments']&&_0x258859['createdAt']<_0x5b1bc2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55dd75[0x0],_0x3d507e[0x0]))return!0x1;const _0x1a5c7c=Rt(_0x55dd75[0x0]['attributes'],'groupId'),_0xbb196d=Rt(_0x3d507e[0x0]['attributes'],'groupId');if(!_0xf20d03(_0x1a5c7c,_0xbb196d))return!0x1;return!!_0x55dd75['every'](_0x263a02=>_0x3d507e['some'](_0x261d72=>_0x263a02['getFirstRange']()['isEqual'](_0x261d72['getFirstRange']())))&&_0x3d507e['every'](_0x2dbf47=>_0x55dd75['some'](_0x3b5cea=>_0x2dbf47['getFirstRange']()['isEqual'](_0x3b5cea['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4981c5){const _0x30f35b=Array['from'](_0x4981c5),_0x3f3ad9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46c3f7=_0x3f3ad9['filter'](_0x3b3978=>!_0x4981c5['has'](_0x3b3978)),_0x21725c=new Map(_0x30f35b['map'](_0x32eeff=>[_0x32eeff,this['_suggestionFactory']['getSuggestionCallback'](_0x32eeff['type'],_0x32eeff['subType'],'join')])),_0x1e848d=new Map(_0x3f3ad9['map'](_0x4c6092=>[_0x4c6092,_0x4c6092['getRanges']()]));for(let _0x3cc4a7=0x0;_0x3cc4a7<_0x30f35b['length'];_0x3cc4a7++){if(_0x3da489(this,_0x30f35b[_0x3cc4a7],_0x30f35b,_0x3cc4a7+0x1))return!0x0;}for(let _0x4de35=0x0;_0x4de35<_0x30f35b['length'];_0x4de35++){if(_0x3da489(this,_0x30f35b[_0x4de35],_0x46c3f7,0x0))return!0x0;}return!0x1;function _0x3da489(_0x3b473d,_0x3c43fd,_0x25d36c,_0x3b1349){for(let _0x38bf20=_0x3b1349;_0x38bf20<_0x25d36c['length'];_0x38bf20++){const _0x1b85c0=_0x25d36c[_0x38bf20];if(_0x1b85c0['type']!==_0x3c43fd['type']||_0x1b85c0['author']['id']!==_0x3c43fd['author']['id']||_0x1b85c0['subType']!==_0x3c43fd['subType'])continue;if(!Jt(_0x3c43fd,_0x1b85c0))continue;if('attribute'==_0x3c43fd['type']&&_0x3c43fd['data']['oldValue']!=_0x1b85c0['data']['oldValue'])continue;if('attribute'==_0x3c43fd['type']&&_0x3b473d['_isBlockAttribute'](_0x3c43fd['data']['key']))continue;if('formatBlock'==_0x3c43fd['type']){const _0x56baec=_0x3b473d['editor']['model'],_0x24ba56=_0x3c43fd['getContainedElement']();if(_0x24ba56&&(_0x56baec['schema']['isObject'](_0x24ba56)||_0x56baec['schema']['isLimit'](_0x24ba56)))continue;}const _0x2c17d9=_0x21725c['get'](_0x3c43fd),_0x17af79=_0x1e848d['get'](_0x3c43fd),_0x2d9583=_0x1e848d['get'](_0x1b85c0),_0x4aa4f1=_0x3c43fd['commentThread']&&_0x3c43fd['commentThread']['length'],_0x42bc31=_0x1b85c0['commentThread']&&_0x1b85c0['commentThread']['length'];if(!_0x4aa4f1&&_0x2c17d9(_0x2d9583,_0x17af79))return _0x3b473d['_joinSuggestions'](_0x1b85c0,_0x3c43fd),_0x1e848d['delete'](_0x3c43fd),!0x0;if(!_0x42bc31&&_0x2c17d9(_0x17af79,_0x2d9583))return _0x3b473d['_joinSuggestions'](_0x3c43fd,_0x1b85c0),_0x1e848d['delete'](_0x1b85c0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33fa36,_0x4f1d72){if(_0x33fa36['isMultiRange']){for(const _0x1047ca of _0x4f1d72['getRanges']())_0x33fa36['addRange'](_0x1047ca);}else{const _0x4db68a=_0x4f1d72['getFirstRange']()['end'];this['_setSuggestionRange'](_0x33fa36,this['_model']['createRange'](_0x33fa36['getFirstRange']()['start'],_0x4db68a));}_0x4f1d72['removeMarkers']();}['_getMarkerAnnouncementText'](_0x32d79f,_0xba9f64,_0x2033b4){const _0x5c7b8e=_0x32d79f['startsWith']('format')||_0x32d79f['startsWith']('attribute')?'FORMATTING':_0x32d79f['toUpperCase']();return o(this['editor']['locale'],_0xba9f64+'_'+_0x5c7b8e+'_SUGGESTION_ANNOUNCEMENT',_0x2033b4);}['_initAriaMarkerChangeAnnouncements'](){const _0x487d61=this['editor'];if(!_0x487d61['ui'])return;const {ariaLiveAnnouncer:_0x1d633c}=_0x487d61['ui'];_0x41087d(this['_model'],({left:_0x3c52cb,entered:_0x39e709})=>{for(const _0xc19256 of _0x3c52cb){const {group:_0x4069f9,type:_0xc4e416}=this['_splitMarkerName'](_0xc19256['name']);if('suggestion'===_0x4069f9){_0x1d633c['announce'](this['_getMarkerAnnouncementText'](_0xc4e416,'LEAVE'));break;}}for(const _0x1bdb4e of _0x39e709){const {group:_0x3afd2a,type:_0x428341}=this['_splitMarkerName'](_0x1bdb4e['name']);if('suggestion'===_0x3afd2a){_0x1d633c['announce'](this['_getMarkerAnnouncementText'](_0x428341,'ENTER',_0xdcc2ca(_0x4c6663)));break;}}});}['_processAttributeChanges'](_0xd572a4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x358a75=this['editor'],_0x4d3c42=_0x358a75['model']['document']['differ']['getChanges']();if(0x0==_0x4d3c42['length'])return!0x1;const _0x24932e=[],_0x24fd39=_0x4d3c42['filter'](_0x385bf1=>'attribute'==_0x385bf1['type']),_0x51c8b6=_0x4d3c42['filter'](_0x30ec60=>'insert'==_0x30ec60['type']&&'$text'!=_0x30ec60['name']),_0x193e1b=_0x4d3c42['filter'](_0x3238da=>'remove'==_0x3238da['type']&&'$text'!=_0x3238da['name']);for(const _0x229e1d of _0x24fd39)_0x24932e['push']({'key':_0x229e1d['attributeKey'],'newValue':_0x229e1d['attributeNewValue'],'oldValue':_0x229e1d['attributeOldValue'],'range':Ft(_0x229e1d['range'],_0x358a75['model'])});for(const _0x229356 of _0x51c8b6){const _0x3bde7c=_0x193e1b['find'](_0x388a2a=>_0x388a2a['position']['isEqual'](_0x229356['position']));_0x3bde7c&&_0x24932e['push']({'key':m,'newValue':_0x229356['name'],'oldValue':_0x3bde7c['name'],'range':_0x358a75['model']['createRangeOn'](_0x229356['position']['nodeAfter'])});}return 0x0!=_0x24932e['length']&&this['_reduceExistingSuggestions'](_0xd572a4,_0x24932e);}['_processAttributeSuggestions'](_0x7dba32){let _0x2d92ab=!0x1;const _0x4d2a76=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b4052=>_0x4b4052['data']['newRange']&&_0x4b4052['name']['startsWith']('suggestion:attribute:'));for(const _0x1bcfe9 of _0x4d2a76){const {subType:_0x5ad27d,id:_0x123577}=this['_splitMarkerName'](_0x1bcfe9['name']),_0x3cdd84=_0x5ad27d['split']('|')[0x0];for(const _0xc4a589 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xc4a589['id']!=_0x123577&&'attribute'==_0xc4a589['type']&&_0xc4a589['data']&&_0xc4a589['data']['key']==_0x3cdd84&&_0xc4a589['getFirstRange']()['isIntersecting'](_0x1bcfe9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xc4a589,_0x1bcfe9['data']['newRange'],_0x7dba32),_0x2d92ab=!0x0);}return _0x2d92ab;}['_recordAttributeChanges'](_0x327e8b){this['_recordAttributeSuggestions']=!0x0,_0x327e8b();}['_isRegisteredAttribute'](_0x5b34e3){const _0x44cd84=this['_isBlockAttribute'](_0x5b34e3),_0x27251d=this['_inlineAttributeKeys']['has'](_0x5b34e3);return _0x44cd84||_0x27251d;}['_reduceExistingSuggestions'](_0x5b2269,_0x1eaa23){if(0x0==_0x1eaa23['length'])return!0x1;let _0x19ef35=!0x1;for(const _0x34e851 of _0x1eaa23){const _0x1ecad5=this['_findSuggestions'](_0x34e851['range'],'attribute')['filter'](_0x3dbbe1=>!_0x3dbbe1['meta']['isNextTo'])['map'](_0x5f2b8b=>_0x5f2b8b['suggestion']),_0xa31c59=_0x478e56({'newValue':_0x34e851['newValue']});_0x1ecad5['filter'](_0x2a2e57=>{const [_0x7a7a50,_0x14385d]=_0x2a2e57['subType']['split']('|');return _0x7a7a50==_0x34e851['key']&&_0x14385d!=_0xa31c59;})['forEach'](_0x720dcc=>{this['_reduceSuggestionAttributeRange'](_0x720dcc,_0x34e851['range'],_0x5b2269),_0x19ef35=!0x0;});}return _0x19ef35;}['_reduceSuggestionAttributeRange'](_0x5af968,_0x5590eb,_0x463c99){const _0x8c0f86=_0x5af968['getFirstRange']()['getDifference'](_0x5590eb);0x0!==_0x8c0f86['length']?0x1!==_0x8c0f86['length']?this['_breakSuggestionMarker'](_0x5af968,_0x5590eb['start'],_0x5590eb['end']):this['_setSuggestionRange'](_0x5af968,_0x8c0f86[0x0]):_0x463c99['removeMarker'](_0x5af968['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2607e4){this['_editor']=_0x2607e4,this['_model']=_0x2607e4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5057fb,_0x4f1b9c,_0x87937b,_0x4bb35d,_0x205813,_0x380895){return new u(this['_model'],{'type':_0x5057fb,'subType':_0x4f1b9c,'id':_0x87937b,'author':_0x4bb35d,'creator':_0x4bb35d,'attributes':_0x205813,'onAttributesChange':_0x380895,'onAccept':(..._0x2c8496)=>this['getSuggestionCallback'](_0x5057fb,_0x4f1b9c,'accept')(..._0x2c8496),'onDiscard':(..._0x3e02d7)=>this['getSuggestionCallback'](_0x5057fb,_0x4f1b9c,'discard')(..._0x3e02d7)});}['registerCustomCallback'](_0x4da584,_0x407aa2,_0xeb2f96,_0x1507b8){const _0x3e4b40=_0x4da584+':'+_0x407aa2+':'+_0xeb2f96;this['_customCallbacks']['set'](_0x3e4b40,_0x1507b8);}['getSuggestionCallback'](_0x402ce5,_0x38aaa9,_0x44d43f){const _0x2bdc3c=_0x402ce5+':'+_0x38aaa9+':'+_0x44d43f;return this['_customCallbacks']['get'](_0x2bdc3c)||this['_defaultCallbacks']['get'](_0x402ce5+':'+_0x44d43f);}['_registerDefaultCallbacks'](){const _0x2b8986=()=>!0x1,_0x2bc3dd=_0x3a481d=>{_0x3a481d['sort']((_0x2d0b1f,_0x3b1a2f)=>_0x2d0b1f['start']['isBefore'](_0x3b1a2f['start'])?0x1:-0x1),this['_model']['change'](_0x52021a=>{for(const _0x2a6ba3 of _0x3a481d){let _0x10e6d5;_0x10e6d5=_0x2a6ba3['end']['isAtEnd']&&_0x2a6ba3['end']['parent']==_0x2a6ba3['start']['nodeAfter']?_0x52021a['createSelection'](_0x2a6ba3['start']['nodeAfter'],'on'):_0x52021a['createSelection'](_0x2a6ba3),this['_model']['deleteContent'](_0x10e6d5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x36dfe1=(_0xc822e1,_0x37667f)=>{_0x37667f&&this['_model']['change'](_0x3fd055=>{const {commandName:_0x5da7d1,commandParams:_0x3497d9=[]}=_0x37667f,_0x50ec08=_0xc822e1['map'](_0x461937=>(Vt(_0x461937)&&(_0x461937=this['_model']['createRange'](_0x461937['end'])),_0x461937))['filter'](_0x8ec7c5=>'$graveyard'!==_0x8ec7c5['root']['rootName']);if(_0x50ec08['length']<0x1)return;const _0x3bff2b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5315ce=>_0x544abc['fromRange'](_0x5315ce));_0x3fd055['setSelection'](_0x50ec08);for(const _0x156cd8 of this['_editor']['commands']['commands']())_0x156cd8['refresh']();_0x3497d9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5da7d1,..._0x3497d9);const _0x3eda5b=_0x3bff2b['filter'](_0xb32e0e=>'$graveyard'!=_0xb32e0e['root']['rootName']);_0x3eda5b['length']>0x0&&_0x3fd055['setSelection'](_0x3eda5b);for(const _0x1eacf0 of _0x3bff2b)_0x1eacf0['detach']();});},_0x1a9bf3=(_0x781532,_0x3abe13)=>0x1==_0x781532['length']&&0x1==_0x3abe13['length']&&_0x781532[0x0]['end']['isEqual'](_0x3abe13[0x0]['start']),_0x3ee851=(_0xf7302b,_0x53c74f,_0x318c9a,_0x3f6208)=>Ht(_0xf7302b,_0x53c74f,_0x318c9a,_0x3f6208,this['_model'])?[_0xf7302b,_0x53c74f]:Ht(_0x53c74f,_0xf7302b,_0x3f6208,_0x318c9a,this['_model'])?[_0x53c74f,_0xf7302b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b8986),this['_defaultCallbacks']['set']('insertion:discard',_0x2bc3dd),this['_defaultCallbacks']['set']('insertion:join',_0x1a9bf3),this['_defaultCallbacks']['set']('insertion:chain',_0x3ee851),this['_defaultCallbacks']['set']('deletion:accept',_0x2bc3dd),this['_defaultCallbacks']['set']('deletion:discard',_0x2b8986),this['_defaultCallbacks']['set']('deletion:join',_0x1a9bf3),this['_defaultCallbacks']['set']('deletion:chain',_0x3ee851),this['_defaultCallbacks']['set']('formatInline:accept',_0x36dfe1),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b8986),this['_defaultCallbacks']['set']('formatInline:join',_0x1a9bf3),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b8986),this['_defaultCallbacks']['set']('formatBlock:accept',_0x36dfe1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b8986),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a9bf3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b8986),this['_defaultCallbacks']['set']('attribute:accept',_0x2b8986),this['_defaultCallbacks']['set']('attribute:discard',(_0x84895e,_0x314f31)=>{if(!_0x314f31)return;const _0x10890a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x26d433=>{if(_0x314f31['key']==m)for(const _0x5b0448 of _0x84895e){const _0x55df50=_0x5b0448['start']['nodeAfter'],_0x13c9cd=_0x314f31['oldValue'];_0x26d433['rename'](_0x55df50,_0x13c9cd);}else{if(_0x10890a['_isBlockAttribute'](_0x314f31['key'])){for(const _0x2b1945 of _0x84895e)void 0x0!==_0x314f31['oldValue']?_0x26d433['setAttribute'](_0x314f31['key'],_0x314f31['oldValue'],_0x2b1945['start']['nodeAfter']):_0x26d433['removeAttribute'](_0x314f31['key'],_0x2b1945['start']['nodeAfter']);}else{for(const _0x1ecee1 of _0x84895e)_0x314f31['oldValue']?_0x26d433['setAttribute'](_0x314f31['key'],_0x314f31['oldValue'],_0x1ecee1):_0x26d433['removeAttribute'](_0x314f31['key'],_0x1ecee1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a9bf3);}}function Et(_0x297cf1,_0x571f70,_0x256976){for(const _0x5d640e of _0x571f70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5d640e['root']==_0x5d640e)return!0x1;if(!_0x256976['containsItem'](_0x5d640e))return!0x1;if(_0x297cf1['isObject'](_0x5d640e)||_0x297cf1['isLimit'](_0x5d640e))return!0x0;}return!0x1;}function Vt(_0x4ea4ef){return _0x4ea4ef['end']['parent']==_0x4ea4ef['start']['nodeAfter']&&_0x4ea4ef['end']['isAtStart'];}function Ut(_0x1b8340,_0x440023,_0x5425cf,_0x491e6a){const _0x14d133=_0x548619=>!_0x548619['item']['is']('$textProxy')&&!_0x491e6a['isObject'](_0x548619['item']),_0x2f1b0a=_0x1b8340['start']['getLastMatchingPosition'](_0x14d133),_0xa38e92=_0x1b8340['end']['getLastMatchingPosition'](_0x14d133,{'direction':'backward'});return(!_0x1b8340['start']['isEqual'](_0x2f1b0a)||!_0x1b8340['end']['isEqual'](_0xa38e92))&&(_0x2f1b0a['isBefore'](_0xa38e92)?_0x5425cf['updateMarker'](_0x440023,{'range':_0x5425cf['createRange'](_0x2f1b0a,_0xa38e92)}):_0x5425cf['removeMarker'](_0x440023),!0x0);}function Pt(_0x141efe){return _0x478e56(_0x141efe);}function Gt(_0x2bf50e){const _0x3febc5=_0x2bf50e['start']['nodeAfter'];return _0x3febc5&&_0x3febc5['is']('element');}function Ft(_0x16aa62,_0x93f0af){return null==_0x16aa62['end']['nodeBefore']&&_0x16aa62['end']['parent']==_0x16aa62['start']['nodeAfter']?Lt(_0x16aa62['start']['nodeAfter'],_0x93f0af):_0x16aa62;}function Lt(_0x43b590,_0x588e21){const _0x5946db=_0x588e21['schema']['isObject'](_0x43b590)||_0x588e21['schema']['isSelectable'](_0x43b590);return _0x588e21['createRange'](_0x588e21['createPositionAt'](_0x43b590,'before'),_0x5946db?_0x588e21['createPositionAfter'](_0x43b590):_0x588e21['createPositionAt'](_0x43b590,'end'));}function Ht(_0x2fa4c8,_0x5bf404,_0xbba811,_0x11bb46,_0x22d6e4){if(_0x2fa4c8['next'])return!0x1;if(!Jt(_0x2fa4c8,_0x5bf404))return!0x1;if(_0xbba811['end']['isEqual'](_0x11bb46['start']))return!0x0;if(_0x2fa4c8['type']!=_0x5bf404['type'])return!0x1;if(!_0xbba811['end']['isTouching'](_0x11bb46['start']))return!0x1;const _0x10ef8e=_0x22d6e4['createRange'](_0xbba811['end'],_0x11bb46['start'])['getWalker']();for(const _0x305db6 of _0x10ef8e)if(['elementStart','elementEnd']['includes'](_0x305db6['type'])&&_0x22d6e4['schema']['isLimit'](_0x305db6['item']))return!0x1;return!0x0;}function Jt(_0x1189ee,_0x33d766){if(!_0x1189ee['_isDataLoaded']||!_0x33d766['_isDataLoaded'])return!0x1;const _0x4440ca=new Set(Object['keys'](_0x1189ee['attributes'])),_0x538829=new Set(Object['keys'](_0x33d766['attributes']));if(_0x4440ca['delete']('groupId'),_0x538829['delete']('groupId'),0x0==_0x4440ca['size']&&0x0==_0x538829['size'])return!0x0;if(_0x4440ca['size']!=_0x538829['size'])return!0x1;const _0x56ac94={..._0x1189ee['attributes']},_0x238a56={..._0x33d766['attributes']};return delete _0x56ac94['groupId'],delete _0x238a56['groupId'],JSON['stringify'](_0x56ac94)==JSON['stringify'](_0x238a56);}function qt(_0x4e9a4c,_0x26e4f3){const _0x433d13=zt(_0x4e9a4c['attributes']),_0x2bde30=zt(_0x26e4f3);if(!_0x4e9a4c['_isDataLoaded'])return!0x1;for(const _0x4b508b of Object['keys'](_0x2bde30))if(!_0xf20d03(_0x433d13[_0x4b508b],_0x2bde30[_0x4b508b]))return!0x1;return!0x0;}function zt(_0x1eeb84){const _0xcad781=Object['assign']({},_0x1eeb84);return delete _0xcad781['skipNestingCheck'],delete _0xcad781['tablePasteChainId'],_0xcad781;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4180ac(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x42d84d,_0x4db933,_0x37ecb9,_0x4ece64){super(),this['model']=_0x4db933,this['view']=_0x37ecb9,this['commentThreadController']=_0x4ece64,this['_editor']=_0x42d84d,this['_acceptCommand']=_0x42d84d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x42d84d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe2e258,_0x2cd81c)=>_0xe2e258||_0x2cd81c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5487d1=>_0x5487d1&&this['_editor']['model']['canEditAt'](_0x4db933['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e9f3a=>_0x4e9f3a&&this['_editor']['model']['canEditAt'](_0x4db933['getRanges']())),this['_pendingAction']=null,_0x37ecb9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37ecb9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37ecb9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37ecb9,'change:isDirty',()=>{_0x37ecb9['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 _0x54fedb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x54fedb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5e7b63{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c5775,_0x536825,_0x5499ef,_0x4f7c0f){super(_0x4c5775),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2c21bb(_0x4c5775,o(_0x4c5775,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x536825['authoredAt']),this['bind']('authoredAt')['to'](_0x536825),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',_0x536825,'authoredAt',this,'descriptionParts',(_0x57042b,_0x50d7ca,_0x3cec57)=>{const _0x358845=_0x3cec57['map'](_0x66c0fc=>ls(_0x66c0fc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x57042b-0x1,_0x536825['author']['name'],_0x50d7ca?_0x4f7c0f['formatDateTime'](_0x50d7ca):'',new DOMParser()['parseFromString'](_0x358845,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb4b9f3(),this['focusTracker']=new _0x1c1530(),this['keystrokes']=new _0xf0088f(),this['focusCycler']=new _0x1c4ad3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x316f2c=>_0x316f2c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x536825,this['_localUser']=_0x5499ef,this['_config']=_0x4f7c0f,_0x4f7c0f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x63269f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x33c1ec}=this['_config'];this['commentsListView']=new _0x33c1ec(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',_0x169839=>_0x169839+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x16c283,_0x486e2c)=>_0x16c283||!!_0x486e2c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5d01bd}=this['_config'],_0x3f91dc=new _0x5d01bd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x7eb2cb=_0x3f91dc['commentInputView'];return _0x3f91dc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x7eb2cb,'value',(_0x4a46f1,_0x4586f1,_0x3d6cf1)=>!!_0x3d6cf1||_0x4a46f1&&!_0x4586f1),_0x7eb2cb['on']('submit',(_0x2cf4ce,_0x3191a3)=>{this['fire']('addComment',_0x3191a3),_0x7eb2cb['editor']['setData']('');}),_0x7eb2cb['on']('cancel',()=>this['focus']()),_0x7eb2cb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f91dc;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x29835b,_0x514c53,_0x156a1e,_0xc2ae9f){super(_0x29835b,_0x514c53,_0x156a1e,_0xc2ae9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x174d92=>_0x174d92&&_0x174d92[0x0]?_0x174d92[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc712e5,_0x5c35fa)=>{let _0x3c2080='';for(const _0x5bbc4b of _0xc712e5)_0x3c2080+='<p>'+ls(_0x5bbc4b['content'],_0x5bbc4b['color'])+'</p>';return _0x5c35fa?_0x3c2080:_0x3fbc93(_0x3c2080,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xc2ae9f['SuggestionView'](_0x29835b,_0x514c53,{'formatDateTime':_0xc2ae9f['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 _0x2144b4=this['bindTemplate'],_0x44aa50=[this['suggestionView']];return this['commentsListView']&&_0x44aa50['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44aa50['push'](this['commentThreadInputView']),_0x44aa50['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2144b4['if']('isActive','ck-suggestion-wrapper--active'),_0x2144b4['to']('type',_0x46b510=>'ck-suggestion-'+_0x46b510),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':_0x2144b4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44aa50};}['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 _0x5e7b63{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b1758,_0xc57c3b,_0x49991f){super(_0x3b1758),this['_model']=_0xc57c3b,this['_config']=_0x49991f,this['set']('description',''),this['bind']('authoredAt')['to'](_0xc57c3b),this['acceptButton']=this['_createButton'](o(_0x3b1758,'Accept\x20suggestion'),_0x115a1c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3b1758,'Discard\x20suggestion'),_0x115a1c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f5c80(_0x3b1758,_0xc57c3b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb4b9f3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1c1530(),this['keystrokes']=new _0xf0088f(),this['focusCycler']=new _0x1c4ad3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x28dbaa=>_0x28dbaa['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32c21e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32c21e['innerHTML']=this['description'],this['on']('change:description',(_0x3b5153,_0x18735e,_0x54d087)=>{_0x32c21e['innerHTML']=_0x54d087;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59ddf1=this['bindTemplate'],_0xc79f8f=[{'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':_0x59ddf1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59ddf1['to']('authoredAt',_0x465d5f=>this['_config']['formatDateTime'](_0x465d5f))}]}]},{'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']&&_0xc79f8f['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':_0xc79f8f}]};}['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'](_0x7975f6,_0x12ed03,_0x72289c,_0xc8a621,_0x214c52){const _0x520cd1=new _0x4d4fa2(this['locale']);return _0x520cd1['set']({'label':_0x7975f6,'icon':_0x12ed03,'tooltip':!0x0,'tooltipPosition':_0x214c52}),_0x520cd1['extendTemplate']({'attributes':{'class':_0x72289c}}),_0x520cd1['on']('execute',()=>{this['fire'](_0xc8a621,this['_model']['id']);}),_0x520cd1;}['_setupKeyboardNavigation'](){const _0x2d3021=this['element'];this['keystrokes']['listenTo'](_0x2d3021);for(const _0x109d01 of this['focusables'])this['focusTracker']['add'](_0x109d01['element']),this['keystrokes']['listenTo'](_0x109d01['element']);this['keystrokes']['set']('enter',(_0x1b2ffe,_0x72319a)=>{_0x2d3021===_0x1b2ffe['target']&&(this['focusCycler']['focusFirst'](),_0x72319a());}),this['keystrokes']['set']('esc',(_0x47690c,_0x271ba6)=>{_0x2d3021!==_0x47690c['target']&&(this['focus'](),_0x271ba6());});}}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 _0x3b6e0a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5d7b22,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd6cdd1){super(_0xd6cdd1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2cd814=this['editor']['config'];_0x2cd814['define']('trackChanges.SuggestionThreadView',re),_0x2cd814['define']('trackChanges.SuggestionView',ce),_0x2cd814['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2cd814['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55718d,_0x49944f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4265d5,_0x3f832a]of this['_handleControllerBuffer']){const _0x4875a5=this['_suggestionToController']['has'](_0x4265d5);_0x4875a5||_0x3f832a?_0x4875a5&&_0x3f832a&&this['_destroyController'](_0x4265d5):this['_initializeController'](_0x4265d5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55718d,_0x49944f);}['init'](){const _0x33bcd0=this['editor'],_0x2a3c98=_0x33bcd0['plugins']['get']('TrackChangesEditing'),_0x3458ca=_0x33bcd0['plugins']['get']('Annotations'),_0x2893ea=_0x33bcd0['plugins']['get']('EditorAnnotations'),_0x33657c=_0x33bcd0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2893ea['addSourceCollector'](()=>{const _0x3720bb=[];for(const [_0x4fffef,_0x32a6f4]of Array['from'](this['_suggestionToController'])){const _0x2b9e8e=_0x4fffef['getAllAdjacentSuggestions'](),_0x35fa73=[];for(const _0x815ba9 of _0x2b9e8e){if(!_0x815ba9['isInContent'])continue;if(_0x815ba9['isMultiRange']){_0x35fa73['push'](..._0x815ba9['getRanges']());continue;}const _0x18117d=_0x815ba9['getFirstRange']();if(_0x35fa73['length']>0x0){const _0x14684e=_0x35fa73[0x0]['getJoined'](_0x18117d);if(_0x14684e){_0x35fa73[0x0]=_0x14684e;continue;}}_0x35fa73['push'](_0x18117d);}_0x3720bb['push']([_0x32a6f4['view'],_0x35fa73]);}return _0x3720bb;}),this['listenTo'](_0x2a3c98,'suggestionLoaded',(_0x1eace4,_0x4b62e1)=>{this['listenTo'](_0x4b62e1,'change:previous',(_0x5d0ce0,_0xde27a1,_0x187eaa,_0x38fd6d)=>{_0x4b62e1['isInContent']&&(null==_0x187eaa?(this['_updateController'](_0x38fd6d['head']),this['_handleSuggestionControllerDelayed'](_0x4b62e1,!0x1)):(this['_updateController'](_0x187eaa['head']),null==_0x38fd6d&&this['_handleSuggestionControllerDelayed'](_0x4b62e1,!0x0)));}),null!==_0x4b62e1['previous']?this['_updateController'](_0x4b62e1['head']):this['_handleSuggestionControllerDelayed'](_0x4b62e1,!0x1);}),this['listenTo'](_0x2a3c98,'suggestionUnloaded',(_0x4cadac,_0x30c4cb,_0x151be5)=>{this['stopListening'](_0x30c4cb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x30c4cb),this['_suggestionToController']['has'](_0x30c4cb)&&this['_destroyController'](_0x30c4cb),_0x151be5&&this['_updateController'](_0x151be5['head']);}),this['listenTo'](_0x2a3c98,'suggestionChanged',(_0x3f77a1,_0x4f76ff)=>{this['_updateController'](_0x4f76ff);}),this['listenTo'](_0x3458ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x33657c,'addComment',(_0x35822c,{threadId:_0x422d15,isFromAdapter:_0x4a0d49})=>{if(_0x4a0d49||!_0x2a3c98['hasSuggestion'](_0x422d15))return;const _0x55ab3d=_0x2a3c98['getSuggestion'](_0x422d15);this['_suggestionToController']['get'](_0x55ab3d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x535828=this['editor']['plugins']['get']('Annotations'),_0x1cf316=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35c532=Array['from'](_0x535828['activeAnnotations'],_0x222938=>_0x222938['innerView'])['filter'](_0x4dcaca=>this['_viewToController']['has'](_0x4dcaca)),_0x180caa=[];for(const _0x56356a of _0x35c532){const _0x5b72fb=this['_viewToController']['get'](_0x56356a)['model']['getAllAdjacentSuggestions']();_0x180caa['push'](..._0x5b72fb['reduce']((_0x33d09c,_0x2f21e6)=>[..._0x33d09c,..._0x2f21e6['getMarkerNames']()],[]));}_0x1cf316['activeMarkers']=_0x180caa;}['_addUIComponentsToFactory'](){const _0x49abd8=this['editor'],_0x459a89=_0x49abd8['locale'],_0x2b4404=o(_0x459a89,'Track\x20changes'),_0x51ba0a=new Wt([{'type':'switchbutton','model':new _0x29fb94({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b4404,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x29fb94({'withText':!0x0,'label':o(_0x459a89,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29fb94({'withText':!0x0,'label':o(_0x459a89,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29fb94({'withText':!0x0,'label':o(_0x459a89,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29fb94({'withText':!0x0,'label':o(_0x459a89,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x28d9ae of _0x51ba0a)if(me(_0x28d9ae)){const _0x2595b4=_0x49abd8['commands']['get'](_0x28d9ae['model']['commandName']);_0x28d9ae['model']['bind']('isOn','isEnabled')['to'](_0x2595b4,'value','isEnabled');}_0x49abd8['ui']['componentFactory']['add']('trackChanges',_0x568fc1=>this['_createToolbarButton'](_0x568fc1,_0x51ba0a,_0x2b4404)),_0x49abd8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x32af6d=>this['_createMenuBarMenu'](_0x32af6d,_0x51ba0a,_0x2b4404));}['_createToolbarButton'](_0x51db44,_0x2d3b04,_0x1cae99){const _0x52beef=Qt(_0x51db44,_0x3752b7),_0x23b010=this['editor']['commands']['get']('trackChanges');_0x52beef['buttonView']['set']({'tooltip':_0x1cae99,'label':_0x1cae99,'icon':he}),_0x52beef['buttonView']['bind']('isOn')['to'](_0x23b010,'value'),_0x52beef['buttonView']['on']('execute',()=>{_0x23b010['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x52beef,_0x2d3b04,{'role':'menu'});const _0x221691=[];for(const _0xddae4b of _0x2d3b04)me(_0xddae4b)&&_0x221691['push'](this['editor']['commands']['get'](_0xddae4b['model']['commandName']));const _0x3e0bcb=_0x52beef['buttonView'];return _0x3e0bcb['actionView']['unbind']('isEnabled'),_0x3e0bcb['arrowView']['unbind']('isEnabled'),_0x3e0bcb['actionView']['bind']('isEnabled')['to'](_0x23b010,'isEnabled'),_0x3e0bcb['arrowView']['bind']('isEnabled')['toMany'](_0x221691,'isEnabled',(..._0x303b21)=>_0x303b21['some'](_0x58e22b=>_0x58e22b)),_0x52beef['on']('execute',_0x48e7f4=>{this['editor']['execute'](_0x48e7f4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x52beef;}['_createMenuBarMenu'](_0x21bd9b,_0x57d88f,_0x2db330){const _0x1b9f74=new Yt(_0x21bd9b),_0x8f5846=this['editor']['commands']['get']('trackChanges');_0x1b9f74['buttonView']['set']({'label':_0x2db330,'icon':he});const _0xe4a1f1=new Zt(_0x21bd9b);for(const _0x25ecf5 of _0x57d88f){if('separator'==_0x25ecf5['type']){_0xe4a1f1['items']['add'](new Xt(_0x21bd9b));continue;}const _0x4c53fc=new te(_0x21bd9b,_0x1b9f74),_0x11d2f5=new _0x2f0859(_0x21bd9b),_0x11d014=_0x25ecf5['model'];_0x11d2f5['bind'](...Object['keys'](_0x11d014))['to'](_0x11d014),_0x11d2f5['delegate']('execute')['to'](_0x1b9f74),_0x11d2f5['on']('execute',()=>{this['editor']['execute'](_0x11d014['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c53fc['children']['add'](_0x11d2f5),_0xe4a1f1['items']['add'](_0x4c53fc);}return _0x1b9f74['bind']('isEnabled')['to'](_0x8f5846,'isEnabled'),_0x1b9f74['panelView']['children']['add'](_0xe4a1f1),_0x1b9f74;}['_initializeController'](_0x192fdc){const _0x515a01=this['editor'],_0x3ff459=_0x515a01['config'],_0x445bb3=_0x515a01['plugins']['get']('Annotations'),_0x3a7ac9=_0x515a01['plugins']['get']('CommentsRepository'),_0x46d06d=_0x515a01['plugins']['get']('EditorAnnotations'),_0x4455b9=_0x515a01['plugins']['get'](_0x5d7b22)['me'],_0x5eabf2=_0x3ff459['get']('trackChanges')['SuggestionThreadView'],_0x2ec3c0=_0x3ff459['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5b347f,CommentThreadInputView:_0x420b39}=_0x515a01['plugins']['get']('CommentsUI');let _0x5d6e8c,_0xb9340c,_0x1c20fb;this['_annotationViews']['has'](_0x192fdc['id'])?(_0xb9340c=this['_annotationViews']['get'](_0x192fdc['id']),_0x5d6e8c=_0xb9340c['mainView']):(_0x5d6e8c=new _0x5eabf2(_0x515a01['locale'],_0x192fdc,_0x4455b9,{'disableComments':this['_disableComments'],'editorConfig':_0x3ff459['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3ff459['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ff459['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ff459['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23a33a(_0x3ff459['get']('locale')),'CommentView':_0x3ff459['get']('comments')['CommentView'],'CommentsListView':_0x5b347f,'CommentThreadInputView':_0x420b39,'SuggestionView':_0x2ec3c0}),_0x5d6e8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x515a01['editing']['view']['focus']();}),_0x5d6e8c['suggestionView']['discardButton']['on']('execute',()=>{_0x515a01['editing']['view']['focus']();}),_0xb9340c=_0x445bb3['createAnnotationView'](this['editor']['locale'],_0x5d6e8c),_0xb9340c['bind']('isDirty')['to'](_0x5d6e8c,'isDirty'),_0xb9340c['bind']('length')['to'](_0x5d6e8c),_0xb9340c['bind']('type')['to'](_0x5d6e8c,'type',_0x2e10dc=>'suggestion-'+_0x2e10dc),_0x5d6e8c['on']('escape',()=>{_0x1c20fb['fire']('escape');}),this['_annotationViews']['set'](_0x192fdc['id'],_0xb9340c));const _0x382822=_0x3a7ac9['createCommentThreadController'](_0x192fdc['commentThread'],_0x5d6e8c),_0x4fece8=new ae(_0x515a01,_0x192fdc,_0x5d6e8c,_0x382822),_0x2520a2=_0x192fdc['getAllAdjacentSuggestions']()['filter'](_0x5ed9a2=>_0x5ed9a2['isInContent']);_0x5d6e8c['descriptionParts']=_0x515a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2520a2),this['_suggestionToController']['set'](_0x192fdc,_0x4fece8),this['_viewToController']['set'](_0x5d6e8c,_0x4fece8),_0x1c20fb=_0x445bb3['createAnnotation']({'view':_0xb9340c,'target':()=>{const _0x3282ab=[],_0x3b5025=_0x192fdc['getAllAdjacentSuggestions']()['filter'](_0x570e1f=>_0x570e1f['isInContent']);for(const _0x552d96 of _0x3b5025)_0x3282ab['push'](..._0x552d96['getMarkers']());return _0x30e9f4(_0x515a01['editing'],_0x3282ab);},'type':()=>'suggestion-'+_0x4fece8['view']['type']}),_0x3a7ac9['_bindAnnotationToEditors'](_0x5d6e8c,_0x1c20fb),_0x445bb3['add'](_0x1c20fb),_0x46d06d['registerAnnotation'](_0x1c20fb);}['_destroyController'](_0xe223ff){const _0x5b94ca=this['editor']['plugins']['get']('CommentsRepository'),_0x55dea2=this['editor']['plugins']['get']('Annotations'),_0x16c131=this['_suggestionToController']['get'](_0xe223ff),_0x339949=_0x16c131['view'],_0x2081af=_0x55dea2['getByInnerView'](_0x339949);_0x5b94ca['_unbindEditors'](_0x339949),_0x2081af&&_0x55dea2['remove'](_0x2081af),this['_suggestionToController']['delete'](_0xe223ff),this['_viewToController']['delete'](_0x339949),_0x16c131['destroy']();}['_updateController'](_0x36ea27){if(!_0x36ea27['isInContent']||!this['_suggestionToController']['has'](_0x36ea27))return;const _0x1dfa3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31739c=this['_suggestionToController']['get'](_0x36ea27),_0x74eda2=_0x36ea27['getAllAdjacentSuggestions']();_0x31739c['view']['descriptionParts']=_0x1dfa3e['descriptionFactory']['getDescriptions'](_0x74eda2);}['destroy'](){for(const _0x1c636e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c636e);for(const _0x4faaf9 of this['_annotationViews']['values']())_0x4faaf9['mainView']['destroy']();super['destroy']();}}function me(_0x1c30e0){return'model'in _0x1c30e0;}class k extends _0x3b6e0a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x57c4df){this['editor']['plugins']['get'](p)['adapter']=_0x57c4df;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ed6a0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ed6a0);}['getSuggestions']({skipNotAttached:_0x58fd74=!0x1,toJSON:_0x3da4f1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x58fd74,'toJSON':_0x3da4f1});}['getSuggestion'](_0x1b3c1e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1b3c1e);}}const w=['Pagination'];class T extends _0x3b6e0a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4b07d5=this['editor'];if(_0x4b07d5['config']['define']('trackChangesData.editorCreator',_0x3e241e=>{const _0x59feb9=_0x4b07d5['model']['document']['getRootNames']()['reduce']((_0x3290e2,_0x4d7dad)=>(_0x3290e2[_0x4d7dad]='',_0x3290e2),{});return _0x4b07d5['constructor']['create'](_0x59feb9,_0x3e241e);}),'function'!=typeof _0x4b07d5['config']['get']('trackChangesData')['editorCreator'])throw new _0x10426e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b83a7){return N(this['editor'],!0x0,_0x2b83a7);}['getDataWithDiscardedSuggestions'](_0x1d4de9){return N(this['editor'],!0x1,_0x1d4de9);}}class D extends _0x3b6e0a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x274c54){super(_0x274c54),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(_0x57808c){return void 0x0!==_0x57808c['getRootsAttributes'];}async function N(_0x5408ac,_0x2be7e6,_0xcf7a86){const _0x236cce=_0x2d45b2(_0x5408ac,w);_0x236cce['plugins']['push'](p,D),_0x236cce['rootsAttributes']=v(_0x5408ac)?_0x5408ac['getRootsAttributes']():void 0x0;const _0x40e218=document['createDocumentFragment'](),_0x434511=_0x5408ac['config']['get']('trackChangesData')['editorCreator'],_0x6b1882=await _0x434511(_0x236cce,()=>function(_0x19317b){const _0x1bcded=document['createElement']('div');return _0x19317b['appendChild'](_0x1bcded),_0x1bcded;}(_0x40e218));!function(_0x445571,_0x1e7552){const _0x2dc2a2=_0x445571['model']['document']['getRootNames']()['reduce']((_0x1671c7,_0x35302e)=>(_0x1671c7[_0x35302e]=_0x445571['data']['get']({'rootName':_0x35302e}),_0x1671c7),{}),_0x1f9765=_0x445571['plugins']['get']('Users')['users']['map'](_0x59ce8c=>({'id':_0x59ce8c['id'],'name':_0x59ce8c['name']})),_0x282c52=_0x445571['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1dfbb2=_0x445571['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x7a4114=_0x1e7552['plugins']['get']('Users'),_0x47b8c6=_0x1e7552['plugins']['get']('TrackChangesEditing'),_0x116d2a=_0x1e7552['plugins']['get']('CommentsRepository');for(const _0x59c769 of _0x116d2a['getCommentThreads']())_0x59c769['remove']();for(const _0x289de2 of _0x1f9765)_0x7a4114['getUser'](_0x289de2['id'])||_0x7a4114['addUser'](_0x289de2);_0x7a4114['me']||_0x7a4114['useAnonymousUser']();for(const _0x124b9a of _0x1dfbb2)_0x116d2a['addCommentThread'](_0x124b9a);for(const _0xe624b1 of _0x282c52)_0x47b8c6['addSuggestionData'](_0xe624b1);_0x1e7552['data']['set'](_0x2dc2a2);}(_0x5408ac,_0x6b1882),_0x6b1882['execute'](_0x2be7e6?'acceptAllSuggestions':'discardAllSuggestions');const _0x376cf9=v(_0x6b1882)?_0x6b1882['getFullData'](_0xcf7a86):_0x6b1882['data']['get'](_0xcf7a86);return await _0x6b1882['destroy'](),_0x376cf9;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|