@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240531.0 → 0.0.0-nightly-20240602.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- 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
|
-
_0x36fb33(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1b918a,_0x169a1b){super(),this['id']=_0x169a1b['id'],this['type']=_0x169a1b['type'],this['subType']=_0x169a1b['subType']||null,this['author']=_0x169a1b['author'],this['creator']=_0x169a1b['creator']||_0x169a1b['author'],this['isExternal']=Boolean(_0x169a1b['attributes']&&_0x169a1b['attributes']['@external']),this['data']=null,this['_model']=_0x1b918a,this['_onAccept']=_0x169a1b['onAccept'],this['_onDiscard']=_0x169a1b['onDiscard'],this['_onAttributesChange']=_0x169a1b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x169a1b['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 _0x3b4ca6=this;for(;_0x3b4ca6['previous'];)_0x3b4ca6=_0x3b4ca6['previous'];return _0x3b4ca6;}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'](_0x426a51){this['_markerNames']['add'](_0x426a51);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20776d=>this['_model']['markers']['get'](_0x20776d))['filter'](_0xf58407=>_0xf58407);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x25b146=>{for(const _0x26f371 of this['getMarkers']())_0x25b146['removeMarker'](_0x26f371);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ee029){this['_model']['change'](_0x253b2c=>{_0x253b2c['removeMarker'](_0x1ee029);}),this['_markerNames']['delete'](_0x1ee029);}['addRange'](_0x40ef20){const _0x1b81bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1b81bd),this['_model']['change'](_0x4e10d5=>{_0x4e10d5['addMarker'](_0x1b81bd,{'range':_0x40ef20,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x21032a){for(const _0x470a53 of this['getRanges']())if(_0x470a53['isIntersecting'](_0x21032a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c9c36=>_0x5c9c36['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x48bd6b,_0x371abc)=>[..._0x48bd6b,..._0x371abc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x55bfb1=this['getRanges']();if(0x1!=_0x55bfb1['length'])return null;const _0x8df0a6=_0x55bfb1[0x0],_0x25ed75=_0x8df0a6['start']['nodeAfter'],_0x2fc0df=_0x8df0a6['end']['nodeBefore'];return _0x25ed75 instanceof _0x26e203?_0x25ed75!=_0x2fc0df?null:_0x25ed75: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 _0x3eb122=[];let _0x27fb70=this['head'];for(;_0x27fb70;)_0x3eb122['push'](_0x27fb70),_0x27fb70=_0x27fb70['next'];return _0x3eb122;}['setAttribute'](_0x17b64b,_0x87c880){const _0xdf90b0=_0x42b9e2(this['attributes']);_0x3d9978(_0xdf90b0,_0x17b64b,_0x87c880),_0x2c5062(_0xdf90b0,this['attributes'])||(this['attributes']=_0xdf90b0,this['_onAttributesChange'](_0xdf90b0));}['removeAttribute'](_0x3ae706){const _0x17ea3a=_0x42b9e2(this['attributes']);_0x2ffcc1(_0x17ea3a,_0x3ae706),_0x2c5062(_0x17ea3a,this['attributes'])||(this['attributes']=_0x17ea3a,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 _0x25d75f()['substr'](0x1,0x5);}}function o(_0x180296,_0xca1c73,_0x2a8ae3){const t=_0x180296['t'];switch(_0xca1c73){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',_0x2a8ae3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2a8ae3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2a8ae3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2a8ae3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2a8ae3);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',_0x2a8ae3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2a8ae3);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',_0x2a8ae3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2a8ae3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2a8ae3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2a8ae3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2a8ae3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2a8ae3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2a8ae3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2a8ae3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2a8ae3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2a8ae3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a8ae3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2a8ae3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2a8ae3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2a8ae3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2a8ae3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2a8ae3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2a8ae3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2a8ae3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2a8ae3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2a8ae3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2a8ae3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2a8ae3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2a8ae3);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'},_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2a8ae3);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'},_0x2a8ae3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2a8ae3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2a8ae3);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2a8ae3);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2a8ae3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xca1c73;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1021c2,_0x518f19){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1021c2,this['_locale']=_0x518f19;}['getDescriptions'](_0x270ff1){const _0xeef92=[],_0x231260=new Set(),_0x1eb834=new Set();for(let _0x31eb45=0x0;_0x31eb45<_0x270ff1['length'];_0x31eb45++){const _0x3eb972=_0x270ff1[_0x31eb45];if(!_0x3eb972['isInContent'])continue;const _0xe020ac=this['_handleCustomCallbackDescription'](_0x3eb972);if(_0xe020ac){if(null!=_0x3eb972['subType']){if(_0x231260['has'](_0x3eb972['subType']))continue;_0x231260['add'](_0x3eb972['subType']);}_0xeef92['push'](_0xe020ac);}else{if('attribute'!=_0x3eb972['type'])'insertion'!=_0x3eb972['type']&&'deletion'!=_0x3eb972['type']||this['_handleInsertRemoveSuggestionDescription'](_0xeef92,_0x3eb972,_0x270ff1[_0x31eb45+0x1]);else{const _0x54d1ea=_0x3eb972['data']['key'];if(_0x1eb834['has'](_0x54d1ea))continue;_0x1eb834['add'](_0x3eb972['data']['key']),_0x54d1ea==m?this['_handleRenameSuggestionDescription'](_0xeef92,_0x3eb972):this['_handleAttributeSuggestionDescription'](_0xeef92,_0x3eb972);}}}return this['_resolveDescriptionItems'](_0xeef92);}['registerDescriptionCallback'](_0x50d72e){this['_customCallbacks']['push'](_0x50d72e);}['registerElementLabel'](_0x364691,_0x58a98e,_0x12ceec=_0x9e0966['normal']){'function'==typeof _0x364691?_0xf25646(this['_itemLabelsCallbacks'],{'matchingCallback':_0x364691,'label':_0x58a98e,'priority':_0x12ceec}):this['_itemLabels']['set'](_0x364691,_0x58a98e);}['registerAttributeLabel'](_0x4b5797,_0x40f48b){this['_attributeLabels']['set'](_0x4b5797,_0x40f48b);}['getItemLabel'](_0x32fa7c,_0x2dc781=0x1){let _0x150a85;for(const _0x407019 of this['_itemLabelsCallbacks'])if(_0x407019['matchingCallback'](_0x32fa7c)){_0x150a85=_0x407019['label'];break;}return _0x150a85||(_0x150a85=this['_itemLabels']['get'](_0x32fa7c['name'])),_0x150a85?_0x150a85(_0x2dc781):0x1!==_0x2dc781?_0x2dc781+'\x20'+_0x32fa7c['name']+'s':''+_0x32fa7c['name'];}['_addDescriptionItems'](_0x41e605,_0x167585){const _0x3e5bb9=_0x167585['getFirstRange']()['getWalker'](),_0x45c094='insertion'==_0x167585['type']?'add':'remove';for(const _0x156099 of _0x3e5bb9){const _0x463ae5=_0x156099['item'],_0x33425c=_0x41e605[_0x41e605['length']-0x1];if(_0x463ae5['is']('$textProxy'))_0x33425c&&_0x33425c['type']['indexOf']('Container')>-0x1&&_0x41e605['pop'](),_0x33425c&&'text'==_0x33425c['type']?_0x33425c[_0x45c094]+=_0x463ae5['data']:_0x41e605['push']({'type':'text','add':'add'==_0x45c094?_0x463ae5['data']:'','remove':'remove'==_0x45c094?_0x463ae5['data']:''});else{if(this['_schema']['isObject'](_0x463ae5)){const _0x5ad3e2=_0x463ae5;if(_0x33425c&&_0x33425c['type']['indexOf']('Container')>-0x1&&_0x41e605['pop'](),'elementEnd'==_0x156099['type'])continue;_0x33425c&&_0x33425c['type']==_0x45c094+'Object'&&_0x33425c['element']['name']==_0x5ad3e2['name']?_0x33425c['quantity']++:_0x41e605['push']({'type':_0x45c094+'Object','element':_0x5ad3e2,'quantity':0x1}),_0x3e5bb9['skip'](_0x37dab1=>!('elementEnd'==_0x37dab1['type']&&_0x37dab1['item']==_0x463ae5));}else{if(this['_schema']['checkChild'](_0x463ae5,'$text')||_0x463ae5['is']('element','softBreak')){const _0x41322f=_0x463ae5;if('add'==_0x45c094&&'elementStart'==_0x156099['type']||'remove'==_0x45c094&&'elementEnd'==_0x156099['type'])continue;if(_0x33425c&&-0x1==_0x33425c['type']['indexOf']('Container')){'text'==_0x33425c['type']&&(_0x33425c[_0x45c094]+='\x0a');continue;}let _0x571714;if(_0x571714='add'==_0x45c094?_0x41322f['nextSibling']&&!this['_schema']['isObject'](_0x41322f['nextSibling'])?_0x41322f['nextSibling']:null:_0x41322f['previousSibling']&&!this['_schema']['isObject'](_0x41322f['previousSibling'])?_0x41322f['previousSibling']:null,_0x41322f['isEmpty']||_0x571714&&_0x571714['isEmpty']){const _0x462b3d=_0x571714&&_0x571714['isEmpty']?_0x571714:_0x41322f;_0x33425c&&_0x33425c['type']==_0x45c094+'EmptyContainer'&&_0x33425c['element']['name']==_0x462b3d['name']?_0x33425c['quantity']++:_0x41e605['push']({'type':_0x45c094+'EmptyContainer','element':_0x462b3d,'quantity':0x1});}else _0x41e605['push']({'type':_0x45c094+'Container','element':_0x41322f});}}}}}['_resolveDescriptionItems'](_0x25be3c){const _0x37aec8=this['_locale'],_0x1fd193=[],_0x2b8cc3=[],_0x1f3888=[];for(const _0xa73a0a of _0x25be3c)switch(_0xa73a0a['type']){case'text':if(_0xa73a0a['add']=_0xa73a0a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xa73a0a['remove']=_0xa73a0a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xa73a0a['add']&&''!=_0xa73a0a['remove']){_0x1fd193['push']({'type':'replace','content':o(_0x37aec8,'REPLACE_TEXT',['\x22'+_0xa73a0a['remove']+'\x22','\x22'+_0xa73a0a['add']+'\x22'])});continue;}if(null!=_0xa73a0a['add']['match'](/^ +$/)){_0x1fd193['push']({'type':'insertion','content':o(_0x37aec8,'*Insert:*\x20%0',o(_0x37aec8,'ELEMENT_SPACE',_0xa73a0a['add']['length']))});continue;}if(null!=_0xa73a0a['remove']['match'](/^ +$/)){_0x1fd193['push']({'type':'deletion','content':o(_0x37aec8,'*Remove:*\x20%0',o(_0x37aec8,'ELEMENT_SPACE',_0xa73a0a['remove']['length']))});continue;}if(''!=_0xa73a0a['add']){_0x1fd193['push']({'type':'insertion','content':o(_0x37aec8,'*Insert:*\x20%0','\x22'+_0xa73a0a['add']+'\x22')});continue;}_0x1fd193['push']({'type':'deletion','content':o(_0x37aec8,'*Remove:*\x20%0','\x22'+_0xa73a0a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1fd193['push']({'type':'insertion','content':o(_0x37aec8,'*Insert:*\x20%0',this['getItemLabel'](_0xa73a0a['element'],_0xa73a0a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1fd193['push']({'type':'deletion','content':o(_0x37aec8,'*Remove:*\x20%0',this['getItemLabel'](_0xa73a0a['element'],_0xa73a0a['quantity']))});continue;case'addContainer':_0x1fd193['push']({'type':'insertion','content':o(_0x37aec8,'*Split:*\x20%0',this['getItemLabel'](_0xa73a0a['element'],_0xa73a0a['quantity']))});continue;case'removeContainer':_0x1fd193['push']({'type':'deletion','content':o(_0x37aec8,'*Merge:*\x20%0',this['getItemLabel'](_0xa73a0a['element'],_0xa73a0a['quantity']))});continue;case'addFormat':_0x2b8cc3['push'](_0xa73a0a['key']);continue;case'removeFormat':_0x1f3888['push'](_0xa73a0a['key']);continue;default:_0x1fd193['push'](_0xa73a0a);}if(_0x2b8cc3['length']){const _0x2be70b=_0x2b8cc3['map'](_0x33d170=>this['_attributeLabels']['has'](_0x33d170)?this['_attributeLabels']['get'](_0x33d170):_0x33d170)['join'](',\x20');_0x1fd193['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2be70b)});}if(_0x1f3888['length']){const _0x3d6814=_0x1f3888['map'](_0x5898c1=>this['_attributeLabels']['has'](_0x5898c1)?this['_attributeLabels']['get'](_0x5898c1):_0x5898c1)['join'](',\x20');_0x1fd193['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d6814)});}return _0x1fd193;}['_handleCustomCallbackDescription'](_0x551518){for(const _0x4ad8bd of this['_customCallbacks']){const _0x4c3590=_0x4ad8bd(_0x551518);if(_0x4c3590&&'type'in _0x4c3590)return _0x4c3590;}}['_handleAttributeSuggestionDescription'](_0x6e2c10,_0x3e2539){const _0x2bfa57=_0x3e2539['data'],_0x4f1eb2=void 0x0===_0x2bfa57['newValue']?'removeFormat':'addFormat';_0x6e2c10['push']({'type':_0x4f1eb2,'key':_0x2bfa57['key']});}['_handleRenameSuggestionDescription'](_0x278909,_0x264012){_0x278909['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x264012['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1e6295,_0x208d19,_0x3e9094){if(this['_addDescriptionItems'](_0x1e6295,_0x208d19),_0x3e9094&&_0x3e9094['getFirstRange']()&&!_0x208d19['getFirstRange']()['end']['isEqual'](_0x3e9094['getFirstRange']()['start'])){const _0x5aa6f5=_0x1e6295[_0x1e6295['length']-0x1],_0x4b9eb4='insertion'==_0x208d19['type']?'add':'remove';_0x5aa6f5&&'text'==_0x5aa6f5['type']&&(_0x5aa6f5[_0x4b9eb4]+='\x0a');}}}class E extends _0x5be52d{['afterInit'](){const _0x44fc9e=this['editor'],_0x32736f=_0x44fc9e['plugins']['get']('TrackChangesEditing');_0x44fc9e['commands']['get']('showAIAssistant')&&_0x32736f['enableCommand']('showAIAssistant');}}class V extends _0x5be52d{['afterInit'](){const _0x214aef=this['editor'],_0xe295ca=_0x214aef['locale'];if(!_0x214aef['plugins']['has']('AlignmentEditing'))return;const _0x281fb5=_0x214aef['plugins']['get']('TrackChangesEditing');_0x281fb5['enableDefaultAttributesIntegration']('alignment'),_0x281fb5['registerBlockAttribute']('alignment'),_0x281fb5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xe295ca,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ac91=this['editor'],_0x4e0d6a=_0x29ac91['locale'];_0x29ac91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x955573=>{if('formatBlock'!=_0x955573['type'])return;const {data:_0x4304f9}=_0x955573;if(_0x4304f9&&'alignment'==_0x4304f9['commandName']){const _0x27415b=_0x4304f9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e0d6a,'*Format:*\x20%0',function(_0x219a14){switch(_0x219a14){case'left':return o(_0x4e0d6a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e0d6a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e0d6a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e0d6a,'FORMAT_JUSTIFY_TEXT');}}(_0x27415b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5be52d{['afterInit'](){const _0x5d06e3=this['editor'],_0x5b304d=_0x5d06e3['plugins']['get']('TrackChangesEditing'),_0x12977b=_0x5d06e3['locale'];for(const _0x25eb91 of ti){if(!_0x5d06e3['plugins']['has'](_0x25eb91))continue;const _0x3cabbb=_0x25eb91['slice'](0x0,-0x7)['toLowerCase'](),_0x20e1ed='FORMAT_'+_0x3cabbb['toUpperCase']();_0x5b304d['enableDefaultAttributesIntegration'](_0x3cabbb),_0x5b304d['registerInlineAttribute'](_0x3cabbb),_0x5b304d['descriptionFactory']['registerAttributeLabel'](_0x3cabbb,o(_0x12977b,_0x20e1ed));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574a3a=this['editor'],_0x117fa5=_0x574a3a['locale'],_0x3c1c2e=_0x574a3a['plugins']['get']('TrackChangesEditing');function _0x3b0dc2(_0x4f1b2f,_0x2811c5){_0x3c1c2e['descriptionFactory']['registerDescriptionCallback'](_0xa531e7=>{if('formatInline'!=_0xa531e7['type'])return;const {data:_0x7312ed}=_0xa531e7;return _0x7312ed&&_0x7312ed['commandName']===_0x4f1b2f?_0x7312ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x117fa5,'*Format:*\x20%0',_0x2811c5)}:{'type':'format','content':o(_0x117fa5,'*Remove\x20format:*\x20%0',_0x2811c5)}:void 0x0;});}_0x3b0dc2('bold',o(_0x117fa5,'FORMAT_BOLD')),_0x3b0dc2('italic',o(_0x117fa5,'FORMAT_ITALIC')),_0x3b0dc2('underline',o(_0x117fa5,'FORMAT_UNDERLINE')),_0x3b0dc2('code',o(_0x117fa5,'FORMAT_CODE')),_0x3b0dc2('strikethrough',o(_0x117fa5,'FORMAT_STRIKETHROUGH')),_0x3b0dc2('subscript',o(_0x117fa5,'FORMAT_SUBSCRIPT')),_0x3b0dc2('superscript',o(_0x117fa5,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5be52d{['afterInit'](){const _0x16580f=this['editor'],_0x4badc1=_0x16580f['locale'];if(!_0x16580f['plugins']['has']('BlockQuoteEditing'))return;const _0x555009=_0x16580f['plugins']['get']('TrackChangesEditing'),_0x13da96=this['editor']['commands']['get']('blockQuote');_0x555009['enableCommand']('blockQuote',(_0x2c2911,_0x56bf30={})=>{const _0x3516f5=this['editor']['model']['document']['selection'],_0x4d616b=_0x56bf30&&void 0x0!==_0x56bf30['forceValue']?_0x56bf30['forceValue']:!_0x13da96['value'];let _0x2c664f=[];if(_0x4d616b){const _0x5c18df=Array['from'](_0x3516f5['getSelectedBlocks']())['filter'](_0x3905fa=>oo(_0x3905fa)||function(_0x1608d1,_0x1b94b9){const _0x538581=_0x1b94b9['checkChild'](_0x1608d1['parent'],'blockQuote'),_0x2fe1a5=_0x1b94b9['checkChild'](['$root','blockQuote'],_0x1608d1);return _0x538581&&_0x2fe1a5;}(_0x3905fa,this['editor']['model']['schema']));_0x2c664f=to(_0x5c18df,_0x16580f['model']);}else{const _0x302b94=Array['from'](_0x3516f5['getSelectedBlocks']())['filter'](_0x388d6e=>oo(_0x388d6e));_0x2c664f=to(_0x302b94,_0x16580f['model']);}_0x16580f['model']['change'](()=>{for(const _0x5a8157 of _0x2c664f)_0x555009['markBlockFormat'](_0x5a8157,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4d616b}]});});}),_0x555009['descriptionFactory']['registerDescriptionCallback'](_0x489bae=>{const {data:_0x2a5622}=_0x489bae;if(_0x2a5622&&'blockQuote'==_0x2a5622['commandName']){const _0x239c2d=o(_0x4badc1,'ELEMENT_BLOCK_QUOTE');return _0x2a5622['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4badc1,'*Set\x20format:*\x20%0',_0x239c2d)}:{'type':'format','content':o(_0x4badc1,'*Remove\x20format:*\x20%0',_0x239c2d)};}});}}function oo(_0x24efc5){return'blockQuote'==_0x24efc5['parent']['name'];}class G extends _0x5be52d{['afterInit'](){const _0x44e5ba=this['editor'];_0x44e5ba['plugins']['has']('CaseChange')&&(_0x44e5ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x44e5ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x44e5ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5be52d{['afterInit'](){const _0xa83d20=this['editor'];_0xa83d20['commands']['get']('ckbox')&&_0xa83d20['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5be52d{['afterInit'](){const _0x398463=this['editor'];if(!_0x398463['plugins']['has']('CodeBlock'))return;const _0xe95841=_0x398463['plugins']['get']('TrackChangesEditing'),_0x322836=_0x398463['locale'],_0x48da49=_0x398463['config']['get']('codeBlock')['languages'],_0x5f4c1c=_0x398463['commands']['get']('codeBlock');_0xe95841['enableCommand']('indentCodeBlock'),_0xe95841['enableCommand']('outdentCodeBlock'),_0xe95841['enableCommand']('codeBlock',(_0x1fe860,_0x114100={})=>{const _0x37b8c2=_0x398463['model'],_0x5b51bb=_0x398463['model']['document']['selection'],_0x28483f=_0x114100&&void 0x0!==_0x114100['forceValue']?_0x114100['forceValue']:!_0x5f4c1c['value'];let _0x4fea1a;_0x114100['language']||(_0x114100['language']=_0x48da49[0x0]['language']),_0x4fea1a=_0x28483f?Array['from'](_0x5b51bb['getSelectedBlocks']())['filter'](_0x1f7165=>eo(_0x1f7165)||function(_0x460207,_0x58b64d){if(_0x460207['is']('rootElement')||_0x58b64d['isLimit'](_0x460207))return!0x1;return _0x58b64d['checkChild'](_0x460207['parent'],'codeBlock');}(_0x1f7165,_0x37b8c2['schema'])):Array['from'](_0x5b51bb['getSelectedBlocks']())['filter'](_0x5187ec=>eo(_0x5187ec));const _0x9a433c=to(_0x4fea1a,_0x37b8c2);_0x37b8c2['change'](()=>{for(const _0x144cc4 of _0x9a433c)_0xe95841['markBlockFormat'](_0x144cc4,{'commandName':'codeBlock','commandParams':[{..._0x114100,'forceValue':_0x28483f}],'formatGroupId':'blockName'});});}),(_0xe95841['descriptionFactory']['registerElementLabel']('codeBlock',_0x576ec6=>o(_0x322836,'ELEMENT_CODE_BLOCK',_0x576ec6)),_0xe95841['descriptionFactory']['registerDescriptionCallback'](_0x4fb4dd=>{if('formatBlock'!=_0x4fb4dd['type'])return;const _0x394c35=_0x322836['t'],{data:_0x1276dd}=_0x4fb4dd;if(!_0x1276dd||'codeBlock'!=_0x1276dd['commandName'])return;const _0x25c635=_0x1276dd['commandParams'][0x0]['language'],_0x45bf99=_0x394c35(_0x48da49['find'](_0x4a5c47=>_0x4a5c47['language']===_0x25c635)['label'])['toLowerCase']();return _0x1276dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x322836,'*Set\x20format:*\x20%0',o(_0x322836,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45bf99+')')}:{'type':'format','content':o(_0x322836,'*Remove\x20format:*\x20%0',o(_0x322836,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x38759a){return'codeBlock'==_0x38759a['name'];}class H extends _0x5be52d{['afterInit'](){const _0x25a95a=this['editor'];if(!_0x25a95a['plugins']['has']('CommentsEditing'))return;_0x25a95a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x33c261,_0x2c6b74,_0x54f99b){const _0x26403d=[];for(const _0x51f706 of _0x2c6b74['getItems']())_0x51f706['hasAttribute'](_0x33c261)&&_0x26403d['push'](_0x54f99b['createRangeOn'](_0x51f706));return _0x26403d;}function _e(_0x4575c7,_0x4a1462,{showActiveMarker:_0x31ecc8=!0x0}={}){const _0x4d7ddd=_0x4575c7['plugins']['get']('TrackChangesEditing');return(_0x43d03,_0x115cfc,_0x1afee1)=>{if(!_0x1afee1['consumable']['test'](_0x115cfc['markerRange'],_0x43d03['name']))return;const _0xd06225=_0x115cfc['markerRange']['getWalker'](),_0x2fab54=_0x115cfc['markerRange']['start'],_0x27d25e=_0x4575c7['model']['schema'];let _0x185ad4=null,_0x16a962=null,_0xae6dd4=!0x1,_0x449954=!0x1;for(const _0x30f868 of _0xd06225){const _0x1bef06=_0x30f868['item'];_0xae6dd4=_0xae6dd4||_0x27d25e['isContent'](_0x1bef06);const _0x53faea=_0x1afee1['mapper']['toViewElement'](_0x1bef06);if(_0x53faea&&_0x53faea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30f868['type']&&(_0x27d25e['isBlock'](_0x1bef06)&&!_0x27d25e['isLimit'](_0x1bef06)&&(_0x1bef06['nextSibling']||_0x2fab54['isAtEnd']?_0x185ad4&&_0x185ad4['parent']==_0x1bef06||(_0x185ad4=_0x1bef06,_0xcc02a8(_0x30f868['previousPosition']),_0x449954=!0x0):_0x16a962=_0x16a962||_0x30f868['previousPosition']));}function _0xcc02a8(_0x27c140){const _0x177b20=_0x1afee1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a1462}),_0x38161e=_0x1afee1['mapper']['toViewPosition'](_0x27c140);_0x31ecc8&&_0x4d7ddd['activeMarkers']['includes'](_0x115cfc['markerName'])&&_0x1afee1['writer']['addClass']('ck-suggestion-marker--active',_0x177b20),_0x1afee1['writer']['insert'](_0x38161e,_0x177b20),_0x1afee1['mapper']['bindElementToMarker'](_0x177b20,_0x115cfc['markerName']);}_0xae6dd4||_0x449954||!_0x16a962||_0xcc02a8(_0x16a962);};}class q extends _0x5be52d{static get['requires'](){return[_0x46cb62];}['init'](){const _0x2bc4a9=this['editor'],_0xab2f10=_0x2bc4a9['plugins']['get']('TrackChangesEditing');_0xab2f10['enableCommand']('delete');const _0x14e22a=_0x2bc4a9['commands']['get']('deleteForward');_0xab2f10['enableCommand']('deleteForward',(_0x51a37e,_0x30d541={})=>{const _0x45b3cd=_0x2bc4a9['model']['createSelection'](_0x2bc4a9['model']['document']['selection']);_0x45b3cd['isCollapsed']&&_0x2bc4a9['model']['modifySelection'](_0x45b3cd,{'direction':'forward','unit':_0x30d541['unit']});const _0x2c0113=_0x45b3cd['getFirstRange'](),_0xfe2a93=_0x190d08['fromRange'](_0x2c0113);let _0x40e852;_0x51a37e(_0x30d541),_0x40e852='$graveyard'==_0xfe2a93['root']['rootName']?_0x2bc4a9['model']['createRange'](_0x2c0113['start']):_0x2bc4a9['model']['createRange'](_0xfe2a93['start'],_0xfe2a93['end']),_0xfe2a93['detach'](),_0x2bc4a9['model']['enqueueChange'](_0x14e22a['buffer']['batch'],_0x52e6=>{_0x14e22a['buffer']['lock'](),_0x52e6['setSelection'](_0x52e6['createRange'](_0x40e852['end'])),_0x14e22a['buffer']['unlock']();});}),_0x2bc4a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2bc4a9,'merge'),{'priority':'high'}),_0x2bc4a9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2bd196,_0x295f6d,_0x381b4e)=>{_0x381b4e['options']['showSuggestionHighlights']&&_e(_0x2bc4a9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2bd196,_0x295f6d,_0x381b4e);},{'priority':'high'}),_0x2bc4a9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xbcf604,_0x587f28,_0x586b0a)=>{const _0x70c7dc=_0x586b0a['mapper']['markerNameToElements'](_0x587f28['markerName']);if(_0x70c7dc){for(const _0xbdfb86 of _0x70c7dc)_0xbdfb86['is']('uiElement')&&(_0x586b0a['mapper']['unbindElementFromMarkerName'](_0xbdfb86,_0x587f28['markerName']),_0x586b0a['writer']['remove'](_0xbdfb86));}},{'priority':'high'});}}class z extends _0x5be52d{['afterInit'](){const _0x56b86c=this['editor'];if(!_0x56b86c['plugins']['has']('ListEditing'))return;const _0x3adcaf=_0x56b86c['locale'],_0x4736fa=_0x56b86c['plugins']['get']('TrackChangesEditing'),_0x330bf2=_0x56b86c['plugins']['has']('TodoListEditing'),_0x228560=!!_0x56b86c['config']['get']('list.multiBlock');function _0x5ef0a3(_0x19e234){return{'type':'format','content':''+o(_0x3adcaf,'*Set\x20format:*\x20%0',_0x19e234)};}function _0x13572f(_0x1d746b){return{'type':'format','content':''+o(_0x3adcaf,'*Remove\x20format:*\x20%0',_0x1d746b)};}_0x4736fa['enableDefaultAttributesIntegration']('numberedList'),_0x4736fa['enableDefaultAttributesIntegration']('bulletedList'),_0x4736fa['enableDefaultAttributesIntegration']('customNumberedList'),_0x4736fa['enableDefaultAttributesIntegration']('customBulletedList'),_0x4736fa['enableDefaultAttributesIntegration']('indentList'),_0x4736fa['enableDefaultAttributesIntegration']('outdentList'),_0x4736fa['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4736fa['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4736fa['registerBlockAttribute']('listItemId'),_0x4736fa['registerBlockAttribute']('listType'),_0x4736fa['registerBlockAttribute']('listIndent'),_0x228560&&(_0x4736fa['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4736fa['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x330bf2&&(_0x4736fa['enableDefaultAttributesIntegration']('todoList'),_0x4736fa['enableDefaultAttributesIntegration']('checkTodoList'),_0x4736fa['registerBlockAttribute']('todoListChecked'),_0x4736fa['descriptionFactory']['registerDescriptionCallback'](_0x33755a=>{const {data:_0xf24c20}=_0x33755a;if(_0xf24c20&&'todoListChecked'==_0xf24c20['key'])return{'type':'format','content':_0xf24c20['newValue']?o(_0x3adcaf,'*Check\x20item*'):o(_0x3adcaf,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c9a03=>{if(_0x1c9a03['batch']['isUndo'])return!0x1;let _0x5def35=!0x1;const _0x4cd346=_0x4736fa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b1870=>'todoListChecked'===_0x4736fa['_getAttributeKey'](_0x3b1870));for(const _0x1b43d7 of _0x4cd346){'todo'!=_0x1b43d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4736fa['_findSuggestions'](_0x1b43d7['getFirstRange'](),'attribute')['find'](_0x368a6d=>'listType'===_0x4736fa['_getAttributeKey'](_0x368a6d['suggestion']))||(_0x1c9a03['removeMarker'](_0x1b43d7['getFirstMarker']()),_0x5def35=!0x0));}return _0x5def35;})),_0x4736fa['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3adcaf,'FORMAT_INDENT'));const _0x1533f8={'type':'format','content':''};_0x4736fa['descriptionFactory']['registerDescriptionCallback'](_0x10b7c2=>{const {data:_0x4303e8}=_0x10b7c2;if(!_0x4303e8||'listType'!=_0x4303e8['key'])return;let _0xabca7c=_0x10b7c2['head'];for(;_0xabca7c;){if(_0xabca7c['data']&&(('listStyle'==_0xabca7c['data']['key']||'listMarkerStyle'==_0xabca7c['data']['key'])&&(_0xabca7c['data']['newValue']&&'default'!=_0xabca7c['data']['newValue']||'default'!=_0xabca7c['data']['oldValue']&&!_0x4303e8['newValue'])||!_0x228560&&_0xabca7c['data']['key']==m))return _0x1533f8;_0xabca7c=_0xabca7c['next'];}if(null==_0x4303e8['newValue'])switch(_0x4303e8['oldValue']){case'bulleted':return _0x13572f(o(_0x3adcaf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13572f(o(_0x3adcaf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13572f(o(_0x3adcaf,'ELEMENT_TODO_LIST'));}switch(_0x4303e8['newValue']){case'bulleted':return _0x5ef0a3(o(_0x3adcaf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ef0a3(o(_0x3adcaf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ef0a3(o(_0x3adcaf,'ELEMENT_TODO_LIST'));}}),_0x4736fa['descriptionFactory']['registerDescriptionCallback'](_0x39cdbf=>{const {data:_0x306ec5}=_0x39cdbf;if(_0x306ec5&&'listIndent'==_0x306ec5['key'])return null==_0x306ec5['newValue']||null==_0x306ec5['oldValue']&&0x0==_0x306ec5['newValue']?_0x1533f8:void 0x0;}),_0x4736fa['descriptionFactory']['registerDescriptionCallback'](_0x5a9fc7=>{if('attribute'!=_0x5a9fc7['type'])return;const {data:_0x2b3b1a}=_0x5a9fc7;if(!_0x2b3b1a||'listItemId'!=_0x2b3b1a['key'])return;const _0x15d9c5=le(_0x5a9fc7);return'newValue'==_0x15d9c5?{'type':'format','content':o(_0x3adcaf,'*Merge:*\x20list\x20item')}:'oldValue'==_0x15d9c5?{'type':'format','content':o(_0x3adcaf,'*Split:*\x20list\x20item')}:_0x1533f8;}),_0x56b86c['model']['document']['registerPostFixer'](_0x13a57d=>this['listItemIdFixer'](_0x13a57d)),_0x56b86c['model']['document']['registerPostFixer'](_0x35916f=>this['noTrackChangesFixer'](_0x35916f)),_0x56b86c['model']['document']['registerPostFixer'](_0x1dafd0=>this['assureChains'](_0x1dafd0)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5666ba){if(_0x5666ba['batch']['isUndo']||!_0x5666ba['batch']['isLocal'])return!0x1;let _0x3452eb=!0x1;const _0x26993e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539ba2=>_0x539ba2['data']&&'listItemId'==_0x539ba2['data']['key'])['filter'](_0x7cb60b=>_0x7cb60b['data']['newValue']&&_0x7cb60b['data']['oldValue']);for(const _0x15b6ba of _0x26993e)le(_0x15b6ba)||(_0x5666ba['removeMarker'](_0x15b6ba['getFirstMarker']()),_0x3452eb=!0x0);return _0x3452eb;}['noTrackChangesFixer'](_0xb587f){if(_0xb587f['batch']['isUndo']||!_0xb587f['batch']['isLocal'])return!0x1;const _0x4bb24c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4bb24c['trackChangesCommand']['value'])return!0x1;let _0x58881a=!0x1;const _0x4b31f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x22ca09=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5314c5=>'attribute'==_0x5314c5['type'])['filter'](_0x10a370=>_0x4b31f2['includes'](_0x10a370['attributeKey']));if(0x0==_0x22ca09['length'])return _0x58881a;for(const _0xffad70 of _0x22ca09){const _0x21fd2a=_0x4bb24c['_findSuggestions'](_0xffad70['range'],'attribute')['filter'](_0x2499bb=>!_0x2499bb['meta']['isNextTo'])['map'](_0x49cb6c=>_0x49cb6c['suggestion'])['filter'](_0x23e7bf=>{const _0x597c38=_0x4bb24c['_getAttributeKey'](_0x23e7bf);return _0x4b31f2['includes'](_0x597c38);});if(_0x21fd2a['length']){for(const _0x195a6c of _0x21fd2a)_0xb587f['removeMarker'](_0x195a6c['getFirstMarker']());_0x58881a=!0x0;}}return _0x58881a;}['assureChains'](_0x41e3cc){if(_0x41e3cc['batch']['isUndo']||!_0x41e3cc['batch']['isLocal'])return!0x1;const _0x34ba3e=this['editor']['plugins']['get']('TrackChangesEditing');let _0x50ac3a=!0x1;const _0x1a3074=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3a97e of _0x34ba3e['getSuggestions']({'skipNotAttached':!0x0})){const _0x2cc81d=_0x34ba3e['_findSuggestions'](_0x3a97e['getFirstRange'](),'attribute')['map'](_0xd27e14=>_0xd27e14['suggestion'])['filter'](_0x1967c1=>_0x1967c1['data']&&_0x1a3074['includes'](_0x1967c1['data']['key']));if(!_0x2cc81d['length'])continue;const _0x4a25ff=_0x2cc81d[0x0]['head']['attributes']['groupId'];if(!_0x2cc81d['every'](_0xaff336=>_0xaff336['attributes']['groupId']===_0x4a25ff)){for(const _0xfcf4b2 of _0x2cc81d)_0x51bdc4(_0xfcf4b2,_0x4a25ff)&&(_0x50ac3a=!0x0);}}return _0x50ac3a;function _0x1a5c06(_0x1ed37a,_0x2ddb5a){for(const _0x1bad22 of _0x34ba3e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13df87=>'attribute'==_0x13df87['type']&&_0x13df87['attributes']['groupId']==_0x1ed37a))_0x1bad22['setAttribute']('groupId',_0x2ddb5a);}function _0x51bdc4(_0x5483f5,_0x42da84){let _0x83daca=_0x5483f5['head'],_0x4f16c3=!0x1;for(;_0x83daca;)_0x83daca['attributes']['groupId']!=_0x42da84&&(_0x1a5c06(_0x83daca['attributes']['groupId'],_0x42da84),_0x83daca['setAttribute']('groupId',_0x42da84),_0x4f16c3=!0x0),_0x83daca=_0x83daca['next'];return _0x4f16c3;}}['_supportLegacySuggestions'](){const _0x1ec925=this['editor'],_0x4a9388=_0x1ec925['locale'],_0x5eb9f7=_0x1ec925['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5eb9f7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d21e8,_0x1b01a0){const _0x231928=[];for(let _0x225282 of _0x4d21e8)_0x225282['start']['nodeAfter']===_0x225282['end']['parent']&&(_0x225282=_0x1ec925['model']['createRange'](_0x1ec925['model']['createPositionAt'](_0x225282['start']['nodeAfter'],0x0))),_0x231928['push'](_0x225282);_0x1ec925['model']['change'](_0x3f9e00=>{const _0x214c05=_0x1ec925['model']['document']['selection'],_0x267dc4=Array['from'](_0x214c05['getRanges']())['map'](_0x168129=>_0x190d08['fromRange'](_0x168129));_0x3f9e00['setSelection'](_0x231928),_0x1ec925['commands']['get'](_0x1b01a0['commandName'])['refresh'](),_0x1b01a0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1ec925['execute'](_0x1b01a0['commandName'],..._0x1b01a0['commandParams']),_0x3f9e00['setSelection'](_0x267dc4);for(const _0x23a90d of _0x267dc4)_0x23a90d['detach']();});}),_0x5eb9f7['descriptionFactory']['registerElementLabel'](function(_0x349558){const _0x2afa15=!_0x1ec925['model']['schema']['isObject'](_0x349558),_0x59c7e2=_0x349558['previousSibling'],_0xe83d54=_0x349558['nextSibling'],_0x3b160e=_0x349558['getAttribute']('listItemId'),_0x523eb2=!_0x59c7e2||_0x59c7e2['getAttribute']('listItemId')!==_0x3b160e,_0x30c178=!_0xe83d54||_0xe83d54['getAttribute']('listItemId')!==_0x3b160e;return _0x2afa15&&Boolean(_0x3b160e)&&_0x523eb2&&_0x30c178;},_0x4dea8a=>o(_0x4a9388,'ELEMENT_LIST_ITEM',_0x4dea8a));}['_registerLegacyDescription'](){const _0x262641=this['editor'],_0x26baf6=_0x262641['locale'];function _0x573434(_0xb97699){const _0x12cabb=_0x262641['commands']['get']('bulletedList')['value'],_0x1f7e73=_0x262641['commands']['get']('numberedList')['value'];return'numberedList'===_0xb97699?_0x12cabb:_0x1f7e73;}_0x262641['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3449c0){if('formatBlock'!=_0x3449c0['type'])return;const {data:_0x26b90a}=_0x3449c0;if(!_0x26b90a)return;let _0x5b4f89,_0x1befc4,_0x5191de,_0x3ba202;switch(_0x26b90a['commandName']){case'bulletedList':_0x5191de=_0x26b90a['commandParams'][0x0]['forceValue'],_0x3ba202=_0x573434(_0x26b90a['commandName']),_0x5b4f89=_0x5191de?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba202&&_0x262641['config']['get']('list.multiBlock')||(_0x5b4f89='*Change\x20to:*\x20%0'),_0x1befc4={'type':'format','content':o(_0x26baf6,_0x5b4f89,o(_0x26baf6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5191de=_0x26b90a['commandParams'][0x0]['forceValue'],_0x3ba202=_0x573434(_0x26b90a['commandName']),_0x5b4f89=_0x5191de?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba202&&_0x262641['config']['get']('list.multiBlock')||(_0x5b4f89='*Change\x20to:*\x20%0'),_0x1befc4={'type':'format','content':o(_0x26baf6,_0x5b4f89,o(_0x26baf6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b4f89='*Indent:*\x20%0',_0x1befc4={'type':'format','content':o(_0x26baf6,_0x5b4f89,o(_0x26baf6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b4f89=function(_0x4f9658){const _0x39228b=_0x4f9658['getFirstRange']();let _0x559fa1=_0x39228b['start']['nodeAfter'];for(;_0x559fa1&&_0x39228b['containsItem'](_0x559fa1);){if(_0x559fa1['getAttribute']('listIndent')>0x0)return!0x1;_0x559fa1=_0x559fa1['nextSibling'];}return!0x0;}(_0x3449c0)?o(_0x26baf6,'*Format:*\x20remove\x20from\x20%0',o(_0x26baf6,function(_0x26378d){return'ELEMENT_'+_0x26378d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3449c0))):o(_0x26baf6,'*Outdent:*\x20%0',o(_0x26baf6,'ELEMENT_LIST_ITEM')),_0x1befc4={'type':'format','content':_0x5b4f89};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x26b90a['multipleBlocks']&&(_0x5b4f89='*Merge:*\x20%0',_0x1befc4={'type':'deletion','content':o(_0x26baf6,_0x5b4f89,o(_0x26baf6,'ELEMENT_LIST_ITEM'))});}return _0x1befc4;});}}function le(_0x5c0eb9){let _0x487236=_0x5c0eb9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x487236;){const _0x33dc60=_0x487236['getAttribute']('listItemId');if(!_0x33dc60)return!0x1;if(_0x33dc60==_0x5c0eb9['data']['newValue'])return'newValue';if(_0x33dc60==_0x5c0eb9['data']['oldValue'])return'oldValue';_0x487236=_0x487236['previousSibling'];}return!0x1;}class ue extends _0x5be52d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a487e=this['editor']['config']['get']('list.properties'),_0x11fc59=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a487e['styles']&&(_0x11fc59['enableDefaultAttributesIntegration']('listStyle'),_0x11fc59['registerBlockAttribute']('listStyle')),_0x1a487e['reversed']&&(_0x11fc59['enableDefaultAttributesIntegration']('listReversed'),_0x11fc59['registerBlockAttribute']('listReversed')),_0x1a487e['startIndex']&&(_0x11fc59['enableDefaultAttributesIntegration']('listStart'),_0x11fc59['registerBlockAttribute']('listStart'));const _0x4c2e17={'type':'format','content':''};_0x11fc59['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x327aef=this['editor']['locale'];_0x11fc59['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x327aef,'FORMAT_LIST_REVERSED')),_0x11fc59['descriptionFactory']['registerDescriptionCallback'](_0x27665f=>{const {data:_0x49e5b3}=_0x27665f;if(_0x49e5b3&&'listReversed'==_0x49e5b3['key'])return null==_0x49e5b3['newValue']||0x0==_0x49e5b3['newValue']&&null==_0x49e5b3['oldValue']?_0x4c2e17:void 0x0;}),_0x11fc59['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x327aef,'FORMAT_LIST_START')),_0x11fc59['descriptionFactory']['registerDescriptionCallback'](_0x359b1f=>{const {data:_0x3750ff}=_0x359b1f;if(_0x3750ff&&'listStart'==_0x3750ff['key'])return null==_0x3750ff['newValue']||0x1==_0x3750ff['newValue']&&null==_0x3750ff['oldValue']?_0x4c2e17:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ee6e1=>{if(_0x5ee6e1['batch']['isUndo'])return!0x1;let _0x214107=!0x1;const _0x19a0c7=_0x11fc59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfb2ab6=>{const _0x2bbc31=_0x11fc59['_getAttributeKey'](_0xfb2ab6);return'listStart'==_0x2bbc31||'listReversed'==_0x2bbc31;});for(const _0x1026f4 of _0x19a0c7){const _0x5db7d4=_0x1026f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5db7d4||'customNumbered'==_0x5db7d4)continue;_0x11fc59['_findSuggestions'](_0x1026f4['getFirstRange'](),'attribute')['find'](_0xaaa408=>'listType'==_0x11fc59['_getAttributeKey'](_0xaaa408['suggestion']))||(_0x5ee6e1['removeMarker'](_0x1026f4['getFirstMarker']()),_0x214107=!0x0);}return _0x214107;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x155010){const _0x20c9fa=this['editor']['locale'],{data:_0xfee5b8}=_0x155010,_0x372f53={'type':'format','content':''};if(!_0xfee5b8||'listStyle'!=_0xfee5b8['key'])return;if(!_0xfee5b8['oldValue'])return'default'==_0xfee5b8['newValue']?_0x372f53:{'type':'format','content':''+o(_0x20c9fa,'*Set\x20format:*\x20%0',o(_0x20c9fa,this['_getTranslationKeyForListStyle'](_0xfee5b8['newValue'])))};if(!_0xfee5b8['newValue']){if('default'==_0xfee5b8['oldValue'])return _0x372f53;let _0xef2295=_0x155010['head'];for(;_0xef2295;){if(_0xef2295['data']&&'listType'==_0xef2295['data']['key']&&_0xef2295['data']['newValue'])return _0x372f53;_0xef2295=_0xef2295['next'];}return{'type':'format','content':''+o(_0x20c9fa,'*Remove\x20format:*\x20%0',o(_0x20c9fa,this['_getTranslationKeyForListStyle'](_0xfee5b8['oldValue'])))};}if('default'!=_0xfee5b8['newValue'])return{'type':'format','content':''+o(_0x20c9fa,'*Set\x20format:*\x20%0',o(_0x20c9fa,this['_getTranslationKeyForListStyle'](_0xfee5b8['newValue'])))};let _0x55fe50=_0x155010['head'];for(;_0x55fe50;){if(_0x55fe50['data']&&'listType'==_0x55fe50['data']['key']&&_0x55fe50['data']['newValue']&&_0x55fe50['data']['oldValue'])return _0x372f53;_0x55fe50=_0x55fe50['next'];}return{'type':'format','content':o(_0x20c9fa,'*Set\x20format:*\x20%0',o(_0x20c9fa,'ELEMENT_'+_0x155010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x80846f=this['editor'],_0x217506=_0x80846f['locale'];_0x80846f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36ed64=>{if('formatBlock'!=_0x36ed64['type'])return;const {data:_0x329e5b}=_0x36ed64;if(!_0x329e5b)return;let _0xe6521c,_0x21ed79;switch(_0x329e5b['commandName']){case'listStyle':_0xe6521c='*Change\x20to:*\x20%0',_0x21ed79={'type':'format','content':o(_0x217506,_0xe6521c,o(_0x217506,this['_getTranslationKeyForListStyle'](_0x329e5b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe6521c=_0x329e5b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21ed79={'type':'format','content':o(_0x217506,_0xe6521c)};break;case'listStart':_0xe6521c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21ed79={'type':'format','content':o(_0x217506,_0xe6521c,_0x329e5b['commandParams'][0x0]['startIndex'])};}return _0x21ed79;});}['_getTranslationKeyForListStyle'](_0x56c64b){return'ELEMENT_'+function(_0x44118a){if(pe['includes'](_0x44118a))return'bulleted';if(ye['includes'](_0x44118a))return'numbered';return null;}(_0x56c64b)['toUpperCase']()+'_LIST_'+_0x56c64b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5be52d{static get['requires'](){return[_0xde81c1];}['init'](){const _0x1a053d=this['editor'],_0x58148f=_0x1a053d['plugins']['get']('TrackChangesEditing'),_0x4ba90f=_0x1a053d['commands']['get']('enter');_0x58148f['enableCommand']('enter',()=>{_0x1a053d['model']['change'](_0x17ba87=>{const _0x495022=_0x1a053d['model']['document']['selection'],_0x29cf7d=_0x495022['getFirstPosition'](),_0x109bd1=_0x190d08['fromRange'](_0x495022['getFirstRange']());if(_0x4ba90f['enterBlock'](_0x17ba87)){const _0x902d6d=_0x1a053d['model']['createPositionAt'](_0x29cf7d['parent']['nextSibling'],0x0),_0x21ac63=_0x17ba87['createRange'](_0x29cf7d,_0x902d6d);_0x58148f['markInsertion'](_0x21ac63);}else _0x17ba87['setSelection'](_0x17ba87['createRange'](_0x109bd1['end']));_0x109bd1['detach'](),_0x4ba90f['fire']('afterExecute',{'writer':_0x17ba87});});}),_0x1a053d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1a053d,'split'),{'priority':'high'}),_0x1a053d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x141245,_0x3a21c2,_0x39a884)=>{const _0x48d447=_0x39a884['mapper']['markerNameToElements'](_0x3a21c2['markerName']);if(_0x48d447){for(const _0x312369 of _0x48d447)_0x312369['hasClass']('ck-suggestion-marker-split')&&(_0x39a884['mapper']['unbindElementFromMarkerName'](_0x312369,_0x3a21c2['markerName']),_0x39a884['writer']['remove'](_0x312369));}},{'priority':'high'}),_0x1a053d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc2a73,_0x1bb8be,_0x51cbb0)=>{_0x51cbb0['options']['showSuggestionHighlights']&&_e(_0x1a053d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xc2a73,_0x1bb8be,_0x51cbb0);},{'priority':'high'});}}class J extends _0x5be52d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4149a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4149a1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4149a1['enableCommand']('findNext'),_0x4149a1['enableCommand']('findPrevious'),_0x4149a1['enableCommand']('replace'),_0x4149a1['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f66ab,_0x183d70,_0x622afa={}){const _0x211a16=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f66ab(_0x268b63=>('string'==typeof _0x183d70?_0x211a16['findByTextCallback'](_0x183d70,_0x622afa):_0x183d70)(_0x268b63)['filter'](_0x53b9ea=>!0x1===this['_isInDeletionRange'](_0x53b9ea,_0x268b63['item'])),_0x622afa);}['_isInDeletionRange'](_0x3b8242,_0x3d62c7){const _0x29b61d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d62c7,_0x3b8242['start']),this['editor']['model']['createPositionAt'](_0x3d62c7,_0x3b8242['end']));for(const _0x2b682e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29b61d['getIntersection'](_0x2b682e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5be52d{['afterInit'](){const _0x14a98b=this['editor']['locale'],_0x2e0402=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3109e3,commandName:_0x5b3a6d}of ro)this['editor']['plugins']['has'](_0x3109e3)&&(_0x2e0402['enableDefaultAttributesIntegration'](_0x5b3a6d),_0x2e0402['registerInlineAttribute'](_0x5b3a6d));_0x14a98b['t'],_0x2e0402['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x14a98b,'FORMAT_FONT_SIZE')),_0x2e0402['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x14a98b,'FORMAT_FONT_FAMILY')),_0x2e0402['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x14a98b,'FORMAT_FONT_COLOR')),_0x2e0402['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x14a98b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a1977=this['editor'],_0x2d4871=_0x2a1977['locale'];_0x2a1977['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221030=>{const _0x341473=_0x2d4871['t'];if('formatInline'!=_0x221030['type'])return;const {data:_0x33b434}=_0x221030;if(null!=_0x33b434){if('fontSize'==_0x33b434['commandName']){const _0x34f699=_0x33b434['commandParams'][0x0]['value'];if(_0x34f699){const _0xf1c47d=_0x341473(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x278e85=>_0x278e85['model']==_0x34f699)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d4871,'*Set\x20font\x20size:*\x20%0',_0xf1c47d)};}return{'type':'format','content':o(_0x2d4871,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33b434['commandName']){const _0x585bd3=_0x33b434['commandParams'][0x0]['value'];return _0x585bd3?{'type':'format','content':o(_0x2d4871,'*Set\x20font\x20family:*\x20%0',_0x585bd3)}:{'type':'format','content':o(_0x2d4871,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33b434['commandName']){const _0x347dce=_0x33b434['commandParams'][0x0]['value'];if(_0x347dce){const _0x57ab8d=_0x4e8817(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3cc5fa=>_0x3cc5fa['model']==_0x347dce);let _0x3f7094=_0x347dce,_0x547f46='';return _0x57ab8d&&(_0x3f7094=_0x57ab8d['label'],_0x547f46=_0x341473(_0x3f7094)['toLowerCase']()),{'type':'format','content':o(_0x2d4871,'*Set\x20font\x20color:*\x20%0',_0x547f46)['trim'](),'color':{'value':_0x347dce,'title':_0x547f46||_0x3f7094}};}return{'type':'format','content':o(_0x2d4871,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33b434['commandName']){const _0x37defd=_0x33b434['commandParams'][0x0]['value'];if(_0x37defd){const _0x32c343=_0x4e8817(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x513ff1=>_0x513ff1['model']==_0x37defd);let _0x532e60=_0x37defd,_0x372a9d='';return _0x32c343&&(_0x532e60=_0x32c343['label'],_0x372a9d=_0x341473(_0x532e60)['toLowerCase']()),{'type':'format','content':o(_0x2d4871,'*Set\x20font\x20background\x20color:*\x20%0',_0x372a9d)['trim'](),'color':{'value':_0x37defd,'title':_0x372a9d||_0x532e60}};}return{'type':'format','content':o(_0x2d4871,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5be52d{['afterInit'](){const _0x157959=this['editor'],_0x463aad=_0x157959['plugins']['get']('TrackChangesEditing'),_0x230b99=_0x157959['commands']['get']('copyFormat'),_0x5236ad=_0x157959['commands']['get']('pasteFormat');_0x230b99&&_0x5236ad&&(_0x463aad['enableDefaultAttributesIntegration']('pasteFormat'),_0x463aad['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xeed1a3=this['editor'],_0x1150a9=_0xeed1a3['locale'];_0xeed1a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7d85d=>{if('formatBlock'!=_0x7d85d['type']&&'formatInline'!=_0x7d85d['type'])return;const {data:_0x4ec19f}=_0x7d85d;if(_0x4ec19f&&'pasteFormat'===_0x4ec19f['commandName']){const _0x208f09=[],_0x4f2b4f=_0x4ec19f['commandParams'][0x0];for(const [_0xc50d96,_0xb871]of Object['entries'](_0x4f2b4f))_0x208f09['push'](so(_0xeed1a3,_0xc50d96,_0xb871));return _0x208f09['length']?{'type':'format','content':o(_0x1150a9,'*Set\x20format\x20to:*\x20%0',_0x208f09['join'](',\x20'))}:{'type':'format','content':o(_0x1150a9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2fab6f,_0x3baa7a,_0x3a769d){const _0x29f996=_0x2fab6f['locale']['t'],_0x21c297=_0x3baa7a['split'](/(?=[A-Z])/)['join']('\x20'),_0x53e51f=_0x29f996(_0x21c297['charAt'](0x0)['toUpperCase']()+_0x21c297['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a769d)return _0x53e51f;if('fontColor'===_0x3baa7a||'fontBackgroundColor'===_0x3baa7a){const _0x3476fc=_0x4e8817(_0x2fab6f['config']['get']('fontColor.colors'))['find'](_0x1a4934=>_0x1a4934['model']==_0x3a769d);return _0x53e51f+'\x20('+(_0x3476fc?_0x29f996(_0x3476fc['label'])['toLowerCase']():_0x3a769d)+')';}if('fontSize'===_0x3baa7a&&isNaN(parseFloat(_0x3a769d))){const _0x3b8768=_0x2fab6f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fab6f['config']['get']('fontSize.options'))['find'](_0x27ef52=>_0x27ef52['model']==_0x3a769d);return _0x53e51f+'\x20('+(_0x3b8768?_0x29f996(_0x3b8768['title'])['toLowerCase']():_0x3a769d)+')';}return _0x53e51f+'\x20('+_0x3a769d+')';}class Y extends _0x5be52d{['_headingOptions'];['afterInit'](){const _0x5bd94a=this['editor'];if(!_0x5bd94a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bd94a['config']['get']('heading.options');const _0x1c0126=_0x5bd94a['locale'],_0x4a9146=_0x5bd94a['plugins']['get']('TrackChangesEditing');_0x4a9146['enableDefaultAttributesIntegration']('heading');for(const _0x4adfdc of this['_headingOptions'])'paragraph'!=_0x4adfdc['model']&&_0x4a9146['descriptionFactory']['registerElementLabel'](_0x4adfdc['model'],_0x1c9adb=>{const _0x30747b=this['_getHeadingLevel'](_0x4adfdc['model']);return null!==_0x30747b?_0x424d49(_0x1c9adb,_0x30747b):_0x14655a(_0x1c9adb,_0x4adfdc['title']);});function _0x424d49(_0x1293ca,_0x53c33a){return o(_0x1c0126,'ELEMENT_HEADING',[_0x1293ca,_0x53c33a]);}function _0x14655a(_0x5c74fb,_0x4bc5bf){return o(_0x1c0126,'ELEMENT_HEADING_CUSTOM',[_0x5c74fb,_0x4bc5bf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b66c7=this['editor'],_0x404fab=_0x5b66c7['locale'];function _0x2a2cf7(_0x155987,_0x4949c6){return o(_0x404fab,'ELEMENT_HEADING_CUSTOM',[_0x155987,_0x4949c6]);}_0x5b66c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573dab=>{if('formatBlock'!=_0x573dab['type'])return;const {data:_0x3242cf}=_0x573dab;if(_0x3242cf&&'heading'==_0x3242cf['commandName']){const _0x1ebafd=_0x3242cf['commandParams'][0x0]['value'],_0xd85109=this['_getHeadingLevel'](_0x1ebafd);if(null!==_0xd85109)return{'type':'format','content':o(_0x404fab,'*Change\x20to:*\x20%0',(_0x318d77=0x1,_0x5ed2af=_0xd85109,o(_0x404fab,'ELEMENT_HEADING',[_0x318d77,_0x5ed2af])))};const _0x250794=this['_headingOptions']['find'](_0x4b30c2=>_0x4b30c2['model']===_0x1ebafd)['title'];return{'type':'format','content':o(_0x404fab,'*Change\x20to:*\x20%0',_0x2a2cf7(0x1,_0x250794))};}var _0x318d77,_0x5ed2af;});}['_getHeadingLevel'](_0x524472){const _0x1b9084=_0x524472['match'](/^heading(\d+)/);if(_0x1b9084)return _0x1b9084[0x1];const _0x3170bd=this['_headingOptions']?.['find'](_0x2b4b89=>_0x2b4b89['model']==_0x524472);if(_0x3170bd&&_0x3170bd['view']){const _0x5955ac=_0x3170bd['view'],_0x30bc6c=(_0x5955ac['name']??_0x5955ac)['match'](/^h(\d+)/);if(_0x30bc6c)return _0x30bc6c[0x1];}return null;}}class Z extends _0x5be52d{['afterInit'](){const _0x2552b5=this['editor'];if(!_0x2552b5['plugins']['has']('HighlightEditing'))return;const _0x1534c5=_0x2552b5['plugins']['get']('TrackChangesEditing'),_0x19357d=_0x2552b5['locale'];_0x1534c5['enableDefaultAttributesIntegration']('highlight'),_0x1534c5['registerInlineAttribute']('highlight'),_0x1534c5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x19357d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xffcde7=this['editor'],_0x5ef14e=_0xffcde7['locale'];_0xffcde7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17be4d=>{if('formatInline'!=_0x17be4d['type'])return;const {data:_0x4f6678}=_0x17be4d;if(_0x4f6678&&'highlight'==_0x4f6678['commandName']){const _0x16c866=_0x5ef14e['t'],_0x2bfda1=_0x4f6678['commandParams'][0x0]['value'];if(_0x2bfda1){const _0x282b8a=_0xffcde7['config']['get']('highlight.options')['find'](_0x295be1=>_0x295be1['model']==_0x2bfda1),_0x305990=_0x16c866(_0x282b8a['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ef14e,'*Set\x20highlight:*\x20%0',_0x305990),'color':{'value':_0x282b8a['color'],'title':_0x282b8a['title']}};}return{'type':'format','content':o(_0x5ef14e,'*Remove\x20highlight*',o(_0x5ef14e,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5be52d{['afterInit'](){const _0x1d17d3=this['editor'];if(!_0x1d17d3['plugins']['has']('HorizontalLineEditing'))return;_0x1d17d3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1eb218=_0x1d17d3['plugins']['get']('TrackChangesEditing'),_0x5a4741=_0x1d17d3['locale'];_0x1eb218['descriptionFactory']['registerElementLabel']('horizontalLine',_0x200c5a=>o(_0x5a4741,'ELEMENT_HORIZONTAL_LINE',_0x200c5a)),_0x1d17d3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4601de,{writer:_0x541a68,options:_0x7c7223})=>{if(!_0x7c7223['showSuggestionHighlights'])return null;const _0x23684a=_0x541a68['createContainerElement']('div'),_0x2fe7a0=_0x541a68['createEmptyElement']('hr');return _0x541a68['addClass']('ck-horizontal-line',_0x23684a),_0x541a68['insert'](_0x541a68['createPositionAt'](_0x23684a,0x0),_0x2fe7a0),_0x23684a;},'converterPriority':'high'});}}class et extends _0x5be52d{['afterInit'](){const _0x48e0bc=this['editor'];if(!_0x48e0bc['plugins']['has']('HtmlEmbed'))return;const _0x2e3408=_0x48e0bc['plugins']['get']('TrackChangesEditing'),_0x51727d=_0x48e0bc['locale'];_0x2e3408['descriptionFactory']['registerElementLabel']('rawHtml',_0x15b214=>o(_0x51727d,'ELEMENT_HTML_EMBED',_0x15b214)),_0x2e3408['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2e3408['registerBlockAttribute']('value'),_0x2e3408['descriptionFactory']['registerDescriptionCallback'](_0x55da50=>{if('attribute'!=_0x55da50['type'])return;const {data:_0x4be9e8}=_0x55da50;if(_0x4be9e8&&'value'==_0x4be9e8['key']&&_0x55da50['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x545372=o(_0x51727d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51727d,'*Change\x20%0\x20content*',_0x545372)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381699=this['editor'],_0x3eabba=_0x381699['locale'];_0x381699['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329cd8=>{if('formatBlock'!=_0x329cd8['type'])return;const {data:_0x562818}=_0x329cd8;if(_0x562818&&'htmlEmbed'==_0x562818['commandName']){const _0x155fb5=o(_0x3eabba,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3eabba,'*Change\x20%0\x20content*',_0x155fb5)};}});}}class it extends _0x5be52d{['afterInit'](){const _0x23f7b4=this['editor'];if(!_0x23f7b4['plugins']['has']('ImageEditing'))return;const _0x35e7f4=_0x23f7b4['plugins']['get']('TrackChangesEditing'),_0x5e61f1=_0x23f7b4['plugins']['get']('ImageUtils'),_0x34d7ba=_0x23f7b4['locale'];_0x35e7f4['enableCommand']('insertImage'),_0x35e7f4['descriptionFactory']['registerElementLabel']('imageBlock',_0x3cb2f2=>o(_0x34d7ba,'ELEMENT_IMAGE',_0x3cb2f2)),_0x35e7f4['descriptionFactory']['registerElementLabel']('imageInline',_0x3fcfac=>o(_0x34d7ba,'ELEMENT_INLINE_IMAGE',_0x3fcfac)),_0x35e7f4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x34d7ba,'ELEMENT_CAPTION')),_0x23f7b4['plugins']['has']('ImageUploadEditing')&&_0x35e7f4['enableCommand']('uploadImage'),_0x23f7b4['plugins']['has']('ImageBlockEditing')&&_0x23f7b4['plugins']['has']('ImageInlineEditing')&&(_0x35e7f4['enableCommand']('imageTypeInline',(_0xa4c689,_0x265c3c)=>{const _0x4aa5f8=_0x5e61f1['getClosestSelectedImageElement'](_0x23f7b4['model']['document']['selection']);_0x23f7b4['model']['change'](()=>{_0x35e7f4['markBlockFormat'](_0x4aa5f8,{'commandName':'imageTypeInline','commandParams':[_0x265c3c]},[],'convertBlockImageToInline');});}),_0x35e7f4['enableCommand']('imageTypeBlock',(_0x530e2a,_0x2e6d31)=>{_0x23f7b4['model']['change'](_0x5ea7f0=>{let _0x4e20b8=_0x5e61f1['getClosestSelectedImageElement'](_0x23f7b4['model']['document']['selection']),_0x21d97d=_0x5ea7f0['createRangeOn'](_0x4e20b8);const _0x6cab8=_0x3a0633['fromPosition'](_0x21d97d['start'],'toPrevious'),_0x5c71a0=_0x3a0633['fromPosition'](_0x21d97d['end'],'toNext');_0x35e7f4['forceDefaultExecution'](()=>_0x530e2a(_0x2e6d31)),_0x4e20b8=_0x5e61f1['getClosestSelectedImageElement'](_0x23f7b4['model']['document']['selection']),_0x21d97d=_0x5ea7f0['createRangeOn'](_0x4e20b8);const _0x4ad34a=_0x5ea7f0['createRange'](_0x6cab8,_0x5c71a0);_0x6cab8['detach'](),_0x5c71a0['detach'](),_0x35e7f4['markBlockFormat'](_0x4e20b8,{'commandName':'imageTypeInline','commandParams':[_0x2e6d31]},[],'convertInlineImageToBlock'),_0x4ad34a['start']['isBefore'](_0x21d97d['start'])&&_0x35e7f4['markInsertion'](_0x5ea7f0['createRange'](_0x4ad34a['start'],_0x21d97d['start']),'convertInlineImageToBlock'),_0x21d97d['end']['isBefore'](_0x4ad34a['end'])&&_0x35e7f4['markInsertion'](_0x5ea7f0['createRange'](_0x21d97d['end'],_0x4ad34a['end']),'convertInlineImageToBlock');});}),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35e7f4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5ac866])=>{const _0x3a4d03=_0x35e7f4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3759a9=_0x5ac866['start'],_0x1b1d10=_0x5ac866['end'];const _0x3f3028=_0x23f7b4['model']['schema']['getNearestSelectionRange'](_0x3759a9,'backward'),_0x59a548=_0x23f7b4['model']['schema']['getNearestSelectionRange'](_0x1b1d10,'forward');_0x3f3028['isCollapsed']&&(_0x3759a9=_0x3f3028['start']),_0x59a548['isCollapsed']&&(_0x1b1d10=_0x59a548['end']),_0x3a4d03([_0x23f7b4['model']['createRange'](_0x3759a9,_0x1b1d10)]);}),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bbf8a),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bbf8a)),_0x23f7b4['plugins']['has']('ImageCaptionEditing')&&(_0x35e7f4['enableCommand']('toggleImageCaption',(_0x334f53,_0xf348ff)=>{const _0x40c1ea=_0x23f7b4['plugins']['get']('ImageCaptionUtils');let _0x1cb0b9=_0x5e61f1['getClosestSelectedImageElement'](_0x23f7b4['model']['document']['selection']),_0x5a57e8=_0x40c1ea['getCaptionFromImageModelElement'](_0x1cb0b9);_0x23f7b4['model']['change'](()=>{if(_0x5a57e8)return void _0x35e7f4['markDeletion'](_0x23f7b4['model']['createRangeOn'](_0x5a57e8));const _0x41e71e=_0x5e61f1['isBlockImage'](_0x1cb0b9);_0x334f53(_0xf348ff),_0x1cb0b9=_0x5e61f1['getClosestSelectedImageElement'](_0x23f7b4['model']['document']['selection']),_0x5a57e8=_0x40c1ea['getCaptionFromImageModelElement'](_0x1cb0b9),_0x35e7f4['markInsertion'](_0x23f7b4['model']['createRangeOn'](_0x5a57e8),_0x41e71e?null:'imageCaption');});}),_0x35e7f4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bbf8a));const _0x5db931=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x276550(_0x2b7c54,_0x1bfd34){const _0x46139f=_0x5db931['findIndex'](({type:_0x1a045d,subType:_0x31c29d})=>_0x2b7c54['type']==_0x1a045d&&_0x2b7c54['subType']==_0x31c29d),_0x114c16=_0x5db931['findIndex'](({type:_0x53e18c,subType:_0x53bb26})=>_0x1bfd34['type']==_0x53e18c&&_0x1bfd34['subType']==_0x53bb26);if(_0x46139f<0x0||_0x114c16<0x0)return!0x1;const _0x40bfe6=_0x2b7c54['getFirstRange'](),_0x5ddf56=_0x1bfd34['getFirstRange']();if((0x0==_0x46139f||0x1==_0x46139f)&&0x2==_0x114c16&&_0x40bfe6['isIntersecting'](_0x5ddf56))return!0x0;if(0x2==_0x46139f&&0x3==_0x114c16){const _0x52bb54=_0x35e7f4['_findSuggestions'](_0x40bfe6,'insertion')['filter'](({suggestion:_0x16b5b9,meta:_0x27d812})=>_0x27d812['isOwn']&&'convertInlineImageToBlock'==_0x16b5b9['subType']);if(_0x52bb54['length']>0x1&&_0x5ddf56['end']['isEqual'](_0x40bfe6['start']))return!0x0;if(0x1==_0x52bb54['length']&&(_0x40bfe6['start']['isEqual'](_0x5ddf56['end'])||_0x40bfe6['end']['isEqual'](_0x5ddf56['start'])))return!0x0;}if(0x3==_0x46139f&&0x3==_0x114c16&&_0x40bfe6['start']['isBefore'](_0x5ddf56['start'])){const _0xf50dc6=_0x40bfe6['end']['nodeAfter'],_0x40dfad=_0x5ddf56['start']['nodeBefore'];return _0x5e61f1['isBlockImage'](_0xf50dc6)&&_0xf50dc6===_0x40dfad;}return!0x1;}function _0x2bbf8a(_0x5429cf,_0x8d4809){return _0x276550(_0x5429cf,_0x8d4809)?[_0x5429cf,_0x8d4809]:_0x276550(_0x8d4809,_0x5429cf)?[_0x8d4809,_0x5429cf]:null;}_0x23f7b4['plugins']['has']('ImageResize')&&(_0x35e7f4['enableDefaultAttributesIntegration']('resizeImage'),_0x35e7f4['registerBlockAttribute']('resizedWidth'),_0x35e7f4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x34d7ba,'FORMAT_IMAGE_SIZE'))),_0x23f7b4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x35e7f4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x35e7f4['registerBlockAttribute']('alt')),_0x35e7f4['descriptionFactory']['registerDescriptionCallback'](_0x50e6fe=>{if(!!_0x5db931['find'](({type:_0x289720,subType:_0x31d1b9})=>_0x50e6fe['type']==_0x289720&&_0x50e6fe['subType']==_0x31d1b9))return _0x50e6fe['previous']?{}:void 0x0;}),_0x35e7f4['descriptionFactory']['registerDescriptionCallback'](_0x5f50ca=>{if('insertion'==_0x5f50ca['type']||'deletion'==_0x5f50ca['type']){const _0x400111=_0x5f50ca['getContainedElement']();if(_0x400111&&_0x400111['is']('element','caption'))return{'type':'insertion'==_0x5f50ca['type']?'addObject':'removeObject','element':_0x400111,'quantity':0x1};}}),_0x35e7f4['descriptionFactory']['registerDescriptionCallback'](_0x5ed3fc=>'formatBlock'==_0x5ed3fc['type']&&'convertInlineImageToBlock'==_0x5ed3fc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ed3fc['type']&&'convertBlockImageToInline'==_0x5ed3fc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35e7f4['descriptionFactory']['registerDescriptionCallback'](_0x18968c=>{if('attribute'!=_0x18968c['type'])return;const {data:_0xb889c1}=_0x18968c;if(!_0xb889c1||'alt'!=_0xb889c1['key'])return;const _0x108df8=_0xb889c1['newValue'];return _0x108df8?{'type':'format','content':o(_0x34d7ba,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x108df8+'\x22')}:{'type':'format','content':o(_0x34d7ba,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501a7f=this['editor'],_0x50a994=_0x501a7f['locale'];_0x501a7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca66a=>{if('formatBlock'!=_0x2ca66a['type']&&'formatInline'!=_0x2ca66a['type'])return;const {data:_0x16462e}=_0x2ca66a;if(_0x16462e){if('imageTextAlternative'==_0x16462e['commandName']){const _0x247bdf=_0x16462e['commandParams'][0x0]['newValue'];return _0x247bdf?{'type':'format','content':o(_0x50a994,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x247bdf+'\x22')}:{'type':'format','content':o(_0x50a994,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x16462e['commandName']){const _0x1b375a=_0x16462e['commandParams'][0x0]['width'];return _0x1b375a?{'type':'format','content':o(_0x50a994,'*Set\x20image\x20width:*\x20%0',_0x1b375a)}:{'type':'format','content':o(_0x50a994,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5be52d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5678f0=this['editor']['locale'],_0x1037ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x1037ed['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1037ed['registerBlockAttribute']('src'),_0x1037ed['descriptionFactory']['registerDescriptionCallback'](_0x31bdef=>{if('attribute'!=_0x31bdef['type'])return;const {data:_0x1804f7}=_0x31bdef;return _0x1804f7&&'src'==_0x1804f7['key']?_0x1804f7['newValue']&&_0x1804f7['oldValue']?{'type':'format','content':o(_0x5678f0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x117c50=this['editor']['plugins']['get']('TrackChangesEditing');_0x117c50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x117c50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x117c50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x117c50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e16d=this['editor'],_0x4a666b=_0x22e16d['locale'];_0x22e16d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217111=>{if('formatBlock'!=_0x217111['type']&&'formatInline'!=_0x217111['type'])return;const {data:_0x4a90d8}=_0x217111;if(!_0x4a90d8||'replaceImageSource'!=_0x4a90d8['commandName'])return;return{'type':'format','content':o(_0x4a666b,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5be52d{['afterInit'](){const _0x3a0b7a=this['editor'];if(!_0x3a0b7a['plugins']['has']('ImageStyleEditing'))return;const _0x23a666=_0x3a0b7a['plugins']['get']('TrackChangesEditing'),_0x1d5a64=_0x3a0b7a['plugins']['get']('ImageUtils'),_0x65dfde={};_0x23a666['enableCommand']('imageStyle',(_0x5190a9,_0x3c59f6)=>{const _0x35ee77=_0x3a0b7a['plugins']['get']('Users')['me'],_0x36c222=_0x3a0b7a['commands']['get']('imageStyle');let _0x584680=_0x1d5a64['getClosestSelectedImageElement'](_0x3a0b7a['model']['document']['selection']),_0x4a1471=_0x3a0b7a['model']['createRangeOn'](_0x584680),_0x5d8b1a=_0x36c222['value'];if(_0x5d8b1a==_0x3c59f6['value'])return;const _0x16d030={'commandName':'imageStyle','commandParams':[_0x3c59f6],'formatGroupId':_0x25d75f()};_0x3a0b7a['model']['change'](()=>{if(_0x23a666['getSuggestions']()['filter'](_0x3a1fd3=>_0x3a1fd3['isInContent']&&_0x35ee77==_0x3a1fd3['author']&&('formatBlock'==_0x3a1fd3['type']||'formatInline'==_0x3a1fd3['type'])&&('imageStylePreApply'==_0x3a1fd3['subType']||'imageStylePostApply'==_0x3a1fd3['subType'])&&_0x3a1fd3['getFirstRange']()['isEqual'](_0x4a1471))['forEach'](_0x5d8c11=>_0x23a666['discardSuggestion'](_0x5d8c11['head'])),_0x584680=_0x1d5a64['getClosestSelectedImageElement'](_0x3a0b7a['model']['document']['selection']),_0x4a1471=_0x3a0b7a['model']['createRangeOn'](_0x584680),_0x36c222['refresh'](),_0x3a0b7a['commands']['get']('imageTypeInline')['refresh'](),_0x3a0b7a['commands']['get']('imageTypeBlock')['refresh'](),_0x5d8b1a=_0x36c222['value'],_0x5d8b1a!=_0x3c59f6['value'])return _0x1d5a64['isInlineImage'](_0x584680)&&_0x36c222['shouldConvertImageType'](_0x3c59f6['value'],_0x584680)?(_0x5190a9({..._0x3c59f6,'setImageSizes':!0x1}),_0x584680=_0x1d5a64['getClosestSelectedImageElement'](_0x3a0b7a['model']['document']['selection']),void _0x23a666['markBlockFormat'](_0x584680,{..._0x16d030,'commandReversedParams':[{'value':_0x5d8b1a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1d5a64['isBlockImage'](_0x584680)?_0x23a666['markBlockFormat'](_0x584680,_0x16d030,[],'imageStylePostApply'):_0x23a666['markInlineFormat'](_0x4a1471,_0x16d030,'imageStylePostApply'));});});for(const _0x40b0a0 of _0x3a0b7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x65dfde[_0x40b0a0['name']]=_0x40b0a0['title']['toLowerCase']();_0x23a666['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x23a666['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x23a666['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x23a666['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x26a9bd])=>{_0x1d5a64['setImageNaturalSizeAttributes'](_0x26a9bd['getContainedElement']());}),_0x23a666['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x522b76,_0x2bc3db)=>{_0x23a666['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x522b76,{'commandName':_0x2bc3db['commandName'],'commandParams':_0x2bc3db['commandReversedParams']});}),_0x23a666['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x40e252,_0x36ef05){if(_0x71081b(_0x40e252,_0x36ef05))return[_0x40e252,_0x36ef05];if(_0x71081b(_0x36ef05,_0x40e252))return[_0x36ef05,_0x40e252];return null;});const _0x4395d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x71081b(_0x41b2ee,_0x526a37){const _0x40425c=_0x4395d0['findIndex'](({type:_0x510a4c,subType:_0x393e52})=>_0x41b2ee['type']==_0x510a4c&&_0x41b2ee['subType']==_0x393e52),_0x14ce11=_0x4395d0['findIndex'](({type:_0x375b93,subType:_0x3876d7})=>_0x526a37['type']==_0x375b93&&_0x526a37['subType']==_0x3876d7);if(_0x40425c<0x0||_0x14ce11<0x0)return!0x1;const _0x1ff71e=_0x41b2ee['getFirstRange'](),_0xaaeeeb=_0x526a37['getFirstRange']();if((0x0==_0x40425c||0x1==_0x40425c)&&0x2==_0x14ce11&&_0x1ff71e['isIntersecting'](_0xaaeeeb))return!0x0;if(0x2==_0x40425c&&0x3==_0x14ce11){const _0x134295=_0x23a666['_findSuggestions'](_0x1ff71e,'insertion')['filter'](({suggestion:_0x5ab322,meta:_0x2536cf})=>_0x2536cf['isOwn']&&'convertInlineImageToBlock'==_0x5ab322['subType']);if(_0x134295['length']>0x1&&_0xaaeeeb['end']['isEqual'](_0x1ff71e['start']))return!0x0;if(0x1==_0x134295['length']&&(_0x1ff71e['start']['isEqual'](_0xaaeeeb['end'])||_0x1ff71e['end']['isEqual'](_0xaaeeeb['start'])))return!0x0;}if(0x3==_0x40425c&&0x3==_0x14ce11&&_0x1ff71e['start']['isBefore'](_0xaaeeeb['start'])){const _0x422931=_0x1ff71e['end']['nodeAfter'],_0x50f47a=_0xaaeeeb['start']['nodeBefore'];return _0x1d5a64['isBlockImage'](_0x422931)&&_0x422931===_0x50f47a;}return!0x1;}_0x3a0b7a['model']['document']['registerPostFixer'](()=>{let _0x48b796=!0x1;const _0x22c1a0=Array['from'](_0x3a0b7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17c745,data:_0x3d76be}of _0x22c1a0){const {group:_0x7b5af5,type:_0x169986,subType:_0x11bba3,id:_0xe1427}=_0x23a666['_splitMarkerName'](_0x17c745);if('suggestion'==_0x7b5af5&&_0x23a666['hasSuggestion'](_0xe1427)){if('formatBlock'==_0x169986&&('imageStylePreApply'==_0x11bba3||'imageStylePostApply'==_0x11bba3)){const _0x4760cb=_0x23a666['getSuggestion'](_0xe1427);if(_0x3d76be['newRange']){const _0x2cbbf1=_0x4760cb['getFirstRange']()['getContainedElement']();if(_0x1d5a64['isBlockImage'](_0x2cbbf1))continue;_0x23a666['discardSuggestion'](_0x4760cb),_0x48b796=!0x0;}}if('insertion'==_0x169986&&'imageCaption'==_0x11bba3&&!_0x3d76be['newRange']){const _0x52688c=_0x23a666['getSuggestion'](_0xe1427);_0x52688c['next']&&_0x52688c['next']['isInContent']&&(_0x23a666['discardSuggestion'](_0x52688c['next']),_0x48b796=!0x0);}}}return _0x48b796;}),this['_registerLegacyDescription'](_0x65dfde);}['_registerLegacyDescription'](_0xf4ac23){const _0x2cc4b7=this['editor'],_0x15f084=_0x2cc4b7['locale'];_0x2cc4b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa66862=>{if('formatBlock'!=_0xa66862['type']&&'formatInline'!=_0xa66862['type'])return;const {data:_0x1c8851}=_0xa66862;if(!_0x1c8851||'imageStyle'!=_0x1c8851['commandName'])return;const _0x2fad01=_0x1c8851['commandParams'][0x0]['value'];return _0x1e5af1('side'===_0x2fad01?o(_0x15f084,'FORMAT_SIDE_IMAGE'):_0xf4ac23[_0x2fad01]||_0x2fad01);function _0x1e5af1(_0x593c19){return{'type':'format','content':o(_0x15f084,'*Format:*\x20%0',_0x593c19)};}});}}class ot extends _0x5be52d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x881981){super(_0x881981),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33ee42=this['editor'],_0x167522=_0x33ee42['commands']['get']('importWord'),_0x2c05af=_0x33ee42['commands']['get']('trackChanges');_0x167522&&(_0x167522['on']('execute',(_0x595cf4,[,_0x5420c1])=>{this['_trackChangesValueDuringImport']=_0x2c05af['value'],_0x5420c1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x167522,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x167522,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c05af['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33ee42['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e9236,_0x5a4b4e){const {suggestions:_0x30e06f}=_0x5a4b4e,_0x3d37b4=this['editor']['commands']['get']('trackChanges'),_0x3b6f77=_0x3d37b4['value'];this['_trackChangesValueDuringImport']!==_0x3b6f77&&(_0x3d37b4['execute'](),this['_trackChangesExecuted']=!0x0),_0x30e06f&&_0x30e06f['forEach'](({id:_0x404e97,type:_0xc0b84d,author:_0x36b038,created_at:_0x447d3c})=>{const _0x394f62={'id':_0x404e97,'type':_0xc0b84d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x36b038,'createdAt':_0x447d3c?new Date(_0x447d3c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x394f62);});}}class rt extends _0x5be52d{['afterInit'](){const _0x235974=this['editor'],_0x2f19d0=_0x235974['plugins']['get']('TrackChangesEditing');if(_0x235974['plugins']['has']('IndentEditing')&&(_0x2f19d0['enableCommand']('indent'),_0x2f19d0['enableCommand']('outdent')),_0x235974['plugins']['has']('IndentBlock')){for(const _0x19b30d of['indentBlock','outdentBlock'])_0x2f19d0['enableDefaultAttributesIntegration'](_0x19b30d);}const _0x55cec0=_0x235974['locale'];_0x2f19d0['registerBlockAttribute']('blockIndent'),_0x2f19d0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55cec0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3585fe=this['editor'],_0x543c3c=_0x3585fe['locale'],_0x137d15=_0x3585fe['plugins']['get']('TrackChangesEditing');_0x137d15['descriptionFactory']['registerDescriptionCallback'](_0x3538aa=>{if('formatBlock'!=_0x3538aa['type'])return;const {data:_0xdf7c3}=_0x3538aa;if(!_0xdf7c3)return;if('indentBlock'!=_0xdf7c3['commandName']&&'outdentBlock'!=_0xdf7c3['commandName'])return;const _0x55cc1a=_0x3538aa['getItems']()[0x0],_0x90863c=_0x137d15['descriptionFactory']['getItemLabel'](_0x55cc1a);return'indentBlock'==_0xdf7c3['commandName']?{'type':'format','content':o(_0x543c3c,'*Indent:*\x20%0',_0x90863c)}:'outdentBlock'==_0xdf7c3['commandName']?{'type':'format','content':o(_0x543c3c,'*Outdent:*\x20%0',_0x90863c)}:void 0x0;});}}class at extends _0x5be52d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5be52d{['afterInit'](){const _0x88150c=this['editor'];if(!_0x88150c['plugins']['has']('LinkEditing'))return;const _0x44c6f0=_0x88150c['plugins']['get']('TrackChangesEditing'),_0x2b7696=_0x88150c['commands']['get']('link');_0x44c6f0['enableDefaultAttributesIntegration']('link'),_0x44c6f0['enableDefaultAttributesIntegration']('unlink'),_0x44c6f0['registerInlineAttribute']('linkHref');for(const _0x10ce96 of _0x2b7696['manualDecorators'])_0x44c6f0['registerInlineAttribute'](_0x10ce96['id']),_0x44c6f0['descriptionFactory']['registerAttributeLabel'](_0x10ce96['id'],'link\x20('+_0x10ce96['label']['toLowerCase']()+')');_0x44c6f0['descriptionFactory']['registerDescriptionCallback'](_0x1b0191=>{if('attribute'!=_0x1b0191['type'])return;const {data:_0x414335}=_0x1b0191;if(!_0x414335||'linkHref'!=_0x414335['key'])return;const _0x35c91d=_0x414335['newValue'],_0x494a4e=_0x88150c['locale'];return{'type':'format','content':null==_0x35c91d?o(_0x494a4e,'*Remove\x20link*'):o(_0x494a4e,'*Set\x20link:*\x20%0','\x22'+_0x35c91d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f0a9d=this['editor'],_0x2f92c0=_0x5f0a9d['locale'];_0x5f0a9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39997e=>{if('formatInline'!=_0x39997e['type'])return;const {data:_0x363a00}=_0x39997e;if(_0x363a00){if('link'==_0x363a00['commandName']){const _0x329b1f=_0x363a00['commandParams'][0x0];return{'type':'format','content':o(_0x2f92c0,'*Set\x20link:*\x20%0','\x22'+_0x329b1f+'\x22')};}return'unlink'==_0x363a00['commandName']?{'type':'format','content':o(_0x2f92c0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5be52d{['afterInit'](){const _0x4bd859=this['editor'],_0x3c86a9=_0x4bd859['locale'];if(!_0x4bd859['plugins']['has']('LegacyListEditing'))return;const _0x5ca050=_0x4bd859['plugins']['get']('TrackChangesEditing'),_0x28bc3c=_0x4bd859['plugins']['has']('LegacyTodoListEditing');function _0x13fa63(_0x3938fb){return()=>{const _0x222e17=_0x4bd859['model']['document']['selection'],_0x1d1351=_0x4bd859['commands']['get'](_0x3938fb);if(_0x1d1351['value'])return void _0x4bd859['execute']('paragraph',{});const _0x1503f4=_0x3938fb['slice'](0x0,-0x4),_0xee97c0=function(_0x8a1fac,_0x1a62fb,_0x2bd5e8){let _0xb04019=Array['from'](_0x8a1fac)['filter'](_0x175fdd=>function(_0x42dba0,_0x35320a){return _0x35320a['checkChild'](_0x42dba0['parent'],'listItem')&&!_0x35320a['isObject'](_0x42dba0);}(_0x175fdd,_0x2bd5e8));_0xb04019=_0xb04019['filter'](_0x2a622f=>!_0x2a622f['is']('element','listItem')||_0x2a622f['getAttribute']('listType')!=_0x1a62fb);const _0x3ed061=new Set();for(const _0x18aff3 of _0xb04019)_0x18aff3['is']('element','listItem')?_0x3ed061['add'](me(_0x18aff3)):_0x3ed061['add'](_0x18aff3);return Array['from'](_0x3ed061);}(_0x222e17['getSelectedBlocks'](),_0x1503f4,_0x4bd859['model']['schema']);_0x4bd859['model']['change'](()=>{for(const _0x30d874 of _0xee97c0)_0x5ca050['markBlockFormat'](_0x30d874,{'commandName':_0x3938fb,'commandParams':[{'forceValue':!_0x1d1351['value']}],'formatGroupId':'blockName'},fe(_0x30d874));});};}function _0x2bcc2b(_0x595b4d){return()=>{const _0x2d0d3b=function(_0x125726){let _0x377b62=Array['from'](_0x125726);const _0x44e602=_0x377b62['findIndex'](_0x255826=>'listItem'!=_0x255826['name']);return _0x44e602>-0x1&&(_0x377b62=_0x377b62['slice'](0x0,_0x44e602)),_0x377b62;}(_0x4bd859['model']['document']['selection']['getSelectedBlocks']()),_0x314237=_0x4bd859['model']['createRange'](_0x4bd859['model']['createPositionAt'](_0x2d0d3b[0x0],'before'),_0x4bd859['model']['createPositionAt'](_0x2d0d3b[_0x2d0d3b['length']-0x1],'end'));_0x4bd859['model']['change'](()=>{_0x5ca050['markBlockFormat'](_0x314237,{'commandName':_0x595b4d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x55ed6a){const _0x31f387=new Set();for(const _0x126576 of _0x55ed6a){let _0x5814cf=_0x126576['nextSibling'];for(;_0x5814cf&&_0x5814cf['getAttribute']('listIndent')>_0x126576['getAttribute']('listIndent');)_0x31f387['add'](_0x5814cf),_0x5814cf=_0x5814cf['nextSibling'];}return Array['from'](_0x31f387);}(_0x2d0d3b));});};}_0x5ca050['enableCommand']('numberedList',_0x13fa63('numberedList')),_0x5ca050['enableCommand']('bulletedList',_0x13fa63('bulletedList')),_0x28bc3c&&_0x5ca050['enableCommand']('todoList',_0x13fa63('todoList')),_0x5ca050['enableCommand']('indentList',_0x2bcc2b('indentList')),_0x5ca050['enableCommand']('outdentList',_0x2bcc2b('outdentList')),_0x28bc3c&&_0x5ca050['enableCommand']('checkTodoList',()=>{const _0x116e9d=_0x4bd859['commands']['get']('checkTodoList'),_0x2f8072=Array['from'](_0x116e9d['_selectedElements']);_0x2f8072['filter'](_0x4a7386=>_0x4a7386['getAttribute']('todoListChecked')!=_0x116e9d['value']),_0x4bd859['model']['change'](()=>{for(const _0x5af9cb of _0x2f8072)_0x5ca050['markBlockFormat'](_0x5af9cb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x116e9d['value']}]});});}),_0x5ca050['descriptionFactory']['registerElementLabel']('listItem',_0x1ece25=>o(_0x3c86a9,'ELEMENT_LIST_ITEM',_0x1ece25)),_0x5ca050['descriptionFactory']['registerDescriptionCallback'](_0x1f8bbf=>{if('formatBlock'!=_0x1f8bbf['type']&&'formatInline'!=_0x1f8bbf['type'])return;const {data:_0x23b6a1}=_0x1f8bbf;if(_0x23b6a1){if('numberedList'==_0x23b6a1['commandName']||'bulletedList'==_0x23b6a1['commandName']||'todoList'==_0x23b6a1['commandName'])switch(_0x23b6a1['commandName']['replace']('List','')){case'bulleted':return _0x59f9ee(o(_0x3c86a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59f9ee(o(_0x3c86a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59f9ee(o(_0x3c86a9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23b6a1['commandName'])return{'type':'format','content':o(_0x3c86a9,'*Indent:*\x20%0',o(_0x3c86a9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23b6a1['commandName'])return{'type':'format','content':o(_0x3c86a9,'*Outdent:*\x20%0',o(_0x3c86a9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23b6a1['commandName'])return _0x23b6a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c86a9,'*Check\x20item*')}:{'type':'format','content':o(_0x3c86a9,'*Uncheck\x20item*')};}function _0x59f9ee(_0x555e5e){return{'type':'format','content':o(_0x3c86a9,'*Change\x20to:*\x20%0',_0x555e5e)};}});}}function me(_0x4effc1){const _0x419f5e=_0x4effc1['getAttribute']('listIndent');if(0x0==_0x419f5e)return _0x4effc1;let _0x10f3ac=_0x4effc1;for(;_0x4effc1['previousSibling']&&_0x4effc1['previousSibling']['is']('element','listItem');){const _0x547a54=_0x4effc1['previousSibling']['getAttribute']('listIndent');if(_0x547a54==_0x419f5e)_0x10f3ac=_0x4effc1['previousSibling'];else{if(_0x547a54<_0x419f5e)break;}_0x4effc1=_0x4effc1['previousSibling'];}return _0x10f3ac;}function fe(_0xc201a8){const _0x5bbc2e=[];if(_0xc201a8['is']('element','listItem')&&_0xc201a8['getAttribute']('listIndent')>0x0){let _0x377f64=_0xc201a8['nextSibling'];for(;_0x377f64&&'listItem'==_0x377f64['name']&&_0x377f64['getAttribute']('listIndent')==_0xc201a8['getAttribute']('listIndent');)_0x5bbc2e['push'](_0x377f64),_0x377f64=_0x377f64['nextSibling'];}return _0x5bbc2e;}class K extends _0x5be52d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x249648=this['editor']['config']['get']('list.properties'),_0x36d2f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x249648['styles']&&_0x36d2f3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x249648['reversed']&&_0x36d2f3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x249648['startIndex']&&_0x36d2f3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x36d2f3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x48a280,_0x38f119={}){const _0x1e6298=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36771c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e6298['markMultiRangeBlockFormat'](_0x36771c,{'commandName':'listStyle','commandParams':[{'type':_0x38f119['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x65f8d2,_0x275f6a={}){const _0x5be527=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51be45=this['_getSuggestionBlocks'](_0x5b0996=>_0x5b0996['is']('element','listItem')&&'numbered'===_0x5b0996['getAttribute']('listType'));if(_0x51be45['length']<0x1)return;const _0x490903=_0x51be45['map'](_0x53dba5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53dba5,'before'),this['editor']['model']['createPositionAt'](_0x53dba5,0x0)));this['editor']['model']['change'](()=>{_0x5be527['markMultiRangeBlockFormat'](_0x490903,{'commandName':'listReversed','commandParams':[{'reversed':_0x275f6a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x31bb2d,_0x5f276f={}){const _0x4656a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f0c4e=this['_getSuggestionBlocks'](_0x30275a=>_0x30275a['is']('element','listItem')&&'numbered'===_0x30275a['getAttribute']('listType'));if(_0x2f0c4e['length']<0x1)return;const _0x58f624=_0x2f0c4e['map'](_0x13cd37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13cd37,'before'),this['editor']['model']['createPositionAt'](_0x13cd37,0x0)));this['editor']['model']['change'](()=>{_0x4656a2['markMultiRangeBlockFormat'](_0x58f624,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f276f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x46b857){if('formatBlock'!=_0x46b857['type']&&'formatInline'!=_0x46b857['type'])return;const _0x4d6ad3=this['editor']['locale'],{data:_0x399b6c}=_0x46b857;if(!_0x399b6c)return;let _0x390ce8,_0x43ad6b;switch(_0x399b6c['commandName']){case'listStyle':_0x390ce8='*Change\x20to:*\x20%0',_0x43ad6b={'type':'format','content':o(_0x4d6ad3,_0x390ce8,o(_0x4d6ad3,this['_getTranslationKeyForListStyle'](_0x399b6c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x390ce8=_0x399b6c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43ad6b={'type':'format','content':o(_0x4d6ad3,_0x390ce8)};break;case'listStart':_0x390ce8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43ad6b={'type':'format','content':o(_0x4d6ad3,_0x390ce8,_0x399b6c['commandParams'][0x0]['startIndex'])};}return _0x43ad6b;}['_getSuggestionBlocksForListStyle'](){const _0x29c09a=this['editor']['plugins']['get']('LegacyListUtils');let _0x42eeaa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x42eeaa[0x0]?.['is']('element','listItem')&&_0x42eeaa['unshift'](..._0x29c09a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x42eeaa[_0x42eeaa['length']-0x1]?.['is']('element','listItem')&&_0x42eeaa['push'](..._0x29c09a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x42eeaa=[...new Set(_0x42eeaa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x42eeaa=_0x42eeaa['filter'](_0x30ab70=>_0x30ab70['is']('element','listItem'))),_0x42eeaa;}['_getSuggestionBlocks'](_0x4d932a){const _0x394492=this['editor']['plugins']['get']('LegacyListUtils');let _0x1da7ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d932a)['map'](_0x22bbc4=>{const _0xb2c401=this['editor']['model']['createPositionAt'](_0x22bbc4,0x0);return[..._0x394492['getSiblingNodes'](_0xb2c401,'backward'),..._0x394492['getSiblingNodes'](_0xb2c401,'forward')];})['flat']();return _0x1da7ff=[...new Set(_0x1da7ff)],_0x1da7ff;}['_getTranslationKeyForListStyle'](_0xdc546e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xdc546e)||'default')['toUpperCase']()+'_LIST_'+_0xdc546e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5be52d{['afterInit'](){const _0xae8bc8=this['editor'];if(!_0xae8bc8['plugins']['has']('MediaEmbedEditing'))return;const _0x206296=_0xae8bc8['plugins']['get']('TrackChangesEditing'),_0x1bbca2=_0xae8bc8['locale'];_0x206296['enableCommand']('mediaEmbed'),_0x206296['descriptionFactory']['registerElementLabel']('media',_0x5bed44=>o(_0x1bbca2,'ELEMENT_MEDIA',_0x5bed44)),_0xae8bc8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3756f0,{writer:_0x57ba66,options:_0x52c604})=>{if(_0x52c604['showSuggestionHighlights'])return _0x57ba66['createEmptyElement']('div');},'converterPriority':'high'}),_0xae8bc8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1da5cc,_0x50d465,_0x415c38)=>{_0x415c38['options']['showSuggestionHighlights']&&_0x1da5cc['stop']();},{'priority':'high'});}}class gt extends _0x5be52d{['afterInit'](){const _0x58ede9=this['editor'];_0x58ede9['plugins']['has']('MentionEditing')&&_0x58ede9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5be52d{['afterInit'](){const _0x3ea9d4=this['editor'],_0x243831=_0x3ea9d4['plugins']['get']('TrackChangesEditing');_0x3ea9d4['plugins']['has']('MultiLevelList')&&(_0x243831['enableDefaultAttributesIntegration']('multiLevelList'),_0x243831['registerBlockAttribute']('listMarkerStyle'),_0x243831['descriptionFactory']['registerDescriptionCallback'](_0x1499e5=>this['handleDescriptions'](_0x1499e5)));}['handleDescriptions'](_0x5cfa25){const _0x53f1e7=this['editor']['locale'],{data:_0x2c758a}=_0x5cfa25,_0x3cbb43={'type':'format','content':''};if(_0x2c758a&&'listMarkerStyle'==_0x2c758a['key']){if(!_0x2c758a['oldValue'])return{'type':'format','content':o(_0x53f1e7,'*Set\x20format:*\x20%0',o(_0x53f1e7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c758a['newValue']+')'};if(!_0x2c758a['newValue']){let _0x35d3d3=_0x5cfa25['head'];for(;_0x35d3d3;){if(_0x35d3d3['data']&&'listType'==_0x35d3d3['data']['key']&&_0x35d3d3['data']['newValue'])return _0x3cbb43;_0x35d3d3=_0x35d3d3['next'];}return{'type':'format','content':o(_0x53f1e7,'*Remove\x20format:*\x20%0',o(_0x53f1e7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c758a['oldValue']+')'};}}}}class mt extends _0x5be52d{['afterInit'](){const _0x5d4f2f=this['editor'];if(!_0x5d4f2f['plugins']['has']('PageBreakEditing'))return;_0x5d4f2f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x901302=_0x5d4f2f['plugins']['get']('TrackChangesEditing'),_0x2e31dd=_0x5d4f2f['locale'];_0x901302['descriptionFactory']['registerElementLabel']('pageBreak',_0x29cc37=>o(_0x2e31dd,'ELEMENT_PAGE_BREAK',_0x29cc37));}}class dt extends _0x5be52d{['afterInit'](){const _0x3ed77e=this['editor'];if(!_0x3ed77e['plugins']['has']('Paragraph'))return;const _0x3fec36=_0x3ed77e['locale'],_0x2a1713=_0x3ed77e['plugins']['get']('TrackChangesEditing');_0x2a1713['descriptionFactory']['registerElementLabel']('paragraph',_0x518e81=>o(_0x3fec36,'ELEMENT_PARAGRAPH',_0x518e81)),_0x2a1713['enableDefaultAttributesIntegration']('paragraph'),_0x2a1713['enableCommand']('insertParagraph'),_0x3ed77e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3ed77e),{'priority':'highest'}),_0x3ed77e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xae1331,_0x47f027,_0x3574d5)=>{_0x3574d5['options']['showSuggestionHighlights']&&nr(_0x3ed77e,{'showActiveMarker':!0x1})(_0xae1331,_0x47f027,_0x3574d5);},{'priority':'highest'});const _0x15f8c3=_0x2a1713['descriptionFactory'];_0x15f8c3['registerDescriptionCallback'](_0x53dea9=>{if('insertion'!==_0x53dea9['type'])return;const {start:_0x43bca1,end:_0x37dab0}=_0x53dea9['getFirstRange']();if(!_0x43bca1['isTouching'](_0x37dab0)||!_0x43bca1['nodeAfter'])return;const _0x30b6f8=_0x3ed77e['model']['schema'],_0x281a5f=_0x43bca1['nodeAfter'];return _0x30b6f8['isBlock'](_0x281a5f)&&!_0x30b6f8['isLimit'](_0x281a5f)&&_0x30b6f8['checkChild'](_0x281a5f,'$text')?{'type':'insertion','content':o(_0x3fec36,'*Insert:*\x20%0',_0x15f8c3['getItemLabel'](_0x281a5f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4438c7=this['editor'],_0x4e1a57=_0x4438c7['locale'];_0x4438c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cfd85=>{if('formatBlock'!=_0x4cfd85['type'])return;const {data:_0x54f081}=_0x4cfd85;return _0x54f081&&'paragraph'==_0x54f081['commandName']?{'type':'format','content':o(_0x4e1a57,'*Change\x20to:*\x20%0',o(_0x4e1a57,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4c1246,{showActiveMarker:_0x37226e=!0x0}={}){return(_0x3210bb,_0x15a54b,_0x23fbb9)=>{const _0x2819c3=_0x4c1246['plugins']['get']('TrackChangesEditing'),_0xb07a83=_0x15a54b['markerRange']['start'],_0x1416c5=_0x15a54b['markerRange']['end'],_0x9f73c8=_0x4c1246['model']['schema'];if(!_0xb07a83['isTouching'](_0x1416c5)||!_0xb07a83['nodeAfter'])return;const _0x4dd3e2=_0xb07a83['nodeAfter'];if(_0x9f73c8['isBlock'](_0x4dd3e2)&&!_0x9f73c8['isLimit'](_0x4dd3e2)&&_0x9f73c8['checkChild'](_0x4dd3e2,'$text')){if(!_0x23fbb9['consumable']['consume'](_0x15a54b['markerRange'],_0x3210bb['name']))return;const _0x124744=_0x23fbb9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18d476=_0x23fbb9['mapper']['toViewPosition'](_0x1416c5);_0x37226e&&_0x2819c3['activeMarkers']['includes'](_0x15a54b['markerName'])&&_0x23fbb9['writer']['addClass']('ck-suggestion-marker--active',_0x124744),_0x23fbb9['writer']['insert'](_0x18d476,_0x124744),_0x23fbb9['mapper']['bindElementToMarker'](_0x124744,_0x15a54b['markerName']);}};}class pt extends _0x5be52d{['afterInit'](){const _0x206bbe=this['editor'];if(!_0x206bbe['plugins']['has']('RemoveFormatEditing'))return;_0x206bbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f8db=this['editor'];_0x50f8db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x82969=>{if('formatBlock'!=_0x82969['type']&&'formatInline'!=_0x82969['type'])return;const {data:_0x1c90d1}=_0x82969;return _0x1c90d1&&'removeFormat'==_0x1c90d1['commandName']?{'type':'format','content':o(_0x50f8db['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5be52d{['afterInit'](){const _0x3dd12a=this['editor'];if(!_0x3dd12a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xf673aa=_0x3dd12a['plugins']['get']('TrackChangesEditing');_0xf673aa['enableCommand']('goToPreviousRestrictedEditingException'),_0xf673aa['enableCommand']('goToNextRestrictedEditingException');const _0x1394f8=_0x3dd12a['plugins']['get']('RestrictedEditingModeEditing');_0x1394f8['enableCommand']('trackChanges'),_0x1394f8['enableCommand']('acceptSuggestion'),_0x1394f8['enableCommand']('discardSuggestion'),_0x1394f8['enableCommand']('acceptAllSuggestions'),_0x1394f8['enableCommand']('discardAllSuggestions'),_0x1394f8['enableCommand']('acceptSelectedSuggestions'),_0x1394f8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5be52d{static get['requires'](){return[_0x23328d];}['init'](){const _0x3fb3ef=this['editor'],_0x3f7e03=_0x3fb3ef['plugins']['get']('TrackChangesEditing');_0x3f7e03['enableCommand']('shiftEnter'),_0x3fb3ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3fb3ef),{'priority':'high'}),_0x3fb3ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3fb3ef),{'priority':'high'}),_0x3fb3ef['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb0d4d4,_0x353765,_0xc1c142)=>{_0xc1c142['options']['showSuggestionHighlights']&&de(_0x3fb3ef,{'showActiveMarker':!0x1})(_0xb0d4d4,_0x353765,_0xc1c142);}),_0x3f7e03['descriptionFactory']['registerElementLabel']('softBreak',_0x1716a1=>o(_0x3fb3ef['locale'],'ELEMENT_LINE_BREAK',_0x1716a1));}}function de(_0x5ba3a9,{showActiveMarker:_0x49650c=!0x0}={}){return(_0x322ce4,_0x44647e,_0xa6fd9)=>{const _0x2e543d=_0x5ba3a9['plugins']['get']('TrackChangesEditing');if(!_0xa6fd9['consumable']['test'](_0x44647e['markerRange'],_0x322ce4['name']))return;const _0x28eb80=_0x5ba3a9['model'];for(const _0x837741 of _0x44647e['markerRange']['getItems']()){if(!_0x837741['is']('element','softBreak'))continue;const _0x374c04='deletion'==_0x44647e['markerName']['split'](':')[0x1]?'merge':'split',_0x4a334a=_0xa6fd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x374c04}),_0x41dea9=_0xa6fd9['mapper']['toViewPosition'](_0x28eb80['createPositionBefore'](_0x837741));_0x49650c&&_0x2e543d['activeMarkers']['includes'](_0x44647e['markerName'])&&_0xa6fd9['writer']['addClass']('ck-suggestion-marker--active',_0x4a334a),_0xa6fd9['writer']['insert'](_0x41dea9,_0x4a334a),_0xa6fd9['mapper']['bindElementToMarker'](_0x4a334a,_0x44647e['markerName']);}};}class wt extends _0x5be52d{['afterInit'](){const _0x46177f=this['editor'],_0x2eba0e=_0x46177f['model'],_0x742895=_0x46177f['locale'];if(!_0x46177f['plugins']['has']('StandardEditingModeEditing'))return;const _0x127f22=_0x46177f['plugins']['get']('TrackChangesEditing'),_0x3ac04d='restrictedEditingException',_0x21ea56=_0x46177f['commands']['get'](_0x3ac04d);_0x127f22['enableCommand'](_0x3ac04d,(_0x10517a,_0x4e4877={})=>{const _0x85f63=_0x2eba0e['document']['selection'];if(_0x85f63['isCollapsed'])return void _0x10517a(_0x4e4877);const _0x1ba704=void 0x0!==_0x4e4877['forceValue']?_0x4e4877['forceValue']:!_0x21ea56['value'];_0x2eba0e['change'](()=>{const _0x3f031a=Array['from'](_0x85f63['getRanges']());for(const _0x23a159 of _0x3f031a){const _0x238c54=_0x1ba704?[_0x23a159]:io(_0x3ac04d,_0x23a159,_0x2eba0e);for(const _0x24186e of _0x238c54)_0x127f22['markInlineFormat'](_0x24186e,{'commandName':_0x3ac04d,'commandParams':[{'forceValue':_0x1ba704}]});}});}),_0x127f22['descriptionFactory']['registerDescriptionCallback'](_0x1be192=>{if('formatBlock'!=_0x1be192['type']&&'formatInline'!=_0x1be192['type'])return;const {data:_0xe8a546}=_0x1be192;return _0xe8a546&&_0xe8a546['commandName']==_0x3ac04d?_0xe8a546['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x742895,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x742895,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5be52d{['afterInit'](){const _0x4eb8fc=this['editor'];if(!_0x4eb8fc['plugins']['has']('Style')||!_0x4eb8fc['plugins']['has']('DataSchema'))return;const _0x322953=_0x4eb8fc['plugins']['get']('TrackChangesEditing'),_0x3915b1=_0x4eb8fc['locale'],_0x3d304e=_0x4eb8fc['config']['get']('style')||{},_0x14aea9=_0x4eb8fc['plugins']['get']('GeneralHtmlSupport'),_0x5a511b=_0x4eb8fc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4eb8fc['plugins']['get']('DataSchema'),_0x3d304e['definitions']);_0x322953['enableDefaultAttributesIntegration']('style');const _0x56729f=new Set();for(const _0x223bdb of _0x5a511b['block']){const _0x456fc0=_0x14aea9['getGhsAttributeNameForElement'](_0x223bdb['element']);_0x56729f['add'](_0x456fc0);}const _0xf3bca8=new Set();for(const _0x3df463 of _0x5a511b['inline']){const _0x50bf4c=_0x14aea9['getGhsAttributeNameForElement'](_0x3df463['element']);_0xf3bca8['add'](_0x50bf4c);for(const _0x137008 of _0x3df463['ghsAttributes'])_0xf3bca8['add'](_0x137008);}for(const _0x182f58 of _0x56729f)_0x322953['registerBlockAttribute'](_0x182f58),_0x322953['descriptionFactory']['registerAttributeLabel'](_0x182f58,o(_0x3915b1,'FORMAT_STYLE'));for(const _0xde0cbc of _0xf3bca8)_0x322953['registerInlineAttribute'](_0xde0cbc),_0x322953['descriptionFactory']['registerAttributeLabel'](_0xde0cbc,o(_0x3915b1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x496230=this['editor'],_0x12138e=_0x496230['locale'];_0x496230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445a69=>{if('formatBlock'!=_0x445a69['type']&&'formatInline'!=_0x445a69['type'])return;const {data:_0x531d5f}=_0x445a69;return _0x531d5f&&'style'===_0x531d5f['commandName']?_0x531d5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12138e,'*Set\x20format:*\x20%0',_0x531d5f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x12138e,'*Remove\x20format:*\x20%0',_0x531d5f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5be52d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x45a731){super(_0x45a731),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17fbae=this['editor'],_0x3b13c1=_0x17fbae['model']['document']['selection'];if(!_0x17fbae['plugins']['has']('TableEditing'))return;const _0x36250f=_0x17fbae['locale'],_0x5d977c=_0x17fbae['plugins']['get']('TrackChangesEditing'),_0x4bbc70=_0x17fbae['plugins']['get']('TableUtils');_0x5d977c['descriptionFactory']['registerElementLabel']('table',_0x2d9681=>o(_0x36250f,'ELEMENT_TABLE',_0x2d9681)),this['_setupColumnsRowsFixing'](),_0x5d977c['enableCommand']('insertTable'),_0x5d977c['enableCommand']('selectTableRow'),_0x5d977c['enableCommand']('selectTableColumn');for(const _0x39fe0a of['insertTableRowAbove','insertTableRowBelow']){const _0x67010a=_0x17fbae['commands']['get'](_0x39fe0a);_0x5d977c['enableCommand'](_0x39fe0a,_0x40d6b9=>{_0x17fbae['model']['change'](_0x2f5e91=>{_0x40d6b9();const _0x3bea09='above'===_0x67010a['order'],_0x4899b5=_0x4bbc70['getSelectionAffectedTableCells'](_0x3b13c1),_0x2525ec=_0x4bbc70['getRowIndexes'](_0x4899b5),_0x1a13cd=_0x3bea09?_0x2525ec['first']-0x1:_0x2525ec['last']+0x1,_0x36cd3c=_0x4899b5[0x0]['findAncestor']('table'),_0xb75f4e=_0x4bbc70['createTableWalker'](_0x36cd3c,{'startRow':_0x1a13cd,'endRow':_0x1a13cd}),_0x577cab=Array['from'](_0xb75f4e)['map'](_0xce2fd3=>_0x2f5e91['createRangeOn'](_0xce2fd3['cell']));_0x5d977c['markMultiRangeInsertion'](_0x577cab,'tableRow');});});}for(const _0x463f5a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d7c68=_0x17fbae['commands']['get'](_0x463f5a);_0x5d977c['enableCommand'](_0x463f5a,_0x2493ea=>{_0x17fbae['model']['change'](_0x38338c=>{_0x2493ea();const _0x1e23e8='left'===_0x4d7c68['order'],_0xba5d20=_0x4bbc70['getSelectionAffectedTableCells'](_0x3b13c1),_0x2a6009=_0x4bbc70['getColumnIndexes'](_0xba5d20),_0xb2fcce=_0x1e23e8?_0x2a6009['first']-0x1:_0x2a6009['last']+0x1,_0x240704=_0xba5d20[0x0]['findAncestor']('table'),_0x29aa19=_0x4bbc70['createTableWalker'](_0x240704,{'startRow':0x0,'column':_0xb2fcce,'includeAllSlots':!0x1}),_0x116ae3=Array['from'](_0x29aa19)['map'](_0x55dd74=>_0x38338c['createRangeOn'](_0x55dd74['cell']));_0x5d977c['markMultiRangeInsertion'](_0x116ae3,'tableColumn');});});}for(const _0x22c834 of['removeTableRow','removeTableColumn']){const _0x377fba=_0x22c834['substr'](0xb),_0x358f4a=_0x377fba['toLowerCase'](),_0x2da3df=_0x358f4a['substr'](0x0,0x3)+'span',_0x34c95e='table'+_0x377fba,_0x4a4901='min'+_0x377fba,_0x5beb7e='max'+_0x377fba;_0x5d977c['enableCommand'](_0x22c834,()=>{_0x17fbae['model']['change'](_0x5094ac=>{const _0xc03a8c=_0x4bbc70['getSelectionAffectedTableCells'](_0x3b13c1),_0x3349e5=_0xc03a8c[0x0]['findAncestor']('table');let _0x101aff;if('removeTableRow'==_0x22c834){const _0x5e9ddf=_0x4bbc70['getRowIndexes'](_0xc03a8c);_0x101aff={'startRow':_0x5e9ddf['first'],'endRow':_0x5e9ddf['last'],'includeAllSlots':!0x0};}else{const _0x43f1c0=_0x4bbc70['getColumnIndexes'](_0xc03a8c);_0x101aff={'startColumn':_0x43f1c0['first'],'endColumn':_0x43f1c0['last'],'includeAllSlots':!0x0};}const _0x30126b=_0x4bbc70['createTableWalker'](_0x3349e5,_0x101aff),_0x11fe38=Array['from'](_0x30126b)['map'](({cell:_0x2a78c1})=>_0x2a78c1),_0x32d007=Ee(_0x11fe38['filter'](_0x3b1599=>_0x3b1599['hasAttribute'](_0x2da3df))),_0x6f71df=Ee(_0x11fe38['filter'](_0x387197=>!_0x387197['hasAttribute'](_0x2da3df)))['map'](_0xabfc0f=>_0x5094ac['createRangeOn'](_0xabfc0f)),_0x1d1da8=_0x5d977c['markMultiRangeDeletion'](_0x6f71df,_0x34c95e);if(_0x1d1da8&&('tableRow'==_0x1d1da8['subType']||'tableColumn'==_0x1d1da8['subType'])){const _0x50f45c=this['_getSuggestionCoords'](_0x1d1da8);for(const _0x5c0edb of _0x32d007){const _0x10c1e2=_0x5094ac['createRangeOn'](_0x5c0edb),_0x236c5b=_0x4bbc70['getCellLocation'](_0x5c0edb),_0xba9f5c=_0x5c0edb['getAttribute'](_0x2da3df)-0x1,_0x56f5c9=_0x50f45c[_0x4a4901],_0x5be563=_0x50f45c[_0x5beb7e];_0x56f5c9<=_0x236c5b[_0x358f4a]&&_0x236c5b[_0x358f4a]+_0xba9f5c<=_0x5be563&&_0x1d1da8['addRange'](_0x10c1e2);}}});});}function _0x5e44a9(_0xe256c3){const _0x21ca01=Array['from'](_0x3b13c1['getRanges']())['map'](_0x50ebd1=>_0x190d08['fromRange'](_0x50ebd1));_0x17fbae['model']['change'](_0x562743=>{const _0x1a0ccd=_0x562743['batch'];_0xe256c3=_0xe256c3['filter'](_0x27d16c=>'$graveyard'!=_0x27d16c['root']['rootName']),_0x562743['setSelection'](_0xe256c3),_0x17fbae['commands']['get']('removeTableRow')['refresh'](),_0x17fbae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17fbae['model']['enqueueChange'](()=>{_0x17fbae['model']['enqueueChange'](_0x1a0ccd,_0x57ee27=>{const _0x15099f=_0x21ca01['filter'](_0x35c356=>'$graveyard'!=_0x35c356['root']['rootName']);_0x15099f['length']>0x0&&_0x57ee27['setSelection'](_0x15099f);for(const _0x518c22 of _0x21ca01)_0x518c22['detach']();});});});}function _0x2aaa39(_0x201972){_0x17fbae['model']['change'](_0x546fd7=>{const _0x5c3f3c=Array['from'](_0x3b13c1['getRanges']())['map'](_0x1f5a37=>_0x190d08['fromRange'](_0x1f5a37)),_0x4a4b5b=[];for(const _0xfe6b20 of _0x201972)for(const _0x59dc54 of _0xfe6b20['getItems']({'shallow':!0x0}))_0x4a4b5b['push'](_0x59dc54);for(const _0x383541 of _0x4a4b5b)'$graveyard'!=_0x383541['root']['rootName']&&(_0x546fd7['setSelection'](_0x546fd7['createPositionAt'](_0x383541,0x0)),_0x17fbae['commands']['get']('removeTableColumn')['refresh'](),_0x17fbae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3b1dae=_0x5c3f3c['filter'](_0x420695=>'$graveyard'!=_0x420695['root']['rootName']);_0x3b1dae['length']>0x0&&_0x546fd7['setSelection'](_0x3b1dae);for(const _0x217f12 of _0x5c3f3c)_0x217f12['detach']();});}function _0x4ee9d8(_0x2b3050,_0xec9fcb){return _0xec9fcb['every'](_0x5bfd88=>_0x2b3050['some'](_0x3f7c70=>_0x3f7c70['end']['isEqual'](_0x5bfd88['start'])||_0x5bfd88['end']['isEqual'](_0x3f7c70['start'])));}function _0x24f2d2(_0x3b7747,_0x948254){return _0x3b7747['some'](_0x3025f5=>_0x948254['some'](_0x44ead0=>_0x3025f5['end']['isTouching'](_0x44ead0['start'])));}_0x17fbae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b1601,_0x6f3fa,_0x329ea9)=>{if(!_0x329ea9['options']['showSuggestionHighlights'])return;const _0x41f6c8=_0x6f3fa['item'];if(!_0x41f6c8)return;const _0x10ab0a=_0x329ea9['mapper']['toViewElement'](_0x41f6c8);function _0x266742(_0x52d87f){return Array['isArray'](_0x52d87f)?_0x52d87f:[_0x52d87f];}_0x10ab0a&&'tableCell'===_0x41f6c8['name']&&_0x53fa82(_0x10ab0a,_0x329ea9['writer'],(_0x2ed228,_0x3b450f,_0x48538b)=>_0x48538b['addClass'](_0x266742(_0x3b450f['classes']),_0x2ed228),(_0x1541eb,_0x468681,_0x47be89)=>_0x47be89['removeClass'](_0x266742(_0x468681['classes']),_0x1541eb));},{'priority':'highest'}),_0x5d977c['descriptionFactory']['registerDescriptionCallback'](_0x44558e=>{if('insertion'!=_0x44558e['type']&&'deletion'!=_0x44558e['type'])return;const _0x2cc0f9=_0x44558e['getContainedElement']();if(null!=_0x2cc0f9&&_0x2cc0f9['is']('element','table')){if('insertion'==_0x44558e['type']){const _0x4a3f7b=_0x44558e['getItems']()['filter'](_0x12b216=>_0x12b216['is']('$textProxy'))['map'](_0x4feb51=>_0x4feb51['data']);if(_0x4a3f7b['length'])return{'type':'insertion','content':o(_0x36250f,'*Insert:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a3f7b['join']('\x20')+'\x22'))};}if('deletion'==_0x44558e['type']){const _0x326bae=_0x44558e['getItems']()['filter'](_0x38d994=>_0x38d994['is']('$textProxy'))['map'](_0x2a2dde=>_0x2a2dde['data']);if(_0x326bae['length'])return{'type':'deletion','content':o(_0x36250f,'*Remove:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x326bae['join']('\x20')+'\x22'))};}}}),_0x5d977c['descriptionFactory']['registerDescriptionCallback'](_0x2647b1=>{if('tableRow'==_0x2647b1['subType']){const _0x218c4a=_0x2647b1['getItems']()['filter'](_0x2772a2=>_0x2772a2['is']('$textProxy'))['map'](_0x175cc5=>_0x175cc5['data']),_0x54ee7c=this['_getSuggestionCoords'](_0x2647b1),_0x2165f8=_0x54ee7c['maxRow']-_0x54ee7c['minRow']+0x1;if('insertion'==_0x2647b1['type'])return _0x218c4a['length']?{'type':'insertion','content':o(_0x36250f,'*Insert:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2165f8,'\x22'+_0x218c4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36250f,'*Insert:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_ROW',_0x2165f8))};if('deletion'==_0x2647b1['type'])return _0x218c4a['length']?{'type':'deletion','content':o(_0x36250f,'*Remove:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2165f8,'\x22'+_0x218c4a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36250f,'*Remove:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_ROW',_0x2165f8))};}if('tableColumn'==_0x2647b1['subType']){const _0x19e330=_0x2647b1['getItems']()['filter'](_0x3495d7=>_0x3495d7['is']('$textProxy'))['map'](_0x396763=>_0x396763['data']),_0x2a5b27=this['_getSuggestionCoords'](_0x2647b1),_0x4ce78a=_0x2a5b27['maxColumn']-_0x2a5b27['minColumn']+0x1;if('insertion'==_0x2647b1['type'])return _0x19e330['length']?{'type':'insertion','content':o(_0x36250f,'*Insert:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ce78a,'\x22'+_0x19e330['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36250f,'*Insert:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_COLUMN',_0x4ce78a))};if('deletion'==_0x2647b1['type'])return _0x19e330['length']?{'type':'deletion','content':o(_0x36250f,'*Remove:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ce78a,'\x22'+_0x19e330['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36250f,'*Remove:*\x20%0',o(_0x36250f,'ELEMENT_TABLE_COLUMN',_0x4ce78a))};}}),_0x5d977c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e44a9),_0x5d977c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e44a9),_0x5d977c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2aaa39),_0x5d977c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2aaa39),_0x5d977c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ee9d8),_0x5d977c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ee9d8),_0x5d977c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x24f2d2),_0x5d977c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x24f2d2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1c1d3f=this['editor'],_0x4dd4e0=_0x1c1d3f['model']['document']['selection'];return(_0x26a2d1,_0x389505)=>{_0x1c1d3f['model']['change'](_0x34e4a8=>{const {commandName:_0x490436,commandParams:_0x50182d}=_0x389505;let _0x26fa3b=_0x26a2d1[0x0]['end']['nodeBefore'];_0x50182d&&_0x50182d[0x0]&&!0x1===_0x50182d[0x0]['forceValue']&&(_0x26fa3b=_0x26a2d1[0x0]['start']['nodeAfter']);const _0x3835e6=_0x34e4a8['createRangeIn'](_0x26fa3b);if('$graveyard'==_0x3835e6['root']['rootName'])return;const _0x4c3935=Array['from'](_0x4dd4e0['getRanges']())['map'](_0xf985d7=>_0x190d08['fromRange'](_0xf985d7));_0x34e4a8['setSelection'](_0x3835e6),_0x1c1d3f['commands']['get'](_0x490436)['refresh'](),_0x50182d['push']({'forceDefaultExecution':!0x0}),_0x1c1d3f['execute'](_0x490436,..._0x50182d);const _0x37121e=_0x4c3935['filter'](_0x48d5af=>'$graveyard'!=_0x48d5af['root']['rootName']);_0x37121e['length']>0x0&&_0x34e4a8['setSelection'](_0x37121e);for(const _0x5df783 of _0x4c3935)_0x5df783['detach']();});};}['_getCoordsForCells'](_0x168f81){const _0x52c75e=this['editor']['plugins']['get']('TableUtils');let _0x5114bc=Number['MAX_SAFE_INTEGER'],_0x267a08=Number['MIN_SAFE_INTEGER'],_0x5cc32c=Number['MAX_SAFE_INTEGER'],_0x29b883=Number['MIN_SAFE_INTEGER'];for(const _0x221657 of _0x168f81){if('$graveyard'==_0x221657['root']['rootName'])continue;const {row:_0x1c508d,column:_0x2dc2d9}=_0x52c75e['getCellLocation'](_0x221657),_0x43eb64=_0x221657['hasAttribute']('rowspan')?_0x221657['getAttribute']('rowspan')-0x1:0x0,_0x59ccb0=_0x221657['hasAttribute']('colspan')?_0x221657['getAttribute']('colspan')-0x1:0x0;_0x5114bc=_0x1c508d<_0x5114bc?_0x1c508d:_0x5114bc,_0x267a08=_0x1c508d+_0x43eb64>_0x267a08?_0x1c508d+_0x43eb64:_0x267a08,_0x5cc32c=_0x2dc2d9<_0x5cc32c?_0x2dc2d9:_0x5cc32c,_0x29b883=_0x2dc2d9+_0x59ccb0>_0x29b883?_0x2dc2d9+_0x59ccb0:_0x29b883;}return{'minRow':_0x5114bc,'maxRow':_0x267a08,'minColumn':_0x5cc32c,'maxColumn':_0x29b883};}['_setupColumnsRowsFixing'](){const _0x538ad8=this['editor'],_0x243823=_0x538ad8['plugins']['get']('TrackChangesEditing'),_0x36634c=_0x538ad8['plugins']['get']('TableUtils');_0x538ad8['model']['document']['on']('change:data',()=>{const _0xb5f624=Array['from'](_0x538ad8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe2e166,data:_0x14291c}of _0xb5f624){const {group:_0x3c203b,id:_0x5bb065,subType:_0x47b4a2}=_0x243823['_splitMarkerName'](_0xe2e166);if('suggestion'!=_0x3c203b)continue;if(null!=_0x14291c['oldRange'])continue;const _0xfb9110=_0x243823['getSuggestion'](_0x5bb065);this['_tablePostFixingSubtypes']['includes'](_0x47b4a2)&&this['_tableSuggestions']['add'](_0xfb9110);}},{'priority':'low'});const _0x2db55c=(_0x531587,_0x37318c)=>{let _0x3a15ab=!0x1;const _0x4209de=_0x37318c['createRangeOn'](_0x531587),_0x26e5ab=_0x531587['findAncestor']('table'),_0x152c28=_0x36634c['getCellLocation'](_0x531587);for(const _0x38cf5d of this['_tableSuggestions']){const _0x4b6327=_0x38cf5d['subType'],_0x4116bb=_0x4b6327['startsWith']('tablePaste'),_0x5a08a2=_0x4b6327['substr'](_0x4116bb?0xa:0x5),_0xe20622=_0x5a08a2['toLowerCase'](),_0x10ec18=_0xe20622['substr'](0x0,0x3)+'span',_0x42765e='min'+_0x5a08a2,_0x10f6c8='max'+_0x5a08a2;if(!_0x38cf5d['isInContent'])continue;if(_0x26e5ab!=_0x38cf5d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38cf5d['isIntersectingWithRange'](_0x4209de))continue;const _0xf64570=_0x531587['hasAttribute'](_0x10ec18)?_0x531587['getAttribute'](_0x10ec18)-0x1:0x0,_0x31508f=this['_getSuggestionCoords'](_0x38cf5d),_0xb5b696=_0x31508f[_0x42765e],_0xad457=_0x31508f[_0x10f6c8];_0xb5b696<=_0x152c28[_0xe20622]&&_0x152c28[_0xe20622]+_0xf64570<=_0xad457&&(_0x38cf5d['addRange'](_0x4209de),_0x3a15ab=!0x0);}return _0x3a15ab;};_0x538ad8['model']['document']['registerPostFixer'](_0x36ad5d=>{let _0x530ed9=!0x1;for(const _0x4b17f2 of _0x538ad8['model']['document']['differ']['getChanges']())if('insert'==_0x4b17f2['type']){if('tableRow'==_0x4b17f2['name']){for(const _0x53dbee of _0x4b17f2['position']['nodeAfter']['getChildren']())_0x530ed9=_0x530ed9||_0x2db55c(_0x53dbee,_0x36ad5d);}else'tableCell'==_0x4b17f2['name']&&(_0x530ed9=_0x530ed9||_0x2db55c(_0x4b17f2['position']['nodeAfter'],_0x36ad5d));}return _0x530ed9;});}['_getSuggestionCoords'](_0x2066f0){return this['_getCoordsForCells'](_0x2066f0['getRanges']()['map'](_0x2c13c5=>_0x2c13c5['start']['nodeAfter']));}}function Ee(_0x319515){return Array['from'](new Set(_0x319515)['values']());}class St extends _0x5be52d{static get['requires'](){return[jt];}['afterInit'](){const _0x36b11f=this['editor'],_0x18661e=_0x36b11f['model']['document']['selection'],_0xffc164=_0x36b11f['locale'];if(!_0x36b11f['plugins']['has']('TableEditing'))return;const _0x88e770=_0x36b11f['plugins']['get']('TrackChangesEditing'),_0x5dec96=_0x36b11f['plugins']['get']('TableUtils'),_0x2b135a=_0x36b11f['plugins']['get'](jt);_0x2b135a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x88e770['enableCommand']('mergeTableCells',()=>{const _0x4570ef=_0x5dec96['getSelectionAffectedTableCells'](_0x36b11f['model']['document']['selection']);_0x36b11f['model']['change'](()=>{_0x88e770['markMultiRangeBlockFormat'](_0x4570ef,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x36b11f['commands']['get']('mergeTableCells')['on']('execute',(_0x412e31,_0x25ac43)=>{_0x36b11f['commands']['get']('trackChanges')['value']&&(_0x25ac43['length']>0x0&&_0x25ac43[_0x25ac43['length']-0x1]&&_0x25ac43[_0x25ac43['length']-0x1]['forceDefaultExecution']||_0x88e770['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x412e31['stop']());},{'priority':'highest'});for(const _0x357c64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5cc39f=_0x36b11f['commands']['get'](_0x357c64);_0x88e770['enableCommand'](_0x357c64,()=>{const _0x14bf7d=_0x36b11f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ec89a=>_0x2ec89a['is']('element','tableCell')),_0x44d02d=_0x5cc39f['value'];_0x36b11f['model']['change'](()=>{_0x88e770['markMultiRangeBlockFormat']([_0x14bf7d,_0x44d02d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c2b89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x314aa0=_0x36b11f['commands']['get'](_0x2c2b89);_0x88e770['enableCommand'](_0x2c2b89,()=>{const _0x20370c=_0x5dec96['getSelectionAffectedTableCells'](_0x36b11f['model']['document']['selection'])[0x0],_0x85ac4d=_0x20370c['findAncestor']('table'),{column:_0x52044d,row:_0xd7c8b6}=_0x5dec96['getCellLocation'](_0x20370c);let _0x30bdbc=[];if('horizontally'==_0x314aa0['direction']){const _0xb85d07=_0x5dec96['createTableWalker'](_0x85ac4d,{'startRow':_0xd7c8b6,'endRow':_0xd7c8b6,'includeAllSlots':!0x0});_0x30bdbc=Array['from'](_0xb85d07)['map'](_0x5a8313=>_0x5a8313['cell']);}else{const _0x448635=_0x5dec96['createTableWalker'](_0x85ac4d,{'column':_0x52044d,'includeAllSlots':!0x0});_0x30bdbc=Array['from'](_0x448635)['map'](_0x2b46d0=>_0x2b46d0['cell']);}_0x36b11f['model']['change'](_0x557a53=>{_0x88e770['markBlockFormat'](_0x557a53['createRangeOn'](_0x20370c),{'commandName':_0x2c2b89,'commandParams':[]},_0x30bdbc,_0x2c2b89);});});}_0x88e770['descriptionFactory']['registerDescriptionCallback'](_0x5b5e47=>{if('formatBlock'!=_0x5b5e47['type']&&'formatInline'!=_0x5b5e47['type'])return;const {data:_0x223910}=_0x5b5e47;return _0x223910&&'mergeTableCells'==_0x223910['commandName']?{'type':'format','content':o(_0xffc164,'*Merge\x20cells*')}:void 0x0;}),_0x88e770['descriptionFactory']['registerDescriptionCallback'](_0x4bf7de=>{if('formatBlock'!=_0x4bf7de['type']&&'formatInline'!=_0x4bf7de['type'])return;const {data:_0x5520d5}=_0x4bf7de;return _0x5520d5?'splitTableCellVertically'==_0x5520d5['commandName']?{'type':'format','content':o(_0xffc164,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5520d5['commandName']?{'type':'format','content':o(_0xffc164,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x275871=_0x2b135a['_acceptFormatSuggestionCallbackFactory']();for(const _0x32fbde of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x88e770['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32fbde,'accept',_0x275871);for(const _0x277412 of['splitTableCellVertically','splitTableCellHorizontally'])_0x88e770['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x277412,'accept',_0x275871);_0x88e770['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xa2d0b8=>{_0x36b11f['model']['change'](_0x413b69=>{const _0x260e21=Array['from'](_0x18661e['getRanges']())['map'](_0x2ff193=>_0x190d08['fromRange'](_0x2ff193));_0x413b69['setSelection'](_0xa2d0b8),_0x36b11f['commands']['get']('mergeTableCells')['refresh'](),_0x36b11f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43430d=_0x260e21['filter'](_0x219997=>'$graveyard'!=_0x219997['root']['rootName']);_0x43430d['length']>0x0&&_0x413b69['setSelection'](_0x43430d);for(const _0x2e0b2b of _0x260e21)_0x2e0b2b['detach']();});});for(const _0x1efa88 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5893d4=_0x36b11f['commands']['get'](_0x1efa88);_0x5893d4['on']('set:isEnabled',(_0x587d0e,_0xde0411,_0x5b621a)=>{if(_0x5b621a){const _0xc0d854=_0x36b11f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d8459=>_0x3d8459['is']('element','tableCell'));this['_areMergableCells'](_0x5893d4['value'],_0xc0d854)||(_0x587d0e['return']=!0x1,_0x587d0e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x262b22=this['editor']['commands']['get']('mergeTableCells'),_0x257b40=this['editor']['plugins']['get']('TableUtils');if(!_0x262b22['isEnabled'])return!0x1;const _0x2fbf87=_0x257b40['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3076f4 of _0x2fbf87)for(const _0x616ae6 of _0x2fbf87)if(_0x3076f4!=_0x616ae6&&!this['_areMergableCells'](_0x3076f4,_0x616ae6))return!0x1;return!0x0;}['_areMergableCells'](_0x47850e,_0x200591){const _0x2f72f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29ee59=this['editor']['model']['createRangeOn'](_0x47850e),_0x5315e2=this['editor']['model']['createRangeOn'](_0x200591),_0x291c32=new Set(),_0x35c7ea=new Set();for(const _0x367944 of _0x2f72f2['getSuggestions']())if(('insertion'==_0x367944['type']||'deletion'==_0x367944['type']||'mergeTableCells'==_0x367944['subType'])&&_0x367944['isInContent']){for(const _0x281a28 of _0x367944['getRanges']())_0x281a28['containsRange'](_0x29ee59,!0x0)&&_0x291c32['add'](_0x367944['type']+':'+_0x367944['author']['id']),_0x281a28['containsRange'](_0x5315e2,!0x0)&&_0x35c7ea['add'](_0x367944['type']+':'+_0x367944['author']['id']);}if(_0x291c32['size']!=_0x35c7ea['size'])return!0x1;for(const _0x2dbc32 of _0x291c32)if(!_0x35c7ea['has'](_0x2dbc32))return!0x1;return!0x0;}}class At extends _0x5be52d{static get['requires'](){return[jt];}['afterInit'](){const _0xfc9116=this['editor'];if(!_0xfc9116['plugins']['has']('TableEditing'))return;const _0x5e7675=_0xfc9116['locale'],_0x2e32f7=_0xfc9116['plugins']['get']('TrackChangesEditing');_0x2e32f7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e32f7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e32f7['registerBlockAttribute']('headingRows'),_0x2e32f7['registerBlockAttribute']('headingColumns'),_0x2e32f7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5e7675,'FORMAT_HEADER_ROW')),_0x2e32f7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5e7675,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c3d09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x359444=this['editor']['plugins']['get']('TableUtils'),_0x1a8010=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x494942({showActiveMarker:_0x4cd827=!0x0,setDataAttribute:_0x2cf879=!0x0}={}){return(_0xa073db,_0x20dc50,_0x31ade6)=>{const {type:_0xf563b1,id:_0x20add}=_0x5c3d09['_splitMarkerName'](_0x20dc50['markerName']),_0x51c9f6=_0x5c3d09['getSuggestion'](_0x20add),_0x164480=_0x51c9f6['data'];if('formatBlock'!=_0x51c9f6['type']||!_0x164480||'setTableColumnHeader'!=_0x164480['commandName'])return;if(_0x20dc50['item'])return void _0xa073db['stop']();if(!_0x31ade6['consumable']['consume'](_0x20dc50['markerRange'],_0xa073db['name']))return;const _0x3e21d3=_0x20dc50['markerRange']['start']['nodeAfter'],_0x6be9be=_0x20dc50['markerRange']['end']['nodeBefore'],_0xb919bc=_0x3e21d3['parent']['parent'],{column:_0x16dca9}=_0x359444['getCellLocation'](_0x3e21d3),{column:_0x102d4d}=_0x359444['getCellLocation'](_0x6be9be);for(let _0x409103=_0x16dca9;_0x409103<=_0x102d4d;_0x409103++){const _0x5079ee=_0x359444['createTableWalker'](_0xb919bc,{'column':_0x409103,'includeAllSlots':!0x1});for(const _0x585d8d of _0x5079ee){const _0x397746=_0x585d8d['cell'],_0x427553=_0x31ade6['mapper']['toViewElement'](_0x397746);_0x31ade6['writer']['addClass']('ck-suggestion-marker-'+_0xf563b1,_0x427553),_0x2cf879&&_0x31ade6['writer']['setAttribute']('data-suggestion',_0x20add,_0x427553),_0x31ade6['mapper']['bindElementToMarker'](_0x427553,_0x20dc50['markerName']),_0x4cd827&&(_0x5c3d09['activeMarkers']['includes'](_0x20dc50['markerName'])?_0x31ade6['writer']['addClass']('ck-suggestion-marker--active',_0x427553):_0x31ade6['writer']['removeClass']('ck-suggestion-marker--active',_0x427553));}}};}_0x5c3d09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a8010),_0x5c3d09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a8010),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x494942(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2dd6c4,_0x13be18,_0x4d90d1)=>{_0x4d90d1['options']['showSuggestionHighlights']&&_0x494942({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2dd6c4,_0x13be18,_0x4d90d1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d709f,_0x3e5fcc,_0x389d55)=>{const {type:_0x2c1509,id:_0x294807}=_0x5c3d09['_splitMarkerName'](_0x3e5fcc['markerName']),_0xdab3a2=_0x5c3d09['getSuggestion'](_0x294807),_0x3f4acc=_0xdab3a2['data'];if('formatBlock'!=_0xdab3a2['type']||!_0x3f4acc||'setTableColumnHeader'!=_0x3f4acc['commandName'])return;const _0x249f48=_0x389d55['mapper']['markerNameToElements'](_0x3e5fcc['markerName']);if(_0x249f48){for(const _0x196b46 of _0x249f48)_0x389d55['writer']['removeClass']('ck-suggestion-marker-'+_0x2c1509,_0x196b46),_0x389d55['writer']['removeClass']('ck-suggestion-marker--active',_0x196b46),_0x389d55['writer']['removeAttribute']('data-suggestion',_0x196b46),_0x389d55['mapper']['unbindElementFromMarkerName'](_0x196b46,_0x3e5fcc['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcce69b=this['editor'],_0x47d3de=_0xcce69b['locale'];function _0x389c2b(_0x24b6b1){return{'type':'format','content':o(_0x47d3de,'*Format:*\x20%0',_0x24b6b1)};}_0xcce69b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30d670=>{if('formatBlock'!=_0x30d670['type'])return;const {data:_0x43c0f8}=_0x30d670;if(_0x43c0f8){if('setTableRowHeader'==_0x43c0f8['commandName']){const _0x59ec67=_0x43c0f8['commandParams'][0x0]['forceValue'];return _0x389c2b(o(_0x47d3de,_0x59ec67?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x43c0f8['commandName']){const _0x317fdf=_0x43c0f8['commandParams'][0x0]['forceValue'];return _0x389c2b(o(_0x47d3de,_0x317fdf?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x12a221=>[_0x12a221,null]));class It extends _0x5be52d{static get['requires'](){return[jt];}['afterInit'](){const _0x508e22=this['editor'];if(!_0x508e22['plugins']['has']('TableClipboard'))return;const _0x4184ac=_0x508e22['plugins']['get']('TrackChangesEditing'),_0x5cd2c7=_0x508e22['plugins']['get']('TableUtils'),_0x5ee1f5=_0x508e22['plugins']['get'](jt),_0x5386c9=_0x508e22['plugins']['get']('TableClipboard');_0x5ee1f5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x508e22['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x508e22['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2305b9=null;_0x508e22['model']['on']('insertContent',(_0x2ecee7,_0xcee781)=>{const [_0x2efbeb,_0x382f8f]=_0xcee781,_0x2a1c94=_0xcee781[_0xcee781['length']-0x1];_0x2a1c94&&_0x2a1c94['forceDefaultExecution']||_0x4184ac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2774e9,_0x5df4ae,_0x278d65,_0x327217,_0x5675a9){if(_0x5df4ae&&!_0x5df4ae['is']('documentSelection'))return!0x1;const _0x44ad52=_0x5675a9['getTableIfOnlyTableInContent'](_0x2774e9,_0x278d65);if(!_0x44ad52||!he(_0x44ad52,void 0x0,_0x327217))return!0x1;const _0x2f68ee=_0x327217['getSelectionAffectedTableCells'](_0x278d65['document']['selection']);if(!_0x2f68ee['length'])return!0x1;const _0x5be2de=_0x2f68ee[0x0]['findAncestor']('table'),_0x5381c9=_0x327217['getRowIndexes'](_0x2f68ee),_0x4e8ef9=_0x327217['getColumnIndexes'](_0x2f68ee),_0x4a6e03={'startRow':_0x5381c9['first'],'endRow':_0x5381c9['last'],'startColumn':_0x4e8ef9['first'],'endColumn':_0x4e8ef9['last']};return 0x1==_0x2f68ee['length']&&(_0x4a6e03['endRow']+=_0x327217['getRows'](_0x44ad52)-0x1,_0x4a6e03['endColumn']+=_0x327217['getColumns'](_0x44ad52)-0x1),he(_0x5be2de,_0x4a6e03,_0x327217);}(_0x2efbeb,_0x382f8f,_0x508e22['model'],_0x5cd2c7,_0x5386c9)&&(_0x2ecee7['stop'](),_0x2305b9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x508e22['model']['change'](()=>{_0x508e22['model']['insertContent'](_0xcee781[0x0],_0xcee781[0x1],_0xcee781[0x2],{'forceDefaultExecution':!0x0});const _0x4e58b7=_0x25d75f(),{rowInsertionRanges:_0x242540,columnInsertionRanges:_0x1a46bd,insertionRanges:_0x493a59,deletionRanges:_0x1f93c4,cells:_0x6a6362}=_0x2305b9;_0x242540['length']&&_0x4184ac['markMultiRangeInsertion'](_0x242540,'tablePasteRow',{'tablePasteChainId':_0x4e58b7}),_0x1a46bd['length']&&_0x4184ac['markMultiRangeInsertion'](_0x1a46bd,'tablePasteColumn',{'tablePasteChainId':_0x4e58b7}),_0x493a59['length']&&(_0x4184ac['markMultiRangeInsertion'](_0x493a59,'tablePaste',{'tablePasteChainId':_0x4e58b7,'skipNestingCheck':!0x0}),_0x493a59['forEach'](_0x41a03f=>_0x41a03f['detach']?.())),_0x1f93c4['length']&&(_0x4184ac['markMultiRangeDeletion'](_0x1f93c4,'tablePaste',{'tablePasteChainId':_0x4e58b7,'skipNestingCheck':!0x0}),_0x1f93c4['forEach'](_0x262f3a=>_0x262f3a['detach']?.()));const _0x107450=_0x4184ac['markMultiRangeBlockFormat'](_0x6a6362['map'](({element:_0x572e3a})=>_0x572e3a),{'formatGroupId':_0x25d75f()},[],'tablePasteCell',{'tablePasteChainId':_0x4e58b7});if(_0x107450){const _0x524042=_0x107450['getMarkers'](),_0x24cafa=[];for(const {element:_0xb93afd,attributes:_0x22791e}of _0x6a6362){if(!_0x22791e)continue;const _0x424e8a=_0x508e22['model']['createRangeOn'](_0xb93afd),_0x269010=_0x524042['find'](_0x129ef8=>_0x129ef8['getRange']()['isEqual'](_0x424e8a));_0x269010&&_0x24cafa['push']([_0x269010['name'],_0x22791e]);}_0x24cafa['length']&&_0x107450['setAttribute']('markerAttributes',Object['fromEntries'](_0x24cafa));}_0x2305b9=null;}));},{'priority':_0x9e0966['high']+0xa}),_0x508e22['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30251a,_0x4c0850)=>{const [_0x4958f9,_0x4ef6ad,,_0x51d2a2]=_0x4c0850;if(!_0x2305b9)return;_0x30251a['stop']();const _0x3c529c=_0x4958f9['cell'],_0x296e67=_0x4ef6ad,_0x15fe9d=Pe(_0x3c529c),_0x2e53ff=Pe(_0x296e67);_0x30251a['return']=_0x3c529c;let _0x23c5e0=null,_0x420e59=null;if(_0x2e53ff||_0x15fe9d){if(_0x15fe9d&&!_0x2e53ff){_0x51d2a2['remove'](_0x3c529c['getChild'](0x0));for(const _0x971366 of Array['from'](_0x296e67['getChildren']()))_0x51d2a2['insert'](_0x971366,_0x3c529c,'end');const _0x58e768=_0x2305b9['rowInsertionIndexes']['includes'](_0x4958f9['row']),_0x1377d5=_0x2305b9['columnInsertionIndexes']['includes'](_0x4958f9['column']);_0x58e768||_0x1377d5||(_0x23c5e0=_0x190d08['fromRange'](_0x51d2a2['createRangeIn'](_0x3c529c)));}else _0x2e53ff&&!_0x15fe9d&&(_0x420e59=_0x51d2a2['createRangeIn'](_0x3c529c));}else{const _0x53d9e5=_0x51d2a2['createElement']('tableCellSuggestion'),_0x4c8867=_0x51d2a2['createElement']('tableCellSuggestion');_0x51d2a2['wrap'](_0x51d2a2['createRangeIn'](_0x3c529c),_0x4c8867),_0x51d2a2['insert'](_0x53d9e5,_0x3c529c,0x0);for(const _0x51c18b of Array['from'](_0x296e67['getChildren']()))_0x51d2a2['insert'](_0x51c18b,_0x53d9e5,'end');_0x23c5e0=_0x190d08['fromRange'](_0x51d2a2['createRangeOn'](_0x53d9e5)),_0x420e59=_0x190d08['fromRange'](_0x51d2a2['createRangeOn'](_0x4c8867));}const _0x22a6aa=Array['from'](_0x296e67['getAttributes']())['filter'](([_0x229aa3])=>ge['includes'](_0x229aa3));_0x2305b9['cells']['push']({'element':_0x3c529c,'attributes':_0x22a6aa['length']?Object['fromEntries'](_0x22a6aa):null}),_0x23c5e0&&_0x2305b9['insertionRanges']['push'](_0x23c5e0),_0x420e59&&_0x2305b9['deletionRanges']['push'](_0x420e59);},{'priority':'high'}),_0x5cd2c7['on']('insertColumns',(_0x13f465,_0x3574ea)=>{const [_0x1b8200,_0x10fcb0={}]=_0x3574ea;if(!_0x2305b9)return;const _0x103ffb=_0x10fcb0['at']||0x0,_0x2cf504=_0x10fcb0['columns']||0x1;_0x2305b9['columnInsertionIndexes']=new Array(_0x2cf504)['fill'](_0x103ffb)['map']((_0x40c7af,_0x32abc9)=>_0x40c7af+_0x32abc9);for(const {cell:_0xfb5088}of _0x5cd2c7['createTableWalker'](_0x1b8200,{'startColumn':_0x103ffb,'endColumn':_0x103ffb+_0x2cf504-0x1}))_0x2305b9['columnInsertionRanges']['push'](_0x508e22['model']['createRangeOn'](_0xfb5088));},{'priority':'low'}),_0x5cd2c7['on']('insertRows',(_0x4506a1,_0x581ca0)=>{const [_0x4c7776,_0x1e030c={}]=_0x581ca0;if(!_0x2305b9)return;const _0x5c8e3c=_0x1e030c['at']||0x0,_0x3e07bd=_0x1e030c['rows']||0x1;_0x2305b9['rowInsertionIndexes']=new Array(_0x3e07bd)['fill'](_0x5c8e3c)['map']((_0x291da1,_0x58a041)=>_0x291da1+_0x58a041);for(const {cell:_0x3e1f1b}of _0x5cd2c7['createTableWalker'](_0x4c7776,{'startRow':_0x5c8e3c,'endRow':_0x5c8e3c+_0x3e07bd-0x1}))_0x2305b9['rowInsertionRanges']['push'](_0x508e22['model']['createRangeOn'](_0x3e1f1b));},{'priority':'low'}),_0x4184ac['descriptionFactory']['registerDescriptionCallback'](_0x532201=>{if(_0x532201['subType']&&_0x532201['subType']['startsWith']('tablePaste'))return _0x532201['previous']?{}:{'type':'insertion','content':o(_0x508e22['locale'],'*Replace\x20table\x20cells*')};});const _0x2f7d43=()=>!0x1;for(const _0x39539f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4184ac['_suggestionFactory']['registerCustomCallback']('insertion',_0x39539f,'join',_0x2f7d43),_0x4184ac['_suggestionFactory']['registerCustomCallback']('deletion',_0x39539f,'join',_0x2f7d43),_0x4184ac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39539f,'join',_0x2f7d43);_0x4184ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f7d43),_0x4184ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e7e00,_0x180fe1,_0x23fd17)=>{const _0x8a75f=_0x5e7e00['map'](_0x284aee=>_0x284aee['getContainedElement']())['filter'](_0x33a784=>_0x33a784),_0x228aee=new Map(_0x8a75f['map'](_0x37c444=>[_0x37c444,null]));if(_0x2305b9){for(const {element:_0x31abf0,attributes:_0x50b28e}of _0x2305b9['cells'])_0x50b28e&&_0x228aee['set'](_0x31abf0,_0x50b28e);}else{if(_0x23fd17&&_0x23fd17['markerAttributes'])for(const [_0x29bce1,_0x235bfc]of Object['entries'](_0x23fd17['markerAttributes'])){const _0x350a70=_0x508e22['model']['markers']['get'](_0x29bce1),_0x2dedee=_0x350a70?_0x350a70['getRange']()['getContainedElement']():null;_0x2dedee&&_0x228aee['set'](_0x2dedee,_0x235bfc);}}_0x508e22['model']['change'](_0x4a6176=>{for(const [_0x37aea9,_0x13952d]of _0x228aee)_0x4a6176['setAttributes']({...Ce,..._0x13952d},_0x37aea9);});});const _0x3b3754=(_0x2cee82,_0x3b14e3)=>{_0x4184ac['_suggestionFactory']['registerCustomCallback'](_0x2cee82,'tablePaste',_0x3b14e3,(_0x1b2006,_0x53c0e9,_0xf5f242)=>{_0x508e22['model']['change'](_0x149124=>{const _0x182e21=[];for(const _0x2aac89 of _0x1b2006){const _0xfaa78e=_0x2aac89['start']['nodeAfter'];_0xfaa78e['is']('element','tableCellSuggestion')&&_0x182e21['push'](_0xfaa78e);}_0x4184ac['_suggestionFactory']['getSuggestionCallback'](_0x2cee82,null,_0x3b14e3)(_0x1b2006,_0x53c0e9,_0xf5f242);for(const _0x1b89ab of _0x182e21)'$graveyard'!=_0x1b89ab['root']['rootName']&&_0x149124['unwrap'](_0x1b89ab);});});};_0x3b3754('insertion','accept'),_0x3b3754('insertion','discard'),_0x3b3754('deletion','accept'),_0x3b3754('deletion','discard'),_0x4184ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3449d2=>{const _0x3f2740=_0x3449d2['map'](_0x1c92eb=>_0x1c92eb['getContainedElement']()),_0x12c2b6=_0x3f2740[0x0]['findAncestor']('table'),{minRow:_0x50b4a2,maxRow:_0x3efad4}=_0x5ee1f5['_getCoordsForCells'](_0x3f2740);_0x5cd2c7['removeRows'](_0x12c2b6,{'at':_0x50b4a2,'rows':_0x3efad4-_0x50b4a2+0x1});}),_0x4184ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x411a6a=>{const _0x5e62f5=_0x411a6a['map'](_0x366daa=>_0x366daa['getContainedElement']()),_0x3ae9b4=_0x5e62f5[0x0]['findAncestor']('table'),{minColumn:_0x47ccc3,maxColumn:_0x2f7ab5}=_0x5ee1f5['_getCoordsForCells'](_0x5e62f5);_0x5cd2c7['removeColumns'](_0x3ae9b4,{'at':_0x47ccc3,'columns':_0x2f7ab5-_0x47ccc3+0x1});});const _0x2bc177=(_0x109ab3,_0x130034)=>{if(!_0x130034['subType']||!_0x130034['subType']['startsWith']('tablePaste'))return;const _0x49ae03=_0x130034['attributes']['tablePasteChainId'],_0x5e4057=_0x4184ac['getSuggestions']()['filter'](_0x1406d3=>_0x1406d3['isInContent']&&_0x1406d3['attributes']&&_0x1406d3['attributes']['tablePasteChainId']==_0x49ae03);_0x5e4057['length']&&_0x130034['getAllAdjacentSuggestions']()['length']!=_0x5e4057['length']&&_0x5e4057['reduce']((_0x42ce00,_0x599094)=>(_0x42ce00['next']=_0x599094,_0x599094['previous']=_0x42ce00,_0x599094));};function _0x130c6f(_0x16b1e7,_0x29c2c4=!0x0){const {id:_0x11e6dc}=_0x4184ac['_splitMarkerName'](_0x16b1e7['markerName']),_0x50bb49=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x39aae8=_0x4184ac['activeMarkers']['includes'](_0x16b1e7['markerName']);return _0x39aae8&&_0x50bb49['push']('ck-suggestion-marker--active'),{'classes':_0x50bb49,'attributes':{'data-suggestion':_0x11e6dc},'priority':_0x39aae8&&_0x29c2c4?0xbc2:0xbb8};}_0x4184ac['on']('suggestionLoaded',_0x2bc177,{'priority':'high'}),_0x4184ac['on']('suggestionUnloaded',_0x2bc177,{'priority':'high'}),_0x508e22['model']['document']['registerPostFixer'](()=>{let _0x2f33d7=!0x1;const _0xd7ccf=Array['from'](_0x508e22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x360555,data:_0x5e0f9e}of _0xd7ccf){const {group:_0x21ec95,type:_0x2e8b4d,id:_0x1debef}=_0x4184ac['_splitMarkerName'](_0x360555);if('suggestion'!=_0x21ec95||'deletion'!=_0x2e8b4d||_0x5e0f9e['oldRange'])continue;if(!_0x4184ac['hasSuggestion'](_0x1debef))continue;const _0x399819=_0x4184ac['getSuggestion'](_0x1debef)['getRanges'](),_0x149e99=_0x508e22['plugins']['get']('Users')['me'];for(const _0x5350a4 of _0x4184ac['getSuggestions']()){if(!_0x5350a4['isInContent']||_0x5350a4['author']!=_0x149e99)continue;if('formatBlock'!=_0x5350a4['type']||'tablePasteCell'!=_0x5350a4['subType'])continue;if(_0x5350a4['getRanges']()['every'](_0x4e1a4a=>_0x399819['some'](_0x2cfa1c=>_0x2cfa1c['containsRange'](_0x4e1a4a,!0x0)))){for(const _0x2056a2 of _0x5350a4['getAllAdjacentSuggestions']())_0x2056a2['isInContent']&&(_0x2056a2['discard'](),_0x2f33d7=!0x0);}}}return _0x2f33d7;}),_0x508e22['model']['document']['registerPostFixer'](_0x25f287=>{const _0x26d628=_0x508e22['commands']['get']('redo');if(!_0x26d628||!_0x26d628['_createdBatches']['has'](_0x25f287['batch']))return!0x1;let _0x2fa56f=!0x1;const _0x5e2d17=_0x508e22['plugins']['get']('Users')['me'],_0x11abc0=_0x508e22['model']['document']['differ']['getChanges'](),_0xc9ab76=Array['from'](_0x508e22['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x583d70,data:_0x21b30d})=>{const {group:_0x3197d1,subType:_0x38077a,authorId:_0x292d95}=_0x4184ac['_splitMarkerName'](_0x583d70);return'suggestion'==_0x3197d1&&'tablePaste'==_0x38077a&&_0x292d95==_0x5e2d17['id']&&!_0x21b30d['oldRange'];});for(const _0x408042 of _0x11abc0){if('insert'!=_0x408042['type']||'tableCellSuggestion'!=_0x408042['name']||0x1!=_0x408042['length'])continue;const _0x22082d=_0x25f287['createRange'](_0x408042['position'],_0x408042['position']['getShiftedBy'](0x1));if(!_0xc9ab76['find'](({data:_0x36b422})=>_0x36b422['newRange']['isEqual'](_0x22082d))){for(const {name:_0x476e2f,data:_0x3089c5}of _0xc9ab76)if(_0x22082d['containsRange'](_0x3089c5['newRange'])){_0x25f287['updateMarker'](_0x476e2f,{'range':_0x22082d}),_0x2fa56f=!0x0;break;}}}return _0x2fa56f;}),_0x508e22['model']['document']['registerPostFixer'](_0x390ba1=>{let _0x3bed7c=!0x1;const _0x4b15bc=_0x508e22['plugins']['get']('Users')['me'],_0x3e2eec=_0x4184ac['getSuggestions']()['filter'](_0x11dbfc=>_0x11dbfc['isInContent']&&_0x11dbfc['author']==_0x4b15bc),_0x4b88a9=new Set(),_0x51e9d8=new Set();for(const _0x4496a1 of _0x3e2eec)if('tablePaste'==_0x4496a1['subType'])for(const _0x5abb99 of _0x4496a1['getMarkers']()){const _0x1e668f=_0x5abb99['getRange']()['getContainedElement']();if(_0x1e668f){if(_0x1e668f['is']('element','tableCellSuggestion')&&Pe(_0x1e668f)){_0x4496a1['removeMarker'](_0x5abb99['name']),_0x4b88a9['add'](_0x1e668f),_0x3bed7c=!0x0;const _0x3261a6=_0x1e668f['nextSibling'],_0x2c71d9=_0x1e668f['previousSibling'],_0x5caec8=_0x3261a6&&_0x3261a6['is']('element','tableCellSuggestion'),_0x21ee88=_0x2c71d9&&_0x2c71d9['is']('element','tableCellSuggestion');_0x5caec8&&!_0x4b88a9['has'](_0x3261a6)&&_0x51e9d8['add'](_0x3261a6),_0x21ee88&&!_0x4b88a9['has'](_0x2c71d9)&&_0x51e9d8['add'](_0x2c71d9);}else _0x1e668f['is']('element','paragraph')&&_0x1e668f['isEmpty']&&(_0x4496a1['removeMarker'](_0x5abb99['name']),_0x3bed7c=!0x0);}}else{if('tablePasteCell'==_0x4496a1['subType']){if(!_0x4496a1['attributes']||!_0x4496a1['attributes']['tablePasteChainId'])continue;const _0x3fe188=_0x4496a1['attributes']['markerAttributes'];if(_0x3fe188&&Object['keys'](_0x3fe188)['length'])continue;const _0x319cdc=_0x4496a1['attributes']['tablePasteChainId'];let _0x417844=!0x0,_0x175854=!0x0;for(const _0x46bdf1 of _0x3e2eec)if(_0x46bdf1['subType']&&_0x46bdf1['subType']['startsWith']('tablePaste')){if(!_0x46bdf1['attributes']['tablePasteChainId']){_0x175854=!0x1;break;}if(_0x46bdf1['id']!=_0x4496a1['id']&&_0x46bdf1['attributes']['tablePasteChainId']==_0x319cdc){_0x417844=!0x1;break;}}_0x175854&&_0x417844&&(_0x4496a1['removeMarkers'](),_0x3bed7c=!0x0);}}for(const _0xc0edb of _0x4b88a9)_0x390ba1['remove'](_0xc0edb);for(const _0x5e420d of _0x51e9d8)_0x390ba1['unwrap'](_0x5e420d);return _0x3bed7c;}),_0x508e22['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5dfacb,_0x47e2a7)=>_0x130c6f(_0x5dfacb),'converterPriority':'high'}),_0x508e22['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39039e,_0x218d3e)=>_0x218d3e['options']['showSuggestionHighlights']?_0x130c6f(_0x39039e,!0x1):null,'converterPriority':'high'});const _0x1c91f8=_0x508e22['editing']['view'];this['listenTo'](_0x1c91f8['document'],'clipboardOutput',(_0x17d1a7,_0x5ed890)=>{const _0x2e7ee0=[];for(const _0x3875af of _0x1c91f8['createRangeIn'](_0x5ed890['content'])['getItems']())_0x3875af['is']('element','suggestion-td')&&_0x2e7ee0['push'](_0x3875af);_0x1c91f8['change'](_0x1576ed=>{for(const _0xf127e8 of _0x2e7ee0)_0x1576ed['move'](_0x1576ed['createRangeIn'](_0xf127e8),_0x1576ed['createPositionBefore'](_0xf127e8)),_0x1576ed['remove'](_0xf127e8);});});}}function Pe(_0x7a4b7e){if(_0x7a4b7e['isEmpty'])return!0x0;const _0x18b1d5=_0x7a4b7e['getChild'](0x0);return _0x18b1d5['is']('element','paragraph')&&_0x18b1d5['isEmpty'];}function he(_0x38b2c0,_0x4036dd={},_0x25b0f4){for(const {isAnchor:_0x36875d,cellHeight:_0x428044,cellWidth:_0x1c5cce}of _0x25b0f4['createTableWalker'](_0x38b2c0,{'includeAllSlots':!0x0,..._0x4036dd}))if(!_0x36875d||0x1!=_0x428044||0x1!=_0x1c5cce)return!0x1;return!0x0;}class vt extends _0x5be52d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4e1feb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1feb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4e1feb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4e1feb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e1feb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4e1feb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4e1feb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x52e95e,_0x52ef96){const _0xca31a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x151604=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x14d64d=_0x52ef96['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x25b53b=_0x151604['getColumnGroupElement'](_0x14d64d);let _0xf3cf1e=_0x25b53b?_0x151604['getTableColumnsWidths'](_0x25b53b):null,_0x16098a=_0x14d64d['getAttribute']('tableWidth')||null;const _0x46a28a=_0x52ef96['tableWidth']||_0x16098a,_0x130fcc=_0x52ef96['columnWidths']||_0xf3cf1e,_0x56f7ff=this['editor']['plugins']['get']('Users')['me'];for(const _0x56f667 of _0xca31a9['getSuggestions']()){const _0x646d45=_0x56f667['getContainedElement']();if('resizeTable'===_0x56f667['subType']&&_0x646d45===_0x14d64d){_0x56f667['author']!==_0x56f7ff&&_0x56f667['discard']();const _0x1d4c64=_0x56f667['data']['commandParams'];_0x16098a=_0x1d4c64[0x0]['tableWidth'],_0xf3cf1e=_0x1d4c64[0x0]['columnWidths'];break;}}_0x52e95e({'table':_0x14d64d,'tableWidth':_0x46a28a,'columnWidths':_0x130fcc}),_0xca31a9['markBlockFormat'](_0x14d64d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16098a,'columnWidths':_0xf3cf1e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a5d4d){if('formatBlock'!=_0x3a5d4d['type']&&'formatInline'!=_0x3a5d4d['type'])return;const {data:_0x913068}=_0x3a5d4d;if(_0x913068&&'resizeTable'===_0x913068['formatGroupId']){const _0x355c82='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x355c82)};}}}class Ct extends _0x5be52d{['afterInit'](){const _0x8e7675=this['editor'];_0x8e7675['plugins']['has']('Template')&&_0x8e7675['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5be52d{['afterInit'](){const _0x24bdbc=this['editor'];if(!_0x24bdbc['commands']['get']('insertTableOfContents'))return;_0x24bdbc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5adaa9=_0x24bdbc['plugins']['get']('TrackChangesEditing'),_0x4435d7=_0x24bdbc['locale'];_0x5adaa9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4bb59f=>o(_0x4435d7,'ELEMENT_TABLE_OF_CONTENTS',_0x4bb59f));}}class Dt extends _0x5be52d{['afterInit'](){const _0x2dee05=this['editor'];if(!_0x2dee05['plugins']['has']('Title'))return;const _0x1b95e5=_0x2dee05['plugins']['get']('TrackChangesEditing');_0x1b95e5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dee05['locale'],'ELEMENT_TITLE')),_0x2dee05['model']['document']['registerPostFixer'](_0x210f85=>{let _0x5140a2=!0x1;const _0x24ef52=Array['from'](_0x2dee05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a6763,data:_0x45f570}of _0x24ef52){const {group:_0x485db7}=_0x1b95e5['_splitMarkerName'](_0x1a6763);if('suggestion'!==_0x485db7||!_0x45f570['newRange'])continue;const _0x3a388d=_0x45f570['newRange'],_0x5cd6d0=_0x3a388d['end']['nodeBefore'];if(!_0x5cd6d0||!_0x5cd6d0['is']('element','title-content'))continue;if(!_0x3a388d['start']['isTouching'](_0x3a388d['end']))continue;const _0x28e0ac=_0x2dee05['model']['schema']['getNearestSelectionRange'](_0x3a388d['end'],'forward');if(_0x28e0ac&&_0x28e0ac['isCollapsed']){const _0x2a85b5=_0x210f85['createRange'](_0x3a388d['start'],_0x28e0ac['start']);_0x2a85b5['isEqual'](_0x3a388d)||(_0x210f85['updateMarker'](_0x1a6763,{'range':_0x2a85b5}),_0x5140a2=!0x0);}_0x5140a2||(_0x210f85['removeMarker'](_0x1a6763),_0x5140a2=!0x0);}return _0x5140a2;});}}class Nt extends _0x5be52d{['afterInit'](){const _0x26d5b0=this['editor'],_0x140da6=_0x26d5b0['plugins']['get']('TrackChangesEditing');_0x26d5b0['plugins']['has']('UndoEditing')&&(_0x140da6['enableCommand']('undo'),_0x140da6['enableCommand']('redo'));}}class Mt extends _0x5be52d{static get['requires'](){return[jt];}['afterInit'](){const _0x3ac0c0=this['editor'];if(!_0x3ac0c0['plugins']['has']('TableCaptionEditing'))return;_0x3ac0c0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5be52d{['tableProperties'];['tableCellProperties'];constructor(_0x20128a){super(_0x20128a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x2df817=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x42f729 of this['tableProperties'])_0x2df817['enableCommand'](_0x42f729,(_0xcd3d1b,_0x52bfc0)=>{const _0x9c8d95=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x42f729,[_0x9c8d95],this['tableProperties'],'tableProperties',_0xcd3d1b,_0x52bfc0);});_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2df817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x591b7b,_0x1721f5)=>this['handleDiscardAction'](this['tableProperties'],_0x591b7b,_0x1721f5)),_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x245b78 of this['tableCellProperties'])_0x2df817['enableCommand'](_0x245b78,(_0x20de96,_0x1f1c1c)=>{const _0x3bf053=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x245b78,_0x3bf053,this['tableCellProperties'],'tableCellProperties',_0x20de96,_0x1f1c1c);});_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2df817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x30982b,_0x17a707)=>this['handleDiscardAction'](this['tableCellProperties'],_0x30982b,_0x17a707)),_0x2df817['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2df817['descriptionFactory']['registerDescriptionCallback'](_0x31ceea=>this['handleSuggestionDescription'](_0x31ceea));}['_handlePropertyChange'](_0x1b20de,_0x3ebec3,_0xad43fb,_0x1e9d84,_0x15741e,_0x1df49a){const _0x2a4022=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1df49a['batch'],()=>{for(const _0x2bbb1c of _0x3ebec3){if(this['_getSuggestion'](_0x2bbb1c,_0x1e9d84))_0x15741e(_0x1df49a);else{const _0x25c896={};for(const _0x2b600a of _0xad43fb){const _0x7d950d=_0x2bbb1c['getAttribute'](_0x2b600a);void 0x0!==_0x7d950d&&(_0x25c896[_0x2b600a]=_0x7d950d);}_0x15741e(_0x1df49a),_0x2a4022['markBlockFormat'](_0x2bbb1c,{'commandParams':[_0x25c896]},[],_0x1e9d84);}}});}['handleDiscardAction'](_0x3dcacc,_0x478370,_0x3676bf){const _0x8df186=_0x478370[0x0]['start']['nodeAfter'],_0x46d9eb=_0x3676bf['commandParams'][0x0];this['editor']['model']['change'](_0x3dd59a=>{for(const _0x53198b of _0x3dcacc)void 0x0!==_0x46d9eb[_0x53198b]?_0x3dd59a['setAttribute'](_0x53198b,_0x46d9eb[_0x53198b],_0x8df186):_0x3dd59a['removeAttribute'](_0x53198b,_0x8df186);});}['handleSuggestionDescription'](_0x2e7a69){if(_0x2e7a69['data'])switch(_0x2e7a69['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'](_0x5b93d5,_0x2f4a6c){const _0x5413c0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b66c5 of _0x5413c0['getSuggestions']({'skipNotAttached':!0x0})){const _0x5498c0=_0x2b66c5['getContainedElement']();if(_0x2b66c5['subType']===_0x2f4a6c&&_0x5498c0===_0x5b93d5)return _0x2b66c5;}return null;}}const m='$elementName';class p extends _0x5be52d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x142223,_0x23e2f8,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2e4d11){function _0x4fae4e(_0x39ca2b){return _0x39ca2b['map'](_0x125c57=>String['fromCharCode'](_0x125c57))['join']('');}super(_0x2e4d11),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x861a47,_0x3c00ac,_0x28a5b5,_0x3dd567)=>{this['_model']['change'](()=>{for(const _0x2bd43f of[..._0x3dd567,..._0x28a5b5])this['_model']['markers']['has'](_0x2bd43f)&&_0x2e4d11['editing']['reconvertMarker'](_0x2bd43f);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2e4d11['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(),_0x2e4d11['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e4d11['config']['get']('trackChanges.trackFormatChanges'),_0x2e4d11['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e4d11['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2e4d11,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4fae4e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4fae4e([0x34,0x30,0x34,0x38,0x31,0x30,0x36,0x32]);}['init'](){const _0xd97b22=this['editor'],_0x458536=(_0x1f708e,_0x394d49)=>{if('attribute'!=_0x1f708e)return'ck-suggestion-marker-'+_0x1f708e;const _0x5e32a0=_0x394d49['split']('|')[0x0];return this['_isBlockAttribute'](_0x5e32a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xd97b22['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4c15ae=>{const {id:_0x39efac,type:_0x2283c2,subType:_0x11d8ee}=this['_splitMarkerName'](_0x4c15ae['markerName']),_0x176482=['ck-suggestion-marker',_0x458536(_0x2283c2,_0x11d8ee)];let _0x5b95bb=0xbb8;return this['activeMarkers']['includes'](_0x4c15ae['markerName'])&&(_0x176482['push']('ck-suggestion-marker--active'),_0x5b95bb=0xbc2),'deletion'==_0x2283c2&&(_0x5b95bb+=0x5),{'classes':_0x176482,'attributes':{'data-suggestion':_0x39efac},'priority':_0x5b95bb};}}),_0xd97b22['conversion']['for']('dataDowncast')['add'](_0x323afa=>{_0x323afa['on']('addMarker:suggestion',(_0x59e62b,_0x376bb0,_0x3403f7)=>{if(!_0x3403f7['options']['showSuggestionHighlights'])return;const _0x1a751d=_0x376bb0['item'];if(!_0x1a751d)return;const _0x223024=_0x3403f7['mapper']['toViewElement'](_0x1a751d);_0xd97b22['model']['schema']['isObject'](_0x1a751d)&&_0x223024&&!_0x223024['getCustomProperty']('widget')&&_0x223024['is']('containerElement')&&_0x4dc900(_0x223024,_0x3403f7['writer']);},{'priority':'high'});}),_0xd97b22['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x100668,_0x56227f)=>{if(!_0x56227f['options']['showSuggestionHighlights'])return null;const {type:_0xb7170e,subType:_0x150412}=this['_splitMarkerName'](_0x100668['markerName']);return{'classes':['ck-suggestion-marker',_0x458536(_0xb7170e,_0x150412)],'priority':0xbb8};}});const _0x58f348=({showActiveMarkers:_0xcb073f=!0x0,isAttributeSuggestion:_0x1b2e52=!0x1}={})=>(_0x3857c8,_0x77954,_0xf52eaa)=>{if(!_0x77954['item'])return;const {id:_0x30710e}=this['_splitMarkerName'](_0x77954['markerName']);if(_0x1b2e52){const _0x38d35c=this['_suggestions']['get'](_0x30710e),_0x58470a=this['_getAttributeKey'](_0x38d35c);if(!this['_isBlockAttribute'](_0x58470a))return;}if(_0x77954['item']['is']('selection'))return void _0xf52eaa['consumable']['consume'](_0x77954['item'],_0x3857c8['name']);const _0x2b05de=_0xf52eaa['mapper']['toViewElement'](_0x77954['item']);if(_0x77954['item']['is']('element')&&_0xd97b22['model']['schema']['isBlock'](_0x77954['item'])&&!_0x2b05de['getCustomProperty']('addHighlight')){_0xf52eaa['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2b05de),_0xf52eaa['writer']['setAttribute']('data-suggestion',_0x30710e,_0x2b05de),_0xf52eaa['mapper']['bindElementToMarker'](_0x2b05de,_0x77954['markerName']),_0xcb073f&&(this['activeMarkers']['includes'](_0x77954['markerName'])?_0xf52eaa['writer']['addClass']('ck-suggestion-marker--active',_0x2b05de):_0xf52eaa['writer']['removeClass']('ck-suggestion-marker--active',_0x2b05de));for(const _0x1720c9 of _0xd97b22['model']['createRangeIn'](_0x77954['item'])['getItems']())_0xf52eaa['consumable']['consume'](_0x1720c9,_0x3857c8['name']);_0xf52eaa['consumable']['consume'](_0x77954['item'],_0x3857c8['name']);}};_0xd97b22['conversion']['for']('dataDowncast')['add'](_0x26d4a9=>{_0x26d4a9['on']('addMarker:suggestion:formatBlock',(_0x5f2108,_0xe3bcb6,_0x4b481d)=>{_0x4b481d['options']['showSuggestionHighlights']&&_0x58f348({'showActiveMarkers':!0x1})(_0x5f2108,_0xe3bcb6,_0x4b481d);},{'priority':'highest'});}),_0xd97b22['conversion']['for']('dataDowncast')['add'](_0xc2115c=>{_0xc2115c['on']('addMarker:suggestion:attribute',(_0x4010b1,_0x4840e6,_0x5d989f)=>{_0x5d989f['options']['showSuggestionHighlights']&&_0x58f348({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4010b1,_0x4840e6,_0x5d989f);},{'priority':'highest'});}),_0xd97b22['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4953cd,_0x319ffc)=>_0x319ffc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4953cd['substr'](0xb)}}),_0xd97b22['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17d14c,{writer:_0x3f67ae})=>{let _0x3f37ee='suggestion:'+_0x17d14c['getAttribute']('suggestion-type')+':'+_0x17d14c['getAttribute']('id');return _0x17d14c['getAttribute']('marker-count')&&(_0x3f37ee+=':'+_0x17d14c['getAttribute']('marker-count')),_0x3f67ae['createElement']('$marker',{'data-name':_0x3f37ee});}}),_0xd97b22['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xd97b22['conversion']['for']('editingDowncast')['add'](_0xb9e29c=>{_0xb9e29c['on']('addMarker:suggestion:formatBlock',_0x58f348(),{'priority':'high'});}),_0xd97b22['conversion']['for']('editingDowncast')['add'](_0x1976e0=>{_0x1976e0['on']('addMarker:suggestion:attribute',_0x58f348({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xd97b22['conversion']['for']('editingDowncast')['add'](_0x355c7d=>{_0x355c7d['on']('removeMarker:suggestion:formatBlock',(_0xa26a15,_0x11d1b4,_0x4b6710)=>{const _0x13b6a8=_0x4b6710['mapper']['markerNameToElements'](_0x11d1b4['markerName']);if(_0x13b6a8){for(const _0x847f6c of _0x13b6a8)_0x847f6c['getCustomProperty']('addHighlight')||(_0x4b6710['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x847f6c),_0x4b6710['writer']['removeAttribute']('data-suggestion',_0x847f6c),_0x4b6710['mapper']['unbindElementFromMarkerName'](_0x847f6c,_0x11d1b4['markerName']));}},{'priority':'high'});}),_0xd97b22['conversion']['for']('editingDowncast')['add'](_0x5525e9=>{_0x5525e9['on']('removeMarker:suggestion:attribute',(_0x42f473,_0x33e440,_0x575d2a)=>{const _0x2a9ede=_0x575d2a['mapper']['markerNameToElements'](_0x33e440['markerName']);if(!_0x2a9ede)return;const {id:_0x361a1c}=this['_splitMarkerName'](_0x33e440['markerName']),_0xd7f00f=this['_suggestions']['get'](_0x361a1c),_0x1db3d7=this['_getAttributeKey'](_0xd7f00f);if(this['_isBlockAttribute'](_0x1db3d7)){for(const _0x5dd39f of _0x2a9ede)_0x5dd39f['getCustomProperty']('addHighlight')||(_0x575d2a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5dd39f),_0x575d2a['writer']['removeAttribute']('data-suggestion',_0x5dd39f),_0x575d2a['mapper']['unbindElementFromMarkerName'](_0x5dd39f,_0x33e440['markerName']));}},{'priority':'high'});}),_0xd97b22['model']['document']['registerPostFixer'](_0x4e7b8b=>{let _0x4a32d3=!0x1;const _0x436a16=Array['from'](_0xd97b22['model']['document']['differ']['getChangedMarkers']()),_0x3cc597=new Set();for(const {name:_0x43a5a0,data:_0xdaae0b}of _0x436a16){const {group:_0x7893c2,type:_0xf69305,subType:_0x62e4e7,id:_0x3007fe}=this['_splitMarkerName'](_0x43a5a0);if('suggestion'!==_0x7893c2)continue;const _0x258796=this['_suggestions']['get'](_0x3007fe);if(null!=_0xdaae0b['newRange']){'formatInline'==_0xf69305&&(_0x4a32d3=_0x4a32d3||Et(_0xdaae0b['newRange'],_0x43a5a0,_0x4e7b8b,_0xd97b22['model']['schema']));const _0xcad1af='attribute'==_0xf69305&&this['_isBlockAttribute'](_0x62e4e7['split']('|')[0x0]);if(_0xdaae0b['newRange']['isCollapsed']||'$graveyard'==_0xdaae0b['newRange']['root']['rootName']||'formatBlock'==_0xf69305&&!Ut(_0xdaae0b['newRange'])||_0xcad1af&&!Ut(_0xdaae0b['newRange'])||'deletion'==_0xf69305&&!(!Tt(_0x1bd3cc=_0xdaae0b['newRange'])&&!function(_0x4d5df9){return _0x4d5df9['start']['parent']==_0x4d5df9['end']['nodeBefore']&&_0x4d5df9['start']['isAtEnd'];}(_0x1bd3cc)))_0x4e7b8b['removeMarker'](_0x43a5a0),_0x4a32d3=!0x0;else{if(!_0x258796||!_0x258796['isInContent'])continue;_0x3cc597['add'](_0x258796);}}}var _0x1bd3cc;return _0x3cc597['size']>0x0&&(_0x4a32d3=!!this['_joinWithAdjacentSuggestions'](_0x3cc597)||_0x4a32d3),_0x4a32d3;}),_0xd97b22['model']['document']['registerPostFixer'](_0x56a833=>{let _0x364bd8=!0x1;for(const _0x1a2c2b of _0xd97b22['model']['document']['differ']['getChanges']())if('insert'==_0x1a2c2b['type'])for(const _0x5c5fc3 of this['_suggestions']['values']()){if(_0x5c5fc3['isMultiRange']||!_0x5c5fc3['isInContent'])continue;const _0x48267c='formatBlock'==_0x5c5fc3['type'],_0x483ff7=this['_getAttributeKey'](_0x5c5fc3),_0x4bd897=_0x483ff7&&this['_isBlockAttribute'](_0x483ff7);if(!_0x48267c&&!_0x4bd897)continue;const _0x319d21=_0x5c5fc3['getFirstRange']();if(_0x319d21['start']['parent']!=_0x319d21['end']['parent']&&!_0x319d21['end']['isAtEnd']){const _0x1959c8=_0xd97b22['model']['createPositionAt'](_0x319d21['start']['nodeAfter'],'end'),_0x35c8e5=_0xd97b22['model']['createRange'](_0x319d21['start'],_0x1959c8);_0x56a833['updateMarker'](_0x5c5fc3['getFirstMarker'](),{'range':_0x35c8e5}),_0x364bd8=!0x0;}}return _0x364bd8;}),_0xd97b22['model']['document']['registerPostFixer'](_0x3b4e6f=>this['_processAttributeChanges'](_0x3b4e6f)),_0xd97b22['model']['document']['registerPostFixer'](_0x5a2829=>!_0x5a2829['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a2829)),_0xd97b22['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xd97b22['model']['document']['on']('change:data',(_0x2bbe69,_0x5b856a)=>{if(!_0x5b856a['isLocal']||_0x5b856a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1a22fa=_0xd97b22['model']['document']['differ']['getChanges']();if(0x0==_0x1a22fa['length'])return;const _0x26f136=[],_0x2d0459=_0x1a22fa['filter'](_0x59424d=>'attribute'==_0x59424d['type']),_0x14b389=_0x1a22fa['filter'](_0x71370f=>'insert'==_0x71370f['type']&&'$text'!=_0x71370f['name']);for(const _0x4a35fe of _0x2d0459)this['_isRegisteredAttribute'](_0x4a35fe['attributeKey'])&&_0x26f136['push']({'key':_0x4a35fe['attributeKey'],'newValue':_0x4a35fe['attributeNewValue'],'oldValue':_0x4a35fe['attributeOldValue'],'range':Ot(_0x4a35fe['range'],_0xd97b22['model'])});for(const _0x4cae78 of _0x14b389){if('rename'!=_0x4cae78['action']&&'refresh'!=_0x4cae78['action'])continue;const _0x1e7856=Gt(_0x4cae78['position']['nodeAfter'],_0xd97b22['model']),_0x185d5b=_0x4cae78['before'];'rename'==_0x4cae78['action']&&_0x26f136['push']({'key':m,'newValue':_0x4cae78['name'],'oldValue':_0x185d5b['name'],'range':_0x1e7856});for(const [_0x49d745,_0x39b7c8]of _0x185d5b['attributes']){if(!this['_isRegisteredAttribute'](_0x49d745))continue;const _0x223cf8=_0x4cae78['attributes']['get'](_0x49d745);_0x39b7c8!==_0x223cf8&&_0x26f136['push']({'key':_0x49d745,'newValue':_0x223cf8,'oldValue':_0x39b7c8,'range':_0x1e7856});}for(const [_0x3e4a1d,_0x113c58]of _0x4cae78['attributes'])this['_isRegisteredAttribute'](_0x3e4a1d)&&(_0x185d5b['attributes']['has'](_0x3e4a1d)||_0x26f136['push']({'key':_0x3e4a1d,'newValue':_0x113c58,'oldValue':null,'range':_0x1e7856}));}0x0!=_0x26f136['length']&&_0xd97b22['model']['enqueueChange'](_0x5b856a,_0x2725fe=>{const _0x15a8b6=_0x25d75f();for(const {range:_0xcdab8f,key:_0x5cca32,oldValue:_0x1b0d31,newValue:_0x16f5bc}of _0x26f136)this['markAttributeChange'](_0xcdab8f,_0x5cca32,_0x1b0d31,_0x16f5bc,{'groupId':_0x15a8b6});this['_reduceExistingSuggestions'](_0x2725fe,_0x26f136);});},{'priority':'lowest'}),_0xd97b22['model']['markers']['on']('update:suggestion',(_0xe9e69e,_0xa92d69,_0x2dcceb)=>{if(null==_0x2dcceb){const {id:_0x12ca26}=this['_splitMarkerName'](_0xa92d69['name']),_0x58a0db=this['_suggestions']['get'](_0x12ca26);_0x58a0db&&_0x58a0db['addMarkerName'](_0xa92d69['name']);}}),_0xd97b22['model']['document']['on']('change:data',()=>{const _0x46073b=Array['from'](_0xd97b22['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b0752=>'suggestion'===this['_splitMarkerName'](_0x1b0752['name'])['group']);if(0x0===_0x46073b['length'])return;_0x46073b['sort']((_0x48c131,_0x6c85b9)=>{const _0x127a69=_0x48c131['data']['oldRange'],_0xd7f97c=_0x6c85b9['data']['oldRange'];return null===_0x127a69&&null===_0xd7f97c?0x0:null===_0x127a69&&null!==_0xd7f97c?-0x1:null!==_0x127a69&&null===_0xd7f97c?0x1:_0x127a69['start']['isBefore'](_0xd7f97c['start'])?-0x1:0x1;});const _0x497806=new Set(),_0x453041=new Set();for(const {name:_0x21accb,data:_0x3f51c5}of _0x46073b){const {id:_0x40478c}=this['_splitMarkerName'](_0x21accb);if(null===_0x3f51c5['oldRange']){const _0x86f758=this['_handleNewSuggestionMarker'](_0x21accb);_0x453041['add'](_0x86f758);}else{const _0xe55ff8=this['_suggestions']['get'](_0x40478c);null!==_0x3f51c5['newRange']||_0xe55ff8['isInContent']?(_0x497806['add'](_0xe55ff8['head']),_0x453041['add'](_0xe55ff8)):this['_removeSuggestion'](_0xe55ff8);}}_0x453041['size']>0x0&&this['_refreshSuggestionsChain'](_0x453041);for(const _0x4cf27a of _0x497806)this['fire']('suggestionChanged',_0x4cf27a);}),_0xd97b22['model']['on']('applyOperation',(_0x2f4bb5,_0xe61717)=>{const _0x6a1b04=_0xe61717[0x0];if(!this['_suggestions']['size'])return;if(!_0x6a1b04['isDocumentOperation'])return;if(_0x6a1b04['batch']['isUndo']||!_0x6a1b04['batch']['isLocal'])return;let _0x492c9f,_0x5cbaae;switch(_0x6a1b04['type']){case'insert':_0x492c9f=_0xd97b22['model']['createPositionAt'](_0x6a1b04['position']),_0x5cbaae=_0x492c9f['getShiftedBy'](_0x6a1b04['howMany']);break;case'split':_0x492c9f=_0xd97b22['model']['createPositionAt'](_0x6a1b04['splitPosition']),_0x5cbaae=_0xd97b22['model']['createPositionAt'](_0x6a1b04['moveTargetPosition']);break;case'move':_0x492c9f=_0xd97b22['model']['createPositionAt'](_0x6a1b04['targetPosition']),_0x5cbaae=_0x492c9f['getShiftedBy'](_0x6a1b04['howMany']);break;default:return;}const _0xd1aaec=_0xd97b22['model']['createRange'](_0x492c9f,_0x5cbaae);_0xd97b22['model']['change'](()=>{for(const {suggestion:_0x3e2654,meta:_0x364494}of this['_findSuggestions'](_0xd1aaec)){if(_0x3e2654['isMultiRange'])continue;if('formatInline'==_0x3e2654['type'])continue;const _0x4b3928=this['_getAttributeKey'](_0x3e2654);if(_0x4b3928&&this['_isBlockAttribute'](_0x4b3928)&&'split'!=_0x6a1b04['type'])continue;const _0x2bb341=_0x3e2654['data']&&_0x3e2654['data']['multipleBlocks'];('formatBlock'!=_0x3e2654['type']||'split'==_0x6a1b04['type']&&!_0x2bb341)&&(_0x364494['containsRangeInObject']||'insertion'==_0x3e2654['type']&&_0x364494['isOwn']||_0x3e2654['getFirstRange']()['containsRange'](_0xd1aaec)&&this['_breakSuggestionMarker'](_0x3e2654,_0x492c9f,_0x5cbaae));}});},{'priority':'lowest'}),_0xd97b22['model']['on']('deleteContent',(_0xfab1b3,_0x552b0d)=>{const _0x1fe498=_0x552b0d[0x0],_0x4b0e22=_0x552b0d[0x1];if(_0x4b0e22&&_0x4b0e22['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1fe498['isCollapsed'])return;const _0x5cc572=_0xd97b22['model']['schema'],{start:_0x4247d1,end:_0x264cf3}=_0x1fe498['getFirstRange'](),_0x18b089=_0x4247d1['nodeAfter']&&_0x5cc572['isLimit'](_0x4247d1['nodeAfter'])?null:_0x5cc572['getNearestSelectionRange'](_0x4247d1,'forward'),_0x4a652e=_0x264cf3['nodeBefore']&&_0x5cc572['isLimit'](_0x264cf3['nodeBefore'])?null:_0x5cc572['getNearestSelectionRange'](_0x264cf3,'backward'),_0x5e1781=_0xd97b22['model']['createRange'](_0x18b089?_0x18b089['start']:_0x4247d1,_0x4a652e?_0x4a652e['end']:_0x264cf3);_0xd97b22['model']['change'](_0x2cdda6=>{this['markDeletion'](_0x5e1781);const _0x469bb7=_0xd97b22['model']['schema']['getNearestSelectionRange'](_0x5e1781['start']);_0x1fe498['is']('documentSelection')?_0x2cdda6['setSelection'](_0x469bb7):_0x1fe498['setTo'](_0x469bb7);}),_0xfab1b3['stop']();},{'priority':_0x9e0966['normal']+0xa}),_0xd97b22['model']['on']('insertContent',(_0x54dc47,_0x3ad173)=>{const _0x527c1a=_0x3ad173[_0x3ad173['length']-0x1];_0x527c1a&&_0x527c1a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xd97b22['model']['change'](()=>{let _0x12de38=_0xd97b22['model']['insertContent'](_0x3ad173[0x0],_0x3ad173[0x1],_0x3ad173[0x2],{'forceDefaultExecution':!0x0});if(!_0x12de38)return;_0x54dc47['return']=_0x12de38['clone']();const _0x29f576=_0x12de38['end']['nodeBefore'],_0x48840f=_0xd97b22['model']['schema'];_0x29f576&&_0x48840f['isBlock'](_0x29f576)&&!_0x48840f['isObject'](_0x29f576)&&(_0x12de38=_0xd97b22['model']['createRange'](_0x12de38['start'],_0xd97b22['model']['createPositionAt'](_0x29f576,'end'))),this['markInsertion'](_0x12de38);}),_0x54dc47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d8a50=new $(_0xd97b22,this['_suggestions']);_0xd97b22['commands']['add']('acceptSuggestion',_0x1d8a50),this['enableCommand']('acceptSuggestion');const _0x15759d=new B(_0xd97b22,this['_suggestions']);_0xd97b22['commands']['add']('discardSuggestion',_0x15759d),this['enableCommand']('discardSuggestion'),_0xd97b22['commands']['add']('acceptAllSuggestions',new x(_0xd97b22,_0x1d8a50,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xd97b22['commands']['add']('discardAllSuggestions',new x(_0xd97b22,_0x15759d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xd97b22['commands']['add']('acceptSelectedSuggestions',new R(_0xd97b22,_0x1d8a50,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xd97b22['commands']['add']('discardSelectedSuggestions',new R(_0xd97b22,_0x15759d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a2ca4=_0xd97b22['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a2ca4,'addComment',(_0x2c7a1e,{threadId:_0x280e46})=>{const _0x1e15c3=this['_suggestions']['get'](_0x280e46);_0x1e15c3&&_0x1e15c3['commentThread']&&0x1===_0x1e15c3['commentThread']['length']&&this['_updateSuggestionData'](_0x280e46,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a2ca4,'removeComment',(_0x360f44,{threadId:_0x592831})=>{const _0x3511dd=this['_suggestions']['get'](_0x592831);_0x3511dd&&_0x3511dd['commentThread']&&!_0x3511dd['commentThread']['length']&&this['_updateSuggestionData'](_0x592831,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4729e5){if(this['_adapter'])throw new _0x4bfcae('track-changes-adapter-already-set',this);this['_adapter']=_0x4729e5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x337246=!0x1,toJSON:_0x57dcf1=!0x1}={}){const _0x221c08=[];for(const _0x2eba37 of this['_suggestions']['values']())_0x337246&&!_0x2eba37['isInContent']||_0x221c08['push'](_0x2eba37);return _0x57dcf1?_0x221c08['map'](_0x159c17=>_0x159c17['toJSON']()):_0x221c08;}['getSuggestion'](_0x58ef2e){const _0x51762b=this['_suggestions']['get'](_0x58ef2e);if(!_0x51762b)throw new _0x4bfcae('track-changes-suggestion-not-found',this);return _0x51762b;}['hasSuggestion'](_0x1ffcfc){return this['_suggestions']['has'](_0x1ffcfc);}['addSuggestionData'](_0x35025e){const {authorId:_0x4dc3f4,id:_0x275ad2,attributes:_0x14d57a}=_0x35025e,[_0xd9bb22,_0x38e22d]=_0x35025e['type']['split'](':'),_0xf47d03=this['_suggestions']['get'](_0x275ad2)||this['_createSuggestion'](_0xd9bb22,_0x38e22d,_0x275ad2,_0x4dc3f4,_0x14d57a);if(this['_addThreadToSuggestion'](_0xf47d03),this['_checkSuggestionCorrectness'](_0xf47d03,_0xd9bb22,_0x38e22d||null,_0x4dc3f4),_0xf47d03['createdAt']=_0x35025e['createdAt'],_0xf47d03['_isDataLoaded']=!0x0,_0x14d57a&&_0x14d57a['@external']){const _0x49c20e=_0x14d57a['@external'],_0x883508=this['_getExternalAuthor'](_0x49c20e['authorName']);_0xf47d03['authoredAt']=_0x49c20e['createdAt'],_0xf47d03['author']=_0x883508,_0xf47d03['isExternal']=!0x0;}else _0xf47d03['authoredAt']=_0x35025e['createdAt'];switch(_0x35025e['data']&&(_0xf47d03['data']=_0x35025e['data']),_0x35025e['attributes']&&(_0xf47d03['attributes']=_0x35025e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf47d03['_saved']=!0x0),this['_suggestionState']['get'](_0xf47d03)){case'notReady':this['_suggestionState']['set'](_0xf47d03,'dataReady');break;case'markerReady':_0xf47d03['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf47d03])),this['_refreshSuggestionsChain'](new Set([_0xf47d03])),this['_suggestionState']['set'](_0xf47d03,'ready'),this['fire']('suggestionLoaded',_0xf47d03)):this['_suggestionState']['set'](_0xf47d03,'removed');}return _0xf47d03;}['acceptSuggestion'](_0x473c34){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb0181f of _0x473c34['getAllAdjacentSuggestions']())_0xb0181f['accept']();});});}['discardSuggestion'](_0x1ef580){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x290a60 of _0x1ef580['getAllAdjacentSuggestions']())_0x290a60['discard']();});});}['enableCommand'](_0xc88ced,_0x25470a){const _0x6e9dc1=this['editor']['commands']['get'](_0xc88ced);if(!_0x6e9dc1)throw new _0x4bfcae('track-changes-command-not-found',this,{'commandName':_0xc88ced});if(this['_enabledCommands']['has'](_0x6e9dc1))throw new _0x4bfcae('track-changes-enable-command-twice',this,{'commandName':_0xc88ced});this['_enabledCommands']['add'](_0x6e9dc1),_0x25470a&&_0x6e9dc1['on']('execute',(_0xfa8263,_0x26fde8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26fde8['length']>0x0&&_0x26fde8[_0x26fde8['length']-0x1]&&_0x26fde8[_0x26fde8['length']-0x1]['forceDefaultExecution']?_0x26fde8['pop']():(_0xfa8263['return']=_0x25470a((..._0x499b00)=>_0x6e9dc1['execute'](..._0x499b00,{'forceDefaultExecution':!0x0}),..._0x26fde8),_0xfa8263['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e6a57){let _0x389b68,_0x3fcf25;const _0x5248d7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x389b68=_0x4e6a57();}catch(_0x632ced){_0x3fcf25=_0x632ced;}return _0x5248d7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3fcf25&&_0x4bfcae['rethrowUnexpectedError'](_0x3fcf25,this),_0x389b68;}['markInsertion'](_0x51cf90,_0x47b092=null,_0x1360a0={}){if(_0x51cf90['isCollapsed'])return null;const _0x27d1ca=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x28de0b,meta:_0x172761}of this['_findSuggestions'](_0x51cf90,'insertion'))if(_0x172761['isOwn']){if(!_0x172761['isNextTo']){if(_0x172761['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x28de0b,_0x1360a0))continue;return _0x28de0b;}if(Lt(_0x28de0b,_0x1360a0))return _0x28de0b;this['_breakSuggestionMarker'](_0x28de0b,_0x51cf90['start'],_0x51cf90['end']);break;}if(_0x47b092==_0x28de0b['subType']&&Lt(_0x28de0b,_0x1360a0)){const _0x19f780=_0x28de0b['getFirstRange']();return _0x19f780['start']['isEqual'](_0x51cf90['end'])?this['_setSuggestionRange'](_0x28de0b,this['_model']['createRange'](_0x51cf90['start'],_0x19f780['end'])):this['_setSuggestionRange'](_0x28de0b,this['_model']['createRange'](_0x19f780['start'],_0x51cf90['end'])),_0x28de0b;}}const _0x2d7303=_0x25d75f(),_0x5d2a71=_0x27d1ca['id'],_0xaa2466=_0x47b092?'insertion:'+_0x47b092:'insertion',_0x2c7066=this['_setSuggestionData']({'id':_0x2d7303,'type':_0xaa2466,'createdAt':new Date(),'authorId':_0x5d2a71,'attributes':_0x1360a0});return this['_addSuggestionMarker'](_0xaa2466,_0x2d7303,_0x5d2a71,_0x51cf90),_0x2c7066;}['markMultiRangeInsertion'](_0x4da0f6,_0xb7e613='multi',_0x49d284={}){const _0x18e05e=this['editor']['plugins']['get']('Users')['me'],_0x206d2f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb7e613,'join');for(const _0x49a13d of this['getSuggestions']())if(_0x49a13d['author']['id']==_0x18e05e['id']&&'insertion'==_0x49a13d['type']&&_0x49a13d['subType']==_0xb7e613&&Lt(_0x49a13d,_0x49d284)&&(_0x206d2f(_0x49a13d['getRanges'](),_0x4da0f6)||_0x206d2f(_0x4da0f6,_0x49a13d['getRanges']()))){for(const _0x23f000 of _0x4da0f6)_0x49a13d['addRange'](_0x23f000);return _0x49a13d;}for(const {suggestion:_0x56e3e6,meta:_0x36d318}of this['_findSuggestions'](_0x4da0f6,'insertion')){if(!_0x36d318['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36d318['containsRangeInObject'])continue;if(!Lt(_0x56e3e6,_0x49d284))continue;let _0x2c10bd=!0x0;for(const _0x16fec2 of _0x56e3e6['getRanges']())for(const _0xba1a28 of _0x4da0f6)if(!_0x16fec2['containsRange'](_0xba1a28)){_0x2c10bd=!0x1;break;}if(_0x2c10bd)return _0x56e3e6;}const _0x5515cb=_0x25d75f(),_0x451c51=_0x18e05e['id'],_0x2659c1='insertion:'+_0xb7e613,_0xeaf6ce=this['_setSuggestionData']({'id':_0x5515cb,'type':_0x2659c1,'createdAt':new Date(),'authorId':_0x451c51,'attributes':_0x49d284});for(const _0x23e463 of _0x4da0f6)this['_addSuggestionMarker'](_0x2659c1,_0x5515cb,_0x451c51,_0x23e463,u['getMultiRangeId']());return _0xeaf6ce;}['markInlineFormat'](_0xd4a598,_0xed2e7,_0x26d5b7=null,_0x42c8d9={}){if(_0x26d5b7=_0x26d5b7||Vt(_0xed2e7),_0xd4a598['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xa11529=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26d5b7,'accept');return this['forceDefaultExecution'](()=>_0xa11529([_0xd4a598],_0xed2e7,_0x42c8d9)),null;}const _0x1879b7=this['editor']['plugins']['get']('Users')['me'],_0x3cd4da=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x501d63,meta:_0x164e7e}of this['_findSuggestions'](_0xd4a598,'insertion'))_0x164e7e['isOwn']&&!_0x164e7e['isInsideObject']&&_0x3cd4da['push'](..._0x501d63['getRanges']());}const _0x1a3c8f=function(_0x16c05a,_0x5466e8){const _0x84430f=[];for(const _0x33a6cf of _0x5466e8){const _0x29fe0a=_0x16c05a['getIntersection'](_0x33a6cf);_0x29fe0a&&_0x84430f['push'](_0x29fe0a);}return _0x84430f;}(_0xd4a598,_0x3cd4da),_0x54dee3=function(_0xf2ba95,_0x4a7ee2){const _0x2427ac=[_0xf2ba95];for(const _0x253f28 of _0x4a7ee2){let _0x2cac7b=0x0;for(;_0x2cac7b<_0x2427ac['length'];){const _0x3b4288=_0x2427ac[_0x2cac7b]['getDifference'](_0x253f28);_0x2427ac['splice'](_0x2cac7b,0x1,..._0x3b4288),_0x2cac7b+=_0x3b4288['length'];}}return _0x2427ac;}(_0xd4a598,_0x3cd4da);_0x1a3c8f['length']&&this['_model']['change'](()=>{for(const _0x4bc330 of _0x1a3c8f){const _0x514303=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26d5b7,'accept');this['forceDefaultExecution'](()=>_0x514303([_0x4bc330],_0xed2e7,_0x42c8d9));}});for(const _0x2318a7 of _0x54dee3){let _0x26cf4e=null,_0x28487e=_0x2318a7['start'],_0x4f0882=_0x2318a7['end'];for(const {suggestion:_0x1769b3,meta:_0x106c76}of this['_findSuggestions'](_0x2318a7,'formatInline')){if(!_0x106c76['isOwn'])continue;if(_0x1769b3['subType']!=_0x26d5b7)continue;if(!Lt(_0x1769b3,_0x42c8d9))continue;const _0x5169e7=_0x1769b3['getFirstRange']();if(_0x5169e7['containsRange'](_0x2318a7,!0x0))return null;_0x28487e=_0x28487e['isBefore'](_0x5169e7['start'])?_0x28487e:_0x5169e7['start'],_0x4f0882=_0x4f0882['isAfter'](_0x5169e7['end'])?_0x4f0882:_0x5169e7['end'],_0x26cf4e?_0x5169e7['start']['isBefore'](_0x26cf4e['getFirstRange']()['start'])?(_0x26cf4e['removeMarkers'](),_0x26cf4e=_0x1769b3):_0x1769b3['removeMarkers']():_0x26cf4e=_0x1769b3;}const _0x1b55c9=this['_model']['createRange'](_0x28487e,_0x4f0882);if(_0x26cf4e)this['_setSuggestionRange'](_0x26cf4e,_0x1b55c9);else{const _0x5b54ae=_0x25d75f(),_0x4e13ff=_0x1879b7['id'];this['_setSuggestionData']({'id':_0x5b54ae,'type':'formatInline:'+_0x26d5b7,'data':_0xed2e7,'createdAt':new Date(),'authorId':_0x4e13ff,'attributes':_0x42c8d9}),this['_addSuggestionMarker']('formatInline:'+_0x26d5b7,_0x5b54ae,_0x4e13ff,_0x1b55c9);}}return null;}['markBlockFormat'](_0x1b6387,_0x289ba3,_0x4a9677=[],_0x3fe626=null,_0x20663e={}){_0x289ba3['formatGroupId']||(_0x289ba3['formatGroupId']=_0x289ba3['commandName']),_0x289ba3['multipleBlocks']=_0x1b6387['is']('range'),_0x3fe626=_0x3fe626||Vt(_0x289ba3);const _0x27a326=_0x4a9677['map'](_0x84dd1b=>Gt(_0x84dd1b,this['_model'])),_0x46979b=_0x1b6387['is']('range')?_0x1b6387:Gt(_0x1b6387,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2e056c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe626,'accept');return this['forceDefaultExecution'](()=>_0x2e056c([_0x46979b],_0x289ba3,_0x20663e)),null;}_0x27a326['push'](_0x46979b);let _0x55c4e9=!0x0;for(const _0x37591a of _0x27a326)if(!this['_rangeIsInLocalUserInsertion'](_0x37591a)){_0x55c4e9=!0x1;break;}if(_0x55c4e9&&'always'!==this['_trackFormatChanges']){const _0x197b4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe626,'accept');return this['forceDefaultExecution'](()=>_0x197b4d([_0x46979b],_0x289ba3,_0x20663e)),null;}let _0x538ee1=null,_0x302c77=_0x46979b['start'],_0x481147=_0x46979b['end'];for(const {suggestion:_0xd37fd6,meta:_0x2210fb}of this['_findSuggestions'](_0x46979b,'formatBlock')){if(!_0x2210fb['isOwn'])continue;if(_0x2210fb['isNextTo']||_0x2210fb['containsRangeInObject']||_0x2210fb['isInsideObject'])continue;if(_0xd37fd6['data']['formatGroupId']!=_0x289ba3['formatGroupId'])continue;if(!Lt(_0xd37fd6,_0x20663e))continue;const _0x390269=_0xd37fd6['getFirstRange']();if(_0xd37fd6['subType']==_0x3fe626){if(_0x390269['containsRange'](_0x46979b,!0x0))return null;_0x302c77=_0x302c77['isBefore'](_0x390269['start'])?_0x302c77:_0x390269['start'],_0x481147=_0x481147['isAfter'](_0x390269['end'])?_0x481147:_0x390269['end'],_0x538ee1?_0x390269['start']['isBefore'](_0x538ee1['getFirstRange']()['start'])?(_0x538ee1['removeMarkers'](),_0x538ee1=_0xd37fd6):_0xd37fd6['removeMarkers']():_0x538ee1=_0xd37fd6;}else{const _0x2489d7=_0x46979b['getIntersection'](_0x390269);this['_cutOutSuggestionMarker'](_0xd37fd6,_0x2489d7);}}const _0x31006f=this['editor']['plugins']['get']('Users')['me'],_0x5eb13f=_0x25d75f(),_0x137b0e=_0x31006f['id'];if(_0x538ee1)return this['_setSuggestionRange'](_0x538ee1,this['_model']['createRange'](_0x302c77,_0x481147)),_0x538ee1;{const _0x57fcc2=this['_setSuggestionData']({'id':_0x5eb13f,'type':'formatBlock:'+_0x3fe626,'data':_0x289ba3,'createdAt':new Date(),'authorId':_0x137b0e,'attributes':_0x20663e});return this['_addSuggestionMarker']('formatBlock:'+_0x3fe626,_0x5eb13f,_0x137b0e,this['_model']['createRange'](_0x302c77,_0x481147)),_0x57fcc2;}}['markMultiRangeBlockFormat'](_0x495883,_0x329130,_0xb227fd=[],_0x55559e=null,_0x484379={}){_0x329130['formatGroupId']||(_0x329130['formatGroupId']=_0x329130['commandName']);const _0x5042b5=_0x495883[0x0];_0x329130['multipleBlocks']=_0x5042b5['is']('range'),_0x55559e=_0x55559e||Vt(_0x329130);const _0x374dda=_0xb227fd['map'](_0x4fe635=>Gt(_0x4fe635,this['_model'])),_0x1ce959=_0x5042b5['is']('range')?_0x495883:_0x495883['map'](_0x342e00=>Gt(_0x342e00,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1f87d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55559e,'accept');return this['forceDefaultExecution'](()=>_0x1f87d5(_0x1ce959,_0x329130,_0x484379)),null;}_0x374dda['push'](..._0x1ce959);let _0x388d0e=!0x0;for(const _0x361fb7 of _0x374dda)if(!this['_rangeIsInLocalUserInsertion'](_0x361fb7)){_0x388d0e=!0x1;break;}if(_0x388d0e&&'always'!==this['_trackFormatChanges']){const _0x35167a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55559e,'accept');return this['forceDefaultExecution'](()=>_0x35167a(_0x1ce959,_0x329130,_0x484379)),null;}const _0x22209a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a6a6b of this['getSuggestions']()){if(_0x3a6a6b['author']['id']!=_0x22209a['id'])continue;if('formatBlock'!=_0x3a6a6b['type']||_0x3a6a6b['data']['formatGroupId']!=_0x329130['formatGroupId'])continue;if(!Lt(_0x3a6a6b,_0x484379))continue;const _0x4578c1=_0x3a6a6b['subType']==_0x55559e;for(let _0xb3bed9=0x0;_0xb3bed9<_0x1ce959['length'];_0xb3bed9++){const _0x2f5661=_0x1ce959[_0xb3bed9];for(const _0x146b25 of _0x3a6a6b['getMarkers']()){const _0x5e3ed2=_0x146b25['getRange']();if(_0x2f5661['isEqual'](_0x5e3ed2)){_0x4578c1?(_0x1ce959['splice'](_0xb3bed9,0x1),_0xb3bed9--):_0x3a6a6b['removeMarker'](_0x146b25['name']);break;}}}}if(0x0==_0x1ce959['length'])return null;const _0x1a8c9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55559e,'join');for(const _0x495269 of this['getSuggestions']())if(_0x495269['author']['id']==_0x22209a['id']&&'formatBlock'==_0x495269['type']&&_0x495269['data']['formatGroupId']==_0x329130['formatGroupId']&&_0x495269['subType']==_0x55559e&&Lt(_0x495269,_0x484379)&&(_0x1a8c9c(_0x495269['getRanges'](),_0x1ce959)||_0x1a8c9c(_0x1ce959,_0x495269['getRanges']()))){for(const _0x3ac4c4 of _0x1ce959)_0x495269['addRange'](_0x3ac4c4);return _0x495269;}const _0xc1c60e=_0x25d75f(),_0x2df012=_0x22209a['id'],_0x42eb75='formatBlock:'+_0x55559e,_0x2bbdec=this['_setSuggestionData']({'id':_0xc1c60e,'type':_0x42eb75,'data':_0x329130,'createdAt':new Date(),'authorId':_0x2df012,'attributes':_0x484379});for(const _0x15b1fd of _0x1ce959)this['_addSuggestionMarker'](_0x42eb75,_0xc1c60e,_0x2df012,_0x15b1fd,u['getMultiRangeId']());return _0x2bbdec;}['markDeletion'](_0x3a8cb6,_0x1ba425=null,_0x457909={}){if(_0x3a8cb6['isCollapsed'])return null;const _0x53d61a=this['editor']['plugins']['get']('Users')['me'],_0x1ad8c0=new _0x190d08(_0x3a8cb6['start'],_0x3a8cb6['end']);for(const {suggestion:_0x3ca57c,meta:_0x485ea6}of this['_findSuggestions'](_0x1ad8c0,'insertion'))if(_0x485ea6['isOwn']&&!_0x485ea6['isNextTo']){if(_0x3ca57c['isMultiRange']){const _0x36298e=_0x3ca57c['getRanges']()['filter'](_0x2567c7=>'$graveyard'!=_0x2567c7['root']['rootName']);_0x36298e['every'](_0x391fa8=>_0x1ad8c0['containsRange'](_0x391fa8,!0x0))&&_0x3ca57c['discard']();if(_0x36298e['some'](_0x22a010=>_0x22a010['containsRange'](_0x1ad8c0,!0x0))){const _0x497f76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ba425,'accept');return this['forceDefaultExecution'](()=>_0x497f76([_0x1ad8c0],null,_0x457909)),null;}}else{const _0x5cb38c=_0x1ad8c0['getIntersection'](_0x3ca57c['getFirstRange']());null!==_0x5cb38c&&_0x3ca57c['_onDiscard']([_0x5cb38c],null,_0x457909);}}if(_0x1ad8c0['detach'](),_0x1ad8c0['isCollapsed']||'$graveyard'==_0x1ad8c0['root']['rootName'])return null;let _0x19658c=null,_0x12e57c=_0x1ad8c0['start'],_0x4f9777=_0x1ad8c0['end'];const _0x4cf731=this['_findSuggestions'](_0x1ad8c0,'deletion');for(const {suggestion:_0x3ca3e8,meta:_0x29a168}of _0x4cf731){const _0x21cdd1=this['_model']['createRange'](_0x12e57c,_0x4f9777);if(_0x29a168['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29a168['containsRangeInObject']&&!_0x29a168['isInsideObject'])){if(_0x3ca3e8['isMultiRange']){if(!Lt(_0x3ca3e8,_0x457909))continue;let _0x10d168=!0x0;for(const _0x5c94d4 of _0x3ca3e8['getRanges']()){if(_0x5c94d4['containsRange'](_0x21cdd1,!0x0))return _0x3ca3e8;_0x21cdd1['containsRange'](_0x5c94d4)||(_0x10d168=!0x1);}_0x10d168&&_0x3ca3e8['discard']();}else{const _0x24a821=_0x3ca3e8['getFirstRange']();if(_0x24a821['containsRange'](_0x21cdd1,!0x0))return _0x3ca3e8;if(!Lt(_0x3ca3e8,_0x457909)){_0x21cdd1['containsRange'](_0x24a821)?_0x3ca3e8['removeMarkers']():_0x24a821['containsPosition'](_0x12e57c)?_0x12e57c=_0x24a821['end']:_0x24a821['containsPosition'](_0x4f9777)&&(_0x4f9777=_0x24a821['start']);continue;}_0x12e57c=_0x12e57c['isBefore'](_0x24a821['start'])?_0x12e57c:_0x24a821['start'],_0x4f9777=_0x4f9777['isAfter'](_0x24a821['end'])?_0x4f9777:_0x24a821['end'],_0x457909=Object['assign']({},_0x3ca3e8['attributes']),_0x19658c?_0x24a821['start']['isBefore'](_0x19658c['getFirstRange']()['start'])?(_0x19658c['removeMarkers'](),_0x19658c=_0x3ca3e8):_0x3ca3e8['removeMarkers']():_0x19658c=_0x3ca3e8;}}}if(_0x19658c)return this['_setSuggestionRange'](_0x19658c,this['_model']['createRange'](_0x12e57c,_0x4f9777)),_0x19658c;{const _0x338f3b=_0x25d75f(),_0xe5e509=this['_model']['createRange'](_0x12e57c,_0x4f9777),_0x56d252=_0x53d61a['id'],_0x225d11=_0x1ba425?'deletion:'+_0x1ba425:'deletion',_0x223c32=this['_setSuggestionData']({'id':_0x338f3b,'type':_0x225d11,'createdAt':new Date(),'authorId':_0x56d252,'attributes':_0x457909});return this['_addSuggestionMarker'](_0x225d11,_0x338f3b,_0x56d252,_0xe5e509),_0x223c32;}}['markMultiRangeDeletion'](_0x15b660,_0x178945='multi',_0x30840c={}){const _0xa641b9=this['editor']['plugins']['get']('Users')['me'],_0x320dc3=_0x15b660['map'](_0x1fc6ae=>new _0x190d08(_0x1fc6ae['start'],_0x1fc6ae['end'])),_0x2e1447=new Set();for(const {suggestion:_0x4c8db4,meta:_0xab646d}of this['_findSuggestions'](_0x320dc3,'insertion'))_0xab646d['isOwn']&&!_0xab646d['isNextTo']&&_0x2e1447['add'](_0x4c8db4);for(const _0xf8a048 of _0x2e1447)if(_0xf8a048['isMultiRange']){const _0x2c7654=_0xf8a048['getRanges']();(!_0xf8a048['attributes']||!_0xf8a048['attributes']['skipNestingCheck'])&&(_0x2c7654['every'](_0x45767e=>_0x320dc3['some'](_0x2f00fc=>_0x2f00fc['containsRange'](_0x45767e,!0x0)))&&_0xf8a048['discard']());if(_0x320dc3['every'](_0x59bd7a=>_0x2c7654['some'](_0x4ae4e4=>_0x4ae4e4['containsRange'](_0x59bd7a,!0x0)))){const _0x82da8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x178945,'accept');return this['forceDefaultExecution'](()=>_0x82da8(_0x15b660,null,_0x30840c)),null;}}else{const _0x242e94=_0xf8a048['getFirstRange']();_0x320dc3['some'](_0x45ed60=>_0x45ed60['containsRange'](_0x242e94,!0x0))&&_0xf8a048['discard']();if(_0x320dc3['every'](_0x1bfe81=>_0x242e94['containsRange'](_0x1bfe81,!0x0))){const _0xb0d158=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x178945,'accept');return this['forceDefaultExecution'](()=>_0xb0d158(_0x320dc3,null,_0x30840c)),null;}}const _0x2bdf3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x178945,'join');let _0x405e30=null;for(const _0x1465b9 of this['getSuggestions']())if(_0x1465b9['author']['id']==_0xa641b9['id']&&_0x1465b9['isInContent']&&'deletion'==_0x1465b9['type']&&_0x1465b9['subType']==_0x178945&&Lt(_0x1465b9,_0x30840c)&&(_0x2bdf3d(_0x1465b9['getRanges'](),_0x320dc3)||_0x2bdf3d(_0x320dc3,_0x1465b9['getRanges']()))){if(_0x405e30){if(_0x1465b9['commentThread']&&_0x1465b9['commentThread']['length'])continue;for(const _0x3560ea of _0x1465b9['getRanges']())_0x405e30['isIntersectingWithRange'](_0x3560ea)||_0x405e30['addRange'](_0x3560ea);_0x1465b9['removeMarkers']();}else{_0x405e30=_0x1465b9;for(const _0x5b464c of _0x320dc3)_0x1465b9['isIntersectingWithRange'](_0x5b464c)||_0x1465b9['addRange'](_0x5b464c);}}if(_0x405e30)return _0x405e30;_0x2e1447['clear']();for(const {suggestion:_0x5b396d,meta:_0x505b4a}of this['_findSuggestions'](_0x320dc3,'deletion'))_0x505b4a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x505b4a['containsRangeInObject']&&!_0x505b4a['isInsideObject'])&&Lt(_0x5b396d,_0x30840c)&&_0x2e1447['add'](_0x5b396d);for(const _0x553501 of _0x2e1447){const _0x28f581=_0x553501['getRanges']();if(!_0x30840c||!_0x30840c['skipNestingCheck']){if(_0x320dc3['every'](_0xe99a5=>_0x28f581['some'](_0x26e25a=>_0x26e25a['containsRange'](_0xe99a5,!0x0))))return _0x553501;}(!_0x553501['attributes']||!_0x553501['attributes']['skipNestingCheck'])&&(_0x28f581['every'](_0x219220=>_0x320dc3['some'](_0x1609d8=>_0x1609d8['containsRange'](_0x219220,!0x0)))&&_0x553501['discard']());}const _0xfa3691=_0x25d75f(),_0x44e844=_0xa641b9['id'],_0x4fafb4='deletion:'+_0x178945,_0x5da863=this['_setSuggestionData']({'id':_0xfa3691,'type':_0x4fafb4,'createdAt':new Date(),'authorId':_0x44e844,'attributes':_0x30840c});for(const _0x5d199d of _0x320dc3)_0x5d199d['detach'](),_0x5d199d['isCollapsed']||'$graveyard'==_0x5d199d['root']['rootName']||this['_addSuggestionMarker'](_0x4fafb4,_0xfa3691,_0x44e844,_0x5d199d,u['getMultiRangeId']());return _0x5da863;}['markAttributeChange'](_0x2aef3d,_0x177851,_0x34461c,_0x4407cf,_0x512b4d){if(_0x2aef3d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x14820b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bc55e=Array['from'](this['_suggestions']['values']())['filter'](_0x261b6a=>'attribute'==_0x261b6a['type']&&_0x261b6a['data']['key']==_0x177851&&_0x261b6a['isIntersectingWithRange'](_0x2aef3d));if('default'===this['_trackFormatChanges']){const _0x269dc3=this['_findSuggestions'](_0x2aef3d,'insertion')['filter'](({meta:_0x4a1047})=>_0x4a1047['isOwn']&&!_0x4a1047['isInsideObject']&&!_0x4a1047['isNextTo'])['map'](({suggestion:_0x4ab162})=>_0x4ab162);_0x3bc55e['unshift'](..._0x269dc3);}const _0x5f259e=new Map([[_0x2aef3d,_0x34461c]]);for(const _0x17f8d5 of _0x3bc55e){const _0x494dcb='attribute'==_0x17f8d5['type']?_0x17f8d5['data']['oldValue']:void 0x0,_0x1b3dd6=_0x17f8d5['getFirstRange'](),_0x5b15c6=Array['from'](_0x5f259e['keys']())['find'](_0x3c1ca=>_0x3c1ca['isIntersecting'](_0x1b3dd6));if(!_0x5b15c6)continue;const _0xc501b5=_0x5b15c6['getDifference'](_0x1b3dd6);this['_isBlockAttribute'](_0x177851)&&'insertion'==_0x17f8d5['type']&&0x0!=_0xc501b5['length']||(_0x5f259e['delete'](_0x5b15c6),_0xc501b5['forEach'](_0x5bbc61=>{_0x5f259e['set'](_0x5bbc61,_0x34461c);}),'insertion'!=_0x17f8d5['type']&&_0x494dcb!=_0x4407cf&&_0x5f259e['set'](_0x5b15c6['getIntersection'](_0x1b3dd6),_0x494dcb));}const _0x1a608d=[];for(const [_0x1ecbd5,_0x17ff1d]of _0x5f259e){const _0x1c098d=_0x25d75f(),_0x572d91={'key':_0x177851,'oldValue':_0x17ff1d,'newValue':_0x4407cf};_0x177851['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':_0x177851});const _0x481491=('attribute:'+(_0x177851+'|'+Vt({'newValue':_0x4407cf})))['substring'](0x0,0x3c),_0x5e6ad6=this['_setSuggestionData']({'id':_0x1c098d,'type':_0x481491,'data':_0x572d91,'createdAt':new Date(),'authorId':_0x14820b,'attributes':_0x512b4d});_0x1a608d['push'](_0x5e6ad6),this['_addSuggestionMarker'](_0x481491,_0x1c098d,_0x14820b,_0x1ecbd5);}return _0x1a608d;}['enableDefaultAttributesIntegration'](_0xd86114){this['enableCommand'](_0xd86114,(_0x167d42,..._0x25ec06)=>{this['_recordAttributeChanges'](()=>{_0x167d42(..._0x25ec06);});});}['registerBlockAttribute'](_0x5001c5){this['_blockAttributeKeys']['add'](_0x5001c5);}['registerInlineAttribute'](_0x4dc449){this['_inlineAttributeKeys']['add'](_0x4dc449);}['_getAttributeKey'](_0x586c60){return'attribute'==_0x586c60['type']?_0x586c60['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb22c30,_0x3f45a3){const _0x572ed8=_0xb22c30['getFirstMarker']();this['_model']['change'](_0x22f2d0=>{_0x22f2d0['updateMarker'](_0x572ed8,{'range':_0x3f45a3});});}['_addThreadToSuggestion'](_0x42b974){const _0x427542=_0x42b974['id'],_0x193b96=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x427542)||this['_commentsRepository']['addCommentThread']({'channelId':_0x193b96,'threadId':_0x427542,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x295edd=this['_commentsRepository']['getCommentThread'](_0x427542);_0x295edd['unbind']('isRemovable'),_0x295edd['isRemovable']=!0x1,_0x42b974['commentThread']=_0x295edd;}['_checkSuggestionCorrectness'](_0xb52dd8,_0x1b9a41,_0x6d54f9,_0x54091a){if(_0xb52dd8['type']!=_0x1b9a41||_0xb52dd8['subType']!=_0x6d54f9||_0xb52dd8['creator']['id']!=_0x54091a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4bfcae('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4974ee,_0x479576){const _0x1072a5=_0x4974ee['getFirstRange']();if(_0x479576['isEqual'](_0x1072a5))_0x4974ee['removeMarkers']();else{if(_0x1072a5['containsRange'](_0x479576)){const _0xa2ff42=this['_model']['createPositionAt'](_0x479576['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4974ee,this['_model']['createRange'](_0x1072a5['start'],_0xa2ff42));const _0x595bcf=_0x25d75f(),_0x4b638a=_0x4974ee['creator']['id'],_0x900076=_0x4974ee['type']+':'+_0x4974ee['subType'];this['_setSuggestionData']({'id':_0x595bcf,'type':_0x900076,'createdAt':new Date(),'authorId':_0x4b638a,'data':_0x4974ee['data'],'attributes':_0x4974ee['attributes']});const _0x5d03d4=this['_model']['createPositionAt'](_0x479576['end']['parent'],'after'),_0x1178b9=this['_model']['createRange'](_0x5d03d4,_0x1072a5['end']);this['_addSuggestionMarker'](_0x900076,_0x595bcf,_0x4b638a,_0x1178b9);}else{if(_0x1072a5['containsPosition'](_0x479576['start'])){const _0x231cf1=this['_model']['createPositionAt'](_0x479576['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4974ee,this['_model']['createRange'](_0x1072a5['start'],_0x231cf1));}else{const _0xc026e7=this['_model']['createPositionAt'](_0x479576['end']['parent'],'after');this['_setSuggestionRange'](_0x4974ee,this['_model']['createRange'](_0xc026e7,_0x1072a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36b71c){for(const {suggestion:_0x3e39dd,meta:_0x3770c2}of this['_findSuggestions'](_0x36b71c,'insertion')){if(!_0x3770c2['isOwn'])continue;const _0x3d34d6=_0x3e39dd['getRanges']();for(const _0x15bd2a of _0x3d34d6)if(!_0x36b71c['getDifference'](_0x15bd2a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd7ee2d){const _0x569b19=this['editor']['plugins']['get']('Users')['getUser'](_0xd7ee2d);if(!_0x569b19)throw new _0x4bfcae('track-changes-user-not-found',this);return _0x569b19;}['_getExternalAuthor'](_0x5ce73c){const _0x2e42fe=this['editor']['plugins']['get']('Users'),_0x31fd77=_0x577bd6('external:'+_0x5ce73c),_0x33809a=_0x2e42fe['getUser'](_0x31fd77);return _0x33809a||_0x2e42fe['addUser']({'id':_0x31fd77,'name':_0x5ce73c});}['_createSuggestion'](_0x83a261,_0x13e903,_0x5ca7d7,_0x17ee6c,_0x1be6b5){const _0x42ae8d=this['_getAuthorFromId'](_0x17ee6c),_0x3eae73=this['_suggestionFactory']['buildSuggestion'](_0x83a261,_0x13e903,_0x5ca7d7,_0x42ae8d,_0x1be6b5,_0x11b86b=>{this['_updateSuggestionData'](_0x5ca7d7,{'attributes':_0x11b86b});const _0x4aac42=this['getSuggestion'](_0x5ca7d7);this['_joinWithAdjacentSuggestions'](new Set([_0x4aac42])),this['_refreshSuggestionsChain'](new Set([_0x4aac42]));});return this['listenTo'](_0x3eae73,'accept',()=>{this['_updateSuggestionData'](_0x5ca7d7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3eae73,'discard',()=>{this['_updateSuggestionData'](_0x5ca7d7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5ca7d7,_0x3eae73),this['_suggestionState']['set'](_0x3eae73,'notReady'),_0x3eae73;}['_splitMarkerName'](_0x43b6f7){const _0x5b2e99=_0x43b6f7['split'](':');return{'group':_0x5b2e99[0x0],'type':_0x5b2e99[0x1],'subType':_0x5b2e99['length']>=0x5?_0x5b2e99[0x2]:null,'id':_0x5b2e99['length']<0x5?_0x5b2e99[0x2]:_0x5b2e99[0x3],'authorId':_0x5b2e99['length']<0x5?_0x5b2e99[0x3]:_0x5b2e99[0x4],'markerCount':0x6==_0x5b2e99['length']?_0x5b2e99[0x5]:null};}['_breakSuggestionMarker'](_0x10c9b9,_0x16bd97,_0x18d4de){const _0x683190=_0x10c9b9['getFirstRange'](),_0x319e40=_0x683190['start'],_0x43bcaa=_0x683190['end'];this['_setSuggestionRange'](_0x10c9b9,this['_model']['createRange'](_0x319e40,_0x16bd97));const _0x4811d6=_0x25d75f(),_0x135336=_0x10c9b9['creator']['id'],_0x58879e=_0x10c9b9['type']+(_0x10c9b9['subType']?':'+_0x10c9b9['subType']:'');this['_setSuggestionData']({'id':_0x4811d6,'type':_0x58879e,'createdAt':new Date(),'authorId':_0x135336,'originalSuggestionId':_0x10c9b9['id'],'attributes':_0x10c9b9['attributes'],'data':_0x10c9b9['data']});const _0xb53b8b=this['_getAttributeKey'](_0x10c9b9);('formatBlock'==_0x10c9b9['type']||_0xb53b8b&&this['_isBlockAttribute'](_0xb53b8b))&&(_0x18d4de=this['_model']['createPositionBefore'](_0x18d4de['parent'])),this['_addSuggestionMarker'](_0x58879e,_0x4811d6,_0x135336,this['_model']['createRange'](_0x18d4de,_0x43bcaa));}['_findSuggestions'](_0x4f18b9,_0x274389=null){const _0x4265be=[],_0x18fe1d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4f18b9)||(_0x4f18b9=[_0x4f18b9]);for(const _0x91c91e of this['getSuggestions']()){if(!_0x91c91e['isInContent'])continue;if(_0x274389&&_0x91c91e['type']!=_0x274389)continue;let _0x4d3735=!0x1;for(const _0x5e74a1 of _0x91c91e['getRanges']()){for(const _0x1eb528 of _0x4f18b9){const _0x417063=_0x1eb528['start']['isEqual'](_0x5e74a1['end'])||_0x1eb528['end']['isEqual'](_0x5e74a1['start']);if(_0x417063||_0x1eb528['getIntersection'](_0x5e74a1)){const _0x29e753=_0x1eb528['containsRange'](_0x5e74a1)&&Rt(this['_model']['schema'],_0x5e74a1['start'],_0x1eb528),_0x5d442e=_0x5e74a1['containsRange'](_0x1eb528)&&Rt(this['_model']['schema'],_0x1eb528['start'],_0x5e74a1);_0x4265be['push']({'suggestion':_0x91c91e,'meta':{'isOwn':_0x18fe1d==_0x91c91e['author'],'isNextTo':_0x417063,'isInsideObject':_0x29e753,'containsRangeInObject':_0x5d442e}}),_0x4d3735=!0x0;break;}}if(_0x4d3735)break;}}return _0x4265be;}['_addSuggestionMarker'](_0xb3af54,_0x155371,_0x3c2479,_0x31b6f9,_0x1293b1){this['_model']['change'](_0x4105fd=>{let _0x541125='suggestion:'+_0xb3af54+':'+_0x155371+':'+_0x3c2479;_0x1293b1&&(_0x541125=_0x541125+':'+_0x1293b1),_0x4105fd['addMarker'](_0x541125,{'range':_0x31b6f9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4d05b5){const _0x243793=_0x4d05b5['previous'],_0x269feb=_0x4d05b5['next'];_0x4d05b5['previous']=null,_0x4d05b5['next']=null,null!=_0x243793&&_0x243793['next']==_0x4d05b5&&(_0x243793['next']=_0x269feb),null!=_0x269feb&&_0x269feb['previous']==_0x4d05b5&&(_0x269feb['previous']=_0x243793),'ready'==this['_suggestionState']['get'](_0x4d05b5)&&(this['_suggestionState']['set'](_0x4d05b5,'removed'),this['fire']('suggestionUnloaded',_0x4d05b5,_0x243793,_0x269feb));}['_setSuggestionData'](_0x8896c4){const _0x573c59=_0x8896c4['id'],_0x59e668=this['addSuggestionData'](_0x8896c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x190445=this['editor']['plugins']['get']('PendingActions'),_0x175c0d=_0x59e668['hasComments'],_0xc8c5db=_0x59e668['subType']?_0x59e668['type']+':'+_0x59e668['subType']:_0x59e668['type'],_0x1f58fb=this['editor']['locale'],_0xf016b0=_0x190445['add'](o(_0x1f58fb,'PENDING_ACTION_SUGGESTION')),_0x1cae50={'id':_0x573c59,'type':_0xc8c5db,'hasComments':_0x175c0d,'data':_0x8896c4['data']||null,'originalSuggestionId':_0x8896c4['originalSuggestionId']||null,'attributes':_0x59e668['attributes']};this['_adapter']['addSuggestion'](_0x1cae50)['then'](_0x5ca10c=>{_0x59e668['_saved']=!0x0,_0x190445['remove'](_0xf016b0),_0x5ca10c&&_0x5ca10c['createdAt']&&(this['_suggestions']['get'](_0x573c59)['createdAt']=_0x5ca10c['createdAt']);})['catch'](_0x28af93=>{throw _0x1b0069('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59e668['discard']();}),_0x59e668['stopListening'](),this['_suggestions']['delete'](_0x59e668['id']),this['_suggestionState']['delete'](_0x59e668),_0x28af93;});}return _0x59e668;}['_isBlockAttribute'](_0x2c5525){return this['_blockAttributeKeys']['has'](_0x2c5525);}['_updateSuggestionData'](_0x461b74,_0x14a38e){const _0xbceadf=this['editor']['plugins']['get']('PendingActions'),_0x372a54=this['getSuggestion'](_0x461b74);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x372a54['_saved']){const _0x2b60e5=_0xbceadf['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x461b74,_0x14a38e)['then'](()=>{_0xbceadf['remove'](_0x2b60e5);});}else _0x372a54['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x461b74,_0x14a38e);});}}['_getSuggestionData'](_0x5c318f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4bfcae('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5c318f);}['_handleNewSuggestionMarker'](_0x5047bb){const {id:_0x1105f4,type:_0x49a14e,subType:_0x452a78,authorId:_0x475e31}=this['_splitMarkerName'](_0x5047bb),_0x4b5fbf=this['_suggestions']['get'](_0x1105f4)||this['_createSuggestion'](_0x49a14e,_0x452a78,_0x1105f4,_0x475e31,{});switch(this['_checkSuggestionCorrectness'](_0x4b5fbf,_0x49a14e,_0x452a78,_0x475e31),this['_suggestionState']['get'](_0x4b5fbf)){case'notReady':this['_getSuggestionData'](_0x1105f4)['then'](_0x3262d5=>{let _0x3fe667=Promise['resolve']();_0x3262d5['hasComments']&&(_0x3fe667=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1105f4})),_0x3fe667['then'](()=>{this['addSuggestionData'](_0x3262d5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b5fbf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1105f4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b5fbf,'ready'),this['fire']('suggestionLoaded',_0x4b5fbf);break;case'ready':this['fire']('suggestionChanged',_0x4b5fbf);}return _0x4b5fbf['addMarkerName'](_0x5047bb),_0x4b5fbf;}['_refreshSuggestionsChain'](_0x117e66){const _0x4ebe5a=Array['from'](_0x117e66),_0x229ba3=_0x4ebe5a['filter'](_0x39e154=>'attribute'==_0x39e154['type']);this['_refreshAttributeSuggestionsChain'](_0x229ba3);const _0x5db7b2=_0x4ebe5a['filter'](_0x5d48cc=>!_0x5d48cc['isMultiRange']&&'attribute'!=_0x5d48cc['type']),_0x4e0ebf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe25808=>!_0xe25808['isMultiRange']&&'attribute'!=_0xe25808['type']),_0x788b1c=_0x4e0ebf['filter'](_0x2006de=>!_0x117e66['has'](_0x2006de)),_0x4488d5=new Map(_0x4e0ebf['map'](_0x4a6ea8=>[_0x4a6ea8,this['_suggestionFactory']['getSuggestionCallback'](_0x4a6ea8['type'],_0x4a6ea8['subType'],'chain')])),_0x45fe87=new Map(_0x4e0ebf['map'](_0x8f200c=>[_0x8f200c,_0x8f200c['getFirstRange']()])),_0x21edb1=new Set(),_0x1aaed6=new Set();for(let _0x21f86b=0x0;_0x21f86b<_0x5db7b2['length'];_0x21f86b++)_0x5746f7(_0x5db7b2[_0x21f86b],_0x5db7b2,_0x21f86b+0x1);for(let _0x485cd6=0x0;_0x485cd6<_0x5db7b2['length'];_0x485cd6++)_0x5746f7(_0x5db7b2[_0x485cd6],_0x788b1c,0x0);const _0x42da91=new Set();for(let _0x2b3a40=0x0;_0x2b3a40<_0x5db7b2['length'];_0x2b3a40++){const _0x147181=_0x5db7b2[_0x2b3a40];!_0x1aaed6['has'](_0x147181)&&_0x147181['previous']&&(_0x42da91['add'](_0x147181['previous']),_0x147181['previous']['next']===_0x147181&&(_0x147181['previous']['next']=null),_0x147181['previous']=null),!_0x21edb1['has'](_0x147181)&&_0x147181['next']&&(_0x42da91['add'](_0x147181['next']),_0x147181['next']['previous']===_0x147181&&(_0x147181['next']['previous']=null),_0x147181['next']=null);}function _0x5746f7(_0x92fa27,_0x412dea,_0x6f79af){for(let _0x39c428=_0x6f79af;_0x39c428<_0x412dea['length'];_0x39c428++){const _0x7332=_0x55fb27(_0x92fa27,_0x412dea[_0x39c428]);_0x7332&&(_0x7332[0x0]['next']=_0x7332[0x1],_0x7332[0x1]['previous']=_0x7332[0x0],_0x21edb1['add'](_0x7332[0x0]),_0x1aaed6['add'](_0x7332[0x1]));}}function _0x55fb27(_0x490b89,_0x54f2ba){if(_0x490b89['author']['id']!==_0x54f2ba['author']['id'])return null;const _0xc735fb=_0x4488d5['get'](_0x490b89)(_0x490b89,_0x54f2ba,_0x45fe87['get'](_0x490b89),_0x45fe87['get'](_0x54f2ba));if(!_0xc735fb)return null;return _0x4488d5['get'](_0x54f2ba)(_0x490b89,_0x54f2ba,_0x45fe87['get'](_0x490b89),_0x45fe87['get'](_0x54f2ba))?_0xc735fb[0x1]['commentThread']&&_0xc735fb[0x1]['commentThread']['length']?null:_0xc735fb:null;}_0x42da91['size']&&this['_refreshSuggestionsChain'](_0x42da91);}['_refreshAttributeSuggestionsChain'](_0xc396e9){if(0x0==_0xc396e9['length'])return;const _0x597639=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd56324=>'attribute'==_0xd56324['type']&&_0xd56324['_isDataLoaded']),_0x4d635f=[],_0x14c063=new Map();for(const _0x3dd6b2 of _0x597639){const _0x45380c=_0x577bd6(_0x3dd6b2['attributes']);_0x14c063['has'](_0x45380c)||(_0x14c063['set'](_0x45380c,_0x4d635f['length']),_0x4d635f['push']([]));const _0x409a4d=_0x14c063['get'](_0x45380c);_0x4d635f[_0x409a4d]['push'](_0x3dd6b2);}!(function(){_0x4d635f['sort']((_0x340e7d,_0x186373)=>{const _0x3ebc28=_0x340e7d[0x0]['createdAt'],_0x34111c=_0x186373[0x0]['createdAt'];return _0x3ebc28==_0x34111c?_0x340e7d[0x0]['attributes']['groupId']<_0x186373[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ebc28<_0x34111c?-0x1:0x1;});for(const _0x3de351 of _0x4d635f)_0x3de351['sort']((_0x40cf2a,_0x5b58fd)=>_0x40cf2a['id']<_0x5b58fd['id']?-0x1:0x1);}());for(let _0x3deec0=0x0;_0x3deec0<_0x4d635f['length'];_0x3deec0++){if(0x0==_0x4d635f[_0x3deec0]['length'])continue;const _0x156488=[];for(let _0x8c76de=_0x3deec0+0x1;_0x8c76de<_0x4d635f['length'];_0x8c76de++)0x0!=_0x4d635f[_0x8c76de]['length']&&_0x41a635(_0x4d635f[_0x3deec0],_0x4d635f[_0x8c76de])&&_0x156488['push'](_0x8c76de);for(const _0x4ed31e of _0x156488)_0x4d635f[_0x3deec0]=_0x4d635f[_0x3deec0]['concat'](_0x4d635f[_0x4ed31e]),_0x4d635f[_0x4ed31e]=[];}for(const _0x5050d1 of _0x4d635f)for(let _0x193d78=0x0;_0x193d78<_0x5050d1['length'];_0x193d78++)_0x5050d1[_0x193d78]['next']=_0x5050d1[_0x193d78+0x1]||null;for(const _0x4d630c of _0x4d635f)for(let _0x588244=0x0;_0x588244<_0x4d630c['length'];_0x588244++)_0x4d630c[_0x588244]['previous']=_0x4d630c[_0x588244-0x1]||null;function _0x41a635(_0x3d6d48,_0x207b99){if(_0x3d6d48[0x0]['attributes']['groupId']!==_0x207b99[0x0]['attributes']['groupId']&&_0x3d6d48[0x0]['author']!==_0x207b99[0x0]['author'])return!0x1;if(!function(_0x47f282,_0xa2a5d3){if(!_0x47f282['hasComments']&&!_0xa2a5d3['hasComments'])return!0x0;if(_0x47f282['hasComments']&&_0xa2a5d3['hasComments'])return!0x1;if(_0x47f282['hasComments']&&_0xa2a5d3['createdAt']<_0x47f282['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xa2a5d3['hasComments']&&_0x47f282['createdAt']<_0xa2a5d3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3d6d48[0x0],_0x207b99[0x0]))return!0x1;const _0x478677=Bt(_0x3d6d48[0x0]['attributes'],'groupId'),_0x5b71a7=Bt(_0x207b99[0x0]['attributes'],'groupId');if(!_0x2c5062(_0x478677,_0x5b71a7))return!0x1;return!!_0x3d6d48['every'](_0x5b2ef=>_0x207b99['some'](_0x342c72=>_0x5b2ef['getFirstRange']()['isEqual'](_0x342c72['getFirstRange']())))&&_0x207b99['every'](_0x1bf1e0=>_0x3d6d48['some'](_0x3f0fbf=>_0x1bf1e0['getFirstRange']()['isEqual'](_0x3f0fbf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd8c50e){const _0x199890=Array['from'](_0xd8c50e),_0x516a43=this['getSuggestions']({'skipNotAttached':!0x0}),_0x183127=_0x516a43['filter'](_0x114104=>!_0xd8c50e['has'](_0x114104)),_0x4f64bb=new Map(_0x199890['map'](_0x50aa4a=>[_0x50aa4a,this['_suggestionFactory']['getSuggestionCallback'](_0x50aa4a['type'],_0x50aa4a['subType'],'join')])),_0x86e5a4=new Map(_0x516a43['map'](_0x571f1b=>[_0x571f1b,_0x571f1b['getRanges']()]));for(let _0x440405=0x0;_0x440405<_0x199890['length'];_0x440405++){if(_0x5c6dd6(this,_0x199890[_0x440405],_0x199890,_0x440405+0x1))return!0x0;}for(let _0x1789d7=0x0;_0x1789d7<_0x199890['length'];_0x1789d7++){if(_0x5c6dd6(this,_0x199890[_0x1789d7],_0x183127,0x0))return!0x0;}return!0x1;function _0x5c6dd6(_0x419e8c,_0x3738ee,_0x1fbf73,_0x1b4a9d){for(let _0x2fa9dc=_0x1b4a9d;_0x2fa9dc<_0x1fbf73['length'];_0x2fa9dc++){const _0x32c53b=_0x1fbf73[_0x2fa9dc];if(_0x32c53b['type']!==_0x3738ee['type']||_0x32c53b['author']['id']!==_0x3738ee['author']['id']||_0x32c53b['subType']!==_0x3738ee['subType'])continue;if(!Pt(_0x3738ee,_0x32c53b,['groupId']))continue;if('attribute'==_0x3738ee['type']&&_0x3738ee['data']['oldValue']!=_0x32c53b['data']['oldValue'])continue;if('attribute'==_0x3738ee['type']&&_0x419e8c['_isBlockAttribute'](_0x3738ee['data']['key']))continue;if('formatBlock'==_0x3738ee['type']){const _0x27fc90=_0x419e8c['editor']['model'],_0x436f09=_0x3738ee['getContainedElement']();if(_0x436f09&&(_0x27fc90['schema']['isObject'](_0x436f09)||_0x27fc90['schema']['isLimit'](_0x436f09)))continue;}const _0x4c09d0=_0x4f64bb['get'](_0x3738ee),_0x174cc7=_0x86e5a4['get'](_0x3738ee),_0x4b3d20=_0x86e5a4['get'](_0x32c53b),_0x869ccd=_0x3738ee['commentThread']&&_0x3738ee['commentThread']['length'],_0x3f2f5c=_0x32c53b['commentThread']&&_0x32c53b['commentThread']['length'];if(!_0x869ccd&&_0x4c09d0(_0x4b3d20,_0x174cc7))return _0x419e8c['_joinSuggestions'](_0x32c53b,_0x3738ee),_0x86e5a4['delete'](_0x3738ee),!0x0;if(!_0x3f2f5c&&_0x4c09d0(_0x174cc7,_0x4b3d20))return _0x419e8c['_joinSuggestions'](_0x3738ee,_0x32c53b),_0x86e5a4['delete'](_0x32c53b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x256caf,_0x2c2aed){if(_0x256caf['isMultiRange']){for(const _0x3b8f35 of _0x2c2aed['getRanges']())_0x256caf['addRange'](_0x3b8f35);}else{const _0x57d90a=_0x2c2aed['getFirstRange']()['end'];this['_setSuggestionRange'](_0x256caf,this['_model']['createRange'](_0x256caf['getFirstRange']()['start'],_0x57d90a));}_0x2c2aed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x12e995,_0x51d89f){const _0x307bec=_0x12e995['startsWith']('format')||_0x12e995['startsWith']('attribute')?'FORMATTING':_0x12e995['toUpperCase']();return o(this['editor']['locale'],_0x51d89f+'_'+_0x307bec+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4365a5=this['editor'];if(!_0x4365a5['ui'])return;const {ariaLiveAnnouncer:_0x578e75}=_0x4365a5['ui'];_0x3f6b36(this['_model'],({left:_0x4711ad,entered:_0x32c346})=>{for(const _0x206da1 of _0x4711ad){const {group:_0x45b67f,type:_0x491b46}=this['_splitMarkerName'](_0x206da1['name']);if('suggestion'===_0x45b67f){_0x578e75['announce'](this['_getMarkerAnnouncementText'](_0x491b46,'LEAVE'));break;}}for(const _0x2ab31f of _0x32c346){const {group:_0x54045f,type:_0x4e3f86}=this['_splitMarkerName'](_0x2ab31f['name']);if('suggestion'===_0x54045f){_0x578e75['announce'](this['_getMarkerAnnouncementText'](_0x4e3f86,'ENTER'));break;}}});}['_processAttributeChanges'](_0x16b512){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3da13a=this['editor'],_0x43469b=_0x3da13a['model']['document']['differ']['getChanges']();if(0x0==_0x43469b['length'])return!0x1;const _0x24ae01=[],_0x5c73f4=_0x43469b['filter'](_0x2e730f=>'attribute'==_0x2e730f['type']),_0x1c6dff=_0x43469b['filter'](_0x1b825d=>'insert'==_0x1b825d['type']&&'$text'!=_0x1b825d['name']),_0x430446=_0x43469b['filter'](_0x290c1e=>'remove'==_0x290c1e['type']&&'$text'!=_0x290c1e['name']);for(const _0x3000bf of _0x5c73f4)_0x24ae01['push']({'key':_0x3000bf['attributeKey'],'newValue':_0x3000bf['attributeNewValue'],'oldValue':_0x3000bf['attributeOldValue'],'range':Ot(_0x3000bf['range'],_0x3da13a['model'])});for(const _0x392bf4 of _0x1c6dff){const _0x1b6070=_0x430446['find'](_0x54b778=>_0x54b778['position']['isEqual'](_0x392bf4['position']));_0x1b6070&&_0x24ae01['push']({'key':m,'newValue':_0x392bf4['name'],'oldValue':_0x1b6070['name'],'range':_0x3da13a['model']['createRangeOn'](_0x392bf4['position']['nodeAfter'])});}return 0x0!=_0x24ae01['length']&&this['_reduceExistingSuggestions'](_0x16b512,_0x24ae01);}['_processAttributeSuggestions'](_0x4d9190){let _0x8932e4=!0x1;const _0x429f80=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f7985=>_0x1f7985['data']['newRange']&&_0x1f7985['name']['startsWith']('suggestion:attribute:'));for(const _0x540d00 of _0x429f80){const {subType:_0x31af28,id:_0x5db39f}=this['_splitMarkerName'](_0x540d00['name']),_0x1a97d6=_0x31af28['split']('|')[0x0];for(const _0x15f14b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x15f14b['id']!=_0x5db39f&&'attribute'==_0x15f14b['type']&&_0x15f14b['data']&&_0x15f14b['data']['key']==_0x1a97d6&&_0x15f14b['getFirstRange']()['isIntersecting'](_0x540d00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x15f14b,_0x540d00['data']['newRange'],_0x4d9190),_0x8932e4=!0x0);}return _0x8932e4;}['_recordAttributeChanges'](_0x54e78e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x54e78e();}['_isRegisteredAttribute'](_0x23e480){const _0x5f077c=this['_isBlockAttribute'](_0x23e480),_0x215866=this['_inlineAttributeKeys']['has'](_0x23e480);return _0x5f077c||_0x215866;}['_reduceExistingSuggestions'](_0x40797e,_0x20c18e){if(0x0==_0x20c18e['length'])return!0x1;let _0x5d39e7=!0x1;for(const _0xa2680c of _0x20c18e){const _0x39e39c=this['_findSuggestions'](_0xa2680c['range'],'attribute')['filter'](_0x3c48b6=>!_0x3c48b6['meta']['isNextTo'])['map'](_0x145398=>_0x145398['suggestion']),_0x9b5904=_0x577bd6({'newValue':_0xa2680c['newValue']});_0x39e39c['filter'](_0x489e0f=>{const [_0x1790ad,_0x49d20b]=_0x489e0f['subType']['split']('|');return _0x1790ad==_0xa2680c['key']&&_0x49d20b!=_0x9b5904;})['forEach'](_0x23f408=>{this['_reduceSuggestionAttributeRange'](_0x23f408,_0xa2680c['range'],_0x40797e),_0x5d39e7=!0x0;});}return _0x5d39e7;}['_reduceSuggestionAttributeRange'](_0x44e1cd,_0xba771e,_0x251df4){const _0x3f1bf4=_0x44e1cd['getFirstRange']()['getDifference'](_0xba771e);0x0!==_0x3f1bf4['length']?0x1!==_0x3f1bf4['length']?this['_breakSuggestionMarker'](_0x44e1cd,_0xba771e['start'],_0xba771e['end']):this['_setSuggestionRange'](_0x44e1cd,_0x3f1bf4[0x0]):_0x251df4['removeMarker'](_0x44e1cd['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x59b2be){this['_editor']=_0x59b2be,this['_model']=_0x59b2be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e0e3c,_0x1552e5,_0x4dbe98,_0x1afb28,_0x31c8da,_0x57155a){return new u(this['_model'],{'type':_0x5e0e3c,'subType':_0x1552e5,'id':_0x4dbe98,'author':_0x1afb28,'creator':_0x1afb28,'attributes':_0x31c8da,'onAttributesChange':_0x57155a,'onAccept':(..._0x126af5)=>this['getSuggestionCallback'](_0x5e0e3c,_0x1552e5,'accept')(..._0x126af5),'onDiscard':(..._0x145077)=>this['getSuggestionCallback'](_0x5e0e3c,_0x1552e5,'discard')(..._0x145077)});}['registerCustomCallback'](_0xf4293a,_0x53ac23,_0xca15c0,_0x75803a){const _0x4debe7=_0xf4293a+':'+_0x53ac23+':'+_0xca15c0;this['_customCallbacks']['set'](_0x4debe7,_0x75803a);}['getSuggestionCallback'](_0x5aa9b7,_0x13cf64,_0x581998){const _0x46198c=_0x5aa9b7+':'+_0x13cf64+':'+_0x581998;return this['_customCallbacks']['get'](_0x46198c)||this['_defaultCallbacks']['get'](_0x5aa9b7+':'+_0x581998);}['_registerDefaultCallbacks'](){const _0x565c88=()=>!0x1,_0x6e691d=_0x580946=>{_0x580946['sort']((_0x3c3927,_0x4f6125)=>_0x3c3927['start']['isBefore'](_0x4f6125['start'])?0x1:-0x1),this['_model']['change'](_0x4fbac1=>{for(const _0x15d851 of _0x580946){let _0x2866b8;_0x2866b8=_0x15d851['end']['isAtEnd']&&_0x15d851['end']['parent']==_0x15d851['start']['nodeAfter']?_0x4fbac1['createSelection'](_0x15d851['start']['nodeAfter'],'on'):_0x4fbac1['createSelection'](_0x15d851),this['_model']['deleteContent'](_0x2866b8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b7b50=(_0x34bff2,_0x295d97)=>{_0x295d97&&this['_model']['change'](_0x298cd5=>{const {commandName:_0xbcfe21,commandParams:_0x27bdd7=[]}=_0x295d97,_0x374b0f=_0x34bff2['map'](_0x17a085=>(Tt(_0x17a085)&&(_0x17a085=this['_model']['createRange'](_0x17a085['end'])),_0x17a085))['filter'](_0x4eca1c=>'$graveyard'!==_0x4eca1c['root']['rootName']);if(_0x374b0f['length']<0x1)return;const _0x440075=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x27ab49=>_0x190d08['fromRange'](_0x27ab49));_0x298cd5['setSelection'](_0x374b0f);for(const _0x259c23 of this['_editor']['commands']['commands']())_0x259c23['refresh']();_0x27bdd7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xbcfe21,..._0x27bdd7);const _0x224307=_0x440075['filter'](_0x86c65a=>'$graveyard'!=_0x86c65a['root']['rootName']);_0x224307['length']>0x0&&_0x298cd5['setSelection'](_0x224307);for(const _0x5483ec of _0x440075)_0x5483ec['detach']();});},_0x42b468=(_0x37bb8a,_0x269166)=>0x1==_0x37bb8a['length']&&0x1==_0x269166['length']&&_0x37bb8a[0x0]['end']['isEqual'](_0x269166[0x0]['start']),_0x4534b7=(_0x2deb13,_0x25e1c6,_0xa84124,_0x2a9a7d)=>Ft(_0x2deb13,_0x25e1c6,_0xa84124,_0x2a9a7d,this['_model'])?[_0x2deb13,_0x25e1c6]:Ft(_0x25e1c6,_0x2deb13,_0x2a9a7d,_0xa84124,this['_model'])?[_0x25e1c6,_0x2deb13]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x565c88),this['_defaultCallbacks']['set']('insertion:discard',_0x6e691d),this['_defaultCallbacks']['set']('insertion:join',_0x42b468),this['_defaultCallbacks']['set']('insertion:chain',_0x4534b7),this['_defaultCallbacks']['set']('deletion:accept',_0x6e691d),this['_defaultCallbacks']['set']('deletion:discard',_0x565c88),this['_defaultCallbacks']['set']('deletion:join',_0x42b468),this['_defaultCallbacks']['set']('deletion:chain',_0x4534b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b7b50),this['_defaultCallbacks']['set']('formatInline:discard',_0x565c88),this['_defaultCallbacks']['set']('formatInline:join',_0x42b468),this['_defaultCallbacks']['set']('formatInline:chain',_0x565c88),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b7b50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x565c88),this['_defaultCallbacks']['set']('formatBlock:join',_0x42b468),this['_defaultCallbacks']['set']('formatBlock:chain',_0x565c88),this['_defaultCallbacks']['set']('attribute:accept',_0x565c88),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d3ee3,_0x2db2ca)=>{if(!_0x2db2ca)return;const _0x3104c0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x484cd7=>{if(_0x2db2ca['key']==m)for(const _0x313b4e of _0x1d3ee3){const _0x33139e=_0x313b4e['start']['nodeAfter'],_0x387e84=_0x2db2ca['oldValue'];_0x484cd7['rename'](_0x33139e,_0x387e84);}else{if(_0x3104c0['_isBlockAttribute'](_0x2db2ca['key'])){for(const _0x18e3b4 of _0x1d3ee3)void 0x0!==_0x2db2ca['oldValue']?_0x484cd7['setAttribute'](_0x2db2ca['key'],_0x2db2ca['oldValue'],_0x18e3b4['start']['nodeAfter']):_0x484cd7['removeAttribute'](_0x2db2ca['key'],_0x18e3b4['start']['nodeAfter']);}else{for(const _0x1d1106 of _0x1d3ee3)_0x2db2ca['oldValue']?_0x484cd7['setAttribute'](_0x2db2ca['key'],_0x2db2ca['oldValue'],_0x1d1106):_0x484cd7['removeAttribute'](_0x2db2ca['key'],_0x1d1106);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x42b468);}}function Rt(_0x11af8f,_0x5a0810,_0x4983df){for(const _0x42088f of _0x5a0810['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42088f['root']==_0x42088f)return!0x1;if(!_0x4983df['containsItem'](_0x42088f))return!0x1;if(_0x11af8f['isObject'](_0x42088f)||_0x11af8f['isLimit'](_0x42088f))return!0x0;}return!0x1;}function Tt(_0x598701){return _0x598701['end']['parent']==_0x598701['start']['nodeAfter']&&_0x598701['end']['isAtStart'];}function Et(_0x59a445,_0x10bbce,_0x5ada72,_0x3dae4e){const _0x3305a0=_0x37a3fa=>!_0x37a3fa['item']['is']('$textProxy')&&!_0x3dae4e['isObject'](_0x37a3fa['item']),_0x23dffa=_0x59a445['start']['getLastMatchingPosition'](_0x3305a0),_0x208601=_0x59a445['end']['getLastMatchingPosition'](_0x3305a0,{'direction':'backward'});return(!_0x59a445['start']['isEqual'](_0x23dffa)||!_0x59a445['end']['isEqual'](_0x208601))&&(_0x23dffa['isBefore'](_0x208601)?_0x5ada72['updateMarker'](_0x10bbce,{'range':_0x5ada72['createRange'](_0x23dffa,_0x208601)}):_0x5ada72['removeMarker'](_0x10bbce),!0x0);}function Vt(_0x17aa79){return _0x577bd6(_0x17aa79);}function Ut(_0x5e15f8){const _0x48b355=_0x5e15f8['start']['nodeAfter'];return _0x48b355&&_0x48b355['is']('element');}function Ot(_0x14dae0,_0x2d9559){return null==_0x14dae0['end']['nodeBefore']&&_0x14dae0['end']['parent']==_0x14dae0['start']['nodeAfter']?Gt(_0x14dae0['start']['nodeAfter'],_0x2d9559):_0x14dae0;}function Gt(_0x55578c,_0xa298b1){const _0x27db72=_0xa298b1['schema']['isObject'](_0x55578c)||_0xa298b1['schema']['isSelectable'](_0x55578c);return _0xa298b1['createRange'](_0xa298b1['createPositionAt'](_0x55578c,'before'),_0x27db72?_0xa298b1['createPositionAfter'](_0x55578c):_0xa298b1['createPositionAt'](_0x55578c,'end'));}function Ft(_0x2a807e,_0x51c5c2,_0x447b3a,_0x5d6167,_0x180703){if(!Pt(_0x2a807e,_0x51c5c2))return!0x1;if(_0x447b3a['end']['isEqual'](_0x5d6167['start']))return!0x0;if(_0x2a807e['type']!=_0x51c5c2['type'])return!0x1;if(!_0x447b3a['end']['isTouching'](_0x5d6167['start']))return!0x1;const _0x4ba462=_0x180703['createRange'](_0x447b3a['end'],_0x5d6167['start'])['getWalker']();for(const _0x4e7a9e of _0x4ba462)if(['elementStart','elementEnd']['includes'](_0x4e7a9e['type'])&&_0x180703['schema']['isLimit'](_0x4e7a9e['item']))return!0x1;return!0x0;}function Pt(_0x39182d,_0x5b3f5f,_0xf3b525=[]){return!(!_0x39182d['_isDataLoaded']||!_0x5b3f5f['_isDataLoaded'])&&_0x2c5062(Bt(_0x39182d['attributes'],_0xf3b525),Bt(_0x5b3f5f['attributes'],_0xf3b525));}function Lt(_0x4ee217,_0x45765e){const _0x3e94c9=Ht(_0x4ee217['attributes']),_0x19609a=Ht(_0x45765e);if(!_0x4ee217['_isDataLoaded'])return!0x1;for(const _0x857e2a of Object['keys'](_0x19609a))if(!_0x2c5062(_0x3e94c9[_0x857e2a],_0x19609a[_0x857e2a]))return!0x1;return!0x0;}function Ht(_0x1794a0){const _0x53f5d8=Object['assign']({},_0x1794a0);return delete _0x53f5d8['skipNestingCheck'],delete _0x53f5d8['tablePasteChainId'],_0x53f5d8;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x36fb33(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2bc02f,_0x5433fc,_0x254178,_0x37dadd){super(),this['model']=_0x5433fc,this['view']=_0x254178,this['commentThreadController']=_0x37dadd,this['_editor']=_0x2bc02f,this['_acceptCommand']=_0x2bc02f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2bc02f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4cc23f,_0x5312fa)=>_0x4cc23f||_0x5312fa),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5d960c=>_0x5d960c&&this['_editor']['model']['canEditAt'](_0x5433fc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ebe3e=>_0x4ebe3e&&this['_editor']['model']['canEditAt'](_0x5433fc['getRanges']())),this['_pendingAction']=null,_0x254178['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x254178,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x254178,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x254178,'change:isDirty',()=>{_0x254178['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 _0x196554=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x196554);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x484a82{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2abb27,_0x3cd101,_0x16cd92,_0x30d8ff){super(_0x2abb27),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3cd101['authoredAt']),this['bind']('authoredAt')['to'](_0x3cd101),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3cd101,this['_localUser']=_0x16cd92,this['_config']=_0x30d8ff,_0x30d8ff['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x15a52c}=this['_config'];this['commentsListView']=new _0x15a52c(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',_0x1c7be7=>_0x1c7be7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x7695f3,_0x479691)=>_0x7695f3||!!_0x479691);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x13f404}=this['_config'],_0x1b0e2b=new _0x13f404(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c2409=_0x1b0e2b['commentInputView'];return _0x1b0e2b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c2409,'value',(_0x3d9930,_0x1b9a86,_0x3915f3)=>!!_0x3915f3||_0x3d9930&&!_0x1b9a86),_0x2c2409['on']('submit',(_0x54dac2,_0x45a953)=>{this['fire']('addComment',_0x45a953),_0x2c2409['editor']['setData']('');}),_0x2c2409['on']('cancel',()=>this['focus']()),_0x2c2409['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b0e2b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x73c50d,_0x385f46,_0x2ef951,_0x1733ed){super(_0x73c50d,_0x385f46,_0x2ef951,_0x1733ed),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1eadbb=>_0x1eadbb&&_0x1eadbb[0x0]?_0x1eadbb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x278a3c,_0x4e2e7d)=>{let _0x5fa86c='';for(const _0x4969aa of _0x278a3c)_0x5fa86c+='<p>'+ds(_0x4969aa['content'],_0x4969aa['color'])+'</p>';return _0x4e2e7d?_0x5fa86c:_0x59e8f2(_0x5fa86c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x73c50d,'Accept\x20suggestion'),_0x1232b4['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x73c50d,'Discard\x20suggestion'),_0x1232b4['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3159db(_0x73c50d,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x435f4f=this['bindTemplate'],_0x4537d6=[{'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':_0x435f4f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x435f4f['to']('authoredAt',_0x149d4b=>this['_config']['formatDateTime'](_0x149d4b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4537d6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x438f14={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x435f4f['if']('isActive','ck-suggestion-wrapper--active'),_0x435f4f['to']('type',_0x2f2cec=>'ck-suggestion-'+_0x2f2cec),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4537d6}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x438f14['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x438f14;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x33c524,_0x58ccf4,_0x5dae01)=>{this['_descriptionElement']['innerHTML']=_0x5dae01;});}['_createButton'](_0x3d6382,_0x4487fb,_0x468622,_0x14573d,_0x25e8f9){const _0x50acdc=new _0xaaa84a(this['locale']);return _0x50acdc['set']({'label':_0x3d6382,'icon':_0x4487fb,'tooltip':!0x0,'tooltipPosition':_0x25e8f9}),_0x50acdc['extendTemplate']({'attributes':{'class':_0x468622}}),_0x50acdc['on']('execute',()=>{this['fire'](_0x14573d,this['_model']['id']);}),_0x50acdc;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x513159,_0x2a2c40){let _0x4e4f5f='';return _0x4e4f5f+=_0x513159['split']('*')['map']((_0x15cfd6,_0x568fda)=>_0x568fda%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x15cfd6)+'</span>':us(_0x15cfd6))['join'](''),_0x2a2c40&&(_0x4e4f5f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2a2c40['value']+'\x22\x20title=\x22'+_0x2a2c40['title']+'\x22></span>'),_0x4e4f5f;}function us(_0x1bb56a){const _0x118812=document['createElement']('span');return _0x118812['innerText']=_0x1bb56a,_0x118812['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5be52d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x142223,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x35ba04){super(_0x35ba04),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2cc378=this['editor']['config'];_0x2cc378['define']('trackChanges.SuggestionThreadView',ne),_0x2cc378['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2cc378['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2c7d25,_0x1a25c5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc56744,_0x49d2fb]of this['_handleControllerBuffer']){const _0xa43ed2=this['_suggestionToController']['has'](_0xc56744);_0xa43ed2||_0x49d2fb?_0xa43ed2&&_0x49d2fb&&this['_destroyController'](_0xc56744):this['_initializeController'](_0xc56744);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2c7d25,_0x1a25c5);}['init'](){const _0x483b29=this['editor'],_0x4bc72b=_0x483b29['plugins']['get']('TrackChangesEditing'),_0xd54c59=_0x483b29['plugins']['get']('Annotations'),_0x15bedb=_0x483b29['plugins']['get']('EditorAnnotations'),_0x233207=_0x483b29['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x15bedb['addSourceCollector'](()=>{const _0x4035fc=[];for(const [_0x282b7d,_0xd2d8e]of Array['from'](this['_suggestionToController'])){const _0x5a7108=_0x282b7d['getAllAdjacentSuggestions'](),_0x22aa5e=[];for(const _0x10ad54 of _0x5a7108){if(!_0x10ad54['isInContent'])continue;if(_0x10ad54['isMultiRange']){_0x22aa5e['push'](..._0x10ad54['getRanges']());continue;}const _0xd57e04=_0x10ad54['getFirstRange']();if(_0x22aa5e['length']>0x0){const _0xba3fd8=_0x22aa5e[0x0]['getJoined'](_0xd57e04);if(_0xba3fd8){_0x22aa5e[0x0]=_0xba3fd8;continue;}}_0x22aa5e['push'](_0xd57e04);}_0x4035fc['push']([_0xd2d8e['view'],_0x22aa5e]);}return _0x4035fc;}),this['listenTo'](_0x4bc72b,'suggestionLoaded',(_0xd26a3c,_0x1a472f)=>{this['listenTo'](_0x1a472f,'change:previous',(_0x5ee21b,_0x2e2982,_0x4c08e3,_0x2e6b5e)=>{_0x1a472f['isInContent']&&(null==_0x4c08e3?(this['_updateController'](_0x2e6b5e['head']),this['_handleSuggestionControllerDelayed'](_0x1a472f,!0x1)):(this['_updateController'](_0x4c08e3['head']),null==_0x2e6b5e&&this['_handleSuggestionControllerDelayed'](_0x1a472f,!0x0)));}),null!==_0x1a472f['previous']?this['_updateController'](_0x1a472f['head']):this['_handleSuggestionControllerDelayed'](_0x1a472f,!0x1);}),this['listenTo'](_0x4bc72b,'suggestionUnloaded',(_0x77d111,_0x11e333,_0x2fec95)=>{this['stopListening'](_0x11e333,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11e333),this['_suggestionToController']['has'](_0x11e333)&&this['_destroyController'](_0x11e333),_0x2fec95&&this['_updateController'](_0x2fec95['head']);}),this['listenTo'](_0x4bc72b,'suggestionChanged',(_0x21e110,_0x28ba92)=>{this['_updateController'](_0x28ba92);}),this['listenTo'](_0xd54c59,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x233207,'addComment',(_0x3ebd14,{threadId:_0x1000cd,isFromAdapter:_0x353580})=>{if(_0x353580||!_0x4bc72b['hasSuggestion'](_0x1000cd))return;const _0x4958ce=_0x4bc72b['getSuggestion'](_0x1000cd);this['_suggestionToController']['get'](_0x4958ce)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x351853=this['editor']['plugins']['get']('Annotations'),_0x40e7c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327471=Array['from'](_0x351853['activeAnnotations'],_0x1a3f88=>_0x1a3f88['innerView'])['filter'](_0xcc2d3=>this['_viewToController']['has'](_0xcc2d3)),_0x5dec8d=[];for(const _0x1a7acd of _0x327471){const _0xc68ca5=this['_viewToController']['get'](_0x1a7acd)['model']['getAllAdjacentSuggestions']();_0x5dec8d['push'](..._0xc68ca5['reduce']((_0x57fb47,_0x5c3b20)=>[..._0x57fb47,..._0x5c3b20['getMarkerNames']()],[]));}_0x40e7c9['activeMarkers']=_0x5dec8d;}['_addUIComponentsToFactory'](){const _0x1f46cd=this['editor'],_0x44b06a=_0x1f46cd['locale'],_0x583696=o(_0x44b06a,'Track\x20changes'),_0x34985f=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x583696,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x44b06a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x44b06a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x44b06a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x44b06a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4db5b6 of _0x34985f)if(ae(_0x4db5b6)){const _0x495b78=_0x1f46cd['commands']['get'](_0x4db5b6['model']['commandName']);_0x4db5b6['model']['bind']('isOn','isEnabled')['to'](_0x495b78,'value','isEnabled');}_0x1f46cd['ui']['componentFactory']['add']('trackChanges',_0x65ab04=>this['_createToolbarButton'](_0x65ab04,_0x34985f,_0x583696)),_0x1f46cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x41a98a=>this['_createMenuBarMenu'](_0x41a98a,_0x34985f,_0x583696));}['_createToolbarButton'](_0x1e4b9b,_0x3c299e,_0x5e29c4){const _0x422790=zt(_0x1e4b9b,Zt),_0x4827b8=this['editor']['commands']['get']('trackChanges');_0x422790['buttonView']['set']({'tooltip':_0x5e29c4,'label':_0x5e29c4,'icon':ie}),_0x422790['buttonView']['bind']('isOn')['to'](_0x4827b8,'value'),_0x422790['buttonView']['on']('execute',()=>{_0x4827b8['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x422790,_0x3c299e,{'role':'menu'});const _0x5f57da=[];for(const _0x4bba70 of _0x3c299e)ae(_0x4bba70)&&_0x5f57da['push'](this['editor']['commands']['get'](_0x4bba70['model']['commandName']));const _0x151cac=_0x422790['buttonView'];return _0x151cac['actionView']['unbind']('isEnabled'),_0x151cac['arrowView']['unbind']('isEnabled'),_0x151cac['actionView']['bind']('isEnabled')['to'](_0x4827b8,'isEnabled'),_0x151cac['arrowView']['bind']('isEnabled')['toMany'](_0x5f57da,'isEnabled',(..._0x21bd17)=>_0x21bd17['some'](_0x3205ed=>_0x3205ed)),_0x422790['on']('execute',_0x51f2a8=>{this['editor']['execute'](_0x51f2a8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x422790;}['_createMenuBarMenu'](_0x5bd9ac,_0x4d57db,_0x22f691){const _0x120367=new Kt(_0x5bd9ac),_0x31972b=this['editor']['commands']['get']('trackChanges');_0x120367['buttonView']['set']({'label':_0x22f691,'icon':ie});const _0x4ec485=new Qt(_0x5bd9ac);for(const _0x1db3b2 of _0x4d57db){if('separator'==_0x1db3b2['type']){_0x4ec485['items']['add'](new Jt(_0x5bd9ac));continue;}const _0x253f87=new Xt(_0x5bd9ac,_0x120367),_0x451cd6=new Yt(_0x5bd9ac),_0x48b96b=_0x1db3b2['model'];_0x451cd6['bind'](...Object['keys'](_0x48b96b))['to'](_0x48b96b),_0x451cd6['delegate']('execute')['to'](_0x120367),_0x451cd6['on']('execute',()=>{this['editor']['execute'](_0x48b96b['commandName']),this['editor']['editing']['view']['focus']();}),_0x253f87['children']['add'](_0x451cd6),_0x4ec485['items']['add'](_0x253f87);}return _0x120367['bind']('isEnabled')['to'](_0x31972b,'isEnabled'),_0x120367['panelView']['children']['add'](_0x4ec485),_0x120367;}['_initializeController'](_0x33ea06){const _0x1d09bf=this['editor'],_0x4c3b87=_0x1d09bf['config'],_0xf9dfa1=_0x1d09bf['plugins']['get']('Annotations'),_0x1f8e3a=_0x1d09bf['plugins']['get']('CommentsRepository'),_0x51d95f=_0x1d09bf['plugins']['get']('EditorAnnotations'),_0xf7b42e=_0x1d09bf['plugins']['get'](_0x142223)['me'],_0x254e89=_0x4c3b87['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5c2e0f,CommentThreadInputView:_0x3f84d0}=_0x1d09bf['plugins']['get']('CommentsUI');let _0x154858,_0x44ecb4;this['_annotationViews']['has'](_0x33ea06['id'])?(_0x44ecb4=this['_annotationViews']['get'](_0x33ea06['id']),_0x154858=_0x44ecb4['mainView']):(_0x154858=new _0x254e89(_0x1d09bf['locale'],_0x33ea06,_0xf7b42e,{'disableComments':this['_disableComments'],'editorConfig':_0x4c3b87['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4c3b87['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c3b87['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c3b87['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b3135(_0x4c3b87['get']('locale')),'CommentView':_0x4c3b87['get']('comments')['CommentView'],'CommentsListView':_0x5c2e0f,'CommentThreadInputView':_0x3f84d0}),_0x154858['acceptButton']['on']('execute',()=>{_0x1d09bf['editing']['view']['focus']();}),_0x154858['discardButton']['on']('execute',()=>{_0x1d09bf['editing']['view']['focus']();}),_0x44ecb4=_0xf9dfa1['createAnnotationView'](this['editor']['locale'],_0x154858),_0x44ecb4['bind']('isDirty')['to'](_0x154858,'isDirty'),_0x44ecb4['bind']('length')['to'](_0x154858),_0x44ecb4['bind']('type')['to'](_0x154858,'type',_0x367380=>'suggestion-'+_0x367380),this['_annotationViews']['set'](_0x33ea06['id'],_0x44ecb4));const _0xbb1697=_0x1f8e3a['createCommentThreadController'](_0x33ea06['commentThread'],_0x154858),_0x43c7ff=new oe(_0x1d09bf,_0x33ea06,_0x154858,_0xbb1697),_0x21c3c8=_0x33ea06['getAllAdjacentSuggestions']()['filter'](_0x34b859=>_0x34b859['isInContent']);_0x154858['descriptionParts']=_0x1d09bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21c3c8),this['_suggestionToController']['set'](_0x33ea06,_0x43c7ff),this['_viewToController']['set'](_0x154858,_0x43c7ff);const _0x3806f4=_0xf9dfa1['createAnnotation']({'view':_0x44ecb4,'target':()=>{const _0x182821=[],_0xfd96af=_0x33ea06['getAllAdjacentSuggestions']()['filter'](_0x4e73d0=>_0x4e73d0['isInContent']);for(const _0x4bec93 of _0xfd96af)_0x182821['push'](..._0x4bec93['getMarkers']());return _0x45b19d(_0x1d09bf['editing'],_0x182821);},'type':()=>'suggestion-'+_0x43c7ff['view']['type']});_0x1f8e3a['_bindAnnotationToEditors'](_0x154858,_0x3806f4),_0xf9dfa1['add'](_0x3806f4),_0x51d95f['registerAnnotation'](_0x3806f4);}['_destroyController'](_0x4a4050){const _0x3886e0=this['editor']['plugins']['get']('CommentsRepository'),_0x4a34f7=this['editor']['plugins']['get']('Annotations'),_0x3aca9a=this['_suggestionToController']['get'](_0x4a4050),_0x3c2ea1=_0x3aca9a['view'],_0x2fdb97=_0x4a34f7['getByInnerView'](_0x3c2ea1);_0x3886e0['_unbindEditors'](_0x3c2ea1),_0x2fdb97&&_0x4a34f7['remove'](_0x2fdb97),this['_suggestionToController']['delete'](_0x4a4050),this['_viewToController']['delete'](_0x3c2ea1),_0x3aca9a['destroy']();}['_updateController'](_0x51fc7){if(!_0x51fc7['isInContent']||!this['_suggestionToController']['has'](_0x51fc7))return;const _0x4f7dc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5415cb=this['_suggestionToController']['get'](_0x51fc7),_0x268a0b=_0x51fc7['getAllAdjacentSuggestions']();_0x5415cb['view']['descriptionParts']=_0x4f7dc8['descriptionFactory']['getDescriptions'](_0x268a0b);}['destroy'](){for(const _0x3cfeae of this['_suggestionToController']['keys']())this['_destroyController'](_0x3cfeae);for(const _0x8d5cea of this['_annotationViews']['values']())_0x8d5cea['mainView']['destroy']();super['destroy']();}}function ae(_0x59d5f9){return'model'in _0x59d5f9;}class k extends _0x5be52d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5d8717){this['editor']['plugins']['get'](p)['adapter']=_0x5d8717;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5b7c0a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5b7c0a);}['getSuggestions']({skipNotAttached:_0x68b2b4=!0x1,toJSON:_0x4f48ef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x68b2b4,'toJSON':_0x4f48ef});}['getSuggestion'](_0x3fa48d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3fa48d);}}const T=['Pagination'];class P extends _0x5be52d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5af695=this['editor'];if(_0x5af695['config']['define']('trackChangesData.editorCreator',_0x28ba42=>{const _0x4f10d9=_0x5af695['model']['document']['getRootNames']()['reduce']((_0x38fa3f,_0x1703b9)=>(_0x38fa3f[_0x1703b9]='',_0x38fa3f),{});return _0x5af695['constructor']['create'](_0x4f10d9,_0x28ba42);}),'function'!=typeof _0x5af695['config']['get']('trackChangesData')['editorCreator'])throw new _0x4bfcae('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x42e050){return N(this['editor'],!0x0,_0x42e050);}['getDataWithDiscardedSuggestions'](_0x1d470a){return N(this['editor'],!0x1,_0x1d470a);}}class D extends _0x5be52d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x528ae8){super(_0x528ae8),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(_0x5dd3e8){return void 0x0!==_0x5dd3e8['getRootsAttributes'];}async function N(_0x5d6539,_0x5f23f9,_0xf8f36d){const _0x2fd7a8=_0xc52f00(_0x5d6539,T);_0x2fd7a8['plugins']['push'](p,D),_0x2fd7a8['rootsAttributes']=v(_0x5d6539)?_0x5d6539['getRootsAttributes']():void 0x0;const _0x2228dd=document['createDocumentFragment'](),_0x2a4cb0=_0x5d6539['config']['get']('trackChangesData')['editorCreator'],_0x50a474=await _0x2a4cb0(_0x2fd7a8,()=>function(_0x3e4914){const _0x1d27e4=document['createElement']('div');return _0x3e4914['appendChild'](_0x1d27e4),_0x1d27e4;}(_0x2228dd));!function(_0x2b1b47,_0x104601){const _0x43abd6=_0x2b1b47['model']['document']['getRootNames']()['reduce']((_0x622d10,_0x436cea)=>(_0x622d10[_0x436cea]=_0x2b1b47['data']['get']({'rootName':_0x436cea}),_0x622d10),{}),_0x419592=_0x2b1b47['plugins']['get']('Users')['users']['map'](_0x5d7d5f=>({'id':_0x5d7d5f['id'],'name':_0x5d7d5f['name']})),_0x29d6cc=_0x2b1b47['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fb132=_0x2b1b47['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b7467=_0x104601['plugins']['get']('Users'),_0x12cafc=_0x104601['plugins']['get']('TrackChangesEditing'),_0x66fef=_0x104601['plugins']['get']('CommentsRepository');for(const _0x3bb444 of _0x419592)_0x2b7467['getUser'](_0x3bb444['id'])||_0x2b7467['addUser'](_0x3bb444);_0x2b7467['me']||_0x2b7467['useAnonymousUser']();for(const _0x589928 of _0x29d6cc)_0x12cafc['addSuggestionData'](_0x589928);for(const _0xde55cc of _0x3fb132)_0x66fef['addCommentThread'](_0xde55cc);_0x104601['data']['set'](_0x43abd6);}(_0x5d6539,_0x50a474),_0x50a474['execute'](_0x5f23f9?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e061d=v(_0x50a474)?_0x50a474['getFullData'](_0xf8f36d):_0x50a474['data']['get'](_0xf8f36d);return await _0x50a474['destroy'](),_0x1e061d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x5297f7,PendingActions as _0x3ae443,icons as _0x52329b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x190e91,ObservableMixin as _0x37fd29,uid as _0x48fd30,insertToPriorityArray as _0x1621eb,priorities as _0x16f094,logWarning as _0x12cf38,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x67f0ea,View as _0x19de91,ButtonView as _0x5e1f82,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4306be,hashObject as _0xcee980,surroundingMarkersDetector as _0x2d09de,trimHtml as _0x132720,UserView as _0x3292ce,getDateTimeFormatter as _0x64b405,getAllMarkersDomElementsSorted as _0x1acdac,sanitizeEditorConfig as _0x578c29}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3da1cd,LiveRange as _0x16e800,LivePosition as _0x4101dd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x394def,toWidget as _0x52b614}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x273119,set as _0xadcadf,isEqual as _0x763405,unset as _0x4daad1,omit as Bt}from'lodash-es';import{Delete as _0x113833,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3af30e,ShiftEnter as _0xbf3175}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4399a1,_0x5ba508){super(_0x4399a1),this['_enabledCommands']=_0x5ba508,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 _0xba700a of this['editor']['commands']['commands']())_0xba700a['affectsData']&&!this['_enabledCommands']['has'](_0xba700a)&&_0xba700a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2579dd of this['editor']['commands']['commands']())_0x2579dd['affectsData']&&!this['_enabledCommands']['has'](_0x2579dd)&&_0x2579dd['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x463b52,_0x5e048f){super(_0x463b52),this['_suggestions']=_0x5e048f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x442dca){const _0xaadc09=this['_suggestions']['get'](_0x442dca);if(!_0xaadc09)throw new _0x190e91('track-changes-accept-suggestion-not-found',this);const _0x3f4cdb=_0xaadc09['getRanges']();this['editor']['model']['canEditAt'](_0x3f4cdb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xaadc09);}}class B extends ts{['_suggestions'];constructor(_0x296ec8,_0x58165f){super(_0x296ec8),this['_suggestions']=_0x58165f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5dd3ae){const _0x30ca15=this['_suggestions']['get'](_0x5dd3ae);if(!_0x30ca15)throw new _0x190e91('track-changes-discard-suggestion-not-found',this);const _0x2402fb=_0x30ca15['getRanges']();this['editor']['model']['canEditAt'](_0x2402fb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x30ca15);}}function ss(_0x1a101c){return _0x1a101c['sort']((_0x24df47,_0x40955b)=>'deletion'==_0x24df47['type']&&'deletion'!=_0x40955b['type']?-0x1:'deletion'!=_0x24df47['type']&&'deletion'==_0x40955b['type']?0x1:0x0);}function to(_0x50bc78,_0x539421){let _0x844387,_0x2201e3=0x0;const _0x4428e7=[],_0x4624c8=_0x539421['schema'];for(;_0x2201e3<_0x50bc78['length'];){const _0x2f8fad=_0x50bc78[_0x2201e3],_0x46170e=_0x50bc78[_0x2201e3+0x1];_0x844387||(_0x844387=_0x539421['createPositionBefore'](_0x2f8fad)),co(_0x539421,_0x2f8fad,_0x46170e)||(_0x4428e7['push'](_0x539421['createRange'](_0x844387,_0x4624c8['isObject'](_0x2f8fad)?_0x539421['createPositionAfter'](_0x2f8fad):_0x539421['createPositionAt'](_0x2f8fad,'end'))),_0x844387=null),_0x2201e3++;}return _0x4428e7;}function co(_0x51b159,_0x4a442e,_0x33be12){if(!_0x33be12)return!0x1;const _0xe238d4=_0x51b159['createPositionAfter'](_0x4a442e),_0x506ce1=_0x51b159['createPositionBefore'](_0x33be12);return _0xe238d4['isTouching'](_0x506ce1);}function rs(_0x22ee89,_0x39e77f,_0x22f947){for(;_0x22f947['length'];){const _0x3bd813=_0x22f947['splice'](0x0,0x64);_0x22ee89['change'](()=>{for(const _0x1c2883 of _0x3bd813)_0x1c2883['isInContent']&&_0x39e77f['execute'](_0x1c2883['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x203362,_0x2f395d,_0x156bfe){super(_0x203362),this['_command']=_0x2f395d,this['_suggestions']=_0x156bfe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b89ea=Array['from'](this['_suggestions']['values']())['some'](_0x3bc4f3=>_0x3bc4f3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b89ea;}['execute'](){const _0x182497=ss(Array['from'](this['_suggestions']['values']()));for(const _0x58e40b of _0x182497){const _0x4d244=_0x58e40b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d244))return;}rs(this['editor']['model'],this['_command'],_0x182497);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x33240b,_0x33f7bd,_0x591af1){super(_0x33240b),this['_command']=_0x33f7bd,this['_suggestions']=_0x591af1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x405795=this['editor']['model']['document']['selection'],_0x283573=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10e167,_0x20d0f1){const _0x5cca8d=Array['from'](_0x10e167['getRanges']()),_0x461b0e=new Set();for(const _0x5c318d of _0x20d0f1)if(_0x5c318d['isInContent']){for(const _0x3589f7 of _0x5cca8d)for(const _0x2e6b4b of _0x5c318d['getRanges']())(_0x3589f7['isIntersecting'](_0x2e6b4b)||_0x10e167['isCollapsed']&&!_0x5c318d['isMultiRange']&&_0x5c318d['next']&&_0x2e6b4b['end']['isTouching'](_0x3589f7['start']))&&_0x461b0e['add'](_0x5c318d);}return _0x461b0e;}(_0x405795,_0x283573),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a1ca8=ss(Array['from'](this['_selectedSuggestions']));for(const _0x18bcd3 of _0x2a1ca8){const _0x5b328f=_0x18bcd3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b328f))return;}rs(this['editor']['model'],this['_command'],_0x2a1ca8);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x37fd29(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1158b4,_0x230df4){super(),this['id']=_0x230df4['id'],this['type']=_0x230df4['type'],this['subType']=_0x230df4['subType']||null,this['author']=_0x230df4['author'],this['creator']=_0x230df4['creator']||_0x230df4['author'],this['isExternal']=Boolean(_0x230df4['attributes']&&_0x230df4['attributes']['@external']),this['data']=null,this['_model']=_0x1158b4,this['_onAccept']=_0x230df4['onAccept'],this['_onDiscard']=_0x230df4['onDiscard'],this['_onAttributesChange']=_0x230df4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x230df4['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 _0x4b5a25=this;for(;_0x4b5a25['previous'];)_0x4b5a25=_0x4b5a25['previous'];return _0x4b5a25;}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'](_0x2bed7d){this['_markerNames']['add'](_0x2bed7d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1400cc=>this['_model']['markers']['get'](_0x1400cc))['filter'](_0x59be03=>_0x59be03);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x19a9fe=>{for(const _0x2af0f2 of this['getMarkers']())_0x19a9fe['removeMarker'](_0x2af0f2);}),this['_markerNames']['clear']();}['removeMarker'](_0x583a79){this['_model']['change'](_0x46b460=>{_0x46b460['removeMarker'](_0x583a79);}),this['_markerNames']['delete'](_0x583a79);}['addRange'](_0x329d05){const _0x49be99='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x49be99),this['_model']['change'](_0x31fce2=>{_0x31fce2['addMarker'](_0x49be99,{'range':_0x329d05,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52d6b4){for(const _0xc70bee of this['getRanges']())if(_0xc70bee['isIntersecting'](_0x52d6b4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x527d91=>_0x527d91['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4aa702,_0x12f2c2)=>[..._0x4aa702,..._0x12f2c2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x114b27=this['getRanges']();if(0x1!=_0x114b27['length'])return null;const _0x10c44e=_0x114b27[0x0],_0x46b523=_0x10c44e['start']['nodeAfter'],_0x1e2dda=_0x10c44e['end']['nodeBefore'];return _0x46b523 instanceof _0x3da1cd?_0x46b523!=_0x1e2dda?null:_0x46b523: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 _0x5c16ff=[];let _0x3cd64e=this['head'];for(;_0x3cd64e;)_0x5c16ff['push'](_0x3cd64e),_0x3cd64e=_0x3cd64e['next'];return _0x5c16ff;}['setAttribute'](_0xe19fd,_0xbd2bcb){const _0x3ea691=_0x273119(this['attributes']);_0xadcadf(_0x3ea691,_0xe19fd,_0xbd2bcb),_0x763405(_0x3ea691,this['attributes'])||(this['attributes']=_0x3ea691,this['_onAttributesChange'](_0x3ea691));}['removeAttribute'](_0x46ee02){const _0x4daa38=_0x273119(this['attributes']);_0x4daad1(_0x4daa38,_0x46ee02),_0x763405(_0x4daa38,this['attributes'])||(this['attributes']=_0x4daa38,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 _0x48fd30()['substr'](0x1,0x5);}}function o(_0x507c1d,_0x8b7449,_0x4c5175){const t=_0x507c1d['t'];switch(_0x8b7449){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',_0x4c5175);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c5175);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c5175);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c5175);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c5175);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',_0x4c5175);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c5175);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',_0x4c5175);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c5175);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c5175);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c5175);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c5175);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c5175);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c5175);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c5175);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c5175);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c5175);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c5175);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c5175);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c5175);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c5175);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c5175);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c5175);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'},_0x4c5175);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c5175);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c5175);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c5175);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c5175);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c5175);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'},_0x4c5175);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c5175);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c5175);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c5175);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c5175);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'},_0x4c5175);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c5175);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'},_0x4c5175);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'},_0x4c5175);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c5175);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'},_0x4c5175);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c5175);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'},_0x4c5175);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c5175);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c5175);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c5175);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c5175);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x8b7449;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21324c,_0x33ce47){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21324c,this['_locale']=_0x33ce47;}['getDescriptions'](_0x4a5c59){const _0x26aa81=[],_0xdf6d84=new Set(),_0x54205d=new Set();for(let _0x31f7f2=0x0;_0x31f7f2<_0x4a5c59['length'];_0x31f7f2++){const _0x2cd844=_0x4a5c59[_0x31f7f2];if(!_0x2cd844['isInContent'])continue;const _0x5eba42=this['_handleCustomCallbackDescription'](_0x2cd844);if(_0x5eba42){if(null!=_0x2cd844['subType']){if(_0xdf6d84['has'](_0x2cd844['subType']))continue;_0xdf6d84['add'](_0x2cd844['subType']);}_0x26aa81['push'](_0x5eba42);}else{if('attribute'!=_0x2cd844['type'])'insertion'!=_0x2cd844['type']&&'deletion'!=_0x2cd844['type']||this['_handleInsertRemoveSuggestionDescription'](_0x26aa81,_0x2cd844,_0x4a5c59[_0x31f7f2+0x1]);else{const _0x52ed85=_0x2cd844['data']['key'];if(_0x54205d['has'](_0x52ed85))continue;_0x54205d['add'](_0x2cd844['data']['key']),_0x52ed85==m?this['_handleRenameSuggestionDescription'](_0x26aa81,_0x2cd844):this['_handleAttributeSuggestionDescription'](_0x26aa81,_0x2cd844);}}}return this['_resolveDescriptionItems'](_0x26aa81);}['registerDescriptionCallback'](_0x1a3107){this['_customCallbacks']['push'](_0x1a3107);}['registerElementLabel'](_0x430a7b,_0x3f7e55,_0x436033=_0x16f094['normal']){'function'==typeof _0x430a7b?_0x1621eb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x430a7b,'label':_0x3f7e55,'priority':_0x436033}):this['_itemLabels']['set'](_0x430a7b,_0x3f7e55);}['registerAttributeLabel'](_0x5ab193,_0x25db6b){this['_attributeLabels']['set'](_0x5ab193,_0x25db6b);}['getItemLabel'](_0x46ab0c,_0x561121=0x1){let _0x1a6d52;for(const _0x53e3b9 of this['_itemLabelsCallbacks'])if(_0x53e3b9['matchingCallback'](_0x46ab0c)){_0x1a6d52=_0x53e3b9['label'];break;}return _0x1a6d52||(_0x1a6d52=this['_itemLabels']['get'](_0x46ab0c['name'])),_0x1a6d52?_0x1a6d52(_0x561121):0x1!==_0x561121?_0x561121+'\x20'+_0x46ab0c['name']+'s':''+_0x46ab0c['name'];}['_addDescriptionItems'](_0x364a09,_0x267fdd){const _0x964d0c=_0x267fdd['getFirstRange']()['getWalker'](),_0x5c4391='insertion'==_0x267fdd['type']?'add':'remove';for(const _0x23eb15 of _0x964d0c){const _0x56350d=_0x23eb15['item'],_0x3455c9=_0x364a09[_0x364a09['length']-0x1];if(_0x56350d['is']('$textProxy'))_0x3455c9&&_0x3455c9['type']['indexOf']('Container')>-0x1&&_0x364a09['pop'](),_0x3455c9&&'text'==_0x3455c9['type']?_0x3455c9[_0x5c4391]+=_0x56350d['data']:_0x364a09['push']({'type':'text','add':'add'==_0x5c4391?_0x56350d['data']:'','remove':'remove'==_0x5c4391?_0x56350d['data']:''});else{if(this['_schema']['isObject'](_0x56350d)){const _0x372d79=_0x56350d;if(_0x3455c9&&_0x3455c9['type']['indexOf']('Container')>-0x1&&_0x364a09['pop'](),'elementEnd'==_0x23eb15['type'])continue;_0x3455c9&&_0x3455c9['type']==_0x5c4391+'Object'&&_0x3455c9['element']['name']==_0x372d79['name']?_0x3455c9['quantity']++:_0x364a09['push']({'type':_0x5c4391+'Object','element':_0x372d79,'quantity':0x1}),_0x964d0c['skip'](_0xcc9eb9=>!('elementEnd'==_0xcc9eb9['type']&&_0xcc9eb9['item']==_0x56350d));}else{if(this['_schema']['checkChild'](_0x56350d,'$text')||_0x56350d['is']('element','softBreak')){const _0x5d1dc5=_0x56350d;if('add'==_0x5c4391&&'elementStart'==_0x23eb15['type']||'remove'==_0x5c4391&&'elementEnd'==_0x23eb15['type'])continue;if(_0x3455c9&&-0x1==_0x3455c9['type']['indexOf']('Container')){'text'==_0x3455c9['type']&&(_0x3455c9[_0x5c4391]+='\x0a');continue;}let _0x292ad4;if(_0x292ad4='add'==_0x5c4391?_0x5d1dc5['nextSibling']&&!this['_schema']['isObject'](_0x5d1dc5['nextSibling'])?_0x5d1dc5['nextSibling']:null:_0x5d1dc5['previousSibling']&&!this['_schema']['isObject'](_0x5d1dc5['previousSibling'])?_0x5d1dc5['previousSibling']:null,_0x5d1dc5['isEmpty']||_0x292ad4&&_0x292ad4['isEmpty']){const _0x74e922=_0x292ad4&&_0x292ad4['isEmpty']?_0x292ad4:_0x5d1dc5;_0x3455c9&&_0x3455c9['type']==_0x5c4391+'EmptyContainer'&&_0x3455c9['element']['name']==_0x74e922['name']?_0x3455c9['quantity']++:_0x364a09['push']({'type':_0x5c4391+'EmptyContainer','element':_0x74e922,'quantity':0x1});}else _0x364a09['push']({'type':_0x5c4391+'Container','element':_0x5d1dc5});}}}}}['_resolveDescriptionItems'](_0x5f4a40){const _0x31719e=this['_locale'],_0x203dbb=[],_0x1e1bec=[],_0xf5e85c=[];for(const _0x455bd4 of _0x5f4a40)switch(_0x455bd4['type']){case'text':if(_0x455bd4['add']=_0x455bd4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x455bd4['remove']=_0x455bd4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x455bd4['add']&&''!=_0x455bd4['remove']){_0x203dbb['push']({'type':'replace','content':o(_0x31719e,'REPLACE_TEXT',['\x22'+_0x455bd4['remove']+'\x22','\x22'+_0x455bd4['add']+'\x22'])});continue;}if(null!=_0x455bd4['add']['match'](/^ +$/)){_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0',o(_0x31719e,'ELEMENT_SPACE',_0x455bd4['add']['length']))});continue;}if(null!=_0x455bd4['remove']['match'](/^ +$/)){_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0',o(_0x31719e,'ELEMENT_SPACE',_0x455bd4['remove']['length']))});continue;}if(''!=_0x455bd4['add']){_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0','\x22'+_0x455bd4['add']+'\x22')});continue;}_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0','\x22'+_0x455bd4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'addContainer':_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Split:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'removeContainer':_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Merge:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'addFormat':_0x1e1bec['push'](_0x455bd4['key']);continue;case'removeFormat':_0xf5e85c['push'](_0x455bd4['key']);continue;default:_0x203dbb['push'](_0x455bd4);}if(_0x1e1bec['length']){const _0x36e110=_0x1e1bec['map'](_0x478d56=>this['_attributeLabels']['has'](_0x478d56)?this['_attributeLabels']['get'](_0x478d56):_0x478d56)['join'](',\x20');_0x203dbb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x36e110)});}if(_0xf5e85c['length']){const _0x138ad0=_0xf5e85c['map'](_0x39d089=>this['_attributeLabels']['has'](_0x39d089)?this['_attributeLabels']['get'](_0x39d089):_0x39d089)['join'](',\x20');_0x203dbb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x138ad0)});}return _0x203dbb;}['_handleCustomCallbackDescription'](_0x3ed3f4){for(const _0x589286 of this['_customCallbacks']){const _0x4aefc0=_0x589286(_0x3ed3f4);if(_0x4aefc0&&'type'in _0x4aefc0)return _0x4aefc0;}}['_handleAttributeSuggestionDescription'](_0xc4b32f,_0x5103c3){const _0xc223e0=_0x5103c3['data'],_0x23e5e1=void 0x0===_0xc223e0['newValue']?'removeFormat':'addFormat';_0xc4b32f['push']({'type':_0x23e5e1,'key':_0xc223e0['key']});}['_handleRenameSuggestionDescription'](_0x50026b,_0x2c188e){_0x50026b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2c188e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bdbae,_0x53fb98,_0x54aed3){if(this['_addDescriptionItems'](_0x3bdbae,_0x53fb98),_0x54aed3&&_0x54aed3['getFirstRange']()&&!_0x53fb98['getFirstRange']()['end']['isEqual'](_0x54aed3['getFirstRange']()['start'])){const _0x1dc78a=_0x3bdbae[_0x3bdbae['length']-0x1],_0x5f5711='insertion'==_0x53fb98['type']?'add':'remove';_0x1dc78a&&'text'==_0x1dc78a['type']&&(_0x1dc78a[_0x5f5711]+='\x0a');}}}class E extends _0x5297f7{['afterInit'](){const _0x4dc4ac=this['editor'],_0x1f8b0c=_0x4dc4ac['plugins']['get']('TrackChangesEditing');_0x4dc4ac['commands']['get']('showAIAssistant')&&_0x1f8b0c['enableCommand']('showAIAssistant');}}class V extends _0x5297f7{['afterInit'](){const _0x114219=this['editor'],_0x426d12=_0x114219['locale'];if(!_0x114219['plugins']['has']('AlignmentEditing'))return;const _0x3c6f1d=_0x114219['plugins']['get']('TrackChangesEditing');_0x3c6f1d['enableDefaultAttributesIntegration']('alignment'),_0x3c6f1d['registerBlockAttribute']('alignment'),_0x3c6f1d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x426d12,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4341a1=this['editor'],_0xa77386=_0x4341a1['locale'];_0x4341a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30189d=>{if('formatBlock'!=_0x30189d['type'])return;const {data:_0xa3621c}=_0x30189d;if(_0xa3621c&&'alignment'==_0xa3621c['commandName']){const _0xb70a34=_0xa3621c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa77386,'*Format:*\x20%0',function(_0x23f25e){switch(_0x23f25e){case'left':return o(_0xa77386,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa77386,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa77386,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa77386,'FORMAT_JUSTIFY_TEXT');}}(_0xb70a34))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5297f7{['afterInit'](){const _0x226864=this['editor'],_0x28b023=_0x226864['plugins']['get']('TrackChangesEditing'),_0x756bed=_0x226864['locale'];for(const _0x2f3ab8 of ti){if(!_0x226864['plugins']['has'](_0x2f3ab8))continue;const _0x89c174=_0x2f3ab8['slice'](0x0,-0x7)['toLowerCase'](),_0x393838='FORMAT_'+_0x89c174['toUpperCase']();_0x28b023['enableDefaultAttributesIntegration'](_0x89c174),_0x28b023['registerInlineAttribute'](_0x89c174),_0x28b023['descriptionFactory']['registerAttributeLabel'](_0x89c174,o(_0x756bed,_0x393838));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe61b=this['editor'],_0x5a83cf=_0x4fe61b['locale'],_0x478c71=_0x4fe61b['plugins']['get']('TrackChangesEditing');function _0x4b2a5b(_0x277a3c,_0x577d5b){_0x478c71['descriptionFactory']['registerDescriptionCallback'](_0x115b28=>{if('formatInline'!=_0x115b28['type'])return;const {data:_0x64033c}=_0x115b28;return _0x64033c&&_0x64033c['commandName']===_0x277a3c?_0x64033c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a83cf,'*Format:*\x20%0',_0x577d5b)}:{'type':'format','content':o(_0x5a83cf,'*Remove\x20format:*\x20%0',_0x577d5b)}:void 0x0;});}_0x4b2a5b('bold',o(_0x5a83cf,'FORMAT_BOLD')),_0x4b2a5b('italic',o(_0x5a83cf,'FORMAT_ITALIC')),_0x4b2a5b('underline',o(_0x5a83cf,'FORMAT_UNDERLINE')),_0x4b2a5b('code',o(_0x5a83cf,'FORMAT_CODE')),_0x4b2a5b('strikethrough',o(_0x5a83cf,'FORMAT_STRIKETHROUGH')),_0x4b2a5b('subscript',o(_0x5a83cf,'FORMAT_SUBSCRIPT')),_0x4b2a5b('superscript',o(_0x5a83cf,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5297f7{['afterInit'](){const _0x4e65de=this['editor'],_0x56d97a=_0x4e65de['locale'];if(!_0x4e65de['plugins']['has']('BlockQuoteEditing'))return;const _0x2a8418=_0x4e65de['plugins']['get']('TrackChangesEditing'),_0x231db4=this['editor']['commands']['get']('blockQuote');_0x2a8418['enableCommand']('blockQuote',(_0x3db35f,_0x474639={})=>{const _0x5b2226=this['editor']['model']['document']['selection'],_0x181a39=_0x474639&&void 0x0!==_0x474639['forceValue']?_0x474639['forceValue']:!_0x231db4['value'];let _0x358040=[];if(_0x181a39){const _0x121e46=Array['from'](_0x5b2226['getSelectedBlocks']())['filter'](_0x36b4e3=>oo(_0x36b4e3)||function(_0x51d8c2,_0x530d42){const _0x4d23da=_0x530d42['checkChild'](_0x51d8c2['parent'],'blockQuote'),_0x1d8ac4=_0x530d42['checkChild'](['$root','blockQuote'],_0x51d8c2);return _0x4d23da&&_0x1d8ac4;}(_0x36b4e3,this['editor']['model']['schema']));_0x358040=to(_0x121e46,_0x4e65de['model']);}else{const _0x14439c=Array['from'](_0x5b2226['getSelectedBlocks']())['filter'](_0x3b26a8=>oo(_0x3b26a8));_0x358040=to(_0x14439c,_0x4e65de['model']);}_0x4e65de['model']['change'](()=>{for(const _0x11c254 of _0x358040)_0x2a8418['markBlockFormat'](_0x11c254,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x181a39}]});});}),_0x2a8418['descriptionFactory']['registerDescriptionCallback'](_0x4e913f=>{const {data:_0x2b4a6d}=_0x4e913f;if(_0x2b4a6d&&'blockQuote'==_0x2b4a6d['commandName']){const _0x2f1d10=o(_0x56d97a,'ELEMENT_BLOCK_QUOTE');return _0x2b4a6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56d97a,'*Set\x20format:*\x20%0',_0x2f1d10)}:{'type':'format','content':o(_0x56d97a,'*Remove\x20format:*\x20%0',_0x2f1d10)};}});}}function oo(_0x1c4a22){return'blockQuote'==_0x1c4a22['parent']['name'];}class G extends _0x5297f7{['afterInit'](){const _0x279cdc=this['editor'];_0x279cdc['plugins']['has']('CaseChange')&&(_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5297f7{['afterInit'](){const _0x60619d=this['editor'];_0x60619d['commands']['get']('ckbox')&&_0x60619d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5297f7{['afterInit'](){const _0x4db8d9=this['editor'];if(!_0x4db8d9['plugins']['has']('CodeBlock'))return;const _0x4a4e3f=_0x4db8d9['plugins']['get']('TrackChangesEditing'),_0x27853a=_0x4db8d9['locale'],_0x36cbad=_0x4db8d9['config']['get']('codeBlock')['languages'],_0x2458de=_0x4db8d9['commands']['get']('codeBlock');_0x4a4e3f['enableCommand']('indentCodeBlock'),_0x4a4e3f['enableCommand']('outdentCodeBlock'),_0x4a4e3f['enableCommand']('codeBlock',(_0x19a2f7,_0x298ddb={})=>{const _0x2dae00=_0x4db8d9['model'],_0x2c2493=_0x4db8d9['model']['document']['selection'],_0x27ac55=_0x298ddb&&void 0x0!==_0x298ddb['forceValue']?_0x298ddb['forceValue']:!_0x2458de['value'];let _0x3dbc07;_0x298ddb['language']||(_0x298ddb['language']=_0x36cbad[0x0]['language']),_0x3dbc07=_0x27ac55?Array['from'](_0x2c2493['getSelectedBlocks']())['filter'](_0x3863ff=>eo(_0x3863ff)||function(_0x2a84f9,_0x135a44){if(_0x2a84f9['is']('rootElement')||_0x135a44['isLimit'](_0x2a84f9))return!0x1;return _0x135a44['checkChild'](_0x2a84f9['parent'],'codeBlock');}(_0x3863ff,_0x2dae00['schema'])):Array['from'](_0x2c2493['getSelectedBlocks']())['filter'](_0x5a4179=>eo(_0x5a4179));const _0x1c7cc5=to(_0x3dbc07,_0x2dae00);_0x2dae00['change'](()=>{for(const _0x1f5eec of _0x1c7cc5)_0x4a4e3f['markBlockFormat'](_0x1f5eec,{'commandName':'codeBlock','commandParams':[{..._0x298ddb,'forceValue':_0x27ac55}],'formatGroupId':'blockName'});});}),(_0x4a4e3f['descriptionFactory']['registerElementLabel']('codeBlock',_0x49f60e=>o(_0x27853a,'ELEMENT_CODE_BLOCK',_0x49f60e)),_0x4a4e3f['descriptionFactory']['registerDescriptionCallback'](_0x93b827=>{if('formatBlock'!=_0x93b827['type'])return;const _0x19f834=_0x27853a['t'],{data:_0x232ee1}=_0x93b827;if(!_0x232ee1||'codeBlock'!=_0x232ee1['commandName'])return;const _0x2a3b2a=_0x232ee1['commandParams'][0x0]['language'],_0x371bbe=_0x19f834(_0x36cbad['find'](_0x512568=>_0x512568['language']===_0x2a3b2a)['label'])['toLowerCase']();return _0x232ee1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27853a,'*Set\x20format:*\x20%0',o(_0x27853a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x371bbe+')')}:{'type':'format','content':o(_0x27853a,'*Remove\x20format:*\x20%0',o(_0x27853a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x233957){return'codeBlock'==_0x233957['name'];}class H extends _0x5297f7{['afterInit'](){const _0x3f6dfd=this['editor'];if(!_0x3f6dfd['plugins']['has']('CommentsEditing'))return;_0x3f6dfd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x374345,_0x1e16cf,_0x4c5432){const _0x15e1e2=[];for(const _0x32c0b9 of _0x1e16cf['getItems']())_0x32c0b9['hasAttribute'](_0x374345)&&_0x15e1e2['push'](_0x4c5432['createRangeOn'](_0x32c0b9));return _0x15e1e2;}function _e(_0x238259,_0xfb629,{showActiveMarker:_0x584842=!0x0}={}){const _0x357a1f=_0x238259['plugins']['get']('TrackChangesEditing');return(_0x23b03f,_0x153c4c,_0x4d5c25)=>{if(!_0x4d5c25['consumable']['test'](_0x153c4c['markerRange'],_0x23b03f['name']))return;const _0x262b22=_0x153c4c['markerRange']['getWalker'](),_0x3423f7=_0x153c4c['markerRange']['start'],_0x4bb8a8=_0x238259['model']['schema'];let _0x8d239d=null,_0x28ce21=null,_0x415064=!0x1,_0x28c5db=!0x1;for(const _0x53d15d of _0x262b22){const _0x37f491=_0x53d15d['item'];_0x415064=_0x415064||_0x4bb8a8['isContent'](_0x37f491);const _0x5d0aa6=_0x4d5c25['mapper']['toViewElement'](_0x37f491);if(_0x5d0aa6&&_0x5d0aa6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53d15d['type']&&(_0x4bb8a8['isBlock'](_0x37f491)&&!_0x4bb8a8['isLimit'](_0x37f491)&&(_0x37f491['nextSibling']||_0x3423f7['isAtEnd']?_0x8d239d&&_0x8d239d['parent']==_0x37f491||(_0x8d239d=_0x37f491,_0x8004e5(_0x53d15d['previousPosition']),_0x28c5db=!0x0):_0x28ce21=_0x28ce21||_0x53d15d['previousPosition']));}function _0x8004e5(_0x4cfd65){const _0x7c6915=_0x4d5c25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfb629}),_0x2604ff=_0x4d5c25['mapper']['toViewPosition'](_0x4cfd65);_0x584842&&_0x357a1f['activeMarkers']['includes'](_0x153c4c['markerName'])&&_0x4d5c25['writer']['addClass']('ck-suggestion-marker--active',_0x7c6915),_0x4d5c25['writer']['insert'](_0x2604ff,_0x7c6915),_0x4d5c25['mapper']['bindElementToMarker'](_0x7c6915,_0x153c4c['markerName']);}_0x415064||_0x28c5db||!_0x28ce21||_0x8004e5(_0x28ce21);};}class q extends _0x5297f7{static get['requires'](){return[_0x113833];}['init'](){const _0x8a4d22=this['editor'],_0x2a70ef=_0x8a4d22['plugins']['get']('TrackChangesEditing');_0x2a70ef['enableCommand']('delete');const _0x1e3c34=_0x8a4d22['commands']['get']('deleteForward');_0x2a70ef['enableCommand']('deleteForward',(_0x5924e1,_0x2f8d3a={})=>{const _0x126efb=_0x8a4d22['model']['createSelection'](_0x8a4d22['model']['document']['selection']);_0x126efb['isCollapsed']&&_0x8a4d22['model']['modifySelection'](_0x126efb,{'direction':'forward','unit':_0x2f8d3a['unit']});const _0x87fbf8=_0x126efb['getFirstRange'](),_0x2e03ca=_0x16e800['fromRange'](_0x87fbf8);let _0x27e0b8;_0x5924e1(_0x2f8d3a),_0x27e0b8='$graveyard'==_0x2e03ca['root']['rootName']?_0x8a4d22['model']['createRange'](_0x87fbf8['start']):_0x8a4d22['model']['createRange'](_0x2e03ca['start'],_0x2e03ca['end']),_0x2e03ca['detach'](),_0x8a4d22['model']['enqueueChange'](_0x1e3c34['buffer']['batch'],_0x2d715f=>{_0x1e3c34['buffer']['lock'](),_0x2d715f['setSelection'](_0x2d715f['createRange'](_0x27e0b8['end'])),_0x1e3c34['buffer']['unlock']();});}),_0x8a4d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x8a4d22,'merge'),{'priority':'high'}),_0x8a4d22['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f2042,_0x295a4b,_0x2f6c04)=>{_0x2f6c04['options']['showSuggestionHighlights']&&_e(_0x8a4d22,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f2042,_0x295a4b,_0x2f6c04);},{'priority':'high'}),_0x8a4d22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e2812,_0x5623a9,_0x3b9caf)=>{const _0x4b8370=_0x3b9caf['mapper']['markerNameToElements'](_0x5623a9['markerName']);if(_0x4b8370){for(const _0x536b82 of _0x4b8370)_0x536b82['is']('uiElement')&&(_0x3b9caf['mapper']['unbindElementFromMarkerName'](_0x536b82,_0x5623a9['markerName']),_0x3b9caf['writer']['remove'](_0x536b82));}},{'priority':'high'});}}class z extends _0x5297f7{['afterInit'](){const _0x4a5082=this['editor'];if(!_0x4a5082['plugins']['has']('ListEditing'))return;const _0x2c4968=_0x4a5082['locale'],_0x586d23=_0x4a5082['plugins']['get']('TrackChangesEditing'),_0xef0b39=_0x4a5082['plugins']['has']('TodoListEditing'),_0x157af2=!!_0x4a5082['config']['get']('list.multiBlock');function _0x524c28(_0x3e64c0){return{'type':'format','content':''+o(_0x2c4968,'*Set\x20format:*\x20%0',_0x3e64c0)};}function _0x22dfea(_0x3eced1){return{'type':'format','content':''+o(_0x2c4968,'*Remove\x20format:*\x20%0',_0x3eced1)};}_0x586d23['enableDefaultAttributesIntegration']('numberedList'),_0x586d23['enableDefaultAttributesIntegration']('bulletedList'),_0x586d23['enableDefaultAttributesIntegration']('customNumberedList'),_0x586d23['enableDefaultAttributesIntegration']('customBulletedList'),_0x586d23['enableDefaultAttributesIntegration']('indentList'),_0x586d23['enableDefaultAttributesIntegration']('outdentList'),_0x586d23['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x586d23['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x586d23['registerBlockAttribute']('listItemId'),_0x586d23['registerBlockAttribute']('listType'),_0x586d23['registerBlockAttribute']('listIndent'),_0x157af2&&(_0x586d23['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x586d23['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xef0b39&&(_0x586d23['enableDefaultAttributesIntegration']('todoList'),_0x586d23['enableDefaultAttributesIntegration']('checkTodoList'),_0x586d23['registerBlockAttribute']('todoListChecked'),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x48ed01=>{const {data:_0xd68141}=_0x48ed01;if(_0xd68141&&'todoListChecked'==_0xd68141['key'])return{'type':'format','content':_0xd68141['newValue']?o(_0x2c4968,'*Check\x20item*'):o(_0x2c4968,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a7808=>{if(_0x4a7808['batch']['isUndo'])return!0x1;let _0x141d6d=!0x1;const _0xbbcc16=_0x586d23['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3793e7=>'todoListChecked'===_0x586d23['_getAttributeKey'](_0x3793e7));for(const _0x5bb22d of _0xbbcc16){'todo'!=_0x5bb22d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x586d23['_findSuggestions'](_0x5bb22d['getFirstRange'](),'attribute')['find'](_0x5ebf69=>'listType'===_0x586d23['_getAttributeKey'](_0x5ebf69['suggestion']))||(_0x4a7808['removeMarker'](_0x5bb22d['getFirstMarker']()),_0x141d6d=!0x0));}return _0x141d6d;})),_0x586d23['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2c4968,'FORMAT_INDENT'));const _0x209872={'type':'format','content':''};_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x2717c0=>{const {data:_0x2a910f}=_0x2717c0;if(!_0x2a910f||'listType'!=_0x2a910f['key'])return;let _0x50771c=_0x2717c0['head'];for(;_0x50771c;){if(_0x50771c['data']&&(('listStyle'==_0x50771c['data']['key']||'listMarkerStyle'==_0x50771c['data']['key'])&&(_0x50771c['data']['newValue']&&'default'!=_0x50771c['data']['newValue']||'default'!=_0x50771c['data']['oldValue']&&!_0x2a910f['newValue'])||!_0x157af2&&_0x50771c['data']['key']==m))return _0x209872;_0x50771c=_0x50771c['next'];}if(null==_0x2a910f['newValue'])switch(_0x2a910f['oldValue']){case'bulleted':return _0x22dfea(o(_0x2c4968,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22dfea(o(_0x2c4968,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22dfea(o(_0x2c4968,'ELEMENT_TODO_LIST'));}switch(_0x2a910f['newValue']){case'bulleted':return _0x524c28(o(_0x2c4968,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x524c28(o(_0x2c4968,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x524c28(o(_0x2c4968,'ELEMENT_TODO_LIST'));}}),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x2a1d5e=>{const {data:_0x48d051}=_0x2a1d5e;if(_0x48d051&&'listIndent'==_0x48d051['key'])return null==_0x48d051['newValue']||null==_0x48d051['oldValue']&&0x0==_0x48d051['newValue']?_0x209872:void 0x0;}),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x39ee34=>{if('attribute'!=_0x39ee34['type'])return;const {data:_0x4f4f10}=_0x39ee34;if(!_0x4f4f10||'listItemId'!=_0x4f4f10['key'])return;const _0x3f64fa=le(_0x39ee34);return'newValue'==_0x3f64fa?{'type':'format','content':o(_0x2c4968,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f64fa?{'type':'format','content':o(_0x2c4968,'*Split:*\x20list\x20item')}:_0x209872;}),_0x4a5082['model']['document']['registerPostFixer'](_0x24e4ed=>this['listItemIdFixer'](_0x24e4ed)),_0x4a5082['model']['document']['registerPostFixer'](_0x16b955=>this['noTrackChangesFixer'](_0x16b955)),_0x4a5082['model']['document']['registerPostFixer'](_0x3cfea9=>this['assureChains'](_0x3cfea9)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x232111){if(_0x232111['batch']['isUndo']||!_0x232111['batch']['isLocal'])return!0x1;let _0x7a2a55=!0x1;const _0x3c87a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b20b7=>_0x1b20b7['data']&&'listItemId'==_0x1b20b7['data']['key'])['filter'](_0x46f109=>_0x46f109['data']['newValue']&&_0x46f109['data']['oldValue']);for(const _0x284364 of _0x3c87a2)le(_0x284364)||(_0x232111['removeMarker'](_0x284364['getFirstMarker']()),_0x7a2a55=!0x0);return _0x7a2a55;}['noTrackChangesFixer'](_0x2589a8){if(_0x2589a8['batch']['isUndo']||!_0x2589a8['batch']['isLocal'])return!0x1;const _0x53d3a9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53d3a9['trackChangesCommand']['value'])return!0x1;let _0x34c779=!0x1;const _0x5f0948=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x268467=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x166824=>'attribute'==_0x166824['type'])['filter'](_0x3a5ffd=>_0x5f0948['includes'](_0x3a5ffd['attributeKey']));if(0x0==_0x268467['length'])return _0x34c779;for(const _0x4979e2 of _0x268467){const _0x5455df=_0x53d3a9['_findSuggestions'](_0x4979e2['range'],'attribute')['filter'](_0x26ae75=>!_0x26ae75['meta']['isNextTo'])['map'](_0x248aa4=>_0x248aa4['suggestion'])['filter'](_0x2152c2=>{const _0x42cd02=_0x53d3a9['_getAttributeKey'](_0x2152c2);return _0x5f0948['includes'](_0x42cd02);});if(_0x5455df['length']){for(const _0x25d416 of _0x5455df)_0x2589a8['removeMarker'](_0x25d416['getFirstMarker']());_0x34c779=!0x0;}}return _0x34c779;}['assureChains'](_0x11029a){if(_0x11029a['batch']['isUndo']||!_0x11029a['batch']['isLocal'])return!0x1;const _0x239d4a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3db0e2=!0x1;const _0x2c24cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x39133e of _0x239d4a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4204f3=_0x239d4a['_findSuggestions'](_0x39133e['getFirstRange'](),'attribute')['map'](_0x4b83fd=>_0x4b83fd['suggestion'])['filter'](_0x49f75f=>_0x49f75f['data']&&_0x2c24cb['includes'](_0x49f75f['data']['key']));if(!_0x4204f3['length'])continue;const _0x497f1a=_0x4204f3[0x0]['head']['attributes']['groupId'];if(!_0x4204f3['every'](_0x15ac8e=>_0x15ac8e['attributes']['groupId']===_0x497f1a)){for(const _0x25cc49 of _0x4204f3)_0x2b328e(_0x25cc49,_0x497f1a)&&(_0x3db0e2=!0x0);}}return _0x3db0e2;function _0x48f639(_0x4d6849,_0x190c13){for(const _0x3e4252 of _0x239d4a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c9d1b=>'attribute'==_0x1c9d1b['type']&&_0x1c9d1b['attributes']['groupId']==_0x4d6849))_0x3e4252['setAttribute']('groupId',_0x190c13);}function _0x2b328e(_0xe8b1f4,_0x1b8a17){let _0x5d6b98=_0xe8b1f4['head'],_0x30723c=!0x1;for(;_0x5d6b98;)_0x5d6b98['attributes']['groupId']!=_0x1b8a17&&(_0x48f639(_0x5d6b98['attributes']['groupId'],_0x1b8a17),_0x5d6b98['setAttribute']('groupId',_0x1b8a17),_0x30723c=!0x0),_0x5d6b98=_0x5d6b98['next'];return _0x30723c;}}['_supportLegacySuggestions'](){const _0x5d8c53=this['editor'],_0x4f1b00=_0x5d8c53['locale'],_0x76b5fe=_0x5d8c53['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x76b5fe['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x294223,_0x25040f){const _0x341a98=[];for(let _0xccb91b of _0x294223)_0xccb91b['start']['nodeAfter']===_0xccb91b['end']['parent']&&(_0xccb91b=_0x5d8c53['model']['createRange'](_0x5d8c53['model']['createPositionAt'](_0xccb91b['start']['nodeAfter'],0x0))),_0x341a98['push'](_0xccb91b);_0x5d8c53['model']['change'](_0x355b29=>{const _0x5990ef=_0x5d8c53['model']['document']['selection'],_0x37a109=Array['from'](_0x5990ef['getRanges']())['map'](_0x27e7ad=>_0x16e800['fromRange'](_0x27e7ad));_0x355b29['setSelection'](_0x341a98),_0x5d8c53['commands']['get'](_0x25040f['commandName'])['refresh'](),_0x25040f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d8c53['execute'](_0x25040f['commandName'],..._0x25040f['commandParams']),_0x355b29['setSelection'](_0x37a109);for(const _0x17799a of _0x37a109)_0x17799a['detach']();});}),_0x76b5fe['descriptionFactory']['registerElementLabel'](function(_0x380f9b){const _0x1cd546=!_0x5d8c53['model']['schema']['isObject'](_0x380f9b),_0x468034=_0x380f9b['previousSibling'],_0x25bc0d=_0x380f9b['nextSibling'],_0xc94df6=_0x380f9b['getAttribute']('listItemId'),_0x1f672a=!_0x468034||_0x468034['getAttribute']('listItemId')!==_0xc94df6,_0x411380=!_0x25bc0d||_0x25bc0d['getAttribute']('listItemId')!==_0xc94df6;return _0x1cd546&&Boolean(_0xc94df6)&&_0x1f672a&&_0x411380;},_0x48b733=>o(_0x4f1b00,'ELEMENT_LIST_ITEM',_0x48b733));}['_registerLegacyDescription'](){const _0xa9f736=this['editor'],_0x148485=_0xa9f736['locale'];function _0x23e1f3(_0x3e9c4b){const _0x4a88ac=_0xa9f736['commands']['get']('bulletedList')['value'],_0x22606d=_0xa9f736['commands']['get']('numberedList')['value'];return'numberedList'===_0x3e9c4b?_0x4a88ac:_0x22606d;}_0xa9f736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a49af){if('formatBlock'!=_0x4a49af['type'])return;const {data:_0x390d8f}=_0x4a49af;if(!_0x390d8f)return;let _0x3823be,_0x26374,_0x5266c2,_0x5bcfb1;switch(_0x390d8f['commandName']){case'bulletedList':_0x5266c2=_0x390d8f['commandParams'][0x0]['forceValue'],_0x5bcfb1=_0x23e1f3(_0x390d8f['commandName']),_0x3823be=_0x5266c2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bcfb1&&_0xa9f736['config']['get']('list.multiBlock')||(_0x3823be='*Change\x20to:*\x20%0'),_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5266c2=_0x390d8f['commandParams'][0x0]['forceValue'],_0x5bcfb1=_0x23e1f3(_0x390d8f['commandName']),_0x3823be=_0x5266c2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bcfb1&&_0xa9f736['config']['get']('list.multiBlock')||(_0x3823be='*Change\x20to:*\x20%0'),_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3823be='*Indent:*\x20%0',_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3823be=function(_0x117b29){const _0x38d40e=_0x117b29['getFirstRange']();let _0x1dc934=_0x38d40e['start']['nodeAfter'];for(;_0x1dc934&&_0x38d40e['containsItem'](_0x1dc934);){if(_0x1dc934['getAttribute']('listIndent')>0x0)return!0x1;_0x1dc934=_0x1dc934['nextSibling'];}return!0x0;}(_0x4a49af)?o(_0x148485,'*Format:*\x20remove\x20from\x20%0',o(_0x148485,function(_0x1a4c48){return'ELEMENT_'+_0x1a4c48['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a49af))):o(_0x148485,'*Outdent:*\x20%0',o(_0x148485,'ELEMENT_LIST_ITEM')),_0x26374={'type':'format','content':_0x3823be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x390d8f['multipleBlocks']&&(_0x3823be='*Merge:*\x20%0',_0x26374={'type':'deletion','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_LIST_ITEM'))});}return _0x26374;});}}function le(_0x5c0107){let _0x4d303f=_0x5c0107['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d303f;){const _0x39a255=_0x4d303f['getAttribute']('listItemId');if(!_0x39a255)return!0x1;if(_0x39a255==_0x5c0107['data']['newValue'])return'newValue';if(_0x39a255==_0x5c0107['data']['oldValue'])return'oldValue';_0x4d303f=_0x4d303f['previousSibling'];}return!0x1;}class ue extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4525b5=this['editor']['config']['get']('list.properties'),_0x18a7c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4525b5['styles']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listStyle'),_0x18a7c8['registerBlockAttribute']('listStyle')),_0x4525b5['reversed']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listReversed'),_0x18a7c8['registerBlockAttribute']('listReversed')),_0x4525b5['startIndex']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listStart'),_0x18a7c8['registerBlockAttribute']('listStart'));const _0x336b89={'type':'format','content':''};_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47fae6=this['editor']['locale'];_0x18a7c8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47fae6,'FORMAT_LIST_REVERSED')),_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](_0x21dbed=>{const {data:_0x104a72}=_0x21dbed;if(_0x104a72&&'listReversed'==_0x104a72['key'])return null==_0x104a72['newValue']||0x0==_0x104a72['newValue']&&null==_0x104a72['oldValue']?_0x336b89:void 0x0;}),_0x18a7c8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47fae6,'FORMAT_LIST_START')),_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](_0x356dd1=>{const {data:_0x47c543}=_0x356dd1;if(_0x47c543&&'listStart'==_0x47c543['key'])return null==_0x47c543['newValue']||0x1==_0x47c543['newValue']&&null==_0x47c543['oldValue']?_0x336b89:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x348dfb=>{if(_0x348dfb['batch']['isUndo'])return!0x1;let _0x74a3f7=!0x1;const _0x337c8a=_0x18a7c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73e44a=>{const _0x18acd0=_0x18a7c8['_getAttributeKey'](_0x73e44a);return'listStart'==_0x18acd0||'listReversed'==_0x18acd0;});for(const _0x141de8 of _0x337c8a){const _0x546033=_0x141de8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x546033||'customNumbered'==_0x546033)continue;_0x18a7c8['_findSuggestions'](_0x141de8['getFirstRange'](),'attribute')['find'](_0x3bfdc2=>'listType'==_0x18a7c8['_getAttributeKey'](_0x3bfdc2['suggestion']))||(_0x348dfb['removeMarker'](_0x141de8['getFirstMarker']()),_0x74a3f7=!0x0);}return _0x74a3f7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x52b8be){const _0x43ddc8=this['editor']['locale'],{data:_0x320c92}=_0x52b8be,_0x3cac3e={'type':'format','content':''};if(!_0x320c92||'listStyle'!=_0x320c92['key'])return;if(!_0x320c92['oldValue'])return'default'==_0x320c92['newValue']?_0x3cac3e:{'type':'format','content':''+o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['newValue'])))};if(!_0x320c92['newValue']){if('default'==_0x320c92['oldValue'])return _0x3cac3e;let _0x4fdfef=_0x52b8be['head'];for(;_0x4fdfef;){if(_0x4fdfef['data']&&'listType'==_0x4fdfef['data']['key']&&_0x4fdfef['data']['newValue'])return _0x3cac3e;_0x4fdfef=_0x4fdfef['next'];}return{'type':'format','content':''+o(_0x43ddc8,'*Remove\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['oldValue'])))};}if('default'!=_0x320c92['newValue'])return{'type':'format','content':''+o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['newValue'])))};let _0x20b3b5=_0x52b8be['head'];for(;_0x20b3b5;){if(_0x20b3b5['data']&&'listType'==_0x20b3b5['data']['key']&&_0x20b3b5['data']['newValue']&&_0x20b3b5['data']['oldValue'])return _0x3cac3e;_0x20b3b5=_0x20b3b5['next'];}return{'type':'format','content':o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,'ELEMENT_'+_0x52b8be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2627b5=this['editor'],_0xd02e86=_0x2627b5['locale'];_0x2627b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3bc3=>{if('formatBlock'!=_0x3b3bc3['type'])return;const {data:_0x5f5cf6}=_0x3b3bc3;if(!_0x5f5cf6)return;let _0x466511,_0x54d665;switch(_0x5f5cf6['commandName']){case'listStyle':_0x466511='*Change\x20to:*\x20%0',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511,o(_0xd02e86,this['_getTranslationKeyForListStyle'](_0x5f5cf6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x466511=_0x5f5cf6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511)};break;case'listStart':_0x466511='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511,_0x5f5cf6['commandParams'][0x0]['startIndex'])};}return _0x54d665;});}['_getTranslationKeyForListStyle'](_0x378041){return'ELEMENT_'+function(_0x2f4b64){if(pe['includes'](_0x2f4b64))return'bulleted';if(ye['includes'](_0x2f4b64))return'numbered';return null;}(_0x378041)['toUpperCase']()+'_LIST_'+_0x378041['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5297f7{static get['requires'](){return[_0x3af30e];}['init'](){const _0x2e1ea2=this['editor'],_0x1c2be7=_0x2e1ea2['plugins']['get']('TrackChangesEditing'),_0x530bff=_0x2e1ea2['commands']['get']('enter');_0x1c2be7['enableCommand']('enter',()=>{_0x2e1ea2['model']['change'](_0x17c046=>{const _0x1c6f6b=_0x2e1ea2['model']['document']['selection'],_0x5002eb=_0x1c6f6b['getFirstPosition'](),_0x31125c=_0x16e800['fromRange'](_0x1c6f6b['getFirstRange']());if(_0x530bff['enterBlock'](_0x17c046)){const _0x41d5b8=_0x2e1ea2['model']['createPositionAt'](_0x5002eb['parent']['nextSibling'],0x0),_0x33107d=_0x17c046['createRange'](_0x5002eb,_0x41d5b8);_0x1c2be7['markInsertion'](_0x33107d);}else _0x17c046['setSelection'](_0x17c046['createRange'](_0x31125c['end']));_0x31125c['detach'](),_0x530bff['fire']('afterExecute',{'writer':_0x17c046});});}),_0x2e1ea2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2e1ea2,'split'),{'priority':'high'}),_0x2e1ea2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e9512,_0x283430,_0x58a64d)=>{const _0x1093c0=_0x58a64d['mapper']['markerNameToElements'](_0x283430['markerName']);if(_0x1093c0){for(const _0x2aba9b of _0x1093c0)_0x2aba9b['hasClass']('ck-suggestion-marker-split')&&(_0x58a64d['mapper']['unbindElementFromMarkerName'](_0x2aba9b,_0x283430['markerName']),_0x58a64d['writer']['remove'](_0x2aba9b));}},{'priority':'high'}),_0x2e1ea2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19a0be,_0x23aae5,_0x5dd287)=>{_0x5dd287['options']['showSuggestionHighlights']&&_e(_0x2e1ea2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19a0be,_0x23aae5,_0x5dd287);},{'priority':'high'});}}class J extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fb0df=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fb0df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fb0df['enableCommand']('findNext'),_0x3fb0df['enableCommand']('findPrevious'),_0x3fb0df['enableCommand']('replace'),_0x3fb0df['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a1764,_0x1c9cb4,_0x4f5664={}){const _0x113f91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a1764(_0xa6e61b=>('string'==typeof _0x1c9cb4?_0x113f91['findByTextCallback'](_0x1c9cb4,_0x4f5664):_0x1c9cb4)(_0xa6e61b)['filter'](_0x33a22c=>!0x1===this['_isInDeletionRange'](_0x33a22c,_0xa6e61b['item'])),_0x4f5664);}['_isInDeletionRange'](_0x236031,_0x3b56da){const _0x55730f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b56da,_0x236031['start']),this['editor']['model']['createPositionAt'](_0x3b56da,_0x236031['end']));for(const _0x14d260 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55730f['getIntersection'](_0x14d260['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5297f7{['afterInit'](){const _0x52baf6=this['editor']['locale'],_0xe5d727=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17194f,commandName:_0xf20343}of ro)this['editor']['plugins']['has'](_0x17194f)&&(_0xe5d727['enableDefaultAttributesIntegration'](_0xf20343),_0xe5d727['registerInlineAttribute'](_0xf20343));_0x52baf6['t'],_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x52baf6,'FORMAT_FONT_SIZE')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x52baf6,'FORMAT_FONT_FAMILY')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x52baf6,'FORMAT_FONT_COLOR')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x52baf6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547a10=this['editor'],_0x1481ad=_0x547a10['locale'];_0x547a10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181a78=>{const _0x3c446d=_0x1481ad['t'];if('formatInline'!=_0x181a78['type'])return;const {data:_0x42b28d}=_0x181a78;if(null!=_0x42b28d){if('fontSize'==_0x42b28d['commandName']){const _0x5b3ce0=_0x42b28d['commandParams'][0x0]['value'];if(_0x5b3ce0){const _0xc1e68b=_0x3c446d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x57f53b=>_0x57f53b['model']==_0x5b3ce0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20size:*\x20%0',_0xc1e68b)};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x42b28d['commandName']){const _0x5a549=_0x42b28d['commandParams'][0x0]['value'];return _0x5a549?{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20family:*\x20%0',_0x5a549)}:{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x42b28d['commandName']){const _0x3abc20=_0x42b28d['commandParams'][0x0]['value'];if(_0x3abc20){const _0x1612d7=_0x67f0ea(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e05d2=>_0x3e05d2['model']==_0x3abc20);let _0xef2126=_0x3abc20,_0x5ccf97='';return _0x1612d7&&(_0xef2126=_0x1612d7['label'],_0x5ccf97=_0x3c446d(_0xef2126)['toLowerCase']()),{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20color:*\x20%0',_0x5ccf97)['trim'](),'color':{'value':_0x3abc20,'title':_0x5ccf97||_0xef2126}};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x42b28d['commandName']){const _0x2c26fa=_0x42b28d['commandParams'][0x0]['value'];if(_0x2c26fa){const _0x40e1e3=_0x67f0ea(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x693afe=>_0x693afe['model']==_0x2c26fa);let _0x2789da=_0x2c26fa,_0x2fa1d2='';return _0x40e1e3&&(_0x2789da=_0x40e1e3['label'],_0x2fa1d2=_0x3c446d(_0x2789da)['toLowerCase']()),{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x2fa1d2)['trim'](),'color':{'value':_0x2c26fa,'title':_0x2fa1d2||_0x2789da}};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5297f7{['afterInit'](){const _0x182e36=this['editor'],_0x21da2d=_0x182e36['plugins']['get']('TrackChangesEditing'),_0x27f272=_0x182e36['commands']['get']('copyFormat'),_0x407a32=_0x182e36['commands']['get']('pasteFormat');_0x27f272&&_0x407a32&&(_0x21da2d['enableDefaultAttributesIntegration']('pasteFormat'),_0x21da2d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x325662=this['editor'],_0x51f3be=_0x325662['locale'];_0x325662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6185e=>{if('formatBlock'!=_0x6185e['type']&&'formatInline'!=_0x6185e['type'])return;const {data:_0x58f6aa}=_0x6185e;if(_0x58f6aa&&'pasteFormat'===_0x58f6aa['commandName']){const _0x874f07=[],_0x581eef=_0x58f6aa['commandParams'][0x0];for(const [_0x428937,_0x253d20]of Object['entries'](_0x581eef))_0x874f07['push'](so(_0x325662,_0x428937,_0x253d20));return _0x874f07['length']?{'type':'format','content':o(_0x51f3be,'*Set\x20format\x20to:*\x20%0',_0x874f07['join'](',\x20'))}:{'type':'format','content':o(_0x51f3be,'*Remove\x20all\x20formatting*')};}});}}function so(_0x56505c,_0x26388f,_0x4c80d6){const _0x3b1b1f=_0x56505c['locale']['t'],_0x27689f=_0x26388f['split'](/(?=[A-Z])/)['join']('\x20'),_0x164fe0=_0x3b1b1f(_0x27689f['charAt'](0x0)['toUpperCase']()+_0x27689f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c80d6)return _0x164fe0;if('fontColor'===_0x26388f||'fontBackgroundColor'===_0x26388f){const _0xc73764=_0x67f0ea(_0x56505c['config']['get']('fontColor.colors'))['find'](_0x16b06f=>_0x16b06f['model']==_0x4c80d6);return _0x164fe0+'\x20('+(_0xc73764?_0x3b1b1f(_0xc73764['label'])['toLowerCase']():_0x4c80d6)+')';}if('fontSize'===_0x26388f&&isNaN(parseFloat(_0x4c80d6))){const _0x3c8699=_0x56505c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x56505c['config']['get']('fontSize.options'))['find'](_0x5438cc=>_0x5438cc['model']==_0x4c80d6);return _0x164fe0+'\x20('+(_0x3c8699?_0x3b1b1f(_0x3c8699['title'])['toLowerCase']():_0x4c80d6)+')';}return _0x164fe0+'\x20('+_0x4c80d6+')';}class Y extends _0x5297f7{['_headingOptions'];['afterInit'](){const _0x43a956=this['editor'];if(!_0x43a956['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43a956['config']['get']('heading.options');const _0x496cc3=_0x43a956['locale'],_0x346cee=_0x43a956['plugins']['get']('TrackChangesEditing');_0x346cee['enableDefaultAttributesIntegration']('heading');for(const _0x5e1499 of this['_headingOptions'])'paragraph'!=_0x5e1499['model']&&_0x346cee['descriptionFactory']['registerElementLabel'](_0x5e1499['model'],_0x2f083e=>{const _0x106570=this['_getHeadingLevel'](_0x5e1499['model']);return null!==_0x106570?_0x4a1f70(_0x2f083e,_0x106570):_0x2e5f6c(_0x2f083e,_0x5e1499['title']);});function _0x4a1f70(_0xc8f186,_0x4ec2bf){return o(_0x496cc3,'ELEMENT_HEADING',[_0xc8f186,_0x4ec2bf]);}function _0x2e5f6c(_0x200b4d,_0x4de768){return o(_0x496cc3,'ELEMENT_HEADING_CUSTOM',[_0x200b4d,_0x4de768]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d307=this['editor'],_0x3395d4=_0x43d307['locale'];function _0x10124d(_0x8c9b0,_0x3769ee){return o(_0x3395d4,'ELEMENT_HEADING_CUSTOM',[_0x8c9b0,_0x3769ee]);}_0x43d307['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be79b=>{if('formatBlock'!=_0x5be79b['type'])return;const {data:_0x52b667}=_0x5be79b;if(_0x52b667&&'heading'==_0x52b667['commandName']){const _0x5ae083=_0x52b667['commandParams'][0x0]['value'],_0x51b3bd=this['_getHeadingLevel'](_0x5ae083);if(null!==_0x51b3bd)return{'type':'format','content':o(_0x3395d4,'*Change\x20to:*\x20%0',(_0x1764fc=0x1,_0x525863=_0x51b3bd,o(_0x3395d4,'ELEMENT_HEADING',[_0x1764fc,_0x525863])))};const _0x5adb90=this['_headingOptions']['find'](_0x4c0674=>_0x4c0674['model']===_0x5ae083)['title'];return{'type':'format','content':o(_0x3395d4,'*Change\x20to:*\x20%0',_0x10124d(0x1,_0x5adb90))};}var _0x1764fc,_0x525863;});}['_getHeadingLevel'](_0x4c876c){const _0x297c5a=_0x4c876c['match'](/^heading(\d+)/);if(_0x297c5a)return _0x297c5a[0x1];const _0x1fe0a0=this['_headingOptions']?.['find'](_0x5c8d32=>_0x5c8d32['model']==_0x4c876c);if(_0x1fe0a0&&_0x1fe0a0['view']){const _0x58263e=_0x1fe0a0['view'],_0x2d8cf3=(_0x58263e['name']??_0x58263e)['match'](/^h(\d+)/);if(_0x2d8cf3)return _0x2d8cf3[0x1];}return null;}}class Z extends _0x5297f7{['afterInit'](){const _0x1c3f41=this['editor'];if(!_0x1c3f41['plugins']['has']('HighlightEditing'))return;const _0x58b75b=_0x1c3f41['plugins']['get']('TrackChangesEditing'),_0x129948=_0x1c3f41['locale'];_0x58b75b['enableDefaultAttributesIntegration']('highlight'),_0x58b75b['registerInlineAttribute']('highlight'),_0x58b75b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x129948,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a3430=this['editor'],_0x214563=_0x4a3430['locale'];_0x4a3430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b813b=>{if('formatInline'!=_0x4b813b['type'])return;const {data:_0x26a572}=_0x4b813b;if(_0x26a572&&'highlight'==_0x26a572['commandName']){const _0x3be54a=_0x214563['t'],_0x5687f2=_0x26a572['commandParams'][0x0]['value'];if(_0x5687f2){const _0x5563ed=_0x4a3430['config']['get']('highlight.options')['find'](_0x500060=>_0x500060['model']==_0x5687f2),_0x350a5f=_0x3be54a(_0x5563ed['title'])['toLowerCase']();return{'type':'format','content':o(_0x214563,'*Set\x20highlight:*\x20%0',_0x350a5f),'color':{'value':_0x5563ed['color'],'title':_0x5563ed['title']}};}return{'type':'format','content':o(_0x214563,'*Remove\x20highlight*',o(_0x214563,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5297f7{['afterInit'](){const _0x29a66c=this['editor'];if(!_0x29a66c['plugins']['has']('HorizontalLineEditing'))return;_0x29a66c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x328d43=_0x29a66c['plugins']['get']('TrackChangesEditing'),_0x43319a=_0x29a66c['locale'];_0x328d43['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ac227=>o(_0x43319a,'ELEMENT_HORIZONTAL_LINE',_0x3ac227)),_0x29a66c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x9546d1,{writer:_0x22b5cd,options:_0x25a519})=>{if(!_0x25a519['showSuggestionHighlights'])return null;const _0xfdcaeb=_0x22b5cd['createContainerElement']('div'),_0x53b217=_0x22b5cd['createEmptyElement']('hr');return _0x22b5cd['addClass']('ck-horizontal-line',_0xfdcaeb),_0x22b5cd['insert'](_0x22b5cd['createPositionAt'](_0xfdcaeb,0x0),_0x53b217),_0xfdcaeb;},'converterPriority':'high'});}}class et extends _0x5297f7{['afterInit'](){const _0x3d0243=this['editor'];if(!_0x3d0243['plugins']['has']('HtmlEmbed'))return;const _0x4aa8eb=_0x3d0243['plugins']['get']('TrackChangesEditing'),_0x3d595c=_0x3d0243['locale'];_0x4aa8eb['descriptionFactory']['registerElementLabel']('rawHtml',_0x11e5f7=>o(_0x3d595c,'ELEMENT_HTML_EMBED',_0x11e5f7)),_0x4aa8eb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4aa8eb['registerBlockAttribute']('value'),_0x4aa8eb['descriptionFactory']['registerDescriptionCallback'](_0xc5ca68=>{if('attribute'!=_0xc5ca68['type'])return;const {data:_0x404351}=_0xc5ca68;if(_0x404351&&'value'==_0x404351['key']&&_0xc5ca68['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30a7ff=o(_0x3d595c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d595c,'*Change\x20%0\x20content*',_0x30a7ff)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x558d0a=this['editor'],_0x1a2c26=_0x558d0a['locale'];_0x558d0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fbe87=>{if('formatBlock'!=_0x2fbe87['type'])return;const {data:_0x2a303b}=_0x2fbe87;if(_0x2a303b&&'htmlEmbed'==_0x2a303b['commandName']){const _0x40f8f9=o(_0x1a2c26,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a2c26,'*Change\x20%0\x20content*',_0x40f8f9)};}});}}class it extends _0x5297f7{['afterInit'](){const _0x17a6e5=this['editor'];if(!_0x17a6e5['plugins']['has']('ImageEditing'))return;const _0x28149e=_0x17a6e5['plugins']['get']('TrackChangesEditing'),_0x401b7a=_0x17a6e5['plugins']['get']('ImageUtils'),_0x232902=_0x17a6e5['locale'];_0x28149e['enableCommand']('insertImage'),_0x28149e['descriptionFactory']['registerElementLabel']('imageBlock',_0x37a35b=>o(_0x232902,'ELEMENT_IMAGE',_0x37a35b)),_0x28149e['descriptionFactory']['registerElementLabel']('imageInline',_0x1db471=>o(_0x232902,'ELEMENT_INLINE_IMAGE',_0x1db471)),_0x28149e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x232902,'ELEMENT_CAPTION')),_0x17a6e5['plugins']['has']('ImageUploadEditing')&&_0x28149e['enableCommand']('uploadImage'),_0x17a6e5['plugins']['has']('ImageBlockEditing')&&_0x17a6e5['plugins']['has']('ImageInlineEditing')&&(_0x28149e['enableCommand']('imageTypeInline',(_0x3bdffa,_0x170084)=>{const _0x55676f=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']);_0x17a6e5['model']['change'](()=>{_0x28149e['markBlockFormat'](_0x55676f,{'commandName':'imageTypeInline','commandParams':[_0x170084]},[],'convertBlockImageToInline');});}),_0x28149e['enableCommand']('imageTypeBlock',(_0x85b7a1,_0x24f2d2)=>{_0x17a6e5['model']['change'](_0x14e18e=>{let _0x3c1f5c=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x2cb019=_0x14e18e['createRangeOn'](_0x3c1f5c);const _0x532bd4=_0x4101dd['fromPosition'](_0x2cb019['start'],'toPrevious'),_0x5a9a03=_0x4101dd['fromPosition'](_0x2cb019['end'],'toNext');_0x28149e['forceDefaultExecution'](()=>_0x85b7a1(_0x24f2d2)),_0x3c1f5c=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x2cb019=_0x14e18e['createRangeOn'](_0x3c1f5c);const _0x2d3744=_0x14e18e['createRange'](_0x532bd4,_0x5a9a03);_0x532bd4['detach'](),_0x5a9a03['detach'](),_0x28149e['markBlockFormat'](_0x3c1f5c,{'commandName':'imageTypeInline','commandParams':[_0x24f2d2]},[],'convertInlineImageToBlock'),_0x2d3744['start']['isBefore'](_0x2cb019['start'])&&_0x28149e['markInsertion'](_0x14e18e['createRange'](_0x2d3744['start'],_0x2cb019['start']),'convertInlineImageToBlock'),_0x2cb019['end']['isBefore'](_0x2d3744['end'])&&_0x28149e['markInsertion'](_0x14e18e['createRange'](_0x2cb019['end'],_0x2d3744['end']),'convertInlineImageToBlock');});}),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x28149e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x340adb])=>{const _0x29ebda=_0x28149e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xfa81fa=_0x340adb['start'],_0x29bb52=_0x340adb['end'];const _0x25199f=_0x17a6e5['model']['schema']['getNearestSelectionRange'](_0xfa81fa,'backward'),_0x132bcb=_0x17a6e5['model']['schema']['getNearestSelectionRange'](_0x29bb52,'forward');_0x25199f['isCollapsed']&&(_0xfa81fa=_0x25199f['start']),_0x132bcb['isCollapsed']&&(_0x29bb52=_0x132bcb['end']),_0x29ebda([_0x17a6e5['model']['createRange'](_0xfa81fa,_0x29bb52)]);}),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c62fb),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c62fb)),_0x17a6e5['plugins']['has']('ImageCaptionEditing')&&(_0x28149e['enableCommand']('toggleImageCaption',(_0xa74ffa,_0x1c5cd3)=>{const _0x50ad8e=_0x17a6e5['plugins']['get']('ImageCaptionUtils');let _0x14db90=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x11b9d8=_0x50ad8e['getCaptionFromImageModelElement'](_0x14db90);_0x17a6e5['model']['change'](()=>{if(_0x11b9d8)return void _0x28149e['markDeletion'](_0x17a6e5['model']['createRangeOn'](_0x11b9d8));const _0x536618=_0x401b7a['isBlockImage'](_0x14db90);_0xa74ffa(_0x1c5cd3),_0x14db90=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x11b9d8=_0x50ad8e['getCaptionFromImageModelElement'](_0x14db90),_0x28149e['markInsertion'](_0x17a6e5['model']['createRangeOn'](_0x11b9d8),_0x536618?null:'imageCaption');});}),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c62fb));const _0x2da3df=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xf1da3b(_0x37c4c5,_0x3bcb35){const _0x9859f2=_0x2da3df['findIndex'](({type:_0x3207f3,subType:_0x45dc9f})=>_0x37c4c5['type']==_0x3207f3&&_0x37c4c5['subType']==_0x45dc9f),_0x1cd180=_0x2da3df['findIndex'](({type:_0x11f12c,subType:_0x93dd19})=>_0x3bcb35['type']==_0x11f12c&&_0x3bcb35['subType']==_0x93dd19);if(_0x9859f2<0x0||_0x1cd180<0x0)return!0x1;const _0x50cf9c=_0x37c4c5['getFirstRange'](),_0x2d817b=_0x3bcb35['getFirstRange']();if((0x0==_0x9859f2||0x1==_0x9859f2)&&0x2==_0x1cd180&&_0x50cf9c['isIntersecting'](_0x2d817b))return!0x0;if(0x2==_0x9859f2&&0x3==_0x1cd180){const _0x1d0b18=_0x28149e['_findSuggestions'](_0x50cf9c,'insertion')['filter'](({suggestion:_0x279511,meta:_0x23ec79})=>_0x23ec79['isOwn']&&'convertInlineImageToBlock'==_0x279511['subType']);if(_0x1d0b18['length']>0x1&&_0x2d817b['end']['isEqual'](_0x50cf9c['start']))return!0x0;if(0x1==_0x1d0b18['length']&&(_0x50cf9c['start']['isEqual'](_0x2d817b['end'])||_0x50cf9c['end']['isEqual'](_0x2d817b['start'])))return!0x0;}if(0x3==_0x9859f2&&0x3==_0x1cd180&&_0x50cf9c['start']['isBefore'](_0x2d817b['start'])){const _0x2f7343=_0x50cf9c['end']['nodeAfter'],_0x23acab=_0x2d817b['start']['nodeBefore'];return _0x401b7a['isBlockImage'](_0x2f7343)&&_0x2f7343===_0x23acab;}return!0x1;}function _0x4c62fb(_0xb7e95d,_0x26d313){return _0xf1da3b(_0xb7e95d,_0x26d313)?[_0xb7e95d,_0x26d313]:_0xf1da3b(_0x26d313,_0xb7e95d)?[_0x26d313,_0xb7e95d]:null;}_0x17a6e5['plugins']['has']('ImageResize')&&(_0x28149e['enableDefaultAttributesIntegration']('resizeImage'),_0x28149e['registerBlockAttribute']('resizedWidth'),_0x28149e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x232902,'FORMAT_IMAGE_SIZE'))),_0x17a6e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x28149e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x28149e['registerBlockAttribute']('alt')),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x8427d2=>{if(!!_0x2da3df['find'](({type:_0x2ca76e,subType:_0x3d2382})=>_0x8427d2['type']==_0x2ca76e&&_0x8427d2['subType']==_0x3d2382))return _0x8427d2['previous']?{}:void 0x0;}),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x2a145b=>{if('insertion'==_0x2a145b['type']||'deletion'==_0x2a145b['type']){const _0x2a80d5=_0x2a145b['getContainedElement']();if(_0x2a80d5&&_0x2a80d5['is']('element','caption'))return{'type':'insertion'==_0x2a145b['type']?'addObject':'removeObject','element':_0x2a80d5,'quantity':0x1};}}),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x341829=>'formatBlock'==_0x341829['type']&&'convertInlineImageToBlock'==_0x341829['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x341829['type']&&'convertBlockImageToInline'==_0x341829['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x32998d=>{if('attribute'!=_0x32998d['type'])return;const {data:_0x399aae}=_0x32998d;if(!_0x399aae||'alt'!=_0x399aae['key'])return;const _0x407057=_0x399aae['newValue'];return _0x407057?{'type':'format','content':o(_0x232902,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x407057+'\x22')}:{'type':'format','content':o(_0x232902,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7559f=this['editor'],_0x415f01=_0xa7559f['locale'];_0xa7559f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c924=>{if('formatBlock'!=_0x55c924['type']&&'formatInline'!=_0x55c924['type'])return;const {data:_0x572efa}=_0x55c924;if(_0x572efa){if('imageTextAlternative'==_0x572efa['commandName']){const _0x263b2b=_0x572efa['commandParams'][0x0]['newValue'];return _0x263b2b?{'type':'format','content':o(_0x415f01,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x263b2b+'\x22')}:{'type':'format','content':o(_0x415f01,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x572efa['commandName']){const _0x1859ee=_0x572efa['commandParams'][0x0]['width'];return _0x1859ee?{'type':'format','content':o(_0x415f01,'*Set\x20image\x20width:*\x20%0',_0x1859ee)}:{'type':'format','content':o(_0x415f01,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x15132b=this['editor']['locale'],_0x4e31a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e31a9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e31a9['registerBlockAttribute']('src'),_0x4e31a9['descriptionFactory']['registerDescriptionCallback'](_0x4357bd=>{if('attribute'!=_0x4357bd['type'])return;const {data:_0x1de809}=_0x4357bd;return _0x1de809&&'src'==_0x1de809['key']?_0x1de809['newValue']&&_0x1de809['oldValue']?{'type':'format','content':o(_0x15132b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x108f57=this['editor']['plugins']['get']('TrackChangesEditing');_0x108f57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x108f57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x108f57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x108f57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa505=this['editor'],_0x412fbb=_0x4fa505['locale'];_0x4fa505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33c657=>{if('formatBlock'!=_0x33c657['type']&&'formatInline'!=_0x33c657['type'])return;const {data:_0x4771c3}=_0x33c657;if(!_0x4771c3||'replaceImageSource'!=_0x4771c3['commandName'])return;return{'type':'format','content':o(_0x412fbb,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5297f7{['afterInit'](){const _0x33529e=this['editor'];if(!_0x33529e['plugins']['has']('ImageStyleEditing'))return;const _0x56f6af=_0x33529e['plugins']['get']('TrackChangesEditing'),_0x5a0a6d=_0x33529e['plugins']['get']('ImageUtils'),_0x4c8018={};_0x56f6af['enableCommand']('imageStyle',(_0x52f1d6,_0x41e4f2)=>{const _0x52abb6=_0x33529e['plugins']['get']('Users')['me'],_0x238cc1=_0x33529e['commands']['get']('imageStyle');let _0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),_0x10f40c=_0x33529e['model']['createRangeOn'](_0x227334),_0x5d3eb2=_0x238cc1['value'];if(_0x5d3eb2==_0x41e4f2['value'])return;const _0x1fb8a0={'commandName':'imageStyle','commandParams':[_0x41e4f2],'formatGroupId':_0x48fd30()};_0x33529e['model']['change'](()=>{if(_0x56f6af['getSuggestions']()['filter'](_0x1c4794=>_0x1c4794['isInContent']&&_0x52abb6==_0x1c4794['author']&&('formatBlock'==_0x1c4794['type']||'formatInline'==_0x1c4794['type'])&&('imageStylePreApply'==_0x1c4794['subType']||'imageStylePostApply'==_0x1c4794['subType'])&&_0x1c4794['getFirstRange']()['isEqual'](_0x10f40c))['forEach'](_0x3a8322=>_0x56f6af['discardSuggestion'](_0x3a8322['head'])),_0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),_0x10f40c=_0x33529e['model']['createRangeOn'](_0x227334),_0x238cc1['refresh'](),_0x33529e['commands']['get']('imageTypeInline')['refresh'](),_0x33529e['commands']['get']('imageTypeBlock')['refresh'](),_0x5d3eb2=_0x238cc1['value'],_0x5d3eb2!=_0x41e4f2['value'])return _0x5a0a6d['isInlineImage'](_0x227334)&&_0x238cc1['shouldConvertImageType'](_0x41e4f2['value'],_0x227334)?(_0x52f1d6({..._0x41e4f2,'setImageSizes':!0x1}),_0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),void _0x56f6af['markBlockFormat'](_0x227334,{..._0x1fb8a0,'commandReversedParams':[{'value':_0x5d3eb2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0a6d['isBlockImage'](_0x227334)?_0x56f6af['markBlockFormat'](_0x227334,_0x1fb8a0,[],'imageStylePostApply'):_0x56f6af['markInlineFormat'](_0x10f40c,_0x1fb8a0,'imageStylePostApply'));});});for(const _0xc55c81 of _0x33529e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c8018[_0xc55c81['name']]=_0xc55c81['title']['toLowerCase']();_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3fc170])=>{_0x5a0a6d['setImageNaturalSizeAttributes'](_0x3fc170['getContainedElement']());}),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3428bc,_0x380533)=>{_0x56f6af['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3428bc,{'commandName':_0x380533['commandName'],'commandParams':_0x380533['commandReversedParams']});}),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x493479,_0x443455){if(_0x1cb40c(_0x493479,_0x443455))return[_0x493479,_0x443455];if(_0x1cb40c(_0x443455,_0x493479))return[_0x443455,_0x493479];return null;});const _0x1a61db=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1cb40c(_0x242b4d,_0xa1d0cc){const _0x4b81e7=_0x1a61db['findIndex'](({type:_0x4c54fc,subType:_0x5b9b60})=>_0x242b4d['type']==_0x4c54fc&&_0x242b4d['subType']==_0x5b9b60),_0x5f4e20=_0x1a61db['findIndex'](({type:_0x33482c,subType:_0x356d14})=>_0xa1d0cc['type']==_0x33482c&&_0xa1d0cc['subType']==_0x356d14);if(_0x4b81e7<0x0||_0x5f4e20<0x0)return!0x1;const _0x16735b=_0x242b4d['getFirstRange'](),_0x2ee633=_0xa1d0cc['getFirstRange']();if((0x0==_0x4b81e7||0x1==_0x4b81e7)&&0x2==_0x5f4e20&&_0x16735b['isIntersecting'](_0x2ee633))return!0x0;if(0x2==_0x4b81e7&&0x3==_0x5f4e20){const _0x21b0a9=_0x56f6af['_findSuggestions'](_0x16735b,'insertion')['filter'](({suggestion:_0x4698af,meta:_0x1e2cd8})=>_0x1e2cd8['isOwn']&&'convertInlineImageToBlock'==_0x4698af['subType']);if(_0x21b0a9['length']>0x1&&_0x2ee633['end']['isEqual'](_0x16735b['start']))return!0x0;if(0x1==_0x21b0a9['length']&&(_0x16735b['start']['isEqual'](_0x2ee633['end'])||_0x16735b['end']['isEqual'](_0x2ee633['start'])))return!0x0;}if(0x3==_0x4b81e7&&0x3==_0x5f4e20&&_0x16735b['start']['isBefore'](_0x2ee633['start'])){const _0x12cc07=_0x16735b['end']['nodeAfter'],_0x11a619=_0x2ee633['start']['nodeBefore'];return _0x5a0a6d['isBlockImage'](_0x12cc07)&&_0x12cc07===_0x11a619;}return!0x1;}_0x33529e['model']['document']['registerPostFixer'](()=>{let _0x15f347=!0x1;const _0xfa1f20=Array['from'](_0x33529e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2655c5,data:_0x3ac688}of _0xfa1f20){const {group:_0x286742,type:_0x5ba5f1,subType:_0x51e90c,id:_0x53e02c}=_0x56f6af['_splitMarkerName'](_0x2655c5);if('suggestion'==_0x286742&&_0x56f6af['hasSuggestion'](_0x53e02c)){if('formatBlock'==_0x5ba5f1&&('imageStylePreApply'==_0x51e90c||'imageStylePostApply'==_0x51e90c)){const _0x5e2dcc=_0x56f6af['getSuggestion'](_0x53e02c);if(_0x3ac688['newRange']){const _0x5b2e4e=_0x5e2dcc['getFirstRange']()['getContainedElement']();if(_0x5a0a6d['isBlockImage'](_0x5b2e4e))continue;_0x56f6af['discardSuggestion'](_0x5e2dcc),_0x15f347=!0x0;}}if('insertion'==_0x5ba5f1&&'imageCaption'==_0x51e90c&&!_0x3ac688['newRange']){const _0x78d015=_0x56f6af['getSuggestion'](_0x53e02c);_0x78d015['next']&&_0x78d015['next']['isInContent']&&(_0x56f6af['discardSuggestion'](_0x78d015['next']),_0x15f347=!0x0);}}}return _0x15f347;}),this['_registerLegacyDescription'](_0x4c8018);}['_registerLegacyDescription'](_0x34aa1e){const _0x5362e5=this['editor'],_0x1531a9=_0x5362e5['locale'];_0x5362e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7b49=>{if('formatBlock'!=_0x1b7b49['type']&&'formatInline'!=_0x1b7b49['type'])return;const {data:_0x69ab4c}=_0x1b7b49;if(!_0x69ab4c||'imageStyle'!=_0x69ab4c['commandName'])return;const _0x1ab1fc=_0x69ab4c['commandParams'][0x0]['value'];return _0x2b3621('side'===_0x1ab1fc?o(_0x1531a9,'FORMAT_SIDE_IMAGE'):_0x34aa1e[_0x1ab1fc]||_0x1ab1fc);function _0x2b3621(_0x298cec){return{'type':'format','content':o(_0x1531a9,'*Format:*\x20%0',_0x298cec)};}});}}class ot extends _0x5297f7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a9b0e){super(_0x4a9b0e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5af7fc=this['editor'],_0x199d5c=_0x5af7fc['commands']['get']('importWord'),_0x3d8f0f=_0x5af7fc['commands']['get']('trackChanges');_0x199d5c&&(_0x199d5c['on']('execute',(_0x397e60,[,_0x84add6])=>{this['_trackChangesValueDuringImport']=_0x3d8f0f['value'],_0x84add6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x199d5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x199d5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3d8f0f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5af7fc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5b7a78,_0x358e80){const {suggestions:_0x3ca7d5}=_0x358e80,_0x3e3246=this['editor']['commands']['get']('trackChanges'),_0xd6c24d=_0x3e3246['value'];this['_trackChangesValueDuringImport']!==_0xd6c24d&&(_0x3e3246['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ca7d5&&_0x3ca7d5['forEach'](({id:_0x192670,type:_0x3d7b0b,author:_0x1c0c64,created_at:_0x3a3691})=>{const _0x387a44={'id':_0x192670,'type':_0x3d7b0b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c0c64,'createdAt':_0x3a3691?new Date(_0x3a3691):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x387a44);});}}class rt extends _0x5297f7{['afterInit'](){const _0x4ffa7b=this['editor'],_0x18e736=_0x4ffa7b['plugins']['get']('TrackChangesEditing');if(_0x4ffa7b['plugins']['has']('IndentEditing')&&(_0x18e736['enableCommand']('indent'),_0x18e736['enableCommand']('outdent')),_0x4ffa7b['plugins']['has']('IndentBlock')){for(const _0x9ded69 of['indentBlock','outdentBlock'])_0x18e736['enableDefaultAttributesIntegration'](_0x9ded69);}const _0x18285d=_0x4ffa7b['locale'];_0x18e736['registerBlockAttribute']('blockIndent'),_0x18e736['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x18285d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b3ac=this['editor'],_0x2b9cfd=_0x44b3ac['locale'],_0x550b90=_0x44b3ac['plugins']['get']('TrackChangesEditing');_0x550b90['descriptionFactory']['registerDescriptionCallback'](_0x1fb61d=>{if('formatBlock'!=_0x1fb61d['type'])return;const {data:_0x27114f}=_0x1fb61d;if(!_0x27114f)return;if('indentBlock'!=_0x27114f['commandName']&&'outdentBlock'!=_0x27114f['commandName'])return;const _0x43744f=_0x1fb61d['getItems']()[0x0],_0x29d6f7=_0x550b90['descriptionFactory']['getItemLabel'](_0x43744f);return'indentBlock'==_0x27114f['commandName']?{'type':'format','content':o(_0x2b9cfd,'*Indent:*\x20%0',_0x29d6f7)}:'outdentBlock'==_0x27114f['commandName']?{'type':'format','content':o(_0x2b9cfd,'*Outdent:*\x20%0',_0x29d6f7)}:void 0x0;});}}class at extends _0x5297f7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5297f7{['afterInit'](){const _0x390506=this['editor'];if(!_0x390506['plugins']['has']('LinkEditing'))return;const _0x5dc023=_0x390506['plugins']['get']('TrackChangesEditing'),_0x48ca4b=_0x390506['commands']['get']('link');_0x5dc023['enableDefaultAttributesIntegration']('link'),_0x5dc023['enableDefaultAttributesIntegration']('unlink'),_0x5dc023['registerInlineAttribute']('linkHref');for(const _0x4d42ff of _0x48ca4b['manualDecorators'])_0x5dc023['registerInlineAttribute'](_0x4d42ff['id']),_0x5dc023['descriptionFactory']['registerAttributeLabel'](_0x4d42ff['id'],'link\x20('+_0x4d42ff['label']['toLowerCase']()+')');_0x5dc023['descriptionFactory']['registerDescriptionCallback'](_0x4aadd7=>{if('attribute'!=_0x4aadd7['type'])return;const {data:_0x4dd563}=_0x4aadd7;if(!_0x4dd563||'linkHref'!=_0x4dd563['key'])return;const _0x3492f8=_0x4dd563['newValue'],_0x3f23b7=_0x390506['locale'];return{'type':'format','content':null==_0x3492f8?o(_0x3f23b7,'*Remove\x20link*'):o(_0x3f23b7,'*Set\x20link:*\x20%0','\x22'+_0x3492f8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dde91=this['editor'],_0x2464c3=_0x5dde91['locale'];_0x5dde91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d55a8=>{if('formatInline'!=_0x5d55a8['type'])return;const {data:_0x27a456}=_0x5d55a8;if(_0x27a456){if('link'==_0x27a456['commandName']){const _0x523211=_0x27a456['commandParams'][0x0];return{'type':'format','content':o(_0x2464c3,'*Set\x20link:*\x20%0','\x22'+_0x523211+'\x22')};}return'unlink'==_0x27a456['commandName']?{'type':'format','content':o(_0x2464c3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5297f7{['afterInit'](){const _0x54724d=this['editor'],_0x4d88c3=_0x54724d['locale'];if(!_0x54724d['plugins']['has']('LegacyListEditing'))return;const _0x30ad15=_0x54724d['plugins']['get']('TrackChangesEditing'),_0x5ccc5c=_0x54724d['plugins']['has']('LegacyTodoListEditing');function _0x3b432c(_0x4881b4){return()=>{const _0x5a3071=_0x54724d['model']['document']['selection'],_0x5c25a8=_0x54724d['commands']['get'](_0x4881b4);if(_0x5c25a8['value'])return void _0x54724d['execute']('paragraph',{});const _0x5bbb61=_0x4881b4['slice'](0x0,-0x4),_0xb52b21=function(_0xfc224c,_0x1967a0,_0x2f6534){let _0x42cd21=Array['from'](_0xfc224c)['filter'](_0x2d6424=>function(_0x41de3d,_0x2ac824){return _0x2ac824['checkChild'](_0x41de3d['parent'],'listItem')&&!_0x2ac824['isObject'](_0x41de3d);}(_0x2d6424,_0x2f6534));_0x42cd21=_0x42cd21['filter'](_0x32b1fa=>!_0x32b1fa['is']('element','listItem')||_0x32b1fa['getAttribute']('listType')!=_0x1967a0);const _0x37fd38=new Set();for(const _0x175270 of _0x42cd21)_0x175270['is']('element','listItem')?_0x37fd38['add'](me(_0x175270)):_0x37fd38['add'](_0x175270);return Array['from'](_0x37fd38);}(_0x5a3071['getSelectedBlocks'](),_0x5bbb61,_0x54724d['model']['schema']);_0x54724d['model']['change'](()=>{for(const _0x31dd07 of _0xb52b21)_0x30ad15['markBlockFormat'](_0x31dd07,{'commandName':_0x4881b4,'commandParams':[{'forceValue':!_0x5c25a8['value']}],'formatGroupId':'blockName'},fe(_0x31dd07));});};}function _0x36e7c6(_0x57e22e){return()=>{const _0x3e2ce8=function(_0x368289){let _0x4b41fd=Array['from'](_0x368289);const _0x240f5c=_0x4b41fd['findIndex'](_0x1a8d51=>'listItem'!=_0x1a8d51['name']);return _0x240f5c>-0x1&&(_0x4b41fd=_0x4b41fd['slice'](0x0,_0x240f5c)),_0x4b41fd;}(_0x54724d['model']['document']['selection']['getSelectedBlocks']()),_0x365605=_0x54724d['model']['createRange'](_0x54724d['model']['createPositionAt'](_0x3e2ce8[0x0],'before'),_0x54724d['model']['createPositionAt'](_0x3e2ce8[_0x3e2ce8['length']-0x1],'end'));_0x54724d['model']['change'](()=>{_0x30ad15['markBlockFormat'](_0x365605,{'commandName':_0x57e22e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x545075){const _0x88a144=new Set();for(const _0x15873b of _0x545075){let _0x1c9ee9=_0x15873b['nextSibling'];for(;_0x1c9ee9&&_0x1c9ee9['getAttribute']('listIndent')>_0x15873b['getAttribute']('listIndent');)_0x88a144['add'](_0x1c9ee9),_0x1c9ee9=_0x1c9ee9['nextSibling'];}return Array['from'](_0x88a144);}(_0x3e2ce8));});};}_0x30ad15['enableCommand']('numberedList',_0x3b432c('numberedList')),_0x30ad15['enableCommand']('bulletedList',_0x3b432c('bulletedList')),_0x5ccc5c&&_0x30ad15['enableCommand']('todoList',_0x3b432c('todoList')),_0x30ad15['enableCommand']('indentList',_0x36e7c6('indentList')),_0x30ad15['enableCommand']('outdentList',_0x36e7c6('outdentList')),_0x5ccc5c&&_0x30ad15['enableCommand']('checkTodoList',()=>{const _0x362a11=_0x54724d['commands']['get']('checkTodoList'),_0x35a8f2=Array['from'](_0x362a11['_selectedElements']);_0x35a8f2['filter'](_0x48d775=>_0x48d775['getAttribute']('todoListChecked')!=_0x362a11['value']),_0x54724d['model']['change'](()=>{for(const _0x3c914c of _0x35a8f2)_0x30ad15['markBlockFormat'](_0x3c914c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x362a11['value']}]});});}),_0x30ad15['descriptionFactory']['registerElementLabel']('listItem',_0x1c286e=>o(_0x4d88c3,'ELEMENT_LIST_ITEM',_0x1c286e)),_0x30ad15['descriptionFactory']['registerDescriptionCallback'](_0x6ff86a=>{if('formatBlock'!=_0x6ff86a['type']&&'formatInline'!=_0x6ff86a['type'])return;const {data:_0x54a39c}=_0x6ff86a;if(_0x54a39c){if('numberedList'==_0x54a39c['commandName']||'bulletedList'==_0x54a39c['commandName']||'todoList'==_0x54a39c['commandName'])switch(_0x54a39c['commandName']['replace']('List','')){case'bulleted':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x54a39c['commandName'])return{'type':'format','content':o(_0x4d88c3,'*Indent:*\x20%0',o(_0x4d88c3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x54a39c['commandName'])return{'type':'format','content':o(_0x4d88c3,'*Outdent:*\x20%0',o(_0x4d88c3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x54a39c['commandName'])return _0x54a39c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d88c3,'*Check\x20item*')}:{'type':'format','content':o(_0x4d88c3,'*Uncheck\x20item*')};}function _0x1b4c84(_0x8685c2){return{'type':'format','content':o(_0x4d88c3,'*Change\x20to:*\x20%0',_0x8685c2)};}});}}function me(_0x2960f1){const _0x20cbce=_0x2960f1['getAttribute']('listIndent');if(0x0==_0x20cbce)return _0x2960f1;let _0x21630e=_0x2960f1;for(;_0x2960f1['previousSibling']&&_0x2960f1['previousSibling']['is']('element','listItem');){const _0x20e750=_0x2960f1['previousSibling']['getAttribute']('listIndent');if(_0x20e750==_0x20cbce)_0x21630e=_0x2960f1['previousSibling'];else{if(_0x20e750<_0x20cbce)break;}_0x2960f1=_0x2960f1['previousSibling'];}return _0x21630e;}function fe(_0x121f73){const _0x3c41aa=[];if(_0x121f73['is']('element','listItem')&&_0x121f73['getAttribute']('listIndent')>0x0){let _0xc86f36=_0x121f73['nextSibling'];for(;_0xc86f36&&'listItem'==_0xc86f36['name']&&_0xc86f36['getAttribute']('listIndent')==_0x121f73['getAttribute']('listIndent');)_0x3c41aa['push'](_0xc86f36),_0xc86f36=_0xc86f36['nextSibling'];}return _0x3c41aa;}class K extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4377e2=this['editor']['config']['get']('list.properties'),_0x1de99d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4377e2['styles']&&_0x1de99d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4377e2['reversed']&&_0x1de99d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4377e2['startIndex']&&_0x1de99d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1de99d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47e55b,_0x35198b={}){const _0x2292de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35440e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2292de['markMultiRangeBlockFormat'](_0x35440e,{'commandName':'listStyle','commandParams':[{'type':_0x35198b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xdc0b60,_0x1ed87a={}){const _0x305b8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f0831=this['_getSuggestionBlocks'](_0x36a75b=>_0x36a75b['is']('element','listItem')&&'numbered'===_0x36a75b['getAttribute']('listType'));if(_0x2f0831['length']<0x1)return;const _0x586af6=_0x2f0831['map'](_0xeee047=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xeee047,'before'),this['editor']['model']['createPositionAt'](_0xeee047,0x0)));this['editor']['model']['change'](()=>{_0x305b8d['markMultiRangeBlockFormat'](_0x586af6,{'commandName':'listReversed','commandParams':[{'reversed':_0x1ed87a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ad724,_0x28de94={}){const _0x4ba9c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32555b=this['_getSuggestionBlocks'](_0x34d4d3=>_0x34d4d3['is']('element','listItem')&&'numbered'===_0x34d4d3['getAttribute']('listType'));if(_0x32555b['length']<0x1)return;const _0x42905b=_0x32555b['map'](_0x1201d0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1201d0,'before'),this['editor']['model']['createPositionAt'](_0x1201d0,0x0)));this['editor']['model']['change'](()=>{_0x4ba9c8['markMultiRangeBlockFormat'](_0x42905b,{'commandName':'listStart','commandParams':[{'startIndex':_0x28de94['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40a778){if('formatBlock'!=_0x40a778['type']&&'formatInline'!=_0x40a778['type'])return;const _0x3f05c6=this['editor']['locale'],{data:_0x41e706}=_0x40a778;if(!_0x41e706)return;let _0x598ee2,_0x34b9c4;switch(_0x41e706['commandName']){case'listStyle':_0x598ee2='*Change\x20to:*\x20%0',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2,o(_0x3f05c6,this['_getTranslationKeyForListStyle'](_0x41e706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x598ee2=_0x41e706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2)};break;case'listStart':_0x598ee2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2,_0x41e706['commandParams'][0x0]['startIndex'])};}return _0x34b9c4;}['_getSuggestionBlocksForListStyle'](){const _0x588a84=this['editor']['plugins']['get']('LegacyListUtils');let _0x1769a3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1769a3[0x0]?.['is']('element','listItem')&&_0x1769a3['unshift'](..._0x588a84['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1769a3[_0x1769a3['length']-0x1]?.['is']('element','listItem')&&_0x1769a3['push'](..._0x588a84['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1769a3=[...new Set(_0x1769a3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1769a3=_0x1769a3['filter'](_0x5378b5=>_0x5378b5['is']('element','listItem'))),_0x1769a3;}['_getSuggestionBlocks'](_0x93b1f3){const _0x27b3a3=this['editor']['plugins']['get']('LegacyListUtils');let _0xd1574e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x93b1f3)['map'](_0x7a5f2f=>{const _0x2654c6=this['editor']['model']['createPositionAt'](_0x7a5f2f,0x0);return[..._0x27b3a3['getSiblingNodes'](_0x2654c6,'backward'),..._0x27b3a3['getSiblingNodes'](_0x2654c6,'forward')];})['flat']();return _0xd1574e=[...new Set(_0xd1574e)],_0xd1574e;}['_getTranslationKeyForListStyle'](_0x442e3f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x442e3f)||'default')['toUpperCase']()+'_LIST_'+_0x442e3f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5297f7{['afterInit'](){const _0x531186=this['editor'];if(!_0x531186['plugins']['has']('MediaEmbedEditing'))return;const _0x2d4779=_0x531186['plugins']['get']('TrackChangesEditing'),_0x34de95=_0x531186['locale'];_0x2d4779['enableCommand']('mediaEmbed'),_0x2d4779['descriptionFactory']['registerElementLabel']('media',_0xe5d07f=>o(_0x34de95,'ELEMENT_MEDIA',_0xe5d07f)),_0x531186['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21672b,{writer:_0x1cb759,options:_0x127eb1})=>{if(_0x127eb1['showSuggestionHighlights'])return _0x1cb759['createEmptyElement']('div');},'converterPriority':'high'}),_0x531186['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e4487,_0x3b0a1a,_0xe192e5)=>{_0xe192e5['options']['showSuggestionHighlights']&&_0x5e4487['stop']();},{'priority':'high'});}}class gt extends _0x5297f7{['afterInit'](){const _0x1fe78a=this['editor'];_0x1fe78a['plugins']['has']('MentionEditing')&&_0x1fe78a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5297f7{['afterInit'](){const _0x1946ac=this['editor'],_0x81e87e=_0x1946ac['plugins']['get']('TrackChangesEditing');_0x1946ac['plugins']['has']('MultiLevelList')&&(_0x81e87e['enableDefaultAttributesIntegration']('multiLevelList'),_0x81e87e['registerBlockAttribute']('listMarkerStyle'),_0x81e87e['descriptionFactory']['registerDescriptionCallback'](_0x5e415b=>this['handleDescriptions'](_0x5e415b)));}['handleDescriptions'](_0x137e0e){const _0x2fee77=this['editor']['locale'],{data:_0x58b833}=_0x137e0e,_0x2d864e={'type':'format','content':''};if(_0x58b833&&'listMarkerStyle'==_0x58b833['key']){if(!_0x58b833['oldValue'])return{'type':'format','content':o(_0x2fee77,'*Set\x20format:*\x20%0',o(_0x2fee77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b833['newValue']+')'};if(!_0x58b833['newValue']){let _0x180aa1=_0x137e0e['head'];for(;_0x180aa1;){if(_0x180aa1['data']&&'listType'==_0x180aa1['data']['key']&&_0x180aa1['data']['newValue'])return _0x2d864e;_0x180aa1=_0x180aa1['next'];}return{'type':'format','content':o(_0x2fee77,'*Remove\x20format:*\x20%0',o(_0x2fee77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b833['oldValue']+')'};}}}}class mt extends _0x5297f7{['afterInit'](){const _0x331745=this['editor'];if(!_0x331745['plugins']['has']('PageBreakEditing'))return;_0x331745['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x19e3d1=_0x331745['plugins']['get']('TrackChangesEditing'),_0x4a024b=_0x331745['locale'];_0x19e3d1['descriptionFactory']['registerElementLabel']('pageBreak',_0x4c0397=>o(_0x4a024b,'ELEMENT_PAGE_BREAK',_0x4c0397));}}class dt extends _0x5297f7{['afterInit'](){const _0x3aebd1=this['editor'];if(!_0x3aebd1['plugins']['has']('Paragraph'))return;const _0x472cee=_0x3aebd1['locale'],_0x208fa1=_0x3aebd1['plugins']['get']('TrackChangesEditing');_0x208fa1['descriptionFactory']['registerElementLabel']('paragraph',_0x267e59=>o(_0x472cee,'ELEMENT_PARAGRAPH',_0x267e59)),_0x208fa1['enableDefaultAttributesIntegration']('paragraph'),_0x208fa1['enableCommand']('insertParagraph'),_0x3aebd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3aebd1),{'priority':'highest'}),_0x3aebd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc4a13f,_0x573106,_0x35d218)=>{_0x35d218['options']['showSuggestionHighlights']&&nr(_0x3aebd1,{'showActiveMarker':!0x1})(_0xc4a13f,_0x573106,_0x35d218);},{'priority':'highest'});const _0x71dad7=_0x208fa1['descriptionFactory'];_0x71dad7['registerDescriptionCallback'](_0x29ca13=>{if('insertion'!==_0x29ca13['type'])return;const {start:_0x43d2cb,end:_0x4b729a}=_0x29ca13['getFirstRange']();if(!_0x43d2cb['isTouching'](_0x4b729a)||!_0x43d2cb['nodeAfter'])return;const _0x45db71=_0x3aebd1['model']['schema'],_0x4e4166=_0x43d2cb['nodeAfter'];return _0x45db71['isBlock'](_0x4e4166)&&!_0x45db71['isLimit'](_0x4e4166)&&_0x45db71['checkChild'](_0x4e4166,'$text')?{'type':'insertion','content':o(_0x472cee,'*Insert:*\x20%0',_0x71dad7['getItemLabel'](_0x4e4166,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x301e35=this['editor'],_0x53f14e=_0x301e35['locale'];_0x301e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x82972b=>{if('formatBlock'!=_0x82972b['type'])return;const {data:_0x5a7493}=_0x82972b;return _0x5a7493&&'paragraph'==_0x5a7493['commandName']?{'type':'format','content':o(_0x53f14e,'*Change\x20to:*\x20%0',o(_0x53f14e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x266d67,{showActiveMarker:_0x46e21c=!0x0}={}){return(_0x49e3d1,_0x126169,_0xe34d74)=>{const _0x5e5e0e=_0x266d67['plugins']['get']('TrackChangesEditing'),_0x8d603b=_0x126169['markerRange']['start'],_0x425419=_0x126169['markerRange']['end'],_0x65fd27=_0x266d67['model']['schema'];if(!_0x8d603b['isTouching'](_0x425419)||!_0x8d603b['nodeAfter'])return;const _0x53afd3=_0x8d603b['nodeAfter'];if(_0x65fd27['isBlock'](_0x53afd3)&&!_0x65fd27['isLimit'](_0x53afd3)&&_0x65fd27['checkChild'](_0x53afd3,'$text')){if(!_0xe34d74['consumable']['consume'](_0x126169['markerRange'],_0x49e3d1['name']))return;const _0x238b3e=_0xe34d74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x45a6d2=_0xe34d74['mapper']['toViewPosition'](_0x425419);_0x46e21c&&_0x5e5e0e['activeMarkers']['includes'](_0x126169['markerName'])&&_0xe34d74['writer']['addClass']('ck-suggestion-marker--active',_0x238b3e),_0xe34d74['writer']['insert'](_0x45a6d2,_0x238b3e),_0xe34d74['mapper']['bindElementToMarker'](_0x238b3e,_0x126169['markerName']);}};}class pt extends _0x5297f7{['afterInit'](){const _0x4f9251=this['editor'];if(!_0x4f9251['plugins']['has']('RemoveFormatEditing'))return;_0x4f9251['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x388e1d=this['editor'];_0x388e1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9231=>{if('formatBlock'!=_0x5a9231['type']&&'formatInline'!=_0x5a9231['type'])return;const {data:_0x344af4}=_0x5a9231;return _0x344af4&&'removeFormat'==_0x344af4['commandName']?{'type':'format','content':o(_0x388e1d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5297f7{['afterInit'](){const _0x458b3c=this['editor'];if(!_0x458b3c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5130ee=_0x458b3c['plugins']['get']('TrackChangesEditing');_0x5130ee['enableCommand']('goToPreviousRestrictedEditingException'),_0x5130ee['enableCommand']('goToNextRestrictedEditingException');const _0x5eaf2d=_0x458b3c['plugins']['get']('RestrictedEditingModeEditing');_0x5eaf2d['enableCommand']('trackChanges'),_0x5eaf2d['enableCommand']('acceptSuggestion'),_0x5eaf2d['enableCommand']('discardSuggestion'),_0x5eaf2d['enableCommand']('acceptAllSuggestions'),_0x5eaf2d['enableCommand']('discardAllSuggestions'),_0x5eaf2d['enableCommand']('acceptSelectedSuggestions'),_0x5eaf2d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5297f7{static get['requires'](){return[_0xbf3175];}['init'](){const _0x2218cf=this['editor'],_0x5a10cc=_0x2218cf['plugins']['get']('TrackChangesEditing');_0x5a10cc['enableCommand']('shiftEnter'),_0x2218cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2218cf),{'priority':'high'}),_0x2218cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2218cf),{'priority':'high'}),_0x2218cf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43986d,_0x1d5e2d,_0x31c289)=>{_0x31c289['options']['showSuggestionHighlights']&&de(_0x2218cf,{'showActiveMarker':!0x1})(_0x43986d,_0x1d5e2d,_0x31c289);}),_0x5a10cc['descriptionFactory']['registerElementLabel']('softBreak',_0x4d6d27=>o(_0x2218cf['locale'],'ELEMENT_LINE_BREAK',_0x4d6d27));}}function de(_0x46efbd,{showActiveMarker:_0x40da8f=!0x0}={}){return(_0x489b7b,_0x5a3ccd,_0x264678)=>{const _0x53228d=_0x46efbd['plugins']['get']('TrackChangesEditing');if(!_0x264678['consumable']['test'](_0x5a3ccd['markerRange'],_0x489b7b['name']))return;const _0x5841ea=_0x46efbd['model'];for(const _0x3a79fb of _0x5a3ccd['markerRange']['getItems']()){if(!_0x3a79fb['is']('element','softBreak'))continue;const _0x1823ee='deletion'==_0x5a3ccd['markerName']['split'](':')[0x1]?'merge':'split',_0xefc38d=_0x264678['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1823ee}),_0x5eb471=_0x264678['mapper']['toViewPosition'](_0x5841ea['createPositionBefore'](_0x3a79fb));_0x40da8f&&_0x53228d['activeMarkers']['includes'](_0x5a3ccd['markerName'])&&_0x264678['writer']['addClass']('ck-suggestion-marker--active',_0xefc38d),_0x264678['writer']['insert'](_0x5eb471,_0xefc38d),_0x264678['mapper']['bindElementToMarker'](_0xefc38d,_0x5a3ccd['markerName']);}};}class wt extends _0x5297f7{['afterInit'](){const _0x11610b=this['editor'],_0x3c456d=_0x11610b['model'],_0x4fb7c0=_0x11610b['locale'];if(!_0x11610b['plugins']['has']('StandardEditingModeEditing'))return;const _0x30906e=_0x11610b['plugins']['get']('TrackChangesEditing'),_0x45ccb7='restrictedEditingException',_0x285b3d=_0x11610b['commands']['get'](_0x45ccb7);_0x30906e['enableCommand'](_0x45ccb7,(_0x12ef6c,_0x500796={})=>{const _0x5a2379=_0x3c456d['document']['selection'];if(_0x5a2379['isCollapsed'])return void _0x12ef6c(_0x500796);const _0x107b39=void 0x0!==_0x500796['forceValue']?_0x500796['forceValue']:!_0x285b3d['value'];_0x3c456d['change'](()=>{const _0x31dbec=Array['from'](_0x5a2379['getRanges']());for(const _0x22075d of _0x31dbec){const _0x306831=_0x107b39?[_0x22075d]:io(_0x45ccb7,_0x22075d,_0x3c456d);for(const _0x5861f8 of _0x306831)_0x30906e['markInlineFormat'](_0x5861f8,{'commandName':_0x45ccb7,'commandParams':[{'forceValue':_0x107b39}]});}});}),_0x30906e['descriptionFactory']['registerDescriptionCallback'](_0x435869=>{if('formatBlock'!=_0x435869['type']&&'formatInline'!=_0x435869['type'])return;const {data:_0x320fb2}=_0x435869;return _0x320fb2&&_0x320fb2['commandName']==_0x45ccb7?_0x320fb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb7c0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb7c0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5297f7{['afterInit'](){const _0x5db708=this['editor'];if(!_0x5db708['plugins']['has']('Style')||!_0x5db708['plugins']['has']('DataSchema'))return;const _0x1bc8fc=_0x5db708['plugins']['get']('TrackChangesEditing'),_0x4671f8=_0x5db708['locale'],_0xd752fe=_0x5db708['config']['get']('style')||{},_0x31924a=_0x5db708['plugins']['get']('GeneralHtmlSupport'),_0x3085d4=_0x5db708['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5db708['plugins']['get']('DataSchema'),_0xd752fe['definitions']);_0x1bc8fc['enableDefaultAttributesIntegration']('style');const _0x46dee2=new Set();for(const _0x4150b5 of _0x3085d4['block']){const _0x18bbac=_0x31924a['getGhsAttributeNameForElement'](_0x4150b5['element']);_0x46dee2['add'](_0x18bbac);}const _0x210231=new Set();for(const _0x155d99 of _0x3085d4['inline']){const _0x3d9cb6=_0x31924a['getGhsAttributeNameForElement'](_0x155d99['element']);_0x210231['add'](_0x3d9cb6);for(const _0x538f51 of _0x155d99['ghsAttributes'])_0x210231['add'](_0x538f51);}for(const _0x195906 of _0x46dee2)_0x1bc8fc['registerBlockAttribute'](_0x195906),_0x1bc8fc['descriptionFactory']['registerAttributeLabel'](_0x195906,o(_0x4671f8,'FORMAT_STYLE'));for(const _0x150544 of _0x210231)_0x1bc8fc['registerInlineAttribute'](_0x150544),_0x1bc8fc['descriptionFactory']['registerAttributeLabel'](_0x150544,o(_0x4671f8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d67e=this['editor'],_0x5e7438=_0x54d67e['locale'];_0x54d67e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29aa1f=>{if('formatBlock'!=_0x29aa1f['type']&&'formatInline'!=_0x29aa1f['type'])return;const {data:_0x2e5f6a}=_0x29aa1f;return _0x2e5f6a&&'style'===_0x2e5f6a['commandName']?_0x2e5f6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e7438,'*Set\x20format:*\x20%0',_0x2e5f6a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e7438,'*Remove\x20format:*\x20%0',_0x2e5f6a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5297f7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x129256){super(_0x129256),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x581c61=this['editor'],_0x2d3c3e=_0x581c61['model']['document']['selection'];if(!_0x581c61['plugins']['has']('TableEditing'))return;const _0x3cc1a7=_0x581c61['locale'],_0xc348e5=_0x581c61['plugins']['get']('TrackChangesEditing'),_0x2476e5=_0x581c61['plugins']['get']('TableUtils');_0xc348e5['descriptionFactory']['registerElementLabel']('table',_0x4a8436=>o(_0x3cc1a7,'ELEMENT_TABLE',_0x4a8436)),this['_setupColumnsRowsFixing'](),_0xc348e5['enableCommand']('insertTable'),_0xc348e5['enableCommand']('selectTableRow'),_0xc348e5['enableCommand']('selectTableColumn');for(const _0x143c23 of['insertTableRowAbove','insertTableRowBelow']){const _0x4ade86=_0x581c61['commands']['get'](_0x143c23);_0xc348e5['enableCommand'](_0x143c23,_0x36df81=>{_0x581c61['model']['change'](_0x344ddb=>{_0x36df81();const _0x308c11='above'===_0x4ade86['order'],_0x51fb61=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0x2c863e=_0x2476e5['getRowIndexes'](_0x51fb61),_0x57e19e=_0x308c11?_0x2c863e['first']-0x1:_0x2c863e['last']+0x1,_0xf625e3=_0x51fb61[0x0]['findAncestor']('table'),_0x416ef1=_0x2476e5['createTableWalker'](_0xf625e3,{'startRow':_0x57e19e,'endRow':_0x57e19e}),_0x1a785f=Array['from'](_0x416ef1)['map'](_0x497eed=>_0x344ddb['createRangeOn'](_0x497eed['cell']));_0xc348e5['markMultiRangeInsertion'](_0x1a785f,'tableRow');});});}for(const _0x998ab6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xfabc48=_0x581c61['commands']['get'](_0x998ab6);_0xc348e5['enableCommand'](_0x998ab6,_0x42c4e9=>{_0x581c61['model']['change'](_0x57da59=>{_0x42c4e9();const _0x182cc0='left'===_0xfabc48['order'],_0x396318=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0xe08ec8=_0x2476e5['getColumnIndexes'](_0x396318),_0x4a73a2=_0x182cc0?_0xe08ec8['first']-0x1:_0xe08ec8['last']+0x1,_0x4d2177=_0x396318[0x0]['findAncestor']('table'),_0xe7d031=_0x2476e5['createTableWalker'](_0x4d2177,{'startRow':0x0,'column':_0x4a73a2,'includeAllSlots':!0x1}),_0x53085f=Array['from'](_0xe7d031)['map'](_0x39d298=>_0x57da59['createRangeOn'](_0x39d298['cell']));_0xc348e5['markMultiRangeInsertion'](_0x53085f,'tableColumn');});});}for(const _0x3670f2 of['removeTableRow','removeTableColumn']){const _0x3f6987=_0x3670f2['substr'](0xb),_0x34d12d=_0x3f6987['toLowerCase'](),_0x46da24=_0x34d12d['substr'](0x0,0x3)+'span',_0x461e8c='table'+_0x3f6987,_0x59dc91='min'+_0x3f6987,_0x10066e='max'+_0x3f6987;_0xc348e5['enableCommand'](_0x3670f2,()=>{_0x581c61['model']['change'](_0x1b6ba3=>{const _0xa84c0c=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0x1225d3=_0xa84c0c[0x0]['findAncestor']('table');let _0x3b5c6d;if('removeTableRow'==_0x3670f2){const _0x3e7e0b=_0x2476e5['getRowIndexes'](_0xa84c0c);_0x3b5c6d={'startRow':_0x3e7e0b['first'],'endRow':_0x3e7e0b['last'],'includeAllSlots':!0x0};}else{const _0x13d592=_0x2476e5['getColumnIndexes'](_0xa84c0c);_0x3b5c6d={'startColumn':_0x13d592['first'],'endColumn':_0x13d592['last'],'includeAllSlots':!0x0};}const _0x57c873=_0x2476e5['createTableWalker'](_0x1225d3,_0x3b5c6d),_0x347e73=Array['from'](_0x57c873)['map'](({cell:_0x561740})=>_0x561740),_0x4d2a7e=Ee(_0x347e73['filter'](_0x7adb9a=>_0x7adb9a['hasAttribute'](_0x46da24))),_0x59dbda=Ee(_0x347e73['filter'](_0x50e323=>!_0x50e323['hasAttribute'](_0x46da24)))['map'](_0x119a77=>_0x1b6ba3['createRangeOn'](_0x119a77)),_0x378b5c=_0xc348e5['markMultiRangeDeletion'](_0x59dbda,_0x461e8c);if(_0x378b5c&&('tableRow'==_0x378b5c['subType']||'tableColumn'==_0x378b5c['subType'])){const _0x4de552=this['_getSuggestionCoords'](_0x378b5c);for(const _0x32391c of _0x4d2a7e){const _0x3e4341=_0x1b6ba3['createRangeOn'](_0x32391c),_0x1f6a96=_0x2476e5['getCellLocation'](_0x32391c),_0x33ae9c=_0x32391c['getAttribute'](_0x46da24)-0x1,_0x31fbfc=_0x4de552[_0x59dc91],_0x18c032=_0x4de552[_0x10066e];_0x31fbfc<=_0x1f6a96[_0x34d12d]&&_0x1f6a96[_0x34d12d]+_0x33ae9c<=_0x18c032&&_0x378b5c['addRange'](_0x3e4341);}}});});}function _0x52ba1f(_0x5ca1eb){const _0x262b33=Array['from'](_0x2d3c3e['getRanges']())['map'](_0x4a5886=>_0x16e800['fromRange'](_0x4a5886));_0x581c61['model']['change'](_0x2547c8=>{const _0x496767=_0x2547c8['batch'];_0x5ca1eb=_0x5ca1eb['filter'](_0x342b41=>'$graveyard'!=_0x342b41['root']['rootName']),_0x2547c8['setSelection'](_0x5ca1eb),_0x581c61['commands']['get']('removeTableRow')['refresh'](),_0x581c61['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x581c61['model']['enqueueChange'](()=>{_0x581c61['model']['enqueueChange'](_0x496767,_0x227085=>{const _0x5a178c=_0x262b33['filter'](_0x9ea5ca=>'$graveyard'!=_0x9ea5ca['root']['rootName']);_0x5a178c['length']>0x0&&_0x227085['setSelection'](_0x5a178c);for(const _0x4bb024 of _0x262b33)_0x4bb024['detach']();});});});}function _0x57042f(_0x434e49){_0x581c61['model']['change'](_0x38b4e0=>{const _0x222cb2=Array['from'](_0x2d3c3e['getRanges']())['map'](_0x10b04f=>_0x16e800['fromRange'](_0x10b04f)),_0x2762a0=[];for(const _0x43cfa3 of _0x434e49)for(const _0xd30b2c of _0x43cfa3['getItems']({'shallow':!0x0}))_0x2762a0['push'](_0xd30b2c);for(const _0x1990ee of _0x2762a0)'$graveyard'!=_0x1990ee['root']['rootName']&&(_0x38b4e0['setSelection'](_0x38b4e0['createPositionAt'](_0x1990ee,0x0)),_0x581c61['commands']['get']('removeTableColumn')['refresh'](),_0x581c61['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6de657=_0x222cb2['filter'](_0x33982c=>'$graveyard'!=_0x33982c['root']['rootName']);_0x6de657['length']>0x0&&_0x38b4e0['setSelection'](_0x6de657);for(const _0x4c6eca of _0x222cb2)_0x4c6eca['detach']();});}function _0x2d64d7(_0x2282d3,_0x3bc92d){return _0x3bc92d['every'](_0x4abbf9=>_0x2282d3['some'](_0x48980f=>_0x48980f['end']['isEqual'](_0x4abbf9['start'])||_0x4abbf9['end']['isEqual'](_0x48980f['start'])));}function _0x409be4(_0x1d38b5,_0x2d2dd4){return _0x1d38b5['some'](_0x164239=>_0x2d2dd4['some'](_0x4ba940=>_0x164239['end']['isTouching'](_0x4ba940['start'])));}_0x581c61['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55c6f7,_0x3455d8,_0x1735de)=>{if(!_0x1735de['options']['showSuggestionHighlights'])return;const _0x4fb4dd=_0x3455d8['item'];if(!_0x4fb4dd)return;const _0x118885=_0x1735de['mapper']['toViewElement'](_0x4fb4dd);function _0x5d1f74(_0x3e3e9d){return Array['isArray'](_0x3e3e9d)?_0x3e3e9d:[_0x3e3e9d];}_0x118885&&'tableCell'===_0x4fb4dd['name']&&_0x394def(_0x118885,_0x1735de['writer'],(_0x1a618d,_0x5d9b95,_0x31f36f)=>_0x31f36f['addClass'](_0x5d1f74(_0x5d9b95['classes']),_0x1a618d),(_0x24e74c,_0x49b555,_0x332de2)=>_0x332de2['removeClass'](_0x5d1f74(_0x49b555['classes']),_0x24e74c));},{'priority':'highest'}),_0xc348e5['descriptionFactory']['registerDescriptionCallback'](_0x3971c6=>{if('insertion'!=_0x3971c6['type']&&'deletion'!=_0x3971c6['type'])return;const _0x2b8bcd=_0x3971c6['getContainedElement']();if(null!=_0x2b8bcd&&_0x2b8bcd['is']('element','table')){if('insertion'==_0x3971c6['type']){const _0x5a221c=_0x3971c6['getItems']()['filter'](_0x187d5a=>_0x187d5a['is']('$textProxy'))['map'](_0x1dd4d7=>_0x1dd4d7['data']);if(_0x5a221c['length'])return{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a221c['join']('\x20')+'\x22'))};}if('deletion'==_0x3971c6['type']){const _0x4ddf6e=_0x3971c6['getItems']()['filter'](_0x5c8887=>_0x5c8887['is']('$textProxy'))['map'](_0x3e54a2=>_0x3e54a2['data']);if(_0x4ddf6e['length'])return{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ddf6e['join']('\x20')+'\x22'))};}}}),_0xc348e5['descriptionFactory']['registerDescriptionCallback'](_0x5aa6c3=>{if('tableRow'==_0x5aa6c3['subType']){const _0x3f7b30=_0x5aa6c3['getItems']()['filter'](_0x16eca6=>_0x16eca6['is']('$textProxy'))['map'](_0x51bcc7=>_0x51bcc7['data']),_0x37d5de=this['_getSuggestionCoords'](_0x5aa6c3),_0x1c6b78=_0x37d5de['maxRow']-_0x37d5de['minRow']+0x1;if('insertion'==_0x5aa6c3['type'])return _0x3f7b30['length']?{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6b78,'\x22'+_0x3f7b30['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW',_0x1c6b78))};if('deletion'==_0x5aa6c3['type'])return _0x3f7b30['length']?{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6b78,'\x22'+_0x3f7b30['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW',_0x1c6b78))};}if('tableColumn'==_0x5aa6c3['subType']){const _0x382bd1=_0x5aa6c3['getItems']()['filter'](_0x42a43b=>_0x42a43b['is']('$textProxy'))['map'](_0x13019f=>_0x13019f['data']),_0x33fa00=this['_getSuggestionCoords'](_0x5aa6c3),_0x20d9ac=_0x33fa00['maxColumn']-_0x33fa00['minColumn']+0x1;if('insertion'==_0x5aa6c3['type'])return _0x382bd1['length']?{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d9ac,'\x22'+_0x382bd1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN',_0x20d9ac))};if('deletion'==_0x5aa6c3['type'])return _0x382bd1['length']?{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d9ac,'\x22'+_0x382bd1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN',_0x20d9ac))};}}),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x52ba1f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x52ba1f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x57042f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x57042f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2d64d7),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2d64d7),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x409be4),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x409be4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f3052=this['editor'],_0xbe952e=_0x4f3052['model']['document']['selection'];return(_0x27c332,_0x12b775)=>{_0x4f3052['model']['change'](_0x1f601b=>{const {commandName:_0x25069e,commandParams:_0xc99e8e}=_0x12b775;let _0x2c0cfb=_0x27c332[0x0]['end']['nodeBefore'];_0xc99e8e&&_0xc99e8e[0x0]&&!0x1===_0xc99e8e[0x0]['forceValue']&&(_0x2c0cfb=_0x27c332[0x0]['start']['nodeAfter']);const _0x4eea39=_0x1f601b['createRangeIn'](_0x2c0cfb);if('$graveyard'==_0x4eea39['root']['rootName'])return;const _0x36fe66=Array['from'](_0xbe952e['getRanges']())['map'](_0x3b0c9b=>_0x16e800['fromRange'](_0x3b0c9b));_0x1f601b['setSelection'](_0x4eea39),_0x4f3052['commands']['get'](_0x25069e)['refresh'](),_0xc99e8e['push']({'forceDefaultExecution':!0x0}),_0x4f3052['execute'](_0x25069e,..._0xc99e8e);const _0x12533e=_0x36fe66['filter'](_0x44c598=>'$graveyard'!=_0x44c598['root']['rootName']);_0x12533e['length']>0x0&&_0x1f601b['setSelection'](_0x12533e);for(const _0x49d6d8 of _0x36fe66)_0x49d6d8['detach']();});};}['_getCoordsForCells'](_0x3cef30){const _0x28f5c1=this['editor']['plugins']['get']('TableUtils');let _0x41b769=Number['MAX_SAFE_INTEGER'],_0x4823e6=Number['MIN_SAFE_INTEGER'],_0x36ceab=Number['MAX_SAFE_INTEGER'],_0x36868a=Number['MIN_SAFE_INTEGER'];for(const _0x134240 of _0x3cef30){if('$graveyard'==_0x134240['root']['rootName'])continue;const {row:_0x55eaed,column:_0x22d724}=_0x28f5c1['getCellLocation'](_0x134240),_0x2a0fd5=_0x134240['hasAttribute']('rowspan')?_0x134240['getAttribute']('rowspan')-0x1:0x0,_0x481274=_0x134240['hasAttribute']('colspan')?_0x134240['getAttribute']('colspan')-0x1:0x0;_0x41b769=_0x55eaed<_0x41b769?_0x55eaed:_0x41b769,_0x4823e6=_0x55eaed+_0x2a0fd5>_0x4823e6?_0x55eaed+_0x2a0fd5:_0x4823e6,_0x36ceab=_0x22d724<_0x36ceab?_0x22d724:_0x36ceab,_0x36868a=_0x22d724+_0x481274>_0x36868a?_0x22d724+_0x481274:_0x36868a;}return{'minRow':_0x41b769,'maxRow':_0x4823e6,'minColumn':_0x36ceab,'maxColumn':_0x36868a};}['_setupColumnsRowsFixing'](){const _0x18a12a=this['editor'],_0x43fdf1=_0x18a12a['plugins']['get']('TrackChangesEditing'),_0x487d01=_0x18a12a['plugins']['get']('TableUtils');_0x18a12a['model']['document']['on']('change:data',()=>{const _0x4634b6=Array['from'](_0x18a12a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d51c0,data:_0xd6b4c2}of _0x4634b6){const {group:_0x5f314f,id:_0x283dd1,subType:_0x5a5463}=_0x43fdf1['_splitMarkerName'](_0x4d51c0);if('suggestion'!=_0x5f314f)continue;if(null!=_0xd6b4c2['oldRange'])continue;const _0x1ee28e=_0x43fdf1['getSuggestion'](_0x283dd1);this['_tablePostFixingSubtypes']['includes'](_0x5a5463)&&this['_tableSuggestions']['add'](_0x1ee28e);}},{'priority':'low'});const _0x531bcb=(_0x4af8fa,_0x5667fe)=>{let _0xb5af77=!0x1;const _0xbcd8d8=_0x5667fe['createRangeOn'](_0x4af8fa),_0x544346=_0x4af8fa['findAncestor']('table'),_0x2f59ad=_0x487d01['getCellLocation'](_0x4af8fa);for(const _0x3831dd of this['_tableSuggestions']){const _0x4082ef=_0x3831dd['subType'],_0x5f27f8=_0x4082ef['startsWith']('tablePaste'),_0x4c86ee=_0x4082ef['substr'](_0x5f27f8?0xa:0x5),_0x486286=_0x4c86ee['toLowerCase'](),_0x121032=_0x486286['substr'](0x0,0x3)+'span',_0x47f740='min'+_0x4c86ee,_0x6ec6a7='max'+_0x4c86ee;if(!_0x3831dd['isInContent'])continue;if(_0x544346!=_0x3831dd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3831dd['isIntersectingWithRange'](_0xbcd8d8))continue;const _0x43cc10=_0x4af8fa['hasAttribute'](_0x121032)?_0x4af8fa['getAttribute'](_0x121032)-0x1:0x0,_0xa64084=this['_getSuggestionCoords'](_0x3831dd),_0x1e7871=_0xa64084[_0x47f740],_0x2ceca2=_0xa64084[_0x6ec6a7];_0x1e7871<=_0x2f59ad[_0x486286]&&_0x2f59ad[_0x486286]+_0x43cc10<=_0x2ceca2&&(_0x3831dd['addRange'](_0xbcd8d8),_0xb5af77=!0x0);}return _0xb5af77;};_0x18a12a['model']['document']['registerPostFixer'](_0x199824=>{let _0x13fc35=!0x1;for(const _0x5d949a of _0x18a12a['model']['document']['differ']['getChanges']())if('insert'==_0x5d949a['type']){if('tableRow'==_0x5d949a['name']){for(const _0x339a69 of _0x5d949a['position']['nodeAfter']['getChildren']())_0x13fc35=_0x13fc35||_0x531bcb(_0x339a69,_0x199824);}else'tableCell'==_0x5d949a['name']&&(_0x13fc35=_0x13fc35||_0x531bcb(_0x5d949a['position']['nodeAfter'],_0x199824));}return _0x13fc35;});}['_getSuggestionCoords'](_0x4fd27f){return this['_getCoordsForCells'](_0x4fd27f['getRanges']()['map'](_0x2cb614=>_0x2cb614['start']['nodeAfter']));}}function Ee(_0x49db95){return Array['from'](new Set(_0x49db95)['values']());}class St extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0xd2c422=this['editor'],_0x4b3037=_0xd2c422['model']['document']['selection'],_0x22d89c=_0xd2c422['locale'];if(!_0xd2c422['plugins']['has']('TableEditing'))return;const _0x219e0f=_0xd2c422['plugins']['get']('TrackChangesEditing'),_0x1219f3=_0xd2c422['plugins']['get']('TableUtils'),_0x1452bc=_0xd2c422['plugins']['get'](jt);_0x1452bc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x219e0f['enableCommand']('mergeTableCells',()=>{const _0x4b7668=_0x1219f3['getSelectionAffectedTableCells'](_0xd2c422['model']['document']['selection']);_0xd2c422['model']['change'](()=>{_0x219e0f['markMultiRangeBlockFormat'](_0x4b7668,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xd2c422['commands']['get']('mergeTableCells')['on']('execute',(_0x4fa710,_0x854a02)=>{_0xd2c422['commands']['get']('trackChanges')['value']&&(_0x854a02['length']>0x0&&_0x854a02[_0x854a02['length']-0x1]&&_0x854a02[_0x854a02['length']-0x1]['forceDefaultExecution']||_0x219e0f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fa710['stop']());},{'priority':'highest'});for(const _0xd3d12c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x76f244=_0xd2c422['commands']['get'](_0xd3d12c);_0x219e0f['enableCommand'](_0xd3d12c,()=>{const _0x3df5af=_0xd2c422['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x66b822=>_0x66b822['is']('element','tableCell')),_0x100daf=_0x76f244['value'];_0xd2c422['model']['change'](()=>{_0x219e0f['markMultiRangeBlockFormat']([_0x3df5af,_0x100daf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f2cd6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3cf659=_0xd2c422['commands']['get'](_0x4f2cd6);_0x219e0f['enableCommand'](_0x4f2cd6,()=>{const _0x4f7684=_0x1219f3['getSelectionAffectedTableCells'](_0xd2c422['model']['document']['selection'])[0x0],_0x7b3a1=_0x4f7684['findAncestor']('table'),{column:_0x3a213a,row:_0x4f8b03}=_0x1219f3['getCellLocation'](_0x4f7684);let _0x5bea26=[];if('horizontally'==_0x3cf659['direction']){const _0x4edc16=_0x1219f3['createTableWalker'](_0x7b3a1,{'startRow':_0x4f8b03,'endRow':_0x4f8b03,'includeAllSlots':!0x0});_0x5bea26=Array['from'](_0x4edc16)['map'](_0x12d4e9=>_0x12d4e9['cell']);}else{const _0x4f41b5=_0x1219f3['createTableWalker'](_0x7b3a1,{'column':_0x3a213a,'includeAllSlots':!0x0});_0x5bea26=Array['from'](_0x4f41b5)['map'](_0x17b397=>_0x17b397['cell']);}_0xd2c422['model']['change'](_0x36a4a2=>{_0x219e0f['markBlockFormat'](_0x36a4a2['createRangeOn'](_0x4f7684),{'commandName':_0x4f2cd6,'commandParams':[]},_0x5bea26,_0x4f2cd6);});});}_0x219e0f['descriptionFactory']['registerDescriptionCallback'](_0x2a5101=>{if('formatBlock'!=_0x2a5101['type']&&'formatInline'!=_0x2a5101['type'])return;const {data:_0x21f4eb}=_0x2a5101;return _0x21f4eb&&'mergeTableCells'==_0x21f4eb['commandName']?{'type':'format','content':o(_0x22d89c,'*Merge\x20cells*')}:void 0x0;}),_0x219e0f['descriptionFactory']['registerDescriptionCallback'](_0x5b472e=>{if('formatBlock'!=_0x5b472e['type']&&'formatInline'!=_0x5b472e['type'])return;const {data:_0x4543e4}=_0x5b472e;return _0x4543e4?'splitTableCellVertically'==_0x4543e4['commandName']?{'type':'format','content':o(_0x22d89c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4543e4['commandName']?{'type':'format','content':o(_0x22d89c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35bdc9=_0x1452bc['_acceptFormatSuggestionCallbackFactory']();for(const _0x3634e6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3634e6,'accept',_0x35bdc9);for(const _0x2e9d97 of['splitTableCellVertically','splitTableCellHorizontally'])_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e9d97,'accept',_0x35bdc9);_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2dbdec=>{_0xd2c422['model']['change'](_0xa905e3=>{const _0x240ced=Array['from'](_0x4b3037['getRanges']())['map'](_0x3eddd5=>_0x16e800['fromRange'](_0x3eddd5));_0xa905e3['setSelection'](_0x2dbdec),_0xd2c422['commands']['get']('mergeTableCells')['refresh'](),_0xd2c422['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x96867d=_0x240ced['filter'](_0x182ed2=>'$graveyard'!=_0x182ed2['root']['rootName']);_0x96867d['length']>0x0&&_0xa905e3['setSelection'](_0x96867d);for(const _0xadbd9d of _0x240ced)_0xadbd9d['detach']();});});for(const _0x148754 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d68fc=_0xd2c422['commands']['get'](_0x148754);_0x2d68fc['on']('set:isEnabled',(_0x9ed09f,_0x3d75a4,_0xaa9db4)=>{if(_0xaa9db4){const _0x50cd7c=_0xd2c422['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe13fbc=>_0xe13fbc['is']('element','tableCell'));this['_areMergableCells'](_0x2d68fc['value'],_0x50cd7c)||(_0x9ed09f['return']=!0x1,_0x9ed09f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd71488=this['editor']['commands']['get']('mergeTableCells'),_0x1fa22e=this['editor']['plugins']['get']('TableUtils');if(!_0xd71488['isEnabled'])return!0x1;const _0x342f82=_0x1fa22e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58318c of _0x342f82)for(const _0x304dc9 of _0x342f82)if(_0x58318c!=_0x304dc9&&!this['_areMergableCells'](_0x58318c,_0x304dc9))return!0x1;return!0x0;}['_areMergableCells'](_0xf944fd,_0x3b94b0){const _0x2e2fbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5efa03=this['editor']['model']['createRangeOn'](_0xf944fd),_0x1fdfcf=this['editor']['model']['createRangeOn'](_0x3b94b0),_0x116b89=new Set(),_0x2fb579=new Set();for(const _0x4369df of _0x2e2fbd['getSuggestions']())if(('insertion'==_0x4369df['type']||'deletion'==_0x4369df['type']||'mergeTableCells'==_0x4369df['subType'])&&_0x4369df['isInContent']){for(const _0x51c211 of _0x4369df['getRanges']())_0x51c211['containsRange'](_0x5efa03,!0x0)&&_0x116b89['add'](_0x4369df['type']+':'+_0x4369df['author']['id']),_0x51c211['containsRange'](_0x1fdfcf,!0x0)&&_0x2fb579['add'](_0x4369df['type']+':'+_0x4369df['author']['id']);}if(_0x116b89['size']!=_0x2fb579['size'])return!0x1;for(const _0x4890b5 of _0x116b89)if(!_0x2fb579['has'](_0x4890b5))return!0x1;return!0x0;}}class At extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x182062=this['editor'];if(!_0x182062['plugins']['has']('TableEditing'))return;const _0x486dc4=_0x182062['locale'],_0x147d95=_0x182062['plugins']['get']('TrackChangesEditing');_0x147d95['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x147d95['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x147d95['registerBlockAttribute']('headingRows'),_0x147d95['registerBlockAttribute']('headingColumns'),_0x147d95['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x486dc4,'FORMAT_HEADER_ROW')),_0x147d95['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x486dc4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x81a326=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb93718=this['editor']['plugins']['get']('TableUtils'),_0x480605=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x38f64d({showActiveMarker:_0x5612c8=!0x0,setDataAttribute:_0x535b42=!0x0}={}){return(_0x59d046,_0x111f82,_0x58ce6c)=>{const {type:_0x32a779,id:_0x3e37bb}=_0x81a326['_splitMarkerName'](_0x111f82['markerName']),_0x230573=_0x81a326['getSuggestion'](_0x3e37bb),_0x360ffb=_0x230573['data'];if('formatBlock'!=_0x230573['type']||!_0x360ffb||'setTableColumnHeader'!=_0x360ffb['commandName'])return;if(_0x111f82['item'])return void _0x59d046['stop']();if(!_0x58ce6c['consumable']['consume'](_0x111f82['markerRange'],_0x59d046['name']))return;const _0x2be201=_0x111f82['markerRange']['start']['nodeAfter'],_0x425b1d=_0x111f82['markerRange']['end']['nodeBefore'],_0x5570f9=_0x2be201['parent']['parent'],{column:_0x3dad68}=_0xb93718['getCellLocation'](_0x2be201),{column:_0xa1e602}=_0xb93718['getCellLocation'](_0x425b1d);for(let _0x4e1341=_0x3dad68;_0x4e1341<=_0xa1e602;_0x4e1341++){const _0x2be0aa=_0xb93718['createTableWalker'](_0x5570f9,{'column':_0x4e1341,'includeAllSlots':!0x1});for(const _0x2b6f1b of _0x2be0aa){const _0x438d22=_0x2b6f1b['cell'],_0x3def03=_0x58ce6c['mapper']['toViewElement'](_0x438d22);_0x58ce6c['writer']['addClass']('ck-suggestion-marker-'+_0x32a779,_0x3def03),_0x535b42&&_0x58ce6c['writer']['setAttribute']('data-suggestion',_0x3e37bb,_0x3def03),_0x58ce6c['mapper']['bindElementToMarker'](_0x3def03,_0x111f82['markerName']),_0x5612c8&&(_0x81a326['activeMarkers']['includes'](_0x111f82['markerName'])?_0x58ce6c['writer']['addClass']('ck-suggestion-marker--active',_0x3def03):_0x58ce6c['writer']['removeClass']('ck-suggestion-marker--active',_0x3def03));}}};}_0x81a326['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x480605),_0x81a326['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x480605),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38f64d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c5d36,_0x605924,_0x1e5f2f)=>{_0x1e5f2f['options']['showSuggestionHighlights']&&_0x38f64d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3c5d36,_0x605924,_0x1e5f2f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a7ad4,_0x5bafab,_0x32949f)=>{const {type:_0x475d43,id:_0x53bd47}=_0x81a326['_splitMarkerName'](_0x5bafab['markerName']),_0x1312c9=_0x81a326['getSuggestion'](_0x53bd47),_0x5affff=_0x1312c9['data'];if('formatBlock'!=_0x1312c9['type']||!_0x5affff||'setTableColumnHeader'!=_0x5affff['commandName'])return;const _0x2b48c6=_0x32949f['mapper']['markerNameToElements'](_0x5bafab['markerName']);if(_0x2b48c6){for(const _0x46c926 of _0x2b48c6)_0x32949f['writer']['removeClass']('ck-suggestion-marker-'+_0x475d43,_0x46c926),_0x32949f['writer']['removeClass']('ck-suggestion-marker--active',_0x46c926),_0x32949f['writer']['removeAttribute']('data-suggestion',_0x46c926),_0x32949f['mapper']['unbindElementFromMarkerName'](_0x46c926,_0x5bafab['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377f3d=this['editor'],_0x1e5fd8=_0x377f3d['locale'];function _0x240cf4(_0x4f5178){return{'type':'format','content':o(_0x1e5fd8,'*Format:*\x20%0',_0x4f5178)};}_0x377f3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b367=>{if('formatBlock'!=_0x54b367['type'])return;const {data:_0x463a96}=_0x54b367;if(_0x463a96){if('setTableRowHeader'==_0x463a96['commandName']){const _0x1327ce=_0x463a96['commandParams'][0x0]['forceValue'];return _0x240cf4(o(_0x1e5fd8,_0x1327ce?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x463a96['commandName']){const _0x28917a=_0x463a96['commandParams'][0x0]['forceValue'];return _0x240cf4(o(_0x1e5fd8,_0x28917a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x10c17b=>[_0x10c17b,null]));class It extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x287a2c=this['editor'];if(!_0x287a2c['plugins']['has']('TableClipboard'))return;const _0x2cbeb4=_0x287a2c['plugins']['get']('TrackChangesEditing'),_0x3f0981=_0x287a2c['plugins']['get']('TableUtils'),_0x42a31b=_0x287a2c['plugins']['get'](jt),_0x33f0af=_0x287a2c['plugins']['get']('TableClipboard');_0x42a31b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x287a2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x287a2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b9e8f=null;_0x287a2c['model']['on']('insertContent',(_0x1e31be,_0x24ef3b)=>{const [_0x42d997,_0x240943]=_0x24ef3b,_0x16c37f=_0x24ef3b[_0x24ef3b['length']-0x1];_0x16c37f&&_0x16c37f['forceDefaultExecution']||_0x2cbeb4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x128a46,_0x544851,_0x5a2fd3,_0x130fcd,_0x1efea0){if(_0x544851&&!_0x544851['is']('documentSelection'))return!0x1;const _0x33f747=_0x1efea0['getTableIfOnlyTableInContent'](_0x128a46,_0x5a2fd3);if(!_0x33f747||!he(_0x33f747,void 0x0,_0x130fcd))return!0x1;const _0x495265=_0x130fcd['getSelectionAffectedTableCells'](_0x5a2fd3['document']['selection']);if(!_0x495265['length'])return!0x1;const _0xc1869e=_0x495265[0x0]['findAncestor']('table'),_0x109410=_0x130fcd['getRowIndexes'](_0x495265),_0x59fda7=_0x130fcd['getColumnIndexes'](_0x495265),_0x1f12c3={'startRow':_0x109410['first'],'endRow':_0x109410['last'],'startColumn':_0x59fda7['first'],'endColumn':_0x59fda7['last']};return 0x1==_0x495265['length']&&(_0x1f12c3['endRow']+=_0x130fcd['getRows'](_0x33f747)-0x1,_0x1f12c3['endColumn']+=_0x130fcd['getColumns'](_0x33f747)-0x1),he(_0xc1869e,_0x1f12c3,_0x130fcd);}(_0x42d997,_0x240943,_0x287a2c['model'],_0x3f0981,_0x33f0af)&&(_0x1e31be['stop'](),_0x2b9e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x287a2c['model']['change'](()=>{_0x287a2c['model']['insertContent'](_0x24ef3b[0x0],_0x24ef3b[0x1],_0x24ef3b[0x2],{'forceDefaultExecution':!0x0});const _0x101cfa=_0x48fd30(),{rowInsertionRanges:_0x52d7b3,columnInsertionRanges:_0x588661,insertionRanges:_0x43c62a,deletionRanges:_0xfd52b1,cells:_0x8ca34e}=_0x2b9e8f;_0x52d7b3['length']&&_0x2cbeb4['markMultiRangeInsertion'](_0x52d7b3,'tablePasteRow',{'tablePasteChainId':_0x101cfa}),_0x588661['length']&&_0x2cbeb4['markMultiRangeInsertion'](_0x588661,'tablePasteColumn',{'tablePasteChainId':_0x101cfa}),_0x43c62a['length']&&(_0x2cbeb4['markMultiRangeInsertion'](_0x43c62a,'tablePaste',{'tablePasteChainId':_0x101cfa,'skipNestingCheck':!0x0}),_0x43c62a['forEach'](_0x468196=>_0x468196['detach']?.())),_0xfd52b1['length']&&(_0x2cbeb4['markMultiRangeDeletion'](_0xfd52b1,'tablePaste',{'tablePasteChainId':_0x101cfa,'skipNestingCheck':!0x0}),_0xfd52b1['forEach'](_0xda72ff=>_0xda72ff['detach']?.()));const _0x48ea23=_0x2cbeb4['markMultiRangeBlockFormat'](_0x8ca34e['map'](({element:_0x49ed96})=>_0x49ed96),{'formatGroupId':_0x48fd30()},[],'tablePasteCell',{'tablePasteChainId':_0x101cfa});if(_0x48ea23){const _0x18a1e6=_0x48ea23['getMarkers'](),_0x5c5297=[];for(const {element:_0x1f1863,attributes:_0x3e7d5e}of _0x8ca34e){if(!_0x3e7d5e)continue;const _0x2f3e07=_0x287a2c['model']['createRangeOn'](_0x1f1863),_0x1a4d74=_0x18a1e6['find'](_0x3a5136=>_0x3a5136['getRange']()['isEqual'](_0x2f3e07));_0x1a4d74&&_0x5c5297['push']([_0x1a4d74['name'],_0x3e7d5e]);}_0x5c5297['length']&&_0x48ea23['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c5297));}_0x2b9e8f=null;}));},{'priority':_0x16f094['high']+0xa}),_0x287a2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b30f8,_0x44f4f4)=>{const [_0x2d3153,_0x3bdf4a,,_0x149e34]=_0x44f4f4;if(!_0x2b9e8f)return;_0x1b30f8['stop']();const _0x4a9cbe=_0x2d3153['cell'],_0x40f615=_0x3bdf4a,_0xac4d0a=Pe(_0x4a9cbe),_0x54879b=Pe(_0x40f615);_0x1b30f8['return']=_0x4a9cbe;let _0x54c841=null,_0x3d0315=null;if(_0x54879b||_0xac4d0a){if(_0xac4d0a&&!_0x54879b){_0x149e34['remove'](_0x4a9cbe['getChild'](0x0));for(const _0x1fe039 of Array['from'](_0x40f615['getChildren']()))_0x149e34['insert'](_0x1fe039,_0x4a9cbe,'end');const _0x5b7d47=_0x2b9e8f['rowInsertionIndexes']['includes'](_0x2d3153['row']),_0x1094f1=_0x2b9e8f['columnInsertionIndexes']['includes'](_0x2d3153['column']);_0x5b7d47||_0x1094f1||(_0x54c841=_0x16e800['fromRange'](_0x149e34['createRangeIn'](_0x4a9cbe)));}else _0x54879b&&!_0xac4d0a&&(_0x3d0315=_0x149e34['createRangeIn'](_0x4a9cbe));}else{const _0x38bb25=_0x149e34['createElement']('tableCellSuggestion'),_0x4707ac=_0x149e34['createElement']('tableCellSuggestion');_0x149e34['wrap'](_0x149e34['createRangeIn'](_0x4a9cbe),_0x4707ac),_0x149e34['insert'](_0x38bb25,_0x4a9cbe,0x0);for(const _0x384345 of Array['from'](_0x40f615['getChildren']()))_0x149e34['insert'](_0x384345,_0x38bb25,'end');_0x54c841=_0x16e800['fromRange'](_0x149e34['createRangeOn'](_0x38bb25)),_0x3d0315=_0x16e800['fromRange'](_0x149e34['createRangeOn'](_0x4707ac));}const _0x1366ad=Array['from'](_0x40f615['getAttributes']())['filter'](([_0x122576])=>ge['includes'](_0x122576));_0x2b9e8f['cells']['push']({'element':_0x4a9cbe,'attributes':_0x1366ad['length']?Object['fromEntries'](_0x1366ad):null}),_0x54c841&&_0x2b9e8f['insertionRanges']['push'](_0x54c841),_0x3d0315&&_0x2b9e8f['deletionRanges']['push'](_0x3d0315);},{'priority':'high'}),_0x3f0981['on']('insertColumns',(_0x41fac4,_0x13163b)=>{const [_0x1cd8a0,_0x211121={}]=_0x13163b;if(!_0x2b9e8f)return;const _0x41123e=_0x211121['at']||0x0,_0x7bd8a3=_0x211121['columns']||0x1;_0x2b9e8f['columnInsertionIndexes']=new Array(_0x7bd8a3)['fill'](_0x41123e)['map']((_0xf102f2,_0x1e1676)=>_0xf102f2+_0x1e1676);for(const {cell:_0xa03fa1}of _0x3f0981['createTableWalker'](_0x1cd8a0,{'startColumn':_0x41123e,'endColumn':_0x41123e+_0x7bd8a3-0x1}))_0x2b9e8f['columnInsertionRanges']['push'](_0x287a2c['model']['createRangeOn'](_0xa03fa1));},{'priority':'low'}),_0x3f0981['on']('insertRows',(_0xc1129,_0x3edd6b)=>{const [_0x1e5120,_0x396678={}]=_0x3edd6b;if(!_0x2b9e8f)return;const _0x41d6cd=_0x396678['at']||0x0,_0x3b4a5b=_0x396678['rows']||0x1;_0x2b9e8f['rowInsertionIndexes']=new Array(_0x3b4a5b)['fill'](_0x41d6cd)['map']((_0xd7fc5c,_0x3ec0ff)=>_0xd7fc5c+_0x3ec0ff);for(const {cell:_0x2b9de8}of _0x3f0981['createTableWalker'](_0x1e5120,{'startRow':_0x41d6cd,'endRow':_0x41d6cd+_0x3b4a5b-0x1}))_0x2b9e8f['rowInsertionRanges']['push'](_0x287a2c['model']['createRangeOn'](_0x2b9de8));},{'priority':'low'}),_0x2cbeb4['descriptionFactory']['registerDescriptionCallback'](_0x26dc86=>{if(_0x26dc86['subType']&&_0x26dc86['subType']['startsWith']('tablePaste'))return _0x26dc86['previous']?{}:{'type':'insertion','content':o(_0x287a2c['locale'],'*Replace\x20table\x20cells*')};});const _0x24351e=()=>!0x1;for(const _0x537272 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion',_0x537272,'join',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('deletion',_0x537272,'join',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x537272,'join',_0x24351e);_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13905d,_0x33ed24,_0x39ede6)=>{const _0x1d7012=_0x13905d['map'](_0x5c62cc=>_0x5c62cc['getContainedElement']())['filter'](_0x515f46=>_0x515f46),_0x16829a=new Map(_0x1d7012['map'](_0x1f60a6=>[_0x1f60a6,null]));if(_0x2b9e8f){for(const {element:_0x2baafe,attributes:_0x542627}of _0x2b9e8f['cells'])_0x542627&&_0x16829a['set'](_0x2baafe,_0x542627);}else{if(_0x39ede6&&_0x39ede6['markerAttributes'])for(const [_0x3b6d1a,_0x55d5be]of Object['entries'](_0x39ede6['markerAttributes'])){const _0x57dec4=_0x287a2c['model']['markers']['get'](_0x3b6d1a),_0x48e8f2=_0x57dec4?_0x57dec4['getRange']()['getContainedElement']():null;_0x48e8f2&&_0x16829a['set'](_0x48e8f2,_0x55d5be);}}_0x287a2c['model']['change'](_0xece1b9=>{for(const [_0x1b6967,_0xe9be68]of _0x16829a)_0xece1b9['setAttributes']({...Ce,..._0xe9be68},_0x1b6967);});});const _0x12a7c2=(_0x1e59bf,_0x4e45c7)=>{_0x2cbeb4['_suggestionFactory']['registerCustomCallback'](_0x1e59bf,'tablePaste',_0x4e45c7,(_0x44945c,_0x177f42,_0x1a6e15)=>{_0x287a2c['model']['change'](_0xd4bf3=>{const _0x4531ee=[];for(const _0x48a7e0 of _0x44945c){const _0x127921=_0x48a7e0['start']['nodeAfter'];_0x127921['is']('element','tableCellSuggestion')&&_0x4531ee['push'](_0x127921);}_0x2cbeb4['_suggestionFactory']['getSuggestionCallback'](_0x1e59bf,null,_0x4e45c7)(_0x44945c,_0x177f42,_0x1a6e15);for(const _0x237cc1 of _0x4531ee)'$graveyard'!=_0x237cc1['root']['rootName']&&_0xd4bf3['unwrap'](_0x237cc1);});});};_0x12a7c2('insertion','accept'),_0x12a7c2('insertion','discard'),_0x12a7c2('deletion','accept'),_0x12a7c2('deletion','discard'),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5ebf55=>{const _0x430e15=_0x5ebf55['map'](_0x31927c=>_0x31927c['getContainedElement']()),_0xca0461=_0x430e15[0x0]['findAncestor']('table'),{minRow:_0x1b9355,maxRow:_0x595367}=_0x42a31b['_getCoordsForCells'](_0x430e15);_0x3f0981['removeRows'](_0xca0461,{'at':_0x1b9355,'rows':_0x595367-_0x1b9355+0x1});}),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a7f48=>{const _0x405dcf=_0x4a7f48['map'](_0x25ee47=>_0x25ee47['getContainedElement']()),_0x25fb22=_0x405dcf[0x0]['findAncestor']('table'),{minColumn:_0x5b0d88,maxColumn:_0xea3c3a}=_0x42a31b['_getCoordsForCells'](_0x405dcf);_0x3f0981['removeColumns'](_0x25fb22,{'at':_0x5b0d88,'columns':_0xea3c3a-_0x5b0d88+0x1});});const _0x1f91ec=(_0x4b39ae,_0x576079)=>{if(!_0x576079['subType']||!_0x576079['subType']['startsWith']('tablePaste'))return;const _0x4945c0=_0x576079['attributes']['tablePasteChainId'],_0x6469de=_0x2cbeb4['getSuggestions']()['filter'](_0x26eff8=>_0x26eff8['isInContent']&&_0x26eff8['attributes']&&_0x26eff8['attributes']['tablePasteChainId']==_0x4945c0);_0x6469de['length']&&_0x576079['getAllAdjacentSuggestions']()['length']!=_0x6469de['length']&&_0x6469de['reduce']((_0x2eec09,_0x3256af)=>(_0x2eec09['next']=_0x3256af,_0x3256af['previous']=_0x2eec09,_0x3256af));};function _0x2b684d(_0x13045f,_0x23840e=!0x0){const {id:_0x8407d8}=_0x2cbeb4['_splitMarkerName'](_0x13045f['markerName']),_0x3dfcd7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33d0ce=_0x2cbeb4['activeMarkers']['includes'](_0x13045f['markerName']);return _0x33d0ce&&_0x3dfcd7['push']('ck-suggestion-marker--active'),{'classes':_0x3dfcd7,'attributes':{'data-suggestion':_0x8407d8},'priority':_0x33d0ce&&_0x23840e?0xbc2:0xbb8};}_0x2cbeb4['on']('suggestionLoaded',_0x1f91ec,{'priority':'high'}),_0x2cbeb4['on']('suggestionUnloaded',_0x1f91ec,{'priority':'high'}),_0x287a2c['model']['document']['registerPostFixer'](()=>{let _0x25914e=!0x1;const _0x28a44f=Array['from'](_0x287a2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42ed70,data:_0x492d17}of _0x28a44f){const {group:_0x2e1995,type:_0x581d87,id:_0x59230e}=_0x2cbeb4['_splitMarkerName'](_0x42ed70);if('suggestion'!=_0x2e1995||'deletion'!=_0x581d87||_0x492d17['oldRange'])continue;if(!_0x2cbeb4['hasSuggestion'](_0x59230e))continue;const _0x491968=_0x2cbeb4['getSuggestion'](_0x59230e)['getRanges'](),_0x4ed768=_0x287a2c['plugins']['get']('Users')['me'];for(const _0x1a0f92 of _0x2cbeb4['getSuggestions']()){if(!_0x1a0f92['isInContent']||_0x1a0f92['author']!=_0x4ed768)continue;if('formatBlock'!=_0x1a0f92['type']||'tablePasteCell'!=_0x1a0f92['subType'])continue;if(_0x1a0f92['getRanges']()['every'](_0x1426c8=>_0x491968['some'](_0x410539=>_0x410539['containsRange'](_0x1426c8,!0x0)))){for(const _0x1df590 of _0x1a0f92['getAllAdjacentSuggestions']())_0x1df590['isInContent']&&(_0x1df590['discard'](),_0x25914e=!0x0);}}}return _0x25914e;}),_0x287a2c['model']['document']['registerPostFixer'](_0x28a58d=>{const _0x37430c=_0x287a2c['commands']['get']('redo');if(!_0x37430c||!_0x37430c['_createdBatches']['has'](_0x28a58d['batch']))return!0x1;let _0x33de69=!0x1;const _0x5a2f37=_0x287a2c['plugins']['get']('Users')['me'],_0x39d085=_0x287a2c['model']['document']['differ']['getChanges'](),_0x3332eb=Array['from'](_0x287a2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32c31d,data:_0x841ec4})=>{const {group:_0x49b24d,subType:_0x44add9,authorId:_0x19ce82}=_0x2cbeb4['_splitMarkerName'](_0x32c31d);return'suggestion'==_0x49b24d&&'tablePaste'==_0x44add9&&_0x19ce82==_0x5a2f37['id']&&!_0x841ec4['oldRange'];});for(const _0x33be2f of _0x39d085){if('insert'!=_0x33be2f['type']||'tableCellSuggestion'!=_0x33be2f['name']||0x1!=_0x33be2f['length'])continue;const _0x3cad80=_0x28a58d['createRange'](_0x33be2f['position'],_0x33be2f['position']['getShiftedBy'](0x1));if(!_0x3332eb['find'](({data:_0x1d9138})=>_0x1d9138['newRange']['isEqual'](_0x3cad80))){for(const {name:_0x11e61f,data:_0x57884a}of _0x3332eb)if(_0x3cad80['containsRange'](_0x57884a['newRange'])){_0x28a58d['updateMarker'](_0x11e61f,{'range':_0x3cad80}),_0x33de69=!0x0;break;}}}return _0x33de69;}),_0x287a2c['model']['document']['registerPostFixer'](_0xfe755d=>{let _0x72d2c6=!0x1;const _0x265ef5=_0x287a2c['plugins']['get']('Users')['me'],_0x3f1bc8=_0x2cbeb4['getSuggestions']()['filter'](_0x3145ff=>_0x3145ff['isInContent']&&_0x3145ff['author']==_0x265ef5),_0x50799b=new Set(),_0x3a803e=new Set();for(const _0x382e6f of _0x3f1bc8)if('tablePaste'==_0x382e6f['subType'])for(const _0x1845ab of _0x382e6f['getMarkers']()){const _0xde4c40=_0x1845ab['getRange']()['getContainedElement']();if(_0xde4c40){if(_0xde4c40['is']('element','tableCellSuggestion')&&Pe(_0xde4c40)){_0x382e6f['removeMarker'](_0x1845ab['name']),_0x50799b['add'](_0xde4c40),_0x72d2c6=!0x0;const _0x24d8f1=_0xde4c40['nextSibling'],_0x41a73c=_0xde4c40['previousSibling'],_0x5b8e7a=_0x24d8f1&&_0x24d8f1['is']('element','tableCellSuggestion'),_0x37ced8=_0x41a73c&&_0x41a73c['is']('element','tableCellSuggestion');_0x5b8e7a&&!_0x50799b['has'](_0x24d8f1)&&_0x3a803e['add'](_0x24d8f1),_0x37ced8&&!_0x50799b['has'](_0x41a73c)&&_0x3a803e['add'](_0x41a73c);}else _0xde4c40['is']('element','paragraph')&&_0xde4c40['isEmpty']&&(_0x382e6f['removeMarker'](_0x1845ab['name']),_0x72d2c6=!0x0);}}else{if('tablePasteCell'==_0x382e6f['subType']){if(!_0x382e6f['attributes']||!_0x382e6f['attributes']['tablePasteChainId'])continue;const _0x1dbea6=_0x382e6f['attributes']['markerAttributes'];if(_0x1dbea6&&Object['keys'](_0x1dbea6)['length'])continue;const _0x31aefb=_0x382e6f['attributes']['tablePasteChainId'];let _0x231ba4=!0x0,_0x38c521=!0x0;for(const _0x23585d of _0x3f1bc8)if(_0x23585d['subType']&&_0x23585d['subType']['startsWith']('tablePaste')){if(!_0x23585d['attributes']['tablePasteChainId']){_0x38c521=!0x1;break;}if(_0x23585d['id']!=_0x382e6f['id']&&_0x23585d['attributes']['tablePasteChainId']==_0x31aefb){_0x231ba4=!0x1;break;}}_0x38c521&&_0x231ba4&&(_0x382e6f['removeMarkers'](),_0x72d2c6=!0x0);}}for(const _0x31973b of _0x50799b)_0xfe755d['remove'](_0x31973b);for(const _0x721820 of _0x3a803e)_0xfe755d['unwrap'](_0x721820);return _0x72d2c6;}),_0x287a2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b868a,_0x2eb702)=>_0x2b684d(_0x5b868a),'converterPriority':'high'}),_0x287a2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33a6bd,_0x4778e7)=>_0x4778e7['options']['showSuggestionHighlights']?_0x2b684d(_0x33a6bd,!0x1):null,'converterPriority':'high'});const _0xe1c53a=_0x287a2c['editing']['view'];this['listenTo'](_0xe1c53a['document'],'clipboardOutput',(_0x3fb478,_0x3ef414)=>{const _0x19ffdf=[];for(const _0x1645c1 of _0xe1c53a['createRangeIn'](_0x3ef414['content'])['getItems']())_0x1645c1['is']('element','suggestion-td')&&_0x19ffdf['push'](_0x1645c1);_0xe1c53a['change'](_0x7d5908=>{for(const _0x54432f of _0x19ffdf)_0x7d5908['move'](_0x7d5908['createRangeIn'](_0x54432f),_0x7d5908['createPositionBefore'](_0x54432f)),_0x7d5908['remove'](_0x54432f);});});}}function Pe(_0x14f31e){if(_0x14f31e['isEmpty'])return!0x0;const _0x259248=_0x14f31e['getChild'](0x0);return _0x259248['is']('element','paragraph')&&_0x259248['isEmpty'];}function he(_0x25eef2,_0x2961a0={},_0x3bbf45){for(const {isAnchor:_0x246941,cellHeight:_0x4c065d,cellWidth:_0x206b73}of _0x3bbf45['createTableWalker'](_0x25eef2,{'includeAllSlots':!0x0,..._0x2961a0}))if(!_0x246941||0x1!=_0x4c065d||0x1!=_0x206b73)return!0x1;return!0x0;}class vt extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x175f4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x175f4d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x175f4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x175f4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x175f4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x175f4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x175f4d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x220abb,_0x52c682){const _0x3bfd47=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25713e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a57ef=_0x52c682['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x579bd7=_0x25713e['getColumnGroupElement'](_0x4a57ef);let _0x18105b=_0x579bd7?_0x25713e['getTableColumnsWidths'](_0x579bd7):null,_0x1ae562=_0x4a57ef['getAttribute']('tableWidth')||null;const _0x362a2c=_0x52c682['tableWidth']||_0x1ae562,_0x5b7be4=_0x52c682['columnWidths']||_0x18105b,_0x2bdd2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x20b43f of _0x3bfd47['getSuggestions']()){const _0x32c878=_0x20b43f['getContainedElement']();if('resizeTable'===_0x20b43f['subType']&&_0x32c878===_0x4a57ef){_0x20b43f['author']!==_0x2bdd2d&&_0x20b43f['discard']();const _0x47166d=_0x20b43f['data']['commandParams'];_0x1ae562=_0x47166d[0x0]['tableWidth'],_0x18105b=_0x47166d[0x0]['columnWidths'];break;}}_0x220abb({'table':_0x4a57ef,'tableWidth':_0x362a2c,'columnWidths':_0x5b7be4}),_0x3bfd47['markBlockFormat'](_0x4a57ef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ae562,'columnWidths':_0x18105b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x109241){if('formatBlock'!=_0x109241['type']&&'formatInline'!=_0x109241['type'])return;const {data:_0x39668c}=_0x109241;if(_0x39668c&&'resizeTable'===_0x39668c['formatGroupId']){const _0x2bc7ce='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2bc7ce)};}}}class Ct extends _0x5297f7{['afterInit'](){const _0x1d72b7=this['editor'];_0x1d72b7['plugins']['has']('Template')&&_0x1d72b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5297f7{['afterInit'](){const _0x327d87=this['editor'];if(!_0x327d87['commands']['get']('insertTableOfContents'))return;_0x327d87['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x393e43=_0x327d87['plugins']['get']('TrackChangesEditing'),_0x23626c=_0x327d87['locale'];_0x393e43['descriptionFactory']['registerElementLabel']('tableOfContents',_0x543428=>o(_0x23626c,'ELEMENT_TABLE_OF_CONTENTS',_0x543428));}}class Dt extends _0x5297f7{['afterInit'](){const _0x1f04f4=this['editor'];if(!_0x1f04f4['plugins']['has']('Title'))return;const _0xe2c911=_0x1f04f4['plugins']['get']('TrackChangesEditing');_0xe2c911['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1f04f4['locale'],'ELEMENT_TITLE')),_0x1f04f4['model']['document']['registerPostFixer'](_0x3c3622=>{let _0x562c25=!0x1;const _0x33b529=Array['from'](_0x1f04f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc6e486,data:_0x2ddbf6}of _0x33b529){const {group:_0x532352}=_0xe2c911['_splitMarkerName'](_0xc6e486);if('suggestion'!==_0x532352||!_0x2ddbf6['newRange'])continue;const _0x403f8a=_0x2ddbf6['newRange'],_0x388d9f=_0x403f8a['end']['nodeBefore'];if(!_0x388d9f||!_0x388d9f['is']('element','title-content'))continue;if(!_0x403f8a['start']['isTouching'](_0x403f8a['end']))continue;const _0x79a4f3=_0x1f04f4['model']['schema']['getNearestSelectionRange'](_0x403f8a['end'],'forward');if(_0x79a4f3&&_0x79a4f3['isCollapsed']){const _0xc2497d=_0x3c3622['createRange'](_0x403f8a['start'],_0x79a4f3['start']);_0xc2497d['isEqual'](_0x403f8a)||(_0x3c3622['updateMarker'](_0xc6e486,{'range':_0xc2497d}),_0x562c25=!0x0);}_0x562c25||(_0x3c3622['removeMarker'](_0xc6e486),_0x562c25=!0x0);}return _0x562c25;});}}class Nt extends _0x5297f7{['afterInit'](){const _0x18b696=this['editor'],_0x2628e8=_0x18b696['plugins']['get']('TrackChangesEditing');_0x18b696['plugins']['has']('UndoEditing')&&(_0x2628e8['enableCommand']('undo'),_0x2628e8['enableCommand']('redo'));}}class Mt extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x1f8bd5=this['editor'];if(!_0x1f8bd5['plugins']['has']('TableCaptionEditing'))return;_0x1f8bd5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5297f7{['tableProperties'];['tableCellProperties'];constructor(_0x16bc4a){super(_0x16bc4a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x24a396=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4cc4b7 of this['tableProperties'])_0x24a396['enableCommand'](_0x4cc4b7,(_0x411e94,_0x18b2a4)=>{const _0x17acb2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4cc4b7,[_0x17acb2],this['tableProperties'],'tableProperties',_0x411e94,_0x18b2a4);});_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x24a396['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e89b6,_0x4eed3a)=>this['handleDiscardAction'](this['tableProperties'],_0x3e89b6,_0x4eed3a)),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8adc69 of this['tableCellProperties'])_0x24a396['enableCommand'](_0x8adc69,(_0x20480f,_0x1d7c4b)=>{const _0x3ea4bb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8adc69,_0x3ea4bb,this['tableCellProperties'],'tableCellProperties',_0x20480f,_0x1d7c4b);});_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x24a396['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x566c53,_0x5129c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x566c53,_0x5129c3)),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x24a396['descriptionFactory']['registerDescriptionCallback'](_0x2bdd10=>this['handleSuggestionDescription'](_0x2bdd10));}['_handlePropertyChange'](_0x10ad32,_0x20fc9b,_0x4a1d46,_0x2bea22,_0x8dd1c1,_0x4e7f35){const _0x47a7e5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e7f35['batch'],()=>{for(const _0x2df354 of _0x20fc9b){if(this['_getSuggestion'](_0x2df354,_0x2bea22))_0x8dd1c1(_0x4e7f35);else{const _0x5c0e41={};for(const _0x4b1c3f of _0x4a1d46){const _0x25b18c=_0x2df354['getAttribute'](_0x4b1c3f);void 0x0!==_0x25b18c&&(_0x5c0e41[_0x4b1c3f]=_0x25b18c);}_0x8dd1c1(_0x4e7f35),_0x47a7e5['markBlockFormat'](_0x2df354,{'commandParams':[_0x5c0e41]},[],_0x2bea22);}}});}['handleDiscardAction'](_0x11a5dd,_0x338cd7,_0x3720a3){const _0x512671=_0x338cd7[0x0]['start']['nodeAfter'],_0x188ef5=_0x3720a3['commandParams'][0x0];this['editor']['model']['change'](_0x5c1523=>{for(const _0x53426e of _0x11a5dd)void 0x0!==_0x188ef5[_0x53426e]?_0x5c1523['setAttribute'](_0x53426e,_0x188ef5[_0x53426e],_0x512671):_0x5c1523['removeAttribute'](_0x53426e,_0x512671);});}['handleSuggestionDescription'](_0x1c5efa){if(_0x1c5efa['data'])switch(_0x1c5efa['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'](_0x42b901,_0x48d9eb){const _0x1cc9ae=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4b16f4 of _0x1cc9ae['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b14a4=_0x4b16f4['getContainedElement']();if(_0x4b16f4['subType']===_0x48d9eb&&_0x3b14a4===_0x42b901)return _0x4b16f4;}return null;}}const m='$elementName';class p extends _0x5297f7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4306be,_0x3ae443,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x227dbc){function _0x13a949(_0xfad3b2){return _0xfad3b2['map'](_0xace83b=>String['fromCharCode'](_0xace83b))['join']('');}super(_0x227dbc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x584df0,_0x325899,_0x29fc83,_0x461803)=>{this['_model']['change'](()=>{for(const _0x4048ff of[..._0x461803,..._0x29fc83])this['_model']['markers']['has'](_0x4048ff)&&_0x227dbc['editing']['reconvertMarker'](_0x4048ff);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x227dbc['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(),_0x227dbc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x227dbc['config']['get']('trackChanges.trackFormatChanges'),_0x227dbc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x227dbc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x227dbc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x13a949([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13a949([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x34]);}['init'](){const _0x4a635b=this['editor'],_0x3247bb=(_0x2f58ec,_0x2973e2)=>{if('attribute'!=_0x2f58ec)return'ck-suggestion-marker-'+_0x2f58ec;const _0x188331=_0x2973e2['split']('|')[0x0];return this['_isBlockAttribute'](_0x188331)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a635b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2734f7=>{const {id:_0xe9df70,type:_0x19bb49,subType:_0x3a02a1}=this['_splitMarkerName'](_0x2734f7['markerName']),_0x3742d6=['ck-suggestion-marker',_0x3247bb(_0x19bb49,_0x3a02a1)];let _0x217085=0xbb8;return this['activeMarkers']['includes'](_0x2734f7['markerName'])&&(_0x3742d6['push']('ck-suggestion-marker--active'),_0x217085=0xbc2),'deletion'==_0x19bb49&&(_0x217085+=0x5),{'classes':_0x3742d6,'attributes':{'data-suggestion':_0xe9df70},'priority':_0x217085};}}),_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x45eedc=>{_0x45eedc['on']('addMarker:suggestion',(_0x3b1bda,_0x580658,_0x3b3a5a)=>{if(!_0x3b3a5a['options']['showSuggestionHighlights'])return;const _0x3f7d94=_0x580658['item'];if(!_0x3f7d94)return;const _0x8eb62b=_0x3b3a5a['mapper']['toViewElement'](_0x3f7d94);_0x4a635b['model']['schema']['isObject'](_0x3f7d94)&&_0x8eb62b&&!_0x8eb62b['getCustomProperty']('widget')&&_0x8eb62b['is']('containerElement')&&_0x52b614(_0x8eb62b,_0x3b3a5a['writer']);},{'priority':'high'});}),_0x4a635b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x51cf56,_0x2ecaf4)=>{if(!_0x2ecaf4['options']['showSuggestionHighlights'])return null;const {type:_0x1432c4,subType:_0xd9143a}=this['_splitMarkerName'](_0x51cf56['markerName']);return{'classes':['ck-suggestion-marker',_0x3247bb(_0x1432c4,_0xd9143a)],'priority':0xbb8};}});const _0x315aac=({showActiveMarkers:_0x5a98e6=!0x0,isAttributeSuggestion:_0x589987=!0x1}={})=>(_0x4e9f78,_0x2cf640,_0x1036d2)=>{if(!_0x2cf640['item'])return;const {id:_0x1e6772}=this['_splitMarkerName'](_0x2cf640['markerName']);if(_0x589987){const _0x4572df=this['_suggestions']['get'](_0x1e6772),_0x3eddd0=this['_getAttributeKey'](_0x4572df);if(!this['_isBlockAttribute'](_0x3eddd0))return;}if(_0x2cf640['item']['is']('selection'))return void _0x1036d2['consumable']['consume'](_0x2cf640['item'],_0x4e9f78['name']);const _0x56e48c=_0x1036d2['mapper']['toViewElement'](_0x2cf640['item']);if(_0x2cf640['item']['is']('element')&&_0x4a635b['model']['schema']['isBlock'](_0x2cf640['item'])&&!_0x56e48c['getCustomProperty']('addHighlight')){_0x1036d2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56e48c),_0x1036d2['writer']['setAttribute']('data-suggestion',_0x1e6772,_0x56e48c),_0x1036d2['mapper']['bindElementToMarker'](_0x56e48c,_0x2cf640['markerName']),_0x5a98e6&&(this['activeMarkers']['includes'](_0x2cf640['markerName'])?_0x1036d2['writer']['addClass']('ck-suggestion-marker--active',_0x56e48c):_0x1036d2['writer']['removeClass']('ck-suggestion-marker--active',_0x56e48c));for(const _0x24267b of _0x4a635b['model']['createRangeIn'](_0x2cf640['item'])['getItems']())_0x1036d2['consumable']['consume'](_0x24267b,_0x4e9f78['name']);_0x1036d2['consumable']['consume'](_0x2cf640['item'],_0x4e9f78['name']);}};_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x230fe9=>{_0x230fe9['on']('addMarker:suggestion:formatBlock',(_0x2c2e5f,_0x7154af,_0x57e3a7)=>{_0x57e3a7['options']['showSuggestionHighlights']&&_0x315aac({'showActiveMarkers':!0x1})(_0x2c2e5f,_0x7154af,_0x57e3a7);},{'priority':'highest'});}),_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x82fd1a=>{_0x82fd1a['on']('addMarker:suggestion:attribute',(_0x231ed5,_0x707494,_0x4ca8e8)=>{_0x4ca8e8['options']['showSuggestionHighlights']&&_0x315aac({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x231ed5,_0x707494,_0x4ca8e8);},{'priority':'highest'});}),_0x4a635b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27028a,_0x397d06)=>_0x397d06['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27028a['substr'](0xb)}}),_0x4a635b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x51dead,{writer:_0x1de29e})=>{let _0x15978b='suggestion:'+_0x51dead['getAttribute']('suggestion-type')+':'+_0x51dead['getAttribute']('id');return _0x51dead['getAttribute']('marker-count')&&(_0x15978b+=':'+_0x51dead['getAttribute']('marker-count')),_0x1de29e['createElement']('$marker',{'data-name':_0x15978b});}}),_0x4a635b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x525bc3=>{_0x525bc3['on']('addMarker:suggestion:formatBlock',_0x315aac(),{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x262b79=>{_0x262b79['on']('addMarker:suggestion:attribute',_0x315aac({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x1ba2f4=>{_0x1ba2f4['on']('removeMarker:suggestion:formatBlock',(_0x5f0edb,_0x55e8af,_0x419838)=>{const _0x4b855a=_0x419838['mapper']['markerNameToElements'](_0x55e8af['markerName']);if(_0x4b855a){for(const _0x226a3a of _0x4b855a)_0x226a3a['getCustomProperty']('addHighlight')||(_0x419838['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x226a3a),_0x419838['writer']['removeAttribute']('data-suggestion',_0x226a3a),_0x419838['mapper']['unbindElementFromMarkerName'](_0x226a3a,_0x55e8af['markerName']));}},{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x20a76c=>{_0x20a76c['on']('removeMarker:suggestion:attribute',(_0x3594a5,_0x113c0d,_0x266516)=>{const _0x5ca250=_0x266516['mapper']['markerNameToElements'](_0x113c0d['markerName']);if(!_0x5ca250)return;const {id:_0x381a1c}=this['_splitMarkerName'](_0x113c0d['markerName']),_0x210874=this['_suggestions']['get'](_0x381a1c),_0x53ef50=this['_getAttributeKey'](_0x210874);if(this['_isBlockAttribute'](_0x53ef50)){for(const _0x399f95 of _0x5ca250)_0x399f95['getCustomProperty']('addHighlight')||(_0x266516['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x399f95),_0x266516['writer']['removeAttribute']('data-suggestion',_0x399f95),_0x266516['mapper']['unbindElementFromMarkerName'](_0x399f95,_0x113c0d['markerName']));}},{'priority':'high'});}),_0x4a635b['model']['document']['registerPostFixer'](_0x267d02=>{let _0x35235f=!0x1;const _0x2884d5=Array['from'](_0x4a635b['model']['document']['differ']['getChangedMarkers']()),_0x4ad880=new Set();for(const {name:_0x30af25,data:_0x3cc5e3}of _0x2884d5){const {group:_0x26f516,type:_0x1412a4,subType:_0x5d7f84,id:_0x4d52f7}=this['_splitMarkerName'](_0x30af25);if('suggestion'!==_0x26f516)continue;const _0x2c8850=this['_suggestions']['get'](_0x4d52f7);if(null!=_0x3cc5e3['newRange']){'formatInline'==_0x1412a4&&(_0x35235f=_0x35235f||Et(_0x3cc5e3['newRange'],_0x30af25,_0x267d02,_0x4a635b['model']['schema']));const _0xd33f6a='attribute'==_0x1412a4&&this['_isBlockAttribute'](_0x5d7f84['split']('|')[0x0]);if(_0x3cc5e3['newRange']['isCollapsed']||'$graveyard'==_0x3cc5e3['newRange']['root']['rootName']||'formatBlock'==_0x1412a4&&!Ut(_0x3cc5e3['newRange'])||_0xd33f6a&&!Ut(_0x3cc5e3['newRange'])||'deletion'==_0x1412a4&&!(!Tt(_0x11687c=_0x3cc5e3['newRange'])&&!function(_0x292b42){return _0x292b42['start']['parent']==_0x292b42['end']['nodeBefore']&&_0x292b42['start']['isAtEnd'];}(_0x11687c)))_0x267d02['removeMarker'](_0x30af25),_0x35235f=!0x0;else{if(!_0x2c8850||!_0x2c8850['isInContent'])continue;_0x4ad880['add'](_0x2c8850);}}}var _0x11687c;return _0x4ad880['size']>0x0&&(_0x35235f=!!this['_joinWithAdjacentSuggestions'](_0x4ad880)||_0x35235f),_0x35235f;}),_0x4a635b['model']['document']['registerPostFixer'](_0x405993=>{let _0x1d42da=!0x1;for(const _0x24976b of _0x4a635b['model']['document']['differ']['getChanges']())if('insert'==_0x24976b['type'])for(const _0x203f1d of this['_suggestions']['values']()){if(_0x203f1d['isMultiRange']||!_0x203f1d['isInContent'])continue;const _0x391c8a='formatBlock'==_0x203f1d['type'],_0x2d5739=this['_getAttributeKey'](_0x203f1d),_0x5373c9=_0x2d5739&&this['_isBlockAttribute'](_0x2d5739);if(!_0x391c8a&&!_0x5373c9)continue;const _0x47b793=_0x203f1d['getFirstRange']();if(_0x47b793['start']['parent']!=_0x47b793['end']['parent']&&!_0x47b793['end']['isAtEnd']){const _0xf8ff0c=_0x4a635b['model']['createPositionAt'](_0x47b793['start']['nodeAfter'],'end'),_0x2dd9ac=_0x4a635b['model']['createRange'](_0x47b793['start'],_0xf8ff0c);_0x405993['updateMarker'](_0x203f1d['getFirstMarker'](),{'range':_0x2dd9ac}),_0x1d42da=!0x0;}}return _0x1d42da;}),_0x4a635b['model']['document']['registerPostFixer'](_0x3d932d=>this['_processAttributeChanges'](_0x3d932d)),_0x4a635b['model']['document']['registerPostFixer'](_0x2478bd=>!_0x2478bd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2478bd)),_0x4a635b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a635b['model']['document']['on']('change:data',(_0xf0c1f4,_0x32af18)=>{if(!_0x32af18['isLocal']||_0x32af18['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x583e41=_0x4a635b['model']['document']['differ']['getChanges']();if(0x0==_0x583e41['length'])return;const _0x4b05f5=[],_0x5b6286=_0x583e41['filter'](_0x1c7045=>'attribute'==_0x1c7045['type']),_0x2a2f76=_0x583e41['filter'](_0x3718d5=>'insert'==_0x3718d5['type']&&'$text'!=_0x3718d5['name']);for(const _0x36087b of _0x5b6286)this['_isRegisteredAttribute'](_0x36087b['attributeKey'])&&_0x4b05f5['push']({'key':_0x36087b['attributeKey'],'newValue':_0x36087b['attributeNewValue'],'oldValue':_0x36087b['attributeOldValue'],'range':Ot(_0x36087b['range'],_0x4a635b['model'])});for(const _0x539bce of _0x2a2f76){if('rename'!=_0x539bce['action']&&'refresh'!=_0x539bce['action'])continue;const _0x555bf3=Gt(_0x539bce['position']['nodeAfter'],_0x4a635b['model']),_0x59646f=_0x539bce['before'];'rename'==_0x539bce['action']&&_0x4b05f5['push']({'key':m,'newValue':_0x539bce['name'],'oldValue':_0x59646f['name'],'range':_0x555bf3});for(const [_0x4a76e8,_0x318d1d]of _0x59646f['attributes']){if(!this['_isRegisteredAttribute'](_0x4a76e8))continue;const _0x1cd8f0=_0x539bce['attributes']['get'](_0x4a76e8);_0x318d1d!==_0x1cd8f0&&_0x4b05f5['push']({'key':_0x4a76e8,'newValue':_0x1cd8f0,'oldValue':_0x318d1d,'range':_0x555bf3});}for(const [_0x2cbe5c,_0x2ffb86]of _0x539bce['attributes'])this['_isRegisteredAttribute'](_0x2cbe5c)&&(_0x59646f['attributes']['has'](_0x2cbe5c)||_0x4b05f5['push']({'key':_0x2cbe5c,'newValue':_0x2ffb86,'oldValue':null,'range':_0x555bf3}));}0x0!=_0x4b05f5['length']&&_0x4a635b['model']['enqueueChange'](_0x32af18,_0x5474bb=>{const _0xa23d63=_0x48fd30();for(const {range:_0x2b51c8,key:_0x5cfa0b,oldValue:_0x41645c,newValue:_0x437f73}of _0x4b05f5)this['markAttributeChange'](_0x2b51c8,_0x5cfa0b,_0x41645c,_0x437f73,{'groupId':_0xa23d63});this['_reduceExistingSuggestions'](_0x5474bb,_0x4b05f5);});},{'priority':'lowest'}),_0x4a635b['model']['markers']['on']('update:suggestion',(_0x2e5504,_0xffb863,_0x57db73)=>{if(null==_0x57db73){const {id:_0x53f011}=this['_splitMarkerName'](_0xffb863['name']),_0x5277ab=this['_suggestions']['get'](_0x53f011);_0x5277ab&&_0x5277ab['addMarkerName'](_0xffb863['name']);}}),_0x4a635b['model']['document']['on']('change:data',()=>{const _0x15a9d3=Array['from'](_0x4a635b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d6d4b=>'suggestion'===this['_splitMarkerName'](_0x2d6d4b['name'])['group']);if(0x0===_0x15a9d3['length'])return;_0x15a9d3['sort']((_0x4c79be,_0x2ea27e)=>{const _0x407d98=_0x4c79be['data']['oldRange'],_0x520408=_0x2ea27e['data']['oldRange'];return null===_0x407d98&&null===_0x520408?0x0:null===_0x407d98&&null!==_0x520408?-0x1:null!==_0x407d98&&null===_0x520408?0x1:_0x407d98['start']['isBefore'](_0x520408['start'])?-0x1:0x1;});const _0x2847d8=new Set(),_0x375ac0=new Set();for(const {name:_0x23e3c7,data:_0x402438}of _0x15a9d3){const {id:_0x34aaa2}=this['_splitMarkerName'](_0x23e3c7);if(null===_0x402438['oldRange']){const _0x4ce10e=this['_handleNewSuggestionMarker'](_0x23e3c7);_0x375ac0['add'](_0x4ce10e);}else{const _0x1b4dae=this['_suggestions']['get'](_0x34aaa2);null!==_0x402438['newRange']||_0x1b4dae['isInContent']?(_0x2847d8['add'](_0x1b4dae['head']),_0x375ac0['add'](_0x1b4dae)):this['_removeSuggestion'](_0x1b4dae);}}_0x375ac0['size']>0x0&&this['_refreshSuggestionsChain'](_0x375ac0);for(const _0x36bafc of _0x2847d8)this['fire']('suggestionChanged',_0x36bafc);}),_0x4a635b['model']['on']('applyOperation',(_0x11eadc,_0x394aca)=>{const _0x44a041=_0x394aca[0x0];if(!this['_suggestions']['size'])return;if(!_0x44a041['isDocumentOperation'])return;if(_0x44a041['batch']['isUndo']||!_0x44a041['batch']['isLocal'])return;let _0x466cbd,_0xeecd2c;switch(_0x44a041['type']){case'insert':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['position']),_0xeecd2c=_0x466cbd['getShiftedBy'](_0x44a041['howMany']);break;case'split':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['splitPosition']),_0xeecd2c=_0x4a635b['model']['createPositionAt'](_0x44a041['moveTargetPosition']);break;case'move':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['targetPosition']),_0xeecd2c=_0x466cbd['getShiftedBy'](_0x44a041['howMany']);break;default:return;}const _0x327b0b=_0x4a635b['model']['createRange'](_0x466cbd,_0xeecd2c);_0x4a635b['model']['change'](()=>{for(const {suggestion:_0x5971b0,meta:_0x4b161b}of this['_findSuggestions'](_0x327b0b)){if(_0x5971b0['isMultiRange'])continue;if('formatInline'==_0x5971b0['type'])continue;const _0x39e100=this['_getAttributeKey'](_0x5971b0);if(_0x39e100&&this['_isBlockAttribute'](_0x39e100)&&'split'!=_0x44a041['type'])continue;const _0x22b71a=_0x5971b0['data']&&_0x5971b0['data']['multipleBlocks'];('formatBlock'!=_0x5971b0['type']||'split'==_0x44a041['type']&&!_0x22b71a)&&(_0x4b161b['containsRangeInObject']||'insertion'==_0x5971b0['type']&&_0x4b161b['isOwn']||_0x5971b0['getFirstRange']()['containsRange'](_0x327b0b)&&this['_breakSuggestionMarker'](_0x5971b0,_0x466cbd,_0xeecd2c));}});},{'priority':'lowest'}),_0x4a635b['model']['on']('deleteContent',(_0x2fc30c,_0x59f385)=>{const _0x29f6f4=_0x59f385[0x0],_0x4c6b03=_0x59f385[0x1];if(_0x4c6b03&&_0x4c6b03['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x29f6f4['isCollapsed'])return;const _0x1704f7=_0x4a635b['model']['schema'],{start:_0x263b01,end:_0xcc3fba}=_0x29f6f4['getFirstRange'](),_0x10bada=_0x263b01['nodeAfter']&&_0x1704f7['isLimit'](_0x263b01['nodeAfter'])?null:_0x1704f7['getNearestSelectionRange'](_0x263b01,'forward'),_0x34c7ea=_0xcc3fba['nodeBefore']&&_0x1704f7['isLimit'](_0xcc3fba['nodeBefore'])?null:_0x1704f7['getNearestSelectionRange'](_0xcc3fba,'backward'),_0x132f3d=_0x4a635b['model']['createRange'](_0x10bada?_0x10bada['start']:_0x263b01,_0x34c7ea?_0x34c7ea['end']:_0xcc3fba);_0x4a635b['model']['change'](_0x1303b8=>{this['markDeletion'](_0x132f3d);const _0x5c433e=_0x4a635b['model']['schema']['getNearestSelectionRange'](_0x132f3d['start']);_0x29f6f4['is']('documentSelection')?_0x1303b8['setSelection'](_0x5c433e):_0x29f6f4['setTo'](_0x5c433e);}),_0x2fc30c['stop']();},{'priority':_0x16f094['normal']+0xa}),_0x4a635b['model']['on']('insertContent',(_0x353e14,_0x4e5d66)=>{const _0x7e6ea2=_0x4e5d66[_0x4e5d66['length']-0x1];_0x7e6ea2&&_0x7e6ea2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a635b['model']['change'](()=>{let _0x3af836=_0x4a635b['model']['insertContent'](_0x4e5d66[0x0],_0x4e5d66[0x1],_0x4e5d66[0x2],{'forceDefaultExecution':!0x0});if(!_0x3af836)return;_0x353e14['return']=_0x3af836['clone']();const _0x4d727c=_0x3af836['end']['nodeBefore'],_0x4685a6=_0x4a635b['model']['schema'];_0x4d727c&&_0x4685a6['isBlock'](_0x4d727c)&&!_0x4685a6['isObject'](_0x4d727c)&&(_0x3af836=_0x4a635b['model']['createRange'](_0x3af836['start'],_0x4a635b['model']['createPositionAt'](_0x4d727c,'end'))),this['markInsertion'](_0x3af836);}),_0x353e14['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44bf37=new $(_0x4a635b,this['_suggestions']);_0x4a635b['commands']['add']('acceptSuggestion',_0x44bf37),this['enableCommand']('acceptSuggestion');const _0x57bc90=new B(_0x4a635b,this['_suggestions']);_0x4a635b['commands']['add']('discardSuggestion',_0x57bc90),this['enableCommand']('discardSuggestion'),_0x4a635b['commands']['add']('acceptAllSuggestions',new x(_0x4a635b,_0x44bf37,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a635b['commands']['add']('discardAllSuggestions',new x(_0x4a635b,_0x57bc90,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a635b['commands']['add']('acceptSelectedSuggestions',new R(_0x4a635b,_0x44bf37,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a635b['commands']['add']('discardSelectedSuggestions',new R(_0x4a635b,_0x57bc90,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x487740=_0x4a635b['plugins']['get']('CommentsRepository');this['listenTo'](_0x487740,'addComment',(_0x1887b7,{threadId:_0x4730b4})=>{const _0x4537ed=this['_suggestions']['get'](_0x4730b4);_0x4537ed&&_0x4537ed['commentThread']&&0x1===_0x4537ed['commentThread']['length']&&this['_updateSuggestionData'](_0x4730b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x487740,'removeComment',(_0x3b0d11,{threadId:_0x5a714b})=>{const _0x116409=this['_suggestions']['get'](_0x5a714b);_0x116409&&_0x116409['commentThread']&&!_0x116409['commentThread']['length']&&this['_updateSuggestionData'](_0x5a714b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x41ffe1){if(this['_adapter'])throw new _0x190e91('track-changes-adapter-already-set',this);this['_adapter']=_0x41ffe1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe16bf7=!0x1,toJSON:_0x24726d=!0x1}={}){const _0x2fad25=[];for(const _0x156747 of this['_suggestions']['values']())_0xe16bf7&&!_0x156747['isInContent']||_0x2fad25['push'](_0x156747);return _0x24726d?_0x2fad25['map'](_0x5ba20c=>_0x5ba20c['toJSON']()):_0x2fad25;}['getSuggestion'](_0x1fa9eb){const _0x14c6de=this['_suggestions']['get'](_0x1fa9eb);if(!_0x14c6de)throw new _0x190e91('track-changes-suggestion-not-found',this);return _0x14c6de;}['hasSuggestion'](_0x3a771b){return this['_suggestions']['has'](_0x3a771b);}['addSuggestionData'](_0x505996){const {authorId:_0x136d89,id:_0x324055,attributes:_0x18cb6a}=_0x505996,[_0x166e6f,_0x502064]=_0x505996['type']['split'](':'),_0x24a6b7=this['_suggestions']['get'](_0x324055)||this['_createSuggestion'](_0x166e6f,_0x502064,_0x324055,_0x136d89,_0x18cb6a);if(this['_addThreadToSuggestion'](_0x24a6b7),this['_checkSuggestionCorrectness'](_0x24a6b7,_0x166e6f,_0x502064||null,_0x136d89),_0x24a6b7['createdAt']=_0x505996['createdAt'],_0x24a6b7['_isDataLoaded']=!0x0,_0x18cb6a&&_0x18cb6a['@external']){const _0x1d50d7=_0x18cb6a['@external'],_0x5e024e=this['_getExternalAuthor'](_0x1d50d7['authorName']);_0x24a6b7['authoredAt']=_0x1d50d7['createdAt'],_0x24a6b7['author']=_0x5e024e,_0x24a6b7['isExternal']=!0x0;}else _0x24a6b7['authoredAt']=_0x505996['createdAt'];switch(_0x505996['data']&&(_0x24a6b7['data']=_0x505996['data']),_0x505996['attributes']&&(_0x24a6b7['attributes']=_0x505996['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24a6b7['_saved']=!0x0),this['_suggestionState']['get'](_0x24a6b7)){case'notReady':this['_suggestionState']['set'](_0x24a6b7,'dataReady');break;case'markerReady':_0x24a6b7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24a6b7])),this['_refreshSuggestionsChain'](new Set([_0x24a6b7])),this['_suggestionState']['set'](_0x24a6b7,'ready'),this['fire']('suggestionLoaded',_0x24a6b7)):this['_suggestionState']['set'](_0x24a6b7,'removed');}return _0x24a6b7;}['acceptSuggestion'](_0x5d5c2f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e851b of _0x5d5c2f['getAllAdjacentSuggestions']())_0x4e851b['accept']();});});}['discardSuggestion'](_0x1f7176){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcab0fb of _0x1f7176['getAllAdjacentSuggestions']())_0xcab0fb['discard']();});});}['enableCommand'](_0x29411d,_0x33bb7a){const _0x1543a9=this['editor']['commands']['get'](_0x29411d);if(!_0x1543a9)throw new _0x190e91('track-changes-command-not-found',this,{'commandName':_0x29411d});if(this['_enabledCommands']['has'](_0x1543a9))throw new _0x190e91('track-changes-enable-command-twice',this,{'commandName':_0x29411d});this['_enabledCommands']['add'](_0x1543a9),_0x33bb7a&&_0x1543a9['on']('execute',(_0x3cc152,_0x7720ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x7720ef['length']>0x0&&_0x7720ef[_0x7720ef['length']-0x1]&&_0x7720ef[_0x7720ef['length']-0x1]['forceDefaultExecution']?_0x7720ef['pop']():(_0x3cc152['return']=_0x33bb7a((..._0x1900c8)=>_0x1543a9['execute'](..._0x1900c8,{'forceDefaultExecution':!0x0}),..._0x7720ef),_0x3cc152['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x137190){let _0x3fc12c,_0x2adfe8;const _0x84e089=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3fc12c=_0x137190();}catch(_0x5e0078){_0x2adfe8=_0x5e0078;}return _0x84e089||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2adfe8&&_0x190e91['rethrowUnexpectedError'](_0x2adfe8,this),_0x3fc12c;}['markInsertion'](_0x58b032,_0x57e2ff=null,_0x5a5c05={}){if(_0x58b032['isCollapsed'])return null;const _0xa9750e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13ac47,meta:_0x46de41}of this['_findSuggestions'](_0x58b032,'insertion'))if(_0x46de41['isOwn']){if(!_0x46de41['isNextTo']){if(_0x46de41['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x13ac47,_0x5a5c05))continue;return _0x13ac47;}if(Lt(_0x13ac47,_0x5a5c05))return _0x13ac47;this['_breakSuggestionMarker'](_0x13ac47,_0x58b032['start'],_0x58b032['end']);break;}if(_0x57e2ff==_0x13ac47['subType']&&Lt(_0x13ac47,_0x5a5c05)){const _0x50f4bf=_0x13ac47['getFirstRange']();return _0x50f4bf['start']['isEqual'](_0x58b032['end'])?this['_setSuggestionRange'](_0x13ac47,this['_model']['createRange'](_0x58b032['start'],_0x50f4bf['end'])):this['_setSuggestionRange'](_0x13ac47,this['_model']['createRange'](_0x50f4bf['start'],_0x58b032['end'])),_0x13ac47;}}const _0x17c387=_0x48fd30(),_0x130294=_0xa9750e['id'],_0x4e491c=_0x57e2ff?'insertion:'+_0x57e2ff:'insertion',_0x1e00a9=this['_setSuggestionData']({'id':_0x17c387,'type':_0x4e491c,'createdAt':new Date(),'authorId':_0x130294,'attributes':_0x5a5c05});return this['_addSuggestionMarker'](_0x4e491c,_0x17c387,_0x130294,_0x58b032),_0x1e00a9;}['markMultiRangeInsertion'](_0x449c40,_0x188e0d='multi',_0x28dd21={}){const _0x1d7ff4=this['editor']['plugins']['get']('Users')['me'],_0xf71100=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x188e0d,'join');for(const _0x46ad40 of this['getSuggestions']())if(_0x46ad40['author']['id']==_0x1d7ff4['id']&&'insertion'==_0x46ad40['type']&&_0x46ad40['subType']==_0x188e0d&&Lt(_0x46ad40,_0x28dd21)&&(_0xf71100(_0x46ad40['getRanges'](),_0x449c40)||_0xf71100(_0x449c40,_0x46ad40['getRanges']()))){for(const _0x92429c of _0x449c40)_0x46ad40['addRange'](_0x92429c);return _0x46ad40;}for(const {suggestion:_0x471ec3,meta:_0x3c6314}of this['_findSuggestions'](_0x449c40,'insertion')){if(!_0x3c6314['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c6314['containsRangeInObject'])continue;if(!Lt(_0x471ec3,_0x28dd21))continue;let _0x25dd66=!0x0;for(const _0x13886a of _0x471ec3['getRanges']())for(const _0x19dea7 of _0x449c40)if(!_0x13886a['containsRange'](_0x19dea7)){_0x25dd66=!0x1;break;}if(_0x25dd66)return _0x471ec3;}const _0x78b433=_0x48fd30(),_0x3234c2=_0x1d7ff4['id'],_0x271c1d='insertion:'+_0x188e0d,_0x2b8846=this['_setSuggestionData']({'id':_0x78b433,'type':_0x271c1d,'createdAt':new Date(),'authorId':_0x3234c2,'attributes':_0x28dd21});for(const _0x10a0d5 of _0x449c40)this['_addSuggestionMarker'](_0x271c1d,_0x78b433,_0x3234c2,_0x10a0d5,u['getMultiRangeId']());return _0x2b8846;}['markInlineFormat'](_0xcbec8f,_0x406942,_0x20d13e=null,_0x4f0a0a={}){if(_0x20d13e=_0x20d13e||Vt(_0x406942),_0xcbec8f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51112b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20d13e,'accept');return this['forceDefaultExecution'](()=>_0x51112b([_0xcbec8f],_0x406942,_0x4f0a0a)),null;}const _0x4eece0=this['editor']['plugins']['get']('Users')['me'],_0x20329e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x6c5796,meta:_0x56f5bc}of this['_findSuggestions'](_0xcbec8f,'insertion'))_0x56f5bc['isOwn']&&!_0x56f5bc['isInsideObject']&&_0x20329e['push'](..._0x6c5796['getRanges']());}const _0x58c187=function(_0x119629,_0x1220a5){const _0x4e5cf9=[];for(const _0x26404e of _0x1220a5){const _0x13a168=_0x119629['getIntersection'](_0x26404e);_0x13a168&&_0x4e5cf9['push'](_0x13a168);}return _0x4e5cf9;}(_0xcbec8f,_0x20329e),_0x26948d=function(_0x1f3734,_0x1cf4c3){const _0x1d0041=[_0x1f3734];for(const _0x350ea4 of _0x1cf4c3){let _0x3a6b2a=0x0;for(;_0x3a6b2a<_0x1d0041['length'];){const _0x2bea64=_0x1d0041[_0x3a6b2a]['getDifference'](_0x350ea4);_0x1d0041['splice'](_0x3a6b2a,0x1,..._0x2bea64),_0x3a6b2a+=_0x2bea64['length'];}}return _0x1d0041;}(_0xcbec8f,_0x20329e);_0x58c187['length']&&this['_model']['change'](()=>{for(const _0x58e2f5 of _0x58c187){const _0x27f278=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20d13e,'accept');this['forceDefaultExecution'](()=>_0x27f278([_0x58e2f5],_0x406942,_0x4f0a0a));}});for(const _0x295bb6 of _0x26948d){let _0x5b30c8=null,_0x52e270=_0x295bb6['start'],_0x3f1693=_0x295bb6['end'];for(const {suggestion:_0x3596fe,meta:_0x4f7707}of this['_findSuggestions'](_0x295bb6,'formatInline')){if(!_0x4f7707['isOwn'])continue;if(_0x3596fe['subType']!=_0x20d13e)continue;if(!Lt(_0x3596fe,_0x4f0a0a))continue;const _0x1c5a75=_0x3596fe['getFirstRange']();if(_0x1c5a75['containsRange'](_0x295bb6,!0x0))return null;_0x52e270=_0x52e270['isBefore'](_0x1c5a75['start'])?_0x52e270:_0x1c5a75['start'],_0x3f1693=_0x3f1693['isAfter'](_0x1c5a75['end'])?_0x3f1693:_0x1c5a75['end'],_0x5b30c8?_0x1c5a75['start']['isBefore'](_0x5b30c8['getFirstRange']()['start'])?(_0x5b30c8['removeMarkers'](),_0x5b30c8=_0x3596fe):_0x3596fe['removeMarkers']():_0x5b30c8=_0x3596fe;}const _0x29a555=this['_model']['createRange'](_0x52e270,_0x3f1693);if(_0x5b30c8)this['_setSuggestionRange'](_0x5b30c8,_0x29a555);else{const _0x36c9bf=_0x48fd30(),_0x24d937=_0x4eece0['id'];this['_setSuggestionData']({'id':_0x36c9bf,'type':'formatInline:'+_0x20d13e,'data':_0x406942,'createdAt':new Date(),'authorId':_0x24d937,'attributes':_0x4f0a0a}),this['_addSuggestionMarker']('formatInline:'+_0x20d13e,_0x36c9bf,_0x24d937,_0x29a555);}}return null;}['markBlockFormat'](_0x33ffac,_0x5d39d5,_0xbd70ba=[],_0x3aa865=null,_0x25a321={}){_0x5d39d5['formatGroupId']||(_0x5d39d5['formatGroupId']=_0x5d39d5['commandName']),_0x5d39d5['multipleBlocks']=_0x33ffac['is']('range'),_0x3aa865=_0x3aa865||Vt(_0x5d39d5);const _0x29f139=_0xbd70ba['map'](_0x2f6d7a=>Gt(_0x2f6d7a,this['_model'])),_0x27a768=_0x33ffac['is']('range')?_0x33ffac:Gt(_0x33ffac,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2eebd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aa865,'accept');return this['forceDefaultExecution'](()=>_0x2eebd2([_0x27a768],_0x5d39d5,_0x25a321)),null;}_0x29f139['push'](_0x27a768);let _0x42f38a=!0x0;for(const _0x200738 of _0x29f139)if(!this['_rangeIsInLocalUserInsertion'](_0x200738)){_0x42f38a=!0x1;break;}if(_0x42f38a&&'always'!==this['_trackFormatChanges']){const _0x3635ba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aa865,'accept');return this['forceDefaultExecution'](()=>_0x3635ba([_0x27a768],_0x5d39d5,_0x25a321)),null;}let _0x9760e4=null,_0x578ffa=_0x27a768['start'],_0x1f7d07=_0x27a768['end'];for(const {suggestion:_0x435435,meta:_0xff0305}of this['_findSuggestions'](_0x27a768,'formatBlock')){if(!_0xff0305['isOwn'])continue;if(_0xff0305['isNextTo']||_0xff0305['containsRangeInObject']||_0xff0305['isInsideObject'])continue;if(_0x435435['data']['formatGroupId']!=_0x5d39d5['formatGroupId'])continue;if(!Lt(_0x435435,_0x25a321))continue;const _0x533a1a=_0x435435['getFirstRange']();if(_0x435435['subType']==_0x3aa865){if(_0x533a1a['containsRange'](_0x27a768,!0x0))return null;_0x578ffa=_0x578ffa['isBefore'](_0x533a1a['start'])?_0x578ffa:_0x533a1a['start'],_0x1f7d07=_0x1f7d07['isAfter'](_0x533a1a['end'])?_0x1f7d07:_0x533a1a['end'],_0x9760e4?_0x533a1a['start']['isBefore'](_0x9760e4['getFirstRange']()['start'])?(_0x9760e4['removeMarkers'](),_0x9760e4=_0x435435):_0x435435['removeMarkers']():_0x9760e4=_0x435435;}else{const _0x2afc26=_0x27a768['getIntersection'](_0x533a1a);this['_cutOutSuggestionMarker'](_0x435435,_0x2afc26);}}const _0x6655d3=this['editor']['plugins']['get']('Users')['me'],_0x571175=_0x48fd30(),_0x3bed6b=_0x6655d3['id'];if(_0x9760e4)return this['_setSuggestionRange'](_0x9760e4,this['_model']['createRange'](_0x578ffa,_0x1f7d07)),_0x9760e4;{const _0x19b3e2=this['_setSuggestionData']({'id':_0x571175,'type':'formatBlock:'+_0x3aa865,'data':_0x5d39d5,'createdAt':new Date(),'authorId':_0x3bed6b,'attributes':_0x25a321});return this['_addSuggestionMarker']('formatBlock:'+_0x3aa865,_0x571175,_0x3bed6b,this['_model']['createRange'](_0x578ffa,_0x1f7d07)),_0x19b3e2;}}['markMultiRangeBlockFormat'](_0x206855,_0x1af0c7,_0x1134e3=[],_0x1e17a9=null,_0x49c31e={}){_0x1af0c7['formatGroupId']||(_0x1af0c7['formatGroupId']=_0x1af0c7['commandName']);const _0x1f18a9=_0x206855[0x0];_0x1af0c7['multipleBlocks']=_0x1f18a9['is']('range'),_0x1e17a9=_0x1e17a9||Vt(_0x1af0c7);const _0xdc0ea1=_0x1134e3['map'](_0xdcbf35=>Gt(_0xdcbf35,this['_model'])),_0x1b2507=_0x1f18a9['is']('range')?_0x206855:_0x206855['map'](_0x4408f4=>Gt(_0x4408f4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x11c0c7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'accept');return this['forceDefaultExecution'](()=>_0x11c0c7(_0x1b2507,_0x1af0c7,_0x49c31e)),null;}_0xdc0ea1['push'](..._0x1b2507);let _0x129440=!0x0;for(const _0x314756 of _0xdc0ea1)if(!this['_rangeIsInLocalUserInsertion'](_0x314756)){_0x129440=!0x1;break;}if(_0x129440&&'always'!==this['_trackFormatChanges']){const _0x34eb37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'accept');return this['forceDefaultExecution'](()=>_0x34eb37(_0x1b2507,_0x1af0c7,_0x49c31e)),null;}const _0x9275cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x18f8e4 of this['getSuggestions']()){if(_0x18f8e4['author']['id']!=_0x9275cc['id'])continue;if('formatBlock'!=_0x18f8e4['type']||_0x18f8e4['data']['formatGroupId']!=_0x1af0c7['formatGroupId'])continue;if(!Lt(_0x18f8e4,_0x49c31e))continue;const _0xdb9700=_0x18f8e4['subType']==_0x1e17a9;for(let _0x21d05e=0x0;_0x21d05e<_0x1b2507['length'];_0x21d05e++){const _0x62a8f9=_0x1b2507[_0x21d05e];for(const _0x5af58d of _0x18f8e4['getMarkers']()){const _0x13b569=_0x5af58d['getRange']();if(_0x62a8f9['isEqual'](_0x13b569)){_0xdb9700?(_0x1b2507['splice'](_0x21d05e,0x1),_0x21d05e--):_0x18f8e4['removeMarker'](_0x5af58d['name']);break;}}}}if(0x0==_0x1b2507['length'])return null;const _0x57c05e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'join');for(const _0x461e7c of this['getSuggestions']())if(_0x461e7c['author']['id']==_0x9275cc['id']&&'formatBlock'==_0x461e7c['type']&&_0x461e7c['data']['formatGroupId']==_0x1af0c7['formatGroupId']&&_0x461e7c['subType']==_0x1e17a9&&Lt(_0x461e7c,_0x49c31e)&&(_0x57c05e(_0x461e7c['getRanges'](),_0x1b2507)||_0x57c05e(_0x1b2507,_0x461e7c['getRanges']()))){for(const _0xdef483 of _0x1b2507)_0x461e7c['addRange'](_0xdef483);return _0x461e7c;}const _0x152e9a=_0x48fd30(),_0x1542eb=_0x9275cc['id'],_0x2f1d08='formatBlock:'+_0x1e17a9,_0x427f15=this['_setSuggestionData']({'id':_0x152e9a,'type':_0x2f1d08,'data':_0x1af0c7,'createdAt':new Date(),'authorId':_0x1542eb,'attributes':_0x49c31e});for(const _0x262b9f of _0x1b2507)this['_addSuggestionMarker'](_0x2f1d08,_0x152e9a,_0x1542eb,_0x262b9f,u['getMultiRangeId']());return _0x427f15;}['markDeletion'](_0x276558,_0x27242e=null,_0x3eb551={}){if(_0x276558['isCollapsed'])return null;const _0x287c9e=this['editor']['plugins']['get']('Users')['me'],_0x4aea1e=new _0x16e800(_0x276558['start'],_0x276558['end']);for(const {suggestion:_0x4351bb,meta:_0x5959d0}of this['_findSuggestions'](_0x4aea1e,'insertion'))if(_0x5959d0['isOwn']&&!_0x5959d0['isNextTo']){if(_0x4351bb['isMultiRange']){const _0x28006c=_0x4351bb['getRanges']()['filter'](_0x500d3d=>'$graveyard'!=_0x500d3d['root']['rootName']);_0x28006c['every'](_0x2bd680=>_0x4aea1e['containsRange'](_0x2bd680,!0x0))&&_0x4351bb['discard']();if(_0x28006c['some'](_0x270780=>_0x270780['containsRange'](_0x4aea1e,!0x0))){const _0x291bbe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27242e,'accept');return this['forceDefaultExecution'](()=>_0x291bbe([_0x4aea1e],null,_0x3eb551)),null;}}else{const _0x5bf07c=_0x4aea1e['getIntersection'](_0x4351bb['getFirstRange']());null!==_0x5bf07c&&_0x4351bb['_onDiscard']([_0x5bf07c],null,_0x3eb551);}}if(_0x4aea1e['detach'](),_0x4aea1e['isCollapsed']||'$graveyard'==_0x4aea1e['root']['rootName'])return null;let _0x483092=null,_0x16c6a8=_0x4aea1e['start'],_0x58983c=_0x4aea1e['end'];const _0x499bfc=this['_findSuggestions'](_0x4aea1e,'deletion');for(const {suggestion:_0x9d9f1e,meta:_0x1d9794}of _0x499bfc){const _0x5e7784=this['_model']['createRange'](_0x16c6a8,_0x58983c);if(_0x1d9794['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d9794['containsRangeInObject']&&!_0x1d9794['isInsideObject'])){if(_0x9d9f1e['isMultiRange']){if(!Lt(_0x9d9f1e,_0x3eb551))continue;let _0x23cf57=!0x0;for(const _0xfc6300 of _0x9d9f1e['getRanges']()){if(_0xfc6300['containsRange'](_0x5e7784,!0x0))return _0x9d9f1e;_0x5e7784['containsRange'](_0xfc6300)||(_0x23cf57=!0x1);}_0x23cf57&&_0x9d9f1e['discard']();}else{const _0x30bbbf=_0x9d9f1e['getFirstRange']();if(_0x30bbbf['containsRange'](_0x5e7784,!0x0))return _0x9d9f1e;if(!Lt(_0x9d9f1e,_0x3eb551)){_0x5e7784['containsRange'](_0x30bbbf)?_0x9d9f1e['removeMarkers']():_0x30bbbf['containsPosition'](_0x16c6a8)?_0x16c6a8=_0x30bbbf['end']:_0x30bbbf['containsPosition'](_0x58983c)&&(_0x58983c=_0x30bbbf['start']);continue;}_0x16c6a8=_0x16c6a8['isBefore'](_0x30bbbf['start'])?_0x16c6a8:_0x30bbbf['start'],_0x58983c=_0x58983c['isAfter'](_0x30bbbf['end'])?_0x58983c:_0x30bbbf['end'],_0x3eb551=Object['assign']({},_0x9d9f1e['attributes']),_0x483092?_0x30bbbf['start']['isBefore'](_0x483092['getFirstRange']()['start'])?(_0x483092['removeMarkers'](),_0x483092=_0x9d9f1e):_0x9d9f1e['removeMarkers']():_0x483092=_0x9d9f1e;}}}if(_0x483092)return this['_setSuggestionRange'](_0x483092,this['_model']['createRange'](_0x16c6a8,_0x58983c)),_0x483092;{const _0x1b90ca=_0x48fd30(),_0x2d736a=this['_model']['createRange'](_0x16c6a8,_0x58983c),_0x16d4d9=_0x287c9e['id'],_0x54f337=_0x27242e?'deletion:'+_0x27242e:'deletion',_0x1fbaaa=this['_setSuggestionData']({'id':_0x1b90ca,'type':_0x54f337,'createdAt':new Date(),'authorId':_0x16d4d9,'attributes':_0x3eb551});return this['_addSuggestionMarker'](_0x54f337,_0x1b90ca,_0x16d4d9,_0x2d736a),_0x1fbaaa;}}['markMultiRangeDeletion'](_0x34d79b,_0x2f8f3a='multi',_0x13d9d9={}){const _0x4cfbbe=this['editor']['plugins']['get']('Users')['me'],_0x20afb6=_0x34d79b['map'](_0x2d2bfb=>new _0x16e800(_0x2d2bfb['start'],_0x2d2bfb['end'])),_0xdb988=new Set();for(const {suggestion:_0x11bd48,meta:_0x4a3012}of this['_findSuggestions'](_0x20afb6,'insertion'))_0x4a3012['isOwn']&&!_0x4a3012['isNextTo']&&_0xdb988['add'](_0x11bd48);for(const _0x3529fb of _0xdb988)if(_0x3529fb['isMultiRange']){const _0x451669=_0x3529fb['getRanges']();(!_0x3529fb['attributes']||!_0x3529fb['attributes']['skipNestingCheck'])&&(_0x451669['every'](_0x2d77f9=>_0x20afb6['some'](_0x1b68d6=>_0x1b68d6['containsRange'](_0x2d77f9,!0x0)))&&_0x3529fb['discard']());if(_0x20afb6['every'](_0x245656=>_0x451669['some'](_0x28b51a=>_0x28b51a['containsRange'](_0x245656,!0x0)))){const _0x4446e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'accept');return this['forceDefaultExecution'](()=>_0x4446e9(_0x34d79b,null,_0x13d9d9)),null;}}else{const _0x22ca6c=_0x3529fb['getFirstRange']();_0x20afb6['some'](_0x19913e=>_0x19913e['containsRange'](_0x22ca6c,!0x0))&&_0x3529fb['discard']();if(_0x20afb6['every'](_0x2be7e8=>_0x22ca6c['containsRange'](_0x2be7e8,!0x0))){const _0x2ceeb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'accept');return this['forceDefaultExecution'](()=>_0x2ceeb1(_0x20afb6,null,_0x13d9d9)),null;}}const _0x1efaec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'join');let _0x530922=null;for(const _0x1cb4c4 of this['getSuggestions']())if(_0x1cb4c4['author']['id']==_0x4cfbbe['id']&&_0x1cb4c4['isInContent']&&'deletion'==_0x1cb4c4['type']&&_0x1cb4c4['subType']==_0x2f8f3a&&Lt(_0x1cb4c4,_0x13d9d9)&&(_0x1efaec(_0x1cb4c4['getRanges'](),_0x20afb6)||_0x1efaec(_0x20afb6,_0x1cb4c4['getRanges']()))){if(_0x530922){if(_0x1cb4c4['commentThread']&&_0x1cb4c4['commentThread']['length'])continue;for(const _0x55a88b of _0x1cb4c4['getRanges']())_0x530922['isIntersectingWithRange'](_0x55a88b)||_0x530922['addRange'](_0x55a88b);_0x1cb4c4['removeMarkers']();}else{_0x530922=_0x1cb4c4;for(const _0xe56ea8 of _0x20afb6)_0x1cb4c4['isIntersectingWithRange'](_0xe56ea8)||_0x1cb4c4['addRange'](_0xe56ea8);}}if(_0x530922)return _0x530922;_0xdb988['clear']();for(const {suggestion:_0x216be8,meta:_0x3e24ed}of this['_findSuggestions'](_0x20afb6,'deletion'))_0x3e24ed['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e24ed['containsRangeInObject']&&!_0x3e24ed['isInsideObject'])&&Lt(_0x216be8,_0x13d9d9)&&_0xdb988['add'](_0x216be8);for(const _0x37c3d7 of _0xdb988){const _0x145b63=_0x37c3d7['getRanges']();if(!_0x13d9d9||!_0x13d9d9['skipNestingCheck']){if(_0x20afb6['every'](_0x5f2c0f=>_0x145b63['some'](_0x218cc6=>_0x218cc6['containsRange'](_0x5f2c0f,!0x0))))return _0x37c3d7;}(!_0x37c3d7['attributes']||!_0x37c3d7['attributes']['skipNestingCheck'])&&(_0x145b63['every'](_0x1c2d14=>_0x20afb6['some'](_0x445b3f=>_0x445b3f['containsRange'](_0x1c2d14,!0x0)))&&_0x37c3d7['discard']());}const _0x4dfa30=_0x48fd30(),_0x49418c=_0x4cfbbe['id'],_0x26424e='deletion:'+_0x2f8f3a,_0x377708=this['_setSuggestionData']({'id':_0x4dfa30,'type':_0x26424e,'createdAt':new Date(),'authorId':_0x49418c,'attributes':_0x13d9d9});for(const _0x447a76 of _0x20afb6)_0x447a76['detach'](),_0x447a76['isCollapsed']||'$graveyard'==_0x447a76['root']['rootName']||this['_addSuggestionMarker'](_0x26424e,_0x4dfa30,_0x49418c,_0x447a76,u['getMultiRangeId']());return _0x377708;}['markAttributeChange'](_0x7d391c,_0x490b05,_0x17a90c,_0x1172b9,_0x3bbbe7){if(_0x7d391c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5aefaf=this['editor']['plugins']['get']('Users')['me']['id'],_0x18388c=Array['from'](this['_suggestions']['values']())['filter'](_0x540839=>'attribute'==_0x540839['type']&&_0x540839['data']['key']==_0x490b05&&_0x540839['isIntersectingWithRange'](_0x7d391c));if('default'===this['_trackFormatChanges']){const _0x2973e8=this['_findSuggestions'](_0x7d391c,'insertion')['filter'](({meta:_0x3b02da})=>_0x3b02da['isOwn']&&!_0x3b02da['isInsideObject']&&!_0x3b02da['isNextTo'])['map'](({suggestion:_0x2d3edd})=>_0x2d3edd);_0x18388c['unshift'](..._0x2973e8);}const _0x4c662c=new Map([[_0x7d391c,_0x17a90c]]);for(const _0x45f711 of _0x18388c){const _0x121aa0='attribute'==_0x45f711['type']?_0x45f711['data']['oldValue']:void 0x0,_0x291b33=_0x45f711['getFirstRange'](),_0x2a8449=Array['from'](_0x4c662c['keys']())['find'](_0x25b5d1=>_0x25b5d1['isIntersecting'](_0x291b33));if(!_0x2a8449)continue;const _0x3c53a5=_0x2a8449['getDifference'](_0x291b33);this['_isBlockAttribute'](_0x490b05)&&'insertion'==_0x45f711['type']&&0x0!=_0x3c53a5['length']||(_0x4c662c['delete'](_0x2a8449),_0x3c53a5['forEach'](_0x1d9028=>{_0x4c662c['set'](_0x1d9028,_0x17a90c);}),'insertion'!=_0x45f711['type']&&_0x121aa0!=_0x1172b9&&_0x4c662c['set'](_0x2a8449['getIntersection'](_0x291b33),_0x121aa0));}const _0x2885bf=[];for(const [_0x22b733,_0x334351]of _0x4c662c){const _0x5ddfb1=_0x48fd30(),_0xe03389={'key':_0x490b05,'oldValue':_0x334351,'newValue':_0x1172b9};_0x490b05['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':_0x490b05});const _0x2d1caf=('attribute:'+(_0x490b05+'|'+Vt({'newValue':_0x1172b9})))['substring'](0x0,0x3c),_0x2b016b=this['_setSuggestionData']({'id':_0x5ddfb1,'type':_0x2d1caf,'data':_0xe03389,'createdAt':new Date(),'authorId':_0x5aefaf,'attributes':_0x3bbbe7});_0x2885bf['push'](_0x2b016b),this['_addSuggestionMarker'](_0x2d1caf,_0x5ddfb1,_0x5aefaf,_0x22b733);}return _0x2885bf;}['enableDefaultAttributesIntegration'](_0x3ced89){this['enableCommand'](_0x3ced89,(_0x4afece,..._0x20a5e4)=>{this['_recordAttributeChanges'](()=>{_0x4afece(..._0x20a5e4);});});}['registerBlockAttribute'](_0x55fb3d){this['_blockAttributeKeys']['add'](_0x55fb3d);}['registerInlineAttribute'](_0x5cf297){this['_inlineAttributeKeys']['add'](_0x5cf297);}['_getAttributeKey'](_0x25c60f){return'attribute'==_0x25c60f['type']?_0x25c60f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x580949,_0x4eec6c){const _0x501297=_0x580949['getFirstMarker']();this['_model']['change'](_0x34f80f=>{_0x34f80f['updateMarker'](_0x501297,{'range':_0x4eec6c});});}['_addThreadToSuggestion'](_0x24dd9a){const _0xebc96c=_0x24dd9a['id'],_0x577c5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xebc96c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x577c5b,'threadId':_0xebc96c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x16f44a=this['_commentsRepository']['getCommentThread'](_0xebc96c);_0x16f44a['unbind']('isRemovable'),_0x16f44a['isRemovable']=!0x1,_0x24dd9a['commentThread']=_0x16f44a;}['_checkSuggestionCorrectness'](_0x8d9ce9,_0x4bd890,_0x3c2861,_0x340add){if(_0x8d9ce9['type']!=_0x4bd890||_0x8d9ce9['subType']!=_0x3c2861||_0x8d9ce9['creator']['id']!=_0x340add)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x190e91('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5260a9,_0x4aa49c){const _0x165d05=_0x5260a9['getFirstRange']();if(_0x4aa49c['isEqual'](_0x165d05))_0x5260a9['removeMarkers']();else{if(_0x165d05['containsRange'](_0x4aa49c)){const _0x7ef3a8=this['_model']['createPositionAt'](_0x4aa49c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x165d05['start'],_0x7ef3a8));const _0x126e47=_0x48fd30(),_0x57a6fa=_0x5260a9['creator']['id'],_0x3001a0=_0x5260a9['type']+':'+_0x5260a9['subType'];this['_setSuggestionData']({'id':_0x126e47,'type':_0x3001a0,'createdAt':new Date(),'authorId':_0x57a6fa,'data':_0x5260a9['data'],'attributes':_0x5260a9['attributes']});const _0x26f987=this['_model']['createPositionAt'](_0x4aa49c['end']['parent'],'after'),_0x266755=this['_model']['createRange'](_0x26f987,_0x165d05['end']);this['_addSuggestionMarker'](_0x3001a0,_0x126e47,_0x57a6fa,_0x266755);}else{if(_0x165d05['containsPosition'](_0x4aa49c['start'])){const _0x969743=this['_model']['createPositionAt'](_0x4aa49c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x165d05['start'],_0x969743));}else{const _0x5526db=this['_model']['createPositionAt'](_0x4aa49c['end']['parent'],'after');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x5526db,_0x165d05['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40efaa){for(const {suggestion:_0x30f232,meta:_0x18702f}of this['_findSuggestions'](_0x40efaa,'insertion')){if(!_0x18702f['isOwn'])continue;const _0x37a551=_0x30f232['getRanges']();for(const _0x354e1f of _0x37a551)if(!_0x40efaa['getDifference'](_0x354e1f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7d05a6){const _0x29d212=this['editor']['plugins']['get']('Users')['getUser'](_0x7d05a6);if(!_0x29d212)throw new _0x190e91('track-changes-user-not-found',this);return _0x29d212;}['_getExternalAuthor'](_0x2a3944){const _0x3dc7c9=this['editor']['plugins']['get']('Users'),_0x5eca71=_0xcee980('external:'+_0x2a3944),_0x473250=_0x3dc7c9['getUser'](_0x5eca71);return _0x473250||_0x3dc7c9['addUser']({'id':_0x5eca71,'name':_0x2a3944});}['_createSuggestion'](_0x4c7e79,_0x118619,_0x533e50,_0x865997,_0x5bf4b8){const _0x205519=this['_getAuthorFromId'](_0x865997),_0x56de03=this['_suggestionFactory']['buildSuggestion'](_0x4c7e79,_0x118619,_0x533e50,_0x205519,_0x5bf4b8,_0xce9aef=>{this['_updateSuggestionData'](_0x533e50,{'attributes':_0xce9aef});const _0x136ad9=this['getSuggestion'](_0x533e50);this['_joinWithAdjacentSuggestions'](new Set([_0x136ad9])),this['_refreshSuggestionsChain'](new Set([_0x136ad9]));});return this['listenTo'](_0x56de03,'accept',()=>{this['_updateSuggestionData'](_0x533e50,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56de03,'discard',()=>{this['_updateSuggestionData'](_0x533e50,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x533e50,_0x56de03),this['_suggestionState']['set'](_0x56de03,'notReady'),_0x56de03;}['_splitMarkerName'](_0x2cc605){const _0x3ca012=_0x2cc605['split'](':');return{'group':_0x3ca012[0x0],'type':_0x3ca012[0x1],'subType':_0x3ca012['length']>=0x5?_0x3ca012[0x2]:null,'id':_0x3ca012['length']<0x5?_0x3ca012[0x2]:_0x3ca012[0x3],'authorId':_0x3ca012['length']<0x5?_0x3ca012[0x3]:_0x3ca012[0x4],'markerCount':0x6==_0x3ca012['length']?_0x3ca012[0x5]:null};}['_breakSuggestionMarker'](_0x5bcd46,_0x429e9a,_0x46aecb){const _0x247a26=_0x5bcd46['getFirstRange'](),_0x3e429c=_0x247a26['start'],_0x258efe=_0x247a26['end'];this['_setSuggestionRange'](_0x5bcd46,this['_model']['createRange'](_0x3e429c,_0x429e9a));const _0x512016=_0x48fd30(),_0x56a4bc=_0x5bcd46['creator']['id'],_0x1d99b9=_0x5bcd46['type']+(_0x5bcd46['subType']?':'+_0x5bcd46['subType']:'');this['_setSuggestionData']({'id':_0x512016,'type':_0x1d99b9,'createdAt':new Date(),'authorId':_0x56a4bc,'originalSuggestionId':_0x5bcd46['id'],'attributes':_0x5bcd46['attributes'],'data':_0x5bcd46['data']});const _0x37594a=this['_getAttributeKey'](_0x5bcd46);('formatBlock'==_0x5bcd46['type']||_0x37594a&&this['_isBlockAttribute'](_0x37594a))&&(_0x46aecb=this['_model']['createPositionBefore'](_0x46aecb['parent'])),this['_addSuggestionMarker'](_0x1d99b9,_0x512016,_0x56a4bc,this['_model']['createRange'](_0x46aecb,_0x258efe));}['_findSuggestions'](_0x3b82cb,_0x29d2ea=null){const _0x163ceb=[],_0x15fed3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b82cb)||(_0x3b82cb=[_0x3b82cb]);for(const _0x24a4b8 of this['getSuggestions']()){if(!_0x24a4b8['isInContent'])continue;if(_0x29d2ea&&_0x24a4b8['type']!=_0x29d2ea)continue;let _0x533078=!0x1;for(const _0x1ce4b9 of _0x24a4b8['getRanges']()){for(const _0x3c2f5c of _0x3b82cb){const _0x301c1f=_0x3c2f5c['start']['isEqual'](_0x1ce4b9['end'])||_0x3c2f5c['end']['isEqual'](_0x1ce4b9['start']);if(_0x301c1f||_0x3c2f5c['getIntersection'](_0x1ce4b9)){const _0x17ebf2=_0x3c2f5c['containsRange'](_0x1ce4b9)&&Rt(this['_model']['schema'],_0x1ce4b9['start'],_0x3c2f5c),_0x2664d4=_0x1ce4b9['containsRange'](_0x3c2f5c)&&Rt(this['_model']['schema'],_0x3c2f5c['start'],_0x1ce4b9);_0x163ceb['push']({'suggestion':_0x24a4b8,'meta':{'isOwn':_0x15fed3==_0x24a4b8['author'],'isNextTo':_0x301c1f,'isInsideObject':_0x17ebf2,'containsRangeInObject':_0x2664d4}}),_0x533078=!0x0;break;}}if(_0x533078)break;}}return _0x163ceb;}['_addSuggestionMarker'](_0xf0356c,_0x2efdaa,_0x3e42c5,_0x344baf,_0x2897a5){this['_model']['change'](_0x3ee7e4=>{let _0x5685a1='suggestion:'+_0xf0356c+':'+_0x2efdaa+':'+_0x3e42c5;_0x2897a5&&(_0x5685a1=_0x5685a1+':'+_0x2897a5),_0x3ee7e4['addMarker'](_0x5685a1,{'range':_0x344baf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3c0471){const _0xa53a77=_0x3c0471['previous'],_0xf35400=_0x3c0471['next'];_0x3c0471['previous']=null,_0x3c0471['next']=null,null!=_0xa53a77&&_0xa53a77['next']==_0x3c0471&&(_0xa53a77['next']=_0xf35400),null!=_0xf35400&&_0xf35400['previous']==_0x3c0471&&(_0xf35400['previous']=_0xa53a77),'ready'==this['_suggestionState']['get'](_0x3c0471)&&(this['_suggestionState']['set'](_0x3c0471,'removed'),this['fire']('suggestionUnloaded',_0x3c0471,_0xa53a77,_0xf35400));}['_setSuggestionData'](_0x40a09a){const _0x33cf5f=_0x40a09a['id'],_0x3135e6=this['addSuggestionData'](_0x40a09a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4298ec=this['editor']['plugins']['get']('PendingActions'),_0x2d811e=_0x3135e6['hasComments'],_0x26428f=_0x3135e6['subType']?_0x3135e6['type']+':'+_0x3135e6['subType']:_0x3135e6['type'],_0x2d5570=this['editor']['locale'],_0x356318=_0x4298ec['add'](o(_0x2d5570,'PENDING_ACTION_SUGGESTION')),_0x44761c={'id':_0x33cf5f,'type':_0x26428f,'hasComments':_0x2d811e,'data':_0x40a09a['data']||null,'originalSuggestionId':_0x40a09a['originalSuggestionId']||null,'attributes':_0x3135e6['attributes']};this['_adapter']['addSuggestion'](_0x44761c)['then'](_0x50b301=>{_0x3135e6['_saved']=!0x0,_0x4298ec['remove'](_0x356318),_0x50b301&&_0x50b301['createdAt']&&(this['_suggestions']['get'](_0x33cf5f)['createdAt']=_0x50b301['createdAt']);})['catch'](_0x198360=>{throw _0x12cf38('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3135e6['discard']();}),_0x3135e6['stopListening'](),this['_suggestions']['delete'](_0x3135e6['id']),this['_suggestionState']['delete'](_0x3135e6),_0x198360;});}return _0x3135e6;}['_isBlockAttribute'](_0x2c2d39){return this['_blockAttributeKeys']['has'](_0x2c2d39);}['_updateSuggestionData'](_0xb5ff74,_0x497314){const _0x15bfce=this['editor']['plugins']['get']('PendingActions'),_0x16b111=this['getSuggestion'](_0xb5ff74);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x16b111['_saved']){const _0x246925=_0x15bfce['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb5ff74,_0x497314)['then'](()=>{_0x15bfce['remove'](_0x246925);});}else _0x16b111['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb5ff74,_0x497314);});}}['_getSuggestionData'](_0xdfa85b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x190e91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xdfa85b);}['_handleNewSuggestionMarker'](_0x4eae75){const {id:_0x12f094,type:_0x2eac05,subType:_0x3fa7b5,authorId:_0x3adbe2}=this['_splitMarkerName'](_0x4eae75),_0x2d6d08=this['_suggestions']['get'](_0x12f094)||this['_createSuggestion'](_0x2eac05,_0x3fa7b5,_0x12f094,_0x3adbe2,{});switch(this['_checkSuggestionCorrectness'](_0x2d6d08,_0x2eac05,_0x3fa7b5,_0x3adbe2),this['_suggestionState']['get'](_0x2d6d08)){case'notReady':this['_getSuggestionData'](_0x12f094)['then'](_0x59e31a=>{let _0x19f6c7=Promise['resolve']();_0x59e31a['hasComments']&&(_0x19f6c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x12f094})),_0x19f6c7['then'](()=>{this['addSuggestionData'](_0x59e31a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d6d08,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x12f094,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d6d08,'ready'),this['fire']('suggestionLoaded',_0x2d6d08);break;case'ready':this['fire']('suggestionChanged',_0x2d6d08);}return _0x2d6d08['addMarkerName'](_0x4eae75),_0x2d6d08;}['_refreshSuggestionsChain'](_0x3591b7){const _0x54b8cb=Array['from'](_0x3591b7),_0x40575c=_0x54b8cb['filter'](_0x3e1647=>'attribute'==_0x3e1647['type']);this['_refreshAttributeSuggestionsChain'](_0x40575c);const _0x35b1aa=_0x54b8cb['filter'](_0x225618=>!_0x225618['isMultiRange']&&'attribute'!=_0x225618['type']),_0x239cd4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3625f8=>!_0x3625f8['isMultiRange']&&'attribute'!=_0x3625f8['type']),_0xdf19c7=_0x239cd4['filter'](_0x287b94=>!_0x3591b7['has'](_0x287b94)),_0x24bea3=new Map(_0x239cd4['map'](_0x582ddd=>[_0x582ddd,this['_suggestionFactory']['getSuggestionCallback'](_0x582ddd['type'],_0x582ddd['subType'],'chain')])),_0x5bce82=new Map(_0x239cd4['map'](_0x4ab62f=>[_0x4ab62f,_0x4ab62f['getFirstRange']()])),_0x4a6541=new Set(),_0x22afe9=new Set();for(let _0x342f5d=0x0;_0x342f5d<_0x35b1aa['length'];_0x342f5d++)_0x34c2d7(_0x35b1aa[_0x342f5d],_0x35b1aa,_0x342f5d+0x1);for(let _0x36aa0e=0x0;_0x36aa0e<_0x35b1aa['length'];_0x36aa0e++)_0x34c2d7(_0x35b1aa[_0x36aa0e],_0xdf19c7,0x0);const _0x5c9f7b=new Set();for(let _0x10e4eb=0x0;_0x10e4eb<_0x35b1aa['length'];_0x10e4eb++){const _0x51b4d8=_0x35b1aa[_0x10e4eb];!_0x22afe9['has'](_0x51b4d8)&&_0x51b4d8['previous']&&(_0x5c9f7b['add'](_0x51b4d8['previous']),_0x51b4d8['previous']['next']===_0x51b4d8&&(_0x51b4d8['previous']['next']=null),_0x51b4d8['previous']=null),!_0x4a6541['has'](_0x51b4d8)&&_0x51b4d8['next']&&(_0x5c9f7b['add'](_0x51b4d8['next']),_0x51b4d8['next']['previous']===_0x51b4d8&&(_0x51b4d8['next']['previous']=null),_0x51b4d8['next']=null);}function _0x34c2d7(_0x3d3eae,_0x45acee,_0x3adeb0){for(let _0x202e20=_0x3adeb0;_0x202e20<_0x45acee['length'];_0x202e20++){const _0x3cbe7f=_0x509f64(_0x3d3eae,_0x45acee[_0x202e20]);_0x3cbe7f&&(_0x3cbe7f[0x0]['next']=_0x3cbe7f[0x1],_0x3cbe7f[0x1]['previous']=_0x3cbe7f[0x0],_0x4a6541['add'](_0x3cbe7f[0x0]),_0x22afe9['add'](_0x3cbe7f[0x1]));}}function _0x509f64(_0x4a3e62,_0x2dfce4){if(_0x4a3e62['author']['id']!==_0x2dfce4['author']['id'])return null;const _0x13f8da=_0x24bea3['get'](_0x4a3e62)(_0x4a3e62,_0x2dfce4,_0x5bce82['get'](_0x4a3e62),_0x5bce82['get'](_0x2dfce4));if(!_0x13f8da)return null;return _0x24bea3['get'](_0x2dfce4)(_0x4a3e62,_0x2dfce4,_0x5bce82['get'](_0x4a3e62),_0x5bce82['get'](_0x2dfce4))?_0x13f8da[0x1]['commentThread']&&_0x13f8da[0x1]['commentThread']['length']?null:_0x13f8da:null;}_0x5c9f7b['size']&&this['_refreshSuggestionsChain'](_0x5c9f7b);}['_refreshAttributeSuggestionsChain'](_0x241807){if(0x0==_0x241807['length'])return;const _0x3bed37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c2a4=>'attribute'==_0x24c2a4['type']&&_0x24c2a4['_isDataLoaded']),_0x5392cf=[],_0x3da1fd=new Map();for(const _0x5502b7 of _0x3bed37){const _0x17e717=_0xcee980(_0x5502b7['attributes']);_0x3da1fd['has'](_0x17e717)||(_0x3da1fd['set'](_0x17e717,_0x5392cf['length']),_0x5392cf['push']([]));const _0x143a98=_0x3da1fd['get'](_0x17e717);_0x5392cf[_0x143a98]['push'](_0x5502b7);}!(function(){_0x5392cf['sort']((_0x3790fc,_0x55ad63)=>{const _0x37304c=_0x3790fc[0x0]['createdAt'],_0x1822c3=_0x55ad63[0x0]['createdAt'];return _0x37304c==_0x1822c3?_0x3790fc[0x0]['attributes']['groupId']<_0x55ad63[0x0]['attributes']['groupId']?-0x1:0x1:_0x37304c<_0x1822c3?-0x1:0x1;});for(const _0x16c3b3 of _0x5392cf)_0x16c3b3['sort']((_0xc677b4,_0x13c306)=>_0xc677b4['id']<_0x13c306['id']?-0x1:0x1);}());for(let _0x25fb01=0x0;_0x25fb01<_0x5392cf['length'];_0x25fb01++){if(0x0==_0x5392cf[_0x25fb01]['length'])continue;const _0x111e16=[];for(let _0x3b4eff=_0x25fb01+0x1;_0x3b4eff<_0x5392cf['length'];_0x3b4eff++)0x0!=_0x5392cf[_0x3b4eff]['length']&&_0x118215(_0x5392cf[_0x25fb01],_0x5392cf[_0x3b4eff])&&_0x111e16['push'](_0x3b4eff);for(const _0x21cea5 of _0x111e16)_0x5392cf[_0x25fb01]=_0x5392cf[_0x25fb01]['concat'](_0x5392cf[_0x21cea5]),_0x5392cf[_0x21cea5]=[];}for(const _0x535c73 of _0x5392cf)for(let _0x419032=0x0;_0x419032<_0x535c73['length'];_0x419032++)_0x535c73[_0x419032]['next']=_0x535c73[_0x419032+0x1]||null;for(const _0x58552a of _0x5392cf)for(let _0x33c31e=0x0;_0x33c31e<_0x58552a['length'];_0x33c31e++)_0x58552a[_0x33c31e]['previous']=_0x58552a[_0x33c31e-0x1]||null;function _0x118215(_0x23ee41,_0x5eabd9){if(_0x23ee41[0x0]['attributes']['groupId']!==_0x5eabd9[0x0]['attributes']['groupId']&&_0x23ee41[0x0]['author']!==_0x5eabd9[0x0]['author'])return!0x1;if(!function(_0x1ca7a6,_0x577c33){if(!_0x1ca7a6['hasComments']&&!_0x577c33['hasComments'])return!0x0;if(_0x1ca7a6['hasComments']&&_0x577c33['hasComments'])return!0x1;if(_0x1ca7a6['hasComments']&&_0x577c33['createdAt']<_0x1ca7a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x577c33['hasComments']&&_0x1ca7a6['createdAt']<_0x577c33['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23ee41[0x0],_0x5eabd9[0x0]))return!0x1;const _0x2531e9=Bt(_0x23ee41[0x0]['attributes'],'groupId'),_0x5492fb=Bt(_0x5eabd9[0x0]['attributes'],'groupId');if(!_0x763405(_0x2531e9,_0x5492fb))return!0x1;return!!_0x23ee41['every'](_0x1b734a=>_0x5eabd9['some'](_0x450ae9=>_0x1b734a['getFirstRange']()['isEqual'](_0x450ae9['getFirstRange']())))&&_0x5eabd9['every'](_0x48ffd6=>_0x23ee41['some'](_0x35c7a3=>_0x48ffd6['getFirstRange']()['isEqual'](_0x35c7a3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42a27b){const _0x159950=Array['from'](_0x42a27b),_0x57b804=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14ed71=_0x57b804['filter'](_0x48f08f=>!_0x42a27b['has'](_0x48f08f)),_0x4f61c8=new Map(_0x159950['map'](_0x419965=>[_0x419965,this['_suggestionFactory']['getSuggestionCallback'](_0x419965['type'],_0x419965['subType'],'join')])),_0x47912f=new Map(_0x57b804['map'](_0x2dfa45=>[_0x2dfa45,_0x2dfa45['getRanges']()]));for(let _0x4fdc9d=0x0;_0x4fdc9d<_0x159950['length'];_0x4fdc9d++){if(_0x5c0e8d(this,_0x159950[_0x4fdc9d],_0x159950,_0x4fdc9d+0x1))return!0x0;}for(let _0x59221e=0x0;_0x59221e<_0x159950['length'];_0x59221e++){if(_0x5c0e8d(this,_0x159950[_0x59221e],_0x14ed71,0x0))return!0x0;}return!0x1;function _0x5c0e8d(_0x10038b,_0xde492e,_0x3ba011,_0x51aecc){for(let _0x24ad8e=_0x51aecc;_0x24ad8e<_0x3ba011['length'];_0x24ad8e++){const _0x53a337=_0x3ba011[_0x24ad8e];if(_0x53a337['type']!==_0xde492e['type']||_0x53a337['author']['id']!==_0xde492e['author']['id']||_0x53a337['subType']!==_0xde492e['subType'])continue;if(!Pt(_0xde492e,_0x53a337,['groupId']))continue;if('attribute'==_0xde492e['type']&&_0xde492e['data']['oldValue']!=_0x53a337['data']['oldValue'])continue;if('attribute'==_0xde492e['type']&&_0x10038b['_isBlockAttribute'](_0xde492e['data']['key']))continue;if('formatBlock'==_0xde492e['type']){const _0x4676f0=_0x10038b['editor']['model'],_0x20c0c7=_0xde492e['getContainedElement']();if(_0x20c0c7&&(_0x4676f0['schema']['isObject'](_0x20c0c7)||_0x4676f0['schema']['isLimit'](_0x20c0c7)))continue;}const _0x306ef7=_0x4f61c8['get'](_0xde492e),_0x2ff66e=_0x47912f['get'](_0xde492e),_0x479ab4=_0x47912f['get'](_0x53a337),_0x36d717=_0xde492e['commentThread']&&_0xde492e['commentThread']['length'],_0xd00d6c=_0x53a337['commentThread']&&_0x53a337['commentThread']['length'];if(!_0x36d717&&_0x306ef7(_0x479ab4,_0x2ff66e))return _0x10038b['_joinSuggestions'](_0x53a337,_0xde492e),_0x47912f['delete'](_0xde492e),!0x0;if(!_0xd00d6c&&_0x306ef7(_0x2ff66e,_0x479ab4))return _0x10038b['_joinSuggestions'](_0xde492e,_0x53a337),_0x47912f['delete'](_0x53a337),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27be16,_0x18acc1){if(_0x27be16['isMultiRange']){for(const _0x23b3be of _0x18acc1['getRanges']())_0x27be16['addRange'](_0x23b3be);}else{const _0x609abd=_0x18acc1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27be16,this['_model']['createRange'](_0x27be16['getFirstRange']()['start'],_0x609abd));}_0x18acc1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1d9578,_0x587c06){const _0x281284=_0x1d9578['startsWith']('format')||_0x1d9578['startsWith']('attribute')?'FORMATTING':_0x1d9578['toUpperCase']();return o(this['editor']['locale'],_0x587c06+'_'+_0x281284+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x487bcd=this['editor'];if(!_0x487bcd['ui'])return;const {ariaLiveAnnouncer:_0x2c4e18}=_0x487bcd['ui'];_0x2d09de(this['_model'],({left:_0xaf134c,entered:_0x589fc8})=>{for(const _0x4c0157 of _0xaf134c){const {group:_0x10aa39,type:_0x3c2b6d}=this['_splitMarkerName'](_0x4c0157['name']);if('suggestion'===_0x10aa39){_0x2c4e18['announce'](this['_getMarkerAnnouncementText'](_0x3c2b6d,'LEAVE'));break;}}for(const _0x44c5f0 of _0x589fc8){const {group:_0x2a1f19,type:_0x3836c9}=this['_splitMarkerName'](_0x44c5f0['name']);if('suggestion'===_0x2a1f19){_0x2c4e18['announce'](this['_getMarkerAnnouncementText'](_0x3836c9,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5199cb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e27d1=this['editor'],_0x485bc6=_0x1e27d1['model']['document']['differ']['getChanges']();if(0x0==_0x485bc6['length'])return!0x1;const _0x124f9f=[],_0x116d09=_0x485bc6['filter'](_0x3d1f9c=>'attribute'==_0x3d1f9c['type']),_0xda9bb9=_0x485bc6['filter'](_0x580e93=>'insert'==_0x580e93['type']&&'$text'!=_0x580e93['name']),_0x6c7e73=_0x485bc6['filter'](_0x512491=>'remove'==_0x512491['type']&&'$text'!=_0x512491['name']);for(const _0x3c681d of _0x116d09)_0x124f9f['push']({'key':_0x3c681d['attributeKey'],'newValue':_0x3c681d['attributeNewValue'],'oldValue':_0x3c681d['attributeOldValue'],'range':Ot(_0x3c681d['range'],_0x1e27d1['model'])});for(const _0x173619 of _0xda9bb9){const _0x17c73e=_0x6c7e73['find'](_0x1d2db0=>_0x1d2db0['position']['isEqual'](_0x173619['position']));_0x17c73e&&_0x124f9f['push']({'key':m,'newValue':_0x173619['name'],'oldValue':_0x17c73e['name'],'range':_0x1e27d1['model']['createRangeOn'](_0x173619['position']['nodeAfter'])});}return 0x0!=_0x124f9f['length']&&this['_reduceExistingSuggestions'](_0x5199cb,_0x124f9f);}['_processAttributeSuggestions'](_0x38c648){let _0x3df306=!0x1;const _0x1c350e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c21d4=>_0x4c21d4['data']['newRange']&&_0x4c21d4['name']['startsWith']('suggestion:attribute:'));for(const _0x45bf94 of _0x1c350e){const {subType:_0xe2ab33,id:_0xdbcd87}=this['_splitMarkerName'](_0x45bf94['name']),_0x12513c=_0xe2ab33['split']('|')[0x0];for(const _0x5707cf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5707cf['id']!=_0xdbcd87&&'attribute'==_0x5707cf['type']&&_0x5707cf['data']&&_0x5707cf['data']['key']==_0x12513c&&_0x5707cf['getFirstRange']()['isIntersecting'](_0x45bf94['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5707cf,_0x45bf94['data']['newRange'],_0x38c648),_0x3df306=!0x0);}return _0x3df306;}['_recordAttributeChanges'](_0x443a9c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x443a9c();}['_isRegisteredAttribute'](_0x4d1236){const _0x5c9be9=this['_isBlockAttribute'](_0x4d1236),_0x3cba3e=this['_inlineAttributeKeys']['has'](_0x4d1236);return _0x5c9be9||_0x3cba3e;}['_reduceExistingSuggestions'](_0xa7721b,_0x4bbe9c){if(0x0==_0x4bbe9c['length'])return!0x1;let _0x12431a=!0x1;for(const _0x329feb of _0x4bbe9c){const _0x37f592=this['_findSuggestions'](_0x329feb['range'],'attribute')['filter'](_0x30e0a0=>!_0x30e0a0['meta']['isNextTo'])['map'](_0x554472=>_0x554472['suggestion']),_0xdab1b0=_0xcee980({'newValue':_0x329feb['newValue']});_0x37f592['filter'](_0x119786=>{const [_0x952aea,_0x443229]=_0x119786['subType']['split']('|');return _0x952aea==_0x329feb['key']&&_0x443229!=_0xdab1b0;})['forEach'](_0x2234b1=>{this['_reduceSuggestionAttributeRange'](_0x2234b1,_0x329feb['range'],_0xa7721b),_0x12431a=!0x0;});}return _0x12431a;}['_reduceSuggestionAttributeRange'](_0x4bad3f,_0x240aa8,_0x2f2602){const _0xa2ebc7=_0x4bad3f['getFirstRange']()['getDifference'](_0x240aa8);0x0!==_0xa2ebc7['length']?0x1!==_0xa2ebc7['length']?this['_breakSuggestionMarker'](_0x4bad3f,_0x240aa8['start'],_0x240aa8['end']):this['_setSuggestionRange'](_0x4bad3f,_0xa2ebc7[0x0]):_0x2f2602['removeMarker'](_0x4bad3f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9fbbf2){this['_editor']=_0x9fbbf2,this['_model']=_0x9fbbf2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x53bcc2,_0x4b4dd0,_0x26d604,_0x148015,_0x27fa6e,_0x4a9858){return new u(this['_model'],{'type':_0x53bcc2,'subType':_0x4b4dd0,'id':_0x26d604,'author':_0x148015,'creator':_0x148015,'attributes':_0x27fa6e,'onAttributesChange':_0x4a9858,'onAccept':(..._0x56f649)=>this['getSuggestionCallback'](_0x53bcc2,_0x4b4dd0,'accept')(..._0x56f649),'onDiscard':(..._0x2ca7b1)=>this['getSuggestionCallback'](_0x53bcc2,_0x4b4dd0,'discard')(..._0x2ca7b1)});}['registerCustomCallback'](_0x2b5ab1,_0x1ca68b,_0x1b41fa,_0x50c4cb){const _0x55e930=_0x2b5ab1+':'+_0x1ca68b+':'+_0x1b41fa;this['_customCallbacks']['set'](_0x55e930,_0x50c4cb);}['getSuggestionCallback'](_0x1ce00e,_0x5b8ae1,_0x7a3cff){const _0x2cb4ce=_0x1ce00e+':'+_0x5b8ae1+':'+_0x7a3cff;return this['_customCallbacks']['get'](_0x2cb4ce)||this['_defaultCallbacks']['get'](_0x1ce00e+':'+_0x7a3cff);}['_registerDefaultCallbacks'](){const _0x4e6226=()=>!0x1,_0x53b1a4=_0x3a81d7=>{_0x3a81d7['sort']((_0x514a7a,_0x2c0302)=>_0x514a7a['start']['isBefore'](_0x2c0302['start'])?0x1:-0x1),this['_model']['change'](_0x46b961=>{for(const _0x23e8c1 of _0x3a81d7){let _0x5e61e5;_0x5e61e5=_0x23e8c1['end']['isAtEnd']&&_0x23e8c1['end']['parent']==_0x23e8c1['start']['nodeAfter']?_0x46b961['createSelection'](_0x23e8c1['start']['nodeAfter'],'on'):_0x46b961['createSelection'](_0x23e8c1),this['_model']['deleteContent'](_0x5e61e5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3d1b6b=(_0x28ac50,_0x4b932c)=>{_0x4b932c&&this['_model']['change'](_0x1752ba=>{const {commandName:_0xb2d735,commandParams:_0x4754fb=[]}=_0x4b932c,_0x2735bc=_0x28ac50['map'](_0x1c1ce3=>(Tt(_0x1c1ce3)&&(_0x1c1ce3=this['_model']['createRange'](_0x1c1ce3['end'])),_0x1c1ce3))['filter'](_0x492e0a=>'$graveyard'!==_0x492e0a['root']['rootName']);if(_0x2735bc['length']<0x1)return;const _0x2a88a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c3425=>_0x16e800['fromRange'](_0x2c3425));_0x1752ba['setSelection'](_0x2735bc);for(const _0x39a8f3 of this['_editor']['commands']['commands']())_0x39a8f3['refresh']();_0x4754fb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb2d735,..._0x4754fb);const _0x123f4a=_0x2a88a7['filter'](_0x409f03=>'$graveyard'!=_0x409f03['root']['rootName']);_0x123f4a['length']>0x0&&_0x1752ba['setSelection'](_0x123f4a);for(const _0x1fee81 of _0x2a88a7)_0x1fee81['detach']();});},_0x2cf9c6=(_0x2dd904,_0x43a662)=>0x1==_0x2dd904['length']&&0x1==_0x43a662['length']&&_0x2dd904[0x0]['end']['isEqual'](_0x43a662[0x0]['start']),_0xe34016=(_0x59df2b,_0x11d1a0,_0x4fbd37,_0xa5a5f)=>Ft(_0x59df2b,_0x11d1a0,_0x4fbd37,_0xa5a5f,this['_model'])?[_0x59df2b,_0x11d1a0]:Ft(_0x11d1a0,_0x59df2b,_0xa5a5f,_0x4fbd37,this['_model'])?[_0x11d1a0,_0x59df2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e6226),this['_defaultCallbacks']['set']('insertion:discard',_0x53b1a4),this['_defaultCallbacks']['set']('insertion:join',_0x2cf9c6),this['_defaultCallbacks']['set']('insertion:chain',_0xe34016),this['_defaultCallbacks']['set']('deletion:accept',_0x53b1a4),this['_defaultCallbacks']['set']('deletion:discard',_0x4e6226),this['_defaultCallbacks']['set']('deletion:join',_0x2cf9c6),this['_defaultCallbacks']['set']('deletion:chain',_0xe34016),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d1b6b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e6226),this['_defaultCallbacks']['set']('formatInline:join',_0x2cf9c6),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e6226),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d1b6b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e6226),this['_defaultCallbacks']['set']('formatBlock:join',_0x2cf9c6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e6226),this['_defaultCallbacks']['set']('attribute:accept',_0x4e6226),this['_defaultCallbacks']['set']('attribute:discard',(_0x122d12,_0x1fcd30)=>{if(!_0x1fcd30)return;const _0x196d92=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x23999a=>{if(_0x1fcd30['key']==m)for(const _0x3e9136 of _0x122d12){const _0x107629=_0x3e9136['start']['nodeAfter'],_0x11c0b9=_0x1fcd30['oldValue'];_0x23999a['rename'](_0x107629,_0x11c0b9);}else{if(_0x196d92['_isBlockAttribute'](_0x1fcd30['key'])){for(const _0x1bbef8 of _0x122d12)void 0x0!==_0x1fcd30['oldValue']?_0x23999a['setAttribute'](_0x1fcd30['key'],_0x1fcd30['oldValue'],_0x1bbef8['start']['nodeAfter']):_0x23999a['removeAttribute'](_0x1fcd30['key'],_0x1bbef8['start']['nodeAfter']);}else{for(const _0x14b5b1 of _0x122d12)_0x1fcd30['oldValue']?_0x23999a['setAttribute'](_0x1fcd30['key'],_0x1fcd30['oldValue'],_0x14b5b1):_0x23999a['removeAttribute'](_0x1fcd30['key'],_0x14b5b1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2cf9c6);}}function Rt(_0x40d19a,_0xb34d4a,_0x5f5958){for(const _0x582bd5 of _0xb34d4a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x582bd5['root']==_0x582bd5)return!0x1;if(!_0x5f5958['containsItem'](_0x582bd5))return!0x1;if(_0x40d19a['isObject'](_0x582bd5)||_0x40d19a['isLimit'](_0x582bd5))return!0x0;}return!0x1;}function Tt(_0x500527){return _0x500527['end']['parent']==_0x500527['start']['nodeAfter']&&_0x500527['end']['isAtStart'];}function Et(_0x562ff3,_0x721eaa,_0x3527d6,_0x1d54a1){const _0x2ff7e0=_0x5ecbc0=>!_0x5ecbc0['item']['is']('$textProxy')&&!_0x1d54a1['isObject'](_0x5ecbc0['item']),_0x3d9883=_0x562ff3['start']['getLastMatchingPosition'](_0x2ff7e0),_0x3d35cb=_0x562ff3['end']['getLastMatchingPosition'](_0x2ff7e0,{'direction':'backward'});return(!_0x562ff3['start']['isEqual'](_0x3d9883)||!_0x562ff3['end']['isEqual'](_0x3d35cb))&&(_0x3d9883['isBefore'](_0x3d35cb)?_0x3527d6['updateMarker'](_0x721eaa,{'range':_0x3527d6['createRange'](_0x3d9883,_0x3d35cb)}):_0x3527d6['removeMarker'](_0x721eaa),!0x0);}function Vt(_0x3bbd31){return _0xcee980(_0x3bbd31);}function Ut(_0x3abdbb){const _0xfb9b8f=_0x3abdbb['start']['nodeAfter'];return _0xfb9b8f&&_0xfb9b8f['is']('element');}function Ot(_0x1bfffa,_0x397c8f){return null==_0x1bfffa['end']['nodeBefore']&&_0x1bfffa['end']['parent']==_0x1bfffa['start']['nodeAfter']?Gt(_0x1bfffa['start']['nodeAfter'],_0x397c8f):_0x1bfffa;}function Gt(_0x57c863,_0x40685f){const _0x7698e6=_0x40685f['schema']['isObject'](_0x57c863)||_0x40685f['schema']['isSelectable'](_0x57c863);return _0x40685f['createRange'](_0x40685f['createPositionAt'](_0x57c863,'before'),_0x7698e6?_0x40685f['createPositionAfter'](_0x57c863):_0x40685f['createPositionAt'](_0x57c863,'end'));}function Ft(_0x64e682,_0x3306f3,_0x55242e,_0x15e336,_0x2526ad){if(!Pt(_0x64e682,_0x3306f3))return!0x1;if(_0x55242e['end']['isEqual'](_0x15e336['start']))return!0x0;if(_0x64e682['type']!=_0x3306f3['type'])return!0x1;if(!_0x55242e['end']['isTouching'](_0x15e336['start']))return!0x1;const _0x1069a8=_0x2526ad['createRange'](_0x55242e['end'],_0x15e336['start'])['getWalker']();for(const _0x22eadd of _0x1069a8)if(['elementStart','elementEnd']['includes'](_0x22eadd['type'])&&_0x2526ad['schema']['isLimit'](_0x22eadd['item']))return!0x1;return!0x0;}function Pt(_0x24a9c4,_0x38dc09,_0x32cb67=[]){return!(!_0x24a9c4['_isDataLoaded']||!_0x38dc09['_isDataLoaded'])&&_0x763405(Bt(_0x24a9c4['attributes'],_0x32cb67),Bt(_0x38dc09['attributes'],_0x32cb67));}function Lt(_0x3c2f9f,_0xb01fb9){const _0x25c477=Ht(_0x3c2f9f['attributes']),_0x56d55b=Ht(_0xb01fb9);if(!_0x3c2f9f['_isDataLoaded'])return!0x1;for(const _0x2ca091 of Object['keys'](_0x56d55b))if(!_0x763405(_0x25c477[_0x2ca091],_0x56d55b[_0x2ca091]))return!0x1;return!0x0;}function Ht(_0x44a339){const _0x488de9=Object['assign']({},_0x44a339);return delete _0x488de9['skipNestingCheck'],delete _0x488de9['tablePasteChainId'],_0x488de9;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x37fd29(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a42d3,_0x4ad31a,_0x2ae061,_0x4249af){super(),this['model']=_0x4ad31a,this['view']=_0x2ae061,this['commentThreadController']=_0x4249af,this['_editor']=_0x2a42d3,this['_acceptCommand']=_0x2a42d3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a42d3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x599515,_0x517c53)=>_0x599515||_0x517c53),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7d29b6=>_0x7d29b6&&this['_editor']['model']['canEditAt'](_0x4ad31a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x562e12=>_0x562e12&&this['_editor']['model']['canEditAt'](_0x4ad31a['getRanges']())),this['_pendingAction']=null,_0x2ae061['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ae061,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ae061,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ae061,'change:isDirty',()=>{_0x2ae061['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 _0x4539d8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4539d8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x19de91{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1b2000,_0x43f8e3,_0x23e250,_0xdc313c){super(_0x1b2000),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x43f8e3['authoredAt']),this['bind']('authoredAt')['to'](_0x43f8e3),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x43f8e3,this['_localUser']=_0x23e250,this['_config']=_0xdc313c,_0xdc313c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f5e13}=this['_config'];this['commentsListView']=new _0x1f5e13(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',_0x40379e=>_0x40379e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf548f3,_0x4d4ba2)=>_0xf548f3||!!_0x4d4ba2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43c751}=this['_config'],_0x51b985=new _0x43c751(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23d419=_0x51b985['commentInputView'];return _0x51b985['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23d419,'value',(_0xd31776,_0xcf2c2d,_0x27ac37)=>!!_0x27ac37||_0xd31776&&!_0xcf2c2d),_0x23d419['on']('submit',(_0x3259ae,_0x1ebe95)=>{this['fire']('addComment',_0x1ebe95),_0x23d419['editor']['setData']('');}),_0x23d419['on']('cancel',()=>this['focus']()),_0x23d419['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51b985;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x51b9fd,_0xa24d1b,_0x271ffa,_0x48387f){super(_0x51b9fd,_0xa24d1b,_0x271ffa,_0x48387f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e1893=>_0x1e1893&&_0x1e1893[0x0]?_0x1e1893[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4dfb14,_0x438d53)=>{let _0x2c106a='';for(const _0x237c74 of _0x4dfb14)_0x2c106a+='<p>'+ds(_0x237c74['content'],_0x237c74['color'])+'</p>';return _0x438d53?_0x2c106a:_0x132720(_0x2c106a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x51b9fd,'Accept\x20suggestion'),_0x52329b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x51b9fd,'Discard\x20suggestion'),_0x52329b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3292ce(_0x51b9fd,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4932a5=this['bindTemplate'],_0x44d972=[{'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':_0x4932a5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4932a5['to']('authoredAt',_0x4d1959=>this['_config']['formatDateTime'](_0x4d1959))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x44d972['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3c00fa={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4932a5['if']('isActive','ck-suggestion-wrapper--active'),_0x4932a5['to']('type',_0x48df43=>'ck-suggestion-'+_0x48df43),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x44d972}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3c00fa['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3c00fa;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x6af15,_0x4fcabb,_0x246405)=>{this['_descriptionElement']['innerHTML']=_0x246405;});}['_createButton'](_0x3beaeb,_0x3419a5,_0x398eb6,_0x3f3b95,_0x40133d){const _0x5f301b=new _0x5e1f82(this['locale']);return _0x5f301b['set']({'label':_0x3beaeb,'icon':_0x3419a5,'tooltip':!0x0,'tooltipPosition':_0x40133d}),_0x5f301b['extendTemplate']({'attributes':{'class':_0x398eb6}}),_0x5f301b['on']('execute',()=>{this['fire'](_0x3f3b95,this['_model']['id']);}),_0x5f301b;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x573826,_0x5630e3){let _0x8074e4='';return _0x8074e4+=_0x573826['split']('*')['map']((_0x261475,_0x2af60c)=>_0x2af60c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x261475)+'</span>':us(_0x261475))['join'](''),_0x5630e3&&(_0x8074e4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5630e3['value']+'\x22\x20title=\x22'+_0x5630e3['title']+'\x22></span>'),_0x8074e4;}function us(_0x16d898){const _0xff6815=document['createElement']('span');return _0xff6815['innerText']=_0x16d898,_0xff6815['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5297f7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4306be,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5adcd6){super(_0x5adcd6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19d9bb=this['editor']['config'];_0x19d9bb['define']('trackChanges.SuggestionThreadView',ne),_0x19d9bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19d9bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x43a733,_0x2c062d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x191d43,_0x2e22b3]of this['_handleControllerBuffer']){const _0x39c1ba=this['_suggestionToController']['has'](_0x191d43);_0x39c1ba||_0x2e22b3?_0x39c1ba&&_0x2e22b3&&this['_destroyController'](_0x191d43):this['_initializeController'](_0x191d43);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x43a733,_0x2c062d);}['init'](){const _0x857d44=this['editor'],_0x14743e=_0x857d44['plugins']['get']('TrackChangesEditing'),_0x1771c9=_0x857d44['plugins']['get']('Annotations'),_0x16ec5b=_0x857d44['plugins']['get']('EditorAnnotations'),_0x5e0b1e=_0x857d44['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16ec5b['addSourceCollector'](()=>{const _0xfbf113=[];for(const [_0x3a517c,_0x229fdf]of Array['from'](this['_suggestionToController'])){const _0x593276=_0x3a517c['getAllAdjacentSuggestions'](),_0xe6302b=[];for(const _0x4430ee of _0x593276){if(!_0x4430ee['isInContent'])continue;if(_0x4430ee['isMultiRange']){_0xe6302b['push'](..._0x4430ee['getRanges']());continue;}const _0x103057=_0x4430ee['getFirstRange']();if(_0xe6302b['length']>0x0){const _0x48a453=_0xe6302b[0x0]['getJoined'](_0x103057);if(_0x48a453){_0xe6302b[0x0]=_0x48a453;continue;}}_0xe6302b['push'](_0x103057);}_0xfbf113['push']([_0x229fdf['view'],_0xe6302b]);}return _0xfbf113;}),this['listenTo'](_0x14743e,'suggestionLoaded',(_0x5c1460,_0x4e0ed4)=>{this['listenTo'](_0x4e0ed4,'change:previous',(_0x1e18f0,_0x3c2309,_0x5145b6,_0x771688)=>{_0x4e0ed4['isInContent']&&(null==_0x5145b6?(this['_updateController'](_0x771688['head']),this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x1)):(this['_updateController'](_0x5145b6['head']),null==_0x771688&&this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x0)));}),null!==_0x4e0ed4['previous']?this['_updateController'](_0x4e0ed4['head']):this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x1);}),this['listenTo'](_0x14743e,'suggestionUnloaded',(_0x5ee3d2,_0x38a0b5,_0x3ec200)=>{this['stopListening'](_0x38a0b5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x38a0b5),this['_suggestionToController']['has'](_0x38a0b5)&&this['_destroyController'](_0x38a0b5),_0x3ec200&&this['_updateController'](_0x3ec200['head']);}),this['listenTo'](_0x14743e,'suggestionChanged',(_0x285de3,_0x556336)=>{this['_updateController'](_0x556336);}),this['listenTo'](_0x1771c9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e0b1e,'addComment',(_0x25e17d,{threadId:_0x36f81d,isFromAdapter:_0x48ed13})=>{if(_0x48ed13||!_0x14743e['hasSuggestion'](_0x36f81d))return;const _0x29ccf2=_0x14743e['getSuggestion'](_0x36f81d);this['_suggestionToController']['get'](_0x29ccf2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x509023=this['editor']['plugins']['get']('Annotations'),_0x207c35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162fe3=Array['from'](_0x509023['activeAnnotations'],_0x33f3d3=>_0x33f3d3['innerView'])['filter'](_0x176f62=>this['_viewToController']['has'](_0x176f62)),_0x131704=[];for(const _0x666201 of _0x162fe3){const _0xe4c172=this['_viewToController']['get'](_0x666201)['model']['getAllAdjacentSuggestions']();_0x131704['push'](..._0xe4c172['reduce']((_0xd022a9,_0xb1dd0)=>[..._0xd022a9,..._0xb1dd0['getMarkerNames']()],[]));}_0x207c35['activeMarkers']=_0x131704;}['_addUIComponentsToFactory'](){const _0xc3a6a3=this['editor'],_0x1879b2=_0xc3a6a3['locale'],_0x1af4a8=o(_0x1879b2,'Track\x20changes'),_0x477a94=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1af4a8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x30e294 of _0x477a94)if(ae(_0x30e294)){const _0x3c2951=_0xc3a6a3['commands']['get'](_0x30e294['model']['commandName']);_0x30e294['model']['bind']('isOn','isEnabled')['to'](_0x3c2951,'value','isEnabled');}_0xc3a6a3['ui']['componentFactory']['add']('trackChanges',_0x1f2cfc=>this['_createToolbarButton'](_0x1f2cfc,_0x477a94,_0x1af4a8)),_0xc3a6a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44b123=>this['_createMenuBarMenu'](_0x44b123,_0x477a94,_0x1af4a8));}['_createToolbarButton'](_0x150e7e,_0xebfc14,_0x2d072d){const _0x11a335=zt(_0x150e7e,Zt),_0x3b3dc3=this['editor']['commands']['get']('trackChanges');_0x11a335['buttonView']['set']({'tooltip':_0x2d072d,'label':_0x2d072d,'icon':ie}),_0x11a335['buttonView']['bind']('isOn')['to'](_0x3b3dc3,'value'),_0x11a335['buttonView']['on']('execute',()=>{_0x3b3dc3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x11a335,_0xebfc14,{'role':'menu'});const _0x37772a=[];for(const _0x41316b of _0xebfc14)ae(_0x41316b)&&_0x37772a['push'](this['editor']['commands']['get'](_0x41316b['model']['commandName']));const _0x274142=_0x11a335['buttonView'];return _0x274142['actionView']['unbind']('isEnabled'),_0x274142['arrowView']['unbind']('isEnabled'),_0x274142['actionView']['bind']('isEnabled')['to'](_0x3b3dc3,'isEnabled'),_0x274142['arrowView']['bind']('isEnabled')['toMany'](_0x37772a,'isEnabled',(..._0x11046a)=>_0x11046a['some'](_0x1b0de2=>_0x1b0de2)),_0x11a335['on']('execute',_0x172fca=>{this['editor']['execute'](_0x172fca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11a335;}['_createMenuBarMenu'](_0x3b30f1,_0x1504f4,_0x22c023){const _0x5e2eb0=new Kt(_0x3b30f1),_0x47a74d=this['editor']['commands']['get']('trackChanges');_0x5e2eb0['buttonView']['set']({'label':_0x22c023,'icon':ie});const _0x34fcde=new Qt(_0x3b30f1);for(const _0x156baf of _0x1504f4){if('separator'==_0x156baf['type']){_0x34fcde['items']['add'](new Jt(_0x3b30f1));continue;}const _0x5f1d4e=new Xt(_0x3b30f1,_0x5e2eb0),_0x19702a=new Yt(_0x3b30f1),_0x2aa731=_0x156baf['model'];_0x19702a['bind'](...Object['keys'](_0x2aa731))['to'](_0x2aa731),_0x19702a['delegate']('execute')['to'](_0x5e2eb0),_0x19702a['on']('execute',()=>{this['editor']['execute'](_0x2aa731['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f1d4e['children']['add'](_0x19702a),_0x34fcde['items']['add'](_0x5f1d4e);}return _0x5e2eb0['bind']('isEnabled')['to'](_0x47a74d,'isEnabled'),_0x5e2eb0['panelView']['children']['add'](_0x34fcde),_0x5e2eb0;}['_initializeController'](_0x4ae12e){const _0x2e9371=this['editor'],_0x12d186=_0x2e9371['config'],_0x42c7a7=_0x2e9371['plugins']['get']('Annotations'),_0xcdee9d=_0x2e9371['plugins']['get']('CommentsRepository'),_0x4ed590=_0x2e9371['plugins']['get']('EditorAnnotations'),_0x2f59f0=_0x2e9371['plugins']['get'](_0x4306be)['me'],_0x5ae339=_0x12d186['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3978ec,CommentThreadInputView:_0x4c80ba}=_0x2e9371['plugins']['get']('CommentsUI');let _0x56a965,_0x2e23f2;this['_annotationViews']['has'](_0x4ae12e['id'])?(_0x2e23f2=this['_annotationViews']['get'](_0x4ae12e['id']),_0x56a965=_0x2e23f2['mainView']):(_0x56a965=new _0x5ae339(_0x2e9371['locale'],_0x4ae12e,_0x2f59f0,{'disableComments':this['_disableComments'],'editorConfig':_0x12d186['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x12d186['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12d186['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12d186['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x64b405(_0x12d186['get']('locale')),'CommentView':_0x12d186['get']('comments')['CommentView'],'CommentsListView':_0x3978ec,'CommentThreadInputView':_0x4c80ba}),_0x56a965['acceptButton']['on']('execute',()=>{_0x2e9371['editing']['view']['focus']();}),_0x56a965['discardButton']['on']('execute',()=>{_0x2e9371['editing']['view']['focus']();}),_0x2e23f2=_0x42c7a7['createAnnotationView'](this['editor']['locale'],_0x56a965),_0x2e23f2['bind']('isDirty')['to'](_0x56a965,'isDirty'),_0x2e23f2['bind']('length')['to'](_0x56a965),_0x2e23f2['bind']('type')['to'](_0x56a965,'type',_0x280bd5=>'suggestion-'+_0x280bd5),this['_annotationViews']['set'](_0x4ae12e['id'],_0x2e23f2));const _0x5d1420=_0xcdee9d['createCommentThreadController'](_0x4ae12e['commentThread'],_0x56a965),_0x8c6d9a=new oe(_0x2e9371,_0x4ae12e,_0x56a965,_0x5d1420),_0x375008=_0x4ae12e['getAllAdjacentSuggestions']()['filter'](_0x537425=>_0x537425['isInContent']);_0x56a965['descriptionParts']=_0x2e9371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x375008),this['_suggestionToController']['set'](_0x4ae12e,_0x8c6d9a),this['_viewToController']['set'](_0x56a965,_0x8c6d9a);const _0xb71550=_0x42c7a7['createAnnotation']({'view':_0x2e23f2,'target':()=>{const _0x31cde4=[],_0x33bc64=_0x4ae12e['getAllAdjacentSuggestions']()['filter'](_0x7d47f3=>_0x7d47f3['isInContent']);for(const _0x51bc94 of _0x33bc64)_0x31cde4['push'](..._0x51bc94['getMarkers']());return _0x1acdac(_0x2e9371['editing'],_0x31cde4);},'type':()=>'suggestion-'+_0x8c6d9a['view']['type']});_0xcdee9d['_bindAnnotationToEditors'](_0x56a965,_0xb71550),_0x42c7a7['add'](_0xb71550),_0x4ed590['registerAnnotation'](_0xb71550);}['_destroyController'](_0x3457d3){const _0x250379=this['editor']['plugins']['get']('CommentsRepository'),_0xf7c892=this['editor']['plugins']['get']('Annotations'),_0x4dac91=this['_suggestionToController']['get'](_0x3457d3),_0x41c7f0=_0x4dac91['view'],_0x2b1861=_0xf7c892['getByInnerView'](_0x41c7f0);_0x250379['_unbindEditors'](_0x41c7f0),_0x2b1861&&_0xf7c892['remove'](_0x2b1861),this['_suggestionToController']['delete'](_0x3457d3),this['_viewToController']['delete'](_0x41c7f0),_0x4dac91['destroy']();}['_updateController'](_0xc1c1d4){if(!_0xc1c1d4['isInContent']||!this['_suggestionToController']['has'](_0xc1c1d4))return;const _0x378af1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bcea3=this['_suggestionToController']['get'](_0xc1c1d4),_0x5ad18a=_0xc1c1d4['getAllAdjacentSuggestions']();_0x3bcea3['view']['descriptionParts']=_0x378af1['descriptionFactory']['getDescriptions'](_0x5ad18a);}['destroy'](){for(const _0x5652bd of this['_suggestionToController']['keys']())this['_destroyController'](_0x5652bd);for(const _0x35051b of this['_annotationViews']['values']())_0x35051b['mainView']['destroy']();super['destroy']();}}function ae(_0x54c9f0){return'model'in _0x54c9f0;}class k extends _0x5297f7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x365d1b){this['editor']['plugins']['get'](p)['adapter']=_0x365d1b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x57b3b4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x57b3b4);}['getSuggestions']({skipNotAttached:_0x3f94e6=!0x1,toJSON:_0xc5c54e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f94e6,'toJSON':_0xc5c54e});}['getSuggestion'](_0x34370e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x34370e);}}const T=['Pagination'];class P extends _0x5297f7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x212c8c=this['editor'];if(_0x212c8c['config']['define']('trackChangesData.editorCreator',_0x549266=>{const _0x4fa205=_0x212c8c['model']['document']['getRootNames']()['reduce']((_0x106b5e,_0x1a2ed2)=>(_0x106b5e[_0x1a2ed2]='',_0x106b5e),{});return _0x212c8c['constructor']['create'](_0x4fa205,_0x549266);}),'function'!=typeof _0x212c8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x190e91('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9c7a32){return N(this['editor'],!0x0,_0x9c7a32);}['getDataWithDiscardedSuggestions'](_0x8e3354){return N(this['editor'],!0x1,_0x8e3354);}}class D extends _0x5297f7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3ae10d){super(_0x3ae10d),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(_0x9ab351){return void 0x0!==_0x9ab351['getRootsAttributes'];}async function N(_0x497706,_0x34588b,_0x3ac4bd){const _0x23f87f=_0x578c29(_0x497706,T);_0x23f87f['plugins']['push'](p,D),_0x23f87f['rootsAttributes']=v(_0x497706)?_0x497706['getRootsAttributes']():void 0x0;const _0x4b56e4=document['createDocumentFragment'](),_0x3ab30e=_0x497706['config']['get']('trackChangesData')['editorCreator'],_0xbe594d=await _0x3ab30e(_0x23f87f,()=>function(_0x501a8d){const _0x41235d=document['createElement']('div');return _0x501a8d['appendChild'](_0x41235d),_0x41235d;}(_0x4b56e4));!function(_0xf6026f,_0x1ee9b1){const _0x1b142=_0xf6026f['model']['document']['getRootNames']()['reduce']((_0x3149dd,_0x4ed0e6)=>(_0x3149dd[_0x4ed0e6]=_0xf6026f['data']['get']({'rootName':_0x4ed0e6}),_0x3149dd),{}),_0x2ba223=_0xf6026f['plugins']['get']('Users')['users']['map'](_0x44f67f=>({'id':_0x44f67f['id'],'name':_0x44f67f['name']})),_0x13af33=_0xf6026f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cec92=_0xf6026f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22b122=_0x1ee9b1['plugins']['get']('Users'),_0x5ae470=_0x1ee9b1['plugins']['get']('TrackChangesEditing'),_0x31f2a1=_0x1ee9b1['plugins']['get']('CommentsRepository');for(const _0x5d2a01 of _0x2ba223)_0x22b122['getUser'](_0x5d2a01['id'])||_0x22b122['addUser'](_0x5d2a01);_0x22b122['me']||_0x22b122['useAnonymousUser']();for(const _0x4ef07c of _0x13af33)_0x5ae470['addSuggestionData'](_0x4ef07c);for(const _0x2944b6 of _0x4cec92)_0x31f2a1['addCommentThread'](_0x2944b6);_0x1ee9b1['data']['set'](_0x1b142);}(_0x497706,_0xbe594d),_0xbe594d['execute'](_0x34588b?'acceptAllSuggestions':'discardAllSuggestions');const _0x751432=v(_0xbe594d)?_0xbe594d['getFullData'](_0x3ac4bd):_0xbe594d['data']['get'](_0x3ac4bd);return await _0xbe594d['destroy'](),_0x751432;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|