@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240815.0 → 0.0.0-nightly-20240816.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 +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x152174(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x518a9d,_0x3260ea){super(),this['id']=_0x3260ea['id'],this['type']=_0x3260ea['type'],this['subType']=_0x3260ea['subType']||null,this['author']=_0x3260ea['author'],this['creator']=_0x3260ea['creator']||_0x3260ea['author'],this['isExternal']=Boolean(_0x3260ea['attributes']&&_0x3260ea['attributes']['@external']),this['data']=null,this['_model']=_0x518a9d,this['_onAccept']=_0x3260ea['onAccept'],this['_onDiscard']=_0x3260ea['onDiscard'],this['_onAttributesChange']=_0x3260ea['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3260ea['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 _0x29b6e8=this;for(;_0x29b6e8['previous'];)_0x29b6e8=_0x29b6e8['previous'];return _0x29b6e8;}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'](_0x4ef851){this['_markerNames']['add'](_0x4ef851);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25f28d=>this['_model']['markers']['get'](_0x25f28d))['filter'](_0x3611c3=>_0x3611c3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0c736=>{for(const _0x5a5089 of this['getMarkers']())_0xd0c736['removeMarker'](_0x5a5089);}),this['_markerNames']['clear']();}['removeMarker'](_0x448f4f){this['_model']['change'](_0x267e4e=>{_0x267e4e['removeMarker'](_0x448f4f);}),this['_markerNames']['delete'](_0x448f4f);}['addRange'](_0x233df1){const _0x3081b3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3081b3),this['_model']['change'](_0x9d239b=>{_0x9d239b['addMarker'](_0x3081b3,{'range':_0x233df1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xbd1c42){for(const _0x5a745f of this['getRanges']())if(_0x5a745f['isIntersecting'](_0xbd1c42))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5da437=>_0x5da437['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x333eb1,_0x4ad1d4)=>[..._0x333eb1,..._0x4ad1d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41855a=this['getRanges']();if(0x1!=_0x41855a['length'])return null;const _0x16d349=_0x41855a[0x0],_0x386a4a=_0x16d349['start']['nodeAfter'],_0xff74e1=_0x16d349['end']['nodeBefore'];return _0x386a4a instanceof _0x5738b4?_0x386a4a!=_0xff74e1?null:_0x386a4a: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 _0x448ae7=[];let _0xa5935d=this['head'];for(;_0xa5935d;)_0x448ae7['push'](_0xa5935d),_0xa5935d=_0xa5935d['next'];return _0x448ae7;}['setAttribute'](_0x8f344,_0x2b99b9){const _0x1c6f28=_0x50f003(this['attributes']);_0x201370(_0x1c6f28,_0x8f344,_0x2b99b9),_0x41747e(_0x1c6f28,this['attributes'])||(this['attributes']=_0x1c6f28,this['_onAttributesChange'](_0x1c6f28));}['removeAttribute'](_0x37a677){const _0xcf4cfc=_0x50f003(this['attributes']);_0x5b2e9b(_0xcf4cfc,_0x37a677),_0x41747e(_0xcf4cfc,this['attributes'])||(this['attributes']=_0xcf4cfc,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 _0x2120b6()['substr'](0x1,0x5);}}function o(_0x569e26,_0x45b493,_0x556c07){const t=_0x569e26['t'];switch(_0x45b493){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',_0x556c07);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x556c07);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x556c07);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x556c07);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x556c07);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',_0x556c07);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x556c07);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',_0x556c07);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x556c07);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x556c07);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x556c07);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x556c07);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x556c07);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x556c07);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x556c07);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x556c07);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x556c07);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x556c07);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x556c07);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x556c07);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x556c07);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x556c07);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x556c07);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'},_0x556c07);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x556c07);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x556c07);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x556c07);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x556c07);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x556c07);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'},_0x556c07);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x556c07);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x556c07);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x556c07);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x556c07);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'},_0x556c07);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x556c07);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'},_0x556c07);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x556c07);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x556c07);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x556c07);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'},_0x556c07);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'},_0x556c07);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x556c07);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x556c07);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x556c07);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x556c07);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x45b493;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x321305,_0x17cf06){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x321305,this['_locale']=_0x17cf06;}['getDescriptions'](_0x69d558){const _0xefcf70=[],_0x3c9be8=new Set(),_0x4dc294=new Set();for(let _0x92a3c3=0x0;_0x92a3c3<_0x69d558['length'];_0x92a3c3++){const _0x1db53e=_0x69d558[_0x92a3c3];if(!_0x1db53e['isInContent'])continue;const _0x28159f=this['_handleCustomCallbackDescription'](_0x1db53e);if(_0x28159f){if(null!=_0x1db53e['subType']){if(_0x3c9be8['has'](_0x1db53e['subType']))continue;_0x3c9be8['add'](_0x1db53e['subType']);}_0xefcf70['push'](_0x28159f);}else{if('attribute'!=_0x1db53e['type'])'insertion'!=_0x1db53e['type']&&'deletion'!=_0x1db53e['type']||this['_handleInsertRemoveSuggestionDescription'](_0xefcf70,_0x1db53e,_0x69d558[_0x92a3c3+0x1]);else{const _0x5c69a1=_0x1db53e['data']['key'];if(_0x4dc294['has'](_0x5c69a1))continue;_0x4dc294['add'](_0x1db53e['data']['key']),_0x5c69a1==m?this['_handleRenameSuggestionDescription'](_0xefcf70,_0x1db53e):this['_handleAttributeSuggestionDescription'](_0xefcf70,_0x1db53e);}}}return this['_resolveDescriptionItems'](_0xefcf70);}['registerDescriptionCallback'](_0x1019f1){this['_customCallbacks']['push'](_0x1019f1);}['registerElementLabel'](_0x23a7a6,_0x5b040e,_0x39cf43=_0xbff88b['normal']){'function'==typeof _0x23a7a6?_0x21d775(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23a7a6,'label':_0x5b040e,'priority':_0x39cf43}):this['_itemLabels']['set'](_0x23a7a6,_0x5b040e);}['registerAttributeLabel'](_0x43a226,_0xce9dc){this['_attributeLabels']['set'](_0x43a226,_0xce9dc);}['getItemLabel'](_0x4fd2cd,_0x52136c=0x1){let _0x494a6b;for(const _0x9aca9c of this['_itemLabelsCallbacks'])if(_0x9aca9c['matchingCallback'](_0x4fd2cd)){_0x494a6b=_0x9aca9c['label'];break;}return _0x494a6b||(_0x494a6b=this['_itemLabels']['get'](_0x4fd2cd['name'])),_0x494a6b?_0x494a6b(_0x52136c):0x1!==_0x52136c?_0x52136c+'\x20'+_0x4fd2cd['name']+'s':''+_0x4fd2cd['name'];}['_addDescriptionItems'](_0x49294d,_0x58df0b){const _0x591877=_0x58df0b['getFirstRange']()['getWalker'](),_0x27a860='insertion'==_0x58df0b['type']?'add':'remove';for(const _0x5d9931 of _0x591877){const _0x1508ba=_0x5d9931['item'],_0x1b67dc=_0x49294d[_0x49294d['length']-0x1];if(_0x1508ba['is']('$textProxy'))_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),_0x1b67dc&&'text'==_0x1b67dc['type']?_0x1b67dc[_0x27a860]+=_0x1508ba['data']:_0x49294d['push']({'type':'text','add':'add'==_0x27a860?_0x1508ba['data']:'','remove':'remove'==_0x27a860?_0x1508ba['data']:''});else{if(this['_schema']['isObject'](_0x1508ba)){const _0x3e74b8=_0x1508ba;if(_0x1b67dc&&_0x1b67dc['type']['indexOf']('Container')>-0x1&&_0x49294d['pop'](),'elementEnd'==_0x5d9931['type'])continue;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'Object'&&_0x1b67dc['element']['name']==_0x3e74b8['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'Object','element':_0x3e74b8,'quantity':0x1}),_0x591877['skip'](_0x48bac5=>!('elementEnd'==_0x48bac5['type']&&_0x48bac5['item']==_0x1508ba));}else{if(this['_schema']['checkChild'](_0x1508ba,'$text')||_0x1508ba['is']('element','softBreak')){const _0x34883a=_0x1508ba;if('add'==_0x27a860&&'elementStart'==_0x5d9931['type']||'remove'==_0x27a860&&'elementEnd'==_0x5d9931['type'])continue;if(_0x1b67dc&&-0x1==_0x1b67dc['type']['indexOf']('Container')){'text'==_0x1b67dc['type']&&(_0x1b67dc[_0x27a860]+='\x0a');continue;}let _0x4eb3df;if(_0x4eb3df='add'==_0x27a860?_0x34883a['nextSibling']&&!this['_schema']['isObject'](_0x34883a['nextSibling'])?_0x34883a['nextSibling']:null:_0x34883a['previousSibling']&&!this['_schema']['isObject'](_0x34883a['previousSibling'])?_0x34883a['previousSibling']:null,_0x34883a['isEmpty']||_0x4eb3df&&_0x4eb3df['isEmpty']){const _0x1550e7=_0x4eb3df&&_0x4eb3df['isEmpty']?_0x4eb3df:_0x34883a;_0x1b67dc&&_0x1b67dc['type']==_0x27a860+'EmptyContainer'&&_0x1b67dc['element']['name']==_0x1550e7['name']?_0x1b67dc['quantity']++:_0x49294d['push']({'type':_0x27a860+'EmptyContainer','element':_0x1550e7,'quantity':0x1});}else _0x49294d['push']({'type':_0x27a860+'Container','element':_0x34883a});}}}}}['_resolveDescriptionItems'](_0x47eb68){const _0x54d51f=this['_locale'],_0x4d9d08=[],_0x192cb9=[],_0x46cd8e=[];for(const _0x390641 of _0x47eb68)switch(_0x390641['type']){case'text':if(_0x390641['add']=_0x390641['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x390641['remove']=_0x390641['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x390641['add']&&''!=_0x390641['remove']){_0x4d9d08['push']({'type':'replace','content':o(_0x54d51f,'REPLACE_TEXT',['\x22'+_0x390641['remove']+'\x22','\x22'+_0x390641['add']+'\x22'])});continue;}if(null!=_0x390641['add']['match'](/^ +$/)){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['add']['length']))});continue;}if(null!=_0x390641['remove']['match'](/^ +$/)){_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',o(_0x54d51f,'ELEMENT_SPACE',_0x390641['remove']['length']))});continue;}if(''!=_0x390641['add']){_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0','\x22'+_0x390641['add']+'\x22')});continue;}_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0','\x22'+_0x390641['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Insert:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Remove:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addContainer':_0x4d9d08['push']({'type':'insertion','content':o(_0x54d51f,'*Split:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'removeContainer':_0x4d9d08['push']({'type':'deletion','content':o(_0x54d51f,'*Merge:*\x20%0',this['getItemLabel'](_0x390641['element'],_0x390641['quantity']))});continue;case'addFormat':_0x192cb9['push'](_0x390641['key']);continue;case'removeFormat':_0x46cd8e['push'](_0x390641['key']);continue;default:_0x4d9d08['push'](_0x390641);}if(_0x192cb9['length']){const _0x4cd77c=_0x192cb9['map'](_0xe56001=>this['_attributeLabels']['has'](_0xe56001)?this['_attributeLabels']['get'](_0xe56001):_0xe56001)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cd77c)});}if(_0x46cd8e['length']){const _0x266703=_0x46cd8e['map'](_0x15249b=>this['_attributeLabels']['has'](_0x15249b)?this['_attributeLabels']['get'](_0x15249b):_0x15249b)['join'](',\x20');_0x4d9d08['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x266703)});}return _0x4d9d08;}['_handleCustomCallbackDescription'](_0xb06abe){for(const _0x2edc2e of this['_customCallbacks']){const _0x4df4ad=_0x2edc2e(_0xb06abe);if(_0x4df4ad&&'type'in _0x4df4ad)return _0x4df4ad;}}['_handleAttributeSuggestionDescription'](_0x34c963,_0x6ff5aa){const _0x3578c7=_0x6ff5aa['data'],_0x36a24d=void 0x0===_0x3578c7['newValue']?'removeFormat':'addFormat';_0x34c963['push']({'type':_0x36a24d,'key':_0x3578c7['key']});}['_handleRenameSuggestionDescription'](_0x8bf268,_0x578cdc){_0x8bf268['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x578cdc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31b1e6,_0xbec4ec,_0x45349a){if(this['_addDescriptionItems'](_0x31b1e6,_0xbec4ec),_0x45349a&&_0x45349a['getFirstRange']()&&!_0xbec4ec['getFirstRange']()['end']['isEqual'](_0x45349a['getFirstRange']()['start'])){const _0x519013=_0x31b1e6[_0x31b1e6['length']-0x1],_0x4f9d59='insertion'==_0xbec4ec['type']?'add':'remove';_0x519013&&'text'==_0x519013['type']&&(_0x519013[_0x4f9d59]+='\x0a');}}}class V extends _0x48688f{['afterInit'](){const _0x2bca53=this['editor'],_0x2c58bd=_0x2bca53['plugins']['get']('TrackChangesEditing');_0x2bca53['commands']['get']('showAIAssistant')&&_0x2c58bd['enableCommand']('showAIAssistant');}}class U extends _0x48688f{['afterInit'](){const _0x579bc0=this['editor'],_0x5e19be=_0x579bc0['locale'];if(!_0x579bc0['plugins']['has']('AlignmentEditing'))return;const _0x3bdf7d=_0x579bc0['plugins']['get']('TrackChangesEditing');_0x3bdf7d['enableDefaultAttributesIntegration']('alignment'),_0x3bdf7d['registerBlockAttribute']('alignment'),_0x3bdf7d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5e19be,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba767=this['editor'],_0x116686=_0x1ba767['locale'];_0x1ba767['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8c75=>{if('formatBlock'!=_0x2c8c75['type'])return;const {data:_0x22960d}=_0x2c8c75;if(_0x22960d&&'alignment'==_0x22960d['commandName']){const _0x370d77=_0x22960d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x116686,'*Format:*\x20%0',function(_0x50e74f){switch(_0x50e74f){case'left':return o(_0x116686,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x116686,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x116686,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x116686,'FORMAT_JUSTIFY_TEXT');}}(_0x370d77))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48688f{['afterInit'](){const _0x1b20d7=this['editor'],_0x400b00=_0x1b20d7['plugins']['get']('TrackChangesEditing'),_0x355a5b=_0x1b20d7['locale'];for(const _0x2afb4c of ti){if(!_0x1b20d7['plugins']['has'](_0x2afb4c))continue;const _0x2a5316=_0x2afb4c['slice'](0x0,-0x7)['toLowerCase'](),_0x385995='FORMAT_'+_0x2a5316['toUpperCase']();_0x400b00['enableDefaultAttributesIntegration'](_0x2a5316),_0x400b00['registerInlineAttribute'](_0x2a5316),_0x400b00['descriptionFactory']['registerAttributeLabel'](_0x2a5316,o(_0x355a5b,_0x385995));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9094=this['editor'],_0x32bd3e=_0x4e9094['locale'],_0x17d7ed=_0x4e9094['plugins']['get']('TrackChangesEditing');function _0x376b23(_0x39ddd7,_0x423107){_0x17d7ed['descriptionFactory']['registerDescriptionCallback'](_0x1aac02=>{if('formatInline'!=_0x1aac02['type'])return;const {data:_0x1f6e0d}=_0x1aac02;return _0x1f6e0d&&_0x1f6e0d['commandName']===_0x39ddd7?_0x1f6e0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32bd3e,'*Format:*\x20%0',_0x423107)}:{'type':'format','content':o(_0x32bd3e,'*Remove\x20format:*\x20%0',_0x423107)}:void 0x0;});}_0x376b23('bold',o(_0x32bd3e,'FORMAT_BOLD')),_0x376b23('italic',o(_0x32bd3e,'FORMAT_ITALIC')),_0x376b23('underline',o(_0x32bd3e,'FORMAT_UNDERLINE')),_0x376b23('code',o(_0x32bd3e,'FORMAT_CODE')),_0x376b23('strikethrough',o(_0x32bd3e,'FORMAT_STRIKETHROUGH')),_0x376b23('subscript',o(_0x32bd3e,'FORMAT_SUBSCRIPT')),_0x376b23('superscript',o(_0x32bd3e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48688f{['afterInit'](){const _0xa4c79e=this['editor'],_0x5a9bbf=_0xa4c79e['locale'];if(!_0xa4c79e['plugins']['has']('BlockQuoteEditing'))return;const _0x4c1d81=_0xa4c79e['plugins']['get']('TrackChangesEditing'),_0x5f786c=this['editor']['commands']['get']('blockQuote');_0x4c1d81['enableCommand']('blockQuote',(_0x23a9bd,_0x57d8b1={})=>{const _0x367512=this['editor']['model']['document']['selection'],_0x577847=_0x57d8b1&&void 0x0!==_0x57d8b1['forceValue']?_0x57d8b1['forceValue']:!_0x5f786c['value'];let _0x10aee8=[];if(_0x577847){const _0x582bfb=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x13df20=>oo(_0x13df20)||function(_0x17fa66,_0x41083b){const _0x3e893a=_0x41083b['checkChild'](_0x17fa66['parent'],'blockQuote'),_0x451992=_0x41083b['checkChild'](['$root','blockQuote'],_0x17fa66);return _0x3e893a&&_0x451992;}(_0x13df20,this['editor']['model']['schema']));_0x10aee8=to(_0x582bfb,_0xa4c79e['model']);}else{const _0x5b879d=Array['from'](_0x367512['getSelectedBlocks']())['filter'](_0x5524e9=>oo(_0x5524e9));_0x10aee8=to(_0x5b879d,_0xa4c79e['model']);}_0xa4c79e['model']['change'](()=>{for(const _0x284696 of _0x10aee8)_0x4c1d81['markBlockFormat'](_0x284696,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577847}]});});}),_0x4c1d81['descriptionFactory']['registerDescriptionCallback'](_0xd50a46=>{const {data:_0x513de5}=_0xd50a46;if(_0x513de5&&'blockQuote'==_0x513de5['commandName']){const _0x531bae=o(_0x5a9bbf,'ELEMENT_BLOCK_QUOTE');return _0x513de5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a9bbf,'*Set\x20format:*\x20%0',_0x531bae)}:{'type':'format','content':o(_0x5a9bbf,'*Remove\x20format:*\x20%0',_0x531bae)};}});}}function oo(_0x27f223){return'blockQuote'==_0x27f223['parent']['name'];}class L extends _0x48688f{['afterInit'](){const _0x4cba02=this['editor'];_0x4cba02['plugins']['has']('CaseChange')&&(_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4cba02['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48688f{['afterInit'](){const _0x3db8e5=this['editor'];_0x3db8e5['commands']['get']('ckbox')&&_0x3db8e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48688f{['afterInit'](){const _0x1b8874=this['editor'];if(!_0x1b8874['plugins']['has']('CodeBlock'))return;const _0x285f88=_0x1b8874['plugins']['get']('TrackChangesEditing'),_0xb3fde8=_0x1b8874['locale'],_0x34a1c3=_0x1b8874['config']['get']('codeBlock')['languages'],_0x3a2acd=_0x1b8874['commands']['get']('codeBlock');_0x285f88['enableCommand']('indentCodeBlock'),_0x285f88['enableCommand']('outdentCodeBlock'),_0x285f88['enableCommand']('codeBlock',(_0x192305,_0x3c3b57={})=>{const _0x4c5e06=_0x1b8874['model'],_0x3c9f51=_0x1b8874['model']['document']['selection'],_0x52d197=_0x3c3b57&&void 0x0!==_0x3c3b57['forceValue']?_0x3c3b57['forceValue']:!_0x3a2acd['value'];let _0x132e7e;_0x3c3b57['language']||(_0x3c3b57['language']=_0x34a1c3[0x0]['language']),_0x132e7e=_0x52d197?Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x1dc6f4=>eo(_0x1dc6f4)||function(_0x3860db,_0x5adb8a){if(_0x3860db['is']('rootElement')||_0x5adb8a['isLimit'](_0x3860db))return!0x1;return _0x5adb8a['checkChild'](_0x3860db['parent'],'codeBlock');}(_0x1dc6f4,_0x4c5e06['schema'])):Array['from'](_0x3c9f51['getSelectedBlocks']())['filter'](_0x2babdf=>eo(_0x2babdf));const _0x50a6ce=to(_0x132e7e,_0x4c5e06);_0x4c5e06['change'](()=>{for(const _0x86d37 of _0x50a6ce)_0x285f88['markBlockFormat'](_0x86d37,{'commandName':'codeBlock','commandParams':[{..._0x3c3b57,'forceValue':_0x52d197}],'formatGroupId':'blockName'});});}),(_0x285f88['descriptionFactory']['registerElementLabel']('codeBlock',_0x69bd10=>o(_0xb3fde8,'ELEMENT_CODE_BLOCK',_0x69bd10)),_0x285f88['descriptionFactory']['registerDescriptionCallback'](_0x2eb3f9=>{if('formatBlock'!=_0x2eb3f9['type'])return;const _0x482af6=_0xb3fde8['t'],{data:_0x2b3228}=_0x2eb3f9;if(!_0x2b3228||'codeBlock'!=_0x2b3228['commandName'])return;const _0x4690e5=_0x2b3228['commandParams'][0x0]['language'],_0x2fbb2b=_0x482af6(_0x34a1c3['find'](_0x4bae1b=>_0x4bae1b['language']===_0x4690e5)['label'])['toLowerCase']();return _0x2b3228['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3fde8,'*Set\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2fbb2b+')')}:{'type':'format','content':o(_0xb3fde8,'*Remove\x20format:*\x20%0',o(_0xb3fde8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4a0a6a){return'codeBlock'==_0x4a0a6a['name'];}class q extends _0x48688f{['afterInit'](){const _0x356eea=this['editor'];if(!_0x356eea['plugins']['has']('CommentsEditing'))return;_0x356eea['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x294f53,_0xee9b94,_0x37bd94){const _0x474d02=[];for(const _0x3ffcc6 of _0xee9b94['getItems']())_0x3ffcc6['hasAttribute'](_0x294f53)&&_0x474d02['push'](_0x37bd94['createRangeOn'](_0x3ffcc6));return _0x474d02;}function _e(_0xa03bf1,_0x142c8b,{showActiveMarker:_0x11a61e=!0x0}={}){const _0x44c064=_0xa03bf1['plugins']['get']('TrackChangesEditing');return(_0x36354c,_0x535297,_0x25e380)=>{if(!_0x25e380['consumable']['test'](_0x535297['markerRange'],_0x36354c['name']))return;const _0x521894=_0x535297['markerRange']['getWalker'](),_0x109060=_0x535297['markerRange']['start'],_0x503960=_0xa03bf1['model']['schema'];let _0x200721=null,_0x3dbf46=null,_0x7430d4=!0x1,_0x4dfcdb=!0x1;for(const _0x54f19a of _0x521894){const _0x315652=_0x54f19a['item'];_0x7430d4=_0x7430d4||_0x503960['isContent'](_0x315652);const _0x43e3e0=_0x25e380['mapper']['toViewElement'](_0x315652);if(_0x43e3e0&&_0x43e3e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54f19a['type']&&(_0x503960['isBlock'](_0x315652)&&!_0x503960['isLimit'](_0x315652)&&(_0x315652['nextSibling']||_0x109060['isAtEnd']?_0x200721&&_0x200721['parent']==_0x315652||(_0x200721=_0x315652,_0x3b8b56(_0x54f19a['previousPosition']),_0x4dfcdb=!0x0):_0x3dbf46=_0x3dbf46||_0x54f19a['previousPosition']));}function _0x3b8b56(_0x105062){const {authorId:_0x23e06f}=_0x44c064['_splitMarkerName'](_0x535297['markerName']),_0x5f37cc=_0x25e380['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x142c8b,'data-author-id':_0x23e06f}),_0x23171d=_0x25e380['mapper']['toViewPosition'](_0x105062);_0x11a61e&&_0x44c064['activeMarkers']['includes'](_0x535297['markerName'])&&_0x25e380['writer']['addClass']('ck-suggestion-marker--active',_0x5f37cc),_0x25e380['writer']['insert'](_0x23171d,_0x5f37cc),_0x25e380['mapper']['bindElementToMarker'](_0x5f37cc,_0x535297['markerName']);}_0x7430d4||_0x4dfcdb||!_0x3dbf46||_0x3b8b56(_0x3dbf46);};}class z extends _0x48688f{static get['requires'](){return[_0x4d1662];}['init'](){const _0x4bb214=this['editor'],_0xace0ae=_0x4bb214['plugins']['get']('TrackChangesEditing');_0xace0ae['enableCommand']('delete');const _0x1c4a98=_0x4bb214['commands']['get']('deleteForward');_0xace0ae['enableCommand']('deleteForward',(_0x3f3abb,_0x46e5bf={})=>{const _0x592d8c=_0x4bb214['model']['createSelection'](_0x4bb214['model']['document']['selection']);_0x592d8c['isCollapsed']&&_0x4bb214['model']['modifySelection'](_0x592d8c,{'direction':'forward','unit':_0x46e5bf['unit']});const _0xdd2c64=_0x592d8c['getFirstRange'](),_0x1240f3=_0x411321['fromRange'](_0xdd2c64);let _0x974c42;_0x3f3abb(_0x46e5bf),_0x974c42='$graveyard'==_0x1240f3['root']['rootName']?_0x4bb214['model']['createRange'](_0xdd2c64['start']):_0x4bb214['model']['createRange'](_0x1240f3['start'],_0x1240f3['end']),_0x1240f3['detach'](),_0x4bb214['model']['enqueueChange'](_0x1c4a98['buffer']['batch'],_0x5b1f40=>{_0x1c4a98['buffer']['lock'](),_0x5b1f40['setSelection'](_0x5b1f40['createRange'](_0x974c42['end'])),_0x1c4a98['buffer']['unlock']();});}),_0x4bb214['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4bb214,'merge'),{'priority':'high'}),_0x4bb214['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a4c4c,_0x6cc66f,_0x8e3206)=>{_0x8e3206['options']['showSuggestionHighlights']&&_e(_0x4bb214,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a4c4c,_0x6cc66f,_0x8e3206);},{'priority':'high'}),_0x4bb214['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x48a194,_0x379cf5,_0x42acc4)=>{const _0x11ff41=_0x42acc4['mapper']['markerNameToElements'](_0x379cf5['markerName']);if(_0x11ff41){for(const _0x46e10f of _0x11ff41)_0x46e10f['is']('uiElement')&&(_0x42acc4['mapper']['unbindElementFromMarkerName'](_0x46e10f,_0x379cf5['markerName']),_0x42acc4['writer']['remove'](_0x46e10f));}},{'priority':'high'});}}class K extends _0x48688f{['afterInit'](){const _0x113559=this['editor'];if(!_0x113559['plugins']['has']('ListEditing'))return;const _0x1e9110=_0x113559['locale'],_0x5df889=_0x113559['plugins']['get']('TrackChangesEditing'),_0x2e45ec=_0x113559['plugins']['has']('TodoListEditing'),_0x37b22b=!!_0x113559['config']['get']('list.multiBlock');function _0x9b1e11(_0x2fe36f){return{'type':'format','content':''+o(_0x1e9110,'*Set\x20format:*\x20%0',_0x2fe36f)};}function _0x1587be(_0x5c2b9b){return{'type':'format','content':''+o(_0x1e9110,'*Remove\x20format:*\x20%0',_0x5c2b9b)};}_0x5df889['enableDefaultAttributesIntegration']('numberedList'),_0x5df889['enableDefaultAttributesIntegration']('bulletedList'),_0x5df889['enableDefaultAttributesIntegration']('customNumberedList'),_0x5df889['enableDefaultAttributesIntegration']('customBulletedList'),_0x5df889['enableDefaultAttributesIntegration']('indentList'),_0x5df889['enableDefaultAttributesIntegration']('outdentList'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5df889['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5df889['registerBlockAttribute']('listItemId'),_0x5df889['registerBlockAttribute']('listType'),_0x5df889['registerBlockAttribute']('listIndent'),_0x37b22b&&(_0x5df889['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5df889['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e45ec&&(_0x5df889['enableDefaultAttributesIntegration']('todoList'),_0x5df889['enableDefaultAttributesIntegration']('checkTodoList'),_0x5df889['registerBlockAttribute']('todoListChecked'),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x241d40=>{const {data:_0x307b8c}=_0x241d40;if(_0x307b8c&&'todoListChecked'==_0x307b8c['key'])return{'type':'format','content':_0x307b8c['newValue']?o(_0x1e9110,'*Check\x20item*'):o(_0x1e9110,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x13515d=>{if(_0x13515d['batch']['isUndo'])return!0x1;let _0x1898b6=!0x1;const _0x36f88c=_0x5df889['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12b920=>'todoListChecked'===_0x5df889['_getAttributeKey'](_0x12b920));for(const _0x5754e5 of _0x36f88c){'todo'!=_0x5754e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5df889['_findSuggestions'](_0x5754e5['getFirstRange'](),'attribute')['find'](_0x37fc9a=>'listType'===_0x5df889['_getAttributeKey'](_0x37fc9a['suggestion']))||(_0x13515d['removeMarker'](_0x5754e5['getFirstMarker']()),_0x1898b6=!0x0));}return _0x1898b6;})),_0x5df889['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1e9110,'FORMAT_INDENT'));const _0x214dca={'type':'format','content':''};_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2d080d=>{const {data:_0x51e291}=_0x2d080d;if(!_0x51e291||'listType'!=_0x51e291['key'])return;let _0x1e3070=_0x2d080d['head'];for(;_0x1e3070;){if(_0x1e3070['data']&&(('listStyle'==_0x1e3070['data']['key']||'listMarkerStyle'==_0x1e3070['data']['key'])&&(_0x1e3070['data']['newValue']&&'default'!=_0x1e3070['data']['newValue']||'default'!=_0x1e3070['data']['oldValue']&&!_0x51e291['newValue'])||!_0x37b22b&&_0x1e3070['data']['key']==m))return _0x214dca;_0x1e3070=_0x1e3070['next'];}if(null==_0x51e291['newValue'])switch(_0x51e291['oldValue']){case'bulleted':return _0x1587be(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1587be(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1587be(o(_0x1e9110,'ELEMENT_TODO_LIST'));}switch(_0x51e291['newValue']){case'bulleted':return _0x9b1e11(o(_0x1e9110,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9b1e11(o(_0x1e9110,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9b1e11(o(_0x1e9110,'ELEMENT_TODO_LIST'));}}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x6e293b=>{const {data:_0x165c32}=_0x6e293b;if(_0x165c32&&'listIndent'==_0x165c32['key'])return null==_0x165c32['newValue']||null==_0x165c32['oldValue']&&0x0==_0x165c32['newValue']?_0x214dca:void 0x0;}),_0x5df889['descriptionFactory']['registerDescriptionCallback'](_0x2679e4=>{if('attribute'!=_0x2679e4['type'])return;const {data:_0xc531b9}=_0x2679e4;if(!_0xc531b9||'listItemId'!=_0xc531b9['key'])return;const _0x571869=Ee(_0x2679e4);return'newValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Merge:*\x20list\x20item')}:'oldValue'==_0x571869?{'type':'format','content':o(_0x1e9110,'*Split:*\x20list\x20item')}:_0x214dca;}),_0x113559['model']['document']['registerPostFixer'](_0x5a70dc=>this['listItemIdFixer'](_0x5a70dc)),_0x113559['model']['document']['registerPostFixer'](_0x2cc98c=>this['noTrackChangesFixer'](_0x2cc98c)),_0x113559['model']['document']['on']('change:data',(_0x389b5d,_0x133a0e)=>{if(_0x133a0e['isUndo']||!_0x133a0e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a86b8){if(_0x2a86b8['batch']['isUndo']||!_0x2a86b8['batch']['isLocal'])return!0x1;let _0x4801a6=!0x1;const _0x823ebc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54f69c=>_0x54f69c['data']&&'listItemId'==_0x54f69c['data']['key'])['filter'](_0x177dfe=>_0x177dfe['data']['newValue']&&_0x177dfe['data']['oldValue']);for(const _0x45fd2c of _0x823ebc)Ee(_0x45fd2c)||(_0x2a86b8['removeMarker'](_0x45fd2c['getFirstMarker']()),_0x4801a6=!0x0);return _0x4801a6;}['noTrackChangesFixer'](_0x3ce4ec){if(_0x3ce4ec['batch']['isUndo']||!_0x3ce4ec['batch']['isLocal'])return!0x1;const _0x1bf277=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1bf277['trackChangesCommand']['value'])return!0x1;let _0x453dc8=!0x1;const _0xcc4bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c4262=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b8a74=>'attribute'==_0x4b8a74['type'])['filter'](_0x20ad26=>_0xcc4bf['includes'](_0x20ad26['attributeKey']));if(0x0==_0x4c4262['length'])return _0x453dc8;for(const _0x40cc09 of _0x4c4262){const _0x38eee7=_0x1bf277['_findSuggestions'](_0x40cc09['range'],'attribute')['filter'](_0xd647d1=>!_0xd647d1['meta']['isNextTo'])['map'](_0x44a582=>_0x44a582['suggestion'])['filter'](_0x5653d6=>{const _0x2e5f4d=_0x1bf277['_getAttributeKey'](_0x5653d6);return _0xcc4bf['includes'](_0x2e5f4d);});if(_0x38eee7['length']){for(const _0x3e27ec of _0x38eee7)_0x3ce4ec['removeMarker'](_0x3e27ec['getFirstMarker']());_0x453dc8=!0x0;}}return _0x453dc8;}['assureChains'](){const _0x24793d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18aa7c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2769c1;const _0x240117=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fce3c=>{if(_0x2fce3c['data']['oldRange']||!_0x2fce3c['data']['newRange'])return null;if(!_0x2fce3c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x506a15}=_0x24793d['_splitMarkerName'](_0x2fce3c['name']);if(!_0x24793d['hasSuggestion'](_0x506a15))return null;const _0x59c9d6=_0x24793d['getSuggestion'](_0x506a15);return _0x18aa7c['includes'](_0x59c9d6['data']['key']);})['map'](_0x458bc6=>{const {id:_0x254aac}=_0x24793d['_splitMarkerName'](_0x458bc6['name']),_0x2aec8e=_0x24793d['getSuggestion'](_0x254aac);return _0x2769c1=_0x2aec8e['attributes']['groupId'],_0x2aec8e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x240117['size'])return;const _0x50db0b=_0x24793d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b7eb0=>'attribute'==_0x3b7eb0['type']&&_0x3b7eb0['data']&&_0x18aa7c['includes'](_0x3b7eb0['data']['key'])&&_0x3b7eb0['attributes']['groupId']!=_0x2769c1)['map'](_0x3cb1f1=>({'listItem':_0x3cb1f1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3cb1f1['attributes']['groupId']})),_0x368c5f=new Set();for(const {groupId:_0x249bf2,listItem:_0x17875a}of _0x50db0b)_0x240117['has'](_0x17875a)&&_0x368c5f['add'](_0x249bf2);for(const _0x867148 of _0x24793d['getSuggestions']())_0x368c5f['has'](_0x867148['attributes']['groupId'])&&_0x867148['setAttribute']('groupId',_0x2769c1);}['_supportLegacySuggestions'](){const _0x52c19e=this['editor'],_0x1c0322=_0x52c19e['locale'],_0x2e9361=_0x52c19e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2e9361['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a5f39,_0x44786e){const _0x8f6d83=[];for(let _0x1d81e4 of _0x1a5f39)_0x1d81e4['start']['nodeAfter']===_0x1d81e4['end']['parent']&&(_0x1d81e4=_0x52c19e['model']['createRange'](_0x52c19e['model']['createPositionAt'](_0x1d81e4['start']['nodeAfter'],0x0))),_0x8f6d83['push'](_0x1d81e4);_0x52c19e['model']['change'](_0xcc85a5=>{const _0x205d3c=_0x52c19e['model']['document']['selection'],_0x2b98a0=Array['from'](_0x205d3c['getRanges']())['map'](_0x244e7a=>_0x411321['fromRange'](_0x244e7a));_0xcc85a5['setSelection'](_0x8f6d83),_0x52c19e['commands']['get'](_0x44786e['commandName'])['refresh'](),_0x44786e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x52c19e['execute'](_0x44786e['commandName'],..._0x44786e['commandParams']),_0xcc85a5['setSelection'](_0x2b98a0);for(const _0x45693d of _0x2b98a0)_0x45693d['detach']();});}),_0x2e9361['descriptionFactory']['registerElementLabel'](function(_0x2182ef){const _0x259d5e=!_0x52c19e['model']['schema']['isObject'](_0x2182ef),_0x2b58d5=_0x2182ef['previousSibling'],_0x3e03cb=_0x2182ef['nextSibling'],_0x396474=_0x2182ef['getAttribute']('listItemId'),_0x22f6ca=!_0x2b58d5||_0x2b58d5['getAttribute']('listItemId')!==_0x396474,_0x510ce0=!_0x3e03cb||_0x3e03cb['getAttribute']('listItemId')!==_0x396474;return _0x259d5e&&Boolean(_0x396474)&&_0x22f6ca&&_0x510ce0;},_0x3801d5=>o(_0x1c0322,'ELEMENT_LIST_ITEM',_0x3801d5));}['_registerLegacyDescription'](){const _0x88237c=this['editor'],_0x12bb6d=_0x88237c['locale'];function _0x450769(_0x568bbb){const _0x422dba=_0x88237c['commands']['get']('bulletedList')['value'],_0x1e10c8=_0x88237c['commands']['get']('numberedList')['value'];return'numberedList'===_0x568bbb?_0x422dba:_0x1e10c8;}_0x88237c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x72a553){if('formatBlock'!=_0x72a553['type'])return;const {data:_0x3617ec}=_0x72a553;if(!_0x3617ec)return;let _0x1671d2,_0x2935d3,_0x472d2c,_0x37f7b9;switch(_0x3617ec['commandName']){case'bulletedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x472d2c=_0x3617ec['commandParams'][0x0]['forceValue'],_0x37f7b9=_0x450769(_0x3617ec['commandName']),_0x1671d2=_0x472d2c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37f7b9&&_0x88237c['config']['get']('list.multiBlock')||(_0x1671d2='*Change\x20to:*\x20%0'),_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1671d2='*Indent:*\x20%0',_0x2935d3={'type':'format','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1671d2=function(_0x44f306){const _0x16c15f=_0x44f306['getFirstRange']();let _0x45f610=_0x16c15f['start']['nodeAfter'];for(;_0x45f610&&_0x16c15f['containsItem'](_0x45f610);){if(_0x45f610['getAttribute']('listIndent')>0x0)return!0x1;_0x45f610=_0x45f610['nextSibling'];}return!0x0;}(_0x72a553)?o(_0x12bb6d,'*Format:*\x20remove\x20from\x20%0',o(_0x12bb6d,function(_0x2f06a7){return'ELEMENT_'+_0x2f06a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x72a553))):o(_0x12bb6d,'*Outdent:*\x20%0',o(_0x12bb6d,'ELEMENT_LIST_ITEM')),_0x2935d3={'type':'format','content':_0x1671d2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3617ec['multipleBlocks']&&(_0x1671d2='*Merge:*\x20%0',_0x2935d3={'type':'deletion','content':o(_0x12bb6d,_0x1671d2,o(_0x12bb6d,'ELEMENT_LIST_ITEM'))});}return _0x2935d3;});}}function Ee(_0x147147){let _0x1f291f=_0x147147['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f291f;){const _0x594f98=_0x1f291f['getAttribute']('listItemId');if(!_0x594f98)return!0x1;if(_0x594f98==_0x147147['data']['newValue'])return'newValue';if(_0x594f98==_0x147147['data']['oldValue'])return'oldValue';_0x1f291f=_0x1f291f['previousSibling'];}return!0x1;}class pe extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25b7b8=this['editor']['config']['get']('list.properties'),_0x363077=this['editor']['plugins']['get']('TrackChangesEditing');_0x25b7b8['styles']&&(_0x363077['enableDefaultAttributesIntegration']('listStyle'),_0x363077['registerBlockAttribute']('listStyle')),_0x25b7b8['reversed']&&(_0x363077['enableDefaultAttributesIntegration']('listReversed'),_0x363077['registerBlockAttribute']('listReversed')),_0x25b7b8['startIndex']&&(_0x363077['enableDefaultAttributesIntegration']('listStart'),_0x363077['registerBlockAttribute']('listStart'));const _0x5c4363={'type':'format','content':''};_0x363077['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x466e7c=this['editor']['locale'];_0x363077['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x466e7c,'FORMAT_LIST_REVERSED')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x366f82=>{const {data:_0x10ea44}=_0x366f82;if(_0x10ea44&&'listReversed'==_0x10ea44['key'])return null==_0x10ea44['newValue']||0x0==_0x10ea44['newValue']&&null==_0x10ea44['oldValue']?_0x5c4363:void 0x0;}),_0x363077['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x466e7c,'FORMAT_LIST_START')),_0x363077['descriptionFactory']['registerDescriptionCallback'](_0x183f7d=>{const {data:_0x347012}=_0x183f7d;if(_0x347012&&'listStart'==_0x347012['key'])return null==_0x347012['newValue']||0x1==_0x347012['newValue']&&null==_0x347012['oldValue']?_0x5c4363:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x22bc66=>{if(_0x22bc66['batch']['isUndo'])return!0x1;let _0x24e503=!0x1;const _0x472ec7=_0x363077['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b392d=>{const _0x230c72=_0x363077['_getAttributeKey'](_0x2b392d);return'listStart'==_0x230c72||'listReversed'==_0x230c72;});for(const _0xdc90c0 of _0x472ec7){const _0x8fb641=_0xdc90c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8fb641||'customNumbered'==_0x8fb641)continue;_0x363077['_findSuggestions'](_0xdc90c0['getFirstRange'](),'attribute')['find'](_0x1a16e6=>'listType'==_0x363077['_getAttributeKey'](_0x1a16e6['suggestion']))||(_0x22bc66['removeMarker'](_0xdc90c0['getFirstMarker']()),_0x24e503=!0x0);}return _0x24e503;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1cf4b4){const _0x5d3603=this['editor']['locale'],{data:_0x1c40c6}=_0x1cf4b4,_0x56fe0e={'type':'format','content':''};if(!_0x1c40c6||'listStyle'!=_0x1c40c6['key'])return;if(!_0x1c40c6['oldValue'])return'default'==_0x1c40c6['newValue']?_0x56fe0e:{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};if(!_0x1c40c6['newValue']){if('default'==_0x1c40c6['oldValue'])return _0x56fe0e;let _0x2667c2=_0x1cf4b4['head'];for(;_0x2667c2;){if(_0x2667c2['data']&&'listType'==_0x2667c2['data']['key']&&_0x2667c2['data']['newValue'])return _0x56fe0e;_0x2667c2=_0x2667c2['next'];}return{'type':'format','content':''+o(_0x5d3603,'*Remove\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['oldValue'])))};}if('default'!=_0x1c40c6['newValue'])return{'type':'format','content':''+o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,this['_getTranslationKeyForListStyle'](_0x1c40c6['newValue'])))};let _0x458e36=_0x1cf4b4['head'];for(;_0x458e36;){if(_0x458e36['data']&&'listType'==_0x458e36['data']['key']&&_0x458e36['data']['newValue']&&_0x458e36['data']['oldValue'])return _0x56fe0e;_0x458e36=_0x458e36['next'];}return{'type':'format','content':o(_0x5d3603,'*Set\x20format:*\x20%0',o(_0x5d3603,'ELEMENT_'+_0x1cf4b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ea5ae=this['editor'],_0x9ed3bf=_0x2ea5ae['locale'];_0x2ea5ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36589d=>{if('formatBlock'!=_0x36589d['type'])return;const {data:_0xafbff1}=_0x36589d;if(!_0xafbff1)return;let _0x564ad7,_0x18c24c;switch(_0xafbff1['commandName']){case'listStyle':_0x564ad7='*Change\x20to:*\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,o(_0x9ed3bf,this['_getTranslationKeyForListStyle'](_0xafbff1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x564ad7=_0xafbff1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7)};break;case'listStart':_0x564ad7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18c24c={'type':'format','content':o(_0x9ed3bf,_0x564ad7,_0xafbff1['commandParams'][0x0]['startIndex'])};}return _0x18c24c;});}['_getTranslationKeyForListStyle'](_0x1adaff){return'ELEMENT_'+function(_0x17aa21){if(ye['includes'](_0x17aa21))return'bulleted';if(Se['includes'](_0x17aa21))return'numbered';return null;}(_0x1adaff)['toUpperCase']()+'_LIST_'+_0x1adaff['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48688f{static get['requires'](){return[_0x161099];}['init'](){const _0x4eb4c5=this['editor'],_0x547d3d=_0x4eb4c5['plugins']['get']('TrackChangesEditing'),_0x400415=_0x4eb4c5['commands']['get']('enter');_0x547d3d['enableCommand']('enter',()=>{_0x4eb4c5['model']['change'](_0x1bda5b=>{const _0x28500b=_0x4eb4c5['model']['document']['selection'],_0x56c4ce=_0x28500b['getFirstPosition'](),_0x383e73=_0x411321['fromRange'](_0x28500b['getFirstRange']());if(_0x400415['enterBlock'](_0x1bda5b)){const _0x20a259=_0x4eb4c5['model']['createPositionAt'](_0x56c4ce['parent']['nextSibling'],0x0),_0x304837=_0x1bda5b['createRange'](_0x56c4ce,_0x20a259);_0x547d3d['markInsertion'](_0x304837);}else _0x1bda5b['setSelection'](_0x1bda5b['createRange'](_0x383e73['end']));_0x383e73['detach'](),_0x400415['fire']('afterExecute',{'writer':_0x1bda5b});});}),_0x4eb4c5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4eb4c5,'split'),{'priority':'high'}),_0x4eb4c5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x30ea6f,_0x3b074e,_0x417b97)=>{const _0x52f374=_0x417b97['mapper']['markerNameToElements'](_0x3b074e['markerName']);if(_0x52f374){for(const _0x371756 of _0x52f374)_0x371756['hasClass']('ck-suggestion-marker-split')&&(_0x417b97['mapper']['unbindElementFromMarkerName'](_0x371756,_0x3b074e['markerName']),_0x417b97['writer']['remove'](_0x371756));}},{'priority':'high'}),_0x4eb4c5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56bbf7,_0x3a7ef4,_0x58875b)=>{_0x58875b['options']['showSuggestionHighlights']&&_e(_0x4eb4c5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x56bbf7,_0x3a7ef4,_0x58875b);},{'priority':'high'});}}class X extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5044f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5044f0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5044f0['enableCommand']('findNext'),_0x5044f0['enableCommand']('findPrevious'),_0x5044f0['enableCommand']('replace'),_0x5044f0['enableCommand']('replaceAll');}['handleFindCommand'](_0xf694f1,_0x3a4ff6,_0x30aa83={}){const _0x27b487=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf694f1(_0x24d45d=>{let _0x4af41f=('string'==typeof _0x3a4ff6?_0x27b487['findByTextCallback'](_0x3a4ff6,_0x30aa83):_0x3a4ff6)(_0x24d45d);Array['isArray'](_0x4af41f)&&(_0x4af41f={'results':_0x4af41f,'searchText':'string'==typeof _0x3a4ff6?_0x3a4ff6:''});const _0x436c7b=_0x4af41f['results']['filter'](_0x91f996=>!0x1===this['_isInDeletionRange'](_0x91f996,_0x24d45d['item']));return{..._0x4af41f,'results':_0x436c7b};},_0x30aa83);}['_isInDeletionRange'](_0x5b773a,_0x5c6d58){const _0x4fd8b3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['start']),this['editor']['model']['createPositionAt'](_0x5c6d58,_0x5b773a['end']));for(const _0x245cee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4fd8b3['getIntersection'](_0x245cee['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x48688f{['afterInit'](){const _0x126b56=this['editor']['locale'],_0x133bdc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x102fbf,commandName:_0x3df02a}of ro)this['editor']['plugins']['has'](_0x102fbf)&&(_0x133bdc['enableDefaultAttributesIntegration'](_0x3df02a),_0x133bdc['registerInlineAttribute'](_0x3df02a));_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x126b56,'FORMAT_FONT_SIZE')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x126b56,'FORMAT_FONT_FAMILY')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x126b56,'FORMAT_FONT_COLOR')),_0x133bdc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x126b56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f6064=this['editor'],_0x33f918=_0x2f6064['locale'];_0x2f6064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c99f=>{const _0x491ba9=_0x33f918['t'];if('formatInline'!=_0x13c99f['type'])return;const {data:_0x93e274}=_0x13c99f;if(null!=_0x93e274){if('fontSize'==_0x93e274['commandName']){const _0x259650=_0x93e274['commandParams'][0x0]['value'];if(_0x259650){const _0x4488a7=_0x491ba9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31f827=>_0x31f827['model']==_0x259650)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33f918,'*Set\x20font\x20size:*\x20%0',_0x4488a7)};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x93e274['commandName']){const _0x442428=_0x93e274['commandParams'][0x0]['value'];return _0x442428?{'type':'format','content':o(_0x33f918,'*Set\x20font\x20family:*\x20%0',_0x442428)}:{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20family*')};}if('fontColor'==_0x93e274['commandName']){const _0x19bce2=_0x93e274['commandParams'][0x0]['value'];if(_0x19bce2){const _0x3dd95d=_0x387c59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53110e=>_0x53110e['model']==_0x19bce2);let _0x2f931d=_0x19bce2,_0xfb66c8='';return _0x3dd95d&&(_0x2f931d=_0x3dd95d['label'],_0xfb66c8=_0x491ba9(_0x2f931d)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20color:*\x20%0',_0xfb66c8)['trim'](),'color':{'value':_0x19bce2,'title':_0xfb66c8||_0x2f931d}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x93e274['commandName']){const _0xb46de9=_0x93e274['commandParams'][0x0]['value'];if(_0xb46de9){const _0x2a8de9=_0x387c59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c08f4=>_0x1c08f4['model']==_0xb46de9);let _0xce31cf=_0xb46de9,_0x56728f='';return _0x2a8de9&&(_0xce31cf=_0x2a8de9['label'],_0x56728f=_0x491ba9(_0xce31cf)['toLowerCase']()),{'type':'format','content':o(_0x33f918,'*Set\x20font\x20background\x20color:*\x20%0',_0x56728f)['trim'](),'color':{'value':_0xb46de9,'title':_0x56728f||_0xce31cf}};}return{'type':'format','content':o(_0x33f918,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48688f{['afterInit'](){const _0x240ab5=this['editor'],_0x4d431e=_0x240ab5['plugins']['get']('TrackChangesEditing'),_0x5040d4=_0x240ab5['commands']['get']('copyFormat'),_0x2acd14=_0x240ab5['commands']['get']('pasteFormat');_0x5040d4&&_0x2acd14&&(_0x4d431e['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d431e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cc320=this['editor'],_0x3aeec0=_0x2cc320['locale'];_0x2cc320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1975ad=>{if('formatBlock'!=_0x1975ad['type']&&'formatInline'!=_0x1975ad['type'])return;const {data:_0x7cc819}=_0x1975ad;if(_0x7cc819&&'pasteFormat'===_0x7cc819['commandName']){const _0x44b432=[],_0x143736=_0x7cc819['commandParams'][0x0];for(const [_0x2eab01,_0x326d7d]of Object['entries'](_0x143736))_0x44b432['push'](so(_0x2cc320,_0x2eab01,_0x326d7d));return _0x44b432['length']?{'type':'format','content':o(_0x3aeec0,'*Set\x20format\x20to:*\x20%0',_0x44b432['join'](',\x20'))}:{'type':'format','content':o(_0x3aeec0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16e788,_0xbf6754,_0x4e88d8){const _0x2da339=_0x16e788['locale']['t'],_0x5663aa=_0xbf6754['split'](/(?=[A-Z])/)['join']('\x20'),_0x355c24=_0x2da339(_0x5663aa['charAt'](0x0)['toUpperCase']()+_0x5663aa['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e88d8)return _0x355c24;if('fontColor'===_0xbf6754||'fontBackgroundColor'===_0xbf6754){const _0x4bc5d8=_0x387c59(_0x16e788['config']['get']('fontColor.colors'))['find'](_0x241472=>_0x241472['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x4bc5d8?_0x2da339(_0x4bc5d8['label'])['toLowerCase']():_0x4e88d8)+')';}if('fontSize'===_0xbf6754&&isNaN(parseFloat(_0x4e88d8))){const _0x3a7057=_0x16e788['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16e788['config']['get']('fontSize.options'))['find'](_0x146bc0=>_0x146bc0['model']==_0x4e88d8);return _0x355c24+'\x20('+(_0x3a7057?_0x2da339(_0x3a7057['title'])['toLowerCase']():_0x4e88d8)+')';}return _0x355c24+'\x20('+_0x4e88d8+')';}class tt extends _0x48688f{['_headingOptions'];['afterInit'](){const _0x55ddb9=this['editor'];if(!_0x55ddb9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55ddb9['config']['get']('heading.options');const _0x3858b5=_0x55ddb9['locale'],_0x54ddd7=_0x55ddb9['plugins']['get']('TrackChangesEditing');_0x54ddd7['enableDefaultAttributesIntegration']('heading');for(const _0x27b4c0 of this['_headingOptions'])'paragraph'!=_0x27b4c0['model']&&_0x54ddd7['descriptionFactory']['registerElementLabel'](_0x27b4c0['model'],_0x5d4561=>{const _0x33843b=this['_getHeadingLevel'](_0x27b4c0['model']);return null!==_0x33843b?_0xbab190(_0x5d4561,_0x33843b):_0x4f67f9(_0x5d4561,_0x27b4c0['title']);});function _0xbab190(_0x31366f,_0x4895ae){return o(_0x3858b5,'ELEMENT_HEADING',[_0x31366f,_0x4895ae]);}function _0x4f67f9(_0x387b6f,_0x2954b8){return o(_0x3858b5,'ELEMENT_HEADING_CUSTOM',[_0x387b6f,_0x2954b8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d521=this['editor'],_0x19279e=_0x25d521['locale'];function _0x3127c9(_0xa757f,_0x35e8a2){return o(_0x19279e,'ELEMENT_HEADING_CUSTOM',[_0xa757f,_0x35e8a2]);}_0x25d521['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37a0f1=>{if('formatBlock'!=_0x37a0f1['type'])return;const {data:_0xa249b2}=_0x37a0f1;if(_0xa249b2&&'heading'==_0xa249b2['commandName']){const _0x49755a=_0xa249b2['commandParams'][0x0]['value'],_0x44d400=this['_getHeadingLevel'](_0x49755a);if(null!==_0x44d400)return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',(_0x269fe5=0x1,_0x27bbe6=_0x44d400,o(_0x19279e,'ELEMENT_HEADING',[_0x269fe5,_0x27bbe6])))};const _0x9472da=this['_headingOptions']['find'](_0x8ce641=>_0x8ce641['model']===_0x49755a)['title'];return{'type':'format','content':o(_0x19279e,'*Change\x20to:*\x20%0',_0x3127c9(0x1,_0x9472da))};}var _0x269fe5,_0x27bbe6;});}['_getHeadingLevel'](_0x1c2611){const _0xc59e68=_0x1c2611['match'](/^heading(\d+)/);if(_0xc59e68)return _0xc59e68[0x1];const _0x22a6cd=this['_headingOptions']?.['find'](_0x4784f0=>_0x4784f0['model']==_0x1c2611);if(_0x22a6cd&&_0x22a6cd['view']){const _0x493f8e=_0x22a6cd['view'],_0x248c33=(_0x493f8e['name']??_0x493f8e)['match'](/^h(\d+)/);if(_0x248c33)return _0x248c33[0x1];}return null;}}class et extends _0x48688f{['afterInit'](){const _0xc1f702=this['editor'];if(!_0xc1f702['plugins']['has']('HighlightEditing'))return;const _0x2adcd4=_0xc1f702['plugins']['get']('TrackChangesEditing'),_0x55c14d=_0xc1f702['locale'];_0x2adcd4['enableDefaultAttributesIntegration']('highlight'),_0x2adcd4['registerInlineAttribute']('highlight'),_0x2adcd4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x55c14d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2955ea=this['editor'],_0x4d13de=_0x2955ea['locale'];_0x2955ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2593c3=>{if('formatInline'!=_0x2593c3['type'])return;const {data:_0x4f31f5}=_0x2593c3;if(_0x4f31f5&&'highlight'==_0x4f31f5['commandName']){const _0x136028=_0x4d13de['t'],_0x41fc44=_0x4f31f5['commandParams'][0x0]['value'];if(_0x41fc44){const _0x11de93=_0x2955ea['config']['get']('highlight.options')['find'](_0x24557c=>_0x24557c['model']==_0x41fc44),_0x3c73e8=_0x136028(_0x11de93['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d13de,'*Set\x20highlight:*\x20%0',_0x3c73e8),'color':{'value':_0x11de93['color'],'title':_0x11de93['title']}};}return{'type':'format','content':o(_0x4d13de,'*Remove\x20highlight*',o(_0x4d13de,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48688f{['afterInit'](){const _0x36e344=this['editor'];if(!_0x36e344['plugins']['has']('HorizontalLineEditing'))return;_0x36e344['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3ab0a8=_0x36e344['plugins']['get']('TrackChangesEditing'),_0x4e4876=_0x36e344['locale'];_0x3ab0a8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ea099=>o(_0x4e4876,'ELEMENT_HORIZONTAL_LINE',_0x5ea099)),_0x36e344['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x293f02,{writer:_0x882dcd,options:_0x317ef2})=>{if(!_0x317ef2['showSuggestionHighlights'])return null;const _0x4381b4=_0x882dcd['createContainerElement']('div'),_0x256029=_0x882dcd['createEmptyElement']('hr');return _0x882dcd['addClass']('ck-horizontal-line',_0x4381b4),_0x882dcd['insert'](_0x882dcd['createPositionAt'](_0x4381b4,0x0),_0x256029),_0x4381b4;},'converterPriority':'high'});}}class st extends _0x48688f{['afterInit'](){const _0x4b6ce7=this['editor'];if(!_0x4b6ce7['plugins']['has']('HtmlEmbed'))return;const _0xc87f9d=_0x4b6ce7['plugins']['get']('TrackChangesEditing'),_0x2f0664=_0x4b6ce7['locale'];_0xc87f9d['descriptionFactory']['registerElementLabel']('rawHtml',_0x283d89=>o(_0x2f0664,'ELEMENT_HTML_EMBED',_0x283d89)),_0xc87f9d['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc87f9d['registerBlockAttribute']('value'),_0xc87f9d['descriptionFactory']['registerDescriptionCallback'](_0x4be4ee=>{if('attribute'!=_0x4be4ee['type'])return;const {data:_0x444a55}=_0x4be4ee;if(_0x444a55&&'value'==_0x444a55['key']&&_0x4be4ee['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ae72f=o(_0x2f0664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f0664,'*Change\x20%0\x20content*',_0x4ae72f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe88e44=this['editor'],_0x366797=_0xe88e44['locale'];_0xe88e44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb5e62f=>{if('formatBlock'!=_0xb5e62f['type'])return;const {data:_0x2922e5}=_0xb5e62f;if(_0x2922e5&&'htmlEmbed'==_0x2922e5['commandName']){const _0x71621e=o(_0x366797,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x366797,'*Change\x20%0\x20content*',_0x71621e)};}});}}class nt extends _0x48688f{['afterInit'](){const _0x38e223=this['editor'];if(!_0x38e223['plugins']['has']('ImageEditing'))return;const _0x1b3a6b=_0x38e223['plugins']['get']('TrackChangesEditing'),_0x315516=_0x38e223['plugins']['get']('ImageUtils'),_0x263d34=_0x38e223['locale'];_0x1b3a6b['enableCommand']('insertImage'),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a3e63=>o(_0x263d34,'ELEMENT_IMAGE',_0x4a3e63)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('imageInline',_0x143965=>o(_0x263d34,'ELEMENT_INLINE_IMAGE',_0x143965)),_0x1b3a6b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x263d34,'ELEMENT_CAPTION')),_0x38e223['plugins']['has']('ImageUploadEditing')&&_0x1b3a6b['enableCommand']('uploadImage'),_0x38e223['plugins']['has']('ImageBlockEditing')&&_0x38e223['plugins']['has']('ImageInlineEditing')&&(_0x1b3a6b['enableCommand']('imageTypeInline',(_0x9c5a72,_0x2fbd17)=>{const _0x274e01=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']);_0x38e223['model']['change'](()=>{_0x1b3a6b['markBlockFormat'](_0x274e01,{'commandName':'imageTypeInline','commandParams':[_0x2fbd17]},[],'convertBlockImageToInline');});}),_0x1b3a6b['enableCommand']('imageTypeBlock',(_0x55eb4a,_0x28e6dc)=>{_0x38e223['model']['change'](_0x3935ed=>{let _0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x396146=_0x1473f7['fromPosition'](_0x3b1db7['start'],'toPrevious'),_0x2e3146=_0x1473f7['fromPosition'](_0x3b1db7['end'],'toNext');_0x1b3a6b['forceDefaultExecution'](()=>_0x55eb4a(_0x28e6dc)),_0x1df0e6=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x3b1db7=_0x3935ed['createRangeOn'](_0x1df0e6);const _0x2e7250=_0x3935ed['createRange'](_0x396146,_0x2e3146);_0x396146['detach'](),_0x2e3146['detach'](),_0x1b3a6b['markBlockFormat'](_0x1df0e6,{'commandName':'imageTypeInline','commandParams':[_0x28e6dc]},[],'convertInlineImageToBlock'),_0x2e7250['start']['isBefore'](_0x3b1db7['start'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x2e7250['start'],_0x3b1db7['start']),'convertInlineImageToBlock'),_0x3b1db7['end']['isBefore'](_0x2e7250['end'])&&_0x1b3a6b['markInsertion'](_0x3935ed['createRange'](_0x3b1db7['end'],_0x2e7250['end']),'convertInlineImageToBlock');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ba0ee])=>{const _0x2195c2=_0x1b3a6b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27c201=_0x3ba0ee['start'],_0x45b7a2=_0x3ba0ee['end'];const _0x1746c0=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x27c201,'backward'),_0x58019d=_0x38e223['model']['schema']['getNearestSelectionRange'](_0x45b7a2,'forward');_0x1746c0['isCollapsed']&&(_0x27c201=_0x1746c0['start']),_0x58019d['isCollapsed']&&(_0x45b7a2=_0x58019d['end']),_0x2195c2([_0x38e223['model']['createRange'](_0x27c201,_0x45b7a2)]);}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f2582),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f2582)),_0x38e223['plugins']['has']('ImageCaptionEditing')&&(_0x1b3a6b['enableCommand']('toggleImageCaption',(_0x289783,_0x2d57c5)=>{const _0x4979ca=_0x38e223['plugins']['get']('ImageCaptionUtils');let _0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382);_0x38e223['model']['change'](()=>{if(_0x56765d)return void _0x1b3a6b['markDeletion'](_0x38e223['model']['createRangeOn'](_0x56765d));const _0x53168c=_0x315516['isBlockImage'](_0x20f382);_0x289783(_0x2d57c5),_0x20f382=_0x315516['getClosestSelectedImageElement'](_0x38e223['model']['document']['selection']),_0x56765d=_0x4979ca['getCaptionFromImageModelElement'](_0x20f382),_0x1b3a6b['markInsertion'](_0x38e223['model']['createRangeOn'](_0x56765d),_0x53168c?null:'imageCaption');});}),_0x1b3a6b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f2582));const _0x1876c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x452f22(_0x4e0a50,_0x2d5e5f){const _0x535646=_0x1876c1['findIndex'](({type:_0x32752f,subType:_0x5c850e})=>_0x4e0a50['type']==_0x32752f&&_0x4e0a50['subType']==_0x5c850e),_0x39cf12=_0x1876c1['findIndex'](({type:_0xa5fa9d,subType:_0x346d4d})=>_0x2d5e5f['type']==_0xa5fa9d&&_0x2d5e5f['subType']==_0x346d4d);if(_0x535646<0x0||_0x39cf12<0x0)return!0x1;const _0xafd4e9=_0x4e0a50['getFirstRange'](),_0x18ef04=_0x2d5e5f['getFirstRange']();if((0x0==_0x535646||0x1==_0x535646)&&0x2==_0x39cf12&&_0xafd4e9['isIntersecting'](_0x18ef04))return!0x0;if(0x2==_0x535646&&0x3==_0x39cf12){const _0xbd6514=_0x1b3a6b['_findSuggestions'](_0xafd4e9,'insertion')['filter'](({suggestion:_0x244249,meta:_0x4e57db})=>_0x4e57db['isOwn']&&'convertInlineImageToBlock'==_0x244249['subType']);if(_0xbd6514['length']>0x1&&_0x18ef04['end']['isEqual'](_0xafd4e9['start']))return!0x0;if(0x1==_0xbd6514['length']&&(_0xafd4e9['start']['isEqual'](_0x18ef04['end'])||_0xafd4e9['end']['isEqual'](_0x18ef04['start'])))return!0x0;}if(0x3==_0x535646&&0x3==_0x39cf12&&_0xafd4e9['start']['isBefore'](_0x18ef04['start'])){const _0x5ae9c1=_0xafd4e9['end']['nodeAfter'],_0x59b631=_0x18ef04['start']['nodeBefore'];return _0x315516['isBlockImage'](_0x5ae9c1)&&_0x5ae9c1===_0x59b631;}return!0x1;}function _0x1f2582(_0x360c99,_0x2aaa66){return _0x452f22(_0x360c99,_0x2aaa66)?[_0x360c99,_0x2aaa66]:_0x452f22(_0x2aaa66,_0x360c99)?[_0x2aaa66,_0x360c99]:null;}_0x38e223['plugins']['has']('ImageResize')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('resizeImage'),_0x1b3a6b['registerBlockAttribute']('resizedWidth'),_0x1b3a6b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x263d34,'FORMAT_IMAGE_SIZE'))),_0x38e223['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b3a6b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b3a6b['registerBlockAttribute']('alt')),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x5cd58a=>{if(!!_0x1876c1['find'](({type:_0x2c0845,subType:_0x4e63c0})=>_0x5cd58a['type']==_0x2c0845&&_0x5cd58a['subType']==_0x4e63c0))return _0x5cd58a['previous']?{}:void 0x0;}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x231983=>{if('insertion'==_0x231983['type']||'deletion'==_0x231983['type']){const _0x31cc4f=_0x231983['getContainedElement']();if(_0x31cc4f&&_0x31cc4f['is']('element','caption'))return{'type':'insertion'==_0x231983['type']?'addObject':'removeObject','element':_0x31cc4f,'quantity':0x1};}}),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x2d15c4=>'formatBlock'==_0x2d15c4['type']&&'convertInlineImageToBlock'==_0x2d15c4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d15c4['type']&&'convertBlockImageToInline'==_0x2d15c4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b3a6b['descriptionFactory']['registerDescriptionCallback'](_0x27e791=>{if('attribute'!=_0x27e791['type'])return;const {data:_0x43afc4}=_0x27e791;if(!_0x43afc4||'alt'!=_0x43afc4['key'])return;const _0x5d7fd8=_0x43afc4['newValue'];return _0x5d7fd8?{'type':'format','content':o(_0x263d34,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d7fd8+'\x22')}:{'type':'format','content':o(_0x263d34,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ee1d=this['editor'],_0x131e99=_0x22ee1d['locale'];_0x22ee1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492a39=>{if('formatBlock'!=_0x492a39['type']&&'formatInline'!=_0x492a39['type'])return;const {data:_0x3431bf}=_0x492a39;if(_0x3431bf){if('imageTextAlternative'==_0x3431bf['commandName']){const _0x8d5145=_0x3431bf['commandParams'][0x0]['newValue'];return _0x8d5145?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8d5145+'\x22')}:{'type':'format','content':o(_0x131e99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3431bf['commandName']){const _0x5012bc=_0x3431bf['commandParams'][0x0]['width'];return _0x5012bc?{'type':'format','content':o(_0x131e99,'*Set\x20image\x20width:*\x20%0',_0x5012bc)}:{'type':'format','content':o(_0x131e99,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x38876f=this['editor']['locale'],_0xbe4dc6=this['editor']['plugins']['get']('TrackChangesEditing');_0xbe4dc6['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbe4dc6['registerBlockAttribute']('src'),_0xbe4dc6['descriptionFactory']['registerDescriptionCallback'](_0x68ab4a=>{if('attribute'!=_0x68ab4a['type'])return;const {data:_0xcf3939}=_0x68ab4a;return _0xcf3939&&'src'==_0xcf3939['key']?_0xcf3939['newValue']&&_0xcf3939['oldValue']?{'type':'format','content':o(_0x38876f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f19e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f19e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f19e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24452a=this['editor'],_0x385f53=_0x24452a['locale'];_0x24452a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a80b=>{if('formatBlock'!=_0x26a80b['type']&&'formatInline'!=_0x26a80b['type'])return;const {data:_0x1cd667}=_0x26a80b;if(!_0x1cd667||'replaceImageSource'!=_0x1cd667['commandName'])return;return{'type':'format','content':o(_0x385f53,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48688f{['afterInit'](){const _0x139261=this['editor'];if(!_0x139261['plugins']['has']('ImageStyleEditing'))return;const _0x2bbe39=_0x139261['plugins']['get']('TrackChangesEditing'),_0x54210d=_0x139261['plugins']['get']('ImageUtils'),_0x269215={};_0x2bbe39['enableCommand']('imageStyle',(_0x3f5c07,_0x39e208)=>{const _0x2891c0=_0x139261['plugins']['get']('Users')['me'],_0x22ac25=_0x139261['commands']['get']('imageStyle');let _0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x242497=_0x22ac25['value'];if(_0x242497==_0x39e208['value'])return;const _0x501727={'commandName':'imageStyle','commandParams':[_0x39e208],'formatGroupId':_0x2120b6()};_0x139261['model']['change'](()=>{if(_0x2bbe39['getSuggestions']()['filter'](_0x24ded1=>_0x24ded1['isInContent']&&_0x2891c0==_0x24ded1['author']&&('formatBlock'==_0x24ded1['type']||'formatInline'==_0x24ded1['type'])&&('imageStylePreApply'==_0x24ded1['subType']||'imageStylePostApply'==_0x24ded1['subType'])&&_0x24ded1['getFirstRange']()['isEqual'](_0x19113d))['forEach'](_0x3e1e87=>_0x2bbe39['discardSuggestion'](_0x3e1e87['head'])),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),_0x19113d=_0x139261['model']['createRangeOn'](_0x3475d1),_0x22ac25['refresh'](),_0x139261['commands']['get']('imageTypeInline')['refresh'](),_0x139261['commands']['get']('imageTypeBlock')['refresh'](),_0x242497=_0x22ac25['value'],_0x242497!=_0x39e208['value'])return _0x54210d['isInlineImage'](_0x3475d1)&&_0x22ac25['shouldConvertImageType'](_0x39e208['value'],_0x3475d1)?(_0x3f5c07({..._0x39e208,'setImageSizes':!0x1}),_0x3475d1=_0x54210d['getClosestSelectedImageElement'](_0x139261['model']['document']['selection']),void _0x2bbe39['markBlockFormat'](_0x3475d1,{..._0x501727,'commandReversedParams':[{'value':_0x242497||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54210d['isBlockImage'](_0x3475d1)?_0x2bbe39['markBlockFormat'](_0x3475d1,_0x501727,[],'imageStylePostApply'):_0x2bbe39['markInlineFormat'](_0x19113d,_0x501727,'imageStylePostApply'));});});for(const _0x42f79e of _0x139261['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x269215[_0x42f79e['name']]=_0x42f79e['title']['toLowerCase']();_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x210094])=>{_0x54210d['setImageNaturalSizeAttributes'](_0x210094['getContainedElement']());}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c9593,_0x5d221a)=>{_0x2bbe39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c9593,{'commandName':_0x5d221a['commandName'],'commandParams':_0x5d221a['commandReversedParams']});}),_0x2bbe39['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x292f03,_0x1eaeef){if(_0x9d3805(_0x292f03,_0x1eaeef))return[_0x292f03,_0x1eaeef];if(_0x9d3805(_0x1eaeef,_0x292f03))return[_0x1eaeef,_0x292f03];return null;});const _0x1dbbb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9d3805(_0x3e1630,_0x4986b1){const _0x485598=_0x1dbbb7['findIndex'](({type:_0x3a9aaa,subType:_0x3ca983})=>_0x3e1630['type']==_0x3a9aaa&&_0x3e1630['subType']==_0x3ca983),_0x2170df=_0x1dbbb7['findIndex'](({type:_0x202766,subType:_0x2b43ed})=>_0x4986b1['type']==_0x202766&&_0x4986b1['subType']==_0x2b43ed);if(_0x485598<0x0||_0x2170df<0x0)return!0x1;const _0x2a93f6=_0x3e1630['getFirstRange'](),_0x24efac=_0x4986b1['getFirstRange']();if((0x0==_0x485598||0x1==_0x485598)&&0x2==_0x2170df&&_0x2a93f6['isIntersecting'](_0x24efac))return!0x0;if(0x2==_0x485598&&0x3==_0x2170df){const _0xb47d8a=_0x2bbe39['_findSuggestions'](_0x2a93f6,'insertion')['filter'](({suggestion:_0x332595,meta:_0x3eff27})=>_0x3eff27['isOwn']&&'convertInlineImageToBlock'==_0x332595['subType']);if(_0xb47d8a['length']>0x1&&_0x24efac['end']['isEqual'](_0x2a93f6['start']))return!0x0;if(0x1==_0xb47d8a['length']&&(_0x2a93f6['start']['isEqual'](_0x24efac['end'])||_0x2a93f6['end']['isEqual'](_0x24efac['start'])))return!0x0;}if(0x3==_0x485598&&0x3==_0x2170df&&_0x2a93f6['start']['isBefore'](_0x24efac['start'])){const _0x1bd917=_0x2a93f6['end']['nodeAfter'],_0x4f114b=_0x24efac['start']['nodeBefore'];return _0x54210d['isBlockImage'](_0x1bd917)&&_0x1bd917===_0x4f114b;}return!0x1;}_0x139261['model']['document']['registerPostFixer'](()=>{let _0x44631c=!0x1;const _0x3004bb=Array['from'](_0x139261['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f7514,data:_0xd60985}of _0x3004bb){const {group:_0x30907d,type:_0x5c356e,subType:_0x96364b,id:_0x52e9dc}=_0x2bbe39['_splitMarkerName'](_0x1f7514);if('suggestion'==_0x30907d&&_0x2bbe39['hasSuggestion'](_0x52e9dc)){if('formatBlock'==_0x5c356e&&('imageStylePreApply'==_0x96364b||'imageStylePostApply'==_0x96364b)){const _0x1d109b=_0x2bbe39['getSuggestion'](_0x52e9dc);if(_0xd60985['newRange']){const _0x2b4caf=_0x1d109b['getFirstRange']()['getContainedElement']();if(_0x54210d['isBlockImage'](_0x2b4caf))continue;_0x2bbe39['discardSuggestion'](_0x1d109b),_0x44631c=!0x0;}}if('insertion'==_0x5c356e&&'imageCaption'==_0x96364b&&!_0xd60985['newRange']){const _0x15d9b6=_0x2bbe39['getSuggestion'](_0x52e9dc);_0x15d9b6['next']&&_0x15d9b6['next']['isInContent']&&(_0x2bbe39['discardSuggestion'](_0x15d9b6['next']),_0x44631c=!0x0);}}}return _0x44631c;}),this['_registerLegacyDescription'](_0x269215);}['_registerLegacyDescription'](_0x3d3517){const _0x37d35d=this['editor'],_0x244914=_0x37d35d['locale'];_0x37d35d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a382=>{if('formatBlock'!=_0x32a382['type']&&'formatInline'!=_0x32a382['type'])return;const {data:_0x572019}=_0x32a382;if(!_0x572019||'imageStyle'!=_0x572019['commandName'])return;const _0x3377ab=_0x572019['commandParams'][0x0]['value'];return _0x2e9c17('side'===_0x3377ab?o(_0x244914,'FORMAT_SIDE_IMAGE'):_0x3d3517[_0x3377ab]||_0x3377ab);function _0x2e9c17(_0x9187aa){return{'type':'format','content':o(_0x244914,'*Format:*\x20%0',_0x9187aa)};}});}}class at extends _0x48688f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a23c7){super(_0x4a23c7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e884f=this['editor'],_0x21ada9=_0x5e884f['commands']['get']('importWord'),_0x4b3afd=_0x5e884f['commands']['get']('trackChanges');_0x21ada9&&(_0x21ada9['on']('execute',(_0xa84b0b,[,_0x252bb3])=>{this['_trackChangesValueDuringImport']=_0x4b3afd['value'],_0x252bb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21ada9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21ada9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b3afd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e884f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5af11e,_0x1d0a1e){const {suggestions:_0x3bdbba}=_0x1d0a1e,_0x22eee6=this['editor']['commands']['get']('trackChanges'),_0x431a42=_0x22eee6['value'];this['_trackChangesValueDuringImport']!==_0x431a42&&(_0x22eee6['execute'](),this['_trackChangesExecuted']=!0x0),_0x3bdbba&&_0x3bdbba['forEach'](({id:_0x1b8b20,type:_0x145e18,author:_0x3ce4f2,created_at:_0xbe621c})=>{const _0x417301={'id':_0x1b8b20,'type':_0x145e18,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ce4f2,'createdAt':_0xbe621c?new Date(_0xbe621c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x417301);});}}class ct extends _0x48688f{['afterInit'](){const _0x3c0637=this['editor'],_0x2d8da7=_0x3c0637['plugins']['get']('TrackChangesEditing');if(_0x3c0637['plugins']['has']('IndentEditing')&&(_0x2d8da7['enableCommand']('indent'),_0x2d8da7['enableCommand']('outdent')),_0x3c0637['plugins']['has']('IndentBlock')){for(const _0x13e6a4 of['indentBlock','outdentBlock'])_0x2d8da7['enableDefaultAttributesIntegration'](_0x13e6a4);}const _0x540636=_0x3c0637['locale'];_0x2d8da7['registerBlockAttribute']('blockIndent'),_0x2d8da7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x540636,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a198c=this['editor'],_0x518f61=_0x2a198c['locale'],_0x182a8b=_0x2a198c['plugins']['get']('TrackChangesEditing');_0x182a8b['descriptionFactory']['registerDescriptionCallback'](_0x191b08=>{if('formatBlock'!=_0x191b08['type'])return;const {data:_0x4ad976}=_0x191b08;if(!_0x4ad976)return;if('indentBlock'!=_0x4ad976['commandName']&&'outdentBlock'!=_0x4ad976['commandName'])return;const _0x38a8eb=_0x191b08['getItems']()[0x0],_0x30b584=_0x182a8b['descriptionFactory']['getItemLabel'](_0x38a8eb);return'indentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Indent:*\x20%0',_0x30b584)}:'outdentBlock'==_0x4ad976['commandName']?{'type':'format','content':o(_0x518f61,'*Outdent:*\x20%0',_0x30b584)}:void 0x0;});}}class ut extends _0x48688f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48688f{['afterInit'](){const _0x2ae116=this['editor'];if(!_0x2ae116['plugins']['has']('LinkEditing'))return;const _0x69f1ea=_0x2ae116['plugins']['get']('TrackChangesEditing'),_0x2a37d6=_0x2ae116['commands']['get']('link');_0x69f1ea['enableDefaultAttributesIntegration']('link'),_0x69f1ea['enableDefaultAttributesIntegration']('unlink'),_0x69f1ea['registerInlineAttribute']('linkHref');for(const _0x5437df of _0x2a37d6['manualDecorators'])_0x69f1ea['registerInlineAttribute'](_0x5437df['id']),_0x69f1ea['descriptionFactory']['registerAttributeLabel'](_0x5437df['id'],'link\x20('+_0x5437df['label']['toLowerCase']()+')');_0x69f1ea['descriptionFactory']['registerDescriptionCallback'](_0x2001df=>{if('attribute'!=_0x2001df['type'])return;const {data:_0x37606b}=_0x2001df;if(!_0x37606b||'linkHref'!=_0x37606b['key'])return;const _0xcf444c=_0x37606b['newValue'],_0x26e6f0=_0x2ae116['locale'];return{'type':'format','content':null==_0xcf444c?o(_0x26e6f0,'*Remove\x20link*'):o(_0x26e6f0,'*Set\x20link:*\x20%0','\x22'+_0xcf444c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b779b=this['editor'],_0x108bca=_0x2b779b['locale'];_0x2b779b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27bee7=>{if('formatInline'!=_0x27bee7['type'])return;const {data:_0x5793c9}=_0x27bee7;if(_0x5793c9){if('link'==_0x5793c9['commandName']){const _0x267a3d=_0x5793c9['commandParams'][0x0];return{'type':'format','content':o(_0x108bca,'*Set\x20link:*\x20%0','\x22'+_0x267a3d+'\x22')};}return'unlink'==_0x5793c9['commandName']?{'type':'format','content':o(_0x108bca,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48688f{['afterInit'](){const _0x58a47b=this['editor'],_0x78bb99=_0x58a47b['locale'];if(!_0x58a47b['plugins']['has']('LegacyListEditing'))return;const _0x41a626=_0x58a47b['plugins']['get']('TrackChangesEditing'),_0x57755d=_0x58a47b['plugins']['has']('LegacyTodoListEditing');function _0x12caf5(_0x5451ea){return()=>{const _0x42b399=_0x58a47b['model']['document']['selection'],_0x364b8b=_0x58a47b['commands']['get'](_0x5451ea);if(_0x364b8b['value'])return void _0x58a47b['execute']('paragraph',{});const _0x2e6da1=_0x5451ea['slice'](0x0,-0x4),_0x1a7235=function(_0xd8d4a9,_0x516311,_0xab8dc5){let _0x308b41=Array['from'](_0xd8d4a9)['filter'](_0x213636=>function(_0x169d7f,_0x1c3356){return _0x1c3356['checkChild'](_0x169d7f['parent'],'listItem')&&!_0x1c3356['isObject'](_0x169d7f);}(_0x213636,_0xab8dc5));_0x308b41=_0x308b41['filter'](_0x4f7676=>!_0x4f7676['is']('element','listItem')||_0x4f7676['getAttribute']('listType')!=_0x516311);const _0x12a051=new Set();for(const _0x47b466 of _0x308b41)_0x47b466['is']('element','listItem')?_0x12a051['add'](fe(_0x47b466)):_0x12a051['add'](_0x47b466);return Array['from'](_0x12a051);}(_0x42b399['getSelectedBlocks'](),_0x2e6da1,_0x58a47b['model']['schema']);_0x58a47b['model']['change'](()=>{for(const _0x503b2e of _0x1a7235)_0x41a626['markBlockFormat'](_0x503b2e,{'commandName':_0x5451ea,'commandParams':[{'forceValue':!_0x364b8b['value']}],'formatGroupId':'blockName'},ue(_0x503b2e));});};}function _0x58df47(_0x43bd9f){return()=>{const _0x2a7ac9=function(_0x865f8e){let _0x159e7f=Array['from'](_0x865f8e);const _0x10ed19=_0x159e7f['findIndex'](_0x106a36=>'listItem'!=_0x106a36['name']);return _0x10ed19>-0x1&&(_0x159e7f=_0x159e7f['slice'](0x0,_0x10ed19)),_0x159e7f;}(_0x58a47b['model']['document']['selection']['getSelectedBlocks']()),_0x29bb50=_0x58a47b['model']['createRange'](_0x58a47b['model']['createPositionAt'](_0x2a7ac9[0x0],'before'),_0x58a47b['model']['createPositionAt'](_0x2a7ac9[_0x2a7ac9['length']-0x1],'end'));_0x58a47b['model']['change'](()=>{_0x41a626['markBlockFormat'](_0x29bb50,{'commandName':_0x43bd9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x254b30){const _0xfd6e3d=new Set();for(const _0x52f83d of _0x254b30){let _0x1832cf=_0x52f83d['nextSibling'];for(;_0x1832cf&&_0x1832cf['getAttribute']('listIndent')>_0x52f83d['getAttribute']('listIndent');)_0xfd6e3d['add'](_0x1832cf),_0x1832cf=_0x1832cf['nextSibling'];}return Array['from'](_0xfd6e3d);}(_0x2a7ac9));});};}_0x41a626['enableCommand']('numberedList',_0x12caf5('numberedList')),_0x41a626['enableCommand']('bulletedList',_0x12caf5('bulletedList')),_0x57755d&&_0x41a626['enableCommand']('todoList',_0x12caf5('todoList')),_0x41a626['enableCommand']('indentList',_0x58df47('indentList')),_0x41a626['enableCommand']('outdentList',_0x58df47('outdentList')),_0x57755d&&_0x41a626['enableCommand']('checkTodoList',()=>{const _0x5a6bc3=_0x58a47b['commands']['get']('checkTodoList'),_0x19a3c2=Array['from'](_0x5a6bc3['_selectedElements']);_0x19a3c2['filter'](_0x16b527=>_0x16b527['getAttribute']('todoListChecked')!=_0x5a6bc3['value']),_0x58a47b['model']['change'](()=>{for(const _0x8dda3d of _0x19a3c2)_0x41a626['markBlockFormat'](_0x8dda3d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5a6bc3['value']}]});});}),_0x41a626['descriptionFactory']['registerElementLabel']('listItem',_0x44934f=>o(_0x78bb99,'ELEMENT_LIST_ITEM',_0x44934f)),_0x41a626['descriptionFactory']['registerDescriptionCallback'](_0x19fac2=>{if('formatBlock'!=_0x19fac2['type']&&'formatInline'!=_0x19fac2['type'])return;const {data:_0x1b2a8c}=_0x19fac2;if(_0x1b2a8c){if('numberedList'==_0x1b2a8c['commandName']||'bulletedList'==_0x1b2a8c['commandName']||'todoList'==_0x1b2a8c['commandName'])switch(_0x1b2a8c['commandName']['replace']('List','')){case'bulleted':return _0x4ef990(o(_0x78bb99,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ef990(o(_0x78bb99,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ef990(o(_0x78bb99,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Indent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b2a8c['commandName'])return{'type':'format','content':o(_0x78bb99,'*Outdent:*\x20%0',o(_0x78bb99,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b2a8c['commandName'])return _0x1b2a8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78bb99,'*Check\x20item*')}:{'type':'format','content':o(_0x78bb99,'*Uncheck\x20item*')};}function _0x4ef990(_0x54b58b){return{'type':'format','content':o(_0x78bb99,'*Change\x20to:*\x20%0',_0x54b58b)};}});}}function fe(_0x4ae6f1){const _0x528334=_0x4ae6f1['getAttribute']('listIndent');if(0x0==_0x528334)return _0x4ae6f1;let _0x253bce=_0x4ae6f1;for(;_0x4ae6f1['previousSibling']&&_0x4ae6f1['previousSibling']['is']('element','listItem');){const _0x4d5100=_0x4ae6f1['previousSibling']['getAttribute']('listIndent');if(_0x4d5100==_0x528334)_0x253bce=_0x4ae6f1['previousSibling'];else{if(_0x4d5100<_0x528334)break;}_0x4ae6f1=_0x4ae6f1['previousSibling'];}return _0x253bce;}function ue(_0x5dea2b){const _0x3fa65b=[];if(_0x5dea2b['is']('element','listItem')&&_0x5dea2b['getAttribute']('listIndent')>0x0){let _0x1d15bf=_0x5dea2b['nextSibling'];for(;_0x1d15bf&&'listItem'==_0x1d15bf['name']&&_0x1d15bf['getAttribute']('listIndent')==_0x5dea2b['getAttribute']('listIndent');)_0x3fa65b['push'](_0x1d15bf),_0x1d15bf=_0x1d15bf['nextSibling'];}return _0x3fa65b;}class W extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e9b6e=this['editor']['config']['get']('list.properties'),_0xf1d3a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e9b6e['styles']&&_0xf1d3a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e9b6e['reversed']&&_0xf1d3a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e9b6e['startIndex']&&_0xf1d3a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf1d3a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x546e5f,_0x57e7c0={}){const _0x37cf45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3528=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x37cf45['markMultiRangeBlockFormat'](_0x4c3528,{'commandName':'listStyle','commandParams':[{'type':_0x57e7c0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b64a1,_0x22cc84={}){const _0xd89488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177086=this['_getSuggestionBlocks'](_0x2fa743=>_0x2fa743['is']('element','listItem')&&'numbered'===_0x2fa743['getAttribute']('listType'));if(_0x177086['length']<0x1)return;const _0x5d98a2=_0x177086['map'](_0x40b4a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40b4a4,'before'),this['editor']['model']['createPositionAt'](_0x40b4a4,0x0)));this['editor']['model']['change'](()=>{_0xd89488['markMultiRangeBlockFormat'](_0x5d98a2,{'commandName':'listReversed','commandParams':[{'reversed':_0x22cc84['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27e03f,_0x401d74={}){const _0x1b41d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3b69=this['_getSuggestionBlocks'](_0x42ac17=>_0x42ac17['is']('element','listItem')&&'numbered'===_0x42ac17['getAttribute']('listType'));if(_0x2a3b69['length']<0x1)return;const _0x5e1296=_0x2a3b69['map'](_0x45ecbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45ecbe,'before'),this['editor']['model']['createPositionAt'](_0x45ecbe,0x0)));this['editor']['model']['change'](()=>{_0x1b41d8['markMultiRangeBlockFormat'](_0x5e1296,{'commandName':'listStart','commandParams':[{'startIndex':_0x401d74['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x7e6d4a){if('formatBlock'!=_0x7e6d4a['type']&&'formatInline'!=_0x7e6d4a['type'])return;const _0x4a3a32=this['editor']['locale'],{data:_0xea1cd2}=_0x7e6d4a;if(!_0xea1cd2)return;let _0x18e110,_0x45b0a5;switch(_0xea1cd2['commandName']){case'listStyle':_0x18e110='*Change\x20to:*\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,o(_0x4a3a32,this['_getTranslationKeyForListStyle'](_0xea1cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18e110=_0xea1cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110)};break;case'listStart':_0x18e110='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45b0a5={'type':'format','content':o(_0x4a3a32,_0x18e110,_0xea1cd2['commandParams'][0x0]['startIndex'])};}return _0x45b0a5;}['_getSuggestionBlocksForListStyle'](){const _0x33094c=this['editor']['plugins']['get']('LegacyListUtils');let _0x431a11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x431a11[0x0]?.['is']('element','listItem')&&_0x431a11['unshift'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x431a11[_0x431a11['length']-0x1]?.['is']('element','listItem')&&_0x431a11['push'](..._0x33094c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x431a11=[...new Set(_0x431a11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x431a11=_0x431a11['filter'](_0x5eface=>_0x5eface['is']('element','listItem'))),_0x431a11;}['_getSuggestionBlocks'](_0x4e0285){const _0x4fceb9=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cc6b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e0285)['map'](_0xb1bf6d=>{const _0x1e7587=this['editor']['model']['createPositionAt'](_0xb1bf6d,0x0);return[..._0x4fceb9['getSiblingNodes'](_0x1e7587,'backward'),..._0x4fceb9['getSiblingNodes'](_0x1e7587,'forward')];})['flat']();return _0x1cc6b4=[...new Set(_0x1cc6b4)],_0x1cc6b4;}['_getTranslationKeyForListStyle'](_0x581719){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x581719)||'default')['toUpperCase']()+'_LIST_'+_0x581719['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48688f{['afterInit'](){const _0x2dcdc7=this['editor'];if(!_0x2dcdc7['plugins']['has']('MediaEmbedEditing'))return;const _0x23225d=_0x2dcdc7['plugins']['get']('TrackChangesEditing'),_0x2df11f=_0x2dcdc7['locale'];_0x23225d['enableCommand']('mediaEmbed'),_0x23225d['descriptionFactory']['registerElementLabel']('media',_0x407319=>o(_0x2df11f,'ELEMENT_MEDIA',_0x407319)),_0x2dcdc7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd29da0,{writer:_0xb30072,options:_0x3c9e29})=>{if(_0x3c9e29['showSuggestionHighlights'])return _0xb30072['createEmptyElement']('div');},'converterPriority':'high'}),_0x2dcdc7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193154,_0x460812,_0x54fe9c)=>{_0x54fe9c['options']['showSuggestionHighlights']&&_0x193154['stop']();},{'priority':'high'});}}class mt extends _0x48688f{['afterInit'](){const _0x2cd0ce=this['editor'];_0x2cd0ce['plugins']['has']('MentionEditing')&&_0x2cd0ce['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48688f{['afterInit'](){const _0x37a9e8=this['editor'];if(!_0x37a9e8['commands']['get']('insertMergeField'))return;_0x37a9e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x28e645=_0x37a9e8['plugins']['get']('TrackChangesEditing'),_0x4a9c96=_0x37a9e8['locale'];_0x28e645['descriptionFactory']['registerElementLabel']('mergeField',_0x452c8e=>o(_0x4a9c96,'ELEMENT_MERGE_FIELD',_0x452c8e)),_0x28e645['descriptionFactory']['registerDescriptionCallback'](_0x295eb9=>{if('insertion'!=_0x295eb9['type']&&'deletion'!=_0x295eb9['type'])return;const _0x310011=_0x295eb9['getContainedElement']();if(null==_0x310011)return;if(!_0x310011['is']('element','mergeField'))return;const _0x403ab9=_0x37a9e8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x310011['getAttribute']('id'));return'insertion'==_0x295eb9['type']?{'type':'insertion','content':o(_0x4a9c96,'*Insert:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a9c96,'*Remove:*\x20%0','\x22'+_0x403ab9+'\x22\x20'+o(_0x4a9c96,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48688f{['afterInit'](){const _0x5abb82=this['editor'],_0x50fe52=_0x5abb82['plugins']['get']('TrackChangesEditing');_0x5abb82['plugins']['has']('MultiLevelList')&&(_0x50fe52['enableDefaultAttributesIntegration']('multiLevelList'),_0x50fe52['registerBlockAttribute']('listMarkerStyle'),_0x50fe52['descriptionFactory']['registerDescriptionCallback'](_0x66d44=>this['handleDescriptions'](_0x66d44)));}['handleDescriptions'](_0x2ba1f5){const _0x5339cd=this['editor']['locale'],{data:_0x3fa58b}=_0x2ba1f5,_0x16ca3c={'type':'format','content':''};if(_0x3fa58b&&'listMarkerStyle'==_0x3fa58b['key']){if(!_0x3fa58b['oldValue'])return{'type':'format','content':o(_0x5339cd,'*Set\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['newValue']+')'};if(!_0x3fa58b['newValue']){let _0x4583b3=_0x2ba1f5['head'];for(;_0x4583b3;){if(_0x4583b3['data']&&'listType'==_0x4583b3['data']['key']&&_0x4583b3['data']['newValue'])return _0x16ca3c;_0x4583b3=_0x4583b3['next'];}return{'type':'format','content':o(_0x5339cd,'*Remove\x20format:*\x20%0',o(_0x5339cd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa58b['oldValue']+')'};}}}}class kt extends _0x48688f{['afterInit'](){const _0x6f173d=this['editor'];if(!_0x6f173d['plugins']['has']('PageBreakEditing'))return;_0x6f173d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4113c8=_0x6f173d['plugins']['get']('TrackChangesEditing'),_0x42c4cf=_0x6f173d['locale'];_0x4113c8['descriptionFactory']['registerElementLabel']('pageBreak',_0x20dcff=>o(_0x42c4cf,'ELEMENT_PAGE_BREAK',_0x20dcff));}}class bt extends _0x48688f{['afterInit'](){const _0x5e3d32=this['editor'];if(!_0x5e3d32['plugins']['has']('Paragraph'))return;const _0x4134e1=_0x5e3d32['locale'],_0x13b9e9=_0x5e3d32['plugins']['get']('TrackChangesEditing');_0x13b9e9['descriptionFactory']['registerElementLabel']('paragraph',_0x3d48dc=>o(_0x4134e1,'ELEMENT_PARAGRAPH',_0x3d48dc)),_0x13b9e9['enableDefaultAttributesIntegration']('paragraph'),_0x13b9e9['enableCommand']('insertParagraph'),_0x5e3d32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e3d32),{'priority':'highest'}),_0x5e3d32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4abfea,_0x3cd4a0,_0x21695c)=>{_0x21695c['options']['showSuggestionHighlights']&&nr(_0x5e3d32,{'showActiveMarker':!0x1})(_0x4abfea,_0x3cd4a0,_0x21695c);},{'priority':'highest'});const _0x375362=_0x13b9e9['descriptionFactory'];_0x375362['registerDescriptionCallback'](_0x312b9f=>{if('insertion'!==_0x312b9f['type'])return;const {start:_0xa351,end:_0x5227a3}=_0x312b9f['getFirstRange']();if(!_0xa351['isTouching'](_0x5227a3)||!_0xa351['nodeAfter'])return;const _0x29fc5c=_0x5e3d32['model']['schema'],_0x1c8775=_0xa351['nodeAfter'];return _0x29fc5c['isBlock'](_0x1c8775)&&!_0x29fc5c['isLimit'](_0x1c8775)&&_0x29fc5c['checkChild'](_0x1c8775,'$text')?{'type':'insertion','content':o(_0x4134e1,'*Insert:*\x20%0',_0x375362['getItemLabel'](_0x1c8775,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4987=this['editor'],_0x158d06=_0x5c4987['locale'];_0x5c4987['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7f0d=>{if('formatBlock'!=_0x1d7f0d['type'])return;const {data:_0x24a050}=_0x1d7f0d;return _0x24a050&&'paragraph'==_0x24a050['commandName']?{'type':'format','content':o(_0x158d06,'*Change\x20to:*\x20%0',o(_0x158d06,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a059c,{showActiveMarker:_0x237f0b=!0x0}={}){return(_0x1c8212,_0x31e2fd,_0x554d77)=>{const _0x4e4b0a=_0x7a059c['plugins']['get']('TrackChangesEditing'),_0x1bd20b=_0x31e2fd['markerRange']['start'],_0x5e3e42=_0x31e2fd['markerRange']['end'],_0x560870=_0x7a059c['model']['schema'];if(!_0x1bd20b['isTouching'](_0x5e3e42)||!_0x1bd20b['nodeAfter'])return;const _0x23cda9=_0x1bd20b['nodeAfter'];if(_0x560870['isBlock'](_0x23cda9)&&!_0x560870['isLimit'](_0x23cda9)&&_0x560870['checkChild'](_0x23cda9,'$text')){if(!_0x554d77['consumable']['consume'](_0x31e2fd['markerRange'],_0x1c8212['name']))return;const {authorId:_0x28fdca}=_0x4e4b0a['_splitMarkerName'](_0x31e2fd['markerName']),_0x106066=_0x554d77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x28fdca}),_0x5e2e6f=_0x554d77['mapper']['toViewPosition'](_0x5e3e42);_0x237f0b&&_0x4e4b0a['activeMarkers']['includes'](_0x31e2fd['markerName'])&&_0x554d77['writer']['addClass']('ck-suggestion-marker--active',_0x106066),_0x554d77['writer']['insert'](_0x5e2e6f,_0x106066),_0x554d77['mapper']['bindElementToMarker'](_0x106066,_0x31e2fd['markerName']);}};}class wt extends _0x48688f{['afterInit'](){const _0x56e46c=this['editor'];if(!_0x56e46c['plugins']['has']('RemoveFormatEditing'))return;_0x56e46c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5698bb=this['editor'];_0x5698bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d75ba=>{if('formatBlock'!=_0x4d75ba['type']&&'formatInline'!=_0x4d75ba['type'])return;const {data:_0x117853}=_0x4d75ba;return _0x117853&&'removeFormat'==_0x117853['commandName']?{'type':'format','content':o(_0x5698bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48688f{['afterInit'](){const _0x2597e8=this['editor'];if(!_0x2597e8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43dfbf=_0x2597e8['plugins']['get']('TrackChangesEditing');_0x43dfbf['enableCommand']('goToPreviousRestrictedEditingException'),_0x43dfbf['enableCommand']('goToNextRestrictedEditingException');const _0x4e422d=_0x2597e8['plugins']['get']('RestrictedEditingModeEditing');_0x4e422d['enableCommand']('trackChanges'),_0x4e422d['enableCommand']('acceptSuggestion'),_0x4e422d['enableCommand']('discardSuggestion'),_0x4e422d['enableCommand']('acceptAllSuggestions'),_0x4e422d['enableCommand']('discardAllSuggestions'),_0x4e422d['enableCommand']('acceptSelectedSuggestions'),_0x4e422d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48688f{static get['requires'](){return[_0x4b33e1];}['init'](){const _0x526426=this['editor'],_0x4f52d2=_0x526426['plugins']['get']('TrackChangesEditing');_0x4f52d2['enableCommand']('shiftEnter'),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x526426),{'priority':'high'}),_0x526426['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x526426),{'priority':'high'}),_0x526426['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d03d6,_0x57fecc,_0x325c98)=>{_0x325c98['options']['showSuggestionHighlights']&&ge(_0x526426,{'showActiveMarker':!0x1})(_0x2d03d6,_0x57fecc,_0x325c98);}),_0x4f52d2['descriptionFactory']['registerElementLabel']('softBreak',_0x557eae=>o(_0x526426['locale'],'ELEMENT_LINE_BREAK',_0x557eae));}}function ge(_0x3611fc,{showActiveMarker:_0x3bdf8b=!0x0}={}){return(_0x54c18e,_0x17635e,_0x23b4f9)=>{const _0x8eeee9=_0x3611fc['plugins']['get']('TrackChangesEditing');if(!_0x23b4f9['consumable']['test'](_0x17635e['markerRange'],_0x54c18e['name']))return;const _0x2b42ca=_0x3611fc['model'];for(const _0x74aabc of _0x17635e['markerRange']['getItems']()){if(!_0x74aabc['is']('element','softBreak'))continue;const _0x13fe8f='deletion'==_0x17635e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x459fd5}=_0x8eeee9['_splitMarkerName'](_0x17635e['markerName']),_0x1a48d9=_0x23b4f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13fe8f,'data-author-id':_0x459fd5}),_0x2764bd=_0x23b4f9['mapper']['toViewPosition'](_0x2b42ca['createPositionBefore'](_0x74aabc));_0x3bdf8b&&_0x8eeee9['activeMarkers']['includes'](_0x17635e['markerName'])&&_0x23b4f9['writer']['addClass']('ck-suggestion-marker--active',_0x1a48d9),_0x23b4f9['writer']['insert'](_0x2764bd,_0x1a48d9),_0x23b4f9['mapper']['bindElementToMarker'](_0x1a48d9,_0x17635e['markerName']);}};}class St extends _0x48688f{['afterInit'](){const _0x173b7d=this['editor'],_0x337437=_0x173b7d['model'],_0x444047=_0x173b7d['locale'];if(!_0x173b7d['plugins']['has']('StandardEditingModeEditing'))return;const _0x197111=_0x173b7d['plugins']['get']('TrackChangesEditing'),_0x57919a='restrictedEditingException',_0x4338c7=_0x173b7d['commands']['get'](_0x57919a);_0x197111['enableCommand'](_0x57919a,(_0x3d8650,_0x54a471={})=>{const _0x5ab58b=_0x337437['document']['selection'];if(_0x5ab58b['isCollapsed'])return void _0x3d8650(_0x54a471);const _0x120c46=void 0x0!==_0x54a471['forceValue']?_0x54a471['forceValue']:!_0x4338c7['value'];_0x337437['change'](()=>{const _0x1ecc32=Array['from'](_0x5ab58b['getRanges']());for(const _0x3ad4bd of _0x1ecc32){const _0x479240=_0x120c46?[_0x3ad4bd]:io(_0x57919a,_0x3ad4bd,_0x337437);for(const _0x599467 of _0x479240)_0x197111['markInlineFormat'](_0x599467,{'commandName':_0x57919a,'commandParams':[{'forceValue':_0x120c46}]});}});}),_0x197111['descriptionFactory']['registerDescriptionCallback'](_0x55609b=>{if('formatBlock'!=_0x55609b['type']&&'formatInline'!=_0x55609b['type'])return;const {data:_0x257dd7}=_0x55609b;return _0x257dd7&&_0x257dd7['commandName']==_0x57919a?_0x257dd7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x444047,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48688f{['afterInit'](){const _0x50aafc=this['editor'];if(!_0x50aafc['plugins']['has']('Style')||!_0x50aafc['plugins']['has']('DataSchema'))return;const _0x5d0012=_0x50aafc['plugins']['get']('TrackChangesEditing'),_0x4e1c9=_0x50aafc['locale'],_0x2c0ee9=_0x50aafc['config']['get']('style')||{},_0x135714=_0x50aafc['plugins']['get']('GeneralHtmlSupport'),_0x4a7985=_0x50aafc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50aafc['plugins']['get']('DataSchema'),_0x2c0ee9['definitions']);_0x5d0012['enableDefaultAttributesIntegration']('style');const _0x52099b=new Set();for(const _0x12955f of _0x4a7985['block']){const _0x55c114=_0x135714['getGhsAttributeNameForElement'](_0x12955f['element']);_0x52099b['add'](_0x55c114);}const _0x31260f=new Set();for(const _0x208dbf of _0x4a7985['inline']){const _0xb44095=_0x135714['getGhsAttributeNameForElement'](_0x208dbf['element']);_0x31260f['add'](_0xb44095);for(const _0x5da631 of _0x208dbf['ghsAttributes'])_0x31260f['add'](_0x5da631);}for(const _0x500c78 of _0x52099b)_0x5d0012['registerBlockAttribute'](_0x500c78),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x500c78,o(_0x4e1c9,'FORMAT_STYLE'));for(const _0x4968bc of _0x31260f)_0x5d0012['registerInlineAttribute'](_0x4968bc),_0x5d0012['descriptionFactory']['registerAttributeLabel'](_0x4968bc,o(_0x4e1c9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550283=this['editor'],_0x3cc21a=_0x550283['locale'];_0x550283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ddc0f=>{if('formatBlock'!=_0x1ddc0f['type']&&'formatInline'!=_0x1ddc0f['type'])return;const {data:_0x3955c5}=_0x1ddc0f;return _0x3955c5&&'style'===_0x3955c5['commandName']?_0x3955c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cc21a,'*Set\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3cc21a,'*Remove\x20format:*\x20%0',_0x3955c5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48688f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbf4a2a){super(_0xbf4a2a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ddbdc=this['editor'],_0x3f03bd=_0x3ddbdc['model']['document']['selection'];if(!_0x3ddbdc['plugins']['has']('TableEditing'))return;const _0x3a0e71=_0x3ddbdc['locale'],_0x513ee2=_0x3ddbdc['plugins']['get']('TrackChangesEditing'),_0x3eda63=_0x3ddbdc['plugins']['get']('TableUtils');_0x513ee2['descriptionFactory']['registerElementLabel']('table',_0x4fd837=>o(_0x3a0e71,'ELEMENT_TABLE',_0x4fd837)),this['_setupColumnsRowsFixing'](),_0x513ee2['enableCommand']('insertTable'),_0x513ee2['enableCommand']('selectTableRow'),_0x513ee2['enableCommand']('selectTableColumn');for(const _0x3be0e5 of['insertTableRowAbove','insertTableRowBelow']){const _0x45c592=_0x3ddbdc['commands']['get'](_0x3be0e5);_0x513ee2['enableCommand'](_0x3be0e5,_0x1c08f2=>{_0x3ddbdc['model']['change'](_0x4a4fe5=>{_0x1c08f2();const _0x294de2='above'===_0x45c592['order'],_0x3b3a1a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x5b05a0=_0x3eda63['getRowIndexes'](_0x3b3a1a),_0x7859ee=_0x294de2?_0x5b05a0['first']-0x1:_0x5b05a0['last']+0x1,_0x2f050b=_0x3b3a1a[0x0]['findAncestor']('table'),_0x5c3d65=_0x3eda63['createTableWalker'](_0x2f050b,{'startRow':_0x7859ee,'endRow':_0x7859ee}),_0x3a2766=Array['from'](_0x5c3d65)['map'](_0x391a32=>_0x4a4fe5['createRangeOn'](_0x391a32['cell']));_0x513ee2['markMultiRangeInsertion'](_0x3a2766,'tableRow');});});}for(const _0x1c8d18 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b7601=_0x3ddbdc['commands']['get'](_0x1c8d18);_0x513ee2['enableCommand'](_0x1c8d18,_0x3c7589=>{_0x3ddbdc['model']['change'](_0x2e36a9=>{_0x3c7589();const _0x3f31b7='left'===_0x4b7601['order'],_0x57448a=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x1e1cdf=_0x3eda63['getColumnIndexes'](_0x57448a),_0x40e9f6=_0x3f31b7?_0x1e1cdf['first']-0x1:_0x1e1cdf['last']+0x1,_0x3c1f3f=_0x57448a[0x0]['findAncestor']('table'),_0x58887e=_0x3eda63['createTableWalker'](_0x3c1f3f,{'startRow':0x0,'column':_0x40e9f6,'includeAllSlots':!0x1}),_0x39c5f2=Array['from'](_0x58887e)['map'](_0x2e0d68=>_0x2e36a9['createRangeOn'](_0x2e0d68['cell']));_0x513ee2['markMultiRangeInsertion'](_0x39c5f2,'tableColumn');});});}for(const _0x1030d4 of['removeTableRow','removeTableColumn']){const _0x4605f9=_0x1030d4['substr'](0xb),_0x27c5f1=_0x4605f9['toLowerCase'](),_0x1c1c8=_0x27c5f1['substr'](0x0,0x3)+'span',_0x4d4c50='table'+_0x4605f9,_0x37d01c='min'+_0x4605f9,_0x3aa1c5='max'+_0x4605f9;_0x513ee2['enableCommand'](_0x1030d4,()=>{_0x3ddbdc['model']['change'](_0x16f8b3=>{const _0x64dcc2=_0x3eda63['getSelectionAffectedTableCells'](_0x3f03bd),_0x3cb8f4=_0x64dcc2[0x0]['findAncestor']('table');let _0x707050;if('removeTableRow'==_0x1030d4){const _0x73662=_0x3eda63['getRowIndexes'](_0x64dcc2);_0x707050={'startRow':_0x73662['first'],'endRow':_0x73662['last'],'includeAllSlots':!0x0};}else{const _0x10a8cc=_0x3eda63['getColumnIndexes'](_0x64dcc2);_0x707050={'startColumn':_0x10a8cc['first'],'endColumn':_0x10a8cc['last'],'includeAllSlots':!0x0};}const _0x537844=_0x3eda63['createTableWalker'](_0x3cb8f4,_0x707050),_0x2f348c=Array['from'](_0x537844)['map'](({cell:_0x160524})=>_0x160524),_0x4055f1=be(_0x2f348c['filter'](_0x15aa95=>_0x15aa95['hasAttribute'](_0x1c1c8))),_0x25f2b0=be(_0x2f348c['filter'](_0x6da0f0=>!_0x6da0f0['hasAttribute'](_0x1c1c8)))['map'](_0x19b448=>_0x16f8b3['createRangeOn'](_0x19b448)),_0x5145f7=_0x513ee2['markMultiRangeDeletion'](_0x25f2b0,_0x4d4c50);if(_0x5145f7&&('tableRow'==_0x5145f7['subType']||'tableColumn'==_0x5145f7['subType'])){const _0x278c02=this['_getSuggestionCoords'](_0x5145f7);for(const _0x72e080 of _0x4055f1){const _0x1928af=_0x16f8b3['createRangeOn'](_0x72e080),_0xb40c5c=_0x3eda63['getCellLocation'](_0x72e080),_0x1f6e60=_0x72e080['getAttribute'](_0x1c1c8)-0x1,_0x453916=_0x278c02[_0x37d01c],_0x403683=_0x278c02[_0x3aa1c5];_0x453916<=_0xb40c5c[_0x27c5f1]&&_0xb40c5c[_0x27c5f1]+_0x1f6e60<=_0x403683&&_0x5145f7['addRange'](_0x1928af);}}});});}function _0x151942(_0x682382){const _0x143b2c=Array['from'](_0x3f03bd['getRanges']())['map'](_0x598bd5=>_0x411321['fromRange'](_0x598bd5));_0x3ddbdc['model']['change'](_0x3612f8=>{const _0x5aef33=_0x3612f8['batch'];_0x682382=_0x682382['filter'](_0x30723a=>'$graveyard'!=_0x30723a['root']['rootName']),_0x3612f8['setSelection'](_0x682382),_0x3ddbdc['commands']['get']('removeTableRow')['refresh'](),_0x3ddbdc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ddbdc['model']['enqueueChange'](()=>{_0x3ddbdc['model']['enqueueChange'](_0x5aef33,_0x24f926=>{const _0x4c6eb4=_0x143b2c['filter'](_0x46b249=>'$graveyard'!=_0x46b249['root']['rootName']);_0x4c6eb4['length']>0x0&&_0x24f926['setSelection'](_0x4c6eb4);for(const _0x2d88f4 of _0x143b2c)_0x2d88f4['detach']();});});});}function _0x1b0482(_0x5b9fb4){_0x3ddbdc['model']['change'](_0x2c75ec=>{const _0x3dc6c9=Array['from'](_0x3f03bd['getRanges']())['map'](_0x2d7f3d=>_0x411321['fromRange'](_0x2d7f3d)),_0x2b36e=[];for(const _0x46cf53 of _0x5b9fb4)for(const _0x1c65cd of _0x46cf53['getItems']({'shallow':!0x0}))_0x2b36e['push'](_0x1c65cd);for(const _0x3700c9 of _0x2b36e)'$graveyard'!=_0x3700c9['root']['rootName']&&(_0x2c75ec['setSelection'](_0x2c75ec['createPositionAt'](_0x3700c9,0x0)),_0x3ddbdc['commands']['get']('removeTableColumn')['refresh'](),_0x3ddbdc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23c305=_0x3dc6c9['filter'](_0x490af6=>'$graveyard'!=_0x490af6['root']['rootName']);_0x23c305['length']>0x0&&_0x2c75ec['setSelection'](_0x23c305);for(const _0x583974 of _0x3dc6c9)_0x583974['detach']();});}function _0x478e36(_0x3f10fe,_0x4bca52){return _0x4bca52['every'](_0x2ae5a4=>_0x3f10fe['some'](_0x36c273=>_0x36c273['end']['isEqual'](_0x2ae5a4['start'])||_0x2ae5a4['end']['isEqual'](_0x36c273['start'])));}function _0x54694e(_0x2d6bc2,_0x234f78){return!_0x2d6bc2['some'](_0x4cc5a8=>_0x234f78['some'](_0x187ade=>_0x4cc5a8['isIntersecting'](_0x187ade)))&&_0x2d6bc2['some'](_0x1363f6=>_0x234f78['some'](_0x49359c=>_0x1363f6['end']['isTouching'](_0x49359c['start'])));}_0x3ddbdc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc7ef30,_0x255451,_0x42d5ca)=>{if(!_0x42d5ca['options']['showSuggestionHighlights'])return;const _0x51b663=_0x255451['item'];if(!_0x51b663)return;const _0x8063b5=_0x42d5ca['mapper']['toViewElement'](_0x51b663);function _0x4ac915(_0x34e2aa){return Array['isArray'](_0x34e2aa)?_0x34e2aa:[_0x34e2aa];}_0x8063b5&&'tableCell'===_0x51b663['name']&&_0x19f4da(_0x8063b5,_0x42d5ca['writer'],(_0x2fcf95,_0x16f829,_0x53146c)=>_0x53146c['addClass'](_0x4ac915(_0x16f829['classes']),_0x2fcf95),(_0x469d18,_0x528719,_0x20d10b)=>_0x20d10b['removeClass'](_0x4ac915(_0x528719['classes']),_0x469d18));},{'priority':'highest'}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x3df44e=>{if('insertion'!=_0x3df44e['type']&&'deletion'!=_0x3df44e['type'])return;const _0xe63e52=_0x3df44e['getContainedElement']();if(null!=_0xe63e52&&_0xe63e52['is']('element','table')){if('insertion'==_0x3df44e['type']){const _0x31be29=_0x3df44e['getItems']()['filter'](_0x338b88=>_0x338b88['is']('$textProxy'))['map'](_0x95bbd2=>_0x95bbd2['data']);if(_0x31be29['length'])return{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31be29['join']('\x20')+'\x22'))};}if('deletion'==_0x3df44e['type']){const _0x5046f6=_0x3df44e['getItems']()['filter'](_0x38694d=>_0x38694d['is']('$textProxy'))['map'](_0x429387=>_0x429387['data']);if(_0x5046f6['length'])return{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5046f6['join']('\x20')+'\x22'))};}}}),_0x513ee2['descriptionFactory']['registerDescriptionCallback'](_0x303ac7=>{if('tableRow'==_0x303ac7['subType']){const _0x421814=_0x303ac7['getItems']()['filter'](_0x48078c=>_0x48078c['is']('$textProxy'))['map'](_0x2fee6b=>_0x2fee6b['data']),_0x2635af=this['_getSuggestionCoords'](_0x303ac7),_0x14a0dc=_0x2635af['maxRow']-_0x2635af['minRow']+0x1;if('insertion'==_0x303ac7['type'])return _0x421814['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};if('deletion'==_0x303ac7['type'])return _0x421814['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14a0dc,'\x22'+_0x421814['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_ROW',_0x14a0dc))};}if('tableColumn'==_0x303ac7['subType']){const _0x490b75=_0x303ac7['getItems']()['filter'](_0x2d0ee6=>_0x2d0ee6['is']('$textProxy'))['map'](_0x1e8aee=>_0x1e8aee['data']),_0x231746=this['_getSuggestionCoords'](_0x303ac7),_0x1ae456=_0x231746['maxColumn']-_0x231746['minColumn']+0x1;if('insertion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a0e71,'*Insert:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};if('deletion'==_0x303ac7['type'])return _0x490b75['length']?{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ae456,'\x22'+_0x490b75['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a0e71,'*Remove:*\x20%0',o(_0x3a0e71,'ELEMENT_TABLE_COLUMN',_0x1ae456))};}}),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x151942),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b0482),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x478e36),_0x513ee2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54694e),_0x513ee2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54694e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x155e4c=this['editor'],_0x19a889=_0x155e4c['model']['document']['selection'];return(_0x738110,_0x2fbe9c)=>{_0x155e4c['model']['change'](_0x2cd420=>{const {commandName:_0x4627e3,commandParams:_0x49b7bb}=_0x2fbe9c;let _0x5caa18=_0x738110[0x0]['end']['nodeBefore'];_0x49b7bb&&_0x49b7bb[0x0]&&!0x1===_0x49b7bb[0x0]['forceValue']&&(_0x5caa18=_0x738110[0x0]['start']['nodeAfter']);const _0x5a9153=_0x2cd420['createRangeIn'](_0x5caa18);if('$graveyard'==_0x5a9153['root']['rootName'])return;const _0x1ac75e=Array['from'](_0x19a889['getRanges']())['map'](_0x4f269e=>_0x411321['fromRange'](_0x4f269e));_0x2cd420['setSelection'](_0x5a9153),_0x155e4c['commands']['get'](_0x4627e3)['refresh'](),_0x49b7bb['push']({'forceDefaultExecution':!0x0}),_0x155e4c['execute'](_0x4627e3,..._0x49b7bb);const _0x20c495=_0x1ac75e['filter'](_0x4b07d2=>'$graveyard'!=_0x4b07d2['root']['rootName']);_0x20c495['length']>0x0&&_0x2cd420['setSelection'](_0x20c495);for(const _0x15c8c1 of _0x1ac75e)_0x15c8c1['detach']();});};}['_getCoordsForCells'](_0xf0b943){const _0xeb33d7=this['editor']['plugins']['get']('TableUtils');let _0x2773a2=Number['MAX_SAFE_INTEGER'],_0x194755=Number['MIN_SAFE_INTEGER'],_0x26c3ca=Number['MAX_SAFE_INTEGER'],_0x505783=Number['MIN_SAFE_INTEGER'];for(const _0x3af23c of _0xf0b943){if('$graveyard'==_0x3af23c['root']['rootName'])continue;const {row:_0x5e16a8,column:_0x29123e}=_0xeb33d7['getCellLocation'](_0x3af23c),_0x5eb6fe=_0x3af23c['hasAttribute']('rowspan')?_0x3af23c['getAttribute']('rowspan')-0x1:0x0,_0x3e349f=_0x3af23c['hasAttribute']('colspan')?_0x3af23c['getAttribute']('colspan')-0x1:0x0;_0x2773a2=_0x5e16a8<_0x2773a2?_0x5e16a8:_0x2773a2,_0x194755=_0x5e16a8+_0x5eb6fe>_0x194755?_0x5e16a8+_0x5eb6fe:_0x194755,_0x26c3ca=_0x29123e<_0x26c3ca?_0x29123e:_0x26c3ca,_0x505783=_0x29123e+_0x3e349f>_0x505783?_0x29123e+_0x3e349f:_0x505783;}return{'minRow':_0x2773a2,'maxRow':_0x194755,'minColumn':_0x26c3ca,'maxColumn':_0x505783};}['_setupColumnsRowsFixing'](){const _0x373bf2=this['editor'],_0x36d6d8=_0x373bf2['plugins']['get']('TrackChangesEditing'),_0xd104ae=_0x373bf2['plugins']['get']('TableUtils');_0x373bf2['model']['document']['on']('change:data',()=>{const _0x12c8a9=Array['from'](_0x373bf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26a5f5,data:_0x2e39b3}of _0x12c8a9){const {group:_0x170411,id:_0x13113f,subType:_0x38336f}=_0x36d6d8['_splitMarkerName'](_0x26a5f5);if('suggestion'!=_0x170411)continue;if(null!=_0x2e39b3['oldRange'])continue;const _0x4bf27c=_0x36d6d8['getSuggestion'](_0x13113f);this['_tablePostFixingSubtypes']['includes'](_0x38336f)&&this['_tableSuggestions']['add'](_0x4bf27c);}},{'priority':'low'});const _0x2a52e9=(_0xb1a85d,_0x53a319)=>{let _0x466c63=!0x1;const _0x8f13e2=_0x53a319['createRangeOn'](_0xb1a85d),_0x140392=_0xb1a85d['findAncestor']('table'),_0x10458d=_0xd104ae['getCellLocation'](_0xb1a85d);for(const _0x5c7dae of this['_tableSuggestions']){const _0x426802=_0x5c7dae['subType'],_0x5814ca=_0x426802['startsWith']('tablePaste'),_0x3d0740=_0x426802['substr'](_0x5814ca?0xa:0x5),_0x2a188e=_0x3d0740['toLowerCase'](),_0x5d1d8e=_0x2a188e['substr'](0x0,0x3)+'span',_0x4e9e5c='min'+_0x3d0740,_0x1ede10='max'+_0x3d0740;if(!_0x5c7dae['isInContent'])continue;if(_0x140392!=_0x5c7dae['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c7dae['isIntersectingWithRange'](_0x8f13e2))continue;const _0x363d92=_0xb1a85d['hasAttribute'](_0x5d1d8e)?_0xb1a85d['getAttribute'](_0x5d1d8e)-0x1:0x0,_0x351154=this['_getSuggestionCoords'](_0x5c7dae),_0x3a1b73=_0x351154[_0x4e9e5c],_0x3e2963=_0x351154[_0x1ede10];_0x3a1b73<=_0x10458d[_0x2a188e]&&_0x10458d[_0x2a188e]+_0x363d92<=_0x3e2963&&(_0x5c7dae['addRange'](_0x8f13e2),_0x466c63=!0x0);}return _0x466c63;};_0x373bf2['model']['document']['registerPostFixer'](_0x540d46=>{let _0x2fcc64=!0x1;for(const _0x3c5d40 of _0x373bf2['model']['document']['differ']['getChanges']())if('insert'==_0x3c5d40['type']){if('tableRow'==_0x3c5d40['name']){for(const _0x5d3f51 of _0x3c5d40['position']['nodeAfter']['getChildren']())_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x5d3f51,_0x540d46);}else'tableCell'==_0x3c5d40['name']&&(_0x2fcc64=_0x2fcc64||_0x2a52e9(_0x3c5d40['position']['nodeAfter'],_0x540d46));}return _0x2fcc64;});}['_getSuggestionCoords'](_0x453e8f){return this['_getCoordsForCells'](_0x453e8f['getRanges']()['map'](_0x15a410=>_0x15a410['start']['nodeAfter']));}}function be(_0x476029){return Array['from'](new Set(_0x476029)['values']());}class vt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xbe170b=this['editor'],_0x533a91=_0xbe170b['model']['document']['selection'],_0x197db9=_0xbe170b['locale'];if(!_0xbe170b['plugins']['has']('TableEditing'))return;const _0x5ebe95=_0xbe170b['plugins']['get']('TrackChangesEditing'),_0x38eaba=_0xbe170b['plugins']['get']('TableUtils'),_0x80eb61=_0xbe170b['plugins']['get'](It);_0x80eb61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ebe95['enableCommand']('mergeTableCells',()=>{const _0x433464=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection']);_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat'](_0x433464,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xbe170b['commands']['get']('mergeTableCells')['on']('execute',(_0x3de166,_0x5ae2be)=>{_0xbe170b['commands']['get']('trackChanges')['value']&&(_0x5ae2be['length']>0x0&&_0x5ae2be[_0x5ae2be['length']-0x1]&&_0x5ae2be[_0x5ae2be['length']-0x1]['forceDefaultExecution']||_0x5ebe95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de166['stop']());},{'priority':'highest'});for(const _0x210317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b7680=_0xbe170b['commands']['get'](_0x210317);_0x5ebe95['enableCommand'](_0x210317,()=>{const _0x40ef52=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18b7e1=>_0x18b7e1['is']('element','tableCell')),_0x435604=_0x2b7680['value'];_0xbe170b['model']['change'](()=>{_0x5ebe95['markMultiRangeBlockFormat']([_0x40ef52,_0x435604],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168cda of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4caaf0=_0xbe170b['commands']['get'](_0x168cda);_0x5ebe95['enableCommand'](_0x168cda,()=>{const _0x509d3b=_0x38eaba['getSelectionAffectedTableCells'](_0xbe170b['model']['document']['selection'])[0x0],_0x14c0f0=_0x509d3b['findAncestor']('table'),{column:_0x1ba94e,row:_0x4c313f}=_0x38eaba['getCellLocation'](_0x509d3b);let _0x38f810=[];if('horizontally'==_0x4caaf0['direction']){const _0x10fc8e=_0x38eaba['createTableWalker'](_0x14c0f0,{'startRow':_0x4c313f,'endRow':_0x4c313f,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x10fc8e)['map'](_0x4f3b5d=>_0x4f3b5d['cell']);}else{const _0x8f5a92=_0x38eaba['createTableWalker'](_0x14c0f0,{'column':_0x1ba94e,'includeAllSlots':!0x0});_0x38f810=Array['from'](_0x8f5a92)['map'](_0xba34ee=>_0xba34ee['cell']);}_0xbe170b['model']['change'](_0xefb207=>{_0x5ebe95['markBlockFormat'](_0xefb207['createRangeOn'](_0x509d3b),{'commandName':_0x168cda,'commandParams':[]},_0x38f810,_0x168cda);});});}_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x397c42=>{if('formatBlock'!=_0x397c42['type']&&'formatInline'!=_0x397c42['type'])return;const {data:_0x2f7f40}=_0x397c42;return _0x2f7f40&&'mergeTableCells'==_0x2f7f40['commandName']?{'type':'format','content':o(_0x197db9,'*Merge\x20cells*')}:void 0x0;}),_0x5ebe95['descriptionFactory']['registerDescriptionCallback'](_0x3d6b36=>{if('formatBlock'!=_0x3d6b36['type']&&'formatInline'!=_0x3d6b36['type'])return;const {data:_0x483be9}=_0x3d6b36;return _0x483be9?'splitTableCellVertically'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x483be9['commandName']?{'type':'format','content':o(_0x197db9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x243dc2=_0x80eb61['_acceptFormatSuggestionCallbackFactory']();for(const _0x215db4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x215db4,'accept',_0x243dc2);for(const _0x4bd163 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bd163,'accept',_0x243dc2);_0x5ebe95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x360158=>{_0xbe170b['model']['change'](_0xb0e3ce=>{const _0x2b52dc=Array['from'](_0x533a91['getRanges']())['map'](_0x472c3c=>_0x411321['fromRange'](_0x472c3c));_0xb0e3ce['setSelection'](_0x360158),_0xbe170b['commands']['get']('mergeTableCells')['refresh'](),_0xbe170b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549d40=_0x2b52dc['filter'](_0x2b23aa=>'$graveyard'!=_0x2b23aa['root']['rootName']);_0x549d40['length']>0x0&&_0xb0e3ce['setSelection'](_0x549d40);for(const _0x25e711 of _0x2b52dc)_0x25e711['detach']();});});for(const _0xd03df0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54eafd=_0xbe170b['commands']['get'](_0xd03df0);_0x54eafd['on']('set:isEnabled',(_0x25e154,_0x2a4713,_0x579cd8)=>{if(_0x579cd8){const _0x2165ec=_0xbe170b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f042a=>_0x4f042a['is']('element','tableCell'));this['_areMergableCells'](_0x54eafd['value'],_0x2165ec)||(_0x25e154['return']=!0x1,_0x25e154['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x547df7=this['editor']['commands']['get']('mergeTableCells'),_0x2cdd87=this['editor']['plugins']['get']('TableUtils');if(!_0x547df7['isEnabled'])return!0x1;const _0x594e36=_0x2cdd87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x239ccc of _0x594e36)for(const _0x5b758f of _0x594e36)if(_0x239ccc!=_0x5b758f&&!this['_areMergableCells'](_0x239ccc,_0x5b758f))return!0x1;return!0x0;}['_areMergableCells'](_0x31694f,_0x3c6f59){const _0x42d6b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f391a=this['editor']['model']['createRangeOn'](_0x31694f),_0x22355a=this['editor']['model']['createRangeOn'](_0x3c6f59),_0x3d4a0a=new Set(),_0x55821c=new Set();for(const _0x11cfdc of _0x42d6b0['getSuggestions']())if(('insertion'==_0x11cfdc['type']||'deletion'==_0x11cfdc['type']||'mergeTableCells'==_0x11cfdc['subType'])&&_0x11cfdc['isInContent']){for(const _0x1f505c of _0x11cfdc['getRanges']())_0x1f505c['containsRange'](_0x2f391a,!0x0)&&_0x3d4a0a['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']),_0x1f505c['containsRange'](_0x22355a,!0x0)&&_0x55821c['add'](_0x11cfdc['type']+':'+_0x11cfdc['author']['id']);}if(_0x3d4a0a['size']!=_0x55821c['size'])return!0x1;for(const _0x3b0a57 of _0x3d4a0a)if(!_0x55821c['has'](_0x3b0a57))return!0x1;return!0x0;}}class Ct extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x11b289=this['editor'];if(!_0x11b289['plugins']['has']('TableEditing'))return;const _0x985bad=_0x11b289['locale'],_0x443384=_0x11b289['plugins']['get']('TrackChangesEditing');_0x443384['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x443384['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x443384['registerBlockAttribute']('headingRows'),_0x443384['registerBlockAttribute']('headingColumns'),_0x443384['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x985bad,'FORMAT_HEADER_ROW')),_0x443384['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x985bad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x151c53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f58f2=this['editor']['plugins']['get']('TableUtils'),_0x271251=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x97bd66({showActiveMarker:_0x33c832=!0x0,setDataAttribute:_0x1515eb=!0x0}={}){return(_0x3b7af3,_0x4762eb,_0x330c51)=>{const {type:_0x23960c,id:_0x50528e}=_0x151c53['_splitMarkerName'](_0x4762eb['markerName']),_0x5792b2=_0x151c53['getSuggestion'](_0x50528e),_0x268d0d=_0x5792b2['data'];if('formatBlock'!=_0x5792b2['type']||!_0x268d0d||'setTableColumnHeader'!=_0x268d0d['commandName'])return;if(_0x4762eb['item'])return void _0x3b7af3['stop']();if(!_0x330c51['consumable']['consume'](_0x4762eb['markerRange'],_0x3b7af3['name']))return;const _0xf63197=_0x4762eb['markerRange']['start']['nodeAfter'],_0x463ae6=_0x4762eb['markerRange']['end']['nodeBefore'],_0x2c743a=_0xf63197['parent']['parent'],{column:_0x18f485}=_0x2f58f2['getCellLocation'](_0xf63197),{column:_0x301b04}=_0x2f58f2['getCellLocation'](_0x463ae6);for(let _0x5bee60=_0x18f485;_0x5bee60<=_0x301b04;_0x5bee60++){const _0x4c2b98=_0x2f58f2['createTableWalker'](_0x2c743a,{'column':_0x5bee60,'includeAllSlots':!0x1});for(const _0x1af546 of _0x4c2b98){const _0x4f15d6=_0x1af546['cell'],_0x449730=_0x330c51['mapper']['toViewElement'](_0x4f15d6);_0x330c51['writer']['addClass']('ck-suggestion-marker-'+_0x23960c,_0x449730),_0x1515eb&&_0x330c51['writer']['setAttribute']('data-suggestion',_0x50528e,_0x449730),_0x330c51['mapper']['bindElementToMarker'](_0x449730,_0x4762eb['markerName']),_0x33c832&&(_0x151c53['activeMarkers']['includes'](_0x4762eb['markerName'])?_0x330c51['writer']['addClass']('ck-suggestion-marker--active',_0x449730):_0x330c51['writer']['removeClass']('ck-suggestion-marker--active',_0x449730));}}};}_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x271251),_0x151c53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x271251),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x97bd66(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34c431,_0x4248fb,_0x2403ed)=>{_0x2403ed['options']['showSuggestionHighlights']&&_0x97bd66({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34c431,_0x4248fb,_0x2403ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d1715,_0x549166,_0x1312c0)=>{const {type:_0x33f031,id:_0x5c6589}=_0x151c53['_splitMarkerName'](_0x549166['markerName']),_0x100689=_0x151c53['getSuggestion'](_0x5c6589),_0x2ddf63=_0x100689['data'];if('formatBlock'!=_0x100689['type']||!_0x2ddf63||'setTableColumnHeader'!=_0x2ddf63['commandName'])return;const _0x5ee18c=_0x1312c0['mapper']['markerNameToElements'](_0x549166['markerName']);if(_0x5ee18c){for(const _0x20af3 of _0x5ee18c)_0x1312c0['writer']['removeClass']('ck-suggestion-marker-'+_0x33f031,_0x20af3),_0x1312c0['writer']['removeClass']('ck-suggestion-marker--active',_0x20af3),_0x1312c0['writer']['removeAttribute']('data-suggestion',_0x20af3),_0x1312c0['mapper']['unbindElementFromMarkerName'](_0x20af3,_0x549166['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142e72=this['editor'],_0x59cba7=_0x142e72['locale'];function _0x1fb849(_0x53b431){return{'type':'format','content':o(_0x59cba7,'*Format:*\x20%0',_0x53b431)};}_0x142e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594d44=>{if('formatBlock'!=_0x594d44['type'])return;const {data:_0x5c1edf}=_0x594d44;if(_0x5c1edf){if('setTableRowHeader'==_0x5c1edf['commandName']){const _0x291ba5=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x291ba5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c1edf['commandName']){const _0x20b73a=_0x5c1edf['commandParams'][0x0]['forceValue'];return _0x1fb849(o(_0x59cba7,_0x20b73a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2afb9c=>[_0x2afb9c,null]));class _t extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0xc6e687=this['editor'];if(!_0xc6e687['plugins']['has']('TableClipboard'))return;const _0x1f3606=_0xc6e687['plugins']['get']('TrackChangesEditing'),_0x46ba82=_0xc6e687['plugins']['get']('TableUtils'),_0x4c366e=_0xc6e687['plugins']['get'](It),_0x46492b=_0xc6e687['plugins']['get']('TableClipboard');_0x4c366e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc6e687['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc6e687['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e269e=null;_0xc6e687['model']['on']('insertContent',(_0x18932f,_0x570f13)=>{const [_0x334012,_0x4a0bc0]=_0x570f13,_0x131a38=_0x570f13[_0x570f13['length']-0x1];_0x131a38&&_0x131a38['forceDefaultExecution']||_0x1f3606['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x108d96,_0x199914,_0x208386,_0x11c8ef,_0x478d4f){if(_0x199914&&!_0x199914['is']('documentSelection'))return!0x1;const _0x3fc778=_0x478d4f['getTableIfOnlyTableInContent'](_0x108d96,_0x208386);if(!_0x3fc778||!Re(_0x3fc778,void 0x0,_0x11c8ef))return!0x1;const _0x56578f=_0x11c8ef['getSelectionAffectedTableCells'](_0x208386['document']['selection']);if(!_0x56578f['length'])return!0x1;const _0x3a718d=_0x56578f[0x0]['findAncestor']('table'),_0x140c28=_0x11c8ef['getRowIndexes'](_0x56578f),_0x467ba=_0x11c8ef['getColumnIndexes'](_0x56578f),_0x2f1037={'startRow':_0x140c28['first'],'endRow':_0x140c28['last'],'startColumn':_0x467ba['first'],'endColumn':_0x467ba['last']};return 0x1==_0x56578f['length']&&(_0x2f1037['endRow']+=_0x11c8ef['getRows'](_0x3fc778)-0x1,_0x2f1037['endColumn']+=_0x11c8ef['getColumns'](_0x3fc778)-0x1),Re(_0x3a718d,_0x2f1037,_0x11c8ef);}(_0x334012,_0x4a0bc0,_0xc6e687['model'],_0x46ba82,_0x46492b)&&(_0x18932f['stop'](),_0x2e269e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc6e687['model']['change'](()=>{_0xc6e687['model']['insertContent'](_0x570f13[0x0],_0x570f13[0x1],_0x570f13[0x2],{'forceDefaultExecution':!0x0});const _0x2fbaf2=_0x2120b6(),{rowInsertionRanges:_0x1b3229,columnInsertionRanges:_0x3ae0cd,insertionRanges:_0xc82026,deletionRanges:_0x14fd9a,cells:_0x2e4de7}=_0x2e269e;_0x1b3229['length']&&_0x1f3606['markMultiRangeInsertion'](_0x1b3229,'tablePasteRow',{'tablePasteChainId':_0x2fbaf2}),_0x3ae0cd['length']&&_0x1f3606['markMultiRangeInsertion'](_0x3ae0cd,'tablePasteColumn',{'tablePasteChainId':_0x2fbaf2}),_0xc82026['length']&&(_0x1f3606['markMultiRangeInsertion'](_0xc82026,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0xc82026['forEach'](_0x289381=>_0x289381['detach']?.())),_0x14fd9a['length']&&(_0x1f3606['markMultiRangeDeletion'](_0x14fd9a,'tablePaste',{'tablePasteChainId':_0x2fbaf2,'skipNestingCheck':!0x0}),_0x14fd9a['forEach'](_0x23b751=>_0x23b751['detach']?.()));const _0x29fae8=_0x1f3606['markMultiRangeBlockFormat'](_0x2e4de7['map'](({element:_0x3f8289})=>_0x3f8289),{'formatGroupId':_0x2120b6()},[],'tablePasteCell',{'tablePasteChainId':_0x2fbaf2});if(_0x29fae8){const _0x253579=_0x29fae8['getMarkers'](),_0x27d5be=[];for(const {element:_0xd5b655,attributes:_0x580d38}of _0x2e4de7){if(!_0x580d38)continue;const _0x5080e2=_0xc6e687['model']['createRangeOn'](_0xd5b655),_0x5115c8=_0x253579['find'](_0x42a72b=>_0x42a72b['getRange']()['isEqual'](_0x5080e2));_0x5115c8&&_0x27d5be['push']([_0x5115c8['name'],_0x580d38]);}_0x27d5be['length']&&_0x29fae8['setAttribute']('markerAttributes',Object['fromEntries'](_0x27d5be));}_0x2e269e=null;}));},{'priority':_0xbff88b['high']+0xa}),_0xc6e687['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x342906,_0x3ce470)=>{const [_0x2001a4,_0x21131e,,_0x4e468e]=_0x3ce470;if(!_0x2e269e)return;_0x342906['stop']();const _0x49e3ad=_0x2001a4['cell'],_0x2e21b8=_0x21131e,_0x5ba026=ke(_0x49e3ad),_0x49e6ff=ke(_0x2e21b8);_0x342906['return']=_0x49e3ad;let _0x4ef4f9=null,_0x535933=null;if(_0x49e6ff||_0x5ba026){if(_0x5ba026&&!_0x49e6ff){_0x4e468e['remove'](_0x49e3ad['getChild'](0x0));for(const _0x43bc41 of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x43bc41,_0x49e3ad,'end');const _0x359319=_0x2e269e['rowInsertionIndexes']['includes'](_0x2001a4['row']),_0x5c1f11=_0x2e269e['columnInsertionIndexes']['includes'](_0x2001a4['column']);_0x359319||_0x5c1f11||(_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeIn'](_0x49e3ad)));}else _0x49e6ff&&!_0x5ba026&&(_0x535933=_0x4e468e['createRangeIn'](_0x49e3ad));}else{const _0x3d9770=_0x4e468e['createElement']('tableCellSuggestion'),_0x174a05=_0x4e468e['createElement']('tableCellSuggestion');_0x4e468e['wrap'](_0x4e468e['createRangeIn'](_0x49e3ad),_0x174a05),_0x4e468e['insert'](_0x3d9770,_0x49e3ad,0x0);for(const _0x1d3fbb of Array['from'](_0x2e21b8['getChildren']()))_0x4e468e['insert'](_0x1d3fbb,_0x3d9770,'end');_0x4ef4f9=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x3d9770)),_0x535933=_0x411321['fromRange'](_0x4e468e['createRangeOn'](_0x174a05));}const _0x4b01c3=Array['from'](_0x2e21b8['getAttributes']())['filter'](([_0x13aab0])=>Pe['includes'](_0x13aab0));_0x2e269e['cells']['push']({'element':_0x49e3ad,'attributes':_0x4b01c3['length']?Object['fromEntries'](_0x4b01c3):null}),_0x4ef4f9&&_0x2e269e['insertionRanges']['push'](_0x4ef4f9),_0x535933&&_0x2e269e['deletionRanges']['push'](_0x535933);},{'priority':'high'}),_0x46ba82['on']('insertColumns',(_0x260c3b,_0x5d71c5)=>{const [_0x1fe554,_0x4546db={}]=_0x5d71c5;if(!_0x2e269e)return;const _0x67cfd7=_0x4546db['at']||0x0,_0x4b374a=_0x4546db['columns']||0x1;_0x2e269e['columnInsertionIndexes']=new Array(_0x4b374a)['fill'](_0x67cfd7)['map']((_0x355d82,_0x241d88)=>_0x355d82+_0x241d88);for(const {cell:_0x1b12af}of _0x46ba82['createTableWalker'](_0x1fe554,{'startColumn':_0x67cfd7,'endColumn':_0x67cfd7+_0x4b374a-0x1}))_0x2e269e['columnInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x1b12af));},{'priority':'low'}),_0x46ba82['on']('insertRows',(_0x2d5fec,_0x46cde5)=>{const [_0x5949e4,_0x199de5={}]=_0x46cde5;if(!_0x2e269e)return;const _0x579c05=_0x199de5['at']||0x0,_0x5ae574=_0x199de5['rows']||0x1;_0x2e269e['rowInsertionIndexes']=new Array(_0x5ae574)['fill'](_0x579c05)['map']((_0x5c0312,_0x274836)=>_0x5c0312+_0x274836);for(const {cell:_0x58b222}of _0x46ba82['createTableWalker'](_0x5949e4,{'startRow':_0x579c05,'endRow':_0x579c05+_0x5ae574-0x1}))_0x2e269e['rowInsertionRanges']['push'](_0xc6e687['model']['createRangeOn'](_0x58b222));},{'priority':'low'}),_0x1f3606['descriptionFactory']['registerDescriptionCallback'](_0x447ad1=>{if(_0x447ad1['subType']&&_0x447ad1['subType']['startsWith']('tablePaste'))return _0x447ad1['previous']?{}:{'type':'insertion','content':o(_0xc6e687['locale'],'*Replace\x20table\x20cells*')};});const _0x5d2145=()=>!0x1;for(const _0x68653a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('deletion',_0x68653a,'join',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68653a,'join',_0x5d2145);_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d2145),_0x1f3606['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x504243,_0x498c73,_0xf8ba2b)=>{const _0x3dd1db=_0x504243['map'](_0x585df1=>_0x585df1['getContainedElement']())['filter'](_0x5c1442=>_0x5c1442),_0x5344de=new Map(_0x3dd1db['map'](_0x466fde=>[_0x466fde,null]));if(_0x2e269e){for(const {element:_0x2eb6a7,attributes:_0x1b3df2}of _0x2e269e['cells'])_0x1b3df2&&_0x5344de['set'](_0x2eb6a7,_0x1b3df2);}else{if(_0xf8ba2b&&_0xf8ba2b['markerAttributes'])for(const [_0x94fa5,_0x5dbded]of Object['entries'](_0xf8ba2b['markerAttributes'])){const _0x5d39bd=_0xc6e687['model']['markers']['get'](_0x94fa5),_0x4da94e=_0x5d39bd?_0x5d39bd['getRange']()['getContainedElement']():null;_0x4da94e&&_0x5344de['set'](_0x4da94e,_0x5dbded);}}_0xc6e687['model']['change'](_0x446b82=>{for(const [_0x4a446b,_0x1f0f7a]of _0x5344de)_0x446b82['setAttributes']({...we,..._0x1f0f7a},_0x4a446b);});});const _0x49be4b=(_0x3e28b6,_0x2e7faf)=>{_0x1f3606['_suggestionFactory']['registerCustomCallback'](_0x3e28b6,'tablePaste',_0x2e7faf,(_0x521492,_0x2dd0ed,_0x2b2a11)=>{_0xc6e687['model']['change'](_0x38ac34=>{const _0x47243a=[];for(const _0x202f48 of _0x521492){const _0x560d51=_0x202f48['start']['nodeAfter'];_0x560d51['is']('element','tableCellSuggestion')&&_0x47243a['push'](_0x560d51);}_0x1f3606['_suggestionFactory']['getSuggestionCallback'](_0x3e28b6,null,_0x2e7faf)(_0x521492,_0x2dd0ed,_0x2b2a11);for(const _0x3eda8d of _0x47243a)'$graveyard'!=_0x3eda8d['root']['rootName']&&_0x38ac34['unwrap'](_0x3eda8d);});});};_0x49be4b('insertion','accept'),_0x49be4b('insertion','discard'),_0x49be4b('deletion','accept'),_0x49be4b('deletion','discard'),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2fcd64=>{const _0x1588e6=_0x2fcd64['map'](_0x12a57e=>_0x12a57e['getContainedElement']()),_0x5dc0d4=_0x1588e6[0x0]['findAncestor']('table'),{minRow:_0x166fa9,maxRow:_0x57d9e8}=_0x4c366e['_getCoordsForCells'](_0x1588e6);_0x46ba82['removeRows'](_0x5dc0d4,{'at':_0x166fa9,'rows':_0x57d9e8-_0x166fa9+0x1});}),_0x1f3606['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d2835=>{const _0xeef886=_0x3d2835['map'](_0x228005=>_0x228005['getContainedElement']()),_0x3c4f5d=_0xeef886[0x0]['findAncestor']('table'),{minColumn:_0x7ed176,maxColumn:_0x52214c}=_0x4c366e['_getCoordsForCells'](_0xeef886);_0x46ba82['removeColumns'](_0x3c4f5d,{'at':_0x7ed176,'columns':_0x52214c-_0x7ed176+0x1});});const _0x11752a=(_0x57d381,_0x51b08e)=>{if(!_0x51b08e['subType']||!_0x51b08e['subType']['startsWith']('tablePaste'))return;const _0x3651e0=_0x51b08e['attributes']['tablePasteChainId'],_0x322465=_0x1f3606['getSuggestions']()['filter'](_0x1451cc=>_0x1451cc['isInContent']&&_0x1451cc['attributes']&&_0x1451cc['attributes']['tablePasteChainId']==_0x3651e0);_0x322465['length']&&_0x51b08e['getAllAdjacentSuggestions']()['length']!=_0x322465['length']&&_0x322465['reduce']((_0x50f6b5,_0xbecd7b)=>(_0x50f6b5['next']=_0xbecd7b,_0xbecd7b['previous']=_0x50f6b5,_0xbecd7b));};function _0x9cf1b5(_0x2b609e,_0x20d1af=!0x0){const {id:_0x367d68,authorId:_0x23c425}=_0x1f3606['_splitMarkerName'](_0x2b609e['markerName']),_0x420309=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ab0e2=_0x1f3606['activeMarkers']['includes'](_0x2b609e['markerName']);return _0x4ab0e2&&_0x420309['push']('ck-suggestion-marker--active'),{'classes':_0x420309,'attributes':{'data-suggestion':_0x367d68,'data-author-id':_0x23c425},'priority':_0x4ab0e2&&_0x20d1af?0xbc2:0xbb8};}_0x1f3606['on']('suggestionLoaded',_0x11752a,{'priority':'high'}),_0x1f3606['on']('suggestionUnloaded',_0x11752a,{'priority':'high'}),_0xc6e687['model']['document']['registerPostFixer'](()=>{let _0x38b40a=!0x1;const _0x33ee69=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26c9cf,data:_0x343f62}of _0x33ee69){const {group:_0x33bec9,type:_0x2035db,id:_0x399868}=_0x1f3606['_splitMarkerName'](_0x26c9cf);if('suggestion'!=_0x33bec9||'deletion'!=_0x2035db||_0x343f62['oldRange'])continue;if(!_0x1f3606['hasSuggestion'](_0x399868))continue;const _0x2d6f1f=_0x1f3606['getSuggestion'](_0x399868)['getRanges'](),_0x143879=_0xc6e687['plugins']['get']('Users')['me'];for(const _0x541caa of _0x1f3606['getSuggestions']()){if(!_0x541caa['isInContent']||_0x541caa['author']!=_0x143879)continue;if('formatBlock'!=_0x541caa['type']||'tablePasteCell'!=_0x541caa['subType'])continue;if(_0x541caa['getRanges']()['every'](_0x9d2fbc=>_0x2d6f1f['some'](_0x1675a7=>_0x1675a7['containsRange'](_0x9d2fbc,!0x0)))){for(const _0x497a69 of _0x541caa['getAllAdjacentSuggestions']())_0x497a69['isInContent']&&(_0x497a69['discard'](),_0x38b40a=!0x0);}}}return _0x38b40a;}),_0xc6e687['model']['document']['registerPostFixer'](_0x3d89af=>{const _0x35ad79=_0xc6e687['commands']['get']('redo');if(!_0x35ad79||!_0x35ad79['_createdBatches']['has'](_0x3d89af['batch']))return!0x1;let _0x2e239f=!0x1;const _0x5441e2=_0xc6e687['plugins']['get']('Users')['me'],_0x4e007d=_0xc6e687['model']['document']['differ']['getChanges'](),_0x1bd8eb=Array['from'](_0xc6e687['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d69c5,data:_0x4b7bba})=>{const {group:_0x31f736,subType:_0x102591,authorId:_0x4d57c5}=_0x1f3606['_splitMarkerName'](_0x3d69c5);return'suggestion'==_0x31f736&&'tablePaste'==_0x102591&&_0x4d57c5==_0x5441e2['id']&&!_0x4b7bba['oldRange'];});for(const _0x38df87 of _0x4e007d){if('insert'!=_0x38df87['type']||'tableCellSuggestion'!=_0x38df87['name']||0x1!=_0x38df87['length'])continue;const _0x533fad=_0x3d89af['createRange'](_0x38df87['position'],_0x38df87['position']['getShiftedBy'](0x1));if(!_0x1bd8eb['find'](({data:_0x1150b5})=>_0x1150b5['newRange']['isEqual'](_0x533fad))){for(const {name:_0x1db9c8,data:_0x4f509e}of _0x1bd8eb)if(_0x533fad['containsRange'](_0x4f509e['newRange'])){_0x3d89af['updateMarker'](_0x1db9c8,{'range':_0x533fad}),_0x2e239f=!0x0;break;}}}return _0x2e239f;}),_0xc6e687['model']['document']['registerPostFixer'](_0x86e595=>{let _0x27b80f=!0x1;const _0x51bec7=_0xc6e687['plugins']['get']('Users')['me'],_0x51f275=_0x1f3606['getSuggestions']()['filter'](_0x548a2f=>_0x548a2f['isInContent']&&_0x548a2f['author']==_0x51bec7),_0x2a696a=new Set(),_0xf3bf4=new Set();for(const _0x5b6757 of _0x51f275)if('tablePaste'==_0x5b6757['subType'])for(const _0x2b9ac1 of _0x5b6757['getMarkers']()){const _0x26d3bd=_0x2b9ac1['getRange']()['getContainedElement']();if(_0x26d3bd){if(_0x26d3bd['is']('element','tableCellSuggestion')&&ke(_0x26d3bd)){_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x2a696a['add'](_0x26d3bd),_0x27b80f=!0x0;const _0x18ee14=_0x26d3bd['nextSibling'],_0x4eb690=_0x26d3bd['previousSibling'],_0x4cee53=_0x18ee14&&_0x18ee14['is']('element','tableCellSuggestion'),_0x54095f=_0x4eb690&&_0x4eb690['is']('element','tableCellSuggestion');_0x4cee53&&!_0x2a696a['has'](_0x18ee14)&&_0xf3bf4['add'](_0x18ee14),_0x54095f&&!_0x2a696a['has'](_0x4eb690)&&_0xf3bf4['add'](_0x4eb690);}else _0x26d3bd['is']('element','paragraph')&&_0x26d3bd['isEmpty']&&(_0x5b6757['removeMarker'](_0x2b9ac1['name']),_0x27b80f=!0x0);}}else{if('tablePasteCell'==_0x5b6757['subType']){if(!_0x5b6757['attributes']||!_0x5b6757['attributes']['tablePasteChainId'])continue;const _0x5a13aa=_0x5b6757['attributes']['markerAttributes'];if(_0x5a13aa&&Object['keys'](_0x5a13aa)['length'])continue;const _0x3747c7=_0x5b6757['attributes']['tablePasteChainId'];let _0x5045ec=!0x0,_0x208d0e=!0x0;for(const _0x4234ac of _0x51f275)if(_0x4234ac['subType']&&_0x4234ac['subType']['startsWith']('tablePaste')){if(!_0x4234ac['attributes']['tablePasteChainId']){_0x208d0e=!0x1;break;}if(_0x4234ac['id']!=_0x5b6757['id']&&_0x4234ac['attributes']['tablePasteChainId']==_0x3747c7){_0x5045ec=!0x1;break;}}_0x208d0e&&_0x5045ec&&(_0x5b6757['removeMarkers'](),_0x27b80f=!0x0);}}for(const _0x5785d6 of _0x2a696a)_0x86e595['remove'](_0x5785d6);for(const _0xdf057e of _0xf3bf4)_0x86e595['unwrap'](_0xdf057e);return _0x27b80f;}),_0xc6e687['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x515453,_0x1e7735)=>_0x9cf1b5(_0x515453),'converterPriority':'high'}),_0xc6e687['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb509b3,_0x1eed0f)=>_0x1eed0f['options']['showSuggestionHighlights']?_0x9cf1b5(_0xb509b3,!0x1):null,'converterPriority':'high'});const _0xc07147=_0xc6e687['editing']['view'];this['listenTo'](_0xc07147['document'],'clipboardOutput',(_0x18be91,_0x176cad)=>{const _0x1be573=[];for(const _0xb81051 of _0xc07147['createRangeIn'](_0x176cad['content'])['getItems']())_0xb81051['is']('element','suggestion-td')&&_0x1be573['push'](_0xb81051);_0xc07147['change'](_0x340ce5=>{for(const _0x44f3f6 of _0x1be573)_0x340ce5['move'](_0x340ce5['createRangeIn'](_0x44f3f6),_0x340ce5['createPositionBefore'](_0x44f3f6)),_0x340ce5['remove'](_0x44f3f6);});});}}function ke(_0x1f372f){if(_0x1f372f['isEmpty'])return!0x0;const _0x2fb746=_0x1f372f['getChild'](0x0);return _0x2fb746['is']('element','paragraph')&&_0x2fb746['isEmpty'];}function Re(_0x2cdc1b,_0x39651e={},_0x5826d1){for(const {isAnchor:_0x5063b9,cellHeight:_0x9b6545,cellWidth:_0x178b69}of _0x5826d1['createTableWalker'](_0x2cdc1b,{'includeAllSlots':!0x0,..._0x39651e}))if(!_0x5063b9||0x1!=_0x9b6545||0x1!=_0x178b69)return!0x1;return!0x0;}class Nt extends _0x48688f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49c72d=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c72d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c72d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49c72d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49c72d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57fc39,_0x4e028d){const _0x4acaaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc404=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11895d=_0x4e028d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d1bda=_0x3cc404['getColumnGroupElement'](_0x11895d);let _0x1d9029=_0x4d1bda?_0x3cc404['getTableColumnsWidths'](_0x4d1bda):null,_0x553241=_0x11895d['getAttribute']('tableWidth')||null;const _0x9d295a=_0x4e028d['tableWidth']||_0x553241,_0x37d353=_0x4e028d['columnWidths']||_0x1d9029,_0x12d21f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ab8be of _0x4acaaa['getSuggestions']()){const _0x14955d=_0x3ab8be['getContainedElement']();if('resizeTable'===_0x3ab8be['subType']&&_0x14955d===_0x11895d){_0x3ab8be['author']!==_0x12d21f&&_0x3ab8be['discard']();const _0x296df3=_0x3ab8be['data']['commandParams'];_0x553241=_0x296df3[0x0]['tableWidth'],_0x1d9029=_0x296df3[0x0]['columnWidths'];break;}}_0x57fc39({'table':_0x11895d,'tableWidth':_0x9d295a,'columnWidths':_0x37d353}),_0x4acaaa['markBlockFormat'](_0x11895d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x553241,'columnWidths':_0x1d9029}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x425aff){if('formatBlock'!=_0x425aff['type']&&'formatInline'!=_0x425aff['type'])return;const {data:_0x13c70b}=_0x425aff;if(_0x13c70b&&'resizeTable'===_0x13c70b['formatGroupId']){const _0x5d20a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d20a6)};}}}class Dt extends _0x48688f{['afterInit'](){const _0x212908=this['editor'];_0x212908['plugins']['has']('Template')&&_0x212908['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48688f{['afterInit'](){const _0x2b5e88=this['editor'];if(!_0x2b5e88['commands']['get']('insertTableOfContents'))return;_0x2b5e88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd3d3d7=_0x2b5e88['plugins']['get']('TrackChangesEditing'),_0x849fcb=_0x2b5e88['locale'];_0xd3d3d7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14732a=>o(_0x849fcb,'ELEMENT_TABLE_OF_CONTENTS',_0x14732a));}}class $t extends _0x48688f{['afterInit'](){const _0x22c6ae=this['editor'];if(!_0x22c6ae['plugins']['has']('Title'))return;const _0x1c2224=_0x22c6ae['plugins']['get']('TrackChangesEditing');_0x1c2224['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22c6ae['locale'],'ELEMENT_TITLE')),_0x22c6ae['model']['document']['registerPostFixer'](_0x41ae4f=>{let _0x3c3685=!0x1;const _0x29d98b=Array['from'](_0x22c6ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49e20b,data:_0xe82e4d}of _0x29d98b){const {group:_0x53371d}=_0x1c2224['_splitMarkerName'](_0x49e20b);if('suggestion'!==_0x53371d||!_0xe82e4d['newRange'])continue;const _0x3f388b=_0xe82e4d['newRange'],_0x449fe5=_0x3f388b['end']['nodeBefore'];if(!_0x449fe5||!_0x449fe5['is']('element','title-content'))continue;if(!_0x3f388b['start']['isTouching'](_0x3f388b['end']))continue;const _0x1522b5=_0x22c6ae['model']['schema']['getNearestSelectionRange'](_0x3f388b['end'],'forward');if(_0x1522b5&&_0x1522b5['isCollapsed']){const _0x335f3c=_0x41ae4f['createRange'](_0x3f388b['start'],_0x1522b5['start']);_0x335f3c['isEqual'](_0x3f388b)||(_0x41ae4f['updateMarker'](_0x49e20b,{'range':_0x335f3c}),_0x3c3685=!0x0);}_0x3c3685||(_0x41ae4f['removeMarker'](_0x49e20b),_0x3c3685=!0x0);}return _0x3c3685;});}}class Bt extends _0x48688f{['afterInit'](){const _0x45562e=this['editor'],_0x326cb1=_0x45562e['plugins']['get']('TrackChangesEditing');_0x45562e['plugins']['has']('UndoEditing')&&(_0x326cb1['enableCommand']('undo'),_0x326cb1['enableCommand']('redo'));}}class xt extends _0x48688f{static get['requires'](){return[It];}['afterInit'](){const _0x19d648=this['editor'];if(!_0x19d648['plugins']['has']('TableCaptionEditing'))return;_0x19d648['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48688f{['tableProperties'];['tableCellProperties'];constructor(_0x52a0c5){super(_0x52a0c5),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 _0x3ee0a8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2fac7c of this['tableProperties'])_0x3ee0a8['enableCommand'](_0x2fac7c,(_0x39ba6d,_0x244d7d)=>{const _0x5d340d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2fac7c,[_0x5d340d],this['tableProperties'],'tableProperties',_0x39ba6d,_0x244d7d);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e8005,_0x17a764)=>this['handleDiscardAction'](this['tableProperties'],_0x2e8005,_0x17a764)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bfcb5 of this['tableCellProperties'])_0x3ee0a8['enableCommand'](_0x3bfcb5,(_0x2985e8,_0x28e662)=>{const _0x55b912=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bfcb5,_0x55b912,this['tableCellProperties'],'tableCellProperties',_0x2985e8,_0x28e662);});_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ee0a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cea48,_0x222226)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cea48,_0x222226)),_0x3ee0a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ee0a8['descriptionFactory']['registerDescriptionCallback'](_0x50457e=>this['handleSuggestionDescription'](_0x50457e));}['_handlePropertyChange'](_0xbbc19a,_0x3d4665,_0x5bb739,_0x264f7a,_0x3431a2,_0x3bc3b1){const _0x1767a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bc3b1['batch'],()=>{for(const _0xfd3498 of _0x3d4665){if(this['_getSuggestion'](_0xfd3498,_0x264f7a))_0x3431a2(_0x3bc3b1);else{const _0x2a3031={};for(const _0xfb7ebd of _0x5bb739){const _0x52ad0a=_0xfd3498['getAttribute'](_0xfb7ebd);void 0x0!==_0x52ad0a&&(_0x2a3031[_0xfb7ebd]=_0x52ad0a);}_0x3431a2(_0x3bc3b1),_0x1767a2['markBlockFormat'](_0xfd3498,{'commandParams':[_0x2a3031]},[],_0x264f7a);}}});}['handleDiscardAction'](_0x2b2d83,_0x5c3344,_0x1604af){const _0x51565a=_0x5c3344[0x0]['start']['nodeAfter'],_0x37c427=_0x1604af['commandParams'][0x0];this['editor']['model']['change'](_0x57ef74=>{for(const _0x156b22 of _0x2b2d83)void 0x0!==_0x37c427[_0x156b22]?_0x57ef74['setAttribute'](_0x156b22,_0x37c427[_0x156b22],_0x51565a):_0x57ef74['removeAttribute'](_0x156b22,_0x51565a);});}['handleSuggestionDescription'](_0x472ef3){if(_0x472ef3['data'])switch(_0x472ef3['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'](_0x1a6afa,_0x24c7f9){const _0x539996=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x57d03b of _0x539996['getSuggestions']({'skipNotAttached':!0x0})){const _0x202944=_0x57d03b['getContainedElement']();if(_0x57d03b['subType']===_0x24c7f9&&_0x202944===_0x1a6afa)return _0x57d03b;}return null;}}const m='$elementName';class p extends _0x48688f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x171a4a,_0x44b4d1,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x32c20b){function _0x489e3b(_0x413f5e){return _0x413f5e['map'](_0x499a11=>String['fromCharCode'](_0x499a11))['join']('');}super(_0x32c20b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1f749a,_0x50a232,_0x45eaf9,_0x55dd78)=>{this['_model']['change'](()=>{for(const _0x5c9376 of[..._0x55dd78,..._0x45eaf9])this['_model']['markers']['has'](_0x5c9376)&&_0x32c20b['editing']['reconvertMarker'](_0x5c9376);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x32c20b['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(),_0x32c20b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32c20b['config']['get']('trackChanges.trackFormatChanges'),_0x32c20b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32c20b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x32c20b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x489e3b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x489e3b([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x30]);}['init'](){const _0x172b9f=this['editor'],_0x3ab9b2=(_0xa5097f,_0x8ee671)=>{if('attribute'!=_0xa5097f)return'ck-suggestion-marker-'+_0xa5097f;const _0xf09cb6=_0x8ee671['split']('|')[0x0];return this['_isBlockAttribute'](_0xf09cb6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x172b9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21b408=>{const {id:_0xd62585,authorId:_0x412cb7,type:_0x36d5d5,subType:_0x338044}=this['_splitMarkerName'](_0x21b408['markerName']),_0xc9772b=['ck-suggestion-marker',_0x3ab9b2(_0x36d5d5,_0x338044)];let _0x1bab33=0xbb8;return this['activeMarkers']['includes'](_0x21b408['markerName'])&&(_0xc9772b['push']('ck-suggestion-marker--active'),_0x1bab33=0xbc2),'deletion'==_0x36d5d5&&(_0x1bab33+=0x5),{'classes':_0xc9772b,'attributes':{'data-suggestion':_0xd62585,'data-author-id':_0x412cb7},'priority':_0x1bab33};}}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x3bf8a7=>{_0x3bf8a7['on']('addMarker:suggestion',(_0x58a548,_0x1ed06f,_0x536358)=>{if(!_0x536358['options']['showSuggestionHighlights'])return;const _0x3d01d3=_0x1ed06f['item'];if(!_0x3d01d3)return;const _0x2a987a=_0x536358['mapper']['toViewElement'](_0x3d01d3);_0x172b9f['model']['schema']['isObject'](_0x3d01d3)&&_0x2a987a&&!_0x2a987a['getCustomProperty']('widget')&&_0x2a987a['is']('containerElement')&&_0x3d3930(_0x2a987a,_0x536358['writer']);},{'priority':'high'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d5e62,_0x307bfb)=>{if(!_0x307bfb['options']['showSuggestionHighlights'])return null;const {type:_0x2df2b0,subType:_0xb7227e}=this['_splitMarkerName'](_0x5d5e62['markerName']);return{'classes':['ck-suggestion-marker',_0x3ab9b2(_0x2df2b0,_0xb7227e)],'priority':0xbb8};}});const _0x247339=({showActiveMarkers:_0x3b4353=!0x0,isAttributeSuggestion:_0x29f31f=!0x1}={})=>(_0x51813c,_0x2e8f47,_0x511949)=>{if(!_0x2e8f47['item'])return;const {id:_0x38d7b5,authorId:_0x35da92}=this['_splitMarkerName'](_0x2e8f47['markerName']);if(_0x29f31f){const _0x5c9556=this['_suggestions']['get'](_0x38d7b5),_0x407021=this['_getAttributeKey'](_0x5c9556);if(!this['_isBlockAttribute'](_0x407021))return;}if(_0x2e8f47['item']['is']('selection'))return void _0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);const _0x25cd89=_0x511949['mapper']['toViewElement'](_0x2e8f47['item']);if(_0x2e8f47['item']['is']('element')&&_0x172b9f['model']['schema']['isBlock'](_0x2e8f47['item'])&&!_0x25cd89['getCustomProperty']('addHighlight')){_0x511949['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25cd89),_0x511949['writer']['setAttribute']('data-suggestion',_0x38d7b5,_0x25cd89),_0x511949['writer']['setAttribute']('data-author-id',_0x35da92,_0x25cd89),_0x511949['mapper']['bindElementToMarker'](_0x25cd89,_0x2e8f47['markerName']),_0x3b4353&&(this['activeMarkers']['includes'](_0x2e8f47['markerName'])?_0x511949['writer']['addClass']('ck-suggestion-marker--active',_0x25cd89):_0x511949['writer']['removeClass']('ck-suggestion-marker--active',_0x25cd89));for(const _0x552cd6 of _0x172b9f['model']['createRangeIn'](_0x2e8f47['item'])['getItems']())_0x511949['consumable']['consume'](_0x552cd6,_0x51813c['name']);_0x511949['consumable']['consume'](_0x2e8f47['item'],_0x51813c['name']);}};_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x247349=>{_0x247349['on']('addMarker:suggestion:formatBlock',(_0x58b884,_0x478c90,_0x333c9e)=>{_0x333c9e['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1})(_0x58b884,_0x478c90,_0x333c9e);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['add'](_0x572ed4=>{_0x572ed4['on']('addMarker:suggestion:attribute',(_0x12dc82,_0x277fdf,_0x4cf9ff)=>{_0x4cf9ff['options']['showSuggestionHighlights']&&_0x247339({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12dc82,_0x277fdf,_0x4cf9ff);},{'priority':'highest'});}),_0x172b9f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ca87c,_0x1e2bb9)=>_0x1e2bb9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3ca87c['substr'](0xb)}}),_0x172b9f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fbaa2,{writer:_0x389273})=>{let _0x5ab9aa='suggestion:'+_0x3fbaa2['getAttribute']('suggestion-type')+':'+_0x3fbaa2['getAttribute']('id');return _0x3fbaa2['getAttribute']('marker-count')&&(_0x5ab9aa+=':'+_0x3fbaa2['getAttribute']('marker-count')),_0x389273['createElement']('$marker',{'data-name':_0x5ab9aa});}}),_0x172b9f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x37b352=>{_0x37b352['on']('addMarker:suggestion:formatBlock',_0x247339(),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x2b2bfe=>{_0x2b2bfe['on']('addMarker:suggestion:attribute',_0x247339({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0x3919d3=>{_0x3919d3['on']('removeMarker:suggestion:formatBlock',(_0x3bc0d5,_0x468ccc,_0x53966f)=>{const _0x1d4d8c=_0x53966f['mapper']['markerNameToElements'](_0x468ccc['markerName']);if(_0x1d4d8c){for(const _0x2b92da of _0x1d4d8c)_0x2b92da['getCustomProperty']('addHighlight')||(_0x53966f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b92da),_0x53966f['writer']['removeAttribute']('data-suggestion',_0x2b92da),_0x53966f['writer']['removeAttribute']('data-author-id',_0x2b92da),_0x53966f['mapper']['unbindElementFromMarkerName'](_0x2b92da,_0x468ccc['markerName']));}},{'priority':'high'});}),_0x172b9f['conversion']['for']('editingDowncast')['add'](_0xcfee5b=>{_0xcfee5b['on']('removeMarker:suggestion:attribute',(_0x17d013,_0x51fe65,_0x68112f)=>{const _0x1d430f=_0x68112f['mapper']['markerNameToElements'](_0x51fe65['markerName']);if(!_0x1d430f)return;const {id:_0x37ace1}=this['_splitMarkerName'](_0x51fe65['markerName']),_0x587e48=this['_suggestions']['get'](_0x37ace1),_0x18e152=this['_getAttributeKey'](_0x587e48);if(this['_isBlockAttribute'](_0x18e152)){for(const _0x345de4 of _0x1d430f)_0x345de4['getCustomProperty']('addHighlight')||(_0x68112f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345de4),_0x68112f['writer']['removeAttribute']('data-suggestion',_0x345de4),_0x68112f['writer']['removeAttribute']('data-author-id',_0x345de4),_0x68112f['mapper']['unbindElementFromMarkerName'](_0x345de4,_0x51fe65['markerName']));}},{'priority':'high'});}),_0x172b9f['model']['document']['registerPostFixer'](_0x327cbd=>{let _0x593af5=!0x1;const _0x5e2846=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']()),_0x5951bc=new Set();for(const {name:_0xa7b5b9,data:_0x306329}of _0x5e2846){const {group:_0x53642a,type:_0x3ba118,subType:_0x547de1,id:_0x5afb12}=this['_splitMarkerName'](_0xa7b5b9);if('suggestion'!==_0x53642a)continue;const _0x55270c=this['_suggestions']['get'](_0x5afb12);if(null!=_0x306329['newRange']){'formatInline'==_0x3ba118&&(_0x593af5=_0x593af5||Ut(_0x306329['newRange'],_0xa7b5b9,_0x327cbd,_0x172b9f['model']['schema']));const _0x1bd612='attribute'==_0x3ba118&&this['_isBlockAttribute'](_0x547de1['split']('|')[0x0]);if(_0x306329['newRange']['isCollapsed']||'$graveyard'==_0x306329['newRange']['root']['rootName']||'formatBlock'==_0x3ba118&&!Ft(_0x306329['newRange'])||_0x1bd612&&!Ft(_0x306329['newRange'])||'deletion'==_0x3ba118&&!(!Vt(_0x2f067d=_0x306329['newRange'])&&!function(_0x45ea89){return _0x45ea89['start']['parent']==_0x45ea89['end']['nodeBefore']&&_0x45ea89['start']['isAtEnd'];}(_0x2f067d)))_0x327cbd['removeMarker'](_0xa7b5b9),_0x593af5=!0x0;else{if(!_0x55270c||!_0x55270c['isInContent'])continue;if(_0x306329['newRange']&&_0x306329['oldRange']&&_0x306329['newRange']['isEqual'](_0x306329['oldRange']))continue;_0x5951bc['add'](_0x55270c);}}}var _0x2f067d;return _0x5951bc['size']>0x0&&(_0x593af5=!!this['_joinWithAdjacentSuggestions'](_0x5951bc)||_0x593af5),_0x593af5;}),_0x172b9f['model']['document']['registerPostFixer'](_0x4c7e77=>{let _0x132c8a=!0x1;for(const _0x1710cb of _0x172b9f['model']['document']['differ']['getChanges']())if('insert'==_0x1710cb['type'])for(const _0x1a657d of this['_suggestions']['values']()){if(_0x1a657d['isMultiRange']||!_0x1a657d['isInContent'])continue;const _0x3fb4dc='formatBlock'==_0x1a657d['type'],_0x5cd776=this['_getAttributeKey'](_0x1a657d),_0x1a5244=_0x5cd776&&this['_isBlockAttribute'](_0x5cd776);if(!_0x3fb4dc&&!_0x1a5244)continue;const _0x12d099=_0x1a657d['getFirstRange']();if(_0x12d099['start']['parent']!=_0x12d099['end']['parent']&&!_0x12d099['end']['isAtEnd']){const _0x46ab79=_0x172b9f['model']['createPositionAt'](_0x12d099['start']['nodeAfter'],'end'),_0x491308=_0x172b9f['model']['createRange'](_0x12d099['start'],_0x46ab79);_0x4c7e77['updateMarker'](_0x1a657d['getFirstMarker'](),{'range':_0x491308}),_0x132c8a=!0x0;}}return _0x132c8a;}),_0x172b9f['model']['document']['registerPostFixer'](_0xaf4011=>this['_processAttributeChanges'](_0xaf4011)),_0x172b9f['model']['document']['registerPostFixer'](_0x3cc925=>!_0x3cc925['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3cc925)),_0x172b9f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x172b9f['model']['document']['on']('change:data',(_0x50c720,_0x36934f)=>{if(!_0x36934f['isLocal']||_0x36934f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x376e19=_0x172b9f['model']['document']['differ']['getChanges']();if(0x0==_0x376e19['length'])return;const _0x4a3140=[],_0x289332=_0x376e19['filter'](_0x281a64=>'attribute'==_0x281a64['type']),_0x2732fe=_0x376e19['filter'](_0x2bba70=>'insert'==_0x2bba70['type']&&'$text'!=_0x2bba70['name']);for(const _0x477a5c of _0x289332)this['_isRegisteredAttribute'](_0x477a5c['attributeKey'])&&_0x4a3140['push']({'key':_0x477a5c['attributeKey'],'newValue':_0x477a5c['attributeNewValue'],'oldValue':_0x477a5c['attributeOldValue'],'range':Pt(_0x477a5c['range'],_0x172b9f['model'])});for(const _0x27e6a9 of _0x2732fe){if('rename'!=_0x27e6a9['action']&&'refresh'!=_0x27e6a9['action'])continue;const _0x494a91=Lt(_0x27e6a9['position']['nodeAfter'],_0x172b9f['model']),_0x560401=_0x27e6a9['before'];'rename'==_0x27e6a9['action']&&_0x4a3140['push']({'key':m,'newValue':_0x27e6a9['name'],'oldValue':_0x560401['name'],'range':_0x494a91});for(const [_0x16a98e,_0xca10f9]of _0x560401['attributes']){if(!this['_isRegisteredAttribute'](_0x16a98e))continue;const _0xde795f=_0x27e6a9['attributes']['get'](_0x16a98e);_0xca10f9!==_0xde795f&&_0x4a3140['push']({'key':_0x16a98e,'newValue':_0xde795f,'oldValue':_0xca10f9,'range':_0x494a91});}for(const [_0x4acebc,_0x583247]of _0x27e6a9['attributes'])this['_isRegisteredAttribute'](_0x4acebc)&&(_0x560401['attributes']['has'](_0x4acebc)||_0x4a3140['push']({'key':_0x4acebc,'newValue':_0x583247,'oldValue':null,'range':_0x494a91}));}0x0!=_0x4a3140['length']&&_0x172b9f['model']['enqueueChange'](_0x36934f,_0x4cabe8=>{const _0x2c6cc0=_0x2120b6();for(const {range:_0x406273,key:_0x28ff52,oldValue:_0x25e583,newValue:_0x3704f0}of _0x4a3140)this['markAttributeChange'](_0x406273,_0x28ff52,_0x25e583,_0x3704f0,{'groupId':_0x2c6cc0});this['_reduceExistingSuggestions'](_0x4cabe8,_0x4a3140);});},{'priority':'lowest'}),_0x172b9f['model']['markers']['on']('update:suggestion',(_0x45c57d,_0x513414,_0x902846)=>{if(null==_0x902846){const {id:_0x2e7804}=this['_splitMarkerName'](_0x513414['name']),_0x3ef4c6=this['_suggestions']['get'](_0x2e7804);_0x3ef4c6&&_0x3ef4c6['addMarkerName'](_0x513414['name']);}}),_0x172b9f['model']['document']['on']('change:data',()=>{const _0x59d791=Array['from'](_0x172b9f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55c007=>'suggestion'===this['_splitMarkerName'](_0x55c007['name'])['group']);if(0x0===_0x59d791['length'])return;_0x59d791['sort']((_0x2eb459,_0x1d0f2a)=>{const _0x5b8ae6=_0x2eb459['data']['oldRange'],_0x4cb55b=_0x1d0f2a['data']['oldRange'];return null===_0x5b8ae6&&null===_0x4cb55b?0x0:null===_0x5b8ae6&&null!==_0x4cb55b?-0x1:null!==_0x5b8ae6&&null===_0x4cb55b?0x1:_0x5b8ae6['start']['isBefore'](_0x4cb55b['start'])?-0x1:0x1;});const _0x11079e=new Set(),_0x2cd39d=new Set();for(const {name:_0x3cea7f,data:_0xda84f7}of _0x59d791){const {id:_0x599a7e}=this['_splitMarkerName'](_0x3cea7f);if(null===_0xda84f7['oldRange']){const _0x106775=this['_handleNewSuggestionMarker'](_0x3cea7f);_0x2cd39d['add'](_0x106775);}else{const _0x242f05=this['_suggestions']['get'](_0x599a7e);null!==_0xda84f7['newRange']||_0x242f05['isInContent']?(_0x11079e['add'](_0x242f05['head']),_0x2cd39d['add'](_0x242f05)):this['_removeSuggestion'](_0x242f05);}}_0x2cd39d['size']>0x0&&this['_refreshSuggestionsChain'](_0x2cd39d);for(const _0x335749 of _0x11079e)this['fire']('suggestionChanged',_0x335749);}),_0x172b9f['model']['on']('applyOperation',(_0x2672f6,_0x191fd2)=>{const _0x5d3b39=_0x191fd2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d3b39['isDocumentOperation'])return;if(_0x5d3b39['batch']['isUndo']||!_0x5d3b39['batch']['isLocal'])return;let _0x5141bf,_0x46c1f0;switch(_0x5d3b39['type']){case'insert':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['position']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;case'split':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['splitPosition']),_0x46c1f0=_0x172b9f['model']['createPositionAt'](_0x5d3b39['moveTargetPosition']);break;case'move':_0x5141bf=_0x172b9f['model']['createPositionAt'](_0x5d3b39['targetPosition']),_0x46c1f0=_0x5141bf['getShiftedBy'](_0x5d3b39['howMany']);break;default:return;}const _0x3328b7=_0x172b9f['model']['createRange'](_0x5141bf,_0x46c1f0);_0x172b9f['model']['change'](()=>{for(const {suggestion:_0x515d12,meta:_0x459d18}of this['_findSuggestions'](_0x3328b7)){if(_0x515d12['isMultiRange'])continue;if('formatInline'==_0x515d12['type'])continue;const _0xbd0cb7=this['_getAttributeKey'](_0x515d12);if(_0xbd0cb7&&this['_isBlockAttribute'](_0xbd0cb7)&&'split'!=_0x5d3b39['type'])continue;const _0x3464ab=_0x515d12['data']&&_0x515d12['data']['multipleBlocks'];('formatBlock'!=_0x515d12['type']||'split'==_0x5d3b39['type']&&!_0x3464ab)&&(_0x459d18['containsRangeInObject']||'insertion'==_0x515d12['type']&&_0x459d18['isOwn']||_0x515d12['getFirstRange']()['containsRange'](_0x3328b7)&&this['_breakSuggestionMarker'](_0x515d12,_0x5141bf,_0x46c1f0));}});},{'priority':'lowest'}),_0x172b9f['model']['on']('deleteContent',(_0x1565da,_0x1882a2)=>{const _0x5b1080=_0x1882a2[0x0],_0xa99a22=_0x1882a2[0x1];if(_0xa99a22&&_0xa99a22['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b1080['isCollapsed'])return;const _0x3e4407=_0x172b9f['model']['schema'],{start:_0xed0be2,end:_0x1ebd83}=_0x5b1080['getFirstRange'](),_0x169f59=_0xed0be2['nodeAfter']&&_0x3e4407['isLimit'](_0xed0be2['nodeAfter'])?null:_0x3e4407['getNearestSelectionRange'](_0xed0be2,'forward'),_0x5b51a2=_0x1ebd83['nodeBefore']&&_0x3e4407['isLimit'](_0x1ebd83['nodeBefore'])?null:_0x3e4407['getNearestSelectionRange'](_0x1ebd83,'backward'),_0x442223=_0x172b9f['model']['createRange'](_0x169f59?_0x169f59['start']:_0xed0be2,_0x5b51a2?_0x5b51a2['end']:_0x1ebd83);_0x172b9f['model']['change'](_0xf0f0f4=>{this['markDeletion'](_0x442223);const _0x167c0c=_0x172b9f['model']['schema']['getNearestSelectionRange'](_0x442223['start']);_0x5b1080['is']('documentSelection')?_0xf0f0f4['setSelection'](_0x167c0c):_0x5b1080['setTo'](_0x167c0c);}),_0x1565da['stop']();},{'priority':_0xbff88b['normal']+0xa}),_0x172b9f['model']['on']('insertContent',(_0x39927f,_0x15c96f)=>{const _0x178a3b=_0x15c96f[_0x15c96f['length']-0x1];_0x178a3b&&_0x178a3b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x172b9f['model']['change'](()=>{let _0x1a29b0=_0x172b9f['model']['insertContent'](_0x15c96f[0x0],_0x15c96f[0x1],_0x15c96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a29b0)return;_0x39927f['return']=_0x1a29b0['clone']();const _0x5e48cd=_0x1a29b0['end']['nodeBefore'],_0x203e2e=_0x172b9f['model']['schema'];_0x5e48cd&&_0x203e2e['isBlock'](_0x5e48cd)&&!_0x203e2e['isObject'](_0x5e48cd)&&(_0x1a29b0=_0x172b9f['model']['createRange'](_0x1a29b0['start'],_0x172b9f['model']['createPositionAt'](_0x5e48cd,'end'))),this['markInsertion'](_0x1a29b0);}),_0x39927f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb3501c=new x(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('acceptSuggestion',_0xb3501c),this['enableCommand']('acceptSuggestion');const _0x2b0c53=new R(_0x172b9f,this['_suggestions']);_0x172b9f['commands']['add']('discardSuggestion',_0x2b0c53),this['enableCommand']('discardSuggestion'),_0x172b9f['commands']['add']('acceptAllSuggestions',new E(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x172b9f['commands']['add']('discardAllSuggestions',new E(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x172b9f['commands']['add']('acceptSelectedSuggestions',new O(_0x172b9f,_0xb3501c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x172b9f['commands']['add']('discardSelectedSuggestions',new O(_0x172b9f,_0x2b0c53,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e9fb1=_0x172b9f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e9fb1,'addComment',(_0x4ae56b,{threadId:_0xe33035})=>{const _0x4de7a7=this['_suggestions']['get'](_0xe33035);_0x4de7a7&&_0x4de7a7['commentThread']&&0x1===_0x4de7a7['commentThread']['length']&&this['_updateSuggestionData'](_0xe33035,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e9fb1,'removeComment',(_0x161bc0,{threadId:_0x6da820})=>{const _0x371195=this['_suggestions']['get'](_0x6da820);_0x371195&&_0x371195['commentThread']&&!_0x371195['commentThread']['length']&&this['_updateSuggestionData'](_0x6da820,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x370a99){if(this['_adapter'])throw new _0x592c71('track-changes-adapter-already-set',this);this['_adapter']=_0x370a99;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xfb7038=!0x1,toJSON:_0x18ea73=!0x1}={}){const _0x3c08ea=[];for(const _0x3ac8fb of this['_suggestions']['values']())_0xfb7038&&!_0x3ac8fb['isInContent']||_0x3c08ea['push'](_0x3ac8fb);return _0x18ea73?_0x3c08ea['map'](_0x487d20=>_0x487d20['toJSON']()):_0x3c08ea;}['getSuggestion'](_0x1924c4){const _0xa79362=this['_suggestions']['get'](_0x1924c4);if(!_0xa79362)throw new _0x592c71('track-changes-suggestion-not-found',this);return _0xa79362;}['hasSuggestion'](_0x48d57c){return this['_suggestions']['has'](_0x48d57c);}['addSuggestionData'](_0x28a41d){const {authorId:_0x5d6280,id:_0xb5518f,attributes:_0x94241f}=_0x28a41d,[_0x498abb,_0x4c47e6]=_0x28a41d['type']['split'](':'),_0xf0abc3=this['_suggestions']['get'](_0xb5518f)||this['_createSuggestion'](_0x498abb,_0x4c47e6,_0xb5518f,_0x5d6280,_0x94241f);if(this['_addThreadToSuggestion'](_0xf0abc3),this['_checkSuggestionCorrectness'](_0xf0abc3,_0x498abb,_0x4c47e6||null,_0x5d6280),_0xf0abc3['createdAt']=_0x28a41d['createdAt'],_0xf0abc3['_isDataLoaded']=!0x0,_0x94241f&&_0x94241f['@external']){const _0x407fa7=_0x94241f['@external'],_0x263519=this['_getExternalAuthor'](_0x407fa7['authorName']);_0xf0abc3['authoredAt']=_0x407fa7['createdAt'],_0xf0abc3['author']=_0x263519,_0xf0abc3['isExternal']=!0x0;}else _0xf0abc3['authoredAt']=_0x28a41d['createdAt'];switch(_0x28a41d['data']&&(_0xf0abc3['data']=_0x28a41d['data']),_0x28a41d['attributes']&&(_0xf0abc3['attributes']=_0x28a41d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf0abc3['_saved']=!0x0),this['_suggestionState']['get'](_0xf0abc3)){case'notReady':this['_suggestionState']['set'](_0xf0abc3,'dataReady');break;case'markerReady':_0xf0abc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf0abc3])),this['_refreshSuggestionsChain'](new Set([_0xf0abc3])),this['_suggestionState']['set'](_0xf0abc3,'ready'),this['fire']('suggestionLoaded',_0xf0abc3)):this['_suggestionState']['set'](_0xf0abc3,'removed');}return _0xf0abc3;}['acceptSuggestion'](_0x565b0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x78cd3a of _0x565b0d['getAllAdjacentSuggestions']())_0x78cd3a['accept']();});});}['discardSuggestion'](_0x4ef518){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x135e79 of _0x4ef518['getAllAdjacentSuggestions']())_0x135e79['discard']();});});}['enableCommand'](_0x2f23bf,_0x189779){const _0x4273d1=this['editor']['commands']['get'](_0x2f23bf);if(!_0x4273d1)throw new _0x592c71('track-changes-command-not-found',this,{'commandName':_0x2f23bf});if(this['_enabledCommands']['has'](_0x4273d1))throw new _0x592c71('track-changes-enable-command-twice',this,{'commandName':_0x2f23bf});this['_enabledCommands']['add'](_0x4273d1),_0x189779&&_0x4273d1['on']('execute',(_0x2f149c,_0x342dc7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x342dc7['length']>0x0&&_0x342dc7[_0x342dc7['length']-0x1]&&_0x342dc7[_0x342dc7['length']-0x1]['forceDefaultExecution']?_0x342dc7['pop']():(_0x2f149c['return']=_0x189779((..._0x318ef6)=>_0x4273d1['execute'](..._0x318ef6,{'forceDefaultExecution':!0x0}),..._0x342dc7),_0x2f149c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x428e19){let _0x2856ff,_0x51ab8f;const _0x4b1f9d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2856ff=_0x428e19();}catch(_0x586058){_0x51ab8f=_0x586058;}return _0x4b1f9d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51ab8f&&_0x592c71['rethrowUnexpectedError'](_0x51ab8f,this),_0x2856ff;}['markInsertion'](_0x4fe162,_0x3954e4=null,_0x17a049={}){if(_0x4fe162['isCollapsed'])return null;const _0x48411b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13cc7d,meta:_0x480a49}of this['_findSuggestions'](_0x4fe162,'insertion'))if(_0x480a49['isOwn']){if(!_0x480a49['isNextTo']){if(_0x480a49['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x13cc7d,_0x17a049))continue;return _0x13cc7d;}if(qt(_0x13cc7d,_0x17a049))return _0x13cc7d;this['_breakSuggestionMarker'](_0x13cc7d,_0x4fe162['start'],_0x4fe162['end']);break;}if(_0x3954e4==_0x13cc7d['subType']&&qt(_0x13cc7d,_0x17a049)){const _0x4bd9a6=_0x13cc7d['getFirstRange']();return _0x4bd9a6['start']['isEqual'](_0x4fe162['end'])?this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4fe162['start'],_0x4bd9a6['end'])):this['_setSuggestionRange'](_0x13cc7d,this['_model']['createRange'](_0x4bd9a6['start'],_0x4fe162['end'])),_0x13cc7d;}}const _0x17eefa=_0x2120b6(),_0x24a5b6=_0x48411b['id'],_0x5d7f6b=_0x3954e4?'insertion:'+_0x3954e4:'insertion',_0x22312a=this['_setSuggestionData']({'id':_0x17eefa,'type':_0x5d7f6b,'createdAt':new Date(),'authorId':_0x24a5b6,'attributes':_0x17a049});return this['_addSuggestionMarker'](_0x5d7f6b,_0x17eefa,_0x24a5b6,_0x4fe162),_0x22312a;}['markMultiRangeInsertion'](_0x707e30,_0x2f7c29='multi',_0x5c68b8={}){const _0x439c2a=this['editor']['plugins']['get']('Users')['me'],_0x38437b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f7c29,'join');for(const _0x19d095 of this['getSuggestions']())if(_0x19d095['author']['id']==_0x439c2a['id']&&'insertion'==_0x19d095['type']&&_0x19d095['subType']==_0x2f7c29&&qt(_0x19d095,_0x5c68b8)&&(_0x38437b(_0x19d095['getRanges'](),_0x707e30)||_0x38437b(_0x707e30,_0x19d095['getRanges']()))){for(const _0x45816a of _0x707e30)_0x19d095['addRange'](_0x45816a);return _0x19d095;}for(const {suggestion:_0x2a1c43,meta:_0x23ca16}of this['_findSuggestions'](_0x707e30,'insertion')){if(!_0x23ca16['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23ca16['containsRangeInObject'])continue;if(!qt(_0x2a1c43,_0x5c68b8))continue;let _0x502f9b=!0x0;for(const _0x52176a of _0x2a1c43['getRanges']())for(const _0x5dd700 of _0x707e30)if(!_0x52176a['containsRange'](_0x5dd700)){_0x502f9b=!0x1;break;}if(_0x502f9b)return _0x2a1c43;}const _0xfca8c5=_0x2120b6(),_0x445688=_0x439c2a['id'],_0x35da30='insertion:'+_0x2f7c29,_0x1cea48=this['_setSuggestionData']({'id':_0xfca8c5,'type':_0x35da30,'createdAt':new Date(),'authorId':_0x445688,'attributes':_0x5c68b8});for(const _0x39d9c5 of _0x707e30)this['_addSuggestionMarker'](_0x35da30,_0xfca8c5,_0x445688,_0x39d9c5,u['getMultiRangeId']());return _0x1cea48;}['markInlineFormat'](_0x46115b,_0x1c2a2d,_0x2f50b7=null,_0x37c78a={}){if(_0x2f50b7=_0x2f50b7||Gt(_0x1c2a2d),_0x46115b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x144c7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');return this['forceDefaultExecution'](()=>_0x144c7d([_0x46115b],_0x1c2a2d,_0x37c78a)),null;}const _0x1d5315=this['editor']['plugins']['get']('Users')['me'],_0x39d9c9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28de1b,meta:_0x28592d}of this['_findSuggestions'](_0x46115b,'insertion'))_0x28592d['isOwn']&&!_0x28592d['isInsideObject']&&_0x39d9c9['push'](..._0x28de1b['getRanges']());}const _0x46f233=function(_0x286e32,_0x2bb001){const _0xe9a84d=[];for(const _0x313283 of _0x2bb001){const _0x336989=_0x286e32['getIntersection'](_0x313283);_0x336989&&_0xe9a84d['push'](_0x336989);}return _0xe9a84d;}(_0x46115b,_0x39d9c9),_0x1d7cdd=function(_0x4553ba,_0x341112){const _0x2d8e5c=[_0x4553ba];for(const _0x231dbe of _0x341112){let _0x20e233=0x0;for(;_0x20e233<_0x2d8e5c['length'];){const _0x56367f=_0x2d8e5c[_0x20e233]['getDifference'](_0x231dbe);_0x2d8e5c['splice'](_0x20e233,0x1,..._0x56367f),_0x20e233+=_0x56367f['length'];}}return _0x2d8e5c;}(_0x46115b,_0x39d9c9);_0x46f233['length']&&this['_model']['change'](()=>{for(const _0x15f8de of _0x46f233){const _0x3369be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f50b7,'accept');this['forceDefaultExecution'](()=>_0x3369be([_0x15f8de],_0x1c2a2d,_0x37c78a));}});for(const _0x36fe5d of _0x1d7cdd){let _0x3cd9e7=null,_0x4c2d02=_0x36fe5d['start'],_0x501f26=_0x36fe5d['end'];for(const {suggestion:_0xd9875a,meta:_0x518fc9}of this['_findSuggestions'](_0x36fe5d,'formatInline')){if(!_0x518fc9['isOwn'])continue;if(_0xd9875a['subType']!=_0x2f50b7)continue;if(!qt(_0xd9875a,_0x37c78a))continue;const _0x431a12=_0xd9875a['getFirstRange']();if(_0x431a12['containsRange'](_0x36fe5d,!0x0))return null;_0x4c2d02=_0x4c2d02['isBefore'](_0x431a12['start'])?_0x4c2d02:_0x431a12['start'],_0x501f26=_0x501f26['isAfter'](_0x431a12['end'])?_0x501f26:_0x431a12['end'],_0x3cd9e7?_0x431a12['start']['isBefore'](_0x3cd9e7['getFirstRange']()['start'])?(_0x3cd9e7['removeMarkers'](),_0x3cd9e7=_0xd9875a):_0xd9875a['removeMarkers']():_0x3cd9e7=_0xd9875a;}const _0x87bc1a=this['_model']['createRange'](_0x4c2d02,_0x501f26);if(_0x3cd9e7)this['_setSuggestionRange'](_0x3cd9e7,_0x87bc1a);else{const _0x20cd17=_0x2120b6(),_0x2c944b=_0x1d5315['id'];this['_setSuggestionData']({'id':_0x20cd17,'type':'formatInline:'+_0x2f50b7,'data':_0x1c2a2d,'createdAt':new Date(),'authorId':_0x2c944b,'attributes':_0x37c78a}),this['_addSuggestionMarker']('formatInline:'+_0x2f50b7,_0x20cd17,_0x2c944b,_0x87bc1a);}}return null;}['markBlockFormat'](_0x32beb1,_0x3006e2,_0x25b99e=[],_0x534a31=null,_0x36a503={}){_0x3006e2['formatGroupId']||(_0x3006e2['formatGroupId']=_0x3006e2['commandName']),_0x3006e2['multipleBlocks']=_0x32beb1['is']('range'),_0x534a31=_0x534a31||Gt(_0x3006e2);const _0x823923=_0x25b99e['map'](_0x4caa48=>Lt(_0x4caa48,this['_model'])),_0x3b0137=_0x32beb1['is']('range')?_0x32beb1:Lt(_0x32beb1,this['_model']);if('never'===this['_trackFormatChanges']){const _0xec4af1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0xec4af1([_0x3b0137],_0x3006e2,_0x36a503)),null;}_0x823923['push'](_0x3b0137);let _0x8a5d7c=!0x0;for(const _0x7255c0 of _0x823923)if(!this['_rangeIsInLocalUserInsertion'](_0x7255c0)){_0x8a5d7c=!0x1;break;}if(_0x8a5d7c&&'always'!==this['_trackFormatChanges']){const _0x3d2cbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x534a31,'accept');return this['forceDefaultExecution'](()=>_0x3d2cbc([_0x3b0137],_0x3006e2,_0x36a503)),null;}let _0x3674a9=null,_0x5b426f=_0x3b0137['start'],_0x3c19a0=_0x3b0137['end'];for(const {suggestion:_0x221774,meta:_0x7c5218}of this['_findSuggestions'](_0x3b0137,'formatBlock')){if(!_0x7c5218['isOwn'])continue;if(_0x7c5218['isNextTo']||_0x7c5218['containsRangeInObject']||_0x7c5218['isInsideObject'])continue;if(_0x221774['data']['formatGroupId']!=_0x3006e2['formatGroupId'])continue;if(!qt(_0x221774,_0x36a503))continue;const _0x48fb4a=_0x221774['getFirstRange']();if(_0x221774['subType']==_0x534a31){if(_0x48fb4a['containsRange'](_0x3b0137,!0x0))return null;_0x5b426f=_0x5b426f['isBefore'](_0x48fb4a['start'])?_0x5b426f:_0x48fb4a['start'],_0x3c19a0=_0x3c19a0['isAfter'](_0x48fb4a['end'])?_0x3c19a0:_0x48fb4a['end'],_0x3674a9?_0x48fb4a['start']['isBefore'](_0x3674a9['getFirstRange']()['start'])?(_0x3674a9['removeMarkers'](),_0x3674a9=_0x221774):_0x221774['removeMarkers']():_0x3674a9=_0x221774;}else{const _0x1d3b8c=_0x3b0137['getIntersection'](_0x48fb4a);this['_cutOutSuggestionMarker'](_0x221774,_0x1d3b8c);}}const _0x40170f=this['editor']['plugins']['get']('Users')['me'],_0x3d5041=_0x2120b6(),_0x15699d=_0x40170f['id'];if(_0x3674a9)return this['_setSuggestionRange'](_0x3674a9,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x3674a9;{const _0x326225=this['_setSuggestionData']({'id':_0x3d5041,'type':'formatBlock:'+_0x534a31,'data':_0x3006e2,'createdAt':new Date(),'authorId':_0x15699d,'attributes':_0x36a503});return this['_addSuggestionMarker']('formatBlock:'+_0x534a31,_0x3d5041,_0x15699d,this['_model']['createRange'](_0x5b426f,_0x3c19a0)),_0x326225;}}['markMultiRangeBlockFormat'](_0x261760,_0x23d8bb,_0x12686f=[],_0x3cfedf=null,_0x3fab26={}){_0x23d8bb['formatGroupId']||(_0x23d8bb['formatGroupId']=_0x23d8bb['commandName']);const _0x516dac=_0x261760[0x0];_0x23d8bb['multipleBlocks']=_0x516dac['is']('range'),_0x3cfedf=_0x3cfedf||Gt(_0x23d8bb);const _0x59963f=_0x12686f['map'](_0x1d901e=>Lt(_0x1d901e,this['_model'])),_0x2e61d4=_0x516dac['is']('range')?_0x261760:_0x261760['map'](_0xb59edd=>Lt(_0xb59edd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b4144=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x4b4144(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}_0x59963f['push'](..._0x2e61d4);let _0x25e165=!0x0;for(const _0x4f1891 of _0x59963f)if(!this['_rangeIsInLocalUserInsertion'](_0x4f1891)){_0x25e165=!0x1;break;}if(_0x25e165&&'always'!==this['_trackFormatChanges']){const _0x59b653=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'accept');return this['forceDefaultExecution'](()=>_0x59b653(_0x2e61d4,_0x23d8bb,_0x3fab26)),null;}const _0x12e846=this['editor']['plugins']['get']('Users')['me'];for(const _0x2baeaa of this['getSuggestions']()){if(_0x2baeaa['author']['id']!=_0x12e846['id'])continue;if('formatBlock'!=_0x2baeaa['type']||_0x2baeaa['data']['formatGroupId']!=_0x23d8bb['formatGroupId'])continue;if(!qt(_0x2baeaa,_0x3fab26))continue;const _0x54c94a=_0x2baeaa['subType']==_0x3cfedf;for(let _0x1b26ad=0x0;_0x1b26ad<_0x2e61d4['length'];_0x1b26ad++){const _0x11b721=_0x2e61d4[_0x1b26ad];for(const _0x2cc010 of _0x2baeaa['getMarkers']()){const _0x737d3=_0x2cc010['getRange']();if(_0x11b721['isEqual'](_0x737d3)){_0x54c94a?(_0x2e61d4['splice'](_0x1b26ad,0x1),_0x1b26ad--):_0x2baeaa['removeMarker'](_0x2cc010['name']);break;}}}}if(0x0==_0x2e61d4['length'])return null;const _0x5ef98e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cfedf,'join');for(const _0x34955b of this['getSuggestions']())if(_0x34955b['author']['id']==_0x12e846['id']&&'formatBlock'==_0x34955b['type']&&_0x34955b['data']['formatGroupId']==_0x23d8bb['formatGroupId']&&_0x34955b['subType']==_0x3cfedf&&qt(_0x34955b,_0x3fab26)&&(_0x5ef98e(_0x34955b['getRanges'](),_0x2e61d4)||_0x5ef98e(_0x2e61d4,_0x34955b['getRanges']()))){for(const _0x259949 of _0x2e61d4)_0x34955b['addRange'](_0x259949);return _0x34955b;}const _0x5d3bde=_0x2120b6(),_0x42c404=_0x12e846['id'],_0x6773b8='formatBlock:'+_0x3cfedf,_0x547e43=this['_setSuggestionData']({'id':_0x5d3bde,'type':_0x6773b8,'data':_0x23d8bb,'createdAt':new Date(),'authorId':_0x42c404,'attributes':_0x3fab26});for(const _0x1890b8 of _0x2e61d4)this['_addSuggestionMarker'](_0x6773b8,_0x5d3bde,_0x42c404,_0x1890b8,u['getMultiRangeId']());return _0x547e43;}['markDeletion'](_0x18b338,_0x5704c6=null,_0x5d7536={}){if(_0x18b338['isCollapsed'])return null;const _0x34c5f7=this['editor']['plugins']['get']('Users')['me'],_0x464cad=new _0x411321(_0x18b338['start'],_0x18b338['end']);for(const {suggestion:_0x28e3a6,meta:_0x129a5c}of this['_findSuggestions'](_0x464cad,'insertion'))if(_0x129a5c['isOwn']&&!_0x129a5c['isNextTo']){if(_0x28e3a6['isMultiRange']){const _0x501c40=_0x28e3a6['getRanges']()['filter'](_0x93a0a3=>'$graveyard'!=_0x93a0a3['root']['rootName']);_0x501c40['every'](_0x44fccb=>_0x464cad['containsRange'](_0x44fccb,!0x0))&&_0x28e3a6['discard']();if(_0x501c40['some'](_0x3cfb7c=>_0x3cfb7c['containsRange'](_0x464cad,!0x0))){const _0x54280e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5704c6,'accept');return this['forceDefaultExecution'](()=>_0x54280e([_0x464cad],null,_0x5d7536)),null;}}else{const _0x1e82b4=_0x464cad['getIntersection'](_0x28e3a6['getFirstRange']());null!==_0x1e82b4&&_0x28e3a6['_onDiscard']([_0x1e82b4],null,_0x5d7536);}}if(_0x464cad['detach'](),_0x464cad['isCollapsed']||'$graveyard'==_0x464cad['root']['rootName'])return null;let _0x3bd97f=null,_0x50635f=_0x464cad['start'],_0xb59fcf=_0x464cad['end'];const _0x37ae15=this['_findSuggestions'](_0x464cad,'deletion');for(const {suggestion:_0x91c75d,meta:_0x4cfab0}of _0x37ae15){const _0xac1796=this['_model']['createRange'](_0x50635f,_0xb59fcf);if(_0x4cfab0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4cfab0['containsRangeInObject']&&!_0x4cfab0['isInsideObject'])){if(_0x91c75d['isMultiRange']){if(!qt(_0x91c75d,_0x5d7536))continue;let _0x57308=!0x0;for(const _0x4e8e42 of _0x91c75d['getRanges']()){if(_0x4e8e42['containsRange'](_0xac1796,!0x0))return _0x91c75d;_0xac1796['containsRange'](_0x4e8e42)||(_0x57308=!0x1);}_0x57308&&_0x91c75d['discard']();}else{const _0x3f799f=_0x91c75d['getFirstRange']();if(_0x3f799f['containsRange'](_0xac1796,!0x0))return _0x91c75d;if(!qt(_0x91c75d,_0x5d7536)){_0xac1796['containsRange'](_0x3f799f)?_0x91c75d['removeMarkers']():_0x3f799f['containsPosition'](_0x50635f)?_0x50635f=_0x3f799f['end']:_0x3f799f['containsPosition'](_0xb59fcf)&&(_0xb59fcf=_0x3f799f['start']);continue;}_0x50635f=_0x50635f['isBefore'](_0x3f799f['start'])?_0x50635f:_0x3f799f['start'],_0xb59fcf=_0xb59fcf['isAfter'](_0x3f799f['end'])?_0xb59fcf:_0x3f799f['end'],_0x5d7536=Object['assign']({},_0x91c75d['attributes']),_0x3bd97f?_0x3f799f['start']['isBefore'](_0x3bd97f['getFirstRange']()['start'])?(_0x3bd97f['removeMarkers'](),_0x3bd97f=_0x91c75d):_0x91c75d['removeMarkers']():_0x3bd97f=_0x91c75d;}}}if(_0x3bd97f)return this['_setSuggestionRange'](_0x3bd97f,this['_model']['createRange'](_0x50635f,_0xb59fcf)),_0x3bd97f;{const _0x2477b4=_0x2120b6(),_0x31e305=this['_model']['createRange'](_0x50635f,_0xb59fcf),_0x5dce0e=_0x34c5f7['id'],_0x1e1a62=_0x5704c6?'deletion:'+_0x5704c6:'deletion',_0x564ab1=this['_setSuggestionData']({'id':_0x2477b4,'type':_0x1e1a62,'createdAt':new Date(),'authorId':_0x5dce0e,'attributes':_0x5d7536});return this['_addSuggestionMarker'](_0x1e1a62,_0x2477b4,_0x5dce0e,_0x31e305),_0x564ab1;}}['markMultiRangeDeletion'](_0x4b953a,_0x2f7a95='multi',_0x44e4dc={}){const _0x220806=this['editor']['plugins']['get']('Users')['me'],_0x5f50fd=_0x4b953a['map'](_0x1289fc=>new _0x411321(_0x1289fc['start'],_0x1289fc['end'])),_0x22bacb=new Set();for(const {suggestion:_0x2a3ea6,meta:_0x2054c4}of this['_findSuggestions'](_0x5f50fd,'insertion'))_0x2054c4['isOwn']&&!_0x2054c4['isNextTo']&&_0x22bacb['add'](_0x2a3ea6);for(const _0x576d15 of _0x22bacb)if(_0x576d15['isMultiRange']){const _0x32be5f=_0x576d15['getRanges']();(!_0x576d15['attributes']||!_0x576d15['attributes']['skipNestingCheck'])&&(_0x32be5f['every'](_0x4969d7=>_0x5f50fd['some'](_0x55fb6e=>_0x55fb6e['containsRange'](_0x4969d7,!0x0)))&&_0x576d15['discard']());if(_0x5f50fd['every'](_0x51e731=>_0x32be5f['some'](_0x23791f=>_0x23791f['containsRange'](_0x51e731,!0x0)))){const _0x1ab342=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x1ab342(_0x4b953a,null,_0x44e4dc)),null;}}else{const _0x4135ce=_0x576d15['getFirstRange']();_0x5f50fd['some'](_0x4667ed=>_0x4667ed['containsRange'](_0x4135ce,!0x0))&&_0x576d15['discard']();if(_0x5f50fd['every'](_0x3faf3c=>_0x4135ce['containsRange'](_0x3faf3c,!0x0))){const _0x54abfd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'accept');return this['forceDefaultExecution'](()=>_0x54abfd(_0x5f50fd,null,_0x44e4dc)),null;}}const _0x4adec6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f7a95,'join');let _0x1774e7=null;for(const _0x3c6a55 of this['getSuggestions']())if(_0x3c6a55['author']['id']==_0x220806['id']&&_0x3c6a55['isInContent']&&'deletion'==_0x3c6a55['type']&&_0x3c6a55['subType']==_0x2f7a95&&qt(_0x3c6a55,_0x44e4dc)&&(_0x4adec6(_0x3c6a55['getRanges'](),_0x5f50fd)||_0x4adec6(_0x5f50fd,_0x3c6a55['getRanges']()))){if(_0x1774e7){if(_0x3c6a55['commentThread']&&_0x3c6a55['commentThread']['length'])continue;for(const _0x1e5bd4 of _0x3c6a55['getRanges']())_0x1774e7['isIntersectingWithRange'](_0x1e5bd4)||_0x1774e7['addRange'](_0x1e5bd4);_0x3c6a55['removeMarkers']();}else{_0x1774e7=_0x3c6a55;for(const _0x33b69e of _0x5f50fd)_0x3c6a55['isIntersectingWithRange'](_0x33b69e)||_0x3c6a55['addRange'](_0x33b69e);}}if(_0x1774e7)return _0x1774e7;_0x22bacb['clear']();for(const {suggestion:_0x288fd5,meta:_0xa1ce24}of this['_findSuggestions'](_0x5f50fd,'deletion'))_0xa1ce24['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa1ce24['containsRangeInObject']&&!_0xa1ce24['isInsideObject'])&&qt(_0x288fd5,_0x44e4dc)&&_0x22bacb['add'](_0x288fd5);for(const _0x4d4425 of _0x22bacb){const _0x47afb6=_0x4d4425['getRanges']();if(!_0x44e4dc||!_0x44e4dc['skipNestingCheck']){if(_0x5f50fd['every'](_0x5944c1=>_0x47afb6['some'](_0x45af5d=>_0x45af5d['containsRange'](_0x5944c1,!0x0))))return _0x4d4425;}(!_0x4d4425['attributes']||!_0x4d4425['attributes']['skipNestingCheck'])&&(_0x47afb6['every'](_0x18ca5c=>_0x5f50fd['some'](_0x530c94=>_0x530c94['containsRange'](_0x18ca5c,!0x0)))&&_0x4d4425['discard']());}const _0x2c1391=_0x2120b6(),_0x14f6b3=_0x220806['id'],_0x289763='deletion:'+_0x2f7a95,_0x13af14=this['_setSuggestionData']({'id':_0x2c1391,'type':_0x289763,'createdAt':new Date(),'authorId':_0x14f6b3,'attributes':_0x44e4dc});for(const _0xdc06cc of _0x5f50fd)_0xdc06cc['detach'](),_0xdc06cc['isCollapsed']||'$graveyard'==_0xdc06cc['root']['rootName']||this['_addSuggestionMarker'](_0x289763,_0x2c1391,_0x14f6b3,_0xdc06cc,u['getMultiRangeId']());return _0x13af14;}['markAttributeChange'](_0x11f34d,_0x785186,_0x2a5695,_0x2633ea,_0x8cf619){if(_0x11f34d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17b8e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x42b46d=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2df8=>'attribute'==_0x5b2df8['type']&&_0x5b2df8['data']['key']==_0x785186&&_0x5b2df8['isIntersectingWithRange'](_0x11f34d));if('default'===this['_trackFormatChanges']){const _0x5673b9=this['_findSuggestions'](_0x11f34d,'insertion')['filter'](({meta:_0x110b29})=>_0x110b29['isOwn']&&!_0x110b29['isInsideObject']&&!_0x110b29['isNextTo'])['map'](({suggestion:_0x196a07})=>_0x196a07);_0x42b46d['unshift'](..._0x5673b9);}const _0x105b33=new Map([[_0x11f34d,_0x2a5695]]);for(const _0x147759 of _0x42b46d){const _0x5e9fe6='attribute'==_0x147759['type']?_0x147759['data']['oldValue']:void 0x0,_0x391698=_0x147759['getFirstRange'](),_0xe687c3=Array['from'](_0x105b33['keys']())['find'](_0x2ce3bc=>_0x2ce3bc['isIntersecting'](_0x391698));if(!_0xe687c3)continue;const _0x5905f5=_0xe687c3['getDifference'](_0x391698);this['_isBlockAttribute'](_0x785186)&&'insertion'==_0x147759['type']&&0x0!=_0x5905f5['length']||(_0x105b33['delete'](_0xe687c3),_0x5905f5['forEach'](_0x4f9ec8=>{_0x105b33['set'](_0x4f9ec8,_0x2a5695);}),'insertion'!=_0x147759['type']&&_0x5e9fe6!=_0x2633ea&&_0x105b33['set'](_0xe687c3['getIntersection'](_0x391698),_0x5e9fe6));}const _0x18776e=[];for(const [_0x1a38b7,_0x4ef695]of _0x105b33){const _0x255aab=_0x2120b6(),_0x241e41={'key':_0x785186,'oldValue':_0x4ef695,'newValue':_0x2633ea};_0x785186['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':_0x785186});const _0xc013f6=('attribute:'+(_0x785186+'|'+Gt({'newValue':_0x2633ea})))['substring'](0x0,0x3c),_0x1b0b95=this['_setSuggestionData']({'id':_0x255aab,'type':_0xc013f6,'data':_0x241e41,'createdAt':new Date(),'authorId':_0x17b8e5,'attributes':_0x8cf619});_0x18776e['push'](_0x1b0b95),this['_addSuggestionMarker'](_0xc013f6,_0x255aab,_0x17b8e5,_0x1a38b7);}return _0x18776e;}['enableDefaultAttributesIntegration'](_0x4cb764){this['enableCommand'](_0x4cb764,(_0x1fc32f,..._0x5cc102)=>{this['_recordAttributeChanges'](()=>{_0x1fc32f(..._0x5cc102);});});}['registerBlockAttribute'](_0x34519a){this['_blockAttributeKeys']['add'](_0x34519a);}['registerInlineAttribute'](_0x2159dd){this['_inlineAttributeKeys']['add'](_0x2159dd);}['_getAttributeKey'](_0x257cb9){return'attribute'==_0x257cb9['type']?_0x257cb9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57b8e4,_0x2b0ed5){const _0xdbc1ad=_0x57b8e4['getFirstMarker']();this['_model']['change'](_0xc7b37a=>{_0xc7b37a['updateMarker'](_0xdbc1ad,{'range':_0x2b0ed5});});}['_addThreadToSuggestion'](_0x3af45b){const _0x198814=_0x3af45b['id'],_0xe1f133=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x198814)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe1f133,'threadId':_0x198814,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e0d0e=this['_commentsRepository']['getCommentThread'](_0x198814);_0x4e0d0e['unbind']('isRemovable'),_0x4e0d0e['isRemovable']=!0x1,_0x3af45b['commentThread']=_0x4e0d0e;}['_checkSuggestionCorrectness'](_0x56d385,_0x240074,_0x548fd4,_0x5b702a){if(_0x56d385['type']!=_0x240074||_0x56d385['subType']!=_0x548fd4||_0x56d385['creator']['id']!=_0x5b702a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x592c71('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x352d13,_0x187c2c){const _0x5b75e4=_0x352d13['getFirstRange']();if(_0x187c2c['isEqual'](_0x5b75e4))_0x352d13['removeMarkers']();else{if(_0x5b75e4['containsRange'](_0x187c2c)){const _0x57e707=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x57e707));const _0x1d029c=_0x2120b6(),_0x57b3d1=_0x352d13['creator']['id'],_0x39ffc5=_0x352d13['type']+':'+_0x352d13['subType'];this['_setSuggestionData']({'id':_0x1d029c,'type':_0x39ffc5,'createdAt':new Date(),'authorId':_0x57b3d1,'data':_0x352d13['data'],'attributes':_0x352d13['attributes']});const _0x929847=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after'),_0x1d19e2=this['_model']['createRange'](_0x929847,_0x5b75e4['end']);this['_addSuggestionMarker'](_0x39ffc5,_0x1d029c,_0x57b3d1,_0x1d19e2);}else{if(_0x5b75e4['containsPosition'](_0x187c2c['start'])){const _0x36338e=this['_model']['createPositionAt'](_0x187c2c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x5b75e4['start'],_0x36338e));}else{const _0x2ef650=this['_model']['createPositionAt'](_0x187c2c['end']['parent'],'after');this['_setSuggestionRange'](_0x352d13,this['_model']['createRange'](_0x2ef650,_0x5b75e4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x94f82e){for(const {suggestion:_0x35ab91,meta:_0x4bff2c}of this['_findSuggestions'](_0x94f82e,'insertion')){if(!_0x4bff2c['isOwn'])continue;const _0x3dc1be=_0x35ab91['getRanges']();for(const _0x53b8d7 of _0x3dc1be)if(!_0x94f82e['getDifference'](_0x53b8d7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3a945b){const _0x515101=this['editor']['plugins']['get']('Users')['getUser'](_0x3a945b);if(!_0x515101)throw new _0x592c71('track-changes-user-not-found',this);return _0x515101;}['_getExternalAuthor'](_0x242697){const _0x4cadfb=this['editor']['plugins']['get']('Users'),_0x5b11f7=_0x39b023('external:'+_0x242697),_0x694e06=_0x4cadfb['getUser'](_0x5b11f7);return _0x694e06||_0x4cadfb['addUser']({'id':_0x5b11f7,'name':_0x242697});}['_createSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x16560e,_0x5b9271){const _0x54d8ba=this['_getAuthorFromId'](_0x16560e),_0x3bcd39=this['_suggestionFactory']['buildSuggestion'](_0x3d0c10,_0x150d9d,_0x269d76,_0x54d8ba,_0x5b9271,_0x5d9c67=>{this['_updateSuggestionData'](_0x269d76,{'attributes':_0x5d9c67});const _0x4bcaab=this['getSuggestion'](_0x269d76);this['_joinWithAdjacentSuggestions'](new Set([_0x4bcaab])),this['_refreshSuggestionsChain'](new Set([_0x4bcaab]));});return this['listenTo'](_0x3bcd39,'accept',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3bcd39,'discard',()=>{this['_updateSuggestionData'](_0x269d76,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x269d76,_0x3bcd39),this['_suggestionState']['set'](_0x3bcd39,'notReady'),_0x3bcd39;}['_splitMarkerName'](_0x347965){const _0x559a0a=_0x347965['split'](':');return{'group':_0x559a0a[0x0],'type':_0x559a0a[0x1],'subType':_0x559a0a['length']>=0x5?_0x559a0a[0x2]:null,'id':_0x559a0a['length']<0x5?_0x559a0a[0x2]:_0x559a0a[0x3],'authorId':_0x559a0a['length']<0x5?_0x559a0a[0x3]:_0x559a0a[0x4],'markerCount':0x6==_0x559a0a['length']?_0x559a0a[0x5]:null};}['_breakSuggestionMarker'](_0xe3b0d2,_0x1df6ce,_0x3860cf){const _0x5454d7=_0xe3b0d2['getFirstRange'](),_0x4dd6a9=_0x5454d7['start'],_0x20ccac=_0x5454d7['end'];this['_setSuggestionRange'](_0xe3b0d2,this['_model']['createRange'](_0x4dd6a9,_0x1df6ce));const _0x53ca2f=_0x2120b6(),_0x57a6d7=_0xe3b0d2['creator']['id'],_0x38d079=_0xe3b0d2['type']+(_0xe3b0d2['subType']?':'+_0xe3b0d2['subType']:'');this['_setSuggestionData']({'id':_0x53ca2f,'type':_0x38d079,'createdAt':new Date(),'authorId':_0x57a6d7,'originalSuggestionId':_0xe3b0d2['id'],'attributes':_0xe3b0d2['attributes'],'data':_0xe3b0d2['data']});const _0x5e814d=this['_getAttributeKey'](_0xe3b0d2);('formatBlock'==_0xe3b0d2['type']||_0x5e814d&&this['_isBlockAttribute'](_0x5e814d))&&(_0x3860cf=this['_model']['createPositionBefore'](_0x3860cf['parent'])),this['_addSuggestionMarker'](_0x38d079,_0x53ca2f,_0x57a6d7,this['_model']['createRange'](_0x3860cf,_0x20ccac));}['_findSuggestions'](_0x50daf9,_0x5e7d4e=null){const _0x48e2c0=[],_0x52cd3a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50daf9)||(_0x50daf9=[_0x50daf9]);for(const _0x5ee201 of this['getSuggestions']()){if(!_0x5ee201['isInContent'])continue;if(_0x5e7d4e&&_0x5ee201['type']!=_0x5e7d4e)continue;let _0x4fc414=!0x1;for(const _0x58aabd of _0x5ee201['getRanges']()){for(const _0x2ec2c9 of _0x50daf9){const _0x211d08=_0x2ec2c9['start']['isEqual'](_0x58aabd['end'])||_0x2ec2c9['end']['isEqual'](_0x58aabd['start']);if(_0x211d08||_0x2ec2c9['getIntersection'](_0x58aabd)){const _0x4bbee8=_0x2ec2c9['containsRange'](_0x58aabd)&&Ot(this['_model']['schema'],_0x58aabd['start'],_0x2ec2c9),_0x123d3f=_0x58aabd['containsRange'](_0x2ec2c9)&&Ot(this['_model']['schema'],_0x2ec2c9['start'],_0x58aabd);_0x48e2c0['push']({'suggestion':_0x5ee201,'meta':{'isOwn':_0x52cd3a==_0x5ee201['author'],'isNextTo':_0x211d08,'isInsideObject':_0x4bbee8,'containsRangeInObject':_0x123d3f}}),_0x4fc414=!0x0;break;}}if(_0x4fc414)break;}}return _0x48e2c0;}['_addSuggestionMarker'](_0x3a16fd,_0x15d34a,_0x4e22f7,_0x6d4d8d,_0x215da8){this['_model']['change'](_0x518cc0=>{let _0x101692='suggestion:'+_0x3a16fd+':'+_0x15d34a+':'+_0x4e22f7;_0x215da8&&(_0x101692=_0x101692+':'+_0x215da8),_0x518cc0['addMarker'](_0x101692,{'range':_0x6d4d8d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x28a2d7){const _0x3da5fa=_0x28a2d7['previous'],_0x211fa5=_0x28a2d7['next'];_0x28a2d7['previous']=null,_0x28a2d7['next']=null,null!=_0x3da5fa&&_0x3da5fa['next']==_0x28a2d7&&(_0x3da5fa['next']=_0x211fa5),null!=_0x211fa5&&_0x211fa5['previous']==_0x28a2d7&&(_0x211fa5['previous']=_0x3da5fa),'ready'==this['_suggestionState']['get'](_0x28a2d7)&&(this['_suggestionState']['set'](_0x28a2d7,'removed'),this['fire']('suggestionUnloaded',_0x28a2d7,_0x3da5fa,_0x211fa5));}['_setSuggestionData'](_0x46cabc){const _0x3061bc=_0x46cabc['id'],_0x183c65=this['addSuggestionData'](_0x46cabc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x155e19=this['editor']['plugins']['get']('PendingActions'),_0x33553e=_0x183c65['hasComments'],_0x3f4015=_0x183c65['subType']?_0x183c65['type']+':'+_0x183c65['subType']:_0x183c65['type'],_0x55363e=this['editor']['locale'],_0x16c921=_0x155e19['add'](o(_0x55363e,'PENDING_ACTION_SUGGESTION')),_0x57643e={'id':_0x3061bc,'type':_0x3f4015,'hasComments':_0x33553e,'data':_0x46cabc['data']||null,'originalSuggestionId':_0x46cabc['originalSuggestionId']||null,'attributes':_0x183c65['attributes']};this['_adapter']['addSuggestion'](_0x57643e)['then'](_0x24e0d5=>{_0x183c65['_saved']=!0x0,_0x155e19['remove'](_0x16c921),_0x24e0d5&&_0x24e0d5['createdAt']&&(this['_suggestions']['get'](_0x3061bc)['createdAt']=_0x24e0d5['createdAt']);})['catch'](_0x4134cc=>{throw _0x250a6e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x183c65['discard']();}),_0x183c65['stopListening'](),this['_suggestions']['delete'](_0x183c65['id']),this['_suggestionState']['delete'](_0x183c65),_0x4134cc;});}return _0x183c65;}['_isBlockAttribute'](_0x47c99a){return this['_blockAttributeKeys']['has'](_0x47c99a);}['_updateSuggestionData'](_0x33f2a5,_0x142c23){const _0xdde74d=this['editor']['plugins']['get']('PendingActions'),_0x110687=this['getSuggestion'](_0x33f2a5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x110687['_saved']){const _0x4487fd=_0xdde74d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33f2a5,_0x142c23)['then'](()=>{_0xdde74d['remove'](_0x4487fd);});}else _0x110687['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33f2a5,_0x142c23);});}}['_getSuggestionData'](_0x1b6e76){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x592c71('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b6e76);}['_handleNewSuggestionMarker'](_0x386f6b){const {id:_0x53ceee,type:_0x2feba2,subType:_0x2f4adf,authorId:_0x399048}=this['_splitMarkerName'](_0x386f6b),_0x43e191=this['_suggestions']['get'](_0x53ceee)||this['_createSuggestion'](_0x2feba2,_0x2f4adf,_0x53ceee,_0x399048,{});switch(this['_checkSuggestionCorrectness'](_0x43e191,_0x2feba2,_0x2f4adf,_0x399048),this['_suggestionState']['get'](_0x43e191)){case'notReady':this['_getSuggestionData'](_0x53ceee)['then'](_0x55d882=>{let _0x2c5e4d=Promise['resolve']();_0x55d882['hasComments']&&(_0x2c5e4d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53ceee})),_0x2c5e4d['then'](()=>{this['addSuggestionData'](_0x55d882)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43e191,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53ceee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43e191,'ready'),this['fire']('suggestionLoaded',_0x43e191);break;case'ready':this['fire']('suggestionChanged',_0x43e191);}return _0x43e191['addMarkerName'](_0x386f6b),_0x43e191;}['_refreshSuggestionsChain'](_0x5e2417){const _0x3efd56=Array['from'](_0x5e2417),_0x31a68e=_0x3efd56['filter'](_0x413841=>'attribute'==_0x413841['type']);this['_refreshAttributeSuggestionsChain'](_0x31a68e);const _0x82349c=_0x3efd56['filter'](_0x1ed406=>!_0x1ed406['isMultiRange']&&'attribute'!=_0x1ed406['type']),_0x5d0429=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f6e2=>!_0x17f6e2['isMultiRange']&&'attribute'!=_0x17f6e2['type']),_0x50d36e=_0x5d0429['filter'](_0x1c4f29=>!_0x5e2417['has'](_0x1c4f29)),_0x2e3c0f=new Map(_0x5d0429['map'](_0x243722=>[_0x243722,this['_suggestionFactory']['getSuggestionCallback'](_0x243722['type'],_0x243722['subType'],'chain')])),_0x3e0a57=new Map(_0x5d0429['map'](_0x12f107=>[_0x12f107,_0x12f107['getFirstRange']()])),_0x147f24=new Set(),_0x2c2bd8=new Set();for(let _0xbded26=0x0;_0xbded26<_0x82349c['length'];_0xbded26++)_0x4e5012(_0x82349c[_0xbded26],_0x82349c,_0xbded26+0x1);for(let _0x5d4b9f=0x0;_0x5d4b9f<_0x82349c['length'];_0x5d4b9f++)_0x4e5012(_0x82349c[_0x5d4b9f],_0x50d36e,0x0);const _0x494132=new Set();for(let _0x31c6d7=0x0;_0x31c6d7<_0x82349c['length'];_0x31c6d7++){const _0x1dfb34=_0x82349c[_0x31c6d7];!_0x2c2bd8['has'](_0x1dfb34)&&_0x1dfb34['previous']&&(_0x494132['add'](_0x1dfb34['previous']),_0x1dfb34['previous']['next']===_0x1dfb34&&(_0x1dfb34['previous']['next']=null),_0x1dfb34['previous']=null),!_0x147f24['has'](_0x1dfb34)&&_0x1dfb34['next']&&(_0x494132['add'](_0x1dfb34['next']),_0x1dfb34['next']['previous']===_0x1dfb34&&(_0x1dfb34['next']['previous']=null),_0x1dfb34['next']=null);}function _0x4e5012(_0x2a9657,_0x3f1958,_0x11e289){for(let _0x5255a1=_0x11e289;_0x5255a1<_0x3f1958['length'];_0x5255a1++){const _0x2e1b64=_0x481413(_0x2a9657,_0x3f1958[_0x5255a1]);_0x2e1b64&&(_0x2e1b64[0x0]['next']=_0x2e1b64[0x1],_0x2e1b64[0x1]['previous']=_0x2e1b64[0x0],_0x147f24['add'](_0x2e1b64[0x0]),_0x2c2bd8['add'](_0x2e1b64[0x1]));}}function _0x481413(_0x4dfd6a,_0x3c2a33){if(_0x4dfd6a['author']['id']!==_0x3c2a33['author']['id'])return null;const _0x16c9e5=_0x2e3c0f['get'](_0x4dfd6a)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33));if(!_0x16c9e5)return null;return _0x2e3c0f['get'](_0x3c2a33)(_0x4dfd6a,_0x3c2a33,_0x3e0a57['get'](_0x4dfd6a),_0x3e0a57['get'](_0x3c2a33))?_0x16c9e5[0x1]['commentThread']&&_0x16c9e5[0x1]['commentThread']['length']?null:_0x16c9e5:null;}_0x494132['size']&&this['_refreshSuggestionsChain'](_0x494132);}['_refreshAttributeSuggestionsChain'](_0xfe1a18){if(0x0==_0xfe1a18['length'])return;const _0x3e34e9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15f4ee=>'attribute'==_0x15f4ee['type']&&_0x15f4ee['_isDataLoaded']),_0x15f665=[],_0x129307=new Map();for(const _0x529186 of _0x3e34e9){const _0x6a3a64=_0x39b023(_0x529186['attributes']);_0x129307['has'](_0x6a3a64)||(_0x129307['set'](_0x6a3a64,_0x15f665['length']),_0x15f665['push']([]));const _0x2064fa=_0x129307['get'](_0x6a3a64);_0x15f665[_0x2064fa]['push'](_0x529186);}!(function(){_0x15f665['sort']((_0x16bac5,_0x3059d1)=>{const _0xb47814=_0x16bac5[0x0]['createdAt'],_0x3b8277=_0x3059d1[0x0]['createdAt'];return _0xb47814==_0x3b8277?_0x16bac5[0x0]['attributes']['groupId']<_0x3059d1[0x0]['attributes']['groupId']?-0x1:0x1:_0xb47814<_0x3b8277?-0x1:0x1;});for(const _0x5e26a3 of _0x15f665)_0x5e26a3['sort']((_0x2d5edb,_0x11f6be)=>_0x2d5edb['id']<_0x11f6be['id']?-0x1:0x1);}());for(let _0x1894e3=0x0;_0x1894e3<_0x15f665['length'];_0x1894e3++){if(0x0==_0x15f665[_0x1894e3]['length'])continue;const _0x755022=[];for(let _0x16a22b=_0x1894e3+0x1;_0x16a22b<_0x15f665['length'];_0x16a22b++)0x0!=_0x15f665[_0x16a22b]['length']&&_0x183422(_0x15f665[_0x1894e3],_0x15f665[_0x16a22b])&&_0x755022['push'](_0x16a22b);for(const _0x42b4c0 of _0x755022)_0x15f665[_0x1894e3]=_0x15f665[_0x1894e3]['concat'](_0x15f665[_0x42b4c0]),_0x15f665[_0x42b4c0]=[];}for(const _0x22dc5e of _0x15f665)for(let _0x1e4b53=0x0;_0x1e4b53<_0x22dc5e['length'];_0x1e4b53++){const _0x233e5f=_0x22dc5e[_0x1e4b53+0x1]||null;_0x22dc5e[_0x1e4b53]['next']!==_0x233e5f&&(_0x22dc5e[_0x1e4b53]['next']=_0x233e5f);}for(const _0x51e2c3 of _0x15f665)for(let _0xd5805=0x0;_0xd5805<_0x51e2c3['length'];_0xd5805++){const _0x5f5dec=_0x51e2c3[_0xd5805-0x1]||null;_0x51e2c3[_0xd5805]['previous']!==_0x5f5dec&&(_0x51e2c3[_0xd5805]['previous']=_0x5f5dec);}function _0x183422(_0x3adb8b,_0x2f233a){if(_0x3adb8b[0x0]['attributes']['groupId']!==_0x2f233a[0x0]['attributes']['groupId']&&_0x3adb8b[0x0]['author']!==_0x2f233a[0x0]['author'])return!0x1;if(!function(_0x3a3361,_0x423d32){if(!_0x3a3361['hasComments']&&!_0x423d32['hasComments'])return!0x0;if(_0x3a3361['hasComments']&&_0x423d32['hasComments'])return!0x1;if(_0x3a3361['hasComments']&&_0x423d32['createdAt']<_0x3a3361['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x423d32['hasComments']&&_0x3a3361['createdAt']<_0x423d32['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3adb8b[0x0],_0x2f233a[0x0]))return!0x1;const _0x56b4bc=Tt(_0x3adb8b[0x0]['attributes'],'groupId'),_0x2269de=Tt(_0x2f233a[0x0]['attributes'],'groupId');if(!_0x41747e(_0x56b4bc,_0x2269de))return!0x1;return!!_0x3adb8b['every'](_0x5b321=>_0x2f233a['some'](_0x2d97b4=>_0x5b321['getFirstRange']()['isEqual'](_0x2d97b4['getFirstRange']())))&&_0x2f233a['every'](_0x37fb13=>_0x3adb8b['some'](_0x30b27f=>_0x37fb13['getFirstRange']()['isEqual'](_0x30b27f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b7308){const _0x54d831=Array['from'](_0x1b7308),_0x515ef0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c29d9=_0x515ef0['filter'](_0x24b5d6=>!_0x1b7308['has'](_0x24b5d6)),_0xa160cb=new Map(_0x54d831['map'](_0x2be3a6=>[_0x2be3a6,this['_suggestionFactory']['getSuggestionCallback'](_0x2be3a6['type'],_0x2be3a6['subType'],'join')])),_0x4081ab=new Map(_0x515ef0['map'](_0x4b3134=>[_0x4b3134,_0x4b3134['getRanges']()]));for(let _0x42dbab=0x0;_0x42dbab<_0x54d831['length'];_0x42dbab++){if(_0x356fae(this,_0x54d831[_0x42dbab],_0x54d831,_0x42dbab+0x1))return!0x0;}for(let _0x32c71c=0x0;_0x32c71c<_0x54d831['length'];_0x32c71c++){if(_0x356fae(this,_0x54d831[_0x32c71c],_0x4c29d9,0x0))return!0x0;}return!0x1;function _0x356fae(_0x12f9a8,_0x37b924,_0x5a8218,_0x1ac00b){for(let _0x3b90c4=_0x1ac00b;_0x3b90c4<_0x5a8218['length'];_0x3b90c4++){const _0x29091f=_0x5a8218[_0x3b90c4];if(_0x29091f['type']!==_0x37b924['type']||_0x29091f['author']['id']!==_0x37b924['author']['id']||_0x29091f['subType']!==_0x37b924['subType'])continue;if(!Jt(_0x37b924,_0x29091f))continue;if('attribute'==_0x37b924['type']&&_0x37b924['data']['oldValue']!=_0x29091f['data']['oldValue'])continue;if('attribute'==_0x37b924['type']&&_0x12f9a8['_isBlockAttribute'](_0x37b924['data']['key']))continue;if('formatBlock'==_0x37b924['type']){const _0x4d64ca=_0x12f9a8['editor']['model'],_0x9eb9da=_0x37b924['getContainedElement']();if(_0x9eb9da&&(_0x4d64ca['schema']['isObject'](_0x9eb9da)||_0x4d64ca['schema']['isLimit'](_0x9eb9da)))continue;}const _0x5dbcda=_0xa160cb['get'](_0x37b924),_0x47453d=_0x4081ab['get'](_0x37b924),_0x173868=_0x4081ab['get'](_0x29091f),_0x387409=_0x37b924['commentThread']&&_0x37b924['commentThread']['length'],_0xaa2dd9=_0x29091f['commentThread']&&_0x29091f['commentThread']['length'];if(!_0x387409&&_0x5dbcda(_0x173868,_0x47453d))return _0x12f9a8['_joinSuggestions'](_0x29091f,_0x37b924),_0x4081ab['delete'](_0x37b924),!0x0;if(!_0xaa2dd9&&_0x5dbcda(_0x47453d,_0x173868))return _0x12f9a8['_joinSuggestions'](_0x37b924,_0x29091f),_0x4081ab['delete'](_0x29091f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f462f,_0x180113){if(_0x5f462f['isMultiRange']){for(const _0x5e511f of _0x180113['getRanges']())_0x5f462f['addRange'](_0x5e511f);}else{const _0x5c012f=_0x180113['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f462f,this['_model']['createRange'](_0x5f462f['getFirstRange']()['start'],_0x5c012f));}_0x180113['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c3cf5,_0x401490,_0x56108d){const _0x15f23d=_0x5c3cf5['startsWith']('format')||_0x5c3cf5['startsWith']('attribute')?'FORMATTING':_0x5c3cf5['toUpperCase']();return o(this['editor']['locale'],_0x401490+'_'+_0x15f23d+'_SUGGESTION_ANNOUNCEMENT',_0x56108d);}['_initAriaMarkerChangeAnnouncements'](){const _0x232e26=this['editor'];if(!_0x232e26['ui'])return;const {ariaLiveAnnouncer:_0x1dc38d}=_0x232e26['ui'];_0x87cbf2(this['_model'],({left:_0x17c58f,entered:_0x57b554})=>{for(const _0x47f397 of _0x17c58f){const {group:_0x56df8b,type:_0x4041d3}=this['_splitMarkerName'](_0x47f397['name']);if('suggestion'===_0x56df8b){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x4041d3,'LEAVE'));break;}}for(const _0xd45019 of _0x57b554){const {group:_0x397589,type:_0x353524}=this['_splitMarkerName'](_0xd45019['name']);if('suggestion'===_0x397589){_0x1dc38d['announce'](this['_getMarkerAnnouncementText'](_0x353524,'ENTER',_0xbe6bf3(_0x4b35c3)));break;}}});}['_processAttributeChanges'](_0x2179bf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2d5350=this['editor'],_0x1e168b=_0x2d5350['model']['document']['differ']['getChanges']();if(0x0==_0x1e168b['length'])return!0x1;const _0x45525f=[],_0x3d220f=_0x1e168b['filter'](_0xb7d5cf=>'attribute'==_0xb7d5cf['type']),_0xd38a97=_0x1e168b['filter'](_0x1d4a93=>'insert'==_0x1d4a93['type']&&'$text'!=_0x1d4a93['name']),_0x5257c2=_0x1e168b['filter'](_0xc1e130=>'remove'==_0xc1e130['type']&&'$text'!=_0xc1e130['name']);for(const _0x299e52 of _0x3d220f)_0x45525f['push']({'key':_0x299e52['attributeKey'],'newValue':_0x299e52['attributeNewValue'],'oldValue':_0x299e52['attributeOldValue'],'range':Pt(_0x299e52['range'],_0x2d5350['model'])});for(const _0x2bcdd7 of _0xd38a97){const _0x235dc7=_0x5257c2['find'](_0x47a0e6=>_0x47a0e6['position']['isEqual'](_0x2bcdd7['position']));_0x235dc7&&_0x45525f['push']({'key':m,'newValue':_0x2bcdd7['name'],'oldValue':_0x235dc7['name'],'range':_0x2d5350['model']['createRangeOn'](_0x2bcdd7['position']['nodeAfter'])});}return 0x0!=_0x45525f['length']&&this['_reduceExistingSuggestions'](_0x2179bf,_0x45525f);}['_processAttributeSuggestions'](_0x304fe6){let _0x1b9cef=!0x1;const _0x2bbb5e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4984c7=>_0x4984c7['data']['newRange']&&_0x4984c7['name']['startsWith']('suggestion:attribute:'));for(const _0x8fbfb9 of _0x2bbb5e){const {subType:_0x20c2c7,id:_0x45dca6}=this['_splitMarkerName'](_0x8fbfb9['name']),_0xedcc0=_0x20c2c7['split']('|')[0x0];for(const _0x1b1b51 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b1b51['id']!=_0x45dca6&&'attribute'==_0x1b1b51['type']&&_0x1b1b51['data']&&_0x1b1b51['data']['key']==_0xedcc0&&_0x1b1b51['getFirstRange']()['isIntersecting'](_0x8fbfb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b1b51,_0x8fbfb9['data']['newRange'],_0x304fe6),_0x1b9cef=!0x0);}return _0x1b9cef;}['_recordAttributeChanges'](_0x47b073){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x47b073();}['_isRegisteredAttribute'](_0x3d937f){const _0x372188=this['_isBlockAttribute'](_0x3d937f),_0x5a67cd=this['_inlineAttributeKeys']['has'](_0x3d937f);return _0x372188||_0x5a67cd;}['_reduceExistingSuggestions'](_0x8be1bc,_0x7505d8){if(0x0==_0x7505d8['length'])return!0x1;let _0xfe407=!0x1;for(const _0x24a65a of _0x7505d8){const _0x5f4f12=this['_findSuggestions'](_0x24a65a['range'],'attribute')['filter'](_0x34d0a9=>!_0x34d0a9['meta']['isNextTo'])['map'](_0x5d2c85=>_0x5d2c85['suggestion']),_0x3f1063=_0x39b023({'newValue':_0x24a65a['newValue']});_0x5f4f12['filter'](_0x3ef3cc=>{const [_0x49a9f,_0x4074b6]=_0x3ef3cc['subType']['split']('|');return _0x49a9f==_0x24a65a['key']&&_0x4074b6!=_0x3f1063;})['forEach'](_0x18bc13=>{this['_reduceSuggestionAttributeRange'](_0x18bc13,_0x24a65a['range'],_0x8be1bc),_0xfe407=!0x0;});}return _0xfe407;}['_reduceSuggestionAttributeRange'](_0x32c2f9,_0x22aa51,_0x10e0c4){const _0xae3605=_0x32c2f9['getFirstRange']()['getDifference'](_0x22aa51);0x0!==_0xae3605['length']?0x1!==_0xae3605['length']?this['_breakSuggestionMarker'](_0x32c2f9,_0x22aa51['start'],_0x22aa51['end']):this['_setSuggestionRange'](_0x32c2f9,_0xae3605[0x0]):_0x10e0c4['removeMarker'](_0x32c2f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1734e0){this['_editor']=_0x1734e0,this['_model']=_0x1734e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1aa147,_0x19d857,_0x4f6b8f,_0x16a147,_0x23580d,_0x33a94c){return new u(this['_model'],{'type':_0x1aa147,'subType':_0x19d857,'id':_0x4f6b8f,'author':_0x16a147,'creator':_0x16a147,'attributes':_0x23580d,'onAttributesChange':_0x33a94c,'onAccept':(..._0x39c51e)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'accept')(..._0x39c51e),'onDiscard':(..._0x372b95)=>this['getSuggestionCallback'](_0x1aa147,_0x19d857,'discard')(..._0x372b95)});}['registerCustomCallback'](_0x1cf612,_0x8f6d81,_0x5e3185,_0x5bc89f){const _0x2893d8=_0x1cf612+':'+_0x8f6d81+':'+_0x5e3185;this['_customCallbacks']['set'](_0x2893d8,_0x5bc89f);}['getSuggestionCallback'](_0x212a2c,_0x42bc3a,_0xe1c581){const _0x266b4d=_0x212a2c+':'+_0x42bc3a+':'+_0xe1c581;return this['_customCallbacks']['get'](_0x266b4d)||this['_defaultCallbacks']['get'](_0x212a2c+':'+_0xe1c581);}['_registerDefaultCallbacks'](){const _0x189a5a=()=>!0x1,_0x41a669=_0x3f3801=>{_0x3f3801['sort']((_0xee7b1d,_0x13b999)=>_0xee7b1d['start']['isBefore'](_0x13b999['start'])?0x1:-0x1),this['_model']['change'](_0x9d4163=>{for(const _0x3ffe0f of _0x3f3801){let _0x5d9285;_0x5d9285=_0x3ffe0f['end']['isAtEnd']&&_0x3ffe0f['end']['parent']==_0x3ffe0f['start']['nodeAfter']?_0x9d4163['createSelection'](_0x3ffe0f['start']['nodeAfter'],'on'):_0x9d4163['createSelection'](_0x3ffe0f),this['_model']['deleteContent'](_0x5d9285,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x32996c=(_0x1941cb,_0x2ad955)=>{_0x2ad955&&this['_model']['change'](_0x2632d2=>{const {commandName:_0x13aeaa,commandParams:_0x17e8a5=[]}=_0x2ad955,_0x586175=_0x1941cb['map'](_0x33821e=>(Vt(_0x33821e)&&(_0x33821e=this['_model']['createRange'](_0x33821e['end'])),_0x33821e))['filter'](_0x2cc210=>'$graveyard'!==_0x2cc210['root']['rootName']);if(_0x586175['length']<0x1)return;const _0x6504cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x387ec4=>_0x411321['fromRange'](_0x387ec4));_0x2632d2['setSelection'](_0x586175);for(const _0x573f1a of this['_editor']['commands']['commands']())_0x573f1a['refresh']();_0x17e8a5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13aeaa,..._0x17e8a5);const _0x19065d=_0x6504cc['filter'](_0x35b611=>'$graveyard'!=_0x35b611['root']['rootName']);_0x19065d['length']>0x0&&_0x2632d2['setSelection'](_0x19065d);for(const _0x797313 of _0x6504cc)_0x797313['detach']();});},_0x4e2f7f=(_0x34335e,_0x4b043b)=>0x1==_0x34335e['length']&&0x1==_0x4b043b['length']&&_0x34335e[0x0]['end']['isEqual'](_0x4b043b[0x0]['start']),_0x5040ad=(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea)=>Ht(_0x56bb99,_0x23b04d,_0x459f0d,_0xf7a0ea,this['_model'])?[_0x56bb99,_0x23b04d]:Ht(_0x23b04d,_0x56bb99,_0xf7a0ea,_0x459f0d,this['_model'])?[_0x23b04d,_0x56bb99]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x189a5a),this['_defaultCallbacks']['set']('insertion:discard',_0x41a669),this['_defaultCallbacks']['set']('insertion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5040ad),this['_defaultCallbacks']['set']('deletion:accept',_0x41a669),this['_defaultCallbacks']['set']('deletion:discard',_0x189a5a),this['_defaultCallbacks']['set']('deletion:join',_0x4e2f7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5040ad),this['_defaultCallbacks']['set']('formatInline:accept',_0x32996c),this['_defaultCallbacks']['set']('formatInline:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatInline:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32996c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x189a5a),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e2f7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x189a5a),this['_defaultCallbacks']['set']('attribute:accept',_0x189a5a),this['_defaultCallbacks']['set']('attribute:discard',(_0x386994,_0x54874b)=>{if(!_0x54874b)return;const _0x321fde=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x534dee=>{if(_0x54874b['key']==m)for(const _0xc2f84d of _0x386994){const _0xbbbef0=_0xc2f84d['start']['nodeAfter'],_0x2249a1=_0x54874b['oldValue'];_0x534dee['rename'](_0xbbbef0,_0x2249a1);}else{if(_0x321fde['_isBlockAttribute'](_0x54874b['key'])){for(const _0x520897 of _0x386994)void 0x0!==_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x520897['start']['nodeAfter']):_0x534dee['removeAttribute'](_0x54874b['key'],_0x520897['start']['nodeAfter']);}else{for(const _0x57d583 of _0x386994)_0x54874b['oldValue']?_0x534dee['setAttribute'](_0x54874b['key'],_0x54874b['oldValue'],_0x57d583):_0x534dee['removeAttribute'](_0x54874b['key'],_0x57d583);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e2f7f);}}function Ot(_0x291784,_0x24edf1,_0x323da0){for(const _0x14d762 of _0x24edf1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14d762['root']==_0x14d762)return!0x1;if(!_0x323da0['containsItem'](_0x14d762))return!0x1;if(_0x291784['isObject'](_0x14d762)||_0x291784['isLimit'](_0x14d762))return!0x0;}return!0x1;}function Vt(_0x3b9638){return _0x3b9638['end']['parent']==_0x3b9638['start']['nodeAfter']&&_0x3b9638['end']['isAtStart'];}function Ut(_0x39470d,_0x1a3a33,_0x4e5bce,_0x19a0ea){const _0x3fa9e9=_0x3582a3=>!_0x3582a3['item']['is']('$textProxy')&&!_0x19a0ea['isObject'](_0x3582a3['item']),_0x3bf9d2=_0x39470d['start']['getLastMatchingPosition'](_0x3fa9e9),_0x4144d3=_0x39470d['end']['getLastMatchingPosition'](_0x3fa9e9,{'direction':'backward'});return(!_0x39470d['start']['isEqual'](_0x3bf9d2)||!_0x39470d['end']['isEqual'](_0x4144d3))&&(_0x3bf9d2['isBefore'](_0x4144d3)?_0x4e5bce['updateMarker'](_0x1a3a33,{'range':_0x4e5bce['createRange'](_0x3bf9d2,_0x4144d3)}):_0x4e5bce['removeMarker'](_0x1a3a33),!0x0);}function Gt(_0x11f1a9){return _0x39b023(_0x11f1a9);}function Ft(_0x3489f8){const _0x2ec41f=_0x3489f8['start']['nodeAfter'];return _0x2ec41f&&_0x2ec41f['is']('element');}function Pt(_0x4f8d53,_0xceb57b){return null==_0x4f8d53['end']['nodeBefore']&&_0x4f8d53['end']['parent']==_0x4f8d53['start']['nodeAfter']?Lt(_0x4f8d53['start']['nodeAfter'],_0xceb57b):_0x4f8d53;}function Lt(_0x44ced5,_0x5ce613){const _0x27fe4e=_0x5ce613['schema']['isObject'](_0x44ced5)||_0x5ce613['schema']['isSelectable'](_0x44ced5);return _0x5ce613['createRange'](_0x5ce613['createPositionAt'](_0x44ced5,'before'),_0x27fe4e?_0x5ce613['createPositionAfter'](_0x44ced5):_0x5ce613['createPositionAt'](_0x44ced5,'end'));}function Ht(_0x385e3f,_0x2045f9,_0x479b81,_0x5cc04d,_0x13e1b7){if(_0x385e3f['next'])return!0x1;if(!Jt(_0x385e3f,_0x2045f9))return!0x1;if(_0x479b81['end']['isEqual'](_0x5cc04d['start']))return!0x0;if(_0x385e3f['type']!=_0x2045f9['type'])return!0x1;if(!_0x479b81['end']['isTouching'](_0x5cc04d['start']))return!0x1;const _0x5741dc=_0x13e1b7['createRange'](_0x479b81['end'],_0x5cc04d['start'])['getWalker']();for(const _0x4d2c8c of _0x5741dc)if(['elementStart','elementEnd']['includes'](_0x4d2c8c['type'])&&_0x13e1b7['schema']['isLimit'](_0x4d2c8c['item']))return!0x1;return!0x0;}function Jt(_0x4e2edf,_0x3dde28){if(!_0x4e2edf['_isDataLoaded']||!_0x3dde28['_isDataLoaded'])return!0x1;const _0x2e108c=new Set(Object['keys'](_0x4e2edf['attributes'])),_0x1c27c6=new Set(Object['keys'](_0x3dde28['attributes']));if(_0x2e108c['delete']('groupId'),_0x1c27c6['delete']('groupId'),0x0==_0x2e108c['size']&&0x0==_0x1c27c6['size'])return!0x0;if(_0x2e108c['size']!=_0x1c27c6['size'])return!0x1;const _0x2d2367={..._0x4e2edf['attributes']},_0x5c9fe7={..._0x3dde28['attributes']};return delete _0x2d2367['groupId'],delete _0x5c9fe7['groupId'],JSON['stringify'](_0x2d2367)==JSON['stringify'](_0x5c9fe7);}function qt(_0x36ef11,_0x2c6ba9){const _0x124266=zt(_0x36ef11['attributes']),_0x245dfe=zt(_0x2c6ba9);if(!_0x36ef11['_isDataLoaded'])return!0x1;for(const _0x4ae0fe of Object['keys'](_0x245dfe))if(!_0x41747e(_0x124266[_0x4ae0fe],_0x245dfe[_0x4ae0fe]))return!0x1;return!0x0;}function zt(_0x4965db){const _0x1ff26e=Object['assign']({},_0x4965db);return delete _0x1ff26e['skipNestingCheck'],delete _0x1ff26e['tablePasteChainId'],_0x1ff26e;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x152174(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ec5be,_0x2958ad,_0x1e8768,_0x40ed52){super(),this['model']=_0x2958ad,this['view']=_0x1e8768,this['commentThreadController']=_0x40ed52,this['_editor']=_0x5ec5be,this['_acceptCommand']=_0x5ec5be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ec5be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5972aa,_0xeee989)=>_0x5972aa||_0xeee989),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x236283=>_0x236283&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5955ce=>_0x5955ce&&this['_editor']['model']['canEditAt'](_0x2958ad['getRanges']())),this['_pendingAction']=null,_0x1e8768['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e8768,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e8768,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e8768,'change:isDirty',()=>{_0x1e8768['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 _0x3d3156=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d3156);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x34f964{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x330bfa,_0x279ef9,_0x49a90a,_0x33a560){super(_0x330bfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x230434(_0x330bfa,o(_0x330bfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x279ef9['authoredAt']),this['bind']('authoredAt')['to'](_0x279ef9),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x279ef9,'authoredAt',this,'descriptionParts',(_0x9fd6f,_0x5c410b,_0x23a8dc)=>{const _0x40cf08=_0x23a8dc['map'](_0x4602dc=>ls(_0x4602dc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9fd6f-0x1,_0x279ef9['author']['name'],_0x5c410b?_0x33a560['formatDateTime'](_0x5c410b):'',new DOMParser()['parseFromString'](_0x40cf08,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2be8b6(),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40c314=>_0x40c314['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x279ef9,this['_localUser']=_0x49a90a,this['_config']=_0x33a560,_0x33a560['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x58c512(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x247aec}=this['_config'];this['commentsListView']=new _0x247aec(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',_0x50d7e7=>_0x50d7e7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf6876,_0x1ed979)=>_0xf6876||!!_0x1ed979);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x567718}=this['_config'],_0x44cf99=new _0x567718(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28c8c5=_0x44cf99['commentInputView'];return _0x44cf99['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28c8c5,'value',(_0x5b5c9f,_0x1260b4,_0x3a8986)=>!!_0x3a8986||_0x5b5c9f&&!_0x1260b4),_0x28c8c5['on']('submit',(_0x191091,_0x59510b)=>{this['fire']('addComment',_0x59510b),_0x28c8c5['editor']['setData']('');}),_0x28c8c5['on']('cancel',()=>this['focus']()),_0x28c8c5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44cf99;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x71d17e,_0x379bf7,_0x30c006,_0x168015){super(_0x71d17e,_0x379bf7,_0x30c006,_0x168015),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3617e4=>_0x3617e4&&_0x3617e4[0x0]?_0x3617e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b8c6,_0x2bd989)=>{let _0x221ef7='';for(const _0x437703 of _0x4b8c6)_0x221ef7+='<p>'+ls(_0x437703['content'],_0x437703['color'])+'</p>';return _0x2bd989?_0x221ef7:_0x806266(_0x221ef7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x168015['SuggestionView'](_0x71d17e,_0x379bf7,{'formatDateTime':_0x168015['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x583272=this['bindTemplate'],_0x3d8575=[this['suggestionView']];return this['commentsListView']&&_0x3d8575['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3d8575['push'](this['commentThreadInputView']),_0x3d8575['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583272['if']('isActive','ck-suggestion-wrapper--active'),_0x583272['to']('type',_0x5cd8b9=>'ck-suggestion-'+_0x5cd8b9),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x583272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3d8575};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x34f964{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2c0878,_0x37e443,_0x338f70){super(_0x2c0878),this['_model']=_0x37e443,this['_config']=_0x338f70,this['set']('description',''),this['bind']('authoredAt')['to'](_0x37e443),this['acceptButton']=this['_createButton'](o(_0x2c0878,'Accept\x20suggestion'),_0x15441c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2c0878,'Discard\x20suggestion'),_0x15441c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5e692a(_0x2c0878,_0x37e443['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2be8b6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13657f(),this['keystrokes']=new _0x4d474a(),this['focusCycler']=new _0x360f96({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x312000=>_0x312000['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25b7d1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25b7d1['innerHTML']=this['description'],this['on']('change:description',(_0xc78e01,_0x2fc526,_0x48107a)=>{_0x25b7d1['innerHTML']=_0x48107a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37f39a=this['bindTemplate'],_0x5e8e1a=[{'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':_0x37f39a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37f39a['to']('authoredAt',_0x1db509=>this['_config']['formatDateTime'](_0x1db509))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x5e8e1a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5e8e1a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xbbdc2e,_0xedf8ff,_0x4d29cf,_0x942ef2,_0x1925a4){const _0x158a5d=new _0x464813(this['locale']);return _0x158a5d['set']({'label':_0xbbdc2e,'icon':_0xedf8ff,'tooltip':!0x0,'tooltipPosition':_0x1925a4}),_0x158a5d['extendTemplate']({'attributes':{'class':_0x4d29cf}}),_0x158a5d['on']('execute',()=>{this['fire'](_0x942ef2,this['_model']['id']);}),_0x158a5d;}['_setupKeyboardNavigation'](){const _0x314c37=this['element'];this['keystrokes']['listenTo'](_0x314c37);for(const _0x19f62f of this['focusables'])this['focusTracker']['add'](_0x19f62f['element']),this['keystrokes']['listenTo'](_0x19f62f['element']);this['keystrokes']['set']('enter',(_0x56f3e8,_0xecc51a)=>{_0x314c37===_0x56f3e8['target']&&(this['focusCycler']['focusFirst'](),_0xecc51a());}),this['keystrokes']['set']('esc',(_0x2aacfe,_0x29c5be)=>{_0x314c37!==_0x2aacfe['target']&&(this['focus'](),_0x29c5be());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x48688f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x171a4a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xe7482d){super(_0xe7482d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3101a8=this['editor']['config'];_0x3101a8['define']('trackChanges.SuggestionThreadView',re),_0x3101a8['define']('trackChanges.SuggestionView',ce),_0x3101a8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3101a8['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x3250fb,_0x29eb38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x222bd7,_0x2b254b]of this['_handleControllerBuffer']){const _0x39a8b1=this['_suggestionToController']['has'](_0x222bd7);_0x39a8b1||_0x2b254b?_0x39a8b1&&_0x2b254b&&this['_destroyController'](_0x222bd7):this['_initializeController'](_0x222bd7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3250fb,_0x29eb38);}['init'](){const _0x14f2a5=this['editor'],_0x53a699=_0x14f2a5['plugins']['get']('TrackChangesEditing'),_0x38b58c=_0x14f2a5['plugins']['get']('Annotations'),_0x8f8d0e=_0x14f2a5['plugins']['get']('EditorAnnotations'),_0x29c4be=_0x14f2a5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8f8d0e['addSourceCollector'](()=>{const _0x479bed=[];for(const [_0xef579a,_0x9b54c5]of Array['from'](this['_suggestionToController'])){const _0x33e710=_0xef579a['getAllAdjacentSuggestions'](),_0x5f31c7=[];for(const _0x4b2c37 of _0x33e710){if(!_0x4b2c37['isInContent'])continue;if(_0x4b2c37['isMultiRange']){_0x5f31c7['push'](..._0x4b2c37['getRanges']());continue;}const _0xba431d=_0x4b2c37['getFirstRange']();if(_0x5f31c7['length']>0x0){const _0x500269=_0x5f31c7[0x0]['getJoined'](_0xba431d);if(_0x500269){_0x5f31c7[0x0]=_0x500269;continue;}}_0x5f31c7['push'](_0xba431d);}_0x479bed['push']([_0x9b54c5['view'],_0x5f31c7]);}return _0x479bed;}),this['listenTo'](_0x53a699,'suggestionLoaded',(_0x42f50e,_0x24413a)=>{this['listenTo'](_0x24413a,'change:previous',(_0x64e8c4,_0x1faf8f,_0x2d25a7,_0x241df0)=>{_0x24413a['isInContent']&&(null==_0x2d25a7?(this['_updateController'](_0x241df0['head']),this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1)):(this['_updateController'](_0x2d25a7['head']),null==_0x241df0&&this['_handleSuggestionControllerDelayed'](_0x24413a,!0x0)));}),null!==_0x24413a['previous']?this['_updateController'](_0x24413a['head']):this['_handleSuggestionControllerDelayed'](_0x24413a,!0x1);}),this['listenTo'](_0x53a699,'suggestionUnloaded',(_0x2adc3b,_0x32c39d,_0x42f590)=>{this['stopListening'](_0x32c39d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32c39d),this['_suggestionToController']['has'](_0x32c39d)&&this['_destroyController'](_0x32c39d),_0x42f590&&this['_updateController'](_0x42f590['head']);}),this['listenTo'](_0x53a699,'suggestionChanged',(_0x2b4686,_0x5d9850)=>{this['_updateController'](_0x5d9850);}),this['listenTo'](_0x38b58c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29c4be,'addComment',(_0x210959,{threadId:_0x2e0267,isFromAdapter:_0x36fca9})=>{if(_0x36fca9||!_0x53a699['hasSuggestion'](_0x2e0267))return;const _0x1bb146=_0x53a699['getSuggestion'](_0x2e0267);this['_suggestionToController']['get'](_0x1bb146)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x11e9df=this['editor']['plugins']['get']('Annotations'),_0x2a7295=this['editor']['plugins']['get']('TrackChangesEditing'),_0x103efd=Array['from'](_0x11e9df['activeAnnotations'],_0x4d62f2=>_0x4d62f2['innerView'])['filter'](_0x3992d2=>this['_viewToController']['has'](_0x3992d2)),_0x34b408=[];for(const _0x3c42ab of _0x103efd){const _0x500071=this['_viewToController']['get'](_0x3c42ab)['model']['getAllAdjacentSuggestions']();_0x34b408['push'](..._0x500071['reduce']((_0x1dfb13,_0x96103a)=>[..._0x1dfb13,..._0x96103a['getMarkerNames']()],[]));}_0x2a7295['activeMarkers']=_0x34b408;}['_addUIComponentsToFactory'](){const _0x292ccd=this['editor'],_0x20e137=_0x292ccd['locale'],_0x51764c=o(_0x20e137,'Track\x20changes'),_0x5adeff=new Wt([{'type':'switchbutton','model':new _0xe8bb13({'withText':!0x0,'isToggleable':!0x0,'label':_0x51764c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe8bb13({'withText':!0x0,'label':o(_0x20e137,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x47d99b of _0x5adeff)if(me(_0x47d99b)){const _0x1a7e6b=_0x292ccd['commands']['get'](_0x47d99b['model']['commandName']);_0x47d99b['model']['bind']('isOn','isEnabled')['to'](_0x1a7e6b,'value','isEnabled');}_0x292ccd['ui']['componentFactory']['add']('trackChanges',_0x43665b=>this['_createToolbarButton'](_0x43665b,_0x5adeff,_0x51764c)),_0x292ccd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37ccc8=>this['_createMenuBarMenu'](_0x37ccc8,_0x5adeff,_0x51764c));}['_createToolbarButton'](_0x2c2070,_0x4898b5,_0x455292){const _0x3e4346=Qt(_0x2c2070,_0x11d1d7),_0x2974b3=this['editor']['commands']['get']('trackChanges');_0x3e4346['buttonView']['set']({'tooltip':_0x455292,'label':_0x455292,'icon':he}),_0x3e4346['buttonView']['bind']('isOn')['to'](_0x2974b3,'value'),_0x3e4346['buttonView']['on']('execute',()=>{_0x2974b3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3e4346,_0x4898b5,{'role':'menu'});const _0x37ca56=[];for(const _0x30f37a of _0x4898b5)me(_0x30f37a)&&_0x37ca56['push'](this['editor']['commands']['get'](_0x30f37a['model']['commandName']));const _0xac0bd5=_0x3e4346['buttonView'];return _0xac0bd5['actionView']['unbind']('isEnabled'),_0xac0bd5['arrowView']['unbind']('isEnabled'),_0xac0bd5['actionView']['bind']('isEnabled')['to'](_0x2974b3,'isEnabled'),_0xac0bd5['arrowView']['bind']('isEnabled')['toMany'](_0x37ca56,'isEnabled',(..._0x2b305d)=>_0x2b305d['some'](_0x28fee9=>_0x28fee9)),_0x3e4346['on']('execute',_0x22cfe0=>{this['editor']['execute'](_0x22cfe0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e4346;}['_createMenuBarMenu'](_0x31fbf5,_0x336aab,_0x3ed5ab){const _0x59e5cf=new Yt(_0x31fbf5),_0xc371f6=this['editor']['commands']['get']('trackChanges');_0x59e5cf['buttonView']['set']({'label':_0x3ed5ab,'icon':he});const _0x34bb49=new Zt(_0x31fbf5);for(const _0x3d4d29 of _0x336aab){if('separator'==_0x3d4d29['type']){_0x34bb49['items']['add'](new Xt(_0x31fbf5));continue;}const _0x26963f=new te(_0x31fbf5,_0x59e5cf),_0x5a15ef=new _0x4ddbbe(_0x31fbf5),_0x414dc1=_0x3d4d29['model'];_0x5a15ef['bind'](...Object['keys'](_0x414dc1))['to'](_0x414dc1),_0x5a15ef['delegate']('execute')['to'](_0x59e5cf),_0x5a15ef['on']('execute',()=>{this['editor']['execute'](_0x414dc1['commandName']),this['editor']['editing']['view']['focus']();}),_0x26963f['children']['add'](_0x5a15ef),_0x34bb49['items']['add'](_0x26963f);}return _0x59e5cf['bind']('isEnabled')['to'](_0xc371f6,'isEnabled'),_0x59e5cf['panelView']['children']['add'](_0x34bb49),_0x59e5cf;}['_initializeController'](_0x2eb0c0){const _0x5256a4=this['editor'],_0xfa85c6=_0x5256a4['config'],_0x1ab0f1=_0x5256a4['plugins']['get']('Annotations'),_0x1e66f2=_0x5256a4['plugins']['get']('CommentsRepository'),_0x4ffaaf=_0x5256a4['plugins']['get']('EditorAnnotations'),_0x18c688=_0x5256a4['plugins']['get'](_0x171a4a)['me'],_0x4fdff0=_0xfa85c6['get']('trackChanges')['SuggestionThreadView'],_0x369c83=_0xfa85c6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a830c,CommentThreadInputView:_0x4e0524}=_0x5256a4['plugins']['get']('CommentsUI');let _0x1f95af,_0xafb0be;this['_annotationViews']['has'](_0x2eb0c0['id'])?(_0xafb0be=this['_annotationViews']['get'](_0x2eb0c0['id']),_0x1f95af=_0xafb0be['mainView']):(_0x1f95af=new _0x4fdff0(_0x5256a4['locale'],_0x2eb0c0,_0x18c688,{'disableComments':this['_disableComments'],'editorConfig':_0xfa85c6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xfa85c6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xfa85c6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2caec9(_0xfa85c6['get']('locale')),'CommentView':_0xfa85c6['get']('comments')['CommentView'],'CommentsListView':_0x4a830c,'CommentThreadInputView':_0x4e0524,'SuggestionView':_0x369c83}),_0x1f95af['suggestionView']['acceptButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0x1f95af['suggestionView']['discardButton']['on']('execute',()=>{_0x5256a4['editing']['view']['focus']();}),_0xafb0be=_0x1ab0f1['createAnnotationView'](this['editor']['locale'],_0x1f95af),_0xafb0be['bind']('isDirty')['to'](_0x1f95af,'isDirty'),_0xafb0be['bind']('length')['to'](_0x1f95af),_0xafb0be['bind']('type')['to'](_0x1f95af,'type',_0x135f7f=>'suggestion-'+_0x135f7f),this['listenTo'](_0x1f95af,'escape',()=>{_0x5256a4['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2eb0c0['id'],_0xafb0be));const _0x5daede=_0x1e66f2['createCommentThreadController'](_0x2eb0c0['commentThread'],_0x1f95af),_0x429edc=new ae(_0x5256a4,_0x2eb0c0,_0x1f95af,_0x5daede),_0x20fd77=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x2899ba=>_0x2899ba['isInContent']);_0x1f95af['descriptionParts']=_0x5256a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x20fd77),this['_suggestionToController']['set'](_0x2eb0c0,_0x429edc),this['_viewToController']['set'](_0x1f95af,_0x429edc);const _0x219174=_0x1ab0f1['createAnnotation']({'view':_0xafb0be,'target':()=>{const _0x1c53cf=[],_0x4b3ed8=_0x2eb0c0['getAllAdjacentSuggestions']()['filter'](_0x235f46=>_0x235f46['isInContent']);for(const _0x405e18 of _0x4b3ed8)_0x1c53cf['push'](..._0x405e18['getMarkers']());return _0x179daa(_0x5256a4['editing'],_0x1c53cf);},'type':()=>'suggestion-'+_0x429edc['view']['type']});_0x1e66f2['_bindAnnotationToEditors'](_0x1f95af,_0x219174),_0x1ab0f1['add'](_0x219174),_0x4ffaaf['registerAnnotation'](_0x219174);}['_destroyController'](_0x34053a){const _0x59ec79=this['editor']['plugins']['get']('CommentsRepository'),_0x3d5285=this['editor']['plugins']['get']('Annotations'),_0x5d0e02=this['_suggestionToController']['get'](_0x34053a),_0x2b8a13=_0x5d0e02['view'],_0x3c1958=_0x3d5285['getByInnerView'](_0x2b8a13);_0x59ec79['_unbindEditors'](_0x2b8a13),_0x3c1958&&_0x3d5285['remove'](_0x3c1958),this['_suggestionToController']['delete'](_0x34053a),this['_viewToController']['delete'](_0x2b8a13),_0x5d0e02['destroy']();}['_updateController'](_0x3efdb7){if(!_0x3efdb7['isInContent']||!this['_suggestionToController']['has'](_0x3efdb7))return;const _0x1a7855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7fc7=this['_suggestionToController']['get'](_0x3efdb7),_0x26aa1c=_0x3efdb7['getAllAdjacentSuggestions']();_0x1f7fc7['view']['descriptionParts']=_0x1a7855['descriptionFactory']['getDescriptions'](_0x26aa1c);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x4b35c3,(_0x3e661f,_0x40df7c)=>{const _0x5437c0=this['editor']['plugins']['get'](k),_0x3a0afa=this['editor']['plugins']['get'](p);if(!_0x3a0afa['activeMarkers']['length'])return;const {id:_0x2f7d72}=_0x3a0afa['_splitMarkerName'](_0x3a0afa['activeMarkers'][0x0]),_0x3d8800=_0x5437c0['getSuggestion'](_0x2f7d72);_0x3d8800&&(this['_suggestionToController']['get'](_0x3d8800)['view']['focus'](),_0x40df7c());});}['destroy'](){for(const _0x4998b5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4998b5);for(const _0x39bd97 of this['_annotationViews']['values']())_0x39bd97['mainView']['destroy']();super['destroy']();}}function me(_0x584c7a){return'model'in _0x584c7a;}class k extends _0x48688f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x47d516){this['editor']['plugins']['get'](p)['adapter']=_0x47d516;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5b34){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5b34);}['getSuggestions']({skipNotAttached:_0x47fcf2=!0x1,toJSON:_0x42cb92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x47fcf2,'toJSON':_0x42cb92});}['getSuggestion'](_0x3a6bde){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a6bde);}}const T=['Pagination'];class P extends _0x48688f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3985c1=this['editor'];if(_0x3985c1['config']['define']('trackChangesData.editorCreator',_0x2b2041=>{const _0x4918ff=_0x3985c1['model']['document']['getRootNames']()['reduce']((_0x4943ab,_0x16b9d3)=>(_0x4943ab[_0x16b9d3]='',_0x4943ab),{});return _0x3985c1['constructor']['create'](_0x4918ff,_0x2b2041);}),'function'!=typeof _0x3985c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x592c71('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f8e47){return N(this['editor'],!0x0,_0x1f8e47);}['getDataWithDiscardedSuggestions'](_0x13fe62){return N(this['editor'],!0x1,_0x13fe62);}}class D extends _0x48688f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x46410c){super(_0x46410c),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(_0x1d321d){return void 0x0!==_0x1d321d['getRootsAttributes'];}async function N(_0x1cf6cd,_0x3b0947,_0x14b95d){const _0x32fa61=_0x4f8fe7(_0x1cf6cd,T);_0x32fa61['plugins']['push'](p,D),_0x32fa61['rootsAttributes']=v(_0x1cf6cd)?_0x1cf6cd['getRootsAttributes']():void 0x0;const _0x192d47=document['createDocumentFragment'](),_0x496999=_0x1cf6cd['config']['get']('trackChangesData')['editorCreator'],_0x3c832a=await _0x496999(_0x32fa61,()=>function(_0x3ba386){const _0x4182ec=document['createElement']('div');return _0x3ba386['appendChild'](_0x4182ec),_0x4182ec;}(_0x192d47));!function(_0x152e47,_0xd9ee09){const _0x3d2cf2=_0x152e47['model']['document']['getRootNames']()['reduce']((_0x33cc1d,_0x3ce60c)=>(_0x33cc1d[_0x3ce60c]=_0x152e47['data']['get']({'rootName':_0x3ce60c}),_0x33cc1d),{}),_0x2ce15e=_0x152e47['plugins']['get']('Users')['users']['map'](_0x867052=>({'id':_0x867052['id'],'name':_0x867052['name']})),_0x420fa1=_0x152e47['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2068ae=_0x152e47['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40f3b6=_0xd9ee09['plugins']['get']('Users'),_0x46fcc6=_0xd9ee09['plugins']['get']('TrackChangesEditing'),_0x18a2b6=_0xd9ee09['plugins']['get']('CommentsRepository');for(const _0x2888c of _0x18a2b6['getCommentThreads']())_0x2888c['remove']();for(const _0x1f1d6b of _0x2ce15e)_0x40f3b6['getUser'](_0x1f1d6b['id'])||_0x40f3b6['addUser'](_0x1f1d6b);_0x40f3b6['me']||_0x40f3b6['useAnonymousUser']();for(const _0x338139 of _0x2068ae)_0x18a2b6['addCommentThread'](_0x338139);for(const _0x35e604 of _0x420fa1)_0x46fcc6['addSuggestionData'](_0x35e604);_0xd9ee09['data']['set'](_0x3d2cf2);}(_0x1cf6cd,_0x3c832a),_0x3c832a['execute'](_0x3b0947?'acceptAllSuggestions':'discardAllSuggestions');const _0x424b48=v(_0x3c832a)?_0x3c832a['getFullData'](_0x14b95d):_0x3c832a['data']['get'](_0x14b95d);return await _0x3c832a['destroy'](),_0x424b48;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1349dc,PendingActions as _0x5c36cd,icons as _0x44dae9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1b5a7f,ObservableMixin as _0x376978,uid as _0x30088c,insertToPriorityArray as _0x5d39d3,priorities as _0x252709,logWarning as _0x2ebe0d,getEnvKeystrokeText as _0xa239e8,FocusTracker as _0x305f38,KeystrokeHandler as _0x4624f1,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xf253d4,View as _0x576a44,ViewCollection as _0x3664fb,FocusCycler as _0x1e5ad6,ViewModel as _0x2a2d89,createDropdown as Qt,SplitButtonView as _0x275965,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x3e877e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x41b53c,hashObject as _0x4df7ec,surroundingMarkersDetector as _0x16f423,ENTER_THREAD_KEYSTROKE as _0x2262d2,AriaDescriptionView as _0x178b70,setupThreadKeyboardNavigation as _0x315552,trimHtml as _0x36ca85,UserView as _0x33ff98,LateFocusButtonView as _0x130400,getDateTimeFormatter as _0x4fcad3,getAllMarkersDomElementsSorted as _0x26aca0,sanitizeEditorConfig as _0x1593cf}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3a317b,LiveRange as _0x5168fa,LivePosition as _0x2fc754}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c273c,toWidget as _0x67aa4e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3eab55,set as _0x33e570,isEqual as _0x139ab1,unset as _0x79c0c,omit as Tt}from'lodash-es';import{Delete as _0x1163ee,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x218265,ShiftEnter as _0x554ab6}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2fe569,_0x270543){super(_0x2fe569),this['_enabledCommands']=_0x270543,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 _0x47aae5 of this['editor']['commands']['commands']())_0x47aae5['affectsData']&&!this['_enabledCommands']['has'](_0x47aae5)&&_0x47aae5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3dbb45 of this['editor']['commands']['commands']())_0x3dbb45['affectsData']&&!this['_enabledCommands']['has'](_0x3dbb45)&&_0x3dbb45['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x117ce3,_0x38edf9){super(_0x117ce3),this['_suggestions']=_0x38edf9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d8920){const _0xd6e547=this['_suggestions']['get'](_0x1d8920);if(!_0xd6e547)throw new _0x1b5a7f('track-changes-accept-suggestion-not-found',this);const _0x13be3a=_0xd6e547['getRanges']();this['editor']['model']['canEditAt'](_0x13be3a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd6e547);}}class R extends ts{['_suggestions'];constructor(_0x45f3dc,_0x5298e6){super(_0x45f3dc),this['_suggestions']=_0x5298e6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x171ca5){const _0x4c5a5d=this['_suggestions']['get'](_0x171ca5);if(!_0x4c5a5d)throw new _0x1b5a7f('track-changes-discard-suggestion-not-found',this);const _0x54c344=_0x4c5a5d['getRanges']();this['editor']['model']['canEditAt'](_0x54c344)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4c5a5d);}}function ls(_0x4912c4,_0x2f5f92){let _0x58c34a='';return _0x58c34a+=_0x4912c4['split']('*')['map']((_0x86d593,_0x1b9e5a)=>_0x1b9e5a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x86d593)+'</span>':nn(_0x86d593))['join'](''),_0x2f5f92&&(_0x58c34a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f5f92['value']+'\x22\x20title=\x22'+_0x2f5f92['title']+'\x22></span>'),_0x58c34a;}function nn(_0x3a0819){const _0x499529=document['createElement']('span');return _0x499529['innerText']=_0x3a0819,_0x499529['innerHTML'];}function ss(_0x2ac39d){return _0x2ac39d['sort']((_0x1e1b5e,_0x3d4690)=>'deletion'==_0x1e1b5e['type']&&'deletion'!=_0x3d4690['type']?-0x1:'deletion'!=_0x1e1b5e['type']&&'deletion'==_0x3d4690['type']?0x1:0x0);}function to(_0x2084ba,_0x11c603){let _0x171d16,_0x2a2dbe=0x0;const _0x518aa0=[],_0x2f74c1=_0x11c603['schema'];for(;_0x2a2dbe<_0x2084ba['length'];){const _0x2a4c68=_0x2084ba[_0x2a2dbe],_0xbb9dbf=_0x2084ba[_0x2a2dbe+0x1];_0x171d16||(_0x171d16=_0x11c603['createPositionBefore'](_0x2a4c68)),on(_0x11c603,_0x2a4c68,_0xbb9dbf)||(_0x518aa0['push'](_0x11c603['createRange'](_0x171d16,_0x2f74c1['isObject'](_0x2a4c68)?_0x11c603['createPositionAfter'](_0x2a4c68):_0x11c603['createPositionAt'](_0x2a4c68,'end'))),_0x171d16=null),_0x2a2dbe++;}return _0x518aa0;}function on(_0x2543a9,_0x21ef38,_0x864b98){if(!_0x864b98)return!0x1;const _0x509170=_0x2543a9['createPositionAfter'](_0x21ef38),_0x33c60a=_0x2543a9['createPositionBefore'](_0x864b98);return _0x509170['isTouching'](_0x33c60a);}function rs(_0x23ae3c,_0x4074d3,_0x24a41d){for(;_0x24a41d['length'];){const _0x3aee07=_0x24a41d['splice'](0x0,0x64);_0x23ae3c['change'](()=>{for(const _0x398fcb of _0x3aee07)_0x398fcb['isInContent']&&_0x4074d3['execute'](_0x398fcb['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xedcc10,_0x5c66e0,_0x37d9ef){super(_0xedcc10),this['_command']=_0x5c66e0,this['_suggestions']=_0x37d9ef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1c7064=Array['from'](this['_suggestions']['values']())['some'](_0x38bd60=>_0x38bd60['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1c7064;}['execute'](){const _0x305be2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2bd2d8 of _0x305be2){const _0x49ba76=_0x2bd2d8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49ba76))return;}rs(this['editor']['model'],this['_command'],_0x305be2);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x27bf2c,_0x3c69aa,_0x3db391){super(_0x27bf2c),this['_command']=_0x3c69aa,this['_suggestions']=_0x3db391,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x17aff=this['editor']['model']['document']['selection'],_0x133a8b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x589efb,_0x55fc17){const _0xc0c555=Array['from'](_0x589efb['getRanges']()),_0x8ba6c0=new Set();for(const _0x1102ae of _0x55fc17)if(_0x1102ae['isInContent']){for(const _0x3a513e of _0xc0c555)for(const _0x102540 of _0x1102ae['getRanges']())(_0x3a513e['isIntersecting'](_0x102540)||_0x589efb['isCollapsed']&&!_0x1102ae['isMultiRange']&&_0x1102ae['next']&&_0x102540['end']['isTouching'](_0x3a513e['start']))&&_0x8ba6c0['add'](_0x1102ae);}return _0x8ba6c0;}(_0x17aff,_0x133a8b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3d30cf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3afb85 of _0x3d30cf){const _0x34971c=_0x3afb85['getRanges']();if(!this['editor']['model']['canEditAt'](_0x34971c))return;}rs(this['editor']['model'],this['_command'],_0x3d30cf);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x376978(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x6c0da8,_0x548160){super(),this['id']=_0x548160['id'],this['type']=_0x548160['type'],this['subType']=_0x548160['subType']||null,this['author']=_0x548160['author'],this['creator']=_0x548160['creator']||_0x548160['author'],this['isExternal']=Boolean(_0x548160['attributes']&&_0x548160['attributes']['@external']),this['data']=null,this['_model']=_0x6c0da8,this['_onAccept']=_0x548160['onAccept'],this['_onDiscard']=_0x548160['onDiscard'],this['_onAttributesChange']=_0x548160['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x548160['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 _0x2d3991=this;for(;_0x2d3991['previous'];)_0x2d3991=_0x2d3991['previous'];return _0x2d3991;}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'](_0x1f8abb){this['_markerNames']['add'](_0x1f8abb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4025d2=>this['_model']['markers']['get'](_0x4025d2))['filter'](_0x35e349=>_0x35e349);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3a7755=>{for(const _0x5b7839 of this['getMarkers']())_0x3a7755['removeMarker'](_0x5b7839);}),this['_markerNames']['clear']();}['removeMarker'](_0x4e30cf){this['_model']['change'](_0x1c4a60=>{_0x1c4a60['removeMarker'](_0x4e30cf);}),this['_markerNames']['delete'](_0x4e30cf);}['addRange'](_0x45cc8d){const _0x2f440a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f440a),this['_model']['change'](_0x59422d=>{_0x59422d['addMarker'](_0x2f440a,{'range':_0x45cc8d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3f237b){for(const _0x316023 of this['getRanges']())if(_0x316023['isIntersecting'](_0x3f237b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f164a=>_0x4f164a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22600a,_0x293104)=>[..._0x22600a,..._0x293104['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e0c48=this['getRanges']();if(0x1!=_0x2e0c48['length'])return null;const _0x4ebe46=_0x2e0c48[0x0],_0x110183=_0x4ebe46['start']['nodeAfter'],_0x3b6dde=_0x4ebe46['end']['nodeBefore'];return _0x110183 instanceof _0x3a317b?_0x110183!=_0x3b6dde?null:_0x110183: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 _0x513e35=[];let _0x13eadf=this['head'];for(;_0x13eadf;)_0x513e35['push'](_0x13eadf),_0x13eadf=_0x13eadf['next'];return _0x513e35;}['setAttribute'](_0x394740,_0x55cbb6){const _0x58e97d=_0x3eab55(this['attributes']);_0x33e570(_0x58e97d,_0x394740,_0x55cbb6),_0x139ab1(_0x58e97d,this['attributes'])||(this['attributes']=_0x58e97d,this['_onAttributesChange'](_0x58e97d));}['removeAttribute'](_0x512111){const _0x170c08=_0x3eab55(this['attributes']);_0x79c0c(_0x170c08,_0x512111),_0x139ab1(_0x170c08,this['attributes'])||(this['attributes']=_0x170c08,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 _0x30088c()['substr'](0x1,0x5);}}function o(_0x5aa554,_0x44ed66,_0x2a3a90){const t=_0x5aa554['t'];switch(_0x44ed66){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',_0x2a3a90);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2a3a90);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2a3a90);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2a3a90);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2a3a90);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',_0x2a3a90);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2a3a90);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',_0x2a3a90);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2a3a90);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2a3a90);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2a3a90);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2a3a90);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2a3a90);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2a3a90);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2a3a90);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2a3a90);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2a3a90);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a3a90);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2a3a90);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2a3a90);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2a3a90);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2a3a90);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2a3a90);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2a3a90);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2a3a90);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2a3a90);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2a3a90);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2a3a90);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2a3a90);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2a3a90);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'},_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2a3a90);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'},_0x2a3a90);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2a3a90);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2a3a90);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2a3a90);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'},_0x2a3a90);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'},_0x2a3a90);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2a3a90);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2a3a90);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2a3a90);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2a3a90);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x44ed66;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x111dac,_0x43c8cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x111dac,this['_locale']=_0x43c8cd;}['getDescriptions'](_0x1aacbd){const _0x3f6a55=[],_0x4c224b=new Set(),_0x29b09d=new Set();for(let _0x283d30=0x0;_0x283d30<_0x1aacbd['length'];_0x283d30++){const _0x4d1c6e=_0x1aacbd[_0x283d30];if(!_0x4d1c6e['isInContent'])continue;const _0x508765=this['_handleCustomCallbackDescription'](_0x4d1c6e);if(_0x508765){if(null!=_0x4d1c6e['subType']){if(_0x4c224b['has'](_0x4d1c6e['subType']))continue;_0x4c224b['add'](_0x4d1c6e['subType']);}_0x3f6a55['push'](_0x508765);}else{if('attribute'!=_0x4d1c6e['type'])'insertion'!=_0x4d1c6e['type']&&'deletion'!=_0x4d1c6e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f6a55,_0x4d1c6e,_0x1aacbd[_0x283d30+0x1]);else{const _0x1e88a1=_0x4d1c6e['data']['key'];if(_0x29b09d['has'](_0x1e88a1))continue;_0x29b09d['add'](_0x4d1c6e['data']['key']),_0x1e88a1==m?this['_handleRenameSuggestionDescription'](_0x3f6a55,_0x4d1c6e):this['_handleAttributeSuggestionDescription'](_0x3f6a55,_0x4d1c6e);}}}return this['_resolveDescriptionItems'](_0x3f6a55);}['registerDescriptionCallback'](_0x6f3969){this['_customCallbacks']['push'](_0x6f3969);}['registerElementLabel'](_0xbde1e9,_0x56ce9d,_0x3e8fab=_0x252709['normal']){'function'==typeof _0xbde1e9?_0x5d39d3(this['_itemLabelsCallbacks'],{'matchingCallback':_0xbde1e9,'label':_0x56ce9d,'priority':_0x3e8fab}):this['_itemLabels']['set'](_0xbde1e9,_0x56ce9d);}['registerAttributeLabel'](_0x4a898a,_0x3674d2){this['_attributeLabels']['set'](_0x4a898a,_0x3674d2);}['getItemLabel'](_0x54a045,_0x1e1bfa=0x1){let _0x5c0c1c;for(const _0x4ce250 of this['_itemLabelsCallbacks'])if(_0x4ce250['matchingCallback'](_0x54a045)){_0x5c0c1c=_0x4ce250['label'];break;}return _0x5c0c1c||(_0x5c0c1c=this['_itemLabels']['get'](_0x54a045['name'])),_0x5c0c1c?_0x5c0c1c(_0x1e1bfa):0x1!==_0x1e1bfa?_0x1e1bfa+'\x20'+_0x54a045['name']+'s':''+_0x54a045['name'];}['_addDescriptionItems'](_0x363aee,_0x2316d3){const _0x139665=_0x2316d3['getFirstRange']()['getWalker'](),_0x4c8092='insertion'==_0x2316d3['type']?'add':'remove';for(const _0x2deb98 of _0x139665){const _0x134d2d=_0x2deb98['item'],_0x1c1102=_0x363aee[_0x363aee['length']-0x1];if(_0x134d2d['is']('$textProxy'))_0x1c1102&&_0x1c1102['type']['indexOf']('Container')>-0x1&&_0x363aee['pop'](),_0x1c1102&&'text'==_0x1c1102['type']?_0x1c1102[_0x4c8092]+=_0x134d2d['data']:_0x363aee['push']({'type':'text','add':'add'==_0x4c8092?_0x134d2d['data']:'','remove':'remove'==_0x4c8092?_0x134d2d['data']:''});else{if(this['_schema']['isObject'](_0x134d2d)){const _0x4074ee=_0x134d2d;if(_0x1c1102&&_0x1c1102['type']['indexOf']('Container')>-0x1&&_0x363aee['pop'](),'elementEnd'==_0x2deb98['type'])continue;_0x1c1102&&_0x1c1102['type']==_0x4c8092+'Object'&&_0x1c1102['element']['name']==_0x4074ee['name']?_0x1c1102['quantity']++:_0x363aee['push']({'type':_0x4c8092+'Object','element':_0x4074ee,'quantity':0x1}),_0x139665['skip'](_0x1ffd19=>!('elementEnd'==_0x1ffd19['type']&&_0x1ffd19['item']==_0x134d2d));}else{if(this['_schema']['checkChild'](_0x134d2d,'$text')||_0x134d2d['is']('element','softBreak')){const _0x4ac198=_0x134d2d;if('add'==_0x4c8092&&'elementStart'==_0x2deb98['type']||'remove'==_0x4c8092&&'elementEnd'==_0x2deb98['type'])continue;if(_0x1c1102&&-0x1==_0x1c1102['type']['indexOf']('Container')){'text'==_0x1c1102['type']&&(_0x1c1102[_0x4c8092]+='\x0a');continue;}let _0x194e43;if(_0x194e43='add'==_0x4c8092?_0x4ac198['nextSibling']&&!this['_schema']['isObject'](_0x4ac198['nextSibling'])?_0x4ac198['nextSibling']:null:_0x4ac198['previousSibling']&&!this['_schema']['isObject'](_0x4ac198['previousSibling'])?_0x4ac198['previousSibling']:null,_0x4ac198['isEmpty']||_0x194e43&&_0x194e43['isEmpty']){const _0x509c64=_0x194e43&&_0x194e43['isEmpty']?_0x194e43:_0x4ac198;_0x1c1102&&_0x1c1102['type']==_0x4c8092+'EmptyContainer'&&_0x1c1102['element']['name']==_0x509c64['name']?_0x1c1102['quantity']++:_0x363aee['push']({'type':_0x4c8092+'EmptyContainer','element':_0x509c64,'quantity':0x1});}else _0x363aee['push']({'type':_0x4c8092+'Container','element':_0x4ac198});}}}}}['_resolveDescriptionItems'](_0x4fe4e9){const _0x5a7128=this['_locale'],_0x539de6=[],_0x4ec151=[],_0x5e4fb8=[];for(const _0x4704a0 of _0x4fe4e9)switch(_0x4704a0['type']){case'text':if(_0x4704a0['add']=_0x4704a0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4704a0['remove']=_0x4704a0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4704a0['add']&&''!=_0x4704a0['remove']){_0x539de6['push']({'type':'replace','content':o(_0x5a7128,'REPLACE_TEXT',['\x22'+_0x4704a0['remove']+'\x22','\x22'+_0x4704a0['add']+'\x22'])});continue;}if(null!=_0x4704a0['add']['match'](/^ +$/)){_0x539de6['push']({'type':'insertion','content':o(_0x5a7128,'*Insert:*\x20%0',o(_0x5a7128,'ELEMENT_SPACE',_0x4704a0['add']['length']))});continue;}if(null!=_0x4704a0['remove']['match'](/^ +$/)){_0x539de6['push']({'type':'deletion','content':o(_0x5a7128,'*Remove:*\x20%0',o(_0x5a7128,'ELEMENT_SPACE',_0x4704a0['remove']['length']))});continue;}if(''!=_0x4704a0['add']){_0x539de6['push']({'type':'insertion','content':o(_0x5a7128,'*Insert:*\x20%0','\x22'+_0x4704a0['add']+'\x22')});continue;}_0x539de6['push']({'type':'deletion','content':o(_0x5a7128,'*Remove:*\x20%0','\x22'+_0x4704a0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x539de6['push']({'type':'insertion','content':o(_0x5a7128,'*Insert:*\x20%0',this['getItemLabel'](_0x4704a0['element'],_0x4704a0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x539de6['push']({'type':'deletion','content':o(_0x5a7128,'*Remove:*\x20%0',this['getItemLabel'](_0x4704a0['element'],_0x4704a0['quantity']))});continue;case'addContainer':_0x539de6['push']({'type':'insertion','content':o(_0x5a7128,'*Split:*\x20%0',this['getItemLabel'](_0x4704a0['element'],_0x4704a0['quantity']))});continue;case'removeContainer':_0x539de6['push']({'type':'deletion','content':o(_0x5a7128,'*Merge:*\x20%0',this['getItemLabel'](_0x4704a0['element'],_0x4704a0['quantity']))});continue;case'addFormat':_0x4ec151['push'](_0x4704a0['key']);continue;case'removeFormat':_0x5e4fb8['push'](_0x4704a0['key']);continue;default:_0x539de6['push'](_0x4704a0);}if(_0x4ec151['length']){const _0x3d3cbb=_0x4ec151['map'](_0x5ee428=>this['_attributeLabels']['has'](_0x5ee428)?this['_attributeLabels']['get'](_0x5ee428):_0x5ee428)['join'](',\x20');_0x539de6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3d3cbb)});}if(_0x5e4fb8['length']){const _0x3839fb=_0x5e4fb8['map'](_0x24bcab=>this['_attributeLabels']['has'](_0x24bcab)?this['_attributeLabels']['get'](_0x24bcab):_0x24bcab)['join'](',\x20');_0x539de6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3839fb)});}return _0x539de6;}['_handleCustomCallbackDescription'](_0x5c6482){for(const _0x39a6be of this['_customCallbacks']){const _0x4930e=_0x39a6be(_0x5c6482);if(_0x4930e&&'type'in _0x4930e)return _0x4930e;}}['_handleAttributeSuggestionDescription'](_0x2a59ce,_0xfcd71a){const _0xa91f7d=_0xfcd71a['data'],_0x2db7a3=void 0x0===_0xa91f7d['newValue']?'removeFormat':'addFormat';_0x2a59ce['push']({'type':_0x2db7a3,'key':_0xa91f7d['key']});}['_handleRenameSuggestionDescription'](_0x42d8f0,_0xac9418){_0x42d8f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xac9418['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bfbed,_0x28cea1,_0x439c2d){if(this['_addDescriptionItems'](_0x3bfbed,_0x28cea1),_0x439c2d&&_0x439c2d['getFirstRange']()&&!_0x28cea1['getFirstRange']()['end']['isEqual'](_0x439c2d['getFirstRange']()['start'])){const _0x14b6a6=_0x3bfbed[_0x3bfbed['length']-0x1],_0x4b16a8='insertion'==_0x28cea1['type']?'add':'remove';_0x14b6a6&&'text'==_0x14b6a6['type']&&(_0x14b6a6[_0x4b16a8]+='\x0a');}}}class V extends _0x1349dc{['afterInit'](){const _0x564ec3=this['editor'],_0x1c1cc1=_0x564ec3['plugins']['get']('TrackChangesEditing');_0x564ec3['commands']['get']('showAIAssistant')&&_0x1c1cc1['enableCommand']('showAIAssistant');}}class U extends _0x1349dc{['afterInit'](){const _0x5f97d5=this['editor'],_0x1486d6=_0x5f97d5['locale'];if(!_0x5f97d5['plugins']['has']('AlignmentEditing'))return;const _0x206683=_0x5f97d5['plugins']['get']('TrackChangesEditing');_0x206683['enableDefaultAttributesIntegration']('alignment'),_0x206683['registerBlockAttribute']('alignment'),_0x206683['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1486d6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3326=this['editor'],_0x268c6c=_0x5f3326['locale'];_0x5f3326['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9cc5e7=>{if('formatBlock'!=_0x9cc5e7['type'])return;const {data:_0x595954}=_0x9cc5e7;if(_0x595954&&'alignment'==_0x595954['commandName']){const _0x1d71ee=_0x595954['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x268c6c,'*Format:*\x20%0',function(_0x34ca05){switch(_0x34ca05){case'left':return o(_0x268c6c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x268c6c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x268c6c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x268c6c,'FORMAT_JUSTIFY_TEXT');}}(_0x1d71ee))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1349dc{['afterInit'](){const _0x5d2082=this['editor'],_0x3fbf3f=_0x5d2082['plugins']['get']('TrackChangesEditing'),_0x4f3558=_0x5d2082['locale'];for(const _0x394ceb of ti){if(!_0x5d2082['plugins']['has'](_0x394ceb))continue;const _0x4d6b12=_0x394ceb['slice'](0x0,-0x7)['toLowerCase'](),_0x11c692='FORMAT_'+_0x4d6b12['toUpperCase']();_0x3fbf3f['enableDefaultAttributesIntegration'](_0x4d6b12),_0x3fbf3f['registerInlineAttribute'](_0x4d6b12),_0x3fbf3f['descriptionFactory']['registerAttributeLabel'](_0x4d6b12,o(_0x4f3558,_0x11c692));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x520d29=this['editor'],_0x4b2b41=_0x520d29['locale'],_0x4672c7=_0x520d29['plugins']['get']('TrackChangesEditing');function _0x3a5183(_0x4e0b0d,_0x16164b){_0x4672c7['descriptionFactory']['registerDescriptionCallback'](_0x1a4801=>{if('formatInline'!=_0x1a4801['type'])return;const {data:_0x29db86}=_0x1a4801;return _0x29db86&&_0x29db86['commandName']===_0x4e0b0d?_0x29db86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b2b41,'*Format:*\x20%0',_0x16164b)}:{'type':'format','content':o(_0x4b2b41,'*Remove\x20format:*\x20%0',_0x16164b)}:void 0x0;});}_0x3a5183('bold',o(_0x4b2b41,'FORMAT_BOLD')),_0x3a5183('italic',o(_0x4b2b41,'FORMAT_ITALIC')),_0x3a5183('underline',o(_0x4b2b41,'FORMAT_UNDERLINE')),_0x3a5183('code',o(_0x4b2b41,'FORMAT_CODE')),_0x3a5183('strikethrough',o(_0x4b2b41,'FORMAT_STRIKETHROUGH')),_0x3a5183('subscript',o(_0x4b2b41,'FORMAT_SUBSCRIPT')),_0x3a5183('superscript',o(_0x4b2b41,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1349dc{['afterInit'](){const _0x55d293=this['editor'],_0x95af5f=_0x55d293['locale'];if(!_0x55d293['plugins']['has']('BlockQuoteEditing'))return;const _0x284a23=_0x55d293['plugins']['get']('TrackChangesEditing'),_0x416abd=this['editor']['commands']['get']('blockQuote');_0x284a23['enableCommand']('blockQuote',(_0x43a863,_0x63a67b={})=>{const _0x147270=this['editor']['model']['document']['selection'],_0x4b1442=_0x63a67b&&void 0x0!==_0x63a67b['forceValue']?_0x63a67b['forceValue']:!_0x416abd['value'];let _0xbbc80d=[];if(_0x4b1442){const _0x19689d=Array['from'](_0x147270['getSelectedBlocks']())['filter'](_0x551fc9=>oo(_0x551fc9)||function(_0x4c153f,_0xe22ae4){const _0x4b73d1=_0xe22ae4['checkChild'](_0x4c153f['parent'],'blockQuote'),_0xb29e6a=_0xe22ae4['checkChild'](['$root','blockQuote'],_0x4c153f);return _0x4b73d1&&_0xb29e6a;}(_0x551fc9,this['editor']['model']['schema']));_0xbbc80d=to(_0x19689d,_0x55d293['model']);}else{const _0x4e2815=Array['from'](_0x147270['getSelectedBlocks']())['filter'](_0x5912f7=>oo(_0x5912f7));_0xbbc80d=to(_0x4e2815,_0x55d293['model']);}_0x55d293['model']['change'](()=>{for(const _0x223d13 of _0xbbc80d)_0x284a23['markBlockFormat'](_0x223d13,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4b1442}]});});}),_0x284a23['descriptionFactory']['registerDescriptionCallback'](_0x4d133f=>{const {data:_0x30c439}=_0x4d133f;if(_0x30c439&&'blockQuote'==_0x30c439['commandName']){const _0x2cb4f9=o(_0x95af5f,'ELEMENT_BLOCK_QUOTE');return _0x30c439['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x95af5f,'*Set\x20format:*\x20%0',_0x2cb4f9)}:{'type':'format','content':o(_0x95af5f,'*Remove\x20format:*\x20%0',_0x2cb4f9)};}});}}function oo(_0x461927){return'blockQuote'==_0x461927['parent']['name'];}class L extends _0x1349dc{['afterInit'](){const _0x17c423=this['editor'];_0x17c423['plugins']['has']('CaseChange')&&(_0x17c423['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17c423['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17c423['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1349dc{['afterInit'](){const _0x26937c=this['editor'];_0x26937c['commands']['get']('ckbox')&&_0x26937c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1349dc{['afterInit'](){const _0x2b567b=this['editor'];if(!_0x2b567b['plugins']['has']('CodeBlock'))return;const _0x4b422d=_0x2b567b['plugins']['get']('TrackChangesEditing'),_0x59bc14=_0x2b567b['locale'],_0x4166e8=_0x2b567b['config']['get']('codeBlock')['languages'],_0x320e33=_0x2b567b['commands']['get']('codeBlock');_0x4b422d['enableCommand']('indentCodeBlock'),_0x4b422d['enableCommand']('outdentCodeBlock'),_0x4b422d['enableCommand']('codeBlock',(_0x5d8931,_0x254784={})=>{const _0x89aad8=_0x2b567b['model'],_0x13ac7b=_0x2b567b['model']['document']['selection'],_0x56867a=_0x254784&&void 0x0!==_0x254784['forceValue']?_0x254784['forceValue']:!_0x320e33['value'];let _0x3154eb;_0x254784['language']||(_0x254784['language']=_0x4166e8[0x0]['language']),_0x3154eb=_0x56867a?Array['from'](_0x13ac7b['getSelectedBlocks']())['filter'](_0x24924b=>eo(_0x24924b)||function(_0x97b035,_0xb75185){if(_0x97b035['is']('rootElement')||_0xb75185['isLimit'](_0x97b035))return!0x1;return _0xb75185['checkChild'](_0x97b035['parent'],'codeBlock');}(_0x24924b,_0x89aad8['schema'])):Array['from'](_0x13ac7b['getSelectedBlocks']())['filter'](_0xaff5d0=>eo(_0xaff5d0));const _0x1fdced=to(_0x3154eb,_0x89aad8);_0x89aad8['change'](()=>{for(const _0x23091c of _0x1fdced)_0x4b422d['markBlockFormat'](_0x23091c,{'commandName':'codeBlock','commandParams':[{..._0x254784,'forceValue':_0x56867a}],'formatGroupId':'blockName'});});}),(_0x4b422d['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c05de=>o(_0x59bc14,'ELEMENT_CODE_BLOCK',_0x2c05de)),_0x4b422d['descriptionFactory']['registerDescriptionCallback'](_0x4b6b6c=>{if('formatBlock'!=_0x4b6b6c['type'])return;const _0x443d0c=_0x59bc14['t'],{data:_0x14f6e0}=_0x4b6b6c;if(!_0x14f6e0||'codeBlock'!=_0x14f6e0['commandName'])return;const _0x3a81cc=_0x14f6e0['commandParams'][0x0]['language'],_0x7acea1=_0x443d0c(_0x4166e8['find'](_0x5d7cb5=>_0x5d7cb5['language']===_0x3a81cc)['label'])['toLowerCase']();return _0x14f6e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59bc14,'*Set\x20format:*\x20%0',o(_0x59bc14,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7acea1+')')}:{'type':'format','content':o(_0x59bc14,'*Remove\x20format:*\x20%0',o(_0x59bc14,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d764d){return'codeBlock'==_0x3d764d['name'];}class q extends _0x1349dc{['afterInit'](){const _0x459d78=this['editor'];if(!_0x459d78['plugins']['has']('CommentsEditing'))return;_0x459d78['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x308ecc,_0x356426,_0x433d10){const _0x49ad14=[];for(const _0x499c41 of _0x356426['getItems']())_0x499c41['hasAttribute'](_0x308ecc)&&_0x49ad14['push'](_0x433d10['createRangeOn'](_0x499c41));return _0x49ad14;}function _e(_0x34d6bb,_0x38bcfc,{showActiveMarker:_0x373071=!0x0}={}){const _0x3e6621=_0x34d6bb['plugins']['get']('TrackChangesEditing');return(_0x16f29f,_0xe1a105,_0x3ae8c1)=>{if(!_0x3ae8c1['consumable']['test'](_0xe1a105['markerRange'],_0x16f29f['name']))return;const _0x48725c=_0xe1a105['markerRange']['getWalker'](),_0x1914bd=_0xe1a105['markerRange']['start'],_0x34e570=_0x34d6bb['model']['schema'];let _0x3bd0dc=null,_0x151925=null,_0x4c60d4=!0x1,_0x1f04c7=!0x1;for(const _0x2f561c of _0x48725c){const _0x52cd05=_0x2f561c['item'];_0x4c60d4=_0x4c60d4||_0x34e570['isContent'](_0x52cd05);const _0x1f94f1=_0x3ae8c1['mapper']['toViewElement'](_0x52cd05);if(_0x1f94f1&&_0x1f94f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f561c['type']&&(_0x34e570['isBlock'](_0x52cd05)&&!_0x34e570['isLimit'](_0x52cd05)&&(_0x52cd05['nextSibling']||_0x1914bd['isAtEnd']?_0x3bd0dc&&_0x3bd0dc['parent']==_0x52cd05||(_0x3bd0dc=_0x52cd05,_0x560f6f(_0x2f561c['previousPosition']),_0x1f04c7=!0x0):_0x151925=_0x151925||_0x2f561c['previousPosition']));}function _0x560f6f(_0x1db556){const {authorId:_0x41ff1f}=_0x3e6621['_splitMarkerName'](_0xe1a105['markerName']),_0x571b16=_0x3ae8c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38bcfc,'data-author-id':_0x41ff1f}),_0x42385f=_0x3ae8c1['mapper']['toViewPosition'](_0x1db556);_0x373071&&_0x3e6621['activeMarkers']['includes'](_0xe1a105['markerName'])&&_0x3ae8c1['writer']['addClass']('ck-suggestion-marker--active',_0x571b16),_0x3ae8c1['writer']['insert'](_0x42385f,_0x571b16),_0x3ae8c1['mapper']['bindElementToMarker'](_0x571b16,_0xe1a105['markerName']);}_0x4c60d4||_0x1f04c7||!_0x151925||_0x560f6f(_0x151925);};}class z extends _0x1349dc{static get['requires'](){return[_0x1163ee];}['init'](){const _0x28f7ee=this['editor'],_0x4200b6=_0x28f7ee['plugins']['get']('TrackChangesEditing');_0x4200b6['enableCommand']('delete');const _0xab9a0a=_0x28f7ee['commands']['get']('deleteForward');_0x4200b6['enableCommand']('deleteForward',(_0x234fef,_0x2a0245={})=>{const _0x4e3e7e=_0x28f7ee['model']['createSelection'](_0x28f7ee['model']['document']['selection']);_0x4e3e7e['isCollapsed']&&_0x28f7ee['model']['modifySelection'](_0x4e3e7e,{'direction':'forward','unit':_0x2a0245['unit']});const _0x332eeb=_0x4e3e7e['getFirstRange'](),_0x44ac06=_0x5168fa['fromRange'](_0x332eeb);let _0x1d1ae8;_0x234fef(_0x2a0245),_0x1d1ae8='$graveyard'==_0x44ac06['root']['rootName']?_0x28f7ee['model']['createRange'](_0x332eeb['start']):_0x28f7ee['model']['createRange'](_0x44ac06['start'],_0x44ac06['end']),_0x44ac06['detach'](),_0x28f7ee['model']['enqueueChange'](_0xab9a0a['buffer']['batch'],_0x157855=>{_0xab9a0a['buffer']['lock'](),_0x157855['setSelection'](_0x157855['createRange'](_0x1d1ae8['end'])),_0xab9a0a['buffer']['unlock']();});}),_0x28f7ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28f7ee,'merge'),{'priority':'high'}),_0x28f7ee['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4eeb1b,_0x1ce3e8,_0x58e6ee)=>{_0x58e6ee['options']['showSuggestionHighlights']&&_e(_0x28f7ee,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4eeb1b,_0x1ce3e8,_0x58e6ee);},{'priority':'high'}),_0x28f7ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e43ed,_0x194f1d,_0x2f89fc)=>{const _0xc8c2ac=_0x2f89fc['mapper']['markerNameToElements'](_0x194f1d['markerName']);if(_0xc8c2ac){for(const _0x32fb91 of _0xc8c2ac)_0x32fb91['is']('uiElement')&&(_0x2f89fc['mapper']['unbindElementFromMarkerName'](_0x32fb91,_0x194f1d['markerName']),_0x2f89fc['writer']['remove'](_0x32fb91));}},{'priority':'high'});}}class K extends _0x1349dc{['afterInit'](){const _0x36b7dc=this['editor'];if(!_0x36b7dc['plugins']['has']('ListEditing'))return;const _0x2bec1f=_0x36b7dc['locale'],_0x1362cf=_0x36b7dc['plugins']['get']('TrackChangesEditing'),_0x3cfbc0=_0x36b7dc['plugins']['has']('TodoListEditing'),_0x3a4761=!!_0x36b7dc['config']['get']('list.multiBlock');function _0x20b0b4(_0x4f56d0){return{'type':'format','content':''+o(_0x2bec1f,'*Set\x20format:*\x20%0',_0x4f56d0)};}function _0x5b7462(_0x3dd271){return{'type':'format','content':''+o(_0x2bec1f,'*Remove\x20format:*\x20%0',_0x3dd271)};}_0x1362cf['enableDefaultAttributesIntegration']('numberedList'),_0x1362cf['enableDefaultAttributesIntegration']('bulletedList'),_0x1362cf['enableDefaultAttributesIntegration']('customNumberedList'),_0x1362cf['enableDefaultAttributesIntegration']('customBulletedList'),_0x1362cf['enableDefaultAttributesIntegration']('indentList'),_0x1362cf['enableDefaultAttributesIntegration']('outdentList'),_0x1362cf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1362cf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1362cf['registerBlockAttribute']('listItemId'),_0x1362cf['registerBlockAttribute']('listType'),_0x1362cf['registerBlockAttribute']('listIndent'),_0x3a4761&&(_0x1362cf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1362cf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3cfbc0&&(_0x1362cf['enableDefaultAttributesIntegration']('todoList'),_0x1362cf['enableDefaultAttributesIntegration']('checkTodoList'),_0x1362cf['registerBlockAttribute']('todoListChecked'),_0x1362cf['descriptionFactory']['registerDescriptionCallback'](_0x58f8e3=>{const {data:_0x33ad58}=_0x58f8e3;if(_0x33ad58&&'todoListChecked'==_0x33ad58['key'])return{'type':'format','content':_0x33ad58['newValue']?o(_0x2bec1f,'*Check\x20item*'):o(_0x2bec1f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48068e=>{if(_0x48068e['batch']['isUndo'])return!0x1;let _0x15d9a9=!0x1;const _0x4ccf30=_0x1362cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12caa3=>'todoListChecked'===_0x1362cf['_getAttributeKey'](_0x12caa3));for(const _0xad7805 of _0x4ccf30){'todo'!=_0xad7805['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1362cf['_findSuggestions'](_0xad7805['getFirstRange'](),'attribute')['find'](_0x3747cc=>'listType'===_0x1362cf['_getAttributeKey'](_0x3747cc['suggestion']))||(_0x48068e['removeMarker'](_0xad7805['getFirstMarker']()),_0x15d9a9=!0x0));}return _0x15d9a9;})),_0x1362cf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2bec1f,'FORMAT_INDENT'));const _0x5261de={'type':'format','content':''};_0x1362cf['descriptionFactory']['registerDescriptionCallback'](_0x4793f2=>{const {data:_0x2938b0}=_0x4793f2;if(!_0x2938b0||'listType'!=_0x2938b0['key'])return;let _0x44aadc=_0x4793f2['head'];for(;_0x44aadc;){if(_0x44aadc['data']&&(('listStyle'==_0x44aadc['data']['key']||'listMarkerStyle'==_0x44aadc['data']['key'])&&(_0x44aadc['data']['newValue']&&'default'!=_0x44aadc['data']['newValue']||'default'!=_0x44aadc['data']['oldValue']&&!_0x2938b0['newValue'])||!_0x3a4761&&_0x44aadc['data']['key']==m))return _0x5261de;_0x44aadc=_0x44aadc['next'];}if(null==_0x2938b0['newValue'])switch(_0x2938b0['oldValue']){case'bulleted':return _0x5b7462(o(_0x2bec1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b7462(o(_0x2bec1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b7462(o(_0x2bec1f,'ELEMENT_TODO_LIST'));}switch(_0x2938b0['newValue']){case'bulleted':return _0x20b0b4(o(_0x2bec1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20b0b4(o(_0x2bec1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20b0b4(o(_0x2bec1f,'ELEMENT_TODO_LIST'));}}),_0x1362cf['descriptionFactory']['registerDescriptionCallback'](_0x4f4824=>{const {data:_0x10eb35}=_0x4f4824;if(_0x10eb35&&'listIndent'==_0x10eb35['key'])return null==_0x10eb35['newValue']||null==_0x10eb35['oldValue']&&0x0==_0x10eb35['newValue']?_0x5261de:void 0x0;}),_0x1362cf['descriptionFactory']['registerDescriptionCallback'](_0x4457d4=>{if('attribute'!=_0x4457d4['type'])return;const {data:_0x2202a0}=_0x4457d4;if(!_0x2202a0||'listItemId'!=_0x2202a0['key'])return;const _0x47879d=Ee(_0x4457d4);return'newValue'==_0x47879d?{'type':'format','content':o(_0x2bec1f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x47879d?{'type':'format','content':o(_0x2bec1f,'*Split:*\x20list\x20item')}:_0x5261de;}),_0x36b7dc['model']['document']['registerPostFixer'](_0x313426=>this['listItemIdFixer'](_0x313426)),_0x36b7dc['model']['document']['registerPostFixer'](_0x57d14c=>this['noTrackChangesFixer'](_0x57d14c)),_0x36b7dc['model']['document']['on']('change:data',(_0x4e663d,_0x240c13)=>{if(_0x240c13['isUndo']||!_0x240c13['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1754bd){if(_0x1754bd['batch']['isUndo']||!_0x1754bd['batch']['isLocal'])return!0x1;let _0x4fecf5=!0x1;const _0x40ea96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31472c=>_0x31472c['data']&&'listItemId'==_0x31472c['data']['key'])['filter'](_0x134150=>_0x134150['data']['newValue']&&_0x134150['data']['oldValue']);for(const _0x40296a of _0x40ea96)Ee(_0x40296a)||(_0x1754bd['removeMarker'](_0x40296a['getFirstMarker']()),_0x4fecf5=!0x0);return _0x4fecf5;}['noTrackChangesFixer'](_0x4fac8b){if(_0x4fac8b['batch']['isUndo']||!_0x4fac8b['batch']['isLocal'])return!0x1;const _0x1c3702=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c3702['trackChangesCommand']['value'])return!0x1;let _0x565a5e=!0x1;const _0x5023e7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45114b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28ced2=>'attribute'==_0x28ced2['type'])['filter'](_0x4e6534=>_0x5023e7['includes'](_0x4e6534['attributeKey']));if(0x0==_0x45114b['length'])return _0x565a5e;for(const _0x54aa53 of _0x45114b){const _0x555356=_0x1c3702['_findSuggestions'](_0x54aa53['range'],'attribute')['filter'](_0x1a204d=>!_0x1a204d['meta']['isNextTo'])['map'](_0x146f88=>_0x146f88['suggestion'])['filter'](_0x218c8b=>{const _0x48c5d9=_0x1c3702['_getAttributeKey'](_0x218c8b);return _0x5023e7['includes'](_0x48c5d9);});if(_0x555356['length']){for(const _0x18281b of _0x555356)_0x4fac8b['removeMarker'](_0x18281b['getFirstMarker']());_0x565a5e=!0x0;}}return _0x565a5e;}['assureChains'](){const _0x18d2bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58516f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x22c246;const _0x1e6f49=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d7e00=>{if(_0x4d7e00['data']['oldRange']||!_0x4d7e00['data']['newRange'])return null;if(!_0x4d7e00['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x596594}=_0x18d2bb['_splitMarkerName'](_0x4d7e00['name']);if(!_0x18d2bb['hasSuggestion'](_0x596594))return null;const _0x5543ff=_0x18d2bb['getSuggestion'](_0x596594);return _0x58516f['includes'](_0x5543ff['data']['key']);})['map'](_0x902ad0=>{const {id:_0x367b40}=_0x18d2bb['_splitMarkerName'](_0x902ad0['name']),_0x42adc2=_0x18d2bb['getSuggestion'](_0x367b40);return _0x22c246=_0x42adc2['attributes']['groupId'],_0x42adc2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1e6f49['size'])return;const _0x334c6a=_0x18d2bb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa05ade=>'attribute'==_0xa05ade['type']&&_0xa05ade['data']&&_0x58516f['includes'](_0xa05ade['data']['key'])&&_0xa05ade['attributes']['groupId']!=_0x22c246)['map'](_0x3bfd1f=>({'listItem':_0x3bfd1f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3bfd1f['attributes']['groupId']})),_0x12f34a=new Set();for(const {groupId:_0x56efd1,listItem:_0x344660}of _0x334c6a)_0x1e6f49['has'](_0x344660)&&_0x12f34a['add'](_0x56efd1);for(const _0x1d237e of _0x18d2bb['getSuggestions']())_0x12f34a['has'](_0x1d237e['attributes']['groupId'])&&_0x1d237e['setAttribute']('groupId',_0x22c246);}['_supportLegacySuggestions'](){const _0x502454=this['editor'],_0x2b44e8=_0x502454['locale'],_0xf0bd9d=_0x502454['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf0bd9d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5643e3,_0x24f7b5){const _0x16b05b=[];for(let _0xe49ea6 of _0x5643e3)_0xe49ea6['start']['nodeAfter']===_0xe49ea6['end']['parent']&&(_0xe49ea6=_0x502454['model']['createRange'](_0x502454['model']['createPositionAt'](_0xe49ea6['start']['nodeAfter'],0x0))),_0x16b05b['push'](_0xe49ea6);_0x502454['model']['change'](_0x26e75d=>{const _0xd9550d=_0x502454['model']['document']['selection'],_0x1e0ca9=Array['from'](_0xd9550d['getRanges']())['map'](_0xb908d4=>_0x5168fa['fromRange'](_0xb908d4));_0x26e75d['setSelection'](_0x16b05b),_0x502454['commands']['get'](_0x24f7b5['commandName'])['refresh'](),_0x24f7b5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x502454['execute'](_0x24f7b5['commandName'],..._0x24f7b5['commandParams']),_0x26e75d['setSelection'](_0x1e0ca9);for(const _0x5c4950 of _0x1e0ca9)_0x5c4950['detach']();});}),_0xf0bd9d['descriptionFactory']['registerElementLabel'](function(_0x5bd1d7){const _0x377e3f=!_0x502454['model']['schema']['isObject'](_0x5bd1d7),_0x5cd2ba=_0x5bd1d7['previousSibling'],_0x4ce3e1=_0x5bd1d7['nextSibling'],_0xabb66d=_0x5bd1d7['getAttribute']('listItemId'),_0x15ea8a=!_0x5cd2ba||_0x5cd2ba['getAttribute']('listItemId')!==_0xabb66d,_0x38cbb3=!_0x4ce3e1||_0x4ce3e1['getAttribute']('listItemId')!==_0xabb66d;return _0x377e3f&&Boolean(_0xabb66d)&&_0x15ea8a&&_0x38cbb3;},_0x371650=>o(_0x2b44e8,'ELEMENT_LIST_ITEM',_0x371650));}['_registerLegacyDescription'](){const _0x1547a0=this['editor'],_0x2d3824=_0x1547a0['locale'];function _0x50170e(_0x2eba45){const _0x4e3428=_0x1547a0['commands']['get']('bulletedList')['value'],_0x341082=_0x1547a0['commands']['get']('numberedList')['value'];return'numberedList'===_0x2eba45?_0x4e3428:_0x341082;}_0x1547a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40e10c){if('formatBlock'!=_0x40e10c['type'])return;const {data:_0x2ff0f5}=_0x40e10c;if(!_0x2ff0f5)return;let _0x4f811b,_0x58655b,_0x519816,_0x4aa054;switch(_0x2ff0f5['commandName']){case'bulletedList':_0x519816=_0x2ff0f5['commandParams'][0x0]['forceValue'],_0x4aa054=_0x50170e(_0x2ff0f5['commandName']),_0x4f811b=_0x519816?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4aa054&&_0x1547a0['config']['get']('list.multiBlock')||(_0x4f811b='*Change\x20to:*\x20%0'),_0x58655b={'type':'format','content':o(_0x2d3824,_0x4f811b,o(_0x2d3824,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x519816=_0x2ff0f5['commandParams'][0x0]['forceValue'],_0x4aa054=_0x50170e(_0x2ff0f5['commandName']),_0x4f811b=_0x519816?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4aa054&&_0x1547a0['config']['get']('list.multiBlock')||(_0x4f811b='*Change\x20to:*\x20%0'),_0x58655b={'type':'format','content':o(_0x2d3824,_0x4f811b,o(_0x2d3824,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f811b='*Indent:*\x20%0',_0x58655b={'type':'format','content':o(_0x2d3824,_0x4f811b,o(_0x2d3824,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f811b=function(_0x2080c8){const _0x3ffc7c=_0x2080c8['getFirstRange']();let _0x5a4d2d=_0x3ffc7c['start']['nodeAfter'];for(;_0x5a4d2d&&_0x3ffc7c['containsItem'](_0x5a4d2d);){if(_0x5a4d2d['getAttribute']('listIndent')>0x0)return!0x1;_0x5a4d2d=_0x5a4d2d['nextSibling'];}return!0x0;}(_0x40e10c)?o(_0x2d3824,'*Format:*\x20remove\x20from\x20%0',o(_0x2d3824,function(_0x3b63f2){return'ELEMENT_'+_0x3b63f2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40e10c))):o(_0x2d3824,'*Outdent:*\x20%0',o(_0x2d3824,'ELEMENT_LIST_ITEM')),_0x58655b={'type':'format','content':_0x4f811b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ff0f5['multipleBlocks']&&(_0x4f811b='*Merge:*\x20%0',_0x58655b={'type':'deletion','content':o(_0x2d3824,_0x4f811b,o(_0x2d3824,'ELEMENT_LIST_ITEM'))});}return _0x58655b;});}}function Ee(_0x36988b){let _0x2464b8=_0x36988b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2464b8;){const _0x3302d4=_0x2464b8['getAttribute']('listItemId');if(!_0x3302d4)return!0x1;if(_0x3302d4==_0x36988b['data']['newValue'])return'newValue';if(_0x3302d4==_0x36988b['data']['oldValue'])return'oldValue';_0x2464b8=_0x2464b8['previousSibling'];}return!0x1;}class pe extends _0x1349dc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x35d111=this['editor']['config']['get']('list.properties'),_0x55c3c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x35d111['styles']&&(_0x55c3c3['enableDefaultAttributesIntegration']('listStyle'),_0x55c3c3['registerBlockAttribute']('listStyle')),_0x35d111['reversed']&&(_0x55c3c3['enableDefaultAttributesIntegration']('listReversed'),_0x55c3c3['registerBlockAttribute']('listReversed')),_0x35d111['startIndex']&&(_0x55c3c3['enableDefaultAttributesIntegration']('listStart'),_0x55c3c3['registerBlockAttribute']('listStart'));const _0x35ce1d={'type':'format','content':''};_0x55c3c3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4454af=this['editor']['locale'];_0x55c3c3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4454af,'FORMAT_LIST_REVERSED')),_0x55c3c3['descriptionFactory']['registerDescriptionCallback'](_0x32bf06=>{const {data:_0x2525dd}=_0x32bf06;if(_0x2525dd&&'listReversed'==_0x2525dd['key'])return null==_0x2525dd['newValue']||0x0==_0x2525dd['newValue']&&null==_0x2525dd['oldValue']?_0x35ce1d:void 0x0;}),_0x55c3c3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4454af,'FORMAT_LIST_START')),_0x55c3c3['descriptionFactory']['registerDescriptionCallback'](_0x450007=>{const {data:_0x1aa9d3}=_0x450007;if(_0x1aa9d3&&'listStart'==_0x1aa9d3['key'])return null==_0x1aa9d3['newValue']||0x1==_0x1aa9d3['newValue']&&null==_0x1aa9d3['oldValue']?_0x35ce1d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15e388=>{if(_0x15e388['batch']['isUndo'])return!0x1;let _0x264a8c=!0x1;const _0x5e6526=_0x55c3c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4632ad=>{const _0x11c8ea=_0x55c3c3['_getAttributeKey'](_0x4632ad);return'listStart'==_0x11c8ea||'listReversed'==_0x11c8ea;});for(const _0x56adc6 of _0x5e6526){const _0x1a3f3d=_0x56adc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a3f3d||'customNumbered'==_0x1a3f3d)continue;_0x55c3c3['_findSuggestions'](_0x56adc6['getFirstRange'](),'attribute')['find'](_0x25b7a5=>'listType'==_0x55c3c3['_getAttributeKey'](_0x25b7a5['suggestion']))||(_0x15e388['removeMarker'](_0x56adc6['getFirstMarker']()),_0x264a8c=!0x0);}return _0x264a8c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5650a0){const _0x2d9c1e=this['editor']['locale'],{data:_0x1d8bf0}=_0x5650a0,_0x1a6e54={'type':'format','content':''};if(!_0x1d8bf0||'listStyle'!=_0x1d8bf0['key'])return;if(!_0x1d8bf0['oldValue'])return'default'==_0x1d8bf0['newValue']?_0x1a6e54:{'type':'format','content':''+o(_0x2d9c1e,'*Set\x20format:*\x20%0',o(_0x2d9c1e,this['_getTranslationKeyForListStyle'](_0x1d8bf0['newValue'])))};if(!_0x1d8bf0['newValue']){if('default'==_0x1d8bf0['oldValue'])return _0x1a6e54;let _0x1e00df=_0x5650a0['head'];for(;_0x1e00df;){if(_0x1e00df['data']&&'listType'==_0x1e00df['data']['key']&&_0x1e00df['data']['newValue'])return _0x1a6e54;_0x1e00df=_0x1e00df['next'];}return{'type':'format','content':''+o(_0x2d9c1e,'*Remove\x20format:*\x20%0',o(_0x2d9c1e,this['_getTranslationKeyForListStyle'](_0x1d8bf0['oldValue'])))};}if('default'!=_0x1d8bf0['newValue'])return{'type':'format','content':''+o(_0x2d9c1e,'*Set\x20format:*\x20%0',o(_0x2d9c1e,this['_getTranslationKeyForListStyle'](_0x1d8bf0['newValue'])))};let _0x24e7e5=_0x5650a0['head'];for(;_0x24e7e5;){if(_0x24e7e5['data']&&'listType'==_0x24e7e5['data']['key']&&_0x24e7e5['data']['newValue']&&_0x24e7e5['data']['oldValue'])return _0x1a6e54;_0x24e7e5=_0x24e7e5['next'];}return{'type':'format','content':o(_0x2d9c1e,'*Set\x20format:*\x20%0',o(_0x2d9c1e,'ELEMENT_'+_0x5650a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14a647=this['editor'],_0x3d539d=_0x14a647['locale'];_0x14a647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf51044=>{if('formatBlock'!=_0xf51044['type'])return;const {data:_0x4ced5e}=_0xf51044;if(!_0x4ced5e)return;let _0x1149d5,_0x2089cd;switch(_0x4ced5e['commandName']){case'listStyle':_0x1149d5='*Change\x20to:*\x20%0',_0x2089cd={'type':'format','content':o(_0x3d539d,_0x1149d5,o(_0x3d539d,this['_getTranslationKeyForListStyle'](_0x4ced5e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1149d5=_0x4ced5e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2089cd={'type':'format','content':o(_0x3d539d,_0x1149d5)};break;case'listStart':_0x1149d5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2089cd={'type':'format','content':o(_0x3d539d,_0x1149d5,_0x4ced5e['commandParams'][0x0]['startIndex'])};}return _0x2089cd;});}['_getTranslationKeyForListStyle'](_0x96e33a){return'ELEMENT_'+function(_0xeb89e9){if(ye['includes'](_0xeb89e9))return'bulleted';if(Se['includes'](_0xeb89e9))return'numbered';return null;}(_0x96e33a)['toUpperCase']()+'_LIST_'+_0x96e33a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1349dc{static get['requires'](){return[_0x218265];}['init'](){const _0x3068ce=this['editor'],_0x53bc16=_0x3068ce['plugins']['get']('TrackChangesEditing'),_0x5dd2ad=_0x3068ce['commands']['get']('enter');_0x53bc16['enableCommand']('enter',()=>{_0x3068ce['model']['change'](_0x158cd6=>{const _0x581b45=_0x3068ce['model']['document']['selection'],_0x1a4c46=_0x581b45['getFirstPosition'](),_0x11d981=_0x5168fa['fromRange'](_0x581b45['getFirstRange']());if(_0x5dd2ad['enterBlock'](_0x158cd6)){const _0x323bbf=_0x3068ce['model']['createPositionAt'](_0x1a4c46['parent']['nextSibling'],0x0),_0x54cd3d=_0x158cd6['createRange'](_0x1a4c46,_0x323bbf);_0x53bc16['markInsertion'](_0x54cd3d);}else _0x158cd6['setSelection'](_0x158cd6['createRange'](_0x11d981['end']));_0x11d981['detach'](),_0x5dd2ad['fire']('afterExecute',{'writer':_0x158cd6});});}),_0x3068ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3068ce,'split'),{'priority':'high'}),_0x3068ce['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36c752,_0x41802e,_0x3f1cd2)=>{const _0x26e4cf=_0x3f1cd2['mapper']['markerNameToElements'](_0x41802e['markerName']);if(_0x26e4cf){for(const _0x458c1b of _0x26e4cf)_0x458c1b['hasClass']('ck-suggestion-marker-split')&&(_0x3f1cd2['mapper']['unbindElementFromMarkerName'](_0x458c1b,_0x41802e['markerName']),_0x3f1cd2['writer']['remove'](_0x458c1b));}},{'priority':'high'}),_0x3068ce['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4dea20,_0x4f4eb,_0xf104c2)=>{_0xf104c2['options']['showSuggestionHighlights']&&_e(_0x3068ce,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4dea20,_0x4f4eb,_0xf104c2);},{'priority':'high'});}}class X extends _0x1349dc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58045d=this['editor']['plugins']['get']('TrackChangesEditing');_0x58045d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58045d['enableCommand']('findNext'),_0x58045d['enableCommand']('findPrevious'),_0x58045d['enableCommand']('replace'),_0x58045d['enableCommand']('replaceAll');}['handleFindCommand'](_0x522b95,_0x2498d9,_0x50adb7={}){const _0x43e773=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x522b95(_0x3f5471=>{let _0x46df63=('string'==typeof _0x2498d9?_0x43e773['findByTextCallback'](_0x2498d9,_0x50adb7):_0x2498d9)(_0x3f5471);Array['isArray'](_0x46df63)&&(_0x46df63={'results':_0x46df63,'searchText':'string'==typeof _0x2498d9?_0x2498d9:''});const _0x11b31f=_0x46df63['results']['filter'](_0x15fd03=>!0x1===this['_isInDeletionRange'](_0x15fd03,_0x3f5471['item']));return{..._0x46df63,'results':_0x11b31f};},_0x50adb7);}['_isInDeletionRange'](_0x18a4fd,_0xcf8709){const _0x3144e9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcf8709,_0x18a4fd['start']),this['editor']['model']['createPositionAt'](_0xcf8709,_0x18a4fd['end']));for(const _0x565b32 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3144e9['getIntersection'](_0x565b32['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x1349dc{['afterInit'](){const _0x185f27=this['editor']['locale'],_0x5e6264=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3aab07,commandName:_0x595ffb}of ro)this['editor']['plugins']['has'](_0x3aab07)&&(_0x5e6264['enableDefaultAttributesIntegration'](_0x595ffb),_0x5e6264['registerInlineAttribute'](_0x595ffb));_0x5e6264['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x185f27,'FORMAT_FONT_SIZE')),_0x5e6264['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x185f27,'FORMAT_FONT_FAMILY')),_0x5e6264['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x185f27,'FORMAT_FONT_COLOR')),_0x5e6264['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x185f27,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x311f10=this['editor'],_0x27259a=_0x311f10['locale'];_0x311f10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fddf3=>{const _0x30b4bc=_0x27259a['t'];if('formatInline'!=_0x2fddf3['type'])return;const {data:_0x10575d}=_0x2fddf3;if(null!=_0x10575d){if('fontSize'==_0x10575d['commandName']){const _0x579292=_0x10575d['commandParams'][0x0]['value'];if(_0x579292){const _0x569af0=_0x30b4bc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x7a2dc8=>_0x7a2dc8['model']==_0x579292)['title'])['toLowerCase']();return{'type':'format','content':o(_0x27259a,'*Set\x20font\x20size:*\x20%0',_0x569af0)};}return{'type':'format','content':o(_0x27259a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10575d['commandName']){const _0x28d0a9=_0x10575d['commandParams'][0x0]['value'];return _0x28d0a9?{'type':'format','content':o(_0x27259a,'*Set\x20font\x20family:*\x20%0',_0x28d0a9)}:{'type':'format','content':o(_0x27259a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10575d['commandName']){const _0x123927=_0x10575d['commandParams'][0x0]['value'];if(_0x123927){const _0xb564b1=_0xf253d4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e0f6c=>_0x2e0f6c['model']==_0x123927);let _0x2df231=_0x123927,_0x285bc4='';return _0xb564b1&&(_0x2df231=_0xb564b1['label'],_0x285bc4=_0x30b4bc(_0x2df231)['toLowerCase']()),{'type':'format','content':o(_0x27259a,'*Set\x20font\x20color:*\x20%0',_0x285bc4)['trim'](),'color':{'value':_0x123927,'title':_0x285bc4||_0x2df231}};}return{'type':'format','content':o(_0x27259a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10575d['commandName']){const _0x33f83b=_0x10575d['commandParams'][0x0]['value'];if(_0x33f83b){const _0x2c6c43=_0xf253d4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x325b70=>_0x325b70['model']==_0x33f83b);let _0x22c783=_0x33f83b,_0x49ddf1='';return _0x2c6c43&&(_0x22c783=_0x2c6c43['label'],_0x49ddf1=_0x30b4bc(_0x22c783)['toLowerCase']()),{'type':'format','content':o(_0x27259a,'*Set\x20font\x20background\x20color:*\x20%0',_0x49ddf1)['trim'](),'color':{'value':_0x33f83b,'title':_0x49ddf1||_0x22c783}};}return{'type':'format','content':o(_0x27259a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1349dc{['afterInit'](){const _0x1bdf2b=this['editor'],_0x5dfee0=_0x1bdf2b['plugins']['get']('TrackChangesEditing'),_0x2333db=_0x1bdf2b['commands']['get']('copyFormat'),_0x6f304b=_0x1bdf2b['commands']['get']('pasteFormat');_0x2333db&&_0x6f304b&&(_0x5dfee0['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dfee0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x290055=this['editor'],_0x3617a6=_0x290055['locale'];_0x290055['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227c4a=>{if('formatBlock'!=_0x227c4a['type']&&'formatInline'!=_0x227c4a['type'])return;const {data:_0x59e064}=_0x227c4a;if(_0x59e064&&'pasteFormat'===_0x59e064['commandName']){const _0x2f86a6=[],_0x25ef3d=_0x59e064['commandParams'][0x0];for(const [_0x581f44,_0x5a3c02]of Object['entries'](_0x25ef3d))_0x2f86a6['push'](so(_0x290055,_0x581f44,_0x5a3c02));return _0x2f86a6['length']?{'type':'format','content':o(_0x3617a6,'*Set\x20format\x20to:*\x20%0',_0x2f86a6['join'](',\x20'))}:{'type':'format','content':o(_0x3617a6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e5d03,_0x1d8b5b,_0x54b961){const _0x518f2f=_0x5e5d03['locale']['t'],_0x97d0e1=_0x1d8b5b['split'](/(?=[A-Z])/)['join']('\x20'),_0x1073ee=_0x518f2f(_0x97d0e1['charAt'](0x0)['toUpperCase']()+_0x97d0e1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x54b961)return _0x1073ee;if('fontColor'===_0x1d8b5b||'fontBackgroundColor'===_0x1d8b5b){const _0x283ff0=_0xf253d4(_0x5e5d03['config']['get']('fontColor.colors'))['find'](_0x5d20fa=>_0x5d20fa['model']==_0x54b961);return _0x1073ee+'\x20('+(_0x283ff0?_0x518f2f(_0x283ff0['label'])['toLowerCase']():_0x54b961)+')';}if('fontSize'===_0x1d8b5b&&isNaN(parseFloat(_0x54b961))){const _0x2d898e=_0x5e5d03['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e5d03['config']['get']('fontSize.options'))['find'](_0x5720f5=>_0x5720f5['model']==_0x54b961);return _0x1073ee+'\x20('+(_0x2d898e?_0x518f2f(_0x2d898e['title'])['toLowerCase']():_0x54b961)+')';}return _0x1073ee+'\x20('+_0x54b961+')';}class tt extends _0x1349dc{['_headingOptions'];['afterInit'](){const _0x1493d0=this['editor'];if(!_0x1493d0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1493d0['config']['get']('heading.options');const _0x304063=_0x1493d0['locale'],_0x13d88d=_0x1493d0['plugins']['get']('TrackChangesEditing');_0x13d88d['enableDefaultAttributesIntegration']('heading');for(const _0x101c89 of this['_headingOptions'])'paragraph'!=_0x101c89['model']&&_0x13d88d['descriptionFactory']['registerElementLabel'](_0x101c89['model'],_0x218fd0=>{const _0x5d7e97=this['_getHeadingLevel'](_0x101c89['model']);return null!==_0x5d7e97?_0x4b2d0b(_0x218fd0,_0x5d7e97):_0x14cb0c(_0x218fd0,_0x101c89['title']);});function _0x4b2d0b(_0x2ed19e,_0x388c7f){return o(_0x304063,'ELEMENT_HEADING',[_0x2ed19e,_0x388c7f]);}function _0x14cb0c(_0x5156bf,_0x45b7f7){return o(_0x304063,'ELEMENT_HEADING_CUSTOM',[_0x5156bf,_0x45b7f7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36c52d=this['editor'],_0x5edf40=_0x36c52d['locale'];function _0x1aac2d(_0x29fd37,_0x3319ed){return o(_0x5edf40,'ELEMENT_HEADING_CUSTOM',[_0x29fd37,_0x3319ed]);}_0x36c52d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c844a=>{if('formatBlock'!=_0x3c844a['type'])return;const {data:_0x354fdf}=_0x3c844a;if(_0x354fdf&&'heading'==_0x354fdf['commandName']){const _0x396bc0=_0x354fdf['commandParams'][0x0]['value'],_0x3a9ba0=this['_getHeadingLevel'](_0x396bc0);if(null!==_0x3a9ba0)return{'type':'format','content':o(_0x5edf40,'*Change\x20to:*\x20%0',(_0x45cc0e=0x1,_0x3bba53=_0x3a9ba0,o(_0x5edf40,'ELEMENT_HEADING',[_0x45cc0e,_0x3bba53])))};const _0x10e46e=this['_headingOptions']['find'](_0x297ca5=>_0x297ca5['model']===_0x396bc0)['title'];return{'type':'format','content':o(_0x5edf40,'*Change\x20to:*\x20%0',_0x1aac2d(0x1,_0x10e46e))};}var _0x45cc0e,_0x3bba53;});}['_getHeadingLevel'](_0x39051f){const _0x4f2b29=_0x39051f['match'](/^heading(\d+)/);if(_0x4f2b29)return _0x4f2b29[0x1];const _0x5e103b=this['_headingOptions']?.['find'](_0x176fff=>_0x176fff['model']==_0x39051f);if(_0x5e103b&&_0x5e103b['view']){const _0x1723e3=_0x5e103b['view'],_0xab1256=(_0x1723e3['name']??_0x1723e3)['match'](/^h(\d+)/);if(_0xab1256)return _0xab1256[0x1];}return null;}}class et extends _0x1349dc{['afterInit'](){const _0x31e320=this['editor'];if(!_0x31e320['plugins']['has']('HighlightEditing'))return;const _0x4bc62e=_0x31e320['plugins']['get']('TrackChangesEditing'),_0x29c0a3=_0x31e320['locale'];_0x4bc62e['enableDefaultAttributesIntegration']('highlight'),_0x4bc62e['registerInlineAttribute']('highlight'),_0x4bc62e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29c0a3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x980e7c=this['editor'],_0x4e68d6=_0x980e7c['locale'];_0x980e7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51e691=>{if('formatInline'!=_0x51e691['type'])return;const {data:_0x556a2c}=_0x51e691;if(_0x556a2c&&'highlight'==_0x556a2c['commandName']){const _0x135ca4=_0x4e68d6['t'],_0x18700a=_0x556a2c['commandParams'][0x0]['value'];if(_0x18700a){const _0xa85db0=_0x980e7c['config']['get']('highlight.options')['find'](_0x39dec3=>_0x39dec3['model']==_0x18700a),_0x106135=_0x135ca4(_0xa85db0['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e68d6,'*Set\x20highlight:*\x20%0',_0x106135),'color':{'value':_0xa85db0['color'],'title':_0xa85db0['title']}};}return{'type':'format','content':o(_0x4e68d6,'*Remove\x20highlight*',o(_0x4e68d6,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1349dc{['afterInit'](){const _0x144812=this['editor'];if(!_0x144812['plugins']['has']('HorizontalLineEditing'))return;_0x144812['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe99d4a=_0x144812['plugins']['get']('TrackChangesEditing'),_0x5e9a7a=_0x144812['locale'];_0xe99d4a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x29e2ff=>o(_0x5e9a7a,'ELEMENT_HORIZONTAL_LINE',_0x29e2ff)),_0x144812['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48ad06,{writer:_0x52fe65,options:_0x52f41d})=>{if(!_0x52f41d['showSuggestionHighlights'])return null;const _0x2b45e5=_0x52fe65['createContainerElement']('div'),_0x6fda04=_0x52fe65['createEmptyElement']('hr');return _0x52fe65['addClass']('ck-horizontal-line',_0x2b45e5),_0x52fe65['insert'](_0x52fe65['createPositionAt'](_0x2b45e5,0x0),_0x6fda04),_0x2b45e5;},'converterPriority':'high'});}}class st extends _0x1349dc{['afterInit'](){const _0x1f37a9=this['editor'];if(!_0x1f37a9['plugins']['has']('HtmlEmbed'))return;const _0x413aee=_0x1f37a9['plugins']['get']('TrackChangesEditing'),_0x2cc56c=_0x1f37a9['locale'];_0x413aee['descriptionFactory']['registerElementLabel']('rawHtml',_0x5fd575=>o(_0x2cc56c,'ELEMENT_HTML_EMBED',_0x5fd575)),_0x413aee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x413aee['registerBlockAttribute']('value'),_0x413aee['descriptionFactory']['registerDescriptionCallback'](_0x1ab8ac=>{if('attribute'!=_0x1ab8ac['type'])return;const {data:_0x5e6d60}=_0x1ab8ac;if(_0x5e6d60&&'value'==_0x5e6d60['key']&&_0x1ab8ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1616e7=o(_0x2cc56c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cc56c,'*Change\x20%0\x20content*',_0x1616e7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfc8618=this['editor'],_0x7cb791=_0xfc8618['locale'];_0xfc8618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x567289=>{if('formatBlock'!=_0x567289['type'])return;const {data:_0x26fd97}=_0x567289;if(_0x26fd97&&'htmlEmbed'==_0x26fd97['commandName']){const _0xe15266=o(_0x7cb791,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7cb791,'*Change\x20%0\x20content*',_0xe15266)};}});}}class nt extends _0x1349dc{['afterInit'](){const _0x159078=this['editor'];if(!_0x159078['plugins']['has']('ImageEditing'))return;const _0x11b6ec=_0x159078['plugins']['get']('TrackChangesEditing'),_0x195ff0=_0x159078['plugins']['get']('ImageUtils'),_0x4737f7=_0x159078['locale'];_0x11b6ec['enableCommand']('insertImage'),_0x11b6ec['descriptionFactory']['registerElementLabel']('imageBlock',_0x3aa02b=>o(_0x4737f7,'ELEMENT_IMAGE',_0x3aa02b)),_0x11b6ec['descriptionFactory']['registerElementLabel']('imageInline',_0x31b4fd=>o(_0x4737f7,'ELEMENT_INLINE_IMAGE',_0x31b4fd)),_0x11b6ec['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4737f7,'ELEMENT_CAPTION')),_0x159078['plugins']['has']('ImageUploadEditing')&&_0x11b6ec['enableCommand']('uploadImage'),_0x159078['plugins']['has']('ImageBlockEditing')&&_0x159078['plugins']['has']('ImageInlineEditing')&&(_0x11b6ec['enableCommand']('imageTypeInline',(_0x4a8a0b,_0x1fcadc)=>{const _0x1b54a9=_0x195ff0['getClosestSelectedImageElement'](_0x159078['model']['document']['selection']);_0x159078['model']['change'](()=>{_0x11b6ec['markBlockFormat'](_0x1b54a9,{'commandName':'imageTypeInline','commandParams':[_0x1fcadc]},[],'convertBlockImageToInline');});}),_0x11b6ec['enableCommand']('imageTypeBlock',(_0x49f703,_0x888a81)=>{_0x159078['model']['change'](_0x328f17=>{let _0x22dbd7=_0x195ff0['getClosestSelectedImageElement'](_0x159078['model']['document']['selection']),_0x636bbf=_0x328f17['createRangeOn'](_0x22dbd7);const _0xe841e5=_0x2fc754['fromPosition'](_0x636bbf['start'],'toPrevious'),_0x56f9fc=_0x2fc754['fromPosition'](_0x636bbf['end'],'toNext');_0x11b6ec['forceDefaultExecution'](()=>_0x49f703(_0x888a81)),_0x22dbd7=_0x195ff0['getClosestSelectedImageElement'](_0x159078['model']['document']['selection']),_0x636bbf=_0x328f17['createRangeOn'](_0x22dbd7);const _0x2309fa=_0x328f17['createRange'](_0xe841e5,_0x56f9fc);_0xe841e5['detach'](),_0x56f9fc['detach'](),_0x11b6ec['markBlockFormat'](_0x22dbd7,{'commandName':'imageTypeInline','commandParams':[_0x888a81]},[],'convertInlineImageToBlock'),_0x2309fa['start']['isBefore'](_0x636bbf['start'])&&_0x11b6ec['markInsertion'](_0x328f17['createRange'](_0x2309fa['start'],_0x636bbf['start']),'convertInlineImageToBlock'),_0x636bbf['end']['isBefore'](_0x2309fa['end'])&&_0x11b6ec['markInsertion'](_0x328f17['createRange'](_0x636bbf['end'],_0x2309fa['end']),'convertInlineImageToBlock');});}),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11b6ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e8186])=>{const _0x2d526f=_0x11b6ec['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5024f8=_0x2e8186['start'],_0x44976=_0x2e8186['end'];const _0x4795b9=_0x159078['model']['schema']['getNearestSelectionRange'](_0x5024f8,'backward'),_0x26670c=_0x159078['model']['schema']['getNearestSelectionRange'](_0x44976,'forward');_0x4795b9['isCollapsed']&&(_0x5024f8=_0x4795b9['start']),_0x26670c['isCollapsed']&&(_0x44976=_0x26670c['end']),_0x2d526f([_0x159078['model']['createRange'](_0x5024f8,_0x44976)]);}),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b1164),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b1164)),_0x159078['plugins']['has']('ImageCaptionEditing')&&(_0x11b6ec['enableCommand']('toggleImageCaption',(_0x5af35f,_0x3a9603)=>{const _0x577cde=_0x159078['plugins']['get']('ImageCaptionUtils');let _0x266b01=_0x195ff0['getClosestSelectedImageElement'](_0x159078['model']['document']['selection']),_0x2e42ae=_0x577cde['getCaptionFromImageModelElement'](_0x266b01);_0x159078['model']['change'](()=>{if(_0x2e42ae)return void _0x11b6ec['markDeletion'](_0x159078['model']['createRangeOn'](_0x2e42ae));const _0x2eae5d=_0x195ff0['isBlockImage'](_0x266b01);_0x5af35f(_0x3a9603),_0x266b01=_0x195ff0['getClosestSelectedImageElement'](_0x159078['model']['document']['selection']),_0x2e42ae=_0x577cde['getCaptionFromImageModelElement'](_0x266b01),_0x11b6ec['markInsertion'](_0x159078['model']['createRangeOn'](_0x2e42ae),_0x2eae5d?null:'imageCaption');});}),_0x11b6ec['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b1164));const _0xe1fb2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x22bbf8(_0x543fbf,_0x34e597){const _0x313c19=_0xe1fb2['findIndex'](({type:_0x5cbf19,subType:_0x1618a9})=>_0x543fbf['type']==_0x5cbf19&&_0x543fbf['subType']==_0x1618a9),_0x52c782=_0xe1fb2['findIndex'](({type:_0x57d785,subType:_0xf3a7aa})=>_0x34e597['type']==_0x57d785&&_0x34e597['subType']==_0xf3a7aa);if(_0x313c19<0x0||_0x52c782<0x0)return!0x1;const _0x139961=_0x543fbf['getFirstRange'](),_0x39a417=_0x34e597['getFirstRange']();if((0x0==_0x313c19||0x1==_0x313c19)&&0x2==_0x52c782&&_0x139961['isIntersecting'](_0x39a417))return!0x0;if(0x2==_0x313c19&&0x3==_0x52c782){const _0x59c01e=_0x11b6ec['_findSuggestions'](_0x139961,'insertion')['filter'](({suggestion:_0x4455b6,meta:_0x35fa72})=>_0x35fa72['isOwn']&&'convertInlineImageToBlock'==_0x4455b6['subType']);if(_0x59c01e['length']>0x1&&_0x39a417['end']['isEqual'](_0x139961['start']))return!0x0;if(0x1==_0x59c01e['length']&&(_0x139961['start']['isEqual'](_0x39a417['end'])||_0x139961['end']['isEqual'](_0x39a417['start'])))return!0x0;}if(0x3==_0x313c19&&0x3==_0x52c782&&_0x139961['start']['isBefore'](_0x39a417['start'])){const _0xd21a64=_0x139961['end']['nodeAfter'],_0x49a247=_0x39a417['start']['nodeBefore'];return _0x195ff0['isBlockImage'](_0xd21a64)&&_0xd21a64===_0x49a247;}return!0x1;}function _0x2b1164(_0x1cd00c,_0x4bff99){return _0x22bbf8(_0x1cd00c,_0x4bff99)?[_0x1cd00c,_0x4bff99]:_0x22bbf8(_0x4bff99,_0x1cd00c)?[_0x4bff99,_0x1cd00c]:null;}_0x159078['plugins']['has']('ImageResize')&&(_0x11b6ec['enableDefaultAttributesIntegration']('resizeImage'),_0x11b6ec['registerBlockAttribute']('resizedWidth'),_0x11b6ec['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4737f7,'FORMAT_IMAGE_SIZE'))),_0x159078['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11b6ec['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11b6ec['registerBlockAttribute']('alt')),_0x11b6ec['descriptionFactory']['registerDescriptionCallback'](_0x47f674=>{if(!!_0xe1fb2['find'](({type:_0xb0fb1,subType:_0x5e3660})=>_0x47f674['type']==_0xb0fb1&&_0x47f674['subType']==_0x5e3660))return _0x47f674['previous']?{}:void 0x0;}),_0x11b6ec['descriptionFactory']['registerDescriptionCallback'](_0x4b5dc2=>{if('insertion'==_0x4b5dc2['type']||'deletion'==_0x4b5dc2['type']){const _0xfbac5b=_0x4b5dc2['getContainedElement']();if(_0xfbac5b&&_0xfbac5b['is']('element','caption'))return{'type':'insertion'==_0x4b5dc2['type']?'addObject':'removeObject','element':_0xfbac5b,'quantity':0x1};}}),_0x11b6ec['descriptionFactory']['registerDescriptionCallback'](_0x18d2ed=>'formatBlock'==_0x18d2ed['type']&&'convertInlineImageToBlock'==_0x18d2ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d2ed['type']&&'convertBlockImageToInline'==_0x18d2ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11b6ec['descriptionFactory']['registerDescriptionCallback'](_0x3e8263=>{if('attribute'!=_0x3e8263['type'])return;const {data:_0x44023b}=_0x3e8263;if(!_0x44023b||'alt'!=_0x44023b['key'])return;const _0x11f028=_0x44023b['newValue'];return _0x11f028?{'type':'format','content':o(_0x4737f7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11f028+'\x22')}:{'type':'format','content':o(_0x4737f7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x188338=this['editor'],_0x31720b=_0x188338['locale'];_0x188338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4df01b=>{if('formatBlock'!=_0x4df01b['type']&&'formatInline'!=_0x4df01b['type'])return;const {data:_0x1b25d5}=_0x4df01b;if(_0x1b25d5){if('imageTextAlternative'==_0x1b25d5['commandName']){const _0x5a647b=_0x1b25d5['commandParams'][0x0]['newValue'];return _0x5a647b?{'type':'format','content':o(_0x31720b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a647b+'\x22')}:{'type':'format','content':o(_0x31720b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b25d5['commandName']){const _0x2a06cf=_0x1b25d5['commandParams'][0x0]['width'];return _0x2a06cf?{'type':'format','content':o(_0x31720b,'*Set\x20image\x20width:*\x20%0',_0x2a06cf)}:{'type':'format','content':o(_0x31720b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1349dc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x281198=this['editor']['locale'],_0xec1b48=this['editor']['plugins']['get']('TrackChangesEditing');_0xec1b48['enableDefaultAttributesIntegration']('replaceImageSource'),_0xec1b48['registerBlockAttribute']('src'),_0xec1b48['descriptionFactory']['registerDescriptionCallback'](_0x33c790=>{if('attribute'!=_0x33c790['type'])return;const {data:_0x55b602}=_0x33c790;return _0x55b602&&'src'==_0x55b602['key']?_0x55b602['newValue']&&_0x55b602['oldValue']?{'type':'format','content':o(_0x281198,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b9280=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b9280['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b9280['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b9280['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b9280['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48da1b=this['editor'],_0x59edcb=_0x48da1b['locale'];_0x48da1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a633=>{if('formatBlock'!=_0x42a633['type']&&'formatInline'!=_0x42a633['type'])return;const {data:_0x4f3c65}=_0x42a633;if(!_0x4f3c65||'replaceImageSource'!=_0x4f3c65['commandName'])return;return{'type':'format','content':o(_0x59edcb,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1349dc{['afterInit'](){const _0x42192a=this['editor'];if(!_0x42192a['plugins']['has']('ImageStyleEditing'))return;const _0x30ffe7=_0x42192a['plugins']['get']('TrackChangesEditing'),_0x1cef34=_0x42192a['plugins']['get']('ImageUtils'),_0x208563={};_0x30ffe7['enableCommand']('imageStyle',(_0x52c476,_0xbfde7d)=>{const _0x458570=_0x42192a['plugins']['get']('Users')['me'],_0x5b2f76=_0x42192a['commands']['get']('imageStyle');let _0x15b4a6=_0x1cef34['getClosestSelectedImageElement'](_0x42192a['model']['document']['selection']),_0x342019=_0x42192a['model']['createRangeOn'](_0x15b4a6),_0x1be601=_0x5b2f76['value'];if(_0x1be601==_0xbfde7d['value'])return;const _0x137d93={'commandName':'imageStyle','commandParams':[_0xbfde7d],'formatGroupId':_0x30088c()};_0x42192a['model']['change'](()=>{if(_0x30ffe7['getSuggestions']()['filter'](_0x1efc20=>_0x1efc20['isInContent']&&_0x458570==_0x1efc20['author']&&('formatBlock'==_0x1efc20['type']||'formatInline'==_0x1efc20['type'])&&('imageStylePreApply'==_0x1efc20['subType']||'imageStylePostApply'==_0x1efc20['subType'])&&_0x1efc20['getFirstRange']()['isEqual'](_0x342019))['forEach'](_0x53e45f=>_0x30ffe7['discardSuggestion'](_0x53e45f['head'])),_0x15b4a6=_0x1cef34['getClosestSelectedImageElement'](_0x42192a['model']['document']['selection']),_0x342019=_0x42192a['model']['createRangeOn'](_0x15b4a6),_0x5b2f76['refresh'](),_0x42192a['commands']['get']('imageTypeInline')['refresh'](),_0x42192a['commands']['get']('imageTypeBlock')['refresh'](),_0x1be601=_0x5b2f76['value'],_0x1be601!=_0xbfde7d['value'])return _0x1cef34['isInlineImage'](_0x15b4a6)&&_0x5b2f76['shouldConvertImageType'](_0xbfde7d['value'],_0x15b4a6)?(_0x52c476({..._0xbfde7d,'setImageSizes':!0x1}),_0x15b4a6=_0x1cef34['getClosestSelectedImageElement'](_0x42192a['model']['document']['selection']),void _0x30ffe7['markBlockFormat'](_0x15b4a6,{..._0x137d93,'commandReversedParams':[{'value':_0x1be601||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1cef34['isBlockImage'](_0x15b4a6)?_0x30ffe7['markBlockFormat'](_0x15b4a6,_0x137d93,[],'imageStylePostApply'):_0x30ffe7['markInlineFormat'](_0x342019,_0x137d93,'imageStylePostApply'));});});for(const _0x47c018 of _0x42192a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x208563[_0x47c018['name']]=_0x47c018['title']['toLowerCase']();_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1c65dd])=>{_0x1cef34['setImageNaturalSizeAttributes'](_0x1c65dd['getContainedElement']());}),_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x24cfdf,_0x17170d)=>{_0x30ffe7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x24cfdf,{'commandName':_0x17170d['commandName'],'commandParams':_0x17170d['commandReversedParams']});}),_0x30ffe7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41e831,_0xa06db8){if(_0x50444a(_0x41e831,_0xa06db8))return[_0x41e831,_0xa06db8];if(_0x50444a(_0xa06db8,_0x41e831))return[_0xa06db8,_0x41e831];return null;});const _0x1d178c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50444a(_0x5b8e9a,_0x5d522e){const _0xd4adfe=_0x1d178c['findIndex'](({type:_0x308f7b,subType:_0x3ef2a6})=>_0x5b8e9a['type']==_0x308f7b&&_0x5b8e9a['subType']==_0x3ef2a6),_0x192b0f=_0x1d178c['findIndex'](({type:_0x590a91,subType:_0x2bb613})=>_0x5d522e['type']==_0x590a91&&_0x5d522e['subType']==_0x2bb613);if(_0xd4adfe<0x0||_0x192b0f<0x0)return!0x1;const _0x452371=_0x5b8e9a['getFirstRange'](),_0x20fd37=_0x5d522e['getFirstRange']();if((0x0==_0xd4adfe||0x1==_0xd4adfe)&&0x2==_0x192b0f&&_0x452371['isIntersecting'](_0x20fd37))return!0x0;if(0x2==_0xd4adfe&&0x3==_0x192b0f){const _0x408e1c=_0x30ffe7['_findSuggestions'](_0x452371,'insertion')['filter'](({suggestion:_0x3bf23f,meta:_0x4265fe})=>_0x4265fe['isOwn']&&'convertInlineImageToBlock'==_0x3bf23f['subType']);if(_0x408e1c['length']>0x1&&_0x20fd37['end']['isEqual'](_0x452371['start']))return!0x0;if(0x1==_0x408e1c['length']&&(_0x452371['start']['isEqual'](_0x20fd37['end'])||_0x452371['end']['isEqual'](_0x20fd37['start'])))return!0x0;}if(0x3==_0xd4adfe&&0x3==_0x192b0f&&_0x452371['start']['isBefore'](_0x20fd37['start'])){const _0x30e90a=_0x452371['end']['nodeAfter'],_0x2068ef=_0x20fd37['start']['nodeBefore'];return _0x1cef34['isBlockImage'](_0x30e90a)&&_0x30e90a===_0x2068ef;}return!0x1;}_0x42192a['model']['document']['registerPostFixer'](()=>{let _0x5d547d=!0x1;const _0x55bb94=Array['from'](_0x42192a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e5b2f,data:_0x17a35d}of _0x55bb94){const {group:_0x4dafd2,type:_0x4e01b6,subType:_0x1934f3,id:_0x52466d}=_0x30ffe7['_splitMarkerName'](_0x1e5b2f);if('suggestion'==_0x4dafd2&&_0x30ffe7['hasSuggestion'](_0x52466d)){if('formatBlock'==_0x4e01b6&&('imageStylePreApply'==_0x1934f3||'imageStylePostApply'==_0x1934f3)){const _0x8cf89b=_0x30ffe7['getSuggestion'](_0x52466d);if(_0x17a35d['newRange']){const _0x394986=_0x8cf89b['getFirstRange']()['getContainedElement']();if(_0x1cef34['isBlockImage'](_0x394986))continue;_0x30ffe7['discardSuggestion'](_0x8cf89b),_0x5d547d=!0x0;}}if('insertion'==_0x4e01b6&&'imageCaption'==_0x1934f3&&!_0x17a35d['newRange']){const _0x11d6b2=_0x30ffe7['getSuggestion'](_0x52466d);_0x11d6b2['next']&&_0x11d6b2['next']['isInContent']&&(_0x30ffe7['discardSuggestion'](_0x11d6b2['next']),_0x5d547d=!0x0);}}}return _0x5d547d;}),this['_registerLegacyDescription'](_0x208563);}['_registerLegacyDescription'](_0x2c78d9){const _0x1bd625=this['editor'],_0x28f038=_0x1bd625['locale'];_0x1bd625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10750c=>{if('formatBlock'!=_0x10750c['type']&&'formatInline'!=_0x10750c['type'])return;const {data:_0x454c85}=_0x10750c;if(!_0x454c85||'imageStyle'!=_0x454c85['commandName'])return;const _0x5930c1=_0x454c85['commandParams'][0x0]['value'];return _0x3a4988('side'===_0x5930c1?o(_0x28f038,'FORMAT_SIDE_IMAGE'):_0x2c78d9[_0x5930c1]||_0x5930c1);function _0x3a4988(_0x3cf9fe){return{'type':'format','content':o(_0x28f038,'*Format:*\x20%0',_0x3cf9fe)};}});}}class at extends _0x1349dc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41c061){super(_0x41c061),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1633c5=this['editor'],_0x1b2826=_0x1633c5['commands']['get']('importWord'),_0x5255e5=_0x1633c5['commands']['get']('trackChanges');_0x1b2826&&(_0x1b2826['on']('execute',(_0x4a91c7,[,_0x2a8a75])=>{this['_trackChangesValueDuringImport']=_0x5255e5['value'],_0x2a8a75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b2826,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b2826,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5255e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1633c5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x189d93,_0x5108a5){const {suggestions:_0x34e8d1}=_0x5108a5,_0x342ffe=this['editor']['commands']['get']('trackChanges'),_0x1dab3a=_0x342ffe['value'];this['_trackChangesValueDuringImport']!==_0x1dab3a&&(_0x342ffe['execute'](),this['_trackChangesExecuted']=!0x0),_0x34e8d1&&_0x34e8d1['forEach'](({id:_0x286907,type:_0x39145c,author:_0x1a1686,created_at:_0x2dffc1})=>{const _0x57486a={'id':_0x286907,'type':_0x39145c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a1686,'createdAt':_0x2dffc1?new Date(_0x2dffc1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x57486a);});}}class ct extends _0x1349dc{['afterInit'](){const _0x83094a=this['editor'],_0x25e653=_0x83094a['plugins']['get']('TrackChangesEditing');if(_0x83094a['plugins']['has']('IndentEditing')&&(_0x25e653['enableCommand']('indent'),_0x25e653['enableCommand']('outdent')),_0x83094a['plugins']['has']('IndentBlock')){for(const _0x11aa22 of['indentBlock','outdentBlock'])_0x25e653['enableDefaultAttributesIntegration'](_0x11aa22);}const _0x6279d6=_0x83094a['locale'];_0x25e653['registerBlockAttribute']('blockIndent'),_0x25e653['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x6279d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58dbc1=this['editor'],_0x443773=_0x58dbc1['locale'],_0x42bcf0=_0x58dbc1['plugins']['get']('TrackChangesEditing');_0x42bcf0['descriptionFactory']['registerDescriptionCallback'](_0x1608a0=>{if('formatBlock'!=_0x1608a0['type'])return;const {data:_0x5ea77b}=_0x1608a0;if(!_0x5ea77b)return;if('indentBlock'!=_0x5ea77b['commandName']&&'outdentBlock'!=_0x5ea77b['commandName'])return;const _0x197ec2=_0x1608a0['getItems']()[0x0],_0x3523bc=_0x42bcf0['descriptionFactory']['getItemLabel'](_0x197ec2);return'indentBlock'==_0x5ea77b['commandName']?{'type':'format','content':o(_0x443773,'*Indent:*\x20%0',_0x3523bc)}:'outdentBlock'==_0x5ea77b['commandName']?{'type':'format','content':o(_0x443773,'*Outdent:*\x20%0',_0x3523bc)}:void 0x0;});}}class ut extends _0x1349dc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1349dc{['afterInit'](){const _0x30e09c=this['editor'];if(!_0x30e09c['plugins']['has']('LinkEditing'))return;const _0x317c87=_0x30e09c['plugins']['get']('TrackChangesEditing'),_0x4aa704=_0x30e09c['commands']['get']('link');_0x317c87['enableDefaultAttributesIntegration']('link'),_0x317c87['enableDefaultAttributesIntegration']('unlink'),_0x317c87['registerInlineAttribute']('linkHref');for(const _0x2501f0 of _0x4aa704['manualDecorators'])_0x317c87['registerInlineAttribute'](_0x2501f0['id']),_0x317c87['descriptionFactory']['registerAttributeLabel'](_0x2501f0['id'],'link\x20('+_0x2501f0['label']['toLowerCase']()+')');_0x317c87['descriptionFactory']['registerDescriptionCallback'](_0xfacc6b=>{if('attribute'!=_0xfacc6b['type'])return;const {data:_0x2644d2}=_0xfacc6b;if(!_0x2644d2||'linkHref'!=_0x2644d2['key'])return;const _0x512785=_0x2644d2['newValue'],_0x57ddad=_0x30e09c['locale'];return{'type':'format','content':null==_0x512785?o(_0x57ddad,'*Remove\x20link*'):o(_0x57ddad,'*Set\x20link:*\x20%0','\x22'+_0x512785+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5236de=this['editor'],_0x669596=_0x5236de['locale'];_0x5236de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8083=>{if('formatInline'!=_0x2f8083['type'])return;const {data:_0x34e85b}=_0x2f8083;if(_0x34e85b){if('link'==_0x34e85b['commandName']){const _0x5eb356=_0x34e85b['commandParams'][0x0];return{'type':'format','content':o(_0x669596,'*Set\x20link:*\x20%0','\x22'+_0x5eb356+'\x22')};}return'unlink'==_0x34e85b['commandName']?{'type':'format','content':o(_0x669596,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1349dc{['afterInit'](){const _0x5af3c3=this['editor'],_0x167475=_0x5af3c3['locale'];if(!_0x5af3c3['plugins']['has']('LegacyListEditing'))return;const _0x52e000=_0x5af3c3['plugins']['get']('TrackChangesEditing'),_0x18026d=_0x5af3c3['plugins']['has']('LegacyTodoListEditing');function _0x2b38fb(_0x50c2ac){return()=>{const _0x457480=_0x5af3c3['model']['document']['selection'],_0x57a24b=_0x5af3c3['commands']['get'](_0x50c2ac);if(_0x57a24b['value'])return void _0x5af3c3['execute']('paragraph',{});const _0x5137ff=_0x50c2ac['slice'](0x0,-0x4),_0x3bddcc=function(_0x2cf9c5,_0x338038,_0x4a548){let _0x266614=Array['from'](_0x2cf9c5)['filter'](_0x314515=>function(_0x3b4ac3,_0x150abb){return _0x150abb['checkChild'](_0x3b4ac3['parent'],'listItem')&&!_0x150abb['isObject'](_0x3b4ac3);}(_0x314515,_0x4a548));_0x266614=_0x266614['filter'](_0x5bce63=>!_0x5bce63['is']('element','listItem')||_0x5bce63['getAttribute']('listType')!=_0x338038);const _0x34b3b2=new Set();for(const _0x323db2 of _0x266614)_0x323db2['is']('element','listItem')?_0x34b3b2['add'](fe(_0x323db2)):_0x34b3b2['add'](_0x323db2);return Array['from'](_0x34b3b2);}(_0x457480['getSelectedBlocks'](),_0x5137ff,_0x5af3c3['model']['schema']);_0x5af3c3['model']['change'](()=>{for(const _0x214f13 of _0x3bddcc)_0x52e000['markBlockFormat'](_0x214f13,{'commandName':_0x50c2ac,'commandParams':[{'forceValue':!_0x57a24b['value']}],'formatGroupId':'blockName'},ue(_0x214f13));});};}function _0x2c1cf3(_0x4bcbaf){return()=>{const _0x443585=function(_0x59cf71){let _0x1a238e=Array['from'](_0x59cf71);const _0x4614ee=_0x1a238e['findIndex'](_0x498d87=>'listItem'!=_0x498d87['name']);return _0x4614ee>-0x1&&(_0x1a238e=_0x1a238e['slice'](0x0,_0x4614ee)),_0x1a238e;}(_0x5af3c3['model']['document']['selection']['getSelectedBlocks']()),_0x4b63fa=_0x5af3c3['model']['createRange'](_0x5af3c3['model']['createPositionAt'](_0x443585[0x0],'before'),_0x5af3c3['model']['createPositionAt'](_0x443585[_0x443585['length']-0x1],'end'));_0x5af3c3['model']['change'](()=>{_0x52e000['markBlockFormat'](_0x4b63fa,{'commandName':_0x4bcbaf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x139772){const _0x901a09=new Set();for(const _0x6200d4 of _0x139772){let _0x43836b=_0x6200d4['nextSibling'];for(;_0x43836b&&_0x43836b['getAttribute']('listIndent')>_0x6200d4['getAttribute']('listIndent');)_0x901a09['add'](_0x43836b),_0x43836b=_0x43836b['nextSibling'];}return Array['from'](_0x901a09);}(_0x443585));});};}_0x52e000['enableCommand']('numberedList',_0x2b38fb('numberedList')),_0x52e000['enableCommand']('bulletedList',_0x2b38fb('bulletedList')),_0x18026d&&_0x52e000['enableCommand']('todoList',_0x2b38fb('todoList')),_0x52e000['enableCommand']('indentList',_0x2c1cf3('indentList')),_0x52e000['enableCommand']('outdentList',_0x2c1cf3('outdentList')),_0x18026d&&_0x52e000['enableCommand']('checkTodoList',()=>{const _0x5a6e73=_0x5af3c3['commands']['get']('checkTodoList'),_0x34f26b=Array['from'](_0x5a6e73['_selectedElements']);_0x34f26b['filter'](_0x69f2f0=>_0x69f2f0['getAttribute']('todoListChecked')!=_0x5a6e73['value']),_0x5af3c3['model']['change'](()=>{for(const _0x3d0f88 of _0x34f26b)_0x52e000['markBlockFormat'](_0x3d0f88,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5a6e73['value']}]});});}),_0x52e000['descriptionFactory']['registerElementLabel']('listItem',_0x4882e6=>o(_0x167475,'ELEMENT_LIST_ITEM',_0x4882e6)),_0x52e000['descriptionFactory']['registerDescriptionCallback'](_0x47a50c=>{if('formatBlock'!=_0x47a50c['type']&&'formatInline'!=_0x47a50c['type'])return;const {data:_0x4a359f}=_0x47a50c;if(_0x4a359f){if('numberedList'==_0x4a359f['commandName']||'bulletedList'==_0x4a359f['commandName']||'todoList'==_0x4a359f['commandName'])switch(_0x4a359f['commandName']['replace']('List','')){case'bulleted':return _0x3847a9(o(_0x167475,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3847a9(o(_0x167475,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3847a9(o(_0x167475,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4a359f['commandName'])return{'type':'format','content':o(_0x167475,'*Indent:*\x20%0',o(_0x167475,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4a359f['commandName'])return{'type':'format','content':o(_0x167475,'*Outdent:*\x20%0',o(_0x167475,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4a359f['commandName'])return _0x4a359f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x167475,'*Check\x20item*')}:{'type':'format','content':o(_0x167475,'*Uncheck\x20item*')};}function _0x3847a9(_0x10bbf0){return{'type':'format','content':o(_0x167475,'*Change\x20to:*\x20%0',_0x10bbf0)};}});}}function fe(_0x4b4f9e){const _0x5ae65f=_0x4b4f9e['getAttribute']('listIndent');if(0x0==_0x5ae65f)return _0x4b4f9e;let _0x13e03b=_0x4b4f9e;for(;_0x4b4f9e['previousSibling']&&_0x4b4f9e['previousSibling']['is']('element','listItem');){const _0x1351ab=_0x4b4f9e['previousSibling']['getAttribute']('listIndent');if(_0x1351ab==_0x5ae65f)_0x13e03b=_0x4b4f9e['previousSibling'];else{if(_0x1351ab<_0x5ae65f)break;}_0x4b4f9e=_0x4b4f9e['previousSibling'];}return _0x13e03b;}function ue(_0x4f35ea){const _0x494253=[];if(_0x4f35ea['is']('element','listItem')&&_0x4f35ea['getAttribute']('listIndent')>0x0){let _0x4cd347=_0x4f35ea['nextSibling'];for(;_0x4cd347&&'listItem'==_0x4cd347['name']&&_0x4cd347['getAttribute']('listIndent')==_0x4f35ea['getAttribute']('listIndent');)_0x494253['push'](_0x4cd347),_0x4cd347=_0x4cd347['nextSibling'];}return _0x494253;}class W extends _0x1349dc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xe729db=this['editor']['config']['get']('list.properties'),_0x1c96e8=this['editor']['plugins']['get']('TrackChangesEditing');_0xe729db['styles']&&_0x1c96e8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xe729db['reversed']&&_0x1c96e8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xe729db['startIndex']&&_0x1c96e8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c96e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc833b8,_0x29d973={}){const _0x1a3412=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b1af2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a3412['markMultiRangeBlockFormat'](_0x4b1af2,{'commandName':'listStyle','commandParams':[{'type':_0x29d973['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x985c65,_0x4f6e33={}){const _0x216f0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2981a1=this['_getSuggestionBlocks'](_0x3068c5=>_0x3068c5['is']('element','listItem')&&'numbered'===_0x3068c5['getAttribute']('listType'));if(_0x2981a1['length']<0x1)return;const _0x50f1d3=_0x2981a1['map'](_0x49d58a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49d58a,'before'),this['editor']['model']['createPositionAt'](_0x49d58a,0x0)));this['editor']['model']['change'](()=>{_0x216f0e['markMultiRangeBlockFormat'](_0x50f1d3,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f6e33['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x43e068,_0x225381={}){const _0x16ae43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23ecf4=this['_getSuggestionBlocks'](_0x593e04=>_0x593e04['is']('element','listItem')&&'numbered'===_0x593e04['getAttribute']('listType'));if(_0x23ecf4['length']<0x1)return;const _0x54ba60=_0x23ecf4['map'](_0xd0d19=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd0d19,'before'),this['editor']['model']['createPositionAt'](_0xd0d19,0x0)));this['editor']['model']['change'](()=>{_0x16ae43['markMultiRangeBlockFormat'](_0x54ba60,{'commandName':'listStart','commandParams':[{'startIndex':_0x225381['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5eb37){if('formatBlock'!=_0x5eb37['type']&&'formatInline'!=_0x5eb37['type'])return;const _0x5b1c8c=this['editor']['locale'],{data:_0x3dad03}=_0x5eb37;if(!_0x3dad03)return;let _0xa93ea9,_0x3ca492;switch(_0x3dad03['commandName']){case'listStyle':_0xa93ea9='*Change\x20to:*\x20%0',_0x3ca492={'type':'format','content':o(_0x5b1c8c,_0xa93ea9,o(_0x5b1c8c,this['_getTranslationKeyForListStyle'](_0x3dad03['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa93ea9=_0x3dad03['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ca492={'type':'format','content':o(_0x5b1c8c,_0xa93ea9)};break;case'listStart':_0xa93ea9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ca492={'type':'format','content':o(_0x5b1c8c,_0xa93ea9,_0x3dad03['commandParams'][0x0]['startIndex'])};}return _0x3ca492;}['_getSuggestionBlocksForListStyle'](){const _0xf413c1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f56bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f56bf[0x0]?.['is']('element','listItem')&&_0x1f56bf['unshift'](..._0xf413c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f56bf[_0x1f56bf['length']-0x1]?.['is']('element','listItem')&&_0x1f56bf['push'](..._0xf413c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f56bf=[...new Set(_0x1f56bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f56bf=_0x1f56bf['filter'](_0x1d0cb7=>_0x1d0cb7['is']('element','listItem'))),_0x1f56bf;}['_getSuggestionBlocks'](_0x93b3b6){const _0x4a0f95=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c88b0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x93b3b6)['map'](_0x4905b3=>{const _0x382b06=this['editor']['model']['createPositionAt'](_0x4905b3,0x0);return[..._0x4a0f95['getSiblingNodes'](_0x382b06,'backward'),..._0x4a0f95['getSiblingNodes'](_0x382b06,'forward')];})['flat']();return _0x4c88b0=[...new Set(_0x4c88b0)],_0x4c88b0;}['_getTranslationKeyForListStyle'](_0x4473a0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4473a0)||'default')['toUpperCase']()+'_LIST_'+_0x4473a0['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1349dc{['afterInit'](){const _0x391ec6=this['editor'];if(!_0x391ec6['plugins']['has']('MediaEmbedEditing'))return;const _0x22cce1=_0x391ec6['plugins']['get']('TrackChangesEditing'),_0x13dd34=_0x391ec6['locale'];_0x22cce1['enableCommand']('mediaEmbed'),_0x22cce1['descriptionFactory']['registerElementLabel']('media',_0x511332=>o(_0x13dd34,'ELEMENT_MEDIA',_0x511332)),_0x391ec6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x44e66f,{writer:_0x347c41,options:_0x4012cc})=>{if(_0x4012cc['showSuggestionHighlights'])return _0x347c41['createEmptyElement']('div');},'converterPriority':'high'}),_0x391ec6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3709fd,_0x154005,_0x394938)=>{_0x394938['options']['showSuggestionHighlights']&&_0x3709fd['stop']();},{'priority':'high'});}}class mt extends _0x1349dc{['afterInit'](){const _0x41d41c=this['editor'];_0x41d41c['plugins']['has']('MentionEditing')&&_0x41d41c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1349dc{['afterInit'](){const _0x1fddb3=this['editor'];if(!_0x1fddb3['commands']['get']('insertMergeField'))return;_0x1fddb3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x282f50=_0x1fddb3['plugins']['get']('TrackChangesEditing'),_0x4d3001=_0x1fddb3['locale'];_0x282f50['descriptionFactory']['registerElementLabel']('mergeField',_0x2d6814=>o(_0x4d3001,'ELEMENT_MERGE_FIELD',_0x2d6814)),_0x282f50['descriptionFactory']['registerDescriptionCallback'](_0x49b7d5=>{if('insertion'!=_0x49b7d5['type']&&'deletion'!=_0x49b7d5['type'])return;const _0x4bb090=_0x49b7d5['getContainedElement']();if(null==_0x4bb090)return;if(!_0x4bb090['is']('element','mergeField'))return;const _0x126c6a=_0x1fddb3['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4bb090['getAttribute']('id'));return'insertion'==_0x49b7d5['type']?{'type':'insertion','content':o(_0x4d3001,'*Insert:*\x20%0','\x22'+_0x126c6a+'\x22\x20'+o(_0x4d3001,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4d3001,'*Remove:*\x20%0','\x22'+_0x126c6a+'\x22\x20'+o(_0x4d3001,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1349dc{['afterInit'](){const _0x5bc943=this['editor'],_0x3e53fc=_0x5bc943['plugins']['get']('TrackChangesEditing');_0x5bc943['plugins']['has']('MultiLevelList')&&(_0x3e53fc['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e53fc['registerBlockAttribute']('listMarkerStyle'),_0x3e53fc['descriptionFactory']['registerDescriptionCallback'](_0x5fd192=>this['handleDescriptions'](_0x5fd192)));}['handleDescriptions'](_0x55250f){const _0x2e84d9=this['editor']['locale'],{data:_0xdbdb50}=_0x55250f,_0x354a97={'type':'format','content':''};if(_0xdbdb50&&'listMarkerStyle'==_0xdbdb50['key']){if(!_0xdbdb50['oldValue'])return{'type':'format','content':o(_0x2e84d9,'*Set\x20format:*\x20%0',o(_0x2e84d9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdbdb50['newValue']+')'};if(!_0xdbdb50['newValue']){let _0x9c2b95=_0x55250f['head'];for(;_0x9c2b95;){if(_0x9c2b95['data']&&'listType'==_0x9c2b95['data']['key']&&_0x9c2b95['data']['newValue'])return _0x354a97;_0x9c2b95=_0x9c2b95['next'];}return{'type':'format','content':o(_0x2e84d9,'*Remove\x20format:*\x20%0',o(_0x2e84d9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdbdb50['oldValue']+')'};}}}}class kt extends _0x1349dc{['afterInit'](){const _0x31e159=this['editor'];if(!_0x31e159['plugins']['has']('PageBreakEditing'))return;_0x31e159['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x26e4cc=_0x31e159['plugins']['get']('TrackChangesEditing'),_0x5542c9=_0x31e159['locale'];_0x26e4cc['descriptionFactory']['registerElementLabel']('pageBreak',_0x1bbe45=>o(_0x5542c9,'ELEMENT_PAGE_BREAK',_0x1bbe45));}}class bt extends _0x1349dc{['afterInit'](){const _0x5431ba=this['editor'];if(!_0x5431ba['plugins']['has']('Paragraph'))return;const _0x2ea595=_0x5431ba['locale'],_0xc42f13=_0x5431ba['plugins']['get']('TrackChangesEditing');_0xc42f13['descriptionFactory']['registerElementLabel']('paragraph',_0x248b09=>o(_0x2ea595,'ELEMENT_PARAGRAPH',_0x248b09)),_0xc42f13['enableDefaultAttributesIntegration']('paragraph'),_0xc42f13['enableCommand']('insertParagraph'),_0x5431ba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5431ba),{'priority':'highest'}),_0x5431ba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4dbae4,_0x46f1e4,_0xa9ccdb)=>{_0xa9ccdb['options']['showSuggestionHighlights']&&nr(_0x5431ba,{'showActiveMarker':!0x1})(_0x4dbae4,_0x46f1e4,_0xa9ccdb);},{'priority':'highest'});const _0x1511c8=_0xc42f13['descriptionFactory'];_0x1511c8['registerDescriptionCallback'](_0x3ecda3=>{if('insertion'!==_0x3ecda3['type'])return;const {start:_0xd4951a,end:_0x144a6a}=_0x3ecda3['getFirstRange']();if(!_0xd4951a['isTouching'](_0x144a6a)||!_0xd4951a['nodeAfter'])return;const _0x2e4938=_0x5431ba['model']['schema'],_0x43768c=_0xd4951a['nodeAfter'];return _0x2e4938['isBlock'](_0x43768c)&&!_0x2e4938['isLimit'](_0x43768c)&&_0x2e4938['checkChild'](_0x43768c,'$text')?{'type':'insertion','content':o(_0x2ea595,'*Insert:*\x20%0',_0x1511c8['getItemLabel'](_0x43768c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32520d=this['editor'],_0x5757fc=_0x32520d['locale'];_0x32520d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf3e1=>{if('formatBlock'!=_0x5cf3e1['type'])return;const {data:_0x5f1b19}=_0x5cf3e1;return _0x5f1b19&&'paragraph'==_0x5f1b19['commandName']?{'type':'format','content':o(_0x5757fc,'*Change\x20to:*\x20%0',o(_0x5757fc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e172b,{showActiveMarker:_0x56279a=!0x0}={}){return(_0x1e6e5d,_0x3b6918,_0x451c56)=>{const _0x571b0e=_0x5e172b['plugins']['get']('TrackChangesEditing'),_0x100134=_0x3b6918['markerRange']['start'],_0x4cd296=_0x3b6918['markerRange']['end'],_0x26da8d=_0x5e172b['model']['schema'];if(!_0x100134['isTouching'](_0x4cd296)||!_0x100134['nodeAfter'])return;const _0x4a0fc5=_0x100134['nodeAfter'];if(_0x26da8d['isBlock'](_0x4a0fc5)&&!_0x26da8d['isLimit'](_0x4a0fc5)&&_0x26da8d['checkChild'](_0x4a0fc5,'$text')){if(!_0x451c56['consumable']['consume'](_0x3b6918['markerRange'],_0x1e6e5d['name']))return;const {authorId:_0x4f69cd}=_0x571b0e['_splitMarkerName'](_0x3b6918['markerName']),_0x35ac53=_0x451c56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4f69cd}),_0x495aae=_0x451c56['mapper']['toViewPosition'](_0x4cd296);_0x56279a&&_0x571b0e['activeMarkers']['includes'](_0x3b6918['markerName'])&&_0x451c56['writer']['addClass']('ck-suggestion-marker--active',_0x35ac53),_0x451c56['writer']['insert'](_0x495aae,_0x35ac53),_0x451c56['mapper']['bindElementToMarker'](_0x35ac53,_0x3b6918['markerName']);}};}class wt extends _0x1349dc{['afterInit'](){const _0x3d7dbe=this['editor'];if(!_0x3d7dbe['plugins']['has']('RemoveFormatEditing'))return;_0x3d7dbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d4ff=this['editor'];_0x8d4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388d0b=>{if('formatBlock'!=_0x388d0b['type']&&'formatInline'!=_0x388d0b['type'])return;const {data:_0x273328}=_0x388d0b;return _0x273328&&'removeFormat'==_0x273328['commandName']?{'type':'format','content':o(_0x8d4ff['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1349dc{['afterInit'](){const _0x2a8a14=this['editor'];if(!_0x2a8a14['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x442f0a=_0x2a8a14['plugins']['get']('TrackChangesEditing');_0x442f0a['enableCommand']('goToPreviousRestrictedEditingException'),_0x442f0a['enableCommand']('goToNextRestrictedEditingException');const _0x3ef3b9=_0x2a8a14['plugins']['get']('RestrictedEditingModeEditing');_0x3ef3b9['enableCommand']('trackChanges'),_0x3ef3b9['enableCommand']('acceptSuggestion'),_0x3ef3b9['enableCommand']('discardSuggestion'),_0x3ef3b9['enableCommand']('acceptAllSuggestions'),_0x3ef3b9['enableCommand']('discardAllSuggestions'),_0x3ef3b9['enableCommand']('acceptSelectedSuggestions'),_0x3ef3b9['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1349dc{static get['requires'](){return[_0x554ab6];}['init'](){const _0x350832=this['editor'],_0x4d94e5=_0x350832['plugins']['get']('TrackChangesEditing');_0x4d94e5['enableCommand']('shiftEnter'),_0x350832['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x350832),{'priority':'high'}),_0x350832['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x350832),{'priority':'high'}),_0x350832['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5eaec1,_0x50a12a,_0x349f65)=>{_0x349f65['options']['showSuggestionHighlights']&&ge(_0x350832,{'showActiveMarker':!0x1})(_0x5eaec1,_0x50a12a,_0x349f65);}),_0x4d94e5['descriptionFactory']['registerElementLabel']('softBreak',_0x45586c=>o(_0x350832['locale'],'ELEMENT_LINE_BREAK',_0x45586c));}}function ge(_0x11d46f,{showActiveMarker:_0x5a331f=!0x0}={}){return(_0x34a499,_0x3c70de,_0x584b6a)=>{const _0x3683ab=_0x11d46f['plugins']['get']('TrackChangesEditing');if(!_0x584b6a['consumable']['test'](_0x3c70de['markerRange'],_0x34a499['name']))return;const _0x4b0688=_0x11d46f['model'];for(const _0x18869f of _0x3c70de['markerRange']['getItems']()){if(!_0x18869f['is']('element','softBreak'))continue;const _0x38151f='deletion'==_0x3c70de['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x34219d}=_0x3683ab['_splitMarkerName'](_0x3c70de['markerName']),_0x26d5ed=_0x584b6a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38151f,'data-author-id':_0x34219d}),_0x26dcbd=_0x584b6a['mapper']['toViewPosition'](_0x4b0688['createPositionBefore'](_0x18869f));_0x5a331f&&_0x3683ab['activeMarkers']['includes'](_0x3c70de['markerName'])&&_0x584b6a['writer']['addClass']('ck-suggestion-marker--active',_0x26d5ed),_0x584b6a['writer']['insert'](_0x26dcbd,_0x26d5ed),_0x584b6a['mapper']['bindElementToMarker'](_0x26d5ed,_0x3c70de['markerName']);}};}class St extends _0x1349dc{['afterInit'](){const _0x214630=this['editor'],_0x4f2481=_0x214630['model'],_0x2114a0=_0x214630['locale'];if(!_0x214630['plugins']['has']('StandardEditingModeEditing'))return;const _0x47ebf7=_0x214630['plugins']['get']('TrackChangesEditing'),_0x560ca0='restrictedEditingException',_0x3114cb=_0x214630['commands']['get'](_0x560ca0);_0x47ebf7['enableCommand'](_0x560ca0,(_0x5eba42,_0x238782={})=>{const _0x2ac159=_0x4f2481['document']['selection'];if(_0x2ac159['isCollapsed'])return void _0x5eba42(_0x238782);const _0x3ce08c=void 0x0!==_0x238782['forceValue']?_0x238782['forceValue']:!_0x3114cb['value'];_0x4f2481['change'](()=>{const _0x527d75=Array['from'](_0x2ac159['getRanges']());for(const _0x25b309 of _0x527d75){const _0x3a923c=_0x3ce08c?[_0x25b309]:io(_0x560ca0,_0x25b309,_0x4f2481);for(const _0x9c8fe0 of _0x3a923c)_0x47ebf7['markInlineFormat'](_0x9c8fe0,{'commandName':_0x560ca0,'commandParams':[{'forceValue':_0x3ce08c}]});}});}),_0x47ebf7['descriptionFactory']['registerDescriptionCallback'](_0x1c6cc8=>{if('formatBlock'!=_0x1c6cc8['type']&&'formatInline'!=_0x1c6cc8['type'])return;const {data:_0x1e13d1}=_0x1c6cc8;return _0x1e13d1&&_0x1e13d1['commandName']==_0x560ca0?_0x1e13d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2114a0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2114a0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1349dc{['afterInit'](){const _0x1579a3=this['editor'];if(!_0x1579a3['plugins']['has']('Style')||!_0x1579a3['plugins']['has']('DataSchema'))return;const _0x28ae0e=_0x1579a3['plugins']['get']('TrackChangesEditing'),_0x229a49=_0x1579a3['locale'],_0x53e1ba=_0x1579a3['config']['get']('style')||{},_0x16d7da=_0x1579a3['plugins']['get']('GeneralHtmlSupport'),_0x1c006c=_0x1579a3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1579a3['plugins']['get']('DataSchema'),_0x53e1ba['definitions']);_0x28ae0e['enableDefaultAttributesIntegration']('style');const _0x490798=new Set();for(const _0x2b5590 of _0x1c006c['block']){const _0x472f50=_0x16d7da['getGhsAttributeNameForElement'](_0x2b5590['element']);_0x490798['add'](_0x472f50);}const _0x2d7d26=new Set();for(const _0x3cd550 of _0x1c006c['inline']){const _0x5b37bf=_0x16d7da['getGhsAttributeNameForElement'](_0x3cd550['element']);_0x2d7d26['add'](_0x5b37bf);for(const _0x2b1546 of _0x3cd550['ghsAttributes'])_0x2d7d26['add'](_0x2b1546);}for(const _0xb3923b of _0x490798)_0x28ae0e['registerBlockAttribute'](_0xb3923b),_0x28ae0e['descriptionFactory']['registerAttributeLabel'](_0xb3923b,o(_0x229a49,'FORMAT_STYLE'));for(const _0x1db402 of _0x2d7d26)_0x28ae0e['registerInlineAttribute'](_0x1db402),_0x28ae0e['descriptionFactory']['registerAttributeLabel'](_0x1db402,o(_0x229a49,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7e94=this['editor'],_0x2c8f5c=_0x2e7e94['locale'];_0x2e7e94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdebcf8=>{if('formatBlock'!=_0xdebcf8['type']&&'formatInline'!=_0xdebcf8['type'])return;const {data:_0x246efe}=_0xdebcf8;return _0x246efe&&'style'===_0x246efe['commandName']?_0x246efe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c8f5c,'*Set\x20format:*\x20%0',_0x246efe['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c8f5c,'*Remove\x20format:*\x20%0',_0x246efe['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1349dc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xa426a){super(_0xa426a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5f24b2=this['editor'],_0x53590f=_0x5f24b2['model']['document']['selection'];if(!_0x5f24b2['plugins']['has']('TableEditing'))return;const _0x3c89dd=_0x5f24b2['locale'],_0x585803=_0x5f24b2['plugins']['get']('TrackChangesEditing'),_0x12ddee=_0x5f24b2['plugins']['get']('TableUtils');_0x585803['descriptionFactory']['registerElementLabel']('table',_0xce0832=>o(_0x3c89dd,'ELEMENT_TABLE',_0xce0832)),this['_setupColumnsRowsFixing'](),_0x585803['enableCommand']('insertTable'),_0x585803['enableCommand']('selectTableRow'),_0x585803['enableCommand']('selectTableColumn');for(const _0x30fcc7 of['insertTableRowAbove','insertTableRowBelow']){const _0x551c61=_0x5f24b2['commands']['get'](_0x30fcc7);_0x585803['enableCommand'](_0x30fcc7,_0xcc0761=>{_0x5f24b2['model']['change'](_0x34d921=>{_0xcc0761();const _0x2fe349='above'===_0x551c61['order'],_0x4ac4d2=_0x12ddee['getSelectionAffectedTableCells'](_0x53590f),_0x12c136=_0x12ddee['getRowIndexes'](_0x4ac4d2),_0x409e24=_0x2fe349?_0x12c136['first']-0x1:_0x12c136['last']+0x1,_0xbfa36f=_0x4ac4d2[0x0]['findAncestor']('table'),_0x42a1ab=_0x12ddee['createTableWalker'](_0xbfa36f,{'startRow':_0x409e24,'endRow':_0x409e24}),_0x217841=Array['from'](_0x42a1ab)['map'](_0x1703bc=>_0x34d921['createRangeOn'](_0x1703bc['cell']));_0x585803['markMultiRangeInsertion'](_0x217841,'tableRow');});});}for(const _0x1dad0f of['insertTableColumnLeft','insertTableColumnRight']){const _0x4a3577=_0x5f24b2['commands']['get'](_0x1dad0f);_0x585803['enableCommand'](_0x1dad0f,_0x3abdcb=>{_0x5f24b2['model']['change'](_0x57c3cb=>{_0x3abdcb();const _0x11557b='left'===_0x4a3577['order'],_0x37ce84=_0x12ddee['getSelectionAffectedTableCells'](_0x53590f),_0x5d46ff=_0x12ddee['getColumnIndexes'](_0x37ce84),_0x1d4a27=_0x11557b?_0x5d46ff['first']-0x1:_0x5d46ff['last']+0x1,_0xb1fef5=_0x37ce84[0x0]['findAncestor']('table'),_0x30b531=_0x12ddee['createTableWalker'](_0xb1fef5,{'startRow':0x0,'column':_0x1d4a27,'includeAllSlots':!0x1}),_0x197415=Array['from'](_0x30b531)['map'](_0x5f51a0=>_0x57c3cb['createRangeOn'](_0x5f51a0['cell']));_0x585803['markMultiRangeInsertion'](_0x197415,'tableColumn');});});}for(const _0x49bc5d of['removeTableRow','removeTableColumn']){const _0x39cd2d=_0x49bc5d['substr'](0xb),_0x14adbc=_0x39cd2d['toLowerCase'](),_0x327ad8=_0x14adbc['substr'](0x0,0x3)+'span',_0x34eccd='table'+_0x39cd2d,_0xe9f39c='min'+_0x39cd2d,_0x3f52d7='max'+_0x39cd2d;_0x585803['enableCommand'](_0x49bc5d,()=>{_0x5f24b2['model']['change'](_0x1f95a0=>{const _0x293a4f=_0x12ddee['getSelectionAffectedTableCells'](_0x53590f),_0x4447c8=_0x293a4f[0x0]['findAncestor']('table');let _0x451543;if('removeTableRow'==_0x49bc5d){const _0x25f14a=_0x12ddee['getRowIndexes'](_0x293a4f);_0x451543={'startRow':_0x25f14a['first'],'endRow':_0x25f14a['last'],'includeAllSlots':!0x0};}else{const _0x52196b=_0x12ddee['getColumnIndexes'](_0x293a4f);_0x451543={'startColumn':_0x52196b['first'],'endColumn':_0x52196b['last'],'includeAllSlots':!0x0};}const _0x57a62f=_0x12ddee['createTableWalker'](_0x4447c8,_0x451543),_0x626a84=Array['from'](_0x57a62f)['map'](({cell:_0x29e52f})=>_0x29e52f),_0x2fca33=be(_0x626a84['filter'](_0x9e44ed=>_0x9e44ed['hasAttribute'](_0x327ad8))),_0x4a7315=be(_0x626a84['filter'](_0x38a46a=>!_0x38a46a['hasAttribute'](_0x327ad8)))['map'](_0x311e2c=>_0x1f95a0['createRangeOn'](_0x311e2c)),_0xaaa1a7=_0x585803['markMultiRangeDeletion'](_0x4a7315,_0x34eccd);if(_0xaaa1a7&&('tableRow'==_0xaaa1a7['subType']||'tableColumn'==_0xaaa1a7['subType'])){const _0x4f1287=this['_getSuggestionCoords'](_0xaaa1a7);for(const _0x238206 of _0x2fca33){const _0x13b752=_0x1f95a0['createRangeOn'](_0x238206),_0x2028de=_0x12ddee['getCellLocation'](_0x238206),_0x44334f=_0x238206['getAttribute'](_0x327ad8)-0x1,_0x3ae815=_0x4f1287[_0xe9f39c],_0x2fc6ee=_0x4f1287[_0x3f52d7];_0x3ae815<=_0x2028de[_0x14adbc]&&_0x2028de[_0x14adbc]+_0x44334f<=_0x2fc6ee&&_0xaaa1a7['addRange'](_0x13b752);}}});});}function _0x3f673d(_0xbf7411){const _0x171f6e=Array['from'](_0x53590f['getRanges']())['map'](_0x4d9f53=>_0x5168fa['fromRange'](_0x4d9f53));_0x5f24b2['model']['change'](_0x6a2fb9=>{const _0x2e8251=_0x6a2fb9['batch'];_0xbf7411=_0xbf7411['filter'](_0x4f3e37=>'$graveyard'!=_0x4f3e37['root']['rootName']),_0x6a2fb9['setSelection'](_0xbf7411),_0x5f24b2['commands']['get']('removeTableRow')['refresh'](),_0x5f24b2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5f24b2['model']['enqueueChange'](()=>{_0x5f24b2['model']['enqueueChange'](_0x2e8251,_0x37bb54=>{const _0xd92fa2=_0x171f6e['filter'](_0x392104=>'$graveyard'!=_0x392104['root']['rootName']);_0xd92fa2['length']>0x0&&_0x37bb54['setSelection'](_0xd92fa2);for(const _0x46e408 of _0x171f6e)_0x46e408['detach']();});});});}function _0x261ff3(_0x443218){_0x5f24b2['model']['change'](_0x2d28d9=>{const _0x4c3400=Array['from'](_0x53590f['getRanges']())['map'](_0x4e9369=>_0x5168fa['fromRange'](_0x4e9369)),_0xb6dda5=[];for(const _0x234739 of _0x443218)for(const _0x3d2fb0 of _0x234739['getItems']({'shallow':!0x0}))_0xb6dda5['push'](_0x3d2fb0);for(const _0x10fd40 of _0xb6dda5)'$graveyard'!=_0x10fd40['root']['rootName']&&(_0x2d28d9['setSelection'](_0x2d28d9['createPositionAt'](_0x10fd40,0x0)),_0x5f24b2['commands']['get']('removeTableColumn')['refresh'](),_0x5f24b2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b7a79=_0x4c3400['filter'](_0x5a69c0=>'$graveyard'!=_0x5a69c0['root']['rootName']);_0x4b7a79['length']>0x0&&_0x2d28d9['setSelection'](_0x4b7a79);for(const _0x1d3ceb of _0x4c3400)_0x1d3ceb['detach']();});}function _0x50b061(_0x1f506a,_0x186f74){return _0x186f74['every'](_0x488e62=>_0x1f506a['some'](_0x1ab67a=>_0x1ab67a['end']['isEqual'](_0x488e62['start'])||_0x488e62['end']['isEqual'](_0x1ab67a['start'])));}function _0x1399dd(_0xe98e51,_0x141268){return!_0xe98e51['some'](_0x2fad9a=>_0x141268['some'](_0x548a7e=>_0x2fad9a['isIntersecting'](_0x548a7e)))&&_0xe98e51['some'](_0x44a51d=>_0x141268['some'](_0x12e423=>_0x44a51d['end']['isTouching'](_0x12e423['start'])));}_0x5f24b2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa73123,_0xefe5f3,_0x170375)=>{if(!_0x170375['options']['showSuggestionHighlights'])return;const _0xfcae9a=_0xefe5f3['item'];if(!_0xfcae9a)return;const _0x5b5219=_0x170375['mapper']['toViewElement'](_0xfcae9a);function _0x3b88a0(_0x604b66){return Array['isArray'](_0x604b66)?_0x604b66:[_0x604b66];}_0x5b5219&&'tableCell'===_0xfcae9a['name']&&_0x3c273c(_0x5b5219,_0x170375['writer'],(_0x36530b,_0x37b8e8,_0x3ab301)=>_0x3ab301['addClass'](_0x3b88a0(_0x37b8e8['classes']),_0x36530b),(_0x276e9e,_0x42647e,_0x14fb1c)=>_0x14fb1c['removeClass'](_0x3b88a0(_0x42647e['classes']),_0x276e9e));},{'priority':'highest'}),_0x585803['descriptionFactory']['registerDescriptionCallback'](_0x6e46e0=>{if('insertion'!=_0x6e46e0['type']&&'deletion'!=_0x6e46e0['type'])return;const _0x1661f=_0x6e46e0['getContainedElement']();if(null!=_0x1661f&&_0x1661f['is']('element','table')){if('insertion'==_0x6e46e0['type']){const _0x221a59=_0x6e46e0['getItems']()['filter'](_0x4a813a=>_0x4a813a['is']('$textProxy'))['map'](_0x8769f7=>_0x8769f7['data']);if(_0x221a59['length'])return{'type':'insertion','content':o(_0x3c89dd,'*Insert:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x221a59['join']('\x20')+'\x22'))};}if('deletion'==_0x6e46e0['type']){const _0x1d8457=_0x6e46e0['getItems']()['filter'](_0x4366a9=>_0x4366a9['is']('$textProxy'))['map'](_0x556166=>_0x556166['data']);if(_0x1d8457['length'])return{'type':'deletion','content':o(_0x3c89dd,'*Remove:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d8457['join']('\x20')+'\x22'))};}}}),_0x585803['descriptionFactory']['registerDescriptionCallback'](_0x135d42=>{if('tableRow'==_0x135d42['subType']){const _0x51a6d1=_0x135d42['getItems']()['filter'](_0x1a0589=>_0x1a0589['is']('$textProxy'))['map'](_0x1963ac=>_0x1963ac['data']),_0x3b76d9=this['_getSuggestionCoords'](_0x135d42),_0x143d32=_0x3b76d9['maxRow']-_0x3b76d9['minRow']+0x1;if('insertion'==_0x135d42['type'])return _0x51a6d1['length']?{'type':'insertion','content':o(_0x3c89dd,'*Insert:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143d32,'\x22'+_0x51a6d1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c89dd,'*Insert:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_ROW',_0x143d32))};if('deletion'==_0x135d42['type'])return _0x51a6d1['length']?{'type':'deletion','content':o(_0x3c89dd,'*Remove:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143d32,'\x22'+_0x51a6d1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c89dd,'*Remove:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_ROW',_0x143d32))};}if('tableColumn'==_0x135d42['subType']){const _0x4d4d4c=_0x135d42['getItems']()['filter'](_0x186498=>_0x186498['is']('$textProxy'))['map'](_0x562e34=>_0x562e34['data']),_0x46356b=this['_getSuggestionCoords'](_0x135d42),_0x11fd69=_0x46356b['maxColumn']-_0x46356b['minColumn']+0x1;if('insertion'==_0x135d42['type'])return _0x4d4d4c['length']?{'type':'insertion','content':o(_0x3c89dd,'*Insert:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11fd69,'\x22'+_0x4d4d4c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c89dd,'*Insert:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_COLUMN',_0x11fd69))};if('deletion'==_0x135d42['type'])return _0x4d4d4c['length']?{'type':'deletion','content':o(_0x3c89dd,'*Remove:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11fd69,'\x22'+_0x4d4d4c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c89dd,'*Remove:*\x20%0',o(_0x3c89dd,'ELEMENT_TABLE_COLUMN',_0x11fd69))};}}),_0x585803['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3f673d),_0x585803['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3f673d),_0x585803['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x261ff3),_0x585803['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x261ff3),_0x585803['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50b061),_0x585803['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50b061),_0x585803['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1399dd),_0x585803['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1399dd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fc791=this['editor'],_0x474797=_0x2fc791['model']['document']['selection'];return(_0x80e670,_0x1edf31)=>{_0x2fc791['model']['change'](_0x3cff46=>{const {commandName:_0x185b3a,commandParams:_0x188f7d}=_0x1edf31;let _0x2396a8=_0x80e670[0x0]['end']['nodeBefore'];_0x188f7d&&_0x188f7d[0x0]&&!0x1===_0x188f7d[0x0]['forceValue']&&(_0x2396a8=_0x80e670[0x0]['start']['nodeAfter']);const _0x5ae6a3=_0x3cff46['createRangeIn'](_0x2396a8);if('$graveyard'==_0x5ae6a3['root']['rootName'])return;const _0x4431ea=Array['from'](_0x474797['getRanges']())['map'](_0x47e7ec=>_0x5168fa['fromRange'](_0x47e7ec));_0x3cff46['setSelection'](_0x5ae6a3),_0x2fc791['commands']['get'](_0x185b3a)['refresh'](),_0x188f7d['push']({'forceDefaultExecution':!0x0}),_0x2fc791['execute'](_0x185b3a,..._0x188f7d);const _0x10e29c=_0x4431ea['filter'](_0x3e2262=>'$graveyard'!=_0x3e2262['root']['rootName']);_0x10e29c['length']>0x0&&_0x3cff46['setSelection'](_0x10e29c);for(const _0x393722 of _0x4431ea)_0x393722['detach']();});};}['_getCoordsForCells'](_0x389a6c){const _0x4ec6d6=this['editor']['plugins']['get']('TableUtils');let _0x5cc688=Number['MAX_SAFE_INTEGER'],_0x5718b0=Number['MIN_SAFE_INTEGER'],_0x561138=Number['MAX_SAFE_INTEGER'],_0x4a0e9a=Number['MIN_SAFE_INTEGER'];for(const _0xe7d76e of _0x389a6c){if('$graveyard'==_0xe7d76e['root']['rootName'])continue;const {row:_0x5651b6,column:_0x37e471}=_0x4ec6d6['getCellLocation'](_0xe7d76e),_0x1183ba=_0xe7d76e['hasAttribute']('rowspan')?_0xe7d76e['getAttribute']('rowspan')-0x1:0x0,_0x100bdd=_0xe7d76e['hasAttribute']('colspan')?_0xe7d76e['getAttribute']('colspan')-0x1:0x0;_0x5cc688=_0x5651b6<_0x5cc688?_0x5651b6:_0x5cc688,_0x5718b0=_0x5651b6+_0x1183ba>_0x5718b0?_0x5651b6+_0x1183ba:_0x5718b0,_0x561138=_0x37e471<_0x561138?_0x37e471:_0x561138,_0x4a0e9a=_0x37e471+_0x100bdd>_0x4a0e9a?_0x37e471+_0x100bdd:_0x4a0e9a;}return{'minRow':_0x5cc688,'maxRow':_0x5718b0,'minColumn':_0x561138,'maxColumn':_0x4a0e9a};}['_setupColumnsRowsFixing'](){const _0x22bcd0=this['editor'],_0x3cb397=_0x22bcd0['plugins']['get']('TrackChangesEditing'),_0x17561d=_0x22bcd0['plugins']['get']('TableUtils');_0x22bcd0['model']['document']['on']('change:data',()=>{const _0x5b3a1d=Array['from'](_0x22bcd0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cfb9,data:_0xc40ae9}of _0x5b3a1d){const {group:_0x1da796,id:_0x56e293,subType:_0x466414}=_0x3cb397['_splitMarkerName'](_0x10cfb9);if('suggestion'!=_0x1da796)continue;if(null!=_0xc40ae9['oldRange'])continue;const _0x35fdc9=_0x3cb397['getSuggestion'](_0x56e293);this['_tablePostFixingSubtypes']['includes'](_0x466414)&&this['_tableSuggestions']['add'](_0x35fdc9);}},{'priority':'low'});const _0x10d466=(_0x3ec2c2,_0x2ba3a0)=>{let _0x542cd6=!0x1;const _0x4370eb=_0x2ba3a0['createRangeOn'](_0x3ec2c2),_0x53fd72=_0x3ec2c2['findAncestor']('table'),_0x2b2888=_0x17561d['getCellLocation'](_0x3ec2c2);for(const _0x3a1dc8 of this['_tableSuggestions']){const _0x235448=_0x3a1dc8['subType'],_0x286e11=_0x235448['startsWith']('tablePaste'),_0x5738da=_0x235448['substr'](_0x286e11?0xa:0x5),_0x5c5c67=_0x5738da['toLowerCase'](),_0x3af6f1=_0x5c5c67['substr'](0x0,0x3)+'span',_0x3ab926='min'+_0x5738da,_0x1e0682='max'+_0x5738da;if(!_0x3a1dc8['isInContent'])continue;if(_0x53fd72!=_0x3a1dc8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3a1dc8['isIntersectingWithRange'](_0x4370eb))continue;const _0x4477c4=_0x3ec2c2['hasAttribute'](_0x3af6f1)?_0x3ec2c2['getAttribute'](_0x3af6f1)-0x1:0x0,_0x3bc0a3=this['_getSuggestionCoords'](_0x3a1dc8),_0x5f3b0c=_0x3bc0a3[_0x3ab926],_0x266b39=_0x3bc0a3[_0x1e0682];_0x5f3b0c<=_0x2b2888[_0x5c5c67]&&_0x2b2888[_0x5c5c67]+_0x4477c4<=_0x266b39&&(_0x3a1dc8['addRange'](_0x4370eb),_0x542cd6=!0x0);}return _0x542cd6;};_0x22bcd0['model']['document']['registerPostFixer'](_0x2f5916=>{let _0x22ae5b=!0x1;for(const _0x5540af of _0x22bcd0['model']['document']['differ']['getChanges']())if('insert'==_0x5540af['type']){if('tableRow'==_0x5540af['name']){for(const _0x15f753 of _0x5540af['position']['nodeAfter']['getChildren']())_0x22ae5b=_0x22ae5b||_0x10d466(_0x15f753,_0x2f5916);}else'tableCell'==_0x5540af['name']&&(_0x22ae5b=_0x22ae5b||_0x10d466(_0x5540af['position']['nodeAfter'],_0x2f5916));}return _0x22ae5b;});}['_getSuggestionCoords'](_0x583c4b){return this['_getCoordsForCells'](_0x583c4b['getRanges']()['map'](_0x38615f=>_0x38615f['start']['nodeAfter']));}}function be(_0x3b7901){return Array['from'](new Set(_0x3b7901)['values']());}class vt extends _0x1349dc{static get['requires'](){return[It];}['afterInit'](){const _0x5b95e6=this['editor'],_0x49232d=_0x5b95e6['model']['document']['selection'],_0x40e266=_0x5b95e6['locale'];if(!_0x5b95e6['plugins']['has']('TableEditing'))return;const _0x33de9e=_0x5b95e6['plugins']['get']('TrackChangesEditing'),_0x59eb0c=_0x5b95e6['plugins']['get']('TableUtils'),_0x6f45e=_0x5b95e6['plugins']['get'](It);_0x6f45e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x33de9e['enableCommand']('mergeTableCells',()=>{const _0x488322=_0x59eb0c['getSelectionAffectedTableCells'](_0x5b95e6['model']['document']['selection']);_0x5b95e6['model']['change'](()=>{_0x33de9e['markMultiRangeBlockFormat'](_0x488322,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b95e6['commands']['get']('mergeTableCells')['on']('execute',(_0x48a32c,_0x5532a2)=>{_0x5b95e6['commands']['get']('trackChanges')['value']&&(_0x5532a2['length']>0x0&&_0x5532a2[_0x5532a2['length']-0x1]&&_0x5532a2[_0x5532a2['length']-0x1]['forceDefaultExecution']||_0x33de9e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48a32c['stop']());},{'priority':'highest'});for(const _0xcb0f75 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x291325=_0x5b95e6['commands']['get'](_0xcb0f75);_0x33de9e['enableCommand'](_0xcb0f75,()=>{const _0x4c8eda=_0x5b95e6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x418e94=>_0x418e94['is']('element','tableCell')),_0x8ab55=_0x291325['value'];_0x5b95e6['model']['change'](()=>{_0x33de9e['markMultiRangeBlockFormat']([_0x4c8eda,_0x8ab55],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a0c69 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa61307=_0x5b95e6['commands']['get'](_0x5a0c69);_0x33de9e['enableCommand'](_0x5a0c69,()=>{const _0x3c1a05=_0x59eb0c['getSelectionAffectedTableCells'](_0x5b95e6['model']['document']['selection'])[0x0],_0x502d32=_0x3c1a05['findAncestor']('table'),{column:_0x2791b2,row:_0x43fe4a}=_0x59eb0c['getCellLocation'](_0x3c1a05);let _0x11912c=[];if('horizontally'==_0xa61307['direction']){const _0x41edb6=_0x59eb0c['createTableWalker'](_0x502d32,{'startRow':_0x43fe4a,'endRow':_0x43fe4a,'includeAllSlots':!0x0});_0x11912c=Array['from'](_0x41edb6)['map'](_0x57fb7a=>_0x57fb7a['cell']);}else{const _0x5d90d0=_0x59eb0c['createTableWalker'](_0x502d32,{'column':_0x2791b2,'includeAllSlots':!0x0});_0x11912c=Array['from'](_0x5d90d0)['map'](_0x3bff7d=>_0x3bff7d['cell']);}_0x5b95e6['model']['change'](_0xd071f7=>{_0x33de9e['markBlockFormat'](_0xd071f7['createRangeOn'](_0x3c1a05),{'commandName':_0x5a0c69,'commandParams':[]},_0x11912c,_0x5a0c69);});});}_0x33de9e['descriptionFactory']['registerDescriptionCallback'](_0x56777a=>{if('formatBlock'!=_0x56777a['type']&&'formatInline'!=_0x56777a['type'])return;const {data:_0x50027e}=_0x56777a;return _0x50027e&&'mergeTableCells'==_0x50027e['commandName']?{'type':'format','content':o(_0x40e266,'*Merge\x20cells*')}:void 0x0;}),_0x33de9e['descriptionFactory']['registerDescriptionCallback'](_0x17642e=>{if('formatBlock'!=_0x17642e['type']&&'formatInline'!=_0x17642e['type'])return;const {data:_0x57cfa2}=_0x17642e;return _0x57cfa2?'splitTableCellVertically'==_0x57cfa2['commandName']?{'type':'format','content':o(_0x40e266,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x57cfa2['commandName']?{'type':'format','content':o(_0x40e266,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e9d89=_0x6f45e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d6e2a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x33de9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d6e2a,'accept',_0x5e9d89);for(const _0x487e1b of['splitTableCellVertically','splitTableCellHorizontally'])_0x33de9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x487e1b,'accept',_0x5e9d89);_0x33de9e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x435996=>{_0x5b95e6['model']['change'](_0x426bd3=>{const _0x477d6e=Array['from'](_0x49232d['getRanges']())['map'](_0x387cf8=>_0x5168fa['fromRange'](_0x387cf8));_0x426bd3['setSelection'](_0x435996),_0x5b95e6['commands']['get']('mergeTableCells')['refresh'](),_0x5b95e6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x10ec3f=_0x477d6e['filter'](_0x5f1fd5=>'$graveyard'!=_0x5f1fd5['root']['rootName']);_0x10ec3f['length']>0x0&&_0x426bd3['setSelection'](_0x10ec3f);for(const _0x22051a of _0x477d6e)_0x22051a['detach']();});});for(const _0x2d27f9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54c1a0=_0x5b95e6['commands']['get'](_0x2d27f9);_0x54c1a0['on']('set:isEnabled',(_0x7bd52e,_0x8937cc,_0x2f0e51)=>{if(_0x2f0e51){const _0x4b6923=_0x5b95e6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1bc16a=>_0x1bc16a['is']('element','tableCell'));this['_areMergableCells'](_0x54c1a0['value'],_0x4b6923)||(_0x7bd52e['return']=!0x1,_0x7bd52e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x295c8a=this['editor']['commands']['get']('mergeTableCells'),_0x19fdd7=this['editor']['plugins']['get']('TableUtils');if(!_0x295c8a['isEnabled'])return!0x1;const _0x1469d5=_0x19fdd7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3e204e of _0x1469d5)for(const _0x487437 of _0x1469d5)if(_0x3e204e!=_0x487437&&!this['_areMergableCells'](_0x3e204e,_0x487437))return!0x1;return!0x0;}['_areMergableCells'](_0x46794f,_0x17b8fb){const _0x7c73c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40eea0=this['editor']['model']['createRangeOn'](_0x46794f),_0x31b28c=this['editor']['model']['createRangeOn'](_0x17b8fb),_0x4d6946=new Set(),_0x42aff6=new Set();for(const _0x352369 of _0x7c73c7['getSuggestions']())if(('insertion'==_0x352369['type']||'deletion'==_0x352369['type']||'mergeTableCells'==_0x352369['subType'])&&_0x352369['isInContent']){for(const _0x13f7fe of _0x352369['getRanges']())_0x13f7fe['containsRange'](_0x40eea0,!0x0)&&_0x4d6946['add'](_0x352369['type']+':'+_0x352369['author']['id']),_0x13f7fe['containsRange'](_0x31b28c,!0x0)&&_0x42aff6['add'](_0x352369['type']+':'+_0x352369['author']['id']);}if(_0x4d6946['size']!=_0x42aff6['size'])return!0x1;for(const _0x4726c9 of _0x4d6946)if(!_0x42aff6['has'](_0x4726c9))return!0x1;return!0x0;}}class Ct extends _0x1349dc{static get['requires'](){return[It];}['afterInit'](){const _0x471ffd=this['editor'];if(!_0x471ffd['plugins']['has']('TableEditing'))return;const _0x2260bc=_0x471ffd['locale'],_0x4f6560=_0x471ffd['plugins']['get']('TrackChangesEditing');_0x4f6560['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4f6560['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4f6560['registerBlockAttribute']('headingRows'),_0x4f6560['registerBlockAttribute']('headingColumns'),_0x4f6560['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2260bc,'FORMAT_HEADER_ROW')),_0x4f6560['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2260bc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x543c07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x458e60=this['editor']['plugins']['get']('TableUtils'),_0x1668c5=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x1abfbc({showActiveMarker:_0x1ca74e=!0x0,setDataAttribute:_0x51e3fe=!0x0}={}){return(_0x115684,_0x798a83,_0x8e42f7)=>{const {type:_0x514e68,id:_0x22f138}=_0x543c07['_splitMarkerName'](_0x798a83['markerName']),_0x3d7f0f=_0x543c07['getSuggestion'](_0x22f138),_0x10278e=_0x3d7f0f['data'];if('formatBlock'!=_0x3d7f0f['type']||!_0x10278e||'setTableColumnHeader'!=_0x10278e['commandName'])return;if(_0x798a83['item'])return void _0x115684['stop']();if(!_0x8e42f7['consumable']['consume'](_0x798a83['markerRange'],_0x115684['name']))return;const _0x29ff22=_0x798a83['markerRange']['start']['nodeAfter'],_0x4577b0=_0x798a83['markerRange']['end']['nodeBefore'],_0x224459=_0x29ff22['parent']['parent'],{column:_0x1eed4a}=_0x458e60['getCellLocation'](_0x29ff22),{column:_0x231de9}=_0x458e60['getCellLocation'](_0x4577b0);for(let _0x199f2c=_0x1eed4a;_0x199f2c<=_0x231de9;_0x199f2c++){const _0x5c5f2a=_0x458e60['createTableWalker'](_0x224459,{'column':_0x199f2c,'includeAllSlots':!0x1});for(const _0x3bac50 of _0x5c5f2a){const _0x24b924=_0x3bac50['cell'],_0x38458e=_0x8e42f7['mapper']['toViewElement'](_0x24b924);_0x8e42f7['writer']['addClass']('ck-suggestion-marker-'+_0x514e68,_0x38458e),_0x51e3fe&&_0x8e42f7['writer']['setAttribute']('data-suggestion',_0x22f138,_0x38458e),_0x8e42f7['mapper']['bindElementToMarker'](_0x38458e,_0x798a83['markerName']),_0x1ca74e&&(_0x543c07['activeMarkers']['includes'](_0x798a83['markerName'])?_0x8e42f7['writer']['addClass']('ck-suggestion-marker--active',_0x38458e):_0x8e42f7['writer']['removeClass']('ck-suggestion-marker--active',_0x38458e));}}};}_0x543c07['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1668c5),_0x543c07['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1668c5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1abfbc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x189667,_0x318cef,_0x1ae985)=>{_0x1ae985['options']['showSuggestionHighlights']&&_0x1abfbc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x189667,_0x318cef,_0x1ae985);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x59de20,_0x14c2c7,_0x5cc762)=>{const {type:_0x4294a1,id:_0x2fb0c1}=_0x543c07['_splitMarkerName'](_0x14c2c7['markerName']),_0x2a0227=_0x543c07['getSuggestion'](_0x2fb0c1),_0x39d17d=_0x2a0227['data'];if('formatBlock'!=_0x2a0227['type']||!_0x39d17d||'setTableColumnHeader'!=_0x39d17d['commandName'])return;const _0xb72f52=_0x5cc762['mapper']['markerNameToElements'](_0x14c2c7['markerName']);if(_0xb72f52){for(const _0x1ee2bc of _0xb72f52)_0x5cc762['writer']['removeClass']('ck-suggestion-marker-'+_0x4294a1,_0x1ee2bc),_0x5cc762['writer']['removeClass']('ck-suggestion-marker--active',_0x1ee2bc),_0x5cc762['writer']['removeAttribute']('data-suggestion',_0x1ee2bc),_0x5cc762['mapper']['unbindElementFromMarkerName'](_0x1ee2bc,_0x14c2c7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec28f=this['editor'],_0x49425b=_0x2ec28f['locale'];function _0x30809b(_0x27a4f0){return{'type':'format','content':o(_0x49425b,'*Format:*\x20%0',_0x27a4f0)};}_0x2ec28f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4240ae=>{if('formatBlock'!=_0x4240ae['type'])return;const {data:_0x27881a}=_0x4240ae;if(_0x27881a){if('setTableRowHeader'==_0x27881a['commandName']){const _0x21a1a7=_0x27881a['commandParams'][0x0]['forceValue'];return _0x30809b(o(_0x49425b,_0x21a1a7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x27881a['commandName']){const _0x49f88b=_0x27881a['commandParams'][0x0]['forceValue'];return _0x30809b(o(_0x49425b,_0x49f88b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x12347e=>[_0x12347e,null]));class _t extends _0x1349dc{static get['requires'](){return[It];}['afterInit'](){const _0x32d8c2=this['editor'];if(!_0x32d8c2['plugins']['has']('TableClipboard'))return;const _0x7c756b=_0x32d8c2['plugins']['get']('TrackChangesEditing'),_0x2c396d=_0x32d8c2['plugins']['get']('TableUtils'),_0x366f39=_0x32d8c2['plugins']['get'](It),_0x2dcff6=_0x32d8c2['plugins']['get']('TableClipboard');_0x366f39['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x32d8c2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32d8c2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x475992=null;_0x32d8c2['model']['on']('insertContent',(_0x38782c,_0x2e02b4)=>{const [_0xfb59a4,_0x4354f7]=_0x2e02b4,_0x1c959e=_0x2e02b4[_0x2e02b4['length']-0x1];_0x1c959e&&_0x1c959e['forceDefaultExecution']||_0x7c756b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49be10,_0x5b3540,_0xac2bd7,_0xabccb3,_0x28004d){if(_0x5b3540&&!_0x5b3540['is']('documentSelection'))return!0x1;const _0x231a59=_0x28004d['getTableIfOnlyTableInContent'](_0x49be10,_0xac2bd7);if(!_0x231a59||!Re(_0x231a59,void 0x0,_0xabccb3))return!0x1;const _0x2f27e2=_0xabccb3['getSelectionAffectedTableCells'](_0xac2bd7['document']['selection']);if(!_0x2f27e2['length'])return!0x1;const _0x4575ba=_0x2f27e2[0x0]['findAncestor']('table'),_0x3411a7=_0xabccb3['getRowIndexes'](_0x2f27e2),_0x22da9c=_0xabccb3['getColumnIndexes'](_0x2f27e2),_0xb7e9f={'startRow':_0x3411a7['first'],'endRow':_0x3411a7['last'],'startColumn':_0x22da9c['first'],'endColumn':_0x22da9c['last']};return 0x1==_0x2f27e2['length']&&(_0xb7e9f['endRow']+=_0xabccb3['getRows'](_0x231a59)-0x1,_0xb7e9f['endColumn']+=_0xabccb3['getColumns'](_0x231a59)-0x1),Re(_0x4575ba,_0xb7e9f,_0xabccb3);}(_0xfb59a4,_0x4354f7,_0x32d8c2['model'],_0x2c396d,_0x2dcff6)&&(_0x38782c['stop'](),_0x475992={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32d8c2['model']['change'](()=>{_0x32d8c2['model']['insertContent'](_0x2e02b4[0x0],_0x2e02b4[0x1],_0x2e02b4[0x2],{'forceDefaultExecution':!0x0});const _0x3434af=_0x30088c(),{rowInsertionRanges:_0xb8ead8,columnInsertionRanges:_0x52ca3b,insertionRanges:_0x4a78c8,deletionRanges:_0x255aac,cells:_0x5d9e76}=_0x475992;_0xb8ead8['length']&&_0x7c756b['markMultiRangeInsertion'](_0xb8ead8,'tablePasteRow',{'tablePasteChainId':_0x3434af}),_0x52ca3b['length']&&_0x7c756b['markMultiRangeInsertion'](_0x52ca3b,'tablePasteColumn',{'tablePasteChainId':_0x3434af}),_0x4a78c8['length']&&(_0x7c756b['markMultiRangeInsertion'](_0x4a78c8,'tablePaste',{'tablePasteChainId':_0x3434af,'skipNestingCheck':!0x0}),_0x4a78c8['forEach'](_0x207a9c=>_0x207a9c['detach']?.())),_0x255aac['length']&&(_0x7c756b['markMultiRangeDeletion'](_0x255aac,'tablePaste',{'tablePasteChainId':_0x3434af,'skipNestingCheck':!0x0}),_0x255aac['forEach'](_0xd52e0a=>_0xd52e0a['detach']?.()));const _0x597700=_0x7c756b['markMultiRangeBlockFormat'](_0x5d9e76['map'](({element:_0x510ce5})=>_0x510ce5),{'formatGroupId':_0x30088c()},[],'tablePasteCell',{'tablePasteChainId':_0x3434af});if(_0x597700){const _0x3ccc71=_0x597700['getMarkers'](),_0x293a34=[];for(const {element:_0x18f311,attributes:_0x451c15}of _0x5d9e76){if(!_0x451c15)continue;const _0x407f90=_0x32d8c2['model']['createRangeOn'](_0x18f311),_0x560b99=_0x3ccc71['find'](_0x355ebf=>_0x355ebf['getRange']()['isEqual'](_0x407f90));_0x560b99&&_0x293a34['push']([_0x560b99['name'],_0x451c15]);}_0x293a34['length']&&_0x597700['setAttribute']('markerAttributes',Object['fromEntries'](_0x293a34));}_0x475992=null;}));},{'priority':_0x252709['high']+0xa}),_0x32d8c2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x373f5a,_0x49c214)=>{const [_0x133287,_0x2b7d4c,,_0x5efbe3]=_0x49c214;if(!_0x475992)return;_0x373f5a['stop']();const _0x4e2c88=_0x133287['cell'],_0x123ced=_0x2b7d4c,_0x54dfe9=ke(_0x4e2c88),_0x1df6df=ke(_0x123ced);_0x373f5a['return']=_0x4e2c88;let _0x340b6c=null,_0x1a0902=null;if(_0x1df6df||_0x54dfe9){if(_0x54dfe9&&!_0x1df6df){_0x5efbe3['remove'](_0x4e2c88['getChild'](0x0));for(const _0x713791 of Array['from'](_0x123ced['getChildren']()))_0x5efbe3['insert'](_0x713791,_0x4e2c88,'end');const _0x5c4cb9=_0x475992['rowInsertionIndexes']['includes'](_0x133287['row']),_0x43bfa4=_0x475992['columnInsertionIndexes']['includes'](_0x133287['column']);_0x5c4cb9||_0x43bfa4||(_0x340b6c=_0x5168fa['fromRange'](_0x5efbe3['createRangeIn'](_0x4e2c88)));}else _0x1df6df&&!_0x54dfe9&&(_0x1a0902=_0x5efbe3['createRangeIn'](_0x4e2c88));}else{const _0x5031d4=_0x5efbe3['createElement']('tableCellSuggestion'),_0x5ceeae=_0x5efbe3['createElement']('tableCellSuggestion');_0x5efbe3['wrap'](_0x5efbe3['createRangeIn'](_0x4e2c88),_0x5ceeae),_0x5efbe3['insert'](_0x5031d4,_0x4e2c88,0x0);for(const _0x1e361b of Array['from'](_0x123ced['getChildren']()))_0x5efbe3['insert'](_0x1e361b,_0x5031d4,'end');_0x340b6c=_0x5168fa['fromRange'](_0x5efbe3['createRangeOn'](_0x5031d4)),_0x1a0902=_0x5168fa['fromRange'](_0x5efbe3['createRangeOn'](_0x5ceeae));}const _0x5eea95=Array['from'](_0x123ced['getAttributes']())['filter'](([_0x545f88])=>Pe['includes'](_0x545f88));_0x475992['cells']['push']({'element':_0x4e2c88,'attributes':_0x5eea95['length']?Object['fromEntries'](_0x5eea95):null}),_0x340b6c&&_0x475992['insertionRanges']['push'](_0x340b6c),_0x1a0902&&_0x475992['deletionRanges']['push'](_0x1a0902);},{'priority':'high'}),_0x2c396d['on']('insertColumns',(_0x3ef4ab,_0x38c4e0)=>{const [_0x347ce4,_0x4a00f0={}]=_0x38c4e0;if(!_0x475992)return;const _0x2ae283=_0x4a00f0['at']||0x0,_0x475ef5=_0x4a00f0['columns']||0x1;_0x475992['columnInsertionIndexes']=new Array(_0x475ef5)['fill'](_0x2ae283)['map']((_0x2d1f3a,_0x115c28)=>_0x2d1f3a+_0x115c28);for(const {cell:_0xdaca46}of _0x2c396d['createTableWalker'](_0x347ce4,{'startColumn':_0x2ae283,'endColumn':_0x2ae283+_0x475ef5-0x1}))_0x475992['columnInsertionRanges']['push'](_0x32d8c2['model']['createRangeOn'](_0xdaca46));},{'priority':'low'}),_0x2c396d['on']('insertRows',(_0x3609cc,_0x1f470c)=>{const [_0x5bd87a,_0x4d9aa9={}]=_0x1f470c;if(!_0x475992)return;const _0x107f57=_0x4d9aa9['at']||0x0,_0x13c035=_0x4d9aa9['rows']||0x1;_0x475992['rowInsertionIndexes']=new Array(_0x13c035)['fill'](_0x107f57)['map']((_0x47b868,_0x34d36b)=>_0x47b868+_0x34d36b);for(const {cell:_0x4a4809}of _0x2c396d['createTableWalker'](_0x5bd87a,{'startRow':_0x107f57,'endRow':_0x107f57+_0x13c035-0x1}))_0x475992['rowInsertionRanges']['push'](_0x32d8c2['model']['createRangeOn'](_0x4a4809));},{'priority':'low'}),_0x7c756b['descriptionFactory']['registerDescriptionCallback'](_0x79beea=>{if(_0x79beea['subType']&&_0x79beea['subType']['startsWith']('tablePaste'))return _0x79beea['previous']?{}:{'type':'insertion','content':o(_0x32d8c2['locale'],'*Replace\x20table\x20cells*')};});const _0xa330d2=()=>!0x1;for(const _0xdef0cb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7c756b['_suggestionFactory']['registerCustomCallback']('insertion',_0xdef0cb,'join',_0xa330d2),_0x7c756b['_suggestionFactory']['registerCustomCallback']('deletion',_0xdef0cb,'join',_0xa330d2),_0x7c756b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdef0cb,'join',_0xa330d2);_0x7c756b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa330d2),_0x7c756b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37ccc7,_0x846ec9,_0x4c9e70)=>{const _0x2c7d49=_0x37ccc7['map'](_0x23473f=>_0x23473f['getContainedElement']())['filter'](_0x52a764=>_0x52a764),_0x1b12e5=new Map(_0x2c7d49['map'](_0x1f692f=>[_0x1f692f,null]));if(_0x475992){for(const {element:_0x64ffe6,attributes:_0x4aa612}of _0x475992['cells'])_0x4aa612&&_0x1b12e5['set'](_0x64ffe6,_0x4aa612);}else{if(_0x4c9e70&&_0x4c9e70['markerAttributes'])for(const [_0x48ef54,_0x270ccf]of Object['entries'](_0x4c9e70['markerAttributes'])){const _0x3182df=_0x32d8c2['model']['markers']['get'](_0x48ef54),_0x104b10=_0x3182df?_0x3182df['getRange']()['getContainedElement']():null;_0x104b10&&_0x1b12e5['set'](_0x104b10,_0x270ccf);}}_0x32d8c2['model']['change'](_0x301b36=>{for(const [_0x25fd20,_0x39164c]of _0x1b12e5)_0x301b36['setAttributes']({...we,..._0x39164c},_0x25fd20);});});const _0x16bb99=(_0x2e11ad,_0x15a382)=>{_0x7c756b['_suggestionFactory']['registerCustomCallback'](_0x2e11ad,'tablePaste',_0x15a382,(_0x18f7b8,_0x3c611b,_0x513061)=>{_0x32d8c2['model']['change'](_0x1a2d4c=>{const _0x5adb59=[];for(const _0x50c4e8 of _0x18f7b8){const _0x33f5ea=_0x50c4e8['start']['nodeAfter'];_0x33f5ea['is']('element','tableCellSuggestion')&&_0x5adb59['push'](_0x33f5ea);}_0x7c756b['_suggestionFactory']['getSuggestionCallback'](_0x2e11ad,null,_0x15a382)(_0x18f7b8,_0x3c611b,_0x513061);for(const _0x5a8507 of _0x5adb59)'$graveyard'!=_0x5a8507['root']['rootName']&&_0x1a2d4c['unwrap'](_0x5a8507);});});};_0x16bb99('insertion','accept'),_0x16bb99('insertion','discard'),_0x16bb99('deletion','accept'),_0x16bb99('deletion','discard'),_0x7c756b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x286d76=>{const _0x47f98b=_0x286d76['map'](_0x51d459=>_0x51d459['getContainedElement']()),_0x1873d6=_0x47f98b[0x0]['findAncestor']('table'),{minRow:_0x561e98,maxRow:_0x4f3bf4}=_0x366f39['_getCoordsForCells'](_0x47f98b);_0x2c396d['removeRows'](_0x1873d6,{'at':_0x561e98,'rows':_0x4f3bf4-_0x561e98+0x1});}),_0x7c756b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b46a1=>{const _0x58f883=_0x1b46a1['map'](_0x3df079=>_0x3df079['getContainedElement']()),_0x27b08e=_0x58f883[0x0]['findAncestor']('table'),{minColumn:_0x27bcf0,maxColumn:_0x415011}=_0x366f39['_getCoordsForCells'](_0x58f883);_0x2c396d['removeColumns'](_0x27b08e,{'at':_0x27bcf0,'columns':_0x415011-_0x27bcf0+0x1});});const _0x2c469a=(_0x6d2181,_0x13c117)=>{if(!_0x13c117['subType']||!_0x13c117['subType']['startsWith']('tablePaste'))return;const _0x2c3f66=_0x13c117['attributes']['tablePasteChainId'],_0x5689ea=_0x7c756b['getSuggestions']()['filter'](_0x233275=>_0x233275['isInContent']&&_0x233275['attributes']&&_0x233275['attributes']['tablePasteChainId']==_0x2c3f66);_0x5689ea['length']&&_0x13c117['getAllAdjacentSuggestions']()['length']!=_0x5689ea['length']&&_0x5689ea['reduce']((_0x559e88,_0x140abe)=>(_0x559e88['next']=_0x140abe,_0x140abe['previous']=_0x559e88,_0x140abe));};function _0x53fd97(_0x4eb6f2,_0x3ed4ac=!0x0){const {id:_0x17595c,authorId:_0x9c1bd2}=_0x7c756b['_splitMarkerName'](_0x4eb6f2['markerName']),_0x12e3d2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x234afa=_0x7c756b['activeMarkers']['includes'](_0x4eb6f2['markerName']);return _0x234afa&&_0x12e3d2['push']('ck-suggestion-marker--active'),{'classes':_0x12e3d2,'attributes':{'data-suggestion':_0x17595c,'data-author-id':_0x9c1bd2},'priority':_0x234afa&&_0x3ed4ac?0xbc2:0xbb8};}_0x7c756b['on']('suggestionLoaded',_0x2c469a,{'priority':'high'}),_0x7c756b['on']('suggestionUnloaded',_0x2c469a,{'priority':'high'}),_0x32d8c2['model']['document']['registerPostFixer'](()=>{let _0x56efeb=!0x1;const _0x1046b3=Array['from'](_0x32d8c2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8977ba,data:_0x136d5a}of _0x1046b3){const {group:_0x5ecfbf,type:_0x2b8146,id:_0x8d90f3}=_0x7c756b['_splitMarkerName'](_0x8977ba);if('suggestion'!=_0x5ecfbf||'deletion'!=_0x2b8146||_0x136d5a['oldRange'])continue;if(!_0x7c756b['hasSuggestion'](_0x8d90f3))continue;const _0x65eac8=_0x7c756b['getSuggestion'](_0x8d90f3)['getRanges'](),_0x5375ba=_0x32d8c2['plugins']['get']('Users')['me'];for(const _0x34ca26 of _0x7c756b['getSuggestions']()){if(!_0x34ca26['isInContent']||_0x34ca26['author']!=_0x5375ba)continue;if('formatBlock'!=_0x34ca26['type']||'tablePasteCell'!=_0x34ca26['subType'])continue;if(_0x34ca26['getRanges']()['every'](_0xf77a8e=>_0x65eac8['some'](_0x3a1e48=>_0x3a1e48['containsRange'](_0xf77a8e,!0x0)))){for(const _0x57dde1 of _0x34ca26['getAllAdjacentSuggestions']())_0x57dde1['isInContent']&&(_0x57dde1['discard'](),_0x56efeb=!0x0);}}}return _0x56efeb;}),_0x32d8c2['model']['document']['registerPostFixer'](_0x5ad1bf=>{const _0x205f3e=_0x32d8c2['commands']['get']('redo');if(!_0x205f3e||!_0x205f3e['_createdBatches']['has'](_0x5ad1bf['batch']))return!0x1;let _0x4b2d89=!0x1;const _0x3d29c1=_0x32d8c2['plugins']['get']('Users')['me'],_0x5c1de2=_0x32d8c2['model']['document']['differ']['getChanges'](),_0x1ccd5c=Array['from'](_0x32d8c2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x299a97,data:_0x1fc235})=>{const {group:_0x417465,subType:_0x13475f,authorId:_0x4f990f}=_0x7c756b['_splitMarkerName'](_0x299a97);return'suggestion'==_0x417465&&'tablePaste'==_0x13475f&&_0x4f990f==_0x3d29c1['id']&&!_0x1fc235['oldRange'];});for(const _0x50fed9 of _0x5c1de2){if('insert'!=_0x50fed9['type']||'tableCellSuggestion'!=_0x50fed9['name']||0x1!=_0x50fed9['length'])continue;const _0x4603be=_0x5ad1bf['createRange'](_0x50fed9['position'],_0x50fed9['position']['getShiftedBy'](0x1));if(!_0x1ccd5c['find'](({data:_0x4723fa})=>_0x4723fa['newRange']['isEqual'](_0x4603be))){for(const {name:_0x127ffc,data:_0x4143e4}of _0x1ccd5c)if(_0x4603be['containsRange'](_0x4143e4['newRange'])){_0x5ad1bf['updateMarker'](_0x127ffc,{'range':_0x4603be}),_0x4b2d89=!0x0;break;}}}return _0x4b2d89;}),_0x32d8c2['model']['document']['registerPostFixer'](_0x1e24b2=>{let _0xd58008=!0x1;const _0x4acb75=_0x32d8c2['plugins']['get']('Users')['me'],_0x32b0cf=_0x7c756b['getSuggestions']()['filter'](_0x37d7fc=>_0x37d7fc['isInContent']&&_0x37d7fc['author']==_0x4acb75),_0x171f96=new Set(),_0xff0181=new Set();for(const _0x413731 of _0x32b0cf)if('tablePaste'==_0x413731['subType'])for(const _0x355ea3 of _0x413731['getMarkers']()){const _0x119e7f=_0x355ea3['getRange']()['getContainedElement']();if(_0x119e7f){if(_0x119e7f['is']('element','tableCellSuggestion')&&ke(_0x119e7f)){_0x413731['removeMarker'](_0x355ea3['name']),_0x171f96['add'](_0x119e7f),_0xd58008=!0x0;const _0x9b0f69=_0x119e7f['nextSibling'],_0x4efae8=_0x119e7f['previousSibling'],_0xe4d5ec=_0x9b0f69&&_0x9b0f69['is']('element','tableCellSuggestion'),_0x1666ed=_0x4efae8&&_0x4efae8['is']('element','tableCellSuggestion');_0xe4d5ec&&!_0x171f96['has'](_0x9b0f69)&&_0xff0181['add'](_0x9b0f69),_0x1666ed&&!_0x171f96['has'](_0x4efae8)&&_0xff0181['add'](_0x4efae8);}else _0x119e7f['is']('element','paragraph')&&_0x119e7f['isEmpty']&&(_0x413731['removeMarker'](_0x355ea3['name']),_0xd58008=!0x0);}}else{if('tablePasteCell'==_0x413731['subType']){if(!_0x413731['attributes']||!_0x413731['attributes']['tablePasteChainId'])continue;const _0xf1dd41=_0x413731['attributes']['markerAttributes'];if(_0xf1dd41&&Object['keys'](_0xf1dd41)['length'])continue;const _0x4835d5=_0x413731['attributes']['tablePasteChainId'];let _0x3dd528=!0x0,_0x438ac2=!0x0;for(const _0xcee982 of _0x32b0cf)if(_0xcee982['subType']&&_0xcee982['subType']['startsWith']('tablePaste')){if(!_0xcee982['attributes']['tablePasteChainId']){_0x438ac2=!0x1;break;}if(_0xcee982['id']!=_0x413731['id']&&_0xcee982['attributes']['tablePasteChainId']==_0x4835d5){_0x3dd528=!0x1;break;}}_0x438ac2&&_0x3dd528&&(_0x413731['removeMarkers'](),_0xd58008=!0x0);}}for(const _0x21e612 of _0x171f96)_0x1e24b2['remove'](_0x21e612);for(const _0x2ed5e4 of _0xff0181)_0x1e24b2['unwrap'](_0x2ed5e4);return _0xd58008;}),_0x32d8c2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2326ec,_0x3ef1a3)=>_0x53fd97(_0x2326ec),'converterPriority':'high'}),_0x32d8c2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15dbdc,_0x4feb46)=>_0x4feb46['options']['showSuggestionHighlights']?_0x53fd97(_0x15dbdc,!0x1):null,'converterPriority':'high'});const _0x420fea=_0x32d8c2['editing']['view'];this['listenTo'](_0x420fea['document'],'clipboardOutput',(_0xf14d6a,_0x3fe227)=>{const _0x1b224f=[];for(const _0x2009ff of _0x420fea['createRangeIn'](_0x3fe227['content'])['getItems']())_0x2009ff['is']('element','suggestion-td')&&_0x1b224f['push'](_0x2009ff);_0x420fea['change'](_0x4e3bd0=>{for(const _0x2856fa of _0x1b224f)_0x4e3bd0['move'](_0x4e3bd0['createRangeIn'](_0x2856fa),_0x4e3bd0['createPositionBefore'](_0x2856fa)),_0x4e3bd0['remove'](_0x2856fa);});});}}function ke(_0xd95c5e){if(_0xd95c5e['isEmpty'])return!0x0;const _0x3c1027=_0xd95c5e['getChild'](0x0);return _0x3c1027['is']('element','paragraph')&&_0x3c1027['isEmpty'];}function Re(_0x374c86,_0x212923={},_0x4d70d9){for(const {isAnchor:_0x1b17d2,cellHeight:_0x32ecf0,cellWidth:_0x208b0c}of _0x4d70d9['createTableWalker'](_0x374c86,{'includeAllSlots':!0x0,..._0x212923}))if(!_0x1b17d2||0x1!=_0x32ecf0||0x1!=_0x208b0c)return!0x1;return!0x0;}class Nt extends _0x1349dc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54e571=this['editor']['plugins']['get']('TrackChangesEditing');_0x54e571['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54e571['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54e571['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54e571['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54e571['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54e571['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x25f0cd,_0x16b7a7){const _0x1f227=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ee85b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5967e1=_0x16b7a7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ae01b=_0x3ee85b['getColumnGroupElement'](_0x5967e1);let _0x33e674=_0x4ae01b?_0x3ee85b['getTableColumnsWidths'](_0x4ae01b):null,_0x4d9154=_0x5967e1['getAttribute']('tableWidth')||null;const _0x2d34fe=_0x16b7a7['tableWidth']||_0x4d9154,_0x2ec73b=_0x16b7a7['columnWidths']||_0x33e674,_0x5e7b52=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fe224 of _0x1f227['getSuggestions']()){const _0x1f676c=_0x3fe224['getContainedElement']();if('resizeTable'===_0x3fe224['subType']&&_0x1f676c===_0x5967e1){_0x3fe224['author']!==_0x5e7b52&&_0x3fe224['discard']();const _0x2a05f3=_0x3fe224['data']['commandParams'];_0x4d9154=_0x2a05f3[0x0]['tableWidth'],_0x33e674=_0x2a05f3[0x0]['columnWidths'];break;}}_0x25f0cd({'table':_0x5967e1,'tableWidth':_0x2d34fe,'columnWidths':_0x2ec73b}),_0x1f227['markBlockFormat'](_0x5967e1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4d9154,'columnWidths':_0x33e674}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4a0c10){if('formatBlock'!=_0x4a0c10['type']&&'formatInline'!=_0x4a0c10['type'])return;const {data:_0x2054f4}=_0x4a0c10;if(_0x2054f4&&'resizeTable'===_0x2054f4['formatGroupId']){const _0x147d54='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x147d54)};}}}class Dt extends _0x1349dc{['afterInit'](){const _0x2977c7=this['editor'];_0x2977c7['plugins']['has']('Template')&&_0x2977c7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1349dc{['afterInit'](){const _0x146489=this['editor'];if(!_0x146489['commands']['get']('insertTableOfContents'))return;_0x146489['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43098f=_0x146489['plugins']['get']('TrackChangesEditing'),_0x36b065=_0x146489['locale'];_0x43098f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3a32de=>o(_0x36b065,'ELEMENT_TABLE_OF_CONTENTS',_0x3a32de));}}class $t extends _0x1349dc{['afterInit'](){const _0xbb38d2=this['editor'];if(!_0xbb38d2['plugins']['has']('Title'))return;const _0x266ac1=_0xbb38d2['plugins']['get']('TrackChangesEditing');_0x266ac1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbb38d2['locale'],'ELEMENT_TITLE')),_0xbb38d2['model']['document']['registerPostFixer'](_0xd94a5a=>{let _0xba0398=!0x1;const _0x4943c4=Array['from'](_0xbb38d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38e8cd,data:_0x2e3e62}of _0x4943c4){const {group:_0x12531e}=_0x266ac1['_splitMarkerName'](_0x38e8cd);if('suggestion'!==_0x12531e||!_0x2e3e62['newRange'])continue;const _0x4e1cfc=_0x2e3e62['newRange'],_0x20d45f=_0x4e1cfc['end']['nodeBefore'];if(!_0x20d45f||!_0x20d45f['is']('element','title-content'))continue;if(!_0x4e1cfc['start']['isTouching'](_0x4e1cfc['end']))continue;const _0x2d846b=_0xbb38d2['model']['schema']['getNearestSelectionRange'](_0x4e1cfc['end'],'forward');if(_0x2d846b&&_0x2d846b['isCollapsed']){const _0x4950cd=_0xd94a5a['createRange'](_0x4e1cfc['start'],_0x2d846b['start']);_0x4950cd['isEqual'](_0x4e1cfc)||(_0xd94a5a['updateMarker'](_0x38e8cd,{'range':_0x4950cd}),_0xba0398=!0x0);}_0xba0398||(_0xd94a5a['removeMarker'](_0x38e8cd),_0xba0398=!0x0);}return _0xba0398;});}}class Bt extends _0x1349dc{['afterInit'](){const _0x13a644=this['editor'],_0x5ad893=_0x13a644['plugins']['get']('TrackChangesEditing');_0x13a644['plugins']['has']('UndoEditing')&&(_0x5ad893['enableCommand']('undo'),_0x5ad893['enableCommand']('redo'));}}class xt extends _0x1349dc{static get['requires'](){return[It];}['afterInit'](){const _0xa04973=this['editor'];if(!_0xa04973['plugins']['has']('TableCaptionEditing'))return;_0xa04973['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1349dc{['tableProperties'];['tableCellProperties'];constructor(_0x257600){super(_0x257600),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 _0x4d0bbe=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x185cf4 of this['tableProperties'])_0x4d0bbe['enableCommand'](_0x185cf4,(_0x374b69,_0x1f52aa)=>{const _0x51ffe4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x185cf4,[_0x51ffe4],this['tableProperties'],'tableProperties',_0x374b69,_0x1f52aa);});_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4d0bbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x366c78,_0x58acad)=>this['handleDiscardAction'](this['tableProperties'],_0x366c78,_0x58acad)),_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a582c of this['tableCellProperties'])_0x4d0bbe['enableCommand'](_0x2a582c,(_0x55b406,_0x15d6a4)=>{const _0x2cf63a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a582c,_0x2cf63a,this['tableCellProperties'],'tableCellProperties',_0x55b406,_0x15d6a4);});_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4d0bbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xa6c555,_0x23895d)=>this['handleDiscardAction'](this['tableCellProperties'],_0xa6c555,_0x23895d)),_0x4d0bbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4d0bbe['descriptionFactory']['registerDescriptionCallback'](_0x445bb0=>this['handleSuggestionDescription'](_0x445bb0));}['_handlePropertyChange'](_0x50df12,_0x57e24c,_0x36a34b,_0x187741,_0x4c4b79,_0xbdbb61){const _0x716bca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xbdbb61['batch'],()=>{for(const _0x1d4c00 of _0x57e24c){if(this['_getSuggestion'](_0x1d4c00,_0x187741))_0x4c4b79(_0xbdbb61);else{const _0x114a5e={};for(const _0x103fcd of _0x36a34b){const _0x364406=_0x1d4c00['getAttribute'](_0x103fcd);void 0x0!==_0x364406&&(_0x114a5e[_0x103fcd]=_0x364406);}_0x4c4b79(_0xbdbb61),_0x716bca['markBlockFormat'](_0x1d4c00,{'commandParams':[_0x114a5e]},[],_0x187741);}}});}['handleDiscardAction'](_0x26e9eb,_0x36e46b,_0x25cf57){const _0x436534=_0x36e46b[0x0]['start']['nodeAfter'],_0x249eed=_0x25cf57['commandParams'][0x0];this['editor']['model']['change'](_0x2eca89=>{for(const _0x47e2de of _0x26e9eb)void 0x0!==_0x249eed[_0x47e2de]?_0x2eca89['setAttribute'](_0x47e2de,_0x249eed[_0x47e2de],_0x436534):_0x2eca89['removeAttribute'](_0x47e2de,_0x436534);});}['handleSuggestionDescription'](_0x517f84){if(_0x517f84['data'])switch(_0x517f84['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'](_0x5e83a1,_0x128761){const _0x20d5b8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x20e00c of _0x20d5b8['getSuggestions']({'skipNotAttached':!0x0})){const _0x48105b=_0x20e00c['getContainedElement']();if(_0x20e00c['subType']===_0x128761&&_0x48105b===_0x5e83a1)return _0x20e00c;}return null;}}const m='$elementName';class p extends _0x1349dc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x41b53c,_0x5c36cd,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1120bc){function _0x4b1308(_0x2d89e2){return _0x2d89e2['map'](_0x5a63e8=>String['fromCharCode'](_0x5a63e8))['join']('');}super(_0x1120bc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x175d88,_0x56c353,_0x215e71,_0x2094ca)=>{this['_model']['change'](()=>{for(const _0xcf677d of[..._0x2094ca,..._0x215e71])this['_model']['markers']['has'](_0xcf677d)&&_0x1120bc['editing']['reconvertMarker'](_0xcf677d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1120bc['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(),_0x1120bc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1120bc['config']['get']('trackChanges.trackFormatChanges'),_0x1120bc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1120bc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1120bc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4b1308([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4b1308([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x32]);}['init'](){const _0x27a22b=this['editor'],_0x510a37=(_0x1a3a3a,_0x80f5cb)=>{if('attribute'!=_0x1a3a3a)return'ck-suggestion-marker-'+_0x1a3a3a;const _0x2d0b22=_0x80f5cb['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d0b22)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x27a22b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43ea46=>{const {id:_0x3abd47,authorId:_0x305be3,type:_0x512e37,subType:_0x1befd4}=this['_splitMarkerName'](_0x43ea46['markerName']),_0x34af24=['ck-suggestion-marker',_0x510a37(_0x512e37,_0x1befd4)];let _0x4a5fd8=0xbb8;return this['activeMarkers']['includes'](_0x43ea46['markerName'])&&(_0x34af24['push']('ck-suggestion-marker--active'),_0x4a5fd8=0xbc2),'deletion'==_0x512e37&&(_0x4a5fd8+=0x5),{'classes':_0x34af24,'attributes':{'data-suggestion':_0x3abd47,'data-author-id':_0x305be3},'priority':_0x4a5fd8};}}),_0x27a22b['conversion']['for']('dataDowncast')['add'](_0x4b6c90=>{_0x4b6c90['on']('addMarker:suggestion',(_0x106ffe,_0x520cea,_0x272760)=>{if(!_0x272760['options']['showSuggestionHighlights'])return;const _0xc360d9=_0x520cea['item'];if(!_0xc360d9)return;const _0x67ce69=_0x272760['mapper']['toViewElement'](_0xc360d9);_0x27a22b['model']['schema']['isObject'](_0xc360d9)&&_0x67ce69&&!_0x67ce69['getCustomProperty']('widget')&&_0x67ce69['is']('containerElement')&&_0x67aa4e(_0x67ce69,_0x272760['writer']);},{'priority':'high'});}),_0x27a22b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x21ffe8,_0x266c98)=>{if(!_0x266c98['options']['showSuggestionHighlights'])return null;const {type:_0x552e21,subType:_0x28bfc8}=this['_splitMarkerName'](_0x21ffe8['markerName']);return{'classes':['ck-suggestion-marker',_0x510a37(_0x552e21,_0x28bfc8)],'priority':0xbb8};}});const _0x348ff5=({showActiveMarkers:_0x53bbf5=!0x0,isAttributeSuggestion:_0x2f62c7=!0x1}={})=>(_0x52ccf8,_0x4f8d54,_0x308fb1)=>{if(!_0x4f8d54['item'])return;const {id:_0x33414c,authorId:_0x1c696a}=this['_splitMarkerName'](_0x4f8d54['markerName']);if(_0x2f62c7){const _0x31813c=this['_suggestions']['get'](_0x33414c),_0x39ab6d=this['_getAttributeKey'](_0x31813c);if(!this['_isBlockAttribute'](_0x39ab6d))return;}if(_0x4f8d54['item']['is']('selection'))return void _0x308fb1['consumable']['consume'](_0x4f8d54['item'],_0x52ccf8['name']);const _0x293382=_0x308fb1['mapper']['toViewElement'](_0x4f8d54['item']);if(_0x4f8d54['item']['is']('element')&&_0x27a22b['model']['schema']['isBlock'](_0x4f8d54['item'])&&!_0x293382['getCustomProperty']('addHighlight')){_0x308fb1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x293382),_0x308fb1['writer']['setAttribute']('data-suggestion',_0x33414c,_0x293382),_0x308fb1['writer']['setAttribute']('data-author-id',_0x1c696a,_0x293382),_0x308fb1['mapper']['bindElementToMarker'](_0x293382,_0x4f8d54['markerName']),_0x53bbf5&&(this['activeMarkers']['includes'](_0x4f8d54['markerName'])?_0x308fb1['writer']['addClass']('ck-suggestion-marker--active',_0x293382):_0x308fb1['writer']['removeClass']('ck-suggestion-marker--active',_0x293382));for(const _0x10c535 of _0x27a22b['model']['createRangeIn'](_0x4f8d54['item'])['getItems']())_0x308fb1['consumable']['consume'](_0x10c535,_0x52ccf8['name']);_0x308fb1['consumable']['consume'](_0x4f8d54['item'],_0x52ccf8['name']);}};_0x27a22b['conversion']['for']('dataDowncast')['add'](_0x18ed4d=>{_0x18ed4d['on']('addMarker:suggestion:formatBlock',(_0x5d0d41,_0x3aed1a,_0x1d00d9)=>{_0x1d00d9['options']['showSuggestionHighlights']&&_0x348ff5({'showActiveMarkers':!0x1})(_0x5d0d41,_0x3aed1a,_0x1d00d9);},{'priority':'highest'});}),_0x27a22b['conversion']['for']('dataDowncast')['add'](_0x5125ed=>{_0x5125ed['on']('addMarker:suggestion:attribute',(_0x164267,_0x43393a,_0x545b60)=>{_0x545b60['options']['showSuggestionHighlights']&&_0x348ff5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x164267,_0x43393a,_0x545b60);},{'priority':'highest'});}),_0x27a22b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x189f6d,_0x148045)=>_0x148045['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x189f6d['substr'](0xb)}}),_0x27a22b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x14f1d2,{writer:_0x59bbd6})=>{let _0x3263d5='suggestion:'+_0x14f1d2['getAttribute']('suggestion-type')+':'+_0x14f1d2['getAttribute']('id');return _0x14f1d2['getAttribute']('marker-count')&&(_0x3263d5+=':'+_0x14f1d2['getAttribute']('marker-count')),_0x59bbd6['createElement']('$marker',{'data-name':_0x3263d5});}}),_0x27a22b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27a22b['conversion']['for']('editingDowncast')['add'](_0x1b46e3=>{_0x1b46e3['on']('addMarker:suggestion:formatBlock',_0x348ff5(),{'priority':'high'});}),_0x27a22b['conversion']['for']('editingDowncast')['add'](_0x377bf9=>{_0x377bf9['on']('addMarker:suggestion:attribute',_0x348ff5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x27a22b['conversion']['for']('editingDowncast')['add'](_0x27f0d5=>{_0x27f0d5['on']('removeMarker:suggestion:formatBlock',(_0x5cdcd0,_0x1f0a8b,_0x699f20)=>{const _0x365063=_0x699f20['mapper']['markerNameToElements'](_0x1f0a8b['markerName']);if(_0x365063){for(const _0x50e376 of _0x365063)_0x50e376['getCustomProperty']('addHighlight')||(_0x699f20['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50e376),_0x699f20['writer']['removeAttribute']('data-suggestion',_0x50e376),_0x699f20['writer']['removeAttribute']('data-author-id',_0x50e376),_0x699f20['mapper']['unbindElementFromMarkerName'](_0x50e376,_0x1f0a8b['markerName']));}},{'priority':'high'});}),_0x27a22b['conversion']['for']('editingDowncast')['add'](_0x51c927=>{_0x51c927['on']('removeMarker:suggestion:attribute',(_0x55324a,_0xce7905,_0x29043b)=>{const _0x17dc6d=_0x29043b['mapper']['markerNameToElements'](_0xce7905['markerName']);if(!_0x17dc6d)return;const {id:_0x23c140}=this['_splitMarkerName'](_0xce7905['markerName']),_0x30a152=this['_suggestions']['get'](_0x23c140),_0x4b442a=this['_getAttributeKey'](_0x30a152);if(this['_isBlockAttribute'](_0x4b442a)){for(const _0x5ba719 of _0x17dc6d)_0x5ba719['getCustomProperty']('addHighlight')||(_0x29043b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5ba719),_0x29043b['writer']['removeAttribute']('data-suggestion',_0x5ba719),_0x29043b['writer']['removeAttribute']('data-author-id',_0x5ba719),_0x29043b['mapper']['unbindElementFromMarkerName'](_0x5ba719,_0xce7905['markerName']));}},{'priority':'high'});}),_0x27a22b['model']['document']['registerPostFixer'](_0x27d869=>{let _0x3af4c9=!0x1;const _0x439df8=Array['from'](_0x27a22b['model']['document']['differ']['getChangedMarkers']()),_0x39cc7a=new Set();for(const {name:_0x3a7b96,data:_0x2f0a80}of _0x439df8){const {group:_0x4bc353,type:_0x3d365e,subType:_0x5d5da9,id:_0x51e821}=this['_splitMarkerName'](_0x3a7b96);if('suggestion'!==_0x4bc353)continue;const _0x4cf2ec=this['_suggestions']['get'](_0x51e821);if(null!=_0x2f0a80['newRange']){'formatInline'==_0x3d365e&&(_0x3af4c9=_0x3af4c9||Ut(_0x2f0a80['newRange'],_0x3a7b96,_0x27d869,_0x27a22b['model']['schema']));const _0x1d7465='attribute'==_0x3d365e&&this['_isBlockAttribute'](_0x5d5da9['split']('|')[0x0]);if(_0x2f0a80['newRange']['isCollapsed']||'$graveyard'==_0x2f0a80['newRange']['root']['rootName']||'formatBlock'==_0x3d365e&&!Ft(_0x2f0a80['newRange'])||_0x1d7465&&!Ft(_0x2f0a80['newRange'])||'deletion'==_0x3d365e&&!(!Vt(_0xa32a37=_0x2f0a80['newRange'])&&!function(_0x2bd927){return _0x2bd927['start']['parent']==_0x2bd927['end']['nodeBefore']&&_0x2bd927['start']['isAtEnd'];}(_0xa32a37)))_0x27d869['removeMarker'](_0x3a7b96),_0x3af4c9=!0x0;else{if(!_0x4cf2ec||!_0x4cf2ec['isInContent'])continue;if(_0x2f0a80['newRange']&&_0x2f0a80['oldRange']&&_0x2f0a80['newRange']['isEqual'](_0x2f0a80['oldRange']))continue;_0x39cc7a['add'](_0x4cf2ec);}}}var _0xa32a37;return _0x39cc7a['size']>0x0&&(_0x3af4c9=!!this['_joinWithAdjacentSuggestions'](_0x39cc7a)||_0x3af4c9),_0x3af4c9;}),_0x27a22b['model']['document']['registerPostFixer'](_0x2da690=>{let _0x1e777d=!0x1;for(const _0x19e11d of _0x27a22b['model']['document']['differ']['getChanges']())if('insert'==_0x19e11d['type'])for(const _0x2e87a1 of this['_suggestions']['values']()){if(_0x2e87a1['isMultiRange']||!_0x2e87a1['isInContent'])continue;const _0x3aab86='formatBlock'==_0x2e87a1['type'],_0x38c567=this['_getAttributeKey'](_0x2e87a1),_0x198e63=_0x38c567&&this['_isBlockAttribute'](_0x38c567);if(!_0x3aab86&&!_0x198e63)continue;const _0x3dc308=_0x2e87a1['getFirstRange']();if(_0x3dc308['start']['parent']!=_0x3dc308['end']['parent']&&!_0x3dc308['end']['isAtEnd']){const _0x49baf4=_0x27a22b['model']['createPositionAt'](_0x3dc308['start']['nodeAfter'],'end'),_0x45027f=_0x27a22b['model']['createRange'](_0x3dc308['start'],_0x49baf4);_0x2da690['updateMarker'](_0x2e87a1['getFirstMarker'](),{'range':_0x45027f}),_0x1e777d=!0x0;}}return _0x1e777d;}),_0x27a22b['model']['document']['registerPostFixer'](_0x5d9866=>this['_processAttributeChanges'](_0x5d9866)),_0x27a22b['model']['document']['registerPostFixer'](_0x10f067=>!_0x10f067['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x10f067)),_0x27a22b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27a22b['model']['document']['on']('change:data',(_0x51d306,_0x5109a4)=>{if(!_0x5109a4['isLocal']||_0x5109a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ba4a4=_0x27a22b['model']['document']['differ']['getChanges']();if(0x0==_0x3ba4a4['length'])return;const _0x179150=[],_0xd09240=_0x3ba4a4['filter'](_0x6d8aa0=>'attribute'==_0x6d8aa0['type']),_0x5a4443=_0x3ba4a4['filter'](_0x43ce60=>'insert'==_0x43ce60['type']&&'$text'!=_0x43ce60['name']);for(const _0x274167 of _0xd09240)this['_isRegisteredAttribute'](_0x274167['attributeKey'])&&_0x179150['push']({'key':_0x274167['attributeKey'],'newValue':_0x274167['attributeNewValue'],'oldValue':_0x274167['attributeOldValue'],'range':Pt(_0x274167['range'],_0x27a22b['model'])});for(const _0x55454e of _0x5a4443){if('rename'!=_0x55454e['action']&&'refresh'!=_0x55454e['action'])continue;const _0x59f8ab=Lt(_0x55454e['position']['nodeAfter'],_0x27a22b['model']),_0x5d511d=_0x55454e['before'];'rename'==_0x55454e['action']&&_0x179150['push']({'key':m,'newValue':_0x55454e['name'],'oldValue':_0x5d511d['name'],'range':_0x59f8ab});for(const [_0x100dcd,_0x53fe86]of _0x5d511d['attributes']){if(!this['_isRegisteredAttribute'](_0x100dcd))continue;const _0x38e047=_0x55454e['attributes']['get'](_0x100dcd);_0x53fe86!==_0x38e047&&_0x179150['push']({'key':_0x100dcd,'newValue':_0x38e047,'oldValue':_0x53fe86,'range':_0x59f8ab});}for(const [_0x336aee,_0x1da54a]of _0x55454e['attributes'])this['_isRegisteredAttribute'](_0x336aee)&&(_0x5d511d['attributes']['has'](_0x336aee)||_0x179150['push']({'key':_0x336aee,'newValue':_0x1da54a,'oldValue':null,'range':_0x59f8ab}));}0x0!=_0x179150['length']&&_0x27a22b['model']['enqueueChange'](_0x5109a4,_0x3a2a7d=>{const _0x1ace8f=_0x30088c();for(const {range:_0x50d1d0,key:_0x49f536,oldValue:_0x1347d2,newValue:_0x7afbb1}of _0x179150)this['markAttributeChange'](_0x50d1d0,_0x49f536,_0x1347d2,_0x7afbb1,{'groupId':_0x1ace8f});this['_reduceExistingSuggestions'](_0x3a2a7d,_0x179150);});},{'priority':'lowest'}),_0x27a22b['model']['markers']['on']('update:suggestion',(_0x54df11,_0x562e5b,_0x5e1143)=>{if(null==_0x5e1143){const {id:_0x27d5b6}=this['_splitMarkerName'](_0x562e5b['name']),_0x203d24=this['_suggestions']['get'](_0x27d5b6);_0x203d24&&_0x203d24['addMarkerName'](_0x562e5b['name']);}}),_0x27a22b['model']['document']['on']('change:data',()=>{const _0x47fb81=Array['from'](_0x27a22b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ab9a7=>'suggestion'===this['_splitMarkerName'](_0x1ab9a7['name'])['group']);if(0x0===_0x47fb81['length'])return;_0x47fb81['sort']((_0x25bbc9,_0x593f4e)=>{const _0x9d0f5=_0x25bbc9['data']['oldRange'],_0x21255a=_0x593f4e['data']['oldRange'];return null===_0x9d0f5&&null===_0x21255a?0x0:null===_0x9d0f5&&null!==_0x21255a?-0x1:null!==_0x9d0f5&&null===_0x21255a?0x1:_0x9d0f5['start']['isBefore'](_0x21255a['start'])?-0x1:0x1;});const _0x3e06c6=new Set(),_0x4353be=new Set();for(const {name:_0x162651,data:_0x3b739f}of _0x47fb81){const {id:_0x88191}=this['_splitMarkerName'](_0x162651);if(null===_0x3b739f['oldRange']){const _0x3c7eb2=this['_handleNewSuggestionMarker'](_0x162651);_0x4353be['add'](_0x3c7eb2);}else{const _0x57c2ab=this['_suggestions']['get'](_0x88191);null!==_0x3b739f['newRange']||_0x57c2ab['isInContent']?(_0x3e06c6['add'](_0x57c2ab['head']),_0x4353be['add'](_0x57c2ab)):this['_removeSuggestion'](_0x57c2ab);}}_0x4353be['size']>0x0&&this['_refreshSuggestionsChain'](_0x4353be);for(const _0x5f5a11 of _0x3e06c6)this['fire']('suggestionChanged',_0x5f5a11);}),_0x27a22b['model']['on']('applyOperation',(_0x5d91aa,_0x19f7c0)=>{const _0x4fc178=_0x19f7c0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4fc178['isDocumentOperation'])return;if(_0x4fc178['batch']['isUndo']||!_0x4fc178['batch']['isLocal'])return;let _0x16a025,_0x49cbd5;switch(_0x4fc178['type']){case'insert':_0x16a025=_0x27a22b['model']['createPositionAt'](_0x4fc178['position']),_0x49cbd5=_0x16a025['getShiftedBy'](_0x4fc178['howMany']);break;case'split':_0x16a025=_0x27a22b['model']['createPositionAt'](_0x4fc178['splitPosition']),_0x49cbd5=_0x27a22b['model']['createPositionAt'](_0x4fc178['moveTargetPosition']);break;case'move':_0x16a025=_0x27a22b['model']['createPositionAt'](_0x4fc178['targetPosition']),_0x49cbd5=_0x16a025['getShiftedBy'](_0x4fc178['howMany']);break;default:return;}const _0x1931c9=_0x27a22b['model']['createRange'](_0x16a025,_0x49cbd5);_0x27a22b['model']['change'](()=>{for(const {suggestion:_0x3f2ad8,meta:_0x2a54ef}of this['_findSuggestions'](_0x1931c9)){if(_0x3f2ad8['isMultiRange'])continue;if('formatInline'==_0x3f2ad8['type'])continue;const _0x2aefc5=this['_getAttributeKey'](_0x3f2ad8);if(_0x2aefc5&&this['_isBlockAttribute'](_0x2aefc5)&&'split'!=_0x4fc178['type'])continue;const _0xac8b48=_0x3f2ad8['data']&&_0x3f2ad8['data']['multipleBlocks'];('formatBlock'!=_0x3f2ad8['type']||'split'==_0x4fc178['type']&&!_0xac8b48)&&(_0x2a54ef['containsRangeInObject']||'insertion'==_0x3f2ad8['type']&&_0x2a54ef['isOwn']||_0x3f2ad8['getFirstRange']()['containsRange'](_0x1931c9)&&this['_breakSuggestionMarker'](_0x3f2ad8,_0x16a025,_0x49cbd5));}});},{'priority':'lowest'}),_0x27a22b['model']['on']('deleteContent',(_0x4d724,_0x1bc055)=>{const _0x4903fb=_0x1bc055[0x0],_0x137e14=_0x1bc055[0x1];if(_0x137e14&&_0x137e14['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4903fb['isCollapsed'])return;const _0x4acc1f=_0x27a22b['model']['schema'],{start:_0x300521,end:_0x424b63}=_0x4903fb['getFirstRange'](),_0xf2418=_0x300521['nodeAfter']&&_0x4acc1f['isLimit'](_0x300521['nodeAfter'])?null:_0x4acc1f['getNearestSelectionRange'](_0x300521,'forward'),_0x1980e5=_0x424b63['nodeBefore']&&_0x4acc1f['isLimit'](_0x424b63['nodeBefore'])?null:_0x4acc1f['getNearestSelectionRange'](_0x424b63,'backward'),_0x18a661=_0x27a22b['model']['createRange'](_0xf2418?_0xf2418['start']:_0x300521,_0x1980e5?_0x1980e5['end']:_0x424b63);_0x27a22b['model']['change'](_0x4820a1=>{this['markDeletion'](_0x18a661);const _0xb9299c=_0x27a22b['model']['schema']['getNearestSelectionRange'](_0x18a661['start']);_0x4903fb['is']('documentSelection')?_0x4820a1['setSelection'](_0xb9299c):_0x4903fb['setTo'](_0xb9299c);}),_0x4d724['stop']();},{'priority':_0x252709['normal']+0xa}),_0x27a22b['model']['on']('insertContent',(_0xb2614d,_0x2cbb5c)=>{const _0x58a55c=_0x2cbb5c[_0x2cbb5c['length']-0x1];_0x58a55c&&_0x58a55c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27a22b['model']['change'](()=>{let _0x593ccd=_0x27a22b['model']['insertContent'](_0x2cbb5c[0x0],_0x2cbb5c[0x1],_0x2cbb5c[0x2],{'forceDefaultExecution':!0x0});if(!_0x593ccd)return;_0xb2614d['return']=_0x593ccd['clone']();const _0x457b43=_0x593ccd['end']['nodeBefore'],_0x42215f=_0x27a22b['model']['schema'];_0x457b43&&_0x42215f['isBlock'](_0x457b43)&&!_0x42215f['isObject'](_0x457b43)&&(_0x593ccd=_0x27a22b['model']['createRange'](_0x593ccd['start'],_0x27a22b['model']['createPositionAt'](_0x457b43,'end'))),this['markInsertion'](_0x593ccd);}),_0xb2614d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x46eacd=new x(_0x27a22b,this['_suggestions']);_0x27a22b['commands']['add']('acceptSuggestion',_0x46eacd),this['enableCommand']('acceptSuggestion');const _0xcfea4c=new R(_0x27a22b,this['_suggestions']);_0x27a22b['commands']['add']('discardSuggestion',_0xcfea4c),this['enableCommand']('discardSuggestion'),_0x27a22b['commands']['add']('acceptAllSuggestions',new E(_0x27a22b,_0x46eacd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27a22b['commands']['add']('discardAllSuggestions',new E(_0x27a22b,_0xcfea4c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27a22b['commands']['add']('acceptSelectedSuggestions',new O(_0x27a22b,_0x46eacd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27a22b['commands']['add']('discardSelectedSuggestions',new O(_0x27a22b,_0xcfea4c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x54b396=_0x27a22b['plugins']['get']('CommentsRepository');this['listenTo'](_0x54b396,'addComment',(_0x109f18,{threadId:_0x3a8b50})=>{const _0x3ccf06=this['_suggestions']['get'](_0x3a8b50);_0x3ccf06&&_0x3ccf06['commentThread']&&0x1===_0x3ccf06['commentThread']['length']&&this['_updateSuggestionData'](_0x3a8b50,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x54b396,'removeComment',(_0x5b037c,{threadId:_0x211201})=>{const _0x5b540d=this['_suggestions']['get'](_0x211201);_0x5b540d&&_0x5b540d['commentThread']&&!_0x5b540d['commentThread']['length']&&this['_updateSuggestionData'](_0x211201,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x316d33){if(this['_adapter'])throw new _0x1b5a7f('track-changes-adapter-already-set',this);this['_adapter']=_0x316d33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f97ce=!0x1,toJSON:_0xeb7c95=!0x1}={}){const _0x488667=[];for(const _0x435771 of this['_suggestions']['values']())_0x3f97ce&&!_0x435771['isInContent']||_0x488667['push'](_0x435771);return _0xeb7c95?_0x488667['map'](_0x3be6b0=>_0x3be6b0['toJSON']()):_0x488667;}['getSuggestion'](_0x52b425){const _0x1fd8fb=this['_suggestions']['get'](_0x52b425);if(!_0x1fd8fb)throw new _0x1b5a7f('track-changes-suggestion-not-found',this);return _0x1fd8fb;}['hasSuggestion'](_0x973783){return this['_suggestions']['has'](_0x973783);}['addSuggestionData'](_0x55cc2b){const {authorId:_0x31d1d3,id:_0xec3f38,attributes:_0x5d5de5}=_0x55cc2b,[_0x14d721,_0x195a99]=_0x55cc2b['type']['split'](':'),_0x31d49c=this['_suggestions']['get'](_0xec3f38)||this['_createSuggestion'](_0x14d721,_0x195a99,_0xec3f38,_0x31d1d3,_0x5d5de5);if(this['_addThreadToSuggestion'](_0x31d49c),this['_checkSuggestionCorrectness'](_0x31d49c,_0x14d721,_0x195a99||null,_0x31d1d3),_0x31d49c['createdAt']=_0x55cc2b['createdAt'],_0x31d49c['_isDataLoaded']=!0x0,_0x5d5de5&&_0x5d5de5['@external']){const _0x1d1810=_0x5d5de5['@external'],_0x1b6cb7=this['_getExternalAuthor'](_0x1d1810['authorName']);_0x31d49c['authoredAt']=_0x1d1810['createdAt'],_0x31d49c['author']=_0x1b6cb7,_0x31d49c['isExternal']=!0x0;}else _0x31d49c['authoredAt']=_0x55cc2b['createdAt'];switch(_0x55cc2b['data']&&(_0x31d49c['data']=_0x55cc2b['data']),_0x55cc2b['attributes']&&(_0x31d49c['attributes']=_0x55cc2b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x31d49c['_saved']=!0x0),this['_suggestionState']['get'](_0x31d49c)){case'notReady':this['_suggestionState']['set'](_0x31d49c,'dataReady');break;case'markerReady':_0x31d49c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x31d49c])),this['_refreshSuggestionsChain'](new Set([_0x31d49c])),this['_suggestionState']['set'](_0x31d49c,'ready'),this['fire']('suggestionLoaded',_0x31d49c)):this['_suggestionState']['set'](_0x31d49c,'removed');}return _0x31d49c;}['acceptSuggestion'](_0x17faf1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e1007 of _0x17faf1['getAllAdjacentSuggestions']())_0x3e1007['accept']();});});}['discardSuggestion'](_0x304459){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xae02c6 of _0x304459['getAllAdjacentSuggestions']())_0xae02c6['discard']();});});}['enableCommand'](_0xffefc9,_0x37c810){const _0x1f0cdc=this['editor']['commands']['get'](_0xffefc9);if(!_0x1f0cdc)throw new _0x1b5a7f('track-changes-command-not-found',this,{'commandName':_0xffefc9});if(this['_enabledCommands']['has'](_0x1f0cdc))throw new _0x1b5a7f('track-changes-enable-command-twice',this,{'commandName':_0xffefc9});this['_enabledCommands']['add'](_0x1f0cdc),_0x37c810&&_0x1f0cdc['on']('execute',(_0x12e6ed,_0x5f16fe)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f16fe['length']>0x0&&_0x5f16fe[_0x5f16fe['length']-0x1]&&_0x5f16fe[_0x5f16fe['length']-0x1]['forceDefaultExecution']?_0x5f16fe['pop']():(_0x12e6ed['return']=_0x37c810((..._0x3aa319)=>_0x1f0cdc['execute'](..._0x3aa319,{'forceDefaultExecution':!0x0}),..._0x5f16fe),_0x12e6ed['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3f5a3b){let _0x3e5622,_0x2a03bc;const _0xccd5e3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e5622=_0x3f5a3b();}catch(_0x451a66){_0x2a03bc=_0x451a66;}return _0xccd5e3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2a03bc&&_0x1b5a7f['rethrowUnexpectedError'](_0x2a03bc,this),_0x3e5622;}['markInsertion'](_0x5d51d8,_0x413bba=null,_0x2cff05={}){if(_0x5d51d8['isCollapsed'])return null;const _0x19c81a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3baeb4,meta:_0x2c955c}of this['_findSuggestions'](_0x5d51d8,'insertion'))if(_0x2c955c['isOwn']){if(!_0x2c955c['isNextTo']){if(_0x2c955c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3baeb4,_0x2cff05))continue;return _0x3baeb4;}if(qt(_0x3baeb4,_0x2cff05))return _0x3baeb4;this['_breakSuggestionMarker'](_0x3baeb4,_0x5d51d8['start'],_0x5d51d8['end']);break;}if(_0x413bba==_0x3baeb4['subType']&&qt(_0x3baeb4,_0x2cff05)){const _0x26561a=_0x3baeb4['getFirstRange']();return _0x26561a['start']['isEqual'](_0x5d51d8['end'])?this['_setSuggestionRange'](_0x3baeb4,this['_model']['createRange'](_0x5d51d8['start'],_0x26561a['end'])):this['_setSuggestionRange'](_0x3baeb4,this['_model']['createRange'](_0x26561a['start'],_0x5d51d8['end'])),_0x3baeb4;}}const _0x121674=_0x30088c(),_0x39549d=_0x19c81a['id'],_0x645f94=_0x413bba?'insertion:'+_0x413bba:'insertion',_0x34ab81=this['_setSuggestionData']({'id':_0x121674,'type':_0x645f94,'createdAt':new Date(),'authorId':_0x39549d,'attributes':_0x2cff05});return this['_addSuggestionMarker'](_0x645f94,_0x121674,_0x39549d,_0x5d51d8),_0x34ab81;}['markMultiRangeInsertion'](_0x5ca2c5,_0xd92bd8='multi',_0x511dee={}){const _0x5bb348=this['editor']['plugins']['get']('Users')['me'],_0x26b6aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd92bd8,'join');for(const _0x3af1bb of this['getSuggestions']())if(_0x3af1bb['author']['id']==_0x5bb348['id']&&'insertion'==_0x3af1bb['type']&&_0x3af1bb['subType']==_0xd92bd8&&qt(_0x3af1bb,_0x511dee)&&(_0x26b6aa(_0x3af1bb['getRanges'](),_0x5ca2c5)||_0x26b6aa(_0x5ca2c5,_0x3af1bb['getRanges']()))){for(const _0x8c7f8f of _0x5ca2c5)_0x3af1bb['addRange'](_0x8c7f8f);return _0x3af1bb;}for(const {suggestion:_0x6e173e,meta:_0x178cdb}of this['_findSuggestions'](_0x5ca2c5,'insertion')){if(!_0x178cdb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x178cdb['containsRangeInObject'])continue;if(!qt(_0x6e173e,_0x511dee))continue;let _0x5ab889=!0x0;for(const _0x3628a7 of _0x6e173e['getRanges']())for(const _0x437a81 of _0x5ca2c5)if(!_0x3628a7['containsRange'](_0x437a81)){_0x5ab889=!0x1;break;}if(_0x5ab889)return _0x6e173e;}const _0x47af2f=_0x30088c(),_0x4e9fd1=_0x5bb348['id'],_0x55a90a='insertion:'+_0xd92bd8,_0x4619d5=this['_setSuggestionData']({'id':_0x47af2f,'type':_0x55a90a,'createdAt':new Date(),'authorId':_0x4e9fd1,'attributes':_0x511dee});for(const _0x3b5fa2 of _0x5ca2c5)this['_addSuggestionMarker'](_0x55a90a,_0x47af2f,_0x4e9fd1,_0x3b5fa2,u['getMultiRangeId']());return _0x4619d5;}['markInlineFormat'](_0x310ff6,_0x54bd4a,_0x400426=null,_0x64f49a={}){if(_0x400426=_0x400426||Gt(_0x54bd4a),_0x310ff6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3cdce7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x400426,'accept');return this['forceDefaultExecution'](()=>_0x3cdce7([_0x310ff6],_0x54bd4a,_0x64f49a)),null;}const _0x23df77=this['editor']['plugins']['get']('Users')['me'],_0x2c2d93=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5e8c60,meta:_0x402609}of this['_findSuggestions'](_0x310ff6,'insertion'))_0x402609['isOwn']&&!_0x402609['isInsideObject']&&_0x2c2d93['push'](..._0x5e8c60['getRanges']());}const _0x1ab213=function(_0x2efc78,_0x53d12f){const _0xb328cc=[];for(const _0x1e9fb3 of _0x53d12f){const _0x5f5df4=_0x2efc78['getIntersection'](_0x1e9fb3);_0x5f5df4&&_0xb328cc['push'](_0x5f5df4);}return _0xb328cc;}(_0x310ff6,_0x2c2d93),_0x4f4298=function(_0x30c2be,_0x496b37){const _0x572d0d=[_0x30c2be];for(const _0x5a6054 of _0x496b37){let _0x4bdbbb=0x0;for(;_0x4bdbbb<_0x572d0d['length'];){const _0x5572c2=_0x572d0d[_0x4bdbbb]['getDifference'](_0x5a6054);_0x572d0d['splice'](_0x4bdbbb,0x1,..._0x5572c2),_0x4bdbbb+=_0x5572c2['length'];}}return _0x572d0d;}(_0x310ff6,_0x2c2d93);_0x1ab213['length']&&this['_model']['change'](()=>{for(const _0x2ae500 of _0x1ab213){const _0x70dc95=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x400426,'accept');this['forceDefaultExecution'](()=>_0x70dc95([_0x2ae500],_0x54bd4a,_0x64f49a));}});for(const _0x24e61a of _0x4f4298){let _0xdc792=null,_0x3b9f3d=_0x24e61a['start'],_0xdf0c31=_0x24e61a['end'];for(const {suggestion:_0x31fefd,meta:_0x54e5c3}of this['_findSuggestions'](_0x24e61a,'formatInline')){if(!_0x54e5c3['isOwn'])continue;if(_0x31fefd['subType']!=_0x400426)continue;if(!qt(_0x31fefd,_0x64f49a))continue;const _0x3958c0=_0x31fefd['getFirstRange']();if(_0x3958c0['containsRange'](_0x24e61a,!0x0))return null;_0x3b9f3d=_0x3b9f3d['isBefore'](_0x3958c0['start'])?_0x3b9f3d:_0x3958c0['start'],_0xdf0c31=_0xdf0c31['isAfter'](_0x3958c0['end'])?_0xdf0c31:_0x3958c0['end'],_0xdc792?_0x3958c0['start']['isBefore'](_0xdc792['getFirstRange']()['start'])?(_0xdc792['removeMarkers'](),_0xdc792=_0x31fefd):_0x31fefd['removeMarkers']():_0xdc792=_0x31fefd;}const _0x7b6f49=this['_model']['createRange'](_0x3b9f3d,_0xdf0c31);if(_0xdc792)this['_setSuggestionRange'](_0xdc792,_0x7b6f49);else{const _0x3e69ef=_0x30088c(),_0x299999=_0x23df77['id'];this['_setSuggestionData']({'id':_0x3e69ef,'type':'formatInline:'+_0x400426,'data':_0x54bd4a,'createdAt':new Date(),'authorId':_0x299999,'attributes':_0x64f49a}),this['_addSuggestionMarker']('formatInline:'+_0x400426,_0x3e69ef,_0x299999,_0x7b6f49);}}return null;}['markBlockFormat'](_0xbeed08,_0x494d88,_0x5b2e8d=[],_0x1a706a=null,_0x46dac5={}){_0x494d88['formatGroupId']||(_0x494d88['formatGroupId']=_0x494d88['commandName']),_0x494d88['multipleBlocks']=_0xbeed08['is']('range'),_0x1a706a=_0x1a706a||Gt(_0x494d88);const _0x428cf8=_0x5b2e8d['map'](_0x52d83=>Lt(_0x52d83,this['_model'])),_0x307f40=_0xbeed08['is']('range')?_0xbeed08:Lt(_0xbeed08,this['_model']);if('never'===this['_trackFormatChanges']){const _0xeab1aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a706a,'accept');return this['forceDefaultExecution'](()=>_0xeab1aa([_0x307f40],_0x494d88,_0x46dac5)),null;}_0x428cf8['push'](_0x307f40);let _0x23621e=!0x0;for(const _0x454cb4 of _0x428cf8)if(!this['_rangeIsInLocalUserInsertion'](_0x454cb4)){_0x23621e=!0x1;break;}if(_0x23621e&&'always'!==this['_trackFormatChanges']){const _0x27c633=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a706a,'accept');return this['forceDefaultExecution'](()=>_0x27c633([_0x307f40],_0x494d88,_0x46dac5)),null;}let _0x2939e0=null,_0x4b3430=_0x307f40['start'],_0x4c357d=_0x307f40['end'];for(const {suggestion:_0x35f10a,meta:_0x59fb7e}of this['_findSuggestions'](_0x307f40,'formatBlock')){if(!_0x59fb7e['isOwn'])continue;if(_0x59fb7e['isNextTo']||_0x59fb7e['containsRangeInObject']||_0x59fb7e['isInsideObject'])continue;if(_0x35f10a['data']['formatGroupId']!=_0x494d88['formatGroupId'])continue;if(!qt(_0x35f10a,_0x46dac5))continue;const _0x46c597=_0x35f10a['getFirstRange']();if(_0x35f10a['subType']==_0x1a706a){if(_0x46c597['containsRange'](_0x307f40,!0x0))return null;_0x4b3430=_0x4b3430['isBefore'](_0x46c597['start'])?_0x4b3430:_0x46c597['start'],_0x4c357d=_0x4c357d['isAfter'](_0x46c597['end'])?_0x4c357d:_0x46c597['end'],_0x2939e0?_0x46c597['start']['isBefore'](_0x2939e0['getFirstRange']()['start'])?(_0x2939e0['removeMarkers'](),_0x2939e0=_0x35f10a):_0x35f10a['removeMarkers']():_0x2939e0=_0x35f10a;}else{const _0x58a271=_0x307f40['getIntersection'](_0x46c597);this['_cutOutSuggestionMarker'](_0x35f10a,_0x58a271);}}const _0x3f7da5=this['editor']['plugins']['get']('Users')['me'],_0x4d2a19=_0x30088c(),_0x3fe1d5=_0x3f7da5['id'];if(_0x2939e0)return this['_setSuggestionRange'](_0x2939e0,this['_model']['createRange'](_0x4b3430,_0x4c357d)),_0x2939e0;{const _0x39f433=this['_setSuggestionData']({'id':_0x4d2a19,'type':'formatBlock:'+_0x1a706a,'data':_0x494d88,'createdAt':new Date(),'authorId':_0x3fe1d5,'attributes':_0x46dac5});return this['_addSuggestionMarker']('formatBlock:'+_0x1a706a,_0x4d2a19,_0x3fe1d5,this['_model']['createRange'](_0x4b3430,_0x4c357d)),_0x39f433;}}['markMultiRangeBlockFormat'](_0xed5ed,_0x5065e6,_0x177257=[],_0xcc3eac=null,_0x16ec80={}){_0x5065e6['formatGroupId']||(_0x5065e6['formatGroupId']=_0x5065e6['commandName']);const _0x1132eb=_0xed5ed[0x0];_0x5065e6['multipleBlocks']=_0x1132eb['is']('range'),_0xcc3eac=_0xcc3eac||Gt(_0x5065e6);const _0x13105c=_0x177257['map'](_0x13643f=>Lt(_0x13643f,this['_model'])),_0x1e6902=_0x1132eb['is']('range')?_0xed5ed:_0xed5ed['map'](_0x37ee4f=>Lt(_0x37ee4f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x19172a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcc3eac,'accept');return this['forceDefaultExecution'](()=>_0x19172a(_0x1e6902,_0x5065e6,_0x16ec80)),null;}_0x13105c['push'](..._0x1e6902);let _0x477e3e=!0x0;for(const _0xcd70ef of _0x13105c)if(!this['_rangeIsInLocalUserInsertion'](_0xcd70ef)){_0x477e3e=!0x1;break;}if(_0x477e3e&&'always'!==this['_trackFormatChanges']){const _0x72dcfe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcc3eac,'accept');return this['forceDefaultExecution'](()=>_0x72dcfe(_0x1e6902,_0x5065e6,_0x16ec80)),null;}const _0x231e89=this['editor']['plugins']['get']('Users')['me'];for(const _0x3935b1 of this['getSuggestions']()){if(_0x3935b1['author']['id']!=_0x231e89['id'])continue;if('formatBlock'!=_0x3935b1['type']||_0x3935b1['data']['formatGroupId']!=_0x5065e6['formatGroupId'])continue;if(!qt(_0x3935b1,_0x16ec80))continue;const _0xce6b3b=_0x3935b1['subType']==_0xcc3eac;for(let _0x1d88f6=0x0;_0x1d88f6<_0x1e6902['length'];_0x1d88f6++){const _0x26ebbe=_0x1e6902[_0x1d88f6];for(const _0x19821e of _0x3935b1['getMarkers']()){const _0x2dae1d=_0x19821e['getRange']();if(_0x26ebbe['isEqual'](_0x2dae1d)){_0xce6b3b?(_0x1e6902['splice'](_0x1d88f6,0x1),_0x1d88f6--):_0x3935b1['removeMarker'](_0x19821e['name']);break;}}}}if(0x0==_0x1e6902['length'])return null;const _0x2108fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcc3eac,'join');for(const _0x140340 of this['getSuggestions']())if(_0x140340['author']['id']==_0x231e89['id']&&'formatBlock'==_0x140340['type']&&_0x140340['data']['formatGroupId']==_0x5065e6['formatGroupId']&&_0x140340['subType']==_0xcc3eac&&qt(_0x140340,_0x16ec80)&&(_0x2108fc(_0x140340['getRanges'](),_0x1e6902)||_0x2108fc(_0x1e6902,_0x140340['getRanges']()))){for(const _0x56ec75 of _0x1e6902)_0x140340['addRange'](_0x56ec75);return _0x140340;}const _0xc0adb9=_0x30088c(),_0x4dafe4=_0x231e89['id'],_0x1cd487='formatBlock:'+_0xcc3eac,_0x310533=this['_setSuggestionData']({'id':_0xc0adb9,'type':_0x1cd487,'data':_0x5065e6,'createdAt':new Date(),'authorId':_0x4dafe4,'attributes':_0x16ec80});for(const _0x5c0f8b of _0x1e6902)this['_addSuggestionMarker'](_0x1cd487,_0xc0adb9,_0x4dafe4,_0x5c0f8b,u['getMultiRangeId']());return _0x310533;}['markDeletion'](_0x59ba56,_0x5ef53d=null,_0x422057={}){if(_0x59ba56['isCollapsed'])return null;const _0x33ba84=this['editor']['plugins']['get']('Users')['me'],_0x17f4ab=new _0x5168fa(_0x59ba56['start'],_0x59ba56['end']);for(const {suggestion:_0x56f1cf,meta:_0x42af73}of this['_findSuggestions'](_0x17f4ab,'insertion'))if(_0x42af73['isOwn']&&!_0x42af73['isNextTo']){if(_0x56f1cf['isMultiRange']){const _0x3d519f=_0x56f1cf['getRanges']()['filter'](_0xe1578c=>'$graveyard'!=_0xe1578c['root']['rootName']);_0x3d519f['every'](_0x1d06db=>_0x17f4ab['containsRange'](_0x1d06db,!0x0))&&_0x56f1cf['discard']();if(_0x3d519f['some'](_0x512067=>_0x512067['containsRange'](_0x17f4ab,!0x0))){const _0x23eabc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ef53d,'accept');return this['forceDefaultExecution'](()=>_0x23eabc([_0x17f4ab],null,_0x422057)),null;}}else{const _0x1733b5=_0x17f4ab['getIntersection'](_0x56f1cf['getFirstRange']());null!==_0x1733b5&&_0x56f1cf['_onDiscard']([_0x1733b5],null,_0x422057);}}if(_0x17f4ab['detach'](),_0x17f4ab['isCollapsed']||'$graveyard'==_0x17f4ab['root']['rootName'])return null;let _0x309879=null,_0x1c18fd=_0x17f4ab['start'],_0x27667c=_0x17f4ab['end'];const _0x11f0de=this['_findSuggestions'](_0x17f4ab,'deletion');for(const {suggestion:_0x5a389d,meta:_0x49f183}of _0x11f0de){const _0x1a3222=this['_model']['createRange'](_0x1c18fd,_0x27667c);if(_0x49f183['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49f183['containsRangeInObject']&&!_0x49f183['isInsideObject'])){if(_0x5a389d['isMultiRange']){if(!qt(_0x5a389d,_0x422057))continue;let _0x356dc3=!0x0;for(const _0x1aaaaa of _0x5a389d['getRanges']()){if(_0x1aaaaa['containsRange'](_0x1a3222,!0x0))return _0x5a389d;_0x1a3222['containsRange'](_0x1aaaaa)||(_0x356dc3=!0x1);}_0x356dc3&&_0x5a389d['discard']();}else{const _0x135b21=_0x5a389d['getFirstRange']();if(_0x135b21['containsRange'](_0x1a3222,!0x0))return _0x5a389d;if(!qt(_0x5a389d,_0x422057)){_0x1a3222['containsRange'](_0x135b21)?_0x5a389d['removeMarkers']():_0x135b21['containsPosition'](_0x1c18fd)?_0x1c18fd=_0x135b21['end']:_0x135b21['containsPosition'](_0x27667c)&&(_0x27667c=_0x135b21['start']);continue;}_0x1c18fd=_0x1c18fd['isBefore'](_0x135b21['start'])?_0x1c18fd:_0x135b21['start'],_0x27667c=_0x27667c['isAfter'](_0x135b21['end'])?_0x27667c:_0x135b21['end'],_0x422057=Object['assign']({},_0x5a389d['attributes']),_0x309879?_0x135b21['start']['isBefore'](_0x309879['getFirstRange']()['start'])?(_0x309879['removeMarkers'](),_0x309879=_0x5a389d):_0x5a389d['removeMarkers']():_0x309879=_0x5a389d;}}}if(_0x309879)return this['_setSuggestionRange'](_0x309879,this['_model']['createRange'](_0x1c18fd,_0x27667c)),_0x309879;{const _0x5992e8=_0x30088c(),_0x2ef9f1=this['_model']['createRange'](_0x1c18fd,_0x27667c),_0x4b92fd=_0x33ba84['id'],_0x1d3d73=_0x5ef53d?'deletion:'+_0x5ef53d:'deletion',_0x2d6eeb=this['_setSuggestionData']({'id':_0x5992e8,'type':_0x1d3d73,'createdAt':new Date(),'authorId':_0x4b92fd,'attributes':_0x422057});return this['_addSuggestionMarker'](_0x1d3d73,_0x5992e8,_0x4b92fd,_0x2ef9f1),_0x2d6eeb;}}['markMultiRangeDeletion'](_0x1d5457,_0x52cb52='multi',_0x368191={}){const _0x402415=this['editor']['plugins']['get']('Users')['me'],_0x3eb46c=_0x1d5457['map'](_0x19caea=>new _0x5168fa(_0x19caea['start'],_0x19caea['end'])),_0x245466=new Set();for(const {suggestion:_0x19905c,meta:_0x5cab96}of this['_findSuggestions'](_0x3eb46c,'insertion'))_0x5cab96['isOwn']&&!_0x5cab96['isNextTo']&&_0x245466['add'](_0x19905c);for(const _0x80853c of _0x245466)if(_0x80853c['isMultiRange']){const _0x4024b0=_0x80853c['getRanges']();(!_0x80853c['attributes']||!_0x80853c['attributes']['skipNestingCheck'])&&(_0x4024b0['every'](_0x1216b6=>_0x3eb46c['some'](_0x4779ce=>_0x4779ce['containsRange'](_0x1216b6,!0x0)))&&_0x80853c['discard']());if(_0x3eb46c['every'](_0x1a6005=>_0x4024b0['some'](_0x4aa366=>_0x4aa366['containsRange'](_0x1a6005,!0x0)))){const _0x481924=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52cb52,'accept');return this['forceDefaultExecution'](()=>_0x481924(_0x1d5457,null,_0x368191)),null;}}else{const _0x20f55a=_0x80853c['getFirstRange']();_0x3eb46c['some'](_0xaa18b7=>_0xaa18b7['containsRange'](_0x20f55a,!0x0))&&_0x80853c['discard']();if(_0x3eb46c['every'](_0x2fa97c=>_0x20f55a['containsRange'](_0x2fa97c,!0x0))){const _0x3cdd3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52cb52,'accept');return this['forceDefaultExecution'](()=>_0x3cdd3d(_0x3eb46c,null,_0x368191)),null;}}const _0x4287fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52cb52,'join');let _0x5dee54=null;for(const _0x4b963a of this['getSuggestions']())if(_0x4b963a['author']['id']==_0x402415['id']&&_0x4b963a['isInContent']&&'deletion'==_0x4b963a['type']&&_0x4b963a['subType']==_0x52cb52&&qt(_0x4b963a,_0x368191)&&(_0x4287fc(_0x4b963a['getRanges'](),_0x3eb46c)||_0x4287fc(_0x3eb46c,_0x4b963a['getRanges']()))){if(_0x5dee54){if(_0x4b963a['commentThread']&&_0x4b963a['commentThread']['length'])continue;for(const _0x12f36f of _0x4b963a['getRanges']())_0x5dee54['isIntersectingWithRange'](_0x12f36f)||_0x5dee54['addRange'](_0x12f36f);_0x4b963a['removeMarkers']();}else{_0x5dee54=_0x4b963a;for(const _0x4f21b6 of _0x3eb46c)_0x4b963a['isIntersectingWithRange'](_0x4f21b6)||_0x4b963a['addRange'](_0x4f21b6);}}if(_0x5dee54)return _0x5dee54;_0x245466['clear']();for(const {suggestion:_0x17dd59,meta:_0x34bc32}of this['_findSuggestions'](_0x3eb46c,'deletion'))_0x34bc32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34bc32['containsRangeInObject']&&!_0x34bc32['isInsideObject'])&&qt(_0x17dd59,_0x368191)&&_0x245466['add'](_0x17dd59);for(const _0x22f4a6 of _0x245466){const _0x54f361=_0x22f4a6['getRanges']();if(!_0x368191||!_0x368191['skipNestingCheck']){if(_0x3eb46c['every'](_0x378895=>_0x54f361['some'](_0x8e6729=>_0x8e6729['containsRange'](_0x378895,!0x0))))return _0x22f4a6;}(!_0x22f4a6['attributes']||!_0x22f4a6['attributes']['skipNestingCheck'])&&(_0x54f361['every'](_0x5d03cd=>_0x3eb46c['some'](_0x14dc27=>_0x14dc27['containsRange'](_0x5d03cd,!0x0)))&&_0x22f4a6['discard']());}const _0x1c5520=_0x30088c(),_0x458b59=_0x402415['id'],_0x165885='deletion:'+_0x52cb52,_0x1dbb8b=this['_setSuggestionData']({'id':_0x1c5520,'type':_0x165885,'createdAt':new Date(),'authorId':_0x458b59,'attributes':_0x368191});for(const _0x224594 of _0x3eb46c)_0x224594['detach'](),_0x224594['isCollapsed']||'$graveyard'==_0x224594['root']['rootName']||this['_addSuggestionMarker'](_0x165885,_0x1c5520,_0x458b59,_0x224594,u['getMultiRangeId']());return _0x1dbb8b;}['markAttributeChange'](_0x3c2f95,_0x1d709c,_0x58330f,_0xfe96dd,_0x1ba277){if(_0x3c2f95['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24fc2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1223ff=Array['from'](this['_suggestions']['values']())['filter'](_0x502563=>'attribute'==_0x502563['type']&&_0x502563['data']['key']==_0x1d709c&&_0x502563['isIntersectingWithRange'](_0x3c2f95));if('default'===this['_trackFormatChanges']){const _0x157787=this['_findSuggestions'](_0x3c2f95,'insertion')['filter'](({meta:_0x1a4c8e})=>_0x1a4c8e['isOwn']&&!_0x1a4c8e['isInsideObject']&&!_0x1a4c8e['isNextTo'])['map'](({suggestion:_0x36152f})=>_0x36152f);_0x1223ff['unshift'](..._0x157787);}const _0x515a17=new Map([[_0x3c2f95,_0x58330f]]);for(const _0x59a162 of _0x1223ff){const _0x448d74='attribute'==_0x59a162['type']?_0x59a162['data']['oldValue']:void 0x0,_0x805fd4=_0x59a162['getFirstRange'](),_0x399415=Array['from'](_0x515a17['keys']())['find'](_0x1940e9=>_0x1940e9['isIntersecting'](_0x805fd4));if(!_0x399415)continue;const _0x181d6b=_0x399415['getDifference'](_0x805fd4);this['_isBlockAttribute'](_0x1d709c)&&'insertion'==_0x59a162['type']&&0x0!=_0x181d6b['length']||(_0x515a17['delete'](_0x399415),_0x181d6b['forEach'](_0x5b5e0e=>{_0x515a17['set'](_0x5b5e0e,_0x58330f);}),'insertion'!=_0x59a162['type']&&_0x448d74!=_0xfe96dd&&_0x515a17['set'](_0x399415['getIntersection'](_0x805fd4),_0x448d74));}const _0xa679be=[];for(const [_0x343e96,_0x1b4f77]of _0x515a17){const _0x3e267a=_0x30088c(),_0x29f6ac={'key':_0x1d709c,'oldValue':_0x1b4f77,'newValue':_0xfe96dd};_0x1d709c['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':_0x1d709c});const _0x59668e=('attribute:'+(_0x1d709c+'|'+Gt({'newValue':_0xfe96dd})))['substring'](0x0,0x3c),_0x32fd18=this['_setSuggestionData']({'id':_0x3e267a,'type':_0x59668e,'data':_0x29f6ac,'createdAt':new Date(),'authorId':_0x24fc2f,'attributes':_0x1ba277});_0xa679be['push'](_0x32fd18),this['_addSuggestionMarker'](_0x59668e,_0x3e267a,_0x24fc2f,_0x343e96);}return _0xa679be;}['enableDefaultAttributesIntegration'](_0x2af042){this['enableCommand'](_0x2af042,(_0x48fd27,..._0x235e97)=>{this['_recordAttributeChanges'](()=>{_0x48fd27(..._0x235e97);});});}['registerBlockAttribute'](_0x5d0f77){this['_blockAttributeKeys']['add'](_0x5d0f77);}['registerInlineAttribute'](_0x170512){this['_inlineAttributeKeys']['add'](_0x170512);}['_getAttributeKey'](_0x1d9735){return'attribute'==_0x1d9735['type']?_0x1d9735['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5e669a,_0x534169){const _0x140b79=_0x5e669a['getFirstMarker']();this['_model']['change'](_0x2387e8=>{_0x2387e8['updateMarker'](_0x140b79,{'range':_0x534169});});}['_addThreadToSuggestion'](_0x2315b6){const _0x30fd4f=_0x2315b6['id'],_0x48a05f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30fd4f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x48a05f,'threadId':_0x30fd4f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x249ba8=this['_commentsRepository']['getCommentThread'](_0x30fd4f);_0x249ba8['unbind']('isRemovable'),_0x249ba8['isRemovable']=!0x1,_0x2315b6['commentThread']=_0x249ba8;}['_checkSuggestionCorrectness'](_0x5d6d25,_0x5419eb,_0x4b2782,_0x3b7db8){if(_0x5d6d25['type']!=_0x5419eb||_0x5d6d25['subType']!=_0x4b2782||_0x5d6d25['creator']['id']!=_0x3b7db8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b5a7f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b043d,_0x5c4fed){const _0xe68023=_0x3b043d['getFirstRange']();if(_0x5c4fed['isEqual'](_0xe68023))_0x3b043d['removeMarkers']();else{if(_0xe68023['containsRange'](_0x5c4fed)){const _0x179252=this['_model']['createPositionAt'](_0x5c4fed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b043d,this['_model']['createRange'](_0xe68023['start'],_0x179252));const _0xc8043c=_0x30088c(),_0x2cf2c7=_0x3b043d['creator']['id'],_0x2e0d4f=_0x3b043d['type']+':'+_0x3b043d['subType'];this['_setSuggestionData']({'id':_0xc8043c,'type':_0x2e0d4f,'createdAt':new Date(),'authorId':_0x2cf2c7,'data':_0x3b043d['data'],'attributes':_0x3b043d['attributes']});const _0x16d583=this['_model']['createPositionAt'](_0x5c4fed['end']['parent'],'after'),_0x35d6e0=this['_model']['createRange'](_0x16d583,_0xe68023['end']);this['_addSuggestionMarker'](_0x2e0d4f,_0xc8043c,_0x2cf2c7,_0x35d6e0);}else{if(_0xe68023['containsPosition'](_0x5c4fed['start'])){const _0x28d4ae=this['_model']['createPositionAt'](_0x5c4fed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b043d,this['_model']['createRange'](_0xe68023['start'],_0x28d4ae));}else{const _0x46b2e2=this['_model']['createPositionAt'](_0x5c4fed['end']['parent'],'after');this['_setSuggestionRange'](_0x3b043d,this['_model']['createRange'](_0x46b2e2,_0xe68023['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x148884){for(const {suggestion:_0x3dd594,meta:_0x3dabc4}of this['_findSuggestions'](_0x148884,'insertion')){if(!_0x3dabc4['isOwn'])continue;const _0x3061f9=_0x3dd594['getRanges']();for(const _0x121ee9 of _0x3061f9)if(!_0x148884['getDifference'](_0x121ee9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x91df56){const _0xd88def=this['editor']['plugins']['get']('Users')['getUser'](_0x91df56);if(!_0xd88def)throw new _0x1b5a7f('track-changes-user-not-found',this);return _0xd88def;}['_getExternalAuthor'](_0x3c90e6){const _0x1da5cb=this['editor']['plugins']['get']('Users'),_0x4dc378=_0x4df7ec('external:'+_0x3c90e6),_0xf9d914=_0x1da5cb['getUser'](_0x4dc378);return _0xf9d914||_0x1da5cb['addUser']({'id':_0x4dc378,'name':_0x3c90e6});}['_createSuggestion'](_0x2c1019,_0x402cbe,_0x3ef909,_0x1daa29,_0x5e964b){const _0x21110d=this['_getAuthorFromId'](_0x1daa29),_0x1c9554=this['_suggestionFactory']['buildSuggestion'](_0x2c1019,_0x402cbe,_0x3ef909,_0x21110d,_0x5e964b,_0x4f277f=>{this['_updateSuggestionData'](_0x3ef909,{'attributes':_0x4f277f});const _0x2b3316=this['getSuggestion'](_0x3ef909);this['_joinWithAdjacentSuggestions'](new Set([_0x2b3316])),this['_refreshSuggestionsChain'](new Set([_0x2b3316]));});return this['listenTo'](_0x1c9554,'accept',()=>{this['_updateSuggestionData'](_0x3ef909,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c9554,'discard',()=>{this['_updateSuggestionData'](_0x3ef909,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ef909,_0x1c9554),this['_suggestionState']['set'](_0x1c9554,'notReady'),_0x1c9554;}['_splitMarkerName'](_0x5bb8de){const _0xc9a5be=_0x5bb8de['split'](':');return{'group':_0xc9a5be[0x0],'type':_0xc9a5be[0x1],'subType':_0xc9a5be['length']>=0x5?_0xc9a5be[0x2]:null,'id':_0xc9a5be['length']<0x5?_0xc9a5be[0x2]:_0xc9a5be[0x3],'authorId':_0xc9a5be['length']<0x5?_0xc9a5be[0x3]:_0xc9a5be[0x4],'markerCount':0x6==_0xc9a5be['length']?_0xc9a5be[0x5]:null};}['_breakSuggestionMarker'](_0x2ffeff,_0x31f1b2,_0x3ac4a1){const _0x2054ea=_0x2ffeff['getFirstRange'](),_0x21044f=_0x2054ea['start'],_0x3a034b=_0x2054ea['end'];this['_setSuggestionRange'](_0x2ffeff,this['_model']['createRange'](_0x21044f,_0x31f1b2));const _0x26bd66=_0x30088c(),_0xdfa22d=_0x2ffeff['creator']['id'],_0x1ff2ff=_0x2ffeff['type']+(_0x2ffeff['subType']?':'+_0x2ffeff['subType']:'');this['_setSuggestionData']({'id':_0x26bd66,'type':_0x1ff2ff,'createdAt':new Date(),'authorId':_0xdfa22d,'originalSuggestionId':_0x2ffeff['id'],'attributes':_0x2ffeff['attributes'],'data':_0x2ffeff['data']});const _0x1d6046=this['_getAttributeKey'](_0x2ffeff);('formatBlock'==_0x2ffeff['type']||_0x1d6046&&this['_isBlockAttribute'](_0x1d6046))&&(_0x3ac4a1=this['_model']['createPositionBefore'](_0x3ac4a1['parent'])),this['_addSuggestionMarker'](_0x1ff2ff,_0x26bd66,_0xdfa22d,this['_model']['createRange'](_0x3ac4a1,_0x3a034b));}['_findSuggestions'](_0x5a64f8,_0x1a98dd=null){const _0x5eac82=[],_0x3938fc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a64f8)||(_0x5a64f8=[_0x5a64f8]);for(const _0x4831eb of this['getSuggestions']()){if(!_0x4831eb['isInContent'])continue;if(_0x1a98dd&&_0x4831eb['type']!=_0x1a98dd)continue;let _0xf9abaf=!0x1;for(const _0x27c939 of _0x4831eb['getRanges']()){for(const _0x6cd11c of _0x5a64f8){const _0x3a0fe5=_0x6cd11c['start']['isEqual'](_0x27c939['end'])||_0x6cd11c['end']['isEqual'](_0x27c939['start']);if(_0x3a0fe5||_0x6cd11c['getIntersection'](_0x27c939)){const _0x54628d=_0x6cd11c['containsRange'](_0x27c939)&&Ot(this['_model']['schema'],_0x27c939['start'],_0x6cd11c),_0x338af0=_0x27c939['containsRange'](_0x6cd11c)&&Ot(this['_model']['schema'],_0x6cd11c['start'],_0x27c939);_0x5eac82['push']({'suggestion':_0x4831eb,'meta':{'isOwn':_0x3938fc==_0x4831eb['author'],'isNextTo':_0x3a0fe5,'isInsideObject':_0x54628d,'containsRangeInObject':_0x338af0}}),_0xf9abaf=!0x0;break;}}if(_0xf9abaf)break;}}return _0x5eac82;}['_addSuggestionMarker'](_0x530a7c,_0x2ea943,_0x1db4d1,_0x1477ef,_0x494c1f){this['_model']['change'](_0x288c3b=>{let _0x41215e='suggestion:'+_0x530a7c+':'+_0x2ea943+':'+_0x1db4d1;_0x494c1f&&(_0x41215e=_0x41215e+':'+_0x494c1f),_0x288c3b['addMarker'](_0x41215e,{'range':_0x1477ef,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e194f){const _0x46d344=_0x1e194f['previous'],_0x519be9=_0x1e194f['next'];_0x1e194f['previous']=null,_0x1e194f['next']=null,null!=_0x46d344&&_0x46d344['next']==_0x1e194f&&(_0x46d344['next']=_0x519be9),null!=_0x519be9&&_0x519be9['previous']==_0x1e194f&&(_0x519be9['previous']=_0x46d344),'ready'==this['_suggestionState']['get'](_0x1e194f)&&(this['_suggestionState']['set'](_0x1e194f,'removed'),this['fire']('suggestionUnloaded',_0x1e194f,_0x46d344,_0x519be9));}['_setSuggestionData'](_0x472dc6){const _0x752a78=_0x472dc6['id'],_0x582508=this['addSuggestionData'](_0x472dc6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b2535=this['editor']['plugins']['get']('PendingActions'),_0x4c35c9=_0x582508['hasComments'],_0x11a7fb=_0x582508['subType']?_0x582508['type']+':'+_0x582508['subType']:_0x582508['type'],_0x267895=this['editor']['locale'],_0x4fac46=_0x5b2535['add'](o(_0x267895,'PENDING_ACTION_SUGGESTION')),_0x50dd1e={'id':_0x752a78,'type':_0x11a7fb,'hasComments':_0x4c35c9,'data':_0x472dc6['data']||null,'originalSuggestionId':_0x472dc6['originalSuggestionId']||null,'attributes':_0x582508['attributes']};this['_adapter']['addSuggestion'](_0x50dd1e)['then'](_0x4a4596=>{_0x582508['_saved']=!0x0,_0x5b2535['remove'](_0x4fac46),_0x4a4596&&_0x4a4596['createdAt']&&(this['_suggestions']['get'](_0x752a78)['createdAt']=_0x4a4596['createdAt']);})['catch'](_0x391aa7=>{throw _0x2ebe0d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x582508['discard']();}),_0x582508['stopListening'](),this['_suggestions']['delete'](_0x582508['id']),this['_suggestionState']['delete'](_0x582508),_0x391aa7;});}return _0x582508;}['_isBlockAttribute'](_0x7db2f2){return this['_blockAttributeKeys']['has'](_0x7db2f2);}['_updateSuggestionData'](_0x4a4525,_0x5ddc21){const _0x1627a5=this['editor']['plugins']['get']('PendingActions'),_0x41547d=this['getSuggestion'](_0x4a4525);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x41547d['_saved']){const _0x29181a=_0x1627a5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a4525,_0x5ddc21)['then'](()=>{_0x1627a5['remove'](_0x29181a);});}else _0x41547d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a4525,_0x5ddc21);});}}['_getSuggestionData'](_0x3f7e73){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b5a7f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f7e73);}['_handleNewSuggestionMarker'](_0x8027f9){const {id:_0x184591,type:_0x54d1dd,subType:_0x96e1ae,authorId:_0x257840}=this['_splitMarkerName'](_0x8027f9),_0x2dd51f=this['_suggestions']['get'](_0x184591)||this['_createSuggestion'](_0x54d1dd,_0x96e1ae,_0x184591,_0x257840,{});switch(this['_checkSuggestionCorrectness'](_0x2dd51f,_0x54d1dd,_0x96e1ae,_0x257840),this['_suggestionState']['get'](_0x2dd51f)){case'notReady':this['_getSuggestionData'](_0x184591)['then'](_0x20ae4b=>{let _0x103030=Promise['resolve']();_0x20ae4b['hasComments']&&(_0x103030=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x184591})),_0x103030['then'](()=>{this['addSuggestionData'](_0x20ae4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2dd51f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x184591,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2dd51f,'ready'),this['fire']('suggestionLoaded',_0x2dd51f);break;case'ready':this['fire']('suggestionChanged',_0x2dd51f);}return _0x2dd51f['addMarkerName'](_0x8027f9),_0x2dd51f;}['_refreshSuggestionsChain'](_0x504166){const _0x5cf862=Array['from'](_0x504166),_0x54e426=_0x5cf862['filter'](_0xedf054=>'attribute'==_0xedf054['type']);this['_refreshAttributeSuggestionsChain'](_0x54e426);const _0x2a5780=_0x5cf862['filter'](_0xd1946=>!_0xd1946['isMultiRange']&&'attribute'!=_0xd1946['type']),_0x3f739b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf26bc9=>!_0xf26bc9['isMultiRange']&&'attribute'!=_0xf26bc9['type']),_0x50d825=_0x3f739b['filter'](_0x3c956e=>!_0x504166['has'](_0x3c956e)),_0x5c356=new Map(_0x3f739b['map'](_0x593cd0=>[_0x593cd0,this['_suggestionFactory']['getSuggestionCallback'](_0x593cd0['type'],_0x593cd0['subType'],'chain')])),_0x18947b=new Map(_0x3f739b['map'](_0x5a0c5c=>[_0x5a0c5c,_0x5a0c5c['getFirstRange']()])),_0xdd645=new Set(),_0x43113d=new Set();for(let _0x3fb80c=0x0;_0x3fb80c<_0x2a5780['length'];_0x3fb80c++)_0x39b9a7(_0x2a5780[_0x3fb80c],_0x2a5780,_0x3fb80c+0x1);for(let _0x1ebe13=0x0;_0x1ebe13<_0x2a5780['length'];_0x1ebe13++)_0x39b9a7(_0x2a5780[_0x1ebe13],_0x50d825,0x0);const _0x53422e=new Set();for(let _0x48dcca=0x0;_0x48dcca<_0x2a5780['length'];_0x48dcca++){const _0x5f0cba=_0x2a5780[_0x48dcca];!_0x43113d['has'](_0x5f0cba)&&_0x5f0cba['previous']&&(_0x53422e['add'](_0x5f0cba['previous']),_0x5f0cba['previous']['next']===_0x5f0cba&&(_0x5f0cba['previous']['next']=null),_0x5f0cba['previous']=null),!_0xdd645['has'](_0x5f0cba)&&_0x5f0cba['next']&&(_0x53422e['add'](_0x5f0cba['next']),_0x5f0cba['next']['previous']===_0x5f0cba&&(_0x5f0cba['next']['previous']=null),_0x5f0cba['next']=null);}function _0x39b9a7(_0xa754c2,_0x5350fc,_0x15e5d9){for(let _0xe4bc01=_0x15e5d9;_0xe4bc01<_0x5350fc['length'];_0xe4bc01++){const _0x39447a=_0xd82eae(_0xa754c2,_0x5350fc[_0xe4bc01]);_0x39447a&&(_0x39447a[0x0]['next']=_0x39447a[0x1],_0x39447a[0x1]['previous']=_0x39447a[0x0],_0xdd645['add'](_0x39447a[0x0]),_0x43113d['add'](_0x39447a[0x1]));}}function _0xd82eae(_0x1ffb04,_0x402949){if(_0x1ffb04['author']['id']!==_0x402949['author']['id'])return null;const _0x53c537=_0x5c356['get'](_0x1ffb04)(_0x1ffb04,_0x402949,_0x18947b['get'](_0x1ffb04),_0x18947b['get'](_0x402949));if(!_0x53c537)return null;return _0x5c356['get'](_0x402949)(_0x1ffb04,_0x402949,_0x18947b['get'](_0x1ffb04),_0x18947b['get'](_0x402949))?_0x53c537[0x1]['commentThread']&&_0x53c537[0x1]['commentThread']['length']?null:_0x53c537:null;}_0x53422e['size']&&this['_refreshSuggestionsChain'](_0x53422e);}['_refreshAttributeSuggestionsChain'](_0x6923c2){if(0x0==_0x6923c2['length'])return;const _0xa32808=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb90267=>'attribute'==_0xb90267['type']&&_0xb90267['_isDataLoaded']),_0x5a5d84=[],_0x2fa85c=new Map();for(const _0x89a91b of _0xa32808){const _0x2a9cae=_0x4df7ec(_0x89a91b['attributes']);_0x2fa85c['has'](_0x2a9cae)||(_0x2fa85c['set'](_0x2a9cae,_0x5a5d84['length']),_0x5a5d84['push']([]));const _0x197ffb=_0x2fa85c['get'](_0x2a9cae);_0x5a5d84[_0x197ffb]['push'](_0x89a91b);}!(function(){_0x5a5d84['sort']((_0x9e8cd4,_0x2d8c99)=>{const _0x1d89af=_0x9e8cd4[0x0]['createdAt'],_0x1a508e=_0x2d8c99[0x0]['createdAt'];return _0x1d89af==_0x1a508e?_0x9e8cd4[0x0]['attributes']['groupId']<_0x2d8c99[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d89af<_0x1a508e?-0x1:0x1;});for(const _0x26e40a of _0x5a5d84)_0x26e40a['sort']((_0x5704bb,_0xbbb9dd)=>_0x5704bb['id']<_0xbbb9dd['id']?-0x1:0x1);}());for(let _0x4b849a=0x0;_0x4b849a<_0x5a5d84['length'];_0x4b849a++){if(0x0==_0x5a5d84[_0x4b849a]['length'])continue;const _0x19fc19=[];for(let _0x45e630=_0x4b849a+0x1;_0x45e630<_0x5a5d84['length'];_0x45e630++)0x0!=_0x5a5d84[_0x45e630]['length']&&_0x50b752(_0x5a5d84[_0x4b849a],_0x5a5d84[_0x45e630])&&_0x19fc19['push'](_0x45e630);for(const _0x2ecb69 of _0x19fc19)_0x5a5d84[_0x4b849a]=_0x5a5d84[_0x4b849a]['concat'](_0x5a5d84[_0x2ecb69]),_0x5a5d84[_0x2ecb69]=[];}for(const _0xaad2d4 of _0x5a5d84)for(let _0x4358db=0x0;_0x4358db<_0xaad2d4['length'];_0x4358db++){const _0x77de50=_0xaad2d4[_0x4358db+0x1]||null;_0xaad2d4[_0x4358db]['next']!==_0x77de50&&(_0xaad2d4[_0x4358db]['next']=_0x77de50);}for(const _0x40e1a7 of _0x5a5d84)for(let _0x39e018=0x0;_0x39e018<_0x40e1a7['length'];_0x39e018++){const _0x198a70=_0x40e1a7[_0x39e018-0x1]||null;_0x40e1a7[_0x39e018]['previous']!==_0x198a70&&(_0x40e1a7[_0x39e018]['previous']=_0x198a70);}function _0x50b752(_0x7fb5d5,_0x408814){if(_0x7fb5d5[0x0]['attributes']['groupId']!==_0x408814[0x0]['attributes']['groupId']&&_0x7fb5d5[0x0]['author']!==_0x408814[0x0]['author'])return!0x1;if(!function(_0x33ccb6,_0x5d37e4){if(!_0x33ccb6['hasComments']&&!_0x5d37e4['hasComments'])return!0x0;if(_0x33ccb6['hasComments']&&_0x5d37e4['hasComments'])return!0x1;if(_0x33ccb6['hasComments']&&_0x5d37e4['createdAt']<_0x33ccb6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5d37e4['hasComments']&&_0x33ccb6['createdAt']<_0x5d37e4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x7fb5d5[0x0],_0x408814[0x0]))return!0x1;const _0x33de31=Tt(_0x7fb5d5[0x0]['attributes'],'groupId'),_0x4e275a=Tt(_0x408814[0x0]['attributes'],'groupId');if(!_0x139ab1(_0x33de31,_0x4e275a))return!0x1;return!!_0x7fb5d5['every'](_0x3140c6=>_0x408814['some'](_0x19907c=>_0x3140c6['getFirstRange']()['isEqual'](_0x19907c['getFirstRange']())))&&_0x408814['every'](_0x44f1b0=>_0x7fb5d5['some'](_0x1396f6=>_0x44f1b0['getFirstRange']()['isEqual'](_0x1396f6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x269d02){const _0x448d3f=Array['from'](_0x269d02),_0x47ecee=this['getSuggestions']({'skipNotAttached':!0x0}),_0x473769=_0x47ecee['filter'](_0x3e06ff=>!_0x269d02['has'](_0x3e06ff)),_0x16a6ff=new Map(_0x448d3f['map'](_0x350d72=>[_0x350d72,this['_suggestionFactory']['getSuggestionCallback'](_0x350d72['type'],_0x350d72['subType'],'join')])),_0x1f407b=new Map(_0x47ecee['map'](_0x569d5c=>[_0x569d5c,_0x569d5c['getRanges']()]));for(let _0x6410bc=0x0;_0x6410bc<_0x448d3f['length'];_0x6410bc++){if(_0x3fc0ed(this,_0x448d3f[_0x6410bc],_0x448d3f,_0x6410bc+0x1))return!0x0;}for(let _0x5454da=0x0;_0x5454da<_0x448d3f['length'];_0x5454da++){if(_0x3fc0ed(this,_0x448d3f[_0x5454da],_0x473769,0x0))return!0x0;}return!0x1;function _0x3fc0ed(_0x2249db,_0x344505,_0x4844b0,_0x4772f5){for(let _0x425c3c=_0x4772f5;_0x425c3c<_0x4844b0['length'];_0x425c3c++){const _0x3cfd21=_0x4844b0[_0x425c3c];if(_0x3cfd21['type']!==_0x344505['type']||_0x3cfd21['author']['id']!==_0x344505['author']['id']||_0x3cfd21['subType']!==_0x344505['subType'])continue;if(!Jt(_0x344505,_0x3cfd21))continue;if('attribute'==_0x344505['type']&&_0x344505['data']['oldValue']!=_0x3cfd21['data']['oldValue'])continue;if('attribute'==_0x344505['type']&&_0x2249db['_isBlockAttribute'](_0x344505['data']['key']))continue;if('formatBlock'==_0x344505['type']){const _0x13205c=_0x2249db['editor']['model'],_0x567e93=_0x344505['getContainedElement']();if(_0x567e93&&(_0x13205c['schema']['isObject'](_0x567e93)||_0x13205c['schema']['isLimit'](_0x567e93)))continue;}const _0x592e65=_0x16a6ff['get'](_0x344505),_0x21f21c=_0x1f407b['get'](_0x344505),_0x41e800=_0x1f407b['get'](_0x3cfd21),_0xda1052=_0x344505['commentThread']&&_0x344505['commentThread']['length'],_0x2091c1=_0x3cfd21['commentThread']&&_0x3cfd21['commentThread']['length'];if(!_0xda1052&&_0x592e65(_0x41e800,_0x21f21c))return _0x2249db['_joinSuggestions'](_0x3cfd21,_0x344505),_0x1f407b['delete'](_0x344505),!0x0;if(!_0x2091c1&&_0x592e65(_0x21f21c,_0x41e800))return _0x2249db['_joinSuggestions'](_0x344505,_0x3cfd21),_0x1f407b['delete'](_0x3cfd21),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc5c07e,_0x4f430f){if(_0xc5c07e['isMultiRange']){for(const _0x58e6d7 of _0x4f430f['getRanges']())_0xc5c07e['addRange'](_0x58e6d7);}else{const _0x33d664=_0x4f430f['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc5c07e,this['_model']['createRange'](_0xc5c07e['getFirstRange']()['start'],_0x33d664));}_0x4f430f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x238c05,_0x278f50,_0x5809df){const _0x3a743d=_0x238c05['startsWith']('format')||_0x238c05['startsWith']('attribute')?'FORMATTING':_0x238c05['toUpperCase']();return o(this['editor']['locale'],_0x278f50+'_'+_0x3a743d+'_SUGGESTION_ANNOUNCEMENT',_0x5809df);}['_initAriaMarkerChangeAnnouncements'](){const _0x3091c8=this['editor'];if(!_0x3091c8['ui'])return;const {ariaLiveAnnouncer:_0x6a5210}=_0x3091c8['ui'];_0x16f423(this['_model'],({left:_0x19478a,entered:_0x288a3c})=>{for(const _0xa87b4b of _0x19478a){const {group:_0x3d8036,type:_0x34b7e9}=this['_splitMarkerName'](_0xa87b4b['name']);if('suggestion'===_0x3d8036){_0x6a5210['announce'](this['_getMarkerAnnouncementText'](_0x34b7e9,'LEAVE'));break;}}for(const _0x3d5da2 of _0x288a3c){const {group:_0x345020,type:_0x5da7da}=this['_splitMarkerName'](_0x3d5da2['name']);if('suggestion'===_0x345020){_0x6a5210['announce'](this['_getMarkerAnnouncementText'](_0x5da7da,'ENTER',_0xa239e8(_0x2262d2)));break;}}});}['_processAttributeChanges'](_0x5a5ca5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5cd98c=this['editor'],_0xe82d52=_0x5cd98c['model']['document']['differ']['getChanges']();if(0x0==_0xe82d52['length'])return!0x1;const _0x8d24b5=[],_0x1c872a=_0xe82d52['filter'](_0x54ab74=>'attribute'==_0x54ab74['type']),_0xa69990=_0xe82d52['filter'](_0x14b4a1=>'insert'==_0x14b4a1['type']&&'$text'!=_0x14b4a1['name']),_0x5eda8c=_0xe82d52['filter'](_0x5a4759=>'remove'==_0x5a4759['type']&&'$text'!=_0x5a4759['name']);for(const _0x5d254e of _0x1c872a)_0x8d24b5['push']({'key':_0x5d254e['attributeKey'],'newValue':_0x5d254e['attributeNewValue'],'oldValue':_0x5d254e['attributeOldValue'],'range':Pt(_0x5d254e['range'],_0x5cd98c['model'])});for(const _0x3922e7 of _0xa69990){const _0xfecdc1=_0x5eda8c['find'](_0x4a66c6=>_0x4a66c6['position']['isEqual'](_0x3922e7['position']));_0xfecdc1&&_0x8d24b5['push']({'key':m,'newValue':_0x3922e7['name'],'oldValue':_0xfecdc1['name'],'range':_0x5cd98c['model']['createRangeOn'](_0x3922e7['position']['nodeAfter'])});}return 0x0!=_0x8d24b5['length']&&this['_reduceExistingSuggestions'](_0x5a5ca5,_0x8d24b5);}['_processAttributeSuggestions'](_0x160962){let _0x4e62af=!0x1;const _0x29e07f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e32cc=>_0x1e32cc['data']['newRange']&&_0x1e32cc['name']['startsWith']('suggestion:attribute:'));for(const _0x5bbccf of _0x29e07f){const {subType:_0x3d3d0a,id:_0x1873b2}=this['_splitMarkerName'](_0x5bbccf['name']),_0x21066c=_0x3d3d0a['split']('|')[0x0];for(const _0x4e7798 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e7798['id']!=_0x1873b2&&'attribute'==_0x4e7798['type']&&_0x4e7798['data']&&_0x4e7798['data']['key']==_0x21066c&&_0x4e7798['getFirstRange']()['isIntersecting'](_0x5bbccf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e7798,_0x5bbccf['data']['newRange'],_0x160962),_0x4e62af=!0x0);}return _0x4e62af;}['_recordAttributeChanges'](_0x157983){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x157983();}['_isRegisteredAttribute'](_0x5c04b8){const _0x419872=this['_isBlockAttribute'](_0x5c04b8),_0x591324=this['_inlineAttributeKeys']['has'](_0x5c04b8);return _0x419872||_0x591324;}['_reduceExistingSuggestions'](_0x56605a,_0x1bf4ef){if(0x0==_0x1bf4ef['length'])return!0x1;let _0xf0996f=!0x1;for(const _0x202406 of _0x1bf4ef){const _0x32ab1f=this['_findSuggestions'](_0x202406['range'],'attribute')['filter'](_0x595afa=>!_0x595afa['meta']['isNextTo'])['map'](_0x585f9a=>_0x585f9a['suggestion']),_0x5ae98a=_0x4df7ec({'newValue':_0x202406['newValue']});_0x32ab1f['filter'](_0x2e51f9=>{const [_0x1a633c,_0x5cbf58]=_0x2e51f9['subType']['split']('|');return _0x1a633c==_0x202406['key']&&_0x5cbf58!=_0x5ae98a;})['forEach'](_0x5afa79=>{this['_reduceSuggestionAttributeRange'](_0x5afa79,_0x202406['range'],_0x56605a),_0xf0996f=!0x0;});}return _0xf0996f;}['_reduceSuggestionAttributeRange'](_0x4f93cb,_0xa2bbf2,_0x3edddb){const _0x3d40dc=_0x4f93cb['getFirstRange']()['getDifference'](_0xa2bbf2);0x0!==_0x3d40dc['length']?0x1!==_0x3d40dc['length']?this['_breakSuggestionMarker'](_0x4f93cb,_0xa2bbf2['start'],_0xa2bbf2['end']):this['_setSuggestionRange'](_0x4f93cb,_0x3d40dc[0x0]):_0x3edddb['removeMarker'](_0x4f93cb['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x170ffb){this['_editor']=_0x170ffb,this['_model']=_0x170ffb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf4b236,_0x2da290,_0x41f2b7,_0x5ef3a8,_0x1fd8af,_0x113e6c){return new u(this['_model'],{'type':_0xf4b236,'subType':_0x2da290,'id':_0x41f2b7,'author':_0x5ef3a8,'creator':_0x5ef3a8,'attributes':_0x1fd8af,'onAttributesChange':_0x113e6c,'onAccept':(..._0x1eb508)=>this['getSuggestionCallback'](_0xf4b236,_0x2da290,'accept')(..._0x1eb508),'onDiscard':(..._0xccf63d)=>this['getSuggestionCallback'](_0xf4b236,_0x2da290,'discard')(..._0xccf63d)});}['registerCustomCallback'](_0x3caf33,_0x1a42bf,_0x126cd5,_0x2f015f){const _0x58d57b=_0x3caf33+':'+_0x1a42bf+':'+_0x126cd5;this['_customCallbacks']['set'](_0x58d57b,_0x2f015f);}['getSuggestionCallback'](_0x2e0146,_0x187320,_0x3c58aa){const _0x47ee96=_0x2e0146+':'+_0x187320+':'+_0x3c58aa;return this['_customCallbacks']['get'](_0x47ee96)||this['_defaultCallbacks']['get'](_0x2e0146+':'+_0x3c58aa);}['_registerDefaultCallbacks'](){const _0x48f527=()=>!0x1,_0x59346f=_0x3b051f=>{_0x3b051f['sort']((_0x40f9c9,_0x5f0337)=>_0x40f9c9['start']['isBefore'](_0x5f0337['start'])?0x1:-0x1),this['_model']['change'](_0xb8d250=>{for(const _0x3f2b4c of _0x3b051f){let _0x28a379;_0x28a379=_0x3f2b4c['end']['isAtEnd']&&_0x3f2b4c['end']['parent']==_0x3f2b4c['start']['nodeAfter']?_0xb8d250['createSelection'](_0x3f2b4c['start']['nodeAfter'],'on'):_0xb8d250['createSelection'](_0x3f2b4c),this['_model']['deleteContent'](_0x28a379,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f29bc=(_0x474413,_0x2a5a1f)=>{_0x2a5a1f&&this['_model']['change'](_0x48082c=>{const {commandName:_0x400f4c,commandParams:_0x51f919=[]}=_0x2a5a1f,_0x42fc39=_0x474413['map'](_0xff0708=>(Vt(_0xff0708)&&(_0xff0708=this['_model']['createRange'](_0xff0708['end'])),_0xff0708))['filter'](_0x554f9f=>'$graveyard'!==_0x554f9f['root']['rootName']);if(_0x42fc39['length']<0x1)return;const _0x5e230c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x567510=>_0x5168fa['fromRange'](_0x567510));_0x48082c['setSelection'](_0x42fc39);for(const _0x25d168 of this['_editor']['commands']['commands']())_0x25d168['refresh']();_0x51f919['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x400f4c,..._0x51f919);const _0xa3d226=_0x5e230c['filter'](_0x1fb7f4=>'$graveyard'!=_0x1fb7f4['root']['rootName']);_0xa3d226['length']>0x0&&_0x48082c['setSelection'](_0xa3d226);for(const _0x1a8b93 of _0x5e230c)_0x1a8b93['detach']();});},_0x437c5d=(_0x583dba,_0x3694d9)=>0x1==_0x583dba['length']&&0x1==_0x3694d9['length']&&_0x583dba[0x0]['end']['isEqual'](_0x3694d9[0x0]['start']),_0x3e3297=(_0x43cfc9,_0x4403f8,_0xd7848a,_0x34a316)=>Ht(_0x43cfc9,_0x4403f8,_0xd7848a,_0x34a316,this['_model'])?[_0x43cfc9,_0x4403f8]:Ht(_0x4403f8,_0x43cfc9,_0x34a316,_0xd7848a,this['_model'])?[_0x4403f8,_0x43cfc9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x48f527),this['_defaultCallbacks']['set']('insertion:discard',_0x59346f),this['_defaultCallbacks']['set']('insertion:join',_0x437c5d),this['_defaultCallbacks']['set']('insertion:chain',_0x3e3297),this['_defaultCallbacks']['set']('deletion:accept',_0x59346f),this['_defaultCallbacks']['set']('deletion:discard',_0x48f527),this['_defaultCallbacks']['set']('deletion:join',_0x437c5d),this['_defaultCallbacks']['set']('deletion:chain',_0x3e3297),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f29bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x48f527),this['_defaultCallbacks']['set']('formatInline:join',_0x437c5d),this['_defaultCallbacks']['set']('formatInline:chain',_0x48f527),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f29bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x48f527),this['_defaultCallbacks']['set']('formatBlock:join',_0x437c5d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x48f527),this['_defaultCallbacks']['set']('attribute:accept',_0x48f527),this['_defaultCallbacks']['set']('attribute:discard',(_0x1c2122,_0x2c957f)=>{if(!_0x2c957f)return;const _0x3a7bd0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5dcf48=>{if(_0x2c957f['key']==m)for(const _0x362933 of _0x1c2122){const _0x1c4c88=_0x362933['start']['nodeAfter'],_0xb12a7=_0x2c957f['oldValue'];_0x5dcf48['rename'](_0x1c4c88,_0xb12a7);}else{if(_0x3a7bd0['_isBlockAttribute'](_0x2c957f['key'])){for(const _0x4639b6 of _0x1c2122)void 0x0!==_0x2c957f['oldValue']?_0x5dcf48['setAttribute'](_0x2c957f['key'],_0x2c957f['oldValue'],_0x4639b6['start']['nodeAfter']):_0x5dcf48['removeAttribute'](_0x2c957f['key'],_0x4639b6['start']['nodeAfter']);}else{for(const _0x32c308 of _0x1c2122)_0x2c957f['oldValue']?_0x5dcf48['setAttribute'](_0x2c957f['key'],_0x2c957f['oldValue'],_0x32c308):_0x5dcf48['removeAttribute'](_0x2c957f['key'],_0x32c308);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x437c5d);}}function Ot(_0x1087a7,_0x33bf05,_0x25e384){for(const _0x38bc48 of _0x33bf05['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38bc48['root']==_0x38bc48)return!0x1;if(!_0x25e384['containsItem'](_0x38bc48))return!0x1;if(_0x1087a7['isObject'](_0x38bc48)||_0x1087a7['isLimit'](_0x38bc48))return!0x0;}return!0x1;}function Vt(_0x1148d2){return _0x1148d2['end']['parent']==_0x1148d2['start']['nodeAfter']&&_0x1148d2['end']['isAtStart'];}function Ut(_0x59463e,_0x57ac88,_0x3f1840,_0x5794b3){const _0x4ef014=_0x1e4d97=>!_0x1e4d97['item']['is']('$textProxy')&&!_0x5794b3['isObject'](_0x1e4d97['item']),_0x45f080=_0x59463e['start']['getLastMatchingPosition'](_0x4ef014),_0x464d5d=_0x59463e['end']['getLastMatchingPosition'](_0x4ef014,{'direction':'backward'});return(!_0x59463e['start']['isEqual'](_0x45f080)||!_0x59463e['end']['isEqual'](_0x464d5d))&&(_0x45f080['isBefore'](_0x464d5d)?_0x3f1840['updateMarker'](_0x57ac88,{'range':_0x3f1840['createRange'](_0x45f080,_0x464d5d)}):_0x3f1840['removeMarker'](_0x57ac88),!0x0);}function Gt(_0x19cbbf){return _0x4df7ec(_0x19cbbf);}function Ft(_0xa9f593){const _0x3bfc2c=_0xa9f593['start']['nodeAfter'];return _0x3bfc2c&&_0x3bfc2c['is']('element');}function Pt(_0x7537e5,_0x51a5a7){return null==_0x7537e5['end']['nodeBefore']&&_0x7537e5['end']['parent']==_0x7537e5['start']['nodeAfter']?Lt(_0x7537e5['start']['nodeAfter'],_0x51a5a7):_0x7537e5;}function Lt(_0x3c0ef5,_0x3eaf61){const _0x3ba01c=_0x3eaf61['schema']['isObject'](_0x3c0ef5)||_0x3eaf61['schema']['isSelectable'](_0x3c0ef5);return _0x3eaf61['createRange'](_0x3eaf61['createPositionAt'](_0x3c0ef5,'before'),_0x3ba01c?_0x3eaf61['createPositionAfter'](_0x3c0ef5):_0x3eaf61['createPositionAt'](_0x3c0ef5,'end'));}function Ht(_0x2bbaa2,_0x41b546,_0x2ee04b,_0x5c04b0,_0xb8ebec){if(_0x2bbaa2['next'])return!0x1;if(!Jt(_0x2bbaa2,_0x41b546))return!0x1;if(_0x2ee04b['end']['isEqual'](_0x5c04b0['start']))return!0x0;if(_0x2bbaa2['type']!=_0x41b546['type'])return!0x1;if(!_0x2ee04b['end']['isTouching'](_0x5c04b0['start']))return!0x1;const _0x2f258c=_0xb8ebec['createRange'](_0x2ee04b['end'],_0x5c04b0['start'])['getWalker']();for(const _0x2e8a49 of _0x2f258c)if(['elementStart','elementEnd']['includes'](_0x2e8a49['type'])&&_0xb8ebec['schema']['isLimit'](_0x2e8a49['item']))return!0x1;return!0x0;}function Jt(_0x48b7b0,_0x2a25b7){if(!_0x48b7b0['_isDataLoaded']||!_0x2a25b7['_isDataLoaded'])return!0x1;const _0x1d8bc0=new Set(Object['keys'](_0x48b7b0['attributes'])),_0x35efa6=new Set(Object['keys'](_0x2a25b7['attributes']));if(_0x1d8bc0['delete']('groupId'),_0x35efa6['delete']('groupId'),0x0==_0x1d8bc0['size']&&0x0==_0x35efa6['size'])return!0x0;if(_0x1d8bc0['size']!=_0x35efa6['size'])return!0x1;const _0x4bf72a={..._0x48b7b0['attributes']},_0x4b5d24={..._0x2a25b7['attributes']};return delete _0x4bf72a['groupId'],delete _0x4b5d24['groupId'],JSON['stringify'](_0x4bf72a)==JSON['stringify'](_0x4b5d24);}function qt(_0x33fbe7,_0x3c29e5){const _0x465342=zt(_0x33fbe7['attributes']),_0x73c72f=zt(_0x3c29e5);if(!_0x33fbe7['_isDataLoaded'])return!0x1;for(const _0x1dff49 of Object['keys'](_0x73c72f))if(!_0x139ab1(_0x465342[_0x1dff49],_0x73c72f[_0x1dff49]))return!0x1;return!0x0;}function zt(_0xeec67f){const _0x2dcff2=Object['assign']({},_0xeec67f);return delete _0x2dcff2['skipNestingCheck'],delete _0x2dcff2['tablePasteChainId'],_0x2dcff2;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x376978(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x134680,_0x4a9e2e,_0x28268a,_0x41f078){super(),this['model']=_0x4a9e2e,this['view']=_0x28268a,this['commentThreadController']=_0x41f078,this['_editor']=_0x134680,this['_acceptCommand']=_0x134680['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x134680['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d8b5e,_0x1107ba)=>_0x4d8b5e||_0x1107ba),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32863e=>_0x32863e&&this['_editor']['model']['canEditAt'](_0x4a9e2e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x37f75a=>_0x37f75a&&this['_editor']['model']['canEditAt'](_0x4a9e2e['getRanges']())),this['_pendingAction']=null,_0x28268a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28268a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28268a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28268a,'change:isDirty',()=>{_0x28268a['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 _0x56eaca=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56eaca);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x576a44{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x309608,_0x25bca0,_0x540549,_0x24ed5d){super(_0x309608),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x178b70(_0x309608,o(_0x309608,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x25bca0['authoredAt']),this['bind']('authoredAt')['to'](_0x25bca0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x25bca0,'authoredAt',this,'descriptionParts',(_0x421bb8,_0x4909e2,_0x1e9334)=>{const _0x269158=_0x1e9334['map'](_0x4ecec8=>ls(_0x4ecec8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x421bb8-0x1,_0x25bca0['author']['name'],_0x4909e2?_0x24ed5d['formatDateTime'](_0x4909e2):'',new DOMParser()['parseFromString'](_0x269158,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3664fb(),this['focusTracker']=new _0x305f38(),this['keystrokes']=new _0x4624f1(),this['focusCycler']=new _0x1e5ad6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x94426e=>_0x94426e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x25bca0,this['_localUser']=_0x540549,this['_config']=_0x24ed5d,_0x24ed5d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x315552(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3215c8}=this['_config'];this['commentsListView']=new _0x3215c8(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',_0x1ea6b8=>_0x1ea6b8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xe7e2da,_0x3f1ddd)=>_0xe7e2da||!!_0x3f1ddd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x233f79}=this['_config'],_0x41b2e2=new _0x233f79(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x43b45d=_0x41b2e2['commentInputView'];return _0x41b2e2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x43b45d,'value',(_0xcb1be7,_0x1b882d,_0x370671)=>!!_0x370671||_0xcb1be7&&!_0x1b882d),_0x43b45d['on']('submit',(_0x37c625,_0xee20c4)=>{this['fire']('addComment',_0xee20c4),_0x43b45d['editor']['setData']('');}),_0x43b45d['on']('cancel',()=>this['focus']()),_0x43b45d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41b2e2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5c6fee,_0x16fec5,_0x23f372,_0x47e751){super(_0x5c6fee,_0x16fec5,_0x23f372,_0x47e751),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x549b37=>_0x549b37&&_0x549b37[0x0]?_0x549b37[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x6723b5,_0x164410)=>{let _0x582053='';for(const _0x3287dd of _0x6723b5)_0x582053+='<p>'+ls(_0x3287dd['content'],_0x3287dd['color'])+'</p>';return _0x164410?_0x582053:_0x36ca85(_0x582053,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x47e751['SuggestionView'](_0x5c6fee,_0x16fec5,{'formatDateTime':_0x47e751['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x6311f2=this['bindTemplate'],_0x3bdda0=[this['suggestionView']];return this['commentsListView']&&_0x3bdda0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3bdda0['push'](this['commentThreadInputView']),_0x3bdda0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x6311f2['if']('isActive','ck-suggestion-wrapper--active'),_0x6311f2['to']('type',_0x4667fd=>'ck-suggestion-'+_0x4667fd),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x6311f2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3bdda0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x576a44{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5071a0,_0x5ab4a2,_0x527a43){super(_0x5071a0),this['_model']=_0x5ab4a2,this['_config']=_0x527a43,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5ab4a2),this['acceptButton']=this['_createButton'](o(_0x5071a0,'Accept\x20suggestion'),_0x44dae9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5071a0,'Discard\x20suggestion'),_0x44dae9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x33ff98(_0x5071a0,_0x5ab4a2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3664fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x305f38(),this['keystrokes']=new _0x4624f1(),this['focusCycler']=new _0x1e5ad6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f1fd5=>_0x1f1fd5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5df130=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5df130['innerHTML']=this['description'],this['on']('change:description',(_0x2b61de,_0x191707,_0x298c63)=>{_0x5df130['innerHTML']=_0x298c63;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x430312=this['bindTemplate'],_0x3cfed6=[{'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':_0x430312['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x430312['to']('authoredAt',_0xf389df=>this['_config']['formatDateTime'](_0xf389df))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3cfed6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3cfed6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xdbd161,_0xf46fe6,_0x1ea5ad,_0x2077a8,_0x3713b6){const _0x5346b4=new _0x130400(this['locale']);return _0x5346b4['set']({'label':_0xdbd161,'icon':_0xf46fe6,'tooltip':!0x0,'tooltipPosition':_0x3713b6}),_0x5346b4['extendTemplate']({'attributes':{'class':_0x1ea5ad}}),_0x5346b4['on']('execute',()=>{this['fire'](_0x2077a8,this['_model']['id']);}),_0x5346b4;}['_setupKeyboardNavigation'](){const _0x482355=this['element'];this['keystrokes']['listenTo'](_0x482355);for(const _0x3f2954 of this['focusables'])this['focusTracker']['add'](_0x3f2954['element']),this['keystrokes']['listenTo'](_0x3f2954['element']);this['keystrokes']['set']('enter',(_0x5c33e4,_0x329ac2)=>{_0x482355===_0x5c33e4['target']&&(this['focusCycler']['focusFirst'](),_0x329ac2());}),this['keystrokes']['set']('esc',(_0x23ed07,_0x439577)=>{_0x482355!==_0x23ed07['target']&&(this['focus'](),_0x439577());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1349dc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x41b53c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2d82e7){super(_0x2d82e7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4ddc99=this['editor']['config'];_0x4ddc99['define']('trackChanges.SuggestionThreadView',re),_0x4ddc99['define']('trackChanges.SuggestionView',ce),_0x4ddc99['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4ddc99['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x58fbcd,_0x7ca789){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x107b27,_0x3c02ca]of this['_handleControllerBuffer']){const _0x558bdb=this['_suggestionToController']['has'](_0x107b27);_0x558bdb||_0x3c02ca?_0x558bdb&&_0x3c02ca&&this['_destroyController'](_0x107b27):this['_initializeController'](_0x107b27);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x58fbcd,_0x7ca789);}['init'](){const _0x414a0c=this['editor'],_0x33e9ac=_0x414a0c['plugins']['get']('TrackChangesEditing'),_0x598a79=_0x414a0c['plugins']['get']('Annotations'),_0x362cca=_0x414a0c['plugins']['get']('EditorAnnotations'),_0x454e3e=_0x414a0c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x362cca['addSourceCollector'](()=>{const _0x33bbc5=[];for(const [_0x120fd2,_0x38790d]of Array['from'](this['_suggestionToController'])){const _0x52907a=_0x120fd2['getAllAdjacentSuggestions'](),_0x5d956d=[];for(const _0x1c7d14 of _0x52907a){if(!_0x1c7d14['isInContent'])continue;if(_0x1c7d14['isMultiRange']){_0x5d956d['push'](..._0x1c7d14['getRanges']());continue;}const _0x756507=_0x1c7d14['getFirstRange']();if(_0x5d956d['length']>0x0){const _0x1710c7=_0x5d956d[0x0]['getJoined'](_0x756507);if(_0x1710c7){_0x5d956d[0x0]=_0x1710c7;continue;}}_0x5d956d['push'](_0x756507);}_0x33bbc5['push']([_0x38790d['view'],_0x5d956d]);}return _0x33bbc5;}),this['listenTo'](_0x33e9ac,'suggestionLoaded',(_0x527276,_0x46c3aa)=>{this['listenTo'](_0x46c3aa,'change:previous',(_0x3a1ba7,_0x172e7a,_0x78264d,_0x2cdbf9)=>{_0x46c3aa['isInContent']&&(null==_0x78264d?(this['_updateController'](_0x2cdbf9['head']),this['_handleSuggestionControllerDelayed'](_0x46c3aa,!0x1)):(this['_updateController'](_0x78264d['head']),null==_0x2cdbf9&&this['_handleSuggestionControllerDelayed'](_0x46c3aa,!0x0)));}),null!==_0x46c3aa['previous']?this['_updateController'](_0x46c3aa['head']):this['_handleSuggestionControllerDelayed'](_0x46c3aa,!0x1);}),this['listenTo'](_0x33e9ac,'suggestionUnloaded',(_0x34b6c4,_0x3bfd5b,_0x94eae4)=>{this['stopListening'](_0x3bfd5b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3bfd5b),this['_suggestionToController']['has'](_0x3bfd5b)&&this['_destroyController'](_0x3bfd5b),_0x94eae4&&this['_updateController'](_0x94eae4['head']);}),this['listenTo'](_0x33e9ac,'suggestionChanged',(_0x4acf11,_0x4d2dd4)=>{this['_updateController'](_0x4d2dd4);}),this['listenTo'](_0x598a79,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x454e3e,'addComment',(_0x180150,{threadId:_0x416531,isFromAdapter:_0x37d699})=>{if(_0x37d699||!_0x33e9ac['hasSuggestion'](_0x416531))return;const _0x974891=_0x33e9ac['getSuggestion'](_0x416531);this['_suggestionToController']['get'](_0x974891)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3b6c88=this['editor']['plugins']['get']('Annotations'),_0x415c80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x285586=Array['from'](_0x3b6c88['activeAnnotations'],_0x2e24d9=>_0x2e24d9['innerView'])['filter'](_0x2c4020=>this['_viewToController']['has'](_0x2c4020)),_0x1a75ca=[];for(const _0x577d05 of _0x285586){const _0x5ce952=this['_viewToController']['get'](_0x577d05)['model']['getAllAdjacentSuggestions']();_0x1a75ca['push'](..._0x5ce952['reduce']((_0x4932c4,_0x4309ff)=>[..._0x4932c4,..._0x4309ff['getMarkerNames']()],[]));}_0x415c80['activeMarkers']=_0x1a75ca;}['_addUIComponentsToFactory'](){const _0x18ebf3=this['editor'],_0x1a1be3=_0x18ebf3['locale'],_0x9d824a=o(_0x1a1be3,'Track\x20changes'),_0x1160f8=new Wt([{'type':'switchbutton','model':new _0x2a2d89({'withText':!0x0,'isToggleable':!0x0,'label':_0x9d824a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2a2d89({'withText':!0x0,'label':o(_0x1a1be3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a2d89({'withText':!0x0,'label':o(_0x1a1be3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a2d89({'withText':!0x0,'label':o(_0x1a1be3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a2d89({'withText':!0x0,'label':o(_0x1a1be3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x17d6e7 of _0x1160f8)if(me(_0x17d6e7)){const _0x5c186b=_0x18ebf3['commands']['get'](_0x17d6e7['model']['commandName']);_0x17d6e7['model']['bind']('isOn','isEnabled')['to'](_0x5c186b,'value','isEnabled');}_0x18ebf3['ui']['componentFactory']['add']('trackChanges',_0x20caaa=>this['_createToolbarButton'](_0x20caaa,_0x1160f8,_0x9d824a)),_0x18ebf3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13ad50=>this['_createMenuBarMenu'](_0x13ad50,_0x1160f8,_0x9d824a));}['_createToolbarButton'](_0x330ec8,_0xc53695,_0x2ed9f9){const _0x2e8bdd=Qt(_0x330ec8,_0x275965),_0xc5f878=this['editor']['commands']['get']('trackChanges');_0x2e8bdd['buttonView']['set']({'tooltip':_0x2ed9f9,'label':_0x2ed9f9,'icon':he}),_0x2e8bdd['buttonView']['bind']('isOn')['to'](_0xc5f878,'value'),_0x2e8bdd['buttonView']['on']('execute',()=>{_0xc5f878['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2e8bdd,_0xc53695,{'role':'menu'});const _0xdbe8a3=[];for(const _0x328249 of _0xc53695)me(_0x328249)&&_0xdbe8a3['push'](this['editor']['commands']['get'](_0x328249['model']['commandName']));const _0x1420b9=_0x2e8bdd['buttonView'];return _0x1420b9['actionView']['unbind']('isEnabled'),_0x1420b9['arrowView']['unbind']('isEnabled'),_0x1420b9['actionView']['bind']('isEnabled')['to'](_0xc5f878,'isEnabled'),_0x1420b9['arrowView']['bind']('isEnabled')['toMany'](_0xdbe8a3,'isEnabled',(..._0x3ffbfa)=>_0x3ffbfa['some'](_0x19da00=>_0x19da00)),_0x2e8bdd['on']('execute',_0x1e99eb=>{this['editor']['execute'](_0x1e99eb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e8bdd;}['_createMenuBarMenu'](_0x48d8b1,_0x47dc66,_0x2a9f26){const _0x1e6ec6=new Yt(_0x48d8b1),_0x330cad=this['editor']['commands']['get']('trackChanges');_0x1e6ec6['buttonView']['set']({'label':_0x2a9f26,'icon':he});const _0x376fa0=new Zt(_0x48d8b1);for(const _0x1654c3 of _0x47dc66){if('separator'==_0x1654c3['type']){_0x376fa0['items']['add'](new Xt(_0x48d8b1));continue;}const _0x4d32f3=new te(_0x48d8b1,_0x1e6ec6),_0x59d512=new _0x3e877e(_0x48d8b1),_0x1260c0=_0x1654c3['model'];_0x59d512['bind'](...Object['keys'](_0x1260c0))['to'](_0x1260c0),_0x59d512['delegate']('execute')['to'](_0x1e6ec6),_0x59d512['on']('execute',()=>{this['editor']['execute'](_0x1260c0['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d32f3['children']['add'](_0x59d512),_0x376fa0['items']['add'](_0x4d32f3);}return _0x1e6ec6['bind']('isEnabled')['to'](_0x330cad,'isEnabled'),_0x1e6ec6['panelView']['children']['add'](_0x376fa0),_0x1e6ec6;}['_initializeController'](_0x18a2d1){const _0x672dd0=this['editor'],_0x3569be=_0x672dd0['config'],_0x5762e5=_0x672dd0['plugins']['get']('Annotations'),_0x4faf07=_0x672dd0['plugins']['get']('CommentsRepository'),_0x3add3e=_0x672dd0['plugins']['get']('EditorAnnotations'),_0x12c4f2=_0x672dd0['plugins']['get'](_0x41b53c)['me'],_0x5e4262=_0x3569be['get']('trackChanges')['SuggestionThreadView'],_0x456279=_0x3569be['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3c7241,CommentThreadInputView:_0x4882c4}=_0x672dd0['plugins']['get']('CommentsUI');let _0x57f942,_0x2cc338;this['_annotationViews']['has'](_0x18a2d1['id'])?(_0x2cc338=this['_annotationViews']['get'](_0x18a2d1['id']),_0x57f942=_0x2cc338['mainView']):(_0x57f942=new _0x5e4262(_0x672dd0['locale'],_0x18a2d1,_0x12c4f2,{'disableComments':this['_disableComments'],'editorConfig':_0x3569be['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3569be['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3569be['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3569be['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fcad3(_0x3569be['get']('locale')),'CommentView':_0x3569be['get']('comments')['CommentView'],'CommentsListView':_0x3c7241,'CommentThreadInputView':_0x4882c4,'SuggestionView':_0x456279}),_0x57f942['suggestionView']['acceptButton']['on']('execute',()=>{_0x672dd0['editing']['view']['focus']();}),_0x57f942['suggestionView']['discardButton']['on']('execute',()=>{_0x672dd0['editing']['view']['focus']();}),_0x2cc338=_0x5762e5['createAnnotationView'](this['editor']['locale'],_0x57f942),_0x2cc338['bind']('isDirty')['to'](_0x57f942,'isDirty'),_0x2cc338['bind']('length')['to'](_0x57f942),_0x2cc338['bind']('type')['to'](_0x57f942,'type',_0x4d6be8=>'suggestion-'+_0x4d6be8),this['listenTo'](_0x57f942,'escape',()=>{_0x672dd0['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x18a2d1['id'],_0x2cc338));const _0xe6fde8=_0x4faf07['createCommentThreadController'](_0x18a2d1['commentThread'],_0x57f942),_0x2a96a=new ae(_0x672dd0,_0x18a2d1,_0x57f942,_0xe6fde8),_0x598d48=_0x18a2d1['getAllAdjacentSuggestions']()['filter'](_0x2dcca1=>_0x2dcca1['isInContent']);_0x57f942['descriptionParts']=_0x672dd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x598d48),this['_suggestionToController']['set'](_0x18a2d1,_0x2a96a),this['_viewToController']['set'](_0x57f942,_0x2a96a);const _0x1db950=_0x5762e5['createAnnotation']({'view':_0x2cc338,'target':()=>{const _0x4e2220=[],_0x32e169=_0x18a2d1['getAllAdjacentSuggestions']()['filter'](_0x32ffdd=>_0x32ffdd['isInContent']);for(const _0x329e2f of _0x32e169)_0x4e2220['push'](..._0x329e2f['getMarkers']());return _0x26aca0(_0x672dd0['editing'],_0x4e2220);},'type':()=>'suggestion-'+_0x2a96a['view']['type']});_0x4faf07['_bindAnnotationToEditors'](_0x57f942,_0x1db950),_0x5762e5['add'](_0x1db950),_0x3add3e['registerAnnotation'](_0x1db950);}['_destroyController'](_0x4d6d63){const _0x20d7e8=this['editor']['plugins']['get']('CommentsRepository'),_0x4cfa46=this['editor']['plugins']['get']('Annotations'),_0x1b85be=this['_suggestionToController']['get'](_0x4d6d63),_0x3b227e=_0x1b85be['view'],_0x2303c6=_0x4cfa46['getByInnerView'](_0x3b227e);_0x20d7e8['_unbindEditors'](_0x3b227e),_0x2303c6&&_0x4cfa46['remove'](_0x2303c6),this['_suggestionToController']['delete'](_0x4d6d63),this['_viewToController']['delete'](_0x3b227e),_0x1b85be['destroy']();}['_updateController'](_0x4efbc2){if(!_0x4efbc2['isInContent']||!this['_suggestionToController']['has'](_0x4efbc2))return;const _0x41e189=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aa5b8=this['_suggestionToController']['get'](_0x4efbc2),_0x4dcadb=_0x4efbc2['getAllAdjacentSuggestions']();_0x5aa5b8['view']['descriptionParts']=_0x41e189['descriptionFactory']['getDescriptions'](_0x4dcadb);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x2262d2,(_0x3072c,_0x50a370)=>{const _0x79f3a5=this['editor']['plugins']['get'](k),_0x2ef0fc=this['editor']['plugins']['get'](p);if(!_0x2ef0fc['activeMarkers']['length'])return;const {id:_0x2a64ae}=_0x2ef0fc['_splitMarkerName'](_0x2ef0fc['activeMarkers'][0x0]),_0x100508=_0x79f3a5['getSuggestion'](_0x2a64ae);_0x100508&&(this['_suggestionToController']['get'](_0x100508)['view']['focus'](),_0x50a370());});}['destroy'](){for(const _0x2a8fff of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a8fff);for(const _0x118ecb of this['_annotationViews']['values']())_0x118ecb['mainView']['destroy']();super['destroy']();}}function me(_0x4a310a){return'model'in _0x4a310a;}class k extends _0x1349dc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x264a28){this['editor']['plugins']['get'](p)['adapter']=_0x264a28;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3f3e8d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3f3e8d);}['getSuggestions']({skipNotAttached:_0x357f9f=!0x1,toJSON:_0x11b7aa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x357f9f,'toJSON':_0x11b7aa});}['getSuggestion'](_0x53e9ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53e9ce);}}const T=['Pagination'];class P extends _0x1349dc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x211bdd=this['editor'];if(_0x211bdd['config']['define']('trackChangesData.editorCreator',_0x9b128f=>{const _0x1a3be8=_0x211bdd['model']['document']['getRootNames']()['reduce']((_0x218258,_0x1022ef)=>(_0x218258[_0x1022ef]='',_0x218258),{});return _0x211bdd['constructor']['create'](_0x1a3be8,_0x9b128f);}),'function'!=typeof _0x211bdd['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b5a7f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x574f74){return N(this['editor'],!0x0,_0x574f74);}['getDataWithDiscardedSuggestions'](_0x3ca298){return N(this['editor'],!0x1,_0x3ca298);}}class D extends _0x1349dc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2f058e){super(_0x2f058e),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(_0x4895f6){return void 0x0!==_0x4895f6['getRootsAttributes'];}async function N(_0x58800b,_0x2ac600,_0x31d7a0){const _0x551bb0=_0x1593cf(_0x58800b,T);_0x551bb0['plugins']['push'](p,D),_0x551bb0['rootsAttributes']=v(_0x58800b)?_0x58800b['getRootsAttributes']():void 0x0;const _0x28cab2=document['createDocumentFragment'](),_0x12e984=_0x58800b['config']['get']('trackChangesData')['editorCreator'],_0x55852a=await _0x12e984(_0x551bb0,()=>function(_0xd3eef3){const _0x26f9dd=document['createElement']('div');return _0xd3eef3['appendChild'](_0x26f9dd),_0x26f9dd;}(_0x28cab2));!function(_0x2564ea,_0x190005){const _0x15382f=_0x2564ea['model']['document']['getRootNames']()['reduce']((_0x59a74b,_0x3d1397)=>(_0x59a74b[_0x3d1397]=_0x2564ea['data']['get']({'rootName':_0x3d1397}),_0x59a74b),{}),_0x23353f=_0x2564ea['plugins']['get']('Users')['users']['map'](_0x3ddf07=>({'id':_0x3ddf07['id'],'name':_0x3ddf07['name']})),_0x3bef15=_0x2564ea['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21ad7e=_0x2564ea['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x213ff8=_0x190005['plugins']['get']('Users'),_0x253d7b=_0x190005['plugins']['get']('TrackChangesEditing'),_0x412d4c=_0x190005['plugins']['get']('CommentsRepository');for(const _0x39b802 of _0x412d4c['getCommentThreads']())_0x39b802['remove']();for(const _0x321f50 of _0x23353f)_0x213ff8['getUser'](_0x321f50['id'])||_0x213ff8['addUser'](_0x321f50);_0x213ff8['me']||_0x213ff8['useAnonymousUser']();for(const _0x4fe07f of _0x21ad7e)_0x412d4c['addCommentThread'](_0x4fe07f);for(const _0x1e510f of _0x3bef15)_0x253d7b['addSuggestionData'](_0x1e510f);_0x190005['data']['set'](_0x15382f);}(_0x58800b,_0x55852a),_0x55852a['execute'](_0x2ac600?'acceptAllSuggestions':'discardAllSuggestions');const _0xbab21=v(_0x55852a)?_0x55852a['getFullData'](_0x31d7a0):_0x55852a['data']['get'](_0x31d7a0);return await _0x55852a['destroy'](),_0xbab21;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|