@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240715.0 → 0.0.0-nightly-20240716.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
|
-
_0x44d863(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x578bca,_0x811399){super(),this['id']=_0x811399['id'],this['type']=_0x811399['type'],this['subType']=_0x811399['subType']||null,this['author']=_0x811399['author'],this['creator']=_0x811399['creator']||_0x811399['author'],this['isExternal']=Boolean(_0x811399['attributes']&&_0x811399['attributes']['@external']),this['data']=null,this['_model']=_0x578bca,this['_onAccept']=_0x811399['onAccept'],this['_onDiscard']=_0x811399['onDiscard'],this['_onAttributesChange']=_0x811399['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x811399['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 _0x221871=this;for(;_0x221871['previous'];)_0x221871=_0x221871['previous'];return _0x221871;}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'](_0x53ff24){this['_markerNames']['add'](_0x53ff24);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x112ae0=>this['_model']['markers']['get'](_0x112ae0))['filter'](_0x468145=>_0x468145);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c0b4b=>{for(const _0x66200a of this['getMarkers']())_0x2c0b4b['removeMarker'](_0x66200a);}),this['_markerNames']['clear']();}['removeMarker'](_0x278be6){this['_model']['change'](_0x4959ce=>{_0x4959ce['removeMarker'](_0x278be6);}),this['_markerNames']['delete'](_0x278be6);}['addRange'](_0x3ddb32){const _0x3bd601='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3bd601),this['_model']['change'](_0x484a92=>{_0x484a92['addMarker'](_0x3bd601,{'range':_0x3ddb32,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d5120){for(const _0x3f4124 of this['getRanges']())if(_0x3f4124['isIntersecting'](_0x3d5120))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2646d9=>_0x2646d9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a5c77,_0x20fae4)=>[..._0x4a5c77,..._0x20fae4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x31fbfb=this['getRanges']();if(0x1!=_0x31fbfb['length'])return null;const _0x2fe10a=_0x31fbfb[0x0],_0x1f043b=_0x2fe10a['start']['nodeAfter'],_0x583116=_0x2fe10a['end']['nodeBefore'];return _0x1f043b instanceof _0x40e498?_0x1f043b!=_0x583116?null:_0x1f043b: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 _0x3f6b49=[];let _0x4b3cda=this['head'];for(;_0x4b3cda;)_0x3f6b49['push'](_0x4b3cda),_0x4b3cda=_0x4b3cda['next'];return _0x3f6b49;}['setAttribute'](_0x1cd4df,_0x3ccb96){const _0x409063=_0x3c2cfe(this['attributes']);_0x439b32(_0x409063,_0x1cd4df,_0x3ccb96),_0x58c209(_0x409063,this['attributes'])||(this['attributes']=_0x409063,this['_onAttributesChange'](_0x409063));}['removeAttribute'](_0x1eb66b){const _0x1e57b3=_0x3c2cfe(this['attributes']);_0x5eadcf(_0x1e57b3,_0x1eb66b),_0x58c209(_0x1e57b3,this['attributes'])||(this['attributes']=_0x1e57b3,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 _0xe5f9d9()['substr'](0x1,0x5);}}function o(_0x3ed68e,_0x28fdb1,_0x442393){const t=_0x3ed68e['t'];switch(_0x28fdb1){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',_0x442393);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x442393);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x442393);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x442393);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x442393);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',_0x442393);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x442393);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',_0x442393);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x442393);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x442393);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x442393);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x442393);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x442393);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x442393);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x442393);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x442393);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x442393);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x442393);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x442393);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x442393);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x442393);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x442393);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x442393);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'},_0x442393);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x442393);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x442393);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x442393);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x442393);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x442393);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'},_0x442393);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x442393);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x442393);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x442393);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x442393);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'},_0x442393);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x442393);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'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x442393);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x442393);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'},_0x442393);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'},_0x442393);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 _0x28fdb1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x146e75,_0x37023b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x146e75,this['_locale']=_0x37023b;}['getDescriptions'](_0x35c9d6){const _0x566dfd=[],_0x5d5bec=new Set(),_0x3e951d=new Set();for(let _0x2edb05=0x0;_0x2edb05<_0x35c9d6['length'];_0x2edb05++){const _0x2b8df3=_0x35c9d6[_0x2edb05];if(!_0x2b8df3['isInContent'])continue;const _0x554343=this['_handleCustomCallbackDescription'](_0x2b8df3);if(_0x554343){if(null!=_0x2b8df3['subType']){if(_0x5d5bec['has'](_0x2b8df3['subType']))continue;_0x5d5bec['add'](_0x2b8df3['subType']);}_0x566dfd['push'](_0x554343);}else{if('attribute'!=_0x2b8df3['type'])'insertion'!=_0x2b8df3['type']&&'deletion'!=_0x2b8df3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x566dfd,_0x2b8df3,_0x35c9d6[_0x2edb05+0x1]);else{const _0x5b40a7=_0x2b8df3['data']['key'];if(_0x3e951d['has'](_0x5b40a7))continue;_0x3e951d['add'](_0x2b8df3['data']['key']),_0x5b40a7==m?this['_handleRenameSuggestionDescription'](_0x566dfd,_0x2b8df3):this['_handleAttributeSuggestionDescription'](_0x566dfd,_0x2b8df3);}}}return this['_resolveDescriptionItems'](_0x566dfd);}['registerDescriptionCallback'](_0x14bf5c){this['_customCallbacks']['push'](_0x14bf5c);}['registerElementLabel'](_0x31743e,_0x3c3a70,_0x5295d7=_0x452690['normal']){'function'==typeof _0x31743e?_0x3bcf70(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31743e,'label':_0x3c3a70,'priority':_0x5295d7}):this['_itemLabels']['set'](_0x31743e,_0x3c3a70);}['registerAttributeLabel'](_0x1d3e0c,_0x4fd2bf){this['_attributeLabels']['set'](_0x1d3e0c,_0x4fd2bf);}['getItemLabel'](_0x21c791,_0x4086c6=0x1){let _0x7bc7da;for(const _0xe8d50f of this['_itemLabelsCallbacks'])if(_0xe8d50f['matchingCallback'](_0x21c791)){_0x7bc7da=_0xe8d50f['label'];break;}return _0x7bc7da||(_0x7bc7da=this['_itemLabels']['get'](_0x21c791['name'])),_0x7bc7da?_0x7bc7da(_0x4086c6):0x1!==_0x4086c6?_0x4086c6+'\x20'+_0x21c791['name']+'s':''+_0x21c791['name'];}['_addDescriptionItems'](_0x5d8827,_0x3158a1){const _0x2f0595=_0x3158a1['getFirstRange']()['getWalker'](),_0x42a223='insertion'==_0x3158a1['type']?'add':'remove';for(const _0x92fb0d of _0x2f0595){const _0x2aa078=_0x92fb0d['item'],_0x16f386=_0x5d8827[_0x5d8827['length']-0x1];if(_0x2aa078['is']('$textProxy'))_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),_0x16f386&&'text'==_0x16f386['type']?_0x16f386[_0x42a223]+=_0x2aa078['data']:_0x5d8827['push']({'type':'text','add':'add'==_0x42a223?_0x2aa078['data']:'','remove':'remove'==_0x42a223?_0x2aa078['data']:''});else{if(this['_schema']['isObject'](_0x2aa078)){const _0x19a378=_0x2aa078;if(_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),'elementEnd'==_0x92fb0d['type'])continue;_0x16f386&&_0x16f386['type']==_0x42a223+'Object'&&_0x16f386['element']['name']==_0x19a378['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'Object','element':_0x19a378,'quantity':0x1}),_0x2f0595['skip'](_0x11bf8c=>!('elementEnd'==_0x11bf8c['type']&&_0x11bf8c['item']==_0x2aa078));}else{if(this['_schema']['checkChild'](_0x2aa078,'$text')||_0x2aa078['is']('element','softBreak')){const _0x324b80=_0x2aa078;if('add'==_0x42a223&&'elementStart'==_0x92fb0d['type']||'remove'==_0x42a223&&'elementEnd'==_0x92fb0d['type'])continue;if(_0x16f386&&-0x1==_0x16f386['type']['indexOf']('Container')){'text'==_0x16f386['type']&&(_0x16f386[_0x42a223]+='\x0a');continue;}let _0x2b70f9;if(_0x2b70f9='add'==_0x42a223?_0x324b80['nextSibling']&&!this['_schema']['isObject'](_0x324b80['nextSibling'])?_0x324b80['nextSibling']:null:_0x324b80['previousSibling']&&!this['_schema']['isObject'](_0x324b80['previousSibling'])?_0x324b80['previousSibling']:null,_0x324b80['isEmpty']||_0x2b70f9&&_0x2b70f9['isEmpty']){const _0x427a55=_0x2b70f9&&_0x2b70f9['isEmpty']?_0x2b70f9:_0x324b80;_0x16f386&&_0x16f386['type']==_0x42a223+'EmptyContainer'&&_0x16f386['element']['name']==_0x427a55['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'EmptyContainer','element':_0x427a55,'quantity':0x1});}else _0x5d8827['push']({'type':_0x42a223+'Container','element':_0x324b80});}}}}}['_resolveDescriptionItems'](_0x490b0c){const _0x3711bc=this['_locale'],_0x5ed0d0=[],_0x589518=[],_0x486b40=[];for(const _0x3e5c2f of _0x490b0c)switch(_0x3e5c2f['type']){case'text':if(_0x3e5c2f['add']=_0x3e5c2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e5c2f['remove']=_0x3e5c2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e5c2f['add']&&''!=_0x3e5c2f['remove']){_0x5ed0d0['push']({'type':'replace','content':o(_0x3711bc,'REPLACE_TEXT',['\x22'+_0x3e5c2f['remove']+'\x22','\x22'+_0x3e5c2f['add']+'\x22'])});continue;}if(null!=_0x3e5c2f['add']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['add']['length']))});continue;}if(null!=_0x3e5c2f['remove']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['remove']['length']))});continue;}if(''!=_0x3e5c2f['add']){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0','\x22'+_0x3e5c2f['add']+'\x22')});continue;}_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0','\x22'+_0x3e5c2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addContainer':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Split:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeContainer':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Merge:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addFormat':_0x589518['push'](_0x3e5c2f['key']);continue;case'removeFormat':_0x486b40['push'](_0x3e5c2f['key']);continue;default:_0x5ed0d0['push'](_0x3e5c2f);}if(_0x589518['length']){const _0x276e43=_0x589518['map'](_0x27cec9=>this['_attributeLabels']['has'](_0x27cec9)?this['_attributeLabels']['get'](_0x27cec9):_0x27cec9)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x276e43)});}if(_0x486b40['length']){const _0x34e8e5=_0x486b40['map'](_0x2c77ee=>this['_attributeLabels']['has'](_0x2c77ee)?this['_attributeLabels']['get'](_0x2c77ee):_0x2c77ee)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x34e8e5)});}return _0x5ed0d0;}['_handleCustomCallbackDescription'](_0x257b26){for(const _0x143e48 of this['_customCallbacks']){const _0x4a06c8=_0x143e48(_0x257b26);if(_0x4a06c8&&'type'in _0x4a06c8)return _0x4a06c8;}}['_handleAttributeSuggestionDescription'](_0xc17c93,_0x2a1822){const _0x224cf4=_0x2a1822['data'],_0xdf9a4f=void 0x0===_0x224cf4['newValue']?'removeFormat':'addFormat';_0xc17c93['push']({'type':_0xdf9a4f,'key':_0x224cf4['key']});}['_handleRenameSuggestionDescription'](_0x52a145,_0x2515ba){_0x52a145['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2515ba['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c6fcf,_0x54a967,_0x4ef6bc){if(this['_addDescriptionItems'](_0x1c6fcf,_0x54a967),_0x4ef6bc&&_0x4ef6bc['getFirstRange']()&&!_0x54a967['getFirstRange']()['end']['isEqual'](_0x4ef6bc['getFirstRange']()['start'])){const _0x25896c=_0x1c6fcf[_0x1c6fcf['length']-0x1],_0x2852e9='insertion'==_0x54a967['type']?'add':'remove';_0x25896c&&'text'==_0x25896c['type']&&(_0x25896c[_0x2852e9]+='\x0a');}}}class E extends _0x2c20e0{['afterInit'](){const _0xa81d07=this['editor'],_0x4162a7=_0xa81d07['plugins']['get']('TrackChangesEditing');_0xa81d07['commands']['get']('showAIAssistant')&&_0x4162a7['enableCommand']('showAIAssistant');}}class V extends _0x2c20e0{['afterInit'](){const _0x33a006=this['editor'],_0x3b7030=_0x33a006['locale'];if(!_0x33a006['plugins']['has']('AlignmentEditing'))return;const _0x4e3f63=_0x33a006['plugins']['get']('TrackChangesEditing');_0x4e3f63['enableDefaultAttributesIntegration']('alignment'),_0x4e3f63['registerBlockAttribute']('alignment'),_0x4e3f63['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b7030,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8496=this['editor'],_0x1e686a=_0x2c8496['locale'];_0x2c8496['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b409e=>{if('formatBlock'!=_0x5b409e['type'])return;const {data:_0x3c85a2}=_0x5b409e;if(_0x3c85a2&&'alignment'==_0x3c85a2['commandName']){const _0xaa3aae=_0x3c85a2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1e686a,'*Format:*\x20%0',function(_0x4f8a87){switch(_0x4f8a87){case'left':return o(_0x1e686a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1e686a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1e686a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1e686a,'FORMAT_JUSTIFY_TEXT');}}(_0xaa3aae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2c20e0{['afterInit'](){const _0x1ea7b2=this['editor'],_0x16b2df=_0x1ea7b2['plugins']['get']('TrackChangesEditing'),_0x97db10=_0x1ea7b2['locale'];for(const _0x4abebc of ti){if(!_0x1ea7b2['plugins']['has'](_0x4abebc))continue;const _0x58a8d8=_0x4abebc['slice'](0x0,-0x7)['toLowerCase'](),_0x8b26ac='FORMAT_'+_0x58a8d8['toUpperCase']();_0x16b2df['enableDefaultAttributesIntegration'](_0x58a8d8),_0x16b2df['registerInlineAttribute'](_0x58a8d8),_0x16b2df['descriptionFactory']['registerAttributeLabel'](_0x58a8d8,o(_0x97db10,_0x8b26ac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d300=this['editor'],_0x514987=_0x16d300['locale'],_0x3e5701=_0x16d300['plugins']['get']('TrackChangesEditing');function _0xfbe6b4(_0x53a139,_0x39c8e9){_0x3e5701['descriptionFactory']['registerDescriptionCallback'](_0x47e90d=>{if('formatInline'!=_0x47e90d['type'])return;const {data:_0x5e0df7}=_0x47e90d;return _0x5e0df7&&_0x5e0df7['commandName']===_0x53a139?_0x5e0df7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x514987,'*Format:*\x20%0',_0x39c8e9)}:{'type':'format','content':o(_0x514987,'*Remove\x20format:*\x20%0',_0x39c8e9)}:void 0x0;});}_0xfbe6b4('bold',o(_0x514987,'FORMAT_BOLD')),_0xfbe6b4('italic',o(_0x514987,'FORMAT_ITALIC')),_0xfbe6b4('underline',o(_0x514987,'FORMAT_UNDERLINE')),_0xfbe6b4('code',o(_0x514987,'FORMAT_CODE')),_0xfbe6b4('strikethrough',o(_0x514987,'FORMAT_STRIKETHROUGH')),_0xfbe6b4('subscript',o(_0x514987,'FORMAT_SUBSCRIPT')),_0xfbe6b4('superscript',o(_0x514987,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2c20e0{['afterInit'](){const _0x4d88c8=this['editor'],_0x98a28b=_0x4d88c8['locale'];if(!_0x4d88c8['plugins']['has']('BlockQuoteEditing'))return;const _0x3a4ac4=_0x4d88c8['plugins']['get']('TrackChangesEditing'),_0x9b1732=this['editor']['commands']['get']('blockQuote');_0x3a4ac4['enableCommand']('blockQuote',(_0x3b31fc,_0x52bb93={})=>{const _0xb70e3e=this['editor']['model']['document']['selection'],_0x2cc1ed=_0x52bb93&&void 0x0!==_0x52bb93['forceValue']?_0x52bb93['forceValue']:!_0x9b1732['value'];let _0x49b4de=[];if(_0x2cc1ed){const _0x3ac320=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0x26945e=>oo(_0x26945e)||function(_0x59fcb8,_0x4e0cc5){const _0x3cabdf=_0x4e0cc5['checkChild'](_0x59fcb8['parent'],'blockQuote'),_0x1cebd2=_0x4e0cc5['checkChild'](['$root','blockQuote'],_0x59fcb8);return _0x3cabdf&&_0x1cebd2;}(_0x26945e,this['editor']['model']['schema']));_0x49b4de=to(_0x3ac320,_0x4d88c8['model']);}else{const _0x186288=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0xf65a7e=>oo(_0xf65a7e));_0x49b4de=to(_0x186288,_0x4d88c8['model']);}_0x4d88c8['model']['change'](()=>{for(const _0x3286f5 of _0x49b4de)_0x3a4ac4['markBlockFormat'](_0x3286f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cc1ed}]});});}),_0x3a4ac4['descriptionFactory']['registerDescriptionCallback'](_0x22146f=>{const {data:_0x1f54f4}=_0x22146f;if(_0x1f54f4&&'blockQuote'==_0x1f54f4['commandName']){const _0x22febd=o(_0x98a28b,'ELEMENT_BLOCK_QUOTE');return _0x1f54f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x98a28b,'*Set\x20format:*\x20%0',_0x22febd)}:{'type':'format','content':o(_0x98a28b,'*Remove\x20format:*\x20%0',_0x22febd)};}});}}function oo(_0x2b9ec8){return'blockQuote'==_0x2b9ec8['parent']['name'];}class G extends _0x2c20e0{['afterInit'](){const _0x49a861=this['editor'];_0x49a861['plugins']['has']('CaseChange')&&(_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2c20e0{['afterInit'](){const _0x459ddb=this['editor'];_0x459ddb['commands']['get']('ckbox')&&_0x459ddb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2c20e0{['afterInit'](){const _0x56c27c=this['editor'];if(!_0x56c27c['plugins']['has']('CodeBlock'))return;const _0x27b568=_0x56c27c['plugins']['get']('TrackChangesEditing'),_0x1755ba=_0x56c27c['locale'],_0x375747=_0x56c27c['config']['get']('codeBlock')['languages'],_0x369b12=_0x56c27c['commands']['get']('codeBlock');_0x27b568['enableCommand']('indentCodeBlock'),_0x27b568['enableCommand']('outdentCodeBlock'),_0x27b568['enableCommand']('codeBlock',(_0x6d92f4,_0x41b619={})=>{const _0x481f24=_0x56c27c['model'],_0x3f9028=_0x56c27c['model']['document']['selection'],_0x19375b=_0x41b619&&void 0x0!==_0x41b619['forceValue']?_0x41b619['forceValue']:!_0x369b12['value'];let _0x2c2c6f;_0x41b619['language']||(_0x41b619['language']=_0x375747[0x0]['language']),_0x2c2c6f=_0x19375b?Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x494e3f=>eo(_0x494e3f)||function(_0xb69326,_0x57ddd6){if(_0xb69326['is']('rootElement')||_0x57ddd6['isLimit'](_0xb69326))return!0x1;return _0x57ddd6['checkChild'](_0xb69326['parent'],'codeBlock');}(_0x494e3f,_0x481f24['schema'])):Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x88810=>eo(_0x88810));const _0xd4fc3b=to(_0x2c2c6f,_0x481f24);_0x481f24['change'](()=>{for(const _0x3b2868 of _0xd4fc3b)_0x27b568['markBlockFormat'](_0x3b2868,{'commandName':'codeBlock','commandParams':[{..._0x41b619,'forceValue':_0x19375b}],'formatGroupId':'blockName'});});}),(_0x27b568['descriptionFactory']['registerElementLabel']('codeBlock',_0x23a57f=>o(_0x1755ba,'ELEMENT_CODE_BLOCK',_0x23a57f)),_0x27b568['descriptionFactory']['registerDescriptionCallback'](_0x4d9e06=>{if('formatBlock'!=_0x4d9e06['type'])return;const _0x566368=_0x1755ba['t'],{data:_0x1161ab}=_0x4d9e06;if(!_0x1161ab||'codeBlock'!=_0x1161ab['commandName'])return;const _0x1d33b8=_0x1161ab['commandParams'][0x0]['language'],_0x323782=_0x566368(_0x375747['find'](_0x1128d2=>_0x1128d2['language']===_0x1d33b8)['label'])['toLowerCase']();return _0x1161ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1755ba,'*Set\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x323782+')')}:{'type':'format','content':o(_0x1755ba,'*Remove\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x426bba){return'codeBlock'==_0x426bba['name'];}class H extends _0x2c20e0{['afterInit'](){const _0x59aaf4=this['editor'];if(!_0x59aaf4['plugins']['has']('CommentsEditing'))return;_0x59aaf4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f223f,_0x3e9a7c,_0x28beba){const _0x45ec19=[];for(const _0x4929ec of _0x3e9a7c['getItems']())_0x4929ec['hasAttribute'](_0x5f223f)&&_0x45ec19['push'](_0x28beba['createRangeOn'](_0x4929ec));return _0x45ec19;}function _e(_0x510c80,_0x6d0165,{showActiveMarker:_0x1c2cbe=!0x0}={}){const _0x527868=_0x510c80['plugins']['get']('TrackChangesEditing');return(_0x1f4a9b,_0x6de4e3,_0x26d4a8)=>{if(!_0x26d4a8['consumable']['test'](_0x6de4e3['markerRange'],_0x1f4a9b['name']))return;const _0x28826c=_0x6de4e3['markerRange']['getWalker'](),_0x2727b0=_0x6de4e3['markerRange']['start'],_0x2f0f4b=_0x510c80['model']['schema'];let _0x4aabf9=null,_0x2d32bf=null,_0x195a7e=!0x1,_0x95283f=!0x1;for(const _0x188c3f of _0x28826c){const _0x3b2fff=_0x188c3f['item'];_0x195a7e=_0x195a7e||_0x2f0f4b['isContent'](_0x3b2fff);const _0x35e111=_0x26d4a8['mapper']['toViewElement'](_0x3b2fff);if(_0x35e111&&_0x35e111['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x188c3f['type']&&(_0x2f0f4b['isBlock'](_0x3b2fff)&&!_0x2f0f4b['isLimit'](_0x3b2fff)&&(_0x3b2fff['nextSibling']||_0x2727b0['isAtEnd']?_0x4aabf9&&_0x4aabf9['parent']==_0x3b2fff||(_0x4aabf9=_0x3b2fff,_0xa3eacb(_0x188c3f['previousPosition']),_0x95283f=!0x0):_0x2d32bf=_0x2d32bf||_0x188c3f['previousPosition']));}function _0xa3eacb(_0x5b8e75){const _0x5b7591=_0x26d4a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d0165}),_0x292477=_0x26d4a8['mapper']['toViewPosition'](_0x5b8e75);_0x1c2cbe&&_0x527868['activeMarkers']['includes'](_0x6de4e3['markerName'])&&_0x26d4a8['writer']['addClass']('ck-suggestion-marker--active',_0x5b7591),_0x26d4a8['writer']['insert'](_0x292477,_0x5b7591),_0x26d4a8['mapper']['bindElementToMarker'](_0x5b7591,_0x6de4e3['markerName']);}_0x195a7e||_0x95283f||!_0x2d32bf||_0xa3eacb(_0x2d32bf);};}class q extends _0x2c20e0{static get['requires'](){return[_0x2cce2f];}['init'](){const _0x3b2836=this['editor'],_0x24c928=_0x3b2836['plugins']['get']('TrackChangesEditing');_0x24c928['enableCommand']('delete');const _0xb0e5fa=_0x3b2836['commands']['get']('deleteForward');_0x24c928['enableCommand']('deleteForward',(_0x1655ad,_0x51e034={})=>{const _0x356af4=_0x3b2836['model']['createSelection'](_0x3b2836['model']['document']['selection']);_0x356af4['isCollapsed']&&_0x3b2836['model']['modifySelection'](_0x356af4,{'direction':'forward','unit':_0x51e034['unit']});const _0xe20ebb=_0x356af4['getFirstRange'](),_0x464548=_0xef9d24['fromRange'](_0xe20ebb);let _0x4edadb;_0x1655ad(_0x51e034),_0x4edadb='$graveyard'==_0x464548['root']['rootName']?_0x3b2836['model']['createRange'](_0xe20ebb['start']):_0x3b2836['model']['createRange'](_0x464548['start'],_0x464548['end']),_0x464548['detach'](),_0x3b2836['model']['enqueueChange'](_0xb0e5fa['buffer']['batch'],_0x306c1a=>{_0xb0e5fa['buffer']['lock'](),_0x306c1a['setSelection'](_0x306c1a['createRange'](_0x4edadb['end'])),_0xb0e5fa['buffer']['unlock']();});}),_0x3b2836['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b2836,'merge'),{'priority':'high'}),_0x3b2836['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35ff67,_0x31309e,_0x5a6eae)=>{_0x5a6eae['options']['showSuggestionHighlights']&&_e(_0x3b2836,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35ff67,_0x31309e,_0x5a6eae);},{'priority':'high'}),_0x3b2836['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x585687,_0x3534bd,_0x277b18)=>{const _0x402f14=_0x277b18['mapper']['markerNameToElements'](_0x3534bd['markerName']);if(_0x402f14){for(const _0x4008f7 of _0x402f14)_0x4008f7['is']('uiElement')&&(_0x277b18['mapper']['unbindElementFromMarkerName'](_0x4008f7,_0x3534bd['markerName']),_0x277b18['writer']['remove'](_0x4008f7));}},{'priority':'high'});}}class z extends _0x2c20e0{['afterInit'](){const _0x1bd3ed=this['editor'];if(!_0x1bd3ed['plugins']['has']('ListEditing'))return;const _0x326ff2=_0x1bd3ed['locale'],_0xea2be2=_0x1bd3ed['plugins']['get']('TrackChangesEditing'),_0x41dce6=_0x1bd3ed['plugins']['has']('TodoListEditing'),_0x2a7191=!!_0x1bd3ed['config']['get']('list.multiBlock');function _0x40207b(_0xed9321){return{'type':'format','content':''+o(_0x326ff2,'*Set\x20format:*\x20%0',_0xed9321)};}function _0x3097bd(_0xe8e795){return{'type':'format','content':''+o(_0x326ff2,'*Remove\x20format:*\x20%0',_0xe8e795)};}_0xea2be2['enableDefaultAttributesIntegration']('numberedList'),_0xea2be2['enableDefaultAttributesIntegration']('bulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('customNumberedList'),_0xea2be2['enableDefaultAttributesIntegration']('customBulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('indentList'),_0xea2be2['enableDefaultAttributesIntegration']('outdentList'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xea2be2['registerBlockAttribute']('listItemId'),_0xea2be2['registerBlockAttribute']('listType'),_0xea2be2['registerBlockAttribute']('listIndent'),_0x2a7191&&(_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41dce6&&(_0xea2be2['enableDefaultAttributesIntegration']('todoList'),_0xea2be2['enableDefaultAttributesIntegration']('checkTodoList'),_0xea2be2['registerBlockAttribute']('todoListChecked'),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x4d5821=>{const {data:_0x17de50}=_0x4d5821;if(_0x17de50&&'todoListChecked'==_0x17de50['key'])return{'type':'format','content':_0x17de50['newValue']?o(_0x326ff2,'*Check\x20item*'):o(_0x326ff2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd8e0b0=>{if(_0xd8e0b0['batch']['isUndo'])return!0x1;let _0x402077=!0x1;const _0x4f9508=_0xea2be2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54ac4f=>'todoListChecked'===_0xea2be2['_getAttributeKey'](_0x54ac4f));for(const _0x2545ad of _0x4f9508){'todo'!=_0x2545ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xea2be2['_findSuggestions'](_0x2545ad['getFirstRange'](),'attribute')['find'](_0xeb26ca=>'listType'===_0xea2be2['_getAttributeKey'](_0xeb26ca['suggestion']))||(_0xd8e0b0['removeMarker'](_0x2545ad['getFirstMarker']()),_0x402077=!0x0));}return _0x402077;})),_0xea2be2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x326ff2,'FORMAT_INDENT'));const _0x586b43={'type':'format','content':''};_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b8c2d=>{const {data:_0x47ffdd}=_0x5b8c2d;if(!_0x47ffdd||'listType'!=_0x47ffdd['key'])return;let _0x2f8651=_0x5b8c2d['head'];for(;_0x2f8651;){if(_0x2f8651['data']&&(('listStyle'==_0x2f8651['data']['key']||'listMarkerStyle'==_0x2f8651['data']['key'])&&(_0x2f8651['data']['newValue']&&'default'!=_0x2f8651['data']['newValue']||'default'!=_0x2f8651['data']['oldValue']&&!_0x47ffdd['newValue'])||!_0x2a7191&&_0x2f8651['data']['key']==m))return _0x586b43;_0x2f8651=_0x2f8651['next'];}if(null==_0x47ffdd['newValue'])switch(_0x47ffdd['oldValue']){case'bulleted':return _0x3097bd(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3097bd(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3097bd(o(_0x326ff2,'ELEMENT_TODO_LIST'));}switch(_0x47ffdd['newValue']){case'bulleted':return _0x40207b(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40207b(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40207b(o(_0x326ff2,'ELEMENT_TODO_LIST'));}}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x1dbafd=>{const {data:_0x1269fa}=_0x1dbafd;if(_0x1269fa&&'listIndent'==_0x1269fa['key'])return null==_0x1269fa['newValue']||null==_0x1269fa['oldValue']&&0x0==_0x1269fa['newValue']?_0x586b43:void 0x0;}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b91fb=>{if('attribute'!=_0x5b91fb['type'])return;const {data:_0x552a6e}=_0x5b91fb;if(!_0x552a6e||'listItemId'!=_0x552a6e['key'])return;const _0x4d9137=le(_0x5b91fb);return'newValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Split:*\x20list\x20item')}:_0x586b43;}),_0x1bd3ed['model']['document']['registerPostFixer'](_0x4449aa=>this['listItemIdFixer'](_0x4449aa)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x496bae=>this['noTrackChangesFixer'](_0x496bae)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x5aeee3=>this['assureChains'](_0x5aeee3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb73197){if(_0xb73197['batch']['isUndo']||!_0xb73197['batch']['isLocal'])return!0x1;let _0x635ed3=!0x1;const _0x1acc93=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12c409=>_0x12c409['data']&&'listItemId'==_0x12c409['data']['key'])['filter'](_0x21c2c9=>_0x21c2c9['data']['newValue']&&_0x21c2c9['data']['oldValue']);for(const _0x40c67b of _0x1acc93)le(_0x40c67b)||(_0xb73197['removeMarker'](_0x40c67b['getFirstMarker']()),_0x635ed3=!0x0);return _0x635ed3;}['noTrackChangesFixer'](_0x140a97){if(_0x140a97['batch']['isUndo']||!_0x140a97['batch']['isLocal'])return!0x1;const _0x56f6b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56f6b7['trackChangesCommand']['value'])return!0x1;let _0x4e1a65=!0x1;const _0x56b339=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2ea60b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3555f2=>'attribute'==_0x3555f2['type'])['filter'](_0x525b48=>_0x56b339['includes'](_0x525b48['attributeKey']));if(0x0==_0x2ea60b['length'])return _0x4e1a65;for(const _0x4d1495 of _0x2ea60b){const _0x3217ca=_0x56f6b7['_findSuggestions'](_0x4d1495['range'],'attribute')['filter'](_0x36e5f0=>!_0x36e5f0['meta']['isNextTo'])['map'](_0x2816d4=>_0x2816d4['suggestion'])['filter'](_0x3e5c5d=>{const _0x364c0d=_0x56f6b7['_getAttributeKey'](_0x3e5c5d);return _0x56b339['includes'](_0x364c0d);});if(_0x3217ca['length']){for(const _0x5766c9 of _0x3217ca)_0x140a97['removeMarker'](_0x5766c9['getFirstMarker']());_0x4e1a65=!0x0;}}return _0x4e1a65;}['assureChains'](_0x2091e6){if(_0x2091e6['batch']['isUndo']||!_0x2091e6['batch']['isLocal'])return!0x1;const _0x54beaf=this['editor']['plugins']['get']('TrackChangesEditing');let _0x518ecb=!0x1;const _0x1824b9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1c9049 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})){const _0x13717c=_0x54beaf['_findSuggestions'](_0x1c9049['getFirstRange'](),'attribute')['map'](_0x582cc0=>_0x582cc0['suggestion'])['filter'](_0x48ed81=>_0x48ed81['data']&&_0x1824b9['includes'](_0x48ed81['data']['key']));if(!_0x13717c['length'])continue;const _0x3922f6=_0x13717c[0x0]['head']['attributes']['groupId'];if(!_0x13717c['every'](_0xc9dbea=>_0xc9dbea['attributes']['groupId']===_0x3922f6)){for(const _0x390eca of _0x13717c)_0xaa3ee1(_0x390eca,_0x3922f6)&&(_0x518ecb=!0x0);}}return _0x518ecb;function _0x311e20(_0x27ae7b,_0x2e193b){for(const _0x46ef0 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5078e1=>'attribute'==_0x5078e1['type']&&_0x5078e1['attributes']['groupId']==_0x27ae7b))_0x46ef0['setAttribute']('groupId',_0x2e193b);}function _0xaa3ee1(_0x3c5594,_0x3a4c67){let _0x4aed91=_0x3c5594['head'],_0x28b236=!0x1;for(;_0x4aed91;)_0x4aed91['attributes']['groupId']!=_0x3a4c67&&(_0x311e20(_0x4aed91['attributes']['groupId'],_0x3a4c67),_0x4aed91['setAttribute']('groupId',_0x3a4c67),_0x28b236=!0x0),_0x4aed91=_0x4aed91['next'];return _0x28b236;}}['_supportLegacySuggestions'](){const _0x39d371=this['editor'],_0x56d6b6=_0x39d371['locale'],_0x2d2f2a=_0x39d371['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d2f2a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x257463,_0x1121a4){const _0x75960c=[];for(let _0x68c259 of _0x257463)_0x68c259['start']['nodeAfter']===_0x68c259['end']['parent']&&(_0x68c259=_0x39d371['model']['createRange'](_0x39d371['model']['createPositionAt'](_0x68c259['start']['nodeAfter'],0x0))),_0x75960c['push'](_0x68c259);_0x39d371['model']['change'](_0x5b4524=>{const _0x4bef75=_0x39d371['model']['document']['selection'],_0x927208=Array['from'](_0x4bef75['getRanges']())['map'](_0x521933=>_0xef9d24['fromRange'](_0x521933));_0x5b4524['setSelection'](_0x75960c),_0x39d371['commands']['get'](_0x1121a4['commandName'])['refresh'](),_0x1121a4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x39d371['execute'](_0x1121a4['commandName'],..._0x1121a4['commandParams']),_0x5b4524['setSelection'](_0x927208);for(const _0x51d244 of _0x927208)_0x51d244['detach']();});}),_0x2d2f2a['descriptionFactory']['registerElementLabel'](function(_0x834e99){const _0x4219c0=!_0x39d371['model']['schema']['isObject'](_0x834e99),_0x6493ea=_0x834e99['previousSibling'],_0x276e2a=_0x834e99['nextSibling'],_0x4eacbb=_0x834e99['getAttribute']('listItemId'),_0x1d5db3=!_0x6493ea||_0x6493ea['getAttribute']('listItemId')!==_0x4eacbb,_0x5835d2=!_0x276e2a||_0x276e2a['getAttribute']('listItemId')!==_0x4eacbb;return _0x4219c0&&Boolean(_0x4eacbb)&&_0x1d5db3&&_0x5835d2;},_0x517cd7=>o(_0x56d6b6,'ELEMENT_LIST_ITEM',_0x517cd7));}['_registerLegacyDescription'](){const _0x4edba4=this['editor'],_0x2eccfe=_0x4edba4['locale'];function _0x4b381f(_0x55a721){const _0x59b5c8=_0x4edba4['commands']['get']('bulletedList')['value'],_0x51e527=_0x4edba4['commands']['get']('numberedList')['value'];return'numberedList'===_0x55a721?_0x59b5c8:_0x51e527;}_0x4edba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ccfe9){if('formatBlock'!=_0x5ccfe9['type'])return;const {data:_0x5b8dbd}=_0x5ccfe9;if(!_0x5b8dbd)return;let _0x5c68fc,_0x381c0e,_0x3c08a6,_0x14b452;switch(_0x5b8dbd['commandName']){case'bulletedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c68fc='*Indent:*\x20%0',_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c68fc=function(_0x5874c2){const _0xe75245=_0x5874c2['getFirstRange']();let _0x42ac4b=_0xe75245['start']['nodeAfter'];for(;_0x42ac4b&&_0xe75245['containsItem'](_0x42ac4b);){if(_0x42ac4b['getAttribute']('listIndent')>0x0)return!0x1;_0x42ac4b=_0x42ac4b['nextSibling'];}return!0x0;}(_0x5ccfe9)?o(_0x2eccfe,'*Format:*\x20remove\x20from\x20%0',o(_0x2eccfe,function(_0x52b0b1){return'ELEMENT_'+_0x52b0b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ccfe9))):o(_0x2eccfe,'*Outdent:*\x20%0',o(_0x2eccfe,'ELEMENT_LIST_ITEM')),_0x381c0e={'type':'format','content':_0x5c68fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b8dbd['multipleBlocks']&&(_0x5c68fc='*Merge:*\x20%0',_0x381c0e={'type':'deletion','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))});}return _0x381c0e;});}}function le(_0x1fa07c){let _0x2c9c52=_0x1fa07c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c9c52;){const _0x258576=_0x2c9c52['getAttribute']('listItemId');if(!_0x258576)return!0x1;if(_0x258576==_0x1fa07c['data']['newValue'])return'newValue';if(_0x258576==_0x1fa07c['data']['oldValue'])return'oldValue';_0x2c9c52=_0x2c9c52['previousSibling'];}return!0x1;}class ue extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x513727=this['editor']['config']['get']('list.properties'),_0x4ec085=this['editor']['plugins']['get']('TrackChangesEditing');_0x513727['styles']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStyle'),_0x4ec085['registerBlockAttribute']('listStyle')),_0x513727['reversed']&&(_0x4ec085['enableDefaultAttributesIntegration']('listReversed'),_0x4ec085['registerBlockAttribute']('listReversed')),_0x513727['startIndex']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStart'),_0x4ec085['registerBlockAttribute']('listStart'));const _0x2fba82={'type':'format','content':''};_0x4ec085['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x936676=this['editor']['locale'];_0x4ec085['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x936676,'FORMAT_LIST_REVERSED')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x2840eb=>{const {data:_0x49f311}=_0x2840eb;if(_0x49f311&&'listReversed'==_0x49f311['key'])return null==_0x49f311['newValue']||0x0==_0x49f311['newValue']&&null==_0x49f311['oldValue']?_0x2fba82:void 0x0;}),_0x4ec085['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x936676,'FORMAT_LIST_START')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x10d3a9=>{const {data:_0x51fe19}=_0x10d3a9;if(_0x51fe19&&'listStart'==_0x51fe19['key'])return null==_0x51fe19['newValue']||0x1==_0x51fe19['newValue']&&null==_0x51fe19['oldValue']?_0x2fba82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x209603=>{if(_0x209603['batch']['isUndo'])return!0x1;let _0x31a00b=!0x1;const _0xe79ceb=_0x4ec085['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f23de=>{const _0x4602fe=_0x4ec085['_getAttributeKey'](_0x3f23de);return'listStart'==_0x4602fe||'listReversed'==_0x4602fe;});for(const _0x12a7f9 of _0xe79ceb){const _0x56535b=_0x12a7f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56535b||'customNumbered'==_0x56535b)continue;_0x4ec085['_findSuggestions'](_0x12a7f9['getFirstRange'](),'attribute')['find'](_0x29088a=>'listType'==_0x4ec085['_getAttributeKey'](_0x29088a['suggestion']))||(_0x209603['removeMarker'](_0x12a7f9['getFirstMarker']()),_0x31a00b=!0x0);}return _0x31a00b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17bb0a){const _0x38b661=this['editor']['locale'],{data:_0x29ad4}=_0x17bb0a,_0x9fc0e6={'type':'format','content':''};if(!_0x29ad4||'listStyle'!=_0x29ad4['key'])return;if(!_0x29ad4['oldValue'])return'default'==_0x29ad4['newValue']?_0x9fc0e6:{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};if(!_0x29ad4['newValue']){if('default'==_0x29ad4['oldValue'])return _0x9fc0e6;let _0x1ba46d=_0x17bb0a['head'];for(;_0x1ba46d;){if(_0x1ba46d['data']&&'listType'==_0x1ba46d['data']['key']&&_0x1ba46d['data']['newValue'])return _0x9fc0e6;_0x1ba46d=_0x1ba46d['next'];}return{'type':'format','content':''+o(_0x38b661,'*Remove\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['oldValue'])))};}if('default'!=_0x29ad4['newValue'])return{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};let _0x3dc212=_0x17bb0a['head'];for(;_0x3dc212;){if(_0x3dc212['data']&&'listType'==_0x3dc212['data']['key']&&_0x3dc212['data']['newValue']&&_0x3dc212['data']['oldValue'])return _0x9fc0e6;_0x3dc212=_0x3dc212['next'];}return{'type':'format','content':o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,'ELEMENT_'+_0x17bb0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x201e17=this['editor'],_0x36a6b1=_0x201e17['locale'];_0x201e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb05c0=>{if('formatBlock'!=_0xbb05c0['type'])return;const {data:_0x3563a4}=_0xbb05c0;if(!_0x3563a4)return;let _0x110c9f,_0x4dc72d;switch(_0x3563a4['commandName']){case'listStyle':_0x110c9f='*Change\x20to:*\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,o(_0x36a6b1,this['_getTranslationKeyForListStyle'](_0x3563a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x110c9f=_0x3563a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f)};break;case'listStart':_0x110c9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,_0x3563a4['commandParams'][0x0]['startIndex'])};}return _0x4dc72d;});}['_getTranslationKeyForListStyle'](_0x232ae9){return'ELEMENT_'+function(_0x504501){if(pe['includes'](_0x504501))return'bulleted';if(ye['includes'](_0x504501))return'numbered';return null;}(_0x232ae9)['toUpperCase']()+'_LIST_'+_0x232ae9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2c20e0{static get['requires'](){return[_0x58549e];}['init'](){const _0x2af8b2=this['editor'],_0x3bfbef=_0x2af8b2['plugins']['get']('TrackChangesEditing'),_0x32b764=_0x2af8b2['commands']['get']('enter');_0x3bfbef['enableCommand']('enter',()=>{_0x2af8b2['model']['change'](_0x2aeafe=>{const _0x50390c=_0x2af8b2['model']['document']['selection'],_0x21022a=_0x50390c['getFirstPosition'](),_0x343098=_0xef9d24['fromRange'](_0x50390c['getFirstRange']());if(_0x32b764['enterBlock'](_0x2aeafe)){const _0x372a1e=_0x2af8b2['model']['createPositionAt'](_0x21022a['parent']['nextSibling'],0x0),_0xbb2f64=_0x2aeafe['createRange'](_0x21022a,_0x372a1e);_0x3bfbef['markInsertion'](_0xbb2f64);}else _0x2aeafe['setSelection'](_0x2aeafe['createRange'](_0x343098['end']));_0x343098['detach'](),_0x32b764['fire']('afterExecute',{'writer':_0x2aeafe});});}),_0x2af8b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2af8b2,'split'),{'priority':'high'}),_0x2af8b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5afe43,_0x12075c,_0x52812f)=>{const _0x2de4d7=_0x52812f['mapper']['markerNameToElements'](_0x12075c['markerName']);if(_0x2de4d7){for(const _0x19248a of _0x2de4d7)_0x19248a['hasClass']('ck-suggestion-marker-split')&&(_0x52812f['mapper']['unbindElementFromMarkerName'](_0x19248a,_0x12075c['markerName']),_0x52812f['writer']['remove'](_0x19248a));}},{'priority':'high'}),_0x2af8b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c22cb,_0x392196,_0x3ed520)=>{_0x3ed520['options']['showSuggestionHighlights']&&_e(_0x2af8b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5c22cb,_0x392196,_0x3ed520);},{'priority':'high'});}}class J extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1eee84=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eee84['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1eee84['enableCommand']('findNext'),_0x1eee84['enableCommand']('findPrevious'),_0x1eee84['enableCommand']('replace'),_0x1eee84['enableCommand']('replaceAll');}['handleFindCommand'](_0xa5537d,_0x73b41a,_0x250dca={}){const _0xf6e24e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa5537d(_0x1c2d35=>{let _0x4b5ce2=('string'==typeof _0x73b41a?_0xf6e24e['findByTextCallback'](_0x73b41a,_0x250dca):_0x73b41a)(_0x1c2d35);Array['isArray'](_0x4b5ce2)&&(_0x4b5ce2={'results':_0x4b5ce2,'searchText':'string'==typeof _0x73b41a?_0x73b41a:''});const _0x135b2b=_0x4b5ce2['results']['filter'](_0x3da3eb=>!0x1===this['_isInDeletionRange'](_0x3da3eb,_0x1c2d35['item']));return{..._0x4b5ce2,'results':_0x135b2b};},_0x250dca);}['_isInDeletionRange'](_0x45a784,_0x52699e){const _0x1f0328=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['start']),this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['end']));for(const _0x20278a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f0328['getIntersection'](_0x20278a['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 _0x2c20e0{['afterInit'](){const _0x3a9662=this['editor']['locale'],_0x42ef8f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2bf36,commandName:_0x65ffb5}of ro)this['editor']['plugins']['has'](_0x2bf36)&&(_0x42ef8f['enableDefaultAttributesIntegration'](_0x65ffb5),_0x42ef8f['registerInlineAttribute'](_0x65ffb5));_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a9662,'FORMAT_FONT_SIZE')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a9662,'FORMAT_FONT_FAMILY')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a9662,'FORMAT_FONT_COLOR')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a9662,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15cd1f=this['editor'],_0x41a287=_0x15cd1f['locale'];_0x15cd1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517083=>{const _0x1ad746=_0x41a287['t'];if('formatInline'!=_0x517083['type'])return;const {data:_0x8f38da}=_0x517083;if(null!=_0x8f38da){if('fontSize'==_0x8f38da['commandName']){const _0x173c7d=_0x8f38da['commandParams'][0x0]['value'];if(_0x173c7d){const _0x3a13eb=_0x1ad746(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1689ca=>_0x1689ca['model']==_0x173c7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a287,'*Set\x20font\x20size:*\x20%0',_0x3a13eb)};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8f38da['commandName']){const _0x4c14ef=_0x8f38da['commandParams'][0x0]['value'];return _0x4c14ef?{'type':'format','content':o(_0x41a287,'*Set\x20font\x20family:*\x20%0',_0x4c14ef)}:{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8f38da['commandName']){const _0x18bd1d=_0x8f38da['commandParams'][0x0]['value'];if(_0x18bd1d){const _0x240581=_0x2b913d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x459688=>_0x459688['model']==_0x18bd1d);let _0x5c5b9b=_0x18bd1d,_0x3c72f6='';return _0x240581&&(_0x5c5b9b=_0x240581['label'],_0x3c72f6=_0x1ad746(_0x5c5b9b)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20color:*\x20%0',_0x3c72f6)['trim'](),'color':{'value':_0x18bd1d,'title':_0x3c72f6||_0x5c5b9b}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8f38da['commandName']){const _0x1066a1=_0x8f38da['commandParams'][0x0]['value'];if(_0x1066a1){const _0x35deec=_0x2b913d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x457a70=>_0x457a70['model']==_0x1066a1);let _0x210406=_0x1066a1,_0x3f26b0='';return _0x35deec&&(_0x210406=_0x35deec['label'],_0x3f26b0=_0x1ad746(_0x210406)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f26b0)['trim'](),'color':{'value':_0x1066a1,'title':_0x3f26b0||_0x210406}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2c20e0{['afterInit'](){const _0x23b629=this['editor'],_0x429eb8=_0x23b629['plugins']['get']('TrackChangesEditing'),_0x2190a2=_0x23b629['commands']['get']('copyFormat'),_0x2618d7=_0x23b629['commands']['get']('pasteFormat');_0x2190a2&&_0x2618d7&&(_0x429eb8['enableDefaultAttributesIntegration']('pasteFormat'),_0x429eb8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x553369=this['editor'],_0x436472=_0x553369['locale'];_0x553369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378a72=>{if('formatBlock'!=_0x378a72['type']&&'formatInline'!=_0x378a72['type'])return;const {data:_0x437d5c}=_0x378a72;if(_0x437d5c&&'pasteFormat'===_0x437d5c['commandName']){const _0x4e5efc=[],_0x3ba83c=_0x437d5c['commandParams'][0x0];for(const [_0x5e636c,_0x514692]of Object['entries'](_0x3ba83c))_0x4e5efc['push'](so(_0x553369,_0x5e636c,_0x514692));return _0x4e5efc['length']?{'type':'format','content':o(_0x436472,'*Set\x20format\x20to:*\x20%0',_0x4e5efc['join'](',\x20'))}:{'type':'format','content':o(_0x436472,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2f4891,_0x2861e8,_0x435e36){const _0x156fd9=_0x2f4891['locale']['t'],_0x21511f=_0x2861e8['split'](/(?=[A-Z])/)['join']('\x20'),_0x121314=_0x156fd9(_0x21511f['charAt'](0x0)['toUpperCase']()+_0x21511f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x435e36)return _0x121314;if('fontColor'===_0x2861e8||'fontBackgroundColor'===_0x2861e8){const _0x43bfb3=_0x2b913d(_0x2f4891['config']['get']('fontColor.colors'))['find'](_0x14ff1c=>_0x14ff1c['model']==_0x435e36);return _0x121314+'\x20('+(_0x43bfb3?_0x156fd9(_0x43bfb3['label'])['toLowerCase']():_0x435e36)+')';}if('fontSize'===_0x2861e8&&isNaN(parseFloat(_0x435e36))){const _0x28a7ac=_0x2f4891['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2f4891['config']['get']('fontSize.options'))['find'](_0x5eb10d=>_0x5eb10d['model']==_0x435e36);return _0x121314+'\x20('+(_0x28a7ac?_0x156fd9(_0x28a7ac['title'])['toLowerCase']():_0x435e36)+')';}return _0x121314+'\x20('+_0x435e36+')';}class Y extends _0x2c20e0{['_headingOptions'];['afterInit'](){const _0x141f7f=this['editor'];if(!_0x141f7f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x141f7f['config']['get']('heading.options');const _0x6a42e2=_0x141f7f['locale'],_0x29b0d5=_0x141f7f['plugins']['get']('TrackChangesEditing');_0x29b0d5['enableDefaultAttributesIntegration']('heading');for(const _0x1c5bbe of this['_headingOptions'])'paragraph'!=_0x1c5bbe['model']&&_0x29b0d5['descriptionFactory']['registerElementLabel'](_0x1c5bbe['model'],_0x954377=>{const _0x2be66c=this['_getHeadingLevel'](_0x1c5bbe['model']);return null!==_0x2be66c?_0x24ef88(_0x954377,_0x2be66c):_0x3d54e1(_0x954377,_0x1c5bbe['title']);});function _0x24ef88(_0x1ae088,_0x1e0e2a){return o(_0x6a42e2,'ELEMENT_HEADING',[_0x1ae088,_0x1e0e2a]);}function _0x3d54e1(_0x11baf,_0x584d03){return o(_0x6a42e2,'ELEMENT_HEADING_CUSTOM',[_0x11baf,_0x584d03]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d4c6=this['editor'],_0x1fbb44=_0x46d4c6['locale'];function _0x26ce84(_0x6c6aaf,_0x2272aa){return o(_0x1fbb44,'ELEMENT_HEADING_CUSTOM',[_0x6c6aaf,_0x2272aa]);}_0x46d4c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380637=>{if('formatBlock'!=_0x380637['type'])return;const {data:_0x10e9d6}=_0x380637;if(_0x10e9d6&&'heading'==_0x10e9d6['commandName']){const _0x5f518f=_0x10e9d6['commandParams'][0x0]['value'],_0x39977d=this['_getHeadingLevel'](_0x5f518f);if(null!==_0x39977d)return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',(_0x447406=0x1,_0x50bb28=_0x39977d,o(_0x1fbb44,'ELEMENT_HEADING',[_0x447406,_0x50bb28])))};const _0x5ef609=this['_headingOptions']['find'](_0x1aa440=>_0x1aa440['model']===_0x5f518f)['title'];return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',_0x26ce84(0x1,_0x5ef609))};}var _0x447406,_0x50bb28;});}['_getHeadingLevel'](_0x491c96){const _0x5dd25e=_0x491c96['match'](/^heading(\d+)/);if(_0x5dd25e)return _0x5dd25e[0x1];const _0x49c92b=this['_headingOptions']?.['find'](_0x282d8c=>_0x282d8c['model']==_0x491c96);if(_0x49c92b&&_0x49c92b['view']){const _0x554418=_0x49c92b['view'],_0x5e6b9f=(_0x554418['name']??_0x554418)['match'](/^h(\d+)/);if(_0x5e6b9f)return _0x5e6b9f[0x1];}return null;}}class Z extends _0x2c20e0{['afterInit'](){const _0x3f1acc=this['editor'];if(!_0x3f1acc['plugins']['has']('HighlightEditing'))return;const _0x1d822c=_0x3f1acc['plugins']['get']('TrackChangesEditing'),_0x23ca3d=_0x3f1acc['locale'];_0x1d822c['enableDefaultAttributesIntegration']('highlight'),_0x1d822c['registerInlineAttribute']('highlight'),_0x1d822c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23ca3d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488182=this['editor'],_0x50a233=_0x488182['locale'];_0x488182['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9a9c9=>{if('formatInline'!=_0xa9a9c9['type'])return;const {data:_0x5b10bf}=_0xa9a9c9;if(_0x5b10bf&&'highlight'==_0x5b10bf['commandName']){const _0x4dd12b=_0x50a233['t'],_0x158992=_0x5b10bf['commandParams'][0x0]['value'];if(_0x158992){const _0x3fcbaa=_0x488182['config']['get']('highlight.options')['find'](_0x307ad7=>_0x307ad7['model']==_0x158992),_0x4f1a20=_0x4dd12b(_0x3fcbaa['title'])['toLowerCase']();return{'type':'format','content':o(_0x50a233,'*Set\x20highlight:*\x20%0',_0x4f1a20),'color':{'value':_0x3fcbaa['color'],'title':_0x3fcbaa['title']}};}return{'type':'format','content':o(_0x50a233,'*Remove\x20highlight*',o(_0x50a233,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2c20e0{['afterInit'](){const _0x5e0070=this['editor'];if(!_0x5e0070['plugins']['has']('HorizontalLineEditing'))return;_0x5e0070['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3e5a34=_0x5e0070['plugins']['get']('TrackChangesEditing'),_0x32a6e6=_0x5e0070['locale'];_0x3e5a34['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45f13e=>o(_0x32a6e6,'ELEMENT_HORIZONTAL_LINE',_0x45f13e)),_0x5e0070['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59ef1d,{writer:_0x2dbcbc,options:_0x3ea2de})=>{if(!_0x3ea2de['showSuggestionHighlights'])return null;const _0x189b6f=_0x2dbcbc['createContainerElement']('div'),_0x3f0ee2=_0x2dbcbc['createEmptyElement']('hr');return _0x2dbcbc['addClass']('ck-horizontal-line',_0x189b6f),_0x2dbcbc['insert'](_0x2dbcbc['createPositionAt'](_0x189b6f,0x0),_0x3f0ee2),_0x189b6f;},'converterPriority':'high'});}}class et extends _0x2c20e0{['afterInit'](){const _0x4e4aed=this['editor'];if(!_0x4e4aed['plugins']['has']('HtmlEmbed'))return;const _0x392fbf=_0x4e4aed['plugins']['get']('TrackChangesEditing'),_0x249e7f=_0x4e4aed['locale'];_0x392fbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x2bacda=>o(_0x249e7f,'ELEMENT_HTML_EMBED',_0x2bacda)),_0x392fbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x392fbf['registerBlockAttribute']('value'),_0x392fbf['descriptionFactory']['registerDescriptionCallback'](_0x58d1dd=>{if('attribute'!=_0x58d1dd['type'])return;const {data:_0xbca8a6}=_0x58d1dd;if(_0xbca8a6&&'value'==_0xbca8a6['key']&&_0x58d1dd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x284015=o(_0x249e7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x249e7f,'*Change\x20%0\x20content*',_0x284015)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f66a1=this['editor'],_0x2fa080=_0x2f66a1['locale'];_0x2f66a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130166=>{if('formatBlock'!=_0x130166['type'])return;const {data:_0x31ee56}=_0x130166;if(_0x31ee56&&'htmlEmbed'==_0x31ee56['commandName']){const _0x3ef92c=o(_0x2fa080,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fa080,'*Change\x20%0\x20content*',_0x3ef92c)};}});}}class it extends _0x2c20e0{['afterInit'](){const _0x278488=this['editor'];if(!_0x278488['plugins']['has']('ImageEditing'))return;const _0x1ef810=_0x278488['plugins']['get']('TrackChangesEditing'),_0x213ab5=_0x278488['plugins']['get']('ImageUtils'),_0x23271a=_0x278488['locale'];_0x1ef810['enableCommand']('insertImage'),_0x1ef810['descriptionFactory']['registerElementLabel']('imageBlock',_0x4465b0=>o(_0x23271a,'ELEMENT_IMAGE',_0x4465b0)),_0x1ef810['descriptionFactory']['registerElementLabel']('imageInline',_0x359ffa=>o(_0x23271a,'ELEMENT_INLINE_IMAGE',_0x359ffa)),_0x1ef810['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x23271a,'ELEMENT_CAPTION')),_0x278488['plugins']['has']('ImageUploadEditing')&&_0x1ef810['enableCommand']('uploadImage'),_0x278488['plugins']['has']('ImageBlockEditing')&&_0x278488['plugins']['has']('ImageInlineEditing')&&(_0x1ef810['enableCommand']('imageTypeInline',(_0x592252,_0xab75d0)=>{const _0x16c6e0=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']);_0x278488['model']['change'](()=>{_0x1ef810['markBlockFormat'](_0x16c6e0,{'commandName':'imageTypeInline','commandParams':[_0xab75d0]},[],'convertBlockImageToInline');});}),_0x1ef810['enableCommand']('imageTypeBlock',(_0xe0e39c,_0x2682cf)=>{_0x278488['model']['change'](_0x5684cc=>{let _0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x2df48c=_0x439b21['fromPosition'](_0x339fa5['start'],'toPrevious'),_0xa7735f=_0x439b21['fromPosition'](_0x339fa5['end'],'toNext');_0x1ef810['forceDefaultExecution'](()=>_0xe0e39c(_0x2682cf)),_0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x47d603=_0x5684cc['createRange'](_0x2df48c,_0xa7735f);_0x2df48c['detach'](),_0xa7735f['detach'](),_0x1ef810['markBlockFormat'](_0x5a9a97,{'commandName':'imageTypeInline','commandParams':[_0x2682cf]},[],'convertInlineImageToBlock'),_0x47d603['start']['isBefore'](_0x339fa5['start'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x47d603['start'],_0x339fa5['start']),'convertInlineImageToBlock'),_0x339fa5['end']['isBefore'](_0x47d603['end'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x339fa5['end'],_0x47d603['end']),'convertInlineImageToBlock');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ef810['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x501cd3])=>{const _0x464c5e=_0x1ef810['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b652f=_0x501cd3['start'],_0xd7b130=_0x501cd3['end'];const _0xce329c=_0x278488['model']['schema']['getNearestSelectionRange'](_0x4b652f,'backward'),_0x232f3b=_0x278488['model']['schema']['getNearestSelectionRange'](_0xd7b130,'forward');_0xce329c['isCollapsed']&&(_0x4b652f=_0xce329c['start']),_0x232f3b['isCollapsed']&&(_0xd7b130=_0x232f3b['end']),_0x464c5e([_0x278488['model']['createRange'](_0x4b652f,_0xd7b130)]);}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x54f985),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x54f985)),_0x278488['plugins']['has']('ImageCaptionEditing')&&(_0x1ef810['enableCommand']('toggleImageCaption',(_0x4b96df,_0x240fa9)=>{const _0x57c9cb=_0x278488['plugins']['get']('ImageCaptionUtils');let _0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb);_0x278488['model']['change'](()=>{if(_0x53f902)return void _0x1ef810['markDeletion'](_0x278488['model']['createRangeOn'](_0x53f902));const _0x552da7=_0x213ab5['isBlockImage'](_0x425ccb);_0x4b96df(_0x240fa9),_0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb),_0x1ef810['markInsertion'](_0x278488['model']['createRangeOn'](_0x53f902),_0x552da7?null:'imageCaption');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x54f985));const _0x164172=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f81a4(_0x444d08,_0x4ca094){const _0x1a5160=_0x164172['findIndex'](({type:_0x4e456e,subType:_0x292831})=>_0x444d08['type']==_0x4e456e&&_0x444d08['subType']==_0x292831),_0x4be327=_0x164172['findIndex'](({type:_0x274a31,subType:_0x32c15d})=>_0x4ca094['type']==_0x274a31&&_0x4ca094['subType']==_0x32c15d);if(_0x1a5160<0x0||_0x4be327<0x0)return!0x1;const _0x2a5565=_0x444d08['getFirstRange'](),_0x1d319c=_0x4ca094['getFirstRange']();if((0x0==_0x1a5160||0x1==_0x1a5160)&&0x2==_0x4be327&&_0x2a5565['isIntersecting'](_0x1d319c))return!0x0;if(0x2==_0x1a5160&&0x3==_0x4be327){const _0x3f6e62=_0x1ef810['_findSuggestions'](_0x2a5565,'insertion')['filter'](({suggestion:_0x2a1f28,meta:_0x404394})=>_0x404394['isOwn']&&'convertInlineImageToBlock'==_0x2a1f28['subType']);if(_0x3f6e62['length']>0x1&&_0x1d319c['end']['isEqual'](_0x2a5565['start']))return!0x0;if(0x1==_0x3f6e62['length']&&(_0x2a5565['start']['isEqual'](_0x1d319c['end'])||_0x2a5565['end']['isEqual'](_0x1d319c['start'])))return!0x0;}if(0x3==_0x1a5160&&0x3==_0x4be327&&_0x2a5565['start']['isBefore'](_0x1d319c['start'])){const _0x548efe=_0x2a5565['end']['nodeAfter'],_0x24a6ad=_0x1d319c['start']['nodeBefore'];return _0x213ab5['isBlockImage'](_0x548efe)&&_0x548efe===_0x24a6ad;}return!0x1;}function _0x54f985(_0x265a38,_0x353b8d){return _0x1f81a4(_0x265a38,_0x353b8d)?[_0x265a38,_0x353b8d]:_0x1f81a4(_0x353b8d,_0x265a38)?[_0x353b8d,_0x265a38]:null;}_0x278488['plugins']['has']('ImageResize')&&(_0x1ef810['enableDefaultAttributesIntegration']('resizeImage'),_0x1ef810['registerBlockAttribute']('resizedWidth'),_0x1ef810['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x23271a,'FORMAT_IMAGE_SIZE'))),_0x278488['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ef810['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ef810['registerBlockAttribute']('alt')),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x59eff9=>{if(!!_0x164172['find'](({type:_0x2acf3e,subType:_0x5c088e})=>_0x59eff9['type']==_0x2acf3e&&_0x59eff9['subType']==_0x5c088e))return _0x59eff9['previous']?{}:void 0x0;}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x401dd3=>{if('insertion'==_0x401dd3['type']||'deletion'==_0x401dd3['type']){const _0x12c46d=_0x401dd3['getContainedElement']();if(_0x12c46d&&_0x12c46d['is']('element','caption'))return{'type':'insertion'==_0x401dd3['type']?'addObject':'removeObject','element':_0x12c46d,'quantity':0x1};}}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x1aea94=>'formatBlock'==_0x1aea94['type']&&'convertInlineImageToBlock'==_0x1aea94['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1aea94['type']&&'convertBlockImageToInline'==_0x1aea94['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x43a384=>{if('attribute'!=_0x43a384['type'])return;const {data:_0x3aa752}=_0x43a384;if(!_0x3aa752||'alt'!=_0x3aa752['key'])return;const _0x20006d=_0x3aa752['newValue'];return _0x20006d?{'type':'format','content':o(_0x23271a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20006d+'\x22')}:{'type':'format','content':o(_0x23271a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c114d=this['editor'],_0x57bd66=_0x2c114d['locale'];_0x2c114d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46529e=>{if('formatBlock'!=_0x46529e['type']&&'formatInline'!=_0x46529e['type'])return;const {data:_0x205830}=_0x46529e;if(_0x205830){if('imageTextAlternative'==_0x205830['commandName']){const _0xb01560=_0x205830['commandParams'][0x0]['newValue'];return _0xb01560?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb01560+'\x22')}:{'type':'format','content':o(_0x57bd66,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x205830['commandName']){const _0x9c2acb=_0x205830['commandParams'][0x0]['width'];return _0x9c2acb?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20width:*\x20%0',_0x9c2acb)}:{'type':'format','content':o(_0x57bd66,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2927ba=this['editor']['locale'],_0x41d55c=this['editor']['plugins']['get']('TrackChangesEditing');_0x41d55c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41d55c['registerBlockAttribute']('src'),_0x41d55c['descriptionFactory']['registerDescriptionCallback'](_0x49441e=>{if('attribute'!=_0x49441e['type'])return;const {data:_0x8bdbfe}=_0x49441e;return _0x8bdbfe&&'src'==_0x8bdbfe['key']?_0x8bdbfe['newValue']&&_0x8bdbfe['oldValue']?{'type':'format','content':o(_0x2927ba,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f475f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4790d6=this['editor'],_0x30d9d7=_0x4790d6['locale'];_0x4790d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a201e=>{if('formatBlock'!=_0x4a201e['type']&&'formatInline'!=_0x4a201e['type'])return;const {data:_0x5311c8}=_0x4a201e;if(!_0x5311c8||'replaceImageSource'!=_0x5311c8['commandName'])return;return{'type':'format','content':o(_0x30d9d7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2c20e0{['afterInit'](){const _0x58ac9f=this['editor'];if(!_0x58ac9f['plugins']['has']('ImageStyleEditing'))return;const _0x516801=_0x58ac9f['plugins']['get']('TrackChangesEditing'),_0x3cb0a8=_0x58ac9f['plugins']['get']('ImageUtils'),_0x17180d={};_0x516801['enableCommand']('imageStyle',(_0xe1f5fc,_0x3dd4e2)=>{const _0x394856=_0x58ac9f['plugins']['get']('Users')['me'],_0x4dcd0e=_0x58ac9f['commands']['get']('imageStyle');let _0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x53d11b=_0x4dcd0e['value'];if(_0x53d11b==_0x3dd4e2['value'])return;const _0x5d3568={'commandName':'imageStyle','commandParams':[_0x3dd4e2],'formatGroupId':_0xe5f9d9()};_0x58ac9f['model']['change'](()=>{if(_0x516801['getSuggestions']()['filter'](_0x30ff5f=>_0x30ff5f['isInContent']&&_0x394856==_0x30ff5f['author']&&('formatBlock'==_0x30ff5f['type']||'formatInline'==_0x30ff5f['type'])&&('imageStylePreApply'==_0x30ff5f['subType']||'imageStylePostApply'==_0x30ff5f['subType'])&&_0x30ff5f['getFirstRange']()['isEqual'](_0x1af106))['forEach'](_0x1239c2=>_0x516801['discardSuggestion'](_0x1239c2['head'])),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x4dcd0e['refresh'](),_0x58ac9f['commands']['get']('imageTypeInline')['refresh'](),_0x58ac9f['commands']['get']('imageTypeBlock')['refresh'](),_0x53d11b=_0x4dcd0e['value'],_0x53d11b!=_0x3dd4e2['value'])return _0x3cb0a8['isInlineImage'](_0x30d7bc)&&_0x4dcd0e['shouldConvertImageType'](_0x3dd4e2['value'],_0x30d7bc)?(_0xe1f5fc({..._0x3dd4e2,'setImageSizes':!0x1}),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),void _0x516801['markBlockFormat'](_0x30d7bc,{..._0x5d3568,'commandReversedParams':[{'value':_0x53d11b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3cb0a8['isBlockImage'](_0x30d7bc)?_0x516801['markBlockFormat'](_0x30d7bc,_0x5d3568,[],'imageStylePostApply'):_0x516801['markInlineFormat'](_0x1af106,_0x5d3568,'imageStylePostApply'));});});for(const _0x4d5678 of _0x58ac9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17180d[_0x4d5678['name']]=_0x4d5678['title']['toLowerCase']();_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x56900b])=>{_0x3cb0a8['setImageNaturalSizeAttributes'](_0x56900b['getContainedElement']());}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4968b0,_0x16c45c)=>{_0x516801['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4968b0,{'commandName':_0x16c45c['commandName'],'commandParams':_0x16c45c['commandReversedParams']});}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf2c67,_0x275f47){if(_0x5c9a65(_0xf2c67,_0x275f47))return[_0xf2c67,_0x275f47];if(_0x5c9a65(_0x275f47,_0xf2c67))return[_0x275f47,_0xf2c67];return null;});const _0x39fef1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c9a65(_0x5a16c3,_0x1cdc1a){const _0x58b3bf=_0x39fef1['findIndex'](({type:_0x34ca4b,subType:_0x251a31})=>_0x5a16c3['type']==_0x34ca4b&&_0x5a16c3['subType']==_0x251a31),_0x1f120e=_0x39fef1['findIndex'](({type:_0x3e6a7b,subType:_0x6699d7})=>_0x1cdc1a['type']==_0x3e6a7b&&_0x1cdc1a['subType']==_0x6699d7);if(_0x58b3bf<0x0||_0x1f120e<0x0)return!0x1;const _0x55a0ed=_0x5a16c3['getFirstRange'](),_0x26a5c5=_0x1cdc1a['getFirstRange']();if((0x0==_0x58b3bf||0x1==_0x58b3bf)&&0x2==_0x1f120e&&_0x55a0ed['isIntersecting'](_0x26a5c5))return!0x0;if(0x2==_0x58b3bf&&0x3==_0x1f120e){const _0x10647f=_0x516801['_findSuggestions'](_0x55a0ed,'insertion')['filter'](({suggestion:_0x4dab5a,meta:_0x282e91})=>_0x282e91['isOwn']&&'convertInlineImageToBlock'==_0x4dab5a['subType']);if(_0x10647f['length']>0x1&&_0x26a5c5['end']['isEqual'](_0x55a0ed['start']))return!0x0;if(0x1==_0x10647f['length']&&(_0x55a0ed['start']['isEqual'](_0x26a5c5['end'])||_0x55a0ed['end']['isEqual'](_0x26a5c5['start'])))return!0x0;}if(0x3==_0x58b3bf&&0x3==_0x1f120e&&_0x55a0ed['start']['isBefore'](_0x26a5c5['start'])){const _0x5c556a=_0x55a0ed['end']['nodeAfter'],_0xf41280=_0x26a5c5['start']['nodeBefore'];return _0x3cb0a8['isBlockImage'](_0x5c556a)&&_0x5c556a===_0xf41280;}return!0x1;}_0x58ac9f['model']['document']['registerPostFixer'](()=>{let _0xd9b984=!0x1;const _0x22742c=Array['from'](_0x58ac9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b4f5,data:_0xccf3c3}of _0x22742c){const {group:_0x338d9d,type:_0x15c199,subType:_0x516866,id:_0x5b192c}=_0x516801['_splitMarkerName'](_0x21b4f5);if('suggestion'==_0x338d9d&&_0x516801['hasSuggestion'](_0x5b192c)){if('formatBlock'==_0x15c199&&('imageStylePreApply'==_0x516866||'imageStylePostApply'==_0x516866)){const _0x3d04f1=_0x516801['getSuggestion'](_0x5b192c);if(_0xccf3c3['newRange']){const _0x9189bc=_0x3d04f1['getFirstRange']()['getContainedElement']();if(_0x3cb0a8['isBlockImage'](_0x9189bc))continue;_0x516801['discardSuggestion'](_0x3d04f1),_0xd9b984=!0x0;}}if('insertion'==_0x15c199&&'imageCaption'==_0x516866&&!_0xccf3c3['newRange']){const _0x37b4bd=_0x516801['getSuggestion'](_0x5b192c);_0x37b4bd['next']&&_0x37b4bd['next']['isInContent']&&(_0x516801['discardSuggestion'](_0x37b4bd['next']),_0xd9b984=!0x0);}}}return _0xd9b984;}),this['_registerLegacyDescription'](_0x17180d);}['_registerLegacyDescription'](_0x383a9b){const _0x3a3146=this['editor'],_0x18c3d1=_0x3a3146['locale'];_0x3a3146['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253779=>{if('formatBlock'!=_0x253779['type']&&'formatInline'!=_0x253779['type'])return;const {data:_0x4a2995}=_0x253779;if(!_0x4a2995||'imageStyle'!=_0x4a2995['commandName'])return;const _0x916f2e=_0x4a2995['commandParams'][0x0]['value'];return _0x1ff58c('side'===_0x916f2e?o(_0x18c3d1,'FORMAT_SIDE_IMAGE'):_0x383a9b[_0x916f2e]||_0x916f2e);function _0x1ff58c(_0x2a7460){return{'type':'format','content':o(_0x18c3d1,'*Format:*\x20%0',_0x2a7460)};}});}}class ot extends _0x2c20e0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2dabd6){super(_0x2dabd6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x215838=this['editor'],_0x29ff4b=_0x215838['commands']['get']('importWord'),_0xe5e802=_0x215838['commands']['get']('trackChanges');_0x29ff4b&&(_0x29ff4b['on']('execute',(_0x3d2d98,[,_0x336dbe])=>{this['_trackChangesValueDuringImport']=_0xe5e802['value'],_0x336dbe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29ff4b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29ff4b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe5e802['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x215838['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25b99c,_0x8a829b){const {suggestions:_0x1f4013}=_0x8a829b,_0xc6d48b=this['editor']['commands']['get']('trackChanges'),_0x5186d8=_0xc6d48b['value'];this['_trackChangesValueDuringImport']!==_0x5186d8&&(_0xc6d48b['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f4013&&_0x1f4013['forEach'](({id:_0x2c230e,type:_0x34b581,author:_0x5c0bc4,created_at:_0x103bd5})=>{const _0x5c66a6={'id':_0x2c230e,'type':_0x34b581,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5c0bc4,'createdAt':_0x103bd5?new Date(_0x103bd5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c66a6);});}}class rt extends _0x2c20e0{['afterInit'](){const _0x38e5d0=this['editor'],_0xe511b=_0x38e5d0['plugins']['get']('TrackChangesEditing');if(_0x38e5d0['plugins']['has']('IndentEditing')&&(_0xe511b['enableCommand']('indent'),_0xe511b['enableCommand']('outdent')),_0x38e5d0['plugins']['has']('IndentBlock')){for(const _0xb1864 of['indentBlock','outdentBlock'])_0xe511b['enableDefaultAttributesIntegration'](_0xb1864);}const _0x1772a3=_0x38e5d0['locale'];_0xe511b['registerBlockAttribute']('blockIndent'),_0xe511b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1772a3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c6794=this['editor'],_0x19e04d=_0x5c6794['locale'],_0x4d503d=_0x5c6794['plugins']['get']('TrackChangesEditing');_0x4d503d['descriptionFactory']['registerDescriptionCallback'](_0x98671b=>{if('formatBlock'!=_0x98671b['type'])return;const {data:_0x365c99}=_0x98671b;if(!_0x365c99)return;if('indentBlock'!=_0x365c99['commandName']&&'outdentBlock'!=_0x365c99['commandName'])return;const _0x49fd63=_0x98671b['getItems']()[0x0],_0xa39165=_0x4d503d['descriptionFactory']['getItemLabel'](_0x49fd63);return'indentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Indent:*\x20%0',_0xa39165)}:'outdentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Outdent:*\x20%0',_0xa39165)}:void 0x0;});}}class at extends _0x2c20e0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2c20e0{['afterInit'](){const _0x4abef8=this['editor'];if(!_0x4abef8['plugins']['has']('LinkEditing'))return;const _0x22bca0=_0x4abef8['plugins']['get']('TrackChangesEditing'),_0x475606=_0x4abef8['commands']['get']('link');_0x22bca0['enableDefaultAttributesIntegration']('link'),_0x22bca0['enableDefaultAttributesIntegration']('unlink'),_0x22bca0['registerInlineAttribute']('linkHref');for(const _0x3c614f of _0x475606['manualDecorators'])_0x22bca0['registerInlineAttribute'](_0x3c614f['id']),_0x22bca0['descriptionFactory']['registerAttributeLabel'](_0x3c614f['id'],'link\x20('+_0x3c614f['label']['toLowerCase']()+')');_0x22bca0['descriptionFactory']['registerDescriptionCallback'](_0x1cd7f5=>{if('attribute'!=_0x1cd7f5['type'])return;const {data:_0x1896e3}=_0x1cd7f5;if(!_0x1896e3||'linkHref'!=_0x1896e3['key'])return;const _0x3c5054=_0x1896e3['newValue'],_0x248c0e=_0x4abef8['locale'];return{'type':'format','content':null==_0x3c5054?o(_0x248c0e,'*Remove\x20link*'):o(_0x248c0e,'*Set\x20link:*\x20%0','\x22'+_0x3c5054+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c9bb=this['editor'],_0x4f2040=_0x47c9bb['locale'];_0x47c9bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508fdb=>{if('formatInline'!=_0x508fdb['type'])return;const {data:_0x232d88}=_0x508fdb;if(_0x232d88){if('link'==_0x232d88['commandName']){const _0x38aa1b=_0x232d88['commandParams'][0x0];return{'type':'format','content':o(_0x4f2040,'*Set\x20link:*\x20%0','\x22'+_0x38aa1b+'\x22')};}return'unlink'==_0x232d88['commandName']?{'type':'format','content':o(_0x4f2040,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2c20e0{['afterInit'](){const _0x3dc9fb=this['editor'],_0x13c2f2=_0x3dc9fb['locale'];if(!_0x3dc9fb['plugins']['has']('LegacyListEditing'))return;const _0x12c1a3=_0x3dc9fb['plugins']['get']('TrackChangesEditing'),_0x422ae7=_0x3dc9fb['plugins']['has']('LegacyTodoListEditing');function _0x531e63(_0x33cdf8){return()=>{const _0xf502bf=_0x3dc9fb['model']['document']['selection'],_0x512f69=_0x3dc9fb['commands']['get'](_0x33cdf8);if(_0x512f69['value'])return void _0x3dc9fb['execute']('paragraph',{});const _0x4e1991=_0x33cdf8['slice'](0x0,-0x4),_0x747aa7=function(_0x4dc1bf,_0x2fb84a,_0x2668a8){let _0x426079=Array['from'](_0x4dc1bf)['filter'](_0x5496ed=>function(_0x529a28,_0x1d22dc){return _0x1d22dc['checkChild'](_0x529a28['parent'],'listItem')&&!_0x1d22dc['isObject'](_0x529a28);}(_0x5496ed,_0x2668a8));_0x426079=_0x426079['filter'](_0x93b76f=>!_0x93b76f['is']('element','listItem')||_0x93b76f['getAttribute']('listType')!=_0x2fb84a);const _0x3b620f=new Set();for(const _0x57c834 of _0x426079)_0x57c834['is']('element','listItem')?_0x3b620f['add'](me(_0x57c834)):_0x3b620f['add'](_0x57c834);return Array['from'](_0x3b620f);}(_0xf502bf['getSelectedBlocks'](),_0x4e1991,_0x3dc9fb['model']['schema']);_0x3dc9fb['model']['change'](()=>{for(const _0x5bdd8a of _0x747aa7)_0x12c1a3['markBlockFormat'](_0x5bdd8a,{'commandName':_0x33cdf8,'commandParams':[{'forceValue':!_0x512f69['value']}],'formatGroupId':'blockName'},fe(_0x5bdd8a));});};}function _0x5a9eb9(_0x1fa88c){return()=>{const _0xc9abe3=function(_0xa61dc1){let _0x3ca4c7=Array['from'](_0xa61dc1);const _0x18c2ae=_0x3ca4c7['findIndex'](_0xa7fe9f=>'listItem'!=_0xa7fe9f['name']);return _0x18c2ae>-0x1&&(_0x3ca4c7=_0x3ca4c7['slice'](0x0,_0x18c2ae)),_0x3ca4c7;}(_0x3dc9fb['model']['document']['selection']['getSelectedBlocks']()),_0x5cbb5d=_0x3dc9fb['model']['createRange'](_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[0x0],'before'),_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[_0xc9abe3['length']-0x1],'end'));_0x3dc9fb['model']['change'](()=>{_0x12c1a3['markBlockFormat'](_0x5cbb5d,{'commandName':_0x1fa88c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a87f4){const _0x8c9e79=new Set();for(const _0x7560b8 of _0x1a87f4){let _0x5f3f06=_0x7560b8['nextSibling'];for(;_0x5f3f06&&_0x5f3f06['getAttribute']('listIndent')>_0x7560b8['getAttribute']('listIndent');)_0x8c9e79['add'](_0x5f3f06),_0x5f3f06=_0x5f3f06['nextSibling'];}return Array['from'](_0x8c9e79);}(_0xc9abe3));});};}_0x12c1a3['enableCommand']('numberedList',_0x531e63('numberedList')),_0x12c1a3['enableCommand']('bulletedList',_0x531e63('bulletedList')),_0x422ae7&&_0x12c1a3['enableCommand']('todoList',_0x531e63('todoList')),_0x12c1a3['enableCommand']('indentList',_0x5a9eb9('indentList')),_0x12c1a3['enableCommand']('outdentList',_0x5a9eb9('outdentList')),_0x422ae7&&_0x12c1a3['enableCommand']('checkTodoList',()=>{const _0x546a28=_0x3dc9fb['commands']['get']('checkTodoList'),_0xaef938=Array['from'](_0x546a28['_selectedElements']);_0xaef938['filter'](_0x4f814a=>_0x4f814a['getAttribute']('todoListChecked')!=_0x546a28['value']),_0x3dc9fb['model']['change'](()=>{for(const _0x316c90 of _0xaef938)_0x12c1a3['markBlockFormat'](_0x316c90,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x546a28['value']}]});});}),_0x12c1a3['descriptionFactory']['registerElementLabel']('listItem',_0x2a8b90=>o(_0x13c2f2,'ELEMENT_LIST_ITEM',_0x2a8b90)),_0x12c1a3['descriptionFactory']['registerDescriptionCallback'](_0x398be4=>{if('formatBlock'!=_0x398be4['type']&&'formatInline'!=_0x398be4['type'])return;const {data:_0x1d98f1}=_0x398be4;if(_0x1d98f1){if('numberedList'==_0x1d98f1['commandName']||'bulletedList'==_0x1d98f1['commandName']||'todoList'==_0x1d98f1['commandName'])switch(_0x1d98f1['commandName']['replace']('List','')){case'bulleted':return _0x46ad09(o(_0x13c2f2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46ad09(o(_0x13c2f2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46ad09(o(_0x13c2f2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Indent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Outdent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d98f1['commandName'])return _0x1d98f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13c2f2,'*Check\x20item*')}:{'type':'format','content':o(_0x13c2f2,'*Uncheck\x20item*')};}function _0x46ad09(_0x141d51){return{'type':'format','content':o(_0x13c2f2,'*Change\x20to:*\x20%0',_0x141d51)};}});}}function me(_0x31d801){const _0x3b0857=_0x31d801['getAttribute']('listIndent');if(0x0==_0x3b0857)return _0x31d801;let _0x29bc3f=_0x31d801;for(;_0x31d801['previousSibling']&&_0x31d801['previousSibling']['is']('element','listItem');){const _0x3291f3=_0x31d801['previousSibling']['getAttribute']('listIndent');if(_0x3291f3==_0x3b0857)_0x29bc3f=_0x31d801['previousSibling'];else{if(_0x3291f3<_0x3b0857)break;}_0x31d801=_0x31d801['previousSibling'];}return _0x29bc3f;}function fe(_0x4d8c8a){const _0x460eca=[];if(_0x4d8c8a['is']('element','listItem')&&_0x4d8c8a['getAttribute']('listIndent')>0x0){let _0x2d2d9f=_0x4d8c8a['nextSibling'];for(;_0x2d2d9f&&'listItem'==_0x2d2d9f['name']&&_0x2d2d9f['getAttribute']('listIndent')==_0x4d8c8a['getAttribute']('listIndent');)_0x460eca['push'](_0x2d2d9f),_0x2d2d9f=_0x2d2d9f['nextSibling'];}return _0x460eca;}class K extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c44cb=this['editor']['config']['get']('list.properties'),_0x4a9519=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c44cb['styles']&&_0x4a9519['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c44cb['reversed']&&_0x4a9519['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c44cb['startIndex']&&_0x4a9519['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a9519['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c44d8,_0x49841e={}){const _0x31ae85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3605c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31ae85['markMultiRangeBlockFormat'](_0x3605c4,{'commandName':'listStyle','commandParams':[{'type':_0x49841e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x254ead,_0x460202={}){const _0x4e51f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3bb8=this['_getSuggestionBlocks'](_0x2bab1b=>_0x2bab1b['is']('element','listItem')&&'numbered'===_0x2bab1b['getAttribute']('listType'));if(_0x2d3bb8['length']<0x1)return;const _0x480565=_0x2d3bb8['map'](_0x342d1d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x342d1d,'before'),this['editor']['model']['createPositionAt'](_0x342d1d,0x0)));this['editor']['model']['change'](()=>{_0x4e51f3['markMultiRangeBlockFormat'](_0x480565,{'commandName':'listReversed','commandParams':[{'reversed':_0x460202['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3665a8,_0x46e8c9={}){const _0x5de57f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10ed51=this['_getSuggestionBlocks'](_0x3fc086=>_0x3fc086['is']('element','listItem')&&'numbered'===_0x3fc086['getAttribute']('listType'));if(_0x10ed51['length']<0x1)return;const _0x569ac8=_0x10ed51['map'](_0x5c769b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c769b,'before'),this['editor']['model']['createPositionAt'](_0x5c769b,0x0)));this['editor']['model']['change'](()=>{_0x5de57f['markMultiRangeBlockFormat'](_0x569ac8,{'commandName':'listStart','commandParams':[{'startIndex':_0x46e8c9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x656eda){if('formatBlock'!=_0x656eda['type']&&'formatInline'!=_0x656eda['type'])return;const _0x566ec0=this['editor']['locale'],{data:_0x27cbbf}=_0x656eda;if(!_0x27cbbf)return;let _0x524b65,_0xb2202;switch(_0x27cbbf['commandName']){case'listStyle':_0x524b65='*Change\x20to:*\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,o(_0x566ec0,this['_getTranslationKeyForListStyle'](_0x27cbbf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x524b65=_0x27cbbf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65)};break;case'listStart':_0x524b65='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,_0x27cbbf['commandParams'][0x0]['startIndex'])};}return _0xb2202;}['_getSuggestionBlocksForListStyle'](){const _0x13be29=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f6090=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f6090[0x0]?.['is']('element','listItem')&&_0x1f6090['unshift'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f6090[_0x1f6090['length']-0x1]?.['is']('element','listItem')&&_0x1f6090['push'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f6090=[...new Set(_0x1f6090)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f6090=_0x1f6090['filter'](_0x553255=>_0x553255['is']('element','listItem'))),_0x1f6090;}['_getSuggestionBlocks'](_0x4bee0){const _0x4d3da1=this['editor']['plugins']['get']('LegacyListUtils');let _0x33f07a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4bee0)['map'](_0x1fac90=>{const _0x45b583=this['editor']['model']['createPositionAt'](_0x1fac90,0x0);return[..._0x4d3da1['getSiblingNodes'](_0x45b583,'backward'),..._0x4d3da1['getSiblingNodes'](_0x45b583,'forward')];})['flat']();return _0x33f07a=[...new Set(_0x33f07a)],_0x33f07a;}['_getTranslationKeyForListStyle'](_0x411228){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x411228)||'default')['toUpperCase']()+'_LIST_'+_0x411228['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2c20e0{['afterInit'](){const _0x344ada=this['editor'];if(!_0x344ada['plugins']['has']('MediaEmbedEditing'))return;const _0x1cabd5=_0x344ada['plugins']['get']('TrackChangesEditing'),_0xced3b=_0x344ada['locale'];_0x1cabd5['enableCommand']('mediaEmbed'),_0x1cabd5['descriptionFactory']['registerElementLabel']('media',_0x380f27=>o(_0xced3b,'ELEMENT_MEDIA',_0x380f27)),_0x344ada['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2072ac,{writer:_0x4153ea,options:_0x38cd45})=>{if(_0x38cd45['showSuggestionHighlights'])return _0x4153ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x344ada['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4547a7,_0x35b2b0,_0x303706)=>{_0x303706['options']['showSuggestionHighlights']&&_0x4547a7['stop']();},{'priority':'high'});}}class gt extends _0x2c20e0{['afterInit'](){const _0x3eaefb=this['editor'];_0x3eaefb['plugins']['has']('MentionEditing')&&_0x3eaefb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2c20e0{['afterInit'](){const _0x395ecd=this['editor'],_0x32d33d=_0x395ecd['plugins']['get']('TrackChangesEditing');_0x395ecd['plugins']['has']('MultiLevelList')&&(_0x32d33d['enableDefaultAttributesIntegration']('multiLevelList'),_0x32d33d['registerBlockAttribute']('listMarkerStyle'),_0x32d33d['descriptionFactory']['registerDescriptionCallback'](_0x7e8e05=>this['handleDescriptions'](_0x7e8e05)));}['handleDescriptions'](_0x565d3f){const _0x5b67e5=this['editor']['locale'],{data:_0x2711aa}=_0x565d3f,_0x540b5e={'type':'format','content':''};if(_0x2711aa&&'listMarkerStyle'==_0x2711aa['key']){if(!_0x2711aa['oldValue'])return{'type':'format','content':o(_0x5b67e5,'*Set\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['newValue']+')'};if(!_0x2711aa['newValue']){let _0x17e6b0=_0x565d3f['head'];for(;_0x17e6b0;){if(_0x17e6b0['data']&&'listType'==_0x17e6b0['data']['key']&&_0x17e6b0['data']['newValue'])return _0x540b5e;_0x17e6b0=_0x17e6b0['next'];}return{'type':'format','content':o(_0x5b67e5,'*Remove\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['oldValue']+')'};}}}}class mt extends _0x2c20e0{['afterInit'](){const _0x400620=this['editor'];if(!_0x400620['plugins']['has']('PageBreakEditing'))return;_0x400620['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e41e7=_0x400620['plugins']['get']('TrackChangesEditing'),_0x4086b3=_0x400620['locale'];_0x1e41e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x163dc8=>o(_0x4086b3,'ELEMENT_PAGE_BREAK',_0x163dc8));}}class dt extends _0x2c20e0{['afterInit'](){const _0x4d669c=this['editor'];if(!_0x4d669c['plugins']['has']('Paragraph'))return;const _0x1b078c=_0x4d669c['locale'],_0x34a368=_0x4d669c['plugins']['get']('TrackChangesEditing');_0x34a368['descriptionFactory']['registerElementLabel']('paragraph',_0xa9dda5=>o(_0x1b078c,'ELEMENT_PARAGRAPH',_0xa9dda5)),_0x34a368['enableDefaultAttributesIntegration']('paragraph'),_0x34a368['enableCommand']('insertParagraph'),_0x4d669c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d669c),{'priority':'highest'}),_0x4d669c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18cd0d,_0xffc83a,_0x2ab580)=>{_0x2ab580['options']['showSuggestionHighlights']&&nr(_0x4d669c,{'showActiveMarker':!0x1})(_0x18cd0d,_0xffc83a,_0x2ab580);},{'priority':'highest'});const _0x2f057b=_0x34a368['descriptionFactory'];_0x2f057b['registerDescriptionCallback'](_0x397129=>{if('insertion'!==_0x397129['type'])return;const {start:_0x37962f,end:_0x1ce012}=_0x397129['getFirstRange']();if(!_0x37962f['isTouching'](_0x1ce012)||!_0x37962f['nodeAfter'])return;const _0x28dd36=_0x4d669c['model']['schema'],_0x31ef4a=_0x37962f['nodeAfter'];return _0x28dd36['isBlock'](_0x31ef4a)&&!_0x28dd36['isLimit'](_0x31ef4a)&&_0x28dd36['checkChild'](_0x31ef4a,'$text')?{'type':'insertion','content':o(_0x1b078c,'*Insert:*\x20%0',_0x2f057b['getItemLabel'](_0x31ef4a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a6c3=this['editor'],_0x133345=_0x30a6c3['locale'];_0x30a6c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f33e0=>{if('formatBlock'!=_0x3f33e0['type'])return;const {data:_0x23ba35}=_0x3f33e0;return _0x23ba35&&'paragraph'==_0x23ba35['commandName']?{'type':'format','content':o(_0x133345,'*Change\x20to:*\x20%0',o(_0x133345,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10783f,{showActiveMarker:_0x11df75=!0x0}={}){return(_0x34a2de,_0x1f3461,_0x3bad99)=>{const _0x2c93ce=_0x10783f['plugins']['get']('TrackChangesEditing'),_0x127f29=_0x1f3461['markerRange']['start'],_0x2fbf9b=_0x1f3461['markerRange']['end'],_0x7fcce2=_0x10783f['model']['schema'];if(!_0x127f29['isTouching'](_0x2fbf9b)||!_0x127f29['nodeAfter'])return;const _0x592b4b=_0x127f29['nodeAfter'];if(_0x7fcce2['isBlock'](_0x592b4b)&&!_0x7fcce2['isLimit'](_0x592b4b)&&_0x7fcce2['checkChild'](_0x592b4b,'$text')){if(!_0x3bad99['consumable']['consume'](_0x1f3461['markerRange'],_0x34a2de['name']))return;const _0x2190ae=_0x3bad99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b8502=_0x3bad99['mapper']['toViewPosition'](_0x2fbf9b);_0x11df75&&_0x2c93ce['activeMarkers']['includes'](_0x1f3461['markerName'])&&_0x3bad99['writer']['addClass']('ck-suggestion-marker--active',_0x2190ae),_0x3bad99['writer']['insert'](_0x1b8502,_0x2190ae),_0x3bad99['mapper']['bindElementToMarker'](_0x2190ae,_0x1f3461['markerName']);}};}class pt extends _0x2c20e0{['afterInit'](){const _0x2c6b7d=this['editor'];if(!_0x2c6b7d['plugins']['has']('RemoveFormatEditing'))return;_0x2c6b7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380a30=this['editor'];_0x380a30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5751d2=>{if('formatBlock'!=_0x5751d2['type']&&'formatInline'!=_0x5751d2['type'])return;const {data:_0xfec7c5}=_0x5751d2;return _0xfec7c5&&'removeFormat'==_0xfec7c5['commandName']?{'type':'format','content':o(_0x380a30['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2c20e0{['afterInit'](){const _0x364b6f=this['editor'];if(!_0x364b6f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x424421=_0x364b6f['plugins']['get']('TrackChangesEditing');_0x424421['enableCommand']('goToPreviousRestrictedEditingException'),_0x424421['enableCommand']('goToNextRestrictedEditingException');const _0x112e9c=_0x364b6f['plugins']['get']('RestrictedEditingModeEditing');_0x112e9c['enableCommand']('trackChanges'),_0x112e9c['enableCommand']('acceptSuggestion'),_0x112e9c['enableCommand']('discardSuggestion'),_0x112e9c['enableCommand']('acceptAllSuggestions'),_0x112e9c['enableCommand']('discardAllSuggestions'),_0x112e9c['enableCommand']('acceptSelectedSuggestions'),_0x112e9c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2c20e0{static get['requires'](){return[_0x34add9];}['init'](){const _0x2b53f8=this['editor'],_0x361aff=_0x2b53f8['plugins']['get']('TrackChangesEditing');_0x361aff['enableCommand']('shiftEnter'),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x465801,_0x1fb112,_0x3087e)=>{_0x3087e['options']['showSuggestionHighlights']&&de(_0x2b53f8,{'showActiveMarker':!0x1})(_0x465801,_0x1fb112,_0x3087e);}),_0x361aff['descriptionFactory']['registerElementLabel']('softBreak',_0xb07ac2=>o(_0x2b53f8['locale'],'ELEMENT_LINE_BREAK',_0xb07ac2));}}function de(_0x141423,{showActiveMarker:_0x4595d5=!0x0}={}){return(_0x2b9ce4,_0x5e6e25,_0x47ead2)=>{const _0x990f35=_0x141423['plugins']['get']('TrackChangesEditing');if(!_0x47ead2['consumable']['test'](_0x5e6e25['markerRange'],_0x2b9ce4['name']))return;const _0x24128a=_0x141423['model'];for(const _0x231913 of _0x5e6e25['markerRange']['getItems']()){if(!_0x231913['is']('element','softBreak'))continue;const _0x4b70bb='deletion'==_0x5e6e25['markerName']['split'](':')[0x1]?'merge':'split',_0x3063f5=_0x47ead2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b70bb}),_0x3b2be2=_0x47ead2['mapper']['toViewPosition'](_0x24128a['createPositionBefore'](_0x231913));_0x4595d5&&_0x990f35['activeMarkers']['includes'](_0x5e6e25['markerName'])&&_0x47ead2['writer']['addClass']('ck-suggestion-marker--active',_0x3063f5),_0x47ead2['writer']['insert'](_0x3b2be2,_0x3063f5),_0x47ead2['mapper']['bindElementToMarker'](_0x3063f5,_0x5e6e25['markerName']);}};}class wt extends _0x2c20e0{['afterInit'](){const _0x41c225=this['editor'],_0x1c8154=_0x41c225['model'],_0x3332aa=_0x41c225['locale'];if(!_0x41c225['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a284a=_0x41c225['plugins']['get']('TrackChangesEditing'),_0xf78f37='restrictedEditingException',_0x5d0fa6=_0x41c225['commands']['get'](_0xf78f37);_0x5a284a['enableCommand'](_0xf78f37,(_0x89cd4b,_0x4f40b6={})=>{const _0x56c49c=_0x1c8154['document']['selection'];if(_0x56c49c['isCollapsed'])return void _0x89cd4b(_0x4f40b6);const _0x56df6a=void 0x0!==_0x4f40b6['forceValue']?_0x4f40b6['forceValue']:!_0x5d0fa6['value'];_0x1c8154['change'](()=>{const _0xfe3dc0=Array['from'](_0x56c49c['getRanges']());for(const _0x30d896 of _0xfe3dc0){const _0x30d988=_0x56df6a?[_0x30d896]:io(_0xf78f37,_0x30d896,_0x1c8154);for(const _0x32872d of _0x30d988)_0x5a284a['markInlineFormat'](_0x32872d,{'commandName':_0xf78f37,'commandParams':[{'forceValue':_0x56df6a}]});}});}),_0x5a284a['descriptionFactory']['registerDescriptionCallback'](_0x14643b=>{if('formatBlock'!=_0x14643b['type']&&'formatInline'!=_0x14643b['type'])return;const {data:_0x58a22c}=_0x14643b;return _0x58a22c&&_0x58a22c['commandName']==_0xf78f37?_0x58a22c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2c20e0{['afterInit'](){const _0x3cfa4c=this['editor'];if(!_0x3cfa4c['plugins']['has']('Style')||!_0x3cfa4c['plugins']['has']('DataSchema'))return;const _0x36aaca=_0x3cfa4c['plugins']['get']('TrackChangesEditing'),_0x48d3c0=_0x3cfa4c['locale'],_0x3971d8=_0x3cfa4c['config']['get']('style')||{},_0x193eb8=_0x3cfa4c['plugins']['get']('GeneralHtmlSupport'),_0x550dee=_0x3cfa4c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cfa4c['plugins']['get']('DataSchema'),_0x3971d8['definitions']);_0x36aaca['enableDefaultAttributesIntegration']('style');const _0x3d08d7=new Set();for(const _0x2b7b5d of _0x550dee['block']){const _0x351658=_0x193eb8['getGhsAttributeNameForElement'](_0x2b7b5d['element']);_0x3d08d7['add'](_0x351658);}const _0x3a28eb=new Set();for(const _0x145f0c of _0x550dee['inline']){const _0x493a2d=_0x193eb8['getGhsAttributeNameForElement'](_0x145f0c['element']);_0x3a28eb['add'](_0x493a2d);for(const _0x1f2c8a of _0x145f0c['ghsAttributes'])_0x3a28eb['add'](_0x1f2c8a);}for(const _0x5a6e0f of _0x3d08d7)_0x36aaca['registerBlockAttribute'](_0x5a6e0f),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x5a6e0f,o(_0x48d3c0,'FORMAT_STYLE'));for(const _0x17b6be of _0x3a28eb)_0x36aaca['registerInlineAttribute'](_0x17b6be),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x17b6be,o(_0x48d3c0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86775f=this['editor'],_0x5e3823=_0x86775f['locale'];_0x86775f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32afb2=>{if('formatBlock'!=_0x32afb2['type']&&'formatInline'!=_0x32afb2['type'])return;const {data:_0x4b344f}=_0x32afb2;return _0x4b344f&&'style'===_0x4b344f['commandName']?_0x4b344f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e3823,'*Set\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e3823,'*Remove\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2c20e0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cd794){super(_0x4cd794),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4531bc=this['editor'],_0x3773e3=_0x4531bc['model']['document']['selection'];if(!_0x4531bc['plugins']['has']('TableEditing'))return;const _0x54cf41=_0x4531bc['locale'],_0x177f83=_0x4531bc['plugins']['get']('TrackChangesEditing'),_0x2d6a55=_0x4531bc['plugins']['get']('TableUtils');_0x177f83['descriptionFactory']['registerElementLabel']('table',_0x2570e6=>o(_0x54cf41,'ELEMENT_TABLE',_0x2570e6)),this['_setupColumnsRowsFixing'](),_0x177f83['enableCommand']('insertTable'),_0x177f83['enableCommand']('selectTableRow'),_0x177f83['enableCommand']('selectTableColumn');for(const _0xa0a3e2 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d5beb=_0x4531bc['commands']['get'](_0xa0a3e2);_0x177f83['enableCommand'](_0xa0a3e2,_0x3b70b5=>{_0x4531bc['model']['change'](_0x180f53=>{_0x3b70b5();const _0x50516e='above'===_0x1d5beb['order'],_0x12fdb5=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x2abd0c=_0x2d6a55['getRowIndexes'](_0x12fdb5),_0xfc59a5=_0x50516e?_0x2abd0c['first']-0x1:_0x2abd0c['last']+0x1,_0x34853a=_0x12fdb5[0x0]['findAncestor']('table'),_0x4fa123=_0x2d6a55['createTableWalker'](_0x34853a,{'startRow':_0xfc59a5,'endRow':_0xfc59a5}),_0x3f7cae=Array['from'](_0x4fa123)['map'](_0x581dc2=>_0x180f53['createRangeOn'](_0x581dc2['cell']));_0x177f83['markMultiRangeInsertion'](_0x3f7cae,'tableRow');});});}for(const _0x3c5ee9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e3f46=_0x4531bc['commands']['get'](_0x3c5ee9);_0x177f83['enableCommand'](_0x3c5ee9,_0x40ae11=>{_0x4531bc['model']['change'](_0x2e4813=>{_0x40ae11();const _0x109133='left'===_0x3e3f46['order'],_0x147937=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x61bc75=_0x2d6a55['getColumnIndexes'](_0x147937),_0x36bad2=_0x109133?_0x61bc75['first']-0x1:_0x61bc75['last']+0x1,_0x100ca9=_0x147937[0x0]['findAncestor']('table'),_0x4e1b8f=_0x2d6a55['createTableWalker'](_0x100ca9,{'startRow':0x0,'column':_0x36bad2,'includeAllSlots':!0x1}),_0x3febd2=Array['from'](_0x4e1b8f)['map'](_0x58bf4b=>_0x2e4813['createRangeOn'](_0x58bf4b['cell']));_0x177f83['markMultiRangeInsertion'](_0x3febd2,'tableColumn');});});}for(const _0x1059cb of['removeTableRow','removeTableColumn']){const _0x8e776d=_0x1059cb['substr'](0xb),_0x2fdaeb=_0x8e776d['toLowerCase'](),_0x438150=_0x2fdaeb['substr'](0x0,0x3)+'span',_0x4a3fac='table'+_0x8e776d,_0x169bff='min'+_0x8e776d,_0x50f810='max'+_0x8e776d;_0x177f83['enableCommand'](_0x1059cb,()=>{_0x4531bc['model']['change'](_0x3e5f70=>{const _0x68a3af=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x3466c6=_0x68a3af[0x0]['findAncestor']('table');let _0x53d800;if('removeTableRow'==_0x1059cb){const _0xcfcc0b=_0x2d6a55['getRowIndexes'](_0x68a3af);_0x53d800={'startRow':_0xcfcc0b['first'],'endRow':_0xcfcc0b['last'],'includeAllSlots':!0x0};}else{const _0x47c3d6=_0x2d6a55['getColumnIndexes'](_0x68a3af);_0x53d800={'startColumn':_0x47c3d6['first'],'endColumn':_0x47c3d6['last'],'includeAllSlots':!0x0};}const _0x357191=_0x2d6a55['createTableWalker'](_0x3466c6,_0x53d800),_0x4780d3=Array['from'](_0x357191)['map'](({cell:_0x14a7da})=>_0x14a7da),_0xd5b151=Ee(_0x4780d3['filter'](_0x1df038=>_0x1df038['hasAttribute'](_0x438150))),_0x20e98e=Ee(_0x4780d3['filter'](_0x5339a3=>!_0x5339a3['hasAttribute'](_0x438150)))['map'](_0x38da86=>_0x3e5f70['createRangeOn'](_0x38da86)),_0x773d76=_0x177f83['markMultiRangeDeletion'](_0x20e98e,_0x4a3fac);if(_0x773d76&&('tableRow'==_0x773d76['subType']||'tableColumn'==_0x773d76['subType'])){const _0x2c045c=this['_getSuggestionCoords'](_0x773d76);for(const _0x25232a of _0xd5b151){const _0x4e8cff=_0x3e5f70['createRangeOn'](_0x25232a),_0x4bbd2d=_0x2d6a55['getCellLocation'](_0x25232a),_0x185f77=_0x25232a['getAttribute'](_0x438150)-0x1,_0x127258=_0x2c045c[_0x169bff],_0x19cbdf=_0x2c045c[_0x50f810];_0x127258<=_0x4bbd2d[_0x2fdaeb]&&_0x4bbd2d[_0x2fdaeb]+_0x185f77<=_0x19cbdf&&_0x773d76['addRange'](_0x4e8cff);}}});});}function _0x48c7e0(_0x325583){const _0x143fee=Array['from'](_0x3773e3['getRanges']())['map'](_0x18ec46=>_0xef9d24['fromRange'](_0x18ec46));_0x4531bc['model']['change'](_0x4381e8=>{const _0x19e1ac=_0x4381e8['batch'];_0x325583=_0x325583['filter'](_0xc49061=>'$graveyard'!=_0xc49061['root']['rootName']),_0x4381e8['setSelection'](_0x325583),_0x4531bc['commands']['get']('removeTableRow')['refresh'](),_0x4531bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4531bc['model']['enqueueChange'](()=>{_0x4531bc['model']['enqueueChange'](_0x19e1ac,_0x21212a=>{const _0x270549=_0x143fee['filter'](_0x304845=>'$graveyard'!=_0x304845['root']['rootName']);_0x270549['length']>0x0&&_0x21212a['setSelection'](_0x270549);for(const _0x5081aa of _0x143fee)_0x5081aa['detach']();});});});}function _0x3d6982(_0x33bbc6){_0x4531bc['model']['change'](_0x50d52b=>{const _0x17b233=Array['from'](_0x3773e3['getRanges']())['map'](_0xfde352=>_0xef9d24['fromRange'](_0xfde352)),_0x5734d5=[];for(const _0x1103d0 of _0x33bbc6)for(const _0x13c28b of _0x1103d0['getItems']({'shallow':!0x0}))_0x5734d5['push'](_0x13c28b);for(const _0x22f293 of _0x5734d5)'$graveyard'!=_0x22f293['root']['rootName']&&(_0x50d52b['setSelection'](_0x50d52b['createPositionAt'](_0x22f293,0x0)),_0x4531bc['commands']['get']('removeTableColumn')['refresh'](),_0x4531bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49b39a=_0x17b233['filter'](_0x3e38b7=>'$graveyard'!=_0x3e38b7['root']['rootName']);_0x49b39a['length']>0x0&&_0x50d52b['setSelection'](_0x49b39a);for(const _0x98f0a2 of _0x17b233)_0x98f0a2['detach']();});}function _0x76cee8(_0x42fb97,_0x3fdb62){return _0x3fdb62['every'](_0x4cfc2c=>_0x42fb97['some'](_0x4ff40f=>_0x4ff40f['end']['isEqual'](_0x4cfc2c['start'])||_0x4cfc2c['end']['isEqual'](_0x4ff40f['start'])));}function _0x19b9b9(_0x4ee42f,_0x48a46a){return!_0x4ee42f['some'](_0x1eb74a=>_0x48a46a['some'](_0x1b6506=>_0x1eb74a['isIntersecting'](_0x1b6506)))&&_0x4ee42f['some'](_0x35b36d=>_0x48a46a['some'](_0x340bc1=>_0x35b36d['end']['isTouching'](_0x340bc1['start'])));}_0x4531bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x205789,_0xa73c1a,_0x4fea89)=>{if(!_0x4fea89['options']['showSuggestionHighlights'])return;const _0x4027db=_0xa73c1a['item'];if(!_0x4027db)return;const _0x26342b=_0x4fea89['mapper']['toViewElement'](_0x4027db);function _0x3e4ff5(_0x14abaf){return Array['isArray'](_0x14abaf)?_0x14abaf:[_0x14abaf];}_0x26342b&&'tableCell'===_0x4027db['name']&&_0x63a0a0(_0x26342b,_0x4fea89['writer'],(_0x44436e,_0x2a6969,_0x305bd1)=>_0x305bd1['addClass'](_0x3e4ff5(_0x2a6969['classes']),_0x44436e),(_0x24d3a9,_0x4f7292,_0x2ddbb7)=>_0x2ddbb7['removeClass'](_0x3e4ff5(_0x4f7292['classes']),_0x24d3a9));},{'priority':'highest'}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x2420b7=>{if('insertion'!=_0x2420b7['type']&&'deletion'!=_0x2420b7['type'])return;const _0x2f0c53=_0x2420b7['getContainedElement']();if(null!=_0x2f0c53&&_0x2f0c53['is']('element','table')){if('insertion'==_0x2420b7['type']){const _0x3dcba3=_0x2420b7['getItems']()['filter'](_0x57594d=>_0x57594d['is']('$textProxy'))['map'](_0x52204d=>_0x52204d['data']);if(_0x3dcba3['length'])return{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3dcba3['join']('\x20')+'\x22'))};}if('deletion'==_0x2420b7['type']){const _0x33d6bc=_0x2420b7['getItems']()['filter'](_0x4af400=>_0x4af400['is']('$textProxy'))['map'](_0x11667a=>_0x11667a['data']);if(_0x33d6bc['length'])return{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33d6bc['join']('\x20')+'\x22'))};}}}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x1d3500=>{if('tableRow'==_0x1d3500['subType']){const _0x3e6b00=_0x1d3500['getItems']()['filter'](_0x4527f7=>_0x4527f7['is']('$textProxy'))['map'](_0x1758e2=>_0x1758e2['data']),_0x1afa20=this['_getSuggestionCoords'](_0x1d3500),_0x303e5a=_0x1afa20['maxRow']-_0x1afa20['minRow']+0x1;if('insertion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};if('deletion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};}if('tableColumn'==_0x1d3500['subType']){const _0x293c23=_0x1d3500['getItems']()['filter'](_0x3b6ea1=>_0x3b6ea1['is']('$textProxy'))['map'](_0x4bcbc5=>_0x4bcbc5['data']),_0x359706=this['_getSuggestionCoords'](_0x1d3500),_0x391ed8=_0x359706['maxColumn']-_0x359706['minColumn']+0x1;if('insertion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};if('deletion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};}}),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19b9b9),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19b9b9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x578431=this['editor'],_0x322903=_0x578431['model']['document']['selection'];return(_0x51ff9d,_0x2aa194)=>{_0x578431['model']['change'](_0x272da2=>{const {commandName:_0x30e5ec,commandParams:_0x3592b3}=_0x2aa194;let _0x99db41=_0x51ff9d[0x0]['end']['nodeBefore'];_0x3592b3&&_0x3592b3[0x0]&&!0x1===_0x3592b3[0x0]['forceValue']&&(_0x99db41=_0x51ff9d[0x0]['start']['nodeAfter']);const _0x383ad1=_0x272da2['createRangeIn'](_0x99db41);if('$graveyard'==_0x383ad1['root']['rootName'])return;const _0x3a8bdb=Array['from'](_0x322903['getRanges']())['map'](_0x39adb4=>_0xef9d24['fromRange'](_0x39adb4));_0x272da2['setSelection'](_0x383ad1),_0x578431['commands']['get'](_0x30e5ec)['refresh'](),_0x3592b3['push']({'forceDefaultExecution':!0x0}),_0x578431['execute'](_0x30e5ec,..._0x3592b3);const _0x3274aa=_0x3a8bdb['filter'](_0x1461b3=>'$graveyard'!=_0x1461b3['root']['rootName']);_0x3274aa['length']>0x0&&_0x272da2['setSelection'](_0x3274aa);for(const _0x15d0ad of _0x3a8bdb)_0x15d0ad['detach']();});};}['_getCoordsForCells'](_0x695fc9){const _0x4abc47=this['editor']['plugins']['get']('TableUtils');let _0x3d8462=Number['MAX_SAFE_INTEGER'],_0x55273a=Number['MIN_SAFE_INTEGER'],_0x217761=Number['MAX_SAFE_INTEGER'],_0x158c1d=Number['MIN_SAFE_INTEGER'];for(const _0x2cefb1 of _0x695fc9){if('$graveyard'==_0x2cefb1['root']['rootName'])continue;const {row:_0x1f5ea7,column:_0x40e9c4}=_0x4abc47['getCellLocation'](_0x2cefb1),_0x440782=_0x2cefb1['hasAttribute']('rowspan')?_0x2cefb1['getAttribute']('rowspan')-0x1:0x0,_0x42a881=_0x2cefb1['hasAttribute']('colspan')?_0x2cefb1['getAttribute']('colspan')-0x1:0x0;_0x3d8462=_0x1f5ea7<_0x3d8462?_0x1f5ea7:_0x3d8462,_0x55273a=_0x1f5ea7+_0x440782>_0x55273a?_0x1f5ea7+_0x440782:_0x55273a,_0x217761=_0x40e9c4<_0x217761?_0x40e9c4:_0x217761,_0x158c1d=_0x40e9c4+_0x42a881>_0x158c1d?_0x40e9c4+_0x42a881:_0x158c1d;}return{'minRow':_0x3d8462,'maxRow':_0x55273a,'minColumn':_0x217761,'maxColumn':_0x158c1d};}['_setupColumnsRowsFixing'](){const _0x19985a=this['editor'],_0x15e873=_0x19985a['plugins']['get']('TrackChangesEditing'),_0x2806ef=_0x19985a['plugins']['get']('TableUtils');_0x19985a['model']['document']['on']('change:data',()=>{const _0x21f44c=Array['from'](_0x19985a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3284f7,data:_0x461f99}of _0x21f44c){const {group:_0x52041f,id:_0x30c742,subType:_0x5c2bfc}=_0x15e873['_splitMarkerName'](_0x3284f7);if('suggestion'!=_0x52041f)continue;if(null!=_0x461f99['oldRange'])continue;const _0x1f461b=_0x15e873['getSuggestion'](_0x30c742);this['_tablePostFixingSubtypes']['includes'](_0x5c2bfc)&&this['_tableSuggestions']['add'](_0x1f461b);}},{'priority':'low'});const _0x42a610=(_0x203354,_0x1395b4)=>{let _0x53b55d=!0x1;const _0x71d6ef=_0x1395b4['createRangeOn'](_0x203354),_0x19c246=_0x203354['findAncestor']('table'),_0x174ebf=_0x2806ef['getCellLocation'](_0x203354);for(const _0x184a4a of this['_tableSuggestions']){const _0x343a7a=_0x184a4a['subType'],_0x2e379e=_0x343a7a['startsWith']('tablePaste'),_0x2ba786=_0x343a7a['substr'](_0x2e379e?0xa:0x5),_0x1f0dbd=_0x2ba786['toLowerCase'](),_0x18f0e2=_0x1f0dbd['substr'](0x0,0x3)+'span',_0x176122='min'+_0x2ba786,_0x9f66fb='max'+_0x2ba786;if(!_0x184a4a['isInContent'])continue;if(_0x19c246!=_0x184a4a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x184a4a['isIntersectingWithRange'](_0x71d6ef))continue;const _0x158459=_0x203354['hasAttribute'](_0x18f0e2)?_0x203354['getAttribute'](_0x18f0e2)-0x1:0x0,_0x54ab64=this['_getSuggestionCoords'](_0x184a4a),_0x1b161a=_0x54ab64[_0x176122],_0x39ac4c=_0x54ab64[_0x9f66fb];_0x1b161a<=_0x174ebf[_0x1f0dbd]&&_0x174ebf[_0x1f0dbd]+_0x158459<=_0x39ac4c&&(_0x184a4a['addRange'](_0x71d6ef),_0x53b55d=!0x0);}return _0x53b55d;};_0x19985a['model']['document']['registerPostFixer'](_0x431f17=>{let _0xc24718=!0x1;for(const _0x1e31ea of _0x19985a['model']['document']['differ']['getChanges']())if('insert'==_0x1e31ea['type']){if('tableRow'==_0x1e31ea['name']){for(const _0x202eb8 of _0x1e31ea['position']['nodeAfter']['getChildren']())_0xc24718=_0xc24718||_0x42a610(_0x202eb8,_0x431f17);}else'tableCell'==_0x1e31ea['name']&&(_0xc24718=_0xc24718||_0x42a610(_0x1e31ea['position']['nodeAfter'],_0x431f17));}return _0xc24718;});}['_getSuggestionCoords'](_0x4774f8){return this['_getCoordsForCells'](_0x4774f8['getRanges']()['map'](_0x26d6f8=>_0x26d6f8['start']['nodeAfter']));}}function Ee(_0x517c95){return Array['from'](new Set(_0x517c95)['values']());}class St extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x11f6b4=this['editor'],_0x2079fd=_0x11f6b4['model']['document']['selection'],_0x510552=_0x11f6b4['locale'];if(!_0x11f6b4['plugins']['has']('TableEditing'))return;const _0x34f351=_0x11f6b4['plugins']['get']('TrackChangesEditing'),_0x549030=_0x11f6b4['plugins']['get']('TableUtils'),_0x457e08=_0x11f6b4['plugins']['get'](jt);_0x457e08['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f351['enableCommand']('mergeTableCells',()=>{const _0x4e0b98=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection']);_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat'](_0x4e0b98,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x11f6b4['commands']['get']('mergeTableCells')['on']('execute',(_0x5955ee,_0x1871a2)=>{_0x11f6b4['commands']['get']('trackChanges')['value']&&(_0x1871a2['length']>0x0&&_0x1871a2[_0x1871a2['length']-0x1]&&_0x1871a2[_0x1871a2['length']-0x1]['forceDefaultExecution']||_0x34f351['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5955ee['stop']());},{'priority':'highest'});for(const _0x325ae1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1288d5=_0x11f6b4['commands']['get'](_0x325ae1);_0x34f351['enableCommand'](_0x325ae1,()=>{const _0x168aa7=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x345b68=>_0x345b68['is']('element','tableCell')),_0x140a72=_0x1288d5['value'];_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat']([_0x168aa7,_0x140a72],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5402a1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58666c=_0x11f6b4['commands']['get'](_0x5402a1);_0x34f351['enableCommand'](_0x5402a1,()=>{const _0x13eac5=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection'])[0x0],_0x48f734=_0x13eac5['findAncestor']('table'),{column:_0x1e646,row:_0x1521be}=_0x549030['getCellLocation'](_0x13eac5);let _0x24555f=[];if('horizontally'==_0x58666c['direction']){const _0x15f283=_0x549030['createTableWalker'](_0x48f734,{'startRow':_0x1521be,'endRow':_0x1521be,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x15f283)['map'](_0x41865b=>_0x41865b['cell']);}else{const _0x47c681=_0x549030['createTableWalker'](_0x48f734,{'column':_0x1e646,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x47c681)['map'](_0xa42228=>_0xa42228['cell']);}_0x11f6b4['model']['change'](_0x3f4f1e=>{_0x34f351['markBlockFormat'](_0x3f4f1e['createRangeOn'](_0x13eac5),{'commandName':_0x5402a1,'commandParams':[]},_0x24555f,_0x5402a1);});});}_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x52ee1f=>{if('formatBlock'!=_0x52ee1f['type']&&'formatInline'!=_0x52ee1f['type'])return;const {data:_0x4b1145}=_0x52ee1f;return _0x4b1145&&'mergeTableCells'==_0x4b1145['commandName']?{'type':'format','content':o(_0x510552,'*Merge\x20cells*')}:void 0x0;}),_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x383fd0=>{if('formatBlock'!=_0x383fd0['type']&&'formatInline'!=_0x383fd0['type'])return;const {data:_0x264840}=_0x383fd0;return _0x264840?'splitTableCellVertically'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41a938=_0x457e08['_acceptFormatSuggestionCallbackFactory']();for(const _0x262939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x262939,'accept',_0x41a938);for(const _0x5d06f2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d06f2,'accept',_0x41a938);_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a52d1=>{_0x11f6b4['model']['change'](_0x427607=>{const _0xf8dcca=Array['from'](_0x2079fd['getRanges']())['map'](_0x25aa07=>_0xef9d24['fromRange'](_0x25aa07));_0x427607['setSelection'](_0x1a52d1),_0x11f6b4['commands']['get']('mergeTableCells')['refresh'](),_0x11f6b4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c483d=_0xf8dcca['filter'](_0x410417=>'$graveyard'!=_0x410417['root']['rootName']);_0x5c483d['length']>0x0&&_0x427607['setSelection'](_0x5c483d);for(const _0x2ad51d of _0xf8dcca)_0x2ad51d['detach']();});});for(const _0x25783f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58f42b=_0x11f6b4['commands']['get'](_0x25783f);_0x58f42b['on']('set:isEnabled',(_0x482567,_0x191e95,_0x5dd94e)=>{if(_0x5dd94e){const _0xcfe625=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dd5f7=>_0x2dd5f7['is']('element','tableCell'));this['_areMergableCells'](_0x58f42b['value'],_0xcfe625)||(_0x482567['return']=!0x1,_0x482567['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dafd9=this['editor']['commands']['get']('mergeTableCells'),_0x1e8087=this['editor']['plugins']['get']('TableUtils');if(!_0x2dafd9['isEnabled'])return!0x1;const _0x39a860=_0x1e8087['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c41b5 of _0x39a860)for(const _0x38a711 of _0x39a860)if(_0x4c41b5!=_0x38a711&&!this['_areMergableCells'](_0x4c41b5,_0x38a711))return!0x1;return!0x0;}['_areMergableCells'](_0x4b9e23,_0xdffb2d){const _0x3aecda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f5088=this['editor']['model']['createRangeOn'](_0x4b9e23),_0x538551=this['editor']['model']['createRangeOn'](_0xdffb2d),_0x26539b=new Set(),_0x4fc9a0=new Set();for(const _0x560b8a of _0x3aecda['getSuggestions']())if(('insertion'==_0x560b8a['type']||'deletion'==_0x560b8a['type']||'mergeTableCells'==_0x560b8a['subType'])&&_0x560b8a['isInContent']){for(const _0x4e4627 of _0x560b8a['getRanges']())_0x4e4627['containsRange'](_0x3f5088,!0x0)&&_0x26539b['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']),_0x4e4627['containsRange'](_0x538551,!0x0)&&_0x4fc9a0['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']);}if(_0x26539b['size']!=_0x4fc9a0['size'])return!0x1;for(const _0x5e50b2 of _0x26539b)if(!_0x4fc9a0['has'](_0x5e50b2))return!0x1;return!0x0;}}class At extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x347ffa=this['editor'];if(!_0x347ffa['plugins']['has']('TableEditing'))return;const _0x3546ea=_0x347ffa['locale'],_0x361737=_0x347ffa['plugins']['get']('TrackChangesEditing');_0x361737['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x361737['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x361737['registerBlockAttribute']('headingRows'),_0x361737['registerBlockAttribute']('headingColumns'),_0x361737['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3546ea,'FORMAT_HEADER_ROW')),_0x361737['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3546ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xef582d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495dec=this['editor']['plugins']['get']('TableUtils'),_0x33990a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5a031a({showActiveMarker:_0x1b81b8=!0x0,setDataAttribute:_0x3c5f4a=!0x0}={}){return(_0x228060,_0x21e1da,_0x39068c)=>{const {type:_0x4088fa,id:_0x398d22}=_0xef582d['_splitMarkerName'](_0x21e1da['markerName']),_0x47f652=_0xef582d['getSuggestion'](_0x398d22),_0x239b2b=_0x47f652['data'];if('formatBlock'!=_0x47f652['type']||!_0x239b2b||'setTableColumnHeader'!=_0x239b2b['commandName'])return;if(_0x21e1da['item'])return void _0x228060['stop']();if(!_0x39068c['consumable']['consume'](_0x21e1da['markerRange'],_0x228060['name']))return;const _0x315e81=_0x21e1da['markerRange']['start']['nodeAfter'],_0x1ad424=_0x21e1da['markerRange']['end']['nodeBefore'],_0x102bff=_0x315e81['parent']['parent'],{column:_0x4ef91d}=_0x495dec['getCellLocation'](_0x315e81),{column:_0x25e07e}=_0x495dec['getCellLocation'](_0x1ad424);for(let _0x2a7f61=_0x4ef91d;_0x2a7f61<=_0x25e07e;_0x2a7f61++){const _0x9cddc5=_0x495dec['createTableWalker'](_0x102bff,{'column':_0x2a7f61,'includeAllSlots':!0x1});for(const _0x2c31f2 of _0x9cddc5){const _0x1e7334=_0x2c31f2['cell'],_0x6671e9=_0x39068c['mapper']['toViewElement'](_0x1e7334);_0x39068c['writer']['addClass']('ck-suggestion-marker-'+_0x4088fa,_0x6671e9),_0x3c5f4a&&_0x39068c['writer']['setAttribute']('data-suggestion',_0x398d22,_0x6671e9),_0x39068c['mapper']['bindElementToMarker'](_0x6671e9,_0x21e1da['markerName']),_0x1b81b8&&(_0xef582d['activeMarkers']['includes'](_0x21e1da['markerName'])?_0x39068c['writer']['addClass']('ck-suggestion-marker--active',_0x6671e9):_0x39068c['writer']['removeClass']('ck-suggestion-marker--active',_0x6671e9));}}};}_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33990a),_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33990a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a031a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265c3b,_0x3f7a8a,_0x1dc79e)=>{_0x1dc79e['options']['showSuggestionHighlights']&&_0x5a031a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x265c3b,_0x3f7a8a,_0x1dc79e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34f10f,_0x104773,_0x25935b)=>{const {type:_0x38e926,id:_0x2c3606}=_0xef582d['_splitMarkerName'](_0x104773['markerName']),_0x31fa54=_0xef582d['getSuggestion'](_0x2c3606),_0x3d5f4d=_0x31fa54['data'];if('formatBlock'!=_0x31fa54['type']||!_0x3d5f4d||'setTableColumnHeader'!=_0x3d5f4d['commandName'])return;const _0xb8345e=_0x25935b['mapper']['markerNameToElements'](_0x104773['markerName']);if(_0xb8345e){for(const _0x329506 of _0xb8345e)_0x25935b['writer']['removeClass']('ck-suggestion-marker-'+_0x38e926,_0x329506),_0x25935b['writer']['removeClass']('ck-suggestion-marker--active',_0x329506),_0x25935b['writer']['removeAttribute']('data-suggestion',_0x329506),_0x25935b['mapper']['unbindElementFromMarkerName'](_0x329506,_0x104773['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42df13=this['editor'],_0x5a090a=_0x42df13['locale'];function _0x278aec(_0x482710){return{'type':'format','content':o(_0x5a090a,'*Format:*\x20%0',_0x482710)};}_0x42df13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394d8f=>{if('formatBlock'!=_0x394d8f['type'])return;const {data:_0x1f733e}=_0x394d8f;if(_0x1f733e){if('setTableRowHeader'==_0x1f733e['commandName']){const _0x201d4e=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x201d4e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f733e['commandName']){const _0x2720a3=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x2720a3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3b815e=>[_0x3b815e,null]));class It extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x6042e7=this['editor'];if(!_0x6042e7['plugins']['has']('TableClipboard'))return;const _0x120bb3=_0x6042e7['plugins']['get']('TrackChangesEditing'),_0x6adb3e=_0x6042e7['plugins']['get']('TableUtils'),_0x1ebc0c=_0x6042e7['plugins']['get'](jt),_0x5485c5=_0x6042e7['plugins']['get']('TableClipboard');_0x1ebc0c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6042e7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6042e7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ae971=null;_0x6042e7['model']['on']('insertContent',(_0x180d0a,_0x5b92cd)=>{const [_0x21f866,_0x41a8c0]=_0x5b92cd,_0x3b918a=_0x5b92cd[_0x5b92cd['length']-0x1];_0x3b918a&&_0x3b918a['forceDefaultExecution']||_0x120bb3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x19cf82,_0x353bd5,_0x1770ec,_0x486338,_0x58a42f){if(_0x353bd5&&!_0x353bd5['is']('documentSelection'))return!0x1;const _0x5d3dff=_0x58a42f['getTableIfOnlyTableInContent'](_0x19cf82,_0x1770ec);if(!_0x5d3dff||!he(_0x5d3dff,void 0x0,_0x486338))return!0x1;const _0x56f282=_0x486338['getSelectionAffectedTableCells'](_0x1770ec['document']['selection']);if(!_0x56f282['length'])return!0x1;const _0x1b68cb=_0x56f282[0x0]['findAncestor']('table'),_0x4c1a7b=_0x486338['getRowIndexes'](_0x56f282),_0x51ebef=_0x486338['getColumnIndexes'](_0x56f282),_0x53009c={'startRow':_0x4c1a7b['first'],'endRow':_0x4c1a7b['last'],'startColumn':_0x51ebef['first'],'endColumn':_0x51ebef['last']};return 0x1==_0x56f282['length']&&(_0x53009c['endRow']+=_0x486338['getRows'](_0x5d3dff)-0x1,_0x53009c['endColumn']+=_0x486338['getColumns'](_0x5d3dff)-0x1),he(_0x1b68cb,_0x53009c,_0x486338);}(_0x21f866,_0x41a8c0,_0x6042e7['model'],_0x6adb3e,_0x5485c5)&&(_0x180d0a['stop'](),_0x3ae971={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6042e7['model']['change'](()=>{_0x6042e7['model']['insertContent'](_0x5b92cd[0x0],_0x5b92cd[0x1],_0x5b92cd[0x2],{'forceDefaultExecution':!0x0});const _0x38296f=_0xe5f9d9(),{rowInsertionRanges:_0x9ade6d,columnInsertionRanges:_0x31c1bb,insertionRanges:_0x27b642,deletionRanges:_0x50e4c3,cells:_0x37e69f}=_0x3ae971;_0x9ade6d['length']&&_0x120bb3['markMultiRangeInsertion'](_0x9ade6d,'tablePasteRow',{'tablePasteChainId':_0x38296f}),_0x31c1bb['length']&&_0x120bb3['markMultiRangeInsertion'](_0x31c1bb,'tablePasteColumn',{'tablePasteChainId':_0x38296f}),_0x27b642['length']&&(_0x120bb3['markMultiRangeInsertion'](_0x27b642,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x27b642['forEach'](_0x5444f2=>_0x5444f2['detach']?.())),_0x50e4c3['length']&&(_0x120bb3['markMultiRangeDeletion'](_0x50e4c3,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x50e4c3['forEach'](_0x591a11=>_0x591a11['detach']?.()));const _0x907353=_0x120bb3['markMultiRangeBlockFormat'](_0x37e69f['map'](({element:_0x2a2a40})=>_0x2a2a40),{'formatGroupId':_0xe5f9d9()},[],'tablePasteCell',{'tablePasteChainId':_0x38296f});if(_0x907353){const _0x577c75=_0x907353['getMarkers'](),_0xe5d559=[];for(const {element:_0x5e81aa,attributes:_0x5a2227}of _0x37e69f){if(!_0x5a2227)continue;const _0x83620=_0x6042e7['model']['createRangeOn'](_0x5e81aa),_0x162185=_0x577c75['find'](_0x109abc=>_0x109abc['getRange']()['isEqual'](_0x83620));_0x162185&&_0xe5d559['push']([_0x162185['name'],_0x5a2227]);}_0xe5d559['length']&&_0x907353['setAttribute']('markerAttributes',Object['fromEntries'](_0xe5d559));}_0x3ae971=null;}));},{'priority':_0x452690['high']+0xa}),_0x6042e7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33f5a8,_0x32919a)=>{const [_0x2b3dfd,_0x55ebae,,_0x2b9f2a]=_0x32919a;if(!_0x3ae971)return;_0x33f5a8['stop']();const _0x3782d1=_0x2b3dfd['cell'],_0x2f0520=_0x55ebae,_0x12b3aa=Pe(_0x3782d1),_0x44293f=Pe(_0x2f0520);_0x33f5a8['return']=_0x3782d1;let _0xb64655=null,_0x50cdf5=null;if(_0x44293f||_0x12b3aa){if(_0x12b3aa&&!_0x44293f){_0x2b9f2a['remove'](_0x3782d1['getChild'](0x0));for(const _0x59c648 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x59c648,_0x3782d1,'end');const _0x2d6fa5=_0x3ae971['rowInsertionIndexes']['includes'](_0x2b3dfd['row']),_0x49f3f1=_0x3ae971['columnInsertionIndexes']['includes'](_0x2b3dfd['column']);_0x2d6fa5||_0x49f3f1||(_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeIn'](_0x3782d1)));}else _0x44293f&&!_0x12b3aa&&(_0x50cdf5=_0x2b9f2a['createRangeIn'](_0x3782d1));}else{const _0x4a9dc5=_0x2b9f2a['createElement']('tableCellSuggestion'),_0x154a8e=_0x2b9f2a['createElement']('tableCellSuggestion');_0x2b9f2a['wrap'](_0x2b9f2a['createRangeIn'](_0x3782d1),_0x154a8e),_0x2b9f2a['insert'](_0x4a9dc5,_0x3782d1,0x0);for(const _0x2c5a14 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x2c5a14,_0x4a9dc5,'end');_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x4a9dc5)),_0x50cdf5=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x154a8e));}const _0x2bfa36=Array['from'](_0x2f0520['getAttributes']())['filter'](([_0x39ccd7])=>ge['includes'](_0x39ccd7));_0x3ae971['cells']['push']({'element':_0x3782d1,'attributes':_0x2bfa36['length']?Object['fromEntries'](_0x2bfa36):null}),_0xb64655&&_0x3ae971['insertionRanges']['push'](_0xb64655),_0x50cdf5&&_0x3ae971['deletionRanges']['push'](_0x50cdf5);},{'priority':'high'}),_0x6adb3e['on']('insertColumns',(_0x3115e9,_0x16e1a1)=>{const [_0x597b19,_0x49edf2={}]=_0x16e1a1;if(!_0x3ae971)return;const _0x136cb1=_0x49edf2['at']||0x0,_0x4f490e=_0x49edf2['columns']||0x1;_0x3ae971['columnInsertionIndexes']=new Array(_0x4f490e)['fill'](_0x136cb1)['map']((_0xc7f330,_0x190fe8)=>_0xc7f330+_0x190fe8);for(const {cell:_0x41baae}of _0x6adb3e['createTableWalker'](_0x597b19,{'startColumn':_0x136cb1,'endColumn':_0x136cb1+_0x4f490e-0x1}))_0x3ae971['columnInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x41baae));},{'priority':'low'}),_0x6adb3e['on']('insertRows',(_0x59aa1f,_0xa45321)=>{const [_0x55952c,_0x1afad8={}]=_0xa45321;if(!_0x3ae971)return;const _0x417dd8=_0x1afad8['at']||0x0,_0x8e3598=_0x1afad8['rows']||0x1;_0x3ae971['rowInsertionIndexes']=new Array(_0x8e3598)['fill'](_0x417dd8)['map']((_0x35463e,_0x96403e)=>_0x35463e+_0x96403e);for(const {cell:_0x45cff1}of _0x6adb3e['createTableWalker'](_0x55952c,{'startRow':_0x417dd8,'endRow':_0x417dd8+_0x8e3598-0x1}))_0x3ae971['rowInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x45cff1));},{'priority':'low'}),_0x120bb3['descriptionFactory']['registerDescriptionCallback'](_0x2d8e1c=>{if(_0x2d8e1c['subType']&&_0x2d8e1c['subType']['startsWith']('tablePaste'))return _0x2d8e1c['previous']?{}:{'type':'insertion','content':o(_0x6042e7['locale'],'*Replace\x20table\x20cells*')};});const _0x535813=()=>!0x1;for(const _0x5ed150 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed150,'join',_0x535813);_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5543ed,_0x4680bb,_0x53c94b)=>{const _0x135ce6=_0x5543ed['map'](_0x3105bb=>_0x3105bb['getContainedElement']())['filter'](_0x487a3f=>_0x487a3f),_0x562d3d=new Map(_0x135ce6['map'](_0x336a19=>[_0x336a19,null]));if(_0x3ae971){for(const {element:_0x581e6b,attributes:_0x5f53b6}of _0x3ae971['cells'])_0x5f53b6&&_0x562d3d['set'](_0x581e6b,_0x5f53b6);}else{if(_0x53c94b&&_0x53c94b['markerAttributes'])for(const [_0x21c7ff,_0x1a6f4c]of Object['entries'](_0x53c94b['markerAttributes'])){const _0x17bc69=_0x6042e7['model']['markers']['get'](_0x21c7ff),_0x4ad2de=_0x17bc69?_0x17bc69['getRange']()['getContainedElement']():null;_0x4ad2de&&_0x562d3d['set'](_0x4ad2de,_0x1a6f4c);}}_0x6042e7['model']['change'](_0x54d0af=>{for(const [_0x494e20,_0x426fc1]of _0x562d3d)_0x54d0af['setAttributes']({...Ce,..._0x426fc1},_0x494e20);});});const _0x21e5ab=(_0x160cbd,_0x5406e4)=>{_0x120bb3['_suggestionFactory']['registerCustomCallback'](_0x160cbd,'tablePaste',_0x5406e4,(_0x4a5e04,_0x46699d,_0x3f3d83)=>{_0x6042e7['model']['change'](_0x5a6251=>{const _0x42523b=[];for(const _0x193299 of _0x4a5e04){const _0x4ea879=_0x193299['start']['nodeAfter'];_0x4ea879['is']('element','tableCellSuggestion')&&_0x42523b['push'](_0x4ea879);}_0x120bb3['_suggestionFactory']['getSuggestionCallback'](_0x160cbd,null,_0x5406e4)(_0x4a5e04,_0x46699d,_0x3f3d83);for(const _0x5afb49 of _0x42523b)'$graveyard'!=_0x5afb49['root']['rootName']&&_0x5a6251['unwrap'](_0x5afb49);});});};_0x21e5ab('insertion','accept'),_0x21e5ab('insertion','discard'),_0x21e5ab('deletion','accept'),_0x21e5ab('deletion','discard'),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xfd82a=>{const _0x26db7c=_0xfd82a['map'](_0x4330e9=>_0x4330e9['getContainedElement']()),_0x32e194=_0x26db7c[0x0]['findAncestor']('table'),{minRow:_0x1d6104,maxRow:_0x55671b}=_0x1ebc0c['_getCoordsForCells'](_0x26db7c);_0x6adb3e['removeRows'](_0x32e194,{'at':_0x1d6104,'rows':_0x55671b-_0x1d6104+0x1});}),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x395e6a=>{const _0x2562e9=_0x395e6a['map'](_0x1ee6ec=>_0x1ee6ec['getContainedElement']()),_0x41f692=_0x2562e9[0x0]['findAncestor']('table'),{minColumn:_0x140e77,maxColumn:_0xc65fef}=_0x1ebc0c['_getCoordsForCells'](_0x2562e9);_0x6adb3e['removeColumns'](_0x41f692,{'at':_0x140e77,'columns':_0xc65fef-_0x140e77+0x1});});const _0x537cd9=(_0x51f63a,_0x1f6504)=>{if(!_0x1f6504['subType']||!_0x1f6504['subType']['startsWith']('tablePaste'))return;const _0x24f662=_0x1f6504['attributes']['tablePasteChainId'],_0x1252e3=_0x120bb3['getSuggestions']()['filter'](_0x13db51=>_0x13db51['isInContent']&&_0x13db51['attributes']&&_0x13db51['attributes']['tablePasteChainId']==_0x24f662);_0x1252e3['length']&&_0x1f6504['getAllAdjacentSuggestions']()['length']!=_0x1252e3['length']&&_0x1252e3['reduce']((_0x3ec1a0,_0xef7c7c)=>(_0x3ec1a0['next']=_0xef7c7c,_0xef7c7c['previous']=_0x3ec1a0,_0xef7c7c));};function _0xffafc1(_0x4f713f,_0x183a71=!0x0){const {id:_0x49817d}=_0x120bb3['_splitMarkerName'](_0x4f713f['markerName']),_0x15b27d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a589d=_0x120bb3['activeMarkers']['includes'](_0x4f713f['markerName']);return _0x3a589d&&_0x15b27d['push']('ck-suggestion-marker--active'),{'classes':_0x15b27d,'attributes':{'data-suggestion':_0x49817d},'priority':_0x3a589d&&_0x183a71?0xbc2:0xbb8};}_0x120bb3['on']('suggestionLoaded',_0x537cd9,{'priority':'high'}),_0x120bb3['on']('suggestionUnloaded',_0x537cd9,{'priority':'high'}),_0x6042e7['model']['document']['registerPostFixer'](()=>{let _0x5bac93=!0x1;const _0x52d882=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22d97a,data:_0x214c6f}of _0x52d882){const {group:_0x58e8b8,type:_0x271b78,id:_0x3b436f}=_0x120bb3['_splitMarkerName'](_0x22d97a);if('suggestion'!=_0x58e8b8||'deletion'!=_0x271b78||_0x214c6f['oldRange'])continue;if(!_0x120bb3['hasSuggestion'](_0x3b436f))continue;const _0x301713=_0x120bb3['getSuggestion'](_0x3b436f)['getRanges'](),_0x28454f=_0x6042e7['plugins']['get']('Users')['me'];for(const _0xcedb5c of _0x120bb3['getSuggestions']()){if(!_0xcedb5c['isInContent']||_0xcedb5c['author']!=_0x28454f)continue;if('formatBlock'!=_0xcedb5c['type']||'tablePasteCell'!=_0xcedb5c['subType'])continue;if(_0xcedb5c['getRanges']()['every'](_0x3ebff1=>_0x301713['some'](_0xaf4345=>_0xaf4345['containsRange'](_0x3ebff1,!0x0)))){for(const _0x554022 of _0xcedb5c['getAllAdjacentSuggestions']())_0x554022['isInContent']&&(_0x554022['discard'](),_0x5bac93=!0x0);}}}return _0x5bac93;}),_0x6042e7['model']['document']['registerPostFixer'](_0x597991=>{const _0x1cd35a=_0x6042e7['commands']['get']('redo');if(!_0x1cd35a||!_0x1cd35a['_createdBatches']['has'](_0x597991['batch']))return!0x1;let _0x16432f=!0x1;const _0x439947=_0x6042e7['plugins']['get']('Users')['me'],_0x52e7ba=_0x6042e7['model']['document']['differ']['getChanges'](),_0x4a2ede=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25f317,data:_0x39d4cb})=>{const {group:_0x128e6e,subType:_0x308695,authorId:_0x3a6693}=_0x120bb3['_splitMarkerName'](_0x25f317);return'suggestion'==_0x128e6e&&'tablePaste'==_0x308695&&_0x3a6693==_0x439947['id']&&!_0x39d4cb['oldRange'];});for(const _0x16ecec of _0x52e7ba){if('insert'!=_0x16ecec['type']||'tableCellSuggestion'!=_0x16ecec['name']||0x1!=_0x16ecec['length'])continue;const _0x14bdfc=_0x597991['createRange'](_0x16ecec['position'],_0x16ecec['position']['getShiftedBy'](0x1));if(!_0x4a2ede['find'](({data:_0x3b391b})=>_0x3b391b['newRange']['isEqual'](_0x14bdfc))){for(const {name:_0x52a587,data:_0x9a9abc}of _0x4a2ede)if(_0x14bdfc['containsRange'](_0x9a9abc['newRange'])){_0x597991['updateMarker'](_0x52a587,{'range':_0x14bdfc}),_0x16432f=!0x0;break;}}}return _0x16432f;}),_0x6042e7['model']['document']['registerPostFixer'](_0x3cd70d=>{let _0x2e218f=!0x1;const _0x3859ef=_0x6042e7['plugins']['get']('Users')['me'],_0x395250=_0x120bb3['getSuggestions']()['filter'](_0x195178=>_0x195178['isInContent']&&_0x195178['author']==_0x3859ef),_0x139cd1=new Set(),_0x1e571a=new Set();for(const _0xff76cd of _0x395250)if('tablePaste'==_0xff76cd['subType'])for(const _0x4599c2 of _0xff76cd['getMarkers']()){const _0x26a024=_0x4599c2['getRange']()['getContainedElement']();if(_0x26a024){if(_0x26a024['is']('element','tableCellSuggestion')&&Pe(_0x26a024)){_0xff76cd['removeMarker'](_0x4599c2['name']),_0x139cd1['add'](_0x26a024),_0x2e218f=!0x0;const _0x45d2f3=_0x26a024['nextSibling'],_0x56a893=_0x26a024['previousSibling'],_0x50e316=_0x45d2f3&&_0x45d2f3['is']('element','tableCellSuggestion'),_0x293adf=_0x56a893&&_0x56a893['is']('element','tableCellSuggestion');_0x50e316&&!_0x139cd1['has'](_0x45d2f3)&&_0x1e571a['add'](_0x45d2f3),_0x293adf&&!_0x139cd1['has'](_0x56a893)&&_0x1e571a['add'](_0x56a893);}else _0x26a024['is']('element','paragraph')&&_0x26a024['isEmpty']&&(_0xff76cd['removeMarker'](_0x4599c2['name']),_0x2e218f=!0x0);}}else{if('tablePasteCell'==_0xff76cd['subType']){if(!_0xff76cd['attributes']||!_0xff76cd['attributes']['tablePasteChainId'])continue;const _0x25fb9e=_0xff76cd['attributes']['markerAttributes'];if(_0x25fb9e&&Object['keys'](_0x25fb9e)['length'])continue;const _0x231cb2=_0xff76cd['attributes']['tablePasteChainId'];let _0x318e42=!0x0,_0x428eb9=!0x0;for(const _0x55b03e of _0x395250)if(_0x55b03e['subType']&&_0x55b03e['subType']['startsWith']('tablePaste')){if(!_0x55b03e['attributes']['tablePasteChainId']){_0x428eb9=!0x1;break;}if(_0x55b03e['id']!=_0xff76cd['id']&&_0x55b03e['attributes']['tablePasteChainId']==_0x231cb2){_0x318e42=!0x1;break;}}_0x428eb9&&_0x318e42&&(_0xff76cd['removeMarkers'](),_0x2e218f=!0x0);}}for(const _0x3ce73b of _0x139cd1)_0x3cd70d['remove'](_0x3ce73b);for(const _0x102305 of _0x1e571a)_0x3cd70d['unwrap'](_0x102305);return _0x2e218f;}),_0x6042e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15fb00,_0xcdf0bb)=>_0xffafc1(_0x15fb00),'converterPriority':'high'}),_0x6042e7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46aa0d,_0x55852c)=>_0x55852c['options']['showSuggestionHighlights']?_0xffafc1(_0x46aa0d,!0x1):null,'converterPriority':'high'});const _0x4a1082=_0x6042e7['editing']['view'];this['listenTo'](_0x4a1082['document'],'clipboardOutput',(_0x44c79b,_0x260192)=>{const _0x30ce4b=[];for(const _0x244d3d of _0x4a1082['createRangeIn'](_0x260192['content'])['getItems']())_0x244d3d['is']('element','suggestion-td')&&_0x30ce4b['push'](_0x244d3d);_0x4a1082['change'](_0x5878ee=>{for(const _0x16a9b9 of _0x30ce4b)_0x5878ee['move'](_0x5878ee['createRangeIn'](_0x16a9b9),_0x5878ee['createPositionBefore'](_0x16a9b9)),_0x5878ee['remove'](_0x16a9b9);});});}}function Pe(_0x41cfcc){if(_0x41cfcc['isEmpty'])return!0x0;const _0x3b026b=_0x41cfcc['getChild'](0x0);return _0x3b026b['is']('element','paragraph')&&_0x3b026b['isEmpty'];}function he(_0x2e35e3,_0x3ceac9={},_0x114eb9){for(const {isAnchor:_0x4aa0d4,cellHeight:_0x40883d,cellWidth:_0x199f1b}of _0x114eb9['createTableWalker'](_0x2e35e3,{'includeAllSlots':!0x0,..._0x3ceac9}))if(!_0x4aa0d4||0x1!=_0x40883d||0x1!=_0x199f1b)return!0x1;return!0x0;}class vt extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2059aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2059aa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2059aa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1642f5,_0x1868b4){const _0x1fa795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0534=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3bd400=_0x1868b4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x420d54=_0x5b0534['getColumnGroupElement'](_0x3bd400);let _0x351b83=_0x420d54?_0x5b0534['getTableColumnsWidths'](_0x420d54):null,_0xd4fc37=_0x3bd400['getAttribute']('tableWidth')||null;const _0x2cb2b2=_0x1868b4['tableWidth']||_0xd4fc37,_0x59d219=_0x1868b4['columnWidths']||_0x351b83,_0x1a063c=this['editor']['plugins']['get']('Users')['me'];for(const _0x358a99 of _0x1fa795['getSuggestions']()){const _0x1db3b1=_0x358a99['getContainedElement']();if('resizeTable'===_0x358a99['subType']&&_0x1db3b1===_0x3bd400){_0x358a99['author']!==_0x1a063c&&_0x358a99['discard']();const _0x508562=_0x358a99['data']['commandParams'];_0xd4fc37=_0x508562[0x0]['tableWidth'],_0x351b83=_0x508562[0x0]['columnWidths'];break;}}_0x1642f5({'table':_0x3bd400,'tableWidth':_0x2cb2b2,'columnWidths':_0x59d219}),_0x1fa795['markBlockFormat'](_0x3bd400,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd4fc37,'columnWidths':_0x351b83}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4443b4){if('formatBlock'!=_0x4443b4['type']&&'formatInline'!=_0x4443b4['type'])return;const {data:_0x4eacb9}=_0x4443b4;if(_0x4eacb9&&'resizeTable'===_0x4eacb9['formatGroupId']){const _0x200728='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x200728)};}}}class Ct extends _0x2c20e0{['afterInit'](){const _0x522607=this['editor'];_0x522607['plugins']['has']('Template')&&_0x522607['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2c20e0{['afterInit'](){const _0x562ebe=this['editor'];if(!_0x562ebe['commands']['get']('insertTableOfContents'))return;_0x562ebe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36ab75=_0x562ebe['plugins']['get']('TrackChangesEditing'),_0x513cb6=_0x562ebe['locale'];_0x36ab75['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30444f=>o(_0x513cb6,'ELEMENT_TABLE_OF_CONTENTS',_0x30444f));}}class Dt extends _0x2c20e0{['afterInit'](){const _0x11a5ab=this['editor'];if(!_0x11a5ab['plugins']['has']('Title'))return;const _0x6f228a=_0x11a5ab['plugins']['get']('TrackChangesEditing');_0x6f228a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x11a5ab['locale'],'ELEMENT_TITLE')),_0x11a5ab['model']['document']['registerPostFixer'](_0x3acf77=>{let _0x2d4ca2=!0x1;const _0x2a2fa1=Array['from'](_0x11a5ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ae8e7,data:_0x4bade0}of _0x2a2fa1){const {group:_0x147747}=_0x6f228a['_splitMarkerName'](_0x1ae8e7);if('suggestion'!==_0x147747||!_0x4bade0['newRange'])continue;const _0x3f16c6=_0x4bade0['newRange'],_0x1e60a5=_0x3f16c6['end']['nodeBefore'];if(!_0x1e60a5||!_0x1e60a5['is']('element','title-content'))continue;if(!_0x3f16c6['start']['isTouching'](_0x3f16c6['end']))continue;const _0x164a16=_0x11a5ab['model']['schema']['getNearestSelectionRange'](_0x3f16c6['end'],'forward');if(_0x164a16&&_0x164a16['isCollapsed']){const _0x440df9=_0x3acf77['createRange'](_0x3f16c6['start'],_0x164a16['start']);_0x440df9['isEqual'](_0x3f16c6)||(_0x3acf77['updateMarker'](_0x1ae8e7,{'range':_0x440df9}),_0x2d4ca2=!0x0);}_0x2d4ca2||(_0x3acf77['removeMarker'](_0x1ae8e7),_0x2d4ca2=!0x0);}return _0x2d4ca2;});}}class Nt extends _0x2c20e0{['afterInit'](){const _0x5ed58b=this['editor'],_0x189e43=_0x5ed58b['plugins']['get']('TrackChangesEditing');_0x5ed58b['plugins']['has']('UndoEditing')&&(_0x189e43['enableCommand']('undo'),_0x189e43['enableCommand']('redo'));}}class Mt extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x3ba15e=this['editor'];if(!_0x3ba15e['plugins']['has']('TableCaptionEditing'))return;_0x3ba15e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2c20e0{['tableProperties'];['tableCellProperties'];constructor(_0x2f0b2c){super(_0x2f0b2c),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 _0x341e1d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c079f of this['tableProperties'])_0x341e1d['enableCommand'](_0x3c079f,(_0x133cfc,_0x4a895b)=>{const _0x320ea3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c079f,[_0x320ea3],this['tableProperties'],'tableProperties',_0x133cfc,_0x4a895b);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9d9f64,_0x1d14ef)=>this['handleDiscardAction'](this['tableProperties'],_0x9d9f64,_0x1d14ef)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10e7d9 of this['tableCellProperties'])_0x341e1d['enableCommand'](_0x10e7d9,(_0xdf16ff,_0xa84401)=>{const _0x132881=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10e7d9,_0x132881,this['tableCellProperties'],'tableCellProperties',_0xdf16ff,_0xa84401);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34ac49,_0x189b94)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34ac49,_0x189b94)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x341e1d['descriptionFactory']['registerDescriptionCallback'](_0x579666=>this['handleSuggestionDescription'](_0x579666));}['_handlePropertyChange'](_0x4d6b44,_0x2a79c1,_0x53abd4,_0x54cec5,_0x512aed,_0x5b5cb9){const _0x5042c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b5cb9['batch'],()=>{for(const _0x41959f of _0x2a79c1){if(this['_getSuggestion'](_0x41959f,_0x54cec5))_0x512aed(_0x5b5cb9);else{const _0x238dfb={};for(const _0x3fc8cf of _0x53abd4){const _0x43ebe8=_0x41959f['getAttribute'](_0x3fc8cf);void 0x0!==_0x43ebe8&&(_0x238dfb[_0x3fc8cf]=_0x43ebe8);}_0x512aed(_0x5b5cb9),_0x5042c0['markBlockFormat'](_0x41959f,{'commandParams':[_0x238dfb]},[],_0x54cec5);}}});}['handleDiscardAction'](_0x17f28d,_0x133685,_0x3c963a){const _0x25774f=_0x133685[0x0]['start']['nodeAfter'],_0x2efd33=_0x3c963a['commandParams'][0x0];this['editor']['model']['change'](_0xec9dc8=>{for(const _0x8e7caf of _0x17f28d)void 0x0!==_0x2efd33[_0x8e7caf]?_0xec9dc8['setAttribute'](_0x8e7caf,_0x2efd33[_0x8e7caf],_0x25774f):_0xec9dc8['removeAttribute'](_0x8e7caf,_0x25774f);});}['handleSuggestionDescription'](_0x1e4ec8){if(_0x1e4ec8['data'])switch(_0x1e4ec8['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'](_0x252b57,_0xbfd33f){const _0x56717b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x236173 of _0x56717b['getSuggestions']({'skipNotAttached':!0x0})){const _0x216369=_0x236173['getContainedElement']();if(_0x236173['subType']===_0xbfd33f&&_0x216369===_0x252b57)return _0x236173;}return null;}}const m='$elementName';class p extends _0x2c20e0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x18293d,_0x4cb717,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(_0x56e55e){function _0x426320(_0x3d6ef6){return _0x3d6ef6['map'](_0x707719=>String['fromCharCode'](_0x707719))['join']('');}super(_0x56e55e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30d0b2,_0x1589a1,_0x153ad2,_0x69fcaa)=>{this['_model']['change'](()=>{for(const _0x1a06c2 of[..._0x69fcaa,..._0x153ad2])this['_model']['markers']['has'](_0x1a06c2)&&_0x56e55e['editing']['reconvertMarker'](_0x1a06c2);});}),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']=_0x56e55e['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(),_0x56e55e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56e55e['config']['get']('trackChanges.trackFormatChanges'),_0x56e55e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56e55e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x56e55e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x426320([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x426320([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x30]);}['init'](){const _0x36a405=this['editor'],_0x416d7f=(_0x4bfb55,_0x11186d)=>{if('attribute'!=_0x4bfb55)return'ck-suggestion-marker-'+_0x4bfb55;const _0x5dd15f=_0x11186d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5dd15f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36a405['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b0ab2=>{const {id:_0x473f2b,type:_0x1209cd,subType:_0x2292cf}=this['_splitMarkerName'](_0x5b0ab2['markerName']),_0x3ff570=['ck-suggestion-marker',_0x416d7f(_0x1209cd,_0x2292cf)];let _0x2041f1=0xbb8;return this['activeMarkers']['includes'](_0x5b0ab2['markerName'])&&(_0x3ff570['push']('ck-suggestion-marker--active'),_0x2041f1=0xbc2),'deletion'==_0x1209cd&&(_0x2041f1+=0x5),{'classes':_0x3ff570,'attributes':{'data-suggestion':_0x473f2b},'priority':_0x2041f1};}}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xfda3d6=>{_0xfda3d6['on']('addMarker:suggestion',(_0x3512c0,_0x24fb9e,_0x537a5e)=>{if(!_0x537a5e['options']['showSuggestionHighlights'])return;const _0x19f22a=_0x24fb9e['item'];if(!_0x19f22a)return;const _0x1dd0d3=_0x537a5e['mapper']['toViewElement'](_0x19f22a);_0x36a405['model']['schema']['isObject'](_0x19f22a)&&_0x1dd0d3&&!_0x1dd0d3['getCustomProperty']('widget')&&_0x1dd0d3['is']('containerElement')&&_0x375e50(_0x1dd0d3,_0x537a5e['writer']);},{'priority':'high'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x421083,_0x538ae0)=>{if(!_0x538ae0['options']['showSuggestionHighlights'])return null;const {type:_0xdb7bfc,subType:_0xe549ad}=this['_splitMarkerName'](_0x421083['markerName']);return{'classes':['ck-suggestion-marker',_0x416d7f(_0xdb7bfc,_0xe549ad)],'priority':0xbb8};}});const _0x3e7dab=({showActiveMarkers:_0x47dce4=!0x0,isAttributeSuggestion:_0x3780f5=!0x1}={})=>(_0x168273,_0x3a4004,_0x593682)=>{if(!_0x3a4004['item'])return;const {id:_0x41b696}=this['_splitMarkerName'](_0x3a4004['markerName']);if(_0x3780f5){const _0x38b25c=this['_suggestions']['get'](_0x41b696),_0x46029f=this['_getAttributeKey'](_0x38b25c);if(!this['_isBlockAttribute'](_0x46029f))return;}if(_0x3a4004['item']['is']('selection'))return void _0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);const _0x657b8f=_0x593682['mapper']['toViewElement'](_0x3a4004['item']);if(_0x3a4004['item']['is']('element')&&_0x36a405['model']['schema']['isBlock'](_0x3a4004['item'])&&!_0x657b8f['getCustomProperty']('addHighlight')){_0x593682['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x657b8f),_0x593682['writer']['setAttribute']('data-suggestion',_0x41b696,_0x657b8f),_0x593682['mapper']['bindElementToMarker'](_0x657b8f,_0x3a4004['markerName']),_0x47dce4&&(this['activeMarkers']['includes'](_0x3a4004['markerName'])?_0x593682['writer']['addClass']('ck-suggestion-marker--active',_0x657b8f):_0x593682['writer']['removeClass']('ck-suggestion-marker--active',_0x657b8f));for(const _0x162aa2 of _0x36a405['model']['createRangeIn'](_0x3a4004['item'])['getItems']())_0x593682['consumable']['consume'](_0x162aa2,_0x168273['name']);_0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);}};_0x36a405['conversion']['for']('dataDowncast')['add'](_0x4b7643=>{_0x4b7643['on']('addMarker:suggestion:formatBlock',(_0x525f7d,_0x1d0b4e,_0x43b575)=>{_0x43b575['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1})(_0x525f7d,_0x1d0b4e,_0x43b575);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xc42964=>{_0xc42964['on']('addMarker:suggestion:attribute',(_0x5808b8,_0x5f5144,_0x491f96)=>{_0x491f96['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5808b8,_0x5f5144,_0x491f96);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f6960,_0x286e0c)=>_0x286e0c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f6960['substr'](0xb)}}),_0x36a405['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x588cdf,{writer:_0x3f040e})=>{let _0x73cbc2='suggestion:'+_0x588cdf['getAttribute']('suggestion-type')+':'+_0x588cdf['getAttribute']('id');return _0x588cdf['getAttribute']('marker-count')&&(_0x73cbc2+=':'+_0x588cdf['getAttribute']('marker-count')),_0x3f040e['createElement']('$marker',{'data-name':_0x73cbc2});}}),_0x36a405['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x1b5a2c=>{_0x1b5a2c['on']('addMarker:suggestion:formatBlock',_0x3e7dab(),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x4d4f03=>{_0x4d4f03['on']('addMarker:suggestion:attribute',_0x3e7dab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x529aed=>{_0x529aed['on']('removeMarker:suggestion:formatBlock',(_0x384c15,_0x47be2d,_0x5b7ea7)=>{const _0x23d45f=_0x5b7ea7['mapper']['markerNameToElements'](_0x47be2d['markerName']);if(_0x23d45f){for(const _0x5c8095 of _0x23d45f)_0x5c8095['getCustomProperty']('addHighlight')||(_0x5b7ea7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c8095),_0x5b7ea7['writer']['removeAttribute']('data-suggestion',_0x5c8095),_0x5b7ea7['mapper']['unbindElementFromMarkerName'](_0x5c8095,_0x47be2d['markerName']));}},{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x44cd9e=>{_0x44cd9e['on']('removeMarker:suggestion:attribute',(_0x26d0b7,_0x475c5e,_0x117099)=>{const _0x1887d4=_0x117099['mapper']['markerNameToElements'](_0x475c5e['markerName']);if(!_0x1887d4)return;const {id:_0xaa5d58}=this['_splitMarkerName'](_0x475c5e['markerName']),_0x4e0b6d=this['_suggestions']['get'](_0xaa5d58),_0x823e9a=this['_getAttributeKey'](_0x4e0b6d);if(this['_isBlockAttribute'](_0x823e9a)){for(const _0x477f45 of _0x1887d4)_0x477f45['getCustomProperty']('addHighlight')||(_0x117099['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x477f45),_0x117099['writer']['removeAttribute']('data-suggestion',_0x477f45),_0x117099['mapper']['unbindElementFromMarkerName'](_0x477f45,_0x475c5e['markerName']));}},{'priority':'high'});}),_0x36a405['model']['document']['registerPostFixer'](_0x9e7b91=>{let _0x2fcbc3=!0x1;const _0x13b512=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']()),_0x23c79a=new Set();for(const {name:_0x241408,data:_0x52c43a}of _0x13b512){const {group:_0x8c492d,type:_0x33d614,subType:_0x13c038,id:_0x3de30d}=this['_splitMarkerName'](_0x241408);if('suggestion'!==_0x8c492d)continue;const _0x5d39fe=this['_suggestions']['get'](_0x3de30d);if(null!=_0x52c43a['newRange']){'formatInline'==_0x33d614&&(_0x2fcbc3=_0x2fcbc3||Et(_0x52c43a['newRange'],_0x241408,_0x9e7b91,_0x36a405['model']['schema']));const _0x3843f6='attribute'==_0x33d614&&this['_isBlockAttribute'](_0x13c038['split']('|')[0x0]);if(_0x52c43a['newRange']['isCollapsed']||'$graveyard'==_0x52c43a['newRange']['root']['rootName']||'formatBlock'==_0x33d614&&!Ut(_0x52c43a['newRange'])||_0x3843f6&&!Ut(_0x52c43a['newRange'])||'deletion'==_0x33d614&&!(!Tt(_0x2c8647=_0x52c43a['newRange'])&&!function(_0x5c7c1c){return _0x5c7c1c['start']['parent']==_0x5c7c1c['end']['nodeBefore']&&_0x5c7c1c['start']['isAtEnd'];}(_0x2c8647)))_0x9e7b91['removeMarker'](_0x241408),_0x2fcbc3=!0x0;else{if(!_0x5d39fe||!_0x5d39fe['isInContent'])continue;_0x23c79a['add'](_0x5d39fe);}}}var _0x2c8647;return _0x23c79a['size']>0x0&&(_0x2fcbc3=!!this['_joinWithAdjacentSuggestions'](_0x23c79a)||_0x2fcbc3),_0x2fcbc3;}),_0x36a405['model']['document']['registerPostFixer'](_0x5d60ef=>{let _0x3036a3=!0x1;for(const _0x1abe07 of _0x36a405['model']['document']['differ']['getChanges']())if('insert'==_0x1abe07['type'])for(const _0x492a9f of this['_suggestions']['values']()){if(_0x492a9f['isMultiRange']||!_0x492a9f['isInContent'])continue;const _0x165614='formatBlock'==_0x492a9f['type'],_0x1a9ad9=this['_getAttributeKey'](_0x492a9f),_0x336253=_0x1a9ad9&&this['_isBlockAttribute'](_0x1a9ad9);if(!_0x165614&&!_0x336253)continue;const _0xb4f157=_0x492a9f['getFirstRange']();if(_0xb4f157['start']['parent']!=_0xb4f157['end']['parent']&&!_0xb4f157['end']['isAtEnd']){const _0x49a8c0=_0x36a405['model']['createPositionAt'](_0xb4f157['start']['nodeAfter'],'end'),_0x8806ce=_0x36a405['model']['createRange'](_0xb4f157['start'],_0x49a8c0);_0x5d60ef['updateMarker'](_0x492a9f['getFirstMarker'](),{'range':_0x8806ce}),_0x3036a3=!0x0;}}return _0x3036a3;}),_0x36a405['model']['document']['registerPostFixer'](_0x4a1f68=>this['_processAttributeChanges'](_0x4a1f68)),_0x36a405['model']['document']['registerPostFixer'](_0x4f146e=>!_0x4f146e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f146e)),_0x36a405['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36a405['model']['document']['on']('change:data',(_0x32c5e1,_0xbca683)=>{if(!_0xbca683['isLocal']||_0xbca683['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ac893=_0x36a405['model']['document']['differ']['getChanges']();if(0x0==_0x4ac893['length'])return;const _0x147891=[],_0x16b3b0=_0x4ac893['filter'](_0x1e9b54=>'attribute'==_0x1e9b54['type']),_0x11eb39=_0x4ac893['filter'](_0x325e29=>'insert'==_0x325e29['type']&&'$text'!=_0x325e29['name']);for(const _0x1d4a82 of _0x16b3b0)this['_isRegisteredAttribute'](_0x1d4a82['attributeKey'])&&_0x147891['push']({'key':_0x1d4a82['attributeKey'],'newValue':_0x1d4a82['attributeNewValue'],'oldValue':_0x1d4a82['attributeOldValue'],'range':Ot(_0x1d4a82['range'],_0x36a405['model'])});for(const _0x389dac of _0x11eb39){if('rename'!=_0x389dac['action']&&'refresh'!=_0x389dac['action'])continue;const _0x6823d4=Gt(_0x389dac['position']['nodeAfter'],_0x36a405['model']),_0x22b53f=_0x389dac['before'];'rename'==_0x389dac['action']&&_0x147891['push']({'key':m,'newValue':_0x389dac['name'],'oldValue':_0x22b53f['name'],'range':_0x6823d4});for(const [_0x5e3a1d,_0x238b8a]of _0x22b53f['attributes']){if(!this['_isRegisteredAttribute'](_0x5e3a1d))continue;const _0xbb911a=_0x389dac['attributes']['get'](_0x5e3a1d);_0x238b8a!==_0xbb911a&&_0x147891['push']({'key':_0x5e3a1d,'newValue':_0xbb911a,'oldValue':_0x238b8a,'range':_0x6823d4});}for(const [_0x189ed3,_0xae35c3]of _0x389dac['attributes'])this['_isRegisteredAttribute'](_0x189ed3)&&(_0x22b53f['attributes']['has'](_0x189ed3)||_0x147891['push']({'key':_0x189ed3,'newValue':_0xae35c3,'oldValue':null,'range':_0x6823d4}));}0x0!=_0x147891['length']&&_0x36a405['model']['enqueueChange'](_0xbca683,_0x5210ff=>{const _0x3a28ab=_0xe5f9d9();for(const {range:_0x25c8d9,key:_0x32a2cd,oldValue:_0xc43413,newValue:_0x26c642}of _0x147891)this['markAttributeChange'](_0x25c8d9,_0x32a2cd,_0xc43413,_0x26c642,{'groupId':_0x3a28ab});this['_reduceExistingSuggestions'](_0x5210ff,_0x147891);});},{'priority':'lowest'}),_0x36a405['model']['markers']['on']('update:suggestion',(_0x33d89d,_0x58ebfc,_0x3e0024)=>{if(null==_0x3e0024){const {id:_0x2392a5}=this['_splitMarkerName'](_0x58ebfc['name']),_0x2289c6=this['_suggestions']['get'](_0x2392a5);_0x2289c6&&_0x2289c6['addMarkerName'](_0x58ebfc['name']);}}),_0x36a405['model']['document']['on']('change:data',()=>{const _0xf89928=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd4c2dc=>'suggestion'===this['_splitMarkerName'](_0xd4c2dc['name'])['group']);if(0x0===_0xf89928['length'])return;_0xf89928['sort']((_0x9fc41e,_0x1aae6d)=>{const _0x2d5624=_0x9fc41e['data']['oldRange'],_0x103f43=_0x1aae6d['data']['oldRange'];return null===_0x2d5624&&null===_0x103f43?0x0:null===_0x2d5624&&null!==_0x103f43?-0x1:null!==_0x2d5624&&null===_0x103f43?0x1:_0x2d5624['start']['isBefore'](_0x103f43['start'])?-0x1:0x1;});const _0x3d08f7=new Set(),_0x313f7b=new Set();for(const {name:_0x11056f,data:_0xf63509}of _0xf89928){const {id:_0x4f9169}=this['_splitMarkerName'](_0x11056f);if(null===_0xf63509['oldRange']){const _0x23341d=this['_handleNewSuggestionMarker'](_0x11056f);_0x313f7b['add'](_0x23341d);}else{const _0x4a94ed=this['_suggestions']['get'](_0x4f9169);null!==_0xf63509['newRange']||_0x4a94ed['isInContent']?(_0x3d08f7['add'](_0x4a94ed['head']),_0x313f7b['add'](_0x4a94ed)):this['_removeSuggestion'](_0x4a94ed);}}_0x313f7b['size']>0x0&&this['_refreshSuggestionsChain'](_0x313f7b);for(const _0x1c1312 of _0x3d08f7)this['fire']('suggestionChanged',_0x1c1312);}),_0x36a405['model']['on']('applyOperation',(_0x56925a,_0x2377c8)=>{const _0xe3a7ce=_0x2377c8[0x0];if(!this['_suggestions']['size'])return;if(!_0xe3a7ce['isDocumentOperation'])return;if(_0xe3a7ce['batch']['isUndo']||!_0xe3a7ce['batch']['isLocal'])return;let _0x593982,_0x460dbb;switch(_0xe3a7ce['type']){case'insert':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['position']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;case'split':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['splitPosition']),_0x460dbb=_0x36a405['model']['createPositionAt'](_0xe3a7ce['moveTargetPosition']);break;case'move':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['targetPosition']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;default:return;}const _0x57a58f=_0x36a405['model']['createRange'](_0x593982,_0x460dbb);_0x36a405['model']['change'](()=>{for(const {suggestion:_0x2b5b4b,meta:_0x53b8fd}of this['_findSuggestions'](_0x57a58f)){if(_0x2b5b4b['isMultiRange'])continue;if('formatInline'==_0x2b5b4b['type'])continue;const _0x20d584=this['_getAttributeKey'](_0x2b5b4b);if(_0x20d584&&this['_isBlockAttribute'](_0x20d584)&&'split'!=_0xe3a7ce['type'])continue;const _0x3abcd4=_0x2b5b4b['data']&&_0x2b5b4b['data']['multipleBlocks'];('formatBlock'!=_0x2b5b4b['type']||'split'==_0xe3a7ce['type']&&!_0x3abcd4)&&(_0x53b8fd['containsRangeInObject']||'insertion'==_0x2b5b4b['type']&&_0x53b8fd['isOwn']||_0x2b5b4b['getFirstRange']()['containsRange'](_0x57a58f)&&this['_breakSuggestionMarker'](_0x2b5b4b,_0x593982,_0x460dbb));}});},{'priority':'lowest'}),_0x36a405['model']['on']('deleteContent',(_0x5ddc7f,_0x55a098)=>{const _0x46bb3f=_0x55a098[0x0],_0x3883c2=_0x55a098[0x1];if(_0x3883c2&&_0x3883c2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46bb3f['isCollapsed'])return;const _0x5895e5=_0x36a405['model']['schema'],{start:_0x27c0b8,end:_0x525c09}=_0x46bb3f['getFirstRange'](),_0x5f03b2=_0x27c0b8['nodeAfter']&&_0x5895e5['isLimit'](_0x27c0b8['nodeAfter'])?null:_0x5895e5['getNearestSelectionRange'](_0x27c0b8,'forward'),_0x175742=_0x525c09['nodeBefore']&&_0x5895e5['isLimit'](_0x525c09['nodeBefore'])?null:_0x5895e5['getNearestSelectionRange'](_0x525c09,'backward'),_0x3d0519=_0x36a405['model']['createRange'](_0x5f03b2?_0x5f03b2['start']:_0x27c0b8,_0x175742?_0x175742['end']:_0x525c09);_0x36a405['model']['change'](_0x551465=>{this['markDeletion'](_0x3d0519);const _0x239a2d=_0x36a405['model']['schema']['getNearestSelectionRange'](_0x3d0519['start']);_0x46bb3f['is']('documentSelection')?_0x551465['setSelection'](_0x239a2d):_0x46bb3f['setTo'](_0x239a2d);}),_0x5ddc7f['stop']();},{'priority':_0x452690['normal']+0xa}),_0x36a405['model']['on']('insertContent',(_0x1a3c47,_0x16ced4)=>{const _0x3933a2=_0x16ced4[_0x16ced4['length']-0x1];_0x3933a2&&_0x3933a2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36a405['model']['change'](()=>{let _0x2d35cc=_0x36a405['model']['insertContent'](_0x16ced4[0x0],_0x16ced4[0x1],_0x16ced4[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d35cc)return;_0x1a3c47['return']=_0x2d35cc['clone']();const _0x3cbe33=_0x2d35cc['end']['nodeBefore'],_0x8cb556=_0x36a405['model']['schema'];_0x3cbe33&&_0x8cb556['isBlock'](_0x3cbe33)&&!_0x8cb556['isObject'](_0x3cbe33)&&(_0x2d35cc=_0x36a405['model']['createRange'](_0x2d35cc['start'],_0x36a405['model']['createPositionAt'](_0x3cbe33,'end'))),this['markInsertion'](_0x2d35cc);}),_0x1a3c47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x43f28a=new $(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('acceptSuggestion',_0x43f28a),this['enableCommand']('acceptSuggestion');const _0x56779e=new B(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('discardSuggestion',_0x56779e),this['enableCommand']('discardSuggestion'),_0x36a405['commands']['add']('acceptAllSuggestions',new x(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36a405['commands']['add']('discardAllSuggestions',new x(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36a405['commands']['add']('acceptSelectedSuggestions',new R(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36a405['commands']['add']('discardSelectedSuggestions',new R(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b038d=_0x36a405['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b038d,'addComment',(_0x17ba96,{threadId:_0x26467e})=>{const _0x3cc4b8=this['_suggestions']['get'](_0x26467e);_0x3cc4b8&&_0x3cc4b8['commentThread']&&0x1===_0x3cc4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x26467e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b038d,'removeComment',(_0x4bb99e,{threadId:_0x4adcae})=>{const _0x534be0=this['_suggestions']['get'](_0x4adcae);_0x534be0&&_0x534be0['commentThread']&&!_0x534be0['commentThread']['length']&&this['_updateSuggestionData'](_0x4adcae,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x332b14){if(this['_adapter'])throw new _0x194952('track-changes-adapter-already-set',this);this['_adapter']=_0x332b14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e07c0=!0x1,toJSON:_0x24fbc1=!0x1}={}){const _0xf68207=[];for(const _0x262f99 of this['_suggestions']['values']())_0x5e07c0&&!_0x262f99['isInContent']||_0xf68207['push'](_0x262f99);return _0x24fbc1?_0xf68207['map'](_0x60443c=>_0x60443c['toJSON']()):_0xf68207;}['getSuggestion'](_0x17bd1e){const _0x4cb615=this['_suggestions']['get'](_0x17bd1e);if(!_0x4cb615)throw new _0x194952('track-changes-suggestion-not-found',this);return _0x4cb615;}['hasSuggestion'](_0x1cd005){return this['_suggestions']['has'](_0x1cd005);}['addSuggestionData'](_0x310b1f){const {authorId:_0x4bd7c9,id:_0x51e83c,attributes:_0x6dc49d}=_0x310b1f,[_0x37e57d,_0x505142]=_0x310b1f['type']['split'](':'),_0x3d3d8d=this['_suggestions']['get'](_0x51e83c)||this['_createSuggestion'](_0x37e57d,_0x505142,_0x51e83c,_0x4bd7c9,_0x6dc49d);if(this['_addThreadToSuggestion'](_0x3d3d8d),this['_checkSuggestionCorrectness'](_0x3d3d8d,_0x37e57d,_0x505142||null,_0x4bd7c9),_0x3d3d8d['createdAt']=_0x310b1f['createdAt'],_0x3d3d8d['_isDataLoaded']=!0x0,_0x6dc49d&&_0x6dc49d['@external']){const _0x1ac97d=_0x6dc49d['@external'],_0x4bcba9=this['_getExternalAuthor'](_0x1ac97d['authorName']);_0x3d3d8d['authoredAt']=_0x1ac97d['createdAt'],_0x3d3d8d['author']=_0x4bcba9,_0x3d3d8d['isExternal']=!0x0;}else _0x3d3d8d['authoredAt']=_0x310b1f['createdAt'];switch(_0x310b1f['data']&&(_0x3d3d8d['data']=_0x310b1f['data']),_0x310b1f['attributes']&&(_0x3d3d8d['attributes']=_0x310b1f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d3d8d['_saved']=!0x0),this['_suggestionState']['get'](_0x3d3d8d)){case'notReady':this['_suggestionState']['set'](_0x3d3d8d,'dataReady');break;case'markerReady':_0x3d3d8d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d3d8d])),this['_refreshSuggestionsChain'](new Set([_0x3d3d8d])),this['_suggestionState']['set'](_0x3d3d8d,'ready'),this['fire']('suggestionLoaded',_0x3d3d8d)):this['_suggestionState']['set'](_0x3d3d8d,'removed');}return _0x3d3d8d;}['acceptSuggestion'](_0x5c3df3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52eb36 of _0x5c3df3['getAllAdjacentSuggestions']())_0x52eb36['accept']();});});}['discardSuggestion'](_0x1b5c5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x256201 of _0x1b5c5e['getAllAdjacentSuggestions']())_0x256201['discard']();});});}['enableCommand'](_0x153749,_0x550da0){const _0x11b9d5=this['editor']['commands']['get'](_0x153749);if(!_0x11b9d5)throw new _0x194952('track-changes-command-not-found',this,{'commandName':_0x153749});if(this['_enabledCommands']['has'](_0x11b9d5))throw new _0x194952('track-changes-enable-command-twice',this,{'commandName':_0x153749});this['_enabledCommands']['add'](_0x11b9d5),_0x550da0&&_0x11b9d5['on']('execute',(_0x41c80a,_0xc727cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc727cb['length']>0x0&&_0xc727cb[_0xc727cb['length']-0x1]&&_0xc727cb[_0xc727cb['length']-0x1]['forceDefaultExecution']?_0xc727cb['pop']():(_0x41c80a['return']=_0x550da0((..._0x1683b5)=>_0x11b9d5['execute'](..._0x1683b5,{'forceDefaultExecution':!0x0}),..._0xc727cb),_0x41c80a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25ee34){let _0x4dd56e,_0x58c6d2;const _0x22cad3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4dd56e=_0x25ee34();}catch(_0x282c7e){_0x58c6d2=_0x282c7e;}return _0x22cad3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58c6d2&&_0x194952['rethrowUnexpectedError'](_0x58c6d2,this),_0x4dd56e;}['markInsertion'](_0x1fd38a,_0x1346f4=null,_0x1086b0={}){if(_0x1fd38a['isCollapsed'])return null;const _0x4412cf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x556204,meta:_0x12cf1e}of this['_findSuggestions'](_0x1fd38a,'insertion'))if(_0x12cf1e['isOwn']){if(!_0x12cf1e['isNextTo']){if(_0x12cf1e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x556204,_0x1086b0))continue;return _0x556204;}if(Lt(_0x556204,_0x1086b0))return _0x556204;this['_breakSuggestionMarker'](_0x556204,_0x1fd38a['start'],_0x1fd38a['end']);break;}if(_0x1346f4==_0x556204['subType']&&Lt(_0x556204,_0x1086b0)){const _0x56c1de=_0x556204['getFirstRange']();return _0x56c1de['start']['isEqual'](_0x1fd38a['end'])?this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x1fd38a['start'],_0x56c1de['end'])):this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x56c1de['start'],_0x1fd38a['end'])),_0x556204;}}const _0x57de84=_0xe5f9d9(),_0x50f2a6=_0x4412cf['id'],_0x3b2e8e=_0x1346f4?'insertion:'+_0x1346f4:'insertion',_0x41912a=this['_setSuggestionData']({'id':_0x57de84,'type':_0x3b2e8e,'createdAt':new Date(),'authorId':_0x50f2a6,'attributes':_0x1086b0});return this['_addSuggestionMarker'](_0x3b2e8e,_0x57de84,_0x50f2a6,_0x1fd38a),_0x41912a;}['markMultiRangeInsertion'](_0x2bc215,_0x1651cf='multi',_0x5332d4={}){const _0x5557ac=this['editor']['plugins']['get']('Users')['me'],_0x37b077=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1651cf,'join');for(const _0x3f3e7e of this['getSuggestions']())if(_0x3f3e7e['author']['id']==_0x5557ac['id']&&'insertion'==_0x3f3e7e['type']&&_0x3f3e7e['subType']==_0x1651cf&&Lt(_0x3f3e7e,_0x5332d4)&&(_0x37b077(_0x3f3e7e['getRanges'](),_0x2bc215)||_0x37b077(_0x2bc215,_0x3f3e7e['getRanges']()))){for(const _0x1f3f86 of _0x2bc215)_0x3f3e7e['addRange'](_0x1f3f86);return _0x3f3e7e;}for(const {suggestion:_0x6ed798,meta:_0x3d1b15}of this['_findSuggestions'](_0x2bc215,'insertion')){if(!_0x3d1b15['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d1b15['containsRangeInObject'])continue;if(!Lt(_0x6ed798,_0x5332d4))continue;let _0x4c4289=!0x0;for(const _0x37fe6e of _0x6ed798['getRanges']())for(const _0x33da3d of _0x2bc215)if(!_0x37fe6e['containsRange'](_0x33da3d)){_0x4c4289=!0x1;break;}if(_0x4c4289)return _0x6ed798;}const _0x89f620=_0xe5f9d9(),_0x1952c3=_0x5557ac['id'],_0x268d7d='insertion:'+_0x1651cf,_0x410d39=this['_setSuggestionData']({'id':_0x89f620,'type':_0x268d7d,'createdAt':new Date(),'authorId':_0x1952c3,'attributes':_0x5332d4});for(const _0x1405bb of _0x2bc215)this['_addSuggestionMarker'](_0x268d7d,_0x89f620,_0x1952c3,_0x1405bb,u['getMultiRangeId']());return _0x410d39;}['markInlineFormat'](_0x5b96d6,_0x3b1e59,_0x3665cc=null,_0xf3cd3={}){if(_0x3665cc=_0x3665cc||Vt(_0x3b1e59),_0x5b96d6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x901c2d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');return this['forceDefaultExecution'](()=>_0x901c2d([_0x5b96d6],_0x3b1e59,_0xf3cd3)),null;}const _0x243400=this['editor']['plugins']['get']('Users')['me'],_0x11c6ba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23b1af,meta:_0xaa78e7}of this['_findSuggestions'](_0x5b96d6,'insertion'))_0xaa78e7['isOwn']&&!_0xaa78e7['isInsideObject']&&_0x11c6ba['push'](..._0x23b1af['getRanges']());}const _0x4d6c7b=function(_0x3d8bf1,_0x734282){const _0x1a926d=[];for(const _0xd54c1 of _0x734282){const _0x5a188c=_0x3d8bf1['getIntersection'](_0xd54c1);_0x5a188c&&_0x1a926d['push'](_0x5a188c);}return _0x1a926d;}(_0x5b96d6,_0x11c6ba),_0x5adb90=function(_0x43b44d,_0x2ddd10){const _0x7a6df5=[_0x43b44d];for(const _0x5be9ab of _0x2ddd10){let _0x5221d0=0x0;for(;_0x5221d0<_0x7a6df5['length'];){const _0x363a39=_0x7a6df5[_0x5221d0]['getDifference'](_0x5be9ab);_0x7a6df5['splice'](_0x5221d0,0x1,..._0x363a39),_0x5221d0+=_0x363a39['length'];}}return _0x7a6df5;}(_0x5b96d6,_0x11c6ba);_0x4d6c7b['length']&&this['_model']['change'](()=>{for(const _0x5e8e8b of _0x4d6c7b){const _0x3ab3bc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');this['forceDefaultExecution'](()=>_0x3ab3bc([_0x5e8e8b],_0x3b1e59,_0xf3cd3));}});for(const _0x1aafc of _0x5adb90){let _0x361439=null,_0x4051f3=_0x1aafc['start'],_0x2a24f0=_0x1aafc['end'];for(const {suggestion:_0x153cc2,meta:_0x426edc}of this['_findSuggestions'](_0x1aafc,'formatInline')){if(!_0x426edc['isOwn'])continue;if(_0x153cc2['subType']!=_0x3665cc)continue;if(!Lt(_0x153cc2,_0xf3cd3))continue;const _0x140660=_0x153cc2['getFirstRange']();if(_0x140660['containsRange'](_0x1aafc,!0x0))return null;_0x4051f3=_0x4051f3['isBefore'](_0x140660['start'])?_0x4051f3:_0x140660['start'],_0x2a24f0=_0x2a24f0['isAfter'](_0x140660['end'])?_0x2a24f0:_0x140660['end'],_0x361439?_0x140660['start']['isBefore'](_0x361439['getFirstRange']()['start'])?(_0x361439['removeMarkers'](),_0x361439=_0x153cc2):_0x153cc2['removeMarkers']():_0x361439=_0x153cc2;}const _0x7eaf66=this['_model']['createRange'](_0x4051f3,_0x2a24f0);if(_0x361439)this['_setSuggestionRange'](_0x361439,_0x7eaf66);else{const _0xa7786f=_0xe5f9d9(),_0x11bb2d=_0x243400['id'];this['_setSuggestionData']({'id':_0xa7786f,'type':'formatInline:'+_0x3665cc,'data':_0x3b1e59,'createdAt':new Date(),'authorId':_0x11bb2d,'attributes':_0xf3cd3}),this['_addSuggestionMarker']('formatInline:'+_0x3665cc,_0xa7786f,_0x11bb2d,_0x7eaf66);}}return null;}['markBlockFormat'](_0x1fcb0c,_0x487cf1,_0x14950d=[],_0x425e59=null,_0x243ba5={}){_0x487cf1['formatGroupId']||(_0x487cf1['formatGroupId']=_0x487cf1['commandName']),_0x487cf1['multipleBlocks']=_0x1fcb0c['is']('range'),_0x425e59=_0x425e59||Vt(_0x487cf1);const _0x559d9c=_0x14950d['map'](_0x12a6b3=>Gt(_0x12a6b3,this['_model'])),_0x3c8456=_0x1fcb0c['is']('range')?_0x1fcb0c:Gt(_0x1fcb0c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x364e29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x364e29([_0x3c8456],_0x487cf1,_0x243ba5)),null;}_0x559d9c['push'](_0x3c8456);let _0x5cbbc7=!0x0;for(const _0x97a355 of _0x559d9c)if(!this['_rangeIsInLocalUserInsertion'](_0x97a355)){_0x5cbbc7=!0x1;break;}if(_0x5cbbc7&&'always'!==this['_trackFormatChanges']){const _0x2efaa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x2efaa1([_0x3c8456],_0x487cf1,_0x243ba5)),null;}let _0x1b1477=null,_0x1c9357=_0x3c8456['start'],_0x167d6b=_0x3c8456['end'];for(const {suggestion:_0x17deac,meta:_0x568337}of this['_findSuggestions'](_0x3c8456,'formatBlock')){if(!_0x568337['isOwn'])continue;if(_0x568337['isNextTo']||_0x568337['containsRangeInObject']||_0x568337['isInsideObject'])continue;if(_0x17deac['data']['formatGroupId']!=_0x487cf1['formatGroupId'])continue;if(!Lt(_0x17deac,_0x243ba5))continue;const _0x3bc572=_0x17deac['getFirstRange']();if(_0x17deac['subType']==_0x425e59){if(_0x3bc572['containsRange'](_0x3c8456,!0x0))return null;_0x1c9357=_0x1c9357['isBefore'](_0x3bc572['start'])?_0x1c9357:_0x3bc572['start'],_0x167d6b=_0x167d6b['isAfter'](_0x3bc572['end'])?_0x167d6b:_0x3bc572['end'],_0x1b1477?_0x3bc572['start']['isBefore'](_0x1b1477['getFirstRange']()['start'])?(_0x1b1477['removeMarkers'](),_0x1b1477=_0x17deac):_0x17deac['removeMarkers']():_0x1b1477=_0x17deac;}else{const _0x25e0e6=_0x3c8456['getIntersection'](_0x3bc572);this['_cutOutSuggestionMarker'](_0x17deac,_0x25e0e6);}}const _0x286b1b=this['editor']['plugins']['get']('Users')['me'],_0x3256ca=_0xe5f9d9(),_0x531f06=_0x286b1b['id'];if(_0x1b1477)return this['_setSuggestionRange'](_0x1b1477,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x1b1477;{const _0x555012=this['_setSuggestionData']({'id':_0x3256ca,'type':'formatBlock:'+_0x425e59,'data':_0x487cf1,'createdAt':new Date(),'authorId':_0x531f06,'attributes':_0x243ba5});return this['_addSuggestionMarker']('formatBlock:'+_0x425e59,_0x3256ca,_0x531f06,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x555012;}}['markMultiRangeBlockFormat'](_0x29357a,_0x526abb,_0x3ecdeb=[],_0x4849f9=null,_0x1a9f74={}){_0x526abb['formatGroupId']||(_0x526abb['formatGroupId']=_0x526abb['commandName']);const _0x17ffb5=_0x29357a[0x0];_0x526abb['multipleBlocks']=_0x17ffb5['is']('range'),_0x4849f9=_0x4849f9||Vt(_0x526abb);const _0x4c159e=_0x3ecdeb['map'](_0x43399d=>Gt(_0x43399d,this['_model'])),_0x21a1c8=_0x17ffb5['is']('range')?_0x29357a:_0x29357a['map'](_0x4272f0=>Gt(_0x4272f0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2c4f9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x2c4f9c(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}_0x4c159e['push'](..._0x21a1c8);let _0x33d051=!0x0;for(const _0x1cf394 of _0x4c159e)if(!this['_rangeIsInLocalUserInsertion'](_0x1cf394)){_0x33d051=!0x1;break;}if(_0x33d051&&'always'!==this['_trackFormatChanges']){const _0x235db2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x235db2(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}const _0x395ed6=this['editor']['plugins']['get']('Users')['me'];for(const _0x42aaf3 of this['getSuggestions']()){if(_0x42aaf3['author']['id']!=_0x395ed6['id'])continue;if('formatBlock'!=_0x42aaf3['type']||_0x42aaf3['data']['formatGroupId']!=_0x526abb['formatGroupId'])continue;if(!Lt(_0x42aaf3,_0x1a9f74))continue;const _0x5c1050=_0x42aaf3['subType']==_0x4849f9;for(let _0x5f35b0=0x0;_0x5f35b0<_0x21a1c8['length'];_0x5f35b0++){const _0x29bf67=_0x21a1c8[_0x5f35b0];for(const _0x3e4a49 of _0x42aaf3['getMarkers']()){const _0x385f1f=_0x3e4a49['getRange']();if(_0x29bf67['isEqual'](_0x385f1f)){_0x5c1050?(_0x21a1c8['splice'](_0x5f35b0,0x1),_0x5f35b0--):_0x42aaf3['removeMarker'](_0x3e4a49['name']);break;}}}}if(0x0==_0x21a1c8['length'])return null;const _0x5cbd02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'join');for(const _0xeff256 of this['getSuggestions']())if(_0xeff256['author']['id']==_0x395ed6['id']&&'formatBlock'==_0xeff256['type']&&_0xeff256['data']['formatGroupId']==_0x526abb['formatGroupId']&&_0xeff256['subType']==_0x4849f9&&Lt(_0xeff256,_0x1a9f74)&&(_0x5cbd02(_0xeff256['getRanges'](),_0x21a1c8)||_0x5cbd02(_0x21a1c8,_0xeff256['getRanges']()))){for(const _0x2b1316 of _0x21a1c8)_0xeff256['addRange'](_0x2b1316);return _0xeff256;}const _0x3b1f08=_0xe5f9d9(),_0x4cf204=_0x395ed6['id'],_0x1b29e5='formatBlock:'+_0x4849f9,_0x4f0c5e=this['_setSuggestionData']({'id':_0x3b1f08,'type':_0x1b29e5,'data':_0x526abb,'createdAt':new Date(),'authorId':_0x4cf204,'attributes':_0x1a9f74});for(const _0x275bcd of _0x21a1c8)this['_addSuggestionMarker'](_0x1b29e5,_0x3b1f08,_0x4cf204,_0x275bcd,u['getMultiRangeId']());return _0x4f0c5e;}['markDeletion'](_0x1e3105,_0x25b477=null,_0x268065={}){if(_0x1e3105['isCollapsed'])return null;const _0x92f15b=this['editor']['plugins']['get']('Users')['me'],_0x82a5cf=new _0xef9d24(_0x1e3105['start'],_0x1e3105['end']);for(const {suggestion:_0x436a0a,meta:_0x28f226}of this['_findSuggestions'](_0x82a5cf,'insertion'))if(_0x28f226['isOwn']&&!_0x28f226['isNextTo']){if(_0x436a0a['isMultiRange']){const _0x38dd3a=_0x436a0a['getRanges']()['filter'](_0x8007f7=>'$graveyard'!=_0x8007f7['root']['rootName']);_0x38dd3a['every'](_0x327673=>_0x82a5cf['containsRange'](_0x327673,!0x0))&&_0x436a0a['discard']();if(_0x38dd3a['some'](_0x5bcc78=>_0x5bcc78['containsRange'](_0x82a5cf,!0x0))){const _0x3292ed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b477,'accept');return this['forceDefaultExecution'](()=>_0x3292ed([_0x82a5cf],null,_0x268065)),null;}}else{const _0x412a8e=_0x82a5cf['getIntersection'](_0x436a0a['getFirstRange']());null!==_0x412a8e&&_0x436a0a['_onDiscard']([_0x412a8e],null,_0x268065);}}if(_0x82a5cf['detach'](),_0x82a5cf['isCollapsed']||'$graveyard'==_0x82a5cf['root']['rootName'])return null;let _0x1f80b9=null,_0x41eb6d=_0x82a5cf['start'],_0x3fdcef=_0x82a5cf['end'];const _0x4a1861=this['_findSuggestions'](_0x82a5cf,'deletion');for(const {suggestion:_0x5a0797,meta:_0x165a6a}of _0x4a1861){const _0x4fd544=this['_model']['createRange'](_0x41eb6d,_0x3fdcef);if(_0x165a6a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x165a6a['containsRangeInObject']&&!_0x165a6a['isInsideObject'])){if(_0x5a0797['isMultiRange']){if(!Lt(_0x5a0797,_0x268065))continue;let _0x16df6b=!0x0;for(const _0x111914 of _0x5a0797['getRanges']()){if(_0x111914['containsRange'](_0x4fd544,!0x0))return _0x5a0797;_0x4fd544['containsRange'](_0x111914)||(_0x16df6b=!0x1);}_0x16df6b&&_0x5a0797['discard']();}else{const _0x3a267b=_0x5a0797['getFirstRange']();if(_0x3a267b['containsRange'](_0x4fd544,!0x0))return _0x5a0797;if(!Lt(_0x5a0797,_0x268065)){_0x4fd544['containsRange'](_0x3a267b)?_0x5a0797['removeMarkers']():_0x3a267b['containsPosition'](_0x41eb6d)?_0x41eb6d=_0x3a267b['end']:_0x3a267b['containsPosition'](_0x3fdcef)&&(_0x3fdcef=_0x3a267b['start']);continue;}_0x41eb6d=_0x41eb6d['isBefore'](_0x3a267b['start'])?_0x41eb6d:_0x3a267b['start'],_0x3fdcef=_0x3fdcef['isAfter'](_0x3a267b['end'])?_0x3fdcef:_0x3a267b['end'],_0x268065=Object['assign']({},_0x5a0797['attributes']),_0x1f80b9?_0x3a267b['start']['isBefore'](_0x1f80b9['getFirstRange']()['start'])?(_0x1f80b9['removeMarkers'](),_0x1f80b9=_0x5a0797):_0x5a0797['removeMarkers']():_0x1f80b9=_0x5a0797;}}}if(_0x1f80b9)return this['_setSuggestionRange'](_0x1f80b9,this['_model']['createRange'](_0x41eb6d,_0x3fdcef)),_0x1f80b9;{const _0x58ad50=_0xe5f9d9(),_0x46f11b=this['_model']['createRange'](_0x41eb6d,_0x3fdcef),_0x190a95=_0x92f15b['id'],_0x1a4132=_0x25b477?'deletion:'+_0x25b477:'deletion',_0x14a433=this['_setSuggestionData']({'id':_0x58ad50,'type':_0x1a4132,'createdAt':new Date(),'authorId':_0x190a95,'attributes':_0x268065});return this['_addSuggestionMarker'](_0x1a4132,_0x58ad50,_0x190a95,_0x46f11b),_0x14a433;}}['markMultiRangeDeletion'](_0x266d67,_0x596603='multi',_0x2751f3={}){const _0x36cc1c=this['editor']['plugins']['get']('Users')['me'],_0x1d3c9b=_0x266d67['map'](_0x1aff0a=>new _0xef9d24(_0x1aff0a['start'],_0x1aff0a['end'])),_0x2b7eef=new Set();for(const {suggestion:_0x2cd47b,meta:_0x10dd15}of this['_findSuggestions'](_0x1d3c9b,'insertion'))_0x10dd15['isOwn']&&!_0x10dd15['isNextTo']&&_0x2b7eef['add'](_0x2cd47b);for(const _0x3dd1eb of _0x2b7eef)if(_0x3dd1eb['isMultiRange']){const _0x16b47e=_0x3dd1eb['getRanges']();(!_0x3dd1eb['attributes']||!_0x3dd1eb['attributes']['skipNestingCheck'])&&(_0x16b47e['every'](_0xd5605f=>_0x1d3c9b['some'](_0x466fd3=>_0x466fd3['containsRange'](_0xd5605f,!0x0)))&&_0x3dd1eb['discard']());if(_0x1d3c9b['every'](_0x4ff09f=>_0x16b47e['some'](_0x49b164=>_0x49b164['containsRange'](_0x4ff09f,!0x0)))){const _0x3bd5e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x3bd5e5(_0x266d67,null,_0x2751f3)),null;}}else{const _0x450c57=_0x3dd1eb['getFirstRange']();_0x1d3c9b['some'](_0x4a893b=>_0x4a893b['containsRange'](_0x450c57,!0x0))&&_0x3dd1eb['discard']();if(_0x1d3c9b['every'](_0x2993c5=>_0x450c57['containsRange'](_0x2993c5,!0x0))){const _0x44e88f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x44e88f(_0x1d3c9b,null,_0x2751f3)),null;}}const _0x3a995b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'join');let _0x4b771a=null;for(const _0x31e790 of this['getSuggestions']())if(_0x31e790['author']['id']==_0x36cc1c['id']&&_0x31e790['isInContent']&&'deletion'==_0x31e790['type']&&_0x31e790['subType']==_0x596603&&Lt(_0x31e790,_0x2751f3)&&(_0x3a995b(_0x31e790['getRanges'](),_0x1d3c9b)||_0x3a995b(_0x1d3c9b,_0x31e790['getRanges']()))){if(_0x4b771a){if(_0x31e790['commentThread']&&_0x31e790['commentThread']['length'])continue;for(const _0x45f05d of _0x31e790['getRanges']())_0x4b771a['isIntersectingWithRange'](_0x45f05d)||_0x4b771a['addRange'](_0x45f05d);_0x31e790['removeMarkers']();}else{_0x4b771a=_0x31e790;for(const _0x2ad8b7 of _0x1d3c9b)_0x31e790['isIntersectingWithRange'](_0x2ad8b7)||_0x31e790['addRange'](_0x2ad8b7);}}if(_0x4b771a)return _0x4b771a;_0x2b7eef['clear']();for(const {suggestion:_0x2640bc,meta:_0x1461fa}of this['_findSuggestions'](_0x1d3c9b,'deletion'))_0x1461fa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1461fa['containsRangeInObject']&&!_0x1461fa['isInsideObject'])&&Lt(_0x2640bc,_0x2751f3)&&_0x2b7eef['add'](_0x2640bc);for(const _0x4a6c75 of _0x2b7eef){const _0xc10b76=_0x4a6c75['getRanges']();if(!_0x2751f3||!_0x2751f3['skipNestingCheck']){if(_0x1d3c9b['every'](_0x43d45a=>_0xc10b76['some'](_0x391ed5=>_0x391ed5['containsRange'](_0x43d45a,!0x0))))return _0x4a6c75;}(!_0x4a6c75['attributes']||!_0x4a6c75['attributes']['skipNestingCheck'])&&(_0xc10b76['every'](_0x2fe0c2=>_0x1d3c9b['some'](_0x56d385=>_0x56d385['containsRange'](_0x2fe0c2,!0x0)))&&_0x4a6c75['discard']());}const _0x4595c6=_0xe5f9d9(),_0x3de345=_0x36cc1c['id'],_0x562f55='deletion:'+_0x596603,_0x2de5dc=this['_setSuggestionData']({'id':_0x4595c6,'type':_0x562f55,'createdAt':new Date(),'authorId':_0x3de345,'attributes':_0x2751f3});for(const _0x550efa of _0x1d3c9b)_0x550efa['detach'](),_0x550efa['isCollapsed']||'$graveyard'==_0x550efa['root']['rootName']||this['_addSuggestionMarker'](_0x562f55,_0x4595c6,_0x3de345,_0x550efa,u['getMultiRangeId']());return _0x2de5dc;}['markAttributeChange'](_0x4e638b,_0x4724aa,_0x22027b,_0x4e48e5,_0x583325){if(_0x4e638b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x108c75=this['editor']['plugins']['get']('Users')['me']['id'],_0x19a136=Array['from'](this['_suggestions']['values']())['filter'](_0x3c9b99=>'attribute'==_0x3c9b99['type']&&_0x3c9b99['data']['key']==_0x4724aa&&_0x3c9b99['isIntersectingWithRange'](_0x4e638b));if('default'===this['_trackFormatChanges']){const _0xe40e5d=this['_findSuggestions'](_0x4e638b,'insertion')['filter'](({meta:_0x51abe6})=>_0x51abe6['isOwn']&&!_0x51abe6['isInsideObject']&&!_0x51abe6['isNextTo'])['map'](({suggestion:_0x2274ec})=>_0x2274ec);_0x19a136['unshift'](..._0xe40e5d);}const _0x3017fb=new Map([[_0x4e638b,_0x22027b]]);for(const _0xaaeac9 of _0x19a136){const _0xc66c0f='attribute'==_0xaaeac9['type']?_0xaaeac9['data']['oldValue']:void 0x0,_0x382102=_0xaaeac9['getFirstRange'](),_0x1f4b69=Array['from'](_0x3017fb['keys']())['find'](_0x2c68d2=>_0x2c68d2['isIntersecting'](_0x382102));if(!_0x1f4b69)continue;const _0x572787=_0x1f4b69['getDifference'](_0x382102);this['_isBlockAttribute'](_0x4724aa)&&'insertion'==_0xaaeac9['type']&&0x0!=_0x572787['length']||(_0x3017fb['delete'](_0x1f4b69),_0x572787['forEach'](_0x594071=>{_0x3017fb['set'](_0x594071,_0x22027b);}),'insertion'!=_0xaaeac9['type']&&_0xc66c0f!=_0x4e48e5&&_0x3017fb['set'](_0x1f4b69['getIntersection'](_0x382102),_0xc66c0f));}const _0x138812=[];for(const [_0x509f46,_0x3f5754]of _0x3017fb){const _0x3980cd=_0xe5f9d9(),_0x2172d0={'key':_0x4724aa,'oldValue':_0x3f5754,'newValue':_0x4e48e5};_0x4724aa['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':_0x4724aa});const _0x4d14d6=('attribute:'+(_0x4724aa+'|'+Vt({'newValue':_0x4e48e5})))['substring'](0x0,0x3c),_0x14b7be=this['_setSuggestionData']({'id':_0x3980cd,'type':_0x4d14d6,'data':_0x2172d0,'createdAt':new Date(),'authorId':_0x108c75,'attributes':_0x583325});_0x138812['push'](_0x14b7be),this['_addSuggestionMarker'](_0x4d14d6,_0x3980cd,_0x108c75,_0x509f46);}return _0x138812;}['enableDefaultAttributesIntegration'](_0x3d61f1){this['enableCommand'](_0x3d61f1,(_0x28ecd7,..._0x3c0139)=>{this['_recordAttributeChanges'](()=>{_0x28ecd7(..._0x3c0139);});});}['registerBlockAttribute'](_0x493286){this['_blockAttributeKeys']['add'](_0x493286);}['registerInlineAttribute'](_0x2d2c8d){this['_inlineAttributeKeys']['add'](_0x2d2c8d);}['_getAttributeKey'](_0x5d2e1e){return'attribute'==_0x5d2e1e['type']?_0x5d2e1e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x6bdd75,_0x14f27c){const _0xe1e705=_0x6bdd75['getFirstMarker']();this['_model']['change'](_0x11f6cd=>{_0x11f6cd['updateMarker'](_0xe1e705,{'range':_0x14f27c});});}['_addThreadToSuggestion'](_0x6814d5){const _0x58c987=_0x6814d5['id'],_0x1e1e8b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x58c987)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e1e8b,'threadId':_0x58c987,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x429f2a=this['_commentsRepository']['getCommentThread'](_0x58c987);_0x429f2a['unbind']('isRemovable'),_0x429f2a['isRemovable']=!0x1,_0x6814d5['commentThread']=_0x429f2a;}['_checkSuggestionCorrectness'](_0x1c408a,_0x4d5e99,_0x598715,_0x2b1aed){if(_0x1c408a['type']!=_0x4d5e99||_0x1c408a['subType']!=_0x598715||_0x1c408a['creator']['id']!=_0x2b1aed)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x194952('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x50be61,_0x2c010e){const _0x7e636c=_0x50be61['getFirstRange']();if(_0x2c010e['isEqual'](_0x7e636c))_0x50be61['removeMarkers']();else{if(_0x7e636c['containsRange'](_0x2c010e)){const _0x2f6338=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x2f6338));const _0x4ae8ca=_0xe5f9d9(),_0x17c981=_0x50be61['creator']['id'],_0x282654=_0x50be61['type']+':'+_0x50be61['subType'];this['_setSuggestionData']({'id':_0x4ae8ca,'type':_0x282654,'createdAt':new Date(),'authorId':_0x17c981,'data':_0x50be61['data'],'attributes':_0x50be61['attributes']});const _0x55fde3=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after'),_0x392ace=this['_model']['createRange'](_0x55fde3,_0x7e636c['end']);this['_addSuggestionMarker'](_0x282654,_0x4ae8ca,_0x17c981,_0x392ace);}else{if(_0x7e636c['containsPosition'](_0x2c010e['start'])){const _0x3b58ed=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x3b58ed));}else{const _0x1580f8=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x1580f8,_0x7e636c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53e39f){for(const {suggestion:_0x4231ed,meta:_0x145f43}of this['_findSuggestions'](_0x53e39f,'insertion')){if(!_0x145f43['isOwn'])continue;const _0x46849e=_0x4231ed['getRanges']();for(const _0x4022e2 of _0x46849e)if(!_0x53e39f['getDifference'](_0x4022e2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x596ea4){const _0x846cbe=this['editor']['plugins']['get']('Users')['getUser'](_0x596ea4);if(!_0x846cbe)throw new _0x194952('track-changes-user-not-found',this);return _0x846cbe;}['_getExternalAuthor'](_0x26692e){const _0x71b4eb=this['editor']['plugins']['get']('Users'),_0x499de3=_0x223067('external:'+_0x26692e),_0x259624=_0x71b4eb['getUser'](_0x499de3);return _0x259624||_0x71b4eb['addUser']({'id':_0x499de3,'name':_0x26692e});}['_createSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x52ea49,_0x1a7cb7){const _0x4b1b08=this['_getAuthorFromId'](_0x52ea49),_0x46a03a=this['_suggestionFactory']['buildSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x4b1b08,_0x1a7cb7,_0x37c5a4=>{this['_updateSuggestionData'](_0x564679,{'attributes':_0x37c5a4});const _0xc2b177=this['getSuggestion'](_0x564679);this['_joinWithAdjacentSuggestions'](new Set([_0xc2b177])),this['_refreshSuggestionsChain'](new Set([_0xc2b177]));});return this['listenTo'](_0x46a03a,'accept',()=>{this['_updateSuggestionData'](_0x564679,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x46a03a,'discard',()=>{this['_updateSuggestionData'](_0x564679,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x564679,_0x46a03a),this['_suggestionState']['set'](_0x46a03a,'notReady'),_0x46a03a;}['_splitMarkerName'](_0xfc7757){const _0x41cd92=_0xfc7757['split'](':');return{'group':_0x41cd92[0x0],'type':_0x41cd92[0x1],'subType':_0x41cd92['length']>=0x5?_0x41cd92[0x2]:null,'id':_0x41cd92['length']<0x5?_0x41cd92[0x2]:_0x41cd92[0x3],'authorId':_0x41cd92['length']<0x5?_0x41cd92[0x3]:_0x41cd92[0x4],'markerCount':0x6==_0x41cd92['length']?_0x41cd92[0x5]:null};}['_breakSuggestionMarker'](_0xde87ea,_0x51351e,_0x1c1500){const _0x120fd5=_0xde87ea['getFirstRange'](),_0x7caa1e=_0x120fd5['start'],_0x207b5e=_0x120fd5['end'];this['_setSuggestionRange'](_0xde87ea,this['_model']['createRange'](_0x7caa1e,_0x51351e));const _0x2ee38f=_0xe5f9d9(),_0x5ee561=_0xde87ea['creator']['id'],_0x43fd4d=_0xde87ea['type']+(_0xde87ea['subType']?':'+_0xde87ea['subType']:'');this['_setSuggestionData']({'id':_0x2ee38f,'type':_0x43fd4d,'createdAt':new Date(),'authorId':_0x5ee561,'originalSuggestionId':_0xde87ea['id'],'attributes':_0xde87ea['attributes'],'data':_0xde87ea['data']});const _0x2de433=this['_getAttributeKey'](_0xde87ea);('formatBlock'==_0xde87ea['type']||_0x2de433&&this['_isBlockAttribute'](_0x2de433))&&(_0x1c1500=this['_model']['createPositionBefore'](_0x1c1500['parent'])),this['_addSuggestionMarker'](_0x43fd4d,_0x2ee38f,_0x5ee561,this['_model']['createRange'](_0x1c1500,_0x207b5e));}['_findSuggestions'](_0x2f6427,_0x4aaf86=null){const _0x519f5e=[],_0x1fd65c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f6427)||(_0x2f6427=[_0x2f6427]);for(const _0x2b6cc6 of this['getSuggestions']()){if(!_0x2b6cc6['isInContent'])continue;if(_0x4aaf86&&_0x2b6cc6['type']!=_0x4aaf86)continue;let _0x22e164=!0x1;for(const _0x4d636f of _0x2b6cc6['getRanges']()){for(const _0x1a7303 of _0x2f6427){const _0x479277=_0x1a7303['start']['isEqual'](_0x4d636f['end'])||_0x1a7303['end']['isEqual'](_0x4d636f['start']);if(_0x479277||_0x1a7303['getIntersection'](_0x4d636f)){const _0x430956=_0x1a7303['containsRange'](_0x4d636f)&&Rt(this['_model']['schema'],_0x4d636f['start'],_0x1a7303),_0x37b713=_0x4d636f['containsRange'](_0x1a7303)&&Rt(this['_model']['schema'],_0x1a7303['start'],_0x4d636f);_0x519f5e['push']({'suggestion':_0x2b6cc6,'meta':{'isOwn':_0x1fd65c==_0x2b6cc6['author'],'isNextTo':_0x479277,'isInsideObject':_0x430956,'containsRangeInObject':_0x37b713}}),_0x22e164=!0x0;break;}}if(_0x22e164)break;}}return _0x519f5e;}['_addSuggestionMarker'](_0x112808,_0x58c849,_0x50c5a6,_0x52feea,_0x2a06e2){this['_model']['change'](_0x3c27fb=>{let _0x6e011e='suggestion:'+_0x112808+':'+_0x58c849+':'+_0x50c5a6;_0x2a06e2&&(_0x6e011e=_0x6e011e+':'+_0x2a06e2),_0x3c27fb['addMarker'](_0x6e011e,{'range':_0x52feea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2131d0){const _0x1b4d6e=_0x2131d0['previous'],_0xf099b5=_0x2131d0['next'];_0x2131d0['previous']=null,_0x2131d0['next']=null,null!=_0x1b4d6e&&_0x1b4d6e['next']==_0x2131d0&&(_0x1b4d6e['next']=_0xf099b5),null!=_0xf099b5&&_0xf099b5['previous']==_0x2131d0&&(_0xf099b5['previous']=_0x1b4d6e),'ready'==this['_suggestionState']['get'](_0x2131d0)&&(this['_suggestionState']['set'](_0x2131d0,'removed'),this['fire']('suggestionUnloaded',_0x2131d0,_0x1b4d6e,_0xf099b5));}['_setSuggestionData'](_0x3fd4a6){const _0x2e931e=_0x3fd4a6['id'],_0x5a63f8=this['addSuggestionData'](_0x3fd4a6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x307ac9=this['editor']['plugins']['get']('PendingActions'),_0x4403b1=_0x5a63f8['hasComments'],_0x418a95=_0x5a63f8['subType']?_0x5a63f8['type']+':'+_0x5a63f8['subType']:_0x5a63f8['type'],_0x38378d=this['editor']['locale'],_0x2cf9f7=_0x307ac9['add'](o(_0x38378d,'PENDING_ACTION_SUGGESTION')),_0x92e62={'id':_0x2e931e,'type':_0x418a95,'hasComments':_0x4403b1,'data':_0x3fd4a6['data']||null,'originalSuggestionId':_0x3fd4a6['originalSuggestionId']||null,'attributes':_0x5a63f8['attributes']};this['_adapter']['addSuggestion'](_0x92e62)['then'](_0x1405a1=>{_0x5a63f8['_saved']=!0x0,_0x307ac9['remove'](_0x2cf9f7),_0x1405a1&&_0x1405a1['createdAt']&&(this['_suggestions']['get'](_0x2e931e)['createdAt']=_0x1405a1['createdAt']);})['catch'](_0x369ab9=>{throw _0x442e8e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a63f8['discard']();}),_0x5a63f8['stopListening'](),this['_suggestions']['delete'](_0x5a63f8['id']),this['_suggestionState']['delete'](_0x5a63f8),_0x369ab9;});}return _0x5a63f8;}['_isBlockAttribute'](_0x34a0b1){return this['_blockAttributeKeys']['has'](_0x34a0b1);}['_updateSuggestionData'](_0x325bc4,_0x2cedf0){const _0x102af3=this['editor']['plugins']['get']('PendingActions'),_0x346912=this['getSuggestion'](_0x325bc4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x346912['_saved']){const _0x43cc6c=_0x102af3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x325bc4,_0x2cedf0)['then'](()=>{_0x102af3['remove'](_0x43cc6c);});}else _0x346912['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x325bc4,_0x2cedf0);});}}['_getSuggestionData'](_0x2d78b5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x194952('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78b5);}['_handleNewSuggestionMarker'](_0xe0c99d){const {id:_0x3e9e5d,type:_0x4a5c36,subType:_0x55589c,authorId:_0x3f9d2e}=this['_splitMarkerName'](_0xe0c99d),_0x32a21f=this['_suggestions']['get'](_0x3e9e5d)||this['_createSuggestion'](_0x4a5c36,_0x55589c,_0x3e9e5d,_0x3f9d2e,{});switch(this['_checkSuggestionCorrectness'](_0x32a21f,_0x4a5c36,_0x55589c,_0x3f9d2e),this['_suggestionState']['get'](_0x32a21f)){case'notReady':this['_getSuggestionData'](_0x3e9e5d)['then'](_0x2d3d1c=>{let _0x10ed04=Promise['resolve']();_0x2d3d1c['hasComments']&&(_0x10ed04=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e9e5d})),_0x10ed04['then'](()=>{this['addSuggestionData'](_0x2d3d1c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a21f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e9e5d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a21f,'ready'),this['fire']('suggestionLoaded',_0x32a21f);break;case'ready':this['fire']('suggestionChanged',_0x32a21f);}return _0x32a21f['addMarkerName'](_0xe0c99d),_0x32a21f;}['_refreshSuggestionsChain'](_0x35d926){const _0x3190e0=Array['from'](_0x35d926),_0x56587e=_0x3190e0['filter'](_0x2a5a67=>'attribute'==_0x2a5a67['type']);this['_refreshAttributeSuggestionsChain'](_0x56587e);const _0x25ac76=_0x3190e0['filter'](_0x1d93fc=>!_0x1d93fc['isMultiRange']&&'attribute'!=_0x1d93fc['type']),_0x13634c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b56=>!_0x105b56['isMultiRange']&&'attribute'!=_0x105b56['type']),_0x1ea6d4=_0x13634c['filter'](_0xa8eb62=>!_0x35d926['has'](_0xa8eb62)),_0x5f0827=new Map(_0x13634c['map'](_0x4f7556=>[_0x4f7556,this['_suggestionFactory']['getSuggestionCallback'](_0x4f7556['type'],_0x4f7556['subType'],'chain')])),_0x270d46=new Map(_0x13634c['map'](_0x556ba6=>[_0x556ba6,_0x556ba6['getFirstRange']()])),_0x214ef2=new Set(),_0x30bf95=new Set();for(let _0x362d33=0x0;_0x362d33<_0x25ac76['length'];_0x362d33++)_0x565910(_0x25ac76[_0x362d33],_0x25ac76,_0x362d33+0x1);for(let _0xf4de71=0x0;_0xf4de71<_0x25ac76['length'];_0xf4de71++)_0x565910(_0x25ac76[_0xf4de71],_0x1ea6d4,0x0);const _0x50f0d8=new Set();for(let _0x19e0f5=0x0;_0x19e0f5<_0x25ac76['length'];_0x19e0f5++){const _0x22d350=_0x25ac76[_0x19e0f5];!_0x30bf95['has'](_0x22d350)&&_0x22d350['previous']&&(_0x50f0d8['add'](_0x22d350['previous']),_0x22d350['previous']['next']===_0x22d350&&(_0x22d350['previous']['next']=null),_0x22d350['previous']=null),!_0x214ef2['has'](_0x22d350)&&_0x22d350['next']&&(_0x50f0d8['add'](_0x22d350['next']),_0x22d350['next']['previous']===_0x22d350&&(_0x22d350['next']['previous']=null),_0x22d350['next']=null);}function _0x565910(_0x4140c4,_0xe77cc8,_0x24d438){for(let _0x3dc4f0=_0x24d438;_0x3dc4f0<_0xe77cc8['length'];_0x3dc4f0++){const _0x51f417=_0x11e992(_0x4140c4,_0xe77cc8[_0x3dc4f0]);_0x51f417&&(_0x51f417[0x0]['next']=_0x51f417[0x1],_0x51f417[0x1]['previous']=_0x51f417[0x0],_0x214ef2['add'](_0x51f417[0x0]),_0x30bf95['add'](_0x51f417[0x1]));}}function _0x11e992(_0x437346,_0x440b30){if(_0x437346['author']['id']!==_0x440b30['author']['id'])return null;const _0x592b8c=_0x5f0827['get'](_0x437346)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30));if(!_0x592b8c)return null;return _0x5f0827['get'](_0x440b30)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30))?_0x592b8c[0x1]['commentThread']&&_0x592b8c[0x1]['commentThread']['length']?null:_0x592b8c:null;}_0x50f0d8['size']&&this['_refreshSuggestionsChain'](_0x50f0d8);}['_refreshAttributeSuggestionsChain'](_0x111d87){if(0x0==_0x111d87['length'])return;const _0x457f73=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x391007=>'attribute'==_0x391007['type']&&_0x391007['_isDataLoaded']),_0x25a29b=[],_0x27a5cf=new Map();for(const _0x4bebd0 of _0x457f73){const _0x4ebc4f=_0x223067(_0x4bebd0['attributes']);_0x27a5cf['has'](_0x4ebc4f)||(_0x27a5cf['set'](_0x4ebc4f,_0x25a29b['length']),_0x25a29b['push']([]));const _0x41aa6b=_0x27a5cf['get'](_0x4ebc4f);_0x25a29b[_0x41aa6b]['push'](_0x4bebd0);}!(function(){_0x25a29b['sort']((_0x369893,_0x384502)=>{const _0x23728c=_0x369893[0x0]['createdAt'],_0x59a217=_0x384502[0x0]['createdAt'];return _0x23728c==_0x59a217?_0x369893[0x0]['attributes']['groupId']<_0x384502[0x0]['attributes']['groupId']?-0x1:0x1:_0x23728c<_0x59a217?-0x1:0x1;});for(const _0x12e9c9 of _0x25a29b)_0x12e9c9['sort']((_0x1c434f,_0x4bfab0)=>_0x1c434f['id']<_0x4bfab0['id']?-0x1:0x1);}());for(let _0x20c26f=0x0;_0x20c26f<_0x25a29b['length'];_0x20c26f++){if(0x0==_0x25a29b[_0x20c26f]['length'])continue;const _0x37c917=[];for(let _0x3eab4e=_0x20c26f+0x1;_0x3eab4e<_0x25a29b['length'];_0x3eab4e++)0x0!=_0x25a29b[_0x3eab4e]['length']&&_0x5c6e9a(_0x25a29b[_0x20c26f],_0x25a29b[_0x3eab4e])&&_0x37c917['push'](_0x3eab4e);for(const _0x1e7f6c of _0x37c917)_0x25a29b[_0x20c26f]=_0x25a29b[_0x20c26f]['concat'](_0x25a29b[_0x1e7f6c]),_0x25a29b[_0x1e7f6c]=[];}for(const _0x3ce957 of _0x25a29b)for(let _0x44c121=0x0;_0x44c121<_0x3ce957['length'];_0x44c121++)_0x3ce957[_0x44c121]['next']=_0x3ce957[_0x44c121+0x1]||null;for(const _0x34981f of _0x25a29b)for(let _0x2960ce=0x0;_0x2960ce<_0x34981f['length'];_0x2960ce++)_0x34981f[_0x2960ce]['previous']=_0x34981f[_0x2960ce-0x1]||null;function _0x5c6e9a(_0x2248a3,_0x1769b6){if(_0x2248a3[0x0]['attributes']['groupId']!==_0x1769b6[0x0]['attributes']['groupId']&&_0x2248a3[0x0]['author']!==_0x1769b6[0x0]['author'])return!0x1;if(!function(_0x554e53,_0x5a1cde){if(!_0x554e53['hasComments']&&!_0x5a1cde['hasComments'])return!0x0;if(_0x554e53['hasComments']&&_0x5a1cde['hasComments'])return!0x1;if(_0x554e53['hasComments']&&_0x5a1cde['createdAt']<_0x554e53['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a1cde['hasComments']&&_0x554e53['createdAt']<_0x5a1cde['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2248a3[0x0],_0x1769b6[0x0]))return!0x1;const _0x68d692=Bt(_0x2248a3[0x0]['attributes'],'groupId'),_0x4c5703=Bt(_0x1769b6[0x0]['attributes'],'groupId');if(!_0x58c209(_0x68d692,_0x4c5703))return!0x1;return!!_0x2248a3['every'](_0x237caf=>_0x1769b6['some'](_0x42d105=>_0x237caf['getFirstRange']()['isEqual'](_0x42d105['getFirstRange']())))&&_0x1769b6['every'](_0x22abfd=>_0x2248a3['some'](_0x48719a=>_0x22abfd['getFirstRange']()['isEqual'](_0x48719a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5db78d){const _0x460b41=Array['from'](_0x5db78d),_0x58656b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x321c11=_0x58656b['filter'](_0x2ef0f5=>!_0x5db78d['has'](_0x2ef0f5)),_0x4f3d8c=new Map(_0x460b41['map'](_0x42ca18=>[_0x42ca18,this['_suggestionFactory']['getSuggestionCallback'](_0x42ca18['type'],_0x42ca18['subType'],'join')])),_0x2b276e=new Map(_0x58656b['map'](_0x58ad11=>[_0x58ad11,_0x58ad11['getRanges']()]));for(let _0xa6f2a5=0x0;_0xa6f2a5<_0x460b41['length'];_0xa6f2a5++){if(_0x54c07a(this,_0x460b41[_0xa6f2a5],_0x460b41,_0xa6f2a5+0x1))return!0x0;}for(let _0x671687=0x0;_0x671687<_0x460b41['length'];_0x671687++){if(_0x54c07a(this,_0x460b41[_0x671687],_0x321c11,0x0))return!0x0;}return!0x1;function _0x54c07a(_0x4cac3e,_0x26201b,_0x22ac56,_0x2aa074){for(let _0xe938aa=_0x2aa074;_0xe938aa<_0x22ac56['length'];_0xe938aa++){const _0x18cd38=_0x22ac56[_0xe938aa];if(_0x18cd38['type']!==_0x26201b['type']||_0x18cd38['author']['id']!==_0x26201b['author']['id']||_0x18cd38['subType']!==_0x26201b['subType'])continue;if(!Pt(_0x26201b,_0x18cd38,['groupId']))continue;if('attribute'==_0x26201b['type']&&_0x26201b['data']['oldValue']!=_0x18cd38['data']['oldValue'])continue;if('attribute'==_0x26201b['type']&&_0x4cac3e['_isBlockAttribute'](_0x26201b['data']['key']))continue;if('formatBlock'==_0x26201b['type']){const _0x1f3004=_0x4cac3e['editor']['model'],_0x95886c=_0x26201b['getContainedElement']();if(_0x95886c&&(_0x1f3004['schema']['isObject'](_0x95886c)||_0x1f3004['schema']['isLimit'](_0x95886c)))continue;}const _0x8dc88b=_0x4f3d8c['get'](_0x26201b),_0x2ad53b=_0x2b276e['get'](_0x26201b),_0xd690c7=_0x2b276e['get'](_0x18cd38),_0x27c5f6=_0x26201b['commentThread']&&_0x26201b['commentThread']['length'],_0x368e7c=_0x18cd38['commentThread']&&_0x18cd38['commentThread']['length'];if(!_0x27c5f6&&_0x8dc88b(_0xd690c7,_0x2ad53b))return _0x4cac3e['_joinSuggestions'](_0x18cd38,_0x26201b),_0x2b276e['delete'](_0x26201b),!0x0;if(!_0x368e7c&&_0x8dc88b(_0x2ad53b,_0xd690c7))return _0x4cac3e['_joinSuggestions'](_0x26201b,_0x18cd38),_0x2b276e['delete'](_0x18cd38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c757d,_0x1ebdc3){if(_0x5c757d['isMultiRange']){for(const _0xd6c197 of _0x1ebdc3['getRanges']())_0x5c757d['addRange'](_0xd6c197);}else{const _0x2abd98=_0x1ebdc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c757d,this['_model']['createRange'](_0x5c757d['getFirstRange']()['start'],_0x2abd98));}_0x1ebdc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36a2e4,_0x735404){const _0x28c9fd=_0x36a2e4['startsWith']('format')||_0x36a2e4['startsWith']('attribute')?'FORMATTING':_0x36a2e4['toUpperCase']();return o(this['editor']['locale'],_0x735404+'_'+_0x28c9fd+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5440ca=this['editor'];if(!_0x5440ca['ui'])return;const {ariaLiveAnnouncer:_0x2bbd69}=_0x5440ca['ui'];_0x16d88b(this['_model'],({left:_0x312df4,entered:_0x35ddf8})=>{for(const _0x22d225 of _0x312df4){const {group:_0x4bcd0e,type:_0x2d8a91}=this['_splitMarkerName'](_0x22d225['name']);if('suggestion'===_0x4bcd0e){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x2d8a91,'LEAVE'));break;}}for(const _0xff9a17 of _0x35ddf8){const {group:_0x243f36,type:_0x1a9d10}=this['_splitMarkerName'](_0xff9a17['name']);if('suggestion'===_0x243f36){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x1a9d10,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4805e4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4542f8=this['editor'],_0x25f67e=_0x4542f8['model']['document']['differ']['getChanges']();if(0x0==_0x25f67e['length'])return!0x1;const _0x42298d=[],_0xcb24d2=_0x25f67e['filter'](_0x59f2ae=>'attribute'==_0x59f2ae['type']),_0x3dca0d=_0x25f67e['filter'](_0xadc67b=>'insert'==_0xadc67b['type']&&'$text'!=_0xadc67b['name']),_0x59f95=_0x25f67e['filter'](_0x56700a=>'remove'==_0x56700a['type']&&'$text'!=_0x56700a['name']);for(const _0x4e4362 of _0xcb24d2)_0x42298d['push']({'key':_0x4e4362['attributeKey'],'newValue':_0x4e4362['attributeNewValue'],'oldValue':_0x4e4362['attributeOldValue'],'range':Ot(_0x4e4362['range'],_0x4542f8['model'])});for(const _0x42c15d of _0x3dca0d){const _0x21254d=_0x59f95['find'](_0x514552=>_0x514552['position']['isEqual'](_0x42c15d['position']));_0x21254d&&_0x42298d['push']({'key':m,'newValue':_0x42c15d['name'],'oldValue':_0x21254d['name'],'range':_0x4542f8['model']['createRangeOn'](_0x42c15d['position']['nodeAfter'])});}return 0x0!=_0x42298d['length']&&this['_reduceExistingSuggestions'](_0x4805e4,_0x42298d);}['_processAttributeSuggestions'](_0x312925){let _0x3593f2=!0x1;const _0x39e1fd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x383b83=>_0x383b83['data']['newRange']&&_0x383b83['name']['startsWith']('suggestion:attribute:'));for(const _0x2f850c of _0x39e1fd){const {subType:_0x39e58c,id:_0x541b4e}=this['_splitMarkerName'](_0x2f850c['name']),_0x569847=_0x39e58c['split']('|')[0x0];for(const _0x3023c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3023c4['id']!=_0x541b4e&&'attribute'==_0x3023c4['type']&&_0x3023c4['data']&&_0x3023c4['data']['key']==_0x569847&&_0x3023c4['getFirstRange']()['isIntersecting'](_0x2f850c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3023c4,_0x2f850c['data']['newRange'],_0x312925),_0x3593f2=!0x0);}return _0x3593f2;}['_recordAttributeChanges'](_0x247868){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x247868();}['_isRegisteredAttribute'](_0x388467){const _0x2e29c2=this['_isBlockAttribute'](_0x388467),_0x3bbcfc=this['_inlineAttributeKeys']['has'](_0x388467);return _0x2e29c2||_0x3bbcfc;}['_reduceExistingSuggestions'](_0x55bcde,_0x4d77d1){if(0x0==_0x4d77d1['length'])return!0x1;let _0xc57325=!0x1;for(const _0x3414f6 of _0x4d77d1){const _0x45fcc7=this['_findSuggestions'](_0x3414f6['range'],'attribute')['filter'](_0x36f4ed=>!_0x36f4ed['meta']['isNextTo'])['map'](_0x298874=>_0x298874['suggestion']),_0x4dea78=_0x223067({'newValue':_0x3414f6['newValue']});_0x45fcc7['filter'](_0x168375=>{const [_0x2a9c57,_0x10eba1]=_0x168375['subType']['split']('|');return _0x2a9c57==_0x3414f6['key']&&_0x10eba1!=_0x4dea78;})['forEach'](_0x5e343e=>{this['_reduceSuggestionAttributeRange'](_0x5e343e,_0x3414f6['range'],_0x55bcde),_0xc57325=!0x0;});}return _0xc57325;}['_reduceSuggestionAttributeRange'](_0x2357d1,_0x2b6b9a,_0x46584b){const _0x6c676=_0x2357d1['getFirstRange']()['getDifference'](_0x2b6b9a);0x0!==_0x6c676['length']?0x1!==_0x6c676['length']?this['_breakSuggestionMarker'](_0x2357d1,_0x2b6b9a['start'],_0x2b6b9a['end']):this['_setSuggestionRange'](_0x2357d1,_0x6c676[0x0]):_0x46584b['removeMarker'](_0x2357d1['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x546e96){this['_editor']=_0x546e96,this['_model']=_0x546e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x586966,_0x22f97d,_0x3871a8,_0x4ac961,_0x554b58,_0x3d82b1){return new u(this['_model'],{'type':_0x586966,'subType':_0x22f97d,'id':_0x3871a8,'author':_0x4ac961,'creator':_0x4ac961,'attributes':_0x554b58,'onAttributesChange':_0x3d82b1,'onAccept':(..._0x505c43)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'accept')(..._0x505c43),'onDiscard':(..._0x3b9235)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'discard')(..._0x3b9235)});}['registerCustomCallback'](_0x549fd3,_0x52018c,_0x48df65,_0x72930b){const _0x18abb3=_0x549fd3+':'+_0x52018c+':'+_0x48df65;this['_customCallbacks']['set'](_0x18abb3,_0x72930b);}['getSuggestionCallback'](_0x4b7388,_0x49552e,_0x37bd50){const _0x47a704=_0x4b7388+':'+_0x49552e+':'+_0x37bd50;return this['_customCallbacks']['get'](_0x47a704)||this['_defaultCallbacks']['get'](_0x4b7388+':'+_0x37bd50);}['_registerDefaultCallbacks'](){const _0x28815e=()=>!0x1,_0x1bbd30=_0x75bf47=>{_0x75bf47['sort']((_0x3800f1,_0x4dac83)=>_0x3800f1['start']['isBefore'](_0x4dac83['start'])?0x1:-0x1),this['_model']['change'](_0x394809=>{for(const _0x3f9383 of _0x75bf47){let _0x1dda92;_0x1dda92=_0x3f9383['end']['isAtEnd']&&_0x3f9383['end']['parent']==_0x3f9383['start']['nodeAfter']?_0x394809['createSelection'](_0x3f9383['start']['nodeAfter'],'on'):_0x394809['createSelection'](_0x3f9383),this['_model']['deleteContent'](_0x1dda92,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x647d07=(_0xa7d013,_0x1faec6)=>{_0x1faec6&&this['_model']['change'](_0x219892=>{const {commandName:_0x9c9349,commandParams:_0x3a5e11=[]}=_0x1faec6,_0x195cfa=_0xa7d013['map'](_0x2a4a97=>(Tt(_0x2a4a97)&&(_0x2a4a97=this['_model']['createRange'](_0x2a4a97['end'])),_0x2a4a97))['filter'](_0x1ef22a=>'$graveyard'!==_0x1ef22a['root']['rootName']);if(_0x195cfa['length']<0x1)return;const _0x24422d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bceac=>_0xef9d24['fromRange'](_0x5bceac));_0x219892['setSelection'](_0x195cfa);for(const _0xe2c5ff of this['_editor']['commands']['commands']())_0xe2c5ff['refresh']();_0x3a5e11['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x9c9349,..._0x3a5e11);const _0x2bd565=_0x24422d['filter'](_0x39a611=>'$graveyard'!=_0x39a611['root']['rootName']);_0x2bd565['length']>0x0&&_0x219892['setSelection'](_0x2bd565);for(const _0x43c826 of _0x24422d)_0x43c826['detach']();});},_0x346748=(_0x426806,_0x5a151d)=>0x1==_0x426806['length']&&0x1==_0x5a151d['length']&&_0x426806[0x0]['end']['isEqual'](_0x5a151d[0x0]['start']),_0x246bfc=(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a)=>Ft(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a,this['_model'])?[_0x50e05a,_0x410476]:Ft(_0x410476,_0x50e05a,_0x54b76a,_0x36e0fd,this['_model'])?[_0x410476,_0x50e05a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x28815e),this['_defaultCallbacks']['set']('insertion:discard',_0x1bbd30),this['_defaultCallbacks']['set']('insertion:join',_0x346748),this['_defaultCallbacks']['set']('insertion:chain',_0x246bfc),this['_defaultCallbacks']['set']('deletion:accept',_0x1bbd30),this['_defaultCallbacks']['set']('deletion:discard',_0x28815e),this['_defaultCallbacks']['set']('deletion:join',_0x346748),this['_defaultCallbacks']['set']('deletion:chain',_0x246bfc),this['_defaultCallbacks']['set']('formatInline:accept',_0x647d07),this['_defaultCallbacks']['set']('formatInline:discard',_0x28815e),this['_defaultCallbacks']['set']('formatInline:join',_0x346748),this['_defaultCallbacks']['set']('formatInline:chain',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x647d07),this['_defaultCallbacks']['set']('formatBlock:discard',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:join',_0x346748),this['_defaultCallbacks']['set']('formatBlock:chain',_0x28815e),this['_defaultCallbacks']['set']('attribute:accept',_0x28815e),this['_defaultCallbacks']['set']('attribute:discard',(_0x229b43,_0x56dcf2)=>{if(!_0x56dcf2)return;const _0x4a8b7d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ff23d=>{if(_0x56dcf2['key']==m)for(const _0xaa22ea of _0x229b43){const _0x1908e8=_0xaa22ea['start']['nodeAfter'],_0x1a6446=_0x56dcf2['oldValue'];_0x4ff23d['rename'](_0x1908e8,_0x1a6446);}else{if(_0x4a8b7d['_isBlockAttribute'](_0x56dcf2['key'])){for(const _0x9cf2bb of _0x229b43)void 0x0!==_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x9cf2bb['start']['nodeAfter']):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x9cf2bb['start']['nodeAfter']);}else{for(const _0x110a22 of _0x229b43)_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x110a22):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x110a22);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x346748);}}function Rt(_0x3ec657,_0x416c62,_0x3b2a76){for(const _0x429b25 of _0x416c62['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x429b25['root']==_0x429b25)return!0x1;if(!_0x3b2a76['containsItem'](_0x429b25))return!0x1;if(_0x3ec657['isObject'](_0x429b25)||_0x3ec657['isLimit'](_0x429b25))return!0x0;}return!0x1;}function Tt(_0x2811f2){return _0x2811f2['end']['parent']==_0x2811f2['start']['nodeAfter']&&_0x2811f2['end']['isAtStart'];}function Et(_0x4827df,_0x2bb109,_0x2d0431,_0xffb369){const _0x57666a=_0x30d31c=>!_0x30d31c['item']['is']('$textProxy')&&!_0xffb369['isObject'](_0x30d31c['item']),_0x13342c=_0x4827df['start']['getLastMatchingPosition'](_0x57666a),_0x47845e=_0x4827df['end']['getLastMatchingPosition'](_0x57666a,{'direction':'backward'});return(!_0x4827df['start']['isEqual'](_0x13342c)||!_0x4827df['end']['isEqual'](_0x47845e))&&(_0x13342c['isBefore'](_0x47845e)?_0x2d0431['updateMarker'](_0x2bb109,{'range':_0x2d0431['createRange'](_0x13342c,_0x47845e)}):_0x2d0431['removeMarker'](_0x2bb109),!0x0);}function Vt(_0x38ce73){return _0x223067(_0x38ce73);}function Ut(_0x1b1492){const _0x3167f8=_0x1b1492['start']['nodeAfter'];return _0x3167f8&&_0x3167f8['is']('element');}function Ot(_0x48c3f9,_0x1963dd){return null==_0x48c3f9['end']['nodeBefore']&&_0x48c3f9['end']['parent']==_0x48c3f9['start']['nodeAfter']?Gt(_0x48c3f9['start']['nodeAfter'],_0x1963dd):_0x48c3f9;}function Gt(_0xf3405d,_0x2bcf28){const _0xee4052=_0x2bcf28['schema']['isObject'](_0xf3405d)||_0x2bcf28['schema']['isSelectable'](_0xf3405d);return _0x2bcf28['createRange'](_0x2bcf28['createPositionAt'](_0xf3405d,'before'),_0xee4052?_0x2bcf28['createPositionAfter'](_0xf3405d):_0x2bcf28['createPositionAt'](_0xf3405d,'end'));}function Ft(_0x11f9fe,_0x548b67,_0x534cc4,_0x3621b0,_0x30522d){if(!Pt(_0x11f9fe,_0x548b67))return!0x1;if(_0x534cc4['end']['isEqual'](_0x3621b0['start']))return!0x0;if(_0x11f9fe['type']!=_0x548b67['type'])return!0x1;if(!_0x534cc4['end']['isTouching'](_0x3621b0['start']))return!0x1;const _0x3b21c0=_0x30522d['createRange'](_0x534cc4['end'],_0x3621b0['start'])['getWalker']();for(const _0x51acdb of _0x3b21c0)if(['elementStart','elementEnd']['includes'](_0x51acdb['type'])&&_0x30522d['schema']['isLimit'](_0x51acdb['item']))return!0x1;return!0x0;}function Pt(_0x57b9e1,_0x5dc0e7,_0x356fef=[]){return!(!_0x57b9e1['_isDataLoaded']||!_0x5dc0e7['_isDataLoaded'])&&_0x58c209(Bt(_0x57b9e1['attributes'],_0x356fef),Bt(_0x5dc0e7['attributes'],_0x356fef));}function Lt(_0xcdd22b,_0xb47310){const _0x5b598f=Ht(_0xcdd22b['attributes']),_0x469f0b=Ht(_0xb47310);if(!_0xcdd22b['_isDataLoaded'])return!0x1;for(const _0x289774 of Object['keys'](_0x469f0b))if(!_0x58c209(_0x5b598f[_0x289774],_0x469f0b[_0x289774]))return!0x1;return!0x0;}function Ht(_0xca44d9){const _0x1e7f71=Object['assign']({},_0xca44d9);return delete _0x1e7f71['skipNestingCheck'],delete _0x1e7f71['tablePasteChainId'],_0x1e7f71;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x44d863(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39f1ac,_0x2e0c92,_0x123ec7,_0xc3a638){super(),this['model']=_0x2e0c92,this['view']=_0x123ec7,this['commentThreadController']=_0xc3a638,this['_editor']=_0x39f1ac,this['_acceptCommand']=_0x39f1ac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39f1ac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x138cae,_0x5d8015)=>_0x138cae||_0x5d8015),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5ea709=>_0x5ea709&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cc1b5=>_0x1cc1b5&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['_pendingAction']=null,_0x123ec7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x123ec7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x123ec7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x123ec7,'change:isDirty',()=>{_0x123ec7['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 _0x8bd894=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8bd894);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x36730d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f5d16,_0x3551f7,_0x4f1e64,_0x4d0a6c){super(_0x3f5d16),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3551f7['authoredAt']),this['bind']('authoredAt')['to'](_0x3551f7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3551f7,this['_localUser']=_0x4f1e64,this['_config']=_0x4d0a6c,_0x4d0a6c['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:_0x2c94cf}=this['_config'];this['commentsListView']=new _0x2c94cf(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',_0x19b06c=>_0x19b06c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ec5b0,_0x479e68)=>_0x5ec5b0||!!_0x479e68);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x35477a}=this['_config'],_0x7b6cbe=new _0x35477a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x548f75=_0x7b6cbe['commentInputView'];return _0x7b6cbe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x548f75,'value',(_0x2f6c84,_0x2cd6f0,_0xd2a1eb)=>!!_0xd2a1eb||_0x2f6c84&&!_0x2cd6f0),_0x548f75['on']('submit',(_0x3bfb96,_0x207137)=>{this['fire']('addComment',_0x207137),_0x548f75['editor']['setData']('');}),_0x548f75['on']('cancel',()=>this['focus']()),_0x548f75['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7b6cbe;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8){super(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x24a4ef=>_0x24a4ef&&_0x24a4ef[0x0]?_0x24a4ef[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x111f47,_0x26890b)=>{let _0x273dc8='';for(const _0x30ce3f of _0x111f47)_0x273dc8+='<p>'+ds(_0x30ce3f['content'],_0x30ce3f['color'])+'</p>';return _0x26890b?_0x273dc8:_0xd4604a(_0x273dc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b03e0,'Accept\x20suggestion'),_0x2c0fde['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b03e0,'Discard\x20suggestion'),_0x2c0fde['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2db2ee(_0x4b03e0,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e63b=this['bindTemplate'],_0x169e69=[{'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':_0x5e63b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e63b['to']('authoredAt',_0x4b7bb8=>this['_config']['formatDateTime'](_0x4b7bb8))}]}]},{'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']&&_0x169e69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xc5c6c4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e63b['if']('isActive','ck-suggestion-wrapper--active'),_0x5e63b['to']('type',_0x1e952f=>'ck-suggestion-'+_0x1e952f),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':_0x169e69}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xc5c6c4['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)),_0xc5c6c4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5290ec,_0x3be22c,_0x19c337)=>{this['_descriptionElement']['innerHTML']=_0x19c337;});}['_createButton'](_0x4edea9,_0x54c117,_0x5d40c5,_0x470017,_0x2ea04f){const _0x2b704a=new _0x4f6b58(this['locale']);return _0x2b704a['set']({'label':_0x4edea9,'icon':_0x54c117,'tooltip':!0x0,'tooltipPosition':_0x2ea04f}),_0x2b704a['extendTemplate']({'attributes':{'class':_0x5d40c5}}),_0x2b704a['on']('execute',()=>{this['fire'](_0x470017,this['_model']['id']);}),_0x2b704a;}['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(_0x3d1fee,_0x2ce0ca){let _0x4b7145='';return _0x4b7145+=_0x3d1fee['split']('*')['map']((_0x52c8a8,_0xdcfa65)=>_0xdcfa65%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x52c8a8)+'</span>':us(_0x52c8a8))['join'](''),_0x2ce0ca&&(_0x4b7145+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ce0ca['value']+'\x22\x20title=\x22'+_0x2ce0ca['title']+'\x22></span>'),_0x4b7145;}function us(_0xb082ab){const _0x162e2e=document['createElement']('span');return _0x162e2e['innerText']=_0xb082ab,_0x162e2e['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 _0x2c20e0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x18293d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x25ec84){super(_0x25ec84),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a496=this['editor']['config'];_0x48a496['define']('trackChanges.SuggestionThreadView',ne),_0x48a496['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a496['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x14fa07,_0x865663){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x147664,_0x594b4e]of this['_handleControllerBuffer']){const _0x754251=this['_suggestionToController']['has'](_0x147664);_0x754251||_0x594b4e?_0x754251&&_0x594b4e&&this['_destroyController'](_0x147664):this['_initializeController'](_0x147664);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x14fa07,_0x865663);}['init'](){const _0x840731=this['editor'],_0x6c5da6=_0x840731['plugins']['get']('TrackChangesEditing'),_0xb09e8d=_0x840731['plugins']['get']('Annotations'),_0x2e4f99=_0x840731['plugins']['get']('EditorAnnotations'),_0x589acc=_0x840731['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e4f99['addSourceCollector'](()=>{const _0x3b42fe=[];for(const [_0x147977,_0x126a58]of Array['from'](this['_suggestionToController'])){const _0x565736=_0x147977['getAllAdjacentSuggestions'](),_0x2d0791=[];for(const _0xf945ed of _0x565736){if(!_0xf945ed['isInContent'])continue;if(_0xf945ed['isMultiRange']){_0x2d0791['push'](..._0xf945ed['getRanges']());continue;}const _0x40028f=_0xf945ed['getFirstRange']();if(_0x2d0791['length']>0x0){const _0x291d57=_0x2d0791[0x0]['getJoined'](_0x40028f);if(_0x291d57){_0x2d0791[0x0]=_0x291d57;continue;}}_0x2d0791['push'](_0x40028f);}_0x3b42fe['push']([_0x126a58['view'],_0x2d0791]);}return _0x3b42fe;}),this['listenTo'](_0x6c5da6,'suggestionLoaded',(_0x335a97,_0x920b3c)=>{this['listenTo'](_0x920b3c,'change:previous',(_0x35ef55,_0xbc72f1,_0x23d520,_0x9ba48f)=>{_0x920b3c['isInContent']&&(null==_0x23d520?(this['_updateController'](_0x9ba48f['head']),this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1)):(this['_updateController'](_0x23d520['head']),null==_0x9ba48f&&this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x0)));}),null!==_0x920b3c['previous']?this['_updateController'](_0x920b3c['head']):this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1);}),this['listenTo'](_0x6c5da6,'suggestionUnloaded',(_0x2b7ae9,_0x3b1996,_0x2e0689)=>{this['stopListening'](_0x3b1996,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b1996),this['_suggestionToController']['has'](_0x3b1996)&&this['_destroyController'](_0x3b1996),_0x2e0689&&this['_updateController'](_0x2e0689['head']);}),this['listenTo'](_0x6c5da6,'suggestionChanged',(_0x38246c,_0x55bbb7)=>{this['_updateController'](_0x55bbb7);}),this['listenTo'](_0xb09e8d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x589acc,'addComment',(_0x3fa125,{threadId:_0x2caa02,isFromAdapter:_0x3d4a24})=>{if(_0x3d4a24||!_0x6c5da6['hasSuggestion'](_0x2caa02))return;const _0x1d8b47=_0x6c5da6['getSuggestion'](_0x2caa02);this['_suggestionToController']['get'](_0x1d8b47)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2c5d99=this['editor']['plugins']['get']('Annotations'),_0x469ee6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d1f39=Array['from'](_0x2c5d99['activeAnnotations'],_0x5b8b11=>_0x5b8b11['innerView'])['filter'](_0x3d6ec1=>this['_viewToController']['has'](_0x3d6ec1)),_0x5d4b75=[];for(const _0x4ac70c of _0x3d1f39){const _0x1df3fe=this['_viewToController']['get'](_0x4ac70c)['model']['getAllAdjacentSuggestions']();_0x5d4b75['push'](..._0x1df3fe['reduce']((_0x2541c2,_0x4d16ed)=>[..._0x2541c2,..._0x4d16ed['getMarkerNames']()],[]));}_0x469ee6['activeMarkers']=_0x5d4b75;}['_addUIComponentsToFactory'](){const _0x4d2a51=this['editor'],_0x569d52=_0x4d2a51['locale'],_0x4b04c1=o(_0x569d52,'Track\x20changes'),_0x5621d2=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b04c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36786b of _0x5621d2)if(ae(_0x36786b)){const _0x5b1139=_0x4d2a51['commands']['get'](_0x36786b['model']['commandName']);_0x36786b['model']['bind']('isOn','isEnabled')['to'](_0x5b1139,'value','isEnabled');}_0x4d2a51['ui']['componentFactory']['add']('trackChanges',_0x3a5690=>this['_createToolbarButton'](_0x3a5690,_0x5621d2,_0x4b04c1)),_0x4d2a51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29308d=>this['_createMenuBarMenu'](_0x29308d,_0x5621d2,_0x4b04c1));}['_createToolbarButton'](_0x2b99ad,_0x267a56,_0x5afea8){const _0x89188f=zt(_0x2b99ad,Zt),_0x58b362=this['editor']['commands']['get']('trackChanges');_0x89188f['buttonView']['set']({'tooltip':_0x5afea8,'label':_0x5afea8,'icon':ie}),_0x89188f['buttonView']['bind']('isOn')['to'](_0x58b362,'value'),_0x89188f['buttonView']['on']('execute',()=>{_0x58b362['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x89188f,_0x267a56,{'role':'menu'});const _0x428789=[];for(const _0x4f54b5 of _0x267a56)ae(_0x4f54b5)&&_0x428789['push'](this['editor']['commands']['get'](_0x4f54b5['model']['commandName']));const _0x36eb8b=_0x89188f['buttonView'];return _0x36eb8b['actionView']['unbind']('isEnabled'),_0x36eb8b['arrowView']['unbind']('isEnabled'),_0x36eb8b['actionView']['bind']('isEnabled')['to'](_0x58b362,'isEnabled'),_0x36eb8b['arrowView']['bind']('isEnabled')['toMany'](_0x428789,'isEnabled',(..._0x141319)=>_0x141319['some'](_0x2168f7=>_0x2168f7)),_0x89188f['on']('execute',_0x76023a=>{this['editor']['execute'](_0x76023a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x89188f;}['_createMenuBarMenu'](_0x429aeb,_0x12acb7,_0x2b1e92){const _0x558fc9=new Kt(_0x429aeb),_0x2650c7=this['editor']['commands']['get']('trackChanges');_0x558fc9['buttonView']['set']({'label':_0x2b1e92,'icon':ie});const _0x59a456=new Qt(_0x429aeb);for(const _0x33af54 of _0x12acb7){if('separator'==_0x33af54['type']){_0x59a456['items']['add'](new Jt(_0x429aeb));continue;}const _0x47f137=new Xt(_0x429aeb,_0x558fc9),_0x2e50f8=new Yt(_0x429aeb),_0x179eb7=_0x33af54['model'];_0x2e50f8['bind'](...Object['keys'](_0x179eb7))['to'](_0x179eb7),_0x2e50f8['delegate']('execute')['to'](_0x558fc9),_0x2e50f8['on']('execute',()=>{this['editor']['execute'](_0x179eb7['commandName']),this['editor']['editing']['view']['focus']();}),_0x47f137['children']['add'](_0x2e50f8),_0x59a456['items']['add'](_0x47f137);}return _0x558fc9['bind']('isEnabled')['to'](_0x2650c7,'isEnabled'),_0x558fc9['panelView']['children']['add'](_0x59a456),_0x558fc9;}['_initializeController'](_0x57c027){const _0xbb44fc=this['editor'],_0x43ddd9=_0xbb44fc['config'],_0x3b92c2=_0xbb44fc['plugins']['get']('Annotations'),_0x5fd99d=_0xbb44fc['plugins']['get']('CommentsRepository'),_0x498a85=_0xbb44fc['plugins']['get']('EditorAnnotations'),_0x18626a=_0xbb44fc['plugins']['get'](_0x18293d)['me'],_0x49f4a4=_0x43ddd9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x38f328,CommentThreadInputView:_0x261deb}=_0xbb44fc['plugins']['get']('CommentsUI');let _0x4ac4fa,_0x326ced;this['_annotationViews']['has'](_0x57c027['id'])?(_0x326ced=this['_annotationViews']['get'](_0x57c027['id']),_0x4ac4fa=_0x326ced['mainView']):(_0x4ac4fa=new _0x49f4a4(_0xbb44fc['locale'],_0x57c027,_0x18626a,{'disableComments':this['_disableComments'],'editorConfig':_0x43ddd9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43ddd9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1be2(_0x43ddd9['get']('locale')),'CommentView':_0x43ddd9['get']('comments')['CommentView'],'CommentsListView':_0x38f328,'CommentThreadInputView':_0x261deb}),_0x4ac4fa['acceptButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x4ac4fa['discardButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x326ced=_0x3b92c2['createAnnotationView'](this['editor']['locale'],_0x4ac4fa),_0x326ced['bind']('isDirty')['to'](_0x4ac4fa,'isDirty'),_0x326ced['bind']('length')['to'](_0x4ac4fa),_0x326ced['bind']('type')['to'](_0x4ac4fa,'type',_0x5143d0=>'suggestion-'+_0x5143d0),this['_annotationViews']['set'](_0x57c027['id'],_0x326ced));const _0x30f11b=_0x5fd99d['createCommentThreadController'](_0x57c027['commentThread'],_0x4ac4fa),_0xdfdc49=new oe(_0xbb44fc,_0x57c027,_0x4ac4fa,_0x30f11b),_0x1db29d=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x19763=>_0x19763['isInContent']);_0x4ac4fa['descriptionParts']=_0xbb44fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1db29d),this['_suggestionToController']['set'](_0x57c027,_0xdfdc49),this['_viewToController']['set'](_0x4ac4fa,_0xdfdc49);const _0x441cc8=_0x3b92c2['createAnnotation']({'view':_0x326ced,'target':()=>{const _0x516b6c=[],_0xc6e870=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x305824=>_0x305824['isInContent']);for(const _0x1a41e2 of _0xc6e870)_0x516b6c['push'](..._0x1a41e2['getMarkers']());return _0x68ed15(_0xbb44fc['editing'],_0x516b6c);},'type':()=>'suggestion-'+_0xdfdc49['view']['type']});_0x5fd99d['_bindAnnotationToEditors'](_0x4ac4fa,_0x441cc8),_0x3b92c2['add'](_0x441cc8),_0x498a85['registerAnnotation'](_0x441cc8);}['_destroyController'](_0x7d1ddf){const _0x3f0c33=this['editor']['plugins']['get']('CommentsRepository'),_0x456e6b=this['editor']['plugins']['get']('Annotations'),_0x35a9e5=this['_suggestionToController']['get'](_0x7d1ddf),_0x273414=_0x35a9e5['view'],_0x2318dd=_0x456e6b['getByInnerView'](_0x273414);_0x3f0c33['_unbindEditors'](_0x273414),_0x2318dd&&_0x456e6b['remove'](_0x2318dd),this['_suggestionToController']['delete'](_0x7d1ddf),this['_viewToController']['delete'](_0x273414),_0x35a9e5['destroy']();}['_updateController'](_0xf61828){if(!_0xf61828['isInContent']||!this['_suggestionToController']['has'](_0xf61828))return;const _0xada4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d7e3=this['_suggestionToController']['get'](_0xf61828),_0x17711a=_0xf61828['getAllAdjacentSuggestions']();_0x22d7e3['view']['descriptionParts']=_0xada4f['descriptionFactory']['getDescriptions'](_0x17711a);}['destroy'](){for(const _0x34aa33 of this['_suggestionToController']['keys']())this['_destroyController'](_0x34aa33);for(const _0xc99772 of this['_annotationViews']['values']())_0xc99772['mainView']['destroy']();super['destroy']();}}function ae(_0x26b9fd){return'model'in _0x26b9fd;}class k extends _0x2c20e0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3c89b2){this['editor']['plugins']['get'](p)['adapter']=_0x3c89b2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4cb876){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4cb876);}['getSuggestions']({skipNotAttached:_0x4ce8eb=!0x1,toJSON:_0x459071=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ce8eb,'toJSON':_0x459071});}['getSuggestion'](_0x4b5a2d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4b5a2d);}}const T=['Pagination'];class P extends _0x2c20e0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3e2f72=this['editor'];if(_0x3e2f72['config']['define']('trackChangesData.editorCreator',_0x464522=>{const _0x45e834=_0x3e2f72['model']['document']['getRootNames']()['reduce']((_0x33ebec,_0x375601)=>(_0x33ebec[_0x375601]='',_0x33ebec),{});return _0x3e2f72['constructor']['create'](_0x45e834,_0x464522);}),'function'!=typeof _0x3e2f72['config']['get']('trackChangesData')['editorCreator'])throw new _0x194952('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x167697){return N(this['editor'],!0x0,_0x167697);}['getDataWithDiscardedSuggestions'](_0x1a5abb){return N(this['editor'],!0x1,_0x1a5abb);}}class D extends _0x2c20e0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x35da04){super(_0x35da04),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(_0x22c50b){return void 0x0!==_0x22c50b['getRootsAttributes'];}async function N(_0x2a3b59,_0x1e1bfa,_0x46cbed){const _0x472965=_0x5297a0(_0x2a3b59,T);_0x472965['plugins']['push'](p,D),_0x472965['rootsAttributes']=v(_0x2a3b59)?_0x2a3b59['getRootsAttributes']():void 0x0;const _0x3bf56b=document['createDocumentFragment'](),_0x62df19=_0x2a3b59['config']['get']('trackChangesData')['editorCreator'],_0x33a799=await _0x62df19(_0x472965,()=>function(_0x10e706){const _0x12f2e4=document['createElement']('div');return _0x10e706['appendChild'](_0x12f2e4),_0x12f2e4;}(_0x3bf56b));!function(_0xa623e0,_0x478f7d){const _0x900d0a=_0xa623e0['model']['document']['getRootNames']()['reduce']((_0x987e26,_0xd2f7e6)=>(_0x987e26[_0xd2f7e6]=_0xa623e0['data']['get']({'rootName':_0xd2f7e6}),_0x987e26),{}),_0x527cf2=_0xa623e0['plugins']['get']('Users')['users']['map'](_0x15f9c9=>({'id':_0x15f9c9['id'],'name':_0x15f9c9['name']})),_0x1abc3c=_0xa623e0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16752e=_0xa623e0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x537a12=_0x478f7d['plugins']['get']('Users'),_0x214ca9=_0x478f7d['plugins']['get']('TrackChangesEditing'),_0x438af0=_0x478f7d['plugins']['get']('CommentsRepository');for(const _0x4513b4 of _0x527cf2)_0x537a12['getUser'](_0x4513b4['id'])||_0x537a12['addUser'](_0x4513b4);_0x537a12['me']||_0x537a12['useAnonymousUser']();for(const _0x4effb3 of _0x16752e)_0x438af0['addCommentThread'](_0x4effb3);for(const _0x5802a6 of _0x1abc3c)_0x214ca9['addSuggestionData'](_0x5802a6);_0x478f7d['data']['set'](_0x900d0a);}(_0x2a3b59,_0x33a799),_0x33a799['execute'](_0x1e1bfa?'acceptAllSuggestions':'discardAllSuggestions');const _0x1edd8b=v(_0x33a799)?_0x33a799['getFullData'](_0x46cbed):_0x33a799['data']['get'](_0x46cbed);return await _0x33a799['destroy'](),_0x1edd8b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x16371d,PendingActions as _0x225db4,icons as _0x210fdb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x40a0bd,ObservableMixin as _0x2d203a,uid as _0x4b80ff,insertToPriorityArray as _0x33419e,priorities as _0x1135d8,logWarning as _0x23467f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1ca3e4,View as _0x4490c1,ButtonView as _0x199a7d,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 _0x2e67ee,hashObject as _0x2c77f1,surroundingMarkersDetector as _0x3e7c00,trimHtml as _0x48be8a,UserView as _0x5909ed,getDateTimeFormatter as _0x5ab875,getAllMarkersDomElementsSorted as _0x1af8ea,sanitizeEditorConfig as _0x5b10d0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2557c1,LiveRange as _0x218be5,LivePosition as _0x2570a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b8f92,toWidget as _0x44ddaf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2912c1,set as _0x4812d9,isEqual as _0xf2bb64,unset as _0x2e1adc,omit as Bt}from'lodash-es';import{Delete as _0x11678d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x187c42,ShiftEnter as _0x5406cc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x27e285,_0x4a1cf6){super(_0x27e285),this['_enabledCommands']=_0x4a1cf6,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 _0x6a043b of this['editor']['commands']['commands']())_0x6a043b['affectsData']&&!this['_enabledCommands']['has'](_0x6a043b)&&_0x6a043b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35a116 of this['editor']['commands']['commands']())_0x35a116['affectsData']&&!this['_enabledCommands']['has'](_0x35a116)&&_0x35a116['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xea7b15,_0x2edb55){super(_0xea7b15),this['_suggestions']=_0x2edb55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x576b4a){const _0x4f2979=this['_suggestions']['get'](_0x576b4a);if(!_0x4f2979)throw new _0x40a0bd('track-changes-accept-suggestion-not-found',this);const _0x29f24b=_0x4f2979['getRanges']();this['editor']['model']['canEditAt'](_0x29f24b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f2979);}}class B extends ts{['_suggestions'];constructor(_0x2b65e0,_0x2ac4a8){super(_0x2b65e0),this['_suggestions']=_0x2ac4a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x165204){const _0x188455=this['_suggestions']['get'](_0x165204);if(!_0x188455)throw new _0x40a0bd('track-changes-discard-suggestion-not-found',this);const _0x2079a4=_0x188455['getRanges']();this['editor']['model']['canEditAt'](_0x2079a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x188455);}}function ss(_0x278f9c){return _0x278f9c['sort']((_0x50d2c4,_0x1821ec)=>'deletion'==_0x50d2c4['type']&&'deletion'!=_0x1821ec['type']?-0x1:'deletion'!=_0x50d2c4['type']&&'deletion'==_0x1821ec['type']?0x1:0x0);}function to(_0x4cb58f,_0x1be7e){let _0x18d5cf,_0x351b1e=0x0;const _0x231969=[],_0x1cca6c=_0x1be7e['schema'];for(;_0x351b1e<_0x4cb58f['length'];){const _0x4d5575=_0x4cb58f[_0x351b1e],_0x12ae1a=_0x4cb58f[_0x351b1e+0x1];_0x18d5cf||(_0x18d5cf=_0x1be7e['createPositionBefore'](_0x4d5575)),co(_0x1be7e,_0x4d5575,_0x12ae1a)||(_0x231969['push'](_0x1be7e['createRange'](_0x18d5cf,_0x1cca6c['isObject'](_0x4d5575)?_0x1be7e['createPositionAfter'](_0x4d5575):_0x1be7e['createPositionAt'](_0x4d5575,'end'))),_0x18d5cf=null),_0x351b1e++;}return _0x231969;}function co(_0x363e98,_0x7cb148,_0x1ee654){if(!_0x1ee654)return!0x1;const _0x56bfa9=_0x363e98['createPositionAfter'](_0x7cb148),_0x30a60f=_0x363e98['createPositionBefore'](_0x1ee654);return _0x56bfa9['isTouching'](_0x30a60f);}function rs(_0x43c791,_0x47ffac,_0x49fdfb){for(;_0x49fdfb['length'];){const _0x58b273=_0x49fdfb['splice'](0x0,0x64);_0x43c791['change'](()=>{for(const _0x41085c of _0x58b273)_0x41085c['isInContent']&&_0x47ffac['execute'](_0x41085c['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4a1e78,_0x4cedca,_0x510c9d){super(_0x4a1e78),this['_command']=_0x4cedca,this['_suggestions']=_0x510c9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ff1c0=Array['from'](this['_suggestions']['values']())['some'](_0x56cdce=>_0x56cdce['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3ff1c0;}['execute'](){const _0x48cfb5=ss(Array['from'](this['_suggestions']['values']()));for(const _0x316177 of _0x48cfb5){const _0x5863e6=_0x316177['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5863e6))return;}rs(this['editor']['model'],this['_command'],_0x48cfb5);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x27300d,_0x13d8bc,_0xcf9a78){super(_0x27300d),this['_command']=_0x13d8bc,this['_suggestions']=_0xcf9a78,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e560f=this['editor']['model']['document']['selection'],_0x85dc7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4bcfe3,_0x188588){const _0x39ab12=Array['from'](_0x4bcfe3['getRanges']()),_0x35fec8=new Set();for(const _0x2d7115 of _0x188588)if(_0x2d7115['isInContent']){for(const _0x2bc3f1 of _0x39ab12)for(const _0x31c37a of _0x2d7115['getRanges']())(_0x2bc3f1['isIntersecting'](_0x31c37a)||_0x4bcfe3['isCollapsed']&&!_0x2d7115['isMultiRange']&&_0x2d7115['next']&&_0x31c37a['end']['isTouching'](_0x2bc3f1['start']))&&_0x35fec8['add'](_0x2d7115);}return _0x35fec8;}(_0x3e560f,_0x85dc7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2bfdea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5aa068 of _0x2bfdea){const _0x532774=_0x5aa068['getRanges']();if(!this['editor']['model']['canEditAt'](_0x532774))return;}rs(this['editor']['model'],this['_command'],_0x2bfdea);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d203a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xea9f2f,_0x311241){super(),this['id']=_0x311241['id'],this['type']=_0x311241['type'],this['subType']=_0x311241['subType']||null,this['author']=_0x311241['author'],this['creator']=_0x311241['creator']||_0x311241['author'],this['isExternal']=Boolean(_0x311241['attributes']&&_0x311241['attributes']['@external']),this['data']=null,this['_model']=_0xea9f2f,this['_onAccept']=_0x311241['onAccept'],this['_onDiscard']=_0x311241['onDiscard'],this['_onAttributesChange']=_0x311241['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x311241['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 _0x288cde=this;for(;_0x288cde['previous'];)_0x288cde=_0x288cde['previous'];return _0x288cde;}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'](_0x4734b7){this['_markerNames']['add'](_0x4734b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x199b63=>this['_model']['markers']['get'](_0x199b63))['filter'](_0x161aff=>_0x161aff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x10f29f=>{for(const _0xf492fe of this['getMarkers']())_0x10f29f['removeMarker'](_0xf492fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x1897be){this['_model']['change'](_0x209d42=>{_0x209d42['removeMarker'](_0x1897be);}),this['_markerNames']['delete'](_0x1897be);}['addRange'](_0x24d4f1){const _0x42eb28='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x42eb28),this['_model']['change'](_0xde7b=>{_0xde7b['addMarker'](_0x42eb28,{'range':_0x24d4f1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c4a51){for(const _0xb68baa of this['getRanges']())if(_0xb68baa['isIntersecting'](_0x2c4a51))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x402937=>_0x402937['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5718b1,_0x5ba754)=>[..._0x5718b1,..._0x5ba754['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4cdab4=this['getRanges']();if(0x1!=_0x4cdab4['length'])return null;const _0x28c28c=_0x4cdab4[0x0],_0x2ac925=_0x28c28c['start']['nodeAfter'],_0x43ddb1=_0x28c28c['end']['nodeBefore'];return _0x2ac925 instanceof _0x2557c1?_0x2ac925!=_0x43ddb1?null:_0x2ac925: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 _0x9a0274=[];let _0x563d4b=this['head'];for(;_0x563d4b;)_0x9a0274['push'](_0x563d4b),_0x563d4b=_0x563d4b['next'];return _0x9a0274;}['setAttribute'](_0x369a8f,_0xbcf954){const _0x618c84=_0x2912c1(this['attributes']);_0x4812d9(_0x618c84,_0x369a8f,_0xbcf954),_0xf2bb64(_0x618c84,this['attributes'])||(this['attributes']=_0x618c84,this['_onAttributesChange'](_0x618c84));}['removeAttribute'](_0x225f3f){const _0x38e56b=_0x2912c1(this['attributes']);_0x2e1adc(_0x38e56b,_0x225f3f),_0xf2bb64(_0x38e56b,this['attributes'])||(this['attributes']=_0x38e56b,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 _0x4b80ff()['substr'](0x1,0x5);}}function o(_0x6b4115,_0x3201a7,_0x3ed847){const t=_0x6b4115['t'];switch(_0x3201a7){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',_0x3ed847);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ed847);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ed847);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ed847);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ed847);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',_0x3ed847);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ed847);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',_0x3ed847);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ed847);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ed847);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ed847);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ed847);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ed847);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ed847);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ed847);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ed847);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ed847);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ed847);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ed847);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ed847);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ed847);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ed847);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ed847);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'},_0x3ed847);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ed847);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ed847);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ed847);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ed847);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ed847);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ed847);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ed847);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ed847);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);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 _0x3201a7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1255,_0x39ce02){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1255,this['_locale']=_0x39ce02;}['getDescriptions'](_0x466357){const _0x49c17e=[],_0x10050c=new Set(),_0x1d0de7=new Set();for(let _0x462e2e=0x0;_0x462e2e<_0x466357['length'];_0x462e2e++){const _0x194970=_0x466357[_0x462e2e];if(!_0x194970['isInContent'])continue;const _0x1db8e7=this['_handleCustomCallbackDescription'](_0x194970);if(_0x1db8e7){if(null!=_0x194970['subType']){if(_0x10050c['has'](_0x194970['subType']))continue;_0x10050c['add'](_0x194970['subType']);}_0x49c17e['push'](_0x1db8e7);}else{if('attribute'!=_0x194970['type'])'insertion'!=_0x194970['type']&&'deletion'!=_0x194970['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49c17e,_0x194970,_0x466357[_0x462e2e+0x1]);else{const _0x2e403c=_0x194970['data']['key'];if(_0x1d0de7['has'](_0x2e403c))continue;_0x1d0de7['add'](_0x194970['data']['key']),_0x2e403c==m?this['_handleRenameSuggestionDescription'](_0x49c17e,_0x194970):this['_handleAttributeSuggestionDescription'](_0x49c17e,_0x194970);}}}return this['_resolveDescriptionItems'](_0x49c17e);}['registerDescriptionCallback'](_0x331a71){this['_customCallbacks']['push'](_0x331a71);}['registerElementLabel'](_0x22a8ec,_0x3e2a00,_0x181083=_0x1135d8['normal']){'function'==typeof _0x22a8ec?_0x33419e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22a8ec,'label':_0x3e2a00,'priority':_0x181083}):this['_itemLabels']['set'](_0x22a8ec,_0x3e2a00);}['registerAttributeLabel'](_0x5dfb8c,_0x4df25e){this['_attributeLabels']['set'](_0x5dfb8c,_0x4df25e);}['getItemLabel'](_0x40ec4f,_0x4ab04b=0x1){let _0x4043da;for(const _0x9768b8 of this['_itemLabelsCallbacks'])if(_0x9768b8['matchingCallback'](_0x40ec4f)){_0x4043da=_0x9768b8['label'];break;}return _0x4043da||(_0x4043da=this['_itemLabels']['get'](_0x40ec4f['name'])),_0x4043da?_0x4043da(_0x4ab04b):0x1!==_0x4ab04b?_0x4ab04b+'\x20'+_0x40ec4f['name']+'s':''+_0x40ec4f['name'];}['_addDescriptionItems'](_0x499854,_0xf551c8){const _0x1cfc76=_0xf551c8['getFirstRange']()['getWalker'](),_0x5836ba='insertion'==_0xf551c8['type']?'add':'remove';for(const _0x5701d2 of _0x1cfc76){const _0x60e961=_0x5701d2['item'],_0x3f1a15=_0x499854[_0x499854['length']-0x1];if(_0x60e961['is']('$textProxy'))_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),_0x3f1a15&&'text'==_0x3f1a15['type']?_0x3f1a15[_0x5836ba]+=_0x60e961['data']:_0x499854['push']({'type':'text','add':'add'==_0x5836ba?_0x60e961['data']:'','remove':'remove'==_0x5836ba?_0x60e961['data']:''});else{if(this['_schema']['isObject'](_0x60e961)){const _0x47c91f=_0x60e961;if(_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),'elementEnd'==_0x5701d2['type'])continue;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'Object'&&_0x3f1a15['element']['name']==_0x47c91f['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'Object','element':_0x47c91f,'quantity':0x1}),_0x1cfc76['skip'](_0x22a3aa=>!('elementEnd'==_0x22a3aa['type']&&_0x22a3aa['item']==_0x60e961));}else{if(this['_schema']['checkChild'](_0x60e961,'$text')||_0x60e961['is']('element','softBreak')){const _0x26b323=_0x60e961;if('add'==_0x5836ba&&'elementStart'==_0x5701d2['type']||'remove'==_0x5836ba&&'elementEnd'==_0x5701d2['type'])continue;if(_0x3f1a15&&-0x1==_0x3f1a15['type']['indexOf']('Container')){'text'==_0x3f1a15['type']&&(_0x3f1a15[_0x5836ba]+='\x0a');continue;}let _0x5321ad;if(_0x5321ad='add'==_0x5836ba?_0x26b323['nextSibling']&&!this['_schema']['isObject'](_0x26b323['nextSibling'])?_0x26b323['nextSibling']:null:_0x26b323['previousSibling']&&!this['_schema']['isObject'](_0x26b323['previousSibling'])?_0x26b323['previousSibling']:null,_0x26b323['isEmpty']||_0x5321ad&&_0x5321ad['isEmpty']){const _0x38a32=_0x5321ad&&_0x5321ad['isEmpty']?_0x5321ad:_0x26b323;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'EmptyContainer'&&_0x3f1a15['element']['name']==_0x38a32['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'EmptyContainer','element':_0x38a32,'quantity':0x1});}else _0x499854['push']({'type':_0x5836ba+'Container','element':_0x26b323});}}}}}['_resolveDescriptionItems'](_0x576457){const _0x305641=this['_locale'],_0x1c0db5=[],_0x935715=[],_0xfd3f27=[];for(const _0x29d76f of _0x576457)switch(_0x29d76f['type']){case'text':if(_0x29d76f['add']=_0x29d76f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29d76f['remove']=_0x29d76f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29d76f['add']&&''!=_0x29d76f['remove']){_0x1c0db5['push']({'type':'replace','content':o(_0x305641,'REPLACE_TEXT',['\x22'+_0x29d76f['remove']+'\x22','\x22'+_0x29d76f['add']+'\x22'])});continue;}if(null!=_0x29d76f['add']['match'](/^ +$/)){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['add']['length']))});continue;}if(null!=_0x29d76f['remove']['match'](/^ +$/)){_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['remove']['length']))});continue;}if(''!=_0x29d76f['add']){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0','\x22'+_0x29d76f['add']+'\x22')});continue;}_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0','\x22'+_0x29d76f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addContainer':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Split:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeContainer':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Merge:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addFormat':_0x935715['push'](_0x29d76f['key']);continue;case'removeFormat':_0xfd3f27['push'](_0x29d76f['key']);continue;default:_0x1c0db5['push'](_0x29d76f);}if(_0x935715['length']){const _0x1204fc=_0x935715['map'](_0x4d1bd3=>this['_attributeLabels']['has'](_0x4d1bd3)?this['_attributeLabels']['get'](_0x4d1bd3):_0x4d1bd3)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1204fc)});}if(_0xfd3f27['length']){const _0x36cc7f=_0xfd3f27['map'](_0x4f0a1d=>this['_attributeLabels']['has'](_0x4f0a1d)?this['_attributeLabels']['get'](_0x4f0a1d):_0x4f0a1d)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36cc7f)});}return _0x1c0db5;}['_handleCustomCallbackDescription'](_0xe3c038){for(const _0x38e588 of this['_customCallbacks']){const _0x4319a7=_0x38e588(_0xe3c038);if(_0x4319a7&&'type'in _0x4319a7)return _0x4319a7;}}['_handleAttributeSuggestionDescription'](_0x5a900a,_0x5530b4){const _0x482008=_0x5530b4['data'],_0x5305a5=void 0x0===_0x482008['newValue']?'removeFormat':'addFormat';_0x5a900a['push']({'type':_0x5305a5,'key':_0x482008['key']});}['_handleRenameSuggestionDescription'](_0x5032eb,_0x465b12){_0x5032eb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465b12['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d1dea,_0x42dbc0,_0x25d17d){if(this['_addDescriptionItems'](_0x1d1dea,_0x42dbc0),_0x25d17d&&_0x25d17d['getFirstRange']()&&!_0x42dbc0['getFirstRange']()['end']['isEqual'](_0x25d17d['getFirstRange']()['start'])){const _0x2b883c=_0x1d1dea[_0x1d1dea['length']-0x1],_0x53a1b3='insertion'==_0x42dbc0['type']?'add':'remove';_0x2b883c&&'text'==_0x2b883c['type']&&(_0x2b883c[_0x53a1b3]+='\x0a');}}}class E extends _0x16371d{['afterInit'](){const _0x16d20d=this['editor'],_0x1e90ca=_0x16d20d['plugins']['get']('TrackChangesEditing');_0x16d20d['commands']['get']('showAIAssistant')&&_0x1e90ca['enableCommand']('showAIAssistant');}}class V extends _0x16371d{['afterInit'](){const _0xf4a59a=this['editor'],_0x37c822=_0xf4a59a['locale'];if(!_0xf4a59a['plugins']['has']('AlignmentEditing'))return;const _0x28965f=_0xf4a59a['plugins']['get']('TrackChangesEditing');_0x28965f['enableDefaultAttributesIntegration']('alignment'),_0x28965f['registerBlockAttribute']('alignment'),_0x28965f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37c822,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30c075=this['editor'],_0x5a39c1=_0x30c075['locale'];_0x30c075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3082cb=>{if('formatBlock'!=_0x3082cb['type'])return;const {data:_0x3c1c30}=_0x3082cb;if(_0x3c1c30&&'alignment'==_0x3c1c30['commandName']){const _0x223712=_0x3c1c30['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a39c1,'*Format:*\x20%0',function(_0x4c2ca3){switch(_0x4c2ca3){case'left':return o(_0x5a39c1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a39c1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a39c1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a39c1,'FORMAT_JUSTIFY_TEXT');}}(_0x223712))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x16371d{['afterInit'](){const _0x495973=this['editor'],_0x5b1118=_0x495973['plugins']['get']('TrackChangesEditing'),_0x17e532=_0x495973['locale'];for(const _0x4b9b60 of ti){if(!_0x495973['plugins']['has'](_0x4b9b60))continue;const _0x492d84=_0x4b9b60['slice'](0x0,-0x7)['toLowerCase'](),_0x33cfee='FORMAT_'+_0x492d84['toUpperCase']();_0x5b1118['enableDefaultAttributesIntegration'](_0x492d84),_0x5b1118['registerInlineAttribute'](_0x492d84),_0x5b1118['descriptionFactory']['registerAttributeLabel'](_0x492d84,o(_0x17e532,_0x33cfee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381a99=this['editor'],_0xaf3d70=_0x381a99['locale'],_0x366b36=_0x381a99['plugins']['get']('TrackChangesEditing');function _0x4b836b(_0x36fb2f,_0x2a29d3){_0x366b36['descriptionFactory']['registerDescriptionCallback'](_0x19f323=>{if('formatInline'!=_0x19f323['type'])return;const {data:_0x46766d}=_0x19f323;return _0x46766d&&_0x46766d['commandName']===_0x36fb2f?_0x46766d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xaf3d70,'*Format:*\x20%0',_0x2a29d3)}:{'type':'format','content':o(_0xaf3d70,'*Remove\x20format:*\x20%0',_0x2a29d3)}:void 0x0;});}_0x4b836b('bold',o(_0xaf3d70,'FORMAT_BOLD')),_0x4b836b('italic',o(_0xaf3d70,'FORMAT_ITALIC')),_0x4b836b('underline',o(_0xaf3d70,'FORMAT_UNDERLINE')),_0x4b836b('code',o(_0xaf3d70,'FORMAT_CODE')),_0x4b836b('strikethrough',o(_0xaf3d70,'FORMAT_STRIKETHROUGH')),_0x4b836b('subscript',o(_0xaf3d70,'FORMAT_SUBSCRIPT')),_0x4b836b('superscript',o(_0xaf3d70,'FORMAT_SUPERSCRIPT'));}}class O extends _0x16371d{['afterInit'](){const _0x1df737=this['editor'],_0x39d50d=_0x1df737['locale'];if(!_0x1df737['plugins']['has']('BlockQuoteEditing'))return;const _0x312c29=_0x1df737['plugins']['get']('TrackChangesEditing'),_0x1e3037=this['editor']['commands']['get']('blockQuote');_0x312c29['enableCommand']('blockQuote',(_0x5bed08,_0x3b2136={})=>{const _0x485252=this['editor']['model']['document']['selection'],_0x3089e1=_0x3b2136&&void 0x0!==_0x3b2136['forceValue']?_0x3b2136['forceValue']:!_0x1e3037['value'];let _0x2d3e14=[];if(_0x3089e1){const _0x174112=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x491d83=>oo(_0x491d83)||function(_0x252958,_0x1344bb){const _0xa007b2=_0x1344bb['checkChild'](_0x252958['parent'],'blockQuote'),_0x5d531c=_0x1344bb['checkChild'](['$root','blockQuote'],_0x252958);return _0xa007b2&&_0x5d531c;}(_0x491d83,this['editor']['model']['schema']));_0x2d3e14=to(_0x174112,_0x1df737['model']);}else{const _0x393f40=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x2633f5=>oo(_0x2633f5));_0x2d3e14=to(_0x393f40,_0x1df737['model']);}_0x1df737['model']['change'](()=>{for(const _0x26b454 of _0x2d3e14)_0x312c29['markBlockFormat'](_0x26b454,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3089e1}]});});}),_0x312c29['descriptionFactory']['registerDescriptionCallback'](_0x1a5d31=>{const {data:_0x3e39b0}=_0x1a5d31;if(_0x3e39b0&&'blockQuote'==_0x3e39b0['commandName']){const _0x341ce5=o(_0x39d50d,'ELEMENT_BLOCK_QUOTE');return _0x3e39b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d50d,'*Set\x20format:*\x20%0',_0x341ce5)}:{'type':'format','content':o(_0x39d50d,'*Remove\x20format:*\x20%0',_0x341ce5)};}});}}function oo(_0x2bb569){return'blockQuote'==_0x2bb569['parent']['name'];}class G extends _0x16371d{['afterInit'](){const _0x5c909a=this['editor'];_0x5c909a['plugins']['has']('CaseChange')&&(_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x16371d{['afterInit'](){const _0x554799=this['editor'];_0x554799['commands']['get']('ckbox')&&_0x554799['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x16371d{['afterInit'](){const _0x11f59e=this['editor'];if(!_0x11f59e['plugins']['has']('CodeBlock'))return;const _0x130b7c=_0x11f59e['plugins']['get']('TrackChangesEditing'),_0x2bf4d6=_0x11f59e['locale'],_0x13d066=_0x11f59e['config']['get']('codeBlock')['languages'],_0x3f0741=_0x11f59e['commands']['get']('codeBlock');_0x130b7c['enableCommand']('indentCodeBlock'),_0x130b7c['enableCommand']('outdentCodeBlock'),_0x130b7c['enableCommand']('codeBlock',(_0x3c7b99,_0x176773={})=>{const _0x46b1c8=_0x11f59e['model'],_0x4bf416=_0x11f59e['model']['document']['selection'],_0x1f276f=_0x176773&&void 0x0!==_0x176773['forceValue']?_0x176773['forceValue']:!_0x3f0741['value'];let _0x5c49a8;_0x176773['language']||(_0x176773['language']=_0x13d066[0x0]['language']),_0x5c49a8=_0x1f276f?Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0x1c7313=>eo(_0x1c7313)||function(_0xa2bf05,_0x322743){if(_0xa2bf05['is']('rootElement')||_0x322743['isLimit'](_0xa2bf05))return!0x1;return _0x322743['checkChild'](_0xa2bf05['parent'],'codeBlock');}(_0x1c7313,_0x46b1c8['schema'])):Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0xedf0e3=>eo(_0xedf0e3));const _0xefd74b=to(_0x5c49a8,_0x46b1c8);_0x46b1c8['change'](()=>{for(const _0x20e9c6 of _0xefd74b)_0x130b7c['markBlockFormat'](_0x20e9c6,{'commandName':'codeBlock','commandParams':[{..._0x176773,'forceValue':_0x1f276f}],'formatGroupId':'blockName'});});}),(_0x130b7c['descriptionFactory']['registerElementLabel']('codeBlock',_0x415513=>o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',_0x415513)),_0x130b7c['descriptionFactory']['registerDescriptionCallback'](_0x43a2d4=>{if('formatBlock'!=_0x43a2d4['type'])return;const _0x231899=_0x2bf4d6['t'],{data:_0x709f2d}=_0x43a2d4;if(!_0x709f2d||'codeBlock'!=_0x709f2d['commandName'])return;const _0x5954b8=_0x709f2d['commandParams'][0x0]['language'],_0x52ba06=_0x231899(_0x13d066['find'](_0x439465=>_0x439465['language']===_0x5954b8)['label'])['toLowerCase']();return _0x709f2d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bf4d6,'*Set\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52ba06+')')}:{'type':'format','content':o(_0x2bf4d6,'*Remove\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3fc593){return'codeBlock'==_0x3fc593['name'];}class H extends _0x16371d{['afterInit'](){const _0x5a16cf=this['editor'];if(!_0x5a16cf['plugins']['has']('CommentsEditing'))return;_0x5a16cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x837a72,_0x193e66,_0x8b7011){const _0x37f2af=[];for(const _0x5062b0 of _0x193e66['getItems']())_0x5062b0['hasAttribute'](_0x837a72)&&_0x37f2af['push'](_0x8b7011['createRangeOn'](_0x5062b0));return _0x37f2af;}function _e(_0x4321c8,_0x131a59,{showActiveMarker:_0x5d97bb=!0x0}={}){const _0x3a9b77=_0x4321c8['plugins']['get']('TrackChangesEditing');return(_0xb31d48,_0x17c6b0,_0x5b19c2)=>{if(!_0x5b19c2['consumable']['test'](_0x17c6b0['markerRange'],_0xb31d48['name']))return;const _0x3dfaf8=_0x17c6b0['markerRange']['getWalker'](),_0x5289f6=_0x17c6b0['markerRange']['start'],_0x3a4c9f=_0x4321c8['model']['schema'];let _0x3caa17=null,_0x30be74=null,_0x5b5477=!0x1,_0x3c68a0=!0x1;for(const _0x57cad1 of _0x3dfaf8){const _0x404223=_0x57cad1['item'];_0x5b5477=_0x5b5477||_0x3a4c9f['isContent'](_0x404223);const _0x10eeae=_0x5b19c2['mapper']['toViewElement'](_0x404223);if(_0x10eeae&&_0x10eeae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57cad1['type']&&(_0x3a4c9f['isBlock'](_0x404223)&&!_0x3a4c9f['isLimit'](_0x404223)&&(_0x404223['nextSibling']||_0x5289f6['isAtEnd']?_0x3caa17&&_0x3caa17['parent']==_0x404223||(_0x3caa17=_0x404223,_0x1b16a5(_0x57cad1['previousPosition']),_0x3c68a0=!0x0):_0x30be74=_0x30be74||_0x57cad1['previousPosition']));}function _0x1b16a5(_0x18fcbb){const _0x2c0bd2=_0x5b19c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x131a59}),_0x5c3d64=_0x5b19c2['mapper']['toViewPosition'](_0x18fcbb);_0x5d97bb&&_0x3a9b77['activeMarkers']['includes'](_0x17c6b0['markerName'])&&_0x5b19c2['writer']['addClass']('ck-suggestion-marker--active',_0x2c0bd2),_0x5b19c2['writer']['insert'](_0x5c3d64,_0x2c0bd2),_0x5b19c2['mapper']['bindElementToMarker'](_0x2c0bd2,_0x17c6b0['markerName']);}_0x5b5477||_0x3c68a0||!_0x30be74||_0x1b16a5(_0x30be74);};}class q extends _0x16371d{static get['requires'](){return[_0x11678d];}['init'](){const _0x196263=this['editor'],_0x19360b=_0x196263['plugins']['get']('TrackChangesEditing');_0x19360b['enableCommand']('delete');const _0x24edaa=_0x196263['commands']['get']('deleteForward');_0x19360b['enableCommand']('deleteForward',(_0x166f56,_0x22f68b={})=>{const _0x3d65dc=_0x196263['model']['createSelection'](_0x196263['model']['document']['selection']);_0x3d65dc['isCollapsed']&&_0x196263['model']['modifySelection'](_0x3d65dc,{'direction':'forward','unit':_0x22f68b['unit']});const _0x589dd6=_0x3d65dc['getFirstRange'](),_0x4068cd=_0x218be5['fromRange'](_0x589dd6);let _0x2aafb5;_0x166f56(_0x22f68b),_0x2aafb5='$graveyard'==_0x4068cd['root']['rootName']?_0x196263['model']['createRange'](_0x589dd6['start']):_0x196263['model']['createRange'](_0x4068cd['start'],_0x4068cd['end']),_0x4068cd['detach'](),_0x196263['model']['enqueueChange'](_0x24edaa['buffer']['batch'],_0x23f14e=>{_0x24edaa['buffer']['lock'](),_0x23f14e['setSelection'](_0x23f14e['createRange'](_0x2aafb5['end'])),_0x24edaa['buffer']['unlock']();});}),_0x196263['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x196263,'merge'),{'priority':'high'}),_0x196263['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c8ec,_0x3cddec,_0x20c579)=>{_0x20c579['options']['showSuggestionHighlights']&&_e(_0x196263,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c8ec,_0x3cddec,_0x20c579);},{'priority':'high'}),_0x196263['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23cac1,_0x1b6094,_0x524445)=>{const _0x13d5aa=_0x524445['mapper']['markerNameToElements'](_0x1b6094['markerName']);if(_0x13d5aa){for(const _0x220eb8 of _0x13d5aa)_0x220eb8['is']('uiElement')&&(_0x524445['mapper']['unbindElementFromMarkerName'](_0x220eb8,_0x1b6094['markerName']),_0x524445['writer']['remove'](_0x220eb8));}},{'priority':'high'});}}class z extends _0x16371d{['afterInit'](){const _0x27ff58=this['editor'];if(!_0x27ff58['plugins']['has']('ListEditing'))return;const _0x280749=_0x27ff58['locale'],_0x25541b=_0x27ff58['plugins']['get']('TrackChangesEditing'),_0x4074e2=_0x27ff58['plugins']['has']('TodoListEditing'),_0x2db9f6=!!_0x27ff58['config']['get']('list.multiBlock');function _0xd57398(_0x1a3e84){return{'type':'format','content':''+o(_0x280749,'*Set\x20format:*\x20%0',_0x1a3e84)};}function _0x38cb23(_0x2ee05c){return{'type':'format','content':''+o(_0x280749,'*Remove\x20format:*\x20%0',_0x2ee05c)};}_0x25541b['enableDefaultAttributesIntegration']('numberedList'),_0x25541b['enableDefaultAttributesIntegration']('bulletedList'),_0x25541b['enableDefaultAttributesIntegration']('customNumberedList'),_0x25541b['enableDefaultAttributesIntegration']('customBulletedList'),_0x25541b['enableDefaultAttributesIntegration']('indentList'),_0x25541b['enableDefaultAttributesIntegration']('outdentList'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25541b['registerBlockAttribute']('listItemId'),_0x25541b['registerBlockAttribute']('listType'),_0x25541b['registerBlockAttribute']('listIndent'),_0x2db9f6&&(_0x25541b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25541b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4074e2&&(_0x25541b['enableDefaultAttributesIntegration']('todoList'),_0x25541b['enableDefaultAttributesIntegration']('checkTodoList'),_0x25541b['registerBlockAttribute']('todoListChecked'),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x130d38=>{const {data:_0x16f6b9}=_0x130d38;if(_0x16f6b9&&'todoListChecked'==_0x16f6b9['key'])return{'type':'format','content':_0x16f6b9['newValue']?o(_0x280749,'*Check\x20item*'):o(_0x280749,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39f0b6=>{if(_0x39f0b6['batch']['isUndo'])return!0x1;let _0x23fbf3=!0x1;const _0x37a1d5=_0x25541b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb5dcc1=>'todoListChecked'===_0x25541b['_getAttributeKey'](_0xb5dcc1));for(const _0x2cab31 of _0x37a1d5){'todo'!=_0x2cab31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25541b['_findSuggestions'](_0x2cab31['getFirstRange'](),'attribute')['find'](_0x5bcadb=>'listType'===_0x25541b['_getAttributeKey'](_0x5bcadb['suggestion']))||(_0x39f0b6['removeMarker'](_0x2cab31['getFirstMarker']()),_0x23fbf3=!0x0));}return _0x23fbf3;})),_0x25541b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x280749,'FORMAT_INDENT'));const _0x3ec888={'type':'format','content':''};_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0xf78edd=>{const {data:_0xb82013}=_0xf78edd;if(!_0xb82013||'listType'!=_0xb82013['key'])return;let _0x1cddf2=_0xf78edd['head'];for(;_0x1cddf2;){if(_0x1cddf2['data']&&(('listStyle'==_0x1cddf2['data']['key']||'listMarkerStyle'==_0x1cddf2['data']['key'])&&(_0x1cddf2['data']['newValue']&&'default'!=_0x1cddf2['data']['newValue']||'default'!=_0x1cddf2['data']['oldValue']&&!_0xb82013['newValue'])||!_0x2db9f6&&_0x1cddf2['data']['key']==m))return _0x3ec888;_0x1cddf2=_0x1cddf2['next'];}if(null==_0xb82013['newValue'])switch(_0xb82013['oldValue']){case'bulleted':return _0x38cb23(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38cb23(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38cb23(o(_0x280749,'ELEMENT_TODO_LIST'));}switch(_0xb82013['newValue']){case'bulleted':return _0xd57398(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd57398(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd57398(o(_0x280749,'ELEMENT_TODO_LIST'));}}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x9e431b=>{const {data:_0x4e61ed}=_0x9e431b;if(_0x4e61ed&&'listIndent'==_0x4e61ed['key'])return null==_0x4e61ed['newValue']||null==_0x4e61ed['oldValue']&&0x0==_0x4e61ed['newValue']?_0x3ec888:void 0x0;}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x51c273=>{if('attribute'!=_0x51c273['type'])return;const {data:_0x5833fc}=_0x51c273;if(!_0x5833fc||'listItemId'!=_0x5833fc['key'])return;const _0x4ced42=le(_0x51c273);return'newValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Split:*\x20list\x20item')}:_0x3ec888;}),_0x27ff58['model']['document']['registerPostFixer'](_0x412543=>this['listItemIdFixer'](_0x412543)),_0x27ff58['model']['document']['registerPostFixer'](_0x294cb1=>this['noTrackChangesFixer'](_0x294cb1)),_0x27ff58['model']['document']['registerPostFixer'](_0x458c3c=>this['assureChains'](_0x458c3c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x228d9d){if(_0x228d9d['batch']['isUndo']||!_0x228d9d['batch']['isLocal'])return!0x1;let _0x552d67=!0x1;const _0x2e4ac9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x209906=>_0x209906['data']&&'listItemId'==_0x209906['data']['key'])['filter'](_0x56f424=>_0x56f424['data']['newValue']&&_0x56f424['data']['oldValue']);for(const _0x5ac544 of _0x2e4ac9)le(_0x5ac544)||(_0x228d9d['removeMarker'](_0x5ac544['getFirstMarker']()),_0x552d67=!0x0);return _0x552d67;}['noTrackChangesFixer'](_0x39944e){if(_0x39944e['batch']['isUndo']||!_0x39944e['batch']['isLocal'])return!0x1;const _0x4b66c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b66c8['trackChangesCommand']['value'])return!0x1;let _0x2264cd=!0x1;const _0x47f1f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46fe27=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2219f0=>'attribute'==_0x2219f0['type'])['filter'](_0xdb8c80=>_0x47f1f9['includes'](_0xdb8c80['attributeKey']));if(0x0==_0x46fe27['length'])return _0x2264cd;for(const _0x32c91c of _0x46fe27){const _0x951a29=_0x4b66c8['_findSuggestions'](_0x32c91c['range'],'attribute')['filter'](_0x2553dc=>!_0x2553dc['meta']['isNextTo'])['map'](_0x33fca3=>_0x33fca3['suggestion'])['filter'](_0x2b4f93=>{const _0x5ddcef=_0x4b66c8['_getAttributeKey'](_0x2b4f93);return _0x47f1f9['includes'](_0x5ddcef);});if(_0x951a29['length']){for(const _0x300bf4 of _0x951a29)_0x39944e['removeMarker'](_0x300bf4['getFirstMarker']());_0x2264cd=!0x0;}}return _0x2264cd;}['assureChains'](_0x480545){if(_0x480545['batch']['isUndo']||!_0x480545['batch']['isLocal'])return!0x1;const _0xeb9b22=this['editor']['plugins']['get']('TrackChangesEditing');let _0x211251=!0x1;const _0x928937=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3c0c84 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})){const _0x3847db=_0xeb9b22['_findSuggestions'](_0x3c0c84['getFirstRange'](),'attribute')['map'](_0x290ffb=>_0x290ffb['suggestion'])['filter'](_0x4df98d=>_0x4df98d['data']&&_0x928937['includes'](_0x4df98d['data']['key']));if(!_0x3847db['length'])continue;const _0x41a323=_0x3847db[0x0]['head']['attributes']['groupId'];if(!_0x3847db['every'](_0x171274=>_0x171274['attributes']['groupId']===_0x41a323)){for(const _0x579245 of _0x3847db)_0x2c9bd2(_0x579245,_0x41a323)&&(_0x211251=!0x0);}}return _0x211251;function _0x3099a1(_0x4714d2,_0x37a6f5){for(const _0x329362 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6340d=>'attribute'==_0xa6340d['type']&&_0xa6340d['attributes']['groupId']==_0x4714d2))_0x329362['setAttribute']('groupId',_0x37a6f5);}function _0x2c9bd2(_0x58d30c,_0x504b01){let _0x3be0eb=_0x58d30c['head'],_0x181435=!0x1;for(;_0x3be0eb;)_0x3be0eb['attributes']['groupId']!=_0x504b01&&(_0x3099a1(_0x3be0eb['attributes']['groupId'],_0x504b01),_0x3be0eb['setAttribute']('groupId',_0x504b01),_0x181435=!0x0),_0x3be0eb=_0x3be0eb['next'];return _0x181435;}}['_supportLegacySuggestions'](){const _0x3e1819=this['editor'],_0x10db7=_0x3e1819['locale'],_0x1a7780=_0x3e1819['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a7780['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x106297,_0x48ee62){const _0x1f1d23=[];for(let _0x77691 of _0x106297)_0x77691['start']['nodeAfter']===_0x77691['end']['parent']&&(_0x77691=_0x3e1819['model']['createRange'](_0x3e1819['model']['createPositionAt'](_0x77691['start']['nodeAfter'],0x0))),_0x1f1d23['push'](_0x77691);_0x3e1819['model']['change'](_0x233a22=>{const _0x302e67=_0x3e1819['model']['document']['selection'],_0x1cd705=Array['from'](_0x302e67['getRanges']())['map'](_0x557e30=>_0x218be5['fromRange'](_0x557e30));_0x233a22['setSelection'](_0x1f1d23),_0x3e1819['commands']['get'](_0x48ee62['commandName'])['refresh'](),_0x48ee62['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3e1819['execute'](_0x48ee62['commandName'],..._0x48ee62['commandParams']),_0x233a22['setSelection'](_0x1cd705);for(const _0x521c22 of _0x1cd705)_0x521c22['detach']();});}),_0x1a7780['descriptionFactory']['registerElementLabel'](function(_0x2ffcbf){const _0x2b3659=!_0x3e1819['model']['schema']['isObject'](_0x2ffcbf),_0xfb113c=_0x2ffcbf['previousSibling'],_0x36170a=_0x2ffcbf['nextSibling'],_0x3e6ed8=_0x2ffcbf['getAttribute']('listItemId'),_0x20f094=!_0xfb113c||_0xfb113c['getAttribute']('listItemId')!==_0x3e6ed8,_0x5999c9=!_0x36170a||_0x36170a['getAttribute']('listItemId')!==_0x3e6ed8;return _0x2b3659&&Boolean(_0x3e6ed8)&&_0x20f094&&_0x5999c9;},_0x14296d=>o(_0x10db7,'ELEMENT_LIST_ITEM',_0x14296d));}['_registerLegacyDescription'](){const _0x111402=this['editor'],_0x485e93=_0x111402['locale'];function _0x5973d6(_0x2b64fe){const _0x3bf8b0=_0x111402['commands']['get']('bulletedList')['value'],_0x6917ab=_0x111402['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b64fe?_0x3bf8b0:_0x6917ab;}_0x111402['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49af70){if('formatBlock'!=_0x49af70['type'])return;const {data:_0x439227}=_0x49af70;if(!_0x439227)return;let _0x4f7085,_0x3def6a,_0x1b7cf6,_0x59da29;switch(_0x439227['commandName']){case'bulletedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f7085='*Indent:*\x20%0',_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f7085=function(_0x38e4dc){const _0x5c60c1=_0x38e4dc['getFirstRange']();let _0x82f623=_0x5c60c1['start']['nodeAfter'];for(;_0x82f623&&_0x5c60c1['containsItem'](_0x82f623);){if(_0x82f623['getAttribute']('listIndent')>0x0)return!0x1;_0x82f623=_0x82f623['nextSibling'];}return!0x0;}(_0x49af70)?o(_0x485e93,'*Format:*\x20remove\x20from\x20%0',o(_0x485e93,function(_0x43477b){return'ELEMENT_'+_0x43477b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49af70))):o(_0x485e93,'*Outdent:*\x20%0',o(_0x485e93,'ELEMENT_LIST_ITEM')),_0x3def6a={'type':'format','content':_0x4f7085};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x439227['multipleBlocks']&&(_0x4f7085='*Merge:*\x20%0',_0x3def6a={'type':'deletion','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))});}return _0x3def6a;});}}function le(_0x244a1a){let _0x23bb1a=_0x244a1a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23bb1a;){const _0x45998d=_0x23bb1a['getAttribute']('listItemId');if(!_0x45998d)return!0x1;if(_0x45998d==_0x244a1a['data']['newValue'])return'newValue';if(_0x45998d==_0x244a1a['data']['oldValue'])return'oldValue';_0x23bb1a=_0x23bb1a['previousSibling'];}return!0x1;}class ue extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc9a1=this['editor']['config']['get']('list.properties'),_0x5f1b02=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc9a1['styles']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStyle'),_0x5f1b02['registerBlockAttribute']('listStyle')),_0x2bc9a1['reversed']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listReversed'),_0x5f1b02['registerBlockAttribute']('listReversed')),_0x2bc9a1['startIndex']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStart'),_0x5f1b02['registerBlockAttribute']('listStart'));const _0x399bdb={'type':'format','content':''};_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffeb6=this['editor']['locale'];_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffeb6,'FORMAT_LIST_REVERSED')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x8a272f=>{const {data:_0x1b6d9a}=_0x8a272f;if(_0x1b6d9a&&'listReversed'==_0x1b6d9a['key'])return null==_0x1b6d9a['newValue']||0x0==_0x1b6d9a['newValue']&&null==_0x1b6d9a['oldValue']?_0x399bdb:void 0x0;}),_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffeb6,'FORMAT_LIST_START')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x49cca1=>{const {data:_0x254e54}=_0x49cca1;if(_0x254e54&&'listStart'==_0x254e54['key'])return null==_0x254e54['newValue']||0x1==_0x254e54['newValue']&&null==_0x254e54['oldValue']?_0x399bdb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x12640b=>{if(_0x12640b['batch']['isUndo'])return!0x1;let _0x53dac4=!0x1;const _0x57607c=_0x5f1b02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e05be=>{const _0x45f421=_0x5f1b02['_getAttributeKey'](_0x2e05be);return'listStart'==_0x45f421||'listReversed'==_0x45f421;});for(const _0xab650e of _0x57607c){const _0x535e07=_0xab650e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x535e07||'customNumbered'==_0x535e07)continue;_0x5f1b02['_findSuggestions'](_0xab650e['getFirstRange'](),'attribute')['find'](_0x24abe5=>'listType'==_0x5f1b02['_getAttributeKey'](_0x24abe5['suggestion']))||(_0x12640b['removeMarker'](_0xab650e['getFirstMarker']()),_0x53dac4=!0x0);}return _0x53dac4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xaa2db3){const _0x3b3b00=this['editor']['locale'],{data:_0xdc25c0}=_0xaa2db3,_0x22959d={'type':'format','content':''};if(!_0xdc25c0||'listStyle'!=_0xdc25c0['key'])return;if(!_0xdc25c0['oldValue'])return'default'==_0xdc25c0['newValue']?_0x22959d:{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};if(!_0xdc25c0['newValue']){if('default'==_0xdc25c0['oldValue'])return _0x22959d;let _0x2b4ad7=_0xaa2db3['head'];for(;_0x2b4ad7;){if(_0x2b4ad7['data']&&'listType'==_0x2b4ad7['data']['key']&&_0x2b4ad7['data']['newValue'])return _0x22959d;_0x2b4ad7=_0x2b4ad7['next'];}return{'type':'format','content':''+o(_0x3b3b00,'*Remove\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['oldValue'])))};}if('default'!=_0xdc25c0['newValue'])return{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};let _0x32d699=_0xaa2db3['head'];for(;_0x32d699;){if(_0x32d699['data']&&'listType'==_0x32d699['data']['key']&&_0x32d699['data']['newValue']&&_0x32d699['data']['oldValue'])return _0x22959d;_0x32d699=_0x32d699['next'];}return{'type':'format','content':o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,'ELEMENT_'+_0xaa2db3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x403738=this['editor'],_0x3d9c73=_0x403738['locale'];_0x403738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df5d8=>{if('formatBlock'!=_0x3df5d8['type'])return;const {data:_0x561426}=_0x3df5d8;if(!_0x561426)return;let _0x40fc88,_0x2d33bc;switch(_0x561426['commandName']){case'listStyle':_0x40fc88='*Change\x20to:*\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,o(_0x3d9c73,this['_getTranslationKeyForListStyle'](_0x561426['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40fc88=_0x561426['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88)};break;case'listStart':_0x40fc88='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,_0x561426['commandParams'][0x0]['startIndex'])};}return _0x2d33bc;});}['_getTranslationKeyForListStyle'](_0x2fdfe2){return'ELEMENT_'+function(_0x1d933b){if(pe['includes'](_0x1d933b))return'bulleted';if(ye['includes'](_0x1d933b))return'numbered';return null;}(_0x2fdfe2)['toUpperCase']()+'_LIST_'+_0x2fdfe2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x16371d{static get['requires'](){return[_0x187c42];}['init'](){const _0x2641f6=this['editor'],_0x4e7206=_0x2641f6['plugins']['get']('TrackChangesEditing'),_0x5df6e2=_0x2641f6['commands']['get']('enter');_0x4e7206['enableCommand']('enter',()=>{_0x2641f6['model']['change'](_0x25b31a=>{const _0x1a24ec=_0x2641f6['model']['document']['selection'],_0x477295=_0x1a24ec['getFirstPosition'](),_0x729f26=_0x218be5['fromRange'](_0x1a24ec['getFirstRange']());if(_0x5df6e2['enterBlock'](_0x25b31a)){const _0x39fce2=_0x2641f6['model']['createPositionAt'](_0x477295['parent']['nextSibling'],0x0),_0x21375f=_0x25b31a['createRange'](_0x477295,_0x39fce2);_0x4e7206['markInsertion'](_0x21375f);}else _0x25b31a['setSelection'](_0x25b31a['createRange'](_0x729f26['end']));_0x729f26['detach'](),_0x5df6e2['fire']('afterExecute',{'writer':_0x25b31a});});}),_0x2641f6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2641f6,'split'),{'priority':'high'}),_0x2641f6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x577929,_0x65e5bf,_0x50e3b2)=>{const _0x555505=_0x50e3b2['mapper']['markerNameToElements'](_0x65e5bf['markerName']);if(_0x555505){for(const _0x3ac2da of _0x555505)_0x3ac2da['hasClass']('ck-suggestion-marker-split')&&(_0x50e3b2['mapper']['unbindElementFromMarkerName'](_0x3ac2da,_0x65e5bf['markerName']),_0x50e3b2['writer']['remove'](_0x3ac2da));}},{'priority':'high'}),_0x2641f6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f8283,_0x58808c,_0x22b596)=>{_0x22b596['options']['showSuggestionHighlights']&&_e(_0x2641f6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f8283,_0x58808c,_0x22b596);},{'priority':'high'});}}class J extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xadfcac=this['editor']['plugins']['get']('TrackChangesEditing');_0xadfcac['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xadfcac['enableCommand']('findNext'),_0xadfcac['enableCommand']('findPrevious'),_0xadfcac['enableCommand']('replace'),_0xadfcac['enableCommand']('replaceAll');}['handleFindCommand'](_0x55b3b1,_0x6d15b9,_0x40ae74={}){const _0x38f635=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x55b3b1(_0x5f30e2=>{let _0x4e3c52=('string'==typeof _0x6d15b9?_0x38f635['findByTextCallback'](_0x6d15b9,_0x40ae74):_0x6d15b9)(_0x5f30e2);Array['isArray'](_0x4e3c52)&&(_0x4e3c52={'results':_0x4e3c52,'searchText':'string'==typeof _0x6d15b9?_0x6d15b9:''});const _0xacd92b=_0x4e3c52['results']['filter'](_0x307780=>!0x1===this['_isInDeletionRange'](_0x307780,_0x5f30e2['item']));return{..._0x4e3c52,'results':_0xacd92b};},_0x40ae74);}['_isInDeletionRange'](_0x4c28aa,_0x2599df){const _0x5965a2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['start']),this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['end']));for(const _0x4da7c8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5965a2['getIntersection'](_0x4da7c8['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 _0x16371d{['afterInit'](){const _0x323b9c=this['editor']['locale'],_0xd0b666=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47c57a,commandName:_0x477ae5}of ro)this['editor']['plugins']['has'](_0x47c57a)&&(_0xd0b666['enableDefaultAttributesIntegration'](_0x477ae5),_0xd0b666['registerInlineAttribute'](_0x477ae5));_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x323b9c,'FORMAT_FONT_SIZE')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x323b9c,'FORMAT_FONT_FAMILY')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x323b9c,'FORMAT_FONT_COLOR')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x323b9c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b3566=this['editor'],_0x289cf0=_0x6b3566['locale'];_0x6b3566['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff68b=>{const _0x2873a7=_0x289cf0['t'];if('formatInline'!=_0x4ff68b['type'])return;const {data:_0x493e44}=_0x4ff68b;if(null!=_0x493e44){if('fontSize'==_0x493e44['commandName']){const _0x111215=_0x493e44['commandParams'][0x0]['value'];if(_0x111215){const _0x40b871=_0x2873a7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x15ee6c=>_0x15ee6c['model']==_0x111215)['title'])['toLowerCase']();return{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20size:*\x20%0',_0x40b871)};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x493e44['commandName']){const _0x54d612=_0x493e44['commandParams'][0x0]['value'];return _0x54d612?{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20family:*\x20%0',_0x54d612)}:{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x493e44['commandName']){const _0x25843b=_0x493e44['commandParams'][0x0]['value'];if(_0x25843b){const _0x49c1bc=_0x1ca3e4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12a7aa=>_0x12a7aa['model']==_0x25843b);let _0x5b98a1=_0x25843b,_0xc35b08='';return _0x49c1bc&&(_0x5b98a1=_0x49c1bc['label'],_0xc35b08=_0x2873a7(_0x5b98a1)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20color:*\x20%0',_0xc35b08)['trim'](),'color':{'value':_0x25843b,'title':_0xc35b08||_0x5b98a1}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x493e44['commandName']){const _0xd3af5d=_0x493e44['commandParams'][0x0]['value'];if(_0xd3af5d){const _0x4ac531=_0x1ca3e4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe690b1=>_0xe690b1['model']==_0xd3af5d);let _0x2f9689=_0xd3af5d,_0x5763b3='';return _0x4ac531&&(_0x2f9689=_0x4ac531['label'],_0x5763b3=_0x2873a7(_0x2f9689)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20background\x20color:*\x20%0',_0x5763b3)['trim'](),'color':{'value':_0xd3af5d,'title':_0x5763b3||_0x2f9689}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x16371d{['afterInit'](){const _0x520de3=this['editor'],_0x2be05b=_0x520de3['plugins']['get']('TrackChangesEditing'),_0x10045e=_0x520de3['commands']['get']('copyFormat'),_0x1a6beb=_0x520de3['commands']['get']('pasteFormat');_0x10045e&&_0x1a6beb&&(_0x2be05b['enableDefaultAttributesIntegration']('pasteFormat'),_0x2be05b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x146a3b=this['editor'],_0x212312=_0x146a3b['locale'];_0x146a3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba4e=>{if('formatBlock'!=_0x27ba4e['type']&&'formatInline'!=_0x27ba4e['type'])return;const {data:_0x4490ca}=_0x27ba4e;if(_0x4490ca&&'pasteFormat'===_0x4490ca['commandName']){const _0x37ad02=[],_0x2319d6=_0x4490ca['commandParams'][0x0];for(const [_0x4224e2,_0x486b60]of Object['entries'](_0x2319d6))_0x37ad02['push'](so(_0x146a3b,_0x4224e2,_0x486b60));return _0x37ad02['length']?{'type':'format','content':o(_0x212312,'*Set\x20format\x20to:*\x20%0',_0x37ad02['join'](',\x20'))}:{'type':'format','content':o(_0x212312,'*Remove\x20all\x20formatting*')};}});}}function so(_0x48f702,_0x57a5c5,_0x5d8c43){const _0x3937b9=_0x48f702['locale']['t'],_0x3a8b1e=_0x57a5c5['split'](/(?=[A-Z])/)['join']('\x20'),_0x12ee5e=_0x3937b9(_0x3a8b1e['charAt'](0x0)['toUpperCase']()+_0x3a8b1e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5d8c43)return _0x12ee5e;if('fontColor'===_0x57a5c5||'fontBackgroundColor'===_0x57a5c5){const _0x25c562=_0x1ca3e4(_0x48f702['config']['get']('fontColor.colors'))['find'](_0x548082=>_0x548082['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x25c562?_0x3937b9(_0x25c562['label'])['toLowerCase']():_0x5d8c43)+')';}if('fontSize'===_0x57a5c5&&isNaN(parseFloat(_0x5d8c43))){const _0x2eca75=_0x48f702['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x48f702['config']['get']('fontSize.options'))['find'](_0x40fa09=>_0x40fa09['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x2eca75?_0x3937b9(_0x2eca75['title'])['toLowerCase']():_0x5d8c43)+')';}return _0x12ee5e+'\x20('+_0x5d8c43+')';}class Y extends _0x16371d{['_headingOptions'];['afterInit'](){const _0x4346fe=this['editor'];if(!_0x4346fe['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4346fe['config']['get']('heading.options');const _0xabe875=_0x4346fe['locale'],_0x42d669=_0x4346fe['plugins']['get']('TrackChangesEditing');_0x42d669['enableDefaultAttributesIntegration']('heading');for(const _0x451c0d of this['_headingOptions'])'paragraph'!=_0x451c0d['model']&&_0x42d669['descriptionFactory']['registerElementLabel'](_0x451c0d['model'],_0x750ea6=>{const _0x5777cc=this['_getHeadingLevel'](_0x451c0d['model']);return null!==_0x5777cc?_0x44243a(_0x750ea6,_0x5777cc):_0x1f416f(_0x750ea6,_0x451c0d['title']);});function _0x44243a(_0x1643b6,_0x404e55){return o(_0xabe875,'ELEMENT_HEADING',[_0x1643b6,_0x404e55]);}function _0x1f416f(_0xd0d2c5,_0x381dc5){return o(_0xabe875,'ELEMENT_HEADING_CUSTOM',[_0xd0d2c5,_0x381dc5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1666=this['editor'],_0x395250=_0x1d1666['locale'];function _0xc63de7(_0x11f23f,_0x421230){return o(_0x395250,'ELEMENT_HEADING_CUSTOM',[_0x11f23f,_0x421230]);}_0x1d1666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x507244=>{if('formatBlock'!=_0x507244['type'])return;const {data:_0x2e3a90}=_0x507244;if(_0x2e3a90&&'heading'==_0x2e3a90['commandName']){const _0x3d3680=_0x2e3a90['commandParams'][0x0]['value'],_0x224e63=this['_getHeadingLevel'](_0x3d3680);if(null!==_0x224e63)return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',(_0x5b6897=0x1,_0x3aa3f3=_0x224e63,o(_0x395250,'ELEMENT_HEADING',[_0x5b6897,_0x3aa3f3])))};const _0x471e1b=this['_headingOptions']['find'](_0x47af00=>_0x47af00['model']===_0x3d3680)['title'];return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',_0xc63de7(0x1,_0x471e1b))};}var _0x5b6897,_0x3aa3f3;});}['_getHeadingLevel'](_0x48dc84){const _0x1d36cc=_0x48dc84['match'](/^heading(\d+)/);if(_0x1d36cc)return _0x1d36cc[0x1];const _0x545ca1=this['_headingOptions']?.['find'](_0x208278=>_0x208278['model']==_0x48dc84);if(_0x545ca1&&_0x545ca1['view']){const _0x280f96=_0x545ca1['view'],_0x2ce286=(_0x280f96['name']??_0x280f96)['match'](/^h(\d+)/);if(_0x2ce286)return _0x2ce286[0x1];}return null;}}class Z extends _0x16371d{['afterInit'](){const _0x1ec6f0=this['editor'];if(!_0x1ec6f0['plugins']['has']('HighlightEditing'))return;const _0x3db240=_0x1ec6f0['plugins']['get']('TrackChangesEditing'),_0x6f3997=_0x1ec6f0['locale'];_0x3db240['enableDefaultAttributesIntegration']('highlight'),_0x3db240['registerInlineAttribute']('highlight'),_0x3db240['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6f3997,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc82a9c=this['editor'],_0x4d4dbb=_0xc82a9c['locale'];_0xc82a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519d3f=>{if('formatInline'!=_0x519d3f['type'])return;const {data:_0x375c1a}=_0x519d3f;if(_0x375c1a&&'highlight'==_0x375c1a['commandName']){const _0x32a0ff=_0x4d4dbb['t'],_0x2ba40c=_0x375c1a['commandParams'][0x0]['value'];if(_0x2ba40c){const _0x27186c=_0xc82a9c['config']['get']('highlight.options')['find'](_0x371b8a=>_0x371b8a['model']==_0x2ba40c),_0x1a25f7=_0x32a0ff(_0x27186c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4dbb,'*Set\x20highlight:*\x20%0',_0x1a25f7),'color':{'value':_0x27186c['color'],'title':_0x27186c['title']}};}return{'type':'format','content':o(_0x4d4dbb,'*Remove\x20highlight*',o(_0x4d4dbb,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x16371d{['afterInit'](){const _0xd16f70=this['editor'];if(!_0xd16f70['plugins']['has']('HorizontalLineEditing'))return;_0xd16f70['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a6787=_0xd16f70['plugins']['get']('TrackChangesEditing'),_0x24aa9c=_0xd16f70['locale'];_0x3a6787['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4713ca=>o(_0x24aa9c,'ELEMENT_HORIZONTAL_LINE',_0x4713ca)),_0xd16f70['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1cd2ee,{writer:_0x3f3473,options:_0xf7c24b})=>{if(!_0xf7c24b['showSuggestionHighlights'])return null;const _0x518d56=_0x3f3473['createContainerElement']('div'),_0x38361b=_0x3f3473['createEmptyElement']('hr');return _0x3f3473['addClass']('ck-horizontal-line',_0x518d56),_0x3f3473['insert'](_0x3f3473['createPositionAt'](_0x518d56,0x0),_0x38361b),_0x518d56;},'converterPriority':'high'});}}class et extends _0x16371d{['afterInit'](){const _0x2564b8=this['editor'];if(!_0x2564b8['plugins']['has']('HtmlEmbed'))return;const _0x50cae9=_0x2564b8['plugins']['get']('TrackChangesEditing'),_0x1cadc8=_0x2564b8['locale'];_0x50cae9['descriptionFactory']['registerElementLabel']('rawHtml',_0x18e3da=>o(_0x1cadc8,'ELEMENT_HTML_EMBED',_0x18e3da)),_0x50cae9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50cae9['registerBlockAttribute']('value'),_0x50cae9['descriptionFactory']['registerDescriptionCallback'](_0x2f5444=>{if('attribute'!=_0x2f5444['type'])return;const {data:_0x223a41}=_0x2f5444;if(_0x223a41&&'value'==_0x223a41['key']&&_0x2f5444['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f364f=o(_0x1cadc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cadc8,'*Change\x20%0\x20content*',_0x5f364f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49fb60=this['editor'],_0x37f64d=_0x49fb60['locale'];_0x49fb60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f7dc=>{if('formatBlock'!=_0x44f7dc['type'])return;const {data:_0x318abb}=_0x44f7dc;if(_0x318abb&&'htmlEmbed'==_0x318abb['commandName']){const _0x2dd0d5=o(_0x37f64d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37f64d,'*Change\x20%0\x20content*',_0x2dd0d5)};}});}}class it extends _0x16371d{['afterInit'](){const _0x347f2d=this['editor'];if(!_0x347f2d['plugins']['has']('ImageEditing'))return;const _0x1941c6=_0x347f2d['plugins']['get']('TrackChangesEditing'),_0x27c5f2=_0x347f2d['plugins']['get']('ImageUtils'),_0x47171e=_0x347f2d['locale'];_0x1941c6['enableCommand']('insertImage'),_0x1941c6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2f5245=>o(_0x47171e,'ELEMENT_IMAGE',_0x2f5245)),_0x1941c6['descriptionFactory']['registerElementLabel']('imageInline',_0x4eadc8=>o(_0x47171e,'ELEMENT_INLINE_IMAGE',_0x4eadc8)),_0x1941c6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47171e,'ELEMENT_CAPTION')),_0x347f2d['plugins']['has']('ImageUploadEditing')&&_0x1941c6['enableCommand']('uploadImage'),_0x347f2d['plugins']['has']('ImageBlockEditing')&&_0x347f2d['plugins']['has']('ImageInlineEditing')&&(_0x1941c6['enableCommand']('imageTypeInline',(_0x2932f5,_0x5c0caa)=>{const _0x558d7c=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']);_0x347f2d['model']['change'](()=>{_0x1941c6['markBlockFormat'](_0x558d7c,{'commandName':'imageTypeInline','commandParams':[_0x5c0caa]},[],'convertBlockImageToInline');});}),_0x1941c6['enableCommand']('imageTypeBlock',(_0x53c280,_0x354f33)=>{_0x347f2d['model']['change'](_0x62b090=>{let _0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0xaede9f=_0x2570a3['fromPosition'](_0x3fe2e9['start'],'toPrevious'),_0x1b31ad=_0x2570a3['fromPosition'](_0x3fe2e9['end'],'toNext');_0x1941c6['forceDefaultExecution'](()=>_0x53c280(_0x354f33)),_0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0x5e354a=_0x62b090['createRange'](_0xaede9f,_0x1b31ad);_0xaede9f['detach'](),_0x1b31ad['detach'](),_0x1941c6['markBlockFormat'](_0x25a343,{'commandName':'imageTypeInline','commandParams':[_0x354f33]},[],'convertInlineImageToBlock'),_0x5e354a['start']['isBefore'](_0x3fe2e9['start'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x5e354a['start'],_0x3fe2e9['start']),'convertInlineImageToBlock'),_0x3fe2e9['end']['isBefore'](_0x5e354a['end'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x3fe2e9['end'],_0x5e354a['end']),'convertInlineImageToBlock');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1941c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e8f62])=>{const _0x39a00c=_0x1941c6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3595c3=_0x5e8f62['start'],_0x326992=_0x5e8f62['end'];const _0x364e8b=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x3595c3,'backward'),_0x59f907=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x326992,'forward');_0x364e8b['isCollapsed']&&(_0x3595c3=_0x364e8b['start']),_0x59f907['isCollapsed']&&(_0x326992=_0x59f907['end']),_0x39a00c([_0x347f2d['model']['createRange'](_0x3595c3,_0x326992)]);}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x38d1b6),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x38d1b6)),_0x347f2d['plugins']['has']('ImageCaptionEditing')&&(_0x1941c6['enableCommand']('toggleImageCaption',(_0x23b055,_0x502a2c)=>{const _0x59b121=_0x347f2d['plugins']['get']('ImageCaptionUtils');let _0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d);_0x347f2d['model']['change'](()=>{if(_0x3ab86b)return void _0x1941c6['markDeletion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b));const _0x102998=_0x27c5f2['isBlockImage'](_0x3c5f5d);_0x23b055(_0x502a2c),_0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d),_0x1941c6['markInsertion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b),_0x102998?null:'imageCaption');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x38d1b6));const _0x1e2a0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5db414(_0x167fe7,_0x752986){const _0x321724=_0x1e2a0b['findIndex'](({type:_0x39914f,subType:_0x3ddc40})=>_0x167fe7['type']==_0x39914f&&_0x167fe7['subType']==_0x3ddc40),_0xd61820=_0x1e2a0b['findIndex'](({type:_0x3302ec,subType:_0x60708c})=>_0x752986['type']==_0x3302ec&&_0x752986['subType']==_0x60708c);if(_0x321724<0x0||_0xd61820<0x0)return!0x1;const _0x4e74f8=_0x167fe7['getFirstRange'](),_0x10060c=_0x752986['getFirstRange']();if((0x0==_0x321724||0x1==_0x321724)&&0x2==_0xd61820&&_0x4e74f8['isIntersecting'](_0x10060c))return!0x0;if(0x2==_0x321724&&0x3==_0xd61820){const _0x1d38bb=_0x1941c6['_findSuggestions'](_0x4e74f8,'insertion')['filter'](({suggestion:_0x1875ca,meta:_0x4aae9d})=>_0x4aae9d['isOwn']&&'convertInlineImageToBlock'==_0x1875ca['subType']);if(_0x1d38bb['length']>0x1&&_0x10060c['end']['isEqual'](_0x4e74f8['start']))return!0x0;if(0x1==_0x1d38bb['length']&&(_0x4e74f8['start']['isEqual'](_0x10060c['end'])||_0x4e74f8['end']['isEqual'](_0x10060c['start'])))return!0x0;}if(0x3==_0x321724&&0x3==_0xd61820&&_0x4e74f8['start']['isBefore'](_0x10060c['start'])){const _0x5df218=_0x4e74f8['end']['nodeAfter'],_0x5f11c5=_0x10060c['start']['nodeBefore'];return _0x27c5f2['isBlockImage'](_0x5df218)&&_0x5df218===_0x5f11c5;}return!0x1;}function _0x38d1b6(_0x3c6d06,_0x525ead){return _0x5db414(_0x3c6d06,_0x525ead)?[_0x3c6d06,_0x525ead]:_0x5db414(_0x525ead,_0x3c6d06)?[_0x525ead,_0x3c6d06]:null;}_0x347f2d['plugins']['has']('ImageResize')&&(_0x1941c6['enableDefaultAttributesIntegration']('resizeImage'),_0x1941c6['registerBlockAttribute']('resizedWidth'),_0x1941c6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47171e,'FORMAT_IMAGE_SIZE'))),_0x347f2d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1941c6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1941c6['registerBlockAttribute']('alt')),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x33b6bd=>{if(!!_0x1e2a0b['find'](({type:_0x44dba4,subType:_0x43b115})=>_0x33b6bd['type']==_0x44dba4&&_0x33b6bd['subType']==_0x43b115))return _0x33b6bd['previous']?{}:void 0x0;}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x2409d3=>{if('insertion'==_0x2409d3['type']||'deletion'==_0x2409d3['type']){const _0x1f3675=_0x2409d3['getContainedElement']();if(_0x1f3675&&_0x1f3675['is']('element','caption'))return{'type':'insertion'==_0x2409d3['type']?'addObject':'removeObject','element':_0x1f3675,'quantity':0x1};}}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x23a6f8=>'formatBlock'==_0x23a6f8['type']&&'convertInlineImageToBlock'==_0x23a6f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23a6f8['type']&&'convertBlockImageToInline'==_0x23a6f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x5232da=>{if('attribute'!=_0x5232da['type'])return;const {data:_0x17a227}=_0x5232da;if(!_0x17a227||'alt'!=_0x17a227['key'])return;const _0x4aa398=_0x17a227['newValue'];return _0x4aa398?{'type':'format','content':o(_0x47171e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4aa398+'\x22')}:{'type':'format','content':o(_0x47171e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28969e=this['editor'],_0x9b3a7f=_0x28969e['locale'];_0x28969e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2647c2=>{if('formatBlock'!=_0x2647c2['type']&&'formatInline'!=_0x2647c2['type'])return;const {data:_0x10e3cc}=_0x2647c2;if(_0x10e3cc){if('imageTextAlternative'==_0x10e3cc['commandName']){const _0x2971e7=_0x10e3cc['commandParams'][0x0]['newValue'];return _0x2971e7?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2971e7+'\x22')}:{'type':'format','content':o(_0x9b3a7f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x10e3cc['commandName']){const _0x5bc758=_0x10e3cc['commandParams'][0x0]['width'];return _0x5bc758?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20width:*\x20%0',_0x5bc758)}:{'type':'format','content':o(_0x9b3a7f,'*Reset\x20image\x20width*')};}}});}}class st extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x8e6f70=this['editor']['locale'],_0x276e9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x276e9f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x276e9f['registerBlockAttribute']('src'),_0x276e9f['descriptionFactory']['registerDescriptionCallback'](_0x59df0e=>{if('attribute'!=_0x59df0e['type'])return;const {data:_0x580faf}=_0x59df0e;return _0x580faf&&'src'==_0x580faf['key']?_0x580faf['newValue']&&_0x580faf['oldValue']?{'type':'format','content':o(_0x8e6f70,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3586e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b76e=this['editor'],_0x3484a8=_0x13b76e['locale'];_0x13b76e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373ce1=>{if('formatBlock'!=_0x373ce1['type']&&'formatInline'!=_0x373ce1['type'])return;const {data:_0x2633ad}=_0x373ce1;if(!_0x2633ad||'replaceImageSource'!=_0x2633ad['commandName'])return;return{'type':'format','content':o(_0x3484a8,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x16371d{['afterInit'](){const _0x115e01=this['editor'];if(!_0x115e01['plugins']['has']('ImageStyleEditing'))return;const _0x5c968e=_0x115e01['plugins']['get']('TrackChangesEditing'),_0x13cfa2=_0x115e01['plugins']['get']('ImageUtils'),_0x31e92c={};_0x5c968e['enableCommand']('imageStyle',(_0x22f6f5,_0x480291)=>{const _0x33dd26=_0x115e01['plugins']['get']('Users')['me'],_0x45b1d6=_0x115e01['commands']['get']('imageStyle');let _0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x12d4bb=_0x45b1d6['value'];if(_0x12d4bb==_0x480291['value'])return;const _0x5dea6a={'commandName':'imageStyle','commandParams':[_0x480291],'formatGroupId':_0x4b80ff()};_0x115e01['model']['change'](()=>{if(_0x5c968e['getSuggestions']()['filter'](_0x22d73e=>_0x22d73e['isInContent']&&_0x33dd26==_0x22d73e['author']&&('formatBlock'==_0x22d73e['type']||'formatInline'==_0x22d73e['type'])&&('imageStylePreApply'==_0x22d73e['subType']||'imageStylePostApply'==_0x22d73e['subType'])&&_0x22d73e['getFirstRange']()['isEqual'](_0xf87bac))['forEach'](_0x46eeab=>_0x5c968e['discardSuggestion'](_0x46eeab['head'])),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x45b1d6['refresh'](),_0x115e01['commands']['get']('imageTypeInline')['refresh'](),_0x115e01['commands']['get']('imageTypeBlock')['refresh'](),_0x12d4bb=_0x45b1d6['value'],_0x12d4bb!=_0x480291['value'])return _0x13cfa2['isInlineImage'](_0x5a7660)&&_0x45b1d6['shouldConvertImageType'](_0x480291['value'],_0x5a7660)?(_0x22f6f5({..._0x480291,'setImageSizes':!0x1}),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),void _0x5c968e['markBlockFormat'](_0x5a7660,{..._0x5dea6a,'commandReversedParams':[{'value':_0x12d4bb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13cfa2['isBlockImage'](_0x5a7660)?_0x5c968e['markBlockFormat'](_0x5a7660,_0x5dea6a,[],'imageStylePostApply'):_0x5c968e['markInlineFormat'](_0xf87bac,_0x5dea6a,'imageStylePostApply'));});});for(const _0x1f4c48 of _0x115e01['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x31e92c[_0x1f4c48['name']]=_0x1f4c48['title']['toLowerCase']();_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5edcba])=>{_0x13cfa2['setImageNaturalSizeAttributes'](_0x5edcba['getContainedElement']());}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44662b,_0x58bb13)=>{_0x5c968e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44662b,{'commandName':_0x58bb13['commandName'],'commandParams':_0x58bb13['commandReversedParams']});}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x146876,_0x9ced56){if(_0x1ae430(_0x146876,_0x9ced56))return[_0x146876,_0x9ced56];if(_0x1ae430(_0x9ced56,_0x146876))return[_0x9ced56,_0x146876];return null;});const _0x358d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ae430(_0x279810,_0x1f3b9e){const _0x421bde=_0x358d5d['findIndex'](({type:_0x544f8e,subType:_0x14f5ed})=>_0x279810['type']==_0x544f8e&&_0x279810['subType']==_0x14f5ed),_0x2be0e5=_0x358d5d['findIndex'](({type:_0x524d4c,subType:_0x5398f2})=>_0x1f3b9e['type']==_0x524d4c&&_0x1f3b9e['subType']==_0x5398f2);if(_0x421bde<0x0||_0x2be0e5<0x0)return!0x1;const _0x3cc822=_0x279810['getFirstRange'](),_0x13d840=_0x1f3b9e['getFirstRange']();if((0x0==_0x421bde||0x1==_0x421bde)&&0x2==_0x2be0e5&&_0x3cc822['isIntersecting'](_0x13d840))return!0x0;if(0x2==_0x421bde&&0x3==_0x2be0e5){const _0x1530ee=_0x5c968e['_findSuggestions'](_0x3cc822,'insertion')['filter'](({suggestion:_0x171cce,meta:_0x29e200})=>_0x29e200['isOwn']&&'convertInlineImageToBlock'==_0x171cce['subType']);if(_0x1530ee['length']>0x1&&_0x13d840['end']['isEqual'](_0x3cc822['start']))return!0x0;if(0x1==_0x1530ee['length']&&(_0x3cc822['start']['isEqual'](_0x13d840['end'])||_0x3cc822['end']['isEqual'](_0x13d840['start'])))return!0x0;}if(0x3==_0x421bde&&0x3==_0x2be0e5&&_0x3cc822['start']['isBefore'](_0x13d840['start'])){const _0x4cd20a=_0x3cc822['end']['nodeAfter'],_0x4a079c=_0x13d840['start']['nodeBefore'];return _0x13cfa2['isBlockImage'](_0x4cd20a)&&_0x4cd20a===_0x4a079c;}return!0x1;}_0x115e01['model']['document']['registerPostFixer'](()=>{let _0x16fdf1=!0x1;const _0x5c2a46=Array['from'](_0x115e01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c369a,data:_0x4794b8}of _0x5c2a46){const {group:_0x293e96,type:_0x391fae,subType:_0x31bba9,id:_0x1b7e73}=_0x5c968e['_splitMarkerName'](_0x1c369a);if('suggestion'==_0x293e96&&_0x5c968e['hasSuggestion'](_0x1b7e73)){if('formatBlock'==_0x391fae&&('imageStylePreApply'==_0x31bba9||'imageStylePostApply'==_0x31bba9)){const _0x888313=_0x5c968e['getSuggestion'](_0x1b7e73);if(_0x4794b8['newRange']){const _0x45f8af=_0x888313['getFirstRange']()['getContainedElement']();if(_0x13cfa2['isBlockImage'](_0x45f8af))continue;_0x5c968e['discardSuggestion'](_0x888313),_0x16fdf1=!0x0;}}if('insertion'==_0x391fae&&'imageCaption'==_0x31bba9&&!_0x4794b8['newRange']){const _0x2d4f65=_0x5c968e['getSuggestion'](_0x1b7e73);_0x2d4f65['next']&&_0x2d4f65['next']['isInContent']&&(_0x5c968e['discardSuggestion'](_0x2d4f65['next']),_0x16fdf1=!0x0);}}}return _0x16fdf1;}),this['_registerLegacyDescription'](_0x31e92c);}['_registerLegacyDescription'](_0x5dc75d){const _0x19fe00=this['editor'],_0x50166e=_0x19fe00['locale'];_0x19fe00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dae90=>{if('formatBlock'!=_0x5dae90['type']&&'formatInline'!=_0x5dae90['type'])return;const {data:_0x372632}=_0x5dae90;if(!_0x372632||'imageStyle'!=_0x372632['commandName'])return;const _0x196f70=_0x372632['commandParams'][0x0]['value'];return _0xd2bae2('side'===_0x196f70?o(_0x50166e,'FORMAT_SIDE_IMAGE'):_0x5dc75d[_0x196f70]||_0x196f70);function _0xd2bae2(_0x24e99e){return{'type':'format','content':o(_0x50166e,'*Format:*\x20%0',_0x24e99e)};}});}}class ot extends _0x16371d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48db4c){super(_0x48db4c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5851ba=this['editor'],_0xd75ccd=_0x5851ba['commands']['get']('importWord'),_0x3b1fd4=_0x5851ba['commands']['get']('trackChanges');_0xd75ccd&&(_0xd75ccd['on']('execute',(_0x66ceb0,[,_0x24ce09])=>{this['_trackChangesValueDuringImport']=_0x3b1fd4['value'],_0x24ce09['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd75ccd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd75ccd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b1fd4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5851ba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f95cc,_0x4ebd02){const {suggestions:_0x24c711}=_0x4ebd02,_0x50711b=this['editor']['commands']['get']('trackChanges'),_0x162c51=_0x50711b['value'];this['_trackChangesValueDuringImport']!==_0x162c51&&(_0x50711b['execute'](),this['_trackChangesExecuted']=!0x0),_0x24c711&&_0x24c711['forEach'](({id:_0x549a8c,type:_0x1367e8,author:_0x47a64a,created_at:_0x30faef})=>{const _0x494686={'id':_0x549a8c,'type':_0x1367e8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47a64a,'createdAt':_0x30faef?new Date(_0x30faef):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x494686);});}}class rt extends _0x16371d{['afterInit'](){const _0x4f160b=this['editor'],_0x321fa3=_0x4f160b['plugins']['get']('TrackChangesEditing');if(_0x4f160b['plugins']['has']('IndentEditing')&&(_0x321fa3['enableCommand']('indent'),_0x321fa3['enableCommand']('outdent')),_0x4f160b['plugins']['has']('IndentBlock')){for(const _0x43d463 of['indentBlock','outdentBlock'])_0x321fa3['enableDefaultAttributesIntegration'](_0x43d463);}const _0x274d0c=_0x4f160b['locale'];_0x321fa3['registerBlockAttribute']('blockIndent'),_0x321fa3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x274d0c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e658=this['editor'],_0x539880=_0x23e658['locale'],_0x2eb7f5=_0x23e658['plugins']['get']('TrackChangesEditing');_0x2eb7f5['descriptionFactory']['registerDescriptionCallback'](_0x4efca5=>{if('formatBlock'!=_0x4efca5['type'])return;const {data:_0x6606a}=_0x4efca5;if(!_0x6606a)return;if('indentBlock'!=_0x6606a['commandName']&&'outdentBlock'!=_0x6606a['commandName'])return;const _0x8e4810=_0x4efca5['getItems']()[0x0],_0x2857cd=_0x2eb7f5['descriptionFactory']['getItemLabel'](_0x8e4810);return'indentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Indent:*\x20%0',_0x2857cd)}:'outdentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Outdent:*\x20%0',_0x2857cd)}:void 0x0;});}}class at extends _0x16371d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x16371d{['afterInit'](){const _0x44f609=this['editor'];if(!_0x44f609['plugins']['has']('LinkEditing'))return;const _0x5f2457=_0x44f609['plugins']['get']('TrackChangesEditing'),_0x56eb39=_0x44f609['commands']['get']('link');_0x5f2457['enableDefaultAttributesIntegration']('link'),_0x5f2457['enableDefaultAttributesIntegration']('unlink'),_0x5f2457['registerInlineAttribute']('linkHref');for(const _0x5f4be0 of _0x56eb39['manualDecorators'])_0x5f2457['registerInlineAttribute'](_0x5f4be0['id']),_0x5f2457['descriptionFactory']['registerAttributeLabel'](_0x5f4be0['id'],'link\x20('+_0x5f4be0['label']['toLowerCase']()+')');_0x5f2457['descriptionFactory']['registerDescriptionCallback'](_0x1894b7=>{if('attribute'!=_0x1894b7['type'])return;const {data:_0x4b3e40}=_0x1894b7;if(!_0x4b3e40||'linkHref'!=_0x4b3e40['key'])return;const _0xe31695=_0x4b3e40['newValue'],_0x482fc8=_0x44f609['locale'];return{'type':'format','content':null==_0xe31695?o(_0x482fc8,'*Remove\x20link*'):o(_0x482fc8,'*Set\x20link:*\x20%0','\x22'+_0xe31695+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e948d=this['editor'],_0x3f6f6e=_0x3e948d['locale'];_0x3e948d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bac7c=>{if('formatInline'!=_0x3bac7c['type'])return;const {data:_0x5e9e0b}=_0x3bac7c;if(_0x5e9e0b){if('link'==_0x5e9e0b['commandName']){const _0x3f6f59=_0x5e9e0b['commandParams'][0x0];return{'type':'format','content':o(_0x3f6f6e,'*Set\x20link:*\x20%0','\x22'+_0x3f6f59+'\x22')};}return'unlink'==_0x5e9e0b['commandName']?{'type':'format','content':o(_0x3f6f6e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x16371d{['afterInit'](){const _0x5f1179=this['editor'],_0x5842bd=_0x5f1179['locale'];if(!_0x5f1179['plugins']['has']('LegacyListEditing'))return;const _0x7d5b86=_0x5f1179['plugins']['get']('TrackChangesEditing'),_0x17b70a=_0x5f1179['plugins']['has']('LegacyTodoListEditing');function _0x4e0d6c(_0x28e374){return()=>{const _0x24dc9f=_0x5f1179['model']['document']['selection'],_0x375599=_0x5f1179['commands']['get'](_0x28e374);if(_0x375599['value'])return void _0x5f1179['execute']('paragraph',{});const _0x199b1d=_0x28e374['slice'](0x0,-0x4),_0x5d5d50=function(_0x5a7b54,_0x40905f,_0x307ddf){let _0x185ada=Array['from'](_0x5a7b54)['filter'](_0x283d92=>function(_0xa665a7,_0x63e9e0){return _0x63e9e0['checkChild'](_0xa665a7['parent'],'listItem')&&!_0x63e9e0['isObject'](_0xa665a7);}(_0x283d92,_0x307ddf));_0x185ada=_0x185ada['filter'](_0x2af99d=>!_0x2af99d['is']('element','listItem')||_0x2af99d['getAttribute']('listType')!=_0x40905f);const _0x1b3b4d=new Set();for(const _0x5ccef6 of _0x185ada)_0x5ccef6['is']('element','listItem')?_0x1b3b4d['add'](me(_0x5ccef6)):_0x1b3b4d['add'](_0x5ccef6);return Array['from'](_0x1b3b4d);}(_0x24dc9f['getSelectedBlocks'](),_0x199b1d,_0x5f1179['model']['schema']);_0x5f1179['model']['change'](()=>{for(const _0x1b86b9 of _0x5d5d50)_0x7d5b86['markBlockFormat'](_0x1b86b9,{'commandName':_0x28e374,'commandParams':[{'forceValue':!_0x375599['value']}],'formatGroupId':'blockName'},fe(_0x1b86b9));});};}function _0x3eac64(_0x3eb57e){return()=>{const _0x181b25=function(_0x567900){let _0x3460f2=Array['from'](_0x567900);const _0x30cf8=_0x3460f2['findIndex'](_0x4aadc1=>'listItem'!=_0x4aadc1['name']);return _0x30cf8>-0x1&&(_0x3460f2=_0x3460f2['slice'](0x0,_0x30cf8)),_0x3460f2;}(_0x5f1179['model']['document']['selection']['getSelectedBlocks']()),_0x1d2b25=_0x5f1179['model']['createRange'](_0x5f1179['model']['createPositionAt'](_0x181b25[0x0],'before'),_0x5f1179['model']['createPositionAt'](_0x181b25[_0x181b25['length']-0x1],'end'));_0x5f1179['model']['change'](()=>{_0x7d5b86['markBlockFormat'](_0x1d2b25,{'commandName':_0x3eb57e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22d7a6){const _0x136288=new Set();for(const _0x1813e7 of _0x22d7a6){let _0x2cceef=_0x1813e7['nextSibling'];for(;_0x2cceef&&_0x2cceef['getAttribute']('listIndent')>_0x1813e7['getAttribute']('listIndent');)_0x136288['add'](_0x2cceef),_0x2cceef=_0x2cceef['nextSibling'];}return Array['from'](_0x136288);}(_0x181b25));});};}_0x7d5b86['enableCommand']('numberedList',_0x4e0d6c('numberedList')),_0x7d5b86['enableCommand']('bulletedList',_0x4e0d6c('bulletedList')),_0x17b70a&&_0x7d5b86['enableCommand']('todoList',_0x4e0d6c('todoList')),_0x7d5b86['enableCommand']('indentList',_0x3eac64('indentList')),_0x7d5b86['enableCommand']('outdentList',_0x3eac64('outdentList')),_0x17b70a&&_0x7d5b86['enableCommand']('checkTodoList',()=>{const _0x5ea52c=_0x5f1179['commands']['get']('checkTodoList'),_0x135355=Array['from'](_0x5ea52c['_selectedElements']);_0x135355['filter'](_0x1402a0=>_0x1402a0['getAttribute']('todoListChecked')!=_0x5ea52c['value']),_0x5f1179['model']['change'](()=>{for(const _0x5dc3fd of _0x135355)_0x7d5b86['markBlockFormat'](_0x5dc3fd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ea52c['value']}]});});}),_0x7d5b86['descriptionFactory']['registerElementLabel']('listItem',_0x49b308=>o(_0x5842bd,'ELEMENT_LIST_ITEM',_0x49b308)),_0x7d5b86['descriptionFactory']['registerDescriptionCallback'](_0x328e15=>{if('formatBlock'!=_0x328e15['type']&&'formatInline'!=_0x328e15['type'])return;const {data:_0x873954}=_0x328e15;if(_0x873954){if('numberedList'==_0x873954['commandName']||'bulletedList'==_0x873954['commandName']||'todoList'==_0x873954['commandName'])switch(_0x873954['commandName']['replace']('List','')){case'bulleted':return _0x393956(o(_0x5842bd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x393956(o(_0x5842bd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x393956(o(_0x5842bd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Indent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Outdent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x873954['commandName'])return _0x873954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5842bd,'*Check\x20item*')}:{'type':'format','content':o(_0x5842bd,'*Uncheck\x20item*')};}function _0x393956(_0x3e46df){return{'type':'format','content':o(_0x5842bd,'*Change\x20to:*\x20%0',_0x3e46df)};}});}}function me(_0x32b7d5){const _0x1bfbb8=_0x32b7d5['getAttribute']('listIndent');if(0x0==_0x1bfbb8)return _0x32b7d5;let _0x4f4a1e=_0x32b7d5;for(;_0x32b7d5['previousSibling']&&_0x32b7d5['previousSibling']['is']('element','listItem');){const _0xfa449d=_0x32b7d5['previousSibling']['getAttribute']('listIndent');if(_0xfa449d==_0x1bfbb8)_0x4f4a1e=_0x32b7d5['previousSibling'];else{if(_0xfa449d<_0x1bfbb8)break;}_0x32b7d5=_0x32b7d5['previousSibling'];}return _0x4f4a1e;}function fe(_0x1e32a5){const _0xe215ab=[];if(_0x1e32a5['is']('element','listItem')&&_0x1e32a5['getAttribute']('listIndent')>0x0){let _0x2eb5eb=_0x1e32a5['nextSibling'];for(;_0x2eb5eb&&'listItem'==_0x2eb5eb['name']&&_0x2eb5eb['getAttribute']('listIndent')==_0x1e32a5['getAttribute']('listIndent');)_0xe215ab['push'](_0x2eb5eb),_0x2eb5eb=_0x2eb5eb['nextSibling'];}return _0xe215ab;}class K extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x347844=this['editor']['config']['get']('list.properties'),_0xed5304=this['editor']['plugins']['get']('TrackChangesEditing');_0x347844['styles']&&_0xed5304['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x347844['reversed']&&_0xed5304['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x347844['startIndex']&&_0xed5304['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xed5304['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x172078,_0x38481a={}){const _0x2e415d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d54f6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2e415d['markMultiRangeBlockFormat'](_0x2d54f6,{'commandName':'listStyle','commandParams':[{'type':_0x38481a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x240fda,_0xb9464d={}){const _0x290dcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db082=this['_getSuggestionBlocks'](_0x565ae8=>_0x565ae8['is']('element','listItem')&&'numbered'===_0x565ae8['getAttribute']('listType'));if(_0x3db082['length']<0x1)return;const _0x54b1a5=_0x3db082['map'](_0x357eaa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x357eaa,'before'),this['editor']['model']['createPositionAt'](_0x357eaa,0x0)));this['editor']['model']['change'](()=>{_0x290dcd['markMultiRangeBlockFormat'](_0x54b1a5,{'commandName':'listReversed','commandParams':[{'reversed':_0xb9464d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd11fb9,_0x3cd73e={}){const _0x4bf776=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40fb7a=this['_getSuggestionBlocks'](_0x2f28a3=>_0x2f28a3['is']('element','listItem')&&'numbered'===_0x2f28a3['getAttribute']('listType'));if(_0x40fb7a['length']<0x1)return;const _0x2d62d7=_0x40fb7a['map'](_0x5b32f1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b32f1,'before'),this['editor']['model']['createPositionAt'](_0x5b32f1,0x0)));this['editor']['model']['change'](()=>{_0x4bf776['markMultiRangeBlockFormat'](_0x2d62d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x3cd73e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1fd2a1){if('formatBlock'!=_0x1fd2a1['type']&&'formatInline'!=_0x1fd2a1['type'])return;const _0x5b4259=this['editor']['locale'],{data:_0x3d78f2}=_0x1fd2a1;if(!_0x3d78f2)return;let _0x3a4b8e,_0x412de8;switch(_0x3d78f2['commandName']){case'listStyle':_0x3a4b8e='*Change\x20to:*\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,o(_0x5b4259,this['_getTranslationKeyForListStyle'](_0x3d78f2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a4b8e=_0x3d78f2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e)};break;case'listStart':_0x3a4b8e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,_0x3d78f2['commandParams'][0x0]['startIndex'])};}return _0x412de8;}['_getSuggestionBlocksForListStyle'](){const _0x276a42=this['editor']['plugins']['get']('LegacyListUtils');let _0x5dea77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5dea77[0x0]?.['is']('element','listItem')&&_0x5dea77['unshift'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5dea77[_0x5dea77['length']-0x1]?.['is']('element','listItem')&&_0x5dea77['push'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5dea77=[...new Set(_0x5dea77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5dea77=_0x5dea77['filter'](_0x51fdb9=>_0x51fdb9['is']('element','listItem'))),_0x5dea77;}['_getSuggestionBlocks'](_0x32549b){const _0x4574dd=this['editor']['plugins']['get']('LegacyListUtils');let _0x15f27e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x32549b)['map'](_0x4e1ffb=>{const _0x58129b=this['editor']['model']['createPositionAt'](_0x4e1ffb,0x0);return[..._0x4574dd['getSiblingNodes'](_0x58129b,'backward'),..._0x4574dd['getSiblingNodes'](_0x58129b,'forward')];})['flat']();return _0x15f27e=[...new Set(_0x15f27e)],_0x15f27e;}['_getTranslationKeyForListStyle'](_0xa58715){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa58715)||'default')['toUpperCase']()+'_LIST_'+_0xa58715['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x16371d{['afterInit'](){const _0x5b8825=this['editor'];if(!_0x5b8825['plugins']['has']('MediaEmbedEditing'))return;const _0x4c1c4b=_0x5b8825['plugins']['get']('TrackChangesEditing'),_0x10f640=_0x5b8825['locale'];_0x4c1c4b['enableCommand']('mediaEmbed'),_0x4c1c4b['descriptionFactory']['registerElementLabel']('media',_0x12f434=>o(_0x10f640,'ELEMENT_MEDIA',_0x12f434)),_0x5b8825['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xa33bf3,{writer:_0x471d20,options:_0x9b93cb})=>{if(_0x9b93cb['showSuggestionHighlights'])return _0x471d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b8825['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e5e88,_0x34bf0b,_0x1fdda4)=>{_0x1fdda4['options']['showSuggestionHighlights']&&_0x3e5e88['stop']();},{'priority':'high'});}}class gt extends _0x16371d{['afterInit'](){const _0x379098=this['editor'];_0x379098['plugins']['has']('MentionEditing')&&_0x379098['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x16371d{['afterInit'](){const _0x57da05=this['editor'],_0x1fd1e3=_0x57da05['plugins']['get']('TrackChangesEditing');_0x57da05['plugins']['has']('MultiLevelList')&&(_0x1fd1e3['enableDefaultAttributesIntegration']('multiLevelList'),_0x1fd1e3['registerBlockAttribute']('listMarkerStyle'),_0x1fd1e3['descriptionFactory']['registerDescriptionCallback'](_0xa6dc69=>this['handleDescriptions'](_0xa6dc69)));}['handleDescriptions'](_0x18308a){const _0x3ebb34=this['editor']['locale'],{data:_0x28c71c}=_0x18308a,_0x3683c0={'type':'format','content':''};if(_0x28c71c&&'listMarkerStyle'==_0x28c71c['key']){if(!_0x28c71c['oldValue'])return{'type':'format','content':o(_0x3ebb34,'*Set\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['newValue']+')'};if(!_0x28c71c['newValue']){let _0x5663bb=_0x18308a['head'];for(;_0x5663bb;){if(_0x5663bb['data']&&'listType'==_0x5663bb['data']['key']&&_0x5663bb['data']['newValue'])return _0x3683c0;_0x5663bb=_0x5663bb['next'];}return{'type':'format','content':o(_0x3ebb34,'*Remove\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['oldValue']+')'};}}}}class mt extends _0x16371d{['afterInit'](){const _0x2d7224=this['editor'];if(!_0x2d7224['plugins']['has']('PageBreakEditing'))return;_0x2d7224['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24a1e7=_0x2d7224['plugins']['get']('TrackChangesEditing'),_0x141d90=_0x2d7224['locale'];_0x24a1e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x52bdee=>o(_0x141d90,'ELEMENT_PAGE_BREAK',_0x52bdee));}}class dt extends _0x16371d{['afterInit'](){const _0x1f306b=this['editor'];if(!_0x1f306b['plugins']['has']('Paragraph'))return;const _0x5ddcee=_0x1f306b['locale'],_0x35313e=_0x1f306b['plugins']['get']('TrackChangesEditing');_0x35313e['descriptionFactory']['registerElementLabel']('paragraph',_0x2fd400=>o(_0x5ddcee,'ELEMENT_PARAGRAPH',_0x2fd400)),_0x35313e['enableDefaultAttributesIntegration']('paragraph'),_0x35313e['enableCommand']('insertParagraph'),_0x1f306b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f306b),{'priority':'highest'}),_0x1f306b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43ea15,_0x15be8d,_0x8c15e9)=>{_0x8c15e9['options']['showSuggestionHighlights']&&nr(_0x1f306b,{'showActiveMarker':!0x1})(_0x43ea15,_0x15be8d,_0x8c15e9);},{'priority':'highest'});const _0xcf3b41=_0x35313e['descriptionFactory'];_0xcf3b41['registerDescriptionCallback'](_0x270027=>{if('insertion'!==_0x270027['type'])return;const {start:_0x3e5538,end:_0x13788a}=_0x270027['getFirstRange']();if(!_0x3e5538['isTouching'](_0x13788a)||!_0x3e5538['nodeAfter'])return;const _0x508487=_0x1f306b['model']['schema'],_0x5eb498=_0x3e5538['nodeAfter'];return _0x508487['isBlock'](_0x5eb498)&&!_0x508487['isLimit'](_0x5eb498)&&_0x508487['checkChild'](_0x5eb498,'$text')?{'type':'insertion','content':o(_0x5ddcee,'*Insert:*\x20%0',_0xcf3b41['getItemLabel'](_0x5eb498,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35c5a0=this['editor'],_0x176abd=_0x35c5a0['locale'];_0x35c5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abfa4=>{if('formatBlock'!=_0x3abfa4['type'])return;const {data:_0x36df92}=_0x3abfa4;return _0x36df92&&'paragraph'==_0x36df92['commandName']?{'type':'format','content':o(_0x176abd,'*Change\x20to:*\x20%0',o(_0x176abd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3ebd73,{showActiveMarker:_0x6f0002=!0x0}={}){return(_0x181b46,_0x20c956,_0x2fdb04)=>{const _0x55387a=_0x3ebd73['plugins']['get']('TrackChangesEditing'),_0x5a0c6f=_0x20c956['markerRange']['start'],_0x43bf88=_0x20c956['markerRange']['end'],_0x4ed886=_0x3ebd73['model']['schema'];if(!_0x5a0c6f['isTouching'](_0x43bf88)||!_0x5a0c6f['nodeAfter'])return;const _0x561655=_0x5a0c6f['nodeAfter'];if(_0x4ed886['isBlock'](_0x561655)&&!_0x4ed886['isLimit'](_0x561655)&&_0x4ed886['checkChild'](_0x561655,'$text')){if(!_0x2fdb04['consumable']['consume'](_0x20c956['markerRange'],_0x181b46['name']))return;const _0x37d766=_0x2fdb04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ac1c4=_0x2fdb04['mapper']['toViewPosition'](_0x43bf88);_0x6f0002&&_0x55387a['activeMarkers']['includes'](_0x20c956['markerName'])&&_0x2fdb04['writer']['addClass']('ck-suggestion-marker--active',_0x37d766),_0x2fdb04['writer']['insert'](_0x4ac1c4,_0x37d766),_0x2fdb04['mapper']['bindElementToMarker'](_0x37d766,_0x20c956['markerName']);}};}class pt extends _0x16371d{['afterInit'](){const _0x32c024=this['editor'];if(!_0x32c024['plugins']['has']('RemoveFormatEditing'))return;_0x32c024['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49e245=this['editor'];_0x49e245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f284=>{if('formatBlock'!=_0x53f284['type']&&'formatInline'!=_0x53f284['type'])return;const {data:_0x1962df}=_0x53f284;return _0x1962df&&'removeFormat'==_0x1962df['commandName']?{'type':'format','content':o(_0x49e245['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x16371d{['afterInit'](){const _0x4c0a03=this['editor'];if(!_0x4c0a03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f316d=_0x4c0a03['plugins']['get']('TrackChangesEditing');_0x5f316d['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f316d['enableCommand']('goToNextRestrictedEditingException');const _0x3af6b1=_0x4c0a03['plugins']['get']('RestrictedEditingModeEditing');_0x3af6b1['enableCommand']('trackChanges'),_0x3af6b1['enableCommand']('acceptSuggestion'),_0x3af6b1['enableCommand']('discardSuggestion'),_0x3af6b1['enableCommand']('acceptAllSuggestions'),_0x3af6b1['enableCommand']('discardAllSuggestions'),_0x3af6b1['enableCommand']('acceptSelectedSuggestions'),_0x3af6b1['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x16371d{static get['requires'](){return[_0x5406cc];}['init'](){const _0x4ae660=this['editor'],_0x2186d5=_0x4ae660['plugins']['get']('TrackChangesEditing');_0x2186d5['enableCommand']('shiftEnter'),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27e639,_0x2c1026,_0x3e6070)=>{_0x3e6070['options']['showSuggestionHighlights']&&de(_0x4ae660,{'showActiveMarker':!0x1})(_0x27e639,_0x2c1026,_0x3e6070);}),_0x2186d5['descriptionFactory']['registerElementLabel']('softBreak',_0x36f7b7=>o(_0x4ae660['locale'],'ELEMENT_LINE_BREAK',_0x36f7b7));}}function de(_0x1fdfb7,{showActiveMarker:_0x28f27c=!0x0}={}){return(_0x5a1c97,_0x13fbed,_0x4c81ea)=>{const _0x5ab417=_0x1fdfb7['plugins']['get']('TrackChangesEditing');if(!_0x4c81ea['consumable']['test'](_0x13fbed['markerRange'],_0x5a1c97['name']))return;const _0x1e564e=_0x1fdfb7['model'];for(const _0xb0e10e of _0x13fbed['markerRange']['getItems']()){if(!_0xb0e10e['is']('element','softBreak'))continue;const _0x3fe903='deletion'==_0x13fbed['markerName']['split'](':')[0x1]?'merge':'split',_0x557c56=_0x4c81ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fe903}),_0x5890f2=_0x4c81ea['mapper']['toViewPosition'](_0x1e564e['createPositionBefore'](_0xb0e10e));_0x28f27c&&_0x5ab417['activeMarkers']['includes'](_0x13fbed['markerName'])&&_0x4c81ea['writer']['addClass']('ck-suggestion-marker--active',_0x557c56),_0x4c81ea['writer']['insert'](_0x5890f2,_0x557c56),_0x4c81ea['mapper']['bindElementToMarker'](_0x557c56,_0x13fbed['markerName']);}};}class wt extends _0x16371d{['afterInit'](){const _0x515665=this['editor'],_0x3c7795=_0x515665['model'],_0x3a5312=_0x515665['locale'];if(!_0x515665['plugins']['has']('StandardEditingModeEditing'))return;const _0x264703=_0x515665['plugins']['get']('TrackChangesEditing'),_0x15a885='restrictedEditingException',_0xe93248=_0x515665['commands']['get'](_0x15a885);_0x264703['enableCommand'](_0x15a885,(_0x27cabe,_0xbe9838={})=>{const _0x1b590a=_0x3c7795['document']['selection'];if(_0x1b590a['isCollapsed'])return void _0x27cabe(_0xbe9838);const _0x5871d1=void 0x0!==_0xbe9838['forceValue']?_0xbe9838['forceValue']:!_0xe93248['value'];_0x3c7795['change'](()=>{const _0x332570=Array['from'](_0x1b590a['getRanges']());for(const _0x3f83ff of _0x332570){const _0x41f8af=_0x5871d1?[_0x3f83ff]:io(_0x15a885,_0x3f83ff,_0x3c7795);for(const _0x1aa37b of _0x41f8af)_0x264703['markInlineFormat'](_0x1aa37b,{'commandName':_0x15a885,'commandParams':[{'forceValue':_0x5871d1}]});}});}),_0x264703['descriptionFactory']['registerDescriptionCallback'](_0x3150fe=>{if('formatBlock'!=_0x3150fe['type']&&'formatInline'!=_0x3150fe['type'])return;const {data:_0x55db98}=_0x3150fe;return _0x55db98&&_0x55db98['commandName']==_0x15a885?_0x55db98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x16371d{['afterInit'](){const _0x7539bb=this['editor'];if(!_0x7539bb['plugins']['has']('Style')||!_0x7539bb['plugins']['has']('DataSchema'))return;const _0xca823d=_0x7539bb['plugins']['get']('TrackChangesEditing'),_0x50b0a1=_0x7539bb['locale'],_0x1c1405=_0x7539bb['config']['get']('style')||{},_0x29daf8=_0x7539bb['plugins']['get']('GeneralHtmlSupport'),_0x2e0e81=_0x7539bb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7539bb['plugins']['get']('DataSchema'),_0x1c1405['definitions']);_0xca823d['enableDefaultAttributesIntegration']('style');const _0x55eec3=new Set();for(const _0x5319f2 of _0x2e0e81['block']){const _0x35aa00=_0x29daf8['getGhsAttributeNameForElement'](_0x5319f2['element']);_0x55eec3['add'](_0x35aa00);}const _0x216991=new Set();for(const _0x4feb46 of _0x2e0e81['inline']){const _0x273640=_0x29daf8['getGhsAttributeNameForElement'](_0x4feb46['element']);_0x216991['add'](_0x273640);for(const _0x20af0d of _0x4feb46['ghsAttributes'])_0x216991['add'](_0x20af0d);}for(const _0x139b24 of _0x55eec3)_0xca823d['registerBlockAttribute'](_0x139b24),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x139b24,o(_0x50b0a1,'FORMAT_STYLE'));for(const _0x5bc4a9 of _0x216991)_0xca823d['registerInlineAttribute'](_0x5bc4a9),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x5bc4a9,o(_0x50b0a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9900=this['editor'],_0xc47628=_0x4d9900['locale'];_0x4d9900['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd822=>{if('formatBlock'!=_0x3cd822['type']&&'formatInline'!=_0x3cd822['type'])return;const {data:_0x530250}=_0x3cd822;return _0x530250&&'style'===_0x530250['commandName']?_0x530250['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc47628,'*Set\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc47628,'*Remove\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x16371d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ade94){super(_0x1ade94),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x506265=this['editor'],_0x5bc3ee=_0x506265['model']['document']['selection'];if(!_0x506265['plugins']['has']('TableEditing'))return;const _0x50a85a=_0x506265['locale'],_0x149c88=_0x506265['plugins']['get']('TrackChangesEditing'),_0x472023=_0x506265['plugins']['get']('TableUtils');_0x149c88['descriptionFactory']['registerElementLabel']('table',_0x3b5f5c=>o(_0x50a85a,'ELEMENT_TABLE',_0x3b5f5c)),this['_setupColumnsRowsFixing'](),_0x149c88['enableCommand']('insertTable'),_0x149c88['enableCommand']('selectTableRow'),_0x149c88['enableCommand']('selectTableColumn');for(const _0x21b00e of['insertTableRowAbove','insertTableRowBelow']){const _0x2d22c7=_0x506265['commands']['get'](_0x21b00e);_0x149c88['enableCommand'](_0x21b00e,_0x62b386=>{_0x506265['model']['change'](_0x337646=>{_0x62b386();const _0x6ad049='above'===_0x2d22c7['order'],_0x375d41=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x503bff=_0x472023['getRowIndexes'](_0x375d41),_0x3a61ad=_0x6ad049?_0x503bff['first']-0x1:_0x503bff['last']+0x1,_0x2bb991=_0x375d41[0x0]['findAncestor']('table'),_0x3da915=_0x472023['createTableWalker'](_0x2bb991,{'startRow':_0x3a61ad,'endRow':_0x3a61ad}),_0x1eb0ea=Array['from'](_0x3da915)['map'](_0x26d4b4=>_0x337646['createRangeOn'](_0x26d4b4['cell']));_0x149c88['markMultiRangeInsertion'](_0x1eb0ea,'tableRow');});});}for(const _0x266131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x12e1c0=_0x506265['commands']['get'](_0x266131);_0x149c88['enableCommand'](_0x266131,_0x33b01e=>{_0x506265['model']['change'](_0x5e990f=>{_0x33b01e();const _0x252e8d='left'===_0x12e1c0['order'],_0x23bfd3=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x4747f9=_0x472023['getColumnIndexes'](_0x23bfd3),_0x412bd2=_0x252e8d?_0x4747f9['first']-0x1:_0x4747f9['last']+0x1,_0x4ba3ed=_0x23bfd3[0x0]['findAncestor']('table'),_0x1c9590=_0x472023['createTableWalker'](_0x4ba3ed,{'startRow':0x0,'column':_0x412bd2,'includeAllSlots':!0x1}),_0x407b5e=Array['from'](_0x1c9590)['map'](_0x264738=>_0x5e990f['createRangeOn'](_0x264738['cell']));_0x149c88['markMultiRangeInsertion'](_0x407b5e,'tableColumn');});});}for(const _0x2889e4 of['removeTableRow','removeTableColumn']){const _0x42b013=_0x2889e4['substr'](0xb),_0xb84f3f=_0x42b013['toLowerCase'](),_0x265645=_0xb84f3f['substr'](0x0,0x3)+'span',_0x591983='table'+_0x42b013,_0x32a97e='min'+_0x42b013,_0x335d06='max'+_0x42b013;_0x149c88['enableCommand'](_0x2889e4,()=>{_0x506265['model']['change'](_0x4af68c=>{const _0x103246=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x233beb=_0x103246[0x0]['findAncestor']('table');let _0x1ff00f;if('removeTableRow'==_0x2889e4){const _0x1ab9b4=_0x472023['getRowIndexes'](_0x103246);_0x1ff00f={'startRow':_0x1ab9b4['first'],'endRow':_0x1ab9b4['last'],'includeAllSlots':!0x0};}else{const _0x314286=_0x472023['getColumnIndexes'](_0x103246);_0x1ff00f={'startColumn':_0x314286['first'],'endColumn':_0x314286['last'],'includeAllSlots':!0x0};}const _0x3d2a06=_0x472023['createTableWalker'](_0x233beb,_0x1ff00f),_0xd56e=Array['from'](_0x3d2a06)['map'](({cell:_0x160ea8})=>_0x160ea8),_0x5c9b2c=Ee(_0xd56e['filter'](_0xcd24e1=>_0xcd24e1['hasAttribute'](_0x265645))),_0x4dd095=Ee(_0xd56e['filter'](_0x18b2c7=>!_0x18b2c7['hasAttribute'](_0x265645)))['map'](_0x2963a1=>_0x4af68c['createRangeOn'](_0x2963a1)),_0x37f086=_0x149c88['markMultiRangeDeletion'](_0x4dd095,_0x591983);if(_0x37f086&&('tableRow'==_0x37f086['subType']||'tableColumn'==_0x37f086['subType'])){const _0x222f1b=this['_getSuggestionCoords'](_0x37f086);for(const _0x42012a of _0x5c9b2c){const _0x50da60=_0x4af68c['createRangeOn'](_0x42012a),_0x3eb712=_0x472023['getCellLocation'](_0x42012a),_0x4ebe63=_0x42012a['getAttribute'](_0x265645)-0x1,_0x290c7a=_0x222f1b[_0x32a97e],_0x126825=_0x222f1b[_0x335d06];_0x290c7a<=_0x3eb712[_0xb84f3f]&&_0x3eb712[_0xb84f3f]+_0x4ebe63<=_0x126825&&_0x37f086['addRange'](_0x50da60);}}});});}function _0x4270be(_0x148d6c){const _0x481304=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x324903=>_0x218be5['fromRange'](_0x324903));_0x506265['model']['change'](_0x1bdb15=>{const _0x21f990=_0x1bdb15['batch'];_0x148d6c=_0x148d6c['filter'](_0x3ed51c=>'$graveyard'!=_0x3ed51c['root']['rootName']),_0x1bdb15['setSelection'](_0x148d6c),_0x506265['commands']['get']('removeTableRow')['refresh'](),_0x506265['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x506265['model']['enqueueChange'](()=>{_0x506265['model']['enqueueChange'](_0x21f990,_0x379a96=>{const _0x245647=_0x481304['filter'](_0xebba01=>'$graveyard'!=_0xebba01['root']['rootName']);_0x245647['length']>0x0&&_0x379a96['setSelection'](_0x245647);for(const _0xa481cc of _0x481304)_0xa481cc['detach']();});});});}function _0x481d8c(_0x5e990e){_0x506265['model']['change'](_0x2645da=>{const _0x44d3e8=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x52caf0=>_0x218be5['fromRange'](_0x52caf0)),_0x2f38e7=[];for(const _0x5dcc77 of _0x5e990e)for(const _0x5ab8ca of _0x5dcc77['getItems']({'shallow':!0x0}))_0x2f38e7['push'](_0x5ab8ca);for(const _0x254c87 of _0x2f38e7)'$graveyard'!=_0x254c87['root']['rootName']&&(_0x2645da['setSelection'](_0x2645da['createPositionAt'](_0x254c87,0x0)),_0x506265['commands']['get']('removeTableColumn')['refresh'](),_0x506265['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2bd969=_0x44d3e8['filter'](_0x4ba638=>'$graveyard'!=_0x4ba638['root']['rootName']);_0x2bd969['length']>0x0&&_0x2645da['setSelection'](_0x2bd969);for(const _0x35bf51 of _0x44d3e8)_0x35bf51['detach']();});}function _0x5bb1e5(_0xa9a6c0,_0x257db){return _0x257db['every'](_0x5869de=>_0xa9a6c0['some'](_0x5539eb=>_0x5539eb['end']['isEqual'](_0x5869de['start'])||_0x5869de['end']['isEqual'](_0x5539eb['start'])));}function _0x5db349(_0x3c54c1,_0x32866a){return!_0x3c54c1['some'](_0x5acee1=>_0x32866a['some'](_0x5237e3=>_0x5acee1['isIntersecting'](_0x5237e3)))&&_0x3c54c1['some'](_0x46e077=>_0x32866a['some'](_0x59e283=>_0x46e077['end']['isTouching'](_0x59e283['start'])));}_0x506265['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x218ade,_0x13a9b9,_0x550f2d)=>{if(!_0x550f2d['options']['showSuggestionHighlights'])return;const _0x236a16=_0x13a9b9['item'];if(!_0x236a16)return;const _0x695d68=_0x550f2d['mapper']['toViewElement'](_0x236a16);function _0x5e90eb(_0x97665c){return Array['isArray'](_0x97665c)?_0x97665c:[_0x97665c];}_0x695d68&&'tableCell'===_0x236a16['name']&&_0x2b8f92(_0x695d68,_0x550f2d['writer'],(_0x321bbb,_0x4b85f2,_0x4b47d3)=>_0x4b47d3['addClass'](_0x5e90eb(_0x4b85f2['classes']),_0x321bbb),(_0x5e0f00,_0x19b7c0,_0x64c8ea)=>_0x64c8ea['removeClass'](_0x5e90eb(_0x19b7c0['classes']),_0x5e0f00));},{'priority':'highest'}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0x10be0e=>{if('insertion'!=_0x10be0e['type']&&'deletion'!=_0x10be0e['type'])return;const _0xff48e2=_0x10be0e['getContainedElement']();if(null!=_0xff48e2&&_0xff48e2['is']('element','table')){if('insertion'==_0x10be0e['type']){const _0x1a62cd=_0x10be0e['getItems']()['filter'](_0x5a4248=>_0x5a4248['is']('$textProxy'))['map'](_0x555c35=>_0x555c35['data']);if(_0x1a62cd['length'])return{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a62cd['join']('\x20')+'\x22'))};}if('deletion'==_0x10be0e['type']){const _0x416dcc=_0x10be0e['getItems']()['filter'](_0x2c907a=>_0x2c907a['is']('$textProxy'))['map'](_0x1930b0=>_0x1930b0['data']);if(_0x416dcc['length'])return{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x416dcc['join']('\x20')+'\x22'))};}}}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0xa75a46=>{if('tableRow'==_0xa75a46['subType']){const _0x2713ab=_0xa75a46['getItems']()['filter'](_0x44514c=>_0x44514c['is']('$textProxy'))['map'](_0x44c484=>_0x44c484['data']),_0x5d54a2=this['_getSuggestionCoords'](_0xa75a46),_0x367cae=_0x5d54a2['maxRow']-_0x5d54a2['minRow']+0x1;if('insertion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};if('deletion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};}if('tableColumn'==_0xa75a46['subType']){const _0x2c8b59=_0xa75a46['getItems']()['filter'](_0x5fe706=>_0x5fe706['is']('$textProxy'))['map'](_0x4c66a1=>_0x4c66a1['data']),_0x1ec519=this['_getSuggestionCoords'](_0xa75a46),_0x40f4a2=_0x1ec519['maxColumn']-_0x1ec519['minColumn']+0x1;if('insertion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};if('deletion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};}}),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5db349),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5db349);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a69de=this['editor'],_0x16ff09=_0x4a69de['model']['document']['selection'];return(_0x1bf9ab,_0x50cbbe)=>{_0x4a69de['model']['change'](_0x4ee3d7=>{const {commandName:_0x9a66a9,commandParams:_0x5858fa}=_0x50cbbe;let _0x7250d=_0x1bf9ab[0x0]['end']['nodeBefore'];_0x5858fa&&_0x5858fa[0x0]&&!0x1===_0x5858fa[0x0]['forceValue']&&(_0x7250d=_0x1bf9ab[0x0]['start']['nodeAfter']);const _0x165936=_0x4ee3d7['createRangeIn'](_0x7250d);if('$graveyard'==_0x165936['root']['rootName'])return;const _0x5e8379=Array['from'](_0x16ff09['getRanges']())['map'](_0x4689cb=>_0x218be5['fromRange'](_0x4689cb));_0x4ee3d7['setSelection'](_0x165936),_0x4a69de['commands']['get'](_0x9a66a9)['refresh'](),_0x5858fa['push']({'forceDefaultExecution':!0x0}),_0x4a69de['execute'](_0x9a66a9,..._0x5858fa);const _0x1ff0c2=_0x5e8379['filter'](_0x366eae=>'$graveyard'!=_0x366eae['root']['rootName']);_0x1ff0c2['length']>0x0&&_0x4ee3d7['setSelection'](_0x1ff0c2);for(const _0x57efa1 of _0x5e8379)_0x57efa1['detach']();});};}['_getCoordsForCells'](_0x5aaf6a){const _0x666a90=this['editor']['plugins']['get']('TableUtils');let _0x301649=Number['MAX_SAFE_INTEGER'],_0x107760=Number['MIN_SAFE_INTEGER'],_0x525fa6=Number['MAX_SAFE_INTEGER'],_0x4c2195=Number['MIN_SAFE_INTEGER'];for(const _0x48ab00 of _0x5aaf6a){if('$graveyard'==_0x48ab00['root']['rootName'])continue;const {row:_0x2943e1,column:_0x127d24}=_0x666a90['getCellLocation'](_0x48ab00),_0x50df5b=_0x48ab00['hasAttribute']('rowspan')?_0x48ab00['getAttribute']('rowspan')-0x1:0x0,_0x2cae4d=_0x48ab00['hasAttribute']('colspan')?_0x48ab00['getAttribute']('colspan')-0x1:0x0;_0x301649=_0x2943e1<_0x301649?_0x2943e1:_0x301649,_0x107760=_0x2943e1+_0x50df5b>_0x107760?_0x2943e1+_0x50df5b:_0x107760,_0x525fa6=_0x127d24<_0x525fa6?_0x127d24:_0x525fa6,_0x4c2195=_0x127d24+_0x2cae4d>_0x4c2195?_0x127d24+_0x2cae4d:_0x4c2195;}return{'minRow':_0x301649,'maxRow':_0x107760,'minColumn':_0x525fa6,'maxColumn':_0x4c2195};}['_setupColumnsRowsFixing'](){const _0x3e3124=this['editor'],_0x1e034c=_0x3e3124['plugins']['get']('TrackChangesEditing'),_0x145a8d=_0x3e3124['plugins']['get']('TableUtils');_0x3e3124['model']['document']['on']('change:data',()=>{const _0x3c2d4f=Array['from'](_0x3e3124['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5086a7,data:_0x2ade9}of _0x3c2d4f){const {group:_0x336556,id:_0x7c5184,subType:_0x16e54f}=_0x1e034c['_splitMarkerName'](_0x5086a7);if('suggestion'!=_0x336556)continue;if(null!=_0x2ade9['oldRange'])continue;const _0x28ce6a=_0x1e034c['getSuggestion'](_0x7c5184);this['_tablePostFixingSubtypes']['includes'](_0x16e54f)&&this['_tableSuggestions']['add'](_0x28ce6a);}},{'priority':'low'});const _0x48fc89=(_0x1bed2c,_0xdae753)=>{let _0x4500c8=!0x1;const _0x3ca589=_0xdae753['createRangeOn'](_0x1bed2c),_0x4b9afc=_0x1bed2c['findAncestor']('table'),_0x111e40=_0x145a8d['getCellLocation'](_0x1bed2c);for(const _0xd5ae38 of this['_tableSuggestions']){const _0x4f01e1=_0xd5ae38['subType'],_0x5104ad=_0x4f01e1['startsWith']('tablePaste'),_0x1ca175=_0x4f01e1['substr'](_0x5104ad?0xa:0x5),_0x44c2c5=_0x1ca175['toLowerCase'](),_0xd55074=_0x44c2c5['substr'](0x0,0x3)+'span',_0x5630b7='min'+_0x1ca175,_0x5ca9ea='max'+_0x1ca175;if(!_0xd5ae38['isInContent'])continue;if(_0x4b9afc!=_0xd5ae38['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd5ae38['isIntersectingWithRange'](_0x3ca589))continue;const _0x5a189b=_0x1bed2c['hasAttribute'](_0xd55074)?_0x1bed2c['getAttribute'](_0xd55074)-0x1:0x0,_0x47f2fa=this['_getSuggestionCoords'](_0xd5ae38),_0x4c1072=_0x47f2fa[_0x5630b7],_0x537044=_0x47f2fa[_0x5ca9ea];_0x4c1072<=_0x111e40[_0x44c2c5]&&_0x111e40[_0x44c2c5]+_0x5a189b<=_0x537044&&(_0xd5ae38['addRange'](_0x3ca589),_0x4500c8=!0x0);}return _0x4500c8;};_0x3e3124['model']['document']['registerPostFixer'](_0x337dc4=>{let _0x349082=!0x1;for(const _0x5cff48 of _0x3e3124['model']['document']['differ']['getChanges']())if('insert'==_0x5cff48['type']){if('tableRow'==_0x5cff48['name']){for(const _0x192c77 of _0x5cff48['position']['nodeAfter']['getChildren']())_0x349082=_0x349082||_0x48fc89(_0x192c77,_0x337dc4);}else'tableCell'==_0x5cff48['name']&&(_0x349082=_0x349082||_0x48fc89(_0x5cff48['position']['nodeAfter'],_0x337dc4));}return _0x349082;});}['_getSuggestionCoords'](_0x36d294){return this['_getCoordsForCells'](_0x36d294['getRanges']()['map'](_0x431548=>_0x431548['start']['nodeAfter']));}}function Ee(_0x4ca235){return Array['from'](new Set(_0x4ca235)['values']());}class St extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x24ed42=this['editor'],_0x54eb03=_0x24ed42['model']['document']['selection'],_0x1fdcf6=_0x24ed42['locale'];if(!_0x24ed42['plugins']['has']('TableEditing'))return;const _0x2bb423=_0x24ed42['plugins']['get']('TrackChangesEditing'),_0x3c90a5=_0x24ed42['plugins']['get']('TableUtils'),_0x57f038=_0x24ed42['plugins']['get'](jt);_0x57f038['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2bb423['enableCommand']('mergeTableCells',()=>{const _0x5a7539=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection']);_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat'](_0x5a7539,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x24ed42['commands']['get']('mergeTableCells')['on']('execute',(_0x4789f7,_0x3adfd5)=>{_0x24ed42['commands']['get']('trackChanges')['value']&&(_0x3adfd5['length']>0x0&&_0x3adfd5[_0x3adfd5['length']-0x1]&&_0x3adfd5[_0x3adfd5['length']-0x1]['forceDefaultExecution']||_0x2bb423['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4789f7['stop']());},{'priority':'highest'});for(const _0x228f34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x563a46=_0x24ed42['commands']['get'](_0x228f34);_0x2bb423['enableCommand'](_0x228f34,()=>{const _0x449e03=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cb694=>_0x4cb694['is']('element','tableCell')),_0x16fa28=_0x563a46['value'];_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat']([_0x449e03,_0x16fa28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eef10 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3b0a02=_0x24ed42['commands']['get'](_0x2eef10);_0x2bb423['enableCommand'](_0x2eef10,()=>{const _0x577ce5=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection'])[0x0],_0x5ba047=_0x577ce5['findAncestor']('table'),{column:_0x4b1f85,row:_0x545b0c}=_0x3c90a5['getCellLocation'](_0x577ce5);let _0x3b4434=[];if('horizontally'==_0x3b0a02['direction']){const _0x2af99f=_0x3c90a5['createTableWalker'](_0x5ba047,{'startRow':_0x545b0c,'endRow':_0x545b0c,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x2af99f)['map'](_0x5d8667=>_0x5d8667['cell']);}else{const _0x4a8395=_0x3c90a5['createTableWalker'](_0x5ba047,{'column':_0x4b1f85,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x4a8395)['map'](_0x340d96=>_0x340d96['cell']);}_0x24ed42['model']['change'](_0x24146f=>{_0x2bb423['markBlockFormat'](_0x24146f['createRangeOn'](_0x577ce5),{'commandName':_0x2eef10,'commandParams':[]},_0x3b4434,_0x2eef10);});});}_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x28b9c7=>{if('formatBlock'!=_0x28b9c7['type']&&'formatInline'!=_0x28b9c7['type'])return;const {data:_0x1da2cd}=_0x28b9c7;return _0x1da2cd&&'mergeTableCells'==_0x1da2cd['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Merge\x20cells*')}:void 0x0;}),_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x24ad66=>{if('formatBlock'!=_0x24ad66['type']&&'formatInline'!=_0x24ad66['type'])return;const {data:_0x34597a}=_0x24ad66;return _0x34597a?'splitTableCellVertically'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ba62b=_0x57f038['_acceptFormatSuggestionCallbackFactory']();for(const _0x406a12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x406a12,'accept',_0x5ba62b);for(const _0x8e2623 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8e2623,'accept',_0x5ba62b);_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x301b17=>{_0x24ed42['model']['change'](_0x2dc532=>{const _0x55f99f=Array['from'](_0x54eb03['getRanges']())['map'](_0x28df8c=>_0x218be5['fromRange'](_0x28df8c));_0x2dc532['setSelection'](_0x301b17),_0x24ed42['commands']['get']('mergeTableCells')['refresh'](),_0x24ed42['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38367f=_0x55f99f['filter'](_0x3568ef=>'$graveyard'!=_0x3568ef['root']['rootName']);_0x38367f['length']>0x0&&_0x2dc532['setSelection'](_0x38367f);for(const _0x4a72f5 of _0x55f99f)_0x4a72f5['detach']();});});for(const _0x35c163 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1310d5=_0x24ed42['commands']['get'](_0x35c163);_0x1310d5['on']('set:isEnabled',(_0x4ec1cc,_0x31fde3,_0x45cbb3)=>{if(_0x45cbb3){const _0x1d9c64=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158aa7=>_0x158aa7['is']('element','tableCell'));this['_areMergableCells'](_0x1310d5['value'],_0x1d9c64)||(_0x4ec1cc['return']=!0x1,_0x4ec1cc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56dd01=this['editor']['commands']['get']('mergeTableCells'),_0x2b9f38=this['editor']['plugins']['get']('TableUtils');if(!_0x56dd01['isEnabled'])return!0x1;const _0xed400=_0x2b9f38['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f6d4a of _0xed400)for(const _0x349f36 of _0xed400)if(_0x4f6d4a!=_0x349f36&&!this['_areMergableCells'](_0x4f6d4a,_0x349f36))return!0x1;return!0x0;}['_areMergableCells'](_0x50b564,_0x40ebad){const _0x341d64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fac39=this['editor']['model']['createRangeOn'](_0x50b564),_0x2b88e7=this['editor']['model']['createRangeOn'](_0x40ebad),_0x36cb52=new Set(),_0x59caae=new Set();for(const _0x25632f of _0x341d64['getSuggestions']())if(('insertion'==_0x25632f['type']||'deletion'==_0x25632f['type']||'mergeTableCells'==_0x25632f['subType'])&&_0x25632f['isInContent']){for(const _0x1d1df0 of _0x25632f['getRanges']())_0x1d1df0['containsRange'](_0x4fac39,!0x0)&&_0x36cb52['add'](_0x25632f['type']+':'+_0x25632f['author']['id']),_0x1d1df0['containsRange'](_0x2b88e7,!0x0)&&_0x59caae['add'](_0x25632f['type']+':'+_0x25632f['author']['id']);}if(_0x36cb52['size']!=_0x59caae['size'])return!0x1;for(const _0xd5accc of _0x36cb52)if(!_0x59caae['has'](_0xd5accc))return!0x1;return!0x0;}}class At extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55649f=this['editor'];if(!_0x55649f['plugins']['has']('TableEditing'))return;const _0xcc3a4b=_0x55649f['locale'],_0x11ba6d=_0x55649f['plugins']['get']('TrackChangesEditing');_0x11ba6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11ba6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11ba6d['registerBlockAttribute']('headingRows'),_0x11ba6d['registerBlockAttribute']('headingColumns'),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc3a4b,'FORMAT_HEADER_ROW')),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc3a4b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5170ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d1d3=this['editor']['plugins']['get']('TableUtils'),_0x8d2aea=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1cf834({showActiveMarker:_0x237758=!0x0,setDataAttribute:_0x387249=!0x0}={}){return(_0x13370a,_0xacb149,_0xb3ee8)=>{const {type:_0x139aaf,id:_0x51d7ed}=_0x5170ec['_splitMarkerName'](_0xacb149['markerName']),_0x3515ab=_0x5170ec['getSuggestion'](_0x51d7ed),_0x46477d=_0x3515ab['data'];if('formatBlock'!=_0x3515ab['type']||!_0x46477d||'setTableColumnHeader'!=_0x46477d['commandName'])return;if(_0xacb149['item'])return void _0x13370a['stop']();if(!_0xb3ee8['consumable']['consume'](_0xacb149['markerRange'],_0x13370a['name']))return;const _0x4e03bd=_0xacb149['markerRange']['start']['nodeAfter'],_0x2ce540=_0xacb149['markerRange']['end']['nodeBefore'],_0x346ff0=_0x4e03bd['parent']['parent'],{column:_0x2d2999}=_0x21d1d3['getCellLocation'](_0x4e03bd),{column:_0x52184e}=_0x21d1d3['getCellLocation'](_0x2ce540);for(let _0x2f9e4a=_0x2d2999;_0x2f9e4a<=_0x52184e;_0x2f9e4a++){const _0x99043c=_0x21d1d3['createTableWalker'](_0x346ff0,{'column':_0x2f9e4a,'includeAllSlots':!0x1});for(const _0x19434b of _0x99043c){const _0xb23d57=_0x19434b['cell'],_0x21ec98=_0xb3ee8['mapper']['toViewElement'](_0xb23d57);_0xb3ee8['writer']['addClass']('ck-suggestion-marker-'+_0x139aaf,_0x21ec98),_0x387249&&_0xb3ee8['writer']['setAttribute']('data-suggestion',_0x51d7ed,_0x21ec98),_0xb3ee8['mapper']['bindElementToMarker'](_0x21ec98,_0xacb149['markerName']),_0x237758&&(_0x5170ec['activeMarkers']['includes'](_0xacb149['markerName'])?_0xb3ee8['writer']['addClass']('ck-suggestion-marker--active',_0x21ec98):_0xb3ee8['writer']['removeClass']('ck-suggestion-marker--active',_0x21ec98));}}};}_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d2aea),_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d2aea),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1cf834(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58bece,_0x1284cf,_0x2c3d1a)=>{_0x2c3d1a['options']['showSuggestionHighlights']&&_0x1cf834({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58bece,_0x1284cf,_0x2c3d1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x335eba,_0x4d6b83,_0x316555)=>{const {type:_0x4c1924,id:_0x33f3ca}=_0x5170ec['_splitMarkerName'](_0x4d6b83['markerName']),_0x4c8c7f=_0x5170ec['getSuggestion'](_0x33f3ca),_0xb4c064=_0x4c8c7f['data'];if('formatBlock'!=_0x4c8c7f['type']||!_0xb4c064||'setTableColumnHeader'!=_0xb4c064['commandName'])return;const _0x37a728=_0x316555['mapper']['markerNameToElements'](_0x4d6b83['markerName']);if(_0x37a728){for(const _0x2f10c0 of _0x37a728)_0x316555['writer']['removeClass']('ck-suggestion-marker-'+_0x4c1924,_0x2f10c0),_0x316555['writer']['removeClass']('ck-suggestion-marker--active',_0x2f10c0),_0x316555['writer']['removeAttribute']('data-suggestion',_0x2f10c0),_0x316555['mapper']['unbindElementFromMarkerName'](_0x2f10c0,_0x4d6b83['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2695a=this['editor'],_0x3f9fa9=_0xe2695a['locale'];function _0x389cdd(_0xb2d2cf){return{'type':'format','content':o(_0x3f9fa9,'*Format:*\x20%0',_0xb2d2cf)};}_0xe2695a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e13cf=>{if('formatBlock'!=_0x1e13cf['type'])return;const {data:_0x1b3465}=_0x1e13cf;if(_0x1b3465){if('setTableRowHeader'==_0x1b3465['commandName']){const _0x41b4a8=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x41b4a8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b3465['commandName']){const _0x52511d=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x52511d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x17c299=>[_0x17c299,null]));class It extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55fe6e=this['editor'];if(!_0x55fe6e['plugins']['has']('TableClipboard'))return;const _0x1b360b=_0x55fe6e['plugins']['get']('TrackChangesEditing'),_0x1a5ff4=_0x55fe6e['plugins']['get']('TableUtils'),_0x1df479=_0x55fe6e['plugins']['get'](jt),_0x2ced00=_0x55fe6e['plugins']['get']('TableClipboard');_0x1df479['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55fe6e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55fe6e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ad22b=null;_0x55fe6e['model']['on']('insertContent',(_0x22e608,_0x2c439a)=>{const [_0x455438,_0x7d7810]=_0x2c439a,_0x92032e=_0x2c439a[_0x2c439a['length']-0x1];_0x92032e&&_0x92032e['forceDefaultExecution']||_0x1b360b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x314559,_0x2197fc,_0x5b3861,_0x424e5d,_0x3c5f63){if(_0x2197fc&&!_0x2197fc['is']('documentSelection'))return!0x1;const _0x4190fb=_0x3c5f63['getTableIfOnlyTableInContent'](_0x314559,_0x5b3861);if(!_0x4190fb||!he(_0x4190fb,void 0x0,_0x424e5d))return!0x1;const _0x1949a2=_0x424e5d['getSelectionAffectedTableCells'](_0x5b3861['document']['selection']);if(!_0x1949a2['length'])return!0x1;const _0x3bb123=_0x1949a2[0x0]['findAncestor']('table'),_0x2e89b9=_0x424e5d['getRowIndexes'](_0x1949a2),_0x3c4665=_0x424e5d['getColumnIndexes'](_0x1949a2),_0x3bd8a9={'startRow':_0x2e89b9['first'],'endRow':_0x2e89b9['last'],'startColumn':_0x3c4665['first'],'endColumn':_0x3c4665['last']};return 0x1==_0x1949a2['length']&&(_0x3bd8a9['endRow']+=_0x424e5d['getRows'](_0x4190fb)-0x1,_0x3bd8a9['endColumn']+=_0x424e5d['getColumns'](_0x4190fb)-0x1),he(_0x3bb123,_0x3bd8a9,_0x424e5d);}(_0x455438,_0x7d7810,_0x55fe6e['model'],_0x1a5ff4,_0x2ced00)&&(_0x22e608['stop'](),_0x2ad22b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55fe6e['model']['change'](()=>{_0x55fe6e['model']['insertContent'](_0x2c439a[0x0],_0x2c439a[0x1],_0x2c439a[0x2],{'forceDefaultExecution':!0x0});const _0x334238=_0x4b80ff(),{rowInsertionRanges:_0x1fd255,columnInsertionRanges:_0x12450d,insertionRanges:_0x29d8d4,deletionRanges:_0x259ff9,cells:_0x50812c}=_0x2ad22b;_0x1fd255['length']&&_0x1b360b['markMultiRangeInsertion'](_0x1fd255,'tablePasteRow',{'tablePasteChainId':_0x334238}),_0x12450d['length']&&_0x1b360b['markMultiRangeInsertion'](_0x12450d,'tablePasteColumn',{'tablePasteChainId':_0x334238}),_0x29d8d4['length']&&(_0x1b360b['markMultiRangeInsertion'](_0x29d8d4,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x29d8d4['forEach'](_0x1fabad=>_0x1fabad['detach']?.())),_0x259ff9['length']&&(_0x1b360b['markMultiRangeDeletion'](_0x259ff9,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x259ff9['forEach'](_0x3ad4bf=>_0x3ad4bf['detach']?.()));const _0x3aef69=_0x1b360b['markMultiRangeBlockFormat'](_0x50812c['map'](({element:_0x311243})=>_0x311243),{'formatGroupId':_0x4b80ff()},[],'tablePasteCell',{'tablePasteChainId':_0x334238});if(_0x3aef69){const _0x199c20=_0x3aef69['getMarkers'](),_0x1b712f=[];for(const {element:_0x7094a1,attributes:_0x221711}of _0x50812c){if(!_0x221711)continue;const _0x3cbc34=_0x55fe6e['model']['createRangeOn'](_0x7094a1),_0x160a92=_0x199c20['find'](_0x529908=>_0x529908['getRange']()['isEqual'](_0x3cbc34));_0x160a92&&_0x1b712f['push']([_0x160a92['name'],_0x221711]);}_0x1b712f['length']&&_0x3aef69['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b712f));}_0x2ad22b=null;}));},{'priority':_0x1135d8['high']+0xa}),_0x55fe6e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x451eef,_0x56733e)=>{const [_0x447e88,_0x22e93a,,_0x4b3082]=_0x56733e;if(!_0x2ad22b)return;_0x451eef['stop']();const _0x4dad5c=_0x447e88['cell'],_0x3b1f56=_0x22e93a,_0x4ca8c9=Pe(_0x4dad5c),_0x3f400c=Pe(_0x3b1f56);_0x451eef['return']=_0x4dad5c;let _0x5561dc=null,_0xb4caf2=null;if(_0x3f400c||_0x4ca8c9){if(_0x4ca8c9&&!_0x3f400c){_0x4b3082['remove'](_0x4dad5c['getChild'](0x0));for(const _0x20b2a8 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x20b2a8,_0x4dad5c,'end');const _0x5554e4=_0x2ad22b['rowInsertionIndexes']['includes'](_0x447e88['row']),_0x16b0c8=_0x2ad22b['columnInsertionIndexes']['includes'](_0x447e88['column']);_0x5554e4||_0x16b0c8||(_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeIn'](_0x4dad5c)));}else _0x3f400c&&!_0x4ca8c9&&(_0xb4caf2=_0x4b3082['createRangeIn'](_0x4dad5c));}else{const _0x1d9a17=_0x4b3082['createElement']('tableCellSuggestion'),_0x2689e5=_0x4b3082['createElement']('tableCellSuggestion');_0x4b3082['wrap'](_0x4b3082['createRangeIn'](_0x4dad5c),_0x2689e5),_0x4b3082['insert'](_0x1d9a17,_0x4dad5c,0x0);for(const _0x3848f3 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x3848f3,_0x1d9a17,'end');_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x1d9a17)),_0xb4caf2=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x2689e5));}const _0x281465=Array['from'](_0x3b1f56['getAttributes']())['filter'](([_0x1ae63a])=>ge['includes'](_0x1ae63a));_0x2ad22b['cells']['push']({'element':_0x4dad5c,'attributes':_0x281465['length']?Object['fromEntries'](_0x281465):null}),_0x5561dc&&_0x2ad22b['insertionRanges']['push'](_0x5561dc),_0xb4caf2&&_0x2ad22b['deletionRanges']['push'](_0xb4caf2);},{'priority':'high'}),_0x1a5ff4['on']('insertColumns',(_0x4d95a0,_0x52437d)=>{const [_0x549fe0,_0x5b1135={}]=_0x52437d;if(!_0x2ad22b)return;const _0x24954c=_0x5b1135['at']||0x0,_0x6f43ac=_0x5b1135['columns']||0x1;_0x2ad22b['columnInsertionIndexes']=new Array(_0x6f43ac)['fill'](_0x24954c)['map']((_0x166cc9,_0x57b8b4)=>_0x166cc9+_0x57b8b4);for(const {cell:_0x270d3e}of _0x1a5ff4['createTableWalker'](_0x549fe0,{'startColumn':_0x24954c,'endColumn':_0x24954c+_0x6f43ac-0x1}))_0x2ad22b['columnInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x270d3e));},{'priority':'low'}),_0x1a5ff4['on']('insertRows',(_0x520164,_0x5759d4)=>{const [_0x1312be,_0x2a8fcf={}]=_0x5759d4;if(!_0x2ad22b)return;const _0x3c0b54=_0x2a8fcf['at']||0x0,_0x56401b=_0x2a8fcf['rows']||0x1;_0x2ad22b['rowInsertionIndexes']=new Array(_0x56401b)['fill'](_0x3c0b54)['map']((_0x76622,_0x1949ec)=>_0x76622+_0x1949ec);for(const {cell:_0x129282}of _0x1a5ff4['createTableWalker'](_0x1312be,{'startRow':_0x3c0b54,'endRow':_0x3c0b54+_0x56401b-0x1}))_0x2ad22b['rowInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x129282));},{'priority':'low'}),_0x1b360b['descriptionFactory']['registerDescriptionCallback'](_0x3cf347=>{if(_0x3cf347['subType']&&_0x3cf347['subType']['startsWith']('tablePaste'))return _0x3cf347['previous']?{}:{'type':'insertion','content':o(_0x55fe6e['locale'],'*Replace\x20table\x20cells*')};});const _0x3938a2=()=>!0x1;for(const _0x57d223 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('deletion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d223,'join',_0x3938a2);_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bd10d,_0x59edf7,_0x325f9d)=>{const _0x13cc85=_0x3bd10d['map'](_0x12378e=>_0x12378e['getContainedElement']())['filter'](_0x4dbb83=>_0x4dbb83),_0x182c4a=new Map(_0x13cc85['map'](_0x3c9d27=>[_0x3c9d27,null]));if(_0x2ad22b){for(const {element:_0x15bd17,attributes:_0x29015c}of _0x2ad22b['cells'])_0x29015c&&_0x182c4a['set'](_0x15bd17,_0x29015c);}else{if(_0x325f9d&&_0x325f9d['markerAttributes'])for(const [_0x74351e,_0x5ea89f]of Object['entries'](_0x325f9d['markerAttributes'])){const _0x451ad6=_0x55fe6e['model']['markers']['get'](_0x74351e),_0x18ea5b=_0x451ad6?_0x451ad6['getRange']()['getContainedElement']():null;_0x18ea5b&&_0x182c4a['set'](_0x18ea5b,_0x5ea89f);}}_0x55fe6e['model']['change'](_0x56c186=>{for(const [_0x3ef6ef,_0x483b8f]of _0x182c4a)_0x56c186['setAttributes']({...Ce,..._0x483b8f},_0x3ef6ef);});});const _0x56b833=(_0x29dad9,_0x515b59)=>{_0x1b360b['_suggestionFactory']['registerCustomCallback'](_0x29dad9,'tablePaste',_0x515b59,(_0x19c33e,_0x40dd21,_0x4a636e)=>{_0x55fe6e['model']['change'](_0x3b0399=>{const _0xaaecf8=[];for(const _0x588aaa of _0x19c33e){const _0x3a16e2=_0x588aaa['start']['nodeAfter'];_0x3a16e2['is']('element','tableCellSuggestion')&&_0xaaecf8['push'](_0x3a16e2);}_0x1b360b['_suggestionFactory']['getSuggestionCallback'](_0x29dad9,null,_0x515b59)(_0x19c33e,_0x40dd21,_0x4a636e);for(const _0x2ecaff of _0xaaecf8)'$graveyard'!=_0x2ecaff['root']['rootName']&&_0x3b0399['unwrap'](_0x2ecaff);});});};_0x56b833('insertion','accept'),_0x56b833('insertion','discard'),_0x56b833('deletion','accept'),_0x56b833('deletion','discard'),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1aa842=>{const _0x3f07ad=_0x1aa842['map'](_0x3cb3e7=>_0x3cb3e7['getContainedElement']()),_0x27b42d=_0x3f07ad[0x0]['findAncestor']('table'),{minRow:_0x373c7a,maxRow:_0x4c69cf}=_0x1df479['_getCoordsForCells'](_0x3f07ad);_0x1a5ff4['removeRows'](_0x27b42d,{'at':_0x373c7a,'rows':_0x4c69cf-_0x373c7a+0x1});}),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b901d=>{const _0xf6c54e=_0x1b901d['map'](_0x37bdcb=>_0x37bdcb['getContainedElement']()),_0x5e278a=_0xf6c54e[0x0]['findAncestor']('table'),{minColumn:_0x1dd5ff,maxColumn:_0x1d7a40}=_0x1df479['_getCoordsForCells'](_0xf6c54e);_0x1a5ff4['removeColumns'](_0x5e278a,{'at':_0x1dd5ff,'columns':_0x1d7a40-_0x1dd5ff+0x1});});const _0x1acad3=(_0xed7331,_0x261bfb)=>{if(!_0x261bfb['subType']||!_0x261bfb['subType']['startsWith']('tablePaste'))return;const _0x34d8c0=_0x261bfb['attributes']['tablePasteChainId'],_0x399349=_0x1b360b['getSuggestions']()['filter'](_0x1a9377=>_0x1a9377['isInContent']&&_0x1a9377['attributes']&&_0x1a9377['attributes']['tablePasteChainId']==_0x34d8c0);_0x399349['length']&&_0x261bfb['getAllAdjacentSuggestions']()['length']!=_0x399349['length']&&_0x399349['reduce']((_0x1e4f82,_0x2f175f)=>(_0x1e4f82['next']=_0x2f175f,_0x2f175f['previous']=_0x1e4f82,_0x2f175f));};function _0x49f6fc(_0x66724,_0x53e3e5=!0x0){const {id:_0xb7c6c0}=_0x1b360b['_splitMarkerName'](_0x66724['markerName']),_0x4642f4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ba85a=_0x1b360b['activeMarkers']['includes'](_0x66724['markerName']);return _0x3ba85a&&_0x4642f4['push']('ck-suggestion-marker--active'),{'classes':_0x4642f4,'attributes':{'data-suggestion':_0xb7c6c0},'priority':_0x3ba85a&&_0x53e3e5?0xbc2:0xbb8};}_0x1b360b['on']('suggestionLoaded',_0x1acad3,{'priority':'high'}),_0x1b360b['on']('suggestionUnloaded',_0x1acad3,{'priority':'high'}),_0x55fe6e['model']['document']['registerPostFixer'](()=>{let _0x1b7131=!0x1;const _0x59fa20=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf604af,data:_0x2f8a31}of _0x59fa20){const {group:_0xd91674,type:_0x3eac17,id:_0x20c2b7}=_0x1b360b['_splitMarkerName'](_0xf604af);if('suggestion'!=_0xd91674||'deletion'!=_0x3eac17||_0x2f8a31['oldRange'])continue;if(!_0x1b360b['hasSuggestion'](_0x20c2b7))continue;const _0x428f85=_0x1b360b['getSuggestion'](_0x20c2b7)['getRanges'](),_0x64ee0f=_0x55fe6e['plugins']['get']('Users')['me'];for(const _0x550295 of _0x1b360b['getSuggestions']()){if(!_0x550295['isInContent']||_0x550295['author']!=_0x64ee0f)continue;if('formatBlock'!=_0x550295['type']||'tablePasteCell'!=_0x550295['subType'])continue;if(_0x550295['getRanges']()['every'](_0x2b181c=>_0x428f85['some'](_0xa9d1ed=>_0xa9d1ed['containsRange'](_0x2b181c,!0x0)))){for(const _0x3145f6 of _0x550295['getAllAdjacentSuggestions']())_0x3145f6['isInContent']&&(_0x3145f6['discard'](),_0x1b7131=!0x0);}}}return _0x1b7131;}),_0x55fe6e['model']['document']['registerPostFixer'](_0xfacaff=>{const _0x301f4d=_0x55fe6e['commands']['get']('redo');if(!_0x301f4d||!_0x301f4d['_createdBatches']['has'](_0xfacaff['batch']))return!0x1;let _0x33b601=!0x1;const _0x5d0f2f=_0x55fe6e['plugins']['get']('Users')['me'],_0x576209=_0x55fe6e['model']['document']['differ']['getChanges'](),_0x3788c8=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x256700,data:_0x4a10af})=>{const {group:_0x55ea6e,subType:_0x5d16b5,authorId:_0x382836}=_0x1b360b['_splitMarkerName'](_0x256700);return'suggestion'==_0x55ea6e&&'tablePaste'==_0x5d16b5&&_0x382836==_0x5d0f2f['id']&&!_0x4a10af['oldRange'];});for(const _0x3c21cb of _0x576209){if('insert'!=_0x3c21cb['type']||'tableCellSuggestion'!=_0x3c21cb['name']||0x1!=_0x3c21cb['length'])continue;const _0x325b5e=_0xfacaff['createRange'](_0x3c21cb['position'],_0x3c21cb['position']['getShiftedBy'](0x1));if(!_0x3788c8['find'](({data:_0x14e21d})=>_0x14e21d['newRange']['isEqual'](_0x325b5e))){for(const {name:_0x62065d,data:_0x2b3a90}of _0x3788c8)if(_0x325b5e['containsRange'](_0x2b3a90['newRange'])){_0xfacaff['updateMarker'](_0x62065d,{'range':_0x325b5e}),_0x33b601=!0x0;break;}}}return _0x33b601;}),_0x55fe6e['model']['document']['registerPostFixer'](_0x42adff=>{let _0x531fea=!0x1;const _0x37b109=_0x55fe6e['plugins']['get']('Users')['me'],_0x1cb2ca=_0x1b360b['getSuggestions']()['filter'](_0xbe8abb=>_0xbe8abb['isInContent']&&_0xbe8abb['author']==_0x37b109),_0x1415a0=new Set(),_0x11325c=new Set();for(const _0x4ae4b4 of _0x1cb2ca)if('tablePaste'==_0x4ae4b4['subType'])for(const _0x2ebdb9 of _0x4ae4b4['getMarkers']()){const _0x21fb36=_0x2ebdb9['getRange']()['getContainedElement']();if(_0x21fb36){if(_0x21fb36['is']('element','tableCellSuggestion')&&Pe(_0x21fb36)){_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x1415a0['add'](_0x21fb36),_0x531fea=!0x0;const _0x567aa7=_0x21fb36['nextSibling'],_0x518cb6=_0x21fb36['previousSibling'],_0x587f96=_0x567aa7&&_0x567aa7['is']('element','tableCellSuggestion'),_0x1cf17f=_0x518cb6&&_0x518cb6['is']('element','tableCellSuggestion');_0x587f96&&!_0x1415a0['has'](_0x567aa7)&&_0x11325c['add'](_0x567aa7),_0x1cf17f&&!_0x1415a0['has'](_0x518cb6)&&_0x11325c['add'](_0x518cb6);}else _0x21fb36['is']('element','paragraph')&&_0x21fb36['isEmpty']&&(_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x531fea=!0x0);}}else{if('tablePasteCell'==_0x4ae4b4['subType']){if(!_0x4ae4b4['attributes']||!_0x4ae4b4['attributes']['tablePasteChainId'])continue;const _0x3c9d32=_0x4ae4b4['attributes']['markerAttributes'];if(_0x3c9d32&&Object['keys'](_0x3c9d32)['length'])continue;const _0x3d96a4=_0x4ae4b4['attributes']['tablePasteChainId'];let _0x439962=!0x0,_0x22a1a6=!0x0;for(const _0x134a50 of _0x1cb2ca)if(_0x134a50['subType']&&_0x134a50['subType']['startsWith']('tablePaste')){if(!_0x134a50['attributes']['tablePasteChainId']){_0x22a1a6=!0x1;break;}if(_0x134a50['id']!=_0x4ae4b4['id']&&_0x134a50['attributes']['tablePasteChainId']==_0x3d96a4){_0x439962=!0x1;break;}}_0x22a1a6&&_0x439962&&(_0x4ae4b4['removeMarkers'](),_0x531fea=!0x0);}}for(const _0x31e287 of _0x1415a0)_0x42adff['remove'](_0x31e287);for(const _0x3fc94b of _0x11325c)_0x42adff['unwrap'](_0x3fc94b);return _0x531fea;}),_0x55fe6e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bb0e5,_0x5420fe)=>_0x49f6fc(_0x3bb0e5),'converterPriority':'high'}),_0x55fe6e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x278e79,_0x17b543)=>_0x17b543['options']['showSuggestionHighlights']?_0x49f6fc(_0x278e79,!0x1):null,'converterPriority':'high'});const _0x513161=_0x55fe6e['editing']['view'];this['listenTo'](_0x513161['document'],'clipboardOutput',(_0x56e09a,_0x4bbf01)=>{const _0x959107=[];for(const _0x3492b9 of _0x513161['createRangeIn'](_0x4bbf01['content'])['getItems']())_0x3492b9['is']('element','suggestion-td')&&_0x959107['push'](_0x3492b9);_0x513161['change'](_0xbcf26c=>{for(const _0x3d7212 of _0x959107)_0xbcf26c['move'](_0xbcf26c['createRangeIn'](_0x3d7212),_0xbcf26c['createPositionBefore'](_0x3d7212)),_0xbcf26c['remove'](_0x3d7212);});});}}function Pe(_0x4c27b1){if(_0x4c27b1['isEmpty'])return!0x0;const _0x2c9165=_0x4c27b1['getChild'](0x0);return _0x2c9165['is']('element','paragraph')&&_0x2c9165['isEmpty'];}function he(_0x31db8b,_0x34cdc5={},_0x30359d){for(const {isAnchor:_0x4e5ff5,cellHeight:_0xe753ae,cellWidth:_0xfda276}of _0x30359d['createTableWalker'](_0x31db8b,{'includeAllSlots':!0x0,..._0x34cdc5}))if(!_0x4e5ff5||0x1!=_0xe753ae||0x1!=_0xfda276)return!0x1;return!0x0;}class vt extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x526e17=this['editor']['plugins']['get']('TrackChangesEditing');_0x526e17['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x526e17['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xbd2989,_0x518172){const _0x1f307=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf00348=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f3a55=_0x518172['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x168d47=_0xf00348['getColumnGroupElement'](_0x1f3a55);let _0x1315d0=_0x168d47?_0xf00348['getTableColumnsWidths'](_0x168d47):null,_0x5975d0=_0x1f3a55['getAttribute']('tableWidth')||null;const _0x5bf6b0=_0x518172['tableWidth']||_0x5975d0,_0x4976e0=_0x518172['columnWidths']||_0x1315d0,_0x15e7b4=this['editor']['plugins']['get']('Users')['me'];for(const _0x241ab9 of _0x1f307['getSuggestions']()){const _0x1a787c=_0x241ab9['getContainedElement']();if('resizeTable'===_0x241ab9['subType']&&_0x1a787c===_0x1f3a55){_0x241ab9['author']!==_0x15e7b4&&_0x241ab9['discard']();const _0x19464d=_0x241ab9['data']['commandParams'];_0x5975d0=_0x19464d[0x0]['tableWidth'],_0x1315d0=_0x19464d[0x0]['columnWidths'];break;}}_0xbd2989({'table':_0x1f3a55,'tableWidth':_0x5bf6b0,'columnWidths':_0x4976e0}),_0x1f307['markBlockFormat'](_0x1f3a55,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5975d0,'columnWidths':_0x1315d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf6af77){if('formatBlock'!=_0xf6af77['type']&&'formatInline'!=_0xf6af77['type'])return;const {data:_0x16acae}=_0xf6af77;if(_0x16acae&&'resizeTable'===_0x16acae['formatGroupId']){const _0x242ea8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x242ea8)};}}}class Ct extends _0x16371d{['afterInit'](){const _0x700c01=this['editor'];_0x700c01['plugins']['has']('Template')&&_0x700c01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x16371d{['afterInit'](){const _0x488e54=this['editor'];if(!_0x488e54['commands']['get']('insertTableOfContents'))return;_0x488e54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36b0fd=_0x488e54['plugins']['get']('TrackChangesEditing'),_0x577c73=_0x488e54['locale'];_0x36b0fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bb36c=>o(_0x577c73,'ELEMENT_TABLE_OF_CONTENTS',_0x3bb36c));}}class Dt extends _0x16371d{['afterInit'](){const _0x2b5bc4=this['editor'];if(!_0x2b5bc4['plugins']['has']('Title'))return;const _0x150cd3=_0x2b5bc4['plugins']['get']('TrackChangesEditing');_0x150cd3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2b5bc4['locale'],'ELEMENT_TITLE')),_0x2b5bc4['model']['document']['registerPostFixer'](_0x59e8ef=>{let _0x58330d=!0x1;const _0x426205=Array['from'](_0x2b5bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c2748,data:_0x3e8ee5}of _0x426205){const {group:_0x23b90a}=_0x150cd3['_splitMarkerName'](_0x3c2748);if('suggestion'!==_0x23b90a||!_0x3e8ee5['newRange'])continue;const _0x55eb6e=_0x3e8ee5['newRange'],_0x319a2c=_0x55eb6e['end']['nodeBefore'];if(!_0x319a2c||!_0x319a2c['is']('element','title-content'))continue;if(!_0x55eb6e['start']['isTouching'](_0x55eb6e['end']))continue;const _0x558cf0=_0x2b5bc4['model']['schema']['getNearestSelectionRange'](_0x55eb6e['end'],'forward');if(_0x558cf0&&_0x558cf0['isCollapsed']){const _0x1a1196=_0x59e8ef['createRange'](_0x55eb6e['start'],_0x558cf0['start']);_0x1a1196['isEqual'](_0x55eb6e)||(_0x59e8ef['updateMarker'](_0x3c2748,{'range':_0x1a1196}),_0x58330d=!0x0);}_0x58330d||(_0x59e8ef['removeMarker'](_0x3c2748),_0x58330d=!0x0);}return _0x58330d;});}}class Nt extends _0x16371d{['afterInit'](){const _0x808530=this['editor'],_0x352faa=_0x808530['plugins']['get']('TrackChangesEditing');_0x808530['plugins']['has']('UndoEditing')&&(_0x352faa['enableCommand']('undo'),_0x352faa['enableCommand']('redo'));}}class Mt extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x506e0b=this['editor'];if(!_0x506e0b['plugins']['has']('TableCaptionEditing'))return;_0x506e0b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x16371d{['tableProperties'];['tableCellProperties'];constructor(_0xe03985){super(_0xe03985),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 _0x1795ab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5de489 of this['tableProperties'])_0x1795ab['enableCommand'](_0x5de489,(_0x13d877,_0x4fb674)=>{const _0x58f68e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5de489,[_0x58f68e],this['tableProperties'],'tableProperties',_0x13d877,_0x4fb674);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c2d67,_0x27a5b5)=>this['handleDiscardAction'](this['tableProperties'],_0x2c2d67,_0x27a5b5)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x509b85 of this['tableCellProperties'])_0x1795ab['enableCommand'](_0x509b85,(_0x4dfbde,_0x584d5d)=>{const _0x4ef247=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x509b85,_0x4ef247,this['tableCellProperties'],'tableCellProperties',_0x4dfbde,_0x584d5d);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f3a52,_0x2c3b72)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f3a52,_0x2c3b72)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1795ab['descriptionFactory']['registerDescriptionCallback'](_0x2be749=>this['handleSuggestionDescription'](_0x2be749));}['_handlePropertyChange'](_0x48840c,_0x1f84b2,_0x551693,_0x38bcdd,_0xafbaa0,_0x4e8fd2){const _0x1d6734=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e8fd2['batch'],()=>{for(const _0x385ea5 of _0x1f84b2){if(this['_getSuggestion'](_0x385ea5,_0x38bcdd))_0xafbaa0(_0x4e8fd2);else{const _0x3f2db4={};for(const _0x549fc5 of _0x551693){const _0x52a0e2=_0x385ea5['getAttribute'](_0x549fc5);void 0x0!==_0x52a0e2&&(_0x3f2db4[_0x549fc5]=_0x52a0e2);}_0xafbaa0(_0x4e8fd2),_0x1d6734['markBlockFormat'](_0x385ea5,{'commandParams':[_0x3f2db4]},[],_0x38bcdd);}}});}['handleDiscardAction'](_0x5c9b4e,_0x4c952c,_0x28094a){const _0x55b952=_0x4c952c[0x0]['start']['nodeAfter'],_0x3613e1=_0x28094a['commandParams'][0x0];this['editor']['model']['change'](_0x31f977=>{for(const _0x3e862a of _0x5c9b4e)void 0x0!==_0x3613e1[_0x3e862a]?_0x31f977['setAttribute'](_0x3e862a,_0x3613e1[_0x3e862a],_0x55b952):_0x31f977['removeAttribute'](_0x3e862a,_0x55b952);});}['handleSuggestionDescription'](_0x27fae1){if(_0x27fae1['data'])switch(_0x27fae1['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'](_0x1d00ab,_0x5a8985){const _0x8b6e59=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x491428 of _0x8b6e59['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e0871=_0x491428['getContainedElement']();if(_0x491428['subType']===_0x5a8985&&_0x3e0871===_0x1d00ab)return _0x491428;}return null;}}const m='$elementName';class p extends _0x16371d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2e67ee,_0x225db4,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(_0x465534){function _0x4a4e49(_0xde9005){return _0xde9005['map'](_0x190ff2=>String['fromCharCode'](_0x190ff2))['join']('');}super(_0x465534),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2876c8,_0x257529,_0x633968,_0x50d96a)=>{this['_model']['change'](()=>{for(const _0x3a5d8b of[..._0x50d96a,..._0x633968])this['_model']['markers']['has'](_0x3a5d8b)&&_0x465534['editing']['reconvertMarker'](_0x3a5d8b);});}),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']=_0x465534['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(),_0x465534['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x465534['config']['get']('trackChanges.trackFormatChanges'),_0x465534['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x465534['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x465534,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4a4e49([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a4e49([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x32]);}['init'](){const _0x187b31=this['editor'],_0x257f04=(_0x4daa2e,_0x147c8b)=>{if('attribute'!=_0x4daa2e)return'ck-suggestion-marker-'+_0x4daa2e;const _0x3c8b87=_0x147c8b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c8b87)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x187b31['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2282ab=>{const {id:_0x334b79,type:_0x30694c,subType:_0x3d3440}=this['_splitMarkerName'](_0x2282ab['markerName']),_0x385007=['ck-suggestion-marker',_0x257f04(_0x30694c,_0x3d3440)];let _0x293c7d=0xbb8;return this['activeMarkers']['includes'](_0x2282ab['markerName'])&&(_0x385007['push']('ck-suggestion-marker--active'),_0x293c7d=0xbc2),'deletion'==_0x30694c&&(_0x293c7d+=0x5),{'classes':_0x385007,'attributes':{'data-suggestion':_0x334b79},'priority':_0x293c7d};}}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x69d5ac=>{_0x69d5ac['on']('addMarker:suggestion',(_0x41551e,_0x5f470f,_0x2ef954)=>{if(!_0x2ef954['options']['showSuggestionHighlights'])return;const _0x4cc633=_0x5f470f['item'];if(!_0x4cc633)return;const _0x3fddb8=_0x2ef954['mapper']['toViewElement'](_0x4cc633);_0x187b31['model']['schema']['isObject'](_0x4cc633)&&_0x3fddb8&&!_0x3fddb8['getCustomProperty']('widget')&&_0x3fddb8['is']('containerElement')&&_0x44ddaf(_0x3fddb8,_0x2ef954['writer']);},{'priority':'high'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31c35e,_0x37acdb)=>{if(!_0x37acdb['options']['showSuggestionHighlights'])return null;const {type:_0x3550eb,subType:_0x395690}=this['_splitMarkerName'](_0x31c35e['markerName']);return{'classes':['ck-suggestion-marker',_0x257f04(_0x3550eb,_0x395690)],'priority':0xbb8};}});const _0xcd8489=({showActiveMarkers:_0x2a84c0=!0x0,isAttributeSuggestion:_0x3c263c=!0x1}={})=>(_0x4d37d6,_0x326480,_0xc9a357)=>{if(!_0x326480['item'])return;const {id:_0x325ef4}=this['_splitMarkerName'](_0x326480['markerName']);if(_0x3c263c){const _0x221249=this['_suggestions']['get'](_0x325ef4),_0x181710=this['_getAttributeKey'](_0x221249);if(!this['_isBlockAttribute'](_0x181710))return;}if(_0x326480['item']['is']('selection'))return void _0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);const _0x17f134=_0xc9a357['mapper']['toViewElement'](_0x326480['item']);if(_0x326480['item']['is']('element')&&_0x187b31['model']['schema']['isBlock'](_0x326480['item'])&&!_0x17f134['getCustomProperty']('addHighlight')){_0xc9a357['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17f134),_0xc9a357['writer']['setAttribute']('data-suggestion',_0x325ef4,_0x17f134),_0xc9a357['mapper']['bindElementToMarker'](_0x17f134,_0x326480['markerName']),_0x2a84c0&&(this['activeMarkers']['includes'](_0x326480['markerName'])?_0xc9a357['writer']['addClass']('ck-suggestion-marker--active',_0x17f134):_0xc9a357['writer']['removeClass']('ck-suggestion-marker--active',_0x17f134));for(const _0xdec98 of _0x187b31['model']['createRangeIn'](_0x326480['item'])['getItems']())_0xc9a357['consumable']['consume'](_0xdec98,_0x4d37d6['name']);_0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);}};_0x187b31['conversion']['for']('dataDowncast')['add'](_0x2cf017=>{_0x2cf017['on']('addMarker:suggestion:formatBlock',(_0x44a50c,_0x4e0552,_0x2e9cce)=>{_0x2e9cce['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1})(_0x44a50c,_0x4e0552,_0x2e9cce);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x5bf219=>{_0x5bf219['on']('addMarker:suggestion:attribute',(_0x564dac,_0x3835b1,_0x1669b5)=>{_0x1669b5['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x564dac,_0x3835b1,_0x1669b5);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214794,_0x5c59f7)=>_0x5c59f7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214794['substr'](0xb)}}),_0x187b31['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41392c,{writer:_0x7b4ea2})=>{let _0x151e98='suggestion:'+_0x41392c['getAttribute']('suggestion-type')+':'+_0x41392c['getAttribute']('id');return _0x41392c['getAttribute']('marker-count')&&(_0x151e98+=':'+_0x41392c['getAttribute']('marker-count')),_0x7b4ea2['createElement']('$marker',{'data-name':_0x151e98});}}),_0x187b31['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x5a4fb4=>{_0x5a4fb4['on']('addMarker:suggestion:formatBlock',_0xcd8489(),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x252ac0=>{_0x252ac0['on']('addMarker:suggestion:attribute',_0xcd8489({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x4e8e15=>{_0x4e8e15['on']('removeMarker:suggestion:formatBlock',(_0x428d8e,_0x18f72d,_0x3bf8ea)=>{const _0x2c6d59=_0x3bf8ea['mapper']['markerNameToElements'](_0x18f72d['markerName']);if(_0x2c6d59){for(const _0x47bd7d of _0x2c6d59)_0x47bd7d['getCustomProperty']('addHighlight')||(_0x3bf8ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47bd7d),_0x3bf8ea['writer']['removeAttribute']('data-suggestion',_0x47bd7d),_0x3bf8ea['mapper']['unbindElementFromMarkerName'](_0x47bd7d,_0x18f72d['markerName']));}},{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x143d4f=>{_0x143d4f['on']('removeMarker:suggestion:attribute',(_0x4cc067,_0x856cac,_0x5b382d)=>{const _0x5771fa=_0x5b382d['mapper']['markerNameToElements'](_0x856cac['markerName']);if(!_0x5771fa)return;const {id:_0x2e1ad5}=this['_splitMarkerName'](_0x856cac['markerName']),_0xcaa3c2=this['_suggestions']['get'](_0x2e1ad5),_0x47a3cb=this['_getAttributeKey'](_0xcaa3c2);if(this['_isBlockAttribute'](_0x47a3cb)){for(const _0x34dafa of _0x5771fa)_0x34dafa['getCustomProperty']('addHighlight')||(_0x5b382d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34dafa),_0x5b382d['writer']['removeAttribute']('data-suggestion',_0x34dafa),_0x5b382d['mapper']['unbindElementFromMarkerName'](_0x34dafa,_0x856cac['markerName']));}},{'priority':'high'});}),_0x187b31['model']['document']['registerPostFixer'](_0x2e4971=>{let _0x27c58a=!0x1;const _0x233e6e=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']()),_0x1ffe25=new Set();for(const {name:_0x367ede,data:_0x5236a2}of _0x233e6e){const {group:_0xb11cea,type:_0x33eca2,subType:_0x1c6016,id:_0x10aab8}=this['_splitMarkerName'](_0x367ede);if('suggestion'!==_0xb11cea)continue;const _0x290e4a=this['_suggestions']['get'](_0x10aab8);if(null!=_0x5236a2['newRange']){'formatInline'==_0x33eca2&&(_0x27c58a=_0x27c58a||Et(_0x5236a2['newRange'],_0x367ede,_0x2e4971,_0x187b31['model']['schema']));const _0x10e6ff='attribute'==_0x33eca2&&this['_isBlockAttribute'](_0x1c6016['split']('|')[0x0]);if(_0x5236a2['newRange']['isCollapsed']||'$graveyard'==_0x5236a2['newRange']['root']['rootName']||'formatBlock'==_0x33eca2&&!Ut(_0x5236a2['newRange'])||_0x10e6ff&&!Ut(_0x5236a2['newRange'])||'deletion'==_0x33eca2&&!(!Tt(_0x59f5a8=_0x5236a2['newRange'])&&!function(_0x42e8fa){return _0x42e8fa['start']['parent']==_0x42e8fa['end']['nodeBefore']&&_0x42e8fa['start']['isAtEnd'];}(_0x59f5a8)))_0x2e4971['removeMarker'](_0x367ede),_0x27c58a=!0x0;else{if(!_0x290e4a||!_0x290e4a['isInContent'])continue;_0x1ffe25['add'](_0x290e4a);}}}var _0x59f5a8;return _0x1ffe25['size']>0x0&&(_0x27c58a=!!this['_joinWithAdjacentSuggestions'](_0x1ffe25)||_0x27c58a),_0x27c58a;}),_0x187b31['model']['document']['registerPostFixer'](_0x27a400=>{let _0x37308b=!0x1;for(const _0x20e0d9 of _0x187b31['model']['document']['differ']['getChanges']())if('insert'==_0x20e0d9['type'])for(const _0x133cf1 of this['_suggestions']['values']()){if(_0x133cf1['isMultiRange']||!_0x133cf1['isInContent'])continue;const _0xd44b2f='formatBlock'==_0x133cf1['type'],_0x1b4437=this['_getAttributeKey'](_0x133cf1),_0x8ee936=_0x1b4437&&this['_isBlockAttribute'](_0x1b4437);if(!_0xd44b2f&&!_0x8ee936)continue;const _0x18e04c=_0x133cf1['getFirstRange']();if(_0x18e04c['start']['parent']!=_0x18e04c['end']['parent']&&!_0x18e04c['end']['isAtEnd']){const _0xa22a92=_0x187b31['model']['createPositionAt'](_0x18e04c['start']['nodeAfter'],'end'),_0x3c1f0e=_0x187b31['model']['createRange'](_0x18e04c['start'],_0xa22a92);_0x27a400['updateMarker'](_0x133cf1['getFirstMarker'](),{'range':_0x3c1f0e}),_0x37308b=!0x0;}}return _0x37308b;}),_0x187b31['model']['document']['registerPostFixer'](_0x298e9b=>this['_processAttributeChanges'](_0x298e9b)),_0x187b31['model']['document']['registerPostFixer'](_0x5d7489=>!_0x5d7489['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d7489)),_0x187b31['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x187b31['model']['document']['on']('change:data',(_0x4a8a34,_0x45f1ef)=>{if(!_0x45f1ef['isLocal']||_0x45f1ef['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x557971=_0x187b31['model']['document']['differ']['getChanges']();if(0x0==_0x557971['length'])return;const _0x258a92=[],_0x4bf0d4=_0x557971['filter'](_0x31cbde=>'attribute'==_0x31cbde['type']),_0x4eed8e=_0x557971['filter'](_0x118e89=>'insert'==_0x118e89['type']&&'$text'!=_0x118e89['name']);for(const _0x26f594 of _0x4bf0d4)this['_isRegisteredAttribute'](_0x26f594['attributeKey'])&&_0x258a92['push']({'key':_0x26f594['attributeKey'],'newValue':_0x26f594['attributeNewValue'],'oldValue':_0x26f594['attributeOldValue'],'range':Ot(_0x26f594['range'],_0x187b31['model'])});for(const _0x8c98fc of _0x4eed8e){if('rename'!=_0x8c98fc['action']&&'refresh'!=_0x8c98fc['action'])continue;const _0x208efa=Gt(_0x8c98fc['position']['nodeAfter'],_0x187b31['model']),_0x4250a0=_0x8c98fc['before'];'rename'==_0x8c98fc['action']&&_0x258a92['push']({'key':m,'newValue':_0x8c98fc['name'],'oldValue':_0x4250a0['name'],'range':_0x208efa});for(const [_0xe77176,_0x2987f0]of _0x4250a0['attributes']){if(!this['_isRegisteredAttribute'](_0xe77176))continue;const _0x55ff13=_0x8c98fc['attributes']['get'](_0xe77176);_0x2987f0!==_0x55ff13&&_0x258a92['push']({'key':_0xe77176,'newValue':_0x55ff13,'oldValue':_0x2987f0,'range':_0x208efa});}for(const [_0x404ad1,_0x2d02bc]of _0x8c98fc['attributes'])this['_isRegisteredAttribute'](_0x404ad1)&&(_0x4250a0['attributes']['has'](_0x404ad1)||_0x258a92['push']({'key':_0x404ad1,'newValue':_0x2d02bc,'oldValue':null,'range':_0x208efa}));}0x0!=_0x258a92['length']&&_0x187b31['model']['enqueueChange'](_0x45f1ef,_0x424cf9=>{const _0x38802f=_0x4b80ff();for(const {range:_0x4062b0,key:_0xba687c,oldValue:_0x564ae2,newValue:_0x49db2e}of _0x258a92)this['markAttributeChange'](_0x4062b0,_0xba687c,_0x564ae2,_0x49db2e,{'groupId':_0x38802f});this['_reduceExistingSuggestions'](_0x424cf9,_0x258a92);});},{'priority':'lowest'}),_0x187b31['model']['markers']['on']('update:suggestion',(_0x4b6d0f,_0xab26a0,_0x4c93df)=>{if(null==_0x4c93df){const {id:_0x3d70fc}=this['_splitMarkerName'](_0xab26a0['name']),_0x191755=this['_suggestions']['get'](_0x3d70fc);_0x191755&&_0x191755['addMarkerName'](_0xab26a0['name']);}}),_0x187b31['model']['document']['on']('change:data',()=>{const _0x39bebc=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c4ea3=>'suggestion'===this['_splitMarkerName'](_0x4c4ea3['name'])['group']);if(0x0===_0x39bebc['length'])return;_0x39bebc['sort']((_0x2ce13a,_0x5d3858)=>{const _0x4d51ce=_0x2ce13a['data']['oldRange'],_0x5edd21=_0x5d3858['data']['oldRange'];return null===_0x4d51ce&&null===_0x5edd21?0x0:null===_0x4d51ce&&null!==_0x5edd21?-0x1:null!==_0x4d51ce&&null===_0x5edd21?0x1:_0x4d51ce['start']['isBefore'](_0x5edd21['start'])?-0x1:0x1;});const _0x24397c=new Set(),_0x36b332=new Set();for(const {name:_0x24b356,data:_0x4b5cf0}of _0x39bebc){const {id:_0x2ef1bd}=this['_splitMarkerName'](_0x24b356);if(null===_0x4b5cf0['oldRange']){const _0xc763d6=this['_handleNewSuggestionMarker'](_0x24b356);_0x36b332['add'](_0xc763d6);}else{const _0x3e2142=this['_suggestions']['get'](_0x2ef1bd);null!==_0x4b5cf0['newRange']||_0x3e2142['isInContent']?(_0x24397c['add'](_0x3e2142['head']),_0x36b332['add'](_0x3e2142)):this['_removeSuggestion'](_0x3e2142);}}_0x36b332['size']>0x0&&this['_refreshSuggestionsChain'](_0x36b332);for(const _0x5b21f3 of _0x24397c)this['fire']('suggestionChanged',_0x5b21f3);}),_0x187b31['model']['on']('applyOperation',(_0x27339c,_0xb79ae3)=>{const _0x51ccce=_0xb79ae3[0x0];if(!this['_suggestions']['size'])return;if(!_0x51ccce['isDocumentOperation'])return;if(_0x51ccce['batch']['isUndo']||!_0x51ccce['batch']['isLocal'])return;let _0x4b0213,_0x4d1c7c;switch(_0x51ccce['type']){case'insert':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['position']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;case'split':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['splitPosition']),_0x4d1c7c=_0x187b31['model']['createPositionAt'](_0x51ccce['moveTargetPosition']);break;case'move':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['targetPosition']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;default:return;}const _0x366007=_0x187b31['model']['createRange'](_0x4b0213,_0x4d1c7c);_0x187b31['model']['change'](()=>{for(const {suggestion:_0x2a00a4,meta:_0x3df0a6}of this['_findSuggestions'](_0x366007)){if(_0x2a00a4['isMultiRange'])continue;if('formatInline'==_0x2a00a4['type'])continue;const _0x10d9c6=this['_getAttributeKey'](_0x2a00a4);if(_0x10d9c6&&this['_isBlockAttribute'](_0x10d9c6)&&'split'!=_0x51ccce['type'])continue;const _0x421615=_0x2a00a4['data']&&_0x2a00a4['data']['multipleBlocks'];('formatBlock'!=_0x2a00a4['type']||'split'==_0x51ccce['type']&&!_0x421615)&&(_0x3df0a6['containsRangeInObject']||'insertion'==_0x2a00a4['type']&&_0x3df0a6['isOwn']||_0x2a00a4['getFirstRange']()['containsRange'](_0x366007)&&this['_breakSuggestionMarker'](_0x2a00a4,_0x4b0213,_0x4d1c7c));}});},{'priority':'lowest'}),_0x187b31['model']['on']('deleteContent',(_0x3833ba,_0x45864e)=>{const _0x2bafea=_0x45864e[0x0],_0x45356e=_0x45864e[0x1];if(_0x45356e&&_0x45356e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bafea['isCollapsed'])return;const _0x145298=_0x187b31['model']['schema'],{start:_0x324b58,end:_0x5e278f}=_0x2bafea['getFirstRange'](),_0x324f20=_0x324b58['nodeAfter']&&_0x145298['isLimit'](_0x324b58['nodeAfter'])?null:_0x145298['getNearestSelectionRange'](_0x324b58,'forward'),_0x391295=_0x5e278f['nodeBefore']&&_0x145298['isLimit'](_0x5e278f['nodeBefore'])?null:_0x145298['getNearestSelectionRange'](_0x5e278f,'backward'),_0x5a9aee=_0x187b31['model']['createRange'](_0x324f20?_0x324f20['start']:_0x324b58,_0x391295?_0x391295['end']:_0x5e278f);_0x187b31['model']['change'](_0x2b359a=>{this['markDeletion'](_0x5a9aee);const _0x484de8=_0x187b31['model']['schema']['getNearestSelectionRange'](_0x5a9aee['start']);_0x2bafea['is']('documentSelection')?_0x2b359a['setSelection'](_0x484de8):_0x2bafea['setTo'](_0x484de8);}),_0x3833ba['stop']();},{'priority':_0x1135d8['normal']+0xa}),_0x187b31['model']['on']('insertContent',(_0x29a5b4,_0x366de9)=>{const _0x63ec87=_0x366de9[_0x366de9['length']-0x1];_0x63ec87&&_0x63ec87['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x187b31['model']['change'](()=>{let _0x42f16c=_0x187b31['model']['insertContent'](_0x366de9[0x0],_0x366de9[0x1],_0x366de9[0x2],{'forceDefaultExecution':!0x0});if(!_0x42f16c)return;_0x29a5b4['return']=_0x42f16c['clone']();const _0x35b5b6=_0x42f16c['end']['nodeBefore'],_0x45e254=_0x187b31['model']['schema'];_0x35b5b6&&_0x45e254['isBlock'](_0x35b5b6)&&!_0x45e254['isObject'](_0x35b5b6)&&(_0x42f16c=_0x187b31['model']['createRange'](_0x42f16c['start'],_0x187b31['model']['createPositionAt'](_0x35b5b6,'end'))),this['markInsertion'](_0x42f16c);}),_0x29a5b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1dc000=new $(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('acceptSuggestion',_0x1dc000),this['enableCommand']('acceptSuggestion');const _0x40d33e=new B(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('discardSuggestion',_0x40d33e),this['enableCommand']('discardSuggestion'),_0x187b31['commands']['add']('acceptAllSuggestions',new x(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x187b31['commands']['add']('discardAllSuggestions',new x(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x187b31['commands']['add']('acceptSelectedSuggestions',new R(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x187b31['commands']['add']('discardSelectedSuggestions',new R(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d0a3b=_0x187b31['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d0a3b,'addComment',(_0x252abd,{threadId:_0xbff65e})=>{const _0x2f5676=this['_suggestions']['get'](_0xbff65e);_0x2f5676&&_0x2f5676['commentThread']&&0x1===_0x2f5676['commentThread']['length']&&this['_updateSuggestionData'](_0xbff65e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d0a3b,'removeComment',(_0xa8e2f2,{threadId:_0x203716})=>{const _0x29d8cc=this['_suggestions']['get'](_0x203716);_0x29d8cc&&_0x29d8cc['commentThread']&&!_0x29d8cc['commentThread']['length']&&this['_updateSuggestionData'](_0x203716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5a0c3e){if(this['_adapter'])throw new _0x40a0bd('track-changes-adapter-already-set',this);this['_adapter']=_0x5a0c3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bd006=!0x1,toJSON:_0x2dc70c=!0x1}={}){const _0x1e9f42=[];for(const _0x5de1c0 of this['_suggestions']['values']())_0x4bd006&&!_0x5de1c0['isInContent']||_0x1e9f42['push'](_0x5de1c0);return _0x2dc70c?_0x1e9f42['map'](_0x54134b=>_0x54134b['toJSON']()):_0x1e9f42;}['getSuggestion'](_0xb1cf2a){const _0x68eba3=this['_suggestions']['get'](_0xb1cf2a);if(!_0x68eba3)throw new _0x40a0bd('track-changes-suggestion-not-found',this);return _0x68eba3;}['hasSuggestion'](_0x587445){return this['_suggestions']['has'](_0x587445);}['addSuggestionData'](_0x288f2c){const {authorId:_0x37f2ea,id:_0x472230,attributes:_0x2b4809}=_0x288f2c,[_0x228d20,_0x51451b]=_0x288f2c['type']['split'](':'),_0x4cce5d=this['_suggestions']['get'](_0x472230)||this['_createSuggestion'](_0x228d20,_0x51451b,_0x472230,_0x37f2ea,_0x2b4809);if(this['_addThreadToSuggestion'](_0x4cce5d),this['_checkSuggestionCorrectness'](_0x4cce5d,_0x228d20,_0x51451b||null,_0x37f2ea),_0x4cce5d['createdAt']=_0x288f2c['createdAt'],_0x4cce5d['_isDataLoaded']=!0x0,_0x2b4809&&_0x2b4809['@external']){const _0x4ead60=_0x2b4809['@external'],_0x4ee14f=this['_getExternalAuthor'](_0x4ead60['authorName']);_0x4cce5d['authoredAt']=_0x4ead60['createdAt'],_0x4cce5d['author']=_0x4ee14f,_0x4cce5d['isExternal']=!0x0;}else _0x4cce5d['authoredAt']=_0x288f2c['createdAt'];switch(_0x288f2c['data']&&(_0x4cce5d['data']=_0x288f2c['data']),_0x288f2c['attributes']&&(_0x4cce5d['attributes']=_0x288f2c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4cce5d['_saved']=!0x0),this['_suggestionState']['get'](_0x4cce5d)){case'notReady':this['_suggestionState']['set'](_0x4cce5d,'dataReady');break;case'markerReady':_0x4cce5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4cce5d])),this['_refreshSuggestionsChain'](new Set([_0x4cce5d])),this['_suggestionState']['set'](_0x4cce5d,'ready'),this['fire']('suggestionLoaded',_0x4cce5d)):this['_suggestionState']['set'](_0x4cce5d,'removed');}return _0x4cce5d;}['acceptSuggestion'](_0x2cb4b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x518c5c of _0x2cb4b1['getAllAdjacentSuggestions']())_0x518c5c['accept']();});});}['discardSuggestion'](_0x54ebb6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e4c7b of _0x54ebb6['getAllAdjacentSuggestions']())_0x2e4c7b['discard']();});});}['enableCommand'](_0x17f93c,_0x5f1626){const _0x2b9979=this['editor']['commands']['get'](_0x17f93c);if(!_0x2b9979)throw new _0x40a0bd('track-changes-command-not-found',this,{'commandName':_0x17f93c});if(this['_enabledCommands']['has'](_0x2b9979))throw new _0x40a0bd('track-changes-enable-command-twice',this,{'commandName':_0x17f93c});this['_enabledCommands']['add'](_0x2b9979),_0x5f1626&&_0x2b9979['on']('execute',(_0x557326,_0x48b439)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48b439['length']>0x0&&_0x48b439[_0x48b439['length']-0x1]&&_0x48b439[_0x48b439['length']-0x1]['forceDefaultExecution']?_0x48b439['pop']():(_0x557326['return']=_0x5f1626((..._0x57ee83)=>_0x2b9979['execute'](..._0x57ee83,{'forceDefaultExecution':!0x0}),..._0x48b439),_0x557326['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2656ea){let _0x3eba06,_0x39fe69;const _0x4bd299=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3eba06=_0x2656ea();}catch(_0x4ddb75){_0x39fe69=_0x4ddb75;}return _0x4bd299||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39fe69&&_0x40a0bd['rethrowUnexpectedError'](_0x39fe69,this),_0x3eba06;}['markInsertion'](_0x3537e6,_0xc20a71=null,_0x5472c9={}){if(_0x3537e6['isCollapsed'])return null;const _0x2c0f77=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x25f060,meta:_0x14e226}of this['_findSuggestions'](_0x3537e6,'insertion'))if(_0x14e226['isOwn']){if(!_0x14e226['isNextTo']){if(_0x14e226['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x25f060,_0x5472c9))continue;return _0x25f060;}if(Lt(_0x25f060,_0x5472c9))return _0x25f060;this['_breakSuggestionMarker'](_0x25f060,_0x3537e6['start'],_0x3537e6['end']);break;}if(_0xc20a71==_0x25f060['subType']&&Lt(_0x25f060,_0x5472c9)){const _0x2bbe88=_0x25f060['getFirstRange']();return _0x2bbe88['start']['isEqual'](_0x3537e6['end'])?this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x3537e6['start'],_0x2bbe88['end'])):this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x2bbe88['start'],_0x3537e6['end'])),_0x25f060;}}const _0x5e3315=_0x4b80ff(),_0x36a1ad=_0x2c0f77['id'],_0x394ce3=_0xc20a71?'insertion:'+_0xc20a71:'insertion',_0x1ebaab=this['_setSuggestionData']({'id':_0x5e3315,'type':_0x394ce3,'createdAt':new Date(),'authorId':_0x36a1ad,'attributes':_0x5472c9});return this['_addSuggestionMarker'](_0x394ce3,_0x5e3315,_0x36a1ad,_0x3537e6),_0x1ebaab;}['markMultiRangeInsertion'](_0x4a1479,_0x457eca='multi',_0x52b5b7={}){const _0x5f256d=this['editor']['plugins']['get']('Users')['me'],_0x4d6e82=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x457eca,'join');for(const _0x51e28e of this['getSuggestions']())if(_0x51e28e['author']['id']==_0x5f256d['id']&&'insertion'==_0x51e28e['type']&&_0x51e28e['subType']==_0x457eca&&Lt(_0x51e28e,_0x52b5b7)&&(_0x4d6e82(_0x51e28e['getRanges'](),_0x4a1479)||_0x4d6e82(_0x4a1479,_0x51e28e['getRanges']()))){for(const _0x4196c7 of _0x4a1479)_0x51e28e['addRange'](_0x4196c7);return _0x51e28e;}for(const {suggestion:_0x43253d,meta:_0x48990a}of this['_findSuggestions'](_0x4a1479,'insertion')){if(!_0x48990a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48990a['containsRangeInObject'])continue;if(!Lt(_0x43253d,_0x52b5b7))continue;let _0xfd4818=!0x0;for(const _0x574521 of _0x43253d['getRanges']())for(const _0x33cb0b of _0x4a1479)if(!_0x574521['containsRange'](_0x33cb0b)){_0xfd4818=!0x1;break;}if(_0xfd4818)return _0x43253d;}const _0x583592=_0x4b80ff(),_0x475f42=_0x5f256d['id'],_0x30cf8d='insertion:'+_0x457eca,_0x5025bc=this['_setSuggestionData']({'id':_0x583592,'type':_0x30cf8d,'createdAt':new Date(),'authorId':_0x475f42,'attributes':_0x52b5b7});for(const _0x176415 of _0x4a1479)this['_addSuggestionMarker'](_0x30cf8d,_0x583592,_0x475f42,_0x176415,u['getMultiRangeId']());return _0x5025bc;}['markInlineFormat'](_0x348e54,_0x4008d1,_0x52b6d8=null,_0x45e8ff={}){if(_0x52b6d8=_0x52b6d8||Vt(_0x4008d1),_0x348e54['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d5dda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');return this['forceDefaultExecution'](()=>_0x2d5dda([_0x348e54],_0x4008d1,_0x45e8ff)),null;}const _0x3f202d=this['editor']['plugins']['get']('Users')['me'],_0xedcc54=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x402cb2,meta:_0x30a772}of this['_findSuggestions'](_0x348e54,'insertion'))_0x30a772['isOwn']&&!_0x30a772['isInsideObject']&&_0xedcc54['push'](..._0x402cb2['getRanges']());}const _0x575e31=function(_0x367a18,_0x2b7832){const _0x54ebfa=[];for(const _0x558715 of _0x2b7832){const _0x3a8ad8=_0x367a18['getIntersection'](_0x558715);_0x3a8ad8&&_0x54ebfa['push'](_0x3a8ad8);}return _0x54ebfa;}(_0x348e54,_0xedcc54),_0x3af84c=function(_0x17d709,_0x139c04){const _0x5e3c9a=[_0x17d709];for(const _0x22b366 of _0x139c04){let _0x2c478b=0x0;for(;_0x2c478b<_0x5e3c9a['length'];){const _0x42fee4=_0x5e3c9a[_0x2c478b]['getDifference'](_0x22b366);_0x5e3c9a['splice'](_0x2c478b,0x1,..._0x42fee4),_0x2c478b+=_0x42fee4['length'];}}return _0x5e3c9a;}(_0x348e54,_0xedcc54);_0x575e31['length']&&this['_model']['change'](()=>{for(const _0x48a4f6 of _0x575e31){const _0x4a0661=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');this['forceDefaultExecution'](()=>_0x4a0661([_0x48a4f6],_0x4008d1,_0x45e8ff));}});for(const _0x3da246 of _0x3af84c){let _0x49d2cb=null,_0x1ed596=_0x3da246['start'],_0x32ab83=_0x3da246['end'];for(const {suggestion:_0x3f2679,meta:_0x4f406d}of this['_findSuggestions'](_0x3da246,'formatInline')){if(!_0x4f406d['isOwn'])continue;if(_0x3f2679['subType']!=_0x52b6d8)continue;if(!Lt(_0x3f2679,_0x45e8ff))continue;const _0x4b5ae2=_0x3f2679['getFirstRange']();if(_0x4b5ae2['containsRange'](_0x3da246,!0x0))return null;_0x1ed596=_0x1ed596['isBefore'](_0x4b5ae2['start'])?_0x1ed596:_0x4b5ae2['start'],_0x32ab83=_0x32ab83['isAfter'](_0x4b5ae2['end'])?_0x32ab83:_0x4b5ae2['end'],_0x49d2cb?_0x4b5ae2['start']['isBefore'](_0x49d2cb['getFirstRange']()['start'])?(_0x49d2cb['removeMarkers'](),_0x49d2cb=_0x3f2679):_0x3f2679['removeMarkers']():_0x49d2cb=_0x3f2679;}const _0x3fa238=this['_model']['createRange'](_0x1ed596,_0x32ab83);if(_0x49d2cb)this['_setSuggestionRange'](_0x49d2cb,_0x3fa238);else{const _0x38724e=_0x4b80ff(),_0xf55789=_0x3f202d['id'];this['_setSuggestionData']({'id':_0x38724e,'type':'formatInline:'+_0x52b6d8,'data':_0x4008d1,'createdAt':new Date(),'authorId':_0xf55789,'attributes':_0x45e8ff}),this['_addSuggestionMarker']('formatInline:'+_0x52b6d8,_0x38724e,_0xf55789,_0x3fa238);}}return null;}['markBlockFormat'](_0x3251ea,_0x4a6e0a,_0x3a9749=[],_0x24fd69=null,_0x22a6d4={}){_0x4a6e0a['formatGroupId']||(_0x4a6e0a['formatGroupId']=_0x4a6e0a['commandName']),_0x4a6e0a['multipleBlocks']=_0x3251ea['is']('range'),_0x24fd69=_0x24fd69||Vt(_0x4a6e0a);const _0x11ce27=_0x3a9749['map'](_0x2bd42f=>Gt(_0x2bd42f,this['_model'])),_0x315ac1=_0x3251ea['is']('range')?_0x3251ea:Gt(_0x3251ea,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd7c0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0xd7c0e0([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}_0x11ce27['push'](_0x315ac1);let _0x1fac0d=!0x0;for(const _0xf2f926 of _0x11ce27)if(!this['_rangeIsInLocalUserInsertion'](_0xf2f926)){_0x1fac0d=!0x1;break;}if(_0x1fac0d&&'always'!==this['_trackFormatChanges']){const _0x4a45a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0x4a45a9([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}let _0x5ced6c=null,_0x4f588c=_0x315ac1['start'],_0x4dc3a4=_0x315ac1['end'];for(const {suggestion:_0x50a109,meta:_0x4a6875}of this['_findSuggestions'](_0x315ac1,'formatBlock')){if(!_0x4a6875['isOwn'])continue;if(_0x4a6875['isNextTo']||_0x4a6875['containsRangeInObject']||_0x4a6875['isInsideObject'])continue;if(_0x50a109['data']['formatGroupId']!=_0x4a6e0a['formatGroupId'])continue;if(!Lt(_0x50a109,_0x22a6d4))continue;const _0x32135e=_0x50a109['getFirstRange']();if(_0x50a109['subType']==_0x24fd69){if(_0x32135e['containsRange'](_0x315ac1,!0x0))return null;_0x4f588c=_0x4f588c['isBefore'](_0x32135e['start'])?_0x4f588c:_0x32135e['start'],_0x4dc3a4=_0x4dc3a4['isAfter'](_0x32135e['end'])?_0x4dc3a4:_0x32135e['end'],_0x5ced6c?_0x32135e['start']['isBefore'](_0x5ced6c['getFirstRange']()['start'])?(_0x5ced6c['removeMarkers'](),_0x5ced6c=_0x50a109):_0x50a109['removeMarkers']():_0x5ced6c=_0x50a109;}else{const _0x36ec3d=_0x315ac1['getIntersection'](_0x32135e);this['_cutOutSuggestionMarker'](_0x50a109,_0x36ec3d);}}const _0x5406a5=this['editor']['plugins']['get']('Users')['me'],_0x538118=_0x4b80ff(),_0x2a26bc=_0x5406a5['id'];if(_0x5ced6c)return this['_setSuggestionRange'](_0x5ced6c,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x5ced6c;{const _0x1d9373=this['_setSuggestionData']({'id':_0x538118,'type':'formatBlock:'+_0x24fd69,'data':_0x4a6e0a,'createdAt':new Date(),'authorId':_0x2a26bc,'attributes':_0x22a6d4});return this['_addSuggestionMarker']('formatBlock:'+_0x24fd69,_0x538118,_0x2a26bc,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x1d9373;}}['markMultiRangeBlockFormat'](_0x4f64d7,_0xdbb2e4,_0x3693cf=[],_0x3ef983=null,_0x2c343f={}){_0xdbb2e4['formatGroupId']||(_0xdbb2e4['formatGroupId']=_0xdbb2e4['commandName']);const _0x366ec6=_0x4f64d7[0x0];_0xdbb2e4['multipleBlocks']=_0x366ec6['is']('range'),_0x3ef983=_0x3ef983||Vt(_0xdbb2e4);const _0x39faf6=_0x3693cf['map'](_0x84ebe9=>Gt(_0x84ebe9,this['_model'])),_0x285488=_0x366ec6['is']('range')?_0x4f64d7:_0x4f64d7['map'](_0x63e3b3=>Gt(_0x63e3b3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5b66af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5b66af(_0x285488,_0xdbb2e4,_0x2c343f)),null;}_0x39faf6['push'](..._0x285488);let _0x1dd8ba=!0x0;for(const _0x1bac43 of _0x39faf6)if(!this['_rangeIsInLocalUserInsertion'](_0x1bac43)){_0x1dd8ba=!0x1;break;}if(_0x1dd8ba&&'always'!==this['_trackFormatChanges']){const _0x5c4ebd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5c4ebd(_0x285488,_0xdbb2e4,_0x2c343f)),null;}const _0x555588=this['editor']['plugins']['get']('Users')['me'];for(const _0x5dcb1a of this['getSuggestions']()){if(_0x5dcb1a['author']['id']!=_0x555588['id'])continue;if('formatBlock'!=_0x5dcb1a['type']||_0x5dcb1a['data']['formatGroupId']!=_0xdbb2e4['formatGroupId'])continue;if(!Lt(_0x5dcb1a,_0x2c343f))continue;const _0x557f66=_0x5dcb1a['subType']==_0x3ef983;for(let _0x5d3d5f=0x0;_0x5d3d5f<_0x285488['length'];_0x5d3d5f++){const _0x475aa7=_0x285488[_0x5d3d5f];for(const _0x3bd198 of _0x5dcb1a['getMarkers']()){const _0x5ec19d=_0x3bd198['getRange']();if(_0x475aa7['isEqual'](_0x5ec19d)){_0x557f66?(_0x285488['splice'](_0x5d3d5f,0x1),_0x5d3d5f--):_0x5dcb1a['removeMarker'](_0x3bd198['name']);break;}}}}if(0x0==_0x285488['length'])return null;const _0x169864=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'join');for(const _0x21da7e of this['getSuggestions']())if(_0x21da7e['author']['id']==_0x555588['id']&&'formatBlock'==_0x21da7e['type']&&_0x21da7e['data']['formatGroupId']==_0xdbb2e4['formatGroupId']&&_0x21da7e['subType']==_0x3ef983&&Lt(_0x21da7e,_0x2c343f)&&(_0x169864(_0x21da7e['getRanges'](),_0x285488)||_0x169864(_0x285488,_0x21da7e['getRanges']()))){for(const _0x2b8ece of _0x285488)_0x21da7e['addRange'](_0x2b8ece);return _0x21da7e;}const _0x48446c=_0x4b80ff(),_0x57e9d3=_0x555588['id'],_0x2e3c9b='formatBlock:'+_0x3ef983,_0x5b3f13=this['_setSuggestionData']({'id':_0x48446c,'type':_0x2e3c9b,'data':_0xdbb2e4,'createdAt':new Date(),'authorId':_0x57e9d3,'attributes':_0x2c343f});for(const _0x1f0541 of _0x285488)this['_addSuggestionMarker'](_0x2e3c9b,_0x48446c,_0x57e9d3,_0x1f0541,u['getMultiRangeId']());return _0x5b3f13;}['markDeletion'](_0x264f76,_0x323192=null,_0x57c82c={}){if(_0x264f76['isCollapsed'])return null;const _0x4f26af=this['editor']['plugins']['get']('Users')['me'],_0x2fa564=new _0x218be5(_0x264f76['start'],_0x264f76['end']);for(const {suggestion:_0x5e615f,meta:_0x1ff8e5}of this['_findSuggestions'](_0x2fa564,'insertion'))if(_0x1ff8e5['isOwn']&&!_0x1ff8e5['isNextTo']){if(_0x5e615f['isMultiRange']){const _0x2f1ffd=_0x5e615f['getRanges']()['filter'](_0xcf7662=>'$graveyard'!=_0xcf7662['root']['rootName']);_0x2f1ffd['every'](_0x39c4ad=>_0x2fa564['containsRange'](_0x39c4ad,!0x0))&&_0x5e615f['discard']();if(_0x2f1ffd['some'](_0x3f5504=>_0x3f5504['containsRange'](_0x2fa564,!0x0))){const _0x400db1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x323192,'accept');return this['forceDefaultExecution'](()=>_0x400db1([_0x2fa564],null,_0x57c82c)),null;}}else{const _0x4a7ac8=_0x2fa564['getIntersection'](_0x5e615f['getFirstRange']());null!==_0x4a7ac8&&_0x5e615f['_onDiscard']([_0x4a7ac8],null,_0x57c82c);}}if(_0x2fa564['detach'](),_0x2fa564['isCollapsed']||'$graveyard'==_0x2fa564['root']['rootName'])return null;let _0x541aa3=null,_0x12cff2=_0x2fa564['start'],_0x196069=_0x2fa564['end'];const _0x5730c7=this['_findSuggestions'](_0x2fa564,'deletion');for(const {suggestion:_0x5e45be,meta:_0x195145}of _0x5730c7){const _0x1e5d88=this['_model']['createRange'](_0x12cff2,_0x196069);if(_0x195145['isOwn']&&(this['_mergeNestedSuggestions']||!_0x195145['containsRangeInObject']&&!_0x195145['isInsideObject'])){if(_0x5e45be['isMultiRange']){if(!Lt(_0x5e45be,_0x57c82c))continue;let _0x460bbf=!0x0;for(const _0x32c4e1 of _0x5e45be['getRanges']()){if(_0x32c4e1['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;_0x1e5d88['containsRange'](_0x32c4e1)||(_0x460bbf=!0x1);}_0x460bbf&&_0x5e45be['discard']();}else{const _0x461642=_0x5e45be['getFirstRange']();if(_0x461642['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;if(!Lt(_0x5e45be,_0x57c82c)){_0x1e5d88['containsRange'](_0x461642)?_0x5e45be['removeMarkers']():_0x461642['containsPosition'](_0x12cff2)?_0x12cff2=_0x461642['end']:_0x461642['containsPosition'](_0x196069)&&(_0x196069=_0x461642['start']);continue;}_0x12cff2=_0x12cff2['isBefore'](_0x461642['start'])?_0x12cff2:_0x461642['start'],_0x196069=_0x196069['isAfter'](_0x461642['end'])?_0x196069:_0x461642['end'],_0x57c82c=Object['assign']({},_0x5e45be['attributes']),_0x541aa3?_0x461642['start']['isBefore'](_0x541aa3['getFirstRange']()['start'])?(_0x541aa3['removeMarkers'](),_0x541aa3=_0x5e45be):_0x5e45be['removeMarkers']():_0x541aa3=_0x5e45be;}}}if(_0x541aa3)return this['_setSuggestionRange'](_0x541aa3,this['_model']['createRange'](_0x12cff2,_0x196069)),_0x541aa3;{const _0x1316c1=_0x4b80ff(),_0xd60da7=this['_model']['createRange'](_0x12cff2,_0x196069),_0x44067b=_0x4f26af['id'],_0x155604=_0x323192?'deletion:'+_0x323192:'deletion',_0x62ece3=this['_setSuggestionData']({'id':_0x1316c1,'type':_0x155604,'createdAt':new Date(),'authorId':_0x44067b,'attributes':_0x57c82c});return this['_addSuggestionMarker'](_0x155604,_0x1316c1,_0x44067b,_0xd60da7),_0x62ece3;}}['markMultiRangeDeletion'](_0x108c79,_0x1e7017='multi',_0x4bbe8b={}){const _0xa54556=this['editor']['plugins']['get']('Users')['me'],_0x2961fc=_0x108c79['map'](_0x53dcf1=>new _0x218be5(_0x53dcf1['start'],_0x53dcf1['end'])),_0xba16f4=new Set();for(const {suggestion:_0x16cb03,meta:_0x2c8ed3}of this['_findSuggestions'](_0x2961fc,'insertion'))_0x2c8ed3['isOwn']&&!_0x2c8ed3['isNextTo']&&_0xba16f4['add'](_0x16cb03);for(const _0x153c6e of _0xba16f4)if(_0x153c6e['isMultiRange']){const _0x2eec4e=_0x153c6e['getRanges']();(!_0x153c6e['attributes']||!_0x153c6e['attributes']['skipNestingCheck'])&&(_0x2eec4e['every'](_0x4b5401=>_0x2961fc['some'](_0x195917=>_0x195917['containsRange'](_0x4b5401,!0x0)))&&_0x153c6e['discard']());if(_0x2961fc['every'](_0x2c58df=>_0x2eec4e['some'](_0x3f92f2=>_0x3f92f2['containsRange'](_0x2c58df,!0x0)))){const _0x57be2e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x57be2e(_0x108c79,null,_0x4bbe8b)),null;}}else{const _0x21c6f5=_0x153c6e['getFirstRange']();_0x2961fc['some'](_0xe19323=>_0xe19323['containsRange'](_0x21c6f5,!0x0))&&_0x153c6e['discard']();if(_0x2961fc['every'](_0x5cb34a=>_0x21c6f5['containsRange'](_0x5cb34a,!0x0))){const _0x12a45a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x12a45a(_0x2961fc,null,_0x4bbe8b)),null;}}const _0x2b28e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'join');let _0x32d1f9=null;for(const _0xe34cb of this['getSuggestions']())if(_0xe34cb['author']['id']==_0xa54556['id']&&_0xe34cb['isInContent']&&'deletion'==_0xe34cb['type']&&_0xe34cb['subType']==_0x1e7017&&Lt(_0xe34cb,_0x4bbe8b)&&(_0x2b28e9(_0xe34cb['getRanges'](),_0x2961fc)||_0x2b28e9(_0x2961fc,_0xe34cb['getRanges']()))){if(_0x32d1f9){if(_0xe34cb['commentThread']&&_0xe34cb['commentThread']['length'])continue;for(const _0x310cd9 of _0xe34cb['getRanges']())_0x32d1f9['isIntersectingWithRange'](_0x310cd9)||_0x32d1f9['addRange'](_0x310cd9);_0xe34cb['removeMarkers']();}else{_0x32d1f9=_0xe34cb;for(const _0x549d8f of _0x2961fc)_0xe34cb['isIntersectingWithRange'](_0x549d8f)||_0xe34cb['addRange'](_0x549d8f);}}if(_0x32d1f9)return _0x32d1f9;_0xba16f4['clear']();for(const {suggestion:_0x2591aa,meta:_0x4d1e87}of this['_findSuggestions'](_0x2961fc,'deletion'))_0x4d1e87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d1e87['containsRangeInObject']&&!_0x4d1e87['isInsideObject'])&&Lt(_0x2591aa,_0x4bbe8b)&&_0xba16f4['add'](_0x2591aa);for(const _0x1a58f0 of _0xba16f4){const _0xb9cb78=_0x1a58f0['getRanges']();if(!_0x4bbe8b||!_0x4bbe8b['skipNestingCheck']){if(_0x2961fc['every'](_0x4084f5=>_0xb9cb78['some'](_0x2411fd=>_0x2411fd['containsRange'](_0x4084f5,!0x0))))return _0x1a58f0;}(!_0x1a58f0['attributes']||!_0x1a58f0['attributes']['skipNestingCheck'])&&(_0xb9cb78['every'](_0x545c98=>_0x2961fc['some'](_0x363c98=>_0x363c98['containsRange'](_0x545c98,!0x0)))&&_0x1a58f0['discard']());}const _0x31d781=_0x4b80ff(),_0x37d1f6=_0xa54556['id'],_0x2ed3a9='deletion:'+_0x1e7017,_0x1f7257=this['_setSuggestionData']({'id':_0x31d781,'type':_0x2ed3a9,'createdAt':new Date(),'authorId':_0x37d1f6,'attributes':_0x4bbe8b});for(const _0x2cb1fe of _0x2961fc)_0x2cb1fe['detach'](),_0x2cb1fe['isCollapsed']||'$graveyard'==_0x2cb1fe['root']['rootName']||this['_addSuggestionMarker'](_0x2ed3a9,_0x31d781,_0x37d1f6,_0x2cb1fe,u['getMultiRangeId']());return _0x1f7257;}['markAttributeChange'](_0x3986de,_0x4708fa,_0x4f42b2,_0x436c42,_0x5993d1){if(_0x3986de['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x143733=this['editor']['plugins']['get']('Users')['me']['id'],_0x39e3ff=Array['from'](this['_suggestions']['values']())['filter'](_0x5c19c0=>'attribute'==_0x5c19c0['type']&&_0x5c19c0['data']['key']==_0x4708fa&&_0x5c19c0['isIntersectingWithRange'](_0x3986de));if('default'===this['_trackFormatChanges']){const _0x485796=this['_findSuggestions'](_0x3986de,'insertion')['filter'](({meta:_0x1cf972})=>_0x1cf972['isOwn']&&!_0x1cf972['isInsideObject']&&!_0x1cf972['isNextTo'])['map'](({suggestion:_0x2dc456})=>_0x2dc456);_0x39e3ff['unshift'](..._0x485796);}const _0x4461e8=new Map([[_0x3986de,_0x4f42b2]]);for(const _0x258bf7 of _0x39e3ff){const _0x58ab57='attribute'==_0x258bf7['type']?_0x258bf7['data']['oldValue']:void 0x0,_0x2e2947=_0x258bf7['getFirstRange'](),_0xac799=Array['from'](_0x4461e8['keys']())['find'](_0x2f72ca=>_0x2f72ca['isIntersecting'](_0x2e2947));if(!_0xac799)continue;const _0x3ad2f3=_0xac799['getDifference'](_0x2e2947);this['_isBlockAttribute'](_0x4708fa)&&'insertion'==_0x258bf7['type']&&0x0!=_0x3ad2f3['length']||(_0x4461e8['delete'](_0xac799),_0x3ad2f3['forEach'](_0x296a15=>{_0x4461e8['set'](_0x296a15,_0x4f42b2);}),'insertion'!=_0x258bf7['type']&&_0x58ab57!=_0x436c42&&_0x4461e8['set'](_0xac799['getIntersection'](_0x2e2947),_0x58ab57));}const _0x3e1a7f=[];for(const [_0x575409,_0x483e75]of _0x4461e8){const _0x47c388=_0x4b80ff(),_0xb57c66={'key':_0x4708fa,'oldValue':_0x483e75,'newValue':_0x436c42};_0x4708fa['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':_0x4708fa});const _0x1842c0=('attribute:'+(_0x4708fa+'|'+Vt({'newValue':_0x436c42})))['substring'](0x0,0x3c),_0x2bda37=this['_setSuggestionData']({'id':_0x47c388,'type':_0x1842c0,'data':_0xb57c66,'createdAt':new Date(),'authorId':_0x143733,'attributes':_0x5993d1});_0x3e1a7f['push'](_0x2bda37),this['_addSuggestionMarker'](_0x1842c0,_0x47c388,_0x143733,_0x575409);}return _0x3e1a7f;}['enableDefaultAttributesIntegration'](_0x156e31){this['enableCommand'](_0x156e31,(_0x5cbb8e,..._0x46479c)=>{this['_recordAttributeChanges'](()=>{_0x5cbb8e(..._0x46479c);});});}['registerBlockAttribute'](_0x24d269){this['_blockAttributeKeys']['add'](_0x24d269);}['registerInlineAttribute'](_0x2c20d4){this['_inlineAttributeKeys']['add'](_0x2c20d4);}['_getAttributeKey'](_0x28893e){return'attribute'==_0x28893e['type']?_0x28893e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38095e,_0x41331e){const _0x15c48f=_0x38095e['getFirstMarker']();this['_model']['change'](_0x31b087=>{_0x31b087['updateMarker'](_0x15c48f,{'range':_0x41331e});});}['_addThreadToSuggestion'](_0x3fb674){const _0x378dd4=_0x3fb674['id'],_0x24b234=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x378dd4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24b234,'threadId':_0x378dd4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3915a1=this['_commentsRepository']['getCommentThread'](_0x378dd4);_0x3915a1['unbind']('isRemovable'),_0x3915a1['isRemovable']=!0x1,_0x3fb674['commentThread']=_0x3915a1;}['_checkSuggestionCorrectness'](_0x96bbfb,_0x5488ca,_0x5bed9a,_0x293e23){if(_0x96bbfb['type']!=_0x5488ca||_0x96bbfb['subType']!=_0x5bed9a||_0x96bbfb['creator']['id']!=_0x293e23)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40a0bd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x75d0e8,_0x5ee0db){const _0x468920=_0x75d0e8['getFirstRange']();if(_0x5ee0db['isEqual'](_0x468920))_0x75d0e8['removeMarkers']();else{if(_0x468920['containsRange'](_0x5ee0db)){const _0x51fade=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x51fade));const _0x2d9b96=_0x4b80ff(),_0x1ac7c4=_0x75d0e8['creator']['id'],_0x44fdec=_0x75d0e8['type']+':'+_0x75d0e8['subType'];this['_setSuggestionData']({'id':_0x2d9b96,'type':_0x44fdec,'createdAt':new Date(),'authorId':_0x1ac7c4,'data':_0x75d0e8['data'],'attributes':_0x75d0e8['attributes']});const _0x5dcc53=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after'),_0x4f53c5=this['_model']['createRange'](_0x5dcc53,_0x468920['end']);this['_addSuggestionMarker'](_0x44fdec,_0x2d9b96,_0x1ac7c4,_0x4f53c5);}else{if(_0x468920['containsPosition'](_0x5ee0db['start'])){const _0x46a2bb=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x46a2bb));}else{const _0x5a1372=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x5a1372,_0x468920['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x425119){for(const {suggestion:_0x45bf5a,meta:_0x823ba8}of this['_findSuggestions'](_0x425119,'insertion')){if(!_0x823ba8['isOwn'])continue;const _0x1c7e03=_0x45bf5a['getRanges']();for(const _0x4ff874 of _0x1c7e03)if(!_0x425119['getDifference'](_0x4ff874)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f95f1){const _0x4a3e7f=this['editor']['plugins']['get']('Users')['getUser'](_0x2f95f1);if(!_0x4a3e7f)throw new _0x40a0bd('track-changes-user-not-found',this);return _0x4a3e7f;}['_getExternalAuthor'](_0x56d8cc){const _0x536627=this['editor']['plugins']['get']('Users'),_0xb2b89f=_0x2c77f1('external:'+_0x56d8cc),_0x302b32=_0x536627['getUser'](_0xb2b89f);return _0x302b32||_0x536627['addUser']({'id':_0xb2b89f,'name':_0x56d8cc});}['_createSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0xb03255,_0x574d2e){const _0x2d1a5c=this['_getAuthorFromId'](_0xb03255),_0x2199a1=this['_suggestionFactory']['buildSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0x2d1a5c,_0x574d2e,_0x486e26=>{this['_updateSuggestionData'](_0x481281,{'attributes':_0x486e26});const _0xd0163b=this['getSuggestion'](_0x481281);this['_joinWithAdjacentSuggestions'](new Set([_0xd0163b])),this['_refreshSuggestionsChain'](new Set([_0xd0163b]));});return this['listenTo'](_0x2199a1,'accept',()=>{this['_updateSuggestionData'](_0x481281,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2199a1,'discard',()=>{this['_updateSuggestionData'](_0x481281,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x481281,_0x2199a1),this['_suggestionState']['set'](_0x2199a1,'notReady'),_0x2199a1;}['_splitMarkerName'](_0x1d05d3){const _0x49d89a=_0x1d05d3['split'](':');return{'group':_0x49d89a[0x0],'type':_0x49d89a[0x1],'subType':_0x49d89a['length']>=0x5?_0x49d89a[0x2]:null,'id':_0x49d89a['length']<0x5?_0x49d89a[0x2]:_0x49d89a[0x3],'authorId':_0x49d89a['length']<0x5?_0x49d89a[0x3]:_0x49d89a[0x4],'markerCount':0x6==_0x49d89a['length']?_0x49d89a[0x5]:null};}['_breakSuggestionMarker'](_0x3dff0f,_0x3ad6ce,_0x548f2a){const _0x22bd5c=_0x3dff0f['getFirstRange'](),_0x102c0d=_0x22bd5c['start'],_0x3c3f50=_0x22bd5c['end'];this['_setSuggestionRange'](_0x3dff0f,this['_model']['createRange'](_0x102c0d,_0x3ad6ce));const _0x59f71d=_0x4b80ff(),_0x18d4d7=_0x3dff0f['creator']['id'],_0x351629=_0x3dff0f['type']+(_0x3dff0f['subType']?':'+_0x3dff0f['subType']:'');this['_setSuggestionData']({'id':_0x59f71d,'type':_0x351629,'createdAt':new Date(),'authorId':_0x18d4d7,'originalSuggestionId':_0x3dff0f['id'],'attributes':_0x3dff0f['attributes'],'data':_0x3dff0f['data']});const _0x33cb98=this['_getAttributeKey'](_0x3dff0f);('formatBlock'==_0x3dff0f['type']||_0x33cb98&&this['_isBlockAttribute'](_0x33cb98))&&(_0x548f2a=this['_model']['createPositionBefore'](_0x548f2a['parent'])),this['_addSuggestionMarker'](_0x351629,_0x59f71d,_0x18d4d7,this['_model']['createRange'](_0x548f2a,_0x3c3f50));}['_findSuggestions'](_0xefe4f,_0x3813d4=null){const _0x556597=[],_0xf65783=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xefe4f)||(_0xefe4f=[_0xefe4f]);for(const _0x49f9c9 of this['getSuggestions']()){if(!_0x49f9c9['isInContent'])continue;if(_0x3813d4&&_0x49f9c9['type']!=_0x3813d4)continue;let _0x5b132e=!0x1;for(const _0x104eec of _0x49f9c9['getRanges']()){for(const _0x3535e6 of _0xefe4f){const _0x1009d0=_0x3535e6['start']['isEqual'](_0x104eec['end'])||_0x3535e6['end']['isEqual'](_0x104eec['start']);if(_0x1009d0||_0x3535e6['getIntersection'](_0x104eec)){const _0x80f5fc=_0x3535e6['containsRange'](_0x104eec)&&Rt(this['_model']['schema'],_0x104eec['start'],_0x3535e6),_0x25e81f=_0x104eec['containsRange'](_0x3535e6)&&Rt(this['_model']['schema'],_0x3535e6['start'],_0x104eec);_0x556597['push']({'suggestion':_0x49f9c9,'meta':{'isOwn':_0xf65783==_0x49f9c9['author'],'isNextTo':_0x1009d0,'isInsideObject':_0x80f5fc,'containsRangeInObject':_0x25e81f}}),_0x5b132e=!0x0;break;}}if(_0x5b132e)break;}}return _0x556597;}['_addSuggestionMarker'](_0x473ce3,_0x285327,_0x55b4f5,_0x3adfb9,_0x22a3e3){this['_model']['change'](_0x37e843=>{let _0x31d09c='suggestion:'+_0x473ce3+':'+_0x285327+':'+_0x55b4f5;_0x22a3e3&&(_0x31d09c=_0x31d09c+':'+_0x22a3e3),_0x37e843['addMarker'](_0x31d09c,{'range':_0x3adfb9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x20f43f){const _0x21365b=_0x20f43f['previous'],_0x9b58e9=_0x20f43f['next'];_0x20f43f['previous']=null,_0x20f43f['next']=null,null!=_0x21365b&&_0x21365b['next']==_0x20f43f&&(_0x21365b['next']=_0x9b58e9),null!=_0x9b58e9&&_0x9b58e9['previous']==_0x20f43f&&(_0x9b58e9['previous']=_0x21365b),'ready'==this['_suggestionState']['get'](_0x20f43f)&&(this['_suggestionState']['set'](_0x20f43f,'removed'),this['fire']('suggestionUnloaded',_0x20f43f,_0x21365b,_0x9b58e9));}['_setSuggestionData'](_0x11ca98){const _0x14aa43=_0x11ca98['id'],_0x1cedc6=this['addSuggestionData'](_0x11ca98);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x511592=this['editor']['plugins']['get']('PendingActions'),_0x138dd3=_0x1cedc6['hasComments'],_0x1f79d3=_0x1cedc6['subType']?_0x1cedc6['type']+':'+_0x1cedc6['subType']:_0x1cedc6['type'],_0x3dd7af=this['editor']['locale'],_0x1d1ac6=_0x511592['add'](o(_0x3dd7af,'PENDING_ACTION_SUGGESTION')),_0x105059={'id':_0x14aa43,'type':_0x1f79d3,'hasComments':_0x138dd3,'data':_0x11ca98['data']||null,'originalSuggestionId':_0x11ca98['originalSuggestionId']||null,'attributes':_0x1cedc6['attributes']};this['_adapter']['addSuggestion'](_0x105059)['then'](_0x2d3a82=>{_0x1cedc6['_saved']=!0x0,_0x511592['remove'](_0x1d1ac6),_0x2d3a82&&_0x2d3a82['createdAt']&&(this['_suggestions']['get'](_0x14aa43)['createdAt']=_0x2d3a82['createdAt']);})['catch'](_0x2e3025=>{throw _0x23467f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1cedc6['discard']();}),_0x1cedc6['stopListening'](),this['_suggestions']['delete'](_0x1cedc6['id']),this['_suggestionState']['delete'](_0x1cedc6),_0x2e3025;});}return _0x1cedc6;}['_isBlockAttribute'](_0x279a57){return this['_blockAttributeKeys']['has'](_0x279a57);}['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b){const _0x39eff1=this['editor']['plugins']['get']('PendingActions'),_0x13f990=this['getSuggestion'](_0x2d5c8f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x13f990['_saved']){const _0x21d407=_0x39eff1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d5c8f,_0x4ae82b)['then'](()=>{_0x39eff1['remove'](_0x21d407);});}else _0x13f990['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b);});}}['_getSuggestionData'](_0x4f93b8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40a0bd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f93b8);}['_handleNewSuggestionMarker'](_0x5cce81){const {id:_0x3fdd53,type:_0x4e540b,subType:_0x4e1e34,authorId:_0x18a406}=this['_splitMarkerName'](_0x5cce81),_0x3bc73b=this['_suggestions']['get'](_0x3fdd53)||this['_createSuggestion'](_0x4e540b,_0x4e1e34,_0x3fdd53,_0x18a406,{});switch(this['_checkSuggestionCorrectness'](_0x3bc73b,_0x4e540b,_0x4e1e34,_0x18a406),this['_suggestionState']['get'](_0x3bc73b)){case'notReady':this['_getSuggestionData'](_0x3fdd53)['then'](_0x5a6fc2=>{let _0x1ed006=Promise['resolve']();_0x5a6fc2['hasComments']&&(_0x1ed006=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fdd53})),_0x1ed006['then'](()=>{this['addSuggestionData'](_0x5a6fc2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3bc73b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fdd53,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3bc73b,'ready'),this['fire']('suggestionLoaded',_0x3bc73b);break;case'ready':this['fire']('suggestionChanged',_0x3bc73b);}return _0x3bc73b['addMarkerName'](_0x5cce81),_0x3bc73b;}['_refreshSuggestionsChain'](_0x55fd85){const _0x367bca=Array['from'](_0x55fd85),_0x5614b4=_0x367bca['filter'](_0x3f0ac2=>'attribute'==_0x3f0ac2['type']);this['_refreshAttributeSuggestionsChain'](_0x5614b4);const _0x194932=_0x367bca['filter'](_0x540b07=>!_0x540b07['isMultiRange']&&'attribute'!=_0x540b07['type']),_0x269b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ebfac=>!_0x3ebfac['isMultiRange']&&'attribute'!=_0x3ebfac['type']),_0xc45100=_0x269b18['filter'](_0x5a1832=>!_0x55fd85['has'](_0x5a1832)),_0x405c97=new Map(_0x269b18['map'](_0x552217=>[_0x552217,this['_suggestionFactory']['getSuggestionCallback'](_0x552217['type'],_0x552217['subType'],'chain')])),_0x35cfd9=new Map(_0x269b18['map'](_0xe158c8=>[_0xe158c8,_0xe158c8['getFirstRange']()])),_0x2f8a9e=new Set(),_0x322f30=new Set();for(let _0x3fa493=0x0;_0x3fa493<_0x194932['length'];_0x3fa493++)_0x23b693(_0x194932[_0x3fa493],_0x194932,_0x3fa493+0x1);for(let _0x1373b1=0x0;_0x1373b1<_0x194932['length'];_0x1373b1++)_0x23b693(_0x194932[_0x1373b1],_0xc45100,0x0);const _0x26ae97=new Set();for(let _0x11a911=0x0;_0x11a911<_0x194932['length'];_0x11a911++){const _0x1a5939=_0x194932[_0x11a911];!_0x322f30['has'](_0x1a5939)&&_0x1a5939['previous']&&(_0x26ae97['add'](_0x1a5939['previous']),_0x1a5939['previous']['next']===_0x1a5939&&(_0x1a5939['previous']['next']=null),_0x1a5939['previous']=null),!_0x2f8a9e['has'](_0x1a5939)&&_0x1a5939['next']&&(_0x26ae97['add'](_0x1a5939['next']),_0x1a5939['next']['previous']===_0x1a5939&&(_0x1a5939['next']['previous']=null),_0x1a5939['next']=null);}function _0x23b693(_0x719dd7,_0x1aa7df,_0x48c4eb){for(let _0x5116a9=_0x48c4eb;_0x5116a9<_0x1aa7df['length'];_0x5116a9++){const _0x5aa29a=_0x12db53(_0x719dd7,_0x1aa7df[_0x5116a9]);_0x5aa29a&&(_0x5aa29a[0x0]['next']=_0x5aa29a[0x1],_0x5aa29a[0x1]['previous']=_0x5aa29a[0x0],_0x2f8a9e['add'](_0x5aa29a[0x0]),_0x322f30['add'](_0x5aa29a[0x1]));}}function _0x12db53(_0x3be22b,_0x35cfd4){if(_0x3be22b['author']['id']!==_0x35cfd4['author']['id'])return null;const _0x2ef9dd=_0x405c97['get'](_0x3be22b)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4));if(!_0x2ef9dd)return null;return _0x405c97['get'](_0x35cfd4)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4))?_0x2ef9dd[0x1]['commentThread']&&_0x2ef9dd[0x1]['commentThread']['length']?null:_0x2ef9dd:null;}_0x26ae97['size']&&this['_refreshSuggestionsChain'](_0x26ae97);}['_refreshAttributeSuggestionsChain'](_0x3d5b4f){if(0x0==_0x3d5b4f['length'])return;const _0x1962fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361551=>'attribute'==_0x361551['type']&&_0x361551['_isDataLoaded']),_0x1c8270=[],_0x1def64=new Map();for(const _0x187821 of _0x1962fe){const _0x448853=_0x2c77f1(_0x187821['attributes']);_0x1def64['has'](_0x448853)||(_0x1def64['set'](_0x448853,_0x1c8270['length']),_0x1c8270['push']([]));const _0x1a1d0d=_0x1def64['get'](_0x448853);_0x1c8270[_0x1a1d0d]['push'](_0x187821);}!(function(){_0x1c8270['sort']((_0x146531,_0x1bd39f)=>{const _0x183359=_0x146531[0x0]['createdAt'],_0x4598b4=_0x1bd39f[0x0]['createdAt'];return _0x183359==_0x4598b4?_0x146531[0x0]['attributes']['groupId']<_0x1bd39f[0x0]['attributes']['groupId']?-0x1:0x1:_0x183359<_0x4598b4?-0x1:0x1;});for(const _0x3629f5 of _0x1c8270)_0x3629f5['sort']((_0x4b068d,_0x30b8fc)=>_0x4b068d['id']<_0x30b8fc['id']?-0x1:0x1);}());for(let _0x17842e=0x0;_0x17842e<_0x1c8270['length'];_0x17842e++){if(0x0==_0x1c8270[_0x17842e]['length'])continue;const _0x47ef44=[];for(let _0x59d7c6=_0x17842e+0x1;_0x59d7c6<_0x1c8270['length'];_0x59d7c6++)0x0!=_0x1c8270[_0x59d7c6]['length']&&_0x1a8162(_0x1c8270[_0x17842e],_0x1c8270[_0x59d7c6])&&_0x47ef44['push'](_0x59d7c6);for(const _0x51c2c8 of _0x47ef44)_0x1c8270[_0x17842e]=_0x1c8270[_0x17842e]['concat'](_0x1c8270[_0x51c2c8]),_0x1c8270[_0x51c2c8]=[];}for(const _0x4d7b52 of _0x1c8270)for(let _0x19d494=0x0;_0x19d494<_0x4d7b52['length'];_0x19d494++)_0x4d7b52[_0x19d494]['next']=_0x4d7b52[_0x19d494+0x1]||null;for(const _0x200d43 of _0x1c8270)for(let _0x50a02e=0x0;_0x50a02e<_0x200d43['length'];_0x50a02e++)_0x200d43[_0x50a02e]['previous']=_0x200d43[_0x50a02e-0x1]||null;function _0x1a8162(_0x1d708c,_0x280833){if(_0x1d708c[0x0]['attributes']['groupId']!==_0x280833[0x0]['attributes']['groupId']&&_0x1d708c[0x0]['author']!==_0x280833[0x0]['author'])return!0x1;if(!function(_0x4fe12a,_0x7912f5){if(!_0x4fe12a['hasComments']&&!_0x7912f5['hasComments'])return!0x0;if(_0x4fe12a['hasComments']&&_0x7912f5['hasComments'])return!0x1;if(_0x4fe12a['hasComments']&&_0x7912f5['createdAt']<_0x4fe12a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7912f5['hasComments']&&_0x4fe12a['createdAt']<_0x7912f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d708c[0x0],_0x280833[0x0]))return!0x1;const _0x2b2875=Bt(_0x1d708c[0x0]['attributes'],'groupId'),_0x2d20fd=Bt(_0x280833[0x0]['attributes'],'groupId');if(!_0xf2bb64(_0x2b2875,_0x2d20fd))return!0x1;return!!_0x1d708c['every'](_0x5cebd3=>_0x280833['some'](_0x2948c1=>_0x5cebd3['getFirstRange']()['isEqual'](_0x2948c1['getFirstRange']())))&&_0x280833['every'](_0x4d6222=>_0x1d708c['some'](_0x50373e=>_0x4d6222['getFirstRange']()['isEqual'](_0x50373e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1af1d1){const _0x538624=Array['from'](_0x1af1d1),_0x4bf689=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15d6b7=_0x4bf689['filter'](_0x45994f=>!_0x1af1d1['has'](_0x45994f)),_0x1dfea2=new Map(_0x538624['map'](_0x42624a=>[_0x42624a,this['_suggestionFactory']['getSuggestionCallback'](_0x42624a['type'],_0x42624a['subType'],'join')])),_0x3cd32d=new Map(_0x4bf689['map'](_0xbaa0d3=>[_0xbaa0d3,_0xbaa0d3['getRanges']()]));for(let _0x189c48=0x0;_0x189c48<_0x538624['length'];_0x189c48++){if(_0x1a2160(this,_0x538624[_0x189c48],_0x538624,_0x189c48+0x1))return!0x0;}for(let _0x2c2cd8=0x0;_0x2c2cd8<_0x538624['length'];_0x2c2cd8++){if(_0x1a2160(this,_0x538624[_0x2c2cd8],_0x15d6b7,0x0))return!0x0;}return!0x1;function _0x1a2160(_0x123421,_0x4e680b,_0x794211,_0x49ac8c){for(let _0x1d39d2=_0x49ac8c;_0x1d39d2<_0x794211['length'];_0x1d39d2++){const _0x22b763=_0x794211[_0x1d39d2];if(_0x22b763['type']!==_0x4e680b['type']||_0x22b763['author']['id']!==_0x4e680b['author']['id']||_0x22b763['subType']!==_0x4e680b['subType'])continue;if(!Pt(_0x4e680b,_0x22b763,['groupId']))continue;if('attribute'==_0x4e680b['type']&&_0x4e680b['data']['oldValue']!=_0x22b763['data']['oldValue'])continue;if('attribute'==_0x4e680b['type']&&_0x123421['_isBlockAttribute'](_0x4e680b['data']['key']))continue;if('formatBlock'==_0x4e680b['type']){const _0x199c45=_0x123421['editor']['model'],_0x2ed50b=_0x4e680b['getContainedElement']();if(_0x2ed50b&&(_0x199c45['schema']['isObject'](_0x2ed50b)||_0x199c45['schema']['isLimit'](_0x2ed50b)))continue;}const _0x1dc9a6=_0x1dfea2['get'](_0x4e680b),_0x588f51=_0x3cd32d['get'](_0x4e680b),_0x3ae123=_0x3cd32d['get'](_0x22b763),_0x3be97c=_0x4e680b['commentThread']&&_0x4e680b['commentThread']['length'],_0x573f7b=_0x22b763['commentThread']&&_0x22b763['commentThread']['length'];if(!_0x3be97c&&_0x1dc9a6(_0x3ae123,_0x588f51))return _0x123421['_joinSuggestions'](_0x22b763,_0x4e680b),_0x3cd32d['delete'](_0x4e680b),!0x0;if(!_0x573f7b&&_0x1dc9a6(_0x588f51,_0x3ae123))return _0x123421['_joinSuggestions'](_0x4e680b,_0x22b763),_0x3cd32d['delete'](_0x22b763),!0x0;}return!0x1;}}['_joinSuggestions'](_0x236821,_0x401f33){if(_0x236821['isMultiRange']){for(const _0x160cb8 of _0x401f33['getRanges']())_0x236821['addRange'](_0x160cb8);}else{const _0x11d1fd=_0x401f33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x236821,this['_model']['createRange'](_0x236821['getFirstRange']()['start'],_0x11d1fd));}_0x401f33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52e145,_0x35908d){const _0x465466=_0x52e145['startsWith']('format')||_0x52e145['startsWith']('attribute')?'FORMATTING':_0x52e145['toUpperCase']();return o(this['editor']['locale'],_0x35908d+'_'+_0x465466+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4f73f4=this['editor'];if(!_0x4f73f4['ui'])return;const {ariaLiveAnnouncer:_0x1e1c64}=_0x4f73f4['ui'];_0x3e7c00(this['_model'],({left:_0x341560,entered:_0x1b8f2d})=>{for(const _0x487758 of _0x341560){const {group:_0x1b1bbd,type:_0x25a360}=this['_splitMarkerName'](_0x487758['name']);if('suggestion'===_0x1b1bbd){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0x25a360,'LEAVE'));break;}}for(const _0x2992f2 of _0x1b8f2d){const {group:_0x553574,type:_0xce603}=this['_splitMarkerName'](_0x2992f2['name']);if('suggestion'===_0x553574){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0xce603,'ENTER'));break;}}});}['_processAttributeChanges'](_0x46778b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ce92d=this['editor'],_0x60aa52=_0x3ce92d['model']['document']['differ']['getChanges']();if(0x0==_0x60aa52['length'])return!0x1;const _0x4ccb8e=[],_0x4d286b=_0x60aa52['filter'](_0xfc3b15=>'attribute'==_0xfc3b15['type']),_0x3240b1=_0x60aa52['filter'](_0x30be86=>'insert'==_0x30be86['type']&&'$text'!=_0x30be86['name']),_0x1ade1d=_0x60aa52['filter'](_0x1b01d3=>'remove'==_0x1b01d3['type']&&'$text'!=_0x1b01d3['name']);for(const _0x533b04 of _0x4d286b)_0x4ccb8e['push']({'key':_0x533b04['attributeKey'],'newValue':_0x533b04['attributeNewValue'],'oldValue':_0x533b04['attributeOldValue'],'range':Ot(_0x533b04['range'],_0x3ce92d['model'])});for(const _0x380ee5 of _0x3240b1){const _0x3ec349=_0x1ade1d['find'](_0xcc8582=>_0xcc8582['position']['isEqual'](_0x380ee5['position']));_0x3ec349&&_0x4ccb8e['push']({'key':m,'newValue':_0x380ee5['name'],'oldValue':_0x3ec349['name'],'range':_0x3ce92d['model']['createRangeOn'](_0x380ee5['position']['nodeAfter'])});}return 0x0!=_0x4ccb8e['length']&&this['_reduceExistingSuggestions'](_0x46778b,_0x4ccb8e);}['_processAttributeSuggestions'](_0x32076e){let _0x7379b2=!0x1;const _0x1d2ed8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x503ec6=>_0x503ec6['data']['newRange']&&_0x503ec6['name']['startsWith']('suggestion:attribute:'));for(const _0x5c6399 of _0x1d2ed8){const {subType:_0xe94681,id:_0x372f33}=this['_splitMarkerName'](_0x5c6399['name']),_0x52b470=_0xe94681['split']('|')[0x0];for(const _0x1efca6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1efca6['id']!=_0x372f33&&'attribute'==_0x1efca6['type']&&_0x1efca6['data']&&_0x1efca6['data']['key']==_0x52b470&&_0x1efca6['getFirstRange']()['isIntersecting'](_0x5c6399['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1efca6,_0x5c6399['data']['newRange'],_0x32076e),_0x7379b2=!0x0);}return _0x7379b2;}['_recordAttributeChanges'](_0x1bfb97){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1bfb97();}['_isRegisteredAttribute'](_0x3d79fc){const _0x44d0b2=this['_isBlockAttribute'](_0x3d79fc),_0x4c2562=this['_inlineAttributeKeys']['has'](_0x3d79fc);return _0x44d0b2||_0x4c2562;}['_reduceExistingSuggestions'](_0x24c226,_0x33b916){if(0x0==_0x33b916['length'])return!0x1;let _0x42a815=!0x1;for(const _0x33a8cb of _0x33b916){const _0x483634=this['_findSuggestions'](_0x33a8cb['range'],'attribute')['filter'](_0x5f89bd=>!_0x5f89bd['meta']['isNextTo'])['map'](_0x1c54f8=>_0x1c54f8['suggestion']),_0xdaa1ad=_0x2c77f1({'newValue':_0x33a8cb['newValue']});_0x483634['filter'](_0x1d1255=>{const [_0x29cf1c,_0x32ae23]=_0x1d1255['subType']['split']('|');return _0x29cf1c==_0x33a8cb['key']&&_0x32ae23!=_0xdaa1ad;})['forEach'](_0x4c0036=>{this['_reduceSuggestionAttributeRange'](_0x4c0036,_0x33a8cb['range'],_0x24c226),_0x42a815=!0x0;});}return _0x42a815;}['_reduceSuggestionAttributeRange'](_0x1aa1b9,_0x1b7c6f,_0x50d871){const _0x3eda50=_0x1aa1b9['getFirstRange']()['getDifference'](_0x1b7c6f);0x0!==_0x3eda50['length']?0x1!==_0x3eda50['length']?this['_breakSuggestionMarker'](_0x1aa1b9,_0x1b7c6f['start'],_0x1b7c6f['end']):this['_setSuggestionRange'](_0x1aa1b9,_0x3eda50[0x0]):_0x50d871['removeMarker'](_0x1aa1b9['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x99471e){this['_editor']=_0x99471e,this['_model']=_0x99471e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc8cb82,_0x4b1ac3,_0x3c5b8b,_0x2e709f,_0x4ea6bc,_0x55be8d){return new u(this['_model'],{'type':_0xc8cb82,'subType':_0x4b1ac3,'id':_0x3c5b8b,'author':_0x2e709f,'creator':_0x2e709f,'attributes':_0x4ea6bc,'onAttributesChange':_0x55be8d,'onAccept':(..._0x49c3d5)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'accept')(..._0x49c3d5),'onDiscard':(..._0x37f029)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'discard')(..._0x37f029)});}['registerCustomCallback'](_0x526fb8,_0x1aa27b,_0x297014,_0x2e0861){const _0x5b6990=_0x526fb8+':'+_0x1aa27b+':'+_0x297014;this['_customCallbacks']['set'](_0x5b6990,_0x2e0861);}['getSuggestionCallback'](_0x32155a,_0x41ede7,_0x421522){const _0x5440b8=_0x32155a+':'+_0x41ede7+':'+_0x421522;return this['_customCallbacks']['get'](_0x5440b8)||this['_defaultCallbacks']['get'](_0x32155a+':'+_0x421522);}['_registerDefaultCallbacks'](){const _0x5e4861=()=>!0x1,_0x45bd0c=_0x24da84=>{_0x24da84['sort']((_0xe3f3a1,_0x9d8ae7)=>_0xe3f3a1['start']['isBefore'](_0x9d8ae7['start'])?0x1:-0x1),this['_model']['change'](_0x1a563e=>{for(const _0x2a91a2 of _0x24da84){let _0x25b5e1;_0x25b5e1=_0x2a91a2['end']['isAtEnd']&&_0x2a91a2['end']['parent']==_0x2a91a2['start']['nodeAfter']?_0x1a563e['createSelection'](_0x2a91a2['start']['nodeAfter'],'on'):_0x1a563e['createSelection'](_0x2a91a2),this['_model']['deleteContent'](_0x25b5e1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9f4ce0=(_0x34e058,_0x1ee781)=>{_0x1ee781&&this['_model']['change'](_0x425b2f=>{const {commandName:_0x38467b,commandParams:_0x42ecc6=[]}=_0x1ee781,_0x1781bc=_0x34e058['map'](_0x513710=>(Tt(_0x513710)&&(_0x513710=this['_model']['createRange'](_0x513710['end'])),_0x513710))['filter'](_0x129f27=>'$graveyard'!==_0x129f27['root']['rootName']);if(_0x1781bc['length']<0x1)return;const _0x378f24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc0ebc9=>_0x218be5['fromRange'](_0xc0ebc9));_0x425b2f['setSelection'](_0x1781bc);for(const _0x14d3a1 of this['_editor']['commands']['commands']())_0x14d3a1['refresh']();_0x42ecc6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38467b,..._0x42ecc6);const _0x49ebf4=_0x378f24['filter'](_0x526c8e=>'$graveyard'!=_0x526c8e['root']['rootName']);_0x49ebf4['length']>0x0&&_0x425b2f['setSelection'](_0x49ebf4);for(const _0x52e5fa of _0x378f24)_0x52e5fa['detach']();});},_0x7bf024=(_0x49b9f7,_0x5f4ed0)=>0x1==_0x49b9f7['length']&&0x1==_0x5f4ed0['length']&&_0x49b9f7[0x0]['end']['isEqual'](_0x5f4ed0[0x0]['start']),_0x355230=(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0)=>Ft(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0,this['_model'])?[_0x556031,_0x153f30]:Ft(_0x153f30,_0x556031,_0x5a0be0,_0x4e9c84,this['_model'])?[_0x153f30,_0x556031]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4861),this['_defaultCallbacks']['set']('insertion:discard',_0x45bd0c),this['_defaultCallbacks']['set']('insertion:join',_0x7bf024),this['_defaultCallbacks']['set']('insertion:chain',_0x355230),this['_defaultCallbacks']['set']('deletion:accept',_0x45bd0c),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4861),this['_defaultCallbacks']['set']('deletion:join',_0x7bf024),this['_defaultCallbacks']['set']('deletion:chain',_0x355230),this['_defaultCallbacks']['set']('formatInline:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatInline:join',_0x7bf024),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:join',_0x7bf024),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4861),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4861),this['_defaultCallbacks']['set']('attribute:discard',(_0x15d9b6,_0x569f2a)=>{if(!_0x569f2a)return;const _0x27ca7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x44b504=>{if(_0x569f2a['key']==m)for(const _0x9fd4e6 of _0x15d9b6){const _0x2ad2ea=_0x9fd4e6['start']['nodeAfter'],_0x53a142=_0x569f2a['oldValue'];_0x44b504['rename'](_0x2ad2ea,_0x53a142);}else{if(_0x27ca7['_isBlockAttribute'](_0x569f2a['key'])){for(const _0x4d4049 of _0x15d9b6)void 0x0!==_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4d4049['start']['nodeAfter']):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4d4049['start']['nodeAfter']);}else{for(const _0x4fa175 of _0x15d9b6)_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4fa175):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4fa175);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7bf024);}}function Rt(_0x5e5973,_0x5386bd,_0x41a379){for(const _0x19c483 of _0x5386bd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19c483['root']==_0x19c483)return!0x1;if(!_0x41a379['containsItem'](_0x19c483))return!0x1;if(_0x5e5973['isObject'](_0x19c483)||_0x5e5973['isLimit'](_0x19c483))return!0x0;}return!0x1;}function Tt(_0x5f3366){return _0x5f3366['end']['parent']==_0x5f3366['start']['nodeAfter']&&_0x5f3366['end']['isAtStart'];}function Et(_0x470119,_0x35115e,_0x3c38de,_0xbae7a1){const _0x596719=_0xcd68ce=>!_0xcd68ce['item']['is']('$textProxy')&&!_0xbae7a1['isObject'](_0xcd68ce['item']),_0xc4c38a=_0x470119['start']['getLastMatchingPosition'](_0x596719),_0xbbc240=_0x470119['end']['getLastMatchingPosition'](_0x596719,{'direction':'backward'});return(!_0x470119['start']['isEqual'](_0xc4c38a)||!_0x470119['end']['isEqual'](_0xbbc240))&&(_0xc4c38a['isBefore'](_0xbbc240)?_0x3c38de['updateMarker'](_0x35115e,{'range':_0x3c38de['createRange'](_0xc4c38a,_0xbbc240)}):_0x3c38de['removeMarker'](_0x35115e),!0x0);}function Vt(_0x134aed){return _0x2c77f1(_0x134aed);}function Ut(_0x24f9cf){const _0x21f659=_0x24f9cf['start']['nodeAfter'];return _0x21f659&&_0x21f659['is']('element');}function Ot(_0x1808b2,_0x467320){return null==_0x1808b2['end']['nodeBefore']&&_0x1808b2['end']['parent']==_0x1808b2['start']['nodeAfter']?Gt(_0x1808b2['start']['nodeAfter'],_0x467320):_0x1808b2;}function Gt(_0x3bd388,_0x2e7604){const _0x27c206=_0x2e7604['schema']['isObject'](_0x3bd388)||_0x2e7604['schema']['isSelectable'](_0x3bd388);return _0x2e7604['createRange'](_0x2e7604['createPositionAt'](_0x3bd388,'before'),_0x27c206?_0x2e7604['createPositionAfter'](_0x3bd388):_0x2e7604['createPositionAt'](_0x3bd388,'end'));}function Ft(_0x3ebc80,_0x37ca07,_0x2739f2,_0x118414,_0x2e0898){if(!Pt(_0x3ebc80,_0x37ca07))return!0x1;if(_0x2739f2['end']['isEqual'](_0x118414['start']))return!0x0;if(_0x3ebc80['type']!=_0x37ca07['type'])return!0x1;if(!_0x2739f2['end']['isTouching'](_0x118414['start']))return!0x1;const _0x3efd53=_0x2e0898['createRange'](_0x2739f2['end'],_0x118414['start'])['getWalker']();for(const _0x452d62 of _0x3efd53)if(['elementStart','elementEnd']['includes'](_0x452d62['type'])&&_0x2e0898['schema']['isLimit'](_0x452d62['item']))return!0x1;return!0x0;}function Pt(_0x1bb681,_0x1e0f49,_0x1ea56c=[]){return!(!_0x1bb681['_isDataLoaded']||!_0x1e0f49['_isDataLoaded'])&&_0xf2bb64(Bt(_0x1bb681['attributes'],_0x1ea56c),Bt(_0x1e0f49['attributes'],_0x1ea56c));}function Lt(_0x10d793,_0x45d3c0){const _0x1c8d33=Ht(_0x10d793['attributes']),_0x3f3e38=Ht(_0x45d3c0);if(!_0x10d793['_isDataLoaded'])return!0x1;for(const _0x43da7c of Object['keys'](_0x3f3e38))if(!_0xf2bb64(_0x1c8d33[_0x43da7c],_0x3f3e38[_0x43da7c]))return!0x1;return!0x0;}function Ht(_0x2b6de0){const _0x376866=Object['assign']({},_0x2b6de0);return delete _0x376866['skipNestingCheck'],delete _0x376866['tablePasteChainId'],_0x376866;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d203a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f5bef,_0x210cbc,_0xc8e80,_0x485aa0){super(),this['model']=_0x210cbc,this['view']=_0xc8e80,this['commentThreadController']=_0x485aa0,this['_editor']=_0x2f5bef,this['_acceptCommand']=_0x2f5bef['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f5bef['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2284fd,_0x3393d9)=>_0x2284fd||_0x3393d9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c7dc6=>_0x5c7dc6&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa7918e=>_0xa7918e&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['_pendingAction']=null,_0xc8e80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc8e80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc8e80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc8e80,'change:isDirty',()=>{_0xc8e80['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 _0x2b0667=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2b0667);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4490c1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x21aae6,_0x98cd19,_0x330210,_0x15385e){super(_0x21aae6),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x98cd19['authoredAt']),this['bind']('authoredAt')['to'](_0x98cd19),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x98cd19,this['_localUser']=_0x330210,this['_config']=_0x15385e,_0x15385e['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:_0x134ffe}=this['_config'];this['commentsListView']=new _0x134ffe(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',_0x4fc0b9=>_0x4fc0b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1bf969,_0x293a7f)=>_0x1bf969||!!_0x293a7f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1449bd}=this['_config'],_0x3e3f87=new _0x1449bd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2900e3=_0x3e3f87['commentInputView'];return _0x3e3f87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2900e3,'value',(_0x3c0b08,_0x5e9b77,_0x51524a)=>!!_0x51524a||_0x3c0b08&&!_0x5e9b77),_0x2900e3['on']('submit',(_0x22fd9d,_0xa0379a)=>{this['fire']('addComment',_0xa0379a),_0x2900e3['editor']['setData']('');}),_0x2900e3['on']('cancel',()=>this['focus']()),_0x2900e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e3f87;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148){super(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26639d=>_0x26639d&&_0x26639d[0x0]?_0x26639d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ed720,_0x1179cf)=>{let _0x5a8b20='';for(const _0x2b1fa6 of _0x3ed720)_0x5a8b20+='<p>'+ds(_0x2b1fa6['content'],_0x2b1fa6['color'])+'</p>';return _0x1179cf?_0x5a8b20:_0x48be8a(_0x5a8b20,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x56668e,'Accept\x20suggestion'),_0x210fdb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x56668e,'Discard\x20suggestion'),_0x210fdb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5909ed(_0x56668e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x38fe92=this['bindTemplate'],_0x3133bf=[{'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':_0x38fe92['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38fe92['to']('authoredAt',_0x219f05=>this['_config']['formatDateTime'](_0x219f05))}]}]},{'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']&&_0x3133bf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x53740a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x38fe92['if']('isActive','ck-suggestion-wrapper--active'),_0x38fe92['to']('type',_0x5b0ac0=>'ck-suggestion-'+_0x5b0ac0),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':_0x3133bf}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x53740a['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)),_0x53740a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5d8e94,_0xb1ea95,_0x516ba5)=>{this['_descriptionElement']['innerHTML']=_0x516ba5;});}['_createButton'](_0x91d67f,_0x5aa75b,_0xf0970c,_0x14badf,_0x50fb3e){const _0x3bb96f=new _0x199a7d(this['locale']);return _0x3bb96f['set']({'label':_0x91d67f,'icon':_0x5aa75b,'tooltip':!0x0,'tooltipPosition':_0x50fb3e}),_0x3bb96f['extendTemplate']({'attributes':{'class':_0xf0970c}}),_0x3bb96f['on']('execute',()=>{this['fire'](_0x14badf,this['_model']['id']);}),_0x3bb96f;}['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(_0x4eb9de,_0x54e8f2){let _0x26a9a8='';return _0x26a9a8+=_0x4eb9de['split']('*')['map']((_0x107b81,_0x24d48a)=>_0x24d48a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x107b81)+'</span>':us(_0x107b81))['join'](''),_0x54e8f2&&(_0x26a9a8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x54e8f2['value']+'\x22\x20title=\x22'+_0x54e8f2['title']+'\x22></span>'),_0x26a9a8;}function us(_0x3b3e21){const _0x4e83fc=document['createElement']('span');return _0x4e83fc['innerText']=_0x3b3e21,_0x4e83fc['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 _0x16371d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2e67ee,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c1ca6){super(_0x4c1ca6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32f2ac=this['editor']['config'];_0x32f2ac['define']('trackChanges.SuggestionThreadView',ne),_0x32f2ac['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32f2ac['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xf4211d,_0x187f38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7c8a25,_0x3eb7fe]of this['_handleControllerBuffer']){const _0x124f78=this['_suggestionToController']['has'](_0x7c8a25);_0x124f78||_0x3eb7fe?_0x124f78&&_0x3eb7fe&&this['_destroyController'](_0x7c8a25):this['_initializeController'](_0x7c8a25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xf4211d,_0x187f38);}['init'](){const _0x2268ce=this['editor'],_0x122a32=_0x2268ce['plugins']['get']('TrackChangesEditing'),_0x3a5820=_0x2268ce['plugins']['get']('Annotations'),_0x1f4525=_0x2268ce['plugins']['get']('EditorAnnotations'),_0x34b61b=_0x2268ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f4525['addSourceCollector'](()=>{const _0x52b77e=[];for(const [_0x585aee,_0x32fe1f]of Array['from'](this['_suggestionToController'])){const _0x5a9c8a=_0x585aee['getAllAdjacentSuggestions'](),_0x4cf087=[];for(const _0x81796d of _0x5a9c8a){if(!_0x81796d['isInContent'])continue;if(_0x81796d['isMultiRange']){_0x4cf087['push'](..._0x81796d['getRanges']());continue;}const _0x18e823=_0x81796d['getFirstRange']();if(_0x4cf087['length']>0x0){const _0x470656=_0x4cf087[0x0]['getJoined'](_0x18e823);if(_0x470656){_0x4cf087[0x0]=_0x470656;continue;}}_0x4cf087['push'](_0x18e823);}_0x52b77e['push']([_0x32fe1f['view'],_0x4cf087]);}return _0x52b77e;}),this['listenTo'](_0x122a32,'suggestionLoaded',(_0x549444,_0xe56378)=>{this['listenTo'](_0xe56378,'change:previous',(_0xf2f94,_0x58708a,_0x35dc46,_0x530b96)=>{_0xe56378['isInContent']&&(null==_0x35dc46?(this['_updateController'](_0x530b96['head']),this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1)):(this['_updateController'](_0x35dc46['head']),null==_0x530b96&&this['_handleSuggestionControllerDelayed'](_0xe56378,!0x0)));}),null!==_0xe56378['previous']?this['_updateController'](_0xe56378['head']):this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1);}),this['listenTo'](_0x122a32,'suggestionUnloaded',(_0x3f233b,_0x39c4cd,_0x42f6ae)=>{this['stopListening'](_0x39c4cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x39c4cd),this['_suggestionToController']['has'](_0x39c4cd)&&this['_destroyController'](_0x39c4cd),_0x42f6ae&&this['_updateController'](_0x42f6ae['head']);}),this['listenTo'](_0x122a32,'suggestionChanged',(_0x75c22c,_0x53d8b2)=>{this['_updateController'](_0x53d8b2);}),this['listenTo'](_0x3a5820,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34b61b,'addComment',(_0x592878,{threadId:_0x22786b,isFromAdapter:_0x30c89e})=>{if(_0x30c89e||!_0x122a32['hasSuggestion'](_0x22786b))return;const _0x11e17c=_0x122a32['getSuggestion'](_0x22786b);this['_suggestionToController']['get'](_0x11e17c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1983df=this['editor']['plugins']['get']('Annotations'),_0x261486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c0053=Array['from'](_0x1983df['activeAnnotations'],_0x344c03=>_0x344c03['innerView'])['filter'](_0x47da4a=>this['_viewToController']['has'](_0x47da4a)),_0x3e4714=[];for(const _0x11c33b of _0x4c0053){const _0x24388d=this['_viewToController']['get'](_0x11c33b)['model']['getAllAdjacentSuggestions']();_0x3e4714['push'](..._0x24388d['reduce']((_0x65a503,_0x403b3e)=>[..._0x65a503,..._0x403b3e['getMarkerNames']()],[]));}_0x261486['activeMarkers']=_0x3e4714;}['_addUIComponentsToFactory'](){const _0x51298c=this['editor'],_0xef33d7=_0x51298c['locale'],_0x381f08=o(_0xef33d7,'Track\x20changes'),_0x2885cb=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x381f08,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x178d0d of _0x2885cb)if(ae(_0x178d0d)){const _0x371dd0=_0x51298c['commands']['get'](_0x178d0d['model']['commandName']);_0x178d0d['model']['bind']('isOn','isEnabled')['to'](_0x371dd0,'value','isEnabled');}_0x51298c['ui']['componentFactory']['add']('trackChanges',_0x632c20=>this['_createToolbarButton'](_0x632c20,_0x2885cb,_0x381f08)),_0x51298c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x599b82=>this['_createMenuBarMenu'](_0x599b82,_0x2885cb,_0x381f08));}['_createToolbarButton'](_0x5f47ec,_0x10f41d,_0x129620){const _0x488e59=zt(_0x5f47ec,Zt),_0x3e9bd6=this['editor']['commands']['get']('trackChanges');_0x488e59['buttonView']['set']({'tooltip':_0x129620,'label':_0x129620,'icon':ie}),_0x488e59['buttonView']['bind']('isOn')['to'](_0x3e9bd6,'value'),_0x488e59['buttonView']['on']('execute',()=>{_0x3e9bd6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x488e59,_0x10f41d,{'role':'menu'});const _0x51fee5=[];for(const _0x14eee4 of _0x10f41d)ae(_0x14eee4)&&_0x51fee5['push'](this['editor']['commands']['get'](_0x14eee4['model']['commandName']));const _0x37a188=_0x488e59['buttonView'];return _0x37a188['actionView']['unbind']('isEnabled'),_0x37a188['arrowView']['unbind']('isEnabled'),_0x37a188['actionView']['bind']('isEnabled')['to'](_0x3e9bd6,'isEnabled'),_0x37a188['arrowView']['bind']('isEnabled')['toMany'](_0x51fee5,'isEnabled',(..._0x34e9d6)=>_0x34e9d6['some'](_0xbf0701=>_0xbf0701)),_0x488e59['on']('execute',_0x562bb4=>{this['editor']['execute'](_0x562bb4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x488e59;}['_createMenuBarMenu'](_0x50e756,_0x4fc98b,_0x10b32a){const _0x147c0f=new Kt(_0x50e756),_0x5a6f53=this['editor']['commands']['get']('trackChanges');_0x147c0f['buttonView']['set']({'label':_0x10b32a,'icon':ie});const _0xc23f19=new Qt(_0x50e756);for(const _0x3cc04c of _0x4fc98b){if('separator'==_0x3cc04c['type']){_0xc23f19['items']['add'](new Jt(_0x50e756));continue;}const _0x2132b4=new Xt(_0x50e756,_0x147c0f),_0x2fa2a2=new Yt(_0x50e756),_0x5d4e22=_0x3cc04c['model'];_0x2fa2a2['bind'](...Object['keys'](_0x5d4e22))['to'](_0x5d4e22),_0x2fa2a2['delegate']('execute')['to'](_0x147c0f),_0x2fa2a2['on']('execute',()=>{this['editor']['execute'](_0x5d4e22['commandName']),this['editor']['editing']['view']['focus']();}),_0x2132b4['children']['add'](_0x2fa2a2),_0xc23f19['items']['add'](_0x2132b4);}return _0x147c0f['bind']('isEnabled')['to'](_0x5a6f53,'isEnabled'),_0x147c0f['panelView']['children']['add'](_0xc23f19),_0x147c0f;}['_initializeController'](_0x22377a){const _0x73ffba=this['editor'],_0x360127=_0x73ffba['config'],_0x24e89e=_0x73ffba['plugins']['get']('Annotations'),_0x4b3581=_0x73ffba['plugins']['get']('CommentsRepository'),_0x4fedd9=_0x73ffba['plugins']['get']('EditorAnnotations'),_0x103c32=_0x73ffba['plugins']['get'](_0x2e67ee)['me'],_0x53ec47=_0x360127['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4f04f0,CommentThreadInputView:_0x35b5b7}=_0x73ffba['plugins']['get']('CommentsUI');let _0xd05db9,_0x5144d4;this['_annotationViews']['has'](_0x22377a['id'])?(_0x5144d4=this['_annotationViews']['get'](_0x22377a['id']),_0xd05db9=_0x5144d4['mainView']):(_0xd05db9=new _0x53ec47(_0x73ffba['locale'],_0x22377a,_0x103c32,{'disableComments':this['_disableComments'],'editorConfig':_0x360127['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x360127['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x360127['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x360127['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ab875(_0x360127['get']('locale')),'CommentView':_0x360127['get']('comments')['CommentView'],'CommentsListView':_0x4f04f0,'CommentThreadInputView':_0x35b5b7}),_0xd05db9['acceptButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0xd05db9['discardButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0x5144d4=_0x24e89e['createAnnotationView'](this['editor']['locale'],_0xd05db9),_0x5144d4['bind']('isDirty')['to'](_0xd05db9,'isDirty'),_0x5144d4['bind']('length')['to'](_0xd05db9),_0x5144d4['bind']('type')['to'](_0xd05db9,'type',_0x17a7ba=>'suggestion-'+_0x17a7ba),this['_annotationViews']['set'](_0x22377a['id'],_0x5144d4));const _0x530be6=_0x4b3581['createCommentThreadController'](_0x22377a['commentThread'],_0xd05db9),_0x524887=new oe(_0x73ffba,_0x22377a,_0xd05db9,_0x530be6),_0x405b97=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x46bd17=>_0x46bd17['isInContent']);_0xd05db9['descriptionParts']=_0x73ffba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x405b97),this['_suggestionToController']['set'](_0x22377a,_0x524887),this['_viewToController']['set'](_0xd05db9,_0x524887);const _0x2bb009=_0x24e89e['createAnnotation']({'view':_0x5144d4,'target':()=>{const _0x3a0b3a=[],_0x3e9a70=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x336cee=>_0x336cee['isInContent']);for(const _0x2f8a50 of _0x3e9a70)_0x3a0b3a['push'](..._0x2f8a50['getMarkers']());return _0x1af8ea(_0x73ffba['editing'],_0x3a0b3a);},'type':()=>'suggestion-'+_0x524887['view']['type']});_0x4b3581['_bindAnnotationToEditors'](_0xd05db9,_0x2bb009),_0x24e89e['add'](_0x2bb009),_0x4fedd9['registerAnnotation'](_0x2bb009);}['_destroyController'](_0xd24d09){const _0x140be8=this['editor']['plugins']['get']('CommentsRepository'),_0x2519a0=this['editor']['plugins']['get']('Annotations'),_0x16fe33=this['_suggestionToController']['get'](_0xd24d09),_0x268c0d=_0x16fe33['view'],_0xf04712=_0x2519a0['getByInnerView'](_0x268c0d);_0x140be8['_unbindEditors'](_0x268c0d),_0xf04712&&_0x2519a0['remove'](_0xf04712),this['_suggestionToController']['delete'](_0xd24d09),this['_viewToController']['delete'](_0x268c0d),_0x16fe33['destroy']();}['_updateController'](_0x21dc25){if(!_0x21dc25['isInContent']||!this['_suggestionToController']['has'](_0x21dc25))return;const _0x4f1f63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550824=this['_suggestionToController']['get'](_0x21dc25),_0x53b158=_0x21dc25['getAllAdjacentSuggestions']();_0x550824['view']['descriptionParts']=_0x4f1f63['descriptionFactory']['getDescriptions'](_0x53b158);}['destroy'](){for(const _0x2b70b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b70b8);for(const _0x5ebfa6 of this['_annotationViews']['values']())_0x5ebfa6['mainView']['destroy']();super['destroy']();}}function ae(_0x51097b){return'model'in _0x51097b;}class k extends _0x16371d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x48b8ac){this['editor']['plugins']['get'](p)['adapter']=_0x48b8ac;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5e8cc9){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5e8cc9);}['getSuggestions']({skipNotAttached:_0x5737c2=!0x1,toJSON:_0x15dcbe=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5737c2,'toJSON':_0x15dcbe});}['getSuggestion'](_0x414e9b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x414e9b);}}const T=['Pagination'];class P extends _0x16371d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b8a57=this['editor'];if(_0x4b8a57['config']['define']('trackChangesData.editorCreator',_0x469539=>{const _0x18f5af=_0x4b8a57['model']['document']['getRootNames']()['reduce']((_0x20ce6f,_0x1f7c5d)=>(_0x20ce6f[_0x1f7c5d]='',_0x20ce6f),{});return _0x4b8a57['constructor']['create'](_0x18f5af,_0x469539);}),'function'!=typeof _0x4b8a57['config']['get']('trackChangesData')['editorCreator'])throw new _0x40a0bd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4fcf24){return N(this['editor'],!0x0,_0x4fcf24);}['getDataWithDiscardedSuggestions'](_0x7b9f8a){return N(this['editor'],!0x1,_0x7b9f8a);}}class D extends _0x16371d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30585e){super(_0x30585e),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(_0x673f98){return void 0x0!==_0x673f98['getRootsAttributes'];}async function N(_0x28dfed,_0x4cda15,_0x195565){const _0x1f9e74=_0x5b10d0(_0x28dfed,T);_0x1f9e74['plugins']['push'](p,D),_0x1f9e74['rootsAttributes']=v(_0x28dfed)?_0x28dfed['getRootsAttributes']():void 0x0;const _0x51d11c=document['createDocumentFragment'](),_0x3c9dac=_0x28dfed['config']['get']('trackChangesData')['editorCreator'],_0x10cb68=await _0x3c9dac(_0x1f9e74,()=>function(_0x4ec4ca){const _0x572f9b=document['createElement']('div');return _0x4ec4ca['appendChild'](_0x572f9b),_0x572f9b;}(_0x51d11c));!function(_0xc971d,_0x48c6e6){const _0x43fe65=_0xc971d['model']['document']['getRootNames']()['reduce']((_0xe5205b,_0x57abc8)=>(_0xe5205b[_0x57abc8]=_0xc971d['data']['get']({'rootName':_0x57abc8}),_0xe5205b),{}),_0x51c883=_0xc971d['plugins']['get']('Users')['users']['map'](_0x422785=>({'id':_0x422785['id'],'name':_0x422785['name']})),_0x4783d9=_0xc971d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x392930=_0xc971d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x380cac=_0x48c6e6['plugins']['get']('Users'),_0x1effed=_0x48c6e6['plugins']['get']('TrackChangesEditing'),_0x4e3894=_0x48c6e6['plugins']['get']('CommentsRepository');for(const _0x20e4f1 of _0x51c883)_0x380cac['getUser'](_0x20e4f1['id'])||_0x380cac['addUser'](_0x20e4f1);_0x380cac['me']||_0x380cac['useAnonymousUser']();for(const _0x48e707 of _0x392930)_0x4e3894['addCommentThread'](_0x48e707);for(const _0x464b46 of _0x4783d9)_0x1effed['addSuggestionData'](_0x464b46);_0x48c6e6['data']['set'](_0x43fe65);}(_0x28dfed,_0x10cb68),_0x10cb68['execute'](_0x4cda15?'acceptAllSuggestions':'discardAllSuggestions');const _0x11749a=v(_0x10cb68)?_0x10cb68['getFullData'](_0x195565):_0x10cb68['data']['get'](_0x195565);return await _0x10cb68['destroy'](),_0x11749a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|