@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240620.1 → 0.0.0-nightly-20240621.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
|
-
_0x3d5e12(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3de5c6,_0x31f41a){super(),this['id']=_0x31f41a['id'],this['type']=_0x31f41a['type'],this['subType']=_0x31f41a['subType']||null,this['author']=_0x31f41a['author'],this['creator']=_0x31f41a['creator']||_0x31f41a['author'],this['isExternal']=Boolean(_0x31f41a['attributes']&&_0x31f41a['attributes']['@external']),this['data']=null,this['_model']=_0x3de5c6,this['_onAccept']=_0x31f41a['onAccept'],this['_onDiscard']=_0x31f41a['onDiscard'],this['_onAttributesChange']=_0x31f41a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x31f41a['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 _0x347bf9=this;for(;_0x347bf9['previous'];)_0x347bf9=_0x347bf9['previous'];return _0x347bf9;}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'](_0x4a21a2){this['_markerNames']['add'](_0x4a21a2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a1e6f=>this['_model']['markers']['get'](_0x5a1e6f))['filter'](_0x13a163=>_0x13a163);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d70ec=>{for(const _0x52796b of this['getMarkers']())_0x4d70ec['removeMarker'](_0x52796b);}),this['_markerNames']['clear']();}['removeMarker'](_0xf51d6b){this['_model']['change'](_0x227724=>{_0x227724['removeMarker'](_0xf51d6b);}),this['_markerNames']['delete'](_0xf51d6b);}['addRange'](_0x54bb3c){const _0x56864f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x56864f),this['_model']['change'](_0x428df2=>{_0x428df2['addMarker'](_0x56864f,{'range':_0x54bb3c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4724aa){for(const _0x30e376 of this['getRanges']())if(_0x30e376['isIntersecting'](_0x4724aa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3393a4=>_0x3393a4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x51ee4a,_0x383bb9)=>[..._0x51ee4a,..._0x383bb9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2db3f2=this['getRanges']();if(0x1!=_0x2db3f2['length'])return null;const _0x1c4fa6=_0x2db3f2[0x0],_0x59317e=_0x1c4fa6['start']['nodeAfter'],_0x3f6ac3=_0x1c4fa6['end']['nodeBefore'];return _0x59317e instanceof _0x49e2a6?_0x59317e!=_0x3f6ac3?null:_0x59317e: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 _0x53903c=[];let _0x1c4b56=this['head'];for(;_0x1c4b56;)_0x53903c['push'](_0x1c4b56),_0x1c4b56=_0x1c4b56['next'];return _0x53903c;}['setAttribute'](_0x25bab9,_0x356ffa){const _0x56b60d=_0x397fb7(this['attributes']);_0x5ad36f(_0x56b60d,_0x25bab9,_0x356ffa),_0x283872(_0x56b60d,this['attributes'])||(this['attributes']=_0x56b60d,this['_onAttributesChange'](_0x56b60d));}['removeAttribute'](_0xfd4e36){const _0x21230b=_0x397fb7(this['attributes']);_0x1af6de(_0x21230b,_0xfd4e36),_0x283872(_0x21230b,this['attributes'])||(this['attributes']=_0x21230b,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 _0x50a7b0()['substr'](0x1,0x5);}}function o(_0x26f171,_0x4528ee,_0x90f648){const t=_0x26f171['t'];switch(_0x4528ee){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',_0x90f648);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x90f648);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x90f648);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x90f648);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x90f648);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',_0x90f648);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x90f648);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',_0x90f648);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x90f648);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x90f648);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x90f648);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x90f648);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x90f648);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x90f648);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x90f648);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x90f648);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x90f648);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x90f648);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x90f648);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x90f648);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x90f648);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x90f648);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x90f648);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'},_0x90f648);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x90f648);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x90f648);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x90f648);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x90f648);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x90f648);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'},_0x90f648);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x90f648);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x90f648);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x90f648);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x90f648);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'},_0x90f648);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x90f648);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'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x90f648);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'},_0x90f648);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x90f648);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x90f648);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'},_0x90f648);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'},_0x90f648);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 _0x4528ee;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x590eaf,_0x2d081a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x590eaf,this['_locale']=_0x2d081a;}['getDescriptions'](_0x1482a4){const _0x35e0ea=[],_0x3d7025=new Set(),_0x1b9184=new Set();for(let _0x418b5b=0x0;_0x418b5b<_0x1482a4['length'];_0x418b5b++){const _0x55d335=_0x1482a4[_0x418b5b];if(!_0x55d335['isInContent'])continue;const _0x3ca2d4=this['_handleCustomCallbackDescription'](_0x55d335);if(_0x3ca2d4){if(null!=_0x55d335['subType']){if(_0x3d7025['has'](_0x55d335['subType']))continue;_0x3d7025['add'](_0x55d335['subType']);}_0x35e0ea['push'](_0x3ca2d4);}else{if('attribute'!=_0x55d335['type'])'insertion'!=_0x55d335['type']&&'deletion'!=_0x55d335['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35e0ea,_0x55d335,_0x1482a4[_0x418b5b+0x1]);else{const _0x492036=_0x55d335['data']['key'];if(_0x1b9184['has'](_0x492036))continue;_0x1b9184['add'](_0x55d335['data']['key']),_0x492036==m?this['_handleRenameSuggestionDescription'](_0x35e0ea,_0x55d335):this['_handleAttributeSuggestionDescription'](_0x35e0ea,_0x55d335);}}}return this['_resolveDescriptionItems'](_0x35e0ea);}['registerDescriptionCallback'](_0x14b848){this['_customCallbacks']['push'](_0x14b848);}['registerElementLabel'](_0x4f6122,_0x37b85a,_0x43f664=_0x362a86['normal']){'function'==typeof _0x4f6122?_0x146923(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f6122,'label':_0x37b85a,'priority':_0x43f664}):this['_itemLabels']['set'](_0x4f6122,_0x37b85a);}['registerAttributeLabel'](_0x23c6d4,_0xb8747c){this['_attributeLabels']['set'](_0x23c6d4,_0xb8747c);}['getItemLabel'](_0x14f795,_0x3990b8=0x1){let _0xfd5ec0;for(const _0x1b8c95 of this['_itemLabelsCallbacks'])if(_0x1b8c95['matchingCallback'](_0x14f795)){_0xfd5ec0=_0x1b8c95['label'];break;}return _0xfd5ec0||(_0xfd5ec0=this['_itemLabels']['get'](_0x14f795['name'])),_0xfd5ec0?_0xfd5ec0(_0x3990b8):0x1!==_0x3990b8?_0x3990b8+'\x20'+_0x14f795['name']+'s':''+_0x14f795['name'];}['_addDescriptionItems'](_0x2c7fbc,_0x1cc1a0){const _0x319d7b=_0x1cc1a0['getFirstRange']()['getWalker'](),_0x19bb32='insertion'==_0x1cc1a0['type']?'add':'remove';for(const _0x55232f of _0x319d7b){const _0x47ce13=_0x55232f['item'],_0x6f47cc=_0x2c7fbc[_0x2c7fbc['length']-0x1];if(_0x47ce13['is']('$textProxy'))_0x6f47cc&&_0x6f47cc['type']['indexOf']('Container')>-0x1&&_0x2c7fbc['pop'](),_0x6f47cc&&'text'==_0x6f47cc['type']?_0x6f47cc[_0x19bb32]+=_0x47ce13['data']:_0x2c7fbc['push']({'type':'text','add':'add'==_0x19bb32?_0x47ce13['data']:'','remove':'remove'==_0x19bb32?_0x47ce13['data']:''});else{if(this['_schema']['isObject'](_0x47ce13)){const _0x218e73=_0x47ce13;if(_0x6f47cc&&_0x6f47cc['type']['indexOf']('Container')>-0x1&&_0x2c7fbc['pop'](),'elementEnd'==_0x55232f['type'])continue;_0x6f47cc&&_0x6f47cc['type']==_0x19bb32+'Object'&&_0x6f47cc['element']['name']==_0x218e73['name']?_0x6f47cc['quantity']++:_0x2c7fbc['push']({'type':_0x19bb32+'Object','element':_0x218e73,'quantity':0x1}),_0x319d7b['skip'](_0x490a8a=>!('elementEnd'==_0x490a8a['type']&&_0x490a8a['item']==_0x47ce13));}else{if(this['_schema']['checkChild'](_0x47ce13,'$text')||_0x47ce13['is']('element','softBreak')){const _0x4536d0=_0x47ce13;if('add'==_0x19bb32&&'elementStart'==_0x55232f['type']||'remove'==_0x19bb32&&'elementEnd'==_0x55232f['type'])continue;if(_0x6f47cc&&-0x1==_0x6f47cc['type']['indexOf']('Container')){'text'==_0x6f47cc['type']&&(_0x6f47cc[_0x19bb32]+='\x0a');continue;}let _0x381ac4;if(_0x381ac4='add'==_0x19bb32?_0x4536d0['nextSibling']&&!this['_schema']['isObject'](_0x4536d0['nextSibling'])?_0x4536d0['nextSibling']:null:_0x4536d0['previousSibling']&&!this['_schema']['isObject'](_0x4536d0['previousSibling'])?_0x4536d0['previousSibling']:null,_0x4536d0['isEmpty']||_0x381ac4&&_0x381ac4['isEmpty']){const _0x59b063=_0x381ac4&&_0x381ac4['isEmpty']?_0x381ac4:_0x4536d0;_0x6f47cc&&_0x6f47cc['type']==_0x19bb32+'EmptyContainer'&&_0x6f47cc['element']['name']==_0x59b063['name']?_0x6f47cc['quantity']++:_0x2c7fbc['push']({'type':_0x19bb32+'EmptyContainer','element':_0x59b063,'quantity':0x1});}else _0x2c7fbc['push']({'type':_0x19bb32+'Container','element':_0x4536d0});}}}}}['_resolveDescriptionItems'](_0x5a379e){const _0x4cd2a5=this['_locale'],_0x21a72f=[],_0x557c40=[],_0x4d7330=[];for(const _0x2f029f of _0x5a379e)switch(_0x2f029f['type']){case'text':if(_0x2f029f['add']=_0x2f029f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2f029f['remove']=_0x2f029f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2f029f['add']&&''!=_0x2f029f['remove']){_0x21a72f['push']({'type':'replace','content':o(_0x4cd2a5,'REPLACE_TEXT',['\x22'+_0x2f029f['remove']+'\x22','\x22'+_0x2f029f['add']+'\x22'])});continue;}if(null!=_0x2f029f['add']['match'](/^ +$/)){_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0',o(_0x4cd2a5,'ELEMENT_SPACE',_0x2f029f['add']['length']))});continue;}if(null!=_0x2f029f['remove']['match'](/^ +$/)){_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0',o(_0x4cd2a5,'ELEMENT_SPACE',_0x2f029f['remove']['length']))});continue;}if(''!=_0x2f029f['add']){_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0','\x22'+_0x2f029f['add']+'\x22')});continue;}_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0','\x22'+_0x2f029f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Insert:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Remove:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'addContainer':_0x21a72f['push']({'type':'insertion','content':o(_0x4cd2a5,'*Split:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'removeContainer':_0x21a72f['push']({'type':'deletion','content':o(_0x4cd2a5,'*Merge:*\x20%0',this['getItemLabel'](_0x2f029f['element'],_0x2f029f['quantity']))});continue;case'addFormat':_0x557c40['push'](_0x2f029f['key']);continue;case'removeFormat':_0x4d7330['push'](_0x2f029f['key']);continue;default:_0x21a72f['push'](_0x2f029f);}if(_0x557c40['length']){const _0x3bbb58=_0x557c40['map'](_0x1d6248=>this['_attributeLabels']['has'](_0x1d6248)?this['_attributeLabels']['get'](_0x1d6248):_0x1d6248)['join'](',\x20');_0x21a72f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3bbb58)});}if(_0x4d7330['length']){const _0xbbf1b8=_0x4d7330['map'](_0x5230b8=>this['_attributeLabels']['has'](_0x5230b8)?this['_attributeLabels']['get'](_0x5230b8):_0x5230b8)['join'](',\x20');_0x21a72f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xbbf1b8)});}return _0x21a72f;}['_handleCustomCallbackDescription'](_0x35c3d3){for(const _0x4adc65 of this['_customCallbacks']){const _0x240b05=_0x4adc65(_0x35c3d3);if(_0x240b05&&'type'in _0x240b05)return _0x240b05;}}['_handleAttributeSuggestionDescription'](_0x559698,_0x1a1e97){const _0x1918d5=_0x1a1e97['data'],_0x515bf2=void 0x0===_0x1918d5['newValue']?'removeFormat':'addFormat';_0x559698['push']({'type':_0x515bf2,'key':_0x1918d5['key']});}['_handleRenameSuggestionDescription'](_0x464830,_0x9f1b40){_0x464830['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x9f1b40['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1ddb29,_0x2c113a,_0x558f3f){if(this['_addDescriptionItems'](_0x1ddb29,_0x2c113a),_0x558f3f&&_0x558f3f['getFirstRange']()&&!_0x2c113a['getFirstRange']()['end']['isEqual'](_0x558f3f['getFirstRange']()['start'])){const _0xf4d366=_0x1ddb29[_0x1ddb29['length']-0x1],_0xd79077='insertion'==_0x2c113a['type']?'add':'remove';_0xf4d366&&'text'==_0xf4d366['type']&&(_0xf4d366[_0xd79077]+='\x0a');}}}class E extends _0x513c76{['afterInit'](){const _0x2ddf00=this['editor'],_0x3069ba=_0x2ddf00['plugins']['get']('TrackChangesEditing');_0x2ddf00['commands']['get']('showAIAssistant')&&_0x3069ba['enableCommand']('showAIAssistant');}}class V extends _0x513c76{['afterInit'](){const _0xa60f53=this['editor'],_0x1b95ee=_0xa60f53['locale'];if(!_0xa60f53['plugins']['has']('AlignmentEditing'))return;const _0xdb7865=_0xa60f53['plugins']['get']('TrackChangesEditing');_0xdb7865['enableDefaultAttributesIntegration']('alignment'),_0xdb7865['registerBlockAttribute']('alignment'),_0xdb7865['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1b95ee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9bef30=this['editor'],_0x3bf7c4=_0x9bef30['locale'];_0x9bef30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c30b9=>{if('formatBlock'!=_0x4c30b9['type'])return;const {data:_0x3edfd6}=_0x4c30b9;if(_0x3edfd6&&'alignment'==_0x3edfd6['commandName']){const _0x1794a2=_0x3edfd6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3bf7c4,'*Format:*\x20%0',function(_0xb6e175){switch(_0xb6e175){case'left':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3bf7c4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3bf7c4,'FORMAT_JUSTIFY_TEXT');}}(_0x1794a2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x513c76{['afterInit'](){const _0x14694a=this['editor'],_0x98d2f9=_0x14694a['plugins']['get']('TrackChangesEditing'),_0x33eb70=_0x14694a['locale'];for(const _0x179cc4 of ti){if(!_0x14694a['plugins']['has'](_0x179cc4))continue;const _0x479e43=_0x179cc4['slice'](0x0,-0x7)['toLowerCase'](),_0xee5f66='FORMAT_'+_0x479e43['toUpperCase']();_0x98d2f9['enableDefaultAttributesIntegration'](_0x479e43),_0x98d2f9['registerInlineAttribute'](_0x479e43),_0x98d2f9['descriptionFactory']['registerAttributeLabel'](_0x479e43,o(_0x33eb70,_0xee5f66));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1edc1f=this['editor'],_0x25954b=_0x1edc1f['locale'],_0x31798f=_0x1edc1f['plugins']['get']('TrackChangesEditing');function _0x4518c0(_0x565dcb,_0x3a1af2){_0x31798f['descriptionFactory']['registerDescriptionCallback'](_0x1d2ba9=>{if('formatInline'!=_0x1d2ba9['type'])return;const {data:_0x473a22}=_0x1d2ba9;return _0x473a22&&_0x473a22['commandName']===_0x565dcb?_0x473a22['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25954b,'*Format:*\x20%0',_0x3a1af2)}:{'type':'format','content':o(_0x25954b,'*Remove\x20format:*\x20%0',_0x3a1af2)}:void 0x0;});}_0x4518c0('bold',o(_0x25954b,'FORMAT_BOLD')),_0x4518c0('italic',o(_0x25954b,'FORMAT_ITALIC')),_0x4518c0('underline',o(_0x25954b,'FORMAT_UNDERLINE')),_0x4518c0('code',o(_0x25954b,'FORMAT_CODE')),_0x4518c0('strikethrough',o(_0x25954b,'FORMAT_STRIKETHROUGH')),_0x4518c0('subscript',o(_0x25954b,'FORMAT_SUBSCRIPT')),_0x4518c0('superscript',o(_0x25954b,'FORMAT_SUPERSCRIPT'));}}class O extends _0x513c76{['afterInit'](){const _0xb5f4c1=this['editor'],_0x350fe3=_0xb5f4c1['locale'];if(!_0xb5f4c1['plugins']['has']('BlockQuoteEditing'))return;const _0x30cde8=_0xb5f4c1['plugins']['get']('TrackChangesEditing'),_0x3f91fc=this['editor']['commands']['get']('blockQuote');_0x30cde8['enableCommand']('blockQuote',(_0x53f7f2,_0x39ebfa={})=>{const _0x2adfb1=this['editor']['model']['document']['selection'],_0x149960=_0x39ebfa&&void 0x0!==_0x39ebfa['forceValue']?_0x39ebfa['forceValue']:!_0x3f91fc['value'];let _0x34ee56=[];if(_0x149960){const _0xdc927a=Array['from'](_0x2adfb1['getSelectedBlocks']())['filter'](_0x1ec0f1=>oo(_0x1ec0f1)||function(_0x1d5f59,_0x20799f){const _0x6564=_0x20799f['checkChild'](_0x1d5f59['parent'],'blockQuote'),_0x3100a8=_0x20799f['checkChild'](['$root','blockQuote'],_0x1d5f59);return _0x6564&&_0x3100a8;}(_0x1ec0f1,this['editor']['model']['schema']));_0x34ee56=to(_0xdc927a,_0xb5f4c1['model']);}else{const _0x984ecb=Array['from'](_0x2adfb1['getSelectedBlocks']())['filter'](_0x36d424=>oo(_0x36d424));_0x34ee56=to(_0x984ecb,_0xb5f4c1['model']);}_0xb5f4c1['model']['change'](()=>{for(const _0x344e3b of _0x34ee56)_0x30cde8['markBlockFormat'](_0x344e3b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x149960}]});});}),_0x30cde8['descriptionFactory']['registerDescriptionCallback'](_0xd5b991=>{const {data:_0x5b3b34}=_0xd5b991;if(_0x5b3b34&&'blockQuote'==_0x5b3b34['commandName']){const _0x5eeabb=o(_0x350fe3,'ELEMENT_BLOCK_QUOTE');return _0x5b3b34['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350fe3,'*Set\x20format:*\x20%0',_0x5eeabb)}:{'type':'format','content':o(_0x350fe3,'*Remove\x20format:*\x20%0',_0x5eeabb)};}});}}function oo(_0x3ec204){return'blockQuote'==_0x3ec204['parent']['name'];}class G extends _0x513c76{['afterInit'](){const _0xf7f085=this['editor'];_0xf7f085['plugins']['has']('CaseChange')&&(_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf7f085['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x513c76{['afterInit'](){const _0x2436df=this['editor'];_0x2436df['commands']['get']('ckbox')&&_0x2436df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x513c76{['afterInit'](){const _0x643a9c=this['editor'];if(!_0x643a9c['plugins']['has']('CodeBlock'))return;const _0x3a4493=_0x643a9c['plugins']['get']('TrackChangesEditing'),_0xc31dcd=_0x643a9c['locale'],_0x48207a=_0x643a9c['config']['get']('codeBlock')['languages'],_0x9806aa=_0x643a9c['commands']['get']('codeBlock');_0x3a4493['enableCommand']('indentCodeBlock'),_0x3a4493['enableCommand']('outdentCodeBlock'),_0x3a4493['enableCommand']('codeBlock',(_0x42d5a2,_0x106329={})=>{const _0x2ec33b=_0x643a9c['model'],_0x5eae94=_0x643a9c['model']['document']['selection'],_0x1b4210=_0x106329&&void 0x0!==_0x106329['forceValue']?_0x106329['forceValue']:!_0x9806aa['value'];let _0x5eef87;_0x106329['language']||(_0x106329['language']=_0x48207a[0x0]['language']),_0x5eef87=_0x1b4210?Array['from'](_0x5eae94['getSelectedBlocks']())['filter'](_0x45f9f5=>eo(_0x45f9f5)||function(_0x3b32c9,_0x4b9c73){if(_0x3b32c9['is']('rootElement')||_0x4b9c73['isLimit'](_0x3b32c9))return!0x1;return _0x4b9c73['checkChild'](_0x3b32c9['parent'],'codeBlock');}(_0x45f9f5,_0x2ec33b['schema'])):Array['from'](_0x5eae94['getSelectedBlocks']())['filter'](_0x5327a4=>eo(_0x5327a4));const _0x422b00=to(_0x5eef87,_0x2ec33b);_0x2ec33b['change'](()=>{for(const _0x58849c of _0x422b00)_0x3a4493['markBlockFormat'](_0x58849c,{'commandName':'codeBlock','commandParams':[{..._0x106329,'forceValue':_0x1b4210}],'formatGroupId':'blockName'});});}),(_0x3a4493['descriptionFactory']['registerElementLabel']('codeBlock',_0x50b58c=>o(_0xc31dcd,'ELEMENT_CODE_BLOCK',_0x50b58c)),_0x3a4493['descriptionFactory']['registerDescriptionCallback'](_0x26c330=>{if('formatBlock'!=_0x26c330['type'])return;const _0x5ca105=_0xc31dcd['t'],{data:_0xfb24c5}=_0x26c330;if(!_0xfb24c5||'codeBlock'!=_0xfb24c5['commandName'])return;const _0x559e39=_0xfb24c5['commandParams'][0x0]['language'],_0x10c524=_0x5ca105(_0x48207a['find'](_0x23e9e4=>_0x23e9e4['language']===_0x559e39)['label'])['toLowerCase']();return _0xfb24c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc31dcd,'*Set\x20format:*\x20%0',o(_0xc31dcd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x10c524+')')}:{'type':'format','content':o(_0xc31dcd,'*Remove\x20format:*\x20%0',o(_0xc31dcd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3eef7b){return'codeBlock'==_0x3eef7b['name'];}class H extends _0x513c76{['afterInit'](){const _0x30a9d1=this['editor'];if(!_0x30a9d1['plugins']['has']('CommentsEditing'))return;_0x30a9d1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3c8d77,_0x5e7ace,_0x43aab5){const _0x6cc4b5=[];for(const _0x1e4917 of _0x5e7ace['getItems']())_0x1e4917['hasAttribute'](_0x3c8d77)&&_0x6cc4b5['push'](_0x43aab5['createRangeOn'](_0x1e4917));return _0x6cc4b5;}function _e(_0x5cf8a5,_0x1b13d8,{showActiveMarker:_0x10b208=!0x0}={}){const _0x53c3ce=_0x5cf8a5['plugins']['get']('TrackChangesEditing');return(_0x49f4bc,_0x231e7a,_0x4d5595)=>{if(!_0x4d5595['consumable']['test'](_0x231e7a['markerRange'],_0x49f4bc['name']))return;const _0x1e80ab=_0x231e7a['markerRange']['getWalker'](),_0x70a949=_0x231e7a['markerRange']['start'],_0x47a5bf=_0x5cf8a5['model']['schema'];let _0x2b9a35=null,_0x548ab7=null,_0x580cbe=!0x1,_0x5780f0=!0x1;for(const _0x7b9af8 of _0x1e80ab){const _0x1199a9=_0x7b9af8['item'];_0x580cbe=_0x580cbe||_0x47a5bf['isContent'](_0x1199a9);const _0x155511=_0x4d5595['mapper']['toViewElement'](_0x1199a9);if(_0x155511&&_0x155511['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7b9af8['type']&&(_0x47a5bf['isBlock'](_0x1199a9)&&!_0x47a5bf['isLimit'](_0x1199a9)&&(_0x1199a9['nextSibling']||_0x70a949['isAtEnd']?_0x2b9a35&&_0x2b9a35['parent']==_0x1199a9||(_0x2b9a35=_0x1199a9,_0x3a75b9(_0x7b9af8['previousPosition']),_0x5780f0=!0x0):_0x548ab7=_0x548ab7||_0x7b9af8['previousPosition']));}function _0x3a75b9(_0x37dfae){const _0x5ad478=_0x4d5595['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b13d8}),_0x3aea98=_0x4d5595['mapper']['toViewPosition'](_0x37dfae);_0x10b208&&_0x53c3ce['activeMarkers']['includes'](_0x231e7a['markerName'])&&_0x4d5595['writer']['addClass']('ck-suggestion-marker--active',_0x5ad478),_0x4d5595['writer']['insert'](_0x3aea98,_0x5ad478),_0x4d5595['mapper']['bindElementToMarker'](_0x5ad478,_0x231e7a['markerName']);}_0x580cbe||_0x5780f0||!_0x548ab7||_0x3a75b9(_0x548ab7);};}class q extends _0x513c76{static get['requires'](){return[_0x4b0990];}['init'](){const _0x3963cc=this['editor'],_0x3e86be=_0x3963cc['plugins']['get']('TrackChangesEditing');_0x3e86be['enableCommand']('delete');const _0x4728c=_0x3963cc['commands']['get']('deleteForward');_0x3e86be['enableCommand']('deleteForward',(_0x1b639c,_0x2ccb45={})=>{const _0x44fc5b=_0x3963cc['model']['createSelection'](_0x3963cc['model']['document']['selection']);_0x44fc5b['isCollapsed']&&_0x3963cc['model']['modifySelection'](_0x44fc5b,{'direction':'forward','unit':_0x2ccb45['unit']});const _0x5c46d6=_0x44fc5b['getFirstRange'](),_0x73f4b9=_0x1677da['fromRange'](_0x5c46d6);let _0x3e8628;_0x1b639c(_0x2ccb45),_0x3e8628='$graveyard'==_0x73f4b9['root']['rootName']?_0x3963cc['model']['createRange'](_0x5c46d6['start']):_0x3963cc['model']['createRange'](_0x73f4b9['start'],_0x73f4b9['end']),_0x73f4b9['detach'](),_0x3963cc['model']['enqueueChange'](_0x4728c['buffer']['batch'],_0x15bbee=>{_0x4728c['buffer']['lock'](),_0x15bbee['setSelection'](_0x15bbee['createRange'](_0x3e8628['end'])),_0x4728c['buffer']['unlock']();});}),_0x3963cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3963cc,'merge'),{'priority':'high'}),_0x3963cc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bbc05,_0x4a628e,_0xdd3728)=>{_0xdd3728['options']['showSuggestionHighlights']&&_e(_0x3963cc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1bbc05,_0x4a628e,_0xdd3728);},{'priority':'high'}),_0x3963cc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4610d6,_0x5933d5,_0x21cf54)=>{const _0x3f3245=_0x21cf54['mapper']['markerNameToElements'](_0x5933d5['markerName']);if(_0x3f3245){for(const _0x3f6f8e of _0x3f3245)_0x3f6f8e['is']('uiElement')&&(_0x21cf54['mapper']['unbindElementFromMarkerName'](_0x3f6f8e,_0x5933d5['markerName']),_0x21cf54['writer']['remove'](_0x3f6f8e));}},{'priority':'high'});}}class z extends _0x513c76{['afterInit'](){const _0x15e6e0=this['editor'];if(!_0x15e6e0['plugins']['has']('ListEditing'))return;const _0x5e8bdb=_0x15e6e0['locale'],_0x1c9954=_0x15e6e0['plugins']['get']('TrackChangesEditing'),_0x1f2d8f=_0x15e6e0['plugins']['has']('TodoListEditing'),_0x57463a=!!_0x15e6e0['config']['get']('list.multiBlock');function _0x55cdc2(_0x37a338){return{'type':'format','content':''+o(_0x5e8bdb,'*Set\x20format:*\x20%0',_0x37a338)};}function _0x48f68e(_0x3f4edb){return{'type':'format','content':''+o(_0x5e8bdb,'*Remove\x20format:*\x20%0',_0x3f4edb)};}_0x1c9954['enableDefaultAttributesIntegration']('numberedList'),_0x1c9954['enableDefaultAttributesIntegration']('bulletedList'),_0x1c9954['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c9954['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c9954['enableDefaultAttributesIntegration']('indentList'),_0x1c9954['enableDefaultAttributesIntegration']('outdentList'),_0x1c9954['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c9954['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c9954['registerBlockAttribute']('listItemId'),_0x1c9954['registerBlockAttribute']('listType'),_0x1c9954['registerBlockAttribute']('listIndent'),_0x57463a&&(_0x1c9954['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c9954['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1f2d8f&&(_0x1c9954['enableDefaultAttributesIntegration']('todoList'),_0x1c9954['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c9954['registerBlockAttribute']('todoListChecked'),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x451b99=>{const {data:_0x33fbf4}=_0x451b99;if(_0x33fbf4&&'todoListChecked'==_0x33fbf4['key'])return{'type':'format','content':_0x33fbf4['newValue']?o(_0x5e8bdb,'*Check\x20item*'):o(_0x5e8bdb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3660ee=>{if(_0x3660ee['batch']['isUndo'])return!0x1;let _0xbed69d=!0x1;const _0x2b0e0e=_0x1c9954['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x209a28=>'todoListChecked'===_0x1c9954['_getAttributeKey'](_0x209a28));for(const _0x4d9147 of _0x2b0e0e){'todo'!=_0x4d9147['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c9954['_findSuggestions'](_0x4d9147['getFirstRange'](),'attribute')['find'](_0x52ce19=>'listType'===_0x1c9954['_getAttributeKey'](_0x52ce19['suggestion']))||(_0x3660ee['removeMarker'](_0x4d9147['getFirstMarker']()),_0xbed69d=!0x0));}return _0xbed69d;})),_0x1c9954['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e8bdb,'FORMAT_INDENT'));const _0x27d6d8={'type':'format','content':''};_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x40b0e9=>{const {data:_0x5a8a18}=_0x40b0e9;if(!_0x5a8a18||'listType'!=_0x5a8a18['key'])return;let _0xbd4742=_0x40b0e9['head'];for(;_0xbd4742;){if(_0xbd4742['data']&&(('listStyle'==_0xbd4742['data']['key']||'listMarkerStyle'==_0xbd4742['data']['key'])&&(_0xbd4742['data']['newValue']&&'default'!=_0xbd4742['data']['newValue']||'default'!=_0xbd4742['data']['oldValue']&&!_0x5a8a18['newValue'])||!_0x57463a&&_0xbd4742['data']['key']==m))return _0x27d6d8;_0xbd4742=_0xbd4742['next'];}if(null==_0x5a8a18['newValue'])switch(_0x5a8a18['oldValue']){case'bulleted':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48f68e(o(_0x5e8bdb,'ELEMENT_TODO_LIST'));}switch(_0x5a8a18['newValue']){case'bulleted':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55cdc2(o(_0x5e8bdb,'ELEMENT_TODO_LIST'));}}),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x125e7b=>{const {data:_0x390206}=_0x125e7b;if(_0x390206&&'listIndent'==_0x390206['key'])return null==_0x390206['newValue']||null==_0x390206['oldValue']&&0x0==_0x390206['newValue']?_0x27d6d8:void 0x0;}),_0x1c9954['descriptionFactory']['registerDescriptionCallback'](_0x5692d5=>{if('attribute'!=_0x5692d5['type'])return;const {data:_0x36dd27}=_0x5692d5;if(!_0x36dd27||'listItemId'!=_0x36dd27['key'])return;const _0x1fdc8e=le(_0x5692d5);return'newValue'==_0x1fdc8e?{'type':'format','content':o(_0x5e8bdb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fdc8e?{'type':'format','content':o(_0x5e8bdb,'*Split:*\x20list\x20item')}:_0x27d6d8;}),_0x15e6e0['model']['document']['registerPostFixer'](_0x1fe366=>this['listItemIdFixer'](_0x1fe366)),_0x15e6e0['model']['document']['registerPostFixer'](_0x2b5d04=>this['noTrackChangesFixer'](_0x2b5d04)),_0x15e6e0['model']['document']['registerPostFixer'](_0x1c2e0d=>this['assureChains'](_0x1c2e0d)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4a9728){if(_0x4a9728['batch']['isUndo']||!_0x4a9728['batch']['isLocal'])return!0x1;let _0x40dfe9=!0x1;const _0x188708=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c22f5=>_0x2c22f5['data']&&'listItemId'==_0x2c22f5['data']['key'])['filter'](_0x9f82db=>_0x9f82db['data']['newValue']&&_0x9f82db['data']['oldValue']);for(const _0x2d8dde of _0x188708)le(_0x2d8dde)||(_0x4a9728['removeMarker'](_0x2d8dde['getFirstMarker']()),_0x40dfe9=!0x0);return _0x40dfe9;}['noTrackChangesFixer'](_0x2478cc){if(_0x2478cc['batch']['isUndo']||!_0x2478cc['batch']['isLocal'])return!0x1;const _0x4f1b33=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f1b33['trackChangesCommand']['value'])return!0x1;let _0x4844b0=!0x1;const _0x299398=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x558b7b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x332732=>'attribute'==_0x332732['type'])['filter'](_0x1958f4=>_0x299398['includes'](_0x1958f4['attributeKey']));if(0x0==_0x558b7b['length'])return _0x4844b0;for(const _0x4657bb of _0x558b7b){const _0x2643ab=_0x4f1b33['_findSuggestions'](_0x4657bb['range'],'attribute')['filter'](_0x147b66=>!_0x147b66['meta']['isNextTo'])['map'](_0x36f960=>_0x36f960['suggestion'])['filter'](_0x26b619=>{const _0x384a85=_0x4f1b33['_getAttributeKey'](_0x26b619);return _0x299398['includes'](_0x384a85);});if(_0x2643ab['length']){for(const _0x9a91a8 of _0x2643ab)_0x2478cc['removeMarker'](_0x9a91a8['getFirstMarker']());_0x4844b0=!0x0;}}return _0x4844b0;}['assureChains'](_0x1096ff){if(_0x1096ff['batch']['isUndo']||!_0x1096ff['batch']['isLocal'])return!0x1;const _0x3232f1=this['editor']['plugins']['get']('TrackChangesEditing');let _0x187b80=!0x1;const _0x680fb6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xcc71f2 of _0x3232f1['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e4512=_0x3232f1['_findSuggestions'](_0xcc71f2['getFirstRange'](),'attribute')['map'](_0xc0badd=>_0xc0badd['suggestion'])['filter'](_0x32f7bb=>_0x32f7bb['data']&&_0x680fb6['includes'](_0x32f7bb['data']['key']));if(!_0x1e4512['length'])continue;const _0x52d35e=_0x1e4512[0x0]['head']['attributes']['groupId'];if(!_0x1e4512['every'](_0x4d0e19=>_0x4d0e19['attributes']['groupId']===_0x52d35e)){for(const _0x3b0740 of _0x1e4512)_0x5c50bb(_0x3b0740,_0x52d35e)&&(_0x187b80=!0x0);}}return _0x187b80;function _0x4d19e2(_0x15119e,_0x43aa47){for(const _0x4eda1a of _0x3232f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x581ee0=>'attribute'==_0x581ee0['type']&&_0x581ee0['attributes']['groupId']==_0x15119e))_0x4eda1a['setAttribute']('groupId',_0x43aa47);}function _0x5c50bb(_0x38e9e5,_0x5697da){let _0x4b132c=_0x38e9e5['head'],_0x55f136=!0x1;for(;_0x4b132c;)_0x4b132c['attributes']['groupId']!=_0x5697da&&(_0x4d19e2(_0x4b132c['attributes']['groupId'],_0x5697da),_0x4b132c['setAttribute']('groupId',_0x5697da),_0x55f136=!0x0),_0x4b132c=_0x4b132c['next'];return _0x55f136;}}['_supportLegacySuggestions'](){const _0xa11dd2=this['editor'],_0x116a0f=_0xa11dd2['locale'],_0x16d690=_0xa11dd2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16d690['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27977f,_0x3f135e){const _0x290ded=[];for(let _0x5e145a of _0x27977f)_0x5e145a['start']['nodeAfter']===_0x5e145a['end']['parent']&&(_0x5e145a=_0xa11dd2['model']['createRange'](_0xa11dd2['model']['createPositionAt'](_0x5e145a['start']['nodeAfter'],0x0))),_0x290ded['push'](_0x5e145a);_0xa11dd2['model']['change'](_0x19d1fa=>{const _0x59eb49=_0xa11dd2['model']['document']['selection'],_0x2cb27c=Array['from'](_0x59eb49['getRanges']())['map'](_0x5a5642=>_0x1677da['fromRange'](_0x5a5642));_0x19d1fa['setSelection'](_0x290ded),_0xa11dd2['commands']['get'](_0x3f135e['commandName'])['refresh'](),_0x3f135e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa11dd2['execute'](_0x3f135e['commandName'],..._0x3f135e['commandParams']),_0x19d1fa['setSelection'](_0x2cb27c);for(const _0x2191ef of _0x2cb27c)_0x2191ef['detach']();});}),_0x16d690['descriptionFactory']['registerElementLabel'](function(_0x1ab371){const _0x228b6b=!_0xa11dd2['model']['schema']['isObject'](_0x1ab371),_0x111dea=_0x1ab371['previousSibling'],_0x703289=_0x1ab371['nextSibling'],_0x9f30d9=_0x1ab371['getAttribute']('listItemId'),_0x91e710=!_0x111dea||_0x111dea['getAttribute']('listItemId')!==_0x9f30d9,_0x1e53c1=!_0x703289||_0x703289['getAttribute']('listItemId')!==_0x9f30d9;return _0x228b6b&&Boolean(_0x9f30d9)&&_0x91e710&&_0x1e53c1;},_0x35fdc8=>o(_0x116a0f,'ELEMENT_LIST_ITEM',_0x35fdc8));}['_registerLegacyDescription'](){const _0x14d638=this['editor'],_0x38f669=_0x14d638['locale'];function _0x27e387(_0x574579){const _0x19566c=_0x14d638['commands']['get']('bulletedList')['value'],_0x10715e=_0x14d638['commands']['get']('numberedList')['value'];return'numberedList'===_0x574579?_0x19566c:_0x10715e;}_0x14d638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e7970){if('formatBlock'!=_0x4e7970['type'])return;const {data:_0x8a2356}=_0x4e7970;if(!_0x8a2356)return;let _0x300905,_0x5e2d79,_0x1578ae,_0x367722;switch(_0x8a2356['commandName']){case'bulletedList':_0x1578ae=_0x8a2356['commandParams'][0x0]['forceValue'],_0x367722=_0x27e387(_0x8a2356['commandName']),_0x300905=_0x1578ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367722&&_0x14d638['config']['get']('list.multiBlock')||(_0x300905='*Change\x20to:*\x20%0'),_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1578ae=_0x8a2356['commandParams'][0x0]['forceValue'],_0x367722=_0x27e387(_0x8a2356['commandName']),_0x300905=_0x1578ae?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x367722&&_0x14d638['config']['get']('list.multiBlock')||(_0x300905='*Change\x20to:*\x20%0'),_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x300905='*Indent:*\x20%0',_0x5e2d79={'type':'format','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x300905=function(_0x1b95d6){const _0x143ac8=_0x1b95d6['getFirstRange']();let _0x47febd=_0x143ac8['start']['nodeAfter'];for(;_0x47febd&&_0x143ac8['containsItem'](_0x47febd);){if(_0x47febd['getAttribute']('listIndent')>0x0)return!0x1;_0x47febd=_0x47febd['nextSibling'];}return!0x0;}(_0x4e7970)?o(_0x38f669,'*Format:*\x20remove\x20from\x20%0',o(_0x38f669,function(_0x78c49c){return'ELEMENT_'+_0x78c49c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e7970))):o(_0x38f669,'*Outdent:*\x20%0',o(_0x38f669,'ELEMENT_LIST_ITEM')),_0x5e2d79={'type':'format','content':_0x300905};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8a2356['multipleBlocks']&&(_0x300905='*Merge:*\x20%0',_0x5e2d79={'type':'deletion','content':o(_0x38f669,_0x300905,o(_0x38f669,'ELEMENT_LIST_ITEM'))});}return _0x5e2d79;});}}function le(_0x3ad1d5){let _0x5b648f=_0x3ad1d5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b648f;){const _0x4d42f2=_0x5b648f['getAttribute']('listItemId');if(!_0x4d42f2)return!0x1;if(_0x4d42f2==_0x3ad1d5['data']['newValue'])return'newValue';if(_0x4d42f2==_0x3ad1d5['data']['oldValue'])return'oldValue';_0x5b648f=_0x5b648f['previousSibling'];}return!0x1;}class ue extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5686da=this['editor']['config']['get']('list.properties'),_0x5d1200=this['editor']['plugins']['get']('TrackChangesEditing');_0x5686da['styles']&&(_0x5d1200['enableDefaultAttributesIntegration']('listStyle'),_0x5d1200['registerBlockAttribute']('listStyle')),_0x5686da['reversed']&&(_0x5d1200['enableDefaultAttributesIntegration']('listReversed'),_0x5d1200['registerBlockAttribute']('listReversed')),_0x5686da['startIndex']&&(_0x5d1200['enableDefaultAttributesIntegration']('listStart'),_0x5d1200['registerBlockAttribute']('listStart'));const _0x418fcc={'type':'format','content':''};_0x5d1200['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14a34b=this['editor']['locale'];_0x5d1200['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14a34b,'FORMAT_LIST_REVERSED')),_0x5d1200['descriptionFactory']['registerDescriptionCallback'](_0x2aaa2d=>{const {data:_0x5973dd}=_0x2aaa2d;if(_0x5973dd&&'listReversed'==_0x5973dd['key'])return null==_0x5973dd['newValue']||0x0==_0x5973dd['newValue']&&null==_0x5973dd['oldValue']?_0x418fcc:void 0x0;}),_0x5d1200['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14a34b,'FORMAT_LIST_START')),_0x5d1200['descriptionFactory']['registerDescriptionCallback'](_0x8f713b=>{const {data:_0x406a09}=_0x8f713b;if(_0x406a09&&'listStart'==_0x406a09['key'])return null==_0x406a09['newValue']||0x1==_0x406a09['newValue']&&null==_0x406a09['oldValue']?_0x418fcc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51a8f3=>{if(_0x51a8f3['batch']['isUndo'])return!0x1;let _0x18d4e5=!0x1;const _0x5e2a24=_0x5d1200['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a7fc4=>{const _0x243d10=_0x5d1200['_getAttributeKey'](_0x3a7fc4);return'listStart'==_0x243d10||'listReversed'==_0x243d10;});for(const _0x3f09e5 of _0x5e2a24){const _0x213f64=_0x3f09e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x213f64||'customNumbered'==_0x213f64)continue;_0x5d1200['_findSuggestions'](_0x3f09e5['getFirstRange'](),'attribute')['find'](_0x59ca75=>'listType'==_0x5d1200['_getAttributeKey'](_0x59ca75['suggestion']))||(_0x51a8f3['removeMarker'](_0x3f09e5['getFirstMarker']()),_0x18d4e5=!0x0);}return _0x18d4e5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24fb81){const _0x1d835=this['editor']['locale'],{data:_0x248197}=_0x24fb81,_0x2666e4={'type':'format','content':''};if(!_0x248197||'listStyle'!=_0x248197['key'])return;if(!_0x248197['oldValue'])return'default'==_0x248197['newValue']?_0x2666e4:{'type':'format','content':''+o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['newValue'])))};if(!_0x248197['newValue']){if('default'==_0x248197['oldValue'])return _0x2666e4;let _0x33b7ee=_0x24fb81['head'];for(;_0x33b7ee;){if(_0x33b7ee['data']&&'listType'==_0x33b7ee['data']['key']&&_0x33b7ee['data']['newValue'])return _0x2666e4;_0x33b7ee=_0x33b7ee['next'];}return{'type':'format','content':''+o(_0x1d835,'*Remove\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['oldValue'])))};}if('default'!=_0x248197['newValue'])return{'type':'format','content':''+o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,this['_getTranslationKeyForListStyle'](_0x248197['newValue'])))};let _0x78536b=_0x24fb81['head'];for(;_0x78536b;){if(_0x78536b['data']&&'listType'==_0x78536b['data']['key']&&_0x78536b['data']['newValue']&&_0x78536b['data']['oldValue'])return _0x2666e4;_0x78536b=_0x78536b['next'];}return{'type':'format','content':o(_0x1d835,'*Set\x20format:*\x20%0',o(_0x1d835,'ELEMENT_'+_0x24fb81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x41f0d1=this['editor'],_0x3aeeea=_0x41f0d1['locale'];_0x41f0d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18da4b=>{if('formatBlock'!=_0x18da4b['type'])return;const {data:_0x539cd2}=_0x18da4b;if(!_0x539cd2)return;let _0x4e90e2,_0xa57919;switch(_0x539cd2['commandName']){case'listStyle':_0x4e90e2='*Change\x20to:*\x20%0',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2,o(_0x3aeeea,this['_getTranslationKeyForListStyle'](_0x539cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e90e2=_0x539cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2)};break;case'listStart':_0x4e90e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa57919={'type':'format','content':o(_0x3aeeea,_0x4e90e2,_0x539cd2['commandParams'][0x0]['startIndex'])};}return _0xa57919;});}['_getTranslationKeyForListStyle'](_0x31a684){return'ELEMENT_'+function(_0x23d03c){if(pe['includes'](_0x23d03c))return'bulleted';if(ye['includes'](_0x23d03c))return'numbered';return null;}(_0x31a684)['toUpperCase']()+'_LIST_'+_0x31a684['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x513c76{static get['requires'](){return[_0x5c128d];}['init'](){const _0x17673e=this['editor'],_0x157939=_0x17673e['plugins']['get']('TrackChangesEditing'),_0x4c8c51=_0x17673e['commands']['get']('enter');_0x157939['enableCommand']('enter',()=>{_0x17673e['model']['change'](_0x5eacd0=>{const _0x939cf1=_0x17673e['model']['document']['selection'],_0x5d4ae8=_0x939cf1['getFirstPosition'](),_0x52db78=_0x1677da['fromRange'](_0x939cf1['getFirstRange']());if(_0x4c8c51['enterBlock'](_0x5eacd0)){const _0x136077=_0x17673e['model']['createPositionAt'](_0x5d4ae8['parent']['nextSibling'],0x0),_0x152784=_0x5eacd0['createRange'](_0x5d4ae8,_0x136077);_0x157939['markInsertion'](_0x152784);}else _0x5eacd0['setSelection'](_0x5eacd0['createRange'](_0x52db78['end']));_0x52db78['detach'](),_0x4c8c51['fire']('afterExecute',{'writer':_0x5eacd0});});}),_0x17673e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x17673e,'split'),{'priority':'high'}),_0x17673e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54c2d4,_0x4b2050,_0x1b4e9e)=>{const _0x45fc89=_0x1b4e9e['mapper']['markerNameToElements'](_0x4b2050['markerName']);if(_0x45fc89){for(const _0x4e9365 of _0x45fc89)_0x4e9365['hasClass']('ck-suggestion-marker-split')&&(_0x1b4e9e['mapper']['unbindElementFromMarkerName'](_0x4e9365,_0x4b2050['markerName']),_0x1b4e9e['writer']['remove'](_0x4e9365));}},{'priority':'high'}),_0x17673e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bf482,_0x199bc2,_0x219039)=>{_0x219039['options']['showSuggestionHighlights']&&_e(_0x17673e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3bf482,_0x199bc2,_0x219039);},{'priority':'high'});}}class J extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x54b9f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x54b9f3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x54b9f3['enableCommand']('findNext'),_0x54b9f3['enableCommand']('findPrevious'),_0x54b9f3['enableCommand']('replace'),_0x54b9f3['enableCommand']('replaceAll');}['handleFindCommand'](_0x436df8,_0x2f6a96,_0x162326={}){const _0x185322=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x436df8(_0x95c810=>('string'==typeof _0x2f6a96?_0x185322['findByTextCallback'](_0x2f6a96,_0x162326):_0x2f6a96)(_0x95c810)['filter'](_0xed4d78=>!0x1===this['_isInDeletionRange'](_0xed4d78,_0x95c810['item'])),_0x162326);}['_isInDeletionRange'](_0x292ac6,_0x251eb9){const _0x8e476d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x251eb9,_0x292ac6['start']),this['editor']['model']['createPositionAt'](_0x251eb9,_0x292ac6['end']));for(const _0x52dc37 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8e476d['getIntersection'](_0x52dc37['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 _0x513c76{['afterInit'](){const _0x6b0ca3=this['editor']['locale'],_0x2f5a44=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d19f6,commandName:_0xd9a68e}of ro)this['editor']['plugins']['has'](_0x4d19f6)&&(_0x2f5a44['enableDefaultAttributesIntegration'](_0xd9a68e),_0x2f5a44['registerInlineAttribute'](_0xd9a68e));_0x6b0ca3['t'],_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6b0ca3,'FORMAT_FONT_SIZE')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6b0ca3,'FORMAT_FONT_FAMILY')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6b0ca3,'FORMAT_FONT_COLOR')),_0x2f5a44['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6b0ca3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2080af=this['editor'],_0x462264=_0x2080af['locale'];_0x2080af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1b54=>{const _0x37b4f6=_0x462264['t'];if('formatInline'!=_0x1e1b54['type'])return;const {data:_0xe3495d}=_0x1e1b54;if(null!=_0xe3495d){if('fontSize'==_0xe3495d['commandName']){const _0x26fef5=_0xe3495d['commandParams'][0x0]['value'];if(_0x26fef5){const _0xffaefb=_0x37b4f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fc70c=>_0x3fc70c['model']==_0x26fef5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x462264,'*Set\x20font\x20size:*\x20%0',_0xffaefb)};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe3495d['commandName']){const _0x3ca65f=_0xe3495d['commandParams'][0x0]['value'];return _0x3ca65f?{'type':'format','content':o(_0x462264,'*Set\x20font\x20family:*\x20%0',_0x3ca65f)}:{'type':'format','content':o(_0x462264,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe3495d['commandName']){const _0xee3c27=_0xe3495d['commandParams'][0x0]['value'];if(_0xee3c27){const _0x35bd74=_0x5da8bf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29d489=>_0x29d489['model']==_0xee3c27);let _0x105ba1=_0xee3c27,_0x2f3832='';return _0x35bd74&&(_0x105ba1=_0x35bd74['label'],_0x2f3832=_0x37b4f6(_0x105ba1)['toLowerCase']()),{'type':'format','content':o(_0x462264,'*Set\x20font\x20color:*\x20%0',_0x2f3832)['trim'](),'color':{'value':_0xee3c27,'title':_0x2f3832||_0x105ba1}};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe3495d['commandName']){const _0x1a49ff=_0xe3495d['commandParams'][0x0]['value'];if(_0x1a49ff){const _0xadb9bf=_0x5da8bf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x32455f=>_0x32455f['model']==_0x1a49ff);let _0x3fa986=_0x1a49ff,_0x15d810='';return _0xadb9bf&&(_0x3fa986=_0xadb9bf['label'],_0x15d810=_0x37b4f6(_0x3fa986)['toLowerCase']()),{'type':'format','content':o(_0x462264,'*Set\x20font\x20background\x20color:*\x20%0',_0x15d810)['trim'](),'color':{'value':_0x1a49ff,'title':_0x15d810||_0x3fa986}};}return{'type':'format','content':o(_0x462264,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x513c76{['afterInit'](){const _0x2d1392=this['editor'],_0x28f39c=_0x2d1392['plugins']['get']('TrackChangesEditing'),_0x42d363=_0x2d1392['commands']['get']('copyFormat'),_0xd8e536=_0x2d1392['commands']['get']('pasteFormat');_0x42d363&&_0xd8e536&&(_0x28f39c['enableDefaultAttributesIntegration']('pasteFormat'),_0x28f39c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18ddbe=this['editor'],_0x53aaa2=_0x18ddbe['locale'];_0x18ddbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2858b4=>{if('formatBlock'!=_0x2858b4['type']&&'formatInline'!=_0x2858b4['type'])return;const {data:_0x558195}=_0x2858b4;if(_0x558195&&'pasteFormat'===_0x558195['commandName']){const _0x1e659d=[],_0x5d3200=_0x558195['commandParams'][0x0];for(const [_0x3015c1,_0xfc44e5]of Object['entries'](_0x5d3200))_0x1e659d['push'](so(_0x18ddbe,_0x3015c1,_0xfc44e5));return _0x1e659d['length']?{'type':'format','content':o(_0x53aaa2,'*Set\x20format\x20to:*\x20%0',_0x1e659d['join'](',\x20'))}:{'type':'format','content':o(_0x53aaa2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x22a6b1,_0x270487,_0x215cef){const _0x2bf637=_0x22a6b1['locale']['t'],_0x2e6050=_0x270487['split'](/(?=[A-Z])/)['join']('\x20'),_0x549f11=_0x2bf637(_0x2e6050['charAt'](0x0)['toUpperCase']()+_0x2e6050['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x215cef)return _0x549f11;if('fontColor'===_0x270487||'fontBackgroundColor'===_0x270487){const _0x5cbb69=_0x5da8bf(_0x22a6b1['config']['get']('fontColor.colors'))['find'](_0xe1a12c=>_0xe1a12c['model']==_0x215cef);return _0x549f11+'\x20('+(_0x5cbb69?_0x2bf637(_0x5cbb69['label'])['toLowerCase']():_0x215cef)+')';}if('fontSize'===_0x270487&&isNaN(parseFloat(_0x215cef))){const _0x582d09=_0x22a6b1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x22a6b1['config']['get']('fontSize.options'))['find'](_0x308d19=>_0x308d19['model']==_0x215cef);return _0x549f11+'\x20('+(_0x582d09?_0x2bf637(_0x582d09['title'])['toLowerCase']():_0x215cef)+')';}return _0x549f11+'\x20('+_0x215cef+')';}class Y extends _0x513c76{['_headingOptions'];['afterInit'](){const _0x46775a=this['editor'];if(!_0x46775a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x46775a['config']['get']('heading.options');const _0xd03ce9=_0x46775a['locale'],_0x3e2d39=_0x46775a['plugins']['get']('TrackChangesEditing');_0x3e2d39['enableDefaultAttributesIntegration']('heading');for(const _0x1c5265 of this['_headingOptions'])'paragraph'!=_0x1c5265['model']&&_0x3e2d39['descriptionFactory']['registerElementLabel'](_0x1c5265['model'],_0x47299c=>{const _0x53e3c0=this['_getHeadingLevel'](_0x1c5265['model']);return null!==_0x53e3c0?_0x2155a0(_0x47299c,_0x53e3c0):_0x5b4712(_0x47299c,_0x1c5265['title']);});function _0x2155a0(_0x166e6c,_0x4b88c2){return o(_0xd03ce9,'ELEMENT_HEADING',[_0x166e6c,_0x4b88c2]);}function _0x5b4712(_0x16acb9,_0x4ee94f){return o(_0xd03ce9,'ELEMENT_HEADING_CUSTOM',[_0x16acb9,_0x4ee94f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24673c=this['editor'],_0x2d36b7=_0x24673c['locale'];function _0x2465d4(_0x1965a2,_0x584caa){return o(_0x2d36b7,'ELEMENT_HEADING_CUSTOM',[_0x1965a2,_0x584caa]);}_0x24673c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442dae=>{if('formatBlock'!=_0x442dae['type'])return;const {data:_0x7cc774}=_0x442dae;if(_0x7cc774&&'heading'==_0x7cc774['commandName']){const _0x7585f8=_0x7cc774['commandParams'][0x0]['value'],_0x21bc00=this['_getHeadingLevel'](_0x7585f8);if(null!==_0x21bc00)return{'type':'format','content':o(_0x2d36b7,'*Change\x20to:*\x20%0',(_0xd9217c=0x1,_0x52b86f=_0x21bc00,o(_0x2d36b7,'ELEMENT_HEADING',[_0xd9217c,_0x52b86f])))};const _0x35cb04=this['_headingOptions']['find'](_0x32f8a3=>_0x32f8a3['model']===_0x7585f8)['title'];return{'type':'format','content':o(_0x2d36b7,'*Change\x20to:*\x20%0',_0x2465d4(0x1,_0x35cb04))};}var _0xd9217c,_0x52b86f;});}['_getHeadingLevel'](_0x1f7f71){const _0x106efd=_0x1f7f71['match'](/^heading(\d+)/);if(_0x106efd)return _0x106efd[0x1];const _0x10b3fe=this['_headingOptions']?.['find'](_0x52bc6d=>_0x52bc6d['model']==_0x1f7f71);if(_0x10b3fe&&_0x10b3fe['view']){const _0x3d5efd=_0x10b3fe['view'],_0x462b94=(_0x3d5efd['name']??_0x3d5efd)['match'](/^h(\d+)/);if(_0x462b94)return _0x462b94[0x1];}return null;}}class Z extends _0x513c76{['afterInit'](){const _0x2000e7=this['editor'];if(!_0x2000e7['plugins']['has']('HighlightEditing'))return;const _0x52f110=_0x2000e7['plugins']['get']('TrackChangesEditing'),_0x8e5b6d=_0x2000e7['locale'];_0x52f110['enableDefaultAttributesIntegration']('highlight'),_0x52f110['registerInlineAttribute']('highlight'),_0x52f110['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x8e5b6d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537276=this['editor'],_0xc753aa=_0x537276['locale'];_0x537276['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d111c=>{if('formatInline'!=_0x3d111c['type'])return;const {data:_0x7702c6}=_0x3d111c;if(_0x7702c6&&'highlight'==_0x7702c6['commandName']){const _0x593761=_0xc753aa['t'],_0x41d7a2=_0x7702c6['commandParams'][0x0]['value'];if(_0x41d7a2){const _0x5529db=_0x537276['config']['get']('highlight.options')['find'](_0x1630d8=>_0x1630d8['model']==_0x41d7a2),_0x8d5665=_0x593761(_0x5529db['title'])['toLowerCase']();return{'type':'format','content':o(_0xc753aa,'*Set\x20highlight:*\x20%0',_0x8d5665),'color':{'value':_0x5529db['color'],'title':_0x5529db['title']}};}return{'type':'format','content':o(_0xc753aa,'*Remove\x20highlight*',o(_0xc753aa,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x513c76{['afterInit'](){const _0xc3b5ea=this['editor'];if(!_0xc3b5ea['plugins']['has']('HorizontalLineEditing'))return;_0xc3b5ea['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1bf5ad=_0xc3b5ea['plugins']['get']('TrackChangesEditing'),_0x3064bc=_0xc3b5ea['locale'];_0x1bf5ad['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18a2c4=>o(_0x3064bc,'ELEMENT_HORIZONTAL_LINE',_0x18a2c4)),_0xc3b5ea['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5b7d38,{writer:_0x3f6339,options:_0x4fe5f2})=>{if(!_0x4fe5f2['showSuggestionHighlights'])return null;const _0x3df36b=_0x3f6339['createContainerElement']('div'),_0x170ee5=_0x3f6339['createEmptyElement']('hr');return _0x3f6339['addClass']('ck-horizontal-line',_0x3df36b),_0x3f6339['insert'](_0x3f6339['createPositionAt'](_0x3df36b,0x0),_0x170ee5),_0x3df36b;},'converterPriority':'high'});}}class et extends _0x513c76{['afterInit'](){const _0x5558c7=this['editor'];if(!_0x5558c7['plugins']['has']('HtmlEmbed'))return;const _0x1cb065=_0x5558c7['plugins']['get']('TrackChangesEditing'),_0x30d5c4=_0x5558c7['locale'];_0x1cb065['descriptionFactory']['registerElementLabel']('rawHtml',_0x535373=>o(_0x30d5c4,'ELEMENT_HTML_EMBED',_0x535373)),_0x1cb065['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1cb065['registerBlockAttribute']('value'),_0x1cb065['descriptionFactory']['registerDescriptionCallback'](_0x9aa363=>{if('attribute'!=_0x9aa363['type'])return;const {data:_0x45447f}=_0x9aa363;if(_0x45447f&&'value'==_0x45447f['key']&&_0x9aa363['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x402bdf=o(_0x30d5c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x30d5c4,'*Change\x20%0\x20content*',_0x402bdf)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x65c5ac=this['editor'],_0x436362=_0x65c5ac['locale'];_0x65c5ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x567bbd=>{if('formatBlock'!=_0x567bbd['type'])return;const {data:_0x5203f3}=_0x567bbd;if(_0x5203f3&&'htmlEmbed'==_0x5203f3['commandName']){const _0x5e8336=o(_0x436362,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x436362,'*Change\x20%0\x20content*',_0x5e8336)};}});}}class it extends _0x513c76{['afterInit'](){const _0x59c32a=this['editor'];if(!_0x59c32a['plugins']['has']('ImageEditing'))return;const _0x3c26a=_0x59c32a['plugins']['get']('TrackChangesEditing'),_0x4c540d=_0x59c32a['plugins']['get']('ImageUtils'),_0x21f26d=_0x59c32a['locale'];_0x3c26a['enableCommand']('insertImage'),_0x3c26a['descriptionFactory']['registerElementLabel']('imageBlock',_0x40e8ef=>o(_0x21f26d,'ELEMENT_IMAGE',_0x40e8ef)),_0x3c26a['descriptionFactory']['registerElementLabel']('imageInline',_0x5753b3=>o(_0x21f26d,'ELEMENT_INLINE_IMAGE',_0x5753b3)),_0x3c26a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x21f26d,'ELEMENT_CAPTION')),_0x59c32a['plugins']['has']('ImageUploadEditing')&&_0x3c26a['enableCommand']('uploadImage'),_0x59c32a['plugins']['has']('ImageBlockEditing')&&_0x59c32a['plugins']['has']('ImageInlineEditing')&&(_0x3c26a['enableCommand']('imageTypeInline',(_0x8e656e,_0x4c0fcb)=>{const _0x55d063=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']);_0x59c32a['model']['change'](()=>{_0x3c26a['markBlockFormat'](_0x55d063,{'commandName':'imageTypeInline','commandParams':[_0x4c0fcb]},[],'convertBlockImageToInline');});}),_0x3c26a['enableCommand']('imageTypeBlock',(_0x495156,_0x20bb99)=>{_0x59c32a['model']['change'](_0x452998=>{let _0x4edb5d=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x4fa125=_0x452998['createRangeOn'](_0x4edb5d);const _0x16e615=_0x226cfc['fromPosition'](_0x4fa125['start'],'toPrevious'),_0x5db7c2=_0x226cfc['fromPosition'](_0x4fa125['end'],'toNext');_0x3c26a['forceDefaultExecution'](()=>_0x495156(_0x20bb99)),_0x4edb5d=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x4fa125=_0x452998['createRangeOn'](_0x4edb5d);const _0xae38e6=_0x452998['createRange'](_0x16e615,_0x5db7c2);_0x16e615['detach'](),_0x5db7c2['detach'](),_0x3c26a['markBlockFormat'](_0x4edb5d,{'commandName':'imageTypeInline','commandParams':[_0x20bb99]},[],'convertInlineImageToBlock'),_0xae38e6['start']['isBefore'](_0x4fa125['start'])&&_0x3c26a['markInsertion'](_0x452998['createRange'](_0xae38e6['start'],_0x4fa125['start']),'convertInlineImageToBlock'),_0x4fa125['end']['isBefore'](_0xae38e6['end'])&&_0x3c26a['markInsertion'](_0x452998['createRange'](_0x4fa125['end'],_0xae38e6['end']),'convertInlineImageToBlock');});}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3c26a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x15ed3c])=>{const _0x1b6d63=_0x3c26a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19714a=_0x15ed3c['start'],_0x1b7bfe=_0x15ed3c['end'];const _0x8b30f=_0x59c32a['model']['schema']['getNearestSelectionRange'](_0x19714a,'backward'),_0x31899a=_0x59c32a['model']['schema']['getNearestSelectionRange'](_0x1b7bfe,'forward');_0x8b30f['isCollapsed']&&(_0x19714a=_0x8b30f['start']),_0x31899a['isCollapsed']&&(_0x1b7bfe=_0x31899a['end']),_0x1b6d63([_0x59c32a['model']['createRange'](_0x19714a,_0x1b7bfe)]);}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b1b2a),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b1b2a)),_0x59c32a['plugins']['has']('ImageCaptionEditing')&&(_0x3c26a['enableCommand']('toggleImageCaption',(_0x5e76e5,_0x134042)=>{const _0x57daee=_0x59c32a['plugins']['get']('ImageCaptionUtils');let _0x5b06be=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x34b762=_0x57daee['getCaptionFromImageModelElement'](_0x5b06be);_0x59c32a['model']['change'](()=>{if(_0x34b762)return void _0x3c26a['markDeletion'](_0x59c32a['model']['createRangeOn'](_0x34b762));const _0x820364=_0x4c540d['isBlockImage'](_0x5b06be);_0x5e76e5(_0x134042),_0x5b06be=_0x4c540d['getClosestSelectedImageElement'](_0x59c32a['model']['document']['selection']),_0x34b762=_0x57daee['getCaptionFromImageModelElement'](_0x5b06be),_0x3c26a['markInsertion'](_0x59c32a['model']['createRangeOn'](_0x34b762),_0x820364?null:'imageCaption');});}),_0x3c26a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b1b2a));const _0x2a74cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f973a(_0x4ba726,_0x5364de){const _0x55a4c0=_0x2a74cd['findIndex'](({type:_0x1a6214,subType:_0x283ffd})=>_0x4ba726['type']==_0x1a6214&&_0x4ba726['subType']==_0x283ffd),_0x709dd0=_0x2a74cd['findIndex'](({type:_0x642239,subType:_0x3745d6})=>_0x5364de['type']==_0x642239&&_0x5364de['subType']==_0x3745d6);if(_0x55a4c0<0x0||_0x709dd0<0x0)return!0x1;const _0x319724=_0x4ba726['getFirstRange'](),_0x1fe44c=_0x5364de['getFirstRange']();if((0x0==_0x55a4c0||0x1==_0x55a4c0)&&0x2==_0x709dd0&&_0x319724['isIntersecting'](_0x1fe44c))return!0x0;if(0x2==_0x55a4c0&&0x3==_0x709dd0){const _0xcbba27=_0x3c26a['_findSuggestions'](_0x319724,'insertion')['filter'](({suggestion:_0x4b7333,meta:_0xbfe6fd})=>_0xbfe6fd['isOwn']&&'convertInlineImageToBlock'==_0x4b7333['subType']);if(_0xcbba27['length']>0x1&&_0x1fe44c['end']['isEqual'](_0x319724['start']))return!0x0;if(0x1==_0xcbba27['length']&&(_0x319724['start']['isEqual'](_0x1fe44c['end'])||_0x319724['end']['isEqual'](_0x1fe44c['start'])))return!0x0;}if(0x3==_0x55a4c0&&0x3==_0x709dd0&&_0x319724['start']['isBefore'](_0x1fe44c['start'])){const _0x214d3e=_0x319724['end']['nodeAfter'],_0x4a30c8=_0x1fe44c['start']['nodeBefore'];return _0x4c540d['isBlockImage'](_0x214d3e)&&_0x214d3e===_0x4a30c8;}return!0x1;}function _0x2b1b2a(_0x34bd00,_0xee2904){return _0x4f973a(_0x34bd00,_0xee2904)?[_0x34bd00,_0xee2904]:_0x4f973a(_0xee2904,_0x34bd00)?[_0xee2904,_0x34bd00]:null;}_0x59c32a['plugins']['has']('ImageResize')&&(_0x3c26a['enableDefaultAttributesIntegration']('resizeImage'),_0x3c26a['registerBlockAttribute']('resizedWidth'),_0x3c26a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x21f26d,'FORMAT_IMAGE_SIZE'))),_0x59c32a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3c26a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3c26a['registerBlockAttribute']('alt')),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x26d851=>{if(!!_0x2a74cd['find'](({type:_0x164be7,subType:_0x1cf1ff})=>_0x26d851['type']==_0x164be7&&_0x26d851['subType']==_0x1cf1ff))return _0x26d851['previous']?{}:void 0x0;}),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x27df11=>{if('insertion'==_0x27df11['type']||'deletion'==_0x27df11['type']){const _0x3b8058=_0x27df11['getContainedElement']();if(_0x3b8058&&_0x3b8058['is']('element','caption'))return{'type':'insertion'==_0x27df11['type']?'addObject':'removeObject','element':_0x3b8058,'quantity':0x1};}}),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0xa42977=>'formatBlock'==_0xa42977['type']&&'convertInlineImageToBlock'==_0xa42977['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa42977['type']&&'convertBlockImageToInline'==_0xa42977['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3c26a['descriptionFactory']['registerDescriptionCallback'](_0x3c7ea8=>{if('attribute'!=_0x3c7ea8['type'])return;const {data:_0x18500a}=_0x3c7ea8;if(!_0x18500a||'alt'!=_0x18500a['key'])return;const _0x188925=_0x18500a['newValue'];return _0x188925?{'type':'format','content':o(_0x21f26d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x188925+'\x22')}:{'type':'format','content':o(_0x21f26d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b4e9=this['editor'],_0x1bcab4=_0x52b4e9['locale'];_0x52b4e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361388=>{if('formatBlock'!=_0x361388['type']&&'formatInline'!=_0x361388['type'])return;const {data:_0x1a5cb2}=_0x361388;if(_0x1a5cb2){if('imageTextAlternative'==_0x1a5cb2['commandName']){const _0x5a2ceb=_0x1a5cb2['commandParams'][0x0]['newValue'];return _0x5a2ceb?{'type':'format','content':o(_0x1bcab4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a2ceb+'\x22')}:{'type':'format','content':o(_0x1bcab4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a5cb2['commandName']){const _0x28ade7=_0x1a5cb2['commandParams'][0x0]['width'];return _0x28ade7?{'type':'format','content':o(_0x1bcab4,'*Set\x20image\x20width:*\x20%0',_0x28ade7)}:{'type':'format','content':o(_0x1bcab4,'*Reset\x20image\x20width*')};}}});}}class st extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4cfd3f=this['editor']['locale'],_0x286fa7=this['editor']['plugins']['get']('TrackChangesEditing');_0x286fa7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x286fa7['registerBlockAttribute']('src'),_0x286fa7['descriptionFactory']['registerDescriptionCallback'](_0x5e4469=>{if('attribute'!=_0x5e4469['type'])return;const {data:_0x2ccf02}=_0x5e4469;return _0x2ccf02&&'src'==_0x2ccf02['key']?_0x2ccf02['newValue']&&_0x2ccf02['oldValue']?{'type':'format','content':o(_0x4cfd3f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5527a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5527a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5527a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5527a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5527a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d0517=this['editor'],_0x1bb293=_0x5d0517['locale'];_0x5d0517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35543b=>{if('formatBlock'!=_0x35543b['type']&&'formatInline'!=_0x35543b['type'])return;const {data:_0x3e1400}=_0x35543b;if(!_0x3e1400||'replaceImageSource'!=_0x3e1400['commandName'])return;return{'type':'format','content':o(_0x1bb293,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x513c76{['afterInit'](){const _0x1832a8=this['editor'];if(!_0x1832a8['plugins']['has']('ImageStyleEditing'))return;const _0x2a6286=_0x1832a8['plugins']['get']('TrackChangesEditing'),_0x10d879=_0x1832a8['plugins']['get']('ImageUtils'),_0x2eb591={};_0x2a6286['enableCommand']('imageStyle',(_0x139683,_0x139413)=>{const _0x1f01c5=_0x1832a8['plugins']['get']('Users')['me'],_0x1fd179=_0x1832a8['commands']['get']('imageStyle');let _0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),_0x27f748=_0x1832a8['model']['createRangeOn'](_0x98bf8),_0x15212d=_0x1fd179['value'];if(_0x15212d==_0x139413['value'])return;const _0x3bda75={'commandName':'imageStyle','commandParams':[_0x139413],'formatGroupId':_0x50a7b0()};_0x1832a8['model']['change'](()=>{if(_0x2a6286['getSuggestions']()['filter'](_0x4637da=>_0x4637da['isInContent']&&_0x1f01c5==_0x4637da['author']&&('formatBlock'==_0x4637da['type']||'formatInline'==_0x4637da['type'])&&('imageStylePreApply'==_0x4637da['subType']||'imageStylePostApply'==_0x4637da['subType'])&&_0x4637da['getFirstRange']()['isEqual'](_0x27f748))['forEach'](_0x3477fe=>_0x2a6286['discardSuggestion'](_0x3477fe['head'])),_0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),_0x27f748=_0x1832a8['model']['createRangeOn'](_0x98bf8),_0x1fd179['refresh'](),_0x1832a8['commands']['get']('imageTypeInline')['refresh'](),_0x1832a8['commands']['get']('imageTypeBlock')['refresh'](),_0x15212d=_0x1fd179['value'],_0x15212d!=_0x139413['value'])return _0x10d879['isInlineImage'](_0x98bf8)&&_0x1fd179['shouldConvertImageType'](_0x139413['value'],_0x98bf8)?(_0x139683({..._0x139413,'setImageSizes':!0x1}),_0x98bf8=_0x10d879['getClosestSelectedImageElement'](_0x1832a8['model']['document']['selection']),void _0x2a6286['markBlockFormat'](_0x98bf8,{..._0x3bda75,'commandReversedParams':[{'value':_0x15212d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x10d879['isBlockImage'](_0x98bf8)?_0x2a6286['markBlockFormat'](_0x98bf8,_0x3bda75,[],'imageStylePostApply'):_0x2a6286['markInlineFormat'](_0x27f748,_0x3bda75,'imageStylePostApply'));});});for(const _0x42935a of _0x1832a8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2eb591[_0x42935a['name']]=_0x42935a['title']['toLowerCase']();_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x488bfb])=>{_0x10d879['setImageNaturalSizeAttributes'](_0x488bfb['getContainedElement']());}),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3de6d5,_0x5beda3)=>{_0x2a6286['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3de6d5,{'commandName':_0x5beda3['commandName'],'commandParams':_0x5beda3['commandReversedParams']});}),_0x2a6286['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9ee852,_0x1f2ac8){if(_0x2c2d77(_0x9ee852,_0x1f2ac8))return[_0x9ee852,_0x1f2ac8];if(_0x2c2d77(_0x1f2ac8,_0x9ee852))return[_0x1f2ac8,_0x9ee852];return null;});const _0x580ce5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c2d77(_0x40e6ee,_0x2bdca6){const _0x375b5c=_0x580ce5['findIndex'](({type:_0x4ded5f,subType:_0x577f5d})=>_0x40e6ee['type']==_0x4ded5f&&_0x40e6ee['subType']==_0x577f5d),_0x52737c=_0x580ce5['findIndex'](({type:_0x2b0ffb,subType:_0x3ea641})=>_0x2bdca6['type']==_0x2b0ffb&&_0x2bdca6['subType']==_0x3ea641);if(_0x375b5c<0x0||_0x52737c<0x0)return!0x1;const _0x4b1c65=_0x40e6ee['getFirstRange'](),_0x46df51=_0x2bdca6['getFirstRange']();if((0x0==_0x375b5c||0x1==_0x375b5c)&&0x2==_0x52737c&&_0x4b1c65['isIntersecting'](_0x46df51))return!0x0;if(0x2==_0x375b5c&&0x3==_0x52737c){const _0x185faf=_0x2a6286['_findSuggestions'](_0x4b1c65,'insertion')['filter'](({suggestion:_0x52fd36,meta:_0x1f78b6})=>_0x1f78b6['isOwn']&&'convertInlineImageToBlock'==_0x52fd36['subType']);if(_0x185faf['length']>0x1&&_0x46df51['end']['isEqual'](_0x4b1c65['start']))return!0x0;if(0x1==_0x185faf['length']&&(_0x4b1c65['start']['isEqual'](_0x46df51['end'])||_0x4b1c65['end']['isEqual'](_0x46df51['start'])))return!0x0;}if(0x3==_0x375b5c&&0x3==_0x52737c&&_0x4b1c65['start']['isBefore'](_0x46df51['start'])){const _0x52c4e7=_0x4b1c65['end']['nodeAfter'],_0x14710a=_0x46df51['start']['nodeBefore'];return _0x10d879['isBlockImage'](_0x52c4e7)&&_0x52c4e7===_0x14710a;}return!0x1;}_0x1832a8['model']['document']['registerPostFixer'](()=>{let _0x16e860=!0x1;const _0x39778=Array['from'](_0x1832a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47f2d1,data:_0x2c77a1}of _0x39778){const {group:_0x1f85cf,type:_0x2c75d4,subType:_0x354305,id:_0x172bd6}=_0x2a6286['_splitMarkerName'](_0x47f2d1);if('suggestion'==_0x1f85cf&&_0x2a6286['hasSuggestion'](_0x172bd6)){if('formatBlock'==_0x2c75d4&&('imageStylePreApply'==_0x354305||'imageStylePostApply'==_0x354305)){const _0x2cf7cc=_0x2a6286['getSuggestion'](_0x172bd6);if(_0x2c77a1['newRange']){const _0x2cbf96=_0x2cf7cc['getFirstRange']()['getContainedElement']();if(_0x10d879['isBlockImage'](_0x2cbf96))continue;_0x2a6286['discardSuggestion'](_0x2cf7cc),_0x16e860=!0x0;}}if('insertion'==_0x2c75d4&&'imageCaption'==_0x354305&&!_0x2c77a1['newRange']){const _0xbf0bad=_0x2a6286['getSuggestion'](_0x172bd6);_0xbf0bad['next']&&_0xbf0bad['next']['isInContent']&&(_0x2a6286['discardSuggestion'](_0xbf0bad['next']),_0x16e860=!0x0);}}}return _0x16e860;}),this['_registerLegacyDescription'](_0x2eb591);}['_registerLegacyDescription'](_0x1cf8d0){const _0x2d0ab9=this['editor'],_0x1b4f8c=_0x2d0ab9['locale'];_0x2d0ab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1866f5=>{if('formatBlock'!=_0x1866f5['type']&&'formatInline'!=_0x1866f5['type'])return;const {data:_0x1bce54}=_0x1866f5;if(!_0x1bce54||'imageStyle'!=_0x1bce54['commandName'])return;const _0x548b34=_0x1bce54['commandParams'][0x0]['value'];return _0x4142e2('side'===_0x548b34?o(_0x1b4f8c,'FORMAT_SIDE_IMAGE'):_0x1cf8d0[_0x548b34]||_0x548b34);function _0x4142e2(_0x486590){return{'type':'format','content':o(_0x1b4f8c,'*Format:*\x20%0',_0x486590)};}});}}class ot extends _0x513c76{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4324b0){super(_0x4324b0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44de17=this['editor'],_0xf7e172=_0x44de17['commands']['get']('importWord'),_0x192a06=_0x44de17['commands']['get']('trackChanges');_0xf7e172&&(_0xf7e172['on']('execute',(_0x1bbc79,[,_0x29fb58])=>{this['_trackChangesValueDuringImport']=_0x192a06['value'],_0x29fb58['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf7e172,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf7e172,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x192a06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44de17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x8a3e6e,_0x8a032f){const {suggestions:_0x13a1c0}=_0x8a032f,_0x584372=this['editor']['commands']['get']('trackChanges'),_0x49600b=_0x584372['value'];this['_trackChangesValueDuringImport']!==_0x49600b&&(_0x584372['execute'](),this['_trackChangesExecuted']=!0x0),_0x13a1c0&&_0x13a1c0['forEach'](({id:_0x6a76a9,type:_0x348da5,author:_0x2ae06e,created_at:_0x131439})=>{const _0x5c2b7d={'id':_0x6a76a9,'type':_0x348da5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ae06e,'createdAt':_0x131439?new Date(_0x131439):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c2b7d);});}}class rt extends _0x513c76{['afterInit'](){const _0x40547d=this['editor'],_0x71082e=_0x40547d['plugins']['get']('TrackChangesEditing');if(_0x40547d['plugins']['has']('IndentEditing')&&(_0x71082e['enableCommand']('indent'),_0x71082e['enableCommand']('outdent')),_0x40547d['plugins']['has']('IndentBlock')){for(const _0x5722c2 of['indentBlock','outdentBlock'])_0x71082e['enableDefaultAttributesIntegration'](_0x5722c2);}const _0x1e9db0=_0x40547d['locale'];_0x71082e['registerBlockAttribute']('blockIndent'),_0x71082e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1e9db0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x598155=this['editor'],_0x216997=_0x598155['locale'],_0x2982e1=_0x598155['plugins']['get']('TrackChangesEditing');_0x2982e1['descriptionFactory']['registerDescriptionCallback'](_0x20c309=>{if('formatBlock'!=_0x20c309['type'])return;const {data:_0x1570c8}=_0x20c309;if(!_0x1570c8)return;if('indentBlock'!=_0x1570c8['commandName']&&'outdentBlock'!=_0x1570c8['commandName'])return;const _0x332b3d=_0x20c309['getItems']()[0x0],_0x5ccba7=_0x2982e1['descriptionFactory']['getItemLabel'](_0x332b3d);return'indentBlock'==_0x1570c8['commandName']?{'type':'format','content':o(_0x216997,'*Indent:*\x20%0',_0x5ccba7)}:'outdentBlock'==_0x1570c8['commandName']?{'type':'format','content':o(_0x216997,'*Outdent:*\x20%0',_0x5ccba7)}:void 0x0;});}}class at extends _0x513c76{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x513c76{['afterInit'](){const _0x52d049=this['editor'];if(!_0x52d049['plugins']['has']('LinkEditing'))return;const _0x5b5d73=_0x52d049['plugins']['get']('TrackChangesEditing'),_0x55362b=_0x52d049['commands']['get']('link');_0x5b5d73['enableDefaultAttributesIntegration']('link'),_0x5b5d73['enableDefaultAttributesIntegration']('unlink'),_0x5b5d73['registerInlineAttribute']('linkHref');for(const _0x2d24f1 of _0x55362b['manualDecorators'])_0x5b5d73['registerInlineAttribute'](_0x2d24f1['id']),_0x5b5d73['descriptionFactory']['registerAttributeLabel'](_0x2d24f1['id'],'link\x20('+_0x2d24f1['label']['toLowerCase']()+')');_0x5b5d73['descriptionFactory']['registerDescriptionCallback'](_0x998682=>{if('attribute'!=_0x998682['type'])return;const {data:_0x20fb8b}=_0x998682;if(!_0x20fb8b||'linkHref'!=_0x20fb8b['key'])return;const _0x37fa4c=_0x20fb8b['newValue'],_0x431b6a=_0x52d049['locale'];return{'type':'format','content':null==_0x37fa4c?o(_0x431b6a,'*Remove\x20link*'):o(_0x431b6a,'*Set\x20link:*\x20%0','\x22'+_0x37fa4c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f2ec=this['editor'],_0x3bfe80=_0x39f2ec['locale'];_0x39f2ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f678=>{if('formatInline'!=_0x59f678['type'])return;const {data:_0x5b740e}=_0x59f678;if(_0x5b740e){if('link'==_0x5b740e['commandName']){const _0x2c018b=_0x5b740e['commandParams'][0x0];return{'type':'format','content':o(_0x3bfe80,'*Set\x20link:*\x20%0','\x22'+_0x2c018b+'\x22')};}return'unlink'==_0x5b740e['commandName']?{'type':'format','content':o(_0x3bfe80,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x513c76{['afterInit'](){const _0x236fdf=this['editor'],_0x584261=_0x236fdf['locale'];if(!_0x236fdf['plugins']['has']('LegacyListEditing'))return;const _0x3875c3=_0x236fdf['plugins']['get']('TrackChangesEditing'),_0x71bddb=_0x236fdf['plugins']['has']('LegacyTodoListEditing');function _0x25432a(_0x33b3eb){return()=>{const _0x3e87c8=_0x236fdf['model']['document']['selection'],_0x38240d=_0x236fdf['commands']['get'](_0x33b3eb);if(_0x38240d['value'])return void _0x236fdf['execute']('paragraph',{});const _0xe9f2c5=_0x33b3eb['slice'](0x0,-0x4),_0x1b62b7=function(_0x3de0f9,_0x4e0dbd,_0x47a277){let _0x3cb1a4=Array['from'](_0x3de0f9)['filter'](_0x5d4fa6=>function(_0x4bf6e4,_0x126ff4){return _0x126ff4['checkChild'](_0x4bf6e4['parent'],'listItem')&&!_0x126ff4['isObject'](_0x4bf6e4);}(_0x5d4fa6,_0x47a277));_0x3cb1a4=_0x3cb1a4['filter'](_0x20b951=>!_0x20b951['is']('element','listItem')||_0x20b951['getAttribute']('listType')!=_0x4e0dbd);const _0x3d6830=new Set();for(const _0x331f3c of _0x3cb1a4)_0x331f3c['is']('element','listItem')?_0x3d6830['add'](me(_0x331f3c)):_0x3d6830['add'](_0x331f3c);return Array['from'](_0x3d6830);}(_0x3e87c8['getSelectedBlocks'](),_0xe9f2c5,_0x236fdf['model']['schema']);_0x236fdf['model']['change'](()=>{for(const _0x11582f of _0x1b62b7)_0x3875c3['markBlockFormat'](_0x11582f,{'commandName':_0x33b3eb,'commandParams':[{'forceValue':!_0x38240d['value']}],'formatGroupId':'blockName'},fe(_0x11582f));});};}function _0x1632e0(_0x3d47a9){return()=>{const _0x4ea136=function(_0x40f4ab){let _0x30f4f3=Array['from'](_0x40f4ab);const _0x73aca0=_0x30f4f3['findIndex'](_0x103d48=>'listItem'!=_0x103d48['name']);return _0x73aca0>-0x1&&(_0x30f4f3=_0x30f4f3['slice'](0x0,_0x73aca0)),_0x30f4f3;}(_0x236fdf['model']['document']['selection']['getSelectedBlocks']()),_0x12bb76=_0x236fdf['model']['createRange'](_0x236fdf['model']['createPositionAt'](_0x4ea136[0x0],'before'),_0x236fdf['model']['createPositionAt'](_0x4ea136[_0x4ea136['length']-0x1],'end'));_0x236fdf['model']['change'](()=>{_0x3875c3['markBlockFormat'](_0x12bb76,{'commandName':_0x3d47a9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x25a3d1){const _0x158b1e=new Set();for(const _0x24a4f0 of _0x25a3d1){let _0x1f31c3=_0x24a4f0['nextSibling'];for(;_0x1f31c3&&_0x1f31c3['getAttribute']('listIndent')>_0x24a4f0['getAttribute']('listIndent');)_0x158b1e['add'](_0x1f31c3),_0x1f31c3=_0x1f31c3['nextSibling'];}return Array['from'](_0x158b1e);}(_0x4ea136));});};}_0x3875c3['enableCommand']('numberedList',_0x25432a('numberedList')),_0x3875c3['enableCommand']('bulletedList',_0x25432a('bulletedList')),_0x71bddb&&_0x3875c3['enableCommand']('todoList',_0x25432a('todoList')),_0x3875c3['enableCommand']('indentList',_0x1632e0('indentList')),_0x3875c3['enableCommand']('outdentList',_0x1632e0('outdentList')),_0x71bddb&&_0x3875c3['enableCommand']('checkTodoList',()=>{const _0x51b144=_0x236fdf['commands']['get']('checkTodoList'),_0x63dac2=Array['from'](_0x51b144['_selectedElements']);_0x63dac2['filter'](_0x4d9cc1=>_0x4d9cc1['getAttribute']('todoListChecked')!=_0x51b144['value']),_0x236fdf['model']['change'](()=>{for(const _0xb94ed4 of _0x63dac2)_0x3875c3['markBlockFormat'](_0xb94ed4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x51b144['value']}]});});}),_0x3875c3['descriptionFactory']['registerElementLabel']('listItem',_0x3af9f0=>o(_0x584261,'ELEMENT_LIST_ITEM',_0x3af9f0)),_0x3875c3['descriptionFactory']['registerDescriptionCallback'](_0x1092c4=>{if('formatBlock'!=_0x1092c4['type']&&'formatInline'!=_0x1092c4['type'])return;const {data:_0xf8f9de}=_0x1092c4;if(_0xf8f9de){if('numberedList'==_0xf8f9de['commandName']||'bulletedList'==_0xf8f9de['commandName']||'todoList'==_0xf8f9de['commandName'])switch(_0xf8f9de['commandName']['replace']('List','')){case'bulleted':return _0x3b7e1b(o(_0x584261,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b7e1b(o(_0x584261,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b7e1b(o(_0x584261,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf8f9de['commandName'])return{'type':'format','content':o(_0x584261,'*Indent:*\x20%0',o(_0x584261,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf8f9de['commandName'])return{'type':'format','content':o(_0x584261,'*Outdent:*\x20%0',o(_0x584261,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf8f9de['commandName'])return _0xf8f9de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584261,'*Check\x20item*')}:{'type':'format','content':o(_0x584261,'*Uncheck\x20item*')};}function _0x3b7e1b(_0x4c319a){return{'type':'format','content':o(_0x584261,'*Change\x20to:*\x20%0',_0x4c319a)};}});}}function me(_0x6a4191){const _0x1fc564=_0x6a4191['getAttribute']('listIndent');if(0x0==_0x1fc564)return _0x6a4191;let _0x5d6350=_0x6a4191;for(;_0x6a4191['previousSibling']&&_0x6a4191['previousSibling']['is']('element','listItem');){const _0x43b179=_0x6a4191['previousSibling']['getAttribute']('listIndent');if(_0x43b179==_0x1fc564)_0x5d6350=_0x6a4191['previousSibling'];else{if(_0x43b179<_0x1fc564)break;}_0x6a4191=_0x6a4191['previousSibling'];}return _0x5d6350;}function fe(_0x4c79ef){const _0x4e7adf=[];if(_0x4c79ef['is']('element','listItem')&&_0x4c79ef['getAttribute']('listIndent')>0x0){let _0x33a013=_0x4c79ef['nextSibling'];for(;_0x33a013&&'listItem'==_0x33a013['name']&&_0x33a013['getAttribute']('listIndent')==_0x4c79ef['getAttribute']('listIndent');)_0x4e7adf['push'](_0x33a013),_0x33a013=_0x33a013['nextSibling'];}return _0x4e7adf;}class K extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33a7ac=this['editor']['config']['get']('list.properties'),_0x184e75=this['editor']['plugins']['get']('TrackChangesEditing');_0x33a7ac['styles']&&_0x184e75['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33a7ac['reversed']&&_0x184e75['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33a7ac['startIndex']&&_0x184e75['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x184e75['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x316b1c,_0x581461={}){const _0x25dbe1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106695=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x25dbe1['markMultiRangeBlockFormat'](_0x106695,{'commandName':'listStyle','commandParams':[{'type':_0x581461['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d885a,_0x93c59b={}){const _0x127baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x369b0d=this['_getSuggestionBlocks'](_0x240efe=>_0x240efe['is']('element','listItem')&&'numbered'===_0x240efe['getAttribute']('listType'));if(_0x369b0d['length']<0x1)return;const _0xe44323=_0x369b0d['map'](_0x2b8991=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b8991,'before'),this['editor']['model']['createPositionAt'](_0x2b8991,0x0)));this['editor']['model']['change'](()=>{_0x127baa['markMultiRangeBlockFormat'](_0xe44323,{'commandName':'listReversed','commandParams':[{'reversed':_0x93c59b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x527346,_0x45df6d={}){const _0x1b4992=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16fe61=this['_getSuggestionBlocks'](_0x53f28f=>_0x53f28f['is']('element','listItem')&&'numbered'===_0x53f28f['getAttribute']('listType'));if(_0x16fe61['length']<0x1)return;const _0x19f6c4=_0x16fe61['map'](_0x2fea41=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fea41,'before'),this['editor']['model']['createPositionAt'](_0x2fea41,0x0)));this['editor']['model']['change'](()=>{_0x1b4992['markMultiRangeBlockFormat'](_0x19f6c4,{'commandName':'listStart','commandParams':[{'startIndex':_0x45df6d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47e2bc){if('formatBlock'!=_0x47e2bc['type']&&'formatInline'!=_0x47e2bc['type'])return;const _0x5c497e=this['editor']['locale'],{data:_0x3bb27d}=_0x47e2bc;if(!_0x3bb27d)return;let _0x248f74,_0x1f202a;switch(_0x3bb27d['commandName']){case'listStyle':_0x248f74='*Change\x20to:*\x20%0',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74,o(_0x5c497e,this['_getTranslationKeyForListStyle'](_0x3bb27d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x248f74=_0x3bb27d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74)};break;case'listStart':_0x248f74='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f202a={'type':'format','content':o(_0x5c497e,_0x248f74,_0x3bb27d['commandParams'][0x0]['startIndex'])};}return _0x1f202a;}['_getSuggestionBlocksForListStyle'](){const _0x3639de=this['editor']['plugins']['get']('LegacyListUtils');let _0x1239a9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1239a9[0x0]?.['is']('element','listItem')&&_0x1239a9['unshift'](..._0x3639de['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1239a9[_0x1239a9['length']-0x1]?.['is']('element','listItem')&&_0x1239a9['push'](..._0x3639de['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1239a9=[...new Set(_0x1239a9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1239a9=_0x1239a9['filter'](_0x463db4=>_0x463db4['is']('element','listItem'))),_0x1239a9;}['_getSuggestionBlocks'](_0x227d13){const _0x50c174=this['editor']['plugins']['get']('LegacyListUtils');let _0x7b4f1c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x227d13)['map'](_0x36783a=>{const _0x1b6391=this['editor']['model']['createPositionAt'](_0x36783a,0x0);return[..._0x50c174['getSiblingNodes'](_0x1b6391,'backward'),..._0x50c174['getSiblingNodes'](_0x1b6391,'forward')];})['flat']();return _0x7b4f1c=[...new Set(_0x7b4f1c)],_0x7b4f1c;}['_getTranslationKeyForListStyle'](_0x1fdc41){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1fdc41)||'default')['toUpperCase']()+'_LIST_'+_0x1fdc41['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x513c76{['afterInit'](){const _0x30227b=this['editor'];if(!_0x30227b['plugins']['has']('MediaEmbedEditing'))return;const _0x14d46c=_0x30227b['plugins']['get']('TrackChangesEditing'),_0x52eff4=_0x30227b['locale'];_0x14d46c['enableCommand']('mediaEmbed'),_0x14d46c['descriptionFactory']['registerElementLabel']('media',_0x439752=>o(_0x52eff4,'ELEMENT_MEDIA',_0x439752)),_0x30227b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5f1835,{writer:_0x3202e7,options:_0xfcb485})=>{if(_0xfcb485['showSuggestionHighlights'])return _0x3202e7['createEmptyElement']('div');},'converterPriority':'high'}),_0x30227b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5dddf3,_0x3b68f2,_0xb23839)=>{_0xb23839['options']['showSuggestionHighlights']&&_0x5dddf3['stop']();},{'priority':'high'});}}class gt extends _0x513c76{['afterInit'](){const _0x5d707a=this['editor'];_0x5d707a['plugins']['has']('MentionEditing')&&_0x5d707a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x513c76{['afterInit'](){const _0x3e20dd=this['editor'],_0xaa07a9=_0x3e20dd['plugins']['get']('TrackChangesEditing');_0x3e20dd['plugins']['has']('MultiLevelList')&&(_0xaa07a9['enableDefaultAttributesIntegration']('multiLevelList'),_0xaa07a9['registerBlockAttribute']('listMarkerStyle'),_0xaa07a9['descriptionFactory']['registerDescriptionCallback'](_0x573d2e=>this['handleDescriptions'](_0x573d2e)));}['handleDescriptions'](_0x39afdd){const _0x118a83=this['editor']['locale'],{data:_0x425cc0}=_0x39afdd,_0x28d479={'type':'format','content':''};if(_0x425cc0&&'listMarkerStyle'==_0x425cc0['key']){if(!_0x425cc0['oldValue'])return{'type':'format','content':o(_0x118a83,'*Set\x20format:*\x20%0',o(_0x118a83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x425cc0['newValue']+')'};if(!_0x425cc0['newValue']){let _0x39bb85=_0x39afdd['head'];for(;_0x39bb85;){if(_0x39bb85['data']&&'listType'==_0x39bb85['data']['key']&&_0x39bb85['data']['newValue'])return _0x28d479;_0x39bb85=_0x39bb85['next'];}return{'type':'format','content':o(_0x118a83,'*Remove\x20format:*\x20%0',o(_0x118a83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x425cc0['oldValue']+')'};}}}}class mt extends _0x513c76{['afterInit'](){const _0x5a0b63=this['editor'];if(!_0x5a0b63['plugins']['has']('PageBreakEditing'))return;_0x5a0b63['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1be0dd=_0x5a0b63['plugins']['get']('TrackChangesEditing'),_0x41a552=_0x5a0b63['locale'];_0x1be0dd['descriptionFactory']['registerElementLabel']('pageBreak',_0x366324=>o(_0x41a552,'ELEMENT_PAGE_BREAK',_0x366324));}}class dt extends _0x513c76{['afterInit'](){const _0x47f162=this['editor'];if(!_0x47f162['plugins']['has']('Paragraph'))return;const _0x332193=_0x47f162['locale'],_0x2029ef=_0x47f162['plugins']['get']('TrackChangesEditing');_0x2029ef['descriptionFactory']['registerElementLabel']('paragraph',_0x35c03c=>o(_0x332193,'ELEMENT_PARAGRAPH',_0x35c03c)),_0x2029ef['enableDefaultAttributesIntegration']('paragraph'),_0x2029ef['enableCommand']('insertParagraph'),_0x47f162['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x47f162),{'priority':'highest'}),_0x47f162['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a2e1d,_0x3d6541,_0x109f77)=>{_0x109f77['options']['showSuggestionHighlights']&&nr(_0x47f162,{'showActiveMarker':!0x1})(_0x3a2e1d,_0x3d6541,_0x109f77);},{'priority':'highest'});const _0x19e050=_0x2029ef['descriptionFactory'];_0x19e050['registerDescriptionCallback'](_0x3f4f84=>{if('insertion'!==_0x3f4f84['type'])return;const {start:_0x5382d5,end:_0x17f8d8}=_0x3f4f84['getFirstRange']();if(!_0x5382d5['isTouching'](_0x17f8d8)||!_0x5382d5['nodeAfter'])return;const _0x319bae=_0x47f162['model']['schema'],_0x5755ec=_0x5382d5['nodeAfter'];return _0x319bae['isBlock'](_0x5755ec)&&!_0x319bae['isLimit'](_0x5755ec)&&_0x319bae['checkChild'](_0x5755ec,'$text')?{'type':'insertion','content':o(_0x332193,'*Insert:*\x20%0',_0x19e050['getItemLabel'](_0x5755ec,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x425873=this['editor'],_0x245ad2=_0x425873['locale'];_0x425873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c8651=>{if('formatBlock'!=_0x5c8651['type'])return;const {data:_0x4a4a94}=_0x5c8651;return _0x4a4a94&&'paragraph'==_0x4a4a94['commandName']?{'type':'format','content':o(_0x245ad2,'*Change\x20to:*\x20%0',o(_0x245ad2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb6165d,{showActiveMarker:_0xd71735=!0x0}={}){return(_0xcbeff4,_0x50f692,_0x40f1d7)=>{const _0x5e4896=_0xb6165d['plugins']['get']('TrackChangesEditing'),_0x5bddfd=_0x50f692['markerRange']['start'],_0xea7f93=_0x50f692['markerRange']['end'],_0x444b32=_0xb6165d['model']['schema'];if(!_0x5bddfd['isTouching'](_0xea7f93)||!_0x5bddfd['nodeAfter'])return;const _0x911f85=_0x5bddfd['nodeAfter'];if(_0x444b32['isBlock'](_0x911f85)&&!_0x444b32['isLimit'](_0x911f85)&&_0x444b32['checkChild'](_0x911f85,'$text')){if(!_0x40f1d7['consumable']['consume'](_0x50f692['markerRange'],_0xcbeff4['name']))return;const _0x261286=_0x40f1d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x27d7d5=_0x40f1d7['mapper']['toViewPosition'](_0xea7f93);_0xd71735&&_0x5e4896['activeMarkers']['includes'](_0x50f692['markerName'])&&_0x40f1d7['writer']['addClass']('ck-suggestion-marker--active',_0x261286),_0x40f1d7['writer']['insert'](_0x27d7d5,_0x261286),_0x40f1d7['mapper']['bindElementToMarker'](_0x261286,_0x50f692['markerName']);}};}class pt extends _0x513c76{['afterInit'](){const _0x3b77c2=this['editor'];if(!_0x3b77c2['plugins']['has']('RemoveFormatEditing'))return;_0x3b77c2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bbc59=this['editor'];_0x4bbc59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372ee8=>{if('formatBlock'!=_0x372ee8['type']&&'formatInline'!=_0x372ee8['type'])return;const {data:_0x5a8456}=_0x372ee8;return _0x5a8456&&'removeFormat'==_0x5a8456['commandName']?{'type':'format','content':o(_0x4bbc59['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x513c76{['afterInit'](){const _0x43fd95=this['editor'];if(!_0x43fd95['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54b6b7=_0x43fd95['plugins']['get']('TrackChangesEditing');_0x54b6b7['enableCommand']('goToPreviousRestrictedEditingException'),_0x54b6b7['enableCommand']('goToNextRestrictedEditingException');const _0x5060a3=_0x43fd95['plugins']['get']('RestrictedEditingModeEditing');_0x5060a3['enableCommand']('trackChanges'),_0x5060a3['enableCommand']('acceptSuggestion'),_0x5060a3['enableCommand']('discardSuggestion'),_0x5060a3['enableCommand']('acceptAllSuggestions'),_0x5060a3['enableCommand']('discardAllSuggestions'),_0x5060a3['enableCommand']('acceptSelectedSuggestions'),_0x5060a3['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x513c76{static get['requires'](){return[_0x1fe66a];}['init'](){const _0xe5b1d6=this['editor'],_0x377170=_0xe5b1d6['plugins']['get']('TrackChangesEditing');_0x377170['enableCommand']('shiftEnter'),_0xe5b1d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xe5b1d6),{'priority':'high'}),_0xe5b1d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xe5b1d6),{'priority':'high'}),_0xe5b1d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x328a65,_0x56bfd8,_0x5454e5)=>{_0x5454e5['options']['showSuggestionHighlights']&&de(_0xe5b1d6,{'showActiveMarker':!0x1})(_0x328a65,_0x56bfd8,_0x5454e5);}),_0x377170['descriptionFactory']['registerElementLabel']('softBreak',_0x1d0deb=>o(_0xe5b1d6['locale'],'ELEMENT_LINE_BREAK',_0x1d0deb));}}function de(_0x18caa9,{showActiveMarker:_0x34e91e=!0x0}={}){return(_0x483810,_0x2d9681,_0x528d4d)=>{const _0x44c137=_0x18caa9['plugins']['get']('TrackChangesEditing');if(!_0x528d4d['consumable']['test'](_0x2d9681['markerRange'],_0x483810['name']))return;const _0x544b87=_0x18caa9['model'];for(const _0x1a8273 of _0x2d9681['markerRange']['getItems']()){if(!_0x1a8273['is']('element','softBreak'))continue;const _0x262b2a='deletion'==_0x2d9681['markerName']['split'](':')[0x1]?'merge':'split',_0x470472=_0x528d4d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x262b2a}),_0x4d3145=_0x528d4d['mapper']['toViewPosition'](_0x544b87['createPositionBefore'](_0x1a8273));_0x34e91e&&_0x44c137['activeMarkers']['includes'](_0x2d9681['markerName'])&&_0x528d4d['writer']['addClass']('ck-suggestion-marker--active',_0x470472),_0x528d4d['writer']['insert'](_0x4d3145,_0x470472),_0x528d4d['mapper']['bindElementToMarker'](_0x470472,_0x2d9681['markerName']);}};}class wt extends _0x513c76{['afterInit'](){const _0x4ca209=this['editor'],_0xe965f1=_0x4ca209['model'],_0x4c1635=_0x4ca209['locale'];if(!_0x4ca209['plugins']['has']('StandardEditingModeEditing'))return;const _0x391233=_0x4ca209['plugins']['get']('TrackChangesEditing'),_0x5ce6de='restrictedEditingException',_0xb4db86=_0x4ca209['commands']['get'](_0x5ce6de);_0x391233['enableCommand'](_0x5ce6de,(_0x2683c7,_0x3f8903={})=>{const _0x3a32b4=_0xe965f1['document']['selection'];if(_0x3a32b4['isCollapsed'])return void _0x2683c7(_0x3f8903);const _0x4cee48=void 0x0!==_0x3f8903['forceValue']?_0x3f8903['forceValue']:!_0xb4db86['value'];_0xe965f1['change'](()=>{const _0x18addc=Array['from'](_0x3a32b4['getRanges']());for(const _0x5216b1 of _0x18addc){const _0x445b5b=_0x4cee48?[_0x5216b1]:io(_0x5ce6de,_0x5216b1,_0xe965f1);for(const _0x4d7159 of _0x445b5b)_0x391233['markInlineFormat'](_0x4d7159,{'commandName':_0x5ce6de,'commandParams':[{'forceValue':_0x4cee48}]});}});}),_0x391233['descriptionFactory']['registerDescriptionCallback'](_0x5939b8=>{if('formatBlock'!=_0x5939b8['type']&&'formatInline'!=_0x5939b8['type'])return;const {data:_0x7a899f}=_0x5939b8;return _0x7a899f&&_0x7a899f['commandName']==_0x5ce6de?_0x7a899f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c1635,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c1635,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x513c76{['afterInit'](){const _0x24b69b=this['editor'];if(!_0x24b69b['plugins']['has']('Style')||!_0x24b69b['plugins']['has']('DataSchema'))return;const _0xd07a8e=_0x24b69b['plugins']['get']('TrackChangesEditing'),_0x108615=_0x24b69b['locale'],_0x39b8ce=_0x24b69b['config']['get']('style')||{},_0x4e809d=_0x24b69b['plugins']['get']('GeneralHtmlSupport'),_0x350364=_0x24b69b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x24b69b['plugins']['get']('DataSchema'),_0x39b8ce['definitions']);_0xd07a8e['enableDefaultAttributesIntegration']('style');const _0x1c4084=new Set();for(const _0x24efd2 of _0x350364['block']){const _0x46fb86=_0x4e809d['getGhsAttributeNameForElement'](_0x24efd2['element']);_0x1c4084['add'](_0x46fb86);}const _0x2ee02a=new Set();for(const _0x132192 of _0x350364['inline']){const _0x4fb210=_0x4e809d['getGhsAttributeNameForElement'](_0x132192['element']);_0x2ee02a['add'](_0x4fb210);for(const _0x762ad5 of _0x132192['ghsAttributes'])_0x2ee02a['add'](_0x762ad5);}for(const _0x1fa947 of _0x1c4084)_0xd07a8e['registerBlockAttribute'](_0x1fa947),_0xd07a8e['descriptionFactory']['registerAttributeLabel'](_0x1fa947,o(_0x108615,'FORMAT_STYLE'));for(const _0x42b981 of _0x2ee02a)_0xd07a8e['registerInlineAttribute'](_0x42b981),_0xd07a8e['descriptionFactory']['registerAttributeLabel'](_0x42b981,o(_0x108615,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28e0fb=this['editor'],_0x576d77=_0x28e0fb['locale'];_0x28e0fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x73c80=>{if('formatBlock'!=_0x73c80['type']&&'formatInline'!=_0x73c80['type'])return;const {data:_0x1f6c94}=_0x73c80;return _0x1f6c94&&'style'===_0x1f6c94['commandName']?_0x1f6c94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576d77,'*Set\x20format:*\x20%0',_0x1f6c94['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x576d77,'*Remove\x20format:*\x20%0',_0x1f6c94['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x513c76{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xd31629){super(_0xd31629),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4bde3f=this['editor'],_0x2e1a29=_0x4bde3f['model']['document']['selection'];if(!_0x4bde3f['plugins']['has']('TableEditing'))return;const _0x12363c=_0x4bde3f['locale'],_0x40384e=_0x4bde3f['plugins']['get']('TrackChangesEditing'),_0x684f85=_0x4bde3f['plugins']['get']('TableUtils');_0x40384e['descriptionFactory']['registerElementLabel']('table',_0xecac6c=>o(_0x12363c,'ELEMENT_TABLE',_0xecac6c)),this['_setupColumnsRowsFixing'](),_0x40384e['enableCommand']('insertTable'),_0x40384e['enableCommand']('selectTableRow'),_0x40384e['enableCommand']('selectTableColumn');for(const _0x109f9e of['insertTableRowAbove','insertTableRowBelow']){const _0x221990=_0x4bde3f['commands']['get'](_0x109f9e);_0x40384e['enableCommand'](_0x109f9e,_0x2d38e5=>{_0x4bde3f['model']['change'](_0x4c7a0b=>{_0x2d38e5();const _0x37b189='above'===_0x221990['order'],_0x468d08=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x1cf6aa=_0x684f85['getRowIndexes'](_0x468d08),_0x49acd5=_0x37b189?_0x1cf6aa['first']-0x1:_0x1cf6aa['last']+0x1,_0x3c1910=_0x468d08[0x0]['findAncestor']('table'),_0x267947=_0x684f85['createTableWalker'](_0x3c1910,{'startRow':_0x49acd5,'endRow':_0x49acd5}),_0x486747=Array['from'](_0x267947)['map'](_0x278051=>_0x4c7a0b['createRangeOn'](_0x278051['cell']));_0x40384e['markMultiRangeInsertion'](_0x486747,'tableRow');});});}for(const _0x20bbaa of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b4da2=_0x4bde3f['commands']['get'](_0x20bbaa);_0x40384e['enableCommand'](_0x20bbaa,_0x35b9bb=>{_0x4bde3f['model']['change'](_0x4f982c=>{_0x35b9bb();const _0x10df88='left'===_0x2b4da2['order'],_0x1c33e7=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x4537ab=_0x684f85['getColumnIndexes'](_0x1c33e7),_0x522f03=_0x10df88?_0x4537ab['first']-0x1:_0x4537ab['last']+0x1,_0xd4541d=_0x1c33e7[0x0]['findAncestor']('table'),_0x5ab250=_0x684f85['createTableWalker'](_0xd4541d,{'startRow':0x0,'column':_0x522f03,'includeAllSlots':!0x1}),_0x48145e=Array['from'](_0x5ab250)['map'](_0x1e3265=>_0x4f982c['createRangeOn'](_0x1e3265['cell']));_0x40384e['markMultiRangeInsertion'](_0x48145e,'tableColumn');});});}for(const _0x51f952 of['removeTableRow','removeTableColumn']){const _0x21c54a=_0x51f952['substr'](0xb),_0x57b9dd=_0x21c54a['toLowerCase'](),_0x22ddcd=_0x57b9dd['substr'](0x0,0x3)+'span',_0x30e4cc='table'+_0x21c54a,_0x1e3bed='min'+_0x21c54a,_0x10e0c4='max'+_0x21c54a;_0x40384e['enableCommand'](_0x51f952,()=>{_0x4bde3f['model']['change'](_0x2fd89d=>{const _0x27a1cc=_0x684f85['getSelectionAffectedTableCells'](_0x2e1a29),_0x41d6e6=_0x27a1cc[0x0]['findAncestor']('table');let _0x24535a;if('removeTableRow'==_0x51f952){const _0x3e64ba=_0x684f85['getRowIndexes'](_0x27a1cc);_0x24535a={'startRow':_0x3e64ba['first'],'endRow':_0x3e64ba['last'],'includeAllSlots':!0x0};}else{const _0x191b2f=_0x684f85['getColumnIndexes'](_0x27a1cc);_0x24535a={'startColumn':_0x191b2f['first'],'endColumn':_0x191b2f['last'],'includeAllSlots':!0x0};}const _0x34d4a0=_0x684f85['createTableWalker'](_0x41d6e6,_0x24535a),_0x246921=Array['from'](_0x34d4a0)['map'](({cell:_0x5eedc6})=>_0x5eedc6),_0x4bd579=Ee(_0x246921['filter'](_0x172611=>_0x172611['hasAttribute'](_0x22ddcd))),_0x128ced=Ee(_0x246921['filter'](_0x3a1ba6=>!_0x3a1ba6['hasAttribute'](_0x22ddcd)))['map'](_0x41054d=>_0x2fd89d['createRangeOn'](_0x41054d)),_0x167001=_0x40384e['markMultiRangeDeletion'](_0x128ced,_0x30e4cc);if(_0x167001&&('tableRow'==_0x167001['subType']||'tableColumn'==_0x167001['subType'])){const _0x474d1c=this['_getSuggestionCoords'](_0x167001);for(const _0x54c487 of _0x4bd579){const _0x50b42e=_0x2fd89d['createRangeOn'](_0x54c487),_0xf8af5e=_0x684f85['getCellLocation'](_0x54c487),_0x28e2ec=_0x54c487['getAttribute'](_0x22ddcd)-0x1,_0x381c76=_0x474d1c[_0x1e3bed],_0x2e82c3=_0x474d1c[_0x10e0c4];_0x381c76<=_0xf8af5e[_0x57b9dd]&&_0xf8af5e[_0x57b9dd]+_0x28e2ec<=_0x2e82c3&&_0x167001['addRange'](_0x50b42e);}}});});}function _0x31eca4(_0x1afe1c){const _0x286b9a=Array['from'](_0x2e1a29['getRanges']())['map'](_0x5eacce=>_0x1677da['fromRange'](_0x5eacce));_0x4bde3f['model']['change'](_0x1abd94=>{const _0x1c2d24=_0x1abd94['batch'];_0x1afe1c=_0x1afe1c['filter'](_0x2436de=>'$graveyard'!=_0x2436de['root']['rootName']),_0x1abd94['setSelection'](_0x1afe1c),_0x4bde3f['commands']['get']('removeTableRow')['refresh'](),_0x4bde3f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4bde3f['model']['enqueueChange'](()=>{_0x4bde3f['model']['enqueueChange'](_0x1c2d24,_0x2af531=>{const _0x24fecd=_0x286b9a['filter'](_0x4545d0=>'$graveyard'!=_0x4545d0['root']['rootName']);_0x24fecd['length']>0x0&&_0x2af531['setSelection'](_0x24fecd);for(const _0x52f4ab of _0x286b9a)_0x52f4ab['detach']();});});});}function _0x332818(_0xed1c65){_0x4bde3f['model']['change'](_0x1e289a=>{const _0x4d46f1=Array['from'](_0x2e1a29['getRanges']())['map'](_0x57cd60=>_0x1677da['fromRange'](_0x57cd60)),_0x517a94=[];for(const _0x6a6e81 of _0xed1c65)for(const _0x4aced1 of _0x6a6e81['getItems']({'shallow':!0x0}))_0x517a94['push'](_0x4aced1);for(const _0x309b9b of _0x517a94)'$graveyard'!=_0x309b9b['root']['rootName']&&(_0x1e289a['setSelection'](_0x1e289a['createPositionAt'](_0x309b9b,0x0)),_0x4bde3f['commands']['get']('removeTableColumn')['refresh'](),_0x4bde3f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x38f450=_0x4d46f1['filter'](_0x1496df=>'$graveyard'!=_0x1496df['root']['rootName']);_0x38f450['length']>0x0&&_0x1e289a['setSelection'](_0x38f450);for(const _0x5d6a7c of _0x4d46f1)_0x5d6a7c['detach']();});}function _0x4dd0b3(_0xc2f763,_0x320538){return _0x320538['every'](_0x54f44f=>_0xc2f763['some'](_0xd55a9b=>_0xd55a9b['end']['isEqual'](_0x54f44f['start'])||_0x54f44f['end']['isEqual'](_0xd55a9b['start'])));}function _0x5a24d8(_0x34cb33,_0x3a6a04){return!_0x34cb33['some'](_0x58b63c=>_0x3a6a04['some'](_0x38f1af=>_0x58b63c['isIntersecting'](_0x38f1af)))&&_0x34cb33['some'](_0x2d9b88=>_0x3a6a04['some'](_0xb3556b=>_0x2d9b88['end']['isTouching'](_0xb3556b['start'])));}_0x4bde3f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb29f52,_0x980008,_0xf45bc3)=>{if(!_0xf45bc3['options']['showSuggestionHighlights'])return;const _0xb382=_0x980008['item'];if(!_0xb382)return;const _0x48575e=_0xf45bc3['mapper']['toViewElement'](_0xb382);function _0xeecc05(_0x75f5d0){return Array['isArray'](_0x75f5d0)?_0x75f5d0:[_0x75f5d0];}_0x48575e&&'tableCell'===_0xb382['name']&&_0x4ec783(_0x48575e,_0xf45bc3['writer'],(_0x4961ee,_0x5a83db,_0x1fa02f)=>_0x1fa02f['addClass'](_0xeecc05(_0x5a83db['classes']),_0x4961ee),(_0x2f81f5,_0x15f746,_0x19e295)=>_0x19e295['removeClass'](_0xeecc05(_0x15f746['classes']),_0x2f81f5));},{'priority':'highest'}),_0x40384e['descriptionFactory']['registerDescriptionCallback'](_0x2eb869=>{if('insertion'!=_0x2eb869['type']&&'deletion'!=_0x2eb869['type'])return;const _0x5a8d7d=_0x2eb869['getContainedElement']();if(null!=_0x5a8d7d&&_0x5a8d7d['is']('element','table')){if('insertion'==_0x2eb869['type']){const _0x3624f5=_0x2eb869['getItems']()['filter'](_0x29bc6c=>_0x29bc6c['is']('$textProxy'))['map'](_0x221258=>_0x221258['data']);if(_0x3624f5['length'])return{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3624f5['join']('\x20')+'\x22'))};}if('deletion'==_0x2eb869['type']){const _0xaf62f1=_0x2eb869['getItems']()['filter'](_0x4ee4c5=>_0x4ee4c5['is']('$textProxy'))['map'](_0x20174e=>_0x20174e['data']);if(_0xaf62f1['length'])return{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xaf62f1['join']('\x20')+'\x22'))};}}}),_0x40384e['descriptionFactory']['registerDescriptionCallback'](_0xb6b379=>{if('tableRow'==_0xb6b379['subType']){const _0x4e2fbb=_0xb6b379['getItems']()['filter'](_0x586777=>_0x586777['is']('$textProxy'))['map'](_0x20ae7e=>_0x20ae7e['data']),_0x12c931=this['_getSuggestionCoords'](_0xb6b379),_0x1e9fc1=_0x12c931['maxRow']-_0x12c931['minRow']+0x1;if('insertion'==_0xb6b379['type'])return _0x4e2fbb['length']?{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e9fc1,'\x22'+_0x4e2fbb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW',_0x1e9fc1))};if('deletion'==_0xb6b379['type'])return _0x4e2fbb['length']?{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e9fc1,'\x22'+_0x4e2fbb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_ROW',_0x1e9fc1))};}if('tableColumn'==_0xb6b379['subType']){const _0xbdf7ad=_0xb6b379['getItems']()['filter'](_0x41977b=>_0x41977b['is']('$textProxy'))['map'](_0x96cff3=>_0x96cff3['data']),_0x2c35ff=this['_getSuggestionCoords'](_0xb6b379),_0x13f59f=_0x2c35ff['maxColumn']-_0x2c35ff['minColumn']+0x1;if('insertion'==_0xb6b379['type'])return _0xbdf7ad['length']?{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13f59f,'\x22'+_0xbdf7ad['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12363c,'*Insert:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN',_0x13f59f))};if('deletion'==_0xb6b379['type'])return _0xbdf7ad['length']?{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13f59f,'\x22'+_0xbdf7ad['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12363c,'*Remove:*\x20%0',o(_0x12363c,'ELEMENT_TABLE_COLUMN',_0x13f59f))};}}),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x31eca4),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x31eca4),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x332818),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x332818),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4dd0b3),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4dd0b3),_0x40384e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a24d8),_0x40384e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a24d8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31efc9=this['editor'],_0x34ecbd=_0x31efc9['model']['document']['selection'];return(_0x308500,_0x489c7d)=>{_0x31efc9['model']['change'](_0x2b1fea=>{const {commandName:_0x48c4c2,commandParams:_0x78899f}=_0x489c7d;let _0x12e7b3=_0x308500[0x0]['end']['nodeBefore'];_0x78899f&&_0x78899f[0x0]&&!0x1===_0x78899f[0x0]['forceValue']&&(_0x12e7b3=_0x308500[0x0]['start']['nodeAfter']);const _0x127e62=_0x2b1fea['createRangeIn'](_0x12e7b3);if('$graveyard'==_0x127e62['root']['rootName'])return;const _0xe3a81c=Array['from'](_0x34ecbd['getRanges']())['map'](_0x44d61d=>_0x1677da['fromRange'](_0x44d61d));_0x2b1fea['setSelection'](_0x127e62),_0x31efc9['commands']['get'](_0x48c4c2)['refresh'](),_0x78899f['push']({'forceDefaultExecution':!0x0}),_0x31efc9['execute'](_0x48c4c2,..._0x78899f);const _0x2bfb82=_0xe3a81c['filter'](_0x171bd4=>'$graveyard'!=_0x171bd4['root']['rootName']);_0x2bfb82['length']>0x0&&_0x2b1fea['setSelection'](_0x2bfb82);for(const _0x41c58e of _0xe3a81c)_0x41c58e['detach']();});};}['_getCoordsForCells'](_0x3c11f3){const _0x1ce956=this['editor']['plugins']['get']('TableUtils');let _0x3a82b3=Number['MAX_SAFE_INTEGER'],_0x16251f=Number['MIN_SAFE_INTEGER'],_0x76d463=Number['MAX_SAFE_INTEGER'],_0x12bdec=Number['MIN_SAFE_INTEGER'];for(const _0x5ed635 of _0x3c11f3){if('$graveyard'==_0x5ed635['root']['rootName'])continue;const {row:_0x8c1fc0,column:_0x3e6d1a}=_0x1ce956['getCellLocation'](_0x5ed635),_0x33c910=_0x5ed635['hasAttribute']('rowspan')?_0x5ed635['getAttribute']('rowspan')-0x1:0x0,_0x51c16d=_0x5ed635['hasAttribute']('colspan')?_0x5ed635['getAttribute']('colspan')-0x1:0x0;_0x3a82b3=_0x8c1fc0<_0x3a82b3?_0x8c1fc0:_0x3a82b3,_0x16251f=_0x8c1fc0+_0x33c910>_0x16251f?_0x8c1fc0+_0x33c910:_0x16251f,_0x76d463=_0x3e6d1a<_0x76d463?_0x3e6d1a:_0x76d463,_0x12bdec=_0x3e6d1a+_0x51c16d>_0x12bdec?_0x3e6d1a+_0x51c16d:_0x12bdec;}return{'minRow':_0x3a82b3,'maxRow':_0x16251f,'minColumn':_0x76d463,'maxColumn':_0x12bdec};}['_setupColumnsRowsFixing'](){const _0x505c7b=this['editor'],_0x654aa1=_0x505c7b['plugins']['get']('TrackChangesEditing'),_0x980d74=_0x505c7b['plugins']['get']('TableUtils');_0x505c7b['model']['document']['on']('change:data',()=>{const _0x1f3b19=Array['from'](_0x505c7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4612ca,data:_0x5406bf}of _0x1f3b19){const {group:_0x5455d8,id:_0x126364,subType:_0x17c450}=_0x654aa1['_splitMarkerName'](_0x4612ca);if('suggestion'!=_0x5455d8)continue;if(null!=_0x5406bf['oldRange'])continue;const _0x263b29=_0x654aa1['getSuggestion'](_0x126364);this['_tablePostFixingSubtypes']['includes'](_0x17c450)&&this['_tableSuggestions']['add'](_0x263b29);}},{'priority':'low'});const _0x1f3d09=(_0x4f66c2,_0x54ba2f)=>{let _0x111ca6=!0x1;const _0x7957ef=_0x54ba2f['createRangeOn'](_0x4f66c2),_0x17b2ce=_0x4f66c2['findAncestor']('table'),_0x15db2a=_0x980d74['getCellLocation'](_0x4f66c2);for(const _0xcef5fa of this['_tableSuggestions']){const _0x2ebc6b=_0xcef5fa['subType'],_0x5be766=_0x2ebc6b['startsWith']('tablePaste'),_0x451076=_0x2ebc6b['substr'](_0x5be766?0xa:0x5),_0xffbcad=_0x451076['toLowerCase'](),_0x5a846b=_0xffbcad['substr'](0x0,0x3)+'span',_0x2cbf2a='min'+_0x451076,_0x5251e7='max'+_0x451076;if(!_0xcef5fa['isInContent'])continue;if(_0x17b2ce!=_0xcef5fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcef5fa['isIntersectingWithRange'](_0x7957ef))continue;const _0x3008f5=_0x4f66c2['hasAttribute'](_0x5a846b)?_0x4f66c2['getAttribute'](_0x5a846b)-0x1:0x0,_0x17af6f=this['_getSuggestionCoords'](_0xcef5fa),_0x44ed0b=_0x17af6f[_0x2cbf2a],_0x5c2c96=_0x17af6f[_0x5251e7];_0x44ed0b<=_0x15db2a[_0xffbcad]&&_0x15db2a[_0xffbcad]+_0x3008f5<=_0x5c2c96&&(_0xcef5fa['addRange'](_0x7957ef),_0x111ca6=!0x0);}return _0x111ca6;};_0x505c7b['model']['document']['registerPostFixer'](_0x30efb9=>{let _0x5c5374=!0x1;for(const _0xcc2002 of _0x505c7b['model']['document']['differ']['getChanges']())if('insert'==_0xcc2002['type']){if('tableRow'==_0xcc2002['name']){for(const _0xd98c3c of _0xcc2002['position']['nodeAfter']['getChildren']())_0x5c5374=_0x5c5374||_0x1f3d09(_0xd98c3c,_0x30efb9);}else'tableCell'==_0xcc2002['name']&&(_0x5c5374=_0x5c5374||_0x1f3d09(_0xcc2002['position']['nodeAfter'],_0x30efb9));}return _0x5c5374;});}['_getSuggestionCoords'](_0x58282f){return this['_getCoordsForCells'](_0x58282f['getRanges']()['map'](_0x23f901=>_0x23f901['start']['nodeAfter']));}}function Ee(_0x49b6e9){return Array['from'](new Set(_0x49b6e9)['values']());}class St extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x746bb0=this['editor'],_0x5066d9=_0x746bb0['model']['document']['selection'],_0x1ca2b1=_0x746bb0['locale'];if(!_0x746bb0['plugins']['has']('TableEditing'))return;const _0x263286=_0x746bb0['plugins']['get']('TrackChangesEditing'),_0x411947=_0x746bb0['plugins']['get']('TableUtils'),_0x12fae3=_0x746bb0['plugins']['get'](jt);_0x12fae3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x263286['enableCommand']('mergeTableCells',()=>{const _0x3fd290=_0x411947['getSelectionAffectedTableCells'](_0x746bb0['model']['document']['selection']);_0x746bb0['model']['change'](()=>{_0x263286['markMultiRangeBlockFormat'](_0x3fd290,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x746bb0['commands']['get']('mergeTableCells')['on']('execute',(_0x354944,_0x515170)=>{_0x746bb0['commands']['get']('trackChanges')['value']&&(_0x515170['length']>0x0&&_0x515170[_0x515170['length']-0x1]&&_0x515170[_0x515170['length']-0x1]['forceDefaultExecution']||_0x263286['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x354944['stop']());},{'priority':'highest'});for(const _0x5d3c8e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x8b1622=_0x746bb0['commands']['get'](_0x5d3c8e);_0x263286['enableCommand'](_0x5d3c8e,()=>{const _0x45fcc8=_0x746bb0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35769f=>_0x35769f['is']('element','tableCell')),_0x52dac6=_0x8b1622['value'];_0x746bb0['model']['change'](()=>{_0x263286['markMultiRangeBlockFormat']([_0x45fcc8,_0x52dac6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35fb36 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x25c4bf=_0x746bb0['commands']['get'](_0x35fb36);_0x263286['enableCommand'](_0x35fb36,()=>{const _0x286740=_0x411947['getSelectionAffectedTableCells'](_0x746bb0['model']['document']['selection'])[0x0],_0x2c0dd9=_0x286740['findAncestor']('table'),{column:_0x361c67,row:_0xcbd1dc}=_0x411947['getCellLocation'](_0x286740);let _0x200b2f=[];if('horizontally'==_0x25c4bf['direction']){const _0x59c6e5=_0x411947['createTableWalker'](_0x2c0dd9,{'startRow':_0xcbd1dc,'endRow':_0xcbd1dc,'includeAllSlots':!0x0});_0x200b2f=Array['from'](_0x59c6e5)['map'](_0x4d15e7=>_0x4d15e7['cell']);}else{const _0x450c06=_0x411947['createTableWalker'](_0x2c0dd9,{'column':_0x361c67,'includeAllSlots':!0x0});_0x200b2f=Array['from'](_0x450c06)['map'](_0x2b4d75=>_0x2b4d75['cell']);}_0x746bb0['model']['change'](_0x33dff7=>{_0x263286['markBlockFormat'](_0x33dff7['createRangeOn'](_0x286740),{'commandName':_0x35fb36,'commandParams':[]},_0x200b2f,_0x35fb36);});});}_0x263286['descriptionFactory']['registerDescriptionCallback'](_0x1d80c1=>{if('formatBlock'!=_0x1d80c1['type']&&'formatInline'!=_0x1d80c1['type'])return;const {data:_0x2f5414}=_0x1d80c1;return _0x2f5414&&'mergeTableCells'==_0x2f5414['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Merge\x20cells*')}:void 0x0;}),_0x263286['descriptionFactory']['registerDescriptionCallback'](_0x10e17b=>{if('formatBlock'!=_0x10e17b['type']&&'formatInline'!=_0x10e17b['type'])return;const {data:_0x285492}=_0x10e17b;return _0x285492?'splitTableCellVertically'==_0x285492['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x285492['commandName']?{'type':'format','content':o(_0x1ca2b1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xaacd0a=_0x12fae3['_acceptFormatSuggestionCallbackFactory']();for(const _0x496ef7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x496ef7,'accept',_0xaacd0a);for(const _0x2c8993 of['splitTableCellVertically','splitTableCellHorizontally'])_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c8993,'accept',_0xaacd0a);_0x263286['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11799f=>{_0x746bb0['model']['change'](_0x4ba87a=>{const _0x27ead8=Array['from'](_0x5066d9['getRanges']())['map'](_0x580bd5=>_0x1677da['fromRange'](_0x580bd5));_0x4ba87a['setSelection'](_0x11799f),_0x746bb0['commands']['get']('mergeTableCells')['refresh'](),_0x746bb0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x493670=_0x27ead8['filter'](_0x3a81b1=>'$graveyard'!=_0x3a81b1['root']['rootName']);_0x493670['length']>0x0&&_0x4ba87a['setSelection'](_0x493670);for(const _0x345bbd of _0x27ead8)_0x345bbd['detach']();});});for(const _0xb6033a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x506b79=_0x746bb0['commands']['get'](_0xb6033a);_0x506b79['on']('set:isEnabled',(_0x323400,_0x28c2c9,_0x3fd410)=>{if(_0x3fd410){const _0x18fc19=_0x746bb0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50971f=>_0x50971f['is']('element','tableCell'));this['_areMergableCells'](_0x506b79['value'],_0x18fc19)||(_0x323400['return']=!0x1,_0x323400['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x40bd48=this['editor']['commands']['get']('mergeTableCells'),_0xa292c5=this['editor']['plugins']['get']('TableUtils');if(!_0x40bd48['isEnabled'])return!0x1;const _0x46d54c=_0xa292c5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52219d of _0x46d54c)for(const _0x4b43af of _0x46d54c)if(_0x52219d!=_0x4b43af&&!this['_areMergableCells'](_0x52219d,_0x4b43af))return!0x1;return!0x0;}['_areMergableCells'](_0x31c39e,_0x24c4b4){const _0x38e207=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd18a7a=this['editor']['model']['createRangeOn'](_0x31c39e),_0xd06595=this['editor']['model']['createRangeOn'](_0x24c4b4),_0x491c82=new Set(),_0x18a681=new Set();for(const _0x2a23ee of _0x38e207['getSuggestions']())if(('insertion'==_0x2a23ee['type']||'deletion'==_0x2a23ee['type']||'mergeTableCells'==_0x2a23ee['subType'])&&_0x2a23ee['isInContent']){for(const _0x1f7aaa of _0x2a23ee['getRanges']())_0x1f7aaa['containsRange'](_0xd18a7a,!0x0)&&_0x491c82['add'](_0x2a23ee['type']+':'+_0x2a23ee['author']['id']),_0x1f7aaa['containsRange'](_0xd06595,!0x0)&&_0x18a681['add'](_0x2a23ee['type']+':'+_0x2a23ee['author']['id']);}if(_0x491c82['size']!=_0x18a681['size'])return!0x1;for(const _0x56e7f8 of _0x491c82)if(!_0x18a681['has'](_0x56e7f8))return!0x1;return!0x0;}}class At extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x1733f1=this['editor'];if(!_0x1733f1['plugins']['has']('TableEditing'))return;const _0x4b3775=_0x1733f1['locale'],_0x2feea1=_0x1733f1['plugins']['get']('TrackChangesEditing');_0x2feea1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2feea1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2feea1['registerBlockAttribute']('headingRows'),_0x2feea1['registerBlockAttribute']('headingColumns'),_0x2feea1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4b3775,'FORMAT_HEADER_ROW')),_0x2feea1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4b3775,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d47d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cc07d=this['editor']['plugins']['get']('TableUtils'),_0x4ce4b3=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x213e3d({showActiveMarker:_0x2db89c=!0x0,setDataAttribute:_0x1cea92=!0x0}={}){return(_0x8921dc,_0x4f40f4,_0x1911f8)=>{const {type:_0x225d76,id:_0x48bef3}=_0x3d47d8['_splitMarkerName'](_0x4f40f4['markerName']),_0x2a7f0e=_0x3d47d8['getSuggestion'](_0x48bef3),_0x1ae8a4=_0x2a7f0e['data'];if('formatBlock'!=_0x2a7f0e['type']||!_0x1ae8a4||'setTableColumnHeader'!=_0x1ae8a4['commandName'])return;if(_0x4f40f4['item'])return void _0x8921dc['stop']();if(!_0x1911f8['consumable']['consume'](_0x4f40f4['markerRange'],_0x8921dc['name']))return;const _0x5bd818=_0x4f40f4['markerRange']['start']['nodeAfter'],_0x1b7c20=_0x4f40f4['markerRange']['end']['nodeBefore'],_0x33fa5e=_0x5bd818['parent']['parent'],{column:_0x1d6ced}=_0x5cc07d['getCellLocation'](_0x5bd818),{column:_0x135df9}=_0x5cc07d['getCellLocation'](_0x1b7c20);for(let _0x1ecb2b=_0x1d6ced;_0x1ecb2b<=_0x135df9;_0x1ecb2b++){const _0x2f9d48=_0x5cc07d['createTableWalker'](_0x33fa5e,{'column':_0x1ecb2b,'includeAllSlots':!0x1});for(const _0x4b8faf of _0x2f9d48){const _0x21fd37=_0x4b8faf['cell'],_0x2a8d67=_0x1911f8['mapper']['toViewElement'](_0x21fd37);_0x1911f8['writer']['addClass']('ck-suggestion-marker-'+_0x225d76,_0x2a8d67),_0x1cea92&&_0x1911f8['writer']['setAttribute']('data-suggestion',_0x48bef3,_0x2a8d67),_0x1911f8['mapper']['bindElementToMarker'](_0x2a8d67,_0x4f40f4['markerName']),_0x2db89c&&(_0x3d47d8['activeMarkers']['includes'](_0x4f40f4['markerName'])?_0x1911f8['writer']['addClass']('ck-suggestion-marker--active',_0x2a8d67):_0x1911f8['writer']['removeClass']('ck-suggestion-marker--active',_0x2a8d67));}}};}_0x3d47d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4ce4b3),_0x3d47d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4ce4b3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x213e3d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d2021,_0x20c23e,_0x2ef918)=>{_0x2ef918['options']['showSuggestionHighlights']&&_0x213e3d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d2021,_0x20c23e,_0x2ef918);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4575b0,_0xcf206c,_0x563f67)=>{const {type:_0x49d0b0,id:_0x9c569}=_0x3d47d8['_splitMarkerName'](_0xcf206c['markerName']),_0x1977d6=_0x3d47d8['getSuggestion'](_0x9c569),_0x5ef25d=_0x1977d6['data'];if('formatBlock'!=_0x1977d6['type']||!_0x5ef25d||'setTableColumnHeader'!=_0x5ef25d['commandName'])return;const _0x3c892a=_0x563f67['mapper']['markerNameToElements'](_0xcf206c['markerName']);if(_0x3c892a){for(const _0x1c6227 of _0x3c892a)_0x563f67['writer']['removeClass']('ck-suggestion-marker-'+_0x49d0b0,_0x1c6227),_0x563f67['writer']['removeClass']('ck-suggestion-marker--active',_0x1c6227),_0x563f67['writer']['removeAttribute']('data-suggestion',_0x1c6227),_0x563f67['mapper']['unbindElementFromMarkerName'](_0x1c6227,_0xcf206c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de250=this['editor'],_0x5d46e4=_0x2de250['locale'];function _0x1880b1(_0x15dcc9){return{'type':'format','content':o(_0x5d46e4,'*Format:*\x20%0',_0x15dcc9)};}_0x2de250['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f840=>{if('formatBlock'!=_0x40f840['type'])return;const {data:_0x50e587}=_0x40f840;if(_0x50e587){if('setTableRowHeader'==_0x50e587['commandName']){const _0x2a8393=_0x50e587['commandParams'][0x0]['forceValue'];return _0x1880b1(o(_0x5d46e4,_0x2a8393?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50e587['commandName']){const _0x35a40a=_0x50e587['commandParams'][0x0]['forceValue'];return _0x1880b1(o(_0x5d46e4,_0x35a40a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x56d8fd=>[_0x56d8fd,null]));class It extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x140d1b=this['editor'];if(!_0x140d1b['plugins']['has']('TableClipboard'))return;const _0x3b5674=_0x140d1b['plugins']['get']('TrackChangesEditing'),_0x372acd=_0x140d1b['plugins']['get']('TableUtils'),_0x1d5de0=_0x140d1b['plugins']['get'](jt),_0x3a6fda=_0x140d1b['plugins']['get']('TableClipboard');_0x1d5de0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x140d1b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x140d1b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x47b99b=null;_0x140d1b['model']['on']('insertContent',(_0x5b506f,_0x16416c)=>{const [_0x82daa,_0xb4d8c]=_0x16416c,_0x2ae78a=_0x16416c[_0x16416c['length']-0x1];_0x2ae78a&&_0x2ae78a['forceDefaultExecution']||_0x3b5674['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x40f7c9,_0x5c40a0,_0x32fa84,_0x4a46cf,_0xb3dd29){if(_0x5c40a0&&!_0x5c40a0['is']('documentSelection'))return!0x1;const _0x1b96cc=_0xb3dd29['getTableIfOnlyTableInContent'](_0x40f7c9,_0x32fa84);if(!_0x1b96cc||!he(_0x1b96cc,void 0x0,_0x4a46cf))return!0x1;const _0x5d0fa4=_0x4a46cf['getSelectionAffectedTableCells'](_0x32fa84['document']['selection']);if(!_0x5d0fa4['length'])return!0x1;const _0x3ef63a=_0x5d0fa4[0x0]['findAncestor']('table'),_0x469b6e=_0x4a46cf['getRowIndexes'](_0x5d0fa4),_0x55e565=_0x4a46cf['getColumnIndexes'](_0x5d0fa4),_0x58e095={'startRow':_0x469b6e['first'],'endRow':_0x469b6e['last'],'startColumn':_0x55e565['first'],'endColumn':_0x55e565['last']};return 0x1==_0x5d0fa4['length']&&(_0x58e095['endRow']+=_0x4a46cf['getRows'](_0x1b96cc)-0x1,_0x58e095['endColumn']+=_0x4a46cf['getColumns'](_0x1b96cc)-0x1),he(_0x3ef63a,_0x58e095,_0x4a46cf);}(_0x82daa,_0xb4d8c,_0x140d1b['model'],_0x372acd,_0x3a6fda)&&(_0x5b506f['stop'](),_0x47b99b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x140d1b['model']['change'](()=>{_0x140d1b['model']['insertContent'](_0x16416c[0x0],_0x16416c[0x1],_0x16416c[0x2],{'forceDefaultExecution':!0x0});const _0x41ce4a=_0x50a7b0(),{rowInsertionRanges:_0x52d5a4,columnInsertionRanges:_0x209a06,insertionRanges:_0x3139e8,deletionRanges:_0x14c74d,cells:_0x55b362}=_0x47b99b;_0x52d5a4['length']&&_0x3b5674['markMultiRangeInsertion'](_0x52d5a4,'tablePasteRow',{'tablePasteChainId':_0x41ce4a}),_0x209a06['length']&&_0x3b5674['markMultiRangeInsertion'](_0x209a06,'tablePasteColumn',{'tablePasteChainId':_0x41ce4a}),_0x3139e8['length']&&(_0x3b5674['markMultiRangeInsertion'](_0x3139e8,'tablePaste',{'tablePasteChainId':_0x41ce4a,'skipNestingCheck':!0x0}),_0x3139e8['forEach'](_0x367e65=>_0x367e65['detach']?.())),_0x14c74d['length']&&(_0x3b5674['markMultiRangeDeletion'](_0x14c74d,'tablePaste',{'tablePasteChainId':_0x41ce4a,'skipNestingCheck':!0x0}),_0x14c74d['forEach'](_0x19ce50=>_0x19ce50['detach']?.()));const _0x13bfb1=_0x3b5674['markMultiRangeBlockFormat'](_0x55b362['map'](({element:_0x5aae11})=>_0x5aae11),{'formatGroupId':_0x50a7b0()},[],'tablePasteCell',{'tablePasteChainId':_0x41ce4a});if(_0x13bfb1){const _0x55b68a=_0x13bfb1['getMarkers'](),_0x2f11ff=[];for(const {element:_0x3c6040,attributes:_0x106b57}of _0x55b362){if(!_0x106b57)continue;const _0x298d07=_0x140d1b['model']['createRangeOn'](_0x3c6040),_0x23eb6a=_0x55b68a['find'](_0x4fff12=>_0x4fff12['getRange']()['isEqual'](_0x298d07));_0x23eb6a&&_0x2f11ff['push']([_0x23eb6a['name'],_0x106b57]);}_0x2f11ff['length']&&_0x13bfb1['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f11ff));}_0x47b99b=null;}));},{'priority':_0x362a86['high']+0xa}),_0x140d1b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x442b52,_0x24ce63)=>{const [_0x516b49,_0x55c9b7,,_0x3dcaad]=_0x24ce63;if(!_0x47b99b)return;_0x442b52['stop']();const _0xcc735a=_0x516b49['cell'],_0x35b44b=_0x55c9b7,_0x19f9bd=Pe(_0xcc735a),_0x1552ed=Pe(_0x35b44b);_0x442b52['return']=_0xcc735a;let _0xc7b0fe=null,_0x5ef673=null;if(_0x1552ed||_0x19f9bd){if(_0x19f9bd&&!_0x1552ed){_0x3dcaad['remove'](_0xcc735a['getChild'](0x0));for(const _0x22ec95 of Array['from'](_0x35b44b['getChildren']()))_0x3dcaad['insert'](_0x22ec95,_0xcc735a,'end');const _0x528047=_0x47b99b['rowInsertionIndexes']['includes'](_0x516b49['row']),_0x121194=_0x47b99b['columnInsertionIndexes']['includes'](_0x516b49['column']);_0x528047||_0x121194||(_0xc7b0fe=_0x1677da['fromRange'](_0x3dcaad['createRangeIn'](_0xcc735a)));}else _0x1552ed&&!_0x19f9bd&&(_0x5ef673=_0x3dcaad['createRangeIn'](_0xcc735a));}else{const _0x12dd6b=_0x3dcaad['createElement']('tableCellSuggestion'),_0x292bf8=_0x3dcaad['createElement']('tableCellSuggestion');_0x3dcaad['wrap'](_0x3dcaad['createRangeIn'](_0xcc735a),_0x292bf8),_0x3dcaad['insert'](_0x12dd6b,_0xcc735a,0x0);for(const _0x1bc87f of Array['from'](_0x35b44b['getChildren']()))_0x3dcaad['insert'](_0x1bc87f,_0x12dd6b,'end');_0xc7b0fe=_0x1677da['fromRange'](_0x3dcaad['createRangeOn'](_0x12dd6b)),_0x5ef673=_0x1677da['fromRange'](_0x3dcaad['createRangeOn'](_0x292bf8));}const _0x5e040d=Array['from'](_0x35b44b['getAttributes']())['filter'](([_0x540331])=>ge['includes'](_0x540331));_0x47b99b['cells']['push']({'element':_0xcc735a,'attributes':_0x5e040d['length']?Object['fromEntries'](_0x5e040d):null}),_0xc7b0fe&&_0x47b99b['insertionRanges']['push'](_0xc7b0fe),_0x5ef673&&_0x47b99b['deletionRanges']['push'](_0x5ef673);},{'priority':'high'}),_0x372acd['on']('insertColumns',(_0x21581d,_0x2f4790)=>{const [_0x170210,_0x508403={}]=_0x2f4790;if(!_0x47b99b)return;const _0x4f0412=_0x508403['at']||0x0,_0xd291a6=_0x508403['columns']||0x1;_0x47b99b['columnInsertionIndexes']=new Array(_0xd291a6)['fill'](_0x4f0412)['map']((_0x1ecbea,_0xcf14a4)=>_0x1ecbea+_0xcf14a4);for(const {cell:_0x326d1b}of _0x372acd['createTableWalker'](_0x170210,{'startColumn':_0x4f0412,'endColumn':_0x4f0412+_0xd291a6-0x1}))_0x47b99b['columnInsertionRanges']['push'](_0x140d1b['model']['createRangeOn'](_0x326d1b));},{'priority':'low'}),_0x372acd['on']('insertRows',(_0x462925,_0xc276e8)=>{const [_0x5789c4,_0x322b44={}]=_0xc276e8;if(!_0x47b99b)return;const _0x14555e=_0x322b44['at']||0x0,_0x56e762=_0x322b44['rows']||0x1;_0x47b99b['rowInsertionIndexes']=new Array(_0x56e762)['fill'](_0x14555e)['map']((_0x31ffc8,_0x1c835a)=>_0x31ffc8+_0x1c835a);for(const {cell:_0x8bfde3}of _0x372acd['createTableWalker'](_0x5789c4,{'startRow':_0x14555e,'endRow':_0x14555e+_0x56e762-0x1}))_0x47b99b['rowInsertionRanges']['push'](_0x140d1b['model']['createRangeOn'](_0x8bfde3));},{'priority':'low'}),_0x3b5674['descriptionFactory']['registerDescriptionCallback'](_0x4abc0f=>{if(_0x4abc0f['subType']&&_0x4abc0f['subType']['startsWith']('tablePaste'))return _0x4abc0f['previous']?{}:{'type':'insertion','content':o(_0x140d1b['locale'],'*Replace\x20table\x20cells*')};});const _0x53f5bd=()=>!0x1;for(const _0x2c31d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c31d7,'join',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c31d7,'join',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c31d7,'join',_0x53f5bd);_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53f5bd),_0x3b5674['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3aab4f,_0x33d87f,_0x1c3acf)=>{const _0x4a6a0f=_0x3aab4f['map'](_0x1e49a6=>_0x1e49a6['getContainedElement']())['filter'](_0x5a3166=>_0x5a3166),_0x51a4b0=new Map(_0x4a6a0f['map'](_0x2ad3a7=>[_0x2ad3a7,null]));if(_0x47b99b){for(const {element:_0x2f8892,attributes:_0x560e33}of _0x47b99b['cells'])_0x560e33&&_0x51a4b0['set'](_0x2f8892,_0x560e33);}else{if(_0x1c3acf&&_0x1c3acf['markerAttributes'])for(const [_0x5d01c1,_0x142420]of Object['entries'](_0x1c3acf['markerAttributes'])){const _0x5c505d=_0x140d1b['model']['markers']['get'](_0x5d01c1),_0x5dc056=_0x5c505d?_0x5c505d['getRange']()['getContainedElement']():null;_0x5dc056&&_0x51a4b0['set'](_0x5dc056,_0x142420);}}_0x140d1b['model']['change'](_0x1c712a=>{for(const [_0x5f5208,_0x5b7677]of _0x51a4b0)_0x1c712a['setAttributes']({...Ce,..._0x5b7677},_0x5f5208);});});const _0x4bb5d1=(_0x4694e7,_0x273ebe)=>{_0x3b5674['_suggestionFactory']['registerCustomCallback'](_0x4694e7,'tablePaste',_0x273ebe,(_0x1e4ac9,_0x5482a2,_0x2d869d)=>{_0x140d1b['model']['change'](_0x251874=>{const _0x449bb7=[];for(const _0x59064d of _0x1e4ac9){const _0xaec935=_0x59064d['start']['nodeAfter'];_0xaec935['is']('element','tableCellSuggestion')&&_0x449bb7['push'](_0xaec935);}_0x3b5674['_suggestionFactory']['getSuggestionCallback'](_0x4694e7,null,_0x273ebe)(_0x1e4ac9,_0x5482a2,_0x2d869d);for(const _0x5ac161 of _0x449bb7)'$graveyard'!=_0x5ac161['root']['rootName']&&_0x251874['unwrap'](_0x5ac161);});});};_0x4bb5d1('insertion','accept'),_0x4bb5d1('insertion','discard'),_0x4bb5d1('deletion','accept'),_0x4bb5d1('deletion','discard'),_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xeefd23=>{const _0xae944e=_0xeefd23['map'](_0x4be123=>_0x4be123['getContainedElement']()),_0x39b118=_0xae944e[0x0]['findAncestor']('table'),{minRow:_0x409e1b,maxRow:_0x1ce8e2}=_0x1d5de0['_getCoordsForCells'](_0xae944e);_0x372acd['removeRows'](_0x39b118,{'at':_0x409e1b,'rows':_0x1ce8e2-_0x409e1b+0x1});}),_0x3b5674['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x13b820=>{const _0x39bafd=_0x13b820['map'](_0x2b4216=>_0x2b4216['getContainedElement']()),_0x3a87d5=_0x39bafd[0x0]['findAncestor']('table'),{minColumn:_0x30237a,maxColumn:_0x4a421f}=_0x1d5de0['_getCoordsForCells'](_0x39bafd);_0x372acd['removeColumns'](_0x3a87d5,{'at':_0x30237a,'columns':_0x4a421f-_0x30237a+0x1});});const _0x2a9bf8=(_0x1146d1,_0xeda33)=>{if(!_0xeda33['subType']||!_0xeda33['subType']['startsWith']('tablePaste'))return;const _0x17671=_0xeda33['attributes']['tablePasteChainId'],_0x18daa7=_0x3b5674['getSuggestions']()['filter'](_0x5922f2=>_0x5922f2['isInContent']&&_0x5922f2['attributes']&&_0x5922f2['attributes']['tablePasteChainId']==_0x17671);_0x18daa7['length']&&_0xeda33['getAllAdjacentSuggestions']()['length']!=_0x18daa7['length']&&_0x18daa7['reduce']((_0x57e159,_0x2107e9)=>(_0x57e159['next']=_0x2107e9,_0x2107e9['previous']=_0x57e159,_0x2107e9));};function _0x5694ac(_0x1e2f13,_0xa424d9=!0x0){const {id:_0x167941}=_0x3b5674['_splitMarkerName'](_0x1e2f13['markerName']),_0x35b2df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x17cefa=_0x3b5674['activeMarkers']['includes'](_0x1e2f13['markerName']);return _0x17cefa&&_0x35b2df['push']('ck-suggestion-marker--active'),{'classes':_0x35b2df,'attributes':{'data-suggestion':_0x167941},'priority':_0x17cefa&&_0xa424d9?0xbc2:0xbb8};}_0x3b5674['on']('suggestionLoaded',_0x2a9bf8,{'priority':'high'}),_0x3b5674['on']('suggestionUnloaded',_0x2a9bf8,{'priority':'high'}),_0x140d1b['model']['document']['registerPostFixer'](()=>{let _0x30d95f=!0x1;const _0x434fb4=Array['from'](_0x140d1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8385db,data:_0x31ae67}of _0x434fb4){const {group:_0xd10b28,type:_0x425cb7,id:_0x3cc746}=_0x3b5674['_splitMarkerName'](_0x8385db);if('suggestion'!=_0xd10b28||'deletion'!=_0x425cb7||_0x31ae67['oldRange'])continue;if(!_0x3b5674['hasSuggestion'](_0x3cc746))continue;const _0x34a9e2=_0x3b5674['getSuggestion'](_0x3cc746)['getRanges'](),_0x2f8768=_0x140d1b['plugins']['get']('Users')['me'];for(const _0x55ef99 of _0x3b5674['getSuggestions']()){if(!_0x55ef99['isInContent']||_0x55ef99['author']!=_0x2f8768)continue;if('formatBlock'!=_0x55ef99['type']||'tablePasteCell'!=_0x55ef99['subType'])continue;if(_0x55ef99['getRanges']()['every'](_0x5bb3be=>_0x34a9e2['some'](_0x1c4a21=>_0x1c4a21['containsRange'](_0x5bb3be,!0x0)))){for(const _0x191f66 of _0x55ef99['getAllAdjacentSuggestions']())_0x191f66['isInContent']&&(_0x191f66['discard'](),_0x30d95f=!0x0);}}}return _0x30d95f;}),_0x140d1b['model']['document']['registerPostFixer'](_0x364c7d=>{const _0x378611=_0x140d1b['commands']['get']('redo');if(!_0x378611||!_0x378611['_createdBatches']['has'](_0x364c7d['batch']))return!0x1;let _0x1fcac5=!0x1;const _0x2a36f6=_0x140d1b['plugins']['get']('Users')['me'],_0x5ab675=_0x140d1b['model']['document']['differ']['getChanges'](),_0x1c0139=Array['from'](_0x140d1b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x229ad8,data:_0x2cc58f})=>{const {group:_0x21345a,subType:_0x5bfeb,authorId:_0xb4f34e}=_0x3b5674['_splitMarkerName'](_0x229ad8);return'suggestion'==_0x21345a&&'tablePaste'==_0x5bfeb&&_0xb4f34e==_0x2a36f6['id']&&!_0x2cc58f['oldRange'];});for(const _0x1cbf73 of _0x5ab675){if('insert'!=_0x1cbf73['type']||'tableCellSuggestion'!=_0x1cbf73['name']||0x1!=_0x1cbf73['length'])continue;const _0x4f6998=_0x364c7d['createRange'](_0x1cbf73['position'],_0x1cbf73['position']['getShiftedBy'](0x1));if(!_0x1c0139['find'](({data:_0x5767f4})=>_0x5767f4['newRange']['isEqual'](_0x4f6998))){for(const {name:_0x5a2145,data:_0x39de90}of _0x1c0139)if(_0x4f6998['containsRange'](_0x39de90['newRange'])){_0x364c7d['updateMarker'](_0x5a2145,{'range':_0x4f6998}),_0x1fcac5=!0x0;break;}}}return _0x1fcac5;}),_0x140d1b['model']['document']['registerPostFixer'](_0x3a34a1=>{let _0x19f655=!0x1;const _0x4f9665=_0x140d1b['plugins']['get']('Users')['me'],_0x4e1a5d=_0x3b5674['getSuggestions']()['filter'](_0x16f8b1=>_0x16f8b1['isInContent']&&_0x16f8b1['author']==_0x4f9665),_0x1f0c8f=new Set(),_0x3be856=new Set();for(const _0x46dc43 of _0x4e1a5d)if('tablePaste'==_0x46dc43['subType'])for(const _0x71f412 of _0x46dc43['getMarkers']()){const _0x492a62=_0x71f412['getRange']()['getContainedElement']();if(_0x492a62){if(_0x492a62['is']('element','tableCellSuggestion')&&Pe(_0x492a62)){_0x46dc43['removeMarker'](_0x71f412['name']),_0x1f0c8f['add'](_0x492a62),_0x19f655=!0x0;const _0x4304df=_0x492a62['nextSibling'],_0x3e7604=_0x492a62['previousSibling'],_0xc8a79e=_0x4304df&&_0x4304df['is']('element','tableCellSuggestion'),_0x23d76c=_0x3e7604&&_0x3e7604['is']('element','tableCellSuggestion');_0xc8a79e&&!_0x1f0c8f['has'](_0x4304df)&&_0x3be856['add'](_0x4304df),_0x23d76c&&!_0x1f0c8f['has'](_0x3e7604)&&_0x3be856['add'](_0x3e7604);}else _0x492a62['is']('element','paragraph')&&_0x492a62['isEmpty']&&(_0x46dc43['removeMarker'](_0x71f412['name']),_0x19f655=!0x0);}}else{if('tablePasteCell'==_0x46dc43['subType']){if(!_0x46dc43['attributes']||!_0x46dc43['attributes']['tablePasteChainId'])continue;const _0x538d1d=_0x46dc43['attributes']['markerAttributes'];if(_0x538d1d&&Object['keys'](_0x538d1d)['length'])continue;const _0x29feee=_0x46dc43['attributes']['tablePasteChainId'];let _0x2e0962=!0x0,_0x5a3c42=!0x0;for(const _0x83bd7e of _0x4e1a5d)if(_0x83bd7e['subType']&&_0x83bd7e['subType']['startsWith']('tablePaste')){if(!_0x83bd7e['attributes']['tablePasteChainId']){_0x5a3c42=!0x1;break;}if(_0x83bd7e['id']!=_0x46dc43['id']&&_0x83bd7e['attributes']['tablePasteChainId']==_0x29feee){_0x2e0962=!0x1;break;}}_0x5a3c42&&_0x2e0962&&(_0x46dc43['removeMarkers'](),_0x19f655=!0x0);}}for(const _0x5916bd of _0x1f0c8f)_0x3a34a1['remove'](_0x5916bd);for(const _0xdd997e of _0x3be856)_0x3a34a1['unwrap'](_0xdd997e);return _0x19f655;}),_0x140d1b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ecff2,_0x573341)=>_0x5694ac(_0x4ecff2),'converterPriority':'high'}),_0x140d1b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x184cb1,_0x19e1b4)=>_0x19e1b4['options']['showSuggestionHighlights']?_0x5694ac(_0x184cb1,!0x1):null,'converterPriority':'high'});const _0x5a4458=_0x140d1b['editing']['view'];this['listenTo'](_0x5a4458['document'],'clipboardOutput',(_0x46acc3,_0x5641fa)=>{const _0x4cc71a=[];for(const _0xbda3fa of _0x5a4458['createRangeIn'](_0x5641fa['content'])['getItems']())_0xbda3fa['is']('element','suggestion-td')&&_0x4cc71a['push'](_0xbda3fa);_0x5a4458['change'](_0x1625a5=>{for(const _0x419035 of _0x4cc71a)_0x1625a5['move'](_0x1625a5['createRangeIn'](_0x419035),_0x1625a5['createPositionBefore'](_0x419035)),_0x1625a5['remove'](_0x419035);});});}}function Pe(_0x2214b3){if(_0x2214b3['isEmpty'])return!0x0;const _0x2fc612=_0x2214b3['getChild'](0x0);return _0x2fc612['is']('element','paragraph')&&_0x2fc612['isEmpty'];}function he(_0x5b20bc,_0x4ce35e={},_0x5d90df){for(const {isAnchor:_0x1a7022,cellHeight:_0x53514d,cellWidth:_0x347206}of _0x5d90df['createTableWalker'](_0x5b20bc,{'includeAllSlots':!0x0,..._0x4ce35e}))if(!_0x1a7022||0x1!=_0x53514d||0x1!=_0x347206)return!0x1;return!0x0;}class vt extends _0x513c76{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2df34e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2df34e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2df34e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2df34e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df34e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2df34e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2df34e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x9625fe,_0x276bdb){const _0x39b973=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0144=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1725d7=_0x276bdb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x187f63=_0x3a0144['getColumnGroupElement'](_0x1725d7);let _0x57475f=_0x187f63?_0x3a0144['getTableColumnsWidths'](_0x187f63):null,_0x4ac3d3=_0x1725d7['getAttribute']('tableWidth')||null;const _0x85db1e=_0x276bdb['tableWidth']||_0x4ac3d3,_0x12a872=_0x276bdb['columnWidths']||_0x57475f,_0x44348=this['editor']['plugins']['get']('Users')['me'];for(const _0x27a275 of _0x39b973['getSuggestions']()){const _0x28c8db=_0x27a275['getContainedElement']();if('resizeTable'===_0x27a275['subType']&&_0x28c8db===_0x1725d7){_0x27a275['author']!==_0x44348&&_0x27a275['discard']();const _0x4c495a=_0x27a275['data']['commandParams'];_0x4ac3d3=_0x4c495a[0x0]['tableWidth'],_0x57475f=_0x4c495a[0x0]['columnWidths'];break;}}_0x9625fe({'table':_0x1725d7,'tableWidth':_0x85db1e,'columnWidths':_0x12a872}),_0x39b973['markBlockFormat'](_0x1725d7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ac3d3,'columnWidths':_0x57475f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x479705){if('formatBlock'!=_0x479705['type']&&'formatInline'!=_0x479705['type'])return;const {data:_0x1e1700}=_0x479705;if(_0x1e1700&&'resizeTable'===_0x1e1700['formatGroupId']){const _0x3d874c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d874c)};}}}class Ct extends _0x513c76{['afterInit'](){const _0x320d21=this['editor'];_0x320d21['plugins']['has']('Template')&&_0x320d21['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x513c76{['afterInit'](){const _0x3312d8=this['editor'];if(!_0x3312d8['commands']['get']('insertTableOfContents'))return;_0x3312d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x372d87=_0x3312d8['plugins']['get']('TrackChangesEditing'),_0xfd66e2=_0x3312d8['locale'];_0x372d87['descriptionFactory']['registerElementLabel']('tableOfContents',_0x319cc4=>o(_0xfd66e2,'ELEMENT_TABLE_OF_CONTENTS',_0x319cc4));}}class Dt extends _0x513c76{['afterInit'](){const _0x5bbbcd=this['editor'];if(!_0x5bbbcd['plugins']['has']('Title'))return;const _0x418944=_0x5bbbcd['plugins']['get']('TrackChangesEditing');_0x418944['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5bbbcd['locale'],'ELEMENT_TITLE')),_0x5bbbcd['model']['document']['registerPostFixer'](_0x15740a=>{let _0x2dda20=!0x1;const _0x1ea882=Array['from'](_0x5bbbcd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bebb1,data:_0x41e986}of _0x1ea882){const {group:_0x1c856b}=_0x418944['_splitMarkerName'](_0x4bebb1);if('suggestion'!==_0x1c856b||!_0x41e986['newRange'])continue;const _0x23ce6d=_0x41e986['newRange'],_0x14eb2d=_0x23ce6d['end']['nodeBefore'];if(!_0x14eb2d||!_0x14eb2d['is']('element','title-content'))continue;if(!_0x23ce6d['start']['isTouching'](_0x23ce6d['end']))continue;const _0x52d71a=_0x5bbbcd['model']['schema']['getNearestSelectionRange'](_0x23ce6d['end'],'forward');if(_0x52d71a&&_0x52d71a['isCollapsed']){const _0x5b4d34=_0x15740a['createRange'](_0x23ce6d['start'],_0x52d71a['start']);_0x5b4d34['isEqual'](_0x23ce6d)||(_0x15740a['updateMarker'](_0x4bebb1,{'range':_0x5b4d34}),_0x2dda20=!0x0);}_0x2dda20||(_0x15740a['removeMarker'](_0x4bebb1),_0x2dda20=!0x0);}return _0x2dda20;});}}class Nt extends _0x513c76{['afterInit'](){const _0x4b105e=this['editor'],_0xced9d3=_0x4b105e['plugins']['get']('TrackChangesEditing');_0x4b105e['plugins']['has']('UndoEditing')&&(_0xced9d3['enableCommand']('undo'),_0xced9d3['enableCommand']('redo'));}}class Mt extends _0x513c76{static get['requires'](){return[jt];}['afterInit'](){const _0x5a05cf=this['editor'];if(!_0x5a05cf['plugins']['has']('TableCaptionEditing'))return;_0x5a05cf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x513c76{['tableProperties'];['tableCellProperties'];constructor(_0x3527e6){super(_0x3527e6),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 _0x52e96a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2394b3 of this['tableProperties'])_0x52e96a['enableCommand'](_0x2394b3,(_0xcbcca1,_0x4eb730)=>{const _0x36fe23=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2394b3,[_0x36fe23],this['tableProperties'],'tableProperties',_0xcbcca1,_0x4eb730);});_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52e96a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x705a7f,_0x109ccd)=>this['handleDiscardAction'](this['tableProperties'],_0x705a7f,_0x109ccd)),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x549379 of this['tableCellProperties'])_0x52e96a['enableCommand'](_0x549379,(_0x470b44,_0xe4e00f)=>{const _0x4a5cc0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x549379,_0x4a5cc0,this['tableCellProperties'],'tableCellProperties',_0x470b44,_0xe4e00f);});_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52e96a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5c90ac,_0x5bef76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5c90ac,_0x5bef76)),_0x52e96a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52e96a['descriptionFactory']['registerDescriptionCallback'](_0x22a466=>this['handleSuggestionDescription'](_0x22a466));}['_handlePropertyChange'](_0x4c641e,_0x3679ab,_0x33f190,_0x30b1d3,_0x2fe464,_0x124efe){const _0x6dc8f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x124efe['batch'],()=>{for(const _0x76e47c of _0x3679ab){if(this['_getSuggestion'](_0x76e47c,_0x30b1d3))_0x2fe464(_0x124efe);else{const _0x1354bd={};for(const _0xf17ae6 of _0x33f190){const _0x1ab248=_0x76e47c['getAttribute'](_0xf17ae6);void 0x0!==_0x1ab248&&(_0x1354bd[_0xf17ae6]=_0x1ab248);}_0x2fe464(_0x124efe),_0x6dc8f0['markBlockFormat'](_0x76e47c,{'commandParams':[_0x1354bd]},[],_0x30b1d3);}}});}['handleDiscardAction'](_0x11afc7,_0x23f990,_0x73740a){const _0x3c970d=_0x23f990[0x0]['start']['nodeAfter'],_0x13192a=_0x73740a['commandParams'][0x0];this['editor']['model']['change'](_0x4a9b6f=>{for(const _0x123b78 of _0x11afc7)void 0x0!==_0x13192a[_0x123b78]?_0x4a9b6f['setAttribute'](_0x123b78,_0x13192a[_0x123b78],_0x3c970d):_0x4a9b6f['removeAttribute'](_0x123b78,_0x3c970d);});}['handleSuggestionDescription'](_0x8744ca){if(_0x8744ca['data'])switch(_0x8744ca['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'](_0x1541fd,_0x5bd9c0){const _0x410312=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2366c7 of _0x410312['getSuggestions']({'skipNotAttached':!0x0})){const _0x1eb170=_0x2366c7['getContainedElement']();if(_0x2366c7['subType']===_0x5bd9c0&&_0x1eb170===_0x1541fd)return _0x2366c7;}return null;}}const m='$elementName';class p extends _0x513c76{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1586d5,_0x15ddea,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(_0x1a16df){function _0x1ed9c7(_0x22fc02){return _0x22fc02['map'](_0x28d07c=>String['fromCharCode'](_0x28d07c))['join']('');}super(_0x1a16df),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d1b8f,_0xf8653d,_0x4a91e3,_0x3d4fa8)=>{this['_model']['change'](()=>{for(const _0x263871 of[..._0x3d4fa8,..._0x4a91e3])this['_model']['markers']['has'](_0x263871)&&_0x1a16df['editing']['reconvertMarker'](_0x263871);});}),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']=_0x1a16df['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(),_0x1a16df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a16df['config']['get']('trackChanges.trackFormatChanges'),_0x1a16df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a16df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1a16df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1ed9c7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1ed9c7([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x30]);}['init'](){const _0x4a0c55=this['editor'],_0xa9754b=(_0x11baca,_0x5013c4)=>{if('attribute'!=_0x11baca)return'ck-suggestion-marker-'+_0x11baca;const _0x3e88f4=_0x5013c4['split']('|')[0x0];return this['_isBlockAttribute'](_0x3e88f4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a0c55['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x579954=>{const {id:_0x5e0519,type:_0x30650a,subType:_0x2ace5e}=this['_splitMarkerName'](_0x579954['markerName']),_0x4b94db=['ck-suggestion-marker',_0xa9754b(_0x30650a,_0x2ace5e)];let _0x1c7446=0xbb8;return this['activeMarkers']['includes'](_0x579954['markerName'])&&(_0x4b94db['push']('ck-suggestion-marker--active'),_0x1c7446=0xbc2),'deletion'==_0x30650a&&(_0x1c7446+=0x5),{'classes':_0x4b94db,'attributes':{'data-suggestion':_0x5e0519},'priority':_0x1c7446};}}),_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0x349dcb=>{_0x349dcb['on']('addMarker:suggestion',(_0x27b49f,_0x3c000c,_0x472b82)=>{if(!_0x472b82['options']['showSuggestionHighlights'])return;const _0x218fe3=_0x3c000c['item'];if(!_0x218fe3)return;const _0xf3208f=_0x472b82['mapper']['toViewElement'](_0x218fe3);_0x4a0c55['model']['schema']['isObject'](_0x218fe3)&&_0xf3208f&&!_0xf3208f['getCustomProperty']('widget')&&_0xf3208f['is']('containerElement')&&_0x57f963(_0xf3208f,_0x472b82['writer']);},{'priority':'high'});}),_0x4a0c55['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d8b67,_0x199ea3)=>{if(!_0x199ea3['options']['showSuggestionHighlights'])return null;const {type:_0x37138e,subType:_0x135b5a}=this['_splitMarkerName'](_0x4d8b67['markerName']);return{'classes':['ck-suggestion-marker',_0xa9754b(_0x37138e,_0x135b5a)],'priority':0xbb8};}});const _0x2ad1f4=({showActiveMarkers:_0x2f3b8b=!0x0,isAttributeSuggestion:_0x3957ca=!0x1}={})=>(_0x2c80fd,_0x1912a7,_0x52dfe2)=>{if(!_0x1912a7['item'])return;const {id:_0x3129f5}=this['_splitMarkerName'](_0x1912a7['markerName']);if(_0x3957ca){const _0x53ff53=this['_suggestions']['get'](_0x3129f5),_0x1d17a3=this['_getAttributeKey'](_0x53ff53);if(!this['_isBlockAttribute'](_0x1d17a3))return;}if(_0x1912a7['item']['is']('selection'))return void _0x52dfe2['consumable']['consume'](_0x1912a7['item'],_0x2c80fd['name']);const _0x292052=_0x52dfe2['mapper']['toViewElement'](_0x1912a7['item']);if(_0x1912a7['item']['is']('element')&&_0x4a0c55['model']['schema']['isBlock'](_0x1912a7['item'])&&!_0x292052['getCustomProperty']('addHighlight')){_0x52dfe2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x292052),_0x52dfe2['writer']['setAttribute']('data-suggestion',_0x3129f5,_0x292052),_0x52dfe2['mapper']['bindElementToMarker'](_0x292052,_0x1912a7['markerName']),_0x2f3b8b&&(this['activeMarkers']['includes'](_0x1912a7['markerName'])?_0x52dfe2['writer']['addClass']('ck-suggestion-marker--active',_0x292052):_0x52dfe2['writer']['removeClass']('ck-suggestion-marker--active',_0x292052));for(const _0x44d8f1 of _0x4a0c55['model']['createRangeIn'](_0x1912a7['item'])['getItems']())_0x52dfe2['consumable']['consume'](_0x44d8f1,_0x2c80fd['name']);_0x52dfe2['consumable']['consume'](_0x1912a7['item'],_0x2c80fd['name']);}};_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0xe5fb3b=>{_0xe5fb3b['on']('addMarker:suggestion:formatBlock',(_0x3c19b5,_0x5ac875,_0x2d6c34)=>{_0x2d6c34['options']['showSuggestionHighlights']&&_0x2ad1f4({'showActiveMarkers':!0x1})(_0x3c19b5,_0x5ac875,_0x2d6c34);},{'priority':'highest'});}),_0x4a0c55['conversion']['for']('dataDowncast')['add'](_0x2f5a9f=>{_0x2f5a9f['on']('addMarker:suggestion:attribute',(_0x52a67b,_0x478b35,_0x1e4d07)=>{_0x1e4d07['options']['showSuggestionHighlights']&&_0x2ad1f4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52a67b,_0x478b35,_0x1e4d07);},{'priority':'highest'});}),_0x4a0c55['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51852b,_0x54cec7)=>_0x54cec7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51852b['substr'](0xb)}}),_0x4a0c55['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e8cc6,{writer:_0x495d25})=>{let _0x36fb8b='suggestion:'+_0x1e8cc6['getAttribute']('suggestion-type')+':'+_0x1e8cc6['getAttribute']('id');return _0x1e8cc6['getAttribute']('marker-count')&&(_0x36fb8b+=':'+_0x1e8cc6['getAttribute']('marker-count')),_0x495d25['createElement']('$marker',{'data-name':_0x36fb8b});}}),_0x4a0c55['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x127993=>{_0x127993['on']('addMarker:suggestion:formatBlock',_0x2ad1f4(),{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0xccf5da=>{_0xccf5da['on']('addMarker:suggestion:attribute',_0x2ad1f4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x4fef3b=>{_0x4fef3b['on']('removeMarker:suggestion:formatBlock',(_0x521a26,_0x3b2c6e,_0x4a75d8)=>{const _0x1a7a5b=_0x4a75d8['mapper']['markerNameToElements'](_0x3b2c6e['markerName']);if(_0x1a7a5b){for(const _0x44859c of _0x1a7a5b)_0x44859c['getCustomProperty']('addHighlight')||(_0x4a75d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44859c),_0x4a75d8['writer']['removeAttribute']('data-suggestion',_0x44859c),_0x4a75d8['mapper']['unbindElementFromMarkerName'](_0x44859c,_0x3b2c6e['markerName']));}},{'priority':'high'});}),_0x4a0c55['conversion']['for']('editingDowncast')['add'](_0x2f446b=>{_0x2f446b['on']('removeMarker:suggestion:attribute',(_0x1c4807,_0x572c8f,_0x511d3d)=>{const _0x21743b=_0x511d3d['mapper']['markerNameToElements'](_0x572c8f['markerName']);if(!_0x21743b)return;const {id:_0x5be135}=this['_splitMarkerName'](_0x572c8f['markerName']),_0x1d2341=this['_suggestions']['get'](_0x5be135),_0x3abb34=this['_getAttributeKey'](_0x1d2341);if(this['_isBlockAttribute'](_0x3abb34)){for(const _0x3fb957 of _0x21743b)_0x3fb957['getCustomProperty']('addHighlight')||(_0x511d3d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fb957),_0x511d3d['writer']['removeAttribute']('data-suggestion',_0x3fb957),_0x511d3d['mapper']['unbindElementFromMarkerName'](_0x3fb957,_0x572c8f['markerName']));}},{'priority':'high'});}),_0x4a0c55['model']['document']['registerPostFixer'](_0x28de2d=>{let _0x325cb0=!0x1;const _0x515286=Array['from'](_0x4a0c55['model']['document']['differ']['getChangedMarkers']()),_0x1ba7be=new Set();for(const {name:_0x2ae303,data:_0xf6ad25}of _0x515286){const {group:_0x122caf,type:_0x466146,subType:_0x3fd44e,id:_0x494959}=this['_splitMarkerName'](_0x2ae303);if('suggestion'!==_0x122caf)continue;const _0x2d6282=this['_suggestions']['get'](_0x494959);if(null!=_0xf6ad25['newRange']){'formatInline'==_0x466146&&(_0x325cb0=_0x325cb0||Et(_0xf6ad25['newRange'],_0x2ae303,_0x28de2d,_0x4a0c55['model']['schema']));const _0x5c98bd='attribute'==_0x466146&&this['_isBlockAttribute'](_0x3fd44e['split']('|')[0x0]);if(_0xf6ad25['newRange']['isCollapsed']||'$graveyard'==_0xf6ad25['newRange']['root']['rootName']||'formatBlock'==_0x466146&&!Ut(_0xf6ad25['newRange'])||_0x5c98bd&&!Ut(_0xf6ad25['newRange'])||'deletion'==_0x466146&&!(!Tt(_0x39d5f2=_0xf6ad25['newRange'])&&!function(_0x3494a8){return _0x3494a8['start']['parent']==_0x3494a8['end']['nodeBefore']&&_0x3494a8['start']['isAtEnd'];}(_0x39d5f2)))_0x28de2d['removeMarker'](_0x2ae303),_0x325cb0=!0x0;else{if(!_0x2d6282||!_0x2d6282['isInContent'])continue;_0x1ba7be['add'](_0x2d6282);}}}var _0x39d5f2;return _0x1ba7be['size']>0x0&&(_0x325cb0=!!this['_joinWithAdjacentSuggestions'](_0x1ba7be)||_0x325cb0),_0x325cb0;}),_0x4a0c55['model']['document']['registerPostFixer'](_0x23a570=>{let _0x3b3884=!0x1;for(const _0x352c45 of _0x4a0c55['model']['document']['differ']['getChanges']())if('insert'==_0x352c45['type'])for(const _0x93fcad of this['_suggestions']['values']()){if(_0x93fcad['isMultiRange']||!_0x93fcad['isInContent'])continue;const _0xa87097='formatBlock'==_0x93fcad['type'],_0x1def8b=this['_getAttributeKey'](_0x93fcad),_0x337433=_0x1def8b&&this['_isBlockAttribute'](_0x1def8b);if(!_0xa87097&&!_0x337433)continue;const _0x3bbe68=_0x93fcad['getFirstRange']();if(_0x3bbe68['start']['parent']!=_0x3bbe68['end']['parent']&&!_0x3bbe68['end']['isAtEnd']){const _0x4efc05=_0x4a0c55['model']['createPositionAt'](_0x3bbe68['start']['nodeAfter'],'end'),_0x4e7589=_0x4a0c55['model']['createRange'](_0x3bbe68['start'],_0x4efc05);_0x23a570['updateMarker'](_0x93fcad['getFirstMarker'](),{'range':_0x4e7589}),_0x3b3884=!0x0;}}return _0x3b3884;}),_0x4a0c55['model']['document']['registerPostFixer'](_0x2a6fb9=>this['_processAttributeChanges'](_0x2a6fb9)),_0x4a0c55['model']['document']['registerPostFixer'](_0x3411fd=>!_0x3411fd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3411fd)),_0x4a0c55['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a0c55['model']['document']['on']('change:data',(_0xfc9b0d,_0x5e58f9)=>{if(!_0x5e58f9['isLocal']||_0x5e58f9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x184dd8=_0x4a0c55['model']['document']['differ']['getChanges']();if(0x0==_0x184dd8['length'])return;const _0x548002=[],_0x4b62cf=_0x184dd8['filter'](_0x53c831=>'attribute'==_0x53c831['type']),_0x3f51ed=_0x184dd8['filter'](_0xba0717=>'insert'==_0xba0717['type']&&'$text'!=_0xba0717['name']);for(const _0x4ebf01 of _0x4b62cf)this['_isRegisteredAttribute'](_0x4ebf01['attributeKey'])&&_0x548002['push']({'key':_0x4ebf01['attributeKey'],'newValue':_0x4ebf01['attributeNewValue'],'oldValue':_0x4ebf01['attributeOldValue'],'range':Ot(_0x4ebf01['range'],_0x4a0c55['model'])});for(const _0x47a1ef of _0x3f51ed){if('rename'!=_0x47a1ef['action']&&'refresh'!=_0x47a1ef['action'])continue;const _0xe1b1b9=Gt(_0x47a1ef['position']['nodeAfter'],_0x4a0c55['model']),_0x3e28e7=_0x47a1ef['before'];'rename'==_0x47a1ef['action']&&_0x548002['push']({'key':m,'newValue':_0x47a1ef['name'],'oldValue':_0x3e28e7['name'],'range':_0xe1b1b9});for(const [_0x5d445f,_0x1d64a4]of _0x3e28e7['attributes']){if(!this['_isRegisteredAttribute'](_0x5d445f))continue;const _0x351872=_0x47a1ef['attributes']['get'](_0x5d445f);_0x1d64a4!==_0x351872&&_0x548002['push']({'key':_0x5d445f,'newValue':_0x351872,'oldValue':_0x1d64a4,'range':_0xe1b1b9});}for(const [_0x5d6541,_0x39e6c9]of _0x47a1ef['attributes'])this['_isRegisteredAttribute'](_0x5d6541)&&(_0x3e28e7['attributes']['has'](_0x5d6541)||_0x548002['push']({'key':_0x5d6541,'newValue':_0x39e6c9,'oldValue':null,'range':_0xe1b1b9}));}0x0!=_0x548002['length']&&_0x4a0c55['model']['enqueueChange'](_0x5e58f9,_0x192631=>{const _0x374336=_0x50a7b0();for(const {range:_0x5850bd,key:_0x530bfb,oldValue:_0x48300f,newValue:_0x23a1fa}of _0x548002)this['markAttributeChange'](_0x5850bd,_0x530bfb,_0x48300f,_0x23a1fa,{'groupId':_0x374336});this['_reduceExistingSuggestions'](_0x192631,_0x548002);});},{'priority':'lowest'}),_0x4a0c55['model']['markers']['on']('update:suggestion',(_0x17c45e,_0x5bccee,_0x3892f9)=>{if(null==_0x3892f9){const {id:_0x550da7}=this['_splitMarkerName'](_0x5bccee['name']),_0x2413bc=this['_suggestions']['get'](_0x550da7);_0x2413bc&&_0x2413bc['addMarkerName'](_0x5bccee['name']);}}),_0x4a0c55['model']['document']['on']('change:data',()=>{const _0x3ce96f=Array['from'](_0x4a0c55['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b0ac6=>'suggestion'===this['_splitMarkerName'](_0x1b0ac6['name'])['group']);if(0x0===_0x3ce96f['length'])return;_0x3ce96f['sort']((_0x2c59fe,_0x2f9de5)=>{const _0x72ce95=_0x2c59fe['data']['oldRange'],_0x32fadb=_0x2f9de5['data']['oldRange'];return null===_0x72ce95&&null===_0x32fadb?0x0:null===_0x72ce95&&null!==_0x32fadb?-0x1:null!==_0x72ce95&&null===_0x32fadb?0x1:_0x72ce95['start']['isBefore'](_0x32fadb['start'])?-0x1:0x1;});const _0x5085b6=new Set(),_0x1859fb=new Set();for(const {name:_0x39c9f2,data:_0x3fd9c1}of _0x3ce96f){const {id:_0x3aaa7f}=this['_splitMarkerName'](_0x39c9f2);if(null===_0x3fd9c1['oldRange']){const _0x1d90f6=this['_handleNewSuggestionMarker'](_0x39c9f2);_0x1859fb['add'](_0x1d90f6);}else{const _0x41fcaa=this['_suggestions']['get'](_0x3aaa7f);null!==_0x3fd9c1['newRange']||_0x41fcaa['isInContent']?(_0x5085b6['add'](_0x41fcaa['head']),_0x1859fb['add'](_0x41fcaa)):this['_removeSuggestion'](_0x41fcaa);}}_0x1859fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1859fb);for(const _0x29a725 of _0x5085b6)this['fire']('suggestionChanged',_0x29a725);}),_0x4a0c55['model']['on']('applyOperation',(_0x29c197,_0x5f465f)=>{const _0x2fb9b1=_0x5f465f[0x0];if(!this['_suggestions']['size'])return;if(!_0x2fb9b1['isDocumentOperation'])return;if(_0x2fb9b1['batch']['isUndo']||!_0x2fb9b1['batch']['isLocal'])return;let _0x99286f,_0x333677;switch(_0x2fb9b1['type']){case'insert':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['position']),_0x333677=_0x99286f['getShiftedBy'](_0x2fb9b1['howMany']);break;case'split':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['splitPosition']),_0x333677=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['moveTargetPosition']);break;case'move':_0x99286f=_0x4a0c55['model']['createPositionAt'](_0x2fb9b1['targetPosition']),_0x333677=_0x99286f['getShiftedBy'](_0x2fb9b1['howMany']);break;default:return;}const _0x18cfd6=_0x4a0c55['model']['createRange'](_0x99286f,_0x333677);_0x4a0c55['model']['change'](()=>{for(const {suggestion:_0x442772,meta:_0x36e087}of this['_findSuggestions'](_0x18cfd6)){if(_0x442772['isMultiRange'])continue;if('formatInline'==_0x442772['type'])continue;const _0x26066e=this['_getAttributeKey'](_0x442772);if(_0x26066e&&this['_isBlockAttribute'](_0x26066e)&&'split'!=_0x2fb9b1['type'])continue;const _0x3d610c=_0x442772['data']&&_0x442772['data']['multipleBlocks'];('formatBlock'!=_0x442772['type']||'split'==_0x2fb9b1['type']&&!_0x3d610c)&&(_0x36e087['containsRangeInObject']||'insertion'==_0x442772['type']&&_0x36e087['isOwn']||_0x442772['getFirstRange']()['containsRange'](_0x18cfd6)&&this['_breakSuggestionMarker'](_0x442772,_0x99286f,_0x333677));}});},{'priority':'lowest'}),_0x4a0c55['model']['on']('deleteContent',(_0x587fe5,_0x1bd6f2)=>{const _0x9843b7=_0x1bd6f2[0x0],_0x546b94=_0x1bd6f2[0x1];if(_0x546b94&&_0x546b94['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x9843b7['isCollapsed'])return;const _0xd895b7=_0x4a0c55['model']['schema'],{start:_0x1ee6c2,end:_0x161f0f}=_0x9843b7['getFirstRange'](),_0x5b1ec1=_0x1ee6c2['nodeAfter']&&_0xd895b7['isLimit'](_0x1ee6c2['nodeAfter'])?null:_0xd895b7['getNearestSelectionRange'](_0x1ee6c2,'forward'),_0x228b84=_0x161f0f['nodeBefore']&&_0xd895b7['isLimit'](_0x161f0f['nodeBefore'])?null:_0xd895b7['getNearestSelectionRange'](_0x161f0f,'backward'),_0x5bddba=_0x4a0c55['model']['createRange'](_0x5b1ec1?_0x5b1ec1['start']:_0x1ee6c2,_0x228b84?_0x228b84['end']:_0x161f0f);_0x4a0c55['model']['change'](_0x13ac4f=>{this['markDeletion'](_0x5bddba);const _0x594435=_0x4a0c55['model']['schema']['getNearestSelectionRange'](_0x5bddba['start']);_0x9843b7['is']('documentSelection')?_0x13ac4f['setSelection'](_0x594435):_0x9843b7['setTo'](_0x594435);}),_0x587fe5['stop']();},{'priority':_0x362a86['normal']+0xa}),_0x4a0c55['model']['on']('insertContent',(_0x22cfc5,_0x1c7c7b)=>{const _0x522735=_0x1c7c7b[_0x1c7c7b['length']-0x1];_0x522735&&_0x522735['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a0c55['model']['change'](()=>{let _0x31a45e=_0x4a0c55['model']['insertContent'](_0x1c7c7b[0x0],_0x1c7c7b[0x1],_0x1c7c7b[0x2],{'forceDefaultExecution':!0x0});if(!_0x31a45e)return;_0x22cfc5['return']=_0x31a45e['clone']();const _0x2193a4=_0x31a45e['end']['nodeBefore'],_0x5b6e8a=_0x4a0c55['model']['schema'];_0x2193a4&&_0x5b6e8a['isBlock'](_0x2193a4)&&!_0x5b6e8a['isObject'](_0x2193a4)&&(_0x31a45e=_0x4a0c55['model']['createRange'](_0x31a45e['start'],_0x4a0c55['model']['createPositionAt'](_0x2193a4,'end'))),this['markInsertion'](_0x31a45e);}),_0x22cfc5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f6f17=new $(_0x4a0c55,this['_suggestions']);_0x4a0c55['commands']['add']('acceptSuggestion',_0x4f6f17),this['enableCommand']('acceptSuggestion');const _0xa37b45=new B(_0x4a0c55,this['_suggestions']);_0x4a0c55['commands']['add']('discardSuggestion',_0xa37b45),this['enableCommand']('discardSuggestion'),_0x4a0c55['commands']['add']('acceptAllSuggestions',new x(_0x4a0c55,_0x4f6f17,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a0c55['commands']['add']('discardAllSuggestions',new x(_0x4a0c55,_0xa37b45,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a0c55['commands']['add']('acceptSelectedSuggestions',new R(_0x4a0c55,_0x4f6f17,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a0c55['commands']['add']('discardSelectedSuggestions',new R(_0x4a0c55,_0xa37b45,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e42e9=_0x4a0c55['plugins']['get']('CommentsRepository');this['listenTo'](_0x3e42e9,'addComment',(_0x4a57da,{threadId:_0x4fe9b4})=>{const _0x1765da=this['_suggestions']['get'](_0x4fe9b4);_0x1765da&&_0x1765da['commentThread']&&0x1===_0x1765da['commentThread']['length']&&this['_updateSuggestionData'](_0x4fe9b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e42e9,'removeComment',(_0x51d633,{threadId:_0x5c162a})=>{const _0x48404a=this['_suggestions']['get'](_0x5c162a);_0x48404a&&_0x48404a['commentThread']&&!_0x48404a['commentThread']['length']&&this['_updateSuggestionData'](_0x5c162a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x46545b){if(this['_adapter'])throw new _0x4a1ebc('track-changes-adapter-already-set',this);this['_adapter']=_0x46545b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52091d=!0x1,toJSON:_0x20ace9=!0x1}={}){const _0x3c2625=[];for(const _0x583171 of this['_suggestions']['values']())_0x52091d&&!_0x583171['isInContent']||_0x3c2625['push'](_0x583171);return _0x20ace9?_0x3c2625['map'](_0x5d93b2=>_0x5d93b2['toJSON']()):_0x3c2625;}['getSuggestion'](_0x441be2){const _0x2bc6f2=this['_suggestions']['get'](_0x441be2);if(!_0x2bc6f2)throw new _0x4a1ebc('track-changes-suggestion-not-found',this);return _0x2bc6f2;}['hasSuggestion'](_0x5c3570){return this['_suggestions']['has'](_0x5c3570);}['addSuggestionData'](_0x3725e9){const {authorId:_0x537b90,id:_0x99089b,attributes:_0xf76745}=_0x3725e9,[_0x237982,_0x5db3ac]=_0x3725e9['type']['split'](':'),_0x5e7e48=this['_suggestions']['get'](_0x99089b)||this['_createSuggestion'](_0x237982,_0x5db3ac,_0x99089b,_0x537b90,_0xf76745);if(this['_addThreadToSuggestion'](_0x5e7e48),this['_checkSuggestionCorrectness'](_0x5e7e48,_0x237982,_0x5db3ac||null,_0x537b90),_0x5e7e48['createdAt']=_0x3725e9['createdAt'],_0x5e7e48['_isDataLoaded']=!0x0,_0xf76745&&_0xf76745['@external']){const _0x1e6cad=_0xf76745['@external'],_0xe8440d=this['_getExternalAuthor'](_0x1e6cad['authorName']);_0x5e7e48['authoredAt']=_0x1e6cad['createdAt'],_0x5e7e48['author']=_0xe8440d,_0x5e7e48['isExternal']=!0x0;}else _0x5e7e48['authoredAt']=_0x3725e9['createdAt'];switch(_0x3725e9['data']&&(_0x5e7e48['data']=_0x3725e9['data']),_0x3725e9['attributes']&&(_0x5e7e48['attributes']=_0x3725e9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5e7e48['_saved']=!0x0),this['_suggestionState']['get'](_0x5e7e48)){case'notReady':this['_suggestionState']['set'](_0x5e7e48,'dataReady');break;case'markerReady':_0x5e7e48['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5e7e48])),this['_refreshSuggestionsChain'](new Set([_0x5e7e48])),this['_suggestionState']['set'](_0x5e7e48,'ready'),this['fire']('suggestionLoaded',_0x5e7e48)):this['_suggestionState']['set'](_0x5e7e48,'removed');}return _0x5e7e48;}['acceptSuggestion'](_0x1c2e9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x245682 of _0x1c2e9a['getAllAdjacentSuggestions']())_0x245682['accept']();});});}['discardSuggestion'](_0x22d3d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c18f7 of _0x22d3d2['getAllAdjacentSuggestions']())_0x1c18f7['discard']();});});}['enableCommand'](_0x2d8096,_0x44845b){const _0x5f3f63=this['editor']['commands']['get'](_0x2d8096);if(!_0x5f3f63)throw new _0x4a1ebc('track-changes-command-not-found',this,{'commandName':_0x2d8096});if(this['_enabledCommands']['has'](_0x5f3f63))throw new _0x4a1ebc('track-changes-enable-command-twice',this,{'commandName':_0x2d8096});this['_enabledCommands']['add'](_0x5f3f63),_0x44845b&&_0x5f3f63['on']('execute',(_0x346651,_0x4f6664)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6664['length']>0x0&&_0x4f6664[_0x4f6664['length']-0x1]&&_0x4f6664[_0x4f6664['length']-0x1]['forceDefaultExecution']?_0x4f6664['pop']():(_0x346651['return']=_0x44845b((..._0x457c19)=>_0x5f3f63['execute'](..._0x457c19,{'forceDefaultExecution':!0x0}),..._0x4f6664),_0x346651['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x554b2f){let _0x1bb374,_0x47e5a5;const _0x17284d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1bb374=_0x554b2f();}catch(_0x17699f){_0x47e5a5=_0x17699f;}return _0x17284d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x47e5a5&&_0x4a1ebc['rethrowUnexpectedError'](_0x47e5a5,this),_0x1bb374;}['markInsertion'](_0x3619f7,_0x1464f7=null,_0x16ee5a={}){if(_0x3619f7['isCollapsed'])return null;const _0xd46d59=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x498ad7,meta:_0x46c42f}of this['_findSuggestions'](_0x3619f7,'insertion'))if(_0x46c42f['isOwn']){if(!_0x46c42f['isNextTo']){if(_0x46c42f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x498ad7,_0x16ee5a))continue;return _0x498ad7;}if(Lt(_0x498ad7,_0x16ee5a))return _0x498ad7;this['_breakSuggestionMarker'](_0x498ad7,_0x3619f7['start'],_0x3619f7['end']);break;}if(_0x1464f7==_0x498ad7['subType']&&Lt(_0x498ad7,_0x16ee5a)){const _0x3d0664=_0x498ad7['getFirstRange']();return _0x3d0664['start']['isEqual'](_0x3619f7['end'])?this['_setSuggestionRange'](_0x498ad7,this['_model']['createRange'](_0x3619f7['start'],_0x3d0664['end'])):this['_setSuggestionRange'](_0x498ad7,this['_model']['createRange'](_0x3d0664['start'],_0x3619f7['end'])),_0x498ad7;}}const _0xb3f79d=_0x50a7b0(),_0x2b4aa6=_0xd46d59['id'],_0x182ff2=_0x1464f7?'insertion:'+_0x1464f7:'insertion',_0x27ec42=this['_setSuggestionData']({'id':_0xb3f79d,'type':_0x182ff2,'createdAt':new Date(),'authorId':_0x2b4aa6,'attributes':_0x16ee5a});return this['_addSuggestionMarker'](_0x182ff2,_0xb3f79d,_0x2b4aa6,_0x3619f7),_0x27ec42;}['markMultiRangeInsertion'](_0x4d49e1,_0x329f5d='multi',_0x2f463e={}){const _0x2be05a=this['editor']['plugins']['get']('Users')['me'],_0x17444d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x329f5d,'join');for(const _0x3e924d of this['getSuggestions']())if(_0x3e924d['author']['id']==_0x2be05a['id']&&'insertion'==_0x3e924d['type']&&_0x3e924d['subType']==_0x329f5d&&Lt(_0x3e924d,_0x2f463e)&&(_0x17444d(_0x3e924d['getRanges'](),_0x4d49e1)||_0x17444d(_0x4d49e1,_0x3e924d['getRanges']()))){for(const _0x296ab6 of _0x4d49e1)_0x3e924d['addRange'](_0x296ab6);return _0x3e924d;}for(const {suggestion:_0x3dfca1,meta:_0x5485e6}of this['_findSuggestions'](_0x4d49e1,'insertion')){if(!_0x5485e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5485e6['containsRangeInObject'])continue;if(!Lt(_0x3dfca1,_0x2f463e))continue;let _0x554f98=!0x0;for(const _0x110cd8 of _0x3dfca1['getRanges']())for(const _0x38bbaa of _0x4d49e1)if(!_0x110cd8['containsRange'](_0x38bbaa)){_0x554f98=!0x1;break;}if(_0x554f98)return _0x3dfca1;}const _0x3f2e26=_0x50a7b0(),_0x3d3a1c=_0x2be05a['id'],_0x151b36='insertion:'+_0x329f5d,_0x4a01f3=this['_setSuggestionData']({'id':_0x3f2e26,'type':_0x151b36,'createdAt':new Date(),'authorId':_0x3d3a1c,'attributes':_0x2f463e});for(const _0x3af2d3 of _0x4d49e1)this['_addSuggestionMarker'](_0x151b36,_0x3f2e26,_0x3d3a1c,_0x3af2d3,u['getMultiRangeId']());return _0x4a01f3;}['markInlineFormat'](_0x21e90b,_0x1472ad,_0x465208=null,_0xccf49c={}){if(_0x465208=_0x465208||Vt(_0x1472ad),_0x21e90b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xa11d9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x465208,'accept');return this['forceDefaultExecution'](()=>_0xa11d9([_0x21e90b],_0x1472ad,_0xccf49c)),null;}const _0x143974=this['editor']['plugins']['get']('Users')['me'],_0x2879cd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24dd6d,meta:_0x2b374d}of this['_findSuggestions'](_0x21e90b,'insertion'))_0x2b374d['isOwn']&&!_0x2b374d['isInsideObject']&&_0x2879cd['push'](..._0x24dd6d['getRanges']());}const _0x4d2b7f=function(_0x37b099,_0x5a8b44){const _0x1d4c58=[];for(const _0x27ee13 of _0x5a8b44){const _0x303035=_0x37b099['getIntersection'](_0x27ee13);_0x303035&&_0x1d4c58['push'](_0x303035);}return _0x1d4c58;}(_0x21e90b,_0x2879cd),_0xa5df0a=function(_0x2e0e57,_0x597d02){const _0x27164=[_0x2e0e57];for(const _0x1d8193 of _0x597d02){let _0x45693c=0x0;for(;_0x45693c<_0x27164['length'];){const _0x29b561=_0x27164[_0x45693c]['getDifference'](_0x1d8193);_0x27164['splice'](_0x45693c,0x1,..._0x29b561),_0x45693c+=_0x29b561['length'];}}return _0x27164;}(_0x21e90b,_0x2879cd);_0x4d2b7f['length']&&this['_model']['change'](()=>{for(const _0x4ec9a8 of _0x4d2b7f){const _0x366a41=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x465208,'accept');this['forceDefaultExecution'](()=>_0x366a41([_0x4ec9a8],_0x1472ad,_0xccf49c));}});for(const _0x436c9d of _0xa5df0a){let _0x47b8c1=null,_0xa6b405=_0x436c9d['start'],_0x460bac=_0x436c9d['end'];for(const {suggestion:_0x3fb1db,meta:_0x1501ff}of this['_findSuggestions'](_0x436c9d,'formatInline')){if(!_0x1501ff['isOwn'])continue;if(_0x3fb1db['subType']!=_0x465208)continue;if(!Lt(_0x3fb1db,_0xccf49c))continue;const _0x242f4b=_0x3fb1db['getFirstRange']();if(_0x242f4b['containsRange'](_0x436c9d,!0x0))return null;_0xa6b405=_0xa6b405['isBefore'](_0x242f4b['start'])?_0xa6b405:_0x242f4b['start'],_0x460bac=_0x460bac['isAfter'](_0x242f4b['end'])?_0x460bac:_0x242f4b['end'],_0x47b8c1?_0x242f4b['start']['isBefore'](_0x47b8c1['getFirstRange']()['start'])?(_0x47b8c1['removeMarkers'](),_0x47b8c1=_0x3fb1db):_0x3fb1db['removeMarkers']():_0x47b8c1=_0x3fb1db;}const _0x10214b=this['_model']['createRange'](_0xa6b405,_0x460bac);if(_0x47b8c1)this['_setSuggestionRange'](_0x47b8c1,_0x10214b);else{const _0xdeda04=_0x50a7b0(),_0xaf9895=_0x143974['id'];this['_setSuggestionData']({'id':_0xdeda04,'type':'formatInline:'+_0x465208,'data':_0x1472ad,'createdAt':new Date(),'authorId':_0xaf9895,'attributes':_0xccf49c}),this['_addSuggestionMarker']('formatInline:'+_0x465208,_0xdeda04,_0xaf9895,_0x10214b);}}return null;}['markBlockFormat'](_0x3f61a7,_0x509c04,_0x47d6f7=[],_0x5e5291=null,_0x16d072={}){_0x509c04['formatGroupId']||(_0x509c04['formatGroupId']=_0x509c04['commandName']),_0x509c04['multipleBlocks']=_0x3f61a7['is']('range'),_0x5e5291=_0x5e5291||Vt(_0x509c04);const _0x4079a3=_0x47d6f7['map'](_0x434638=>Gt(_0x434638,this['_model'])),_0x12eda9=_0x3f61a7['is']('range')?_0x3f61a7:Gt(_0x3f61a7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x911449=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5291,'accept');return this['forceDefaultExecution'](()=>_0x911449([_0x12eda9],_0x509c04,_0x16d072)),null;}_0x4079a3['push'](_0x12eda9);let _0x1f71cf=!0x0;for(const _0x4ab040 of _0x4079a3)if(!this['_rangeIsInLocalUserInsertion'](_0x4ab040)){_0x1f71cf=!0x1;break;}if(_0x1f71cf&&'always'!==this['_trackFormatChanges']){const _0x476142=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5291,'accept');return this['forceDefaultExecution'](()=>_0x476142([_0x12eda9],_0x509c04,_0x16d072)),null;}let _0x1ae988=null,_0xb7d262=_0x12eda9['start'],_0x8fcfe6=_0x12eda9['end'];for(const {suggestion:_0x341d86,meta:_0x1604f2}of this['_findSuggestions'](_0x12eda9,'formatBlock')){if(!_0x1604f2['isOwn'])continue;if(_0x1604f2['isNextTo']||_0x1604f2['containsRangeInObject']||_0x1604f2['isInsideObject'])continue;if(_0x341d86['data']['formatGroupId']!=_0x509c04['formatGroupId'])continue;if(!Lt(_0x341d86,_0x16d072))continue;const _0x1f6316=_0x341d86['getFirstRange']();if(_0x341d86['subType']==_0x5e5291){if(_0x1f6316['containsRange'](_0x12eda9,!0x0))return null;_0xb7d262=_0xb7d262['isBefore'](_0x1f6316['start'])?_0xb7d262:_0x1f6316['start'],_0x8fcfe6=_0x8fcfe6['isAfter'](_0x1f6316['end'])?_0x8fcfe6:_0x1f6316['end'],_0x1ae988?_0x1f6316['start']['isBefore'](_0x1ae988['getFirstRange']()['start'])?(_0x1ae988['removeMarkers'](),_0x1ae988=_0x341d86):_0x341d86['removeMarkers']():_0x1ae988=_0x341d86;}else{const _0x599c10=_0x12eda9['getIntersection'](_0x1f6316);this['_cutOutSuggestionMarker'](_0x341d86,_0x599c10);}}const _0x346d50=this['editor']['plugins']['get']('Users')['me'],_0x3b8d34=_0x50a7b0(),_0xc60f45=_0x346d50['id'];if(_0x1ae988)return this['_setSuggestionRange'](_0x1ae988,this['_model']['createRange'](_0xb7d262,_0x8fcfe6)),_0x1ae988;{const _0x4f3d6a=this['_setSuggestionData']({'id':_0x3b8d34,'type':'formatBlock:'+_0x5e5291,'data':_0x509c04,'createdAt':new Date(),'authorId':_0xc60f45,'attributes':_0x16d072});return this['_addSuggestionMarker']('formatBlock:'+_0x5e5291,_0x3b8d34,_0xc60f45,this['_model']['createRange'](_0xb7d262,_0x8fcfe6)),_0x4f3d6a;}}['markMultiRangeBlockFormat'](_0x58234e,_0x4d2912,_0x2171c1=[],_0x42a757=null,_0x2ded9e={}){_0x4d2912['formatGroupId']||(_0x4d2912['formatGroupId']=_0x4d2912['commandName']);const _0xbe27f9=_0x58234e[0x0];_0x4d2912['multipleBlocks']=_0xbe27f9['is']('range'),_0x42a757=_0x42a757||Vt(_0x4d2912);const _0xe209cc=_0x2171c1['map'](_0x567d71=>Gt(_0x567d71,this['_model'])),_0x22b25e=_0xbe27f9['is']('range')?_0x58234e:_0x58234e['map'](_0x4d321a=>Gt(_0x4d321a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x372d22=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'accept');return this['forceDefaultExecution'](()=>_0x372d22(_0x22b25e,_0x4d2912,_0x2ded9e)),null;}_0xe209cc['push'](..._0x22b25e);let _0x2cb54c=!0x0;for(const _0x110dfa of _0xe209cc)if(!this['_rangeIsInLocalUserInsertion'](_0x110dfa)){_0x2cb54c=!0x1;break;}if(_0x2cb54c&&'always'!==this['_trackFormatChanges']){const _0x1abcec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'accept');return this['forceDefaultExecution'](()=>_0x1abcec(_0x22b25e,_0x4d2912,_0x2ded9e)),null;}const _0x4944bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ba24b of this['getSuggestions']()){if(_0x2ba24b['author']['id']!=_0x4944bc['id'])continue;if('formatBlock'!=_0x2ba24b['type']||_0x2ba24b['data']['formatGroupId']!=_0x4d2912['formatGroupId'])continue;if(!Lt(_0x2ba24b,_0x2ded9e))continue;const _0x415286=_0x2ba24b['subType']==_0x42a757;for(let _0x50b0ed=0x0;_0x50b0ed<_0x22b25e['length'];_0x50b0ed++){const _0x1cbbd9=_0x22b25e[_0x50b0ed];for(const _0xc10874 of _0x2ba24b['getMarkers']()){const _0x2a7c72=_0xc10874['getRange']();if(_0x1cbbd9['isEqual'](_0x2a7c72)){_0x415286?(_0x22b25e['splice'](_0x50b0ed,0x1),_0x50b0ed--):_0x2ba24b['removeMarker'](_0xc10874['name']);break;}}}}if(0x0==_0x22b25e['length'])return null;const _0x4fc308=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a757,'join');for(const _0x2b7324 of this['getSuggestions']())if(_0x2b7324['author']['id']==_0x4944bc['id']&&'formatBlock'==_0x2b7324['type']&&_0x2b7324['data']['formatGroupId']==_0x4d2912['formatGroupId']&&_0x2b7324['subType']==_0x42a757&&Lt(_0x2b7324,_0x2ded9e)&&(_0x4fc308(_0x2b7324['getRanges'](),_0x22b25e)||_0x4fc308(_0x22b25e,_0x2b7324['getRanges']()))){for(const _0x22cf2a of _0x22b25e)_0x2b7324['addRange'](_0x22cf2a);return _0x2b7324;}const _0x2fdaa4=_0x50a7b0(),_0x2b476b=_0x4944bc['id'],_0x587cfc='formatBlock:'+_0x42a757,_0xb900f3=this['_setSuggestionData']({'id':_0x2fdaa4,'type':_0x587cfc,'data':_0x4d2912,'createdAt':new Date(),'authorId':_0x2b476b,'attributes':_0x2ded9e});for(const _0x3ba79e of _0x22b25e)this['_addSuggestionMarker'](_0x587cfc,_0x2fdaa4,_0x2b476b,_0x3ba79e,u['getMultiRangeId']());return _0xb900f3;}['markDeletion'](_0x5597d7,_0x5356d5=null,_0x516843={}){if(_0x5597d7['isCollapsed'])return null;const _0x1bf050=this['editor']['plugins']['get']('Users')['me'],_0x4c9740=new _0x1677da(_0x5597d7['start'],_0x5597d7['end']);for(const {suggestion:_0x172fc6,meta:_0x3e4261}of this['_findSuggestions'](_0x4c9740,'insertion'))if(_0x3e4261['isOwn']&&!_0x3e4261['isNextTo']){if(_0x172fc6['isMultiRange']){const _0x1ddacc=_0x172fc6['getRanges']()['filter'](_0x3680c7=>'$graveyard'!=_0x3680c7['root']['rootName']);_0x1ddacc['every'](_0x4f376e=>_0x4c9740['containsRange'](_0x4f376e,!0x0))&&_0x172fc6['discard']();if(_0x1ddacc['some'](_0x249b0d=>_0x249b0d['containsRange'](_0x4c9740,!0x0))){const _0xf45aca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5356d5,'accept');return this['forceDefaultExecution'](()=>_0xf45aca([_0x4c9740],null,_0x516843)),null;}}else{const _0x158e19=_0x4c9740['getIntersection'](_0x172fc6['getFirstRange']());null!==_0x158e19&&_0x172fc6['_onDiscard']([_0x158e19],null,_0x516843);}}if(_0x4c9740['detach'](),_0x4c9740['isCollapsed']||'$graveyard'==_0x4c9740['root']['rootName'])return null;let _0x5e07bb=null,_0x2b7d4b=_0x4c9740['start'],_0x243e3b=_0x4c9740['end'];const _0x1a5bdc=this['_findSuggestions'](_0x4c9740,'deletion');for(const {suggestion:_0x2bebec,meta:_0x5c8a99}of _0x1a5bdc){const _0x19e008=this['_model']['createRange'](_0x2b7d4b,_0x243e3b);if(_0x5c8a99['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c8a99['containsRangeInObject']&&!_0x5c8a99['isInsideObject'])){if(_0x2bebec['isMultiRange']){if(!Lt(_0x2bebec,_0x516843))continue;let _0x169d91=!0x0;for(const _0x460c36 of _0x2bebec['getRanges']()){if(_0x460c36['containsRange'](_0x19e008,!0x0))return _0x2bebec;_0x19e008['containsRange'](_0x460c36)||(_0x169d91=!0x1);}_0x169d91&&_0x2bebec['discard']();}else{const _0x48b4fc=_0x2bebec['getFirstRange']();if(_0x48b4fc['containsRange'](_0x19e008,!0x0))return _0x2bebec;if(!Lt(_0x2bebec,_0x516843)){_0x19e008['containsRange'](_0x48b4fc)?_0x2bebec['removeMarkers']():_0x48b4fc['containsPosition'](_0x2b7d4b)?_0x2b7d4b=_0x48b4fc['end']:_0x48b4fc['containsPosition'](_0x243e3b)&&(_0x243e3b=_0x48b4fc['start']);continue;}_0x2b7d4b=_0x2b7d4b['isBefore'](_0x48b4fc['start'])?_0x2b7d4b:_0x48b4fc['start'],_0x243e3b=_0x243e3b['isAfter'](_0x48b4fc['end'])?_0x243e3b:_0x48b4fc['end'],_0x516843=Object['assign']({},_0x2bebec['attributes']),_0x5e07bb?_0x48b4fc['start']['isBefore'](_0x5e07bb['getFirstRange']()['start'])?(_0x5e07bb['removeMarkers'](),_0x5e07bb=_0x2bebec):_0x2bebec['removeMarkers']():_0x5e07bb=_0x2bebec;}}}if(_0x5e07bb)return this['_setSuggestionRange'](_0x5e07bb,this['_model']['createRange'](_0x2b7d4b,_0x243e3b)),_0x5e07bb;{const _0x2d131d=_0x50a7b0(),_0x36058c=this['_model']['createRange'](_0x2b7d4b,_0x243e3b),_0x2f8c27=_0x1bf050['id'],_0x56383e=_0x5356d5?'deletion:'+_0x5356d5:'deletion',_0x4e6059=this['_setSuggestionData']({'id':_0x2d131d,'type':_0x56383e,'createdAt':new Date(),'authorId':_0x2f8c27,'attributes':_0x516843});return this['_addSuggestionMarker'](_0x56383e,_0x2d131d,_0x2f8c27,_0x36058c),_0x4e6059;}}['markMultiRangeDeletion'](_0x49d15c,_0x53fb3b='multi',_0x1cbf91={}){const _0x27e524=this['editor']['plugins']['get']('Users')['me'],_0x409ab1=_0x49d15c['map'](_0x5ab9d8=>new _0x1677da(_0x5ab9d8['start'],_0x5ab9d8['end'])),_0x40964e=new Set();for(const {suggestion:_0x7caab8,meta:_0x413a92}of this['_findSuggestions'](_0x409ab1,'insertion'))_0x413a92['isOwn']&&!_0x413a92['isNextTo']&&_0x40964e['add'](_0x7caab8);for(const _0x8f7a46 of _0x40964e)if(_0x8f7a46['isMultiRange']){const _0x4ef517=_0x8f7a46['getRanges']();(!_0x8f7a46['attributes']||!_0x8f7a46['attributes']['skipNestingCheck'])&&(_0x4ef517['every'](_0x43daf3=>_0x409ab1['some'](_0xcb4281=>_0xcb4281['containsRange'](_0x43daf3,!0x0)))&&_0x8f7a46['discard']());if(_0x409ab1['every'](_0x17e8d8=>_0x4ef517['some'](_0x5ca2b6=>_0x5ca2b6['containsRange'](_0x17e8d8,!0x0)))){const _0x49f51d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'accept');return this['forceDefaultExecution'](()=>_0x49f51d(_0x49d15c,null,_0x1cbf91)),null;}}else{const _0x722e44=_0x8f7a46['getFirstRange']();_0x409ab1['some'](_0x26ea8f=>_0x26ea8f['containsRange'](_0x722e44,!0x0))&&_0x8f7a46['discard']();if(_0x409ab1['every'](_0x424440=>_0x722e44['containsRange'](_0x424440,!0x0))){const _0x51dafc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'accept');return this['forceDefaultExecution'](()=>_0x51dafc(_0x409ab1,null,_0x1cbf91)),null;}}const _0x15d536=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fb3b,'join');let _0x9163de=null;for(const _0xa85cd3 of this['getSuggestions']())if(_0xa85cd3['author']['id']==_0x27e524['id']&&_0xa85cd3['isInContent']&&'deletion'==_0xa85cd3['type']&&_0xa85cd3['subType']==_0x53fb3b&&Lt(_0xa85cd3,_0x1cbf91)&&(_0x15d536(_0xa85cd3['getRanges'](),_0x409ab1)||_0x15d536(_0x409ab1,_0xa85cd3['getRanges']()))){if(_0x9163de){if(_0xa85cd3['commentThread']&&_0xa85cd3['commentThread']['length'])continue;for(const _0x4e35b1 of _0xa85cd3['getRanges']())_0x9163de['isIntersectingWithRange'](_0x4e35b1)||_0x9163de['addRange'](_0x4e35b1);_0xa85cd3['removeMarkers']();}else{_0x9163de=_0xa85cd3;for(const _0x35b2e8 of _0x409ab1)_0xa85cd3['isIntersectingWithRange'](_0x35b2e8)||_0xa85cd3['addRange'](_0x35b2e8);}}if(_0x9163de)return _0x9163de;_0x40964e['clear']();for(const {suggestion:_0x27279a,meta:_0x23a1b9}of this['_findSuggestions'](_0x409ab1,'deletion'))_0x23a1b9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23a1b9['containsRangeInObject']&&!_0x23a1b9['isInsideObject'])&&Lt(_0x27279a,_0x1cbf91)&&_0x40964e['add'](_0x27279a);for(const _0x1f3416 of _0x40964e){const _0x11fc85=_0x1f3416['getRanges']();if(!_0x1cbf91||!_0x1cbf91['skipNestingCheck']){if(_0x409ab1['every'](_0x322d43=>_0x11fc85['some'](_0x587f9b=>_0x587f9b['containsRange'](_0x322d43,!0x0))))return _0x1f3416;}(!_0x1f3416['attributes']||!_0x1f3416['attributes']['skipNestingCheck'])&&(_0x11fc85['every'](_0x1323bc=>_0x409ab1['some'](_0x38e843=>_0x38e843['containsRange'](_0x1323bc,!0x0)))&&_0x1f3416['discard']());}const _0x2a3ca5=_0x50a7b0(),_0x531b1e=_0x27e524['id'],_0x450527='deletion:'+_0x53fb3b,_0x51346d=this['_setSuggestionData']({'id':_0x2a3ca5,'type':_0x450527,'createdAt':new Date(),'authorId':_0x531b1e,'attributes':_0x1cbf91});for(const _0x5587ff of _0x409ab1)_0x5587ff['detach'](),_0x5587ff['isCollapsed']||'$graveyard'==_0x5587ff['root']['rootName']||this['_addSuggestionMarker'](_0x450527,_0x2a3ca5,_0x531b1e,_0x5587ff,u['getMultiRangeId']());return _0x51346d;}['markAttributeChange'](_0x33f0b7,_0x634172,_0x15157d,_0x555713,_0x1d4563){if(_0x33f0b7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24fa26=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d27b2=Array['from'](this['_suggestions']['values']())['filter'](_0x5aa2d5=>'attribute'==_0x5aa2d5['type']&&_0x5aa2d5['data']['key']==_0x634172&&_0x5aa2d5['isIntersectingWithRange'](_0x33f0b7));if('default'===this['_trackFormatChanges']){const _0x16cde8=this['_findSuggestions'](_0x33f0b7,'insertion')['filter'](({meta:_0x5e1ec1})=>_0x5e1ec1['isOwn']&&!_0x5e1ec1['isInsideObject']&&!_0x5e1ec1['isNextTo'])['map'](({suggestion:_0x430cd7})=>_0x430cd7);_0x5d27b2['unshift'](..._0x16cde8);}const _0x559fab=new Map([[_0x33f0b7,_0x15157d]]);for(const _0x1ac34a of _0x5d27b2){const _0xef9f27='attribute'==_0x1ac34a['type']?_0x1ac34a['data']['oldValue']:void 0x0,_0x14b4a4=_0x1ac34a['getFirstRange'](),_0x4abe6c=Array['from'](_0x559fab['keys']())['find'](_0x51aba8=>_0x51aba8['isIntersecting'](_0x14b4a4));if(!_0x4abe6c)continue;const _0xc81604=_0x4abe6c['getDifference'](_0x14b4a4);this['_isBlockAttribute'](_0x634172)&&'insertion'==_0x1ac34a['type']&&0x0!=_0xc81604['length']||(_0x559fab['delete'](_0x4abe6c),_0xc81604['forEach'](_0x312a00=>{_0x559fab['set'](_0x312a00,_0x15157d);}),'insertion'!=_0x1ac34a['type']&&_0xef9f27!=_0x555713&&_0x559fab['set'](_0x4abe6c['getIntersection'](_0x14b4a4),_0xef9f27));}const _0x4077cb=[];for(const [_0x1abfda,_0x390dd8]of _0x559fab){const _0x243210=_0x50a7b0(),_0x5b6b77={'key':_0x634172,'oldValue':_0x390dd8,'newValue':_0x555713};_0x634172['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':_0x634172});const _0x53be9f=('attribute:'+(_0x634172+'|'+Vt({'newValue':_0x555713})))['substring'](0x0,0x3c),_0x3ee5cc=this['_setSuggestionData']({'id':_0x243210,'type':_0x53be9f,'data':_0x5b6b77,'createdAt':new Date(),'authorId':_0x24fa26,'attributes':_0x1d4563});_0x4077cb['push'](_0x3ee5cc),this['_addSuggestionMarker'](_0x53be9f,_0x243210,_0x24fa26,_0x1abfda);}return _0x4077cb;}['enableDefaultAttributesIntegration'](_0x28d0d3){this['enableCommand'](_0x28d0d3,(_0x1bb4bf,..._0x5e36a2)=>{this['_recordAttributeChanges'](()=>{_0x1bb4bf(..._0x5e36a2);});});}['registerBlockAttribute'](_0x135a18){this['_blockAttributeKeys']['add'](_0x135a18);}['registerInlineAttribute'](_0xed392b){this['_inlineAttributeKeys']['add'](_0xed392b);}['_getAttributeKey'](_0x4bcace){return'attribute'==_0x4bcace['type']?_0x4bcace['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b4308,_0xf94da1){const _0x2b22ad=_0x5b4308['getFirstMarker']();this['_model']['change'](_0x295017=>{_0x295017['updateMarker'](_0x2b22ad,{'range':_0xf94da1});});}['_addThreadToSuggestion'](_0x5e39b5){const _0x307c57=_0x5e39b5['id'],_0x495338=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x307c57)||this['_commentsRepository']['addCommentThread']({'channelId':_0x495338,'threadId':_0x307c57,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a96b2=this['_commentsRepository']['getCommentThread'](_0x307c57);_0x2a96b2['unbind']('isRemovable'),_0x2a96b2['isRemovable']=!0x1,_0x5e39b5['commentThread']=_0x2a96b2;}['_checkSuggestionCorrectness'](_0x2f07ce,_0x391b94,_0x520227,_0x57afd4){if(_0x2f07ce['type']!=_0x391b94||_0x2f07ce['subType']!=_0x520227||_0x2f07ce['creator']['id']!=_0x57afd4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a1ebc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f97f7,_0x16f70f){const _0x387d81=_0x1f97f7['getFirstRange']();if(_0x16f70f['isEqual'](_0x387d81))_0x1f97f7['removeMarkers']();else{if(_0x387d81['containsRange'](_0x16f70f)){const _0x3c59d2=this['_model']['createPositionAt'](_0x16f70f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x387d81['start'],_0x3c59d2));const _0x524101=_0x50a7b0(),_0x54f491=_0x1f97f7['creator']['id'],_0x36f42d=_0x1f97f7['type']+':'+_0x1f97f7['subType'];this['_setSuggestionData']({'id':_0x524101,'type':_0x36f42d,'createdAt':new Date(),'authorId':_0x54f491,'data':_0x1f97f7['data'],'attributes':_0x1f97f7['attributes']});const _0x5c7eb9=this['_model']['createPositionAt'](_0x16f70f['end']['parent'],'after'),_0x22c1ae=this['_model']['createRange'](_0x5c7eb9,_0x387d81['end']);this['_addSuggestionMarker'](_0x36f42d,_0x524101,_0x54f491,_0x22c1ae);}else{if(_0x387d81['containsPosition'](_0x16f70f['start'])){const _0x37309d=this['_model']['createPositionAt'](_0x16f70f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x387d81['start'],_0x37309d));}else{const _0x1119fe=this['_model']['createPositionAt'](_0x16f70f['end']['parent'],'after');this['_setSuggestionRange'](_0x1f97f7,this['_model']['createRange'](_0x1119fe,_0x387d81['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1ab81c){for(const {suggestion:_0x2e143e,meta:_0x2352e3}of this['_findSuggestions'](_0x1ab81c,'insertion')){if(!_0x2352e3['isOwn'])continue;const _0x451899=_0x2e143e['getRanges']();for(const _0x4907bf of _0x451899)if(!_0x1ab81c['getDifference'](_0x4907bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c5867){const _0x7ac4bd=this['editor']['plugins']['get']('Users')['getUser'](_0x1c5867);if(!_0x7ac4bd)throw new _0x4a1ebc('track-changes-user-not-found',this);return _0x7ac4bd;}['_getExternalAuthor'](_0x1907e4){const _0x25e131=this['editor']['plugins']['get']('Users'),_0x4af235=_0x340512('external:'+_0x1907e4),_0x24a8e0=_0x25e131['getUser'](_0x4af235);return _0x24a8e0||_0x25e131['addUser']({'id':_0x4af235,'name':_0x1907e4});}['_createSuggestion'](_0x5241bc,_0x2eb170,_0x47b403,_0x3d5519,_0x22fb09){const _0x5a29d7=this['_getAuthorFromId'](_0x3d5519),_0x290b91=this['_suggestionFactory']['buildSuggestion'](_0x5241bc,_0x2eb170,_0x47b403,_0x5a29d7,_0x22fb09,_0x10494f=>{this['_updateSuggestionData'](_0x47b403,{'attributes':_0x10494f});const _0x14a50b=this['getSuggestion'](_0x47b403);this['_joinWithAdjacentSuggestions'](new Set([_0x14a50b])),this['_refreshSuggestionsChain'](new Set([_0x14a50b]));});return this['listenTo'](_0x290b91,'accept',()=>{this['_updateSuggestionData'](_0x47b403,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x290b91,'discard',()=>{this['_updateSuggestionData'](_0x47b403,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x47b403,_0x290b91),this['_suggestionState']['set'](_0x290b91,'notReady'),_0x290b91;}['_splitMarkerName'](_0x35fb84){const _0x1b935d=_0x35fb84['split'](':');return{'group':_0x1b935d[0x0],'type':_0x1b935d[0x1],'subType':_0x1b935d['length']>=0x5?_0x1b935d[0x2]:null,'id':_0x1b935d['length']<0x5?_0x1b935d[0x2]:_0x1b935d[0x3],'authorId':_0x1b935d['length']<0x5?_0x1b935d[0x3]:_0x1b935d[0x4],'markerCount':0x6==_0x1b935d['length']?_0x1b935d[0x5]:null};}['_breakSuggestionMarker'](_0x392b65,_0x14a99e,_0x21f780){const _0xbfddb6=_0x392b65['getFirstRange'](),_0x4b3d10=_0xbfddb6['start'],_0x3430f1=_0xbfddb6['end'];this['_setSuggestionRange'](_0x392b65,this['_model']['createRange'](_0x4b3d10,_0x14a99e));const _0x41140=_0x50a7b0(),_0x13ca7f=_0x392b65['creator']['id'],_0x37141f=_0x392b65['type']+(_0x392b65['subType']?':'+_0x392b65['subType']:'');this['_setSuggestionData']({'id':_0x41140,'type':_0x37141f,'createdAt':new Date(),'authorId':_0x13ca7f,'originalSuggestionId':_0x392b65['id'],'attributes':_0x392b65['attributes'],'data':_0x392b65['data']});const _0x51e13e=this['_getAttributeKey'](_0x392b65);('formatBlock'==_0x392b65['type']||_0x51e13e&&this['_isBlockAttribute'](_0x51e13e))&&(_0x21f780=this['_model']['createPositionBefore'](_0x21f780['parent'])),this['_addSuggestionMarker'](_0x37141f,_0x41140,_0x13ca7f,this['_model']['createRange'](_0x21f780,_0x3430f1));}['_findSuggestions'](_0x14df50,_0x578178=null){const _0x1581b3=[],_0x514d36=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14df50)||(_0x14df50=[_0x14df50]);for(const _0x22a785 of this['getSuggestions']()){if(!_0x22a785['isInContent'])continue;if(_0x578178&&_0x22a785['type']!=_0x578178)continue;let _0x55c744=!0x1;for(const _0x346de7 of _0x22a785['getRanges']()){for(const _0x4674c1 of _0x14df50){const _0x4df759=_0x4674c1['start']['isEqual'](_0x346de7['end'])||_0x4674c1['end']['isEqual'](_0x346de7['start']);if(_0x4df759||_0x4674c1['getIntersection'](_0x346de7)){const _0x204138=_0x4674c1['containsRange'](_0x346de7)&&Rt(this['_model']['schema'],_0x346de7['start'],_0x4674c1),_0x5f3c90=_0x346de7['containsRange'](_0x4674c1)&&Rt(this['_model']['schema'],_0x4674c1['start'],_0x346de7);_0x1581b3['push']({'suggestion':_0x22a785,'meta':{'isOwn':_0x514d36==_0x22a785['author'],'isNextTo':_0x4df759,'isInsideObject':_0x204138,'containsRangeInObject':_0x5f3c90}}),_0x55c744=!0x0;break;}}if(_0x55c744)break;}}return _0x1581b3;}['_addSuggestionMarker'](_0x1ecf3c,_0x3b3c42,_0x448711,_0x546e4a,_0x1fb458){this['_model']['change'](_0x46457d=>{let _0x2f9ad6='suggestion:'+_0x1ecf3c+':'+_0x3b3c42+':'+_0x448711;_0x1fb458&&(_0x2f9ad6=_0x2f9ad6+':'+_0x1fb458),_0x46457d['addMarker'](_0x2f9ad6,{'range':_0x546e4a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d4aff){const _0x5caa2d=_0x3d4aff['previous'],_0x3f5511=_0x3d4aff['next'];_0x3d4aff['previous']=null,_0x3d4aff['next']=null,null!=_0x5caa2d&&_0x5caa2d['next']==_0x3d4aff&&(_0x5caa2d['next']=_0x3f5511),null!=_0x3f5511&&_0x3f5511['previous']==_0x3d4aff&&(_0x3f5511['previous']=_0x5caa2d),'ready'==this['_suggestionState']['get'](_0x3d4aff)&&(this['_suggestionState']['set'](_0x3d4aff,'removed'),this['fire']('suggestionUnloaded',_0x3d4aff,_0x5caa2d,_0x3f5511));}['_setSuggestionData'](_0x3e731c){const _0x176671=_0x3e731c['id'],_0x56d83c=this['addSuggestionData'](_0x3e731c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a0659=this['editor']['plugins']['get']('PendingActions'),_0x55c873=_0x56d83c['hasComments'],_0x456ce1=_0x56d83c['subType']?_0x56d83c['type']+':'+_0x56d83c['subType']:_0x56d83c['type'],_0x2194a=this['editor']['locale'],_0x160557=_0x2a0659['add'](o(_0x2194a,'PENDING_ACTION_SUGGESTION')),_0x2cb0a0={'id':_0x176671,'type':_0x456ce1,'hasComments':_0x55c873,'data':_0x3e731c['data']||null,'originalSuggestionId':_0x3e731c['originalSuggestionId']||null,'attributes':_0x56d83c['attributes']};this['_adapter']['addSuggestion'](_0x2cb0a0)['then'](_0x449b67=>{_0x56d83c['_saved']=!0x0,_0x2a0659['remove'](_0x160557),_0x449b67&&_0x449b67['createdAt']&&(this['_suggestions']['get'](_0x176671)['createdAt']=_0x449b67['createdAt']);})['catch'](_0x4b4d2e=>{throw _0x2f92c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x56d83c['discard']();}),_0x56d83c['stopListening'](),this['_suggestions']['delete'](_0x56d83c['id']),this['_suggestionState']['delete'](_0x56d83c),_0x4b4d2e;});}return _0x56d83c;}['_isBlockAttribute'](_0x7036ad){return this['_blockAttributeKeys']['has'](_0x7036ad);}['_updateSuggestionData'](_0x11c1df,_0x6fb663){const _0x16318c=this['editor']['plugins']['get']('PendingActions'),_0x231f54=this['getSuggestion'](_0x11c1df);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x231f54['_saved']){const _0x2b4665=_0x16318c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x11c1df,_0x6fb663)['then'](()=>{_0x16318c['remove'](_0x2b4665);});}else _0x231f54['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x11c1df,_0x6fb663);});}}['_getSuggestionData'](_0x1eec3d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a1ebc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1eec3d);}['_handleNewSuggestionMarker'](_0x3f65d0){const {id:_0x34d87f,type:_0x4f39a2,subType:_0x23f6e2,authorId:_0x17d6f0}=this['_splitMarkerName'](_0x3f65d0),_0x3c66ea=this['_suggestions']['get'](_0x34d87f)||this['_createSuggestion'](_0x4f39a2,_0x23f6e2,_0x34d87f,_0x17d6f0,{});switch(this['_checkSuggestionCorrectness'](_0x3c66ea,_0x4f39a2,_0x23f6e2,_0x17d6f0),this['_suggestionState']['get'](_0x3c66ea)){case'notReady':this['_getSuggestionData'](_0x34d87f)['then'](_0x2868e0=>{let _0xb54a16=Promise['resolve']();_0x2868e0['hasComments']&&(_0xb54a16=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d87f})),_0xb54a16['then'](()=>{this['addSuggestionData'](_0x2868e0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c66ea,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d87f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c66ea,'ready'),this['fire']('suggestionLoaded',_0x3c66ea);break;case'ready':this['fire']('suggestionChanged',_0x3c66ea);}return _0x3c66ea['addMarkerName'](_0x3f65d0),_0x3c66ea;}['_refreshSuggestionsChain'](_0x7cda07){const _0x5aff22=Array['from'](_0x7cda07),_0xd80427=_0x5aff22['filter'](_0x5c3c75=>'attribute'==_0x5c3c75['type']);this['_refreshAttributeSuggestionsChain'](_0xd80427);const _0x5ce98d=_0x5aff22['filter'](_0x19e5a8=>!_0x19e5a8['isMultiRange']&&'attribute'!=_0x19e5a8['type']),_0x4b453d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34fe7c=>!_0x34fe7c['isMultiRange']&&'attribute'!=_0x34fe7c['type']),_0x4b70dc=_0x4b453d['filter'](_0x3df692=>!_0x7cda07['has'](_0x3df692)),_0x2b461c=new Map(_0x4b453d['map'](_0x2e6cda=>[_0x2e6cda,this['_suggestionFactory']['getSuggestionCallback'](_0x2e6cda['type'],_0x2e6cda['subType'],'chain')])),_0x56c17a=new Map(_0x4b453d['map'](_0x328e27=>[_0x328e27,_0x328e27['getFirstRange']()])),_0xf42a24=new Set(),_0x1826b4=new Set();for(let _0x41202a=0x0;_0x41202a<_0x5ce98d['length'];_0x41202a++)_0x3a6866(_0x5ce98d[_0x41202a],_0x5ce98d,_0x41202a+0x1);for(let _0x25eddc=0x0;_0x25eddc<_0x5ce98d['length'];_0x25eddc++)_0x3a6866(_0x5ce98d[_0x25eddc],_0x4b70dc,0x0);const _0x5779bb=new Set();for(let _0x491c12=0x0;_0x491c12<_0x5ce98d['length'];_0x491c12++){const _0x106863=_0x5ce98d[_0x491c12];!_0x1826b4['has'](_0x106863)&&_0x106863['previous']&&(_0x5779bb['add'](_0x106863['previous']),_0x106863['previous']['next']===_0x106863&&(_0x106863['previous']['next']=null),_0x106863['previous']=null),!_0xf42a24['has'](_0x106863)&&_0x106863['next']&&(_0x5779bb['add'](_0x106863['next']),_0x106863['next']['previous']===_0x106863&&(_0x106863['next']['previous']=null),_0x106863['next']=null);}function _0x3a6866(_0x269e09,_0x42e8f5,_0x465d7a){for(let _0x4181f2=_0x465d7a;_0x4181f2<_0x42e8f5['length'];_0x4181f2++){const _0x580728=_0xbd3de1(_0x269e09,_0x42e8f5[_0x4181f2]);_0x580728&&(_0x580728[0x0]['next']=_0x580728[0x1],_0x580728[0x1]['previous']=_0x580728[0x0],_0xf42a24['add'](_0x580728[0x0]),_0x1826b4['add'](_0x580728[0x1]));}}function _0xbd3de1(_0x2684f4,_0x12c21d){if(_0x2684f4['author']['id']!==_0x12c21d['author']['id'])return null;const _0x1bb481=_0x2b461c['get'](_0x2684f4)(_0x2684f4,_0x12c21d,_0x56c17a['get'](_0x2684f4),_0x56c17a['get'](_0x12c21d));if(!_0x1bb481)return null;return _0x2b461c['get'](_0x12c21d)(_0x2684f4,_0x12c21d,_0x56c17a['get'](_0x2684f4),_0x56c17a['get'](_0x12c21d))?_0x1bb481[0x1]['commentThread']&&_0x1bb481[0x1]['commentThread']['length']?null:_0x1bb481:null;}_0x5779bb['size']&&this['_refreshSuggestionsChain'](_0x5779bb);}['_refreshAttributeSuggestionsChain'](_0x4d52cf){if(0x0==_0x4d52cf['length'])return;const _0x19e5be=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd66b53=>'attribute'==_0xd66b53['type']&&_0xd66b53['_isDataLoaded']),_0x993e77=[],_0x563fd9=new Map();for(const _0x206f5b of _0x19e5be){const _0x109b9c=_0x340512(_0x206f5b['attributes']);_0x563fd9['has'](_0x109b9c)||(_0x563fd9['set'](_0x109b9c,_0x993e77['length']),_0x993e77['push']([]));const _0x5506d7=_0x563fd9['get'](_0x109b9c);_0x993e77[_0x5506d7]['push'](_0x206f5b);}!(function(){_0x993e77['sort']((_0x494871,_0xa6dedb)=>{const _0x3ebe03=_0x494871[0x0]['createdAt'],_0xe9c1b9=_0xa6dedb[0x0]['createdAt'];return _0x3ebe03==_0xe9c1b9?_0x494871[0x0]['attributes']['groupId']<_0xa6dedb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3ebe03<_0xe9c1b9?-0x1:0x1;});for(const _0x133b86 of _0x993e77)_0x133b86['sort']((_0x420216,_0x516757)=>_0x420216['id']<_0x516757['id']?-0x1:0x1);}());for(let _0x2b27bb=0x0;_0x2b27bb<_0x993e77['length'];_0x2b27bb++){if(0x0==_0x993e77[_0x2b27bb]['length'])continue;const _0x1eccbb=[];for(let _0x3f2079=_0x2b27bb+0x1;_0x3f2079<_0x993e77['length'];_0x3f2079++)0x0!=_0x993e77[_0x3f2079]['length']&&_0x2a6eae(_0x993e77[_0x2b27bb],_0x993e77[_0x3f2079])&&_0x1eccbb['push'](_0x3f2079);for(const _0x49700e of _0x1eccbb)_0x993e77[_0x2b27bb]=_0x993e77[_0x2b27bb]['concat'](_0x993e77[_0x49700e]),_0x993e77[_0x49700e]=[];}for(const _0x1c5362 of _0x993e77)for(let _0x3aaa0b=0x0;_0x3aaa0b<_0x1c5362['length'];_0x3aaa0b++)_0x1c5362[_0x3aaa0b]['next']=_0x1c5362[_0x3aaa0b+0x1]||null;for(const _0x81b948 of _0x993e77)for(let _0x4b5016=0x0;_0x4b5016<_0x81b948['length'];_0x4b5016++)_0x81b948[_0x4b5016]['previous']=_0x81b948[_0x4b5016-0x1]||null;function _0x2a6eae(_0x384894,_0x195352){if(_0x384894[0x0]['attributes']['groupId']!==_0x195352[0x0]['attributes']['groupId']&&_0x384894[0x0]['author']!==_0x195352[0x0]['author'])return!0x1;if(!function(_0x229eee,_0x45a38b){if(!_0x229eee['hasComments']&&!_0x45a38b['hasComments'])return!0x0;if(_0x229eee['hasComments']&&_0x45a38b['hasComments'])return!0x1;if(_0x229eee['hasComments']&&_0x45a38b['createdAt']<_0x229eee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45a38b['hasComments']&&_0x229eee['createdAt']<_0x45a38b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x384894[0x0],_0x195352[0x0]))return!0x1;const _0xfce41e=Bt(_0x384894[0x0]['attributes'],'groupId'),_0x4c3ccb=Bt(_0x195352[0x0]['attributes'],'groupId');if(!_0x283872(_0xfce41e,_0x4c3ccb))return!0x1;return!!_0x384894['every'](_0x2dda80=>_0x195352['some'](_0x1ae7a8=>_0x2dda80['getFirstRange']()['isEqual'](_0x1ae7a8['getFirstRange']())))&&_0x195352['every'](_0x424379=>_0x384894['some'](_0x3ac0be=>_0x424379['getFirstRange']()['isEqual'](_0x3ac0be['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1cfe3b){const _0x386d0c=Array['from'](_0x1cfe3b),_0x1a79c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a046f=_0x1a79c5['filter'](_0x1e1a6c=>!_0x1cfe3b['has'](_0x1e1a6c)),_0x26b6ee=new Map(_0x386d0c['map'](_0xe867d=>[_0xe867d,this['_suggestionFactory']['getSuggestionCallback'](_0xe867d['type'],_0xe867d['subType'],'join')])),_0x579e54=new Map(_0x1a79c5['map'](_0x1fab45=>[_0x1fab45,_0x1fab45['getRanges']()]));for(let _0x3e4214=0x0;_0x3e4214<_0x386d0c['length'];_0x3e4214++){if(_0x457895(this,_0x386d0c[_0x3e4214],_0x386d0c,_0x3e4214+0x1))return!0x0;}for(let _0x5e80d2=0x0;_0x5e80d2<_0x386d0c['length'];_0x5e80d2++){if(_0x457895(this,_0x386d0c[_0x5e80d2],_0x4a046f,0x0))return!0x0;}return!0x1;function _0x457895(_0x446b85,_0x55045d,_0x36fbe0,_0x2f0c9c){for(let _0x322655=_0x2f0c9c;_0x322655<_0x36fbe0['length'];_0x322655++){const _0x497d5e=_0x36fbe0[_0x322655];if(_0x497d5e['type']!==_0x55045d['type']||_0x497d5e['author']['id']!==_0x55045d['author']['id']||_0x497d5e['subType']!==_0x55045d['subType'])continue;if(!Pt(_0x55045d,_0x497d5e,['groupId']))continue;if('attribute'==_0x55045d['type']&&_0x55045d['data']['oldValue']!=_0x497d5e['data']['oldValue'])continue;if('attribute'==_0x55045d['type']&&_0x446b85['_isBlockAttribute'](_0x55045d['data']['key']))continue;if('formatBlock'==_0x55045d['type']){const _0x3034ec=_0x446b85['editor']['model'],_0x57d312=_0x55045d['getContainedElement']();if(_0x57d312&&(_0x3034ec['schema']['isObject'](_0x57d312)||_0x3034ec['schema']['isLimit'](_0x57d312)))continue;}const _0xf33e9d=_0x26b6ee['get'](_0x55045d),_0x55ab30=_0x579e54['get'](_0x55045d),_0x24abf5=_0x579e54['get'](_0x497d5e),_0x372397=_0x55045d['commentThread']&&_0x55045d['commentThread']['length'],_0x7872c1=_0x497d5e['commentThread']&&_0x497d5e['commentThread']['length'];if(!_0x372397&&_0xf33e9d(_0x24abf5,_0x55ab30))return _0x446b85['_joinSuggestions'](_0x497d5e,_0x55045d),_0x579e54['delete'](_0x55045d),!0x0;if(!_0x7872c1&&_0xf33e9d(_0x55ab30,_0x24abf5))return _0x446b85['_joinSuggestions'](_0x55045d,_0x497d5e),_0x579e54['delete'](_0x497d5e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x135492,_0x3affc0){if(_0x135492['isMultiRange']){for(const _0x18ea21 of _0x3affc0['getRanges']())_0x135492['addRange'](_0x18ea21);}else{const _0x483af6=_0x3affc0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x135492,this['_model']['createRange'](_0x135492['getFirstRange']()['start'],_0x483af6));}_0x3affc0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x428d4c,_0xc8c55c){const _0x28a234=_0x428d4c['startsWith']('format')||_0x428d4c['startsWith']('attribute')?'FORMATTING':_0x428d4c['toUpperCase']();return o(this['editor']['locale'],_0xc8c55c+'_'+_0x28a234+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x592953=this['editor'];if(!_0x592953['ui'])return;const {ariaLiveAnnouncer:_0x3e6fe9}=_0x592953['ui'];_0x1adeb1(this['_model'],({left:_0x3f2120,entered:_0x2d41b0})=>{for(const _0xa9c7a6 of _0x3f2120){const {group:_0x21bdaa,type:_0xd83ca4}=this['_splitMarkerName'](_0xa9c7a6['name']);if('suggestion'===_0x21bdaa){_0x3e6fe9['announce'](this['_getMarkerAnnouncementText'](_0xd83ca4,'LEAVE'));break;}}for(const _0x24dda8 of _0x2d41b0){const {group:_0x15a4ff,type:_0x2392de}=this['_splitMarkerName'](_0x24dda8['name']);if('suggestion'===_0x15a4ff){_0x3e6fe9['announce'](this['_getMarkerAnnouncementText'](_0x2392de,'ENTER'));break;}}});}['_processAttributeChanges'](_0x351ec1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e2d95=this['editor'],_0x760f3a=_0x3e2d95['model']['document']['differ']['getChanges']();if(0x0==_0x760f3a['length'])return!0x1;const _0x2ecb6f=[],_0x182f86=_0x760f3a['filter'](_0x4a4a3a=>'attribute'==_0x4a4a3a['type']),_0x3122bc=_0x760f3a['filter'](_0xadeef2=>'insert'==_0xadeef2['type']&&'$text'!=_0xadeef2['name']),_0x369df5=_0x760f3a['filter'](_0xf6fec2=>'remove'==_0xf6fec2['type']&&'$text'!=_0xf6fec2['name']);for(const _0x228e58 of _0x182f86)_0x2ecb6f['push']({'key':_0x228e58['attributeKey'],'newValue':_0x228e58['attributeNewValue'],'oldValue':_0x228e58['attributeOldValue'],'range':Ot(_0x228e58['range'],_0x3e2d95['model'])});for(const _0x26ae42 of _0x3122bc){const _0xb82096=_0x369df5['find'](_0xbcc3dc=>_0xbcc3dc['position']['isEqual'](_0x26ae42['position']));_0xb82096&&_0x2ecb6f['push']({'key':m,'newValue':_0x26ae42['name'],'oldValue':_0xb82096['name'],'range':_0x3e2d95['model']['createRangeOn'](_0x26ae42['position']['nodeAfter'])});}return 0x0!=_0x2ecb6f['length']&&this['_reduceExistingSuggestions'](_0x351ec1,_0x2ecb6f);}['_processAttributeSuggestions'](_0x1a2d06){let _0x2912c7=!0x1;const _0x4fa6ae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1439d4=>_0x1439d4['data']['newRange']&&_0x1439d4['name']['startsWith']('suggestion:attribute:'));for(const _0x3aea5e of _0x4fa6ae){const {subType:_0x4930f7,id:_0x319060}=this['_splitMarkerName'](_0x3aea5e['name']),_0x57bb31=_0x4930f7['split']('|')[0x0];for(const _0x1dfd67 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1dfd67['id']!=_0x319060&&'attribute'==_0x1dfd67['type']&&_0x1dfd67['data']&&_0x1dfd67['data']['key']==_0x57bb31&&_0x1dfd67['getFirstRange']()['isIntersecting'](_0x3aea5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1dfd67,_0x3aea5e['data']['newRange'],_0x1a2d06),_0x2912c7=!0x0);}return _0x2912c7;}['_recordAttributeChanges'](_0x8c3597){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x8c3597();}['_isRegisteredAttribute'](_0x460bfa){const _0xec987b=this['_isBlockAttribute'](_0x460bfa),_0x1b1484=this['_inlineAttributeKeys']['has'](_0x460bfa);return _0xec987b||_0x1b1484;}['_reduceExistingSuggestions'](_0xe2b2b6,_0xa76617){if(0x0==_0xa76617['length'])return!0x1;let _0x614957=!0x1;for(const _0x451795 of _0xa76617){const _0x2b45a2=this['_findSuggestions'](_0x451795['range'],'attribute')['filter'](_0x28fdcd=>!_0x28fdcd['meta']['isNextTo'])['map'](_0x31544a=>_0x31544a['suggestion']),_0x1c268c=_0x340512({'newValue':_0x451795['newValue']});_0x2b45a2['filter'](_0x200d0d=>{const [_0x30e6c8,_0x42cf91]=_0x200d0d['subType']['split']('|');return _0x30e6c8==_0x451795['key']&&_0x42cf91!=_0x1c268c;})['forEach'](_0x456b8c=>{this['_reduceSuggestionAttributeRange'](_0x456b8c,_0x451795['range'],_0xe2b2b6),_0x614957=!0x0;});}return _0x614957;}['_reduceSuggestionAttributeRange'](_0xa0c39e,_0x115fec,_0x42f376){const _0x22ff3f=_0xa0c39e['getFirstRange']()['getDifference'](_0x115fec);0x0!==_0x22ff3f['length']?0x1!==_0x22ff3f['length']?this['_breakSuggestionMarker'](_0xa0c39e,_0x115fec['start'],_0x115fec['end']):this['_setSuggestionRange'](_0xa0c39e,_0x22ff3f[0x0]):_0x42f376['removeMarker'](_0xa0c39e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x15c44a){this['_editor']=_0x15c44a,this['_model']=_0x15c44a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57f168,_0x7ec6f5,_0x37b543,_0x37d587,_0xa74807,_0x6b4956){return new u(this['_model'],{'type':_0x57f168,'subType':_0x7ec6f5,'id':_0x37b543,'author':_0x37d587,'creator':_0x37d587,'attributes':_0xa74807,'onAttributesChange':_0x6b4956,'onAccept':(..._0x2bb031)=>this['getSuggestionCallback'](_0x57f168,_0x7ec6f5,'accept')(..._0x2bb031),'onDiscard':(..._0x2b99d7)=>this['getSuggestionCallback'](_0x57f168,_0x7ec6f5,'discard')(..._0x2b99d7)});}['registerCustomCallback'](_0x2c360f,_0x3e361b,_0x442d70,_0x69757b){const _0x1ddb6e=_0x2c360f+':'+_0x3e361b+':'+_0x442d70;this['_customCallbacks']['set'](_0x1ddb6e,_0x69757b);}['getSuggestionCallback'](_0x101fef,_0x9a35a9,_0x11eec2){const _0x27584f=_0x101fef+':'+_0x9a35a9+':'+_0x11eec2;return this['_customCallbacks']['get'](_0x27584f)||this['_defaultCallbacks']['get'](_0x101fef+':'+_0x11eec2);}['_registerDefaultCallbacks'](){const _0x3c7e41=()=>!0x1,_0x1ab854=_0x2a1d47=>{_0x2a1d47['sort']((_0x3c54a1,_0x407807)=>_0x3c54a1['start']['isBefore'](_0x407807['start'])?0x1:-0x1),this['_model']['change'](_0x110f4b=>{for(const _0x950beb of _0x2a1d47){let _0x205ef9;_0x205ef9=_0x950beb['end']['isAtEnd']&&_0x950beb['end']['parent']==_0x950beb['start']['nodeAfter']?_0x110f4b['createSelection'](_0x950beb['start']['nodeAfter'],'on'):_0x110f4b['createSelection'](_0x950beb),this['_model']['deleteContent'](_0x205ef9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xae7333=(_0x7df2a2,_0x5f1767)=>{_0x5f1767&&this['_model']['change'](_0x4d886b=>{const {commandName:_0xe88a52,commandParams:_0x5ec3a2=[]}=_0x5f1767,_0x193a4f=_0x7df2a2['map'](_0x51b24a=>(Tt(_0x51b24a)&&(_0x51b24a=this['_model']['createRange'](_0x51b24a['end'])),_0x51b24a))['filter'](_0x1f439f=>'$graveyard'!==_0x1f439f['root']['rootName']);if(_0x193a4f['length']<0x1)return;const _0x5e9c1e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3eb2e0=>_0x1677da['fromRange'](_0x3eb2e0));_0x4d886b['setSelection'](_0x193a4f);for(const _0x39afa4 of this['_editor']['commands']['commands']())_0x39afa4['refresh']();_0x5ec3a2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe88a52,..._0x5ec3a2);const _0x5a0bce=_0x5e9c1e['filter'](_0x5be3ba=>'$graveyard'!=_0x5be3ba['root']['rootName']);_0x5a0bce['length']>0x0&&_0x4d886b['setSelection'](_0x5a0bce);for(const _0x3ace05 of _0x5e9c1e)_0x3ace05['detach']();});},_0x2378b0=(_0x1ec8d8,_0x529f03)=>0x1==_0x1ec8d8['length']&&0x1==_0x529f03['length']&&_0x1ec8d8[0x0]['end']['isEqual'](_0x529f03[0x0]['start']),_0x351083=(_0x1370b0,_0x43a53d,_0x961f5e,_0x5f013b)=>Ft(_0x1370b0,_0x43a53d,_0x961f5e,_0x5f013b,this['_model'])?[_0x1370b0,_0x43a53d]:Ft(_0x43a53d,_0x1370b0,_0x5f013b,_0x961f5e,this['_model'])?[_0x43a53d,_0x1370b0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c7e41),this['_defaultCallbacks']['set']('insertion:discard',_0x1ab854),this['_defaultCallbacks']['set']('insertion:join',_0x2378b0),this['_defaultCallbacks']['set']('insertion:chain',_0x351083),this['_defaultCallbacks']['set']('deletion:accept',_0x1ab854),this['_defaultCallbacks']['set']('deletion:discard',_0x3c7e41),this['_defaultCallbacks']['set']('deletion:join',_0x2378b0),this['_defaultCallbacks']['set']('deletion:chain',_0x351083),this['_defaultCallbacks']['set']('formatInline:accept',_0xae7333),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c7e41),this['_defaultCallbacks']['set']('formatInline:join',_0x2378b0),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c7e41),this['_defaultCallbacks']['set']('formatBlock:accept',_0xae7333),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c7e41),this['_defaultCallbacks']['set']('formatBlock:join',_0x2378b0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c7e41),this['_defaultCallbacks']['set']('attribute:accept',_0x3c7e41),this['_defaultCallbacks']['set']('attribute:discard',(_0x3eaad0,_0x4952cc)=>{if(!_0x4952cc)return;const _0x2ecf12=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2707c4=>{if(_0x4952cc['key']==m)for(const _0x54a9ef of _0x3eaad0){const _0x5a6acf=_0x54a9ef['start']['nodeAfter'],_0x483387=_0x4952cc['oldValue'];_0x2707c4['rename'](_0x5a6acf,_0x483387);}else{if(_0x2ecf12['_isBlockAttribute'](_0x4952cc['key'])){for(const _0x297680 of _0x3eaad0)void 0x0!==_0x4952cc['oldValue']?_0x2707c4['setAttribute'](_0x4952cc['key'],_0x4952cc['oldValue'],_0x297680['start']['nodeAfter']):_0x2707c4['removeAttribute'](_0x4952cc['key'],_0x297680['start']['nodeAfter']);}else{for(const _0x3adee3 of _0x3eaad0)_0x4952cc['oldValue']?_0x2707c4['setAttribute'](_0x4952cc['key'],_0x4952cc['oldValue'],_0x3adee3):_0x2707c4['removeAttribute'](_0x4952cc['key'],_0x3adee3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2378b0);}}function Rt(_0x4b2492,_0x586a74,_0x56d4d4){for(const _0x39648a of _0x586a74['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39648a['root']==_0x39648a)return!0x1;if(!_0x56d4d4['containsItem'](_0x39648a))return!0x1;if(_0x4b2492['isObject'](_0x39648a)||_0x4b2492['isLimit'](_0x39648a))return!0x0;}return!0x1;}function Tt(_0x3e5998){return _0x3e5998['end']['parent']==_0x3e5998['start']['nodeAfter']&&_0x3e5998['end']['isAtStart'];}function Et(_0x225ebc,_0x55ced6,_0x324dbf,_0x22c117){const _0x3c451d=_0x3000c7=>!_0x3000c7['item']['is']('$textProxy')&&!_0x22c117['isObject'](_0x3000c7['item']),_0x2c8bf1=_0x225ebc['start']['getLastMatchingPosition'](_0x3c451d),_0x100bc2=_0x225ebc['end']['getLastMatchingPosition'](_0x3c451d,{'direction':'backward'});return(!_0x225ebc['start']['isEqual'](_0x2c8bf1)||!_0x225ebc['end']['isEqual'](_0x100bc2))&&(_0x2c8bf1['isBefore'](_0x100bc2)?_0x324dbf['updateMarker'](_0x55ced6,{'range':_0x324dbf['createRange'](_0x2c8bf1,_0x100bc2)}):_0x324dbf['removeMarker'](_0x55ced6),!0x0);}function Vt(_0x4e7194){return _0x340512(_0x4e7194);}function Ut(_0x9b8f95){const _0x28ac29=_0x9b8f95['start']['nodeAfter'];return _0x28ac29&&_0x28ac29['is']('element');}function Ot(_0x3dc0f0,_0x142c1b){return null==_0x3dc0f0['end']['nodeBefore']&&_0x3dc0f0['end']['parent']==_0x3dc0f0['start']['nodeAfter']?Gt(_0x3dc0f0['start']['nodeAfter'],_0x142c1b):_0x3dc0f0;}function Gt(_0xbd6106,_0x370bca){const _0x2e0a7b=_0x370bca['schema']['isObject'](_0xbd6106)||_0x370bca['schema']['isSelectable'](_0xbd6106);return _0x370bca['createRange'](_0x370bca['createPositionAt'](_0xbd6106,'before'),_0x2e0a7b?_0x370bca['createPositionAfter'](_0xbd6106):_0x370bca['createPositionAt'](_0xbd6106,'end'));}function Ft(_0x27aad3,_0x47706a,_0x55b5a2,_0x2bf31e,_0x18c71a){if(!Pt(_0x27aad3,_0x47706a))return!0x1;if(_0x55b5a2['end']['isEqual'](_0x2bf31e['start']))return!0x0;if(_0x27aad3['type']!=_0x47706a['type'])return!0x1;if(!_0x55b5a2['end']['isTouching'](_0x2bf31e['start']))return!0x1;const _0x456b4e=_0x18c71a['createRange'](_0x55b5a2['end'],_0x2bf31e['start'])['getWalker']();for(const _0x299a7e of _0x456b4e)if(['elementStart','elementEnd']['includes'](_0x299a7e['type'])&&_0x18c71a['schema']['isLimit'](_0x299a7e['item']))return!0x1;return!0x0;}function Pt(_0x58c15b,_0xcf7032,_0x2da8ab=[]){return!(!_0x58c15b['_isDataLoaded']||!_0xcf7032['_isDataLoaded'])&&_0x283872(Bt(_0x58c15b['attributes'],_0x2da8ab),Bt(_0xcf7032['attributes'],_0x2da8ab));}function Lt(_0x34e559,_0x1657ae){const _0x3377ad=Ht(_0x34e559['attributes']),_0x46d5c3=Ht(_0x1657ae);if(!_0x34e559['_isDataLoaded'])return!0x1;for(const _0x54a2e6 of Object['keys'](_0x46d5c3))if(!_0x283872(_0x3377ad[_0x54a2e6],_0x46d5c3[_0x54a2e6]))return!0x1;return!0x0;}function Ht(_0x13baf3){const _0x346680=Object['assign']({},_0x13baf3);return delete _0x346680['skipNestingCheck'],delete _0x346680['tablePasteChainId'],_0x346680;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3d5e12(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6bd217,_0xf3832,_0x2b436f,_0x4fddab){super(),this['model']=_0xf3832,this['view']=_0x2b436f,this['commentThreadController']=_0x4fddab,this['_editor']=_0x6bd217,this['_acceptCommand']=_0x6bd217['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6bd217['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1419cf,_0x1c93f0)=>_0x1419cf||_0x1c93f0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x19fff5=>_0x19fff5&&this['_editor']['model']['canEditAt'](_0xf3832['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3569fd=>_0x3569fd&&this['_editor']['model']['canEditAt'](_0xf3832['getRanges']())),this['_pendingAction']=null,_0x2b436f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b436f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b436f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b436f,'change:isDirty',()=>{_0x2b436f['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 _0x34cc0c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34cc0c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5a1a17{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5b4be1,_0x3efe7d,_0x8784aa,_0xeaa89f){super(_0x5b4be1),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3efe7d['authoredAt']),this['bind']('authoredAt')['to'](_0x3efe7d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3efe7d,this['_localUser']=_0x8784aa,this['_config']=_0xeaa89f,_0xeaa89f['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:_0x1a3485}=this['_config'];this['commentsListView']=new _0x1a3485(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',_0x29f86f=>_0x29f86f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xc858d0,_0x358c56)=>_0xc858d0||!!_0x358c56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c1d1e}=this['_config'],_0x2f215e=new _0x3c1d1e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x57a0d5=_0x2f215e['commentInputView'];return _0x2f215e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x57a0d5,'value',(_0x29ce72,_0x44082c,_0x3f7793)=>!!_0x3f7793||_0x29ce72&&!_0x44082c),_0x57a0d5['on']('submit',(_0x4a2af3,_0x3a5d04)=>{this['fire']('addComment',_0x3a5d04),_0x57a0d5['editor']['setData']('');}),_0x57a0d5['on']('cancel',()=>this['focus']()),_0x57a0d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f215e;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x315f28,_0x22e841,_0x48fced,_0x4dbfb2){super(_0x315f28,_0x22e841,_0x48fced,_0x4dbfb2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x494f61=>_0x494f61&&_0x494f61[0x0]?_0x494f61[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x312480,_0xcdb6a3)=>{let _0x3d5908='';for(const _0x8c292a of _0x312480)_0x3d5908+='<p>'+ds(_0x8c292a['content'],_0x8c292a['color'])+'</p>';return _0xcdb6a3?_0x3d5908:_0x31cd7c(_0x3d5908,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x315f28,'Accept\x20suggestion'),_0x17053a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x315f28,'Discard\x20suggestion'),_0x17053a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x175ae9(_0x315f28,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x27f654=this['bindTemplate'],_0x90ef6=[{'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':_0x27f654['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x27f654['to']('authoredAt',_0x36f40d=>this['_config']['formatDateTime'](_0x36f40d))}]}]},{'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']&&_0x90ef6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x413733={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x27f654['if']('isActive','ck-suggestion-wrapper--active'),_0x27f654['to']('type',_0x56071c=>'ck-suggestion-'+_0x56071c),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':_0x90ef6}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x413733['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)),_0x413733;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1e4c09,_0x50182f,_0x5db1c4)=>{this['_descriptionElement']['innerHTML']=_0x5db1c4;});}['_createButton'](_0x437efa,_0x33539a,_0x5895f0,_0x269ab0,_0xa74b50){const _0x10b830=new _0x387374(this['locale']);return _0x10b830['set']({'label':_0x437efa,'icon':_0x33539a,'tooltip':!0x0,'tooltipPosition':_0xa74b50}),_0x10b830['extendTemplate']({'attributes':{'class':_0x5895f0}}),_0x10b830['on']('execute',()=>{this['fire'](_0x269ab0,this['_model']['id']);}),_0x10b830;}['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(_0x48cd67,_0xeaa2e8){let _0x2314e6='';return _0x2314e6+=_0x48cd67['split']('*')['map']((_0x442c5a,_0x300fbb)=>_0x300fbb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x442c5a)+'</span>':us(_0x442c5a))['join'](''),_0xeaa2e8&&(_0x2314e6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xeaa2e8['value']+'\x22\x20title=\x22'+_0xeaa2e8['title']+'\x22></span>'),_0x2314e6;}function us(_0x15f585){const _0x7916f7=document['createElement']('span');return _0x7916f7['innerText']=_0x15f585,_0x7916f7['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 _0x513c76{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1586d5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x52f21d){super(_0x52f21d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x555522=this['editor']['config'];_0x555522['define']('trackChanges.SuggestionThreadView',ne),_0x555522['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x555522['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x257912,_0x3fff4f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x568614,_0xe6c416]of this['_handleControllerBuffer']){const _0x4a1e4b=this['_suggestionToController']['has'](_0x568614);_0x4a1e4b||_0xe6c416?_0x4a1e4b&&_0xe6c416&&this['_destroyController'](_0x568614):this['_initializeController'](_0x568614);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x257912,_0x3fff4f);}['init'](){const _0x419019=this['editor'],_0x9bbb81=_0x419019['plugins']['get']('TrackChangesEditing'),_0x9a9c3=_0x419019['plugins']['get']('Annotations'),_0x4bb648=_0x419019['plugins']['get']('EditorAnnotations'),_0xf65757=_0x419019['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4bb648['addSourceCollector'](()=>{const _0xddf80a=[];for(const [_0x4bc75d,_0x47c781]of Array['from'](this['_suggestionToController'])){const _0x638da3=_0x4bc75d['getAllAdjacentSuggestions'](),_0xdfaec1=[];for(const _0x3850c5 of _0x638da3){if(!_0x3850c5['isInContent'])continue;if(_0x3850c5['isMultiRange']){_0xdfaec1['push'](..._0x3850c5['getRanges']());continue;}const _0x4b5d98=_0x3850c5['getFirstRange']();if(_0xdfaec1['length']>0x0){const _0x17a571=_0xdfaec1[0x0]['getJoined'](_0x4b5d98);if(_0x17a571){_0xdfaec1[0x0]=_0x17a571;continue;}}_0xdfaec1['push'](_0x4b5d98);}_0xddf80a['push']([_0x47c781['view'],_0xdfaec1]);}return _0xddf80a;}),this['listenTo'](_0x9bbb81,'suggestionLoaded',(_0x167c02,_0x332752)=>{this['listenTo'](_0x332752,'change:previous',(_0x2c0ad0,_0x38ac4d,_0x2f4c74,_0x5a072d)=>{_0x332752['isInContent']&&(null==_0x2f4c74?(this['_updateController'](_0x5a072d['head']),this['_handleSuggestionControllerDelayed'](_0x332752,!0x1)):(this['_updateController'](_0x2f4c74['head']),null==_0x5a072d&&this['_handleSuggestionControllerDelayed'](_0x332752,!0x0)));}),null!==_0x332752['previous']?this['_updateController'](_0x332752['head']):this['_handleSuggestionControllerDelayed'](_0x332752,!0x1);}),this['listenTo'](_0x9bbb81,'suggestionUnloaded',(_0x13149c,_0x581717,_0x35ad6b)=>{this['stopListening'](_0x581717,'change:previous'),this['_handleControllerBuffer']['delete'](_0x581717),this['_suggestionToController']['has'](_0x581717)&&this['_destroyController'](_0x581717),_0x35ad6b&&this['_updateController'](_0x35ad6b['head']);}),this['listenTo'](_0x9bbb81,'suggestionChanged',(_0x387ed3,_0x1c4d33)=>{this['_updateController'](_0x1c4d33);}),this['listenTo'](_0x9a9c3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf65757,'addComment',(_0x18ecd8,{threadId:_0x438565,isFromAdapter:_0x3e22f1})=>{if(_0x3e22f1||!_0x9bbb81['hasSuggestion'](_0x438565))return;const _0x15c418=_0x9bbb81['getSuggestion'](_0x438565);this['_suggestionToController']['get'](_0x15c418)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x25dfbf=this['editor']['plugins']['get']('Annotations'),_0x44cf27=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ae9b3=Array['from'](_0x25dfbf['activeAnnotations'],_0x3979ce=>_0x3979ce['innerView'])['filter'](_0x1d9708=>this['_viewToController']['has'](_0x1d9708)),_0x4a99b5=[];for(const _0x511203 of _0x4ae9b3){const _0x31c968=this['_viewToController']['get'](_0x511203)['model']['getAllAdjacentSuggestions']();_0x4a99b5['push'](..._0x31c968['reduce']((_0x596233,_0x182ae0)=>[..._0x596233,..._0x182ae0['getMarkerNames']()],[]));}_0x44cf27['activeMarkers']=_0x4a99b5;}['_addUIComponentsToFactory'](){const _0x430c0c=this['editor'],_0x755c3=_0x430c0c['locale'],_0x44db18=o(_0x755c3,'Track\x20changes'),_0xefeda1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x44db18,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x755c3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3828e6 of _0xefeda1)if(ae(_0x3828e6)){const _0x144f49=_0x430c0c['commands']['get'](_0x3828e6['model']['commandName']);_0x3828e6['model']['bind']('isOn','isEnabled')['to'](_0x144f49,'value','isEnabled');}_0x430c0c['ui']['componentFactory']['add']('trackChanges',_0x2d5964=>this['_createToolbarButton'](_0x2d5964,_0xefeda1,_0x44db18)),_0x430c0c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bd628=>this['_createMenuBarMenu'](_0x2bd628,_0xefeda1,_0x44db18));}['_createToolbarButton'](_0x281fe0,_0x539c73,_0x487225){const _0x31c5b0=zt(_0x281fe0,Zt),_0x9bcab=this['editor']['commands']['get']('trackChanges');_0x31c5b0['buttonView']['set']({'tooltip':_0x487225,'label':_0x487225,'icon':ie}),_0x31c5b0['buttonView']['bind']('isOn')['to'](_0x9bcab,'value'),_0x31c5b0['buttonView']['on']('execute',()=>{_0x9bcab['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x31c5b0,_0x539c73,{'role':'menu'});const _0x3214a7=[];for(const _0x474dca of _0x539c73)ae(_0x474dca)&&_0x3214a7['push'](this['editor']['commands']['get'](_0x474dca['model']['commandName']));const _0x20eb81=_0x31c5b0['buttonView'];return _0x20eb81['actionView']['unbind']('isEnabled'),_0x20eb81['arrowView']['unbind']('isEnabled'),_0x20eb81['actionView']['bind']('isEnabled')['to'](_0x9bcab,'isEnabled'),_0x20eb81['arrowView']['bind']('isEnabled')['toMany'](_0x3214a7,'isEnabled',(..._0x14d774)=>_0x14d774['some'](_0x40b1f0=>_0x40b1f0)),_0x31c5b0['on']('execute',_0x16d12d=>{this['editor']['execute'](_0x16d12d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x31c5b0;}['_createMenuBarMenu'](_0x401fde,_0x22dd3f,_0x23e085){const _0xebdf00=new Kt(_0x401fde),_0x2f527f=this['editor']['commands']['get']('trackChanges');_0xebdf00['buttonView']['set']({'label':_0x23e085,'icon':ie});const _0x272d50=new Qt(_0x401fde);for(const _0x14b066 of _0x22dd3f){if('separator'==_0x14b066['type']){_0x272d50['items']['add'](new Jt(_0x401fde));continue;}const _0x34be09=new Xt(_0x401fde,_0xebdf00),_0x296902=new Yt(_0x401fde),_0x5dfbdb=_0x14b066['model'];_0x296902['bind'](...Object['keys'](_0x5dfbdb))['to'](_0x5dfbdb),_0x296902['delegate']('execute')['to'](_0xebdf00),_0x296902['on']('execute',()=>{this['editor']['execute'](_0x5dfbdb['commandName']),this['editor']['editing']['view']['focus']();}),_0x34be09['children']['add'](_0x296902),_0x272d50['items']['add'](_0x34be09);}return _0xebdf00['bind']('isEnabled')['to'](_0x2f527f,'isEnabled'),_0xebdf00['panelView']['children']['add'](_0x272d50),_0xebdf00;}['_initializeController'](_0xf58322){const _0x104f42=this['editor'],_0x16edfb=_0x104f42['config'],_0x2475d8=_0x104f42['plugins']['get']('Annotations'),_0x166349=_0x104f42['plugins']['get']('CommentsRepository'),_0x5ab3b8=_0x104f42['plugins']['get']('EditorAnnotations'),_0x3105ef=_0x104f42['plugins']['get'](_0x1586d5)['me'],_0xfee50e=_0x16edfb['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x14c01d,CommentThreadInputView:_0x131332}=_0x104f42['plugins']['get']('CommentsUI');let _0x44a7aa,_0x4b840a;this['_annotationViews']['has'](_0xf58322['id'])?(_0x4b840a=this['_annotationViews']['get'](_0xf58322['id']),_0x44a7aa=_0x4b840a['mainView']):(_0x44a7aa=new _0xfee50e(_0x104f42['locale'],_0xf58322,_0x3105ef,{'disableComments':this['_disableComments'],'editorConfig':_0x16edfb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x16edfb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16edfb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16edfb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x242ed1(_0x16edfb['get']('locale')),'CommentView':_0x16edfb['get']('comments')['CommentView'],'CommentsListView':_0x14c01d,'CommentThreadInputView':_0x131332}),_0x44a7aa['acceptButton']['on']('execute',()=>{_0x104f42['editing']['view']['focus']();}),_0x44a7aa['discardButton']['on']('execute',()=>{_0x104f42['editing']['view']['focus']();}),_0x4b840a=_0x2475d8['createAnnotationView'](this['editor']['locale'],_0x44a7aa),_0x4b840a['bind']('isDirty')['to'](_0x44a7aa,'isDirty'),_0x4b840a['bind']('length')['to'](_0x44a7aa),_0x4b840a['bind']('type')['to'](_0x44a7aa,'type',_0x5b1c26=>'suggestion-'+_0x5b1c26),this['_annotationViews']['set'](_0xf58322['id'],_0x4b840a));const _0x520c42=_0x166349['createCommentThreadController'](_0xf58322['commentThread'],_0x44a7aa),_0x2da600=new oe(_0x104f42,_0xf58322,_0x44a7aa,_0x520c42),_0x236b9b=_0xf58322['getAllAdjacentSuggestions']()['filter'](_0x2c63c7=>_0x2c63c7['isInContent']);_0x44a7aa['descriptionParts']=_0x104f42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x236b9b),this['_suggestionToController']['set'](_0xf58322,_0x2da600),this['_viewToController']['set'](_0x44a7aa,_0x2da600);const _0x3f18d9=_0x2475d8['createAnnotation']({'view':_0x4b840a,'target':()=>{const _0x33e1b6=[],_0x38fc96=_0xf58322['getAllAdjacentSuggestions']()['filter'](_0x5a9386=>_0x5a9386['isInContent']);for(const _0x59b50c of _0x38fc96)_0x33e1b6['push'](..._0x59b50c['getMarkers']());return _0x275d4d(_0x104f42['editing'],_0x33e1b6);},'type':()=>'suggestion-'+_0x2da600['view']['type']});_0x166349['_bindAnnotationToEditors'](_0x44a7aa,_0x3f18d9),_0x2475d8['add'](_0x3f18d9),_0x5ab3b8['registerAnnotation'](_0x3f18d9);}['_destroyController'](_0x44cdaa){const _0xdad606=this['editor']['plugins']['get']('CommentsRepository'),_0x3e99b1=this['editor']['plugins']['get']('Annotations'),_0x446320=this['_suggestionToController']['get'](_0x44cdaa),_0xbd3b95=_0x446320['view'],_0x26c6ba=_0x3e99b1['getByInnerView'](_0xbd3b95);_0xdad606['_unbindEditors'](_0xbd3b95),_0x26c6ba&&_0x3e99b1['remove'](_0x26c6ba),this['_suggestionToController']['delete'](_0x44cdaa),this['_viewToController']['delete'](_0xbd3b95),_0x446320['destroy']();}['_updateController'](_0xa7dbc1){if(!_0xa7dbc1['isInContent']||!this['_suggestionToController']['has'](_0xa7dbc1))return;const _0x2577f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cfb4a=this['_suggestionToController']['get'](_0xa7dbc1),_0x3ce5af=_0xa7dbc1['getAllAdjacentSuggestions']();_0x1cfb4a['view']['descriptionParts']=_0x2577f5['descriptionFactory']['getDescriptions'](_0x3ce5af);}['destroy'](){for(const _0x40d8a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x40d8a6);for(const _0x1a9b63 of this['_annotationViews']['values']())_0x1a9b63['mainView']['destroy']();super['destroy']();}}function ae(_0x32ce6a){return'model'in _0x32ce6a;}class k extends _0x513c76{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x514127){this['editor']['plugins']['get'](p)['adapter']=_0x514127;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x621897){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x621897);}['getSuggestions']({skipNotAttached:_0x4b13ca=!0x1,toJSON:_0x2b455f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4b13ca,'toJSON':_0x2b455f});}['getSuggestion'](_0x4dd0a3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4dd0a3);}}const T=['Pagination'];class P extends _0x513c76{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x584b28=this['editor'];if(_0x584b28['config']['define']('trackChangesData.editorCreator',_0x256970=>{const _0x3969f4=_0x584b28['model']['document']['getRootNames']()['reduce']((_0x222854,_0x3618a4)=>(_0x222854[_0x3618a4]='',_0x222854),{});return _0x584b28['constructor']['create'](_0x3969f4,_0x256970);}),'function'!=typeof _0x584b28['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a1ebc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57f59d){return N(this['editor'],!0x0,_0x57f59d);}['getDataWithDiscardedSuggestions'](_0x594ea2){return N(this['editor'],!0x1,_0x594ea2);}}class D extends _0x513c76{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x463229){super(_0x463229),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(_0x2cc404){return void 0x0!==_0x2cc404['getRootsAttributes'];}async function N(_0x403b8e,_0xe5b200,_0x84ae77){const _0x584316=_0x5b08b8(_0x403b8e,T);_0x584316['plugins']['push'](p,D),_0x584316['rootsAttributes']=v(_0x403b8e)?_0x403b8e['getRootsAttributes']():void 0x0;const _0x48d8f1=document['createDocumentFragment'](),_0x141027=_0x403b8e['config']['get']('trackChangesData')['editorCreator'],_0x1d6a29=await _0x141027(_0x584316,()=>function(_0x2009ac){const _0x3792f4=document['createElement']('div');return _0x2009ac['appendChild'](_0x3792f4),_0x3792f4;}(_0x48d8f1));!function(_0x2ffafa,_0x21748f){const _0x363c64=_0x2ffafa['model']['document']['getRootNames']()['reduce']((_0x5a507e,_0x219e5c)=>(_0x5a507e[_0x219e5c]=_0x2ffafa['data']['get']({'rootName':_0x219e5c}),_0x5a507e),{}),_0x528c1e=_0x2ffafa['plugins']['get']('Users')['users']['map'](_0x247599=>({'id':_0x247599['id'],'name':_0x247599['name']})),_0x274a76=_0x2ffafa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a61fa=_0x2ffafa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39dea7=_0x21748f['plugins']['get']('Users'),_0x1896f8=_0x21748f['plugins']['get']('TrackChangesEditing'),_0x586bcc=_0x21748f['plugins']['get']('CommentsRepository');for(const _0x225739 of _0x528c1e)_0x39dea7['getUser'](_0x225739['id'])||_0x39dea7['addUser'](_0x225739);_0x39dea7['me']||_0x39dea7['useAnonymousUser']();for(const _0x2d4067 of _0x1a61fa)_0x586bcc['addCommentThread'](_0x2d4067);for(const _0x1180d3 of _0x274a76)_0x1896f8['addSuggestionData'](_0x1180d3);_0x21748f['data']['set'](_0x363c64);}(_0x403b8e,_0x1d6a29),_0x1d6a29['execute'](_0xe5b200?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f71e=v(_0x1d6a29)?_0x1d6a29['getFullData'](_0x84ae77):_0x1d6a29['data']['get'](_0x84ae77);return await _0x1d6a29['destroy'](),_0x27f71e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4e999c,PendingActions as _0x438631,icons as _0x360525}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x16515e,ObservableMixin as _0x1256a3,uid as _0x4cf88e,insertToPriorityArray as _0x3baa96,priorities as _0x52ae77,logWarning as _0x4cc203,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1ed25e,View as _0x3f7679,ButtonView as _0x103837,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 _0x5d340e,hashObject as _0x4fedb8,surroundingMarkersDetector as _0x313780,trimHtml as _0x54a2e5,UserView as _0x1794e9,getDateTimeFormatter as _0xf0f4f6,getAllMarkersDomElementsSorted as _0x1c2554,sanitizeEditorConfig as _0x51699c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2448f7,LiveRange as _0x38a2be,LivePosition as _0x38c64b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x259c41,toWidget as _0x493bb3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x461b83,set as _0x1d8cd8,isEqual as _0x3ebd5c,unset as _0x22ca64,omit as Bt}from'lodash-es';import{Delete as _0x4c318b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x202fe3,ShiftEnter as _0x209060}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x3dd9f6,_0x57598d){super(_0x3dd9f6),this['_enabledCommands']=_0x57598d,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 _0x52f43b of this['editor']['commands']['commands']())_0x52f43b['affectsData']&&!this['_enabledCommands']['has'](_0x52f43b)&&_0x52f43b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x411d84 of this['editor']['commands']['commands']())_0x411d84['affectsData']&&!this['_enabledCommands']['has'](_0x411d84)&&_0x411d84['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x416028,_0x142c49){super(_0x416028),this['_suggestions']=_0x142c49,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x279142){const _0x5c9bd3=this['_suggestions']['get'](_0x279142);if(!_0x5c9bd3)throw new _0x16515e('track-changes-accept-suggestion-not-found',this);const _0x1c1d9f=_0x5c9bd3['getRanges']();this['editor']['model']['canEditAt'](_0x1c1d9f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5c9bd3);}}class B extends ts{['_suggestions'];constructor(_0x22a165,_0x52e055){super(_0x22a165),this['_suggestions']=_0x52e055,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c848){const _0x1e103a=this['_suggestions']['get'](_0x26c848);if(!_0x1e103a)throw new _0x16515e('track-changes-discard-suggestion-not-found',this);const _0x29fb3f=_0x1e103a['getRanges']();this['editor']['model']['canEditAt'](_0x29fb3f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1e103a);}}function ss(_0x4509e4){return _0x4509e4['sort']((_0x583daf,_0xda6d70)=>'deletion'==_0x583daf['type']&&'deletion'!=_0xda6d70['type']?-0x1:'deletion'!=_0x583daf['type']&&'deletion'==_0xda6d70['type']?0x1:0x0);}function to(_0x30b0b1,_0x13b986){let _0xfd08eb,_0x2d1ffa=0x0;const _0x4000f5=[],_0x15620e=_0x13b986['schema'];for(;_0x2d1ffa<_0x30b0b1['length'];){const _0x1c5f16=_0x30b0b1[_0x2d1ffa],_0x4dcbd7=_0x30b0b1[_0x2d1ffa+0x1];_0xfd08eb||(_0xfd08eb=_0x13b986['createPositionBefore'](_0x1c5f16)),co(_0x13b986,_0x1c5f16,_0x4dcbd7)||(_0x4000f5['push'](_0x13b986['createRange'](_0xfd08eb,_0x15620e['isObject'](_0x1c5f16)?_0x13b986['createPositionAfter'](_0x1c5f16):_0x13b986['createPositionAt'](_0x1c5f16,'end'))),_0xfd08eb=null),_0x2d1ffa++;}return _0x4000f5;}function co(_0x5b56b9,_0x4203b3,_0x3b1423){if(!_0x3b1423)return!0x1;const _0x30a28e=_0x5b56b9['createPositionAfter'](_0x4203b3),_0x4ba60b=_0x5b56b9['createPositionBefore'](_0x3b1423);return _0x30a28e['isTouching'](_0x4ba60b);}function rs(_0x49939a,_0x4202d2,_0x486197){for(;_0x486197['length'];){const _0xddc55d=_0x486197['splice'](0x0,0x64);_0x49939a['change'](()=>{for(const _0x218f1b of _0xddc55d)_0x218f1b['isInContent']&&_0x4202d2['execute'](_0x218f1b['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x32f06b,_0x25315f,_0x4c4d59){super(_0x32f06b),this['_command']=_0x25315f,this['_suggestions']=_0x4c4d59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x297841=Array['from'](this['_suggestions']['values']())['some'](_0x50da7d=>_0x50da7d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x297841;}['execute'](){const _0x53111a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x100736 of _0x53111a){const _0x2a0d80=_0x100736['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2a0d80))return;}rs(this['editor']['model'],this['_command'],_0x53111a);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x280a61,_0x2e285b,_0x3eca99){super(_0x280a61),this['_command']=_0x2e285b,this['_suggestions']=_0x3eca99,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x233768=this['editor']['model']['document']['selection'],_0x1882fa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f0ab3,_0x3aaddb){const _0x528a95=Array['from'](_0x4f0ab3['getRanges']()),_0x377c93=new Set();for(const _0x532e74 of _0x3aaddb)if(_0x532e74['isInContent']){for(const _0x4c0c54 of _0x528a95)for(const _0x28a835 of _0x532e74['getRanges']())(_0x4c0c54['isIntersecting'](_0x28a835)||_0x4f0ab3['isCollapsed']&&!_0x532e74['isMultiRange']&&_0x532e74['next']&&_0x28a835['end']['isTouching'](_0x4c0c54['start']))&&_0x377c93['add'](_0x532e74);}return _0x377c93;}(_0x233768,_0x1882fa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x169120=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5e9bf8 of _0x169120){const _0x19fe70=_0x5e9bf8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19fe70))return;}rs(this['editor']['model'],this['_command'],_0x169120);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1256a3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x133299,_0x4e9e9f){super(),this['id']=_0x4e9e9f['id'],this['type']=_0x4e9e9f['type'],this['subType']=_0x4e9e9f['subType']||null,this['author']=_0x4e9e9f['author'],this['creator']=_0x4e9e9f['creator']||_0x4e9e9f['author'],this['isExternal']=Boolean(_0x4e9e9f['attributes']&&_0x4e9e9f['attributes']['@external']),this['data']=null,this['_model']=_0x133299,this['_onAccept']=_0x4e9e9f['onAccept'],this['_onDiscard']=_0x4e9e9f['onDiscard'],this['_onAttributesChange']=_0x4e9e9f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e9e9f['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 _0x3cc4ee=this;for(;_0x3cc4ee['previous'];)_0x3cc4ee=_0x3cc4ee['previous'];return _0x3cc4ee;}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'](_0x42b775){this['_markerNames']['add'](_0x42b775);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3b8061=>this['_model']['markers']['get'](_0x3b8061))['filter'](_0x485dbe=>_0x485dbe);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f5d2a=>{for(const _0x172395 of this['getMarkers']())_0x5f5d2a['removeMarker'](_0x172395);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d8dc2){this['_model']['change'](_0x1de296=>{_0x1de296['removeMarker'](_0x3d8dc2);}),this['_markerNames']['delete'](_0x3d8dc2);}['addRange'](_0x3357ea){const _0x5cac50='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5cac50),this['_model']['change'](_0x318c00=>{_0x318c00['addMarker'](_0x5cac50,{'range':_0x3357ea,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4edf4d){for(const _0x42836f of this['getRanges']())if(_0x42836f['isIntersecting'](_0x4edf4d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b7200=>_0x5b7200['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29fda1,_0x164b1)=>[..._0x29fda1,..._0x164b1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x657bee=this['getRanges']();if(0x1!=_0x657bee['length'])return null;const _0x200a87=_0x657bee[0x0],_0x595347=_0x200a87['start']['nodeAfter'],_0x3b86ce=_0x200a87['end']['nodeBefore'];return _0x595347 instanceof _0x2448f7?_0x595347!=_0x3b86ce?null:_0x595347: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 _0x39a131=[];let _0x15135f=this['head'];for(;_0x15135f;)_0x39a131['push'](_0x15135f),_0x15135f=_0x15135f['next'];return _0x39a131;}['setAttribute'](_0x305837,_0x35ec44){const _0x45be9e=_0x461b83(this['attributes']);_0x1d8cd8(_0x45be9e,_0x305837,_0x35ec44),_0x3ebd5c(_0x45be9e,this['attributes'])||(this['attributes']=_0x45be9e,this['_onAttributesChange'](_0x45be9e));}['removeAttribute'](_0x58e5a6){const _0x4e64da=_0x461b83(this['attributes']);_0x22ca64(_0x4e64da,_0x58e5a6),_0x3ebd5c(_0x4e64da,this['attributes'])||(this['attributes']=_0x4e64da,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 _0x4cf88e()['substr'](0x1,0x5);}}function o(_0x5c6143,_0x316a64,_0x27c052){const t=_0x5c6143['t'];switch(_0x316a64){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',_0x27c052);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27c052);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27c052);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27c052);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27c052);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',_0x27c052);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27c052);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',_0x27c052);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27c052);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27c052);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27c052);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27c052);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27c052);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27c052);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27c052);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27c052);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27c052);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27c052);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27c052);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27c052);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27c052);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27c052);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27c052);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'},_0x27c052);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27c052);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27c052);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27c052);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27c052);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27c052);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'},_0x27c052);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27c052);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27c052);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27c052);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27c052);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'},_0x27c052);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27c052);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'},_0x27c052);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'},_0x27c052);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27c052);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'},_0x27c052);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27c052);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'},_0x27c052);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27c052);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27c052);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'},_0x27c052);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'},_0x27c052);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 _0x316a64;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x58e21b,_0x41a055){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x58e21b,this['_locale']=_0x41a055;}['getDescriptions'](_0x2a3411){const _0x38c5fa=[],_0x19d53c=new Set(),_0xa08655=new Set();for(let _0x2f96c0=0x0;_0x2f96c0<_0x2a3411['length'];_0x2f96c0++){const _0x1a2def=_0x2a3411[_0x2f96c0];if(!_0x1a2def['isInContent'])continue;const _0x340dc6=this['_handleCustomCallbackDescription'](_0x1a2def);if(_0x340dc6){if(null!=_0x1a2def['subType']){if(_0x19d53c['has'](_0x1a2def['subType']))continue;_0x19d53c['add'](_0x1a2def['subType']);}_0x38c5fa['push'](_0x340dc6);}else{if('attribute'!=_0x1a2def['type'])'insertion'!=_0x1a2def['type']&&'deletion'!=_0x1a2def['type']||this['_handleInsertRemoveSuggestionDescription'](_0x38c5fa,_0x1a2def,_0x2a3411[_0x2f96c0+0x1]);else{const _0x364a8e=_0x1a2def['data']['key'];if(_0xa08655['has'](_0x364a8e))continue;_0xa08655['add'](_0x1a2def['data']['key']),_0x364a8e==m?this['_handleRenameSuggestionDescription'](_0x38c5fa,_0x1a2def):this['_handleAttributeSuggestionDescription'](_0x38c5fa,_0x1a2def);}}}return this['_resolveDescriptionItems'](_0x38c5fa);}['registerDescriptionCallback'](_0x3163a9){this['_customCallbacks']['push'](_0x3163a9);}['registerElementLabel'](_0x54a261,_0x3d0f5c,_0x2a140c=_0x52ae77['normal']){'function'==typeof _0x54a261?_0x3baa96(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54a261,'label':_0x3d0f5c,'priority':_0x2a140c}):this['_itemLabels']['set'](_0x54a261,_0x3d0f5c);}['registerAttributeLabel'](_0x43788b,_0x577f2c){this['_attributeLabels']['set'](_0x43788b,_0x577f2c);}['getItemLabel'](_0x1b22ee,_0x2999f1=0x1){let _0x17234a;for(const _0x13c1ac of this['_itemLabelsCallbacks'])if(_0x13c1ac['matchingCallback'](_0x1b22ee)){_0x17234a=_0x13c1ac['label'];break;}return _0x17234a||(_0x17234a=this['_itemLabels']['get'](_0x1b22ee['name'])),_0x17234a?_0x17234a(_0x2999f1):0x1!==_0x2999f1?_0x2999f1+'\x20'+_0x1b22ee['name']+'s':''+_0x1b22ee['name'];}['_addDescriptionItems'](_0x118df,_0x31535e){const _0x35625e=_0x31535e['getFirstRange']()['getWalker'](),_0x284e13='insertion'==_0x31535e['type']?'add':'remove';for(const _0x308620 of _0x35625e){const _0x327864=_0x308620['item'],_0x3bbfdf=_0x118df[_0x118df['length']-0x1];if(_0x327864['is']('$textProxy'))_0x3bbfdf&&_0x3bbfdf['type']['indexOf']('Container')>-0x1&&_0x118df['pop'](),_0x3bbfdf&&'text'==_0x3bbfdf['type']?_0x3bbfdf[_0x284e13]+=_0x327864['data']:_0x118df['push']({'type':'text','add':'add'==_0x284e13?_0x327864['data']:'','remove':'remove'==_0x284e13?_0x327864['data']:''});else{if(this['_schema']['isObject'](_0x327864)){const _0x63d051=_0x327864;if(_0x3bbfdf&&_0x3bbfdf['type']['indexOf']('Container')>-0x1&&_0x118df['pop'](),'elementEnd'==_0x308620['type'])continue;_0x3bbfdf&&_0x3bbfdf['type']==_0x284e13+'Object'&&_0x3bbfdf['element']['name']==_0x63d051['name']?_0x3bbfdf['quantity']++:_0x118df['push']({'type':_0x284e13+'Object','element':_0x63d051,'quantity':0x1}),_0x35625e['skip'](_0x3664f0=>!('elementEnd'==_0x3664f0['type']&&_0x3664f0['item']==_0x327864));}else{if(this['_schema']['checkChild'](_0x327864,'$text')||_0x327864['is']('element','softBreak')){const _0x6b6426=_0x327864;if('add'==_0x284e13&&'elementStart'==_0x308620['type']||'remove'==_0x284e13&&'elementEnd'==_0x308620['type'])continue;if(_0x3bbfdf&&-0x1==_0x3bbfdf['type']['indexOf']('Container')){'text'==_0x3bbfdf['type']&&(_0x3bbfdf[_0x284e13]+='\x0a');continue;}let _0x4b2ae3;if(_0x4b2ae3='add'==_0x284e13?_0x6b6426['nextSibling']&&!this['_schema']['isObject'](_0x6b6426['nextSibling'])?_0x6b6426['nextSibling']:null:_0x6b6426['previousSibling']&&!this['_schema']['isObject'](_0x6b6426['previousSibling'])?_0x6b6426['previousSibling']:null,_0x6b6426['isEmpty']||_0x4b2ae3&&_0x4b2ae3['isEmpty']){const _0x4586c1=_0x4b2ae3&&_0x4b2ae3['isEmpty']?_0x4b2ae3:_0x6b6426;_0x3bbfdf&&_0x3bbfdf['type']==_0x284e13+'EmptyContainer'&&_0x3bbfdf['element']['name']==_0x4586c1['name']?_0x3bbfdf['quantity']++:_0x118df['push']({'type':_0x284e13+'EmptyContainer','element':_0x4586c1,'quantity':0x1});}else _0x118df['push']({'type':_0x284e13+'Container','element':_0x6b6426});}}}}}['_resolveDescriptionItems'](_0x1b198a){const _0x4596f7=this['_locale'],_0x5c0333=[],_0x492341=[],_0x26daa1=[];for(const _0x58f936 of _0x1b198a)switch(_0x58f936['type']){case'text':if(_0x58f936['add']=_0x58f936['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58f936['remove']=_0x58f936['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58f936['add']&&''!=_0x58f936['remove']){_0x5c0333['push']({'type':'replace','content':o(_0x4596f7,'REPLACE_TEXT',['\x22'+_0x58f936['remove']+'\x22','\x22'+_0x58f936['add']+'\x22'])});continue;}if(null!=_0x58f936['add']['match'](/^ +$/)){_0x5c0333['push']({'type':'insertion','content':o(_0x4596f7,'*Insert:*\x20%0',o(_0x4596f7,'ELEMENT_SPACE',_0x58f936['add']['length']))});continue;}if(null!=_0x58f936['remove']['match'](/^ +$/)){_0x5c0333['push']({'type':'deletion','content':o(_0x4596f7,'*Remove:*\x20%0',o(_0x4596f7,'ELEMENT_SPACE',_0x58f936['remove']['length']))});continue;}if(''!=_0x58f936['add']){_0x5c0333['push']({'type':'insertion','content':o(_0x4596f7,'*Insert:*\x20%0','\x22'+_0x58f936['add']+'\x22')});continue;}_0x5c0333['push']({'type':'deletion','content':o(_0x4596f7,'*Remove:*\x20%0','\x22'+_0x58f936['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5c0333['push']({'type':'insertion','content':o(_0x4596f7,'*Insert:*\x20%0',this['getItemLabel'](_0x58f936['element'],_0x58f936['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5c0333['push']({'type':'deletion','content':o(_0x4596f7,'*Remove:*\x20%0',this['getItemLabel'](_0x58f936['element'],_0x58f936['quantity']))});continue;case'addContainer':_0x5c0333['push']({'type':'insertion','content':o(_0x4596f7,'*Split:*\x20%0',this['getItemLabel'](_0x58f936['element'],_0x58f936['quantity']))});continue;case'removeContainer':_0x5c0333['push']({'type':'deletion','content':o(_0x4596f7,'*Merge:*\x20%0',this['getItemLabel'](_0x58f936['element'],_0x58f936['quantity']))});continue;case'addFormat':_0x492341['push'](_0x58f936['key']);continue;case'removeFormat':_0x26daa1['push'](_0x58f936['key']);continue;default:_0x5c0333['push'](_0x58f936);}if(_0x492341['length']){const _0x469991=_0x492341['map'](_0x349063=>this['_attributeLabels']['has'](_0x349063)?this['_attributeLabels']['get'](_0x349063):_0x349063)['join'](',\x20');_0x5c0333['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x469991)});}if(_0x26daa1['length']){const _0xecacfc=_0x26daa1['map'](_0x323611=>this['_attributeLabels']['has'](_0x323611)?this['_attributeLabels']['get'](_0x323611):_0x323611)['join'](',\x20');_0x5c0333['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xecacfc)});}return _0x5c0333;}['_handleCustomCallbackDescription'](_0x36e362){for(const _0x5796b8 of this['_customCallbacks']){const _0x117f24=_0x5796b8(_0x36e362);if(_0x117f24&&'type'in _0x117f24)return _0x117f24;}}['_handleAttributeSuggestionDescription'](_0x460618,_0x366e46){const _0x180cb7=_0x366e46['data'],_0x2eafee=void 0x0===_0x180cb7['newValue']?'removeFormat':'addFormat';_0x460618['push']({'type':_0x2eafee,'key':_0x180cb7['key']});}['_handleRenameSuggestionDescription'](_0x1cf71b,_0xdce240){_0x1cf71b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xdce240['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x27f0f8,_0x335f3b,_0x55b30c){if(this['_addDescriptionItems'](_0x27f0f8,_0x335f3b),_0x55b30c&&_0x55b30c['getFirstRange']()&&!_0x335f3b['getFirstRange']()['end']['isEqual'](_0x55b30c['getFirstRange']()['start'])){const _0x1e2bf2=_0x27f0f8[_0x27f0f8['length']-0x1],_0x2a882a='insertion'==_0x335f3b['type']?'add':'remove';_0x1e2bf2&&'text'==_0x1e2bf2['type']&&(_0x1e2bf2[_0x2a882a]+='\x0a');}}}class E extends _0x4e999c{['afterInit'](){const _0x334aec=this['editor'],_0x5d708c=_0x334aec['plugins']['get']('TrackChangesEditing');_0x334aec['commands']['get']('showAIAssistant')&&_0x5d708c['enableCommand']('showAIAssistant');}}class V extends _0x4e999c{['afterInit'](){const _0x47cb3a=this['editor'],_0x28b963=_0x47cb3a['locale'];if(!_0x47cb3a['plugins']['has']('AlignmentEditing'))return;const _0x5a1348=_0x47cb3a['plugins']['get']('TrackChangesEditing');_0x5a1348['enableDefaultAttributesIntegration']('alignment'),_0x5a1348['registerBlockAttribute']('alignment'),_0x5a1348['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28b963,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c932=this['editor'],_0x30f118=_0x55c932['locale'];_0x55c932['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38355b=>{if('formatBlock'!=_0x38355b['type'])return;const {data:_0x28834d}=_0x38355b;if(_0x28834d&&'alignment'==_0x28834d['commandName']){const _0x5c0ba9=_0x28834d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x30f118,'*Format:*\x20%0',function(_0x399f4b){switch(_0x399f4b){case'left':return o(_0x30f118,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x30f118,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x30f118,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x30f118,'FORMAT_JUSTIFY_TEXT');}}(_0x5c0ba9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4e999c{['afterInit'](){const _0x4e9db8=this['editor'],_0x3d773f=_0x4e9db8['plugins']['get']('TrackChangesEditing'),_0x4f17a5=_0x4e9db8['locale'];for(const _0x49d4b5 of ti){if(!_0x4e9db8['plugins']['has'](_0x49d4b5))continue;const _0x4553ab=_0x49d4b5['slice'](0x0,-0x7)['toLowerCase'](),_0x294aef='FORMAT_'+_0x4553ab['toUpperCase']();_0x3d773f['enableDefaultAttributesIntegration'](_0x4553ab),_0x3d773f['registerInlineAttribute'](_0x4553ab),_0x3d773f['descriptionFactory']['registerAttributeLabel'](_0x4553ab,o(_0x4f17a5,_0x294aef));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfd2c27=this['editor'],_0x4c0a3=_0xfd2c27['locale'],_0x2f7bc5=_0xfd2c27['plugins']['get']('TrackChangesEditing');function _0x44a08b(_0x53a4dc,_0xdcc6ed){_0x2f7bc5['descriptionFactory']['registerDescriptionCallback'](_0x3ae6b1=>{if('formatInline'!=_0x3ae6b1['type'])return;const {data:_0x3453d4}=_0x3ae6b1;return _0x3453d4&&_0x3453d4['commandName']===_0x53a4dc?_0x3453d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0a3,'*Format:*\x20%0',_0xdcc6ed)}:{'type':'format','content':o(_0x4c0a3,'*Remove\x20format:*\x20%0',_0xdcc6ed)}:void 0x0;});}_0x44a08b('bold',o(_0x4c0a3,'FORMAT_BOLD')),_0x44a08b('italic',o(_0x4c0a3,'FORMAT_ITALIC')),_0x44a08b('underline',o(_0x4c0a3,'FORMAT_UNDERLINE')),_0x44a08b('code',o(_0x4c0a3,'FORMAT_CODE')),_0x44a08b('strikethrough',o(_0x4c0a3,'FORMAT_STRIKETHROUGH')),_0x44a08b('subscript',o(_0x4c0a3,'FORMAT_SUBSCRIPT')),_0x44a08b('superscript',o(_0x4c0a3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4e999c{['afterInit'](){const _0x52e9bb=this['editor'],_0x5d688c=_0x52e9bb['locale'];if(!_0x52e9bb['plugins']['has']('BlockQuoteEditing'))return;const _0x2bb1fc=_0x52e9bb['plugins']['get']('TrackChangesEditing'),_0x4c6ab8=this['editor']['commands']['get']('blockQuote');_0x2bb1fc['enableCommand']('blockQuote',(_0x52deb4,_0xf3b39b={})=>{const _0x2dfa80=this['editor']['model']['document']['selection'],_0x2ba352=_0xf3b39b&&void 0x0!==_0xf3b39b['forceValue']?_0xf3b39b['forceValue']:!_0x4c6ab8['value'];let _0x7c9529=[];if(_0x2ba352){const _0x28cf01=Array['from'](_0x2dfa80['getSelectedBlocks']())['filter'](_0x243346=>oo(_0x243346)||function(_0x48aced,_0x5e49d9){const _0x35ae32=_0x5e49d9['checkChild'](_0x48aced['parent'],'blockQuote'),_0x11b9c4=_0x5e49d9['checkChild'](['$root','blockQuote'],_0x48aced);return _0x35ae32&&_0x11b9c4;}(_0x243346,this['editor']['model']['schema']));_0x7c9529=to(_0x28cf01,_0x52e9bb['model']);}else{const _0x12c83c=Array['from'](_0x2dfa80['getSelectedBlocks']())['filter'](_0x35e20e=>oo(_0x35e20e));_0x7c9529=to(_0x12c83c,_0x52e9bb['model']);}_0x52e9bb['model']['change'](()=>{for(const _0x11bb93 of _0x7c9529)_0x2bb1fc['markBlockFormat'](_0x11bb93,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ba352}]});});}),_0x2bb1fc['descriptionFactory']['registerDescriptionCallback'](_0x180208=>{const {data:_0x4c1436}=_0x180208;if(_0x4c1436&&'blockQuote'==_0x4c1436['commandName']){const _0x206bac=o(_0x5d688c,'ELEMENT_BLOCK_QUOTE');return _0x4c1436['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d688c,'*Set\x20format:*\x20%0',_0x206bac)}:{'type':'format','content':o(_0x5d688c,'*Remove\x20format:*\x20%0',_0x206bac)};}});}}function oo(_0x587d84){return'blockQuote'==_0x587d84['parent']['name'];}class G extends _0x4e999c{['afterInit'](){const _0x1f42f4=this['editor'];_0x1f42f4['plugins']['has']('CaseChange')&&(_0x1f42f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f42f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f42f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4e999c{['afterInit'](){const _0x58cad3=this['editor'];_0x58cad3['commands']['get']('ckbox')&&_0x58cad3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4e999c{['afterInit'](){const _0x37d6f6=this['editor'];if(!_0x37d6f6['plugins']['has']('CodeBlock'))return;const _0x2b25bc=_0x37d6f6['plugins']['get']('TrackChangesEditing'),_0x3a3ad8=_0x37d6f6['locale'],_0x203884=_0x37d6f6['config']['get']('codeBlock')['languages'],_0x3f48d9=_0x37d6f6['commands']['get']('codeBlock');_0x2b25bc['enableCommand']('indentCodeBlock'),_0x2b25bc['enableCommand']('outdentCodeBlock'),_0x2b25bc['enableCommand']('codeBlock',(_0x1c7b37,_0xdd840d={})=>{const _0x397af0=_0x37d6f6['model'],_0x125914=_0x37d6f6['model']['document']['selection'],_0x39c0eb=_0xdd840d&&void 0x0!==_0xdd840d['forceValue']?_0xdd840d['forceValue']:!_0x3f48d9['value'];let _0x3e5020;_0xdd840d['language']||(_0xdd840d['language']=_0x203884[0x0]['language']),_0x3e5020=_0x39c0eb?Array['from'](_0x125914['getSelectedBlocks']())['filter'](_0x48e12e=>eo(_0x48e12e)||function(_0x345e7d,_0x28e00c){if(_0x345e7d['is']('rootElement')||_0x28e00c['isLimit'](_0x345e7d))return!0x1;return _0x28e00c['checkChild'](_0x345e7d['parent'],'codeBlock');}(_0x48e12e,_0x397af0['schema'])):Array['from'](_0x125914['getSelectedBlocks']())['filter'](_0x25a179=>eo(_0x25a179));const _0x5d0b8b=to(_0x3e5020,_0x397af0);_0x397af0['change'](()=>{for(const _0x25ecb0 of _0x5d0b8b)_0x2b25bc['markBlockFormat'](_0x25ecb0,{'commandName':'codeBlock','commandParams':[{..._0xdd840d,'forceValue':_0x39c0eb}],'formatGroupId':'blockName'});});}),(_0x2b25bc['descriptionFactory']['registerElementLabel']('codeBlock',_0x45d43d=>o(_0x3a3ad8,'ELEMENT_CODE_BLOCK',_0x45d43d)),_0x2b25bc['descriptionFactory']['registerDescriptionCallback'](_0x59c633=>{if('formatBlock'!=_0x59c633['type'])return;const _0x57fbd5=_0x3a3ad8['t'],{data:_0x4bd1e9}=_0x59c633;if(!_0x4bd1e9||'codeBlock'!=_0x4bd1e9['commandName'])return;const _0x225d0e=_0x4bd1e9['commandParams'][0x0]['language'],_0x2f2279=_0x57fbd5(_0x203884['find'](_0x5a72fe=>_0x5a72fe['language']===_0x225d0e)['label'])['toLowerCase']();return _0x4bd1e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a3ad8,'*Set\x20format:*\x20%0',o(_0x3a3ad8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f2279+')')}:{'type':'format','content':o(_0x3a3ad8,'*Remove\x20format:*\x20%0',o(_0x3a3ad8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x24f2e4){return'codeBlock'==_0x24f2e4['name'];}class H extends _0x4e999c{['afterInit'](){const _0x585b53=this['editor'];if(!_0x585b53['plugins']['has']('CommentsEditing'))return;_0x585b53['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5c477d,_0x355e3c,_0x29a97a){const _0x3c4cb5=[];for(const _0x6e0f7d of _0x355e3c['getItems']())_0x6e0f7d['hasAttribute'](_0x5c477d)&&_0x3c4cb5['push'](_0x29a97a['createRangeOn'](_0x6e0f7d));return _0x3c4cb5;}function _e(_0x5d260a,_0x23454f,{showActiveMarker:_0x56ae00=!0x0}={}){const _0x2be46f=_0x5d260a['plugins']['get']('TrackChangesEditing');return(_0x26a60c,_0x3ef7da,_0x7cdb9d)=>{if(!_0x7cdb9d['consumable']['test'](_0x3ef7da['markerRange'],_0x26a60c['name']))return;const _0x162364=_0x3ef7da['markerRange']['getWalker'](),_0x558fa2=_0x3ef7da['markerRange']['start'],_0x2cf91c=_0x5d260a['model']['schema'];let _0x1cacfa=null,_0x402b09=null,_0xa8d1a0=!0x1,_0x3cd6a0=!0x1;for(const _0x4a797c of _0x162364){const _0x49ffbb=_0x4a797c['item'];_0xa8d1a0=_0xa8d1a0||_0x2cf91c['isContent'](_0x49ffbb);const _0x3789dc=_0x7cdb9d['mapper']['toViewElement'](_0x49ffbb);if(_0x3789dc&&_0x3789dc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a797c['type']&&(_0x2cf91c['isBlock'](_0x49ffbb)&&!_0x2cf91c['isLimit'](_0x49ffbb)&&(_0x49ffbb['nextSibling']||_0x558fa2['isAtEnd']?_0x1cacfa&&_0x1cacfa['parent']==_0x49ffbb||(_0x1cacfa=_0x49ffbb,_0xebe096(_0x4a797c['previousPosition']),_0x3cd6a0=!0x0):_0x402b09=_0x402b09||_0x4a797c['previousPosition']));}function _0xebe096(_0x1af827){const _0x5a0f86=_0x7cdb9d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23454f}),_0x34d0f9=_0x7cdb9d['mapper']['toViewPosition'](_0x1af827);_0x56ae00&&_0x2be46f['activeMarkers']['includes'](_0x3ef7da['markerName'])&&_0x7cdb9d['writer']['addClass']('ck-suggestion-marker--active',_0x5a0f86),_0x7cdb9d['writer']['insert'](_0x34d0f9,_0x5a0f86),_0x7cdb9d['mapper']['bindElementToMarker'](_0x5a0f86,_0x3ef7da['markerName']);}_0xa8d1a0||_0x3cd6a0||!_0x402b09||_0xebe096(_0x402b09);};}class q extends _0x4e999c{static get['requires'](){return[_0x4c318b];}['init'](){const _0x55e7e8=this['editor'],_0x173512=_0x55e7e8['plugins']['get']('TrackChangesEditing');_0x173512['enableCommand']('delete');const _0x4b0813=_0x55e7e8['commands']['get']('deleteForward');_0x173512['enableCommand']('deleteForward',(_0x609fde,_0x14e891={})=>{const _0x3ca7b1=_0x55e7e8['model']['createSelection'](_0x55e7e8['model']['document']['selection']);_0x3ca7b1['isCollapsed']&&_0x55e7e8['model']['modifySelection'](_0x3ca7b1,{'direction':'forward','unit':_0x14e891['unit']});const _0xc77ad1=_0x3ca7b1['getFirstRange'](),_0x2e8873=_0x38a2be['fromRange'](_0xc77ad1);let _0x2f5f5a;_0x609fde(_0x14e891),_0x2f5f5a='$graveyard'==_0x2e8873['root']['rootName']?_0x55e7e8['model']['createRange'](_0xc77ad1['start']):_0x55e7e8['model']['createRange'](_0x2e8873['start'],_0x2e8873['end']),_0x2e8873['detach'](),_0x55e7e8['model']['enqueueChange'](_0x4b0813['buffer']['batch'],_0x4d8b04=>{_0x4b0813['buffer']['lock'](),_0x4d8b04['setSelection'](_0x4d8b04['createRange'](_0x2f5f5a['end'])),_0x4b0813['buffer']['unlock']();});}),_0x55e7e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x55e7e8,'merge'),{'priority':'high'}),_0x55e7e8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5de72c,_0x41b675,_0x41ea90)=>{_0x41ea90['options']['showSuggestionHighlights']&&_e(_0x55e7e8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5de72c,_0x41b675,_0x41ea90);},{'priority':'high'}),_0x55e7e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x27436d,_0x305094,_0x1d68ab)=>{const _0x159708=_0x1d68ab['mapper']['markerNameToElements'](_0x305094['markerName']);if(_0x159708){for(const _0x135f8c of _0x159708)_0x135f8c['is']('uiElement')&&(_0x1d68ab['mapper']['unbindElementFromMarkerName'](_0x135f8c,_0x305094['markerName']),_0x1d68ab['writer']['remove'](_0x135f8c));}},{'priority':'high'});}}class z extends _0x4e999c{['afterInit'](){const _0x502fac=this['editor'];if(!_0x502fac['plugins']['has']('ListEditing'))return;const _0x5a1589=_0x502fac['locale'],_0xa9012d=_0x502fac['plugins']['get']('TrackChangesEditing'),_0x1b4416=_0x502fac['plugins']['has']('TodoListEditing'),_0x2608e1=!!_0x502fac['config']['get']('list.multiBlock');function _0x1feff4(_0x1fd66b){return{'type':'format','content':''+o(_0x5a1589,'*Set\x20format:*\x20%0',_0x1fd66b)};}function _0x121aa0(_0x4feaa1){return{'type':'format','content':''+o(_0x5a1589,'*Remove\x20format:*\x20%0',_0x4feaa1)};}_0xa9012d['enableDefaultAttributesIntegration']('numberedList'),_0xa9012d['enableDefaultAttributesIntegration']('bulletedList'),_0xa9012d['enableDefaultAttributesIntegration']('customNumberedList'),_0xa9012d['enableDefaultAttributesIntegration']('customBulletedList'),_0xa9012d['enableDefaultAttributesIntegration']('indentList'),_0xa9012d['enableDefaultAttributesIntegration']('outdentList'),_0xa9012d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa9012d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xa9012d['registerBlockAttribute']('listItemId'),_0xa9012d['registerBlockAttribute']('listType'),_0xa9012d['registerBlockAttribute']('listIndent'),_0x2608e1&&(_0xa9012d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa9012d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b4416&&(_0xa9012d['enableDefaultAttributesIntegration']('todoList'),_0xa9012d['enableDefaultAttributesIntegration']('checkTodoList'),_0xa9012d['registerBlockAttribute']('todoListChecked'),_0xa9012d['descriptionFactory']['registerDescriptionCallback'](_0x19a9aa=>{const {data:_0x276639}=_0x19a9aa;if(_0x276639&&'todoListChecked'==_0x276639['key'])return{'type':'format','content':_0x276639['newValue']?o(_0x5a1589,'*Check\x20item*'):o(_0x5a1589,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2b4c29=>{if(_0x2b4c29['batch']['isUndo'])return!0x1;let _0x4577b7=!0x1;const _0x310501=_0xa9012d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2141d5=>'todoListChecked'===_0xa9012d['_getAttributeKey'](_0x2141d5));for(const _0x4b0968 of _0x310501){'todo'!=_0x4b0968['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa9012d['_findSuggestions'](_0x4b0968['getFirstRange'](),'attribute')['find'](_0x5935be=>'listType'===_0xa9012d['_getAttributeKey'](_0x5935be['suggestion']))||(_0x2b4c29['removeMarker'](_0x4b0968['getFirstMarker']()),_0x4577b7=!0x0));}return _0x4577b7;})),_0xa9012d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a1589,'FORMAT_INDENT'));const _0x25489f={'type':'format','content':''};_0xa9012d['descriptionFactory']['registerDescriptionCallback'](_0x3a7a76=>{const {data:_0x42436d}=_0x3a7a76;if(!_0x42436d||'listType'!=_0x42436d['key'])return;let _0x282171=_0x3a7a76['head'];for(;_0x282171;){if(_0x282171['data']&&(('listStyle'==_0x282171['data']['key']||'listMarkerStyle'==_0x282171['data']['key'])&&(_0x282171['data']['newValue']&&'default'!=_0x282171['data']['newValue']||'default'!=_0x282171['data']['oldValue']&&!_0x42436d['newValue'])||!_0x2608e1&&_0x282171['data']['key']==m))return _0x25489f;_0x282171=_0x282171['next'];}if(null==_0x42436d['newValue'])switch(_0x42436d['oldValue']){case'bulleted':return _0x121aa0(o(_0x5a1589,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x121aa0(o(_0x5a1589,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x121aa0(o(_0x5a1589,'ELEMENT_TODO_LIST'));}switch(_0x42436d['newValue']){case'bulleted':return _0x1feff4(o(_0x5a1589,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1feff4(o(_0x5a1589,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1feff4(o(_0x5a1589,'ELEMENT_TODO_LIST'));}}),_0xa9012d['descriptionFactory']['registerDescriptionCallback'](_0xc319b1=>{const {data:_0x585c94}=_0xc319b1;if(_0x585c94&&'listIndent'==_0x585c94['key'])return null==_0x585c94['newValue']||null==_0x585c94['oldValue']&&0x0==_0x585c94['newValue']?_0x25489f:void 0x0;}),_0xa9012d['descriptionFactory']['registerDescriptionCallback'](_0x121f1e=>{if('attribute'!=_0x121f1e['type'])return;const {data:_0x3224c2}=_0x121f1e;if(!_0x3224c2||'listItemId'!=_0x3224c2['key'])return;const _0x55ab52=le(_0x121f1e);return'newValue'==_0x55ab52?{'type':'format','content':o(_0x5a1589,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55ab52?{'type':'format','content':o(_0x5a1589,'*Split:*\x20list\x20item')}:_0x25489f;}),_0x502fac['model']['document']['registerPostFixer'](_0x270f30=>this['listItemIdFixer'](_0x270f30)),_0x502fac['model']['document']['registerPostFixer'](_0x47f6e2=>this['noTrackChangesFixer'](_0x47f6e2)),_0x502fac['model']['document']['registerPostFixer'](_0x548431=>this['assureChains'](_0x548431)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5cb59e){if(_0x5cb59e['batch']['isUndo']||!_0x5cb59e['batch']['isLocal'])return!0x1;let _0x1a4370=!0x1;const _0x425bfc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4539a5=>_0x4539a5['data']&&'listItemId'==_0x4539a5['data']['key'])['filter'](_0x472988=>_0x472988['data']['newValue']&&_0x472988['data']['oldValue']);for(const _0x5e43a8 of _0x425bfc)le(_0x5e43a8)||(_0x5cb59e['removeMarker'](_0x5e43a8['getFirstMarker']()),_0x1a4370=!0x0);return _0x1a4370;}['noTrackChangesFixer'](_0x3147bd){if(_0x3147bd['batch']['isUndo']||!_0x3147bd['batch']['isLocal'])return!0x1;const _0xac75a9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xac75a9['trackChangesCommand']['value'])return!0x1;let _0x3b0dc9=!0x1;const _0x2c76ff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43cb47=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x96254c=>'attribute'==_0x96254c['type'])['filter'](_0x2cb82b=>_0x2c76ff['includes'](_0x2cb82b['attributeKey']));if(0x0==_0x43cb47['length'])return _0x3b0dc9;for(const _0x4b6976 of _0x43cb47){const _0x527448=_0xac75a9['_findSuggestions'](_0x4b6976['range'],'attribute')['filter'](_0x4edf22=>!_0x4edf22['meta']['isNextTo'])['map'](_0x35436f=>_0x35436f['suggestion'])['filter'](_0x1bb637=>{const _0x1b6e89=_0xac75a9['_getAttributeKey'](_0x1bb637);return _0x2c76ff['includes'](_0x1b6e89);});if(_0x527448['length']){for(const _0x513929 of _0x527448)_0x3147bd['removeMarker'](_0x513929['getFirstMarker']());_0x3b0dc9=!0x0;}}return _0x3b0dc9;}['assureChains'](_0x169742){if(_0x169742['batch']['isUndo']||!_0x169742['batch']['isLocal'])return!0x1;const _0x394209=this['editor']['plugins']['get']('TrackChangesEditing');let _0x450759=!0x1;const _0x508a83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5bfec4 of _0x394209['getSuggestions']({'skipNotAttached':!0x0})){const _0x2156ed=_0x394209['_findSuggestions'](_0x5bfec4['getFirstRange'](),'attribute')['map'](_0x47f98e=>_0x47f98e['suggestion'])['filter'](_0x567ff1=>_0x567ff1['data']&&_0x508a83['includes'](_0x567ff1['data']['key']));if(!_0x2156ed['length'])continue;const _0x433bdc=_0x2156ed[0x0]['head']['attributes']['groupId'];if(!_0x2156ed['every'](_0x34e585=>_0x34e585['attributes']['groupId']===_0x433bdc)){for(const _0xea5e6d of _0x2156ed)_0x5d1ce1(_0xea5e6d,_0x433bdc)&&(_0x450759=!0x0);}}return _0x450759;function _0x539f2e(_0x22c0ac,_0x535242){for(const _0x2f3112 of _0x394209['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bf9a7=>'attribute'==_0x1bf9a7['type']&&_0x1bf9a7['attributes']['groupId']==_0x22c0ac))_0x2f3112['setAttribute']('groupId',_0x535242);}function _0x5d1ce1(_0xe39ef8,_0x32f5a2){let _0x33902e=_0xe39ef8['head'],_0x2dd9e0=!0x1;for(;_0x33902e;)_0x33902e['attributes']['groupId']!=_0x32f5a2&&(_0x539f2e(_0x33902e['attributes']['groupId'],_0x32f5a2),_0x33902e['setAttribute']('groupId',_0x32f5a2),_0x2dd9e0=!0x0),_0x33902e=_0x33902e['next'];return _0x2dd9e0;}}['_supportLegacySuggestions'](){const _0x4607c4=this['editor'],_0x3b51b3=_0x4607c4['locale'],_0x1a1e47=_0x4607c4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a1e47['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa1e7b3,_0x1c25cd){const _0x29aa23=[];for(let _0x19569e of _0xa1e7b3)_0x19569e['start']['nodeAfter']===_0x19569e['end']['parent']&&(_0x19569e=_0x4607c4['model']['createRange'](_0x4607c4['model']['createPositionAt'](_0x19569e['start']['nodeAfter'],0x0))),_0x29aa23['push'](_0x19569e);_0x4607c4['model']['change'](_0x386f53=>{const _0x313208=_0x4607c4['model']['document']['selection'],_0x2391b8=Array['from'](_0x313208['getRanges']())['map'](_0x2f939a=>_0x38a2be['fromRange'](_0x2f939a));_0x386f53['setSelection'](_0x29aa23),_0x4607c4['commands']['get'](_0x1c25cd['commandName'])['refresh'](),_0x1c25cd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4607c4['execute'](_0x1c25cd['commandName'],..._0x1c25cd['commandParams']),_0x386f53['setSelection'](_0x2391b8);for(const _0x5e94d8 of _0x2391b8)_0x5e94d8['detach']();});}),_0x1a1e47['descriptionFactory']['registerElementLabel'](function(_0x11251e){const _0x43ff58=!_0x4607c4['model']['schema']['isObject'](_0x11251e),_0x4b475d=_0x11251e['previousSibling'],_0x7f73b3=_0x11251e['nextSibling'],_0x5def8c=_0x11251e['getAttribute']('listItemId'),_0x40af6e=!_0x4b475d||_0x4b475d['getAttribute']('listItemId')!==_0x5def8c,_0x1d3559=!_0x7f73b3||_0x7f73b3['getAttribute']('listItemId')!==_0x5def8c;return _0x43ff58&&Boolean(_0x5def8c)&&_0x40af6e&&_0x1d3559;},_0x5b56f6=>o(_0x3b51b3,'ELEMENT_LIST_ITEM',_0x5b56f6));}['_registerLegacyDescription'](){const _0x53da00=this['editor'],_0x5b3172=_0x53da00['locale'];function _0x22d050(_0x5e3b95){const _0xb83fe9=_0x53da00['commands']['get']('bulletedList')['value'],_0x3c31f0=_0x53da00['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e3b95?_0xb83fe9:_0x3c31f0;}_0x53da00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x290e04){if('formatBlock'!=_0x290e04['type'])return;const {data:_0x4a52c3}=_0x290e04;if(!_0x4a52c3)return;let _0xa09a7d,_0x579610,_0x2c3611,_0x2d2909;switch(_0x4a52c3['commandName']){case'bulletedList':_0x2c3611=_0x4a52c3['commandParams'][0x0]['forceValue'],_0x2d2909=_0x22d050(_0x4a52c3['commandName']),_0xa09a7d=_0x2c3611?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d2909&&_0x53da00['config']['get']('list.multiBlock')||(_0xa09a7d='*Change\x20to:*\x20%0'),_0x579610={'type':'format','content':o(_0x5b3172,_0xa09a7d,o(_0x5b3172,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2c3611=_0x4a52c3['commandParams'][0x0]['forceValue'],_0x2d2909=_0x22d050(_0x4a52c3['commandName']),_0xa09a7d=_0x2c3611?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d2909&&_0x53da00['config']['get']('list.multiBlock')||(_0xa09a7d='*Change\x20to:*\x20%0'),_0x579610={'type':'format','content':o(_0x5b3172,_0xa09a7d,o(_0x5b3172,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa09a7d='*Indent:*\x20%0',_0x579610={'type':'format','content':o(_0x5b3172,_0xa09a7d,o(_0x5b3172,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa09a7d=function(_0x11a9ea){const _0x246f73=_0x11a9ea['getFirstRange']();let _0x3702b0=_0x246f73['start']['nodeAfter'];for(;_0x3702b0&&_0x246f73['containsItem'](_0x3702b0);){if(_0x3702b0['getAttribute']('listIndent')>0x0)return!0x1;_0x3702b0=_0x3702b0['nextSibling'];}return!0x0;}(_0x290e04)?o(_0x5b3172,'*Format:*\x20remove\x20from\x20%0',o(_0x5b3172,function(_0x375b52){return'ELEMENT_'+_0x375b52['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x290e04))):o(_0x5b3172,'*Outdent:*\x20%0',o(_0x5b3172,'ELEMENT_LIST_ITEM')),_0x579610={'type':'format','content':_0xa09a7d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a52c3['multipleBlocks']&&(_0xa09a7d='*Merge:*\x20%0',_0x579610={'type':'deletion','content':o(_0x5b3172,_0xa09a7d,o(_0x5b3172,'ELEMENT_LIST_ITEM'))});}return _0x579610;});}}function le(_0x316943){let _0x589e14=_0x316943['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x589e14;){const _0x591aaa=_0x589e14['getAttribute']('listItemId');if(!_0x591aaa)return!0x1;if(_0x591aaa==_0x316943['data']['newValue'])return'newValue';if(_0x591aaa==_0x316943['data']['oldValue'])return'oldValue';_0x589e14=_0x589e14['previousSibling'];}return!0x1;}class ue extends _0x4e999c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x15c4a6=this['editor']['config']['get']('list.properties'),_0x23841c=this['editor']['plugins']['get']('TrackChangesEditing');_0x15c4a6['styles']&&(_0x23841c['enableDefaultAttributesIntegration']('listStyle'),_0x23841c['registerBlockAttribute']('listStyle')),_0x15c4a6['reversed']&&(_0x23841c['enableDefaultAttributesIntegration']('listReversed'),_0x23841c['registerBlockAttribute']('listReversed')),_0x15c4a6['startIndex']&&(_0x23841c['enableDefaultAttributesIntegration']('listStart'),_0x23841c['registerBlockAttribute']('listStart'));const _0x321b6c={'type':'format','content':''};_0x23841c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24a65e=this['editor']['locale'];_0x23841c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x24a65e,'FORMAT_LIST_REVERSED')),_0x23841c['descriptionFactory']['registerDescriptionCallback'](_0x40b80f=>{const {data:_0x21fd09}=_0x40b80f;if(_0x21fd09&&'listReversed'==_0x21fd09['key'])return null==_0x21fd09['newValue']||0x0==_0x21fd09['newValue']&&null==_0x21fd09['oldValue']?_0x321b6c:void 0x0;}),_0x23841c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x24a65e,'FORMAT_LIST_START')),_0x23841c['descriptionFactory']['registerDescriptionCallback'](_0x1591f4=>{const {data:_0x4d82a0}=_0x1591f4;if(_0x4d82a0&&'listStart'==_0x4d82a0['key'])return null==_0x4d82a0['newValue']||0x1==_0x4d82a0['newValue']&&null==_0x4d82a0['oldValue']?_0x321b6c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x467b39=>{if(_0x467b39['batch']['isUndo'])return!0x1;let _0x3e9cfa=!0x1;const _0x37a9a4=_0x23841c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b9e16=>{const _0x3d28ae=_0x23841c['_getAttributeKey'](_0x2b9e16);return'listStart'==_0x3d28ae||'listReversed'==_0x3d28ae;});for(const _0x12437e of _0x37a9a4){const _0x669660=_0x12437e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x669660||'customNumbered'==_0x669660)continue;_0x23841c['_findSuggestions'](_0x12437e['getFirstRange'](),'attribute')['find'](_0x344cb7=>'listType'==_0x23841c['_getAttributeKey'](_0x344cb7['suggestion']))||(_0x467b39['removeMarker'](_0x12437e['getFirstMarker']()),_0x3e9cfa=!0x0);}return _0x3e9cfa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x275e6e){const _0x36fb30=this['editor']['locale'],{data:_0x1d8dc2}=_0x275e6e,_0x376f51={'type':'format','content':''};if(!_0x1d8dc2||'listStyle'!=_0x1d8dc2['key'])return;if(!_0x1d8dc2['oldValue'])return'default'==_0x1d8dc2['newValue']?_0x376f51:{'type':'format','content':''+o(_0x36fb30,'*Set\x20format:*\x20%0',o(_0x36fb30,this['_getTranslationKeyForListStyle'](_0x1d8dc2['newValue'])))};if(!_0x1d8dc2['newValue']){if('default'==_0x1d8dc2['oldValue'])return _0x376f51;let _0x361c13=_0x275e6e['head'];for(;_0x361c13;){if(_0x361c13['data']&&'listType'==_0x361c13['data']['key']&&_0x361c13['data']['newValue'])return _0x376f51;_0x361c13=_0x361c13['next'];}return{'type':'format','content':''+o(_0x36fb30,'*Remove\x20format:*\x20%0',o(_0x36fb30,this['_getTranslationKeyForListStyle'](_0x1d8dc2['oldValue'])))};}if('default'!=_0x1d8dc2['newValue'])return{'type':'format','content':''+o(_0x36fb30,'*Set\x20format:*\x20%0',o(_0x36fb30,this['_getTranslationKeyForListStyle'](_0x1d8dc2['newValue'])))};let _0x3ef137=_0x275e6e['head'];for(;_0x3ef137;){if(_0x3ef137['data']&&'listType'==_0x3ef137['data']['key']&&_0x3ef137['data']['newValue']&&_0x3ef137['data']['oldValue'])return _0x376f51;_0x3ef137=_0x3ef137['next'];}return{'type':'format','content':o(_0x36fb30,'*Set\x20format:*\x20%0',o(_0x36fb30,'ELEMENT_'+_0x275e6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b8054=this['editor'],_0x51e784=_0x3b8054['locale'];_0x3b8054['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23f512=>{if('formatBlock'!=_0x23f512['type'])return;const {data:_0x1e6b14}=_0x23f512;if(!_0x1e6b14)return;let _0x57098c,_0x22822a;switch(_0x1e6b14['commandName']){case'listStyle':_0x57098c='*Change\x20to:*\x20%0',_0x22822a={'type':'format','content':o(_0x51e784,_0x57098c,o(_0x51e784,this['_getTranslationKeyForListStyle'](_0x1e6b14['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57098c=_0x1e6b14['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22822a={'type':'format','content':o(_0x51e784,_0x57098c)};break;case'listStart':_0x57098c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22822a={'type':'format','content':o(_0x51e784,_0x57098c,_0x1e6b14['commandParams'][0x0]['startIndex'])};}return _0x22822a;});}['_getTranslationKeyForListStyle'](_0x858204){return'ELEMENT_'+function(_0x432fb4){if(pe['includes'](_0x432fb4))return'bulleted';if(ye['includes'](_0x432fb4))return'numbered';return null;}(_0x858204)['toUpperCase']()+'_LIST_'+_0x858204['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4e999c{static get['requires'](){return[_0x202fe3];}['init'](){const _0x4c8ed2=this['editor'],_0x3b6009=_0x4c8ed2['plugins']['get']('TrackChangesEditing'),_0xb81302=_0x4c8ed2['commands']['get']('enter');_0x3b6009['enableCommand']('enter',()=>{_0x4c8ed2['model']['change'](_0x241adf=>{const _0x72637c=_0x4c8ed2['model']['document']['selection'],_0x370878=_0x72637c['getFirstPosition'](),_0x13fe0d=_0x38a2be['fromRange'](_0x72637c['getFirstRange']());if(_0xb81302['enterBlock'](_0x241adf)){const _0x101131=_0x4c8ed2['model']['createPositionAt'](_0x370878['parent']['nextSibling'],0x0),_0x560b55=_0x241adf['createRange'](_0x370878,_0x101131);_0x3b6009['markInsertion'](_0x560b55);}else _0x241adf['setSelection'](_0x241adf['createRange'](_0x13fe0d['end']));_0x13fe0d['detach'](),_0xb81302['fire']('afterExecute',{'writer':_0x241adf});});}),_0x4c8ed2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4c8ed2,'split'),{'priority':'high'}),_0x4c8ed2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1abf52,_0x1fe026,_0x16ed5b)=>{const _0x3e20f0=_0x16ed5b['mapper']['markerNameToElements'](_0x1fe026['markerName']);if(_0x3e20f0){for(const _0x42345a of _0x3e20f0)_0x42345a['hasClass']('ck-suggestion-marker-split')&&(_0x16ed5b['mapper']['unbindElementFromMarkerName'](_0x42345a,_0x1fe026['markerName']),_0x16ed5b['writer']['remove'](_0x42345a));}},{'priority':'high'}),_0x4c8ed2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x30d22d,_0x49c62c,_0x1d6990)=>{_0x1d6990['options']['showSuggestionHighlights']&&_e(_0x4c8ed2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x30d22d,_0x49c62c,_0x1d6990);},{'priority':'high'});}}class J extends _0x4e999c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x27556b=this['editor']['plugins']['get']('TrackChangesEditing');_0x27556b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x27556b['enableCommand']('findNext'),_0x27556b['enableCommand']('findPrevious'),_0x27556b['enableCommand']('replace'),_0x27556b['enableCommand']('replaceAll');}['handleFindCommand'](_0x107d5c,_0xb48102,_0x3dddd3={}){const _0x433888=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x107d5c(_0x383562=>('string'==typeof _0xb48102?_0x433888['findByTextCallback'](_0xb48102,_0x3dddd3):_0xb48102)(_0x383562)['filter'](_0x173d70=>!0x1===this['_isInDeletionRange'](_0x173d70,_0x383562['item'])),_0x3dddd3);}['_isInDeletionRange'](_0xe1bd9d,_0x1ea2b5){const _0x50db62=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ea2b5,_0xe1bd9d['start']),this['editor']['model']['createPositionAt'](_0x1ea2b5,_0xe1bd9d['end']));for(const _0x550094 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x50db62['getIntersection'](_0x550094['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 _0x4e999c{['afterInit'](){const _0x2a52b2=this['editor']['locale'],_0x5a4406=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26ffc0,commandName:_0x2413e1}of ro)this['editor']['plugins']['has'](_0x26ffc0)&&(_0x5a4406['enableDefaultAttributesIntegration'](_0x2413e1),_0x5a4406['registerInlineAttribute'](_0x2413e1));_0x2a52b2['t'],_0x5a4406['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a52b2,'FORMAT_FONT_SIZE')),_0x5a4406['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a52b2,'FORMAT_FONT_FAMILY')),_0x5a4406['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a52b2,'FORMAT_FONT_COLOR')),_0x5a4406['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a52b2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ae75c=this['editor'],_0x5dd966=_0x1ae75c['locale'];_0x1ae75c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a415=>{const _0xa3d2e0=_0x5dd966['t'];if('formatInline'!=_0x26a415['type'])return;const {data:_0x1aba01}=_0x26a415;if(null!=_0x1aba01){if('fontSize'==_0x1aba01['commandName']){const _0x59cece=_0x1aba01['commandParams'][0x0]['value'];if(_0x59cece){const _0x3ed75d=_0xa3d2e0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2861f8=>_0x2861f8['model']==_0x59cece)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5dd966,'*Set\x20font\x20size:*\x20%0',_0x3ed75d)};}return{'type':'format','content':o(_0x5dd966,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1aba01['commandName']){const _0x581622=_0x1aba01['commandParams'][0x0]['value'];return _0x581622?{'type':'format','content':o(_0x5dd966,'*Set\x20font\x20family:*\x20%0',_0x581622)}:{'type':'format','content':o(_0x5dd966,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1aba01['commandName']){const _0xc8eff5=_0x1aba01['commandParams'][0x0]['value'];if(_0xc8eff5){const _0x3b74c1=_0x1ed25e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x179209=>_0x179209['model']==_0xc8eff5);let _0x26b614=_0xc8eff5,_0x5a407c='';return _0x3b74c1&&(_0x26b614=_0x3b74c1['label'],_0x5a407c=_0xa3d2e0(_0x26b614)['toLowerCase']()),{'type':'format','content':o(_0x5dd966,'*Set\x20font\x20color:*\x20%0',_0x5a407c)['trim'](),'color':{'value':_0xc8eff5,'title':_0x5a407c||_0x26b614}};}return{'type':'format','content':o(_0x5dd966,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1aba01['commandName']){const _0x5d1803=_0x1aba01['commandParams'][0x0]['value'];if(_0x5d1803){const _0x53eeda=_0x1ed25e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2fcc24=>_0x2fcc24['model']==_0x5d1803);let _0x4a4e7d=_0x5d1803,_0x168bf1='';return _0x53eeda&&(_0x4a4e7d=_0x53eeda['label'],_0x168bf1=_0xa3d2e0(_0x4a4e7d)['toLowerCase']()),{'type':'format','content':o(_0x5dd966,'*Set\x20font\x20background\x20color:*\x20%0',_0x168bf1)['trim'](),'color':{'value':_0x5d1803,'title':_0x168bf1||_0x4a4e7d}};}return{'type':'format','content':o(_0x5dd966,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4e999c{['afterInit'](){const _0x14d994=this['editor'],_0x342af8=_0x14d994['plugins']['get']('TrackChangesEditing'),_0x4f4c5d=_0x14d994['commands']['get']('copyFormat'),_0xe526b=_0x14d994['commands']['get']('pasteFormat');_0x4f4c5d&&_0xe526b&&(_0x342af8['enableDefaultAttributesIntegration']('pasteFormat'),_0x342af8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x562662=this['editor'],_0x169b83=_0x562662['locale'];_0x562662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb97b=>{if('formatBlock'!=_0x1fb97b['type']&&'formatInline'!=_0x1fb97b['type'])return;const {data:_0x4a2f09}=_0x1fb97b;if(_0x4a2f09&&'pasteFormat'===_0x4a2f09['commandName']){const _0x4f8a71=[],_0x447f69=_0x4a2f09['commandParams'][0x0];for(const [_0x1be83b,_0x5a2520]of Object['entries'](_0x447f69))_0x4f8a71['push'](so(_0x562662,_0x1be83b,_0x5a2520));return _0x4f8a71['length']?{'type':'format','content':o(_0x169b83,'*Set\x20format\x20to:*\x20%0',_0x4f8a71['join'](',\x20'))}:{'type':'format','content':o(_0x169b83,'*Remove\x20all\x20formatting*')};}});}}function so(_0x398fb8,_0x1f5df1,_0x124ec0){const _0x212408=_0x398fb8['locale']['t'],_0x269433=_0x1f5df1['split'](/(?=[A-Z])/)['join']('\x20'),_0x7d42d2=_0x212408(_0x269433['charAt'](0x0)['toUpperCase']()+_0x269433['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x124ec0)return _0x7d42d2;if('fontColor'===_0x1f5df1||'fontBackgroundColor'===_0x1f5df1){const _0x1d5547=_0x1ed25e(_0x398fb8['config']['get']('fontColor.colors'))['find'](_0x298249=>_0x298249['model']==_0x124ec0);return _0x7d42d2+'\x20('+(_0x1d5547?_0x212408(_0x1d5547['label'])['toLowerCase']():_0x124ec0)+')';}if('fontSize'===_0x1f5df1&&isNaN(parseFloat(_0x124ec0))){const _0x3caece=_0x398fb8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x398fb8['config']['get']('fontSize.options'))['find'](_0x46f9e3=>_0x46f9e3['model']==_0x124ec0);return _0x7d42d2+'\x20('+(_0x3caece?_0x212408(_0x3caece['title'])['toLowerCase']():_0x124ec0)+')';}return _0x7d42d2+'\x20('+_0x124ec0+')';}class Y extends _0x4e999c{['_headingOptions'];['afterInit'](){const _0x246d6b=this['editor'];if(!_0x246d6b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x246d6b['config']['get']('heading.options');const _0x3cfbc5=_0x246d6b['locale'],_0x487097=_0x246d6b['plugins']['get']('TrackChangesEditing');_0x487097['enableDefaultAttributesIntegration']('heading');for(const _0x2005da of this['_headingOptions'])'paragraph'!=_0x2005da['model']&&_0x487097['descriptionFactory']['registerElementLabel'](_0x2005da['model'],_0x2a13fc=>{const _0x5ad79c=this['_getHeadingLevel'](_0x2005da['model']);return null!==_0x5ad79c?_0x233704(_0x2a13fc,_0x5ad79c):_0x51cadd(_0x2a13fc,_0x2005da['title']);});function _0x233704(_0x4353e4,_0x44d8a6){return o(_0x3cfbc5,'ELEMENT_HEADING',[_0x4353e4,_0x44d8a6]);}function _0x51cadd(_0x6a5e7c,_0x472a1a){return o(_0x3cfbc5,'ELEMENT_HEADING_CUSTOM',[_0x6a5e7c,_0x472a1a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2473bb=this['editor'],_0x2916d6=_0x2473bb['locale'];function _0x3b05be(_0x109345,_0xc46484){return o(_0x2916d6,'ELEMENT_HEADING_CUSTOM',[_0x109345,_0xc46484]);}_0x2473bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23483b=>{if('formatBlock'!=_0x23483b['type'])return;const {data:_0x3ecc9a}=_0x23483b;if(_0x3ecc9a&&'heading'==_0x3ecc9a['commandName']){const _0x54aad0=_0x3ecc9a['commandParams'][0x0]['value'],_0x5c26be=this['_getHeadingLevel'](_0x54aad0);if(null!==_0x5c26be)return{'type':'format','content':o(_0x2916d6,'*Change\x20to:*\x20%0',(_0x102e20=0x1,_0xb4f0ee=_0x5c26be,o(_0x2916d6,'ELEMENT_HEADING',[_0x102e20,_0xb4f0ee])))};const _0x43d46f=this['_headingOptions']['find'](_0x4d83c3=>_0x4d83c3['model']===_0x54aad0)['title'];return{'type':'format','content':o(_0x2916d6,'*Change\x20to:*\x20%0',_0x3b05be(0x1,_0x43d46f))};}var _0x102e20,_0xb4f0ee;});}['_getHeadingLevel'](_0x2384a4){const _0x458daf=_0x2384a4['match'](/^heading(\d+)/);if(_0x458daf)return _0x458daf[0x1];const _0x23ba2e=this['_headingOptions']?.['find'](_0x291883=>_0x291883['model']==_0x2384a4);if(_0x23ba2e&&_0x23ba2e['view']){const _0x210884=_0x23ba2e['view'],_0x129c2c=(_0x210884['name']??_0x210884)['match'](/^h(\d+)/);if(_0x129c2c)return _0x129c2c[0x1];}return null;}}class Z extends _0x4e999c{['afterInit'](){const _0x3a8cb7=this['editor'];if(!_0x3a8cb7['plugins']['has']('HighlightEditing'))return;const _0x2c452a=_0x3a8cb7['plugins']['get']('TrackChangesEditing'),_0x4297cb=_0x3a8cb7['locale'];_0x2c452a['enableDefaultAttributesIntegration']('highlight'),_0x2c452a['registerInlineAttribute']('highlight'),_0x2c452a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4297cb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20c46=this['editor'],_0x48e21b=_0x20c46['locale'];_0x20c46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b9bea=>{if('formatInline'!=_0x1b9bea['type'])return;const {data:_0x479b52}=_0x1b9bea;if(_0x479b52&&'highlight'==_0x479b52['commandName']){const _0xabc76c=_0x48e21b['t'],_0x14f50b=_0x479b52['commandParams'][0x0]['value'];if(_0x14f50b){const _0x269018=_0x20c46['config']['get']('highlight.options')['find'](_0x1f24ec=>_0x1f24ec['model']==_0x14f50b),_0x568c45=_0xabc76c(_0x269018['title'])['toLowerCase']();return{'type':'format','content':o(_0x48e21b,'*Set\x20highlight:*\x20%0',_0x568c45),'color':{'value':_0x269018['color'],'title':_0x269018['title']}};}return{'type':'format','content':o(_0x48e21b,'*Remove\x20highlight*',o(_0x48e21b,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4e999c{['afterInit'](){const _0x17bd17=this['editor'];if(!_0x17bd17['plugins']['has']('HorizontalLineEditing'))return;_0x17bd17['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13374c=_0x17bd17['plugins']['get']('TrackChangesEditing'),_0x3fbdd0=_0x17bd17['locale'];_0x13374c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5375da=>o(_0x3fbdd0,'ELEMENT_HORIZONTAL_LINE',_0x5375da)),_0x17bd17['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f2cb5,{writer:_0x5b0da1,options:_0x87dd43})=>{if(!_0x87dd43['showSuggestionHighlights'])return null;const _0x4742d8=_0x5b0da1['createContainerElement']('div'),_0xf8609b=_0x5b0da1['createEmptyElement']('hr');return _0x5b0da1['addClass']('ck-horizontal-line',_0x4742d8),_0x5b0da1['insert'](_0x5b0da1['createPositionAt'](_0x4742d8,0x0),_0xf8609b),_0x4742d8;},'converterPriority':'high'});}}class et extends _0x4e999c{['afterInit'](){const _0x4a595c=this['editor'];if(!_0x4a595c['plugins']['has']('HtmlEmbed'))return;const _0x2616f4=_0x4a595c['plugins']['get']('TrackChangesEditing'),_0x266746=_0x4a595c['locale'];_0x2616f4['descriptionFactory']['registerElementLabel']('rawHtml',_0x5cefd6=>o(_0x266746,'ELEMENT_HTML_EMBED',_0x5cefd6)),_0x2616f4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2616f4['registerBlockAttribute']('value'),_0x2616f4['descriptionFactory']['registerDescriptionCallback'](_0x575077=>{if('attribute'!=_0x575077['type'])return;const {data:_0x5065df}=_0x575077;if(_0x5065df&&'value'==_0x5065df['key']&&_0x575077['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x48e1b6=o(_0x266746,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x266746,'*Change\x20%0\x20content*',_0x48e1b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13fd34=this['editor'],_0x5d6a42=_0x13fd34['locale'];_0x13fd34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428ac5=>{if('formatBlock'!=_0x428ac5['type'])return;const {data:_0x4b85b1}=_0x428ac5;if(_0x4b85b1&&'htmlEmbed'==_0x4b85b1['commandName']){const _0x543d0b=o(_0x5d6a42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d6a42,'*Change\x20%0\x20content*',_0x543d0b)};}});}}class it extends _0x4e999c{['afterInit'](){const _0x4e30d2=this['editor'];if(!_0x4e30d2['plugins']['has']('ImageEditing'))return;const _0x37daa5=_0x4e30d2['plugins']['get']('TrackChangesEditing'),_0x292e56=_0x4e30d2['plugins']['get']('ImageUtils'),_0x383619=_0x4e30d2['locale'];_0x37daa5['enableCommand']('insertImage'),_0x37daa5['descriptionFactory']['registerElementLabel']('imageBlock',_0x3af9e4=>o(_0x383619,'ELEMENT_IMAGE',_0x3af9e4)),_0x37daa5['descriptionFactory']['registerElementLabel']('imageInline',_0x389d00=>o(_0x383619,'ELEMENT_INLINE_IMAGE',_0x389d00)),_0x37daa5['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x383619,'ELEMENT_CAPTION')),_0x4e30d2['plugins']['has']('ImageUploadEditing')&&_0x37daa5['enableCommand']('uploadImage'),_0x4e30d2['plugins']['has']('ImageBlockEditing')&&_0x4e30d2['plugins']['has']('ImageInlineEditing')&&(_0x37daa5['enableCommand']('imageTypeInline',(_0xbeea84,_0x57f9ea)=>{const _0xb7f965=_0x292e56['getClosestSelectedImageElement'](_0x4e30d2['model']['document']['selection']);_0x4e30d2['model']['change'](()=>{_0x37daa5['markBlockFormat'](_0xb7f965,{'commandName':'imageTypeInline','commandParams':[_0x57f9ea]},[],'convertBlockImageToInline');});}),_0x37daa5['enableCommand']('imageTypeBlock',(_0x225de1,_0x48cb10)=>{_0x4e30d2['model']['change'](_0x499277=>{let _0x10020e=_0x292e56['getClosestSelectedImageElement'](_0x4e30d2['model']['document']['selection']),_0x8fc3b3=_0x499277['createRangeOn'](_0x10020e);const _0x122283=_0x38c64b['fromPosition'](_0x8fc3b3['start'],'toPrevious'),_0x31f6d7=_0x38c64b['fromPosition'](_0x8fc3b3['end'],'toNext');_0x37daa5['forceDefaultExecution'](()=>_0x225de1(_0x48cb10)),_0x10020e=_0x292e56['getClosestSelectedImageElement'](_0x4e30d2['model']['document']['selection']),_0x8fc3b3=_0x499277['createRangeOn'](_0x10020e);const _0xea0f3c=_0x499277['createRange'](_0x122283,_0x31f6d7);_0x122283['detach'](),_0x31f6d7['detach'](),_0x37daa5['markBlockFormat'](_0x10020e,{'commandName':'imageTypeInline','commandParams':[_0x48cb10]},[],'convertInlineImageToBlock'),_0xea0f3c['start']['isBefore'](_0x8fc3b3['start'])&&_0x37daa5['markInsertion'](_0x499277['createRange'](_0xea0f3c['start'],_0x8fc3b3['start']),'convertInlineImageToBlock'),_0x8fc3b3['end']['isBefore'](_0xea0f3c['end'])&&_0x37daa5['markInsertion'](_0x499277['createRange'](_0x8fc3b3['end'],_0xea0f3c['end']),'convertInlineImageToBlock');});}),_0x37daa5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37daa5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37daa5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37daa5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37daa5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37daa5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1c082e])=>{const _0x475c91=_0x37daa5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x166e6a=_0x1c082e['start'],_0x177f36=_0x1c082e['end'];const _0x143a6b=_0x4e30d2['model']['schema']['getNearestSelectionRange'](_0x166e6a,'backward'),_0x2a1536=_0x4e30d2['model']['schema']['getNearestSelectionRange'](_0x177f36,'forward');_0x143a6b['isCollapsed']&&(_0x166e6a=_0x143a6b['start']),_0x2a1536['isCollapsed']&&(_0x177f36=_0x2a1536['end']),_0x475c91([_0x4e30d2['model']['createRange'](_0x166e6a,_0x177f36)]);}),_0x37daa5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x52b156),_0x37daa5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x52b156)),_0x4e30d2['plugins']['has']('ImageCaptionEditing')&&(_0x37daa5['enableCommand']('toggleImageCaption',(_0x537b25,_0xd47453)=>{const _0x2fc6e6=_0x4e30d2['plugins']['get']('ImageCaptionUtils');let _0x12ea9f=_0x292e56['getClosestSelectedImageElement'](_0x4e30d2['model']['document']['selection']),_0x289c6c=_0x2fc6e6['getCaptionFromImageModelElement'](_0x12ea9f);_0x4e30d2['model']['change'](()=>{if(_0x289c6c)return void _0x37daa5['markDeletion'](_0x4e30d2['model']['createRangeOn'](_0x289c6c));const _0x281a33=_0x292e56['isBlockImage'](_0x12ea9f);_0x537b25(_0xd47453),_0x12ea9f=_0x292e56['getClosestSelectedImageElement'](_0x4e30d2['model']['document']['selection']),_0x289c6c=_0x2fc6e6['getCaptionFromImageModelElement'](_0x12ea9f),_0x37daa5['markInsertion'](_0x4e30d2['model']['createRangeOn'](_0x289c6c),_0x281a33?null:'imageCaption');});}),_0x37daa5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x52b156));const _0x138031=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ed2ed(_0x9a7dd9,_0x31fc83){const _0x2d796e=_0x138031['findIndex'](({type:_0xe549c3,subType:_0x4381ad})=>_0x9a7dd9['type']==_0xe549c3&&_0x9a7dd9['subType']==_0x4381ad),_0x38cd70=_0x138031['findIndex'](({type:_0x5216d5,subType:_0x2c4ed0})=>_0x31fc83['type']==_0x5216d5&&_0x31fc83['subType']==_0x2c4ed0);if(_0x2d796e<0x0||_0x38cd70<0x0)return!0x1;const _0x57f567=_0x9a7dd9['getFirstRange'](),_0x3396cc=_0x31fc83['getFirstRange']();if((0x0==_0x2d796e||0x1==_0x2d796e)&&0x2==_0x38cd70&&_0x57f567['isIntersecting'](_0x3396cc))return!0x0;if(0x2==_0x2d796e&&0x3==_0x38cd70){const _0x427d6e=_0x37daa5['_findSuggestions'](_0x57f567,'insertion')['filter'](({suggestion:_0x1a081a,meta:_0x4c2ae6})=>_0x4c2ae6['isOwn']&&'convertInlineImageToBlock'==_0x1a081a['subType']);if(_0x427d6e['length']>0x1&&_0x3396cc['end']['isEqual'](_0x57f567['start']))return!0x0;if(0x1==_0x427d6e['length']&&(_0x57f567['start']['isEqual'](_0x3396cc['end'])||_0x57f567['end']['isEqual'](_0x3396cc['start'])))return!0x0;}if(0x3==_0x2d796e&&0x3==_0x38cd70&&_0x57f567['start']['isBefore'](_0x3396cc['start'])){const _0x2040c6=_0x57f567['end']['nodeAfter'],_0x850dd6=_0x3396cc['start']['nodeBefore'];return _0x292e56['isBlockImage'](_0x2040c6)&&_0x2040c6===_0x850dd6;}return!0x1;}function _0x52b156(_0x2e67d2,_0x266ac8){return _0x4ed2ed(_0x2e67d2,_0x266ac8)?[_0x2e67d2,_0x266ac8]:_0x4ed2ed(_0x266ac8,_0x2e67d2)?[_0x266ac8,_0x2e67d2]:null;}_0x4e30d2['plugins']['has']('ImageResize')&&(_0x37daa5['enableDefaultAttributesIntegration']('resizeImage'),_0x37daa5['registerBlockAttribute']('resizedWidth'),_0x37daa5['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x383619,'FORMAT_IMAGE_SIZE'))),_0x4e30d2['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37daa5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37daa5['registerBlockAttribute']('alt')),_0x37daa5['descriptionFactory']['registerDescriptionCallback'](_0x20a5bf=>{if(!!_0x138031['find'](({type:_0x54c22d,subType:_0x5a12cc})=>_0x20a5bf['type']==_0x54c22d&&_0x20a5bf['subType']==_0x5a12cc))return _0x20a5bf['previous']?{}:void 0x0;}),_0x37daa5['descriptionFactory']['registerDescriptionCallback'](_0x422adb=>{if('insertion'==_0x422adb['type']||'deletion'==_0x422adb['type']){const _0x357dc3=_0x422adb['getContainedElement']();if(_0x357dc3&&_0x357dc3['is']('element','caption'))return{'type':'insertion'==_0x422adb['type']?'addObject':'removeObject','element':_0x357dc3,'quantity':0x1};}}),_0x37daa5['descriptionFactory']['registerDescriptionCallback'](_0xbfec4a=>'formatBlock'==_0xbfec4a['type']&&'convertInlineImageToBlock'==_0xbfec4a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xbfec4a['type']&&'convertBlockImageToInline'==_0xbfec4a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37daa5['descriptionFactory']['registerDescriptionCallback'](_0x499149=>{if('attribute'!=_0x499149['type'])return;const {data:_0x26036d}=_0x499149;if(!_0x26036d||'alt'!=_0x26036d['key'])return;const _0x54a789=_0x26036d['newValue'];return _0x54a789?{'type':'format','content':o(_0x383619,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54a789+'\x22')}:{'type':'format','content':o(_0x383619,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e7b1f=this['editor'],_0xc746d2=_0x5e7b1f['locale'];_0x5e7b1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65591a=>{if('formatBlock'!=_0x65591a['type']&&'formatInline'!=_0x65591a['type'])return;const {data:_0x275be8}=_0x65591a;if(_0x275be8){if('imageTextAlternative'==_0x275be8['commandName']){const _0x2935d7=_0x275be8['commandParams'][0x0]['newValue'];return _0x2935d7?{'type':'format','content':o(_0xc746d2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2935d7+'\x22')}:{'type':'format','content':o(_0xc746d2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x275be8['commandName']){const _0x564338=_0x275be8['commandParams'][0x0]['width'];return _0x564338?{'type':'format','content':o(_0xc746d2,'*Set\x20image\x20width:*\x20%0',_0x564338)}:{'type':'format','content':o(_0xc746d2,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4e999c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xaa6bcb=this['editor']['locale'],_0x2597f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2597f8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2597f8['registerBlockAttribute']('src'),_0x2597f8['descriptionFactory']['registerDescriptionCallback'](_0x407db8=>{if('attribute'!=_0x407db8['type'])return;const {data:_0x413cfb}=_0x407db8;return _0x413cfb&&'src'==_0x413cfb['key']?_0x413cfb['newValue']&&_0x413cfb['oldValue']?{'type':'format','content':o(_0xaa6bcb,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cdf93=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cdf93['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5cdf93['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cdf93['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5cdf93['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe13106=this['editor'],_0x2c7376=_0xe13106['locale'];_0xe13106['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37db29=>{if('formatBlock'!=_0x37db29['type']&&'formatInline'!=_0x37db29['type'])return;const {data:_0xbf035a}=_0x37db29;if(!_0xbf035a||'replaceImageSource'!=_0xbf035a['commandName'])return;return{'type':'format','content':o(_0x2c7376,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4e999c{['afterInit'](){const _0x7ee7e8=this['editor'];if(!_0x7ee7e8['plugins']['has']('ImageStyleEditing'))return;const _0x4125d6=_0x7ee7e8['plugins']['get']('TrackChangesEditing'),_0x439cdb=_0x7ee7e8['plugins']['get']('ImageUtils'),_0x4c230d={};_0x4125d6['enableCommand']('imageStyle',(_0x37917e,_0x3066c5)=>{const _0x24a220=_0x7ee7e8['plugins']['get']('Users')['me'],_0x50214b=_0x7ee7e8['commands']['get']('imageStyle');let _0x45b530=_0x439cdb['getClosestSelectedImageElement'](_0x7ee7e8['model']['document']['selection']),_0x19ac6b=_0x7ee7e8['model']['createRangeOn'](_0x45b530),_0x221fc4=_0x50214b['value'];if(_0x221fc4==_0x3066c5['value'])return;const _0x861c80={'commandName':'imageStyle','commandParams':[_0x3066c5],'formatGroupId':_0x4cf88e()};_0x7ee7e8['model']['change'](()=>{if(_0x4125d6['getSuggestions']()['filter'](_0x19f225=>_0x19f225['isInContent']&&_0x24a220==_0x19f225['author']&&('formatBlock'==_0x19f225['type']||'formatInline'==_0x19f225['type'])&&('imageStylePreApply'==_0x19f225['subType']||'imageStylePostApply'==_0x19f225['subType'])&&_0x19f225['getFirstRange']()['isEqual'](_0x19ac6b))['forEach'](_0x297112=>_0x4125d6['discardSuggestion'](_0x297112['head'])),_0x45b530=_0x439cdb['getClosestSelectedImageElement'](_0x7ee7e8['model']['document']['selection']),_0x19ac6b=_0x7ee7e8['model']['createRangeOn'](_0x45b530),_0x50214b['refresh'](),_0x7ee7e8['commands']['get']('imageTypeInline')['refresh'](),_0x7ee7e8['commands']['get']('imageTypeBlock')['refresh'](),_0x221fc4=_0x50214b['value'],_0x221fc4!=_0x3066c5['value'])return _0x439cdb['isInlineImage'](_0x45b530)&&_0x50214b['shouldConvertImageType'](_0x3066c5['value'],_0x45b530)?(_0x37917e({..._0x3066c5,'setImageSizes':!0x1}),_0x45b530=_0x439cdb['getClosestSelectedImageElement'](_0x7ee7e8['model']['document']['selection']),void _0x4125d6['markBlockFormat'](_0x45b530,{..._0x861c80,'commandReversedParams':[{'value':_0x221fc4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x439cdb['isBlockImage'](_0x45b530)?_0x4125d6['markBlockFormat'](_0x45b530,_0x861c80,[],'imageStylePostApply'):_0x4125d6['markInlineFormat'](_0x19ac6b,_0x861c80,'imageStylePostApply'));});});for(const _0x2782a5 of _0x7ee7e8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c230d[_0x2782a5['name']]=_0x2782a5['title']['toLowerCase']();_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2165a4])=>{_0x439cdb['setImageNaturalSizeAttributes'](_0x2165a4['getContainedElement']());}),_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e6c07,_0x2c8cdb)=>{_0x4125d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e6c07,{'commandName':_0x2c8cdb['commandName'],'commandParams':_0x2c8cdb['commandReversedParams']});}),_0x4125d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1146c8,_0x3deb4b){if(_0xe951c4(_0x1146c8,_0x3deb4b))return[_0x1146c8,_0x3deb4b];if(_0xe951c4(_0x3deb4b,_0x1146c8))return[_0x3deb4b,_0x1146c8];return null;});const _0x4bae1c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xe951c4(_0x10481d,_0x3967cd){const _0x17f211=_0x4bae1c['findIndex'](({type:_0x165a5c,subType:_0x38d980})=>_0x10481d['type']==_0x165a5c&&_0x10481d['subType']==_0x38d980),_0xdf0ad=_0x4bae1c['findIndex'](({type:_0x11ce9d,subType:_0x3f267b})=>_0x3967cd['type']==_0x11ce9d&&_0x3967cd['subType']==_0x3f267b);if(_0x17f211<0x0||_0xdf0ad<0x0)return!0x1;const _0x5c95c2=_0x10481d['getFirstRange'](),_0x3af2f7=_0x3967cd['getFirstRange']();if((0x0==_0x17f211||0x1==_0x17f211)&&0x2==_0xdf0ad&&_0x5c95c2['isIntersecting'](_0x3af2f7))return!0x0;if(0x2==_0x17f211&&0x3==_0xdf0ad){const _0x32c760=_0x4125d6['_findSuggestions'](_0x5c95c2,'insertion')['filter'](({suggestion:_0x26376b,meta:_0x203443})=>_0x203443['isOwn']&&'convertInlineImageToBlock'==_0x26376b['subType']);if(_0x32c760['length']>0x1&&_0x3af2f7['end']['isEqual'](_0x5c95c2['start']))return!0x0;if(0x1==_0x32c760['length']&&(_0x5c95c2['start']['isEqual'](_0x3af2f7['end'])||_0x5c95c2['end']['isEqual'](_0x3af2f7['start'])))return!0x0;}if(0x3==_0x17f211&&0x3==_0xdf0ad&&_0x5c95c2['start']['isBefore'](_0x3af2f7['start'])){const _0x5bb3da=_0x5c95c2['end']['nodeAfter'],_0x5e00df=_0x3af2f7['start']['nodeBefore'];return _0x439cdb['isBlockImage'](_0x5bb3da)&&_0x5bb3da===_0x5e00df;}return!0x1;}_0x7ee7e8['model']['document']['registerPostFixer'](()=>{let _0x4f3549=!0x1;const _0x1b34c5=Array['from'](_0x7ee7e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59908c,data:_0x4f87b2}of _0x1b34c5){const {group:_0xf77df5,type:_0x246219,subType:_0x37806b,id:_0x29eb1c}=_0x4125d6['_splitMarkerName'](_0x59908c);if('suggestion'==_0xf77df5&&_0x4125d6['hasSuggestion'](_0x29eb1c)){if('formatBlock'==_0x246219&&('imageStylePreApply'==_0x37806b||'imageStylePostApply'==_0x37806b)){const _0x51bc5d=_0x4125d6['getSuggestion'](_0x29eb1c);if(_0x4f87b2['newRange']){const _0x468032=_0x51bc5d['getFirstRange']()['getContainedElement']();if(_0x439cdb['isBlockImage'](_0x468032))continue;_0x4125d6['discardSuggestion'](_0x51bc5d),_0x4f3549=!0x0;}}if('insertion'==_0x246219&&'imageCaption'==_0x37806b&&!_0x4f87b2['newRange']){const _0x145ff1=_0x4125d6['getSuggestion'](_0x29eb1c);_0x145ff1['next']&&_0x145ff1['next']['isInContent']&&(_0x4125d6['discardSuggestion'](_0x145ff1['next']),_0x4f3549=!0x0);}}}return _0x4f3549;}),this['_registerLegacyDescription'](_0x4c230d);}['_registerLegacyDescription'](_0x41ccad){const _0x510058=this['editor'],_0x1c6640=_0x510058['locale'];_0x510058['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475d29=>{if('formatBlock'!=_0x475d29['type']&&'formatInline'!=_0x475d29['type'])return;const {data:_0x545852}=_0x475d29;if(!_0x545852||'imageStyle'!=_0x545852['commandName'])return;const _0x3658c9=_0x545852['commandParams'][0x0]['value'];return _0x12c442('side'===_0x3658c9?o(_0x1c6640,'FORMAT_SIDE_IMAGE'):_0x41ccad[_0x3658c9]||_0x3658c9);function _0x12c442(_0x220121){return{'type':'format','content':o(_0x1c6640,'*Format:*\x20%0',_0x220121)};}});}}class ot extends _0x4e999c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x293d37){super(_0x293d37),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x527b72=this['editor'],_0x5cb0e6=_0x527b72['commands']['get']('importWord'),_0x5011c2=_0x527b72['commands']['get']('trackChanges');_0x5cb0e6&&(_0x5cb0e6['on']('execute',(_0x48f920,[,_0x9be2c0])=>{this['_trackChangesValueDuringImport']=_0x5011c2['value'],_0x9be2c0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5cb0e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5cb0e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5011c2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x527b72['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x354ce3,_0x2f5932){const {suggestions:_0x4c5dad}=_0x2f5932,_0x1ff4f5=this['editor']['commands']['get']('trackChanges'),_0x3c99f9=_0x1ff4f5['value'];this['_trackChangesValueDuringImport']!==_0x3c99f9&&(_0x1ff4f5['execute'](),this['_trackChangesExecuted']=!0x0),_0x4c5dad&&_0x4c5dad['forEach'](({id:_0x2a6c7a,type:_0x3c1ae9,author:_0xf25dbf,created_at:_0xe37498})=>{const _0x23314a={'id':_0x2a6c7a,'type':_0x3c1ae9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf25dbf,'createdAt':_0xe37498?new Date(_0xe37498):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23314a);});}}class rt extends _0x4e999c{['afterInit'](){const _0x56d4c6=this['editor'],_0xd0d7ba=_0x56d4c6['plugins']['get']('TrackChangesEditing');if(_0x56d4c6['plugins']['has']('IndentEditing')&&(_0xd0d7ba['enableCommand']('indent'),_0xd0d7ba['enableCommand']('outdent')),_0x56d4c6['plugins']['has']('IndentBlock')){for(const _0x17cee5 of['indentBlock','outdentBlock'])_0xd0d7ba['enableDefaultAttributesIntegration'](_0x17cee5);}const _0x70e223=_0x56d4c6['locale'];_0xd0d7ba['registerBlockAttribute']('blockIndent'),_0xd0d7ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x70e223,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x339343=this['editor'],_0x39ae25=_0x339343['locale'],_0x380693=_0x339343['plugins']['get']('TrackChangesEditing');_0x380693['descriptionFactory']['registerDescriptionCallback'](_0x26ac76=>{if('formatBlock'!=_0x26ac76['type'])return;const {data:_0x4a385b}=_0x26ac76;if(!_0x4a385b)return;if('indentBlock'!=_0x4a385b['commandName']&&'outdentBlock'!=_0x4a385b['commandName'])return;const _0x470103=_0x26ac76['getItems']()[0x0],_0x6ea7c7=_0x380693['descriptionFactory']['getItemLabel'](_0x470103);return'indentBlock'==_0x4a385b['commandName']?{'type':'format','content':o(_0x39ae25,'*Indent:*\x20%0',_0x6ea7c7)}:'outdentBlock'==_0x4a385b['commandName']?{'type':'format','content':o(_0x39ae25,'*Outdent:*\x20%0',_0x6ea7c7)}:void 0x0;});}}class at extends _0x4e999c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4e999c{['afterInit'](){const _0x28a6af=this['editor'];if(!_0x28a6af['plugins']['has']('LinkEditing'))return;const _0x2ff746=_0x28a6af['plugins']['get']('TrackChangesEditing'),_0x5a8fa4=_0x28a6af['commands']['get']('link');_0x2ff746['enableDefaultAttributesIntegration']('link'),_0x2ff746['enableDefaultAttributesIntegration']('unlink'),_0x2ff746['registerInlineAttribute']('linkHref');for(const _0x1c59c9 of _0x5a8fa4['manualDecorators'])_0x2ff746['registerInlineAttribute'](_0x1c59c9['id']),_0x2ff746['descriptionFactory']['registerAttributeLabel'](_0x1c59c9['id'],'link\x20('+_0x1c59c9['label']['toLowerCase']()+')');_0x2ff746['descriptionFactory']['registerDescriptionCallback'](_0x52a9d8=>{if('attribute'!=_0x52a9d8['type'])return;const {data:_0x46856e}=_0x52a9d8;if(!_0x46856e||'linkHref'!=_0x46856e['key'])return;const _0x13d794=_0x46856e['newValue'],_0x512a39=_0x28a6af['locale'];return{'type':'format','content':null==_0x13d794?o(_0x512a39,'*Remove\x20link*'):o(_0x512a39,'*Set\x20link:*\x20%0','\x22'+_0x13d794+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a0f3b=this['editor'],_0x26c2d7=_0x1a0f3b['locale'];_0x1a0f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209ee4=>{if('formatInline'!=_0x209ee4['type'])return;const {data:_0x32d83b}=_0x209ee4;if(_0x32d83b){if('link'==_0x32d83b['commandName']){const _0x33ca30=_0x32d83b['commandParams'][0x0];return{'type':'format','content':o(_0x26c2d7,'*Set\x20link:*\x20%0','\x22'+_0x33ca30+'\x22')};}return'unlink'==_0x32d83b['commandName']?{'type':'format','content':o(_0x26c2d7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4e999c{['afterInit'](){const _0x21d3ab=this['editor'],_0x332fb5=_0x21d3ab['locale'];if(!_0x21d3ab['plugins']['has']('LegacyListEditing'))return;const _0x801d6d=_0x21d3ab['plugins']['get']('TrackChangesEditing'),_0x3f0c66=_0x21d3ab['plugins']['has']('LegacyTodoListEditing');function _0x5aa6a2(_0x86f4b8){return()=>{const _0x38fbf9=_0x21d3ab['model']['document']['selection'],_0x331d2e=_0x21d3ab['commands']['get'](_0x86f4b8);if(_0x331d2e['value'])return void _0x21d3ab['execute']('paragraph',{});const _0x575ca2=_0x86f4b8['slice'](0x0,-0x4),_0x201023=function(_0x5a57f5,_0xd69a56,_0x145ee6){let _0x40c3cb=Array['from'](_0x5a57f5)['filter'](_0x3f0ab4=>function(_0xa93c48,_0x28616b){return _0x28616b['checkChild'](_0xa93c48['parent'],'listItem')&&!_0x28616b['isObject'](_0xa93c48);}(_0x3f0ab4,_0x145ee6));_0x40c3cb=_0x40c3cb['filter'](_0x37eeb8=>!_0x37eeb8['is']('element','listItem')||_0x37eeb8['getAttribute']('listType')!=_0xd69a56);const _0x73d025=new Set();for(const _0x789971 of _0x40c3cb)_0x789971['is']('element','listItem')?_0x73d025['add'](me(_0x789971)):_0x73d025['add'](_0x789971);return Array['from'](_0x73d025);}(_0x38fbf9['getSelectedBlocks'](),_0x575ca2,_0x21d3ab['model']['schema']);_0x21d3ab['model']['change'](()=>{for(const _0x527f40 of _0x201023)_0x801d6d['markBlockFormat'](_0x527f40,{'commandName':_0x86f4b8,'commandParams':[{'forceValue':!_0x331d2e['value']}],'formatGroupId':'blockName'},fe(_0x527f40));});};}function _0x383982(_0x2bbefc){return()=>{const _0x1bd612=function(_0x3892dd){let _0xef0d64=Array['from'](_0x3892dd);const _0xe5e307=_0xef0d64['findIndex'](_0x24c3b7=>'listItem'!=_0x24c3b7['name']);return _0xe5e307>-0x1&&(_0xef0d64=_0xef0d64['slice'](0x0,_0xe5e307)),_0xef0d64;}(_0x21d3ab['model']['document']['selection']['getSelectedBlocks']()),_0x1e9541=_0x21d3ab['model']['createRange'](_0x21d3ab['model']['createPositionAt'](_0x1bd612[0x0],'before'),_0x21d3ab['model']['createPositionAt'](_0x1bd612[_0x1bd612['length']-0x1],'end'));_0x21d3ab['model']['change'](()=>{_0x801d6d['markBlockFormat'](_0x1e9541,{'commandName':_0x2bbefc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cb0de){const _0x3c1dca=new Set();for(const _0x19b63e of _0x5cb0de){let _0x19ca25=_0x19b63e['nextSibling'];for(;_0x19ca25&&_0x19ca25['getAttribute']('listIndent')>_0x19b63e['getAttribute']('listIndent');)_0x3c1dca['add'](_0x19ca25),_0x19ca25=_0x19ca25['nextSibling'];}return Array['from'](_0x3c1dca);}(_0x1bd612));});};}_0x801d6d['enableCommand']('numberedList',_0x5aa6a2('numberedList')),_0x801d6d['enableCommand']('bulletedList',_0x5aa6a2('bulletedList')),_0x3f0c66&&_0x801d6d['enableCommand']('todoList',_0x5aa6a2('todoList')),_0x801d6d['enableCommand']('indentList',_0x383982('indentList')),_0x801d6d['enableCommand']('outdentList',_0x383982('outdentList')),_0x3f0c66&&_0x801d6d['enableCommand']('checkTodoList',()=>{const _0x1a80fd=_0x21d3ab['commands']['get']('checkTodoList'),_0x5ea59b=Array['from'](_0x1a80fd['_selectedElements']);_0x5ea59b['filter'](_0x1ae9d2=>_0x1ae9d2['getAttribute']('todoListChecked')!=_0x1a80fd['value']),_0x21d3ab['model']['change'](()=>{for(const _0x12f2a2 of _0x5ea59b)_0x801d6d['markBlockFormat'](_0x12f2a2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a80fd['value']}]});});}),_0x801d6d['descriptionFactory']['registerElementLabel']('listItem',_0x412d2b=>o(_0x332fb5,'ELEMENT_LIST_ITEM',_0x412d2b)),_0x801d6d['descriptionFactory']['registerDescriptionCallback'](_0x5435a6=>{if('formatBlock'!=_0x5435a6['type']&&'formatInline'!=_0x5435a6['type'])return;const {data:_0x4cc105}=_0x5435a6;if(_0x4cc105){if('numberedList'==_0x4cc105['commandName']||'bulletedList'==_0x4cc105['commandName']||'todoList'==_0x4cc105['commandName'])switch(_0x4cc105['commandName']['replace']('List','')){case'bulleted':return _0x5f12d6(o(_0x332fb5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f12d6(o(_0x332fb5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f12d6(o(_0x332fb5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cc105['commandName'])return{'type':'format','content':o(_0x332fb5,'*Indent:*\x20%0',o(_0x332fb5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cc105['commandName'])return{'type':'format','content':o(_0x332fb5,'*Outdent:*\x20%0',o(_0x332fb5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cc105['commandName'])return _0x4cc105['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x332fb5,'*Check\x20item*')}:{'type':'format','content':o(_0x332fb5,'*Uncheck\x20item*')};}function _0x5f12d6(_0x4bff7f){return{'type':'format','content':o(_0x332fb5,'*Change\x20to:*\x20%0',_0x4bff7f)};}});}}function me(_0x4d02de){const _0x5a9bbc=_0x4d02de['getAttribute']('listIndent');if(0x0==_0x5a9bbc)return _0x4d02de;let _0x3c4762=_0x4d02de;for(;_0x4d02de['previousSibling']&&_0x4d02de['previousSibling']['is']('element','listItem');){const _0x537f48=_0x4d02de['previousSibling']['getAttribute']('listIndent');if(_0x537f48==_0x5a9bbc)_0x3c4762=_0x4d02de['previousSibling'];else{if(_0x537f48<_0x5a9bbc)break;}_0x4d02de=_0x4d02de['previousSibling'];}return _0x3c4762;}function fe(_0x42fb74){const _0x5e90d3=[];if(_0x42fb74['is']('element','listItem')&&_0x42fb74['getAttribute']('listIndent')>0x0){let _0x51e6ca=_0x42fb74['nextSibling'];for(;_0x51e6ca&&'listItem'==_0x51e6ca['name']&&_0x51e6ca['getAttribute']('listIndent')==_0x42fb74['getAttribute']('listIndent');)_0x5e90d3['push'](_0x51e6ca),_0x51e6ca=_0x51e6ca['nextSibling'];}return _0x5e90d3;}class K extends _0x4e999c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x52f507=this['editor']['config']['get']('list.properties'),_0x177e04=this['editor']['plugins']['get']('TrackChangesEditing');_0x52f507['styles']&&_0x177e04['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x52f507['reversed']&&_0x177e04['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x52f507['startIndex']&&_0x177e04['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x177e04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f69a5,_0x56e0bc={}){const _0x3c3e23=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f79e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c3e23['markMultiRangeBlockFormat'](_0x2f79e4,{'commandName':'listStyle','commandParams':[{'type':_0x56e0bc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x587161,_0x395e2a={}){const _0x599d42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e5c0f=this['_getSuggestionBlocks'](_0x41ee1f=>_0x41ee1f['is']('element','listItem')&&'numbered'===_0x41ee1f['getAttribute']('listType'));if(_0x2e5c0f['length']<0x1)return;const _0x2eeb51=_0x2e5c0f['map'](_0x3f035b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f035b,'before'),this['editor']['model']['createPositionAt'](_0x3f035b,0x0)));this['editor']['model']['change'](()=>{_0x599d42['markMultiRangeBlockFormat'](_0x2eeb51,{'commandName':'listReversed','commandParams':[{'reversed':_0x395e2a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1bf4d7,_0x4f9c18={}){const _0x2c6038=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fedd6=this['_getSuggestionBlocks'](_0x457ef5=>_0x457ef5['is']('element','listItem')&&'numbered'===_0x457ef5['getAttribute']('listType'));if(_0x1fedd6['length']<0x1)return;const _0x4efbd4=_0x1fedd6['map'](_0xcfc71b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcfc71b,'before'),this['editor']['model']['createPositionAt'](_0xcfc71b,0x0)));this['editor']['model']['change'](()=>{_0x2c6038['markMultiRangeBlockFormat'](_0x4efbd4,{'commandName':'listStart','commandParams':[{'startIndex':_0x4f9c18['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x595952){if('formatBlock'!=_0x595952['type']&&'formatInline'!=_0x595952['type'])return;const _0x5bea50=this['editor']['locale'],{data:_0x28b1ec}=_0x595952;if(!_0x28b1ec)return;let _0x313738,_0x44a3d1;switch(_0x28b1ec['commandName']){case'listStyle':_0x313738='*Change\x20to:*\x20%0',_0x44a3d1={'type':'format','content':o(_0x5bea50,_0x313738,o(_0x5bea50,this['_getTranslationKeyForListStyle'](_0x28b1ec['commandParams'][0x0]['type'])))};break;case'listReversed':_0x313738=_0x28b1ec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44a3d1={'type':'format','content':o(_0x5bea50,_0x313738)};break;case'listStart':_0x313738='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44a3d1={'type':'format','content':o(_0x5bea50,_0x313738,_0x28b1ec['commandParams'][0x0]['startIndex'])};}return _0x44a3d1;}['_getSuggestionBlocksForListStyle'](){const _0x5a452d=this['editor']['plugins']['get']('LegacyListUtils');let _0x59a54e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x59a54e[0x0]?.['is']('element','listItem')&&_0x59a54e['unshift'](..._0x5a452d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x59a54e[_0x59a54e['length']-0x1]?.['is']('element','listItem')&&_0x59a54e['push'](..._0x5a452d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x59a54e=[...new Set(_0x59a54e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x59a54e=_0x59a54e['filter'](_0x4387a8=>_0x4387a8['is']('element','listItem'))),_0x59a54e;}['_getSuggestionBlocks'](_0x1f7494){const _0x3693ab=this['editor']['plugins']['get']('LegacyListUtils');let _0x341141=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f7494)['map'](_0x3466b8=>{const _0x2d8947=this['editor']['model']['createPositionAt'](_0x3466b8,0x0);return[..._0x3693ab['getSiblingNodes'](_0x2d8947,'backward'),..._0x3693ab['getSiblingNodes'](_0x2d8947,'forward')];})['flat']();return _0x341141=[...new Set(_0x341141)],_0x341141;}['_getTranslationKeyForListStyle'](_0x3d40dc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3d40dc)||'default')['toUpperCase']()+'_LIST_'+_0x3d40dc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4e999c{['afterInit'](){const _0x3e0da2=this['editor'];if(!_0x3e0da2['plugins']['has']('MediaEmbedEditing'))return;const _0x3470e1=_0x3e0da2['plugins']['get']('TrackChangesEditing'),_0x13dea3=_0x3e0da2['locale'];_0x3470e1['enableCommand']('mediaEmbed'),_0x3470e1['descriptionFactory']['registerElementLabel']('media',_0x2f0d24=>o(_0x13dea3,'ELEMENT_MEDIA',_0x2f0d24)),_0x3e0da2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x241934,{writer:_0x53c5c5,options:_0x562f09})=>{if(_0x562f09['showSuggestionHighlights'])return _0x53c5c5['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e0da2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50f9d,_0xd7f01f,_0x65e5c1)=>{_0x65e5c1['options']['showSuggestionHighlights']&&_0x50f9d['stop']();},{'priority':'high'});}}class gt extends _0x4e999c{['afterInit'](){const _0x436238=this['editor'];_0x436238['plugins']['has']('MentionEditing')&&_0x436238['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4e999c{['afterInit'](){const _0xf12b04=this['editor'],_0x4995b6=_0xf12b04['plugins']['get']('TrackChangesEditing');_0xf12b04['plugins']['has']('MultiLevelList')&&(_0x4995b6['enableDefaultAttributesIntegration']('multiLevelList'),_0x4995b6['registerBlockAttribute']('listMarkerStyle'),_0x4995b6['descriptionFactory']['registerDescriptionCallback'](_0xc3a7bd=>this['handleDescriptions'](_0xc3a7bd)));}['handleDescriptions'](_0xc7bb18){const _0x2b2f28=this['editor']['locale'],{data:_0x155964}=_0xc7bb18,_0x387d6d={'type':'format','content':''};if(_0x155964&&'listMarkerStyle'==_0x155964['key']){if(!_0x155964['oldValue'])return{'type':'format','content':o(_0x2b2f28,'*Set\x20format:*\x20%0',o(_0x2b2f28,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x155964['newValue']+')'};if(!_0x155964['newValue']){let _0x439ea1=_0xc7bb18['head'];for(;_0x439ea1;){if(_0x439ea1['data']&&'listType'==_0x439ea1['data']['key']&&_0x439ea1['data']['newValue'])return _0x387d6d;_0x439ea1=_0x439ea1['next'];}return{'type':'format','content':o(_0x2b2f28,'*Remove\x20format:*\x20%0',o(_0x2b2f28,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x155964['oldValue']+')'};}}}}class mt extends _0x4e999c{['afterInit'](){const _0x3bd0cc=this['editor'];if(!_0x3bd0cc['plugins']['has']('PageBreakEditing'))return;_0x3bd0cc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5976e0=_0x3bd0cc['plugins']['get']('TrackChangesEditing'),_0x14c496=_0x3bd0cc['locale'];_0x5976e0['descriptionFactory']['registerElementLabel']('pageBreak',_0x1823ec=>o(_0x14c496,'ELEMENT_PAGE_BREAK',_0x1823ec));}}class dt extends _0x4e999c{['afterInit'](){const _0x59ac71=this['editor'];if(!_0x59ac71['plugins']['has']('Paragraph'))return;const _0x5f0791=_0x59ac71['locale'],_0x2db360=_0x59ac71['plugins']['get']('TrackChangesEditing');_0x2db360['descriptionFactory']['registerElementLabel']('paragraph',_0x49fb64=>o(_0x5f0791,'ELEMENT_PARAGRAPH',_0x49fb64)),_0x2db360['enableDefaultAttributesIntegration']('paragraph'),_0x2db360['enableCommand']('insertParagraph'),_0x59ac71['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59ac71),{'priority':'highest'}),_0x59ac71['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18d4ae,_0x30a9ca,_0x402571)=>{_0x402571['options']['showSuggestionHighlights']&&nr(_0x59ac71,{'showActiveMarker':!0x1})(_0x18d4ae,_0x30a9ca,_0x402571);},{'priority':'highest'});const _0x5e23b1=_0x2db360['descriptionFactory'];_0x5e23b1['registerDescriptionCallback'](_0x169812=>{if('insertion'!==_0x169812['type'])return;const {start:_0x2a4a5f,end:_0x53d784}=_0x169812['getFirstRange']();if(!_0x2a4a5f['isTouching'](_0x53d784)||!_0x2a4a5f['nodeAfter'])return;const _0x1cc36b=_0x59ac71['model']['schema'],_0x32e76c=_0x2a4a5f['nodeAfter'];return _0x1cc36b['isBlock'](_0x32e76c)&&!_0x1cc36b['isLimit'](_0x32e76c)&&_0x1cc36b['checkChild'](_0x32e76c,'$text')?{'type':'insertion','content':o(_0x5f0791,'*Insert:*\x20%0',_0x5e23b1['getItemLabel'](_0x32e76c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b91aa=this['editor'],_0x2d4ef7=_0x2b91aa['locale'];_0x2b91aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6f34=>{if('formatBlock'!=_0x2f6f34['type'])return;const {data:_0x1a8af3}=_0x2f6f34;return _0x1a8af3&&'paragraph'==_0x1a8af3['commandName']?{'type':'format','content':o(_0x2d4ef7,'*Change\x20to:*\x20%0',o(_0x2d4ef7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x34780b,{showActiveMarker:_0x28052e=!0x0}={}){return(_0x536fce,_0x7f6c12,_0x2e8d31)=>{const _0x5e4785=_0x34780b['plugins']['get']('TrackChangesEditing'),_0x4757c5=_0x7f6c12['markerRange']['start'],_0x5bfb96=_0x7f6c12['markerRange']['end'],_0xb51a52=_0x34780b['model']['schema'];if(!_0x4757c5['isTouching'](_0x5bfb96)||!_0x4757c5['nodeAfter'])return;const _0x9441d8=_0x4757c5['nodeAfter'];if(_0xb51a52['isBlock'](_0x9441d8)&&!_0xb51a52['isLimit'](_0x9441d8)&&_0xb51a52['checkChild'](_0x9441d8,'$text')){if(!_0x2e8d31['consumable']['consume'](_0x7f6c12['markerRange'],_0x536fce['name']))return;const _0x4c666d=_0x2e8d31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x337b39=_0x2e8d31['mapper']['toViewPosition'](_0x5bfb96);_0x28052e&&_0x5e4785['activeMarkers']['includes'](_0x7f6c12['markerName'])&&_0x2e8d31['writer']['addClass']('ck-suggestion-marker--active',_0x4c666d),_0x2e8d31['writer']['insert'](_0x337b39,_0x4c666d),_0x2e8d31['mapper']['bindElementToMarker'](_0x4c666d,_0x7f6c12['markerName']);}};}class pt extends _0x4e999c{['afterInit'](){const _0x8c8067=this['editor'];if(!_0x8c8067['plugins']['has']('RemoveFormatEditing'))return;_0x8c8067['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5318a3=this['editor'];_0x5318a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e541=>{if('formatBlock'!=_0x46e541['type']&&'formatInline'!=_0x46e541['type'])return;const {data:_0x3c0886}=_0x46e541;return _0x3c0886&&'removeFormat'==_0x3c0886['commandName']?{'type':'format','content':o(_0x5318a3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4e999c{['afterInit'](){const _0x27743d=this['editor'];if(!_0x27743d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26f466=_0x27743d['plugins']['get']('TrackChangesEditing');_0x26f466['enableCommand']('goToPreviousRestrictedEditingException'),_0x26f466['enableCommand']('goToNextRestrictedEditingException');const _0x5cd45e=_0x27743d['plugins']['get']('RestrictedEditingModeEditing');_0x5cd45e['enableCommand']('trackChanges'),_0x5cd45e['enableCommand']('acceptSuggestion'),_0x5cd45e['enableCommand']('discardSuggestion'),_0x5cd45e['enableCommand']('acceptAllSuggestions'),_0x5cd45e['enableCommand']('discardAllSuggestions'),_0x5cd45e['enableCommand']('acceptSelectedSuggestions'),_0x5cd45e['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4e999c{static get['requires'](){return[_0x209060];}['init'](){const _0x28cd0d=this['editor'],_0x20e748=_0x28cd0d['plugins']['get']('TrackChangesEditing');_0x20e748['enableCommand']('shiftEnter'),_0x28cd0d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x28cd0d),{'priority':'high'}),_0x28cd0d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x28cd0d),{'priority':'high'}),_0x28cd0d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x185932,_0x14671e,_0x332c6f)=>{_0x332c6f['options']['showSuggestionHighlights']&&de(_0x28cd0d,{'showActiveMarker':!0x1})(_0x185932,_0x14671e,_0x332c6f);}),_0x20e748['descriptionFactory']['registerElementLabel']('softBreak',_0x23c31a=>o(_0x28cd0d['locale'],'ELEMENT_LINE_BREAK',_0x23c31a));}}function de(_0x35d938,{showActiveMarker:_0x421fa7=!0x0}={}){return(_0xe597ec,_0x53b7f3,_0x1df52b)=>{const _0x3ec094=_0x35d938['plugins']['get']('TrackChangesEditing');if(!_0x1df52b['consumable']['test'](_0x53b7f3['markerRange'],_0xe597ec['name']))return;const _0x4fd0b7=_0x35d938['model'];for(const _0x5d1916 of _0x53b7f3['markerRange']['getItems']()){if(!_0x5d1916['is']('element','softBreak'))continue;const _0x3ddd65='deletion'==_0x53b7f3['markerName']['split'](':')[0x1]?'merge':'split',_0x1b1e50=_0x1df52b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ddd65}),_0x2aa291=_0x1df52b['mapper']['toViewPosition'](_0x4fd0b7['createPositionBefore'](_0x5d1916));_0x421fa7&&_0x3ec094['activeMarkers']['includes'](_0x53b7f3['markerName'])&&_0x1df52b['writer']['addClass']('ck-suggestion-marker--active',_0x1b1e50),_0x1df52b['writer']['insert'](_0x2aa291,_0x1b1e50),_0x1df52b['mapper']['bindElementToMarker'](_0x1b1e50,_0x53b7f3['markerName']);}};}class wt extends _0x4e999c{['afterInit'](){const _0x5afa41=this['editor'],_0x2464ce=_0x5afa41['model'],_0x1b3bb9=_0x5afa41['locale'];if(!_0x5afa41['plugins']['has']('StandardEditingModeEditing'))return;const _0x46c447=_0x5afa41['plugins']['get']('TrackChangesEditing'),_0x4f6458='restrictedEditingException',_0x35caea=_0x5afa41['commands']['get'](_0x4f6458);_0x46c447['enableCommand'](_0x4f6458,(_0x32248b,_0x2b0996={})=>{const _0x7a1af2=_0x2464ce['document']['selection'];if(_0x7a1af2['isCollapsed'])return void _0x32248b(_0x2b0996);const _0x56f0dd=void 0x0!==_0x2b0996['forceValue']?_0x2b0996['forceValue']:!_0x35caea['value'];_0x2464ce['change'](()=>{const _0x4dc889=Array['from'](_0x7a1af2['getRanges']());for(const _0x490a8f of _0x4dc889){const _0x56948a=_0x56f0dd?[_0x490a8f]:io(_0x4f6458,_0x490a8f,_0x2464ce);for(const _0x11de0c of _0x56948a)_0x46c447['markInlineFormat'](_0x11de0c,{'commandName':_0x4f6458,'commandParams':[{'forceValue':_0x56f0dd}]});}});}),_0x46c447['descriptionFactory']['registerDescriptionCallback'](_0x539a61=>{if('formatBlock'!=_0x539a61['type']&&'formatInline'!=_0x539a61['type'])return;const {data:_0x294f8e}=_0x539a61;return _0x294f8e&&_0x294f8e['commandName']==_0x4f6458?_0x294f8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b3bb9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b3bb9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4e999c{['afterInit'](){const _0x19cee1=this['editor'];if(!_0x19cee1['plugins']['has']('Style')||!_0x19cee1['plugins']['has']('DataSchema'))return;const _0x4c3cb1=_0x19cee1['plugins']['get']('TrackChangesEditing'),_0x14873=_0x19cee1['locale'],_0x5f29ca=_0x19cee1['config']['get']('style')||{},_0x17b4aa=_0x19cee1['plugins']['get']('GeneralHtmlSupport'),_0x1f615a=_0x19cee1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x19cee1['plugins']['get']('DataSchema'),_0x5f29ca['definitions']);_0x4c3cb1['enableDefaultAttributesIntegration']('style');const _0x37fea9=new Set();for(const _0x462c40 of _0x1f615a['block']){const _0xb630d2=_0x17b4aa['getGhsAttributeNameForElement'](_0x462c40['element']);_0x37fea9['add'](_0xb630d2);}const _0x1e4134=new Set();for(const _0x7e53e8 of _0x1f615a['inline']){const _0x28e2c3=_0x17b4aa['getGhsAttributeNameForElement'](_0x7e53e8['element']);_0x1e4134['add'](_0x28e2c3);for(const _0x4736a3 of _0x7e53e8['ghsAttributes'])_0x1e4134['add'](_0x4736a3);}for(const _0x45d630 of _0x37fea9)_0x4c3cb1['registerBlockAttribute'](_0x45d630),_0x4c3cb1['descriptionFactory']['registerAttributeLabel'](_0x45d630,o(_0x14873,'FORMAT_STYLE'));for(const _0x532cd6 of _0x1e4134)_0x4c3cb1['registerInlineAttribute'](_0x532cd6),_0x4c3cb1['descriptionFactory']['registerAttributeLabel'](_0x532cd6,o(_0x14873,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305e27=this['editor'],_0x49f034=_0x305e27['locale'];_0x305e27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d53d=>{if('formatBlock'!=_0x36d53d['type']&&'formatInline'!=_0x36d53d['type'])return;const {data:_0x11178e}=_0x36d53d;return _0x11178e&&'style'===_0x11178e['commandName']?_0x11178e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49f034,'*Set\x20format:*\x20%0',_0x11178e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x49f034,'*Remove\x20format:*\x20%0',_0x11178e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4e999c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x17ab9e){super(_0x17ab9e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e7987=this['editor'],_0x302c8d=_0x5e7987['model']['document']['selection'];if(!_0x5e7987['plugins']['has']('TableEditing'))return;const _0x42f9f5=_0x5e7987['locale'],_0x2ba3af=_0x5e7987['plugins']['get']('TrackChangesEditing'),_0x1d030e=_0x5e7987['plugins']['get']('TableUtils');_0x2ba3af['descriptionFactory']['registerElementLabel']('table',_0x580360=>o(_0x42f9f5,'ELEMENT_TABLE',_0x580360)),this['_setupColumnsRowsFixing'](),_0x2ba3af['enableCommand']('insertTable'),_0x2ba3af['enableCommand']('selectTableRow'),_0x2ba3af['enableCommand']('selectTableColumn');for(const _0xcf6b06 of['insertTableRowAbove','insertTableRowBelow']){const _0x11a660=_0x5e7987['commands']['get'](_0xcf6b06);_0x2ba3af['enableCommand'](_0xcf6b06,_0x4f610c=>{_0x5e7987['model']['change'](_0x523fe1=>{_0x4f610c();const _0x2ce0ed='above'===_0x11a660['order'],_0x18fbc3=_0x1d030e['getSelectionAffectedTableCells'](_0x302c8d),_0x46fb46=_0x1d030e['getRowIndexes'](_0x18fbc3),_0x58646f=_0x2ce0ed?_0x46fb46['first']-0x1:_0x46fb46['last']+0x1,_0x335e77=_0x18fbc3[0x0]['findAncestor']('table'),_0x4edb1e=_0x1d030e['createTableWalker'](_0x335e77,{'startRow':_0x58646f,'endRow':_0x58646f}),_0x389b18=Array['from'](_0x4edb1e)['map'](_0x4b26db=>_0x523fe1['createRangeOn'](_0x4b26db['cell']));_0x2ba3af['markMultiRangeInsertion'](_0x389b18,'tableRow');});});}for(const _0x13302a of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e6607=_0x5e7987['commands']['get'](_0x13302a);_0x2ba3af['enableCommand'](_0x13302a,_0x18fa0a=>{_0x5e7987['model']['change'](_0x11ab53=>{_0x18fa0a();const _0x3394a2='left'===_0x3e6607['order'],_0xd4a651=_0x1d030e['getSelectionAffectedTableCells'](_0x302c8d),_0x32b165=_0x1d030e['getColumnIndexes'](_0xd4a651),_0x58a20b=_0x3394a2?_0x32b165['first']-0x1:_0x32b165['last']+0x1,_0x5e0a0a=_0xd4a651[0x0]['findAncestor']('table'),_0x50004b=_0x1d030e['createTableWalker'](_0x5e0a0a,{'startRow':0x0,'column':_0x58a20b,'includeAllSlots':!0x1}),_0x539b67=Array['from'](_0x50004b)['map'](_0x5a9574=>_0x11ab53['createRangeOn'](_0x5a9574['cell']));_0x2ba3af['markMultiRangeInsertion'](_0x539b67,'tableColumn');});});}for(const _0x1a7cda of['removeTableRow','removeTableColumn']){const _0x13c8dd=_0x1a7cda['substr'](0xb),_0x289454=_0x13c8dd['toLowerCase'](),_0x315ae8=_0x289454['substr'](0x0,0x3)+'span',_0x355a68='table'+_0x13c8dd,_0x4a2b52='min'+_0x13c8dd,_0x54369a='max'+_0x13c8dd;_0x2ba3af['enableCommand'](_0x1a7cda,()=>{_0x5e7987['model']['change'](_0x4ddd67=>{const _0x5034b8=_0x1d030e['getSelectionAffectedTableCells'](_0x302c8d),_0x54a314=_0x5034b8[0x0]['findAncestor']('table');let _0x4465fa;if('removeTableRow'==_0x1a7cda){const _0xbfc3f9=_0x1d030e['getRowIndexes'](_0x5034b8);_0x4465fa={'startRow':_0xbfc3f9['first'],'endRow':_0xbfc3f9['last'],'includeAllSlots':!0x0};}else{const _0x1d949c=_0x1d030e['getColumnIndexes'](_0x5034b8);_0x4465fa={'startColumn':_0x1d949c['first'],'endColumn':_0x1d949c['last'],'includeAllSlots':!0x0};}const _0x10d64c=_0x1d030e['createTableWalker'](_0x54a314,_0x4465fa),_0x359ed3=Array['from'](_0x10d64c)['map'](({cell:_0x578da1})=>_0x578da1),_0xa70acd=Ee(_0x359ed3['filter'](_0x1f8240=>_0x1f8240['hasAttribute'](_0x315ae8))),_0x430e78=Ee(_0x359ed3['filter'](_0x3699ae=>!_0x3699ae['hasAttribute'](_0x315ae8)))['map'](_0x3f1997=>_0x4ddd67['createRangeOn'](_0x3f1997)),_0x2e5a18=_0x2ba3af['markMultiRangeDeletion'](_0x430e78,_0x355a68);if(_0x2e5a18&&('tableRow'==_0x2e5a18['subType']||'tableColumn'==_0x2e5a18['subType'])){const _0x41af1b=this['_getSuggestionCoords'](_0x2e5a18);for(const _0x3971c3 of _0xa70acd){const _0x5c8e2e=_0x4ddd67['createRangeOn'](_0x3971c3),_0x5279a3=_0x1d030e['getCellLocation'](_0x3971c3),_0x668b14=_0x3971c3['getAttribute'](_0x315ae8)-0x1,_0x5c5fc3=_0x41af1b[_0x4a2b52],_0x38357f=_0x41af1b[_0x54369a];_0x5c5fc3<=_0x5279a3[_0x289454]&&_0x5279a3[_0x289454]+_0x668b14<=_0x38357f&&_0x2e5a18['addRange'](_0x5c8e2e);}}});});}function _0x17e19a(_0x2ac031){const _0x16e10e=Array['from'](_0x302c8d['getRanges']())['map'](_0x27acdb=>_0x38a2be['fromRange'](_0x27acdb));_0x5e7987['model']['change'](_0x3281c2=>{const _0x5dc52c=_0x3281c2['batch'];_0x2ac031=_0x2ac031['filter'](_0x5810b6=>'$graveyard'!=_0x5810b6['root']['rootName']),_0x3281c2['setSelection'](_0x2ac031),_0x5e7987['commands']['get']('removeTableRow')['refresh'](),_0x5e7987['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e7987['model']['enqueueChange'](()=>{_0x5e7987['model']['enqueueChange'](_0x5dc52c,_0x290ac0=>{const _0x36a65b=_0x16e10e['filter'](_0x318c73=>'$graveyard'!=_0x318c73['root']['rootName']);_0x36a65b['length']>0x0&&_0x290ac0['setSelection'](_0x36a65b);for(const _0x55151c of _0x16e10e)_0x55151c['detach']();});});});}function _0x2055b9(_0x2710d6){_0x5e7987['model']['change'](_0xdcb06e=>{const _0x2613e4=Array['from'](_0x302c8d['getRanges']())['map'](_0x29b034=>_0x38a2be['fromRange'](_0x29b034)),_0x456f35=[];for(const _0x20e6ea of _0x2710d6)for(const _0x1b6aa7 of _0x20e6ea['getItems']({'shallow':!0x0}))_0x456f35['push'](_0x1b6aa7);for(const _0x472d0b of _0x456f35)'$graveyard'!=_0x472d0b['root']['rootName']&&(_0xdcb06e['setSelection'](_0xdcb06e['createPositionAt'](_0x472d0b,0x0)),_0x5e7987['commands']['get']('removeTableColumn')['refresh'](),_0x5e7987['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x269169=_0x2613e4['filter'](_0x2366b7=>'$graveyard'!=_0x2366b7['root']['rootName']);_0x269169['length']>0x0&&_0xdcb06e['setSelection'](_0x269169);for(const _0x4ef364 of _0x2613e4)_0x4ef364['detach']();});}function _0x4b8329(_0x2b11a7,_0x1b2a61){return _0x1b2a61['every'](_0x4a6e78=>_0x2b11a7['some'](_0x3aa20f=>_0x3aa20f['end']['isEqual'](_0x4a6e78['start'])||_0x4a6e78['end']['isEqual'](_0x3aa20f['start'])));}function _0x2170b2(_0x1c1075,_0x1cc78a){return!_0x1c1075['some'](_0x417539=>_0x1cc78a['some'](_0x1f4f3e=>_0x417539['isIntersecting'](_0x1f4f3e)))&&_0x1c1075['some'](_0xe1e8c3=>_0x1cc78a['some'](_0x105fce=>_0xe1e8c3['end']['isTouching'](_0x105fce['start'])));}_0x5e7987['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c1487,_0x50729c,_0x523cbf)=>{if(!_0x523cbf['options']['showSuggestionHighlights'])return;const _0x41eed0=_0x50729c['item'];if(!_0x41eed0)return;const _0x40615a=_0x523cbf['mapper']['toViewElement'](_0x41eed0);function _0x31a74a(_0x4a2920){return Array['isArray'](_0x4a2920)?_0x4a2920:[_0x4a2920];}_0x40615a&&'tableCell'===_0x41eed0['name']&&_0x259c41(_0x40615a,_0x523cbf['writer'],(_0x328bf6,_0x353917,_0x5a6211)=>_0x5a6211['addClass'](_0x31a74a(_0x353917['classes']),_0x328bf6),(_0x56a1c7,_0x341707,_0x185f91)=>_0x185f91['removeClass'](_0x31a74a(_0x341707['classes']),_0x56a1c7));},{'priority':'highest'}),_0x2ba3af['descriptionFactory']['registerDescriptionCallback'](_0x468cad=>{if('insertion'!=_0x468cad['type']&&'deletion'!=_0x468cad['type'])return;const _0x317055=_0x468cad['getContainedElement']();if(null!=_0x317055&&_0x317055['is']('element','table')){if('insertion'==_0x468cad['type']){const _0x2e8426=_0x468cad['getItems']()['filter'](_0x4a44d0=>_0x4a44d0['is']('$textProxy'))['map'](_0x5eb3c4=>_0x5eb3c4['data']);if(_0x2e8426['length'])return{'type':'insertion','content':o(_0x42f9f5,'*Insert:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e8426['join']('\x20')+'\x22'))};}if('deletion'==_0x468cad['type']){const _0xbad2fa=_0x468cad['getItems']()['filter'](_0x4731d7=>_0x4731d7['is']('$textProxy'))['map'](_0x2fa05b=>_0x2fa05b['data']);if(_0xbad2fa['length'])return{'type':'deletion','content':o(_0x42f9f5,'*Remove:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbad2fa['join']('\x20')+'\x22'))};}}}),_0x2ba3af['descriptionFactory']['registerDescriptionCallback'](_0x3973c6=>{if('tableRow'==_0x3973c6['subType']){const _0xc6470c=_0x3973c6['getItems']()['filter'](_0x570c3a=>_0x570c3a['is']('$textProxy'))['map'](_0x1d9b2c=>_0x1d9b2c['data']),_0x5dfee2=this['_getSuggestionCoords'](_0x3973c6),_0x433fd3=_0x5dfee2['maxRow']-_0x5dfee2['minRow']+0x1;if('insertion'==_0x3973c6['type'])return _0xc6470c['length']?{'type':'insertion','content':o(_0x42f9f5,'*Insert:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x433fd3,'\x22'+_0xc6470c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x42f9f5,'*Insert:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_ROW',_0x433fd3))};if('deletion'==_0x3973c6['type'])return _0xc6470c['length']?{'type':'deletion','content':o(_0x42f9f5,'*Remove:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x433fd3,'\x22'+_0xc6470c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x42f9f5,'*Remove:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_ROW',_0x433fd3))};}if('tableColumn'==_0x3973c6['subType']){const _0xe39196=_0x3973c6['getItems']()['filter'](_0x31804c=>_0x31804c['is']('$textProxy'))['map'](_0x58c594=>_0x58c594['data']),_0xe44606=this['_getSuggestionCoords'](_0x3973c6),_0x5c8525=_0xe44606['maxColumn']-_0xe44606['minColumn']+0x1;if('insertion'==_0x3973c6['type'])return _0xe39196['length']?{'type':'insertion','content':o(_0x42f9f5,'*Insert:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c8525,'\x22'+_0xe39196['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x42f9f5,'*Insert:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_COLUMN',_0x5c8525))};if('deletion'==_0x3973c6['type'])return _0xe39196['length']?{'type':'deletion','content':o(_0x42f9f5,'*Remove:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c8525,'\x22'+_0xe39196['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x42f9f5,'*Remove:*\x20%0',o(_0x42f9f5,'ELEMENT_TABLE_COLUMN',_0x5c8525))};}}),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17e19a),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17e19a),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2055b9),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2055b9),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4b8329),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4b8329),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2170b2),_0x2ba3af['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2170b2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x540d58=this['editor'],_0x354307=_0x540d58['model']['document']['selection'];return(_0x463ca9,_0x426755)=>{_0x540d58['model']['change'](_0x22fd8f=>{const {commandName:_0x190ad0,commandParams:_0x71b4e9}=_0x426755;let _0x2835f0=_0x463ca9[0x0]['end']['nodeBefore'];_0x71b4e9&&_0x71b4e9[0x0]&&!0x1===_0x71b4e9[0x0]['forceValue']&&(_0x2835f0=_0x463ca9[0x0]['start']['nodeAfter']);const _0x24c378=_0x22fd8f['createRangeIn'](_0x2835f0);if('$graveyard'==_0x24c378['root']['rootName'])return;const _0x3e4aa1=Array['from'](_0x354307['getRanges']())['map'](_0x437120=>_0x38a2be['fromRange'](_0x437120));_0x22fd8f['setSelection'](_0x24c378),_0x540d58['commands']['get'](_0x190ad0)['refresh'](),_0x71b4e9['push']({'forceDefaultExecution':!0x0}),_0x540d58['execute'](_0x190ad0,..._0x71b4e9);const _0x3bad41=_0x3e4aa1['filter'](_0x3d6b48=>'$graveyard'!=_0x3d6b48['root']['rootName']);_0x3bad41['length']>0x0&&_0x22fd8f['setSelection'](_0x3bad41);for(const _0xfc9420 of _0x3e4aa1)_0xfc9420['detach']();});};}['_getCoordsForCells'](_0x8ad42d){const _0x49c106=this['editor']['plugins']['get']('TableUtils');let _0x36f469=Number['MAX_SAFE_INTEGER'],_0x55573d=Number['MIN_SAFE_INTEGER'],_0x2493ad=Number['MAX_SAFE_INTEGER'],_0x3b203d=Number['MIN_SAFE_INTEGER'];for(const _0x3e4a54 of _0x8ad42d){if('$graveyard'==_0x3e4a54['root']['rootName'])continue;const {row:_0x267db9,column:_0xa88cc1}=_0x49c106['getCellLocation'](_0x3e4a54),_0x48d93e=_0x3e4a54['hasAttribute']('rowspan')?_0x3e4a54['getAttribute']('rowspan')-0x1:0x0,_0x3c6f1b=_0x3e4a54['hasAttribute']('colspan')?_0x3e4a54['getAttribute']('colspan')-0x1:0x0;_0x36f469=_0x267db9<_0x36f469?_0x267db9:_0x36f469,_0x55573d=_0x267db9+_0x48d93e>_0x55573d?_0x267db9+_0x48d93e:_0x55573d,_0x2493ad=_0xa88cc1<_0x2493ad?_0xa88cc1:_0x2493ad,_0x3b203d=_0xa88cc1+_0x3c6f1b>_0x3b203d?_0xa88cc1+_0x3c6f1b:_0x3b203d;}return{'minRow':_0x36f469,'maxRow':_0x55573d,'minColumn':_0x2493ad,'maxColumn':_0x3b203d};}['_setupColumnsRowsFixing'](){const _0x3d9879=this['editor'],_0x3e0818=_0x3d9879['plugins']['get']('TrackChangesEditing'),_0x29aa56=_0x3d9879['plugins']['get']('TableUtils');_0x3d9879['model']['document']['on']('change:data',()=>{const _0x66865c=Array['from'](_0x3d9879['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12e46c,data:_0x50fe20}of _0x66865c){const {group:_0x32b926,id:_0x415732,subType:_0x30abb5}=_0x3e0818['_splitMarkerName'](_0x12e46c);if('suggestion'!=_0x32b926)continue;if(null!=_0x50fe20['oldRange'])continue;const _0x5d9851=_0x3e0818['getSuggestion'](_0x415732);this['_tablePostFixingSubtypes']['includes'](_0x30abb5)&&this['_tableSuggestions']['add'](_0x5d9851);}},{'priority':'low'});const _0x18bfff=(_0x35ee92,_0x2978fe)=>{let _0x3da3ac=!0x1;const _0x145856=_0x2978fe['createRangeOn'](_0x35ee92),_0x5dc4c7=_0x35ee92['findAncestor']('table'),_0x2f714e=_0x29aa56['getCellLocation'](_0x35ee92);for(const _0x57b3e1 of this['_tableSuggestions']){const _0x24caa1=_0x57b3e1['subType'],_0x23e55f=_0x24caa1['startsWith']('tablePaste'),_0x1bc1f9=_0x24caa1['substr'](_0x23e55f?0xa:0x5),_0x5c5355=_0x1bc1f9['toLowerCase'](),_0x2f32c6=_0x5c5355['substr'](0x0,0x3)+'span',_0x181015='min'+_0x1bc1f9,_0x22ef13='max'+_0x1bc1f9;if(!_0x57b3e1['isInContent'])continue;if(_0x5dc4c7!=_0x57b3e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x57b3e1['isIntersectingWithRange'](_0x145856))continue;const _0xa577ce=_0x35ee92['hasAttribute'](_0x2f32c6)?_0x35ee92['getAttribute'](_0x2f32c6)-0x1:0x0,_0x265f58=this['_getSuggestionCoords'](_0x57b3e1),_0x454e94=_0x265f58[_0x181015],_0x5c7b6d=_0x265f58[_0x22ef13];_0x454e94<=_0x2f714e[_0x5c5355]&&_0x2f714e[_0x5c5355]+_0xa577ce<=_0x5c7b6d&&(_0x57b3e1['addRange'](_0x145856),_0x3da3ac=!0x0);}return _0x3da3ac;};_0x3d9879['model']['document']['registerPostFixer'](_0x44334e=>{let _0x301b59=!0x1;for(const _0x5bab9b of _0x3d9879['model']['document']['differ']['getChanges']())if('insert'==_0x5bab9b['type']){if('tableRow'==_0x5bab9b['name']){for(const _0x53b653 of _0x5bab9b['position']['nodeAfter']['getChildren']())_0x301b59=_0x301b59||_0x18bfff(_0x53b653,_0x44334e);}else'tableCell'==_0x5bab9b['name']&&(_0x301b59=_0x301b59||_0x18bfff(_0x5bab9b['position']['nodeAfter'],_0x44334e));}return _0x301b59;});}['_getSuggestionCoords'](_0x1a9a47){return this['_getCoordsForCells'](_0x1a9a47['getRanges']()['map'](_0x381b5d=>_0x381b5d['start']['nodeAfter']));}}function Ee(_0x2415ea){return Array['from'](new Set(_0x2415ea)['values']());}class St extends _0x4e999c{static get['requires'](){return[jt];}['afterInit'](){const _0x3310b4=this['editor'],_0x25e7f5=_0x3310b4['model']['document']['selection'],_0x2458d2=_0x3310b4['locale'];if(!_0x3310b4['plugins']['has']('TableEditing'))return;const _0x1ab8ed=_0x3310b4['plugins']['get']('TrackChangesEditing'),_0x370bde=_0x3310b4['plugins']['get']('TableUtils'),_0x156bc6=_0x3310b4['plugins']['get'](jt);_0x156bc6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ab8ed['enableCommand']('mergeTableCells',()=>{const _0x2dce86=_0x370bde['getSelectionAffectedTableCells'](_0x3310b4['model']['document']['selection']);_0x3310b4['model']['change'](()=>{_0x1ab8ed['markMultiRangeBlockFormat'](_0x2dce86,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3310b4['commands']['get']('mergeTableCells')['on']('execute',(_0x2618e5,_0x19d760)=>{_0x3310b4['commands']['get']('trackChanges')['value']&&(_0x19d760['length']>0x0&&_0x19d760[_0x19d760['length']-0x1]&&_0x19d760[_0x19d760['length']-0x1]['forceDefaultExecution']||_0x1ab8ed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2618e5['stop']());},{'priority':'highest'});for(const _0x4b4cea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xd6b6ce=_0x3310b4['commands']['get'](_0x4b4cea);_0x1ab8ed['enableCommand'](_0x4b4cea,()=>{const _0x589752=_0x3310b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d3e70=>_0x5d3e70['is']('element','tableCell')),_0x4b159f=_0xd6b6ce['value'];_0x3310b4['model']['change'](()=>{_0x1ab8ed['markMultiRangeBlockFormat']([_0x589752,_0x4b159f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d24d5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b610a=_0x3310b4['commands']['get'](_0x3d24d5);_0x1ab8ed['enableCommand'](_0x3d24d5,()=>{const _0x4272b3=_0x370bde['getSelectionAffectedTableCells'](_0x3310b4['model']['document']['selection'])[0x0],_0x5102eb=_0x4272b3['findAncestor']('table'),{column:_0x2d95be,row:_0x1e925d}=_0x370bde['getCellLocation'](_0x4272b3);let _0x24e79e=[];if('horizontally'==_0x1b610a['direction']){const _0x52de06=_0x370bde['createTableWalker'](_0x5102eb,{'startRow':_0x1e925d,'endRow':_0x1e925d,'includeAllSlots':!0x0});_0x24e79e=Array['from'](_0x52de06)['map'](_0x309e5f=>_0x309e5f['cell']);}else{const _0xfac8e0=_0x370bde['createTableWalker'](_0x5102eb,{'column':_0x2d95be,'includeAllSlots':!0x0});_0x24e79e=Array['from'](_0xfac8e0)['map'](_0x45aff9=>_0x45aff9['cell']);}_0x3310b4['model']['change'](_0xfe9bf9=>{_0x1ab8ed['markBlockFormat'](_0xfe9bf9['createRangeOn'](_0x4272b3),{'commandName':_0x3d24d5,'commandParams':[]},_0x24e79e,_0x3d24d5);});});}_0x1ab8ed['descriptionFactory']['registerDescriptionCallback'](_0x443254=>{if('formatBlock'!=_0x443254['type']&&'formatInline'!=_0x443254['type'])return;const {data:_0x38899e}=_0x443254;return _0x38899e&&'mergeTableCells'==_0x38899e['commandName']?{'type':'format','content':o(_0x2458d2,'*Merge\x20cells*')}:void 0x0;}),_0x1ab8ed['descriptionFactory']['registerDescriptionCallback'](_0x224c77=>{if('formatBlock'!=_0x224c77['type']&&'formatInline'!=_0x224c77['type'])return;const {data:_0xb4a97b}=_0x224c77;return _0xb4a97b?'splitTableCellVertically'==_0xb4a97b['commandName']?{'type':'format','content':o(_0x2458d2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb4a97b['commandName']?{'type':'format','content':o(_0x2458d2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa99e70=_0x156bc6['_acceptFormatSuggestionCallbackFactory']();for(const _0xd779b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ab8ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd779b0,'accept',_0xa99e70);for(const _0x10c6aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ab8ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10c6aa,'accept',_0xa99e70);_0x1ab8ed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4700eb=>{_0x3310b4['model']['change'](_0x4e5931=>{const _0xa48c0f=Array['from'](_0x25e7f5['getRanges']())['map'](_0x4070f5=>_0x38a2be['fromRange'](_0x4070f5));_0x4e5931['setSelection'](_0x4700eb),_0x3310b4['commands']['get']('mergeTableCells')['refresh'](),_0x3310b4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5061b1=_0xa48c0f['filter'](_0x1a9f7c=>'$graveyard'!=_0x1a9f7c['root']['rootName']);_0x5061b1['length']>0x0&&_0x4e5931['setSelection'](_0x5061b1);for(const _0x5bd323 of _0xa48c0f)_0x5bd323['detach']();});});for(const _0x2fbe69 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31f17f=_0x3310b4['commands']['get'](_0x2fbe69);_0x31f17f['on']('set:isEnabled',(_0x2eff41,_0x124ede,_0x55c1b2)=>{if(_0x55c1b2){const _0xa2af4d=_0x3310b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x136fe8=>_0x136fe8['is']('element','tableCell'));this['_areMergableCells'](_0x31f17f['value'],_0xa2af4d)||(_0x2eff41['return']=!0x1,_0x2eff41['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x133b9c=this['editor']['commands']['get']('mergeTableCells'),_0x237b1c=this['editor']['plugins']['get']('TableUtils');if(!_0x133b9c['isEnabled'])return!0x1;const _0x781449=_0x237b1c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x105977 of _0x781449)for(const _0x38cf8b of _0x781449)if(_0x105977!=_0x38cf8b&&!this['_areMergableCells'](_0x105977,_0x38cf8b))return!0x1;return!0x0;}['_areMergableCells'](_0x4bb9db,_0x36b904){const _0x727f03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236c65=this['editor']['model']['createRangeOn'](_0x4bb9db),_0x59f874=this['editor']['model']['createRangeOn'](_0x36b904),_0x161ec0=new Set(),_0x3d0cd6=new Set();for(const _0x201edd of _0x727f03['getSuggestions']())if(('insertion'==_0x201edd['type']||'deletion'==_0x201edd['type']||'mergeTableCells'==_0x201edd['subType'])&&_0x201edd['isInContent']){for(const _0x559e49 of _0x201edd['getRanges']())_0x559e49['containsRange'](_0x236c65,!0x0)&&_0x161ec0['add'](_0x201edd['type']+':'+_0x201edd['author']['id']),_0x559e49['containsRange'](_0x59f874,!0x0)&&_0x3d0cd6['add'](_0x201edd['type']+':'+_0x201edd['author']['id']);}if(_0x161ec0['size']!=_0x3d0cd6['size'])return!0x1;for(const _0x1519fc of _0x161ec0)if(!_0x3d0cd6['has'](_0x1519fc))return!0x1;return!0x0;}}class At extends _0x4e999c{static get['requires'](){return[jt];}['afterInit'](){const _0x336ca7=this['editor'];if(!_0x336ca7['plugins']['has']('TableEditing'))return;const _0x3a6b2d=_0x336ca7['locale'],_0xabda96=_0x336ca7['plugins']['get']('TrackChangesEditing');_0xabda96['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xabda96['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xabda96['registerBlockAttribute']('headingRows'),_0xabda96['registerBlockAttribute']('headingColumns'),_0xabda96['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3a6b2d,'FORMAT_HEADER_ROW')),_0xabda96['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3a6b2d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bf852=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2179c9=this['editor']['plugins']['get']('TableUtils'),_0x33081b=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2eda61({showActiveMarker:_0x21bdaa=!0x0,setDataAttribute:_0x23c258=!0x0}={}){return(_0xa0d11,_0x3a9a06,_0x9256e3)=>{const {type:_0x41f600,id:_0x3d7b1e}=_0x3bf852['_splitMarkerName'](_0x3a9a06['markerName']),_0x4fc2fd=_0x3bf852['getSuggestion'](_0x3d7b1e),_0x37ac24=_0x4fc2fd['data'];if('formatBlock'!=_0x4fc2fd['type']||!_0x37ac24||'setTableColumnHeader'!=_0x37ac24['commandName'])return;if(_0x3a9a06['item'])return void _0xa0d11['stop']();if(!_0x9256e3['consumable']['consume'](_0x3a9a06['markerRange'],_0xa0d11['name']))return;const _0x8ab4fd=_0x3a9a06['markerRange']['start']['nodeAfter'],_0x9bd34a=_0x3a9a06['markerRange']['end']['nodeBefore'],_0x55c8ff=_0x8ab4fd['parent']['parent'],{column:_0x3f03b5}=_0x2179c9['getCellLocation'](_0x8ab4fd),{column:_0x155a0a}=_0x2179c9['getCellLocation'](_0x9bd34a);for(let _0x51666b=_0x3f03b5;_0x51666b<=_0x155a0a;_0x51666b++){const _0x4fa9f8=_0x2179c9['createTableWalker'](_0x55c8ff,{'column':_0x51666b,'includeAllSlots':!0x1});for(const _0x4621e3 of _0x4fa9f8){const _0x2bdc3d=_0x4621e3['cell'],_0xb0cffa=_0x9256e3['mapper']['toViewElement'](_0x2bdc3d);_0x9256e3['writer']['addClass']('ck-suggestion-marker-'+_0x41f600,_0xb0cffa),_0x23c258&&_0x9256e3['writer']['setAttribute']('data-suggestion',_0x3d7b1e,_0xb0cffa),_0x9256e3['mapper']['bindElementToMarker'](_0xb0cffa,_0x3a9a06['markerName']),_0x21bdaa&&(_0x3bf852['activeMarkers']['includes'](_0x3a9a06['markerName'])?_0x9256e3['writer']['addClass']('ck-suggestion-marker--active',_0xb0cffa):_0x9256e3['writer']['removeClass']('ck-suggestion-marker--active',_0xb0cffa));}}};}_0x3bf852['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33081b),_0x3bf852['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33081b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2eda61(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x413873,_0x17183b,_0x7dddec)=>{_0x7dddec['options']['showSuggestionHighlights']&&_0x2eda61({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x413873,_0x17183b,_0x7dddec);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x59efb1,_0x5f130c,_0xdba70a)=>{const {type:_0x42873a,id:_0x51723e}=_0x3bf852['_splitMarkerName'](_0x5f130c['markerName']),_0x400d54=_0x3bf852['getSuggestion'](_0x51723e),_0x5be865=_0x400d54['data'];if('formatBlock'!=_0x400d54['type']||!_0x5be865||'setTableColumnHeader'!=_0x5be865['commandName'])return;const _0x5486c0=_0xdba70a['mapper']['markerNameToElements'](_0x5f130c['markerName']);if(_0x5486c0){for(const _0x4ebce8 of _0x5486c0)_0xdba70a['writer']['removeClass']('ck-suggestion-marker-'+_0x42873a,_0x4ebce8),_0xdba70a['writer']['removeClass']('ck-suggestion-marker--active',_0x4ebce8),_0xdba70a['writer']['removeAttribute']('data-suggestion',_0x4ebce8),_0xdba70a['mapper']['unbindElementFromMarkerName'](_0x4ebce8,_0x5f130c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb46c27=this['editor'],_0x180110=_0xb46c27['locale'];function _0xb54f60(_0x5e7d15){return{'type':'format','content':o(_0x180110,'*Format:*\x20%0',_0x5e7d15)};}_0xb46c27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x804d84=>{if('formatBlock'!=_0x804d84['type'])return;const {data:_0x47f966}=_0x804d84;if(_0x47f966){if('setTableRowHeader'==_0x47f966['commandName']){const _0x1c4a31=_0x47f966['commandParams'][0x0]['forceValue'];return _0xb54f60(o(_0x180110,_0x1c4a31?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x47f966['commandName']){const _0x507c26=_0x47f966['commandParams'][0x0]['forceValue'];return _0xb54f60(o(_0x180110,_0x507c26?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x560559=>[_0x560559,null]));class It extends _0x4e999c{static get['requires'](){return[jt];}['afterInit'](){const _0x59fe44=this['editor'];if(!_0x59fe44['plugins']['has']('TableClipboard'))return;const _0x4cc7fe=_0x59fe44['plugins']['get']('TrackChangesEditing'),_0x478c24=_0x59fe44['plugins']['get']('TableUtils'),_0x5d7ba3=_0x59fe44['plugins']['get'](jt),_0x42c844=_0x59fe44['plugins']['get']('TableClipboard');_0x5d7ba3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59fe44['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59fe44['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x32f05c=null;_0x59fe44['model']['on']('insertContent',(_0x520e43,_0x5bc18e)=>{const [_0x26387d,_0xbd817b]=_0x5bc18e,_0x34e399=_0x5bc18e[_0x5bc18e['length']-0x1];_0x34e399&&_0x34e399['forceDefaultExecution']||_0x4cc7fe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c2b3a,_0x256a6b,_0x361c6c,_0x52ad56,_0x22f579){if(_0x256a6b&&!_0x256a6b['is']('documentSelection'))return!0x1;const _0xd44ba1=_0x22f579['getTableIfOnlyTableInContent'](_0x1c2b3a,_0x361c6c);if(!_0xd44ba1||!he(_0xd44ba1,void 0x0,_0x52ad56))return!0x1;const _0x356f03=_0x52ad56['getSelectionAffectedTableCells'](_0x361c6c['document']['selection']);if(!_0x356f03['length'])return!0x1;const _0x526a2e=_0x356f03[0x0]['findAncestor']('table'),_0x571170=_0x52ad56['getRowIndexes'](_0x356f03),_0x8500b3=_0x52ad56['getColumnIndexes'](_0x356f03),_0xa685b8={'startRow':_0x571170['first'],'endRow':_0x571170['last'],'startColumn':_0x8500b3['first'],'endColumn':_0x8500b3['last']};return 0x1==_0x356f03['length']&&(_0xa685b8['endRow']+=_0x52ad56['getRows'](_0xd44ba1)-0x1,_0xa685b8['endColumn']+=_0x52ad56['getColumns'](_0xd44ba1)-0x1),he(_0x526a2e,_0xa685b8,_0x52ad56);}(_0x26387d,_0xbd817b,_0x59fe44['model'],_0x478c24,_0x42c844)&&(_0x520e43['stop'](),_0x32f05c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59fe44['model']['change'](()=>{_0x59fe44['model']['insertContent'](_0x5bc18e[0x0],_0x5bc18e[0x1],_0x5bc18e[0x2],{'forceDefaultExecution':!0x0});const _0x22fc56=_0x4cf88e(),{rowInsertionRanges:_0x2868a7,columnInsertionRanges:_0x34200b,insertionRanges:_0x15841c,deletionRanges:_0x1ebc73,cells:_0x56b451}=_0x32f05c;_0x2868a7['length']&&_0x4cc7fe['markMultiRangeInsertion'](_0x2868a7,'tablePasteRow',{'tablePasteChainId':_0x22fc56}),_0x34200b['length']&&_0x4cc7fe['markMultiRangeInsertion'](_0x34200b,'tablePasteColumn',{'tablePasteChainId':_0x22fc56}),_0x15841c['length']&&(_0x4cc7fe['markMultiRangeInsertion'](_0x15841c,'tablePaste',{'tablePasteChainId':_0x22fc56,'skipNestingCheck':!0x0}),_0x15841c['forEach'](_0x2ce388=>_0x2ce388['detach']?.())),_0x1ebc73['length']&&(_0x4cc7fe['markMultiRangeDeletion'](_0x1ebc73,'tablePaste',{'tablePasteChainId':_0x22fc56,'skipNestingCheck':!0x0}),_0x1ebc73['forEach'](_0x525c5e=>_0x525c5e['detach']?.()));const _0x2de8f1=_0x4cc7fe['markMultiRangeBlockFormat'](_0x56b451['map'](({element:_0x4f58f0})=>_0x4f58f0),{'formatGroupId':_0x4cf88e()},[],'tablePasteCell',{'tablePasteChainId':_0x22fc56});if(_0x2de8f1){const _0x179424=_0x2de8f1['getMarkers'](),_0x157ebb=[];for(const {element:_0x538d78,attributes:_0x42569e}of _0x56b451){if(!_0x42569e)continue;const _0x25c09c=_0x59fe44['model']['createRangeOn'](_0x538d78),_0x126305=_0x179424['find'](_0x4eb09f=>_0x4eb09f['getRange']()['isEqual'](_0x25c09c));_0x126305&&_0x157ebb['push']([_0x126305['name'],_0x42569e]);}_0x157ebb['length']&&_0x2de8f1['setAttribute']('markerAttributes',Object['fromEntries'](_0x157ebb));}_0x32f05c=null;}));},{'priority':_0x52ae77['high']+0xa}),_0x59fe44['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x200eb5,_0x2c8d28)=>{const [_0x1f60bf,_0x8dfe2,,_0x18e7ea]=_0x2c8d28;if(!_0x32f05c)return;_0x200eb5['stop']();const _0x588524=_0x1f60bf['cell'],_0x38b8df=_0x8dfe2,_0x338845=Pe(_0x588524),_0x3d1b0f=Pe(_0x38b8df);_0x200eb5['return']=_0x588524;let _0x264777=null,_0x362f14=null;if(_0x3d1b0f||_0x338845){if(_0x338845&&!_0x3d1b0f){_0x18e7ea['remove'](_0x588524['getChild'](0x0));for(const _0x43469f of Array['from'](_0x38b8df['getChildren']()))_0x18e7ea['insert'](_0x43469f,_0x588524,'end');const _0x4ba702=_0x32f05c['rowInsertionIndexes']['includes'](_0x1f60bf['row']),_0x2f4349=_0x32f05c['columnInsertionIndexes']['includes'](_0x1f60bf['column']);_0x4ba702||_0x2f4349||(_0x264777=_0x38a2be['fromRange'](_0x18e7ea['createRangeIn'](_0x588524)));}else _0x3d1b0f&&!_0x338845&&(_0x362f14=_0x18e7ea['createRangeIn'](_0x588524));}else{const _0xdd54f3=_0x18e7ea['createElement']('tableCellSuggestion'),_0x48a828=_0x18e7ea['createElement']('tableCellSuggestion');_0x18e7ea['wrap'](_0x18e7ea['createRangeIn'](_0x588524),_0x48a828),_0x18e7ea['insert'](_0xdd54f3,_0x588524,0x0);for(const _0x52260f of Array['from'](_0x38b8df['getChildren']()))_0x18e7ea['insert'](_0x52260f,_0xdd54f3,'end');_0x264777=_0x38a2be['fromRange'](_0x18e7ea['createRangeOn'](_0xdd54f3)),_0x362f14=_0x38a2be['fromRange'](_0x18e7ea['createRangeOn'](_0x48a828));}const _0x5f17bf=Array['from'](_0x38b8df['getAttributes']())['filter'](([_0x19d57c])=>ge['includes'](_0x19d57c));_0x32f05c['cells']['push']({'element':_0x588524,'attributes':_0x5f17bf['length']?Object['fromEntries'](_0x5f17bf):null}),_0x264777&&_0x32f05c['insertionRanges']['push'](_0x264777),_0x362f14&&_0x32f05c['deletionRanges']['push'](_0x362f14);},{'priority':'high'}),_0x478c24['on']('insertColumns',(_0x138f35,_0x526cb9)=>{const [_0xccb999,_0x2825bb={}]=_0x526cb9;if(!_0x32f05c)return;const _0x17d817=_0x2825bb['at']||0x0,_0xa9d264=_0x2825bb['columns']||0x1;_0x32f05c['columnInsertionIndexes']=new Array(_0xa9d264)['fill'](_0x17d817)['map']((_0x14db3a,_0x177101)=>_0x14db3a+_0x177101);for(const {cell:_0x4c74e4}of _0x478c24['createTableWalker'](_0xccb999,{'startColumn':_0x17d817,'endColumn':_0x17d817+_0xa9d264-0x1}))_0x32f05c['columnInsertionRanges']['push'](_0x59fe44['model']['createRangeOn'](_0x4c74e4));},{'priority':'low'}),_0x478c24['on']('insertRows',(_0x11cbd1,_0x1eba53)=>{const [_0x479fff,_0x2981b1={}]=_0x1eba53;if(!_0x32f05c)return;const _0x128ec1=_0x2981b1['at']||0x0,_0x3a7894=_0x2981b1['rows']||0x1;_0x32f05c['rowInsertionIndexes']=new Array(_0x3a7894)['fill'](_0x128ec1)['map']((_0x1526d6,_0x13274d)=>_0x1526d6+_0x13274d);for(const {cell:_0x1bfad2}of _0x478c24['createTableWalker'](_0x479fff,{'startRow':_0x128ec1,'endRow':_0x128ec1+_0x3a7894-0x1}))_0x32f05c['rowInsertionRanges']['push'](_0x59fe44['model']['createRangeOn'](_0x1bfad2));},{'priority':'low'}),_0x4cc7fe['descriptionFactory']['registerDescriptionCallback'](_0x988447=>{if(_0x988447['subType']&&_0x988447['subType']['startsWith']('tablePaste'))return _0x988447['previous']?{}:{'type':'insertion','content':o(_0x59fe44['locale'],'*Replace\x20table\x20cells*')};});const _0x14700d=()=>!0x1;for(const _0x390602 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('insertion',_0x390602,'join',_0x14700d),_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('deletion',_0x390602,'join',_0x14700d),_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x390602,'join',_0x14700d);_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14700d),_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b063c,_0x10b566,_0x1a738f)=>{const _0x285802=_0x4b063c['map'](_0x54fbcc=>_0x54fbcc['getContainedElement']())['filter'](_0x3f506f=>_0x3f506f),_0xfd6e47=new Map(_0x285802['map'](_0x2f6b34=>[_0x2f6b34,null]));if(_0x32f05c){for(const {element:_0x3cc91c,attributes:_0x175a7d}of _0x32f05c['cells'])_0x175a7d&&_0xfd6e47['set'](_0x3cc91c,_0x175a7d);}else{if(_0x1a738f&&_0x1a738f['markerAttributes'])for(const [_0x5bc66c,_0x4f8bf3]of Object['entries'](_0x1a738f['markerAttributes'])){const _0x1c4d8a=_0x59fe44['model']['markers']['get'](_0x5bc66c),_0x263f68=_0x1c4d8a?_0x1c4d8a['getRange']()['getContainedElement']():null;_0x263f68&&_0xfd6e47['set'](_0x263f68,_0x4f8bf3);}}_0x59fe44['model']['change'](_0x51c871=>{for(const [_0x31e436,_0x44626c]of _0xfd6e47)_0x51c871['setAttributes']({...Ce,..._0x44626c},_0x31e436);});});const _0x8f6e70=(_0xfd3a7a,_0x3f2dd1)=>{_0x4cc7fe['_suggestionFactory']['registerCustomCallback'](_0xfd3a7a,'tablePaste',_0x3f2dd1,(_0x576d8f,_0x13ff18,_0x5e7255)=>{_0x59fe44['model']['change'](_0x2f9ba2=>{const _0x400705=[];for(const _0x2aa88e of _0x576d8f){const _0x3206d5=_0x2aa88e['start']['nodeAfter'];_0x3206d5['is']('element','tableCellSuggestion')&&_0x400705['push'](_0x3206d5);}_0x4cc7fe['_suggestionFactory']['getSuggestionCallback'](_0xfd3a7a,null,_0x3f2dd1)(_0x576d8f,_0x13ff18,_0x5e7255);for(const _0xc00f5b of _0x400705)'$graveyard'!=_0xc00f5b['root']['rootName']&&_0x2f9ba2['unwrap'](_0xc00f5b);});});};_0x8f6e70('insertion','accept'),_0x8f6e70('insertion','discard'),_0x8f6e70('deletion','accept'),_0x8f6e70('deletion','discard'),_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x18f558=>{const _0x13b324=_0x18f558['map'](_0x3e7f9f=>_0x3e7f9f['getContainedElement']()),_0x4b730a=_0x13b324[0x0]['findAncestor']('table'),{minRow:_0x44a6a1,maxRow:_0x57d140}=_0x5d7ba3['_getCoordsForCells'](_0x13b324);_0x478c24['removeRows'](_0x4b730a,{'at':_0x44a6a1,'rows':_0x57d140-_0x44a6a1+0x1});}),_0x4cc7fe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e8148=>{const _0x2383b8=_0x2e8148['map'](_0x388c83=>_0x388c83['getContainedElement']()),_0x16b936=_0x2383b8[0x0]['findAncestor']('table'),{minColumn:_0x57683b,maxColumn:_0x333b2e}=_0x5d7ba3['_getCoordsForCells'](_0x2383b8);_0x478c24['removeColumns'](_0x16b936,{'at':_0x57683b,'columns':_0x333b2e-_0x57683b+0x1});});const _0x398b27=(_0x533b6f,_0x481121)=>{if(!_0x481121['subType']||!_0x481121['subType']['startsWith']('tablePaste'))return;const _0x4b3e3b=_0x481121['attributes']['tablePasteChainId'],_0x102636=_0x4cc7fe['getSuggestions']()['filter'](_0x4634c8=>_0x4634c8['isInContent']&&_0x4634c8['attributes']&&_0x4634c8['attributes']['tablePasteChainId']==_0x4b3e3b);_0x102636['length']&&_0x481121['getAllAdjacentSuggestions']()['length']!=_0x102636['length']&&_0x102636['reduce']((_0x3a0439,_0x1da511)=>(_0x3a0439['next']=_0x1da511,_0x1da511['previous']=_0x3a0439,_0x1da511));};function _0x797124(_0x196000,_0x335f49=!0x0){const {id:_0x3c6227}=_0x4cc7fe['_splitMarkerName'](_0x196000['markerName']),_0x4106a3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x421473=_0x4cc7fe['activeMarkers']['includes'](_0x196000['markerName']);return _0x421473&&_0x4106a3['push']('ck-suggestion-marker--active'),{'classes':_0x4106a3,'attributes':{'data-suggestion':_0x3c6227},'priority':_0x421473&&_0x335f49?0xbc2:0xbb8};}_0x4cc7fe['on']('suggestionLoaded',_0x398b27,{'priority':'high'}),_0x4cc7fe['on']('suggestionUnloaded',_0x398b27,{'priority':'high'}),_0x59fe44['model']['document']['registerPostFixer'](()=>{let _0x290eba=!0x1;const _0x16a845=Array['from'](_0x59fe44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3831e2,data:_0x355d4d}of _0x16a845){const {group:_0x111736,type:_0x20e5b8,id:_0x4f49db}=_0x4cc7fe['_splitMarkerName'](_0x3831e2);if('suggestion'!=_0x111736||'deletion'!=_0x20e5b8||_0x355d4d['oldRange'])continue;if(!_0x4cc7fe['hasSuggestion'](_0x4f49db))continue;const _0x3d0b73=_0x4cc7fe['getSuggestion'](_0x4f49db)['getRanges'](),_0x373013=_0x59fe44['plugins']['get']('Users')['me'];for(const _0x209461 of _0x4cc7fe['getSuggestions']()){if(!_0x209461['isInContent']||_0x209461['author']!=_0x373013)continue;if('formatBlock'!=_0x209461['type']||'tablePasteCell'!=_0x209461['subType'])continue;if(_0x209461['getRanges']()['every'](_0x53d604=>_0x3d0b73['some'](_0x351b7f=>_0x351b7f['containsRange'](_0x53d604,!0x0)))){for(const _0x75aed5 of _0x209461['getAllAdjacentSuggestions']())_0x75aed5['isInContent']&&(_0x75aed5['discard'](),_0x290eba=!0x0);}}}return _0x290eba;}),_0x59fe44['model']['document']['registerPostFixer'](_0x209281=>{const _0x44fcd0=_0x59fe44['commands']['get']('redo');if(!_0x44fcd0||!_0x44fcd0['_createdBatches']['has'](_0x209281['batch']))return!0x1;let _0x139069=!0x1;const _0x49a514=_0x59fe44['plugins']['get']('Users')['me'],_0x5ecde0=_0x59fe44['model']['document']['differ']['getChanges'](),_0x3806d7=Array['from'](_0x59fe44['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5bf8b6,data:_0x211b77})=>{const {group:_0x101a5a,subType:_0x25723d,authorId:_0x49fc64}=_0x4cc7fe['_splitMarkerName'](_0x5bf8b6);return'suggestion'==_0x101a5a&&'tablePaste'==_0x25723d&&_0x49fc64==_0x49a514['id']&&!_0x211b77['oldRange'];});for(const _0x47d4c4 of _0x5ecde0){if('insert'!=_0x47d4c4['type']||'tableCellSuggestion'!=_0x47d4c4['name']||0x1!=_0x47d4c4['length'])continue;const _0x26cb07=_0x209281['createRange'](_0x47d4c4['position'],_0x47d4c4['position']['getShiftedBy'](0x1));if(!_0x3806d7['find'](({data:_0x238511})=>_0x238511['newRange']['isEqual'](_0x26cb07))){for(const {name:_0x405f0d,data:_0x130325}of _0x3806d7)if(_0x26cb07['containsRange'](_0x130325['newRange'])){_0x209281['updateMarker'](_0x405f0d,{'range':_0x26cb07}),_0x139069=!0x0;break;}}}return _0x139069;}),_0x59fe44['model']['document']['registerPostFixer'](_0x50da5c=>{let _0xd65179=!0x1;const _0x50361b=_0x59fe44['plugins']['get']('Users')['me'],_0x130d1a=_0x4cc7fe['getSuggestions']()['filter'](_0x23e759=>_0x23e759['isInContent']&&_0x23e759['author']==_0x50361b),_0x595db8=new Set(),_0x248361=new Set();for(const _0x2730b0 of _0x130d1a)if('tablePaste'==_0x2730b0['subType'])for(const _0x2e3cc2 of _0x2730b0['getMarkers']()){const _0x1ded2c=_0x2e3cc2['getRange']()['getContainedElement']();if(_0x1ded2c){if(_0x1ded2c['is']('element','tableCellSuggestion')&&Pe(_0x1ded2c)){_0x2730b0['removeMarker'](_0x2e3cc2['name']),_0x595db8['add'](_0x1ded2c),_0xd65179=!0x0;const _0x493433=_0x1ded2c['nextSibling'],_0x1ba1f2=_0x1ded2c['previousSibling'],_0x4000b=_0x493433&&_0x493433['is']('element','tableCellSuggestion'),_0x11abfb=_0x1ba1f2&&_0x1ba1f2['is']('element','tableCellSuggestion');_0x4000b&&!_0x595db8['has'](_0x493433)&&_0x248361['add'](_0x493433),_0x11abfb&&!_0x595db8['has'](_0x1ba1f2)&&_0x248361['add'](_0x1ba1f2);}else _0x1ded2c['is']('element','paragraph')&&_0x1ded2c['isEmpty']&&(_0x2730b0['removeMarker'](_0x2e3cc2['name']),_0xd65179=!0x0);}}else{if('tablePasteCell'==_0x2730b0['subType']){if(!_0x2730b0['attributes']||!_0x2730b0['attributes']['tablePasteChainId'])continue;const _0x27d917=_0x2730b0['attributes']['markerAttributes'];if(_0x27d917&&Object['keys'](_0x27d917)['length'])continue;const _0x43350b=_0x2730b0['attributes']['tablePasteChainId'];let _0xe320af=!0x0,_0x57e505=!0x0;for(const _0xeb4442 of _0x130d1a)if(_0xeb4442['subType']&&_0xeb4442['subType']['startsWith']('tablePaste')){if(!_0xeb4442['attributes']['tablePasteChainId']){_0x57e505=!0x1;break;}if(_0xeb4442['id']!=_0x2730b0['id']&&_0xeb4442['attributes']['tablePasteChainId']==_0x43350b){_0xe320af=!0x1;break;}}_0x57e505&&_0xe320af&&(_0x2730b0['removeMarkers'](),_0xd65179=!0x0);}}for(const _0x486f10 of _0x595db8)_0x50da5c['remove'](_0x486f10);for(const _0x107cd3 of _0x248361)_0x50da5c['unwrap'](_0x107cd3);return _0xd65179;}),_0x59fe44['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f7236,_0x513817)=>_0x797124(_0x4f7236),'converterPriority':'high'}),_0x59fe44['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2473b6,_0x47cdf1)=>_0x47cdf1['options']['showSuggestionHighlights']?_0x797124(_0x2473b6,!0x1):null,'converterPriority':'high'});const _0x2ca612=_0x59fe44['editing']['view'];this['listenTo'](_0x2ca612['document'],'clipboardOutput',(_0x307d9e,_0x1ab95b)=>{const _0x2a8c95=[];for(const _0x511172 of _0x2ca612['createRangeIn'](_0x1ab95b['content'])['getItems']())_0x511172['is']('element','suggestion-td')&&_0x2a8c95['push'](_0x511172);_0x2ca612['change'](_0xe7ef2c=>{for(const _0x5b107f of _0x2a8c95)_0xe7ef2c['move'](_0xe7ef2c['createRangeIn'](_0x5b107f),_0xe7ef2c['createPositionBefore'](_0x5b107f)),_0xe7ef2c['remove'](_0x5b107f);});});}}function Pe(_0x45cc3e){if(_0x45cc3e['isEmpty'])return!0x0;const _0x36a097=_0x45cc3e['getChild'](0x0);return _0x36a097['is']('element','paragraph')&&_0x36a097['isEmpty'];}function he(_0x2cc2b7,_0x8be534={},_0x43ba2d){for(const {isAnchor:_0x49a9bb,cellHeight:_0xf4e271,cellWidth:_0x40d712}of _0x43ba2d['createTableWalker'](_0x2cc2b7,{'includeAllSlots':!0x0,..._0x8be534}))if(!_0x49a9bb||0x1!=_0xf4e271||0x1!=_0x40d712)return!0x1;return!0x0;}class vt extends _0x4e999c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3fa7cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fa7cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3fa7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3fa7cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fa7cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3fa7cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3fa7cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3d58f9,_0x18d304){const _0xbcc6c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481002=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49a210=_0x18d304['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x543cec=_0x481002['getColumnGroupElement'](_0x49a210);let _0x174af2=_0x543cec?_0x481002['getTableColumnsWidths'](_0x543cec):null,_0x1ac24f=_0x49a210['getAttribute']('tableWidth')||null;const _0x30de38=_0x18d304['tableWidth']||_0x1ac24f,_0x5d1673=_0x18d304['columnWidths']||_0x174af2,_0x3d8201=this['editor']['plugins']['get']('Users')['me'];for(const _0x2eec9e of _0xbcc6c6['getSuggestions']()){const _0x56f802=_0x2eec9e['getContainedElement']();if('resizeTable'===_0x2eec9e['subType']&&_0x56f802===_0x49a210){_0x2eec9e['author']!==_0x3d8201&&_0x2eec9e['discard']();const _0x11737a=_0x2eec9e['data']['commandParams'];_0x1ac24f=_0x11737a[0x0]['tableWidth'],_0x174af2=_0x11737a[0x0]['columnWidths'];break;}}_0x3d58f9({'table':_0x49a210,'tableWidth':_0x30de38,'columnWidths':_0x5d1673}),_0xbcc6c6['markBlockFormat'](_0x49a210,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ac24f,'columnWidths':_0x174af2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x40c193){if('formatBlock'!=_0x40c193['type']&&'formatInline'!=_0x40c193['type'])return;const {data:_0x21719c}=_0x40c193;if(_0x21719c&&'resizeTable'===_0x21719c['formatGroupId']){const _0x390c92='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x390c92)};}}}class Ct extends _0x4e999c{['afterInit'](){const _0x135d43=this['editor'];_0x135d43['plugins']['has']('Template')&&_0x135d43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4e999c{['afterInit'](){const _0x28dfd7=this['editor'];if(!_0x28dfd7['commands']['get']('insertTableOfContents'))return;_0x28dfd7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x385b27=_0x28dfd7['plugins']['get']('TrackChangesEditing'),_0x15062f=_0x28dfd7['locale'];_0x385b27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2f519f=>o(_0x15062f,'ELEMENT_TABLE_OF_CONTENTS',_0x2f519f));}}class Dt extends _0x4e999c{['afterInit'](){const _0x338e97=this['editor'];if(!_0x338e97['plugins']['has']('Title'))return;const _0x233cef=_0x338e97['plugins']['get']('TrackChangesEditing');_0x233cef['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x338e97['locale'],'ELEMENT_TITLE')),_0x338e97['model']['document']['registerPostFixer'](_0x5cf34c=>{let _0x560ecf=!0x1;const _0x344c8d=Array['from'](_0x338e97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29f503,data:_0x497b34}of _0x344c8d){const {group:_0x365a44}=_0x233cef['_splitMarkerName'](_0x29f503);if('suggestion'!==_0x365a44||!_0x497b34['newRange'])continue;const _0x5eb462=_0x497b34['newRange'],_0x34a11a=_0x5eb462['end']['nodeBefore'];if(!_0x34a11a||!_0x34a11a['is']('element','title-content'))continue;if(!_0x5eb462['start']['isTouching'](_0x5eb462['end']))continue;const _0xceb0f5=_0x338e97['model']['schema']['getNearestSelectionRange'](_0x5eb462['end'],'forward');if(_0xceb0f5&&_0xceb0f5['isCollapsed']){const _0x3c0d26=_0x5cf34c['createRange'](_0x5eb462['start'],_0xceb0f5['start']);_0x3c0d26['isEqual'](_0x5eb462)||(_0x5cf34c['updateMarker'](_0x29f503,{'range':_0x3c0d26}),_0x560ecf=!0x0);}_0x560ecf||(_0x5cf34c['removeMarker'](_0x29f503),_0x560ecf=!0x0);}return _0x560ecf;});}}class Nt extends _0x4e999c{['afterInit'](){const _0x19b6ab=this['editor'],_0x58327b=_0x19b6ab['plugins']['get']('TrackChangesEditing');_0x19b6ab['plugins']['has']('UndoEditing')&&(_0x58327b['enableCommand']('undo'),_0x58327b['enableCommand']('redo'));}}class Mt extends _0x4e999c{static get['requires'](){return[jt];}['afterInit'](){const _0x28f884=this['editor'];if(!_0x28f884['plugins']['has']('TableCaptionEditing'))return;_0x28f884['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4e999c{['tableProperties'];['tableCellProperties'];constructor(_0x25262b){super(_0x25262b),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 _0x2f9038=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x295c3c of this['tableProperties'])_0x2f9038['enableCommand'](_0x295c3c,(_0x19e0ee,_0x27b144)=>{const _0x52269c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x295c3c,[_0x52269c],this['tableProperties'],'tableProperties',_0x19e0ee,_0x27b144);});_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f9038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d62ad,_0x418363)=>this['handleDiscardAction'](this['tableProperties'],_0x5d62ad,_0x418363)),_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f9a6f of this['tableCellProperties'])_0x2f9038['enableCommand'](_0x1f9a6f,(_0x143bd0,_0x121147)=>{const _0x1d043d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f9a6f,_0x1d043d,this['tableCellProperties'],'tableCellProperties',_0x143bd0,_0x121147);});_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f9038['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e8067,_0x127deb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e8067,_0x127deb)),_0x2f9038['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f9038['descriptionFactory']['registerDescriptionCallback'](_0x2ae58d=>this['handleSuggestionDescription'](_0x2ae58d));}['_handlePropertyChange'](_0x3bd859,_0x1ddd7a,_0x1be1f4,_0x533532,_0x243a36,_0x41ade0){const _0x2f9e3a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41ade0['batch'],()=>{for(const _0xc43b17 of _0x1ddd7a){if(this['_getSuggestion'](_0xc43b17,_0x533532))_0x243a36(_0x41ade0);else{const _0x46ef07={};for(const _0x3ab2f4 of _0x1be1f4){const _0x54ba96=_0xc43b17['getAttribute'](_0x3ab2f4);void 0x0!==_0x54ba96&&(_0x46ef07[_0x3ab2f4]=_0x54ba96);}_0x243a36(_0x41ade0),_0x2f9e3a['markBlockFormat'](_0xc43b17,{'commandParams':[_0x46ef07]},[],_0x533532);}}});}['handleDiscardAction'](_0xa47926,_0x19daf0,_0x41e63d){const _0xd5bc1d=_0x19daf0[0x0]['start']['nodeAfter'],_0x3c5e45=_0x41e63d['commandParams'][0x0];this['editor']['model']['change'](_0xec1a9d=>{for(const _0x5204a8 of _0xa47926)void 0x0!==_0x3c5e45[_0x5204a8]?_0xec1a9d['setAttribute'](_0x5204a8,_0x3c5e45[_0x5204a8],_0xd5bc1d):_0xec1a9d['removeAttribute'](_0x5204a8,_0xd5bc1d);});}['handleSuggestionDescription'](_0x3f2899){if(_0x3f2899['data'])switch(_0x3f2899['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'](_0x5b1b03,_0x6e5654){const _0x30e561=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x41cb34 of _0x30e561['getSuggestions']({'skipNotAttached':!0x0})){const _0x706751=_0x41cb34['getContainedElement']();if(_0x41cb34['subType']===_0x6e5654&&_0x706751===_0x5b1b03)return _0x41cb34;}return null;}}const m='$elementName';class p extends _0x4e999c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5d340e,_0x438631,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(_0x548480){function _0x7ba762(_0x34ca32){return _0x34ca32['map'](_0x2ca992=>String['fromCharCode'](_0x2ca992))['join']('');}super(_0x548480),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5bf41a,_0x4e843a,_0x37d6d8,_0x23965a)=>{this['_model']['change'](()=>{for(const _0x3c351a of[..._0x23965a,..._0x37d6d8])this['_model']['markers']['has'](_0x3c351a)&&_0x548480['editing']['reconvertMarker'](_0x3c351a);});}),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']=_0x548480['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(),_0x548480['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x548480['config']['get']('trackChanges.trackFormatChanges'),_0x548480['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x548480['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x548480,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x7ba762([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x7ba762([0x34,0x30,0x34,0x38,0x31,0x32,0x34,0x32]);}['init'](){const _0x1d8157=this['editor'],_0x5c62f0=(_0x3f22fe,_0x2158bb)=>{if('attribute'!=_0x3f22fe)return'ck-suggestion-marker-'+_0x3f22fe;const _0x58674e=_0x2158bb['split']('|')[0x0];return this['_isBlockAttribute'](_0x58674e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d8157['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc9c4a9=>{const {id:_0x36c3bc,type:_0x2fd5a2,subType:_0x4ebc33}=this['_splitMarkerName'](_0xc9c4a9['markerName']),_0x40a37c=['ck-suggestion-marker',_0x5c62f0(_0x2fd5a2,_0x4ebc33)];let _0x59511e=0xbb8;return this['activeMarkers']['includes'](_0xc9c4a9['markerName'])&&(_0x40a37c['push']('ck-suggestion-marker--active'),_0x59511e=0xbc2),'deletion'==_0x2fd5a2&&(_0x59511e+=0x5),{'classes':_0x40a37c,'attributes':{'data-suggestion':_0x36c3bc},'priority':_0x59511e};}}),_0x1d8157['conversion']['for']('dataDowncast')['add'](_0x108e69=>{_0x108e69['on']('addMarker:suggestion',(_0xe6af2,_0x572f37,_0x5270bc)=>{if(!_0x5270bc['options']['showSuggestionHighlights'])return;const _0x4dde01=_0x572f37['item'];if(!_0x4dde01)return;const _0x4edfc2=_0x5270bc['mapper']['toViewElement'](_0x4dde01);_0x1d8157['model']['schema']['isObject'](_0x4dde01)&&_0x4edfc2&&!_0x4edfc2['getCustomProperty']('widget')&&_0x4edfc2['is']('containerElement')&&_0x493bb3(_0x4edfc2,_0x5270bc['writer']);},{'priority':'high'});}),_0x1d8157['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1ef9c0,_0x11cf5d)=>{if(!_0x11cf5d['options']['showSuggestionHighlights'])return null;const {type:_0x5107bc,subType:_0x222b41}=this['_splitMarkerName'](_0x1ef9c0['markerName']);return{'classes':['ck-suggestion-marker',_0x5c62f0(_0x5107bc,_0x222b41)],'priority':0xbb8};}});const _0x5a3c01=({showActiveMarkers:_0x430f53=!0x0,isAttributeSuggestion:_0x4b625d=!0x1}={})=>(_0x160bc2,_0x1eb437,_0x529d04)=>{if(!_0x1eb437['item'])return;const {id:_0x311c99}=this['_splitMarkerName'](_0x1eb437['markerName']);if(_0x4b625d){const _0x1847f9=this['_suggestions']['get'](_0x311c99),_0x4464e1=this['_getAttributeKey'](_0x1847f9);if(!this['_isBlockAttribute'](_0x4464e1))return;}if(_0x1eb437['item']['is']('selection'))return void _0x529d04['consumable']['consume'](_0x1eb437['item'],_0x160bc2['name']);const _0x15d3d8=_0x529d04['mapper']['toViewElement'](_0x1eb437['item']);if(_0x1eb437['item']['is']('element')&&_0x1d8157['model']['schema']['isBlock'](_0x1eb437['item'])&&!_0x15d3d8['getCustomProperty']('addHighlight')){_0x529d04['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15d3d8),_0x529d04['writer']['setAttribute']('data-suggestion',_0x311c99,_0x15d3d8),_0x529d04['mapper']['bindElementToMarker'](_0x15d3d8,_0x1eb437['markerName']),_0x430f53&&(this['activeMarkers']['includes'](_0x1eb437['markerName'])?_0x529d04['writer']['addClass']('ck-suggestion-marker--active',_0x15d3d8):_0x529d04['writer']['removeClass']('ck-suggestion-marker--active',_0x15d3d8));for(const _0x5acf63 of _0x1d8157['model']['createRangeIn'](_0x1eb437['item'])['getItems']())_0x529d04['consumable']['consume'](_0x5acf63,_0x160bc2['name']);_0x529d04['consumable']['consume'](_0x1eb437['item'],_0x160bc2['name']);}};_0x1d8157['conversion']['for']('dataDowncast')['add'](_0x3fd33f=>{_0x3fd33f['on']('addMarker:suggestion:formatBlock',(_0x5434a5,_0x3f97e7,_0x310f78)=>{_0x310f78['options']['showSuggestionHighlights']&&_0x5a3c01({'showActiveMarkers':!0x1})(_0x5434a5,_0x3f97e7,_0x310f78);},{'priority':'highest'});}),_0x1d8157['conversion']['for']('dataDowncast')['add'](_0xb2521a=>{_0xb2521a['on']('addMarker:suggestion:attribute',(_0x5cac92,_0x1240fe,_0x54fec6)=>{_0x54fec6['options']['showSuggestionHighlights']&&_0x5a3c01({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5cac92,_0x1240fe,_0x54fec6);},{'priority':'highest'});}),_0x1d8157['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d4b88,_0x1c9598)=>_0x1c9598['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4d4b88['substr'](0xb)}}),_0x1d8157['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4855c7,{writer:_0x1caf39})=>{let _0x5c0a44='suggestion:'+_0x4855c7['getAttribute']('suggestion-type')+':'+_0x4855c7['getAttribute']('id');return _0x4855c7['getAttribute']('marker-count')&&(_0x5c0a44+=':'+_0x4855c7['getAttribute']('marker-count')),_0x1caf39['createElement']('$marker',{'data-name':_0x5c0a44});}}),_0x1d8157['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d8157['conversion']['for']('editingDowncast')['add'](_0x3b9828=>{_0x3b9828['on']('addMarker:suggestion:formatBlock',_0x5a3c01(),{'priority':'high'});}),_0x1d8157['conversion']['for']('editingDowncast')['add'](_0x285928=>{_0x285928['on']('addMarker:suggestion:attribute',_0x5a3c01({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d8157['conversion']['for']('editingDowncast')['add'](_0x516d81=>{_0x516d81['on']('removeMarker:suggestion:formatBlock',(_0x697dce,_0x48bd65,_0x32d825)=>{const _0x1a739e=_0x32d825['mapper']['markerNameToElements'](_0x48bd65['markerName']);if(_0x1a739e){for(const _0x5597e1 of _0x1a739e)_0x5597e1['getCustomProperty']('addHighlight')||(_0x32d825['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5597e1),_0x32d825['writer']['removeAttribute']('data-suggestion',_0x5597e1),_0x32d825['mapper']['unbindElementFromMarkerName'](_0x5597e1,_0x48bd65['markerName']));}},{'priority':'high'});}),_0x1d8157['conversion']['for']('editingDowncast')['add'](_0x367f85=>{_0x367f85['on']('removeMarker:suggestion:attribute',(_0x3e65be,_0x15b594,_0x3e6879)=>{const _0x508447=_0x3e6879['mapper']['markerNameToElements'](_0x15b594['markerName']);if(!_0x508447)return;const {id:_0x2d3b9b}=this['_splitMarkerName'](_0x15b594['markerName']),_0x189b19=this['_suggestions']['get'](_0x2d3b9b),_0x4281a7=this['_getAttributeKey'](_0x189b19);if(this['_isBlockAttribute'](_0x4281a7)){for(const _0x1508ef of _0x508447)_0x1508ef['getCustomProperty']('addHighlight')||(_0x3e6879['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1508ef),_0x3e6879['writer']['removeAttribute']('data-suggestion',_0x1508ef),_0x3e6879['mapper']['unbindElementFromMarkerName'](_0x1508ef,_0x15b594['markerName']));}},{'priority':'high'});}),_0x1d8157['model']['document']['registerPostFixer'](_0xff5a63=>{let _0x4a2ae1=!0x1;const _0x519b66=Array['from'](_0x1d8157['model']['document']['differ']['getChangedMarkers']()),_0x574eda=new Set();for(const {name:_0x3dfa58,data:_0x5f2d2d}of _0x519b66){const {group:_0x12a996,type:_0x6b3a4f,subType:_0x4da772,id:_0x2cd99a}=this['_splitMarkerName'](_0x3dfa58);if('suggestion'!==_0x12a996)continue;const _0x146f53=this['_suggestions']['get'](_0x2cd99a);if(null!=_0x5f2d2d['newRange']){'formatInline'==_0x6b3a4f&&(_0x4a2ae1=_0x4a2ae1||Et(_0x5f2d2d['newRange'],_0x3dfa58,_0xff5a63,_0x1d8157['model']['schema']));const _0x480867='attribute'==_0x6b3a4f&&this['_isBlockAttribute'](_0x4da772['split']('|')[0x0]);if(_0x5f2d2d['newRange']['isCollapsed']||'$graveyard'==_0x5f2d2d['newRange']['root']['rootName']||'formatBlock'==_0x6b3a4f&&!Ut(_0x5f2d2d['newRange'])||_0x480867&&!Ut(_0x5f2d2d['newRange'])||'deletion'==_0x6b3a4f&&!(!Tt(_0x2c9974=_0x5f2d2d['newRange'])&&!function(_0x5ca563){return _0x5ca563['start']['parent']==_0x5ca563['end']['nodeBefore']&&_0x5ca563['start']['isAtEnd'];}(_0x2c9974)))_0xff5a63['removeMarker'](_0x3dfa58),_0x4a2ae1=!0x0;else{if(!_0x146f53||!_0x146f53['isInContent'])continue;_0x574eda['add'](_0x146f53);}}}var _0x2c9974;return _0x574eda['size']>0x0&&(_0x4a2ae1=!!this['_joinWithAdjacentSuggestions'](_0x574eda)||_0x4a2ae1),_0x4a2ae1;}),_0x1d8157['model']['document']['registerPostFixer'](_0x3652fa=>{let _0x9cbf7b=!0x1;for(const _0x288f9e of _0x1d8157['model']['document']['differ']['getChanges']())if('insert'==_0x288f9e['type'])for(const _0x57154c of this['_suggestions']['values']()){if(_0x57154c['isMultiRange']||!_0x57154c['isInContent'])continue;const _0x58f53b='formatBlock'==_0x57154c['type'],_0x5885ac=this['_getAttributeKey'](_0x57154c),_0x56ee22=_0x5885ac&&this['_isBlockAttribute'](_0x5885ac);if(!_0x58f53b&&!_0x56ee22)continue;const _0x271926=_0x57154c['getFirstRange']();if(_0x271926['start']['parent']!=_0x271926['end']['parent']&&!_0x271926['end']['isAtEnd']){const _0x5832bf=_0x1d8157['model']['createPositionAt'](_0x271926['start']['nodeAfter'],'end'),_0x48c523=_0x1d8157['model']['createRange'](_0x271926['start'],_0x5832bf);_0x3652fa['updateMarker'](_0x57154c['getFirstMarker'](),{'range':_0x48c523}),_0x9cbf7b=!0x0;}}return _0x9cbf7b;}),_0x1d8157['model']['document']['registerPostFixer'](_0x47812b=>this['_processAttributeChanges'](_0x47812b)),_0x1d8157['model']['document']['registerPostFixer'](_0x54369c=>!_0x54369c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54369c)),_0x1d8157['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d8157['model']['document']['on']('change:data',(_0x4a90cf,_0x46306d)=>{if(!_0x46306d['isLocal']||_0x46306d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b1695=_0x1d8157['model']['document']['differ']['getChanges']();if(0x0==_0x5b1695['length'])return;const _0x41f4c9=[],_0x2b0791=_0x5b1695['filter'](_0x3009b2=>'attribute'==_0x3009b2['type']),_0x3d473c=_0x5b1695['filter'](_0x1885c5=>'insert'==_0x1885c5['type']&&'$text'!=_0x1885c5['name']);for(const _0xb94184 of _0x2b0791)this['_isRegisteredAttribute'](_0xb94184['attributeKey'])&&_0x41f4c9['push']({'key':_0xb94184['attributeKey'],'newValue':_0xb94184['attributeNewValue'],'oldValue':_0xb94184['attributeOldValue'],'range':Ot(_0xb94184['range'],_0x1d8157['model'])});for(const _0xa43800 of _0x3d473c){if('rename'!=_0xa43800['action']&&'refresh'!=_0xa43800['action'])continue;const _0x535c65=Gt(_0xa43800['position']['nodeAfter'],_0x1d8157['model']),_0x2a4deb=_0xa43800['before'];'rename'==_0xa43800['action']&&_0x41f4c9['push']({'key':m,'newValue':_0xa43800['name'],'oldValue':_0x2a4deb['name'],'range':_0x535c65});for(const [_0x250ec0,_0x2a4191]of _0x2a4deb['attributes']){if(!this['_isRegisteredAttribute'](_0x250ec0))continue;const _0x3150c2=_0xa43800['attributes']['get'](_0x250ec0);_0x2a4191!==_0x3150c2&&_0x41f4c9['push']({'key':_0x250ec0,'newValue':_0x3150c2,'oldValue':_0x2a4191,'range':_0x535c65});}for(const [_0x1cee3a,_0x242638]of _0xa43800['attributes'])this['_isRegisteredAttribute'](_0x1cee3a)&&(_0x2a4deb['attributes']['has'](_0x1cee3a)||_0x41f4c9['push']({'key':_0x1cee3a,'newValue':_0x242638,'oldValue':null,'range':_0x535c65}));}0x0!=_0x41f4c9['length']&&_0x1d8157['model']['enqueueChange'](_0x46306d,_0x226160=>{const _0x1b306c=_0x4cf88e();for(const {range:_0x511e94,key:_0x8ffa74,oldValue:_0x1ab717,newValue:_0x1fb323}of _0x41f4c9)this['markAttributeChange'](_0x511e94,_0x8ffa74,_0x1ab717,_0x1fb323,{'groupId':_0x1b306c});this['_reduceExistingSuggestions'](_0x226160,_0x41f4c9);});},{'priority':'lowest'}),_0x1d8157['model']['markers']['on']('update:suggestion',(_0x243d90,_0x4a2395,_0x4e35cd)=>{if(null==_0x4e35cd){const {id:_0x1c9f5e}=this['_splitMarkerName'](_0x4a2395['name']),_0x40145e=this['_suggestions']['get'](_0x1c9f5e);_0x40145e&&_0x40145e['addMarkerName'](_0x4a2395['name']);}}),_0x1d8157['model']['document']['on']('change:data',()=>{const _0x59322c=Array['from'](_0x1d8157['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b5889=>'suggestion'===this['_splitMarkerName'](_0x4b5889['name'])['group']);if(0x0===_0x59322c['length'])return;_0x59322c['sort']((_0x17e029,_0x3a857d)=>{const _0x42d917=_0x17e029['data']['oldRange'],_0x4f7cae=_0x3a857d['data']['oldRange'];return null===_0x42d917&&null===_0x4f7cae?0x0:null===_0x42d917&&null!==_0x4f7cae?-0x1:null!==_0x42d917&&null===_0x4f7cae?0x1:_0x42d917['start']['isBefore'](_0x4f7cae['start'])?-0x1:0x1;});const _0x15888d=new Set(),_0x364e55=new Set();for(const {name:_0x38ef75,data:_0x2c8677}of _0x59322c){const {id:_0xcef71}=this['_splitMarkerName'](_0x38ef75);if(null===_0x2c8677['oldRange']){const _0x9e00a2=this['_handleNewSuggestionMarker'](_0x38ef75);_0x364e55['add'](_0x9e00a2);}else{const _0xe877cf=this['_suggestions']['get'](_0xcef71);null!==_0x2c8677['newRange']||_0xe877cf['isInContent']?(_0x15888d['add'](_0xe877cf['head']),_0x364e55['add'](_0xe877cf)):this['_removeSuggestion'](_0xe877cf);}}_0x364e55['size']>0x0&&this['_refreshSuggestionsChain'](_0x364e55);for(const _0x123851 of _0x15888d)this['fire']('suggestionChanged',_0x123851);}),_0x1d8157['model']['on']('applyOperation',(_0x4207c8,_0xab067)=>{const _0xa28871=_0xab067[0x0];if(!this['_suggestions']['size'])return;if(!_0xa28871['isDocumentOperation'])return;if(_0xa28871['batch']['isUndo']||!_0xa28871['batch']['isLocal'])return;let _0x3da9ef,_0xd373b9;switch(_0xa28871['type']){case'insert':_0x3da9ef=_0x1d8157['model']['createPositionAt'](_0xa28871['position']),_0xd373b9=_0x3da9ef['getShiftedBy'](_0xa28871['howMany']);break;case'split':_0x3da9ef=_0x1d8157['model']['createPositionAt'](_0xa28871['splitPosition']),_0xd373b9=_0x1d8157['model']['createPositionAt'](_0xa28871['moveTargetPosition']);break;case'move':_0x3da9ef=_0x1d8157['model']['createPositionAt'](_0xa28871['targetPosition']),_0xd373b9=_0x3da9ef['getShiftedBy'](_0xa28871['howMany']);break;default:return;}const _0x3d8b5e=_0x1d8157['model']['createRange'](_0x3da9ef,_0xd373b9);_0x1d8157['model']['change'](()=>{for(const {suggestion:_0x527fce,meta:_0xfc55b9}of this['_findSuggestions'](_0x3d8b5e)){if(_0x527fce['isMultiRange'])continue;if('formatInline'==_0x527fce['type'])continue;const _0x30e455=this['_getAttributeKey'](_0x527fce);if(_0x30e455&&this['_isBlockAttribute'](_0x30e455)&&'split'!=_0xa28871['type'])continue;const _0x3f8200=_0x527fce['data']&&_0x527fce['data']['multipleBlocks'];('formatBlock'!=_0x527fce['type']||'split'==_0xa28871['type']&&!_0x3f8200)&&(_0xfc55b9['containsRangeInObject']||'insertion'==_0x527fce['type']&&_0xfc55b9['isOwn']||_0x527fce['getFirstRange']()['containsRange'](_0x3d8b5e)&&this['_breakSuggestionMarker'](_0x527fce,_0x3da9ef,_0xd373b9));}});},{'priority':'lowest'}),_0x1d8157['model']['on']('deleteContent',(_0x1476b9,_0xf2ea8f)=>{const _0x41258d=_0xf2ea8f[0x0],_0x5e8f19=_0xf2ea8f[0x1];if(_0x5e8f19&&_0x5e8f19['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41258d['isCollapsed'])return;const _0x268582=_0x1d8157['model']['schema'],{start:_0x38e696,end:_0x5551e7}=_0x41258d['getFirstRange'](),_0x69ee27=_0x38e696['nodeAfter']&&_0x268582['isLimit'](_0x38e696['nodeAfter'])?null:_0x268582['getNearestSelectionRange'](_0x38e696,'forward'),_0x5110f4=_0x5551e7['nodeBefore']&&_0x268582['isLimit'](_0x5551e7['nodeBefore'])?null:_0x268582['getNearestSelectionRange'](_0x5551e7,'backward'),_0x483708=_0x1d8157['model']['createRange'](_0x69ee27?_0x69ee27['start']:_0x38e696,_0x5110f4?_0x5110f4['end']:_0x5551e7);_0x1d8157['model']['change'](_0xeb8fe7=>{this['markDeletion'](_0x483708);const _0x2b9688=_0x1d8157['model']['schema']['getNearestSelectionRange'](_0x483708['start']);_0x41258d['is']('documentSelection')?_0xeb8fe7['setSelection'](_0x2b9688):_0x41258d['setTo'](_0x2b9688);}),_0x1476b9['stop']();},{'priority':_0x52ae77['normal']+0xa}),_0x1d8157['model']['on']('insertContent',(_0x356f4c,_0x555a68)=>{const _0x56bc01=_0x555a68[_0x555a68['length']-0x1];_0x56bc01&&_0x56bc01['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d8157['model']['change'](()=>{let _0x2c10d4=_0x1d8157['model']['insertContent'](_0x555a68[0x0],_0x555a68[0x1],_0x555a68[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c10d4)return;_0x356f4c['return']=_0x2c10d4['clone']();const _0x3f2b4b=_0x2c10d4['end']['nodeBefore'],_0x473de6=_0x1d8157['model']['schema'];_0x3f2b4b&&_0x473de6['isBlock'](_0x3f2b4b)&&!_0x473de6['isObject'](_0x3f2b4b)&&(_0x2c10d4=_0x1d8157['model']['createRange'](_0x2c10d4['start'],_0x1d8157['model']['createPositionAt'](_0x3f2b4b,'end'))),this['markInsertion'](_0x2c10d4);}),_0x356f4c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22c087=new $(_0x1d8157,this['_suggestions']);_0x1d8157['commands']['add']('acceptSuggestion',_0x22c087),this['enableCommand']('acceptSuggestion');const _0xc7be47=new B(_0x1d8157,this['_suggestions']);_0x1d8157['commands']['add']('discardSuggestion',_0xc7be47),this['enableCommand']('discardSuggestion'),_0x1d8157['commands']['add']('acceptAllSuggestions',new x(_0x1d8157,_0x22c087,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d8157['commands']['add']('discardAllSuggestions',new x(_0x1d8157,_0xc7be47,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d8157['commands']['add']('acceptSelectedSuggestions',new R(_0x1d8157,_0x22c087,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d8157['commands']['add']('discardSelectedSuggestions',new R(_0x1d8157,_0xc7be47,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x579406=_0x1d8157['plugins']['get']('CommentsRepository');this['listenTo'](_0x579406,'addComment',(_0x59ee2f,{threadId:_0x58ac2b})=>{const _0x4f04e2=this['_suggestions']['get'](_0x58ac2b);_0x4f04e2&&_0x4f04e2['commentThread']&&0x1===_0x4f04e2['commentThread']['length']&&this['_updateSuggestionData'](_0x58ac2b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x579406,'removeComment',(_0x51dcb2,{threadId:_0xe7e30f})=>{const _0x288bde=this['_suggestions']['get'](_0xe7e30f);_0x288bde&&_0x288bde['commentThread']&&!_0x288bde['commentThread']['length']&&this['_updateSuggestionData'](_0xe7e30f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2ce5db){if(this['_adapter'])throw new _0x16515e('track-changes-adapter-already-set',this);this['_adapter']=_0x2ce5db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13ece3=!0x1,toJSON:_0x4af54b=!0x1}={}){const _0x5628de=[];for(const _0x3fc9bf of this['_suggestions']['values']())_0x13ece3&&!_0x3fc9bf['isInContent']||_0x5628de['push'](_0x3fc9bf);return _0x4af54b?_0x5628de['map'](_0x5544bc=>_0x5544bc['toJSON']()):_0x5628de;}['getSuggestion'](_0x383a11){const _0x41417c=this['_suggestions']['get'](_0x383a11);if(!_0x41417c)throw new _0x16515e('track-changes-suggestion-not-found',this);return _0x41417c;}['hasSuggestion'](_0xfdaf31){return this['_suggestions']['has'](_0xfdaf31);}['addSuggestionData'](_0x2438f3){const {authorId:_0x4a3f9c,id:_0x7f44d8,attributes:_0x132af5}=_0x2438f3,[_0x267f13,_0x2f709]=_0x2438f3['type']['split'](':'),_0x2651ed=this['_suggestions']['get'](_0x7f44d8)||this['_createSuggestion'](_0x267f13,_0x2f709,_0x7f44d8,_0x4a3f9c,_0x132af5);if(this['_addThreadToSuggestion'](_0x2651ed),this['_checkSuggestionCorrectness'](_0x2651ed,_0x267f13,_0x2f709||null,_0x4a3f9c),_0x2651ed['createdAt']=_0x2438f3['createdAt'],_0x2651ed['_isDataLoaded']=!0x0,_0x132af5&&_0x132af5['@external']){const _0x3800e0=_0x132af5['@external'],_0x4a327b=this['_getExternalAuthor'](_0x3800e0['authorName']);_0x2651ed['authoredAt']=_0x3800e0['createdAt'],_0x2651ed['author']=_0x4a327b,_0x2651ed['isExternal']=!0x0;}else _0x2651ed['authoredAt']=_0x2438f3['createdAt'];switch(_0x2438f3['data']&&(_0x2651ed['data']=_0x2438f3['data']),_0x2438f3['attributes']&&(_0x2651ed['attributes']=_0x2438f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2651ed['_saved']=!0x0),this['_suggestionState']['get'](_0x2651ed)){case'notReady':this['_suggestionState']['set'](_0x2651ed,'dataReady');break;case'markerReady':_0x2651ed['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2651ed])),this['_refreshSuggestionsChain'](new Set([_0x2651ed])),this['_suggestionState']['set'](_0x2651ed,'ready'),this['fire']('suggestionLoaded',_0x2651ed)):this['_suggestionState']['set'](_0x2651ed,'removed');}return _0x2651ed;}['acceptSuggestion'](_0x476c11){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29b815 of _0x476c11['getAllAdjacentSuggestions']())_0x29b815['accept']();});});}['discardSuggestion'](_0x128544){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x243d0c of _0x128544['getAllAdjacentSuggestions']())_0x243d0c['discard']();});});}['enableCommand'](_0x358fb0,_0xc7aaf9){const _0x2317be=this['editor']['commands']['get'](_0x358fb0);if(!_0x2317be)throw new _0x16515e('track-changes-command-not-found',this,{'commandName':_0x358fb0});if(this['_enabledCommands']['has'](_0x2317be))throw new _0x16515e('track-changes-enable-command-twice',this,{'commandName':_0x358fb0});this['_enabledCommands']['add'](_0x2317be),_0xc7aaf9&&_0x2317be['on']('execute',(_0x139e09,_0x4097bd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4097bd['length']>0x0&&_0x4097bd[_0x4097bd['length']-0x1]&&_0x4097bd[_0x4097bd['length']-0x1]['forceDefaultExecution']?_0x4097bd['pop']():(_0x139e09['return']=_0xc7aaf9((..._0xd4dd25)=>_0x2317be['execute'](..._0xd4dd25,{'forceDefaultExecution':!0x0}),..._0x4097bd),_0x139e09['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a588a){let _0x2afce4,_0x4809d6;const _0x5ea842=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2afce4=_0x5a588a();}catch(_0x3fff79){_0x4809d6=_0x3fff79;}return _0x5ea842||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4809d6&&_0x16515e['rethrowUnexpectedError'](_0x4809d6,this),_0x2afce4;}['markInsertion'](_0x168f8c,_0x34a097=null,_0x5c122b={}){if(_0x168f8c['isCollapsed'])return null;const _0x1a2c5c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2d6b27,meta:_0x12ad39}of this['_findSuggestions'](_0x168f8c,'insertion'))if(_0x12ad39['isOwn']){if(!_0x12ad39['isNextTo']){if(_0x12ad39['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2d6b27,_0x5c122b))continue;return _0x2d6b27;}if(Lt(_0x2d6b27,_0x5c122b))return _0x2d6b27;this['_breakSuggestionMarker'](_0x2d6b27,_0x168f8c['start'],_0x168f8c['end']);break;}if(_0x34a097==_0x2d6b27['subType']&&Lt(_0x2d6b27,_0x5c122b)){const _0x298bed=_0x2d6b27['getFirstRange']();return _0x298bed['start']['isEqual'](_0x168f8c['end'])?this['_setSuggestionRange'](_0x2d6b27,this['_model']['createRange'](_0x168f8c['start'],_0x298bed['end'])):this['_setSuggestionRange'](_0x2d6b27,this['_model']['createRange'](_0x298bed['start'],_0x168f8c['end'])),_0x2d6b27;}}const _0x3d4d24=_0x4cf88e(),_0x4c0023=_0x1a2c5c['id'],_0x34067e=_0x34a097?'insertion:'+_0x34a097:'insertion',_0x1e9ef7=this['_setSuggestionData']({'id':_0x3d4d24,'type':_0x34067e,'createdAt':new Date(),'authorId':_0x4c0023,'attributes':_0x5c122b});return this['_addSuggestionMarker'](_0x34067e,_0x3d4d24,_0x4c0023,_0x168f8c),_0x1e9ef7;}['markMultiRangeInsertion'](_0x46cd87,_0x3e7ff4='multi',_0x377fd7={}){const _0x467f0f=this['editor']['plugins']['get']('Users')['me'],_0x34eda9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e7ff4,'join');for(const _0xda1d09 of this['getSuggestions']())if(_0xda1d09['author']['id']==_0x467f0f['id']&&'insertion'==_0xda1d09['type']&&_0xda1d09['subType']==_0x3e7ff4&&Lt(_0xda1d09,_0x377fd7)&&(_0x34eda9(_0xda1d09['getRanges'](),_0x46cd87)||_0x34eda9(_0x46cd87,_0xda1d09['getRanges']()))){for(const _0x1a4916 of _0x46cd87)_0xda1d09['addRange'](_0x1a4916);return _0xda1d09;}for(const {suggestion:_0x5e3ca4,meta:_0x22d7e7}of this['_findSuggestions'](_0x46cd87,'insertion')){if(!_0x22d7e7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22d7e7['containsRangeInObject'])continue;if(!Lt(_0x5e3ca4,_0x377fd7))continue;let _0x120d88=!0x0;for(const _0x493d82 of _0x5e3ca4['getRanges']())for(const _0x5803c1 of _0x46cd87)if(!_0x493d82['containsRange'](_0x5803c1)){_0x120d88=!0x1;break;}if(_0x120d88)return _0x5e3ca4;}const _0x396a00=_0x4cf88e(),_0x4c197a=_0x467f0f['id'],_0x556746='insertion:'+_0x3e7ff4,_0x5036be=this['_setSuggestionData']({'id':_0x396a00,'type':_0x556746,'createdAt':new Date(),'authorId':_0x4c197a,'attributes':_0x377fd7});for(const _0x3ad429 of _0x46cd87)this['_addSuggestionMarker'](_0x556746,_0x396a00,_0x4c197a,_0x3ad429,u['getMultiRangeId']());return _0x5036be;}['markInlineFormat'](_0x27424b,_0x23e4f0,_0x3bba3a=null,_0x1ce84a={}){if(_0x3bba3a=_0x3bba3a||Vt(_0x23e4f0),_0x27424b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4afbd1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3bba3a,'accept');return this['forceDefaultExecution'](()=>_0x4afbd1([_0x27424b],_0x23e4f0,_0x1ce84a)),null;}const _0x1a6d75=this['editor']['plugins']['get']('Users')['me'],_0x563028=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x19a2ec,meta:_0x11f5e6}of this['_findSuggestions'](_0x27424b,'insertion'))_0x11f5e6['isOwn']&&!_0x11f5e6['isInsideObject']&&_0x563028['push'](..._0x19a2ec['getRanges']());}const _0x4a296b=function(_0x234410,_0xa51a90){const _0x36eaf4=[];for(const _0x5369c7 of _0xa51a90){const _0x3f3b3b=_0x234410['getIntersection'](_0x5369c7);_0x3f3b3b&&_0x36eaf4['push'](_0x3f3b3b);}return _0x36eaf4;}(_0x27424b,_0x563028),_0x5a0418=function(_0x3b8843,_0x219694){const _0x38c96a=[_0x3b8843];for(const _0x266b4b of _0x219694){let _0x1a1322=0x0;for(;_0x1a1322<_0x38c96a['length'];){const _0x41003e=_0x38c96a[_0x1a1322]['getDifference'](_0x266b4b);_0x38c96a['splice'](_0x1a1322,0x1,..._0x41003e),_0x1a1322+=_0x41003e['length'];}}return _0x38c96a;}(_0x27424b,_0x563028);_0x4a296b['length']&&this['_model']['change'](()=>{for(const _0x3d9af8 of _0x4a296b){const _0x386e69=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3bba3a,'accept');this['forceDefaultExecution'](()=>_0x386e69([_0x3d9af8],_0x23e4f0,_0x1ce84a));}});for(const _0x1ab430 of _0x5a0418){let _0x33aaf0=null,_0x2e7b18=_0x1ab430['start'],_0x3f893a=_0x1ab430['end'];for(const {suggestion:_0x275d55,meta:_0x5f047b}of this['_findSuggestions'](_0x1ab430,'formatInline')){if(!_0x5f047b['isOwn'])continue;if(_0x275d55['subType']!=_0x3bba3a)continue;if(!Lt(_0x275d55,_0x1ce84a))continue;const _0x6290a0=_0x275d55['getFirstRange']();if(_0x6290a0['containsRange'](_0x1ab430,!0x0))return null;_0x2e7b18=_0x2e7b18['isBefore'](_0x6290a0['start'])?_0x2e7b18:_0x6290a0['start'],_0x3f893a=_0x3f893a['isAfter'](_0x6290a0['end'])?_0x3f893a:_0x6290a0['end'],_0x33aaf0?_0x6290a0['start']['isBefore'](_0x33aaf0['getFirstRange']()['start'])?(_0x33aaf0['removeMarkers'](),_0x33aaf0=_0x275d55):_0x275d55['removeMarkers']():_0x33aaf0=_0x275d55;}const _0x7dad37=this['_model']['createRange'](_0x2e7b18,_0x3f893a);if(_0x33aaf0)this['_setSuggestionRange'](_0x33aaf0,_0x7dad37);else{const _0x1a1237=_0x4cf88e(),_0x1c715a=_0x1a6d75['id'];this['_setSuggestionData']({'id':_0x1a1237,'type':'formatInline:'+_0x3bba3a,'data':_0x23e4f0,'createdAt':new Date(),'authorId':_0x1c715a,'attributes':_0x1ce84a}),this['_addSuggestionMarker']('formatInline:'+_0x3bba3a,_0x1a1237,_0x1c715a,_0x7dad37);}}return null;}['markBlockFormat'](_0x5bfdf6,_0x44593f,_0x416731=[],_0x53ee9d=null,_0x41df36={}){_0x44593f['formatGroupId']||(_0x44593f['formatGroupId']=_0x44593f['commandName']),_0x44593f['multipleBlocks']=_0x5bfdf6['is']('range'),_0x53ee9d=_0x53ee9d||Vt(_0x44593f);const _0x12566d=_0x416731['map'](_0x3c784a=>Gt(_0x3c784a,this['_model'])),_0x548f44=_0x5bfdf6['is']('range')?_0x5bfdf6:Gt(_0x5bfdf6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x180c89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53ee9d,'accept');return this['forceDefaultExecution'](()=>_0x180c89([_0x548f44],_0x44593f,_0x41df36)),null;}_0x12566d['push'](_0x548f44);let _0x4033d6=!0x0;for(const _0x1e1af8 of _0x12566d)if(!this['_rangeIsInLocalUserInsertion'](_0x1e1af8)){_0x4033d6=!0x1;break;}if(_0x4033d6&&'always'!==this['_trackFormatChanges']){const _0x27e65b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53ee9d,'accept');return this['forceDefaultExecution'](()=>_0x27e65b([_0x548f44],_0x44593f,_0x41df36)),null;}let _0x1185b3=null,_0x41bfd4=_0x548f44['start'],_0x3f8f13=_0x548f44['end'];for(const {suggestion:_0x58fd57,meta:_0x6148cc}of this['_findSuggestions'](_0x548f44,'formatBlock')){if(!_0x6148cc['isOwn'])continue;if(_0x6148cc['isNextTo']||_0x6148cc['containsRangeInObject']||_0x6148cc['isInsideObject'])continue;if(_0x58fd57['data']['formatGroupId']!=_0x44593f['formatGroupId'])continue;if(!Lt(_0x58fd57,_0x41df36))continue;const _0x1db254=_0x58fd57['getFirstRange']();if(_0x58fd57['subType']==_0x53ee9d){if(_0x1db254['containsRange'](_0x548f44,!0x0))return null;_0x41bfd4=_0x41bfd4['isBefore'](_0x1db254['start'])?_0x41bfd4:_0x1db254['start'],_0x3f8f13=_0x3f8f13['isAfter'](_0x1db254['end'])?_0x3f8f13:_0x1db254['end'],_0x1185b3?_0x1db254['start']['isBefore'](_0x1185b3['getFirstRange']()['start'])?(_0x1185b3['removeMarkers'](),_0x1185b3=_0x58fd57):_0x58fd57['removeMarkers']():_0x1185b3=_0x58fd57;}else{const _0x363949=_0x548f44['getIntersection'](_0x1db254);this['_cutOutSuggestionMarker'](_0x58fd57,_0x363949);}}const _0x3b64fc=this['editor']['plugins']['get']('Users')['me'],_0x7df1db=_0x4cf88e(),_0x2bd823=_0x3b64fc['id'];if(_0x1185b3)return this['_setSuggestionRange'](_0x1185b3,this['_model']['createRange'](_0x41bfd4,_0x3f8f13)),_0x1185b3;{const _0x563166=this['_setSuggestionData']({'id':_0x7df1db,'type':'formatBlock:'+_0x53ee9d,'data':_0x44593f,'createdAt':new Date(),'authorId':_0x2bd823,'attributes':_0x41df36});return this['_addSuggestionMarker']('formatBlock:'+_0x53ee9d,_0x7df1db,_0x2bd823,this['_model']['createRange'](_0x41bfd4,_0x3f8f13)),_0x563166;}}['markMultiRangeBlockFormat'](_0x3bb417,_0x15ad56,_0x4f0d2e=[],_0x2b5c22=null,_0x2c4216={}){_0x15ad56['formatGroupId']||(_0x15ad56['formatGroupId']=_0x15ad56['commandName']);const _0x40c774=_0x3bb417[0x0];_0x15ad56['multipleBlocks']=_0x40c774['is']('range'),_0x2b5c22=_0x2b5c22||Vt(_0x15ad56);const _0xc716e=_0x4f0d2e['map'](_0x3b0fe4=>Gt(_0x3b0fe4,this['_model'])),_0x431f79=_0x40c774['is']('range')?_0x3bb417:_0x3bb417['map'](_0x2ae1cb=>Gt(_0x2ae1cb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x9a0be3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5c22,'accept');return this['forceDefaultExecution'](()=>_0x9a0be3(_0x431f79,_0x15ad56,_0x2c4216)),null;}_0xc716e['push'](..._0x431f79);let _0x1cf891=!0x0;for(const _0x168a50 of _0xc716e)if(!this['_rangeIsInLocalUserInsertion'](_0x168a50)){_0x1cf891=!0x1;break;}if(_0x1cf891&&'always'!==this['_trackFormatChanges']){const _0xf5b889=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5c22,'accept');return this['forceDefaultExecution'](()=>_0xf5b889(_0x431f79,_0x15ad56,_0x2c4216)),null;}const _0x5f5b16=this['editor']['plugins']['get']('Users')['me'];for(const _0x38ae1c of this['getSuggestions']()){if(_0x38ae1c['author']['id']!=_0x5f5b16['id'])continue;if('formatBlock'!=_0x38ae1c['type']||_0x38ae1c['data']['formatGroupId']!=_0x15ad56['formatGroupId'])continue;if(!Lt(_0x38ae1c,_0x2c4216))continue;const _0x4bd421=_0x38ae1c['subType']==_0x2b5c22;for(let _0x31fac4=0x0;_0x31fac4<_0x431f79['length'];_0x31fac4++){const _0x327730=_0x431f79[_0x31fac4];for(const _0x30a5b7 of _0x38ae1c['getMarkers']()){const _0x5c7805=_0x30a5b7['getRange']();if(_0x327730['isEqual'](_0x5c7805)){_0x4bd421?(_0x431f79['splice'](_0x31fac4,0x1),_0x31fac4--):_0x38ae1c['removeMarker'](_0x30a5b7['name']);break;}}}}if(0x0==_0x431f79['length'])return null;const _0x118525=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b5c22,'join');for(const _0x129488 of this['getSuggestions']())if(_0x129488['author']['id']==_0x5f5b16['id']&&'formatBlock'==_0x129488['type']&&_0x129488['data']['formatGroupId']==_0x15ad56['formatGroupId']&&_0x129488['subType']==_0x2b5c22&&Lt(_0x129488,_0x2c4216)&&(_0x118525(_0x129488['getRanges'](),_0x431f79)||_0x118525(_0x431f79,_0x129488['getRanges']()))){for(const _0x10a556 of _0x431f79)_0x129488['addRange'](_0x10a556);return _0x129488;}const _0x470bab=_0x4cf88e(),_0x69ced7=_0x5f5b16['id'],_0x321752='formatBlock:'+_0x2b5c22,_0x81ad9a=this['_setSuggestionData']({'id':_0x470bab,'type':_0x321752,'data':_0x15ad56,'createdAt':new Date(),'authorId':_0x69ced7,'attributes':_0x2c4216});for(const _0x20f104 of _0x431f79)this['_addSuggestionMarker'](_0x321752,_0x470bab,_0x69ced7,_0x20f104,u['getMultiRangeId']());return _0x81ad9a;}['markDeletion'](_0x21810d,_0x25ed3f=null,_0x145f1c={}){if(_0x21810d['isCollapsed'])return null;const _0x44d697=this['editor']['plugins']['get']('Users')['me'],_0x39213d=new _0x38a2be(_0x21810d['start'],_0x21810d['end']);for(const {suggestion:_0x209e52,meta:_0x53428d}of this['_findSuggestions'](_0x39213d,'insertion'))if(_0x53428d['isOwn']&&!_0x53428d['isNextTo']){if(_0x209e52['isMultiRange']){const _0x3c4de8=_0x209e52['getRanges']()['filter'](_0x52bea8=>'$graveyard'!=_0x52bea8['root']['rootName']);_0x3c4de8['every'](_0x5d12dd=>_0x39213d['containsRange'](_0x5d12dd,!0x0))&&_0x209e52['discard']();if(_0x3c4de8['some'](_0x476883=>_0x476883['containsRange'](_0x39213d,!0x0))){const _0x54a999=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25ed3f,'accept');return this['forceDefaultExecution'](()=>_0x54a999([_0x39213d],null,_0x145f1c)),null;}}else{const _0x37fa1d=_0x39213d['getIntersection'](_0x209e52['getFirstRange']());null!==_0x37fa1d&&_0x209e52['_onDiscard']([_0x37fa1d],null,_0x145f1c);}}if(_0x39213d['detach'](),_0x39213d['isCollapsed']||'$graveyard'==_0x39213d['root']['rootName'])return null;let _0x59fd7b=null,_0xcb69e=_0x39213d['start'],_0x12d8dc=_0x39213d['end'];const _0xdff141=this['_findSuggestions'](_0x39213d,'deletion');for(const {suggestion:_0x10b41a,meta:_0x3b7fe3}of _0xdff141){const _0x63c7fd=this['_model']['createRange'](_0xcb69e,_0x12d8dc);if(_0x3b7fe3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b7fe3['containsRangeInObject']&&!_0x3b7fe3['isInsideObject'])){if(_0x10b41a['isMultiRange']){if(!Lt(_0x10b41a,_0x145f1c))continue;let _0x92c734=!0x0;for(const _0x45ea42 of _0x10b41a['getRanges']()){if(_0x45ea42['containsRange'](_0x63c7fd,!0x0))return _0x10b41a;_0x63c7fd['containsRange'](_0x45ea42)||(_0x92c734=!0x1);}_0x92c734&&_0x10b41a['discard']();}else{const _0x431c21=_0x10b41a['getFirstRange']();if(_0x431c21['containsRange'](_0x63c7fd,!0x0))return _0x10b41a;if(!Lt(_0x10b41a,_0x145f1c)){_0x63c7fd['containsRange'](_0x431c21)?_0x10b41a['removeMarkers']():_0x431c21['containsPosition'](_0xcb69e)?_0xcb69e=_0x431c21['end']:_0x431c21['containsPosition'](_0x12d8dc)&&(_0x12d8dc=_0x431c21['start']);continue;}_0xcb69e=_0xcb69e['isBefore'](_0x431c21['start'])?_0xcb69e:_0x431c21['start'],_0x12d8dc=_0x12d8dc['isAfter'](_0x431c21['end'])?_0x12d8dc:_0x431c21['end'],_0x145f1c=Object['assign']({},_0x10b41a['attributes']),_0x59fd7b?_0x431c21['start']['isBefore'](_0x59fd7b['getFirstRange']()['start'])?(_0x59fd7b['removeMarkers'](),_0x59fd7b=_0x10b41a):_0x10b41a['removeMarkers']():_0x59fd7b=_0x10b41a;}}}if(_0x59fd7b)return this['_setSuggestionRange'](_0x59fd7b,this['_model']['createRange'](_0xcb69e,_0x12d8dc)),_0x59fd7b;{const _0xa40db5=_0x4cf88e(),_0x290a8a=this['_model']['createRange'](_0xcb69e,_0x12d8dc),_0x27c088=_0x44d697['id'],_0x1035d3=_0x25ed3f?'deletion:'+_0x25ed3f:'deletion',_0x3b823d=this['_setSuggestionData']({'id':_0xa40db5,'type':_0x1035d3,'createdAt':new Date(),'authorId':_0x27c088,'attributes':_0x145f1c});return this['_addSuggestionMarker'](_0x1035d3,_0xa40db5,_0x27c088,_0x290a8a),_0x3b823d;}}['markMultiRangeDeletion'](_0x11f794,_0x3c1f9a='multi',_0x5581bd={}){const _0x40427d=this['editor']['plugins']['get']('Users')['me'],_0x45ac38=_0x11f794['map'](_0x466d74=>new _0x38a2be(_0x466d74['start'],_0x466d74['end'])),_0x5c16c0=new Set();for(const {suggestion:_0xa534c1,meta:_0x234f0c}of this['_findSuggestions'](_0x45ac38,'insertion'))_0x234f0c['isOwn']&&!_0x234f0c['isNextTo']&&_0x5c16c0['add'](_0xa534c1);for(const _0x4051e6 of _0x5c16c0)if(_0x4051e6['isMultiRange']){const _0x1550e0=_0x4051e6['getRanges']();(!_0x4051e6['attributes']||!_0x4051e6['attributes']['skipNestingCheck'])&&(_0x1550e0['every'](_0x1c2b2f=>_0x45ac38['some'](_0x557156=>_0x557156['containsRange'](_0x1c2b2f,!0x0)))&&_0x4051e6['discard']());if(_0x45ac38['every'](_0x2ad70e=>_0x1550e0['some'](_0x15337e=>_0x15337e['containsRange'](_0x2ad70e,!0x0)))){const _0x1fd551=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c1f9a,'accept');return this['forceDefaultExecution'](()=>_0x1fd551(_0x11f794,null,_0x5581bd)),null;}}else{const _0x926ce5=_0x4051e6['getFirstRange']();_0x45ac38['some'](_0x5f8095=>_0x5f8095['containsRange'](_0x926ce5,!0x0))&&_0x4051e6['discard']();if(_0x45ac38['every'](_0x5cdbc8=>_0x926ce5['containsRange'](_0x5cdbc8,!0x0))){const _0x3acb92=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c1f9a,'accept');return this['forceDefaultExecution'](()=>_0x3acb92(_0x45ac38,null,_0x5581bd)),null;}}const _0x333f0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c1f9a,'join');let _0x29a680=null;for(const _0x116613 of this['getSuggestions']())if(_0x116613['author']['id']==_0x40427d['id']&&_0x116613['isInContent']&&'deletion'==_0x116613['type']&&_0x116613['subType']==_0x3c1f9a&&Lt(_0x116613,_0x5581bd)&&(_0x333f0d(_0x116613['getRanges'](),_0x45ac38)||_0x333f0d(_0x45ac38,_0x116613['getRanges']()))){if(_0x29a680){if(_0x116613['commentThread']&&_0x116613['commentThread']['length'])continue;for(const _0x3947b4 of _0x116613['getRanges']())_0x29a680['isIntersectingWithRange'](_0x3947b4)||_0x29a680['addRange'](_0x3947b4);_0x116613['removeMarkers']();}else{_0x29a680=_0x116613;for(const _0x47ddc2 of _0x45ac38)_0x116613['isIntersectingWithRange'](_0x47ddc2)||_0x116613['addRange'](_0x47ddc2);}}if(_0x29a680)return _0x29a680;_0x5c16c0['clear']();for(const {suggestion:_0x25cbfd,meta:_0x37738e}of this['_findSuggestions'](_0x45ac38,'deletion'))_0x37738e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37738e['containsRangeInObject']&&!_0x37738e['isInsideObject'])&&Lt(_0x25cbfd,_0x5581bd)&&_0x5c16c0['add'](_0x25cbfd);for(const _0x56455b of _0x5c16c0){const _0x1a5c09=_0x56455b['getRanges']();if(!_0x5581bd||!_0x5581bd['skipNestingCheck']){if(_0x45ac38['every'](_0x43cb53=>_0x1a5c09['some'](_0x325515=>_0x325515['containsRange'](_0x43cb53,!0x0))))return _0x56455b;}(!_0x56455b['attributes']||!_0x56455b['attributes']['skipNestingCheck'])&&(_0x1a5c09['every'](_0x580a4c=>_0x45ac38['some'](_0x43e559=>_0x43e559['containsRange'](_0x580a4c,!0x0)))&&_0x56455b['discard']());}const _0x453834=_0x4cf88e(),_0x5a3e23=_0x40427d['id'],_0xd847d7='deletion:'+_0x3c1f9a,_0x359d7a=this['_setSuggestionData']({'id':_0x453834,'type':_0xd847d7,'createdAt':new Date(),'authorId':_0x5a3e23,'attributes':_0x5581bd});for(const _0x5b845f of _0x45ac38)_0x5b845f['detach'](),_0x5b845f['isCollapsed']||'$graveyard'==_0x5b845f['root']['rootName']||this['_addSuggestionMarker'](_0xd847d7,_0x453834,_0x5a3e23,_0x5b845f,u['getMultiRangeId']());return _0x359d7a;}['markAttributeChange'](_0x183c7a,_0x569ff0,_0x5c4d1e,_0x342f2a,_0x3a1336){if(_0x183c7a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f24d6=this['editor']['plugins']['get']('Users')['me']['id'],_0x435b11=Array['from'](this['_suggestions']['values']())['filter'](_0x2caefd=>'attribute'==_0x2caefd['type']&&_0x2caefd['data']['key']==_0x569ff0&&_0x2caefd['isIntersectingWithRange'](_0x183c7a));if('default'===this['_trackFormatChanges']){const _0x4e79b7=this['_findSuggestions'](_0x183c7a,'insertion')['filter'](({meta:_0x3b9ca6})=>_0x3b9ca6['isOwn']&&!_0x3b9ca6['isInsideObject']&&!_0x3b9ca6['isNextTo'])['map'](({suggestion:_0x35ad3a})=>_0x35ad3a);_0x435b11['unshift'](..._0x4e79b7);}const _0x557b4d=new Map([[_0x183c7a,_0x5c4d1e]]);for(const _0xdf2f9c of _0x435b11){const _0x3a9daa='attribute'==_0xdf2f9c['type']?_0xdf2f9c['data']['oldValue']:void 0x0,_0x4878f=_0xdf2f9c['getFirstRange'](),_0x21a22b=Array['from'](_0x557b4d['keys']())['find'](_0xcd2f1d=>_0xcd2f1d['isIntersecting'](_0x4878f));if(!_0x21a22b)continue;const _0xdffd10=_0x21a22b['getDifference'](_0x4878f);this['_isBlockAttribute'](_0x569ff0)&&'insertion'==_0xdf2f9c['type']&&0x0!=_0xdffd10['length']||(_0x557b4d['delete'](_0x21a22b),_0xdffd10['forEach'](_0x1b20d2=>{_0x557b4d['set'](_0x1b20d2,_0x5c4d1e);}),'insertion'!=_0xdf2f9c['type']&&_0x3a9daa!=_0x342f2a&&_0x557b4d['set'](_0x21a22b['getIntersection'](_0x4878f),_0x3a9daa));}const _0x170aa8=[];for(const [_0x4720e0,_0x18af5f]of _0x557b4d){const _0x1010ab=_0x4cf88e(),_0x145452={'key':_0x569ff0,'oldValue':_0x18af5f,'newValue':_0x342f2a};_0x569ff0['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':_0x569ff0});const _0x65b46e=('attribute:'+(_0x569ff0+'|'+Vt({'newValue':_0x342f2a})))['substring'](0x0,0x3c),_0x46cf87=this['_setSuggestionData']({'id':_0x1010ab,'type':_0x65b46e,'data':_0x145452,'createdAt':new Date(),'authorId':_0x4f24d6,'attributes':_0x3a1336});_0x170aa8['push'](_0x46cf87),this['_addSuggestionMarker'](_0x65b46e,_0x1010ab,_0x4f24d6,_0x4720e0);}return _0x170aa8;}['enableDefaultAttributesIntegration'](_0x2e91ac){this['enableCommand'](_0x2e91ac,(_0x296770,..._0x419b01)=>{this['_recordAttributeChanges'](()=>{_0x296770(..._0x419b01);});});}['registerBlockAttribute'](_0x4270ae){this['_blockAttributeKeys']['add'](_0x4270ae);}['registerInlineAttribute'](_0x1215fc){this['_inlineAttributeKeys']['add'](_0x1215fc);}['_getAttributeKey'](_0x222429){return'attribute'==_0x222429['type']?_0x222429['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd04b0b,_0x2ce801){const _0x1a870b=_0xd04b0b['getFirstMarker']();this['_model']['change'](_0x4d235c=>{_0x4d235c['updateMarker'](_0x1a870b,{'range':_0x2ce801});});}['_addThreadToSuggestion'](_0x237dbf){const _0x299aba=_0x237dbf['id'],_0x51d73e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x299aba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x51d73e,'threadId':_0x299aba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x493a0d=this['_commentsRepository']['getCommentThread'](_0x299aba);_0x493a0d['unbind']('isRemovable'),_0x493a0d['isRemovable']=!0x1,_0x237dbf['commentThread']=_0x493a0d;}['_checkSuggestionCorrectness'](_0x2161b5,_0x4e8608,_0x18681a,_0x55e4b9){if(_0x2161b5['type']!=_0x4e8608||_0x2161b5['subType']!=_0x18681a||_0x2161b5['creator']['id']!=_0x55e4b9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x16515e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47cf22,_0x1b8598){const _0x4c366b=_0x47cf22['getFirstRange']();if(_0x1b8598['isEqual'](_0x4c366b))_0x47cf22['removeMarkers']();else{if(_0x4c366b['containsRange'](_0x1b8598)){const _0x55d642=this['_model']['createPositionAt'](_0x1b8598['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47cf22,this['_model']['createRange'](_0x4c366b['start'],_0x55d642));const _0x1a9282=_0x4cf88e(),_0x53eb13=_0x47cf22['creator']['id'],_0x24e1c6=_0x47cf22['type']+':'+_0x47cf22['subType'];this['_setSuggestionData']({'id':_0x1a9282,'type':_0x24e1c6,'createdAt':new Date(),'authorId':_0x53eb13,'data':_0x47cf22['data'],'attributes':_0x47cf22['attributes']});const _0x1fdae5=this['_model']['createPositionAt'](_0x1b8598['end']['parent'],'after'),_0x5dba15=this['_model']['createRange'](_0x1fdae5,_0x4c366b['end']);this['_addSuggestionMarker'](_0x24e1c6,_0x1a9282,_0x53eb13,_0x5dba15);}else{if(_0x4c366b['containsPosition'](_0x1b8598['start'])){const _0x3c159d=this['_model']['createPositionAt'](_0x1b8598['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47cf22,this['_model']['createRange'](_0x4c366b['start'],_0x3c159d));}else{const _0x259c05=this['_model']['createPositionAt'](_0x1b8598['end']['parent'],'after');this['_setSuggestionRange'](_0x47cf22,this['_model']['createRange'](_0x259c05,_0x4c366b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d906e){for(const {suggestion:_0x4e3ec6,meta:_0x1ed967}of this['_findSuggestions'](_0x5d906e,'insertion')){if(!_0x1ed967['isOwn'])continue;const _0x31f1c4=_0x4e3ec6['getRanges']();for(const _0x404fcc of _0x31f1c4)if(!_0x5d906e['getDifference'](_0x404fcc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x254c02){const _0x18d538=this['editor']['plugins']['get']('Users')['getUser'](_0x254c02);if(!_0x18d538)throw new _0x16515e('track-changes-user-not-found',this);return _0x18d538;}['_getExternalAuthor'](_0x1140eb){const _0x19ba31=this['editor']['plugins']['get']('Users'),_0x44c667=_0x4fedb8('external:'+_0x1140eb),_0x4d20b4=_0x19ba31['getUser'](_0x44c667);return _0x4d20b4||_0x19ba31['addUser']({'id':_0x44c667,'name':_0x1140eb});}['_createSuggestion'](_0x1a236f,_0x37533a,_0x4941cc,_0x5b11d9,_0x41ab62){const _0x9b029e=this['_getAuthorFromId'](_0x5b11d9),_0x434ac2=this['_suggestionFactory']['buildSuggestion'](_0x1a236f,_0x37533a,_0x4941cc,_0x9b029e,_0x41ab62,_0x3167bf=>{this['_updateSuggestionData'](_0x4941cc,{'attributes':_0x3167bf});const _0x263f0f=this['getSuggestion'](_0x4941cc);this['_joinWithAdjacentSuggestions'](new Set([_0x263f0f])),this['_refreshSuggestionsChain'](new Set([_0x263f0f]));});return this['listenTo'](_0x434ac2,'accept',()=>{this['_updateSuggestionData'](_0x4941cc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x434ac2,'discard',()=>{this['_updateSuggestionData'](_0x4941cc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4941cc,_0x434ac2),this['_suggestionState']['set'](_0x434ac2,'notReady'),_0x434ac2;}['_splitMarkerName'](_0x467792){const _0xcadd3f=_0x467792['split'](':');return{'group':_0xcadd3f[0x0],'type':_0xcadd3f[0x1],'subType':_0xcadd3f['length']>=0x5?_0xcadd3f[0x2]:null,'id':_0xcadd3f['length']<0x5?_0xcadd3f[0x2]:_0xcadd3f[0x3],'authorId':_0xcadd3f['length']<0x5?_0xcadd3f[0x3]:_0xcadd3f[0x4],'markerCount':0x6==_0xcadd3f['length']?_0xcadd3f[0x5]:null};}['_breakSuggestionMarker'](_0x20ff15,_0x1b2c8e,_0x1a161d){const _0x15aba7=_0x20ff15['getFirstRange'](),_0x18230b=_0x15aba7['start'],_0x23d7a0=_0x15aba7['end'];this['_setSuggestionRange'](_0x20ff15,this['_model']['createRange'](_0x18230b,_0x1b2c8e));const _0x5dd8b9=_0x4cf88e(),_0x16f9cf=_0x20ff15['creator']['id'],_0x593ec8=_0x20ff15['type']+(_0x20ff15['subType']?':'+_0x20ff15['subType']:'');this['_setSuggestionData']({'id':_0x5dd8b9,'type':_0x593ec8,'createdAt':new Date(),'authorId':_0x16f9cf,'originalSuggestionId':_0x20ff15['id'],'attributes':_0x20ff15['attributes'],'data':_0x20ff15['data']});const _0x1b72f0=this['_getAttributeKey'](_0x20ff15);('formatBlock'==_0x20ff15['type']||_0x1b72f0&&this['_isBlockAttribute'](_0x1b72f0))&&(_0x1a161d=this['_model']['createPositionBefore'](_0x1a161d['parent'])),this['_addSuggestionMarker'](_0x593ec8,_0x5dd8b9,_0x16f9cf,this['_model']['createRange'](_0x1a161d,_0x23d7a0));}['_findSuggestions'](_0x50db46,_0x301682=null){const _0x4103be=[],_0x140285=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50db46)||(_0x50db46=[_0x50db46]);for(const _0x12cd8 of this['getSuggestions']()){if(!_0x12cd8['isInContent'])continue;if(_0x301682&&_0x12cd8['type']!=_0x301682)continue;let _0x14fb28=!0x1;for(const _0x4065cf of _0x12cd8['getRanges']()){for(const _0x35b741 of _0x50db46){const _0x1bc20c=_0x35b741['start']['isEqual'](_0x4065cf['end'])||_0x35b741['end']['isEqual'](_0x4065cf['start']);if(_0x1bc20c||_0x35b741['getIntersection'](_0x4065cf)){const _0x12f803=_0x35b741['containsRange'](_0x4065cf)&&Rt(this['_model']['schema'],_0x4065cf['start'],_0x35b741),_0x2f46bc=_0x4065cf['containsRange'](_0x35b741)&&Rt(this['_model']['schema'],_0x35b741['start'],_0x4065cf);_0x4103be['push']({'suggestion':_0x12cd8,'meta':{'isOwn':_0x140285==_0x12cd8['author'],'isNextTo':_0x1bc20c,'isInsideObject':_0x12f803,'containsRangeInObject':_0x2f46bc}}),_0x14fb28=!0x0;break;}}if(_0x14fb28)break;}}return _0x4103be;}['_addSuggestionMarker'](_0x338dc3,_0x56fd0f,_0x43faac,_0x37f066,_0x35e777){this['_model']['change'](_0x2b7fdb=>{let _0x39eb1c='suggestion:'+_0x338dc3+':'+_0x56fd0f+':'+_0x43faac;_0x35e777&&(_0x39eb1c=_0x39eb1c+':'+_0x35e777),_0x2b7fdb['addMarker'](_0x39eb1c,{'range':_0x37f066,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18c2c1){const _0x5141e2=_0x18c2c1['previous'],_0x306951=_0x18c2c1['next'];_0x18c2c1['previous']=null,_0x18c2c1['next']=null,null!=_0x5141e2&&_0x5141e2['next']==_0x18c2c1&&(_0x5141e2['next']=_0x306951),null!=_0x306951&&_0x306951['previous']==_0x18c2c1&&(_0x306951['previous']=_0x5141e2),'ready'==this['_suggestionState']['get'](_0x18c2c1)&&(this['_suggestionState']['set'](_0x18c2c1,'removed'),this['fire']('suggestionUnloaded',_0x18c2c1,_0x5141e2,_0x306951));}['_setSuggestionData'](_0x4b0395){const _0xb40d3d=_0x4b0395['id'],_0x4d6b98=this['addSuggestionData'](_0x4b0395);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1818ab=this['editor']['plugins']['get']('PendingActions'),_0x32ba7a=_0x4d6b98['hasComments'],_0x4f16b8=_0x4d6b98['subType']?_0x4d6b98['type']+':'+_0x4d6b98['subType']:_0x4d6b98['type'],_0x5a2007=this['editor']['locale'],_0xd3326b=_0x1818ab['add'](o(_0x5a2007,'PENDING_ACTION_SUGGESTION')),_0x594e6c={'id':_0xb40d3d,'type':_0x4f16b8,'hasComments':_0x32ba7a,'data':_0x4b0395['data']||null,'originalSuggestionId':_0x4b0395['originalSuggestionId']||null,'attributes':_0x4d6b98['attributes']};this['_adapter']['addSuggestion'](_0x594e6c)['then'](_0x45c718=>{_0x4d6b98['_saved']=!0x0,_0x1818ab['remove'](_0xd3326b),_0x45c718&&_0x45c718['createdAt']&&(this['_suggestions']['get'](_0xb40d3d)['createdAt']=_0x45c718['createdAt']);})['catch'](_0x3ddc56=>{throw _0x4cc203('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4d6b98['discard']();}),_0x4d6b98['stopListening'](),this['_suggestions']['delete'](_0x4d6b98['id']),this['_suggestionState']['delete'](_0x4d6b98),_0x3ddc56;});}return _0x4d6b98;}['_isBlockAttribute'](_0x9b1b8e){return this['_blockAttributeKeys']['has'](_0x9b1b8e);}['_updateSuggestionData'](_0x188c86,_0x598109){const _0xb2a29a=this['editor']['plugins']['get']('PendingActions'),_0x55ee75=this['getSuggestion'](_0x188c86);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x55ee75['_saved']){const _0x1f3b17=_0xb2a29a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x188c86,_0x598109)['then'](()=>{_0xb2a29a['remove'](_0x1f3b17);});}else _0x55ee75['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x188c86,_0x598109);});}}['_getSuggestionData'](_0x1ad6ac){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x16515e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ad6ac);}['_handleNewSuggestionMarker'](_0x519532){const {id:_0x146eaa,type:_0x2ab471,subType:_0x2305f7,authorId:_0x9f2884}=this['_splitMarkerName'](_0x519532),_0x4e118a=this['_suggestions']['get'](_0x146eaa)||this['_createSuggestion'](_0x2ab471,_0x2305f7,_0x146eaa,_0x9f2884,{});switch(this['_checkSuggestionCorrectness'](_0x4e118a,_0x2ab471,_0x2305f7,_0x9f2884),this['_suggestionState']['get'](_0x4e118a)){case'notReady':this['_getSuggestionData'](_0x146eaa)['then'](_0x1aa820=>{let _0xe029a4=Promise['resolve']();_0x1aa820['hasComments']&&(_0xe029a4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x146eaa})),_0xe029a4['then'](()=>{this['addSuggestionData'](_0x1aa820)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e118a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x146eaa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e118a,'ready'),this['fire']('suggestionLoaded',_0x4e118a);break;case'ready':this['fire']('suggestionChanged',_0x4e118a);}return _0x4e118a['addMarkerName'](_0x519532),_0x4e118a;}['_refreshSuggestionsChain'](_0x59a5d9){const _0x421f57=Array['from'](_0x59a5d9),_0x593572=_0x421f57['filter'](_0x43a1c0=>'attribute'==_0x43a1c0['type']);this['_refreshAttributeSuggestionsChain'](_0x593572);const _0x2e62ac=_0x421f57['filter'](_0x2538d1=>!_0x2538d1['isMultiRange']&&'attribute'!=_0x2538d1['type']),_0x5e622f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ae58f=>!_0x1ae58f['isMultiRange']&&'attribute'!=_0x1ae58f['type']),_0xa8c567=_0x5e622f['filter'](_0x3385a5=>!_0x59a5d9['has'](_0x3385a5)),_0x14f512=new Map(_0x5e622f['map'](_0x54fde7=>[_0x54fde7,this['_suggestionFactory']['getSuggestionCallback'](_0x54fde7['type'],_0x54fde7['subType'],'chain')])),_0x1001a3=new Map(_0x5e622f['map'](_0x4fd6c9=>[_0x4fd6c9,_0x4fd6c9['getFirstRange']()])),_0xce5180=new Set(),_0x311d59=new Set();for(let _0x2dbcbe=0x0;_0x2dbcbe<_0x2e62ac['length'];_0x2dbcbe++)_0x479d99(_0x2e62ac[_0x2dbcbe],_0x2e62ac,_0x2dbcbe+0x1);for(let _0x43bcb3=0x0;_0x43bcb3<_0x2e62ac['length'];_0x43bcb3++)_0x479d99(_0x2e62ac[_0x43bcb3],_0xa8c567,0x0);const _0x4d9949=new Set();for(let _0x16988b=0x0;_0x16988b<_0x2e62ac['length'];_0x16988b++){const _0x429d9b=_0x2e62ac[_0x16988b];!_0x311d59['has'](_0x429d9b)&&_0x429d9b['previous']&&(_0x4d9949['add'](_0x429d9b['previous']),_0x429d9b['previous']['next']===_0x429d9b&&(_0x429d9b['previous']['next']=null),_0x429d9b['previous']=null),!_0xce5180['has'](_0x429d9b)&&_0x429d9b['next']&&(_0x4d9949['add'](_0x429d9b['next']),_0x429d9b['next']['previous']===_0x429d9b&&(_0x429d9b['next']['previous']=null),_0x429d9b['next']=null);}function _0x479d99(_0x13ae58,_0x450756,_0x5db717){for(let _0x305450=_0x5db717;_0x305450<_0x450756['length'];_0x305450++){const _0x2d66bb=_0x310edf(_0x13ae58,_0x450756[_0x305450]);_0x2d66bb&&(_0x2d66bb[0x0]['next']=_0x2d66bb[0x1],_0x2d66bb[0x1]['previous']=_0x2d66bb[0x0],_0xce5180['add'](_0x2d66bb[0x0]),_0x311d59['add'](_0x2d66bb[0x1]));}}function _0x310edf(_0x3e0a87,_0x345fc0){if(_0x3e0a87['author']['id']!==_0x345fc0['author']['id'])return null;const _0x1db382=_0x14f512['get'](_0x3e0a87)(_0x3e0a87,_0x345fc0,_0x1001a3['get'](_0x3e0a87),_0x1001a3['get'](_0x345fc0));if(!_0x1db382)return null;return _0x14f512['get'](_0x345fc0)(_0x3e0a87,_0x345fc0,_0x1001a3['get'](_0x3e0a87),_0x1001a3['get'](_0x345fc0))?_0x1db382[0x1]['commentThread']&&_0x1db382[0x1]['commentThread']['length']?null:_0x1db382:null;}_0x4d9949['size']&&this['_refreshSuggestionsChain'](_0x4d9949);}['_refreshAttributeSuggestionsChain'](_0x1324cd){if(0x0==_0x1324cd['length'])return;const _0x89bcf4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f8d2b=>'attribute'==_0x3f8d2b['type']&&_0x3f8d2b['_isDataLoaded']),_0x96907d=[],_0x202e99=new Map();for(const _0x34ed0a of _0x89bcf4){const _0x53aa23=_0x4fedb8(_0x34ed0a['attributes']);_0x202e99['has'](_0x53aa23)||(_0x202e99['set'](_0x53aa23,_0x96907d['length']),_0x96907d['push']([]));const _0xe51836=_0x202e99['get'](_0x53aa23);_0x96907d[_0xe51836]['push'](_0x34ed0a);}!(function(){_0x96907d['sort']((_0x1c4431,_0x790dd1)=>{const _0x1c4954=_0x1c4431[0x0]['createdAt'],_0x4e8d8e=_0x790dd1[0x0]['createdAt'];return _0x1c4954==_0x4e8d8e?_0x1c4431[0x0]['attributes']['groupId']<_0x790dd1[0x0]['attributes']['groupId']?-0x1:0x1:_0x1c4954<_0x4e8d8e?-0x1:0x1;});for(const _0x344129 of _0x96907d)_0x344129['sort']((_0x43cc2d,_0x50909e)=>_0x43cc2d['id']<_0x50909e['id']?-0x1:0x1);}());for(let _0x589f95=0x0;_0x589f95<_0x96907d['length'];_0x589f95++){if(0x0==_0x96907d[_0x589f95]['length'])continue;const _0xc6cf85=[];for(let _0x4a2946=_0x589f95+0x1;_0x4a2946<_0x96907d['length'];_0x4a2946++)0x0!=_0x96907d[_0x4a2946]['length']&&_0x271c51(_0x96907d[_0x589f95],_0x96907d[_0x4a2946])&&_0xc6cf85['push'](_0x4a2946);for(const _0x8d79b4 of _0xc6cf85)_0x96907d[_0x589f95]=_0x96907d[_0x589f95]['concat'](_0x96907d[_0x8d79b4]),_0x96907d[_0x8d79b4]=[];}for(const _0x166f12 of _0x96907d)for(let _0x454911=0x0;_0x454911<_0x166f12['length'];_0x454911++)_0x166f12[_0x454911]['next']=_0x166f12[_0x454911+0x1]||null;for(const _0x729947 of _0x96907d)for(let _0x444e22=0x0;_0x444e22<_0x729947['length'];_0x444e22++)_0x729947[_0x444e22]['previous']=_0x729947[_0x444e22-0x1]||null;function _0x271c51(_0x580f29,_0x1f35fb){if(_0x580f29[0x0]['attributes']['groupId']!==_0x1f35fb[0x0]['attributes']['groupId']&&_0x580f29[0x0]['author']!==_0x1f35fb[0x0]['author'])return!0x1;if(!function(_0x5cfd79,_0x353a41){if(!_0x5cfd79['hasComments']&&!_0x353a41['hasComments'])return!0x0;if(_0x5cfd79['hasComments']&&_0x353a41['hasComments'])return!0x1;if(_0x5cfd79['hasComments']&&_0x353a41['createdAt']<_0x5cfd79['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x353a41['hasComments']&&_0x5cfd79['createdAt']<_0x353a41['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x580f29[0x0],_0x1f35fb[0x0]))return!0x1;const _0x1e2025=Bt(_0x580f29[0x0]['attributes'],'groupId'),_0xe557a0=Bt(_0x1f35fb[0x0]['attributes'],'groupId');if(!_0x3ebd5c(_0x1e2025,_0xe557a0))return!0x1;return!!_0x580f29['every'](_0x55335f=>_0x1f35fb['some'](_0x35da91=>_0x55335f['getFirstRange']()['isEqual'](_0x35da91['getFirstRange']())))&&_0x1f35fb['every'](_0x47bd83=>_0x580f29['some'](_0x4a2646=>_0x47bd83['getFirstRange']()['isEqual'](_0x4a2646['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2403d5){const _0x41f5ee=Array['from'](_0x2403d5),_0x1daf5a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x184bba=_0x1daf5a['filter'](_0x41cc6e=>!_0x2403d5['has'](_0x41cc6e)),_0x193a14=new Map(_0x41f5ee['map'](_0x1f456e=>[_0x1f456e,this['_suggestionFactory']['getSuggestionCallback'](_0x1f456e['type'],_0x1f456e['subType'],'join')])),_0x5bbed6=new Map(_0x1daf5a['map'](_0x3c3e78=>[_0x3c3e78,_0x3c3e78['getRanges']()]));for(let _0x464317=0x0;_0x464317<_0x41f5ee['length'];_0x464317++){if(_0x5093e5(this,_0x41f5ee[_0x464317],_0x41f5ee,_0x464317+0x1))return!0x0;}for(let _0x3b7506=0x0;_0x3b7506<_0x41f5ee['length'];_0x3b7506++){if(_0x5093e5(this,_0x41f5ee[_0x3b7506],_0x184bba,0x0))return!0x0;}return!0x1;function _0x5093e5(_0x67dd41,_0x1a95be,_0x337fd6,_0x35b08c){for(let _0xa3211=_0x35b08c;_0xa3211<_0x337fd6['length'];_0xa3211++){const _0x2ef5da=_0x337fd6[_0xa3211];if(_0x2ef5da['type']!==_0x1a95be['type']||_0x2ef5da['author']['id']!==_0x1a95be['author']['id']||_0x2ef5da['subType']!==_0x1a95be['subType'])continue;if(!Pt(_0x1a95be,_0x2ef5da,['groupId']))continue;if('attribute'==_0x1a95be['type']&&_0x1a95be['data']['oldValue']!=_0x2ef5da['data']['oldValue'])continue;if('attribute'==_0x1a95be['type']&&_0x67dd41['_isBlockAttribute'](_0x1a95be['data']['key']))continue;if('formatBlock'==_0x1a95be['type']){const _0x5e263c=_0x67dd41['editor']['model'],_0x3b9972=_0x1a95be['getContainedElement']();if(_0x3b9972&&(_0x5e263c['schema']['isObject'](_0x3b9972)||_0x5e263c['schema']['isLimit'](_0x3b9972)))continue;}const _0x2f2f8f=_0x193a14['get'](_0x1a95be),_0x4cdc56=_0x5bbed6['get'](_0x1a95be),_0x2ea4f8=_0x5bbed6['get'](_0x2ef5da),_0x1ab4d7=_0x1a95be['commentThread']&&_0x1a95be['commentThread']['length'],_0x429b72=_0x2ef5da['commentThread']&&_0x2ef5da['commentThread']['length'];if(!_0x1ab4d7&&_0x2f2f8f(_0x2ea4f8,_0x4cdc56))return _0x67dd41['_joinSuggestions'](_0x2ef5da,_0x1a95be),_0x5bbed6['delete'](_0x1a95be),!0x0;if(!_0x429b72&&_0x2f2f8f(_0x4cdc56,_0x2ea4f8))return _0x67dd41['_joinSuggestions'](_0x1a95be,_0x2ef5da),_0x5bbed6['delete'](_0x2ef5da),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1da6a9,_0x2cf74e){if(_0x1da6a9['isMultiRange']){for(const _0x107912 of _0x2cf74e['getRanges']())_0x1da6a9['addRange'](_0x107912);}else{const _0x2ad096=_0x2cf74e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1da6a9,this['_model']['createRange'](_0x1da6a9['getFirstRange']()['start'],_0x2ad096));}_0x2cf74e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2b3bb4,_0xb53393){const _0x1f7b49=_0x2b3bb4['startsWith']('format')||_0x2b3bb4['startsWith']('attribute')?'FORMATTING':_0x2b3bb4['toUpperCase']();return o(this['editor']['locale'],_0xb53393+'_'+_0x1f7b49+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x33e442=this['editor'];if(!_0x33e442['ui'])return;const {ariaLiveAnnouncer:_0x5d7253}=_0x33e442['ui'];_0x313780(this['_model'],({left:_0x1aa3ac,entered:_0x51e8ff})=>{for(const _0x36f906 of _0x1aa3ac){const {group:_0x19382b,type:_0x3d7ab2}=this['_splitMarkerName'](_0x36f906['name']);if('suggestion'===_0x19382b){_0x5d7253['announce'](this['_getMarkerAnnouncementText'](_0x3d7ab2,'LEAVE'));break;}}for(const _0x5b9865 of _0x51e8ff){const {group:_0x546fef,type:_0x5dd56e}=this['_splitMarkerName'](_0x5b9865['name']);if('suggestion'===_0x546fef){_0x5d7253['announce'](this['_getMarkerAnnouncementText'](_0x5dd56e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x58a22d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4732a2=this['editor'],_0x5b9164=_0x4732a2['model']['document']['differ']['getChanges']();if(0x0==_0x5b9164['length'])return!0x1;const _0x591bf9=[],_0x3741e2=_0x5b9164['filter'](_0x25e52c=>'attribute'==_0x25e52c['type']),_0x14e126=_0x5b9164['filter'](_0x1f726a=>'insert'==_0x1f726a['type']&&'$text'!=_0x1f726a['name']),_0x136c28=_0x5b9164['filter'](_0x59512b=>'remove'==_0x59512b['type']&&'$text'!=_0x59512b['name']);for(const _0x397b80 of _0x3741e2)_0x591bf9['push']({'key':_0x397b80['attributeKey'],'newValue':_0x397b80['attributeNewValue'],'oldValue':_0x397b80['attributeOldValue'],'range':Ot(_0x397b80['range'],_0x4732a2['model'])});for(const _0x55c13f of _0x14e126){const _0x34896f=_0x136c28['find'](_0x2d6c7b=>_0x2d6c7b['position']['isEqual'](_0x55c13f['position']));_0x34896f&&_0x591bf9['push']({'key':m,'newValue':_0x55c13f['name'],'oldValue':_0x34896f['name'],'range':_0x4732a2['model']['createRangeOn'](_0x55c13f['position']['nodeAfter'])});}return 0x0!=_0x591bf9['length']&&this['_reduceExistingSuggestions'](_0x58a22d,_0x591bf9);}['_processAttributeSuggestions'](_0x3fbaec){let _0x16be06=!0x1;const _0x4b1109=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2014c6=>_0x2014c6['data']['newRange']&&_0x2014c6['name']['startsWith']('suggestion:attribute:'));for(const _0x2bd8eb of _0x4b1109){const {subType:_0x1cda1d,id:_0x43bb96}=this['_splitMarkerName'](_0x2bd8eb['name']),_0x455d6c=_0x1cda1d['split']('|')[0x0];for(const _0xa15b34 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xa15b34['id']!=_0x43bb96&&'attribute'==_0xa15b34['type']&&_0xa15b34['data']&&_0xa15b34['data']['key']==_0x455d6c&&_0xa15b34['getFirstRange']()['isIntersecting'](_0x2bd8eb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xa15b34,_0x2bd8eb['data']['newRange'],_0x3fbaec),_0x16be06=!0x0);}return _0x16be06;}['_recordAttributeChanges'](_0x5c03b8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5c03b8();}['_isRegisteredAttribute'](_0x3cec67){const _0x2be814=this['_isBlockAttribute'](_0x3cec67),_0xa95e1a=this['_inlineAttributeKeys']['has'](_0x3cec67);return _0x2be814||_0xa95e1a;}['_reduceExistingSuggestions'](_0x3b957a,_0x501ccf){if(0x0==_0x501ccf['length'])return!0x1;let _0x4dbfb9=!0x1;for(const _0xe6f6a4 of _0x501ccf){const _0x1a922b=this['_findSuggestions'](_0xe6f6a4['range'],'attribute')['filter'](_0x5e55e1=>!_0x5e55e1['meta']['isNextTo'])['map'](_0xa6ab93=>_0xa6ab93['suggestion']),_0x29e2a0=_0x4fedb8({'newValue':_0xe6f6a4['newValue']});_0x1a922b['filter'](_0x10954c=>{const [_0x2bdaf3,_0x1525f0]=_0x10954c['subType']['split']('|');return _0x2bdaf3==_0xe6f6a4['key']&&_0x1525f0!=_0x29e2a0;})['forEach'](_0x55ba84=>{this['_reduceSuggestionAttributeRange'](_0x55ba84,_0xe6f6a4['range'],_0x3b957a),_0x4dbfb9=!0x0;});}return _0x4dbfb9;}['_reduceSuggestionAttributeRange'](_0x4ec200,_0x19bdca,_0x247159){const _0x592320=_0x4ec200['getFirstRange']()['getDifference'](_0x19bdca);0x0!==_0x592320['length']?0x1!==_0x592320['length']?this['_breakSuggestionMarker'](_0x4ec200,_0x19bdca['start'],_0x19bdca['end']):this['_setSuggestionRange'](_0x4ec200,_0x592320[0x0]):_0x247159['removeMarker'](_0x4ec200['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x419700){this['_editor']=_0x419700,this['_model']=_0x419700['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3ece53,_0x479405,_0x5ed2d2,_0x3b2e78,_0x1d8259,_0x1898a7){return new u(this['_model'],{'type':_0x3ece53,'subType':_0x479405,'id':_0x5ed2d2,'author':_0x3b2e78,'creator':_0x3b2e78,'attributes':_0x1d8259,'onAttributesChange':_0x1898a7,'onAccept':(..._0x175c99)=>this['getSuggestionCallback'](_0x3ece53,_0x479405,'accept')(..._0x175c99),'onDiscard':(..._0x624f8c)=>this['getSuggestionCallback'](_0x3ece53,_0x479405,'discard')(..._0x624f8c)});}['registerCustomCallback'](_0x4035eb,_0x35e362,_0xd1c68a,_0x4054b4){const _0x251288=_0x4035eb+':'+_0x35e362+':'+_0xd1c68a;this['_customCallbacks']['set'](_0x251288,_0x4054b4);}['getSuggestionCallback'](_0x277831,_0x3fcc37,_0x5f03e1){const _0x446e6=_0x277831+':'+_0x3fcc37+':'+_0x5f03e1;return this['_customCallbacks']['get'](_0x446e6)||this['_defaultCallbacks']['get'](_0x277831+':'+_0x5f03e1);}['_registerDefaultCallbacks'](){const _0x251513=()=>!0x1,_0x363cef=_0x4fd161=>{_0x4fd161['sort']((_0x4c5fc0,_0x20b1c9)=>_0x4c5fc0['start']['isBefore'](_0x20b1c9['start'])?0x1:-0x1),this['_model']['change'](_0x53dc26=>{for(const _0x5ad8b0 of _0x4fd161){let _0xf69c60;_0xf69c60=_0x5ad8b0['end']['isAtEnd']&&_0x5ad8b0['end']['parent']==_0x5ad8b0['start']['nodeAfter']?_0x53dc26['createSelection'](_0x5ad8b0['start']['nodeAfter'],'on'):_0x53dc26['createSelection'](_0x5ad8b0),this['_model']['deleteContent'](_0xf69c60,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1357d4=(_0x1a1ced,_0x7da6d2)=>{_0x7da6d2&&this['_model']['change'](_0x1f50be=>{const {commandName:_0x28b60f,commandParams:_0x58973b=[]}=_0x7da6d2,_0x24c270=_0x1a1ced['map'](_0x3469e0=>(Tt(_0x3469e0)&&(_0x3469e0=this['_model']['createRange'](_0x3469e0['end'])),_0x3469e0))['filter'](_0x50dd16=>'$graveyard'!==_0x50dd16['root']['rootName']);if(_0x24c270['length']<0x1)return;const _0x4ce50a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2bb108=>_0x38a2be['fromRange'](_0x2bb108));_0x1f50be['setSelection'](_0x24c270);for(const _0x36c3dc of this['_editor']['commands']['commands']())_0x36c3dc['refresh']();_0x58973b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28b60f,..._0x58973b);const _0x3333f8=_0x4ce50a['filter'](_0x3b46e9=>'$graveyard'!=_0x3b46e9['root']['rootName']);_0x3333f8['length']>0x0&&_0x1f50be['setSelection'](_0x3333f8);for(const _0x4eb4ba of _0x4ce50a)_0x4eb4ba['detach']();});},_0x5e64bd=(_0x55b3d5,_0x1d5944)=>0x1==_0x55b3d5['length']&&0x1==_0x1d5944['length']&&_0x55b3d5[0x0]['end']['isEqual'](_0x1d5944[0x0]['start']),_0x2272e0=(_0x589573,_0x2982e8,_0x17b079,_0x445241)=>Ft(_0x589573,_0x2982e8,_0x17b079,_0x445241,this['_model'])?[_0x589573,_0x2982e8]:Ft(_0x2982e8,_0x589573,_0x445241,_0x17b079,this['_model'])?[_0x2982e8,_0x589573]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x251513),this['_defaultCallbacks']['set']('insertion:discard',_0x363cef),this['_defaultCallbacks']['set']('insertion:join',_0x5e64bd),this['_defaultCallbacks']['set']('insertion:chain',_0x2272e0),this['_defaultCallbacks']['set']('deletion:accept',_0x363cef),this['_defaultCallbacks']['set']('deletion:discard',_0x251513),this['_defaultCallbacks']['set']('deletion:join',_0x5e64bd),this['_defaultCallbacks']['set']('deletion:chain',_0x2272e0),this['_defaultCallbacks']['set']('formatInline:accept',_0x1357d4),this['_defaultCallbacks']['set']('formatInline:discard',_0x251513),this['_defaultCallbacks']['set']('formatInline:join',_0x5e64bd),this['_defaultCallbacks']['set']('formatInline:chain',_0x251513),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1357d4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x251513),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e64bd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x251513),this['_defaultCallbacks']['set']('attribute:accept',_0x251513),this['_defaultCallbacks']['set']('attribute:discard',(_0x559cbb,_0xd02221)=>{if(!_0xd02221)return;const _0x290692=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x396d0c=>{if(_0xd02221['key']==m)for(const _0x1c2cbd of _0x559cbb){const _0x28b3ad=_0x1c2cbd['start']['nodeAfter'],_0x33f4cb=_0xd02221['oldValue'];_0x396d0c['rename'](_0x28b3ad,_0x33f4cb);}else{if(_0x290692['_isBlockAttribute'](_0xd02221['key'])){for(const _0x17393b of _0x559cbb)void 0x0!==_0xd02221['oldValue']?_0x396d0c['setAttribute'](_0xd02221['key'],_0xd02221['oldValue'],_0x17393b['start']['nodeAfter']):_0x396d0c['removeAttribute'](_0xd02221['key'],_0x17393b['start']['nodeAfter']);}else{for(const _0x58f1f5 of _0x559cbb)_0xd02221['oldValue']?_0x396d0c['setAttribute'](_0xd02221['key'],_0xd02221['oldValue'],_0x58f1f5):_0x396d0c['removeAttribute'](_0xd02221['key'],_0x58f1f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e64bd);}}function Rt(_0x5e8005,_0x4211b1,_0x5b40c7){for(const _0x51cd70 of _0x4211b1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51cd70['root']==_0x51cd70)return!0x1;if(!_0x5b40c7['containsItem'](_0x51cd70))return!0x1;if(_0x5e8005['isObject'](_0x51cd70)||_0x5e8005['isLimit'](_0x51cd70))return!0x0;}return!0x1;}function Tt(_0x2fa6cc){return _0x2fa6cc['end']['parent']==_0x2fa6cc['start']['nodeAfter']&&_0x2fa6cc['end']['isAtStart'];}function Et(_0x2c6301,_0x471544,_0xe64ef6,_0x2af3a9){const _0x2fd300=_0x2ea8b8=>!_0x2ea8b8['item']['is']('$textProxy')&&!_0x2af3a9['isObject'](_0x2ea8b8['item']),_0x18b255=_0x2c6301['start']['getLastMatchingPosition'](_0x2fd300),_0x4569f5=_0x2c6301['end']['getLastMatchingPosition'](_0x2fd300,{'direction':'backward'});return(!_0x2c6301['start']['isEqual'](_0x18b255)||!_0x2c6301['end']['isEqual'](_0x4569f5))&&(_0x18b255['isBefore'](_0x4569f5)?_0xe64ef6['updateMarker'](_0x471544,{'range':_0xe64ef6['createRange'](_0x18b255,_0x4569f5)}):_0xe64ef6['removeMarker'](_0x471544),!0x0);}function Vt(_0x539eb7){return _0x4fedb8(_0x539eb7);}function Ut(_0x55f5ab){const _0x3af9df=_0x55f5ab['start']['nodeAfter'];return _0x3af9df&&_0x3af9df['is']('element');}function Ot(_0x2a3312,_0x59e613){return null==_0x2a3312['end']['nodeBefore']&&_0x2a3312['end']['parent']==_0x2a3312['start']['nodeAfter']?Gt(_0x2a3312['start']['nodeAfter'],_0x59e613):_0x2a3312;}function Gt(_0x9421c4,_0x2b92b9){const _0x1a6a1c=_0x2b92b9['schema']['isObject'](_0x9421c4)||_0x2b92b9['schema']['isSelectable'](_0x9421c4);return _0x2b92b9['createRange'](_0x2b92b9['createPositionAt'](_0x9421c4,'before'),_0x1a6a1c?_0x2b92b9['createPositionAfter'](_0x9421c4):_0x2b92b9['createPositionAt'](_0x9421c4,'end'));}function Ft(_0x314f88,_0x42ddb4,_0x28a67c,_0x1482fe,_0x41436b){if(!Pt(_0x314f88,_0x42ddb4))return!0x1;if(_0x28a67c['end']['isEqual'](_0x1482fe['start']))return!0x0;if(_0x314f88['type']!=_0x42ddb4['type'])return!0x1;if(!_0x28a67c['end']['isTouching'](_0x1482fe['start']))return!0x1;const _0x2a4c73=_0x41436b['createRange'](_0x28a67c['end'],_0x1482fe['start'])['getWalker']();for(const _0x140d09 of _0x2a4c73)if(['elementStart','elementEnd']['includes'](_0x140d09['type'])&&_0x41436b['schema']['isLimit'](_0x140d09['item']))return!0x1;return!0x0;}function Pt(_0x45e314,_0x47cacd,_0xbfc566=[]){return!(!_0x45e314['_isDataLoaded']||!_0x47cacd['_isDataLoaded'])&&_0x3ebd5c(Bt(_0x45e314['attributes'],_0xbfc566),Bt(_0x47cacd['attributes'],_0xbfc566));}function Lt(_0x5ded97,_0x398e98){const _0x55007c=Ht(_0x5ded97['attributes']),_0x541816=Ht(_0x398e98);if(!_0x5ded97['_isDataLoaded'])return!0x1;for(const _0x5209d9 of Object['keys'](_0x541816))if(!_0x3ebd5c(_0x55007c[_0x5209d9],_0x541816[_0x5209d9]))return!0x1;return!0x0;}function Ht(_0x671b04){const _0x3e18a6=Object['assign']({},_0x671b04);return delete _0x3e18a6['skipNestingCheck'],delete _0x3e18a6['tablePasteChainId'],_0x3e18a6;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1256a3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x530620,_0x1a754a,_0x133abb,_0x30826d){super(),this['model']=_0x1a754a,this['view']=_0x133abb,this['commentThreadController']=_0x30826d,this['_editor']=_0x530620,this['_acceptCommand']=_0x530620['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x530620['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e5423,_0x1218dd)=>_0x4e5423||_0x1218dd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d3186=>_0x1d3186&&this['_editor']['model']['canEditAt'](_0x1a754a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x593192=>_0x593192&&this['_editor']['model']['canEditAt'](_0x1a754a['getRanges']())),this['_pendingAction']=null,_0x133abb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x133abb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x133abb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x133abb,'change:isDirty',()=>{_0x133abb['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 _0xa09953=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa09953);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3f7679{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x133b6a,_0x516d6b,_0x134854,_0x3adcd7){super(_0x133b6a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x516d6b['authoredAt']),this['bind']('authoredAt')['to'](_0x516d6b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x516d6b,this['_localUser']=_0x134854,this['_config']=_0x3adcd7,_0x3adcd7['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:_0x55a504}=this['_config'];this['commentsListView']=new _0x55a504(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',_0x540172=>_0x540172+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38b567,_0x5cce6d)=>_0x38b567||!!_0x5cce6d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c5c95}=this['_config'],_0x4d6878=new _0x1c5c95(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x217742=_0x4d6878['commentInputView'];return _0x4d6878['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x217742,'value',(_0x205a34,_0x3c2636,_0x456502)=>!!_0x456502||_0x205a34&&!_0x3c2636),_0x217742['on']('submit',(_0x3135c2,_0x2a2ff3)=>{this['fire']('addComment',_0x2a2ff3),_0x217742['editor']['setData']('');}),_0x217742['on']('cancel',()=>this['focus']()),_0x217742['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d6878;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5e2bfa,_0x19c63e,_0xba276b,_0x25f2c8){super(_0x5e2bfa,_0x19c63e,_0xba276b,_0x25f2c8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x88fd2f=>_0x88fd2f&&_0x88fd2f[0x0]?_0x88fd2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x48665e,_0x82a9c2)=>{let _0x24df9e='';for(const _0x49415d of _0x48665e)_0x24df9e+='<p>'+ds(_0x49415d['content'],_0x49415d['color'])+'</p>';return _0x82a9c2?_0x24df9e:_0x54a2e5(_0x24df9e,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5e2bfa,'Accept\x20suggestion'),_0x360525['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5e2bfa,'Discard\x20suggestion'),_0x360525['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1794e9(_0x5e2bfa,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x549ea6=this['bindTemplate'],_0x3c9d63=[{'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':_0x549ea6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x549ea6['to']('authoredAt',_0x3746d5=>this['_config']['formatDateTime'](_0x3746d5))}]}]},{'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']&&_0x3c9d63['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3ca6b4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x549ea6['if']('isActive','ck-suggestion-wrapper--active'),_0x549ea6['to']('type',_0x51453f=>'ck-suggestion-'+_0x51453f),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':_0x3c9d63}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3ca6b4['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)),_0x3ca6b4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5145ea,_0x1b9a6c,_0x3bb6c4)=>{this['_descriptionElement']['innerHTML']=_0x3bb6c4;});}['_createButton'](_0x120534,_0x7296e0,_0x1a8b96,_0x47e82e,_0x323207){const _0x2444d2=new _0x103837(this['locale']);return _0x2444d2['set']({'label':_0x120534,'icon':_0x7296e0,'tooltip':!0x0,'tooltipPosition':_0x323207}),_0x2444d2['extendTemplate']({'attributes':{'class':_0x1a8b96}}),_0x2444d2['on']('execute',()=>{this['fire'](_0x47e82e,this['_model']['id']);}),_0x2444d2;}['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(_0x33086b,_0x266888){let _0x2596b2='';return _0x2596b2+=_0x33086b['split']('*')['map']((_0x555595,_0x56ad19)=>_0x56ad19%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x555595)+'</span>':us(_0x555595))['join'](''),_0x266888&&(_0x2596b2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x266888['value']+'\x22\x20title=\x22'+_0x266888['title']+'\x22></span>'),_0x2596b2;}function us(_0x164782){const _0x30e088=document['createElement']('span');return _0x30e088['innerText']=_0x164782,_0x30e088['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 _0x4e999c{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5d340e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x41e7ac){super(_0x41e7ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x505bd1=this['editor']['config'];_0x505bd1['define']('trackChanges.SuggestionThreadView',ne),_0x505bd1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x505bd1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x21c3d0,_0x4cd4d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20c198,_0xd6720]of this['_handleControllerBuffer']){const _0x2d55d1=this['_suggestionToController']['has'](_0x20c198);_0x2d55d1||_0xd6720?_0x2d55d1&&_0xd6720&&this['_destroyController'](_0x20c198):this['_initializeController'](_0x20c198);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x21c3d0,_0x4cd4d0);}['init'](){const _0x74ebd6=this['editor'],_0x3a8e0d=_0x74ebd6['plugins']['get']('TrackChangesEditing'),_0x3b1f52=_0x74ebd6['plugins']['get']('Annotations'),_0x3207d3=_0x74ebd6['plugins']['get']('EditorAnnotations'),_0x222c57=_0x74ebd6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3207d3['addSourceCollector'](()=>{const _0x426c43=[];for(const [_0x4581ff,_0x5c44b8]of Array['from'](this['_suggestionToController'])){const _0x5b9683=_0x4581ff['getAllAdjacentSuggestions'](),_0x2d28d0=[];for(const _0x1b90c1 of _0x5b9683){if(!_0x1b90c1['isInContent'])continue;if(_0x1b90c1['isMultiRange']){_0x2d28d0['push'](..._0x1b90c1['getRanges']());continue;}const _0xa23596=_0x1b90c1['getFirstRange']();if(_0x2d28d0['length']>0x0){const _0x4ca882=_0x2d28d0[0x0]['getJoined'](_0xa23596);if(_0x4ca882){_0x2d28d0[0x0]=_0x4ca882;continue;}}_0x2d28d0['push'](_0xa23596);}_0x426c43['push']([_0x5c44b8['view'],_0x2d28d0]);}return _0x426c43;}),this['listenTo'](_0x3a8e0d,'suggestionLoaded',(_0x3bc075,_0x374ace)=>{this['listenTo'](_0x374ace,'change:previous',(_0x575a97,_0x5b7e13,_0x28d925,_0x34ac1f)=>{_0x374ace['isInContent']&&(null==_0x28d925?(this['_updateController'](_0x34ac1f['head']),this['_handleSuggestionControllerDelayed'](_0x374ace,!0x1)):(this['_updateController'](_0x28d925['head']),null==_0x34ac1f&&this['_handleSuggestionControllerDelayed'](_0x374ace,!0x0)));}),null!==_0x374ace['previous']?this['_updateController'](_0x374ace['head']):this['_handleSuggestionControllerDelayed'](_0x374ace,!0x1);}),this['listenTo'](_0x3a8e0d,'suggestionUnloaded',(_0xdaa406,_0x259f60,_0x58d685)=>{this['stopListening'](_0x259f60,'change:previous'),this['_handleControllerBuffer']['delete'](_0x259f60),this['_suggestionToController']['has'](_0x259f60)&&this['_destroyController'](_0x259f60),_0x58d685&&this['_updateController'](_0x58d685['head']);}),this['listenTo'](_0x3a8e0d,'suggestionChanged',(_0x138616,_0x578421)=>{this['_updateController'](_0x578421);}),this['listenTo'](_0x3b1f52,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x222c57,'addComment',(_0x2dcb36,{threadId:_0x416916,isFromAdapter:_0x396f2f})=>{if(_0x396f2f||!_0x3a8e0d['hasSuggestion'](_0x416916))return;const _0x365823=_0x3a8e0d['getSuggestion'](_0x416916);this['_suggestionToController']['get'](_0x365823)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1913b4=this['editor']['plugins']['get']('Annotations'),_0x59ae7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x231c77=Array['from'](_0x1913b4['activeAnnotations'],_0x17d80d=>_0x17d80d['innerView'])['filter'](_0x55f420=>this['_viewToController']['has'](_0x55f420)),_0x53db3e=[];for(const _0x4eea2a of _0x231c77){const _0x286377=this['_viewToController']['get'](_0x4eea2a)['model']['getAllAdjacentSuggestions']();_0x53db3e['push'](..._0x286377['reduce']((_0x52ee58,_0x31619f)=>[..._0x52ee58,..._0x31619f['getMarkerNames']()],[]));}_0x59ae7a['activeMarkers']=_0x53db3e;}['_addUIComponentsToFactory'](){const _0x382515=this['editor'],_0x1d889e=_0x382515['locale'],_0x35e011=o(_0x1d889e,'Track\x20changes'),_0x910dd0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x35e011,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d889e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d889e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d889e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d889e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x24d31d of _0x910dd0)if(ae(_0x24d31d)){const _0x491991=_0x382515['commands']['get'](_0x24d31d['model']['commandName']);_0x24d31d['model']['bind']('isOn','isEnabled')['to'](_0x491991,'value','isEnabled');}_0x382515['ui']['componentFactory']['add']('trackChanges',_0x5b3469=>this['_createToolbarButton'](_0x5b3469,_0x910dd0,_0x35e011)),_0x382515['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1132fa=>this['_createMenuBarMenu'](_0x1132fa,_0x910dd0,_0x35e011));}['_createToolbarButton'](_0x2ada07,_0x3e1c41,_0x3a55b6){const _0x15de41=zt(_0x2ada07,Zt),_0x323579=this['editor']['commands']['get']('trackChanges');_0x15de41['buttonView']['set']({'tooltip':_0x3a55b6,'label':_0x3a55b6,'icon':ie}),_0x15de41['buttonView']['bind']('isOn')['to'](_0x323579,'value'),_0x15de41['buttonView']['on']('execute',()=>{_0x323579['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x15de41,_0x3e1c41,{'role':'menu'});const _0x4046be=[];for(const _0x5d5f2e of _0x3e1c41)ae(_0x5d5f2e)&&_0x4046be['push'](this['editor']['commands']['get'](_0x5d5f2e['model']['commandName']));const _0xee890a=_0x15de41['buttonView'];return _0xee890a['actionView']['unbind']('isEnabled'),_0xee890a['arrowView']['unbind']('isEnabled'),_0xee890a['actionView']['bind']('isEnabled')['to'](_0x323579,'isEnabled'),_0xee890a['arrowView']['bind']('isEnabled')['toMany'](_0x4046be,'isEnabled',(..._0x4d0227)=>_0x4d0227['some'](_0x2d30d9=>_0x2d30d9)),_0x15de41['on']('execute',_0x409da4=>{this['editor']['execute'](_0x409da4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x15de41;}['_createMenuBarMenu'](_0xa82d24,_0x2eb671,_0x50c0fb){const _0x375b7f=new Kt(_0xa82d24),_0x4027ff=this['editor']['commands']['get']('trackChanges');_0x375b7f['buttonView']['set']({'label':_0x50c0fb,'icon':ie});const _0x5cc2e3=new Qt(_0xa82d24);for(const _0xfad663 of _0x2eb671){if('separator'==_0xfad663['type']){_0x5cc2e3['items']['add'](new Jt(_0xa82d24));continue;}const _0xcc4661=new Xt(_0xa82d24,_0x375b7f),_0x59d923=new Yt(_0xa82d24),_0x152ffb=_0xfad663['model'];_0x59d923['bind'](...Object['keys'](_0x152ffb))['to'](_0x152ffb),_0x59d923['delegate']('execute')['to'](_0x375b7f),_0x59d923['on']('execute',()=>{this['editor']['execute'](_0x152ffb['commandName']),this['editor']['editing']['view']['focus']();}),_0xcc4661['children']['add'](_0x59d923),_0x5cc2e3['items']['add'](_0xcc4661);}return _0x375b7f['bind']('isEnabled')['to'](_0x4027ff,'isEnabled'),_0x375b7f['panelView']['children']['add'](_0x5cc2e3),_0x375b7f;}['_initializeController'](_0x1edfbf){const _0x2a01b7=this['editor'],_0x4d5f98=_0x2a01b7['config'],_0x3e6182=_0x2a01b7['plugins']['get']('Annotations'),_0x22be52=_0x2a01b7['plugins']['get']('CommentsRepository'),_0x500c2c=_0x2a01b7['plugins']['get']('EditorAnnotations'),_0x34209f=_0x2a01b7['plugins']['get'](_0x5d340e)['me'],_0xd6ff65=_0x4d5f98['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4bce51,CommentThreadInputView:_0x21c03b}=_0x2a01b7['plugins']['get']('CommentsUI');let _0x4c896e,_0x3a86cd;this['_annotationViews']['has'](_0x1edfbf['id'])?(_0x3a86cd=this['_annotationViews']['get'](_0x1edfbf['id']),_0x4c896e=_0x3a86cd['mainView']):(_0x4c896e=new _0xd6ff65(_0x2a01b7['locale'],_0x1edfbf,_0x34209f,{'disableComments':this['_disableComments'],'editorConfig':_0x4d5f98['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4d5f98['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d5f98['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d5f98['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf0f4f6(_0x4d5f98['get']('locale')),'CommentView':_0x4d5f98['get']('comments')['CommentView'],'CommentsListView':_0x4bce51,'CommentThreadInputView':_0x21c03b}),_0x4c896e['acceptButton']['on']('execute',()=>{_0x2a01b7['editing']['view']['focus']();}),_0x4c896e['discardButton']['on']('execute',()=>{_0x2a01b7['editing']['view']['focus']();}),_0x3a86cd=_0x3e6182['createAnnotationView'](this['editor']['locale'],_0x4c896e),_0x3a86cd['bind']('isDirty')['to'](_0x4c896e,'isDirty'),_0x3a86cd['bind']('length')['to'](_0x4c896e),_0x3a86cd['bind']('type')['to'](_0x4c896e,'type',_0x54082e=>'suggestion-'+_0x54082e),this['_annotationViews']['set'](_0x1edfbf['id'],_0x3a86cd));const _0x41f32a=_0x22be52['createCommentThreadController'](_0x1edfbf['commentThread'],_0x4c896e),_0x4010c5=new oe(_0x2a01b7,_0x1edfbf,_0x4c896e,_0x41f32a),_0x34957b=_0x1edfbf['getAllAdjacentSuggestions']()['filter'](_0x1e66b9=>_0x1e66b9['isInContent']);_0x4c896e['descriptionParts']=_0x2a01b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x34957b),this['_suggestionToController']['set'](_0x1edfbf,_0x4010c5),this['_viewToController']['set'](_0x4c896e,_0x4010c5);const _0x41f303=_0x3e6182['createAnnotation']({'view':_0x3a86cd,'target':()=>{const _0x4bcc3e=[],_0x1238cf=_0x1edfbf['getAllAdjacentSuggestions']()['filter'](_0x3ab49e=>_0x3ab49e['isInContent']);for(const _0x1b500e of _0x1238cf)_0x4bcc3e['push'](..._0x1b500e['getMarkers']());return _0x1c2554(_0x2a01b7['editing'],_0x4bcc3e);},'type':()=>'suggestion-'+_0x4010c5['view']['type']});_0x22be52['_bindAnnotationToEditors'](_0x4c896e,_0x41f303),_0x3e6182['add'](_0x41f303),_0x500c2c['registerAnnotation'](_0x41f303);}['_destroyController'](_0x4e6801){const _0x2b91ae=this['editor']['plugins']['get']('CommentsRepository'),_0x57c014=this['editor']['plugins']['get']('Annotations'),_0x1992a2=this['_suggestionToController']['get'](_0x4e6801),_0x465860=_0x1992a2['view'],_0x449906=_0x57c014['getByInnerView'](_0x465860);_0x2b91ae['_unbindEditors'](_0x465860),_0x449906&&_0x57c014['remove'](_0x449906),this['_suggestionToController']['delete'](_0x4e6801),this['_viewToController']['delete'](_0x465860),_0x1992a2['destroy']();}['_updateController'](_0x341e96){if(!_0x341e96['isInContent']||!this['_suggestionToController']['has'](_0x341e96))return;const _0x75a126=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58cae8=this['_suggestionToController']['get'](_0x341e96),_0x306092=_0x341e96['getAllAdjacentSuggestions']();_0x58cae8['view']['descriptionParts']=_0x75a126['descriptionFactory']['getDescriptions'](_0x306092);}['destroy'](){for(const _0x78d41e of this['_suggestionToController']['keys']())this['_destroyController'](_0x78d41e);for(const _0x1c3191 of this['_annotationViews']['values']())_0x1c3191['mainView']['destroy']();super['destroy']();}}function ae(_0x38a719){return'model'in _0x38a719;}class k extends _0x4e999c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x578e1){this['editor']['plugins']['get'](p)['adapter']=_0x578e1;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38fe3d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38fe3d);}['getSuggestions']({skipNotAttached:_0x47b2c3=!0x1,toJSON:_0x1ef068=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x47b2c3,'toJSON':_0x1ef068});}['getSuggestion'](_0x24e637){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x24e637);}}const T=['Pagination'];class P extends _0x4e999c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x133b2f=this['editor'];if(_0x133b2f['config']['define']('trackChangesData.editorCreator',_0xd4cb4=>{const _0x53f99a=_0x133b2f['model']['document']['getRootNames']()['reduce']((_0x1f9dcc,_0x497877)=>(_0x1f9dcc[_0x497877]='',_0x1f9dcc),{});return _0x133b2f['constructor']['create'](_0x53f99a,_0xd4cb4);}),'function'!=typeof _0x133b2f['config']['get']('trackChangesData')['editorCreator'])throw new _0x16515e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x52f580){return N(this['editor'],!0x0,_0x52f580);}['getDataWithDiscardedSuggestions'](_0x2f0d5f){return N(this['editor'],!0x1,_0x2f0d5f);}}class D extends _0x4e999c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2bb0d0){super(_0x2bb0d0),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(_0x365563){return void 0x0!==_0x365563['getRootsAttributes'];}async function N(_0x575cd7,_0x26213f,_0x22dfb5){const _0x217bff=_0x51699c(_0x575cd7,T);_0x217bff['plugins']['push'](p,D),_0x217bff['rootsAttributes']=v(_0x575cd7)?_0x575cd7['getRootsAttributes']():void 0x0;const _0x2a60e9=document['createDocumentFragment'](),_0x26c5a0=_0x575cd7['config']['get']('trackChangesData')['editorCreator'],_0x1b5576=await _0x26c5a0(_0x217bff,()=>function(_0x59d1e3){const _0x5bb795=document['createElement']('div');return _0x59d1e3['appendChild'](_0x5bb795),_0x5bb795;}(_0x2a60e9));!function(_0x55e178,_0x1b81ae){const _0x36a526=_0x55e178['model']['document']['getRootNames']()['reduce']((_0x2e1fb3,_0x242ffd)=>(_0x2e1fb3[_0x242ffd]=_0x55e178['data']['get']({'rootName':_0x242ffd}),_0x2e1fb3),{}),_0x21bbcf=_0x55e178['plugins']['get']('Users')['users']['map'](_0x193269=>({'id':_0x193269['id'],'name':_0x193269['name']})),_0x5e41b1=_0x55e178['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3125d2=_0x55e178['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x391ec9=_0x1b81ae['plugins']['get']('Users'),_0x6a036c=_0x1b81ae['plugins']['get']('TrackChangesEditing'),_0x311691=_0x1b81ae['plugins']['get']('CommentsRepository');for(const _0x583099 of _0x21bbcf)_0x391ec9['getUser'](_0x583099['id'])||_0x391ec9['addUser'](_0x583099);_0x391ec9['me']||_0x391ec9['useAnonymousUser']();for(const _0xd346e4 of _0x3125d2)_0x311691['addCommentThread'](_0xd346e4);for(const _0x41e9d9 of _0x5e41b1)_0x6a036c['addSuggestionData'](_0x41e9d9);_0x1b81ae['data']['set'](_0x36a526);}(_0x575cd7,_0x1b5576),_0x1b5576['execute'](_0x26213f?'acceptAllSuggestions':'discardAllSuggestions');const _0x30f08a=v(_0x1b5576)?_0x1b5576['getFullData'](_0x22dfb5):_0x1b5576['data']['get'](_0x22dfb5);return await _0x1b5576['destroy'](),_0x30f08a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|