@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240602.0 → 0.0.0-nightly-20240603.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x37fd29(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1158b4,_0x230df4){super(),this['id']=_0x230df4['id'],this['type']=_0x230df4['type'],this['subType']=_0x230df4['subType']||null,this['author']=_0x230df4['author'],this['creator']=_0x230df4['creator']||_0x230df4['author'],this['isExternal']=Boolean(_0x230df4['attributes']&&_0x230df4['attributes']['@external']),this['data']=null,this['_model']=_0x1158b4,this['_onAccept']=_0x230df4['onAccept'],this['_onDiscard']=_0x230df4['onDiscard'],this['_onAttributesChange']=_0x230df4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x230df4['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4b5a25=this;for(;_0x4b5a25['previous'];)_0x4b5a25=_0x4b5a25['previous'];return _0x4b5a25;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2bed7d){this['_markerNames']['add'](_0x2bed7d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1400cc=>this['_model']['markers']['get'](_0x1400cc))['filter'](_0x59be03=>_0x59be03);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x19a9fe=>{for(const _0x2af0f2 of this['getMarkers']())_0x19a9fe['removeMarker'](_0x2af0f2);}),this['_markerNames']['clear']();}['removeMarker'](_0x583a79){this['_model']['change'](_0x46b460=>{_0x46b460['removeMarker'](_0x583a79);}),this['_markerNames']['delete'](_0x583a79);}['addRange'](_0x329d05){const _0x49be99='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x49be99),this['_model']['change'](_0x31fce2=>{_0x31fce2['addMarker'](_0x49be99,{'range':_0x329d05,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52d6b4){for(const _0xc70bee of this['getRanges']())if(_0xc70bee['isIntersecting'](_0x52d6b4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x527d91=>_0x527d91['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4aa702,_0x12f2c2)=>[..._0x4aa702,..._0x12f2c2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x114b27=this['getRanges']();if(0x1!=_0x114b27['length'])return null;const _0x10c44e=_0x114b27[0x0],_0x46b523=_0x10c44e['start']['nodeAfter'],_0x1e2dda=_0x10c44e['end']['nodeBefore'];return _0x46b523 instanceof _0x3da1cd?_0x46b523!=_0x1e2dda?null:_0x46b523:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x5c16ff=[];let _0x3cd64e=this['head'];for(;_0x3cd64e;)_0x5c16ff['push'](_0x3cd64e),_0x3cd64e=_0x3cd64e['next'];return _0x5c16ff;}['setAttribute'](_0xe19fd,_0xbd2bcb){const _0x3ea691=_0x273119(this['attributes']);_0xadcadf(_0x3ea691,_0xe19fd,_0xbd2bcb),_0x763405(_0x3ea691,this['attributes'])||(this['attributes']=_0x3ea691,this['_onAttributesChange'](_0x3ea691));}['removeAttribute'](_0x46ee02){const _0x4daa38=_0x273119(this['attributes']);_0x4daad1(_0x4daa38,_0x46ee02),_0x763405(_0x4daa38,this['attributes'])||(this['attributes']=_0x4daa38,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x48fd30()['substr'](0x1,0x5);}}function o(_0x507c1d,_0x8b7449,_0x4c5175){const t=_0x507c1d['t'];switch(_0x8b7449){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4c5175);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c5175);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c5175);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c5175);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c5175);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x4c5175);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c5175);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c5175);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c5175);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c5175);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c5175);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c5175);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c5175);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c5175);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c5175);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c5175);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c5175);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c5175);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c5175);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c5175);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c5175);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c5175);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c5175);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x4c5175);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c5175);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c5175);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c5175);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c5175);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c5175);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4c5175);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c5175);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c5175);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c5175);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c5175);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4c5175);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c5175);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4c5175);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4c5175);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c5175);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x4c5175);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c5175);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x4c5175);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c5175);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c5175);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c5175);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c5175);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x8b7449;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21324c,_0x33ce47){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21324c,this['_locale']=_0x33ce47;}['getDescriptions'](_0x4a5c59){const _0x26aa81=[],_0xdf6d84=new Set(),_0x54205d=new Set();for(let _0x31f7f2=0x0;_0x31f7f2<_0x4a5c59['length'];_0x31f7f2++){const _0x2cd844=_0x4a5c59[_0x31f7f2];if(!_0x2cd844['isInContent'])continue;const _0x5eba42=this['_handleCustomCallbackDescription'](_0x2cd844);if(_0x5eba42){if(null!=_0x2cd844['subType']){if(_0xdf6d84['has'](_0x2cd844['subType']))continue;_0xdf6d84['add'](_0x2cd844['subType']);}_0x26aa81['push'](_0x5eba42);}else{if('attribute'!=_0x2cd844['type'])'insertion'!=_0x2cd844['type']&&'deletion'!=_0x2cd844['type']||this['_handleInsertRemoveSuggestionDescription'](_0x26aa81,_0x2cd844,_0x4a5c59[_0x31f7f2+0x1]);else{const _0x52ed85=_0x2cd844['data']['key'];if(_0x54205d['has'](_0x52ed85))continue;_0x54205d['add'](_0x2cd844['data']['key']),_0x52ed85==m?this['_handleRenameSuggestionDescription'](_0x26aa81,_0x2cd844):this['_handleAttributeSuggestionDescription'](_0x26aa81,_0x2cd844);}}}return this['_resolveDescriptionItems'](_0x26aa81);}['registerDescriptionCallback'](_0x1a3107){this['_customCallbacks']['push'](_0x1a3107);}['registerElementLabel'](_0x430a7b,_0x3f7e55,_0x436033=_0x16f094['normal']){'function'==typeof _0x430a7b?_0x1621eb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x430a7b,'label':_0x3f7e55,'priority':_0x436033}):this['_itemLabels']['set'](_0x430a7b,_0x3f7e55);}['registerAttributeLabel'](_0x5ab193,_0x25db6b){this['_attributeLabels']['set'](_0x5ab193,_0x25db6b);}['getItemLabel'](_0x46ab0c,_0x561121=0x1){let _0x1a6d52;for(const _0x53e3b9 of this['_itemLabelsCallbacks'])if(_0x53e3b9['matchingCallback'](_0x46ab0c)){_0x1a6d52=_0x53e3b9['label'];break;}return _0x1a6d52||(_0x1a6d52=this['_itemLabels']['get'](_0x46ab0c['name'])),_0x1a6d52?_0x1a6d52(_0x561121):0x1!==_0x561121?_0x561121+'\x20'+_0x46ab0c['name']+'s':''+_0x46ab0c['name'];}['_addDescriptionItems'](_0x364a09,_0x267fdd){const _0x964d0c=_0x267fdd['getFirstRange']()['getWalker'](),_0x5c4391='insertion'==_0x267fdd['type']?'add':'remove';for(const _0x23eb15 of _0x964d0c){const _0x56350d=_0x23eb15['item'],_0x3455c9=_0x364a09[_0x364a09['length']-0x1];if(_0x56350d['is']('$textProxy'))_0x3455c9&&_0x3455c9['type']['indexOf']('Container')>-0x1&&_0x364a09['pop'](),_0x3455c9&&'text'==_0x3455c9['type']?_0x3455c9[_0x5c4391]+=_0x56350d['data']:_0x364a09['push']({'type':'text','add':'add'==_0x5c4391?_0x56350d['data']:'','remove':'remove'==_0x5c4391?_0x56350d['data']:''});else{if(this['_schema']['isObject'](_0x56350d)){const _0x372d79=_0x56350d;if(_0x3455c9&&_0x3455c9['type']['indexOf']('Container')>-0x1&&_0x364a09['pop'](),'elementEnd'==_0x23eb15['type'])continue;_0x3455c9&&_0x3455c9['type']==_0x5c4391+'Object'&&_0x3455c9['element']['name']==_0x372d79['name']?_0x3455c9['quantity']++:_0x364a09['push']({'type':_0x5c4391+'Object','element':_0x372d79,'quantity':0x1}),_0x964d0c['skip'](_0xcc9eb9=>!('elementEnd'==_0xcc9eb9['type']&&_0xcc9eb9['item']==_0x56350d));}else{if(this['_schema']['checkChild'](_0x56350d,'$text')||_0x56350d['is']('element','softBreak')){const _0x5d1dc5=_0x56350d;if('add'==_0x5c4391&&'elementStart'==_0x23eb15['type']||'remove'==_0x5c4391&&'elementEnd'==_0x23eb15['type'])continue;if(_0x3455c9&&-0x1==_0x3455c9['type']['indexOf']('Container')){'text'==_0x3455c9['type']&&(_0x3455c9[_0x5c4391]+='\x0a');continue;}let _0x292ad4;if(_0x292ad4='add'==_0x5c4391?_0x5d1dc5['nextSibling']&&!this['_schema']['isObject'](_0x5d1dc5['nextSibling'])?_0x5d1dc5['nextSibling']:null:_0x5d1dc5['previousSibling']&&!this['_schema']['isObject'](_0x5d1dc5['previousSibling'])?_0x5d1dc5['previousSibling']:null,_0x5d1dc5['isEmpty']||_0x292ad4&&_0x292ad4['isEmpty']){const _0x74e922=_0x292ad4&&_0x292ad4['isEmpty']?_0x292ad4:_0x5d1dc5;_0x3455c9&&_0x3455c9['type']==_0x5c4391+'EmptyContainer'&&_0x3455c9['element']['name']==_0x74e922['name']?_0x3455c9['quantity']++:_0x364a09['push']({'type':_0x5c4391+'EmptyContainer','element':_0x74e922,'quantity':0x1});}else _0x364a09['push']({'type':_0x5c4391+'Container','element':_0x5d1dc5});}}}}}['_resolveDescriptionItems'](_0x5f4a40){const _0x31719e=this['_locale'],_0x203dbb=[],_0x1e1bec=[],_0xf5e85c=[];for(const _0x455bd4 of _0x5f4a40)switch(_0x455bd4['type']){case'text':if(_0x455bd4['add']=_0x455bd4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x455bd4['remove']=_0x455bd4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x455bd4['add']&&''!=_0x455bd4['remove']){_0x203dbb['push']({'type':'replace','content':o(_0x31719e,'REPLACE_TEXT',['\x22'+_0x455bd4['remove']+'\x22','\x22'+_0x455bd4['add']+'\x22'])});continue;}if(null!=_0x455bd4['add']['match'](/^ +$/)){_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0',o(_0x31719e,'ELEMENT_SPACE',_0x455bd4['add']['length']))});continue;}if(null!=_0x455bd4['remove']['match'](/^ +$/)){_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0',o(_0x31719e,'ELEMENT_SPACE',_0x455bd4['remove']['length']))});continue;}if(''!=_0x455bd4['add']){_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0','\x22'+_0x455bd4['add']+'\x22')});continue;}_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0','\x22'+_0x455bd4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Insert:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Remove:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'addContainer':_0x203dbb['push']({'type':'insertion','content':o(_0x31719e,'*Split:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'removeContainer':_0x203dbb['push']({'type':'deletion','content':o(_0x31719e,'*Merge:*\x20%0',this['getItemLabel'](_0x455bd4['element'],_0x455bd4['quantity']))});continue;case'addFormat':_0x1e1bec['push'](_0x455bd4['key']);continue;case'removeFormat':_0xf5e85c['push'](_0x455bd4['key']);continue;default:_0x203dbb['push'](_0x455bd4);}if(_0x1e1bec['length']){const _0x36e110=_0x1e1bec['map'](_0x478d56=>this['_attributeLabels']['has'](_0x478d56)?this['_attributeLabels']['get'](_0x478d56):_0x478d56)['join'](',\x20');_0x203dbb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x36e110)});}if(_0xf5e85c['length']){const _0x138ad0=_0xf5e85c['map'](_0x39d089=>this['_attributeLabels']['has'](_0x39d089)?this['_attributeLabels']['get'](_0x39d089):_0x39d089)['join'](',\x20');_0x203dbb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x138ad0)});}return _0x203dbb;}['_handleCustomCallbackDescription'](_0x3ed3f4){for(const _0x589286 of this['_customCallbacks']){const _0x4aefc0=_0x589286(_0x3ed3f4);if(_0x4aefc0&&'type'in _0x4aefc0)return _0x4aefc0;}}['_handleAttributeSuggestionDescription'](_0xc4b32f,_0x5103c3){const _0xc223e0=_0x5103c3['data'],_0x23e5e1=void 0x0===_0xc223e0['newValue']?'removeFormat':'addFormat';_0xc4b32f['push']({'type':_0x23e5e1,'key':_0xc223e0['key']});}['_handleRenameSuggestionDescription'](_0x50026b,_0x2c188e){_0x50026b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2c188e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bdbae,_0x53fb98,_0x54aed3){if(this['_addDescriptionItems'](_0x3bdbae,_0x53fb98),_0x54aed3&&_0x54aed3['getFirstRange']()&&!_0x53fb98['getFirstRange']()['end']['isEqual'](_0x54aed3['getFirstRange']()['start'])){const _0x1dc78a=_0x3bdbae[_0x3bdbae['length']-0x1],_0x5f5711='insertion'==_0x53fb98['type']?'add':'remove';_0x1dc78a&&'text'==_0x1dc78a['type']&&(_0x1dc78a[_0x5f5711]+='\x0a');}}}class E extends _0x5297f7{['afterInit'](){const _0x4dc4ac=this['editor'],_0x1f8b0c=_0x4dc4ac['plugins']['get']('TrackChangesEditing');_0x4dc4ac['commands']['get']('showAIAssistant')&&_0x1f8b0c['enableCommand']('showAIAssistant');}}class V extends _0x5297f7{['afterInit'](){const _0x114219=this['editor'],_0x426d12=_0x114219['locale'];if(!_0x114219['plugins']['has']('AlignmentEditing'))return;const _0x3c6f1d=_0x114219['plugins']['get']('TrackChangesEditing');_0x3c6f1d['enableDefaultAttributesIntegration']('alignment'),_0x3c6f1d['registerBlockAttribute']('alignment'),_0x3c6f1d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x426d12,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4341a1=this['editor'],_0xa77386=_0x4341a1['locale'];_0x4341a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30189d=>{if('formatBlock'!=_0x30189d['type'])return;const {data:_0xa3621c}=_0x30189d;if(_0xa3621c&&'alignment'==_0xa3621c['commandName']){const _0xb70a34=_0xa3621c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa77386,'*Format:*\x20%0',function(_0x23f25e){switch(_0x23f25e){case'left':return o(_0xa77386,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa77386,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa77386,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa77386,'FORMAT_JUSTIFY_TEXT');}}(_0xb70a34))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5297f7{['afterInit'](){const _0x226864=this['editor'],_0x28b023=_0x226864['plugins']['get']('TrackChangesEditing'),_0x756bed=_0x226864['locale'];for(const _0x2f3ab8 of ti){if(!_0x226864['plugins']['has'](_0x2f3ab8))continue;const _0x89c174=_0x2f3ab8['slice'](0x0,-0x7)['toLowerCase'](),_0x393838='FORMAT_'+_0x89c174['toUpperCase']();_0x28b023['enableDefaultAttributesIntegration'](_0x89c174),_0x28b023['registerInlineAttribute'](_0x89c174),_0x28b023['descriptionFactory']['registerAttributeLabel'](_0x89c174,o(_0x756bed,_0x393838));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe61b=this['editor'],_0x5a83cf=_0x4fe61b['locale'],_0x478c71=_0x4fe61b['plugins']['get']('TrackChangesEditing');function _0x4b2a5b(_0x277a3c,_0x577d5b){_0x478c71['descriptionFactory']['registerDescriptionCallback'](_0x115b28=>{if('formatInline'!=_0x115b28['type'])return;const {data:_0x64033c}=_0x115b28;return _0x64033c&&_0x64033c['commandName']===_0x277a3c?_0x64033c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a83cf,'*Format:*\x20%0',_0x577d5b)}:{'type':'format','content':o(_0x5a83cf,'*Remove\x20format:*\x20%0',_0x577d5b)}:void 0x0;});}_0x4b2a5b('bold',o(_0x5a83cf,'FORMAT_BOLD')),_0x4b2a5b('italic',o(_0x5a83cf,'FORMAT_ITALIC')),_0x4b2a5b('underline',o(_0x5a83cf,'FORMAT_UNDERLINE')),_0x4b2a5b('code',o(_0x5a83cf,'FORMAT_CODE')),_0x4b2a5b('strikethrough',o(_0x5a83cf,'FORMAT_STRIKETHROUGH')),_0x4b2a5b('subscript',o(_0x5a83cf,'FORMAT_SUBSCRIPT')),_0x4b2a5b('superscript',o(_0x5a83cf,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5297f7{['afterInit'](){const _0x4e65de=this['editor'],_0x56d97a=_0x4e65de['locale'];if(!_0x4e65de['plugins']['has']('BlockQuoteEditing'))return;const _0x2a8418=_0x4e65de['plugins']['get']('TrackChangesEditing'),_0x231db4=this['editor']['commands']['get']('blockQuote');_0x2a8418['enableCommand']('blockQuote',(_0x3db35f,_0x474639={})=>{const _0x5b2226=this['editor']['model']['document']['selection'],_0x181a39=_0x474639&&void 0x0!==_0x474639['forceValue']?_0x474639['forceValue']:!_0x231db4['value'];let _0x358040=[];if(_0x181a39){const _0x121e46=Array['from'](_0x5b2226['getSelectedBlocks']())['filter'](_0x36b4e3=>oo(_0x36b4e3)||function(_0x51d8c2,_0x530d42){const _0x4d23da=_0x530d42['checkChild'](_0x51d8c2['parent'],'blockQuote'),_0x1d8ac4=_0x530d42['checkChild'](['$root','blockQuote'],_0x51d8c2);return _0x4d23da&&_0x1d8ac4;}(_0x36b4e3,this['editor']['model']['schema']));_0x358040=to(_0x121e46,_0x4e65de['model']);}else{const _0x14439c=Array['from'](_0x5b2226['getSelectedBlocks']())['filter'](_0x3b26a8=>oo(_0x3b26a8));_0x358040=to(_0x14439c,_0x4e65de['model']);}_0x4e65de['model']['change'](()=>{for(const _0x11c254 of _0x358040)_0x2a8418['markBlockFormat'](_0x11c254,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x181a39}]});});}),_0x2a8418['descriptionFactory']['registerDescriptionCallback'](_0x4e913f=>{const {data:_0x2b4a6d}=_0x4e913f;if(_0x2b4a6d&&'blockQuote'==_0x2b4a6d['commandName']){const _0x2f1d10=o(_0x56d97a,'ELEMENT_BLOCK_QUOTE');return _0x2b4a6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56d97a,'*Set\x20format:*\x20%0',_0x2f1d10)}:{'type':'format','content':o(_0x56d97a,'*Remove\x20format:*\x20%0',_0x2f1d10)};}});}}function oo(_0x1c4a22){return'blockQuote'==_0x1c4a22['parent']['name'];}class G extends _0x5297f7{['afterInit'](){const _0x279cdc=this['editor'];_0x279cdc['plugins']['has']('CaseChange')&&(_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x279cdc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5297f7{['afterInit'](){const _0x60619d=this['editor'];_0x60619d['commands']['get']('ckbox')&&_0x60619d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5297f7{['afterInit'](){const _0x4db8d9=this['editor'];if(!_0x4db8d9['plugins']['has']('CodeBlock'))return;const _0x4a4e3f=_0x4db8d9['plugins']['get']('TrackChangesEditing'),_0x27853a=_0x4db8d9['locale'],_0x36cbad=_0x4db8d9['config']['get']('codeBlock')['languages'],_0x2458de=_0x4db8d9['commands']['get']('codeBlock');_0x4a4e3f['enableCommand']('indentCodeBlock'),_0x4a4e3f['enableCommand']('outdentCodeBlock'),_0x4a4e3f['enableCommand']('codeBlock',(_0x19a2f7,_0x298ddb={})=>{const _0x2dae00=_0x4db8d9['model'],_0x2c2493=_0x4db8d9['model']['document']['selection'],_0x27ac55=_0x298ddb&&void 0x0!==_0x298ddb['forceValue']?_0x298ddb['forceValue']:!_0x2458de['value'];let _0x3dbc07;_0x298ddb['language']||(_0x298ddb['language']=_0x36cbad[0x0]['language']),_0x3dbc07=_0x27ac55?Array['from'](_0x2c2493['getSelectedBlocks']())['filter'](_0x3863ff=>eo(_0x3863ff)||function(_0x2a84f9,_0x135a44){if(_0x2a84f9['is']('rootElement')||_0x135a44['isLimit'](_0x2a84f9))return!0x1;return _0x135a44['checkChild'](_0x2a84f9['parent'],'codeBlock');}(_0x3863ff,_0x2dae00['schema'])):Array['from'](_0x2c2493['getSelectedBlocks']())['filter'](_0x5a4179=>eo(_0x5a4179));const _0x1c7cc5=to(_0x3dbc07,_0x2dae00);_0x2dae00['change'](()=>{for(const _0x1f5eec of _0x1c7cc5)_0x4a4e3f['markBlockFormat'](_0x1f5eec,{'commandName':'codeBlock','commandParams':[{..._0x298ddb,'forceValue':_0x27ac55}],'formatGroupId':'blockName'});});}),(_0x4a4e3f['descriptionFactory']['registerElementLabel']('codeBlock',_0x49f60e=>o(_0x27853a,'ELEMENT_CODE_BLOCK',_0x49f60e)),_0x4a4e3f['descriptionFactory']['registerDescriptionCallback'](_0x93b827=>{if('formatBlock'!=_0x93b827['type'])return;const _0x19f834=_0x27853a['t'],{data:_0x232ee1}=_0x93b827;if(!_0x232ee1||'codeBlock'!=_0x232ee1['commandName'])return;const _0x2a3b2a=_0x232ee1['commandParams'][0x0]['language'],_0x371bbe=_0x19f834(_0x36cbad['find'](_0x512568=>_0x512568['language']===_0x2a3b2a)['label'])['toLowerCase']();return _0x232ee1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27853a,'*Set\x20format:*\x20%0',o(_0x27853a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x371bbe+')')}:{'type':'format','content':o(_0x27853a,'*Remove\x20format:*\x20%0',o(_0x27853a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x233957){return'codeBlock'==_0x233957['name'];}class H extends _0x5297f7{['afterInit'](){const _0x3f6dfd=this['editor'];if(!_0x3f6dfd['plugins']['has']('CommentsEditing'))return;_0x3f6dfd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x374345,_0x1e16cf,_0x4c5432){const _0x15e1e2=[];for(const _0x32c0b9 of _0x1e16cf['getItems']())_0x32c0b9['hasAttribute'](_0x374345)&&_0x15e1e2['push'](_0x4c5432['createRangeOn'](_0x32c0b9));return _0x15e1e2;}function _e(_0x238259,_0xfb629,{showActiveMarker:_0x584842=!0x0}={}){const _0x357a1f=_0x238259['plugins']['get']('TrackChangesEditing');return(_0x23b03f,_0x153c4c,_0x4d5c25)=>{if(!_0x4d5c25['consumable']['test'](_0x153c4c['markerRange'],_0x23b03f['name']))return;const _0x262b22=_0x153c4c['markerRange']['getWalker'](),_0x3423f7=_0x153c4c['markerRange']['start'],_0x4bb8a8=_0x238259['model']['schema'];let _0x8d239d=null,_0x28ce21=null,_0x415064=!0x1,_0x28c5db=!0x1;for(const _0x53d15d of _0x262b22){const _0x37f491=_0x53d15d['item'];_0x415064=_0x415064||_0x4bb8a8['isContent'](_0x37f491);const _0x5d0aa6=_0x4d5c25['mapper']['toViewElement'](_0x37f491);if(_0x5d0aa6&&_0x5d0aa6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53d15d['type']&&(_0x4bb8a8['isBlock'](_0x37f491)&&!_0x4bb8a8['isLimit'](_0x37f491)&&(_0x37f491['nextSibling']||_0x3423f7['isAtEnd']?_0x8d239d&&_0x8d239d['parent']==_0x37f491||(_0x8d239d=_0x37f491,_0x8004e5(_0x53d15d['previousPosition']),_0x28c5db=!0x0):_0x28ce21=_0x28ce21||_0x53d15d['previousPosition']));}function _0x8004e5(_0x4cfd65){const _0x7c6915=_0x4d5c25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfb629}),_0x2604ff=_0x4d5c25['mapper']['toViewPosition'](_0x4cfd65);_0x584842&&_0x357a1f['activeMarkers']['includes'](_0x153c4c['markerName'])&&_0x4d5c25['writer']['addClass']('ck-suggestion-marker--active',_0x7c6915),_0x4d5c25['writer']['insert'](_0x2604ff,_0x7c6915),_0x4d5c25['mapper']['bindElementToMarker'](_0x7c6915,_0x153c4c['markerName']);}_0x415064||_0x28c5db||!_0x28ce21||_0x8004e5(_0x28ce21);};}class q extends _0x5297f7{static get['requires'](){return[_0x113833];}['init'](){const _0x8a4d22=this['editor'],_0x2a70ef=_0x8a4d22['plugins']['get']('TrackChangesEditing');_0x2a70ef['enableCommand']('delete');const _0x1e3c34=_0x8a4d22['commands']['get']('deleteForward');_0x2a70ef['enableCommand']('deleteForward',(_0x5924e1,_0x2f8d3a={})=>{const _0x126efb=_0x8a4d22['model']['createSelection'](_0x8a4d22['model']['document']['selection']);_0x126efb['isCollapsed']&&_0x8a4d22['model']['modifySelection'](_0x126efb,{'direction':'forward','unit':_0x2f8d3a['unit']});const _0x87fbf8=_0x126efb['getFirstRange'](),_0x2e03ca=_0x16e800['fromRange'](_0x87fbf8);let _0x27e0b8;_0x5924e1(_0x2f8d3a),_0x27e0b8='$graveyard'==_0x2e03ca['root']['rootName']?_0x8a4d22['model']['createRange'](_0x87fbf8['start']):_0x8a4d22['model']['createRange'](_0x2e03ca['start'],_0x2e03ca['end']),_0x2e03ca['detach'](),_0x8a4d22['model']['enqueueChange'](_0x1e3c34['buffer']['batch'],_0x2d715f=>{_0x1e3c34['buffer']['lock'](),_0x2d715f['setSelection'](_0x2d715f['createRange'](_0x27e0b8['end'])),_0x1e3c34['buffer']['unlock']();});}),_0x8a4d22['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x8a4d22,'merge'),{'priority':'high'}),_0x8a4d22['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f2042,_0x295a4b,_0x2f6c04)=>{_0x2f6c04['options']['showSuggestionHighlights']&&_e(_0x8a4d22,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f2042,_0x295a4b,_0x2f6c04);},{'priority':'high'}),_0x8a4d22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e2812,_0x5623a9,_0x3b9caf)=>{const _0x4b8370=_0x3b9caf['mapper']['markerNameToElements'](_0x5623a9['markerName']);if(_0x4b8370){for(const _0x536b82 of _0x4b8370)_0x536b82['is']('uiElement')&&(_0x3b9caf['mapper']['unbindElementFromMarkerName'](_0x536b82,_0x5623a9['markerName']),_0x3b9caf['writer']['remove'](_0x536b82));}},{'priority':'high'});}}class z extends _0x5297f7{['afterInit'](){const _0x4a5082=this['editor'];if(!_0x4a5082['plugins']['has']('ListEditing'))return;const _0x2c4968=_0x4a5082['locale'],_0x586d23=_0x4a5082['plugins']['get']('TrackChangesEditing'),_0xef0b39=_0x4a5082['plugins']['has']('TodoListEditing'),_0x157af2=!!_0x4a5082['config']['get']('list.multiBlock');function _0x524c28(_0x3e64c0){return{'type':'format','content':''+o(_0x2c4968,'*Set\x20format:*\x20%0',_0x3e64c0)};}function _0x22dfea(_0x3eced1){return{'type':'format','content':''+o(_0x2c4968,'*Remove\x20format:*\x20%0',_0x3eced1)};}_0x586d23['enableDefaultAttributesIntegration']('numberedList'),_0x586d23['enableDefaultAttributesIntegration']('bulletedList'),_0x586d23['enableDefaultAttributesIntegration']('customNumberedList'),_0x586d23['enableDefaultAttributesIntegration']('customBulletedList'),_0x586d23['enableDefaultAttributesIntegration']('indentList'),_0x586d23['enableDefaultAttributesIntegration']('outdentList'),_0x586d23['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x586d23['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x586d23['registerBlockAttribute']('listItemId'),_0x586d23['registerBlockAttribute']('listType'),_0x586d23['registerBlockAttribute']('listIndent'),_0x157af2&&(_0x586d23['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x586d23['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xef0b39&&(_0x586d23['enableDefaultAttributesIntegration']('todoList'),_0x586d23['enableDefaultAttributesIntegration']('checkTodoList'),_0x586d23['registerBlockAttribute']('todoListChecked'),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x48ed01=>{const {data:_0xd68141}=_0x48ed01;if(_0xd68141&&'todoListChecked'==_0xd68141['key'])return{'type':'format','content':_0xd68141['newValue']?o(_0x2c4968,'*Check\x20item*'):o(_0x2c4968,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a7808=>{if(_0x4a7808['batch']['isUndo'])return!0x1;let _0x141d6d=!0x1;const _0xbbcc16=_0x586d23['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3793e7=>'todoListChecked'===_0x586d23['_getAttributeKey'](_0x3793e7));for(const _0x5bb22d of _0xbbcc16){'todo'!=_0x5bb22d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x586d23['_findSuggestions'](_0x5bb22d['getFirstRange'](),'attribute')['find'](_0x5ebf69=>'listType'===_0x586d23['_getAttributeKey'](_0x5ebf69['suggestion']))||(_0x4a7808['removeMarker'](_0x5bb22d['getFirstMarker']()),_0x141d6d=!0x0));}return _0x141d6d;})),_0x586d23['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2c4968,'FORMAT_INDENT'));const _0x209872={'type':'format','content':''};_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x2717c0=>{const {data:_0x2a910f}=_0x2717c0;if(!_0x2a910f||'listType'!=_0x2a910f['key'])return;let _0x50771c=_0x2717c0['head'];for(;_0x50771c;){if(_0x50771c['data']&&(('listStyle'==_0x50771c['data']['key']||'listMarkerStyle'==_0x50771c['data']['key'])&&(_0x50771c['data']['newValue']&&'default'!=_0x50771c['data']['newValue']||'default'!=_0x50771c['data']['oldValue']&&!_0x2a910f['newValue'])||!_0x157af2&&_0x50771c['data']['key']==m))return _0x209872;_0x50771c=_0x50771c['next'];}if(null==_0x2a910f['newValue'])switch(_0x2a910f['oldValue']){case'bulleted':return _0x22dfea(o(_0x2c4968,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22dfea(o(_0x2c4968,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22dfea(o(_0x2c4968,'ELEMENT_TODO_LIST'));}switch(_0x2a910f['newValue']){case'bulleted':return _0x524c28(o(_0x2c4968,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x524c28(o(_0x2c4968,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x524c28(o(_0x2c4968,'ELEMENT_TODO_LIST'));}}),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x2a1d5e=>{const {data:_0x48d051}=_0x2a1d5e;if(_0x48d051&&'listIndent'==_0x48d051['key'])return null==_0x48d051['newValue']||null==_0x48d051['oldValue']&&0x0==_0x48d051['newValue']?_0x209872:void 0x0;}),_0x586d23['descriptionFactory']['registerDescriptionCallback'](_0x39ee34=>{if('attribute'!=_0x39ee34['type'])return;const {data:_0x4f4f10}=_0x39ee34;if(!_0x4f4f10||'listItemId'!=_0x4f4f10['key'])return;const _0x3f64fa=le(_0x39ee34);return'newValue'==_0x3f64fa?{'type':'format','content':o(_0x2c4968,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f64fa?{'type':'format','content':o(_0x2c4968,'*Split:*\x20list\x20item')}:_0x209872;}),_0x4a5082['model']['document']['registerPostFixer'](_0x24e4ed=>this['listItemIdFixer'](_0x24e4ed)),_0x4a5082['model']['document']['registerPostFixer'](_0x16b955=>this['noTrackChangesFixer'](_0x16b955)),_0x4a5082['model']['document']['registerPostFixer'](_0x3cfea9=>this['assureChains'](_0x3cfea9)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x232111){if(_0x232111['batch']['isUndo']||!_0x232111['batch']['isLocal'])return!0x1;let _0x7a2a55=!0x1;const _0x3c87a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b20b7=>_0x1b20b7['data']&&'listItemId'==_0x1b20b7['data']['key'])['filter'](_0x46f109=>_0x46f109['data']['newValue']&&_0x46f109['data']['oldValue']);for(const _0x284364 of _0x3c87a2)le(_0x284364)||(_0x232111['removeMarker'](_0x284364['getFirstMarker']()),_0x7a2a55=!0x0);return _0x7a2a55;}['noTrackChangesFixer'](_0x2589a8){if(_0x2589a8['batch']['isUndo']||!_0x2589a8['batch']['isLocal'])return!0x1;const _0x53d3a9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53d3a9['trackChangesCommand']['value'])return!0x1;let _0x34c779=!0x1;const _0x5f0948=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x268467=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x166824=>'attribute'==_0x166824['type'])['filter'](_0x3a5ffd=>_0x5f0948['includes'](_0x3a5ffd['attributeKey']));if(0x0==_0x268467['length'])return _0x34c779;for(const _0x4979e2 of _0x268467){const _0x5455df=_0x53d3a9['_findSuggestions'](_0x4979e2['range'],'attribute')['filter'](_0x26ae75=>!_0x26ae75['meta']['isNextTo'])['map'](_0x248aa4=>_0x248aa4['suggestion'])['filter'](_0x2152c2=>{const _0x42cd02=_0x53d3a9['_getAttributeKey'](_0x2152c2);return _0x5f0948['includes'](_0x42cd02);});if(_0x5455df['length']){for(const _0x25d416 of _0x5455df)_0x2589a8['removeMarker'](_0x25d416['getFirstMarker']());_0x34c779=!0x0;}}return _0x34c779;}['assureChains'](_0x11029a){if(_0x11029a['batch']['isUndo']||!_0x11029a['batch']['isLocal'])return!0x1;const _0x239d4a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3db0e2=!0x1;const _0x2c24cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x39133e of _0x239d4a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4204f3=_0x239d4a['_findSuggestions'](_0x39133e['getFirstRange'](),'attribute')['map'](_0x4b83fd=>_0x4b83fd['suggestion'])['filter'](_0x49f75f=>_0x49f75f['data']&&_0x2c24cb['includes'](_0x49f75f['data']['key']));if(!_0x4204f3['length'])continue;const _0x497f1a=_0x4204f3[0x0]['head']['attributes']['groupId'];if(!_0x4204f3['every'](_0x15ac8e=>_0x15ac8e['attributes']['groupId']===_0x497f1a)){for(const _0x25cc49 of _0x4204f3)_0x2b328e(_0x25cc49,_0x497f1a)&&(_0x3db0e2=!0x0);}}return _0x3db0e2;function _0x48f639(_0x4d6849,_0x190c13){for(const _0x3e4252 of _0x239d4a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c9d1b=>'attribute'==_0x1c9d1b['type']&&_0x1c9d1b['attributes']['groupId']==_0x4d6849))_0x3e4252['setAttribute']('groupId',_0x190c13);}function _0x2b328e(_0xe8b1f4,_0x1b8a17){let _0x5d6b98=_0xe8b1f4['head'],_0x30723c=!0x1;for(;_0x5d6b98;)_0x5d6b98['attributes']['groupId']!=_0x1b8a17&&(_0x48f639(_0x5d6b98['attributes']['groupId'],_0x1b8a17),_0x5d6b98['setAttribute']('groupId',_0x1b8a17),_0x30723c=!0x0),_0x5d6b98=_0x5d6b98['next'];return _0x30723c;}}['_supportLegacySuggestions'](){const _0x5d8c53=this['editor'],_0x4f1b00=_0x5d8c53['locale'],_0x76b5fe=_0x5d8c53['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x76b5fe['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x294223,_0x25040f){const _0x341a98=[];for(let _0xccb91b of _0x294223)_0xccb91b['start']['nodeAfter']===_0xccb91b['end']['parent']&&(_0xccb91b=_0x5d8c53['model']['createRange'](_0x5d8c53['model']['createPositionAt'](_0xccb91b['start']['nodeAfter'],0x0))),_0x341a98['push'](_0xccb91b);_0x5d8c53['model']['change'](_0x355b29=>{const _0x5990ef=_0x5d8c53['model']['document']['selection'],_0x37a109=Array['from'](_0x5990ef['getRanges']())['map'](_0x27e7ad=>_0x16e800['fromRange'](_0x27e7ad));_0x355b29['setSelection'](_0x341a98),_0x5d8c53['commands']['get'](_0x25040f['commandName'])['refresh'](),_0x25040f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d8c53['execute'](_0x25040f['commandName'],..._0x25040f['commandParams']),_0x355b29['setSelection'](_0x37a109);for(const _0x17799a of _0x37a109)_0x17799a['detach']();});}),_0x76b5fe['descriptionFactory']['registerElementLabel'](function(_0x380f9b){const _0x1cd546=!_0x5d8c53['model']['schema']['isObject'](_0x380f9b),_0x468034=_0x380f9b['previousSibling'],_0x25bc0d=_0x380f9b['nextSibling'],_0xc94df6=_0x380f9b['getAttribute']('listItemId'),_0x1f672a=!_0x468034||_0x468034['getAttribute']('listItemId')!==_0xc94df6,_0x411380=!_0x25bc0d||_0x25bc0d['getAttribute']('listItemId')!==_0xc94df6;return _0x1cd546&&Boolean(_0xc94df6)&&_0x1f672a&&_0x411380;},_0x48b733=>o(_0x4f1b00,'ELEMENT_LIST_ITEM',_0x48b733));}['_registerLegacyDescription'](){const _0xa9f736=this['editor'],_0x148485=_0xa9f736['locale'];function _0x23e1f3(_0x3e9c4b){const _0x4a88ac=_0xa9f736['commands']['get']('bulletedList')['value'],_0x22606d=_0xa9f736['commands']['get']('numberedList')['value'];return'numberedList'===_0x3e9c4b?_0x4a88ac:_0x22606d;}_0xa9f736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a49af){if('formatBlock'!=_0x4a49af['type'])return;const {data:_0x390d8f}=_0x4a49af;if(!_0x390d8f)return;let _0x3823be,_0x26374,_0x5266c2,_0x5bcfb1;switch(_0x390d8f['commandName']){case'bulletedList':_0x5266c2=_0x390d8f['commandParams'][0x0]['forceValue'],_0x5bcfb1=_0x23e1f3(_0x390d8f['commandName']),_0x3823be=_0x5266c2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bcfb1&&_0xa9f736['config']['get']('list.multiBlock')||(_0x3823be='*Change\x20to:*\x20%0'),_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5266c2=_0x390d8f['commandParams'][0x0]['forceValue'],_0x5bcfb1=_0x23e1f3(_0x390d8f['commandName']),_0x3823be=_0x5266c2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bcfb1&&_0xa9f736['config']['get']('list.multiBlock')||(_0x3823be='*Change\x20to:*\x20%0'),_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3823be='*Indent:*\x20%0',_0x26374={'type':'format','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3823be=function(_0x117b29){const _0x38d40e=_0x117b29['getFirstRange']();let _0x1dc934=_0x38d40e['start']['nodeAfter'];for(;_0x1dc934&&_0x38d40e['containsItem'](_0x1dc934);){if(_0x1dc934['getAttribute']('listIndent')>0x0)return!0x1;_0x1dc934=_0x1dc934['nextSibling'];}return!0x0;}(_0x4a49af)?o(_0x148485,'*Format:*\x20remove\x20from\x20%0',o(_0x148485,function(_0x1a4c48){return'ELEMENT_'+_0x1a4c48['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a49af))):o(_0x148485,'*Outdent:*\x20%0',o(_0x148485,'ELEMENT_LIST_ITEM')),_0x26374={'type':'format','content':_0x3823be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x390d8f['multipleBlocks']&&(_0x3823be='*Merge:*\x20%0',_0x26374={'type':'deletion','content':o(_0x148485,_0x3823be,o(_0x148485,'ELEMENT_LIST_ITEM'))});}return _0x26374;});}}function le(_0x5c0107){let _0x4d303f=_0x5c0107['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d303f;){const _0x39a255=_0x4d303f['getAttribute']('listItemId');if(!_0x39a255)return!0x1;if(_0x39a255==_0x5c0107['data']['newValue'])return'newValue';if(_0x39a255==_0x5c0107['data']['oldValue'])return'oldValue';_0x4d303f=_0x4d303f['previousSibling'];}return!0x1;}class ue extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4525b5=this['editor']['config']['get']('list.properties'),_0x18a7c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4525b5['styles']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listStyle'),_0x18a7c8['registerBlockAttribute']('listStyle')),_0x4525b5['reversed']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listReversed'),_0x18a7c8['registerBlockAttribute']('listReversed')),_0x4525b5['startIndex']&&(_0x18a7c8['enableDefaultAttributesIntegration']('listStart'),_0x18a7c8['registerBlockAttribute']('listStart'));const _0x336b89={'type':'format','content':''};_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47fae6=this['editor']['locale'];_0x18a7c8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47fae6,'FORMAT_LIST_REVERSED')),_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](_0x21dbed=>{const {data:_0x104a72}=_0x21dbed;if(_0x104a72&&'listReversed'==_0x104a72['key'])return null==_0x104a72['newValue']||0x0==_0x104a72['newValue']&&null==_0x104a72['oldValue']?_0x336b89:void 0x0;}),_0x18a7c8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47fae6,'FORMAT_LIST_START')),_0x18a7c8['descriptionFactory']['registerDescriptionCallback'](_0x356dd1=>{const {data:_0x47c543}=_0x356dd1;if(_0x47c543&&'listStart'==_0x47c543['key'])return null==_0x47c543['newValue']||0x1==_0x47c543['newValue']&&null==_0x47c543['oldValue']?_0x336b89:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x348dfb=>{if(_0x348dfb['batch']['isUndo'])return!0x1;let _0x74a3f7=!0x1;const _0x337c8a=_0x18a7c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73e44a=>{const _0x18acd0=_0x18a7c8['_getAttributeKey'](_0x73e44a);return'listStart'==_0x18acd0||'listReversed'==_0x18acd0;});for(const _0x141de8 of _0x337c8a){const _0x546033=_0x141de8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x546033||'customNumbered'==_0x546033)continue;_0x18a7c8['_findSuggestions'](_0x141de8['getFirstRange'](),'attribute')['find'](_0x3bfdc2=>'listType'==_0x18a7c8['_getAttributeKey'](_0x3bfdc2['suggestion']))||(_0x348dfb['removeMarker'](_0x141de8['getFirstMarker']()),_0x74a3f7=!0x0);}return _0x74a3f7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x52b8be){const _0x43ddc8=this['editor']['locale'],{data:_0x320c92}=_0x52b8be,_0x3cac3e={'type':'format','content':''};if(!_0x320c92||'listStyle'!=_0x320c92['key'])return;if(!_0x320c92['oldValue'])return'default'==_0x320c92['newValue']?_0x3cac3e:{'type':'format','content':''+o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['newValue'])))};if(!_0x320c92['newValue']){if('default'==_0x320c92['oldValue'])return _0x3cac3e;let _0x4fdfef=_0x52b8be['head'];for(;_0x4fdfef;){if(_0x4fdfef['data']&&'listType'==_0x4fdfef['data']['key']&&_0x4fdfef['data']['newValue'])return _0x3cac3e;_0x4fdfef=_0x4fdfef['next'];}return{'type':'format','content':''+o(_0x43ddc8,'*Remove\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['oldValue'])))};}if('default'!=_0x320c92['newValue'])return{'type':'format','content':''+o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,this['_getTranslationKeyForListStyle'](_0x320c92['newValue'])))};let _0x20b3b5=_0x52b8be['head'];for(;_0x20b3b5;){if(_0x20b3b5['data']&&'listType'==_0x20b3b5['data']['key']&&_0x20b3b5['data']['newValue']&&_0x20b3b5['data']['oldValue'])return _0x3cac3e;_0x20b3b5=_0x20b3b5['next'];}return{'type':'format','content':o(_0x43ddc8,'*Set\x20format:*\x20%0',o(_0x43ddc8,'ELEMENT_'+_0x52b8be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2627b5=this['editor'],_0xd02e86=_0x2627b5['locale'];_0x2627b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3bc3=>{if('formatBlock'!=_0x3b3bc3['type'])return;const {data:_0x5f5cf6}=_0x3b3bc3;if(!_0x5f5cf6)return;let _0x466511,_0x54d665;switch(_0x5f5cf6['commandName']){case'listStyle':_0x466511='*Change\x20to:*\x20%0',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511,o(_0xd02e86,this['_getTranslationKeyForListStyle'](_0x5f5cf6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x466511=_0x5f5cf6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511)};break;case'listStart':_0x466511='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54d665={'type':'format','content':o(_0xd02e86,_0x466511,_0x5f5cf6['commandParams'][0x0]['startIndex'])};}return _0x54d665;});}['_getTranslationKeyForListStyle'](_0x378041){return'ELEMENT_'+function(_0x2f4b64){if(pe['includes'](_0x2f4b64))return'bulleted';if(ye['includes'](_0x2f4b64))return'numbered';return null;}(_0x378041)['toUpperCase']()+'_LIST_'+_0x378041['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5297f7{static get['requires'](){return[_0x3af30e];}['init'](){const _0x2e1ea2=this['editor'],_0x1c2be7=_0x2e1ea2['plugins']['get']('TrackChangesEditing'),_0x530bff=_0x2e1ea2['commands']['get']('enter');_0x1c2be7['enableCommand']('enter',()=>{_0x2e1ea2['model']['change'](_0x17c046=>{const _0x1c6f6b=_0x2e1ea2['model']['document']['selection'],_0x5002eb=_0x1c6f6b['getFirstPosition'](),_0x31125c=_0x16e800['fromRange'](_0x1c6f6b['getFirstRange']());if(_0x530bff['enterBlock'](_0x17c046)){const _0x41d5b8=_0x2e1ea2['model']['createPositionAt'](_0x5002eb['parent']['nextSibling'],0x0),_0x33107d=_0x17c046['createRange'](_0x5002eb,_0x41d5b8);_0x1c2be7['markInsertion'](_0x33107d);}else _0x17c046['setSelection'](_0x17c046['createRange'](_0x31125c['end']));_0x31125c['detach'](),_0x530bff['fire']('afterExecute',{'writer':_0x17c046});});}),_0x2e1ea2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2e1ea2,'split'),{'priority':'high'}),_0x2e1ea2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e9512,_0x283430,_0x58a64d)=>{const _0x1093c0=_0x58a64d['mapper']['markerNameToElements'](_0x283430['markerName']);if(_0x1093c0){for(const _0x2aba9b of _0x1093c0)_0x2aba9b['hasClass']('ck-suggestion-marker-split')&&(_0x58a64d['mapper']['unbindElementFromMarkerName'](_0x2aba9b,_0x283430['markerName']),_0x58a64d['writer']['remove'](_0x2aba9b));}},{'priority':'high'}),_0x2e1ea2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19a0be,_0x23aae5,_0x5dd287)=>{_0x5dd287['options']['showSuggestionHighlights']&&_e(_0x2e1ea2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19a0be,_0x23aae5,_0x5dd287);},{'priority':'high'});}}class J extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fb0df=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fb0df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fb0df['enableCommand']('findNext'),_0x3fb0df['enableCommand']('findPrevious'),_0x3fb0df['enableCommand']('replace'),_0x3fb0df['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a1764,_0x1c9cb4,_0x4f5664={}){const _0x113f91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a1764(_0xa6e61b=>('string'==typeof _0x1c9cb4?_0x113f91['findByTextCallback'](_0x1c9cb4,_0x4f5664):_0x1c9cb4)(_0xa6e61b)['filter'](_0x33a22c=>!0x1===this['_isInDeletionRange'](_0x33a22c,_0xa6e61b['item'])),_0x4f5664);}['_isInDeletionRange'](_0x236031,_0x3b56da){const _0x55730f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b56da,_0x236031['start']),this['editor']['model']['createPositionAt'](_0x3b56da,_0x236031['end']));for(const _0x14d260 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55730f['getIntersection'](_0x14d260['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5297f7{['afterInit'](){const _0x52baf6=this['editor']['locale'],_0xe5d727=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17194f,commandName:_0xf20343}of ro)this['editor']['plugins']['has'](_0x17194f)&&(_0xe5d727['enableDefaultAttributesIntegration'](_0xf20343),_0xe5d727['registerInlineAttribute'](_0xf20343));_0x52baf6['t'],_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x52baf6,'FORMAT_FONT_SIZE')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x52baf6,'FORMAT_FONT_FAMILY')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x52baf6,'FORMAT_FONT_COLOR')),_0xe5d727['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x52baf6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547a10=this['editor'],_0x1481ad=_0x547a10['locale'];_0x547a10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181a78=>{const _0x3c446d=_0x1481ad['t'];if('formatInline'!=_0x181a78['type'])return;const {data:_0x42b28d}=_0x181a78;if(null!=_0x42b28d){if('fontSize'==_0x42b28d['commandName']){const _0x5b3ce0=_0x42b28d['commandParams'][0x0]['value'];if(_0x5b3ce0){const _0xc1e68b=_0x3c446d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x57f53b=>_0x57f53b['model']==_0x5b3ce0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20size:*\x20%0',_0xc1e68b)};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x42b28d['commandName']){const _0x5a549=_0x42b28d['commandParams'][0x0]['value'];return _0x5a549?{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20family:*\x20%0',_0x5a549)}:{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x42b28d['commandName']){const _0x3abc20=_0x42b28d['commandParams'][0x0]['value'];if(_0x3abc20){const _0x1612d7=_0x67f0ea(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e05d2=>_0x3e05d2['model']==_0x3abc20);let _0xef2126=_0x3abc20,_0x5ccf97='';return _0x1612d7&&(_0xef2126=_0x1612d7['label'],_0x5ccf97=_0x3c446d(_0xef2126)['toLowerCase']()),{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20color:*\x20%0',_0x5ccf97)['trim'](),'color':{'value':_0x3abc20,'title':_0x5ccf97||_0xef2126}};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x42b28d['commandName']){const _0x2c26fa=_0x42b28d['commandParams'][0x0]['value'];if(_0x2c26fa){const _0x40e1e3=_0x67f0ea(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x693afe=>_0x693afe['model']==_0x2c26fa);let _0x2789da=_0x2c26fa,_0x2fa1d2='';return _0x40e1e3&&(_0x2789da=_0x40e1e3['label'],_0x2fa1d2=_0x3c446d(_0x2789da)['toLowerCase']()),{'type':'format','content':o(_0x1481ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x2fa1d2)['trim'](),'color':{'value':_0x2c26fa,'title':_0x2fa1d2||_0x2789da}};}return{'type':'format','content':o(_0x1481ad,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5297f7{['afterInit'](){const _0x182e36=this['editor'],_0x21da2d=_0x182e36['plugins']['get']('TrackChangesEditing'),_0x27f272=_0x182e36['commands']['get']('copyFormat'),_0x407a32=_0x182e36['commands']['get']('pasteFormat');_0x27f272&&_0x407a32&&(_0x21da2d['enableDefaultAttributesIntegration']('pasteFormat'),_0x21da2d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x325662=this['editor'],_0x51f3be=_0x325662['locale'];_0x325662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6185e=>{if('formatBlock'!=_0x6185e['type']&&'formatInline'!=_0x6185e['type'])return;const {data:_0x58f6aa}=_0x6185e;if(_0x58f6aa&&'pasteFormat'===_0x58f6aa['commandName']){const _0x874f07=[],_0x581eef=_0x58f6aa['commandParams'][0x0];for(const [_0x428937,_0x253d20]of Object['entries'](_0x581eef))_0x874f07['push'](so(_0x325662,_0x428937,_0x253d20));return _0x874f07['length']?{'type':'format','content':o(_0x51f3be,'*Set\x20format\x20to:*\x20%0',_0x874f07['join'](',\x20'))}:{'type':'format','content':o(_0x51f3be,'*Remove\x20all\x20formatting*')};}});}}function so(_0x56505c,_0x26388f,_0x4c80d6){const _0x3b1b1f=_0x56505c['locale']['t'],_0x27689f=_0x26388f['split'](/(?=[A-Z])/)['join']('\x20'),_0x164fe0=_0x3b1b1f(_0x27689f['charAt'](0x0)['toUpperCase']()+_0x27689f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c80d6)return _0x164fe0;if('fontColor'===_0x26388f||'fontBackgroundColor'===_0x26388f){const _0xc73764=_0x67f0ea(_0x56505c['config']['get']('fontColor.colors'))['find'](_0x16b06f=>_0x16b06f['model']==_0x4c80d6);return _0x164fe0+'\x20('+(_0xc73764?_0x3b1b1f(_0xc73764['label'])['toLowerCase']():_0x4c80d6)+')';}if('fontSize'===_0x26388f&&isNaN(parseFloat(_0x4c80d6))){const _0x3c8699=_0x56505c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x56505c['config']['get']('fontSize.options'))['find'](_0x5438cc=>_0x5438cc['model']==_0x4c80d6);return _0x164fe0+'\x20('+(_0x3c8699?_0x3b1b1f(_0x3c8699['title'])['toLowerCase']():_0x4c80d6)+')';}return _0x164fe0+'\x20('+_0x4c80d6+')';}class Y extends _0x5297f7{['_headingOptions'];['afterInit'](){const _0x43a956=this['editor'];if(!_0x43a956['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43a956['config']['get']('heading.options');const _0x496cc3=_0x43a956['locale'],_0x346cee=_0x43a956['plugins']['get']('TrackChangesEditing');_0x346cee['enableDefaultAttributesIntegration']('heading');for(const _0x5e1499 of this['_headingOptions'])'paragraph'!=_0x5e1499['model']&&_0x346cee['descriptionFactory']['registerElementLabel'](_0x5e1499['model'],_0x2f083e=>{const _0x106570=this['_getHeadingLevel'](_0x5e1499['model']);return null!==_0x106570?_0x4a1f70(_0x2f083e,_0x106570):_0x2e5f6c(_0x2f083e,_0x5e1499['title']);});function _0x4a1f70(_0xc8f186,_0x4ec2bf){return o(_0x496cc3,'ELEMENT_HEADING',[_0xc8f186,_0x4ec2bf]);}function _0x2e5f6c(_0x200b4d,_0x4de768){return o(_0x496cc3,'ELEMENT_HEADING_CUSTOM',[_0x200b4d,_0x4de768]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d307=this['editor'],_0x3395d4=_0x43d307['locale'];function _0x10124d(_0x8c9b0,_0x3769ee){return o(_0x3395d4,'ELEMENT_HEADING_CUSTOM',[_0x8c9b0,_0x3769ee]);}_0x43d307['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be79b=>{if('formatBlock'!=_0x5be79b['type'])return;const {data:_0x52b667}=_0x5be79b;if(_0x52b667&&'heading'==_0x52b667['commandName']){const _0x5ae083=_0x52b667['commandParams'][0x0]['value'],_0x51b3bd=this['_getHeadingLevel'](_0x5ae083);if(null!==_0x51b3bd)return{'type':'format','content':o(_0x3395d4,'*Change\x20to:*\x20%0',(_0x1764fc=0x1,_0x525863=_0x51b3bd,o(_0x3395d4,'ELEMENT_HEADING',[_0x1764fc,_0x525863])))};const _0x5adb90=this['_headingOptions']['find'](_0x4c0674=>_0x4c0674['model']===_0x5ae083)['title'];return{'type':'format','content':o(_0x3395d4,'*Change\x20to:*\x20%0',_0x10124d(0x1,_0x5adb90))};}var _0x1764fc,_0x525863;});}['_getHeadingLevel'](_0x4c876c){const _0x297c5a=_0x4c876c['match'](/^heading(\d+)/);if(_0x297c5a)return _0x297c5a[0x1];const _0x1fe0a0=this['_headingOptions']?.['find'](_0x5c8d32=>_0x5c8d32['model']==_0x4c876c);if(_0x1fe0a0&&_0x1fe0a0['view']){const _0x58263e=_0x1fe0a0['view'],_0x2d8cf3=(_0x58263e['name']??_0x58263e)['match'](/^h(\d+)/);if(_0x2d8cf3)return _0x2d8cf3[0x1];}return null;}}class Z extends _0x5297f7{['afterInit'](){const _0x1c3f41=this['editor'];if(!_0x1c3f41['plugins']['has']('HighlightEditing'))return;const _0x58b75b=_0x1c3f41['plugins']['get']('TrackChangesEditing'),_0x129948=_0x1c3f41['locale'];_0x58b75b['enableDefaultAttributesIntegration']('highlight'),_0x58b75b['registerInlineAttribute']('highlight'),_0x58b75b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x129948,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a3430=this['editor'],_0x214563=_0x4a3430['locale'];_0x4a3430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b813b=>{if('formatInline'!=_0x4b813b['type'])return;const {data:_0x26a572}=_0x4b813b;if(_0x26a572&&'highlight'==_0x26a572['commandName']){const _0x3be54a=_0x214563['t'],_0x5687f2=_0x26a572['commandParams'][0x0]['value'];if(_0x5687f2){const _0x5563ed=_0x4a3430['config']['get']('highlight.options')['find'](_0x500060=>_0x500060['model']==_0x5687f2),_0x350a5f=_0x3be54a(_0x5563ed['title'])['toLowerCase']();return{'type':'format','content':o(_0x214563,'*Set\x20highlight:*\x20%0',_0x350a5f),'color':{'value':_0x5563ed['color'],'title':_0x5563ed['title']}};}return{'type':'format','content':o(_0x214563,'*Remove\x20highlight*',o(_0x214563,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5297f7{['afterInit'](){const _0x29a66c=this['editor'];if(!_0x29a66c['plugins']['has']('HorizontalLineEditing'))return;_0x29a66c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x328d43=_0x29a66c['plugins']['get']('TrackChangesEditing'),_0x43319a=_0x29a66c['locale'];_0x328d43['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ac227=>o(_0x43319a,'ELEMENT_HORIZONTAL_LINE',_0x3ac227)),_0x29a66c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x9546d1,{writer:_0x22b5cd,options:_0x25a519})=>{if(!_0x25a519['showSuggestionHighlights'])return null;const _0xfdcaeb=_0x22b5cd['createContainerElement']('div'),_0x53b217=_0x22b5cd['createEmptyElement']('hr');return _0x22b5cd['addClass']('ck-horizontal-line',_0xfdcaeb),_0x22b5cd['insert'](_0x22b5cd['createPositionAt'](_0xfdcaeb,0x0),_0x53b217),_0xfdcaeb;},'converterPriority':'high'});}}class et extends _0x5297f7{['afterInit'](){const _0x3d0243=this['editor'];if(!_0x3d0243['plugins']['has']('HtmlEmbed'))return;const _0x4aa8eb=_0x3d0243['plugins']['get']('TrackChangesEditing'),_0x3d595c=_0x3d0243['locale'];_0x4aa8eb['descriptionFactory']['registerElementLabel']('rawHtml',_0x11e5f7=>o(_0x3d595c,'ELEMENT_HTML_EMBED',_0x11e5f7)),_0x4aa8eb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4aa8eb['registerBlockAttribute']('value'),_0x4aa8eb['descriptionFactory']['registerDescriptionCallback'](_0xc5ca68=>{if('attribute'!=_0xc5ca68['type'])return;const {data:_0x404351}=_0xc5ca68;if(_0x404351&&'value'==_0x404351['key']&&_0xc5ca68['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30a7ff=o(_0x3d595c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d595c,'*Change\x20%0\x20content*',_0x30a7ff)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x558d0a=this['editor'],_0x1a2c26=_0x558d0a['locale'];_0x558d0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fbe87=>{if('formatBlock'!=_0x2fbe87['type'])return;const {data:_0x2a303b}=_0x2fbe87;if(_0x2a303b&&'htmlEmbed'==_0x2a303b['commandName']){const _0x40f8f9=o(_0x1a2c26,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a2c26,'*Change\x20%0\x20content*',_0x40f8f9)};}});}}class it extends _0x5297f7{['afterInit'](){const _0x17a6e5=this['editor'];if(!_0x17a6e5['plugins']['has']('ImageEditing'))return;const _0x28149e=_0x17a6e5['plugins']['get']('TrackChangesEditing'),_0x401b7a=_0x17a6e5['plugins']['get']('ImageUtils'),_0x232902=_0x17a6e5['locale'];_0x28149e['enableCommand']('insertImage'),_0x28149e['descriptionFactory']['registerElementLabel']('imageBlock',_0x37a35b=>o(_0x232902,'ELEMENT_IMAGE',_0x37a35b)),_0x28149e['descriptionFactory']['registerElementLabel']('imageInline',_0x1db471=>o(_0x232902,'ELEMENT_INLINE_IMAGE',_0x1db471)),_0x28149e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x232902,'ELEMENT_CAPTION')),_0x17a6e5['plugins']['has']('ImageUploadEditing')&&_0x28149e['enableCommand']('uploadImage'),_0x17a6e5['plugins']['has']('ImageBlockEditing')&&_0x17a6e5['plugins']['has']('ImageInlineEditing')&&(_0x28149e['enableCommand']('imageTypeInline',(_0x3bdffa,_0x170084)=>{const _0x55676f=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']);_0x17a6e5['model']['change'](()=>{_0x28149e['markBlockFormat'](_0x55676f,{'commandName':'imageTypeInline','commandParams':[_0x170084]},[],'convertBlockImageToInline');});}),_0x28149e['enableCommand']('imageTypeBlock',(_0x85b7a1,_0x24f2d2)=>{_0x17a6e5['model']['change'](_0x14e18e=>{let _0x3c1f5c=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x2cb019=_0x14e18e['createRangeOn'](_0x3c1f5c);const _0x532bd4=_0x4101dd['fromPosition'](_0x2cb019['start'],'toPrevious'),_0x5a9a03=_0x4101dd['fromPosition'](_0x2cb019['end'],'toNext');_0x28149e['forceDefaultExecution'](()=>_0x85b7a1(_0x24f2d2)),_0x3c1f5c=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x2cb019=_0x14e18e['createRangeOn'](_0x3c1f5c);const _0x2d3744=_0x14e18e['createRange'](_0x532bd4,_0x5a9a03);_0x532bd4['detach'](),_0x5a9a03['detach'](),_0x28149e['markBlockFormat'](_0x3c1f5c,{'commandName':'imageTypeInline','commandParams':[_0x24f2d2]},[],'convertInlineImageToBlock'),_0x2d3744['start']['isBefore'](_0x2cb019['start'])&&_0x28149e['markInsertion'](_0x14e18e['createRange'](_0x2d3744['start'],_0x2cb019['start']),'convertInlineImageToBlock'),_0x2cb019['end']['isBefore'](_0x2d3744['end'])&&_0x28149e['markInsertion'](_0x14e18e['createRange'](_0x2cb019['end'],_0x2d3744['end']),'convertInlineImageToBlock');});}),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x28149e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x340adb])=>{const _0x29ebda=_0x28149e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xfa81fa=_0x340adb['start'],_0x29bb52=_0x340adb['end'];const _0x25199f=_0x17a6e5['model']['schema']['getNearestSelectionRange'](_0xfa81fa,'backward'),_0x132bcb=_0x17a6e5['model']['schema']['getNearestSelectionRange'](_0x29bb52,'forward');_0x25199f['isCollapsed']&&(_0xfa81fa=_0x25199f['start']),_0x132bcb['isCollapsed']&&(_0x29bb52=_0x132bcb['end']),_0x29ebda([_0x17a6e5['model']['createRange'](_0xfa81fa,_0x29bb52)]);}),_0x28149e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c62fb),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c62fb)),_0x17a6e5['plugins']['has']('ImageCaptionEditing')&&(_0x28149e['enableCommand']('toggleImageCaption',(_0xa74ffa,_0x1c5cd3)=>{const _0x50ad8e=_0x17a6e5['plugins']['get']('ImageCaptionUtils');let _0x14db90=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x11b9d8=_0x50ad8e['getCaptionFromImageModelElement'](_0x14db90);_0x17a6e5['model']['change'](()=>{if(_0x11b9d8)return void _0x28149e['markDeletion'](_0x17a6e5['model']['createRangeOn'](_0x11b9d8));const _0x536618=_0x401b7a['isBlockImage'](_0x14db90);_0xa74ffa(_0x1c5cd3),_0x14db90=_0x401b7a['getClosestSelectedImageElement'](_0x17a6e5['model']['document']['selection']),_0x11b9d8=_0x50ad8e['getCaptionFromImageModelElement'](_0x14db90),_0x28149e['markInsertion'](_0x17a6e5['model']['createRangeOn'](_0x11b9d8),_0x536618?null:'imageCaption');});}),_0x28149e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c62fb));const _0x2da3df=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xf1da3b(_0x37c4c5,_0x3bcb35){const _0x9859f2=_0x2da3df['findIndex'](({type:_0x3207f3,subType:_0x45dc9f})=>_0x37c4c5['type']==_0x3207f3&&_0x37c4c5['subType']==_0x45dc9f),_0x1cd180=_0x2da3df['findIndex'](({type:_0x11f12c,subType:_0x93dd19})=>_0x3bcb35['type']==_0x11f12c&&_0x3bcb35['subType']==_0x93dd19);if(_0x9859f2<0x0||_0x1cd180<0x0)return!0x1;const _0x50cf9c=_0x37c4c5['getFirstRange'](),_0x2d817b=_0x3bcb35['getFirstRange']();if((0x0==_0x9859f2||0x1==_0x9859f2)&&0x2==_0x1cd180&&_0x50cf9c['isIntersecting'](_0x2d817b))return!0x0;if(0x2==_0x9859f2&&0x3==_0x1cd180){const _0x1d0b18=_0x28149e['_findSuggestions'](_0x50cf9c,'insertion')['filter'](({suggestion:_0x279511,meta:_0x23ec79})=>_0x23ec79['isOwn']&&'convertInlineImageToBlock'==_0x279511['subType']);if(_0x1d0b18['length']>0x1&&_0x2d817b['end']['isEqual'](_0x50cf9c['start']))return!0x0;if(0x1==_0x1d0b18['length']&&(_0x50cf9c['start']['isEqual'](_0x2d817b['end'])||_0x50cf9c['end']['isEqual'](_0x2d817b['start'])))return!0x0;}if(0x3==_0x9859f2&&0x3==_0x1cd180&&_0x50cf9c['start']['isBefore'](_0x2d817b['start'])){const _0x2f7343=_0x50cf9c['end']['nodeAfter'],_0x23acab=_0x2d817b['start']['nodeBefore'];return _0x401b7a['isBlockImage'](_0x2f7343)&&_0x2f7343===_0x23acab;}return!0x1;}function _0x4c62fb(_0xb7e95d,_0x26d313){return _0xf1da3b(_0xb7e95d,_0x26d313)?[_0xb7e95d,_0x26d313]:_0xf1da3b(_0x26d313,_0xb7e95d)?[_0x26d313,_0xb7e95d]:null;}_0x17a6e5['plugins']['has']('ImageResize')&&(_0x28149e['enableDefaultAttributesIntegration']('resizeImage'),_0x28149e['registerBlockAttribute']('resizedWidth'),_0x28149e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x232902,'FORMAT_IMAGE_SIZE'))),_0x17a6e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x28149e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x28149e['registerBlockAttribute']('alt')),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x8427d2=>{if(!!_0x2da3df['find'](({type:_0x2ca76e,subType:_0x3d2382})=>_0x8427d2['type']==_0x2ca76e&&_0x8427d2['subType']==_0x3d2382))return _0x8427d2['previous']?{}:void 0x0;}),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x2a145b=>{if('insertion'==_0x2a145b['type']||'deletion'==_0x2a145b['type']){const _0x2a80d5=_0x2a145b['getContainedElement']();if(_0x2a80d5&&_0x2a80d5['is']('element','caption'))return{'type':'insertion'==_0x2a145b['type']?'addObject':'removeObject','element':_0x2a80d5,'quantity':0x1};}}),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x341829=>'formatBlock'==_0x341829['type']&&'convertInlineImageToBlock'==_0x341829['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x341829['type']&&'convertBlockImageToInline'==_0x341829['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x28149e['descriptionFactory']['registerDescriptionCallback'](_0x32998d=>{if('attribute'!=_0x32998d['type'])return;const {data:_0x399aae}=_0x32998d;if(!_0x399aae||'alt'!=_0x399aae['key'])return;const _0x407057=_0x399aae['newValue'];return _0x407057?{'type':'format','content':o(_0x232902,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x407057+'\x22')}:{'type':'format','content':o(_0x232902,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7559f=this['editor'],_0x415f01=_0xa7559f['locale'];_0xa7559f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c924=>{if('formatBlock'!=_0x55c924['type']&&'formatInline'!=_0x55c924['type'])return;const {data:_0x572efa}=_0x55c924;if(_0x572efa){if('imageTextAlternative'==_0x572efa['commandName']){const _0x263b2b=_0x572efa['commandParams'][0x0]['newValue'];return _0x263b2b?{'type':'format','content':o(_0x415f01,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x263b2b+'\x22')}:{'type':'format','content':o(_0x415f01,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x572efa['commandName']){const _0x1859ee=_0x572efa['commandParams'][0x0]['width'];return _0x1859ee?{'type':'format','content':o(_0x415f01,'*Set\x20image\x20width:*\x20%0',_0x1859ee)}:{'type':'format','content':o(_0x415f01,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x15132b=this['editor']['locale'],_0x4e31a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e31a9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e31a9['registerBlockAttribute']('src'),_0x4e31a9['descriptionFactory']['registerDescriptionCallback'](_0x4357bd=>{if('attribute'!=_0x4357bd['type'])return;const {data:_0x1de809}=_0x4357bd;return _0x1de809&&'src'==_0x1de809['key']?_0x1de809['newValue']&&_0x1de809['oldValue']?{'type':'format','content':o(_0x15132b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x108f57=this['editor']['plugins']['get']('TrackChangesEditing');_0x108f57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x108f57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x108f57['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x108f57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa505=this['editor'],_0x412fbb=_0x4fa505['locale'];_0x4fa505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33c657=>{if('formatBlock'!=_0x33c657['type']&&'formatInline'!=_0x33c657['type'])return;const {data:_0x4771c3}=_0x33c657;if(!_0x4771c3||'replaceImageSource'!=_0x4771c3['commandName'])return;return{'type':'format','content':o(_0x412fbb,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5297f7{['afterInit'](){const _0x33529e=this['editor'];if(!_0x33529e['plugins']['has']('ImageStyleEditing'))return;const _0x56f6af=_0x33529e['plugins']['get']('TrackChangesEditing'),_0x5a0a6d=_0x33529e['plugins']['get']('ImageUtils'),_0x4c8018={};_0x56f6af['enableCommand']('imageStyle',(_0x52f1d6,_0x41e4f2)=>{const _0x52abb6=_0x33529e['plugins']['get']('Users')['me'],_0x238cc1=_0x33529e['commands']['get']('imageStyle');let _0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),_0x10f40c=_0x33529e['model']['createRangeOn'](_0x227334),_0x5d3eb2=_0x238cc1['value'];if(_0x5d3eb2==_0x41e4f2['value'])return;const _0x1fb8a0={'commandName':'imageStyle','commandParams':[_0x41e4f2],'formatGroupId':_0x48fd30()};_0x33529e['model']['change'](()=>{if(_0x56f6af['getSuggestions']()['filter'](_0x1c4794=>_0x1c4794['isInContent']&&_0x52abb6==_0x1c4794['author']&&('formatBlock'==_0x1c4794['type']||'formatInline'==_0x1c4794['type'])&&('imageStylePreApply'==_0x1c4794['subType']||'imageStylePostApply'==_0x1c4794['subType'])&&_0x1c4794['getFirstRange']()['isEqual'](_0x10f40c))['forEach'](_0x3a8322=>_0x56f6af['discardSuggestion'](_0x3a8322['head'])),_0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),_0x10f40c=_0x33529e['model']['createRangeOn'](_0x227334),_0x238cc1['refresh'](),_0x33529e['commands']['get']('imageTypeInline')['refresh'](),_0x33529e['commands']['get']('imageTypeBlock')['refresh'](),_0x5d3eb2=_0x238cc1['value'],_0x5d3eb2!=_0x41e4f2['value'])return _0x5a0a6d['isInlineImage'](_0x227334)&&_0x238cc1['shouldConvertImageType'](_0x41e4f2['value'],_0x227334)?(_0x52f1d6({..._0x41e4f2,'setImageSizes':!0x1}),_0x227334=_0x5a0a6d['getClosestSelectedImageElement'](_0x33529e['model']['document']['selection']),void _0x56f6af['markBlockFormat'](_0x227334,{..._0x1fb8a0,'commandReversedParams':[{'value':_0x5d3eb2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0a6d['isBlockImage'](_0x227334)?_0x56f6af['markBlockFormat'](_0x227334,_0x1fb8a0,[],'imageStylePostApply'):_0x56f6af['markInlineFormat'](_0x10f40c,_0x1fb8a0,'imageStylePostApply'));});});for(const _0xc55c81 of _0x33529e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c8018[_0xc55c81['name']]=_0xc55c81['title']['toLowerCase']();_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3fc170])=>{_0x5a0a6d['setImageNaturalSizeAttributes'](_0x3fc170['getContainedElement']());}),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3428bc,_0x380533)=>{_0x56f6af['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3428bc,{'commandName':_0x380533['commandName'],'commandParams':_0x380533['commandReversedParams']});}),_0x56f6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x493479,_0x443455){if(_0x1cb40c(_0x493479,_0x443455))return[_0x493479,_0x443455];if(_0x1cb40c(_0x443455,_0x493479))return[_0x443455,_0x493479];return null;});const _0x1a61db=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1cb40c(_0x242b4d,_0xa1d0cc){const _0x4b81e7=_0x1a61db['findIndex'](({type:_0x4c54fc,subType:_0x5b9b60})=>_0x242b4d['type']==_0x4c54fc&&_0x242b4d['subType']==_0x5b9b60),_0x5f4e20=_0x1a61db['findIndex'](({type:_0x33482c,subType:_0x356d14})=>_0xa1d0cc['type']==_0x33482c&&_0xa1d0cc['subType']==_0x356d14);if(_0x4b81e7<0x0||_0x5f4e20<0x0)return!0x1;const _0x16735b=_0x242b4d['getFirstRange'](),_0x2ee633=_0xa1d0cc['getFirstRange']();if((0x0==_0x4b81e7||0x1==_0x4b81e7)&&0x2==_0x5f4e20&&_0x16735b['isIntersecting'](_0x2ee633))return!0x0;if(0x2==_0x4b81e7&&0x3==_0x5f4e20){const _0x21b0a9=_0x56f6af['_findSuggestions'](_0x16735b,'insertion')['filter'](({suggestion:_0x4698af,meta:_0x1e2cd8})=>_0x1e2cd8['isOwn']&&'convertInlineImageToBlock'==_0x4698af['subType']);if(_0x21b0a9['length']>0x1&&_0x2ee633['end']['isEqual'](_0x16735b['start']))return!0x0;if(0x1==_0x21b0a9['length']&&(_0x16735b['start']['isEqual'](_0x2ee633['end'])||_0x16735b['end']['isEqual'](_0x2ee633['start'])))return!0x0;}if(0x3==_0x4b81e7&&0x3==_0x5f4e20&&_0x16735b['start']['isBefore'](_0x2ee633['start'])){const _0x12cc07=_0x16735b['end']['nodeAfter'],_0x11a619=_0x2ee633['start']['nodeBefore'];return _0x5a0a6d['isBlockImage'](_0x12cc07)&&_0x12cc07===_0x11a619;}return!0x1;}_0x33529e['model']['document']['registerPostFixer'](()=>{let _0x15f347=!0x1;const _0xfa1f20=Array['from'](_0x33529e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2655c5,data:_0x3ac688}of _0xfa1f20){const {group:_0x286742,type:_0x5ba5f1,subType:_0x51e90c,id:_0x53e02c}=_0x56f6af['_splitMarkerName'](_0x2655c5);if('suggestion'==_0x286742&&_0x56f6af['hasSuggestion'](_0x53e02c)){if('formatBlock'==_0x5ba5f1&&('imageStylePreApply'==_0x51e90c||'imageStylePostApply'==_0x51e90c)){const _0x5e2dcc=_0x56f6af['getSuggestion'](_0x53e02c);if(_0x3ac688['newRange']){const _0x5b2e4e=_0x5e2dcc['getFirstRange']()['getContainedElement']();if(_0x5a0a6d['isBlockImage'](_0x5b2e4e))continue;_0x56f6af['discardSuggestion'](_0x5e2dcc),_0x15f347=!0x0;}}if('insertion'==_0x5ba5f1&&'imageCaption'==_0x51e90c&&!_0x3ac688['newRange']){const _0x78d015=_0x56f6af['getSuggestion'](_0x53e02c);_0x78d015['next']&&_0x78d015['next']['isInContent']&&(_0x56f6af['discardSuggestion'](_0x78d015['next']),_0x15f347=!0x0);}}}return _0x15f347;}),this['_registerLegacyDescription'](_0x4c8018);}['_registerLegacyDescription'](_0x34aa1e){const _0x5362e5=this['editor'],_0x1531a9=_0x5362e5['locale'];_0x5362e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7b49=>{if('formatBlock'!=_0x1b7b49['type']&&'formatInline'!=_0x1b7b49['type'])return;const {data:_0x69ab4c}=_0x1b7b49;if(!_0x69ab4c||'imageStyle'!=_0x69ab4c['commandName'])return;const _0x1ab1fc=_0x69ab4c['commandParams'][0x0]['value'];return _0x2b3621('side'===_0x1ab1fc?o(_0x1531a9,'FORMAT_SIDE_IMAGE'):_0x34aa1e[_0x1ab1fc]||_0x1ab1fc);function _0x2b3621(_0x298cec){return{'type':'format','content':o(_0x1531a9,'*Format:*\x20%0',_0x298cec)};}});}}class ot extends _0x5297f7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a9b0e){super(_0x4a9b0e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5af7fc=this['editor'],_0x199d5c=_0x5af7fc['commands']['get']('importWord'),_0x3d8f0f=_0x5af7fc['commands']['get']('trackChanges');_0x199d5c&&(_0x199d5c['on']('execute',(_0x397e60,[,_0x84add6])=>{this['_trackChangesValueDuringImport']=_0x3d8f0f['value'],_0x84add6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x199d5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x199d5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3d8f0f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5af7fc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5b7a78,_0x358e80){const {suggestions:_0x3ca7d5}=_0x358e80,_0x3e3246=this['editor']['commands']['get']('trackChanges'),_0xd6c24d=_0x3e3246['value'];this['_trackChangesValueDuringImport']!==_0xd6c24d&&(_0x3e3246['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ca7d5&&_0x3ca7d5['forEach'](({id:_0x192670,type:_0x3d7b0b,author:_0x1c0c64,created_at:_0x3a3691})=>{const _0x387a44={'id':_0x192670,'type':_0x3d7b0b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c0c64,'createdAt':_0x3a3691?new Date(_0x3a3691):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x387a44);});}}class rt extends _0x5297f7{['afterInit'](){const _0x4ffa7b=this['editor'],_0x18e736=_0x4ffa7b['plugins']['get']('TrackChangesEditing');if(_0x4ffa7b['plugins']['has']('IndentEditing')&&(_0x18e736['enableCommand']('indent'),_0x18e736['enableCommand']('outdent')),_0x4ffa7b['plugins']['has']('IndentBlock')){for(const _0x9ded69 of['indentBlock','outdentBlock'])_0x18e736['enableDefaultAttributesIntegration'](_0x9ded69);}const _0x18285d=_0x4ffa7b['locale'];_0x18e736['registerBlockAttribute']('blockIndent'),_0x18e736['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x18285d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b3ac=this['editor'],_0x2b9cfd=_0x44b3ac['locale'],_0x550b90=_0x44b3ac['plugins']['get']('TrackChangesEditing');_0x550b90['descriptionFactory']['registerDescriptionCallback'](_0x1fb61d=>{if('formatBlock'!=_0x1fb61d['type'])return;const {data:_0x27114f}=_0x1fb61d;if(!_0x27114f)return;if('indentBlock'!=_0x27114f['commandName']&&'outdentBlock'!=_0x27114f['commandName'])return;const _0x43744f=_0x1fb61d['getItems']()[0x0],_0x29d6f7=_0x550b90['descriptionFactory']['getItemLabel'](_0x43744f);return'indentBlock'==_0x27114f['commandName']?{'type':'format','content':o(_0x2b9cfd,'*Indent:*\x20%0',_0x29d6f7)}:'outdentBlock'==_0x27114f['commandName']?{'type':'format','content':o(_0x2b9cfd,'*Outdent:*\x20%0',_0x29d6f7)}:void 0x0;});}}class at extends _0x5297f7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5297f7{['afterInit'](){const _0x390506=this['editor'];if(!_0x390506['plugins']['has']('LinkEditing'))return;const _0x5dc023=_0x390506['plugins']['get']('TrackChangesEditing'),_0x48ca4b=_0x390506['commands']['get']('link');_0x5dc023['enableDefaultAttributesIntegration']('link'),_0x5dc023['enableDefaultAttributesIntegration']('unlink'),_0x5dc023['registerInlineAttribute']('linkHref');for(const _0x4d42ff of _0x48ca4b['manualDecorators'])_0x5dc023['registerInlineAttribute'](_0x4d42ff['id']),_0x5dc023['descriptionFactory']['registerAttributeLabel'](_0x4d42ff['id'],'link\x20('+_0x4d42ff['label']['toLowerCase']()+')');_0x5dc023['descriptionFactory']['registerDescriptionCallback'](_0x4aadd7=>{if('attribute'!=_0x4aadd7['type'])return;const {data:_0x4dd563}=_0x4aadd7;if(!_0x4dd563||'linkHref'!=_0x4dd563['key'])return;const _0x3492f8=_0x4dd563['newValue'],_0x3f23b7=_0x390506['locale'];return{'type':'format','content':null==_0x3492f8?o(_0x3f23b7,'*Remove\x20link*'):o(_0x3f23b7,'*Set\x20link:*\x20%0','\x22'+_0x3492f8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dde91=this['editor'],_0x2464c3=_0x5dde91['locale'];_0x5dde91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d55a8=>{if('formatInline'!=_0x5d55a8['type'])return;const {data:_0x27a456}=_0x5d55a8;if(_0x27a456){if('link'==_0x27a456['commandName']){const _0x523211=_0x27a456['commandParams'][0x0];return{'type':'format','content':o(_0x2464c3,'*Set\x20link:*\x20%0','\x22'+_0x523211+'\x22')};}return'unlink'==_0x27a456['commandName']?{'type':'format','content':o(_0x2464c3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5297f7{['afterInit'](){const _0x54724d=this['editor'],_0x4d88c3=_0x54724d['locale'];if(!_0x54724d['plugins']['has']('LegacyListEditing'))return;const _0x30ad15=_0x54724d['plugins']['get']('TrackChangesEditing'),_0x5ccc5c=_0x54724d['plugins']['has']('LegacyTodoListEditing');function _0x3b432c(_0x4881b4){return()=>{const _0x5a3071=_0x54724d['model']['document']['selection'],_0x5c25a8=_0x54724d['commands']['get'](_0x4881b4);if(_0x5c25a8['value'])return void _0x54724d['execute']('paragraph',{});const _0x5bbb61=_0x4881b4['slice'](0x0,-0x4),_0xb52b21=function(_0xfc224c,_0x1967a0,_0x2f6534){let _0x42cd21=Array['from'](_0xfc224c)['filter'](_0x2d6424=>function(_0x41de3d,_0x2ac824){return _0x2ac824['checkChild'](_0x41de3d['parent'],'listItem')&&!_0x2ac824['isObject'](_0x41de3d);}(_0x2d6424,_0x2f6534));_0x42cd21=_0x42cd21['filter'](_0x32b1fa=>!_0x32b1fa['is']('element','listItem')||_0x32b1fa['getAttribute']('listType')!=_0x1967a0);const _0x37fd38=new Set();for(const _0x175270 of _0x42cd21)_0x175270['is']('element','listItem')?_0x37fd38['add'](me(_0x175270)):_0x37fd38['add'](_0x175270);return Array['from'](_0x37fd38);}(_0x5a3071['getSelectedBlocks'](),_0x5bbb61,_0x54724d['model']['schema']);_0x54724d['model']['change'](()=>{for(const _0x31dd07 of _0xb52b21)_0x30ad15['markBlockFormat'](_0x31dd07,{'commandName':_0x4881b4,'commandParams':[{'forceValue':!_0x5c25a8['value']}],'formatGroupId':'blockName'},fe(_0x31dd07));});};}function _0x36e7c6(_0x57e22e){return()=>{const _0x3e2ce8=function(_0x368289){let _0x4b41fd=Array['from'](_0x368289);const _0x240f5c=_0x4b41fd['findIndex'](_0x1a8d51=>'listItem'!=_0x1a8d51['name']);return _0x240f5c>-0x1&&(_0x4b41fd=_0x4b41fd['slice'](0x0,_0x240f5c)),_0x4b41fd;}(_0x54724d['model']['document']['selection']['getSelectedBlocks']()),_0x365605=_0x54724d['model']['createRange'](_0x54724d['model']['createPositionAt'](_0x3e2ce8[0x0],'before'),_0x54724d['model']['createPositionAt'](_0x3e2ce8[_0x3e2ce8['length']-0x1],'end'));_0x54724d['model']['change'](()=>{_0x30ad15['markBlockFormat'](_0x365605,{'commandName':_0x57e22e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x545075){const _0x88a144=new Set();for(const _0x15873b of _0x545075){let _0x1c9ee9=_0x15873b['nextSibling'];for(;_0x1c9ee9&&_0x1c9ee9['getAttribute']('listIndent')>_0x15873b['getAttribute']('listIndent');)_0x88a144['add'](_0x1c9ee9),_0x1c9ee9=_0x1c9ee9['nextSibling'];}return Array['from'](_0x88a144);}(_0x3e2ce8));});};}_0x30ad15['enableCommand']('numberedList',_0x3b432c('numberedList')),_0x30ad15['enableCommand']('bulletedList',_0x3b432c('bulletedList')),_0x5ccc5c&&_0x30ad15['enableCommand']('todoList',_0x3b432c('todoList')),_0x30ad15['enableCommand']('indentList',_0x36e7c6('indentList')),_0x30ad15['enableCommand']('outdentList',_0x36e7c6('outdentList')),_0x5ccc5c&&_0x30ad15['enableCommand']('checkTodoList',()=>{const _0x362a11=_0x54724d['commands']['get']('checkTodoList'),_0x35a8f2=Array['from'](_0x362a11['_selectedElements']);_0x35a8f2['filter'](_0x48d775=>_0x48d775['getAttribute']('todoListChecked')!=_0x362a11['value']),_0x54724d['model']['change'](()=>{for(const _0x3c914c of _0x35a8f2)_0x30ad15['markBlockFormat'](_0x3c914c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x362a11['value']}]});});}),_0x30ad15['descriptionFactory']['registerElementLabel']('listItem',_0x1c286e=>o(_0x4d88c3,'ELEMENT_LIST_ITEM',_0x1c286e)),_0x30ad15['descriptionFactory']['registerDescriptionCallback'](_0x6ff86a=>{if('formatBlock'!=_0x6ff86a['type']&&'formatInline'!=_0x6ff86a['type'])return;const {data:_0x54a39c}=_0x6ff86a;if(_0x54a39c){if('numberedList'==_0x54a39c['commandName']||'bulletedList'==_0x54a39c['commandName']||'todoList'==_0x54a39c['commandName'])switch(_0x54a39c['commandName']['replace']('List','')){case'bulleted':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b4c84(o(_0x4d88c3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x54a39c['commandName'])return{'type':'format','content':o(_0x4d88c3,'*Indent:*\x20%0',o(_0x4d88c3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x54a39c['commandName'])return{'type':'format','content':o(_0x4d88c3,'*Outdent:*\x20%0',o(_0x4d88c3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x54a39c['commandName'])return _0x54a39c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d88c3,'*Check\x20item*')}:{'type':'format','content':o(_0x4d88c3,'*Uncheck\x20item*')};}function _0x1b4c84(_0x8685c2){return{'type':'format','content':o(_0x4d88c3,'*Change\x20to:*\x20%0',_0x8685c2)};}});}}function me(_0x2960f1){const _0x20cbce=_0x2960f1['getAttribute']('listIndent');if(0x0==_0x20cbce)return _0x2960f1;let _0x21630e=_0x2960f1;for(;_0x2960f1['previousSibling']&&_0x2960f1['previousSibling']['is']('element','listItem');){const _0x20e750=_0x2960f1['previousSibling']['getAttribute']('listIndent');if(_0x20e750==_0x20cbce)_0x21630e=_0x2960f1['previousSibling'];else{if(_0x20e750<_0x20cbce)break;}_0x2960f1=_0x2960f1['previousSibling'];}return _0x21630e;}function fe(_0x121f73){const _0x3c41aa=[];if(_0x121f73['is']('element','listItem')&&_0x121f73['getAttribute']('listIndent')>0x0){let _0xc86f36=_0x121f73['nextSibling'];for(;_0xc86f36&&'listItem'==_0xc86f36['name']&&_0xc86f36['getAttribute']('listIndent')==_0x121f73['getAttribute']('listIndent');)_0x3c41aa['push'](_0xc86f36),_0xc86f36=_0xc86f36['nextSibling'];}return _0x3c41aa;}class K extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4377e2=this['editor']['config']['get']('list.properties'),_0x1de99d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4377e2['styles']&&_0x1de99d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4377e2['reversed']&&_0x1de99d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4377e2['startIndex']&&_0x1de99d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1de99d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47e55b,_0x35198b={}){const _0x2292de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35440e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2292de['markMultiRangeBlockFormat'](_0x35440e,{'commandName':'listStyle','commandParams':[{'type':_0x35198b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xdc0b60,_0x1ed87a={}){const _0x305b8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f0831=this['_getSuggestionBlocks'](_0x36a75b=>_0x36a75b['is']('element','listItem')&&'numbered'===_0x36a75b['getAttribute']('listType'));if(_0x2f0831['length']<0x1)return;const _0x586af6=_0x2f0831['map'](_0xeee047=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xeee047,'before'),this['editor']['model']['createPositionAt'](_0xeee047,0x0)));this['editor']['model']['change'](()=>{_0x305b8d['markMultiRangeBlockFormat'](_0x586af6,{'commandName':'listReversed','commandParams':[{'reversed':_0x1ed87a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ad724,_0x28de94={}){const _0x4ba9c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32555b=this['_getSuggestionBlocks'](_0x34d4d3=>_0x34d4d3['is']('element','listItem')&&'numbered'===_0x34d4d3['getAttribute']('listType'));if(_0x32555b['length']<0x1)return;const _0x42905b=_0x32555b['map'](_0x1201d0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1201d0,'before'),this['editor']['model']['createPositionAt'](_0x1201d0,0x0)));this['editor']['model']['change'](()=>{_0x4ba9c8['markMultiRangeBlockFormat'](_0x42905b,{'commandName':'listStart','commandParams':[{'startIndex':_0x28de94['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40a778){if('formatBlock'!=_0x40a778['type']&&'formatInline'!=_0x40a778['type'])return;const _0x3f05c6=this['editor']['locale'],{data:_0x41e706}=_0x40a778;if(!_0x41e706)return;let _0x598ee2,_0x34b9c4;switch(_0x41e706['commandName']){case'listStyle':_0x598ee2='*Change\x20to:*\x20%0',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2,o(_0x3f05c6,this['_getTranslationKeyForListStyle'](_0x41e706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x598ee2=_0x41e706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2)};break;case'listStart':_0x598ee2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34b9c4={'type':'format','content':o(_0x3f05c6,_0x598ee2,_0x41e706['commandParams'][0x0]['startIndex'])};}return _0x34b9c4;}['_getSuggestionBlocksForListStyle'](){const _0x588a84=this['editor']['plugins']['get']('LegacyListUtils');let _0x1769a3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1769a3[0x0]?.['is']('element','listItem')&&_0x1769a3['unshift'](..._0x588a84['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1769a3[_0x1769a3['length']-0x1]?.['is']('element','listItem')&&_0x1769a3['push'](..._0x588a84['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1769a3=[...new Set(_0x1769a3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1769a3=_0x1769a3['filter'](_0x5378b5=>_0x5378b5['is']('element','listItem'))),_0x1769a3;}['_getSuggestionBlocks'](_0x93b1f3){const _0x27b3a3=this['editor']['plugins']['get']('LegacyListUtils');let _0xd1574e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x93b1f3)['map'](_0x7a5f2f=>{const _0x2654c6=this['editor']['model']['createPositionAt'](_0x7a5f2f,0x0);return[..._0x27b3a3['getSiblingNodes'](_0x2654c6,'backward'),..._0x27b3a3['getSiblingNodes'](_0x2654c6,'forward')];})['flat']();return _0xd1574e=[...new Set(_0xd1574e)],_0xd1574e;}['_getTranslationKeyForListStyle'](_0x442e3f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x442e3f)||'default')['toUpperCase']()+'_LIST_'+_0x442e3f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5297f7{['afterInit'](){const _0x531186=this['editor'];if(!_0x531186['plugins']['has']('MediaEmbedEditing'))return;const _0x2d4779=_0x531186['plugins']['get']('TrackChangesEditing'),_0x34de95=_0x531186['locale'];_0x2d4779['enableCommand']('mediaEmbed'),_0x2d4779['descriptionFactory']['registerElementLabel']('media',_0xe5d07f=>o(_0x34de95,'ELEMENT_MEDIA',_0xe5d07f)),_0x531186['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21672b,{writer:_0x1cb759,options:_0x127eb1})=>{if(_0x127eb1['showSuggestionHighlights'])return _0x1cb759['createEmptyElement']('div');},'converterPriority':'high'}),_0x531186['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e4487,_0x3b0a1a,_0xe192e5)=>{_0xe192e5['options']['showSuggestionHighlights']&&_0x5e4487['stop']();},{'priority':'high'});}}class gt extends _0x5297f7{['afterInit'](){const _0x1fe78a=this['editor'];_0x1fe78a['plugins']['has']('MentionEditing')&&_0x1fe78a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5297f7{['afterInit'](){const _0x1946ac=this['editor'],_0x81e87e=_0x1946ac['plugins']['get']('TrackChangesEditing');_0x1946ac['plugins']['has']('MultiLevelList')&&(_0x81e87e['enableDefaultAttributesIntegration']('multiLevelList'),_0x81e87e['registerBlockAttribute']('listMarkerStyle'),_0x81e87e['descriptionFactory']['registerDescriptionCallback'](_0x5e415b=>this['handleDescriptions'](_0x5e415b)));}['handleDescriptions'](_0x137e0e){const _0x2fee77=this['editor']['locale'],{data:_0x58b833}=_0x137e0e,_0x2d864e={'type':'format','content':''};if(_0x58b833&&'listMarkerStyle'==_0x58b833['key']){if(!_0x58b833['oldValue'])return{'type':'format','content':o(_0x2fee77,'*Set\x20format:*\x20%0',o(_0x2fee77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b833['newValue']+')'};if(!_0x58b833['newValue']){let _0x180aa1=_0x137e0e['head'];for(;_0x180aa1;){if(_0x180aa1['data']&&'listType'==_0x180aa1['data']['key']&&_0x180aa1['data']['newValue'])return _0x2d864e;_0x180aa1=_0x180aa1['next'];}return{'type':'format','content':o(_0x2fee77,'*Remove\x20format:*\x20%0',o(_0x2fee77,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58b833['oldValue']+')'};}}}}class mt extends _0x5297f7{['afterInit'](){const _0x331745=this['editor'];if(!_0x331745['plugins']['has']('PageBreakEditing'))return;_0x331745['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x19e3d1=_0x331745['plugins']['get']('TrackChangesEditing'),_0x4a024b=_0x331745['locale'];_0x19e3d1['descriptionFactory']['registerElementLabel']('pageBreak',_0x4c0397=>o(_0x4a024b,'ELEMENT_PAGE_BREAK',_0x4c0397));}}class dt extends _0x5297f7{['afterInit'](){const _0x3aebd1=this['editor'];if(!_0x3aebd1['plugins']['has']('Paragraph'))return;const _0x472cee=_0x3aebd1['locale'],_0x208fa1=_0x3aebd1['plugins']['get']('TrackChangesEditing');_0x208fa1['descriptionFactory']['registerElementLabel']('paragraph',_0x267e59=>o(_0x472cee,'ELEMENT_PARAGRAPH',_0x267e59)),_0x208fa1['enableDefaultAttributesIntegration']('paragraph'),_0x208fa1['enableCommand']('insertParagraph'),_0x3aebd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3aebd1),{'priority':'highest'}),_0x3aebd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc4a13f,_0x573106,_0x35d218)=>{_0x35d218['options']['showSuggestionHighlights']&&nr(_0x3aebd1,{'showActiveMarker':!0x1})(_0xc4a13f,_0x573106,_0x35d218);},{'priority':'highest'});const _0x71dad7=_0x208fa1['descriptionFactory'];_0x71dad7['registerDescriptionCallback'](_0x29ca13=>{if('insertion'!==_0x29ca13['type'])return;const {start:_0x43d2cb,end:_0x4b729a}=_0x29ca13['getFirstRange']();if(!_0x43d2cb['isTouching'](_0x4b729a)||!_0x43d2cb['nodeAfter'])return;const _0x45db71=_0x3aebd1['model']['schema'],_0x4e4166=_0x43d2cb['nodeAfter'];return _0x45db71['isBlock'](_0x4e4166)&&!_0x45db71['isLimit'](_0x4e4166)&&_0x45db71['checkChild'](_0x4e4166,'$text')?{'type':'insertion','content':o(_0x472cee,'*Insert:*\x20%0',_0x71dad7['getItemLabel'](_0x4e4166,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x301e35=this['editor'],_0x53f14e=_0x301e35['locale'];_0x301e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x82972b=>{if('formatBlock'!=_0x82972b['type'])return;const {data:_0x5a7493}=_0x82972b;return _0x5a7493&&'paragraph'==_0x5a7493['commandName']?{'type':'format','content':o(_0x53f14e,'*Change\x20to:*\x20%0',o(_0x53f14e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x266d67,{showActiveMarker:_0x46e21c=!0x0}={}){return(_0x49e3d1,_0x126169,_0xe34d74)=>{const _0x5e5e0e=_0x266d67['plugins']['get']('TrackChangesEditing'),_0x8d603b=_0x126169['markerRange']['start'],_0x425419=_0x126169['markerRange']['end'],_0x65fd27=_0x266d67['model']['schema'];if(!_0x8d603b['isTouching'](_0x425419)||!_0x8d603b['nodeAfter'])return;const _0x53afd3=_0x8d603b['nodeAfter'];if(_0x65fd27['isBlock'](_0x53afd3)&&!_0x65fd27['isLimit'](_0x53afd3)&&_0x65fd27['checkChild'](_0x53afd3,'$text')){if(!_0xe34d74['consumable']['consume'](_0x126169['markerRange'],_0x49e3d1['name']))return;const _0x238b3e=_0xe34d74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x45a6d2=_0xe34d74['mapper']['toViewPosition'](_0x425419);_0x46e21c&&_0x5e5e0e['activeMarkers']['includes'](_0x126169['markerName'])&&_0xe34d74['writer']['addClass']('ck-suggestion-marker--active',_0x238b3e),_0xe34d74['writer']['insert'](_0x45a6d2,_0x238b3e),_0xe34d74['mapper']['bindElementToMarker'](_0x238b3e,_0x126169['markerName']);}};}class pt extends _0x5297f7{['afterInit'](){const _0x4f9251=this['editor'];if(!_0x4f9251['plugins']['has']('RemoveFormatEditing'))return;_0x4f9251['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x388e1d=this['editor'];_0x388e1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9231=>{if('formatBlock'!=_0x5a9231['type']&&'formatInline'!=_0x5a9231['type'])return;const {data:_0x344af4}=_0x5a9231;return _0x344af4&&'removeFormat'==_0x344af4['commandName']?{'type':'format','content':o(_0x388e1d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5297f7{['afterInit'](){const _0x458b3c=this['editor'];if(!_0x458b3c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5130ee=_0x458b3c['plugins']['get']('TrackChangesEditing');_0x5130ee['enableCommand']('goToPreviousRestrictedEditingException'),_0x5130ee['enableCommand']('goToNextRestrictedEditingException');const _0x5eaf2d=_0x458b3c['plugins']['get']('RestrictedEditingModeEditing');_0x5eaf2d['enableCommand']('trackChanges'),_0x5eaf2d['enableCommand']('acceptSuggestion'),_0x5eaf2d['enableCommand']('discardSuggestion'),_0x5eaf2d['enableCommand']('acceptAllSuggestions'),_0x5eaf2d['enableCommand']('discardAllSuggestions'),_0x5eaf2d['enableCommand']('acceptSelectedSuggestions'),_0x5eaf2d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5297f7{static get['requires'](){return[_0xbf3175];}['init'](){const _0x2218cf=this['editor'],_0x5a10cc=_0x2218cf['plugins']['get']('TrackChangesEditing');_0x5a10cc['enableCommand']('shiftEnter'),_0x2218cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2218cf),{'priority':'high'}),_0x2218cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2218cf),{'priority':'high'}),_0x2218cf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43986d,_0x1d5e2d,_0x31c289)=>{_0x31c289['options']['showSuggestionHighlights']&&de(_0x2218cf,{'showActiveMarker':!0x1})(_0x43986d,_0x1d5e2d,_0x31c289);}),_0x5a10cc['descriptionFactory']['registerElementLabel']('softBreak',_0x4d6d27=>o(_0x2218cf['locale'],'ELEMENT_LINE_BREAK',_0x4d6d27));}}function de(_0x46efbd,{showActiveMarker:_0x40da8f=!0x0}={}){return(_0x489b7b,_0x5a3ccd,_0x264678)=>{const _0x53228d=_0x46efbd['plugins']['get']('TrackChangesEditing');if(!_0x264678['consumable']['test'](_0x5a3ccd['markerRange'],_0x489b7b['name']))return;const _0x5841ea=_0x46efbd['model'];for(const _0x3a79fb of _0x5a3ccd['markerRange']['getItems']()){if(!_0x3a79fb['is']('element','softBreak'))continue;const _0x1823ee='deletion'==_0x5a3ccd['markerName']['split'](':')[0x1]?'merge':'split',_0xefc38d=_0x264678['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1823ee}),_0x5eb471=_0x264678['mapper']['toViewPosition'](_0x5841ea['createPositionBefore'](_0x3a79fb));_0x40da8f&&_0x53228d['activeMarkers']['includes'](_0x5a3ccd['markerName'])&&_0x264678['writer']['addClass']('ck-suggestion-marker--active',_0xefc38d),_0x264678['writer']['insert'](_0x5eb471,_0xefc38d),_0x264678['mapper']['bindElementToMarker'](_0xefc38d,_0x5a3ccd['markerName']);}};}class wt extends _0x5297f7{['afterInit'](){const _0x11610b=this['editor'],_0x3c456d=_0x11610b['model'],_0x4fb7c0=_0x11610b['locale'];if(!_0x11610b['plugins']['has']('StandardEditingModeEditing'))return;const _0x30906e=_0x11610b['plugins']['get']('TrackChangesEditing'),_0x45ccb7='restrictedEditingException',_0x285b3d=_0x11610b['commands']['get'](_0x45ccb7);_0x30906e['enableCommand'](_0x45ccb7,(_0x12ef6c,_0x500796={})=>{const _0x5a2379=_0x3c456d['document']['selection'];if(_0x5a2379['isCollapsed'])return void _0x12ef6c(_0x500796);const _0x107b39=void 0x0!==_0x500796['forceValue']?_0x500796['forceValue']:!_0x285b3d['value'];_0x3c456d['change'](()=>{const _0x31dbec=Array['from'](_0x5a2379['getRanges']());for(const _0x22075d of _0x31dbec){const _0x306831=_0x107b39?[_0x22075d]:io(_0x45ccb7,_0x22075d,_0x3c456d);for(const _0x5861f8 of _0x306831)_0x30906e['markInlineFormat'](_0x5861f8,{'commandName':_0x45ccb7,'commandParams':[{'forceValue':_0x107b39}]});}});}),_0x30906e['descriptionFactory']['registerDescriptionCallback'](_0x435869=>{if('formatBlock'!=_0x435869['type']&&'formatInline'!=_0x435869['type'])return;const {data:_0x320fb2}=_0x435869;return _0x320fb2&&_0x320fb2['commandName']==_0x45ccb7?_0x320fb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb7c0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb7c0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5297f7{['afterInit'](){const _0x5db708=this['editor'];if(!_0x5db708['plugins']['has']('Style')||!_0x5db708['plugins']['has']('DataSchema'))return;const _0x1bc8fc=_0x5db708['plugins']['get']('TrackChangesEditing'),_0x4671f8=_0x5db708['locale'],_0xd752fe=_0x5db708['config']['get']('style')||{},_0x31924a=_0x5db708['plugins']['get']('GeneralHtmlSupport'),_0x3085d4=_0x5db708['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5db708['plugins']['get']('DataSchema'),_0xd752fe['definitions']);_0x1bc8fc['enableDefaultAttributesIntegration']('style');const _0x46dee2=new Set();for(const _0x4150b5 of _0x3085d4['block']){const _0x18bbac=_0x31924a['getGhsAttributeNameForElement'](_0x4150b5['element']);_0x46dee2['add'](_0x18bbac);}const _0x210231=new Set();for(const _0x155d99 of _0x3085d4['inline']){const _0x3d9cb6=_0x31924a['getGhsAttributeNameForElement'](_0x155d99['element']);_0x210231['add'](_0x3d9cb6);for(const _0x538f51 of _0x155d99['ghsAttributes'])_0x210231['add'](_0x538f51);}for(const _0x195906 of _0x46dee2)_0x1bc8fc['registerBlockAttribute'](_0x195906),_0x1bc8fc['descriptionFactory']['registerAttributeLabel'](_0x195906,o(_0x4671f8,'FORMAT_STYLE'));for(const _0x150544 of _0x210231)_0x1bc8fc['registerInlineAttribute'](_0x150544),_0x1bc8fc['descriptionFactory']['registerAttributeLabel'](_0x150544,o(_0x4671f8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d67e=this['editor'],_0x5e7438=_0x54d67e['locale'];_0x54d67e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29aa1f=>{if('formatBlock'!=_0x29aa1f['type']&&'formatInline'!=_0x29aa1f['type'])return;const {data:_0x2e5f6a}=_0x29aa1f;return _0x2e5f6a&&'style'===_0x2e5f6a['commandName']?_0x2e5f6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e7438,'*Set\x20format:*\x20%0',_0x2e5f6a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e7438,'*Remove\x20format:*\x20%0',_0x2e5f6a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5297f7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x129256){super(_0x129256),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x581c61=this['editor'],_0x2d3c3e=_0x581c61['model']['document']['selection'];if(!_0x581c61['plugins']['has']('TableEditing'))return;const _0x3cc1a7=_0x581c61['locale'],_0xc348e5=_0x581c61['plugins']['get']('TrackChangesEditing'),_0x2476e5=_0x581c61['plugins']['get']('TableUtils');_0xc348e5['descriptionFactory']['registerElementLabel']('table',_0x4a8436=>o(_0x3cc1a7,'ELEMENT_TABLE',_0x4a8436)),this['_setupColumnsRowsFixing'](),_0xc348e5['enableCommand']('insertTable'),_0xc348e5['enableCommand']('selectTableRow'),_0xc348e5['enableCommand']('selectTableColumn');for(const _0x143c23 of['insertTableRowAbove','insertTableRowBelow']){const _0x4ade86=_0x581c61['commands']['get'](_0x143c23);_0xc348e5['enableCommand'](_0x143c23,_0x36df81=>{_0x581c61['model']['change'](_0x344ddb=>{_0x36df81();const _0x308c11='above'===_0x4ade86['order'],_0x51fb61=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0x2c863e=_0x2476e5['getRowIndexes'](_0x51fb61),_0x57e19e=_0x308c11?_0x2c863e['first']-0x1:_0x2c863e['last']+0x1,_0xf625e3=_0x51fb61[0x0]['findAncestor']('table'),_0x416ef1=_0x2476e5['createTableWalker'](_0xf625e3,{'startRow':_0x57e19e,'endRow':_0x57e19e}),_0x1a785f=Array['from'](_0x416ef1)['map'](_0x497eed=>_0x344ddb['createRangeOn'](_0x497eed['cell']));_0xc348e5['markMultiRangeInsertion'](_0x1a785f,'tableRow');});});}for(const _0x998ab6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xfabc48=_0x581c61['commands']['get'](_0x998ab6);_0xc348e5['enableCommand'](_0x998ab6,_0x42c4e9=>{_0x581c61['model']['change'](_0x57da59=>{_0x42c4e9();const _0x182cc0='left'===_0xfabc48['order'],_0x396318=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0xe08ec8=_0x2476e5['getColumnIndexes'](_0x396318),_0x4a73a2=_0x182cc0?_0xe08ec8['first']-0x1:_0xe08ec8['last']+0x1,_0x4d2177=_0x396318[0x0]['findAncestor']('table'),_0xe7d031=_0x2476e5['createTableWalker'](_0x4d2177,{'startRow':0x0,'column':_0x4a73a2,'includeAllSlots':!0x1}),_0x53085f=Array['from'](_0xe7d031)['map'](_0x39d298=>_0x57da59['createRangeOn'](_0x39d298['cell']));_0xc348e5['markMultiRangeInsertion'](_0x53085f,'tableColumn');});});}for(const _0x3670f2 of['removeTableRow','removeTableColumn']){const _0x3f6987=_0x3670f2['substr'](0xb),_0x34d12d=_0x3f6987['toLowerCase'](),_0x46da24=_0x34d12d['substr'](0x0,0x3)+'span',_0x461e8c='table'+_0x3f6987,_0x59dc91='min'+_0x3f6987,_0x10066e='max'+_0x3f6987;_0xc348e5['enableCommand'](_0x3670f2,()=>{_0x581c61['model']['change'](_0x1b6ba3=>{const _0xa84c0c=_0x2476e5['getSelectionAffectedTableCells'](_0x2d3c3e),_0x1225d3=_0xa84c0c[0x0]['findAncestor']('table');let _0x3b5c6d;if('removeTableRow'==_0x3670f2){const _0x3e7e0b=_0x2476e5['getRowIndexes'](_0xa84c0c);_0x3b5c6d={'startRow':_0x3e7e0b['first'],'endRow':_0x3e7e0b['last'],'includeAllSlots':!0x0};}else{const _0x13d592=_0x2476e5['getColumnIndexes'](_0xa84c0c);_0x3b5c6d={'startColumn':_0x13d592['first'],'endColumn':_0x13d592['last'],'includeAllSlots':!0x0};}const _0x57c873=_0x2476e5['createTableWalker'](_0x1225d3,_0x3b5c6d),_0x347e73=Array['from'](_0x57c873)['map'](({cell:_0x561740})=>_0x561740),_0x4d2a7e=Ee(_0x347e73['filter'](_0x7adb9a=>_0x7adb9a['hasAttribute'](_0x46da24))),_0x59dbda=Ee(_0x347e73['filter'](_0x50e323=>!_0x50e323['hasAttribute'](_0x46da24)))['map'](_0x119a77=>_0x1b6ba3['createRangeOn'](_0x119a77)),_0x378b5c=_0xc348e5['markMultiRangeDeletion'](_0x59dbda,_0x461e8c);if(_0x378b5c&&('tableRow'==_0x378b5c['subType']||'tableColumn'==_0x378b5c['subType'])){const _0x4de552=this['_getSuggestionCoords'](_0x378b5c);for(const _0x32391c of _0x4d2a7e){const _0x3e4341=_0x1b6ba3['createRangeOn'](_0x32391c),_0x1f6a96=_0x2476e5['getCellLocation'](_0x32391c),_0x33ae9c=_0x32391c['getAttribute'](_0x46da24)-0x1,_0x31fbfc=_0x4de552[_0x59dc91],_0x18c032=_0x4de552[_0x10066e];_0x31fbfc<=_0x1f6a96[_0x34d12d]&&_0x1f6a96[_0x34d12d]+_0x33ae9c<=_0x18c032&&_0x378b5c['addRange'](_0x3e4341);}}});});}function _0x52ba1f(_0x5ca1eb){const _0x262b33=Array['from'](_0x2d3c3e['getRanges']())['map'](_0x4a5886=>_0x16e800['fromRange'](_0x4a5886));_0x581c61['model']['change'](_0x2547c8=>{const _0x496767=_0x2547c8['batch'];_0x5ca1eb=_0x5ca1eb['filter'](_0x342b41=>'$graveyard'!=_0x342b41['root']['rootName']),_0x2547c8['setSelection'](_0x5ca1eb),_0x581c61['commands']['get']('removeTableRow')['refresh'](),_0x581c61['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x581c61['model']['enqueueChange'](()=>{_0x581c61['model']['enqueueChange'](_0x496767,_0x227085=>{const _0x5a178c=_0x262b33['filter'](_0x9ea5ca=>'$graveyard'!=_0x9ea5ca['root']['rootName']);_0x5a178c['length']>0x0&&_0x227085['setSelection'](_0x5a178c);for(const _0x4bb024 of _0x262b33)_0x4bb024['detach']();});});});}function _0x57042f(_0x434e49){_0x581c61['model']['change'](_0x38b4e0=>{const _0x222cb2=Array['from'](_0x2d3c3e['getRanges']())['map'](_0x10b04f=>_0x16e800['fromRange'](_0x10b04f)),_0x2762a0=[];for(const _0x43cfa3 of _0x434e49)for(const _0xd30b2c of _0x43cfa3['getItems']({'shallow':!0x0}))_0x2762a0['push'](_0xd30b2c);for(const _0x1990ee of _0x2762a0)'$graveyard'!=_0x1990ee['root']['rootName']&&(_0x38b4e0['setSelection'](_0x38b4e0['createPositionAt'](_0x1990ee,0x0)),_0x581c61['commands']['get']('removeTableColumn')['refresh'](),_0x581c61['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6de657=_0x222cb2['filter'](_0x33982c=>'$graveyard'!=_0x33982c['root']['rootName']);_0x6de657['length']>0x0&&_0x38b4e0['setSelection'](_0x6de657);for(const _0x4c6eca of _0x222cb2)_0x4c6eca['detach']();});}function _0x2d64d7(_0x2282d3,_0x3bc92d){return _0x3bc92d['every'](_0x4abbf9=>_0x2282d3['some'](_0x48980f=>_0x48980f['end']['isEqual'](_0x4abbf9['start'])||_0x4abbf9['end']['isEqual'](_0x48980f['start'])));}function _0x409be4(_0x1d38b5,_0x2d2dd4){return _0x1d38b5['some'](_0x164239=>_0x2d2dd4['some'](_0x4ba940=>_0x164239['end']['isTouching'](_0x4ba940['start'])));}_0x581c61['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55c6f7,_0x3455d8,_0x1735de)=>{if(!_0x1735de['options']['showSuggestionHighlights'])return;const _0x4fb4dd=_0x3455d8['item'];if(!_0x4fb4dd)return;const _0x118885=_0x1735de['mapper']['toViewElement'](_0x4fb4dd);function _0x5d1f74(_0x3e3e9d){return Array['isArray'](_0x3e3e9d)?_0x3e3e9d:[_0x3e3e9d];}_0x118885&&'tableCell'===_0x4fb4dd['name']&&_0x394def(_0x118885,_0x1735de['writer'],(_0x1a618d,_0x5d9b95,_0x31f36f)=>_0x31f36f['addClass'](_0x5d1f74(_0x5d9b95['classes']),_0x1a618d),(_0x24e74c,_0x49b555,_0x332de2)=>_0x332de2['removeClass'](_0x5d1f74(_0x49b555['classes']),_0x24e74c));},{'priority':'highest'}),_0xc348e5['descriptionFactory']['registerDescriptionCallback'](_0x3971c6=>{if('insertion'!=_0x3971c6['type']&&'deletion'!=_0x3971c6['type'])return;const _0x2b8bcd=_0x3971c6['getContainedElement']();if(null!=_0x2b8bcd&&_0x2b8bcd['is']('element','table')){if('insertion'==_0x3971c6['type']){const _0x5a221c=_0x3971c6['getItems']()['filter'](_0x187d5a=>_0x187d5a['is']('$textProxy'))['map'](_0x1dd4d7=>_0x1dd4d7['data']);if(_0x5a221c['length'])return{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a221c['join']('\x20')+'\x22'))};}if('deletion'==_0x3971c6['type']){const _0x4ddf6e=_0x3971c6['getItems']()['filter'](_0x5c8887=>_0x5c8887['is']('$textProxy'))['map'](_0x3e54a2=>_0x3e54a2['data']);if(_0x4ddf6e['length'])return{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ddf6e['join']('\x20')+'\x22'))};}}}),_0xc348e5['descriptionFactory']['registerDescriptionCallback'](_0x5aa6c3=>{if('tableRow'==_0x5aa6c3['subType']){const _0x3f7b30=_0x5aa6c3['getItems']()['filter'](_0x16eca6=>_0x16eca6['is']('$textProxy'))['map'](_0x51bcc7=>_0x51bcc7['data']),_0x37d5de=this['_getSuggestionCoords'](_0x5aa6c3),_0x1c6b78=_0x37d5de['maxRow']-_0x37d5de['minRow']+0x1;if('insertion'==_0x5aa6c3['type'])return _0x3f7b30['length']?{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6b78,'\x22'+_0x3f7b30['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW',_0x1c6b78))};if('deletion'==_0x5aa6c3['type'])return _0x3f7b30['length']?{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c6b78,'\x22'+_0x3f7b30['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_ROW',_0x1c6b78))};}if('tableColumn'==_0x5aa6c3['subType']){const _0x382bd1=_0x5aa6c3['getItems']()['filter'](_0x42a43b=>_0x42a43b['is']('$textProxy'))['map'](_0x13019f=>_0x13019f['data']),_0x33fa00=this['_getSuggestionCoords'](_0x5aa6c3),_0x20d9ac=_0x33fa00['maxColumn']-_0x33fa00['minColumn']+0x1;if('insertion'==_0x5aa6c3['type'])return _0x382bd1['length']?{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d9ac,'\x22'+_0x382bd1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cc1a7,'*Insert:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN',_0x20d9ac))};if('deletion'==_0x5aa6c3['type'])return _0x382bd1['length']?{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d9ac,'\x22'+_0x382bd1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cc1a7,'*Remove:*\x20%0',o(_0x3cc1a7,'ELEMENT_TABLE_COLUMN',_0x20d9ac))};}}),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x52ba1f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x52ba1f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x57042f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x57042f),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2d64d7),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2d64d7),_0xc348e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x409be4),_0xc348e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x409be4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f3052=this['editor'],_0xbe952e=_0x4f3052['model']['document']['selection'];return(_0x27c332,_0x12b775)=>{_0x4f3052['model']['change'](_0x1f601b=>{const {commandName:_0x25069e,commandParams:_0xc99e8e}=_0x12b775;let _0x2c0cfb=_0x27c332[0x0]['end']['nodeBefore'];_0xc99e8e&&_0xc99e8e[0x0]&&!0x1===_0xc99e8e[0x0]['forceValue']&&(_0x2c0cfb=_0x27c332[0x0]['start']['nodeAfter']);const _0x4eea39=_0x1f601b['createRangeIn'](_0x2c0cfb);if('$graveyard'==_0x4eea39['root']['rootName'])return;const _0x36fe66=Array['from'](_0xbe952e['getRanges']())['map'](_0x3b0c9b=>_0x16e800['fromRange'](_0x3b0c9b));_0x1f601b['setSelection'](_0x4eea39),_0x4f3052['commands']['get'](_0x25069e)['refresh'](),_0xc99e8e['push']({'forceDefaultExecution':!0x0}),_0x4f3052['execute'](_0x25069e,..._0xc99e8e);const _0x12533e=_0x36fe66['filter'](_0x44c598=>'$graveyard'!=_0x44c598['root']['rootName']);_0x12533e['length']>0x0&&_0x1f601b['setSelection'](_0x12533e);for(const _0x49d6d8 of _0x36fe66)_0x49d6d8['detach']();});};}['_getCoordsForCells'](_0x3cef30){const _0x28f5c1=this['editor']['plugins']['get']('TableUtils');let _0x41b769=Number['MAX_SAFE_INTEGER'],_0x4823e6=Number['MIN_SAFE_INTEGER'],_0x36ceab=Number['MAX_SAFE_INTEGER'],_0x36868a=Number['MIN_SAFE_INTEGER'];for(const _0x134240 of _0x3cef30){if('$graveyard'==_0x134240['root']['rootName'])continue;const {row:_0x55eaed,column:_0x22d724}=_0x28f5c1['getCellLocation'](_0x134240),_0x2a0fd5=_0x134240['hasAttribute']('rowspan')?_0x134240['getAttribute']('rowspan')-0x1:0x0,_0x481274=_0x134240['hasAttribute']('colspan')?_0x134240['getAttribute']('colspan')-0x1:0x0;_0x41b769=_0x55eaed<_0x41b769?_0x55eaed:_0x41b769,_0x4823e6=_0x55eaed+_0x2a0fd5>_0x4823e6?_0x55eaed+_0x2a0fd5:_0x4823e6,_0x36ceab=_0x22d724<_0x36ceab?_0x22d724:_0x36ceab,_0x36868a=_0x22d724+_0x481274>_0x36868a?_0x22d724+_0x481274:_0x36868a;}return{'minRow':_0x41b769,'maxRow':_0x4823e6,'minColumn':_0x36ceab,'maxColumn':_0x36868a};}['_setupColumnsRowsFixing'](){const _0x18a12a=this['editor'],_0x43fdf1=_0x18a12a['plugins']['get']('TrackChangesEditing'),_0x487d01=_0x18a12a['plugins']['get']('TableUtils');_0x18a12a['model']['document']['on']('change:data',()=>{const _0x4634b6=Array['from'](_0x18a12a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d51c0,data:_0xd6b4c2}of _0x4634b6){const {group:_0x5f314f,id:_0x283dd1,subType:_0x5a5463}=_0x43fdf1['_splitMarkerName'](_0x4d51c0);if('suggestion'!=_0x5f314f)continue;if(null!=_0xd6b4c2['oldRange'])continue;const _0x1ee28e=_0x43fdf1['getSuggestion'](_0x283dd1);this['_tablePostFixingSubtypes']['includes'](_0x5a5463)&&this['_tableSuggestions']['add'](_0x1ee28e);}},{'priority':'low'});const _0x531bcb=(_0x4af8fa,_0x5667fe)=>{let _0xb5af77=!0x1;const _0xbcd8d8=_0x5667fe['createRangeOn'](_0x4af8fa),_0x544346=_0x4af8fa['findAncestor']('table'),_0x2f59ad=_0x487d01['getCellLocation'](_0x4af8fa);for(const _0x3831dd of this['_tableSuggestions']){const _0x4082ef=_0x3831dd['subType'],_0x5f27f8=_0x4082ef['startsWith']('tablePaste'),_0x4c86ee=_0x4082ef['substr'](_0x5f27f8?0xa:0x5),_0x486286=_0x4c86ee['toLowerCase'](),_0x121032=_0x486286['substr'](0x0,0x3)+'span',_0x47f740='min'+_0x4c86ee,_0x6ec6a7='max'+_0x4c86ee;if(!_0x3831dd['isInContent'])continue;if(_0x544346!=_0x3831dd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3831dd['isIntersectingWithRange'](_0xbcd8d8))continue;const _0x43cc10=_0x4af8fa['hasAttribute'](_0x121032)?_0x4af8fa['getAttribute'](_0x121032)-0x1:0x0,_0xa64084=this['_getSuggestionCoords'](_0x3831dd),_0x1e7871=_0xa64084[_0x47f740],_0x2ceca2=_0xa64084[_0x6ec6a7];_0x1e7871<=_0x2f59ad[_0x486286]&&_0x2f59ad[_0x486286]+_0x43cc10<=_0x2ceca2&&(_0x3831dd['addRange'](_0xbcd8d8),_0xb5af77=!0x0);}return _0xb5af77;};_0x18a12a['model']['document']['registerPostFixer'](_0x199824=>{let _0x13fc35=!0x1;for(const _0x5d949a of _0x18a12a['model']['document']['differ']['getChanges']())if('insert'==_0x5d949a['type']){if('tableRow'==_0x5d949a['name']){for(const _0x339a69 of _0x5d949a['position']['nodeAfter']['getChildren']())_0x13fc35=_0x13fc35||_0x531bcb(_0x339a69,_0x199824);}else'tableCell'==_0x5d949a['name']&&(_0x13fc35=_0x13fc35||_0x531bcb(_0x5d949a['position']['nodeAfter'],_0x199824));}return _0x13fc35;});}['_getSuggestionCoords'](_0x4fd27f){return this['_getCoordsForCells'](_0x4fd27f['getRanges']()['map'](_0x2cb614=>_0x2cb614['start']['nodeAfter']));}}function Ee(_0x49db95){return Array['from'](new Set(_0x49db95)['values']());}class St extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0xd2c422=this['editor'],_0x4b3037=_0xd2c422['model']['document']['selection'],_0x22d89c=_0xd2c422['locale'];if(!_0xd2c422['plugins']['has']('TableEditing'))return;const _0x219e0f=_0xd2c422['plugins']['get']('TrackChangesEditing'),_0x1219f3=_0xd2c422['plugins']['get']('TableUtils'),_0x1452bc=_0xd2c422['plugins']['get'](jt);_0x1452bc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x219e0f['enableCommand']('mergeTableCells',()=>{const _0x4b7668=_0x1219f3['getSelectionAffectedTableCells'](_0xd2c422['model']['document']['selection']);_0xd2c422['model']['change'](()=>{_0x219e0f['markMultiRangeBlockFormat'](_0x4b7668,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xd2c422['commands']['get']('mergeTableCells')['on']('execute',(_0x4fa710,_0x854a02)=>{_0xd2c422['commands']['get']('trackChanges')['value']&&(_0x854a02['length']>0x0&&_0x854a02[_0x854a02['length']-0x1]&&_0x854a02[_0x854a02['length']-0x1]['forceDefaultExecution']||_0x219e0f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fa710['stop']());},{'priority':'highest'});for(const _0xd3d12c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x76f244=_0xd2c422['commands']['get'](_0xd3d12c);_0x219e0f['enableCommand'](_0xd3d12c,()=>{const _0x3df5af=_0xd2c422['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x66b822=>_0x66b822['is']('element','tableCell')),_0x100daf=_0x76f244['value'];_0xd2c422['model']['change'](()=>{_0x219e0f['markMultiRangeBlockFormat']([_0x3df5af,_0x100daf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f2cd6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3cf659=_0xd2c422['commands']['get'](_0x4f2cd6);_0x219e0f['enableCommand'](_0x4f2cd6,()=>{const _0x4f7684=_0x1219f3['getSelectionAffectedTableCells'](_0xd2c422['model']['document']['selection'])[0x0],_0x7b3a1=_0x4f7684['findAncestor']('table'),{column:_0x3a213a,row:_0x4f8b03}=_0x1219f3['getCellLocation'](_0x4f7684);let _0x5bea26=[];if('horizontally'==_0x3cf659['direction']){const _0x4edc16=_0x1219f3['createTableWalker'](_0x7b3a1,{'startRow':_0x4f8b03,'endRow':_0x4f8b03,'includeAllSlots':!0x0});_0x5bea26=Array['from'](_0x4edc16)['map'](_0x12d4e9=>_0x12d4e9['cell']);}else{const _0x4f41b5=_0x1219f3['createTableWalker'](_0x7b3a1,{'column':_0x3a213a,'includeAllSlots':!0x0});_0x5bea26=Array['from'](_0x4f41b5)['map'](_0x17b397=>_0x17b397['cell']);}_0xd2c422['model']['change'](_0x36a4a2=>{_0x219e0f['markBlockFormat'](_0x36a4a2['createRangeOn'](_0x4f7684),{'commandName':_0x4f2cd6,'commandParams':[]},_0x5bea26,_0x4f2cd6);});});}_0x219e0f['descriptionFactory']['registerDescriptionCallback'](_0x2a5101=>{if('formatBlock'!=_0x2a5101['type']&&'formatInline'!=_0x2a5101['type'])return;const {data:_0x21f4eb}=_0x2a5101;return _0x21f4eb&&'mergeTableCells'==_0x21f4eb['commandName']?{'type':'format','content':o(_0x22d89c,'*Merge\x20cells*')}:void 0x0;}),_0x219e0f['descriptionFactory']['registerDescriptionCallback'](_0x5b472e=>{if('formatBlock'!=_0x5b472e['type']&&'formatInline'!=_0x5b472e['type'])return;const {data:_0x4543e4}=_0x5b472e;return _0x4543e4?'splitTableCellVertically'==_0x4543e4['commandName']?{'type':'format','content':o(_0x22d89c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4543e4['commandName']?{'type':'format','content':o(_0x22d89c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35bdc9=_0x1452bc['_acceptFormatSuggestionCallbackFactory']();for(const _0x3634e6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3634e6,'accept',_0x35bdc9);for(const _0x2e9d97 of['splitTableCellVertically','splitTableCellHorizontally'])_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e9d97,'accept',_0x35bdc9);_0x219e0f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2dbdec=>{_0xd2c422['model']['change'](_0xa905e3=>{const _0x240ced=Array['from'](_0x4b3037['getRanges']())['map'](_0x3eddd5=>_0x16e800['fromRange'](_0x3eddd5));_0xa905e3['setSelection'](_0x2dbdec),_0xd2c422['commands']['get']('mergeTableCells')['refresh'](),_0xd2c422['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x96867d=_0x240ced['filter'](_0x182ed2=>'$graveyard'!=_0x182ed2['root']['rootName']);_0x96867d['length']>0x0&&_0xa905e3['setSelection'](_0x96867d);for(const _0xadbd9d of _0x240ced)_0xadbd9d['detach']();});});for(const _0x148754 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d68fc=_0xd2c422['commands']['get'](_0x148754);_0x2d68fc['on']('set:isEnabled',(_0x9ed09f,_0x3d75a4,_0xaa9db4)=>{if(_0xaa9db4){const _0x50cd7c=_0xd2c422['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe13fbc=>_0xe13fbc['is']('element','tableCell'));this['_areMergableCells'](_0x2d68fc['value'],_0x50cd7c)||(_0x9ed09f['return']=!0x1,_0x9ed09f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd71488=this['editor']['commands']['get']('mergeTableCells'),_0x1fa22e=this['editor']['plugins']['get']('TableUtils');if(!_0xd71488['isEnabled'])return!0x1;const _0x342f82=_0x1fa22e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58318c of _0x342f82)for(const _0x304dc9 of _0x342f82)if(_0x58318c!=_0x304dc9&&!this['_areMergableCells'](_0x58318c,_0x304dc9))return!0x1;return!0x0;}['_areMergableCells'](_0xf944fd,_0x3b94b0){const _0x2e2fbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5efa03=this['editor']['model']['createRangeOn'](_0xf944fd),_0x1fdfcf=this['editor']['model']['createRangeOn'](_0x3b94b0),_0x116b89=new Set(),_0x2fb579=new Set();for(const _0x4369df of _0x2e2fbd['getSuggestions']())if(('insertion'==_0x4369df['type']||'deletion'==_0x4369df['type']||'mergeTableCells'==_0x4369df['subType'])&&_0x4369df['isInContent']){for(const _0x51c211 of _0x4369df['getRanges']())_0x51c211['containsRange'](_0x5efa03,!0x0)&&_0x116b89['add'](_0x4369df['type']+':'+_0x4369df['author']['id']),_0x51c211['containsRange'](_0x1fdfcf,!0x0)&&_0x2fb579['add'](_0x4369df['type']+':'+_0x4369df['author']['id']);}if(_0x116b89['size']!=_0x2fb579['size'])return!0x1;for(const _0x4890b5 of _0x116b89)if(!_0x2fb579['has'](_0x4890b5))return!0x1;return!0x0;}}class At extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x182062=this['editor'];if(!_0x182062['plugins']['has']('TableEditing'))return;const _0x486dc4=_0x182062['locale'],_0x147d95=_0x182062['plugins']['get']('TrackChangesEditing');_0x147d95['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x147d95['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x147d95['registerBlockAttribute']('headingRows'),_0x147d95['registerBlockAttribute']('headingColumns'),_0x147d95['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x486dc4,'FORMAT_HEADER_ROW')),_0x147d95['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x486dc4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x81a326=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb93718=this['editor']['plugins']['get']('TableUtils'),_0x480605=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x38f64d({showActiveMarker:_0x5612c8=!0x0,setDataAttribute:_0x535b42=!0x0}={}){return(_0x59d046,_0x111f82,_0x58ce6c)=>{const {type:_0x32a779,id:_0x3e37bb}=_0x81a326['_splitMarkerName'](_0x111f82['markerName']),_0x230573=_0x81a326['getSuggestion'](_0x3e37bb),_0x360ffb=_0x230573['data'];if('formatBlock'!=_0x230573['type']||!_0x360ffb||'setTableColumnHeader'!=_0x360ffb['commandName'])return;if(_0x111f82['item'])return void _0x59d046['stop']();if(!_0x58ce6c['consumable']['consume'](_0x111f82['markerRange'],_0x59d046['name']))return;const _0x2be201=_0x111f82['markerRange']['start']['nodeAfter'],_0x425b1d=_0x111f82['markerRange']['end']['nodeBefore'],_0x5570f9=_0x2be201['parent']['parent'],{column:_0x3dad68}=_0xb93718['getCellLocation'](_0x2be201),{column:_0xa1e602}=_0xb93718['getCellLocation'](_0x425b1d);for(let _0x4e1341=_0x3dad68;_0x4e1341<=_0xa1e602;_0x4e1341++){const _0x2be0aa=_0xb93718['createTableWalker'](_0x5570f9,{'column':_0x4e1341,'includeAllSlots':!0x1});for(const _0x2b6f1b of _0x2be0aa){const _0x438d22=_0x2b6f1b['cell'],_0x3def03=_0x58ce6c['mapper']['toViewElement'](_0x438d22);_0x58ce6c['writer']['addClass']('ck-suggestion-marker-'+_0x32a779,_0x3def03),_0x535b42&&_0x58ce6c['writer']['setAttribute']('data-suggestion',_0x3e37bb,_0x3def03),_0x58ce6c['mapper']['bindElementToMarker'](_0x3def03,_0x111f82['markerName']),_0x5612c8&&(_0x81a326['activeMarkers']['includes'](_0x111f82['markerName'])?_0x58ce6c['writer']['addClass']('ck-suggestion-marker--active',_0x3def03):_0x58ce6c['writer']['removeClass']('ck-suggestion-marker--active',_0x3def03));}}};}_0x81a326['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x480605),_0x81a326['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x480605),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38f64d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c5d36,_0x605924,_0x1e5f2f)=>{_0x1e5f2f['options']['showSuggestionHighlights']&&_0x38f64d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3c5d36,_0x605924,_0x1e5f2f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a7ad4,_0x5bafab,_0x32949f)=>{const {type:_0x475d43,id:_0x53bd47}=_0x81a326['_splitMarkerName'](_0x5bafab['markerName']),_0x1312c9=_0x81a326['getSuggestion'](_0x53bd47),_0x5affff=_0x1312c9['data'];if('formatBlock'!=_0x1312c9['type']||!_0x5affff||'setTableColumnHeader'!=_0x5affff['commandName'])return;const _0x2b48c6=_0x32949f['mapper']['markerNameToElements'](_0x5bafab['markerName']);if(_0x2b48c6){for(const _0x46c926 of _0x2b48c6)_0x32949f['writer']['removeClass']('ck-suggestion-marker-'+_0x475d43,_0x46c926),_0x32949f['writer']['removeClass']('ck-suggestion-marker--active',_0x46c926),_0x32949f['writer']['removeAttribute']('data-suggestion',_0x46c926),_0x32949f['mapper']['unbindElementFromMarkerName'](_0x46c926,_0x5bafab['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377f3d=this['editor'],_0x1e5fd8=_0x377f3d['locale'];function _0x240cf4(_0x4f5178){return{'type':'format','content':o(_0x1e5fd8,'*Format:*\x20%0',_0x4f5178)};}_0x377f3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b367=>{if('formatBlock'!=_0x54b367['type'])return;const {data:_0x463a96}=_0x54b367;if(_0x463a96){if('setTableRowHeader'==_0x463a96['commandName']){const _0x1327ce=_0x463a96['commandParams'][0x0]['forceValue'];return _0x240cf4(o(_0x1e5fd8,_0x1327ce?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x463a96['commandName']){const _0x28917a=_0x463a96['commandParams'][0x0]['forceValue'];return _0x240cf4(o(_0x1e5fd8,_0x28917a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x10c17b=>[_0x10c17b,null]));class It extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x287a2c=this['editor'];if(!_0x287a2c['plugins']['has']('TableClipboard'))return;const _0x2cbeb4=_0x287a2c['plugins']['get']('TrackChangesEditing'),_0x3f0981=_0x287a2c['plugins']['get']('TableUtils'),_0x42a31b=_0x287a2c['plugins']['get'](jt),_0x33f0af=_0x287a2c['plugins']['get']('TableClipboard');_0x42a31b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x287a2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x287a2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b9e8f=null;_0x287a2c['model']['on']('insertContent',(_0x1e31be,_0x24ef3b)=>{const [_0x42d997,_0x240943]=_0x24ef3b,_0x16c37f=_0x24ef3b[_0x24ef3b['length']-0x1];_0x16c37f&&_0x16c37f['forceDefaultExecution']||_0x2cbeb4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x128a46,_0x544851,_0x5a2fd3,_0x130fcd,_0x1efea0){if(_0x544851&&!_0x544851['is']('documentSelection'))return!0x1;const _0x33f747=_0x1efea0['getTableIfOnlyTableInContent'](_0x128a46,_0x5a2fd3);if(!_0x33f747||!he(_0x33f747,void 0x0,_0x130fcd))return!0x1;const _0x495265=_0x130fcd['getSelectionAffectedTableCells'](_0x5a2fd3['document']['selection']);if(!_0x495265['length'])return!0x1;const _0xc1869e=_0x495265[0x0]['findAncestor']('table'),_0x109410=_0x130fcd['getRowIndexes'](_0x495265),_0x59fda7=_0x130fcd['getColumnIndexes'](_0x495265),_0x1f12c3={'startRow':_0x109410['first'],'endRow':_0x109410['last'],'startColumn':_0x59fda7['first'],'endColumn':_0x59fda7['last']};return 0x1==_0x495265['length']&&(_0x1f12c3['endRow']+=_0x130fcd['getRows'](_0x33f747)-0x1,_0x1f12c3['endColumn']+=_0x130fcd['getColumns'](_0x33f747)-0x1),he(_0xc1869e,_0x1f12c3,_0x130fcd);}(_0x42d997,_0x240943,_0x287a2c['model'],_0x3f0981,_0x33f0af)&&(_0x1e31be['stop'](),_0x2b9e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x287a2c['model']['change'](()=>{_0x287a2c['model']['insertContent'](_0x24ef3b[0x0],_0x24ef3b[0x1],_0x24ef3b[0x2],{'forceDefaultExecution':!0x0});const _0x101cfa=_0x48fd30(),{rowInsertionRanges:_0x52d7b3,columnInsertionRanges:_0x588661,insertionRanges:_0x43c62a,deletionRanges:_0xfd52b1,cells:_0x8ca34e}=_0x2b9e8f;_0x52d7b3['length']&&_0x2cbeb4['markMultiRangeInsertion'](_0x52d7b3,'tablePasteRow',{'tablePasteChainId':_0x101cfa}),_0x588661['length']&&_0x2cbeb4['markMultiRangeInsertion'](_0x588661,'tablePasteColumn',{'tablePasteChainId':_0x101cfa}),_0x43c62a['length']&&(_0x2cbeb4['markMultiRangeInsertion'](_0x43c62a,'tablePaste',{'tablePasteChainId':_0x101cfa,'skipNestingCheck':!0x0}),_0x43c62a['forEach'](_0x468196=>_0x468196['detach']?.())),_0xfd52b1['length']&&(_0x2cbeb4['markMultiRangeDeletion'](_0xfd52b1,'tablePaste',{'tablePasteChainId':_0x101cfa,'skipNestingCheck':!0x0}),_0xfd52b1['forEach'](_0xda72ff=>_0xda72ff['detach']?.()));const _0x48ea23=_0x2cbeb4['markMultiRangeBlockFormat'](_0x8ca34e['map'](({element:_0x49ed96})=>_0x49ed96),{'formatGroupId':_0x48fd30()},[],'tablePasteCell',{'tablePasteChainId':_0x101cfa});if(_0x48ea23){const _0x18a1e6=_0x48ea23['getMarkers'](),_0x5c5297=[];for(const {element:_0x1f1863,attributes:_0x3e7d5e}of _0x8ca34e){if(!_0x3e7d5e)continue;const _0x2f3e07=_0x287a2c['model']['createRangeOn'](_0x1f1863),_0x1a4d74=_0x18a1e6['find'](_0x3a5136=>_0x3a5136['getRange']()['isEqual'](_0x2f3e07));_0x1a4d74&&_0x5c5297['push']([_0x1a4d74['name'],_0x3e7d5e]);}_0x5c5297['length']&&_0x48ea23['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c5297));}_0x2b9e8f=null;}));},{'priority':_0x16f094['high']+0xa}),_0x287a2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1b30f8,_0x44f4f4)=>{const [_0x2d3153,_0x3bdf4a,,_0x149e34]=_0x44f4f4;if(!_0x2b9e8f)return;_0x1b30f8['stop']();const _0x4a9cbe=_0x2d3153['cell'],_0x40f615=_0x3bdf4a,_0xac4d0a=Pe(_0x4a9cbe),_0x54879b=Pe(_0x40f615);_0x1b30f8['return']=_0x4a9cbe;let _0x54c841=null,_0x3d0315=null;if(_0x54879b||_0xac4d0a){if(_0xac4d0a&&!_0x54879b){_0x149e34['remove'](_0x4a9cbe['getChild'](0x0));for(const _0x1fe039 of Array['from'](_0x40f615['getChildren']()))_0x149e34['insert'](_0x1fe039,_0x4a9cbe,'end');const _0x5b7d47=_0x2b9e8f['rowInsertionIndexes']['includes'](_0x2d3153['row']),_0x1094f1=_0x2b9e8f['columnInsertionIndexes']['includes'](_0x2d3153['column']);_0x5b7d47||_0x1094f1||(_0x54c841=_0x16e800['fromRange'](_0x149e34['createRangeIn'](_0x4a9cbe)));}else _0x54879b&&!_0xac4d0a&&(_0x3d0315=_0x149e34['createRangeIn'](_0x4a9cbe));}else{const _0x38bb25=_0x149e34['createElement']('tableCellSuggestion'),_0x4707ac=_0x149e34['createElement']('tableCellSuggestion');_0x149e34['wrap'](_0x149e34['createRangeIn'](_0x4a9cbe),_0x4707ac),_0x149e34['insert'](_0x38bb25,_0x4a9cbe,0x0);for(const _0x384345 of Array['from'](_0x40f615['getChildren']()))_0x149e34['insert'](_0x384345,_0x38bb25,'end');_0x54c841=_0x16e800['fromRange'](_0x149e34['createRangeOn'](_0x38bb25)),_0x3d0315=_0x16e800['fromRange'](_0x149e34['createRangeOn'](_0x4707ac));}const _0x1366ad=Array['from'](_0x40f615['getAttributes']())['filter'](([_0x122576])=>ge['includes'](_0x122576));_0x2b9e8f['cells']['push']({'element':_0x4a9cbe,'attributes':_0x1366ad['length']?Object['fromEntries'](_0x1366ad):null}),_0x54c841&&_0x2b9e8f['insertionRanges']['push'](_0x54c841),_0x3d0315&&_0x2b9e8f['deletionRanges']['push'](_0x3d0315);},{'priority':'high'}),_0x3f0981['on']('insertColumns',(_0x41fac4,_0x13163b)=>{const [_0x1cd8a0,_0x211121={}]=_0x13163b;if(!_0x2b9e8f)return;const _0x41123e=_0x211121['at']||0x0,_0x7bd8a3=_0x211121['columns']||0x1;_0x2b9e8f['columnInsertionIndexes']=new Array(_0x7bd8a3)['fill'](_0x41123e)['map']((_0xf102f2,_0x1e1676)=>_0xf102f2+_0x1e1676);for(const {cell:_0xa03fa1}of _0x3f0981['createTableWalker'](_0x1cd8a0,{'startColumn':_0x41123e,'endColumn':_0x41123e+_0x7bd8a3-0x1}))_0x2b9e8f['columnInsertionRanges']['push'](_0x287a2c['model']['createRangeOn'](_0xa03fa1));},{'priority':'low'}),_0x3f0981['on']('insertRows',(_0xc1129,_0x3edd6b)=>{const [_0x1e5120,_0x396678={}]=_0x3edd6b;if(!_0x2b9e8f)return;const _0x41d6cd=_0x396678['at']||0x0,_0x3b4a5b=_0x396678['rows']||0x1;_0x2b9e8f['rowInsertionIndexes']=new Array(_0x3b4a5b)['fill'](_0x41d6cd)['map']((_0xd7fc5c,_0x3ec0ff)=>_0xd7fc5c+_0x3ec0ff);for(const {cell:_0x2b9de8}of _0x3f0981['createTableWalker'](_0x1e5120,{'startRow':_0x41d6cd,'endRow':_0x41d6cd+_0x3b4a5b-0x1}))_0x2b9e8f['rowInsertionRanges']['push'](_0x287a2c['model']['createRangeOn'](_0x2b9de8));},{'priority':'low'}),_0x2cbeb4['descriptionFactory']['registerDescriptionCallback'](_0x26dc86=>{if(_0x26dc86['subType']&&_0x26dc86['subType']['startsWith']('tablePaste'))return _0x26dc86['previous']?{}:{'type':'insertion','content':o(_0x287a2c['locale'],'*Replace\x20table\x20cells*')};});const _0x24351e=()=>!0x1;for(const _0x537272 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion',_0x537272,'join',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('deletion',_0x537272,'join',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x537272,'join',_0x24351e);_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24351e),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13905d,_0x33ed24,_0x39ede6)=>{const _0x1d7012=_0x13905d['map'](_0x5c62cc=>_0x5c62cc['getContainedElement']())['filter'](_0x515f46=>_0x515f46),_0x16829a=new Map(_0x1d7012['map'](_0x1f60a6=>[_0x1f60a6,null]));if(_0x2b9e8f){for(const {element:_0x2baafe,attributes:_0x542627}of _0x2b9e8f['cells'])_0x542627&&_0x16829a['set'](_0x2baafe,_0x542627);}else{if(_0x39ede6&&_0x39ede6['markerAttributes'])for(const [_0x3b6d1a,_0x55d5be]of Object['entries'](_0x39ede6['markerAttributes'])){const _0x57dec4=_0x287a2c['model']['markers']['get'](_0x3b6d1a),_0x48e8f2=_0x57dec4?_0x57dec4['getRange']()['getContainedElement']():null;_0x48e8f2&&_0x16829a['set'](_0x48e8f2,_0x55d5be);}}_0x287a2c['model']['change'](_0xece1b9=>{for(const [_0x1b6967,_0xe9be68]of _0x16829a)_0xece1b9['setAttributes']({...Ce,..._0xe9be68},_0x1b6967);});});const _0x12a7c2=(_0x1e59bf,_0x4e45c7)=>{_0x2cbeb4['_suggestionFactory']['registerCustomCallback'](_0x1e59bf,'tablePaste',_0x4e45c7,(_0x44945c,_0x177f42,_0x1a6e15)=>{_0x287a2c['model']['change'](_0xd4bf3=>{const _0x4531ee=[];for(const _0x48a7e0 of _0x44945c){const _0x127921=_0x48a7e0['start']['nodeAfter'];_0x127921['is']('element','tableCellSuggestion')&&_0x4531ee['push'](_0x127921);}_0x2cbeb4['_suggestionFactory']['getSuggestionCallback'](_0x1e59bf,null,_0x4e45c7)(_0x44945c,_0x177f42,_0x1a6e15);for(const _0x237cc1 of _0x4531ee)'$graveyard'!=_0x237cc1['root']['rootName']&&_0xd4bf3['unwrap'](_0x237cc1);});});};_0x12a7c2('insertion','accept'),_0x12a7c2('insertion','discard'),_0x12a7c2('deletion','accept'),_0x12a7c2('deletion','discard'),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5ebf55=>{const _0x430e15=_0x5ebf55['map'](_0x31927c=>_0x31927c['getContainedElement']()),_0xca0461=_0x430e15[0x0]['findAncestor']('table'),{minRow:_0x1b9355,maxRow:_0x595367}=_0x42a31b['_getCoordsForCells'](_0x430e15);_0x3f0981['removeRows'](_0xca0461,{'at':_0x1b9355,'rows':_0x595367-_0x1b9355+0x1});}),_0x2cbeb4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a7f48=>{const _0x405dcf=_0x4a7f48['map'](_0x25ee47=>_0x25ee47['getContainedElement']()),_0x25fb22=_0x405dcf[0x0]['findAncestor']('table'),{minColumn:_0x5b0d88,maxColumn:_0xea3c3a}=_0x42a31b['_getCoordsForCells'](_0x405dcf);_0x3f0981['removeColumns'](_0x25fb22,{'at':_0x5b0d88,'columns':_0xea3c3a-_0x5b0d88+0x1});});const _0x1f91ec=(_0x4b39ae,_0x576079)=>{if(!_0x576079['subType']||!_0x576079['subType']['startsWith']('tablePaste'))return;const _0x4945c0=_0x576079['attributes']['tablePasteChainId'],_0x6469de=_0x2cbeb4['getSuggestions']()['filter'](_0x26eff8=>_0x26eff8['isInContent']&&_0x26eff8['attributes']&&_0x26eff8['attributes']['tablePasteChainId']==_0x4945c0);_0x6469de['length']&&_0x576079['getAllAdjacentSuggestions']()['length']!=_0x6469de['length']&&_0x6469de['reduce']((_0x2eec09,_0x3256af)=>(_0x2eec09['next']=_0x3256af,_0x3256af['previous']=_0x2eec09,_0x3256af));};function _0x2b684d(_0x13045f,_0x23840e=!0x0){const {id:_0x8407d8}=_0x2cbeb4['_splitMarkerName'](_0x13045f['markerName']),_0x3dfcd7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33d0ce=_0x2cbeb4['activeMarkers']['includes'](_0x13045f['markerName']);return _0x33d0ce&&_0x3dfcd7['push']('ck-suggestion-marker--active'),{'classes':_0x3dfcd7,'attributes':{'data-suggestion':_0x8407d8},'priority':_0x33d0ce&&_0x23840e?0xbc2:0xbb8};}_0x2cbeb4['on']('suggestionLoaded',_0x1f91ec,{'priority':'high'}),_0x2cbeb4['on']('suggestionUnloaded',_0x1f91ec,{'priority':'high'}),_0x287a2c['model']['document']['registerPostFixer'](()=>{let _0x25914e=!0x1;const _0x28a44f=Array['from'](_0x287a2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42ed70,data:_0x492d17}of _0x28a44f){const {group:_0x2e1995,type:_0x581d87,id:_0x59230e}=_0x2cbeb4['_splitMarkerName'](_0x42ed70);if('suggestion'!=_0x2e1995||'deletion'!=_0x581d87||_0x492d17['oldRange'])continue;if(!_0x2cbeb4['hasSuggestion'](_0x59230e))continue;const _0x491968=_0x2cbeb4['getSuggestion'](_0x59230e)['getRanges'](),_0x4ed768=_0x287a2c['plugins']['get']('Users')['me'];for(const _0x1a0f92 of _0x2cbeb4['getSuggestions']()){if(!_0x1a0f92['isInContent']||_0x1a0f92['author']!=_0x4ed768)continue;if('formatBlock'!=_0x1a0f92['type']||'tablePasteCell'!=_0x1a0f92['subType'])continue;if(_0x1a0f92['getRanges']()['every'](_0x1426c8=>_0x491968['some'](_0x410539=>_0x410539['containsRange'](_0x1426c8,!0x0)))){for(const _0x1df590 of _0x1a0f92['getAllAdjacentSuggestions']())_0x1df590['isInContent']&&(_0x1df590['discard'](),_0x25914e=!0x0);}}}return _0x25914e;}),_0x287a2c['model']['document']['registerPostFixer'](_0x28a58d=>{const _0x37430c=_0x287a2c['commands']['get']('redo');if(!_0x37430c||!_0x37430c['_createdBatches']['has'](_0x28a58d['batch']))return!0x1;let _0x33de69=!0x1;const _0x5a2f37=_0x287a2c['plugins']['get']('Users')['me'],_0x39d085=_0x287a2c['model']['document']['differ']['getChanges'](),_0x3332eb=Array['from'](_0x287a2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32c31d,data:_0x841ec4})=>{const {group:_0x49b24d,subType:_0x44add9,authorId:_0x19ce82}=_0x2cbeb4['_splitMarkerName'](_0x32c31d);return'suggestion'==_0x49b24d&&'tablePaste'==_0x44add9&&_0x19ce82==_0x5a2f37['id']&&!_0x841ec4['oldRange'];});for(const _0x33be2f of _0x39d085){if('insert'!=_0x33be2f['type']||'tableCellSuggestion'!=_0x33be2f['name']||0x1!=_0x33be2f['length'])continue;const _0x3cad80=_0x28a58d['createRange'](_0x33be2f['position'],_0x33be2f['position']['getShiftedBy'](0x1));if(!_0x3332eb['find'](({data:_0x1d9138})=>_0x1d9138['newRange']['isEqual'](_0x3cad80))){for(const {name:_0x11e61f,data:_0x57884a}of _0x3332eb)if(_0x3cad80['containsRange'](_0x57884a['newRange'])){_0x28a58d['updateMarker'](_0x11e61f,{'range':_0x3cad80}),_0x33de69=!0x0;break;}}}return _0x33de69;}),_0x287a2c['model']['document']['registerPostFixer'](_0xfe755d=>{let _0x72d2c6=!0x1;const _0x265ef5=_0x287a2c['plugins']['get']('Users')['me'],_0x3f1bc8=_0x2cbeb4['getSuggestions']()['filter'](_0x3145ff=>_0x3145ff['isInContent']&&_0x3145ff['author']==_0x265ef5),_0x50799b=new Set(),_0x3a803e=new Set();for(const _0x382e6f of _0x3f1bc8)if('tablePaste'==_0x382e6f['subType'])for(const _0x1845ab of _0x382e6f['getMarkers']()){const _0xde4c40=_0x1845ab['getRange']()['getContainedElement']();if(_0xde4c40){if(_0xde4c40['is']('element','tableCellSuggestion')&&Pe(_0xde4c40)){_0x382e6f['removeMarker'](_0x1845ab['name']),_0x50799b['add'](_0xde4c40),_0x72d2c6=!0x0;const _0x24d8f1=_0xde4c40['nextSibling'],_0x41a73c=_0xde4c40['previousSibling'],_0x5b8e7a=_0x24d8f1&&_0x24d8f1['is']('element','tableCellSuggestion'),_0x37ced8=_0x41a73c&&_0x41a73c['is']('element','tableCellSuggestion');_0x5b8e7a&&!_0x50799b['has'](_0x24d8f1)&&_0x3a803e['add'](_0x24d8f1),_0x37ced8&&!_0x50799b['has'](_0x41a73c)&&_0x3a803e['add'](_0x41a73c);}else _0xde4c40['is']('element','paragraph')&&_0xde4c40['isEmpty']&&(_0x382e6f['removeMarker'](_0x1845ab['name']),_0x72d2c6=!0x0);}}else{if('tablePasteCell'==_0x382e6f['subType']){if(!_0x382e6f['attributes']||!_0x382e6f['attributes']['tablePasteChainId'])continue;const _0x1dbea6=_0x382e6f['attributes']['markerAttributes'];if(_0x1dbea6&&Object['keys'](_0x1dbea6)['length'])continue;const _0x31aefb=_0x382e6f['attributes']['tablePasteChainId'];let _0x231ba4=!0x0,_0x38c521=!0x0;for(const _0x23585d of _0x3f1bc8)if(_0x23585d['subType']&&_0x23585d['subType']['startsWith']('tablePaste')){if(!_0x23585d['attributes']['tablePasteChainId']){_0x38c521=!0x1;break;}if(_0x23585d['id']!=_0x382e6f['id']&&_0x23585d['attributes']['tablePasteChainId']==_0x31aefb){_0x231ba4=!0x1;break;}}_0x38c521&&_0x231ba4&&(_0x382e6f['removeMarkers'](),_0x72d2c6=!0x0);}}for(const _0x31973b of _0x50799b)_0xfe755d['remove'](_0x31973b);for(const _0x721820 of _0x3a803e)_0xfe755d['unwrap'](_0x721820);return _0x72d2c6;}),_0x287a2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b868a,_0x2eb702)=>_0x2b684d(_0x5b868a),'converterPriority':'high'}),_0x287a2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33a6bd,_0x4778e7)=>_0x4778e7['options']['showSuggestionHighlights']?_0x2b684d(_0x33a6bd,!0x1):null,'converterPriority':'high'});const _0xe1c53a=_0x287a2c['editing']['view'];this['listenTo'](_0xe1c53a['document'],'clipboardOutput',(_0x3fb478,_0x3ef414)=>{const _0x19ffdf=[];for(const _0x1645c1 of _0xe1c53a['createRangeIn'](_0x3ef414['content'])['getItems']())_0x1645c1['is']('element','suggestion-td')&&_0x19ffdf['push'](_0x1645c1);_0xe1c53a['change'](_0x7d5908=>{for(const _0x54432f of _0x19ffdf)_0x7d5908['move'](_0x7d5908['createRangeIn'](_0x54432f),_0x7d5908['createPositionBefore'](_0x54432f)),_0x7d5908['remove'](_0x54432f);});});}}function Pe(_0x14f31e){if(_0x14f31e['isEmpty'])return!0x0;const _0x259248=_0x14f31e['getChild'](0x0);return _0x259248['is']('element','paragraph')&&_0x259248['isEmpty'];}function he(_0x25eef2,_0x2961a0={},_0x3bbf45){for(const {isAnchor:_0x246941,cellHeight:_0x4c065d,cellWidth:_0x206b73}of _0x3bbf45['createTableWalker'](_0x25eef2,{'includeAllSlots':!0x0,..._0x2961a0}))if(!_0x246941||0x1!=_0x4c065d||0x1!=_0x206b73)return!0x1;return!0x0;}class vt extends _0x5297f7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x175f4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x175f4d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x175f4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x175f4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x175f4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x175f4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x175f4d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x220abb,_0x52c682){const _0x3bfd47=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25713e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a57ef=_0x52c682['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x579bd7=_0x25713e['getColumnGroupElement'](_0x4a57ef);let _0x18105b=_0x579bd7?_0x25713e['getTableColumnsWidths'](_0x579bd7):null,_0x1ae562=_0x4a57ef['getAttribute']('tableWidth')||null;const _0x362a2c=_0x52c682['tableWidth']||_0x1ae562,_0x5b7be4=_0x52c682['columnWidths']||_0x18105b,_0x2bdd2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x20b43f of _0x3bfd47['getSuggestions']()){const _0x32c878=_0x20b43f['getContainedElement']();if('resizeTable'===_0x20b43f['subType']&&_0x32c878===_0x4a57ef){_0x20b43f['author']!==_0x2bdd2d&&_0x20b43f['discard']();const _0x47166d=_0x20b43f['data']['commandParams'];_0x1ae562=_0x47166d[0x0]['tableWidth'],_0x18105b=_0x47166d[0x0]['columnWidths'];break;}}_0x220abb({'table':_0x4a57ef,'tableWidth':_0x362a2c,'columnWidths':_0x5b7be4}),_0x3bfd47['markBlockFormat'](_0x4a57ef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ae562,'columnWidths':_0x18105b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x109241){if('formatBlock'!=_0x109241['type']&&'formatInline'!=_0x109241['type'])return;const {data:_0x39668c}=_0x109241;if(_0x39668c&&'resizeTable'===_0x39668c['formatGroupId']){const _0x2bc7ce='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2bc7ce)};}}}class Ct extends _0x5297f7{['afterInit'](){const _0x1d72b7=this['editor'];_0x1d72b7['plugins']['has']('Template')&&_0x1d72b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5297f7{['afterInit'](){const _0x327d87=this['editor'];if(!_0x327d87['commands']['get']('insertTableOfContents'))return;_0x327d87['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x393e43=_0x327d87['plugins']['get']('TrackChangesEditing'),_0x23626c=_0x327d87['locale'];_0x393e43['descriptionFactory']['registerElementLabel']('tableOfContents',_0x543428=>o(_0x23626c,'ELEMENT_TABLE_OF_CONTENTS',_0x543428));}}class Dt extends _0x5297f7{['afterInit'](){const _0x1f04f4=this['editor'];if(!_0x1f04f4['plugins']['has']('Title'))return;const _0xe2c911=_0x1f04f4['plugins']['get']('TrackChangesEditing');_0xe2c911['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1f04f4['locale'],'ELEMENT_TITLE')),_0x1f04f4['model']['document']['registerPostFixer'](_0x3c3622=>{let _0x562c25=!0x1;const _0x33b529=Array['from'](_0x1f04f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc6e486,data:_0x2ddbf6}of _0x33b529){const {group:_0x532352}=_0xe2c911['_splitMarkerName'](_0xc6e486);if('suggestion'!==_0x532352||!_0x2ddbf6['newRange'])continue;const _0x403f8a=_0x2ddbf6['newRange'],_0x388d9f=_0x403f8a['end']['nodeBefore'];if(!_0x388d9f||!_0x388d9f['is']('element','title-content'))continue;if(!_0x403f8a['start']['isTouching'](_0x403f8a['end']))continue;const _0x79a4f3=_0x1f04f4['model']['schema']['getNearestSelectionRange'](_0x403f8a['end'],'forward');if(_0x79a4f3&&_0x79a4f3['isCollapsed']){const _0xc2497d=_0x3c3622['createRange'](_0x403f8a['start'],_0x79a4f3['start']);_0xc2497d['isEqual'](_0x403f8a)||(_0x3c3622['updateMarker'](_0xc6e486,{'range':_0xc2497d}),_0x562c25=!0x0);}_0x562c25||(_0x3c3622['removeMarker'](_0xc6e486),_0x562c25=!0x0);}return _0x562c25;});}}class Nt extends _0x5297f7{['afterInit'](){const _0x18b696=this['editor'],_0x2628e8=_0x18b696['plugins']['get']('TrackChangesEditing');_0x18b696['plugins']['has']('UndoEditing')&&(_0x2628e8['enableCommand']('undo'),_0x2628e8['enableCommand']('redo'));}}class Mt extends _0x5297f7{static get['requires'](){return[jt];}['afterInit'](){const _0x1f8bd5=this['editor'];if(!_0x1f8bd5['plugins']['has']('TableCaptionEditing'))return;_0x1f8bd5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5297f7{['tableProperties'];['tableCellProperties'];constructor(_0x16bc4a){super(_0x16bc4a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x24a396=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4cc4b7 of this['tableProperties'])_0x24a396['enableCommand'](_0x4cc4b7,(_0x411e94,_0x18b2a4)=>{const _0x17acb2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4cc4b7,[_0x17acb2],this['tableProperties'],'tableProperties',_0x411e94,_0x18b2a4);});_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x24a396['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e89b6,_0x4eed3a)=>this['handleDiscardAction'](this['tableProperties'],_0x3e89b6,_0x4eed3a)),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8adc69 of this['tableCellProperties'])_0x24a396['enableCommand'](_0x8adc69,(_0x20480f,_0x1d7c4b)=>{const _0x3ea4bb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8adc69,_0x3ea4bb,this['tableCellProperties'],'tableCellProperties',_0x20480f,_0x1d7c4b);});_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x24a396['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x566c53,_0x5129c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x566c53,_0x5129c3)),_0x24a396['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x24a396['descriptionFactory']['registerDescriptionCallback'](_0x2bdd10=>this['handleSuggestionDescription'](_0x2bdd10));}['_handlePropertyChange'](_0x10ad32,_0x20fc9b,_0x4a1d46,_0x2bea22,_0x8dd1c1,_0x4e7f35){const _0x47a7e5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e7f35['batch'],()=>{for(const _0x2df354 of _0x20fc9b){if(this['_getSuggestion'](_0x2df354,_0x2bea22))_0x8dd1c1(_0x4e7f35);else{const _0x5c0e41={};for(const _0x4b1c3f of _0x4a1d46){const _0x25b18c=_0x2df354['getAttribute'](_0x4b1c3f);void 0x0!==_0x25b18c&&(_0x5c0e41[_0x4b1c3f]=_0x25b18c);}_0x8dd1c1(_0x4e7f35),_0x47a7e5['markBlockFormat'](_0x2df354,{'commandParams':[_0x5c0e41]},[],_0x2bea22);}}});}['handleDiscardAction'](_0x11a5dd,_0x338cd7,_0x3720a3){const _0x512671=_0x338cd7[0x0]['start']['nodeAfter'],_0x188ef5=_0x3720a3['commandParams'][0x0];this['editor']['model']['change'](_0x5c1523=>{for(const _0x53426e of _0x11a5dd)void 0x0!==_0x188ef5[_0x53426e]?_0x5c1523['setAttribute'](_0x53426e,_0x188ef5[_0x53426e],_0x512671):_0x5c1523['removeAttribute'](_0x53426e,_0x512671);});}['handleSuggestionDescription'](_0x1c5efa){if(_0x1c5efa['data'])switch(_0x1c5efa['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x42b901,_0x48d9eb){const _0x1cc9ae=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4b16f4 of _0x1cc9ae['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b14a4=_0x4b16f4['getContainedElement']();if(_0x4b16f4['subType']===_0x48d9eb&&_0x3b14a4===_0x42b901)return _0x4b16f4;}return null;}}const m='$elementName';class p extends _0x5297f7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4306be,_0x3ae443,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x227dbc){function _0x13a949(_0xfad3b2){return _0xfad3b2['map'](_0xace83b=>String['fromCharCode'](_0xace83b))['join']('');}super(_0x227dbc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x584df0,_0x325899,_0x29fc83,_0x461803)=>{this['_model']['change'](()=>{for(const _0x4048ff of[..._0x461803,..._0x29fc83])this['_model']['markers']['has'](_0x4048ff)&&_0x227dbc['editing']['reconvertMarker'](_0x4048ff);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x227dbc['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x227dbc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x227dbc['config']['get']('trackChanges.trackFormatChanges'),_0x227dbc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x227dbc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x227dbc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x13a949([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13a949([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x34]);}['init'](){const _0x4a635b=this['editor'],_0x3247bb=(_0x2f58ec,_0x2973e2)=>{if('attribute'!=_0x2f58ec)return'ck-suggestion-marker-'+_0x2f58ec;const _0x188331=_0x2973e2['split']('|')[0x0];return this['_isBlockAttribute'](_0x188331)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a635b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2734f7=>{const {id:_0xe9df70,type:_0x19bb49,subType:_0x3a02a1}=this['_splitMarkerName'](_0x2734f7['markerName']),_0x3742d6=['ck-suggestion-marker',_0x3247bb(_0x19bb49,_0x3a02a1)];let _0x217085=0xbb8;return this['activeMarkers']['includes'](_0x2734f7['markerName'])&&(_0x3742d6['push']('ck-suggestion-marker--active'),_0x217085=0xbc2),'deletion'==_0x19bb49&&(_0x217085+=0x5),{'classes':_0x3742d6,'attributes':{'data-suggestion':_0xe9df70},'priority':_0x217085};}}),_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x45eedc=>{_0x45eedc['on']('addMarker:suggestion',(_0x3b1bda,_0x580658,_0x3b3a5a)=>{if(!_0x3b3a5a['options']['showSuggestionHighlights'])return;const _0x3f7d94=_0x580658['item'];if(!_0x3f7d94)return;const _0x8eb62b=_0x3b3a5a['mapper']['toViewElement'](_0x3f7d94);_0x4a635b['model']['schema']['isObject'](_0x3f7d94)&&_0x8eb62b&&!_0x8eb62b['getCustomProperty']('widget')&&_0x8eb62b['is']('containerElement')&&_0x52b614(_0x8eb62b,_0x3b3a5a['writer']);},{'priority':'high'});}),_0x4a635b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x51cf56,_0x2ecaf4)=>{if(!_0x2ecaf4['options']['showSuggestionHighlights'])return null;const {type:_0x1432c4,subType:_0xd9143a}=this['_splitMarkerName'](_0x51cf56['markerName']);return{'classes':['ck-suggestion-marker',_0x3247bb(_0x1432c4,_0xd9143a)],'priority':0xbb8};}});const _0x315aac=({showActiveMarkers:_0x5a98e6=!0x0,isAttributeSuggestion:_0x589987=!0x1}={})=>(_0x4e9f78,_0x2cf640,_0x1036d2)=>{if(!_0x2cf640['item'])return;const {id:_0x1e6772}=this['_splitMarkerName'](_0x2cf640['markerName']);if(_0x589987){const _0x4572df=this['_suggestions']['get'](_0x1e6772),_0x3eddd0=this['_getAttributeKey'](_0x4572df);if(!this['_isBlockAttribute'](_0x3eddd0))return;}if(_0x2cf640['item']['is']('selection'))return void _0x1036d2['consumable']['consume'](_0x2cf640['item'],_0x4e9f78['name']);const _0x56e48c=_0x1036d2['mapper']['toViewElement'](_0x2cf640['item']);if(_0x2cf640['item']['is']('element')&&_0x4a635b['model']['schema']['isBlock'](_0x2cf640['item'])&&!_0x56e48c['getCustomProperty']('addHighlight')){_0x1036d2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56e48c),_0x1036d2['writer']['setAttribute']('data-suggestion',_0x1e6772,_0x56e48c),_0x1036d2['mapper']['bindElementToMarker'](_0x56e48c,_0x2cf640['markerName']),_0x5a98e6&&(this['activeMarkers']['includes'](_0x2cf640['markerName'])?_0x1036d2['writer']['addClass']('ck-suggestion-marker--active',_0x56e48c):_0x1036d2['writer']['removeClass']('ck-suggestion-marker--active',_0x56e48c));for(const _0x24267b of _0x4a635b['model']['createRangeIn'](_0x2cf640['item'])['getItems']())_0x1036d2['consumable']['consume'](_0x24267b,_0x4e9f78['name']);_0x1036d2['consumable']['consume'](_0x2cf640['item'],_0x4e9f78['name']);}};_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x230fe9=>{_0x230fe9['on']('addMarker:suggestion:formatBlock',(_0x2c2e5f,_0x7154af,_0x57e3a7)=>{_0x57e3a7['options']['showSuggestionHighlights']&&_0x315aac({'showActiveMarkers':!0x1})(_0x2c2e5f,_0x7154af,_0x57e3a7);},{'priority':'highest'});}),_0x4a635b['conversion']['for']('dataDowncast')['add'](_0x82fd1a=>{_0x82fd1a['on']('addMarker:suggestion:attribute',(_0x231ed5,_0x707494,_0x4ca8e8)=>{_0x4ca8e8['options']['showSuggestionHighlights']&&_0x315aac({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x231ed5,_0x707494,_0x4ca8e8);},{'priority':'highest'});}),_0x4a635b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27028a,_0x397d06)=>_0x397d06['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27028a['substr'](0xb)}}),_0x4a635b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x51dead,{writer:_0x1de29e})=>{let _0x15978b='suggestion:'+_0x51dead['getAttribute']('suggestion-type')+':'+_0x51dead['getAttribute']('id');return _0x51dead['getAttribute']('marker-count')&&(_0x15978b+=':'+_0x51dead['getAttribute']('marker-count')),_0x1de29e['createElement']('$marker',{'data-name':_0x15978b});}}),_0x4a635b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x525bc3=>{_0x525bc3['on']('addMarker:suggestion:formatBlock',_0x315aac(),{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x262b79=>{_0x262b79['on']('addMarker:suggestion:attribute',_0x315aac({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x1ba2f4=>{_0x1ba2f4['on']('removeMarker:suggestion:formatBlock',(_0x5f0edb,_0x55e8af,_0x419838)=>{const _0x4b855a=_0x419838['mapper']['markerNameToElements'](_0x55e8af['markerName']);if(_0x4b855a){for(const _0x226a3a of _0x4b855a)_0x226a3a['getCustomProperty']('addHighlight')||(_0x419838['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x226a3a),_0x419838['writer']['removeAttribute']('data-suggestion',_0x226a3a),_0x419838['mapper']['unbindElementFromMarkerName'](_0x226a3a,_0x55e8af['markerName']));}},{'priority':'high'});}),_0x4a635b['conversion']['for']('editingDowncast')['add'](_0x20a76c=>{_0x20a76c['on']('removeMarker:suggestion:attribute',(_0x3594a5,_0x113c0d,_0x266516)=>{const _0x5ca250=_0x266516['mapper']['markerNameToElements'](_0x113c0d['markerName']);if(!_0x5ca250)return;const {id:_0x381a1c}=this['_splitMarkerName'](_0x113c0d['markerName']),_0x210874=this['_suggestions']['get'](_0x381a1c),_0x53ef50=this['_getAttributeKey'](_0x210874);if(this['_isBlockAttribute'](_0x53ef50)){for(const _0x399f95 of _0x5ca250)_0x399f95['getCustomProperty']('addHighlight')||(_0x266516['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x399f95),_0x266516['writer']['removeAttribute']('data-suggestion',_0x399f95),_0x266516['mapper']['unbindElementFromMarkerName'](_0x399f95,_0x113c0d['markerName']));}},{'priority':'high'});}),_0x4a635b['model']['document']['registerPostFixer'](_0x267d02=>{let _0x35235f=!0x1;const _0x2884d5=Array['from'](_0x4a635b['model']['document']['differ']['getChangedMarkers']()),_0x4ad880=new Set();for(const {name:_0x30af25,data:_0x3cc5e3}of _0x2884d5){const {group:_0x26f516,type:_0x1412a4,subType:_0x5d7f84,id:_0x4d52f7}=this['_splitMarkerName'](_0x30af25);if('suggestion'!==_0x26f516)continue;const _0x2c8850=this['_suggestions']['get'](_0x4d52f7);if(null!=_0x3cc5e3['newRange']){'formatInline'==_0x1412a4&&(_0x35235f=_0x35235f||Et(_0x3cc5e3['newRange'],_0x30af25,_0x267d02,_0x4a635b['model']['schema']));const _0xd33f6a='attribute'==_0x1412a4&&this['_isBlockAttribute'](_0x5d7f84['split']('|')[0x0]);if(_0x3cc5e3['newRange']['isCollapsed']||'$graveyard'==_0x3cc5e3['newRange']['root']['rootName']||'formatBlock'==_0x1412a4&&!Ut(_0x3cc5e3['newRange'])||_0xd33f6a&&!Ut(_0x3cc5e3['newRange'])||'deletion'==_0x1412a4&&!(!Tt(_0x11687c=_0x3cc5e3['newRange'])&&!function(_0x292b42){return _0x292b42['start']['parent']==_0x292b42['end']['nodeBefore']&&_0x292b42['start']['isAtEnd'];}(_0x11687c)))_0x267d02['removeMarker'](_0x30af25),_0x35235f=!0x0;else{if(!_0x2c8850||!_0x2c8850['isInContent'])continue;_0x4ad880['add'](_0x2c8850);}}}var _0x11687c;return _0x4ad880['size']>0x0&&(_0x35235f=!!this['_joinWithAdjacentSuggestions'](_0x4ad880)||_0x35235f),_0x35235f;}),_0x4a635b['model']['document']['registerPostFixer'](_0x405993=>{let _0x1d42da=!0x1;for(const _0x24976b of _0x4a635b['model']['document']['differ']['getChanges']())if('insert'==_0x24976b['type'])for(const _0x203f1d of this['_suggestions']['values']()){if(_0x203f1d['isMultiRange']||!_0x203f1d['isInContent'])continue;const _0x391c8a='formatBlock'==_0x203f1d['type'],_0x2d5739=this['_getAttributeKey'](_0x203f1d),_0x5373c9=_0x2d5739&&this['_isBlockAttribute'](_0x2d5739);if(!_0x391c8a&&!_0x5373c9)continue;const _0x47b793=_0x203f1d['getFirstRange']();if(_0x47b793['start']['parent']!=_0x47b793['end']['parent']&&!_0x47b793['end']['isAtEnd']){const _0xf8ff0c=_0x4a635b['model']['createPositionAt'](_0x47b793['start']['nodeAfter'],'end'),_0x2dd9ac=_0x4a635b['model']['createRange'](_0x47b793['start'],_0xf8ff0c);_0x405993['updateMarker'](_0x203f1d['getFirstMarker'](),{'range':_0x2dd9ac}),_0x1d42da=!0x0;}}return _0x1d42da;}),_0x4a635b['model']['document']['registerPostFixer'](_0x3d932d=>this['_processAttributeChanges'](_0x3d932d)),_0x4a635b['model']['document']['registerPostFixer'](_0x2478bd=>!_0x2478bd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2478bd)),_0x4a635b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a635b['model']['document']['on']('change:data',(_0xf0c1f4,_0x32af18)=>{if(!_0x32af18['isLocal']||_0x32af18['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x583e41=_0x4a635b['model']['document']['differ']['getChanges']();if(0x0==_0x583e41['length'])return;const _0x4b05f5=[],_0x5b6286=_0x583e41['filter'](_0x1c7045=>'attribute'==_0x1c7045['type']),_0x2a2f76=_0x583e41['filter'](_0x3718d5=>'insert'==_0x3718d5['type']&&'$text'!=_0x3718d5['name']);for(const _0x36087b of _0x5b6286)this['_isRegisteredAttribute'](_0x36087b['attributeKey'])&&_0x4b05f5['push']({'key':_0x36087b['attributeKey'],'newValue':_0x36087b['attributeNewValue'],'oldValue':_0x36087b['attributeOldValue'],'range':Ot(_0x36087b['range'],_0x4a635b['model'])});for(const _0x539bce of _0x2a2f76){if('rename'!=_0x539bce['action']&&'refresh'!=_0x539bce['action'])continue;const _0x555bf3=Gt(_0x539bce['position']['nodeAfter'],_0x4a635b['model']),_0x59646f=_0x539bce['before'];'rename'==_0x539bce['action']&&_0x4b05f5['push']({'key':m,'newValue':_0x539bce['name'],'oldValue':_0x59646f['name'],'range':_0x555bf3});for(const [_0x4a76e8,_0x318d1d]of _0x59646f['attributes']){if(!this['_isRegisteredAttribute'](_0x4a76e8))continue;const _0x1cd8f0=_0x539bce['attributes']['get'](_0x4a76e8);_0x318d1d!==_0x1cd8f0&&_0x4b05f5['push']({'key':_0x4a76e8,'newValue':_0x1cd8f0,'oldValue':_0x318d1d,'range':_0x555bf3});}for(const [_0x2cbe5c,_0x2ffb86]of _0x539bce['attributes'])this['_isRegisteredAttribute'](_0x2cbe5c)&&(_0x59646f['attributes']['has'](_0x2cbe5c)||_0x4b05f5['push']({'key':_0x2cbe5c,'newValue':_0x2ffb86,'oldValue':null,'range':_0x555bf3}));}0x0!=_0x4b05f5['length']&&_0x4a635b['model']['enqueueChange'](_0x32af18,_0x5474bb=>{const _0xa23d63=_0x48fd30();for(const {range:_0x2b51c8,key:_0x5cfa0b,oldValue:_0x41645c,newValue:_0x437f73}of _0x4b05f5)this['markAttributeChange'](_0x2b51c8,_0x5cfa0b,_0x41645c,_0x437f73,{'groupId':_0xa23d63});this['_reduceExistingSuggestions'](_0x5474bb,_0x4b05f5);});},{'priority':'lowest'}),_0x4a635b['model']['markers']['on']('update:suggestion',(_0x2e5504,_0xffb863,_0x57db73)=>{if(null==_0x57db73){const {id:_0x53f011}=this['_splitMarkerName'](_0xffb863['name']),_0x5277ab=this['_suggestions']['get'](_0x53f011);_0x5277ab&&_0x5277ab['addMarkerName'](_0xffb863['name']);}}),_0x4a635b['model']['document']['on']('change:data',()=>{const _0x15a9d3=Array['from'](_0x4a635b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d6d4b=>'suggestion'===this['_splitMarkerName'](_0x2d6d4b['name'])['group']);if(0x0===_0x15a9d3['length'])return;_0x15a9d3['sort']((_0x4c79be,_0x2ea27e)=>{const _0x407d98=_0x4c79be['data']['oldRange'],_0x520408=_0x2ea27e['data']['oldRange'];return null===_0x407d98&&null===_0x520408?0x0:null===_0x407d98&&null!==_0x520408?-0x1:null!==_0x407d98&&null===_0x520408?0x1:_0x407d98['start']['isBefore'](_0x520408['start'])?-0x1:0x1;});const _0x2847d8=new Set(),_0x375ac0=new Set();for(const {name:_0x23e3c7,data:_0x402438}of _0x15a9d3){const {id:_0x34aaa2}=this['_splitMarkerName'](_0x23e3c7);if(null===_0x402438['oldRange']){const _0x4ce10e=this['_handleNewSuggestionMarker'](_0x23e3c7);_0x375ac0['add'](_0x4ce10e);}else{const _0x1b4dae=this['_suggestions']['get'](_0x34aaa2);null!==_0x402438['newRange']||_0x1b4dae['isInContent']?(_0x2847d8['add'](_0x1b4dae['head']),_0x375ac0['add'](_0x1b4dae)):this['_removeSuggestion'](_0x1b4dae);}}_0x375ac0['size']>0x0&&this['_refreshSuggestionsChain'](_0x375ac0);for(const _0x36bafc of _0x2847d8)this['fire']('suggestionChanged',_0x36bafc);}),_0x4a635b['model']['on']('applyOperation',(_0x11eadc,_0x394aca)=>{const _0x44a041=_0x394aca[0x0];if(!this['_suggestions']['size'])return;if(!_0x44a041['isDocumentOperation'])return;if(_0x44a041['batch']['isUndo']||!_0x44a041['batch']['isLocal'])return;let _0x466cbd,_0xeecd2c;switch(_0x44a041['type']){case'insert':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['position']),_0xeecd2c=_0x466cbd['getShiftedBy'](_0x44a041['howMany']);break;case'split':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['splitPosition']),_0xeecd2c=_0x4a635b['model']['createPositionAt'](_0x44a041['moveTargetPosition']);break;case'move':_0x466cbd=_0x4a635b['model']['createPositionAt'](_0x44a041['targetPosition']),_0xeecd2c=_0x466cbd['getShiftedBy'](_0x44a041['howMany']);break;default:return;}const _0x327b0b=_0x4a635b['model']['createRange'](_0x466cbd,_0xeecd2c);_0x4a635b['model']['change'](()=>{for(const {suggestion:_0x5971b0,meta:_0x4b161b}of this['_findSuggestions'](_0x327b0b)){if(_0x5971b0['isMultiRange'])continue;if('formatInline'==_0x5971b0['type'])continue;const _0x39e100=this['_getAttributeKey'](_0x5971b0);if(_0x39e100&&this['_isBlockAttribute'](_0x39e100)&&'split'!=_0x44a041['type'])continue;const _0x22b71a=_0x5971b0['data']&&_0x5971b0['data']['multipleBlocks'];('formatBlock'!=_0x5971b0['type']||'split'==_0x44a041['type']&&!_0x22b71a)&&(_0x4b161b['containsRangeInObject']||'insertion'==_0x5971b0['type']&&_0x4b161b['isOwn']||_0x5971b0['getFirstRange']()['containsRange'](_0x327b0b)&&this['_breakSuggestionMarker'](_0x5971b0,_0x466cbd,_0xeecd2c));}});},{'priority':'lowest'}),_0x4a635b['model']['on']('deleteContent',(_0x2fc30c,_0x59f385)=>{const _0x29f6f4=_0x59f385[0x0],_0x4c6b03=_0x59f385[0x1];if(_0x4c6b03&&_0x4c6b03['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x29f6f4['isCollapsed'])return;const _0x1704f7=_0x4a635b['model']['schema'],{start:_0x263b01,end:_0xcc3fba}=_0x29f6f4['getFirstRange'](),_0x10bada=_0x263b01['nodeAfter']&&_0x1704f7['isLimit'](_0x263b01['nodeAfter'])?null:_0x1704f7['getNearestSelectionRange'](_0x263b01,'forward'),_0x34c7ea=_0xcc3fba['nodeBefore']&&_0x1704f7['isLimit'](_0xcc3fba['nodeBefore'])?null:_0x1704f7['getNearestSelectionRange'](_0xcc3fba,'backward'),_0x132f3d=_0x4a635b['model']['createRange'](_0x10bada?_0x10bada['start']:_0x263b01,_0x34c7ea?_0x34c7ea['end']:_0xcc3fba);_0x4a635b['model']['change'](_0x1303b8=>{this['markDeletion'](_0x132f3d);const _0x5c433e=_0x4a635b['model']['schema']['getNearestSelectionRange'](_0x132f3d['start']);_0x29f6f4['is']('documentSelection')?_0x1303b8['setSelection'](_0x5c433e):_0x29f6f4['setTo'](_0x5c433e);}),_0x2fc30c['stop']();},{'priority':_0x16f094['normal']+0xa}),_0x4a635b['model']['on']('insertContent',(_0x353e14,_0x4e5d66)=>{const _0x7e6ea2=_0x4e5d66[_0x4e5d66['length']-0x1];_0x7e6ea2&&_0x7e6ea2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a635b['model']['change'](()=>{let _0x3af836=_0x4a635b['model']['insertContent'](_0x4e5d66[0x0],_0x4e5d66[0x1],_0x4e5d66[0x2],{'forceDefaultExecution':!0x0});if(!_0x3af836)return;_0x353e14['return']=_0x3af836['clone']();const _0x4d727c=_0x3af836['end']['nodeBefore'],_0x4685a6=_0x4a635b['model']['schema'];_0x4d727c&&_0x4685a6['isBlock'](_0x4d727c)&&!_0x4685a6['isObject'](_0x4d727c)&&(_0x3af836=_0x4a635b['model']['createRange'](_0x3af836['start'],_0x4a635b['model']['createPositionAt'](_0x4d727c,'end'))),this['markInsertion'](_0x3af836);}),_0x353e14['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44bf37=new $(_0x4a635b,this['_suggestions']);_0x4a635b['commands']['add']('acceptSuggestion',_0x44bf37),this['enableCommand']('acceptSuggestion');const _0x57bc90=new B(_0x4a635b,this['_suggestions']);_0x4a635b['commands']['add']('discardSuggestion',_0x57bc90),this['enableCommand']('discardSuggestion'),_0x4a635b['commands']['add']('acceptAllSuggestions',new x(_0x4a635b,_0x44bf37,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a635b['commands']['add']('discardAllSuggestions',new x(_0x4a635b,_0x57bc90,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a635b['commands']['add']('acceptSelectedSuggestions',new R(_0x4a635b,_0x44bf37,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a635b['commands']['add']('discardSelectedSuggestions',new R(_0x4a635b,_0x57bc90,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x487740=_0x4a635b['plugins']['get']('CommentsRepository');this['listenTo'](_0x487740,'addComment',(_0x1887b7,{threadId:_0x4730b4})=>{const _0x4537ed=this['_suggestions']['get'](_0x4730b4);_0x4537ed&&_0x4537ed['commentThread']&&0x1===_0x4537ed['commentThread']['length']&&this['_updateSuggestionData'](_0x4730b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x487740,'removeComment',(_0x3b0d11,{threadId:_0x5a714b})=>{const _0x116409=this['_suggestions']['get'](_0x5a714b);_0x116409&&_0x116409['commentThread']&&!_0x116409['commentThread']['length']&&this['_updateSuggestionData'](_0x5a714b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x41ffe1){if(this['_adapter'])throw new _0x190e91('track-changes-adapter-already-set',this);this['_adapter']=_0x41ffe1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe16bf7=!0x1,toJSON:_0x24726d=!0x1}={}){const _0x2fad25=[];for(const _0x156747 of this['_suggestions']['values']())_0xe16bf7&&!_0x156747['isInContent']||_0x2fad25['push'](_0x156747);return _0x24726d?_0x2fad25['map'](_0x5ba20c=>_0x5ba20c['toJSON']()):_0x2fad25;}['getSuggestion'](_0x1fa9eb){const _0x14c6de=this['_suggestions']['get'](_0x1fa9eb);if(!_0x14c6de)throw new _0x190e91('track-changes-suggestion-not-found',this);return _0x14c6de;}['hasSuggestion'](_0x3a771b){return this['_suggestions']['has'](_0x3a771b);}['addSuggestionData'](_0x505996){const {authorId:_0x136d89,id:_0x324055,attributes:_0x18cb6a}=_0x505996,[_0x166e6f,_0x502064]=_0x505996['type']['split'](':'),_0x24a6b7=this['_suggestions']['get'](_0x324055)||this['_createSuggestion'](_0x166e6f,_0x502064,_0x324055,_0x136d89,_0x18cb6a);if(this['_addThreadToSuggestion'](_0x24a6b7),this['_checkSuggestionCorrectness'](_0x24a6b7,_0x166e6f,_0x502064||null,_0x136d89),_0x24a6b7['createdAt']=_0x505996['createdAt'],_0x24a6b7['_isDataLoaded']=!0x0,_0x18cb6a&&_0x18cb6a['@external']){const _0x1d50d7=_0x18cb6a['@external'],_0x5e024e=this['_getExternalAuthor'](_0x1d50d7['authorName']);_0x24a6b7['authoredAt']=_0x1d50d7['createdAt'],_0x24a6b7['author']=_0x5e024e,_0x24a6b7['isExternal']=!0x0;}else _0x24a6b7['authoredAt']=_0x505996['createdAt'];switch(_0x505996['data']&&(_0x24a6b7['data']=_0x505996['data']),_0x505996['attributes']&&(_0x24a6b7['attributes']=_0x505996['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24a6b7['_saved']=!0x0),this['_suggestionState']['get'](_0x24a6b7)){case'notReady':this['_suggestionState']['set'](_0x24a6b7,'dataReady');break;case'markerReady':_0x24a6b7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24a6b7])),this['_refreshSuggestionsChain'](new Set([_0x24a6b7])),this['_suggestionState']['set'](_0x24a6b7,'ready'),this['fire']('suggestionLoaded',_0x24a6b7)):this['_suggestionState']['set'](_0x24a6b7,'removed');}return _0x24a6b7;}['acceptSuggestion'](_0x5d5c2f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e851b of _0x5d5c2f['getAllAdjacentSuggestions']())_0x4e851b['accept']();});});}['discardSuggestion'](_0x1f7176){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcab0fb of _0x1f7176['getAllAdjacentSuggestions']())_0xcab0fb['discard']();});});}['enableCommand'](_0x29411d,_0x33bb7a){const _0x1543a9=this['editor']['commands']['get'](_0x29411d);if(!_0x1543a9)throw new _0x190e91('track-changes-command-not-found',this,{'commandName':_0x29411d});if(this['_enabledCommands']['has'](_0x1543a9))throw new _0x190e91('track-changes-enable-command-twice',this,{'commandName':_0x29411d});this['_enabledCommands']['add'](_0x1543a9),_0x33bb7a&&_0x1543a9['on']('execute',(_0x3cc152,_0x7720ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x7720ef['length']>0x0&&_0x7720ef[_0x7720ef['length']-0x1]&&_0x7720ef[_0x7720ef['length']-0x1]['forceDefaultExecution']?_0x7720ef['pop']():(_0x3cc152['return']=_0x33bb7a((..._0x1900c8)=>_0x1543a9['execute'](..._0x1900c8,{'forceDefaultExecution':!0x0}),..._0x7720ef),_0x3cc152['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x137190){let _0x3fc12c,_0x2adfe8;const _0x84e089=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3fc12c=_0x137190();}catch(_0x5e0078){_0x2adfe8=_0x5e0078;}return _0x84e089||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2adfe8&&_0x190e91['rethrowUnexpectedError'](_0x2adfe8,this),_0x3fc12c;}['markInsertion'](_0x58b032,_0x57e2ff=null,_0x5a5c05={}){if(_0x58b032['isCollapsed'])return null;const _0xa9750e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13ac47,meta:_0x46de41}of this['_findSuggestions'](_0x58b032,'insertion'))if(_0x46de41['isOwn']){if(!_0x46de41['isNextTo']){if(_0x46de41['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x13ac47,_0x5a5c05))continue;return _0x13ac47;}if(Lt(_0x13ac47,_0x5a5c05))return _0x13ac47;this['_breakSuggestionMarker'](_0x13ac47,_0x58b032['start'],_0x58b032['end']);break;}if(_0x57e2ff==_0x13ac47['subType']&&Lt(_0x13ac47,_0x5a5c05)){const _0x50f4bf=_0x13ac47['getFirstRange']();return _0x50f4bf['start']['isEqual'](_0x58b032['end'])?this['_setSuggestionRange'](_0x13ac47,this['_model']['createRange'](_0x58b032['start'],_0x50f4bf['end'])):this['_setSuggestionRange'](_0x13ac47,this['_model']['createRange'](_0x50f4bf['start'],_0x58b032['end'])),_0x13ac47;}}const _0x17c387=_0x48fd30(),_0x130294=_0xa9750e['id'],_0x4e491c=_0x57e2ff?'insertion:'+_0x57e2ff:'insertion',_0x1e00a9=this['_setSuggestionData']({'id':_0x17c387,'type':_0x4e491c,'createdAt':new Date(),'authorId':_0x130294,'attributes':_0x5a5c05});return this['_addSuggestionMarker'](_0x4e491c,_0x17c387,_0x130294,_0x58b032),_0x1e00a9;}['markMultiRangeInsertion'](_0x449c40,_0x188e0d='multi',_0x28dd21={}){const _0x1d7ff4=this['editor']['plugins']['get']('Users')['me'],_0xf71100=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x188e0d,'join');for(const _0x46ad40 of this['getSuggestions']())if(_0x46ad40['author']['id']==_0x1d7ff4['id']&&'insertion'==_0x46ad40['type']&&_0x46ad40['subType']==_0x188e0d&&Lt(_0x46ad40,_0x28dd21)&&(_0xf71100(_0x46ad40['getRanges'](),_0x449c40)||_0xf71100(_0x449c40,_0x46ad40['getRanges']()))){for(const _0x92429c of _0x449c40)_0x46ad40['addRange'](_0x92429c);return _0x46ad40;}for(const {suggestion:_0x471ec3,meta:_0x3c6314}of this['_findSuggestions'](_0x449c40,'insertion')){if(!_0x3c6314['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c6314['containsRangeInObject'])continue;if(!Lt(_0x471ec3,_0x28dd21))continue;let _0x25dd66=!0x0;for(const _0x13886a of _0x471ec3['getRanges']())for(const _0x19dea7 of _0x449c40)if(!_0x13886a['containsRange'](_0x19dea7)){_0x25dd66=!0x1;break;}if(_0x25dd66)return _0x471ec3;}const _0x78b433=_0x48fd30(),_0x3234c2=_0x1d7ff4['id'],_0x271c1d='insertion:'+_0x188e0d,_0x2b8846=this['_setSuggestionData']({'id':_0x78b433,'type':_0x271c1d,'createdAt':new Date(),'authorId':_0x3234c2,'attributes':_0x28dd21});for(const _0x10a0d5 of _0x449c40)this['_addSuggestionMarker'](_0x271c1d,_0x78b433,_0x3234c2,_0x10a0d5,u['getMultiRangeId']());return _0x2b8846;}['markInlineFormat'](_0xcbec8f,_0x406942,_0x20d13e=null,_0x4f0a0a={}){if(_0x20d13e=_0x20d13e||Vt(_0x406942),_0xcbec8f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51112b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20d13e,'accept');return this['forceDefaultExecution'](()=>_0x51112b([_0xcbec8f],_0x406942,_0x4f0a0a)),null;}const _0x4eece0=this['editor']['plugins']['get']('Users')['me'],_0x20329e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x6c5796,meta:_0x56f5bc}of this['_findSuggestions'](_0xcbec8f,'insertion'))_0x56f5bc['isOwn']&&!_0x56f5bc['isInsideObject']&&_0x20329e['push'](..._0x6c5796['getRanges']());}const _0x58c187=function(_0x119629,_0x1220a5){const _0x4e5cf9=[];for(const _0x26404e of _0x1220a5){const _0x13a168=_0x119629['getIntersection'](_0x26404e);_0x13a168&&_0x4e5cf9['push'](_0x13a168);}return _0x4e5cf9;}(_0xcbec8f,_0x20329e),_0x26948d=function(_0x1f3734,_0x1cf4c3){const _0x1d0041=[_0x1f3734];for(const _0x350ea4 of _0x1cf4c3){let _0x3a6b2a=0x0;for(;_0x3a6b2a<_0x1d0041['length'];){const _0x2bea64=_0x1d0041[_0x3a6b2a]['getDifference'](_0x350ea4);_0x1d0041['splice'](_0x3a6b2a,0x1,..._0x2bea64),_0x3a6b2a+=_0x2bea64['length'];}}return _0x1d0041;}(_0xcbec8f,_0x20329e);_0x58c187['length']&&this['_model']['change'](()=>{for(const _0x58e2f5 of _0x58c187){const _0x27f278=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20d13e,'accept');this['forceDefaultExecution'](()=>_0x27f278([_0x58e2f5],_0x406942,_0x4f0a0a));}});for(const _0x295bb6 of _0x26948d){let _0x5b30c8=null,_0x52e270=_0x295bb6['start'],_0x3f1693=_0x295bb6['end'];for(const {suggestion:_0x3596fe,meta:_0x4f7707}of this['_findSuggestions'](_0x295bb6,'formatInline')){if(!_0x4f7707['isOwn'])continue;if(_0x3596fe['subType']!=_0x20d13e)continue;if(!Lt(_0x3596fe,_0x4f0a0a))continue;const _0x1c5a75=_0x3596fe['getFirstRange']();if(_0x1c5a75['containsRange'](_0x295bb6,!0x0))return null;_0x52e270=_0x52e270['isBefore'](_0x1c5a75['start'])?_0x52e270:_0x1c5a75['start'],_0x3f1693=_0x3f1693['isAfter'](_0x1c5a75['end'])?_0x3f1693:_0x1c5a75['end'],_0x5b30c8?_0x1c5a75['start']['isBefore'](_0x5b30c8['getFirstRange']()['start'])?(_0x5b30c8['removeMarkers'](),_0x5b30c8=_0x3596fe):_0x3596fe['removeMarkers']():_0x5b30c8=_0x3596fe;}const _0x29a555=this['_model']['createRange'](_0x52e270,_0x3f1693);if(_0x5b30c8)this['_setSuggestionRange'](_0x5b30c8,_0x29a555);else{const _0x36c9bf=_0x48fd30(),_0x24d937=_0x4eece0['id'];this['_setSuggestionData']({'id':_0x36c9bf,'type':'formatInline:'+_0x20d13e,'data':_0x406942,'createdAt':new Date(),'authorId':_0x24d937,'attributes':_0x4f0a0a}),this['_addSuggestionMarker']('formatInline:'+_0x20d13e,_0x36c9bf,_0x24d937,_0x29a555);}}return null;}['markBlockFormat'](_0x33ffac,_0x5d39d5,_0xbd70ba=[],_0x3aa865=null,_0x25a321={}){_0x5d39d5['formatGroupId']||(_0x5d39d5['formatGroupId']=_0x5d39d5['commandName']),_0x5d39d5['multipleBlocks']=_0x33ffac['is']('range'),_0x3aa865=_0x3aa865||Vt(_0x5d39d5);const _0x29f139=_0xbd70ba['map'](_0x2f6d7a=>Gt(_0x2f6d7a,this['_model'])),_0x27a768=_0x33ffac['is']('range')?_0x33ffac:Gt(_0x33ffac,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2eebd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aa865,'accept');return this['forceDefaultExecution'](()=>_0x2eebd2([_0x27a768],_0x5d39d5,_0x25a321)),null;}_0x29f139['push'](_0x27a768);let _0x42f38a=!0x0;for(const _0x200738 of _0x29f139)if(!this['_rangeIsInLocalUserInsertion'](_0x200738)){_0x42f38a=!0x1;break;}if(_0x42f38a&&'always'!==this['_trackFormatChanges']){const _0x3635ba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aa865,'accept');return this['forceDefaultExecution'](()=>_0x3635ba([_0x27a768],_0x5d39d5,_0x25a321)),null;}let _0x9760e4=null,_0x578ffa=_0x27a768['start'],_0x1f7d07=_0x27a768['end'];for(const {suggestion:_0x435435,meta:_0xff0305}of this['_findSuggestions'](_0x27a768,'formatBlock')){if(!_0xff0305['isOwn'])continue;if(_0xff0305['isNextTo']||_0xff0305['containsRangeInObject']||_0xff0305['isInsideObject'])continue;if(_0x435435['data']['formatGroupId']!=_0x5d39d5['formatGroupId'])continue;if(!Lt(_0x435435,_0x25a321))continue;const _0x533a1a=_0x435435['getFirstRange']();if(_0x435435['subType']==_0x3aa865){if(_0x533a1a['containsRange'](_0x27a768,!0x0))return null;_0x578ffa=_0x578ffa['isBefore'](_0x533a1a['start'])?_0x578ffa:_0x533a1a['start'],_0x1f7d07=_0x1f7d07['isAfter'](_0x533a1a['end'])?_0x1f7d07:_0x533a1a['end'],_0x9760e4?_0x533a1a['start']['isBefore'](_0x9760e4['getFirstRange']()['start'])?(_0x9760e4['removeMarkers'](),_0x9760e4=_0x435435):_0x435435['removeMarkers']():_0x9760e4=_0x435435;}else{const _0x2afc26=_0x27a768['getIntersection'](_0x533a1a);this['_cutOutSuggestionMarker'](_0x435435,_0x2afc26);}}const _0x6655d3=this['editor']['plugins']['get']('Users')['me'],_0x571175=_0x48fd30(),_0x3bed6b=_0x6655d3['id'];if(_0x9760e4)return this['_setSuggestionRange'](_0x9760e4,this['_model']['createRange'](_0x578ffa,_0x1f7d07)),_0x9760e4;{const _0x19b3e2=this['_setSuggestionData']({'id':_0x571175,'type':'formatBlock:'+_0x3aa865,'data':_0x5d39d5,'createdAt':new Date(),'authorId':_0x3bed6b,'attributes':_0x25a321});return this['_addSuggestionMarker']('formatBlock:'+_0x3aa865,_0x571175,_0x3bed6b,this['_model']['createRange'](_0x578ffa,_0x1f7d07)),_0x19b3e2;}}['markMultiRangeBlockFormat'](_0x206855,_0x1af0c7,_0x1134e3=[],_0x1e17a9=null,_0x49c31e={}){_0x1af0c7['formatGroupId']||(_0x1af0c7['formatGroupId']=_0x1af0c7['commandName']);const _0x1f18a9=_0x206855[0x0];_0x1af0c7['multipleBlocks']=_0x1f18a9['is']('range'),_0x1e17a9=_0x1e17a9||Vt(_0x1af0c7);const _0xdc0ea1=_0x1134e3['map'](_0xdcbf35=>Gt(_0xdcbf35,this['_model'])),_0x1b2507=_0x1f18a9['is']('range')?_0x206855:_0x206855['map'](_0x4408f4=>Gt(_0x4408f4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x11c0c7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'accept');return this['forceDefaultExecution'](()=>_0x11c0c7(_0x1b2507,_0x1af0c7,_0x49c31e)),null;}_0xdc0ea1['push'](..._0x1b2507);let _0x129440=!0x0;for(const _0x314756 of _0xdc0ea1)if(!this['_rangeIsInLocalUserInsertion'](_0x314756)){_0x129440=!0x1;break;}if(_0x129440&&'always'!==this['_trackFormatChanges']){const _0x34eb37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'accept');return this['forceDefaultExecution'](()=>_0x34eb37(_0x1b2507,_0x1af0c7,_0x49c31e)),null;}const _0x9275cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x18f8e4 of this['getSuggestions']()){if(_0x18f8e4['author']['id']!=_0x9275cc['id'])continue;if('formatBlock'!=_0x18f8e4['type']||_0x18f8e4['data']['formatGroupId']!=_0x1af0c7['formatGroupId'])continue;if(!Lt(_0x18f8e4,_0x49c31e))continue;const _0xdb9700=_0x18f8e4['subType']==_0x1e17a9;for(let _0x21d05e=0x0;_0x21d05e<_0x1b2507['length'];_0x21d05e++){const _0x62a8f9=_0x1b2507[_0x21d05e];for(const _0x5af58d of _0x18f8e4['getMarkers']()){const _0x13b569=_0x5af58d['getRange']();if(_0x62a8f9['isEqual'](_0x13b569)){_0xdb9700?(_0x1b2507['splice'](_0x21d05e,0x1),_0x21d05e--):_0x18f8e4['removeMarker'](_0x5af58d['name']);break;}}}}if(0x0==_0x1b2507['length'])return null;const _0x57c05e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e17a9,'join');for(const _0x461e7c of this['getSuggestions']())if(_0x461e7c['author']['id']==_0x9275cc['id']&&'formatBlock'==_0x461e7c['type']&&_0x461e7c['data']['formatGroupId']==_0x1af0c7['formatGroupId']&&_0x461e7c['subType']==_0x1e17a9&&Lt(_0x461e7c,_0x49c31e)&&(_0x57c05e(_0x461e7c['getRanges'](),_0x1b2507)||_0x57c05e(_0x1b2507,_0x461e7c['getRanges']()))){for(const _0xdef483 of _0x1b2507)_0x461e7c['addRange'](_0xdef483);return _0x461e7c;}const _0x152e9a=_0x48fd30(),_0x1542eb=_0x9275cc['id'],_0x2f1d08='formatBlock:'+_0x1e17a9,_0x427f15=this['_setSuggestionData']({'id':_0x152e9a,'type':_0x2f1d08,'data':_0x1af0c7,'createdAt':new Date(),'authorId':_0x1542eb,'attributes':_0x49c31e});for(const _0x262b9f of _0x1b2507)this['_addSuggestionMarker'](_0x2f1d08,_0x152e9a,_0x1542eb,_0x262b9f,u['getMultiRangeId']());return _0x427f15;}['markDeletion'](_0x276558,_0x27242e=null,_0x3eb551={}){if(_0x276558['isCollapsed'])return null;const _0x287c9e=this['editor']['plugins']['get']('Users')['me'],_0x4aea1e=new _0x16e800(_0x276558['start'],_0x276558['end']);for(const {suggestion:_0x4351bb,meta:_0x5959d0}of this['_findSuggestions'](_0x4aea1e,'insertion'))if(_0x5959d0['isOwn']&&!_0x5959d0['isNextTo']){if(_0x4351bb['isMultiRange']){const _0x28006c=_0x4351bb['getRanges']()['filter'](_0x500d3d=>'$graveyard'!=_0x500d3d['root']['rootName']);_0x28006c['every'](_0x2bd680=>_0x4aea1e['containsRange'](_0x2bd680,!0x0))&&_0x4351bb['discard']();if(_0x28006c['some'](_0x270780=>_0x270780['containsRange'](_0x4aea1e,!0x0))){const _0x291bbe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27242e,'accept');return this['forceDefaultExecution'](()=>_0x291bbe([_0x4aea1e],null,_0x3eb551)),null;}}else{const _0x5bf07c=_0x4aea1e['getIntersection'](_0x4351bb['getFirstRange']());null!==_0x5bf07c&&_0x4351bb['_onDiscard']([_0x5bf07c],null,_0x3eb551);}}if(_0x4aea1e['detach'](),_0x4aea1e['isCollapsed']||'$graveyard'==_0x4aea1e['root']['rootName'])return null;let _0x483092=null,_0x16c6a8=_0x4aea1e['start'],_0x58983c=_0x4aea1e['end'];const _0x499bfc=this['_findSuggestions'](_0x4aea1e,'deletion');for(const {suggestion:_0x9d9f1e,meta:_0x1d9794}of _0x499bfc){const _0x5e7784=this['_model']['createRange'](_0x16c6a8,_0x58983c);if(_0x1d9794['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d9794['containsRangeInObject']&&!_0x1d9794['isInsideObject'])){if(_0x9d9f1e['isMultiRange']){if(!Lt(_0x9d9f1e,_0x3eb551))continue;let _0x23cf57=!0x0;for(const _0xfc6300 of _0x9d9f1e['getRanges']()){if(_0xfc6300['containsRange'](_0x5e7784,!0x0))return _0x9d9f1e;_0x5e7784['containsRange'](_0xfc6300)||(_0x23cf57=!0x1);}_0x23cf57&&_0x9d9f1e['discard']();}else{const _0x30bbbf=_0x9d9f1e['getFirstRange']();if(_0x30bbbf['containsRange'](_0x5e7784,!0x0))return _0x9d9f1e;if(!Lt(_0x9d9f1e,_0x3eb551)){_0x5e7784['containsRange'](_0x30bbbf)?_0x9d9f1e['removeMarkers']():_0x30bbbf['containsPosition'](_0x16c6a8)?_0x16c6a8=_0x30bbbf['end']:_0x30bbbf['containsPosition'](_0x58983c)&&(_0x58983c=_0x30bbbf['start']);continue;}_0x16c6a8=_0x16c6a8['isBefore'](_0x30bbbf['start'])?_0x16c6a8:_0x30bbbf['start'],_0x58983c=_0x58983c['isAfter'](_0x30bbbf['end'])?_0x58983c:_0x30bbbf['end'],_0x3eb551=Object['assign']({},_0x9d9f1e['attributes']),_0x483092?_0x30bbbf['start']['isBefore'](_0x483092['getFirstRange']()['start'])?(_0x483092['removeMarkers'](),_0x483092=_0x9d9f1e):_0x9d9f1e['removeMarkers']():_0x483092=_0x9d9f1e;}}}if(_0x483092)return this['_setSuggestionRange'](_0x483092,this['_model']['createRange'](_0x16c6a8,_0x58983c)),_0x483092;{const _0x1b90ca=_0x48fd30(),_0x2d736a=this['_model']['createRange'](_0x16c6a8,_0x58983c),_0x16d4d9=_0x287c9e['id'],_0x54f337=_0x27242e?'deletion:'+_0x27242e:'deletion',_0x1fbaaa=this['_setSuggestionData']({'id':_0x1b90ca,'type':_0x54f337,'createdAt':new Date(),'authorId':_0x16d4d9,'attributes':_0x3eb551});return this['_addSuggestionMarker'](_0x54f337,_0x1b90ca,_0x16d4d9,_0x2d736a),_0x1fbaaa;}}['markMultiRangeDeletion'](_0x34d79b,_0x2f8f3a='multi',_0x13d9d9={}){const _0x4cfbbe=this['editor']['plugins']['get']('Users')['me'],_0x20afb6=_0x34d79b['map'](_0x2d2bfb=>new _0x16e800(_0x2d2bfb['start'],_0x2d2bfb['end'])),_0xdb988=new Set();for(const {suggestion:_0x11bd48,meta:_0x4a3012}of this['_findSuggestions'](_0x20afb6,'insertion'))_0x4a3012['isOwn']&&!_0x4a3012['isNextTo']&&_0xdb988['add'](_0x11bd48);for(const _0x3529fb of _0xdb988)if(_0x3529fb['isMultiRange']){const _0x451669=_0x3529fb['getRanges']();(!_0x3529fb['attributes']||!_0x3529fb['attributes']['skipNestingCheck'])&&(_0x451669['every'](_0x2d77f9=>_0x20afb6['some'](_0x1b68d6=>_0x1b68d6['containsRange'](_0x2d77f9,!0x0)))&&_0x3529fb['discard']());if(_0x20afb6['every'](_0x245656=>_0x451669['some'](_0x28b51a=>_0x28b51a['containsRange'](_0x245656,!0x0)))){const _0x4446e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'accept');return this['forceDefaultExecution'](()=>_0x4446e9(_0x34d79b,null,_0x13d9d9)),null;}}else{const _0x22ca6c=_0x3529fb['getFirstRange']();_0x20afb6['some'](_0x19913e=>_0x19913e['containsRange'](_0x22ca6c,!0x0))&&_0x3529fb['discard']();if(_0x20afb6['every'](_0x2be7e8=>_0x22ca6c['containsRange'](_0x2be7e8,!0x0))){const _0x2ceeb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'accept');return this['forceDefaultExecution'](()=>_0x2ceeb1(_0x20afb6,null,_0x13d9d9)),null;}}const _0x1efaec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8f3a,'join');let _0x530922=null;for(const _0x1cb4c4 of this['getSuggestions']())if(_0x1cb4c4['author']['id']==_0x4cfbbe['id']&&_0x1cb4c4['isInContent']&&'deletion'==_0x1cb4c4['type']&&_0x1cb4c4['subType']==_0x2f8f3a&&Lt(_0x1cb4c4,_0x13d9d9)&&(_0x1efaec(_0x1cb4c4['getRanges'](),_0x20afb6)||_0x1efaec(_0x20afb6,_0x1cb4c4['getRanges']()))){if(_0x530922){if(_0x1cb4c4['commentThread']&&_0x1cb4c4['commentThread']['length'])continue;for(const _0x55a88b of _0x1cb4c4['getRanges']())_0x530922['isIntersectingWithRange'](_0x55a88b)||_0x530922['addRange'](_0x55a88b);_0x1cb4c4['removeMarkers']();}else{_0x530922=_0x1cb4c4;for(const _0xe56ea8 of _0x20afb6)_0x1cb4c4['isIntersectingWithRange'](_0xe56ea8)||_0x1cb4c4['addRange'](_0xe56ea8);}}if(_0x530922)return _0x530922;_0xdb988['clear']();for(const {suggestion:_0x216be8,meta:_0x3e24ed}of this['_findSuggestions'](_0x20afb6,'deletion'))_0x3e24ed['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e24ed['containsRangeInObject']&&!_0x3e24ed['isInsideObject'])&&Lt(_0x216be8,_0x13d9d9)&&_0xdb988['add'](_0x216be8);for(const _0x37c3d7 of _0xdb988){const _0x145b63=_0x37c3d7['getRanges']();if(!_0x13d9d9||!_0x13d9d9['skipNestingCheck']){if(_0x20afb6['every'](_0x5f2c0f=>_0x145b63['some'](_0x218cc6=>_0x218cc6['containsRange'](_0x5f2c0f,!0x0))))return _0x37c3d7;}(!_0x37c3d7['attributes']||!_0x37c3d7['attributes']['skipNestingCheck'])&&(_0x145b63['every'](_0x1c2d14=>_0x20afb6['some'](_0x445b3f=>_0x445b3f['containsRange'](_0x1c2d14,!0x0)))&&_0x37c3d7['discard']());}const _0x4dfa30=_0x48fd30(),_0x49418c=_0x4cfbbe['id'],_0x26424e='deletion:'+_0x2f8f3a,_0x377708=this['_setSuggestionData']({'id':_0x4dfa30,'type':_0x26424e,'createdAt':new Date(),'authorId':_0x49418c,'attributes':_0x13d9d9});for(const _0x447a76 of _0x20afb6)_0x447a76['detach'](),_0x447a76['isCollapsed']||'$graveyard'==_0x447a76['root']['rootName']||this['_addSuggestionMarker'](_0x26424e,_0x4dfa30,_0x49418c,_0x447a76,u['getMultiRangeId']());return _0x377708;}['markAttributeChange'](_0x7d391c,_0x490b05,_0x17a90c,_0x1172b9,_0x3bbbe7){if(_0x7d391c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5aefaf=this['editor']['plugins']['get']('Users')['me']['id'],_0x18388c=Array['from'](this['_suggestions']['values']())['filter'](_0x540839=>'attribute'==_0x540839['type']&&_0x540839['data']['key']==_0x490b05&&_0x540839['isIntersectingWithRange'](_0x7d391c));if('default'===this['_trackFormatChanges']){const _0x2973e8=this['_findSuggestions'](_0x7d391c,'insertion')['filter'](({meta:_0x3b02da})=>_0x3b02da['isOwn']&&!_0x3b02da['isInsideObject']&&!_0x3b02da['isNextTo'])['map'](({suggestion:_0x2d3edd})=>_0x2d3edd);_0x18388c['unshift'](..._0x2973e8);}const _0x4c662c=new Map([[_0x7d391c,_0x17a90c]]);for(const _0x45f711 of _0x18388c){const _0x121aa0='attribute'==_0x45f711['type']?_0x45f711['data']['oldValue']:void 0x0,_0x291b33=_0x45f711['getFirstRange'](),_0x2a8449=Array['from'](_0x4c662c['keys']())['find'](_0x25b5d1=>_0x25b5d1['isIntersecting'](_0x291b33));if(!_0x2a8449)continue;const _0x3c53a5=_0x2a8449['getDifference'](_0x291b33);this['_isBlockAttribute'](_0x490b05)&&'insertion'==_0x45f711['type']&&0x0!=_0x3c53a5['length']||(_0x4c662c['delete'](_0x2a8449),_0x3c53a5['forEach'](_0x1d9028=>{_0x4c662c['set'](_0x1d9028,_0x17a90c);}),'insertion'!=_0x45f711['type']&&_0x121aa0!=_0x1172b9&&_0x4c662c['set'](_0x2a8449['getIntersection'](_0x291b33),_0x121aa0));}const _0x2885bf=[];for(const [_0x22b733,_0x334351]of _0x4c662c){const _0x5ddfb1=_0x48fd30(),_0xe03389={'key':_0x490b05,'oldValue':_0x334351,'newValue':_0x1172b9};_0x490b05['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x490b05});const _0x2d1caf=('attribute:'+(_0x490b05+'|'+Vt({'newValue':_0x1172b9})))['substring'](0x0,0x3c),_0x2b016b=this['_setSuggestionData']({'id':_0x5ddfb1,'type':_0x2d1caf,'data':_0xe03389,'createdAt':new Date(),'authorId':_0x5aefaf,'attributes':_0x3bbbe7});_0x2885bf['push'](_0x2b016b),this['_addSuggestionMarker'](_0x2d1caf,_0x5ddfb1,_0x5aefaf,_0x22b733);}return _0x2885bf;}['enableDefaultAttributesIntegration'](_0x3ced89){this['enableCommand'](_0x3ced89,(_0x4afece,..._0x20a5e4)=>{this['_recordAttributeChanges'](()=>{_0x4afece(..._0x20a5e4);});});}['registerBlockAttribute'](_0x55fb3d){this['_blockAttributeKeys']['add'](_0x55fb3d);}['registerInlineAttribute'](_0x5cf297){this['_inlineAttributeKeys']['add'](_0x5cf297);}['_getAttributeKey'](_0x25c60f){return'attribute'==_0x25c60f['type']?_0x25c60f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x580949,_0x4eec6c){const _0x501297=_0x580949['getFirstMarker']();this['_model']['change'](_0x34f80f=>{_0x34f80f['updateMarker'](_0x501297,{'range':_0x4eec6c});});}['_addThreadToSuggestion'](_0x24dd9a){const _0xebc96c=_0x24dd9a['id'],_0x577c5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xebc96c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x577c5b,'threadId':_0xebc96c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x16f44a=this['_commentsRepository']['getCommentThread'](_0xebc96c);_0x16f44a['unbind']('isRemovable'),_0x16f44a['isRemovable']=!0x1,_0x24dd9a['commentThread']=_0x16f44a;}['_checkSuggestionCorrectness'](_0x8d9ce9,_0x4bd890,_0x3c2861,_0x340add){if(_0x8d9ce9['type']!=_0x4bd890||_0x8d9ce9['subType']!=_0x3c2861||_0x8d9ce9['creator']['id']!=_0x340add)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x190e91('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5260a9,_0x4aa49c){const _0x165d05=_0x5260a9['getFirstRange']();if(_0x4aa49c['isEqual'](_0x165d05))_0x5260a9['removeMarkers']();else{if(_0x165d05['containsRange'](_0x4aa49c)){const _0x7ef3a8=this['_model']['createPositionAt'](_0x4aa49c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x165d05['start'],_0x7ef3a8));const _0x126e47=_0x48fd30(),_0x57a6fa=_0x5260a9['creator']['id'],_0x3001a0=_0x5260a9['type']+':'+_0x5260a9['subType'];this['_setSuggestionData']({'id':_0x126e47,'type':_0x3001a0,'createdAt':new Date(),'authorId':_0x57a6fa,'data':_0x5260a9['data'],'attributes':_0x5260a9['attributes']});const _0x26f987=this['_model']['createPositionAt'](_0x4aa49c['end']['parent'],'after'),_0x266755=this['_model']['createRange'](_0x26f987,_0x165d05['end']);this['_addSuggestionMarker'](_0x3001a0,_0x126e47,_0x57a6fa,_0x266755);}else{if(_0x165d05['containsPosition'](_0x4aa49c['start'])){const _0x969743=this['_model']['createPositionAt'](_0x4aa49c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x165d05['start'],_0x969743));}else{const _0x5526db=this['_model']['createPositionAt'](_0x4aa49c['end']['parent'],'after');this['_setSuggestionRange'](_0x5260a9,this['_model']['createRange'](_0x5526db,_0x165d05['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40efaa){for(const {suggestion:_0x30f232,meta:_0x18702f}of this['_findSuggestions'](_0x40efaa,'insertion')){if(!_0x18702f['isOwn'])continue;const _0x37a551=_0x30f232['getRanges']();for(const _0x354e1f of _0x37a551)if(!_0x40efaa['getDifference'](_0x354e1f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7d05a6){const _0x29d212=this['editor']['plugins']['get']('Users')['getUser'](_0x7d05a6);if(!_0x29d212)throw new _0x190e91('track-changes-user-not-found',this);return _0x29d212;}['_getExternalAuthor'](_0x2a3944){const _0x3dc7c9=this['editor']['plugins']['get']('Users'),_0x5eca71=_0xcee980('external:'+_0x2a3944),_0x473250=_0x3dc7c9['getUser'](_0x5eca71);return _0x473250||_0x3dc7c9['addUser']({'id':_0x5eca71,'name':_0x2a3944});}['_createSuggestion'](_0x4c7e79,_0x118619,_0x533e50,_0x865997,_0x5bf4b8){const _0x205519=this['_getAuthorFromId'](_0x865997),_0x56de03=this['_suggestionFactory']['buildSuggestion'](_0x4c7e79,_0x118619,_0x533e50,_0x205519,_0x5bf4b8,_0xce9aef=>{this['_updateSuggestionData'](_0x533e50,{'attributes':_0xce9aef});const _0x136ad9=this['getSuggestion'](_0x533e50);this['_joinWithAdjacentSuggestions'](new Set([_0x136ad9])),this['_refreshSuggestionsChain'](new Set([_0x136ad9]));});return this['listenTo'](_0x56de03,'accept',()=>{this['_updateSuggestionData'](_0x533e50,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56de03,'discard',()=>{this['_updateSuggestionData'](_0x533e50,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x533e50,_0x56de03),this['_suggestionState']['set'](_0x56de03,'notReady'),_0x56de03;}['_splitMarkerName'](_0x2cc605){const _0x3ca012=_0x2cc605['split'](':');return{'group':_0x3ca012[0x0],'type':_0x3ca012[0x1],'subType':_0x3ca012['length']>=0x5?_0x3ca012[0x2]:null,'id':_0x3ca012['length']<0x5?_0x3ca012[0x2]:_0x3ca012[0x3],'authorId':_0x3ca012['length']<0x5?_0x3ca012[0x3]:_0x3ca012[0x4],'markerCount':0x6==_0x3ca012['length']?_0x3ca012[0x5]:null};}['_breakSuggestionMarker'](_0x5bcd46,_0x429e9a,_0x46aecb){const _0x247a26=_0x5bcd46['getFirstRange'](),_0x3e429c=_0x247a26['start'],_0x258efe=_0x247a26['end'];this['_setSuggestionRange'](_0x5bcd46,this['_model']['createRange'](_0x3e429c,_0x429e9a));const _0x512016=_0x48fd30(),_0x56a4bc=_0x5bcd46['creator']['id'],_0x1d99b9=_0x5bcd46['type']+(_0x5bcd46['subType']?':'+_0x5bcd46['subType']:'');this['_setSuggestionData']({'id':_0x512016,'type':_0x1d99b9,'createdAt':new Date(),'authorId':_0x56a4bc,'originalSuggestionId':_0x5bcd46['id'],'attributes':_0x5bcd46['attributes'],'data':_0x5bcd46['data']});const _0x37594a=this['_getAttributeKey'](_0x5bcd46);('formatBlock'==_0x5bcd46['type']||_0x37594a&&this['_isBlockAttribute'](_0x37594a))&&(_0x46aecb=this['_model']['createPositionBefore'](_0x46aecb['parent'])),this['_addSuggestionMarker'](_0x1d99b9,_0x512016,_0x56a4bc,this['_model']['createRange'](_0x46aecb,_0x258efe));}['_findSuggestions'](_0x3b82cb,_0x29d2ea=null){const _0x163ceb=[],_0x15fed3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b82cb)||(_0x3b82cb=[_0x3b82cb]);for(const _0x24a4b8 of this['getSuggestions']()){if(!_0x24a4b8['isInContent'])continue;if(_0x29d2ea&&_0x24a4b8['type']!=_0x29d2ea)continue;let _0x533078=!0x1;for(const _0x1ce4b9 of _0x24a4b8['getRanges']()){for(const _0x3c2f5c of _0x3b82cb){const _0x301c1f=_0x3c2f5c['start']['isEqual'](_0x1ce4b9['end'])||_0x3c2f5c['end']['isEqual'](_0x1ce4b9['start']);if(_0x301c1f||_0x3c2f5c['getIntersection'](_0x1ce4b9)){const _0x17ebf2=_0x3c2f5c['containsRange'](_0x1ce4b9)&&Rt(this['_model']['schema'],_0x1ce4b9['start'],_0x3c2f5c),_0x2664d4=_0x1ce4b9['containsRange'](_0x3c2f5c)&&Rt(this['_model']['schema'],_0x3c2f5c['start'],_0x1ce4b9);_0x163ceb['push']({'suggestion':_0x24a4b8,'meta':{'isOwn':_0x15fed3==_0x24a4b8['author'],'isNextTo':_0x301c1f,'isInsideObject':_0x17ebf2,'containsRangeInObject':_0x2664d4}}),_0x533078=!0x0;break;}}if(_0x533078)break;}}return _0x163ceb;}['_addSuggestionMarker'](_0xf0356c,_0x2efdaa,_0x3e42c5,_0x344baf,_0x2897a5){this['_model']['change'](_0x3ee7e4=>{let _0x5685a1='suggestion:'+_0xf0356c+':'+_0x2efdaa+':'+_0x3e42c5;_0x2897a5&&(_0x5685a1=_0x5685a1+':'+_0x2897a5),_0x3ee7e4['addMarker'](_0x5685a1,{'range':_0x344baf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3c0471){const _0xa53a77=_0x3c0471['previous'],_0xf35400=_0x3c0471['next'];_0x3c0471['previous']=null,_0x3c0471['next']=null,null!=_0xa53a77&&_0xa53a77['next']==_0x3c0471&&(_0xa53a77['next']=_0xf35400),null!=_0xf35400&&_0xf35400['previous']==_0x3c0471&&(_0xf35400['previous']=_0xa53a77),'ready'==this['_suggestionState']['get'](_0x3c0471)&&(this['_suggestionState']['set'](_0x3c0471,'removed'),this['fire']('suggestionUnloaded',_0x3c0471,_0xa53a77,_0xf35400));}['_setSuggestionData'](_0x40a09a){const _0x33cf5f=_0x40a09a['id'],_0x3135e6=this['addSuggestionData'](_0x40a09a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4298ec=this['editor']['plugins']['get']('PendingActions'),_0x2d811e=_0x3135e6['hasComments'],_0x26428f=_0x3135e6['subType']?_0x3135e6['type']+':'+_0x3135e6['subType']:_0x3135e6['type'],_0x2d5570=this['editor']['locale'],_0x356318=_0x4298ec['add'](o(_0x2d5570,'PENDING_ACTION_SUGGESTION')),_0x44761c={'id':_0x33cf5f,'type':_0x26428f,'hasComments':_0x2d811e,'data':_0x40a09a['data']||null,'originalSuggestionId':_0x40a09a['originalSuggestionId']||null,'attributes':_0x3135e6['attributes']};this['_adapter']['addSuggestion'](_0x44761c)['then'](_0x50b301=>{_0x3135e6['_saved']=!0x0,_0x4298ec['remove'](_0x356318),_0x50b301&&_0x50b301['createdAt']&&(this['_suggestions']['get'](_0x33cf5f)['createdAt']=_0x50b301['createdAt']);})['catch'](_0x198360=>{throw _0x12cf38('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3135e6['discard']();}),_0x3135e6['stopListening'](),this['_suggestions']['delete'](_0x3135e6['id']),this['_suggestionState']['delete'](_0x3135e6),_0x198360;});}return _0x3135e6;}['_isBlockAttribute'](_0x2c2d39){return this['_blockAttributeKeys']['has'](_0x2c2d39);}['_updateSuggestionData'](_0xb5ff74,_0x497314){const _0x15bfce=this['editor']['plugins']['get']('PendingActions'),_0x16b111=this['getSuggestion'](_0xb5ff74);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x16b111['_saved']){const _0x246925=_0x15bfce['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb5ff74,_0x497314)['then'](()=>{_0x15bfce['remove'](_0x246925);});}else _0x16b111['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb5ff74,_0x497314);});}}['_getSuggestionData'](_0xdfa85b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x190e91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xdfa85b);}['_handleNewSuggestionMarker'](_0x4eae75){const {id:_0x12f094,type:_0x2eac05,subType:_0x3fa7b5,authorId:_0x3adbe2}=this['_splitMarkerName'](_0x4eae75),_0x2d6d08=this['_suggestions']['get'](_0x12f094)||this['_createSuggestion'](_0x2eac05,_0x3fa7b5,_0x12f094,_0x3adbe2,{});switch(this['_checkSuggestionCorrectness'](_0x2d6d08,_0x2eac05,_0x3fa7b5,_0x3adbe2),this['_suggestionState']['get'](_0x2d6d08)){case'notReady':this['_getSuggestionData'](_0x12f094)['then'](_0x59e31a=>{let _0x19f6c7=Promise['resolve']();_0x59e31a['hasComments']&&(_0x19f6c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x12f094})),_0x19f6c7['then'](()=>{this['addSuggestionData'](_0x59e31a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d6d08,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x12f094,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d6d08,'ready'),this['fire']('suggestionLoaded',_0x2d6d08);break;case'ready':this['fire']('suggestionChanged',_0x2d6d08);}return _0x2d6d08['addMarkerName'](_0x4eae75),_0x2d6d08;}['_refreshSuggestionsChain'](_0x3591b7){const _0x54b8cb=Array['from'](_0x3591b7),_0x40575c=_0x54b8cb['filter'](_0x3e1647=>'attribute'==_0x3e1647['type']);this['_refreshAttributeSuggestionsChain'](_0x40575c);const _0x35b1aa=_0x54b8cb['filter'](_0x225618=>!_0x225618['isMultiRange']&&'attribute'!=_0x225618['type']),_0x239cd4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3625f8=>!_0x3625f8['isMultiRange']&&'attribute'!=_0x3625f8['type']),_0xdf19c7=_0x239cd4['filter'](_0x287b94=>!_0x3591b7['has'](_0x287b94)),_0x24bea3=new Map(_0x239cd4['map'](_0x582ddd=>[_0x582ddd,this['_suggestionFactory']['getSuggestionCallback'](_0x582ddd['type'],_0x582ddd['subType'],'chain')])),_0x5bce82=new Map(_0x239cd4['map'](_0x4ab62f=>[_0x4ab62f,_0x4ab62f['getFirstRange']()])),_0x4a6541=new Set(),_0x22afe9=new Set();for(let _0x342f5d=0x0;_0x342f5d<_0x35b1aa['length'];_0x342f5d++)_0x34c2d7(_0x35b1aa[_0x342f5d],_0x35b1aa,_0x342f5d+0x1);for(let _0x36aa0e=0x0;_0x36aa0e<_0x35b1aa['length'];_0x36aa0e++)_0x34c2d7(_0x35b1aa[_0x36aa0e],_0xdf19c7,0x0);const _0x5c9f7b=new Set();for(let _0x10e4eb=0x0;_0x10e4eb<_0x35b1aa['length'];_0x10e4eb++){const _0x51b4d8=_0x35b1aa[_0x10e4eb];!_0x22afe9['has'](_0x51b4d8)&&_0x51b4d8['previous']&&(_0x5c9f7b['add'](_0x51b4d8['previous']),_0x51b4d8['previous']['next']===_0x51b4d8&&(_0x51b4d8['previous']['next']=null),_0x51b4d8['previous']=null),!_0x4a6541['has'](_0x51b4d8)&&_0x51b4d8['next']&&(_0x5c9f7b['add'](_0x51b4d8['next']),_0x51b4d8['next']['previous']===_0x51b4d8&&(_0x51b4d8['next']['previous']=null),_0x51b4d8['next']=null);}function _0x34c2d7(_0x3d3eae,_0x45acee,_0x3adeb0){for(let _0x202e20=_0x3adeb0;_0x202e20<_0x45acee['length'];_0x202e20++){const _0x3cbe7f=_0x509f64(_0x3d3eae,_0x45acee[_0x202e20]);_0x3cbe7f&&(_0x3cbe7f[0x0]['next']=_0x3cbe7f[0x1],_0x3cbe7f[0x1]['previous']=_0x3cbe7f[0x0],_0x4a6541['add'](_0x3cbe7f[0x0]),_0x22afe9['add'](_0x3cbe7f[0x1]));}}function _0x509f64(_0x4a3e62,_0x2dfce4){if(_0x4a3e62['author']['id']!==_0x2dfce4['author']['id'])return null;const _0x13f8da=_0x24bea3['get'](_0x4a3e62)(_0x4a3e62,_0x2dfce4,_0x5bce82['get'](_0x4a3e62),_0x5bce82['get'](_0x2dfce4));if(!_0x13f8da)return null;return _0x24bea3['get'](_0x2dfce4)(_0x4a3e62,_0x2dfce4,_0x5bce82['get'](_0x4a3e62),_0x5bce82['get'](_0x2dfce4))?_0x13f8da[0x1]['commentThread']&&_0x13f8da[0x1]['commentThread']['length']?null:_0x13f8da:null;}_0x5c9f7b['size']&&this['_refreshSuggestionsChain'](_0x5c9f7b);}['_refreshAttributeSuggestionsChain'](_0x241807){if(0x0==_0x241807['length'])return;const _0x3bed37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c2a4=>'attribute'==_0x24c2a4['type']&&_0x24c2a4['_isDataLoaded']),_0x5392cf=[],_0x3da1fd=new Map();for(const _0x5502b7 of _0x3bed37){const _0x17e717=_0xcee980(_0x5502b7['attributes']);_0x3da1fd['has'](_0x17e717)||(_0x3da1fd['set'](_0x17e717,_0x5392cf['length']),_0x5392cf['push']([]));const _0x143a98=_0x3da1fd['get'](_0x17e717);_0x5392cf[_0x143a98]['push'](_0x5502b7);}!(function(){_0x5392cf['sort']((_0x3790fc,_0x55ad63)=>{const _0x37304c=_0x3790fc[0x0]['createdAt'],_0x1822c3=_0x55ad63[0x0]['createdAt'];return _0x37304c==_0x1822c3?_0x3790fc[0x0]['attributes']['groupId']<_0x55ad63[0x0]['attributes']['groupId']?-0x1:0x1:_0x37304c<_0x1822c3?-0x1:0x1;});for(const _0x16c3b3 of _0x5392cf)_0x16c3b3['sort']((_0xc677b4,_0x13c306)=>_0xc677b4['id']<_0x13c306['id']?-0x1:0x1);}());for(let _0x25fb01=0x0;_0x25fb01<_0x5392cf['length'];_0x25fb01++){if(0x0==_0x5392cf[_0x25fb01]['length'])continue;const _0x111e16=[];for(let _0x3b4eff=_0x25fb01+0x1;_0x3b4eff<_0x5392cf['length'];_0x3b4eff++)0x0!=_0x5392cf[_0x3b4eff]['length']&&_0x118215(_0x5392cf[_0x25fb01],_0x5392cf[_0x3b4eff])&&_0x111e16['push'](_0x3b4eff);for(const _0x21cea5 of _0x111e16)_0x5392cf[_0x25fb01]=_0x5392cf[_0x25fb01]['concat'](_0x5392cf[_0x21cea5]),_0x5392cf[_0x21cea5]=[];}for(const _0x535c73 of _0x5392cf)for(let _0x419032=0x0;_0x419032<_0x535c73['length'];_0x419032++)_0x535c73[_0x419032]['next']=_0x535c73[_0x419032+0x1]||null;for(const _0x58552a of _0x5392cf)for(let _0x33c31e=0x0;_0x33c31e<_0x58552a['length'];_0x33c31e++)_0x58552a[_0x33c31e]['previous']=_0x58552a[_0x33c31e-0x1]||null;function _0x118215(_0x23ee41,_0x5eabd9){if(_0x23ee41[0x0]['attributes']['groupId']!==_0x5eabd9[0x0]['attributes']['groupId']&&_0x23ee41[0x0]['author']!==_0x5eabd9[0x0]['author'])return!0x1;if(!function(_0x1ca7a6,_0x577c33){if(!_0x1ca7a6['hasComments']&&!_0x577c33['hasComments'])return!0x0;if(_0x1ca7a6['hasComments']&&_0x577c33['hasComments'])return!0x1;if(_0x1ca7a6['hasComments']&&_0x577c33['createdAt']<_0x1ca7a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x577c33['hasComments']&&_0x1ca7a6['createdAt']<_0x577c33['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23ee41[0x0],_0x5eabd9[0x0]))return!0x1;const _0x2531e9=Bt(_0x23ee41[0x0]['attributes'],'groupId'),_0x5492fb=Bt(_0x5eabd9[0x0]['attributes'],'groupId');if(!_0x763405(_0x2531e9,_0x5492fb))return!0x1;return!!_0x23ee41['every'](_0x1b734a=>_0x5eabd9['some'](_0x450ae9=>_0x1b734a['getFirstRange']()['isEqual'](_0x450ae9['getFirstRange']())))&&_0x5eabd9['every'](_0x48ffd6=>_0x23ee41['some'](_0x35c7a3=>_0x48ffd6['getFirstRange']()['isEqual'](_0x35c7a3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42a27b){const _0x159950=Array['from'](_0x42a27b),_0x57b804=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14ed71=_0x57b804['filter'](_0x48f08f=>!_0x42a27b['has'](_0x48f08f)),_0x4f61c8=new Map(_0x159950['map'](_0x419965=>[_0x419965,this['_suggestionFactory']['getSuggestionCallback'](_0x419965['type'],_0x419965['subType'],'join')])),_0x47912f=new Map(_0x57b804['map'](_0x2dfa45=>[_0x2dfa45,_0x2dfa45['getRanges']()]));for(let _0x4fdc9d=0x0;_0x4fdc9d<_0x159950['length'];_0x4fdc9d++){if(_0x5c0e8d(this,_0x159950[_0x4fdc9d],_0x159950,_0x4fdc9d+0x1))return!0x0;}for(let _0x59221e=0x0;_0x59221e<_0x159950['length'];_0x59221e++){if(_0x5c0e8d(this,_0x159950[_0x59221e],_0x14ed71,0x0))return!0x0;}return!0x1;function _0x5c0e8d(_0x10038b,_0xde492e,_0x3ba011,_0x51aecc){for(let _0x24ad8e=_0x51aecc;_0x24ad8e<_0x3ba011['length'];_0x24ad8e++){const _0x53a337=_0x3ba011[_0x24ad8e];if(_0x53a337['type']!==_0xde492e['type']||_0x53a337['author']['id']!==_0xde492e['author']['id']||_0x53a337['subType']!==_0xde492e['subType'])continue;if(!Pt(_0xde492e,_0x53a337,['groupId']))continue;if('attribute'==_0xde492e['type']&&_0xde492e['data']['oldValue']!=_0x53a337['data']['oldValue'])continue;if('attribute'==_0xde492e['type']&&_0x10038b['_isBlockAttribute'](_0xde492e['data']['key']))continue;if('formatBlock'==_0xde492e['type']){const _0x4676f0=_0x10038b['editor']['model'],_0x20c0c7=_0xde492e['getContainedElement']();if(_0x20c0c7&&(_0x4676f0['schema']['isObject'](_0x20c0c7)||_0x4676f0['schema']['isLimit'](_0x20c0c7)))continue;}const _0x306ef7=_0x4f61c8['get'](_0xde492e),_0x2ff66e=_0x47912f['get'](_0xde492e),_0x479ab4=_0x47912f['get'](_0x53a337),_0x36d717=_0xde492e['commentThread']&&_0xde492e['commentThread']['length'],_0xd00d6c=_0x53a337['commentThread']&&_0x53a337['commentThread']['length'];if(!_0x36d717&&_0x306ef7(_0x479ab4,_0x2ff66e))return _0x10038b['_joinSuggestions'](_0x53a337,_0xde492e),_0x47912f['delete'](_0xde492e),!0x0;if(!_0xd00d6c&&_0x306ef7(_0x2ff66e,_0x479ab4))return _0x10038b['_joinSuggestions'](_0xde492e,_0x53a337),_0x47912f['delete'](_0x53a337),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27be16,_0x18acc1){if(_0x27be16['isMultiRange']){for(const _0x23b3be of _0x18acc1['getRanges']())_0x27be16['addRange'](_0x23b3be);}else{const _0x609abd=_0x18acc1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27be16,this['_model']['createRange'](_0x27be16['getFirstRange']()['start'],_0x609abd));}_0x18acc1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1d9578,_0x587c06){const _0x281284=_0x1d9578['startsWith']('format')||_0x1d9578['startsWith']('attribute')?'FORMATTING':_0x1d9578['toUpperCase']();return o(this['editor']['locale'],_0x587c06+'_'+_0x281284+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x487bcd=this['editor'];if(!_0x487bcd['ui'])return;const {ariaLiveAnnouncer:_0x2c4e18}=_0x487bcd['ui'];_0x2d09de(this['_model'],({left:_0xaf134c,entered:_0x589fc8})=>{for(const _0x4c0157 of _0xaf134c){const {group:_0x10aa39,type:_0x3c2b6d}=this['_splitMarkerName'](_0x4c0157['name']);if('suggestion'===_0x10aa39){_0x2c4e18['announce'](this['_getMarkerAnnouncementText'](_0x3c2b6d,'LEAVE'));break;}}for(const _0x44c5f0 of _0x589fc8){const {group:_0x2a1f19,type:_0x3836c9}=this['_splitMarkerName'](_0x44c5f0['name']);if('suggestion'===_0x2a1f19){_0x2c4e18['announce'](this['_getMarkerAnnouncementText'](_0x3836c9,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5199cb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e27d1=this['editor'],_0x485bc6=_0x1e27d1['model']['document']['differ']['getChanges']();if(0x0==_0x485bc6['length'])return!0x1;const _0x124f9f=[],_0x116d09=_0x485bc6['filter'](_0x3d1f9c=>'attribute'==_0x3d1f9c['type']),_0xda9bb9=_0x485bc6['filter'](_0x580e93=>'insert'==_0x580e93['type']&&'$text'!=_0x580e93['name']),_0x6c7e73=_0x485bc6['filter'](_0x512491=>'remove'==_0x512491['type']&&'$text'!=_0x512491['name']);for(const _0x3c681d of _0x116d09)_0x124f9f['push']({'key':_0x3c681d['attributeKey'],'newValue':_0x3c681d['attributeNewValue'],'oldValue':_0x3c681d['attributeOldValue'],'range':Ot(_0x3c681d['range'],_0x1e27d1['model'])});for(const _0x173619 of _0xda9bb9){const _0x17c73e=_0x6c7e73['find'](_0x1d2db0=>_0x1d2db0['position']['isEqual'](_0x173619['position']));_0x17c73e&&_0x124f9f['push']({'key':m,'newValue':_0x173619['name'],'oldValue':_0x17c73e['name'],'range':_0x1e27d1['model']['createRangeOn'](_0x173619['position']['nodeAfter'])});}return 0x0!=_0x124f9f['length']&&this['_reduceExistingSuggestions'](_0x5199cb,_0x124f9f);}['_processAttributeSuggestions'](_0x38c648){let _0x3df306=!0x1;const _0x1c350e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c21d4=>_0x4c21d4['data']['newRange']&&_0x4c21d4['name']['startsWith']('suggestion:attribute:'));for(const _0x45bf94 of _0x1c350e){const {subType:_0xe2ab33,id:_0xdbcd87}=this['_splitMarkerName'](_0x45bf94['name']),_0x12513c=_0xe2ab33['split']('|')[0x0];for(const _0x5707cf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5707cf['id']!=_0xdbcd87&&'attribute'==_0x5707cf['type']&&_0x5707cf['data']&&_0x5707cf['data']['key']==_0x12513c&&_0x5707cf['getFirstRange']()['isIntersecting'](_0x45bf94['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5707cf,_0x45bf94['data']['newRange'],_0x38c648),_0x3df306=!0x0);}return _0x3df306;}['_recordAttributeChanges'](_0x443a9c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x443a9c();}['_isRegisteredAttribute'](_0x4d1236){const _0x5c9be9=this['_isBlockAttribute'](_0x4d1236),_0x3cba3e=this['_inlineAttributeKeys']['has'](_0x4d1236);return _0x5c9be9||_0x3cba3e;}['_reduceExistingSuggestions'](_0xa7721b,_0x4bbe9c){if(0x0==_0x4bbe9c['length'])return!0x1;let _0x12431a=!0x1;for(const _0x329feb of _0x4bbe9c){const _0x37f592=this['_findSuggestions'](_0x329feb['range'],'attribute')['filter'](_0x30e0a0=>!_0x30e0a0['meta']['isNextTo'])['map'](_0x554472=>_0x554472['suggestion']),_0xdab1b0=_0xcee980({'newValue':_0x329feb['newValue']});_0x37f592['filter'](_0x119786=>{const [_0x952aea,_0x443229]=_0x119786['subType']['split']('|');return _0x952aea==_0x329feb['key']&&_0x443229!=_0xdab1b0;})['forEach'](_0x2234b1=>{this['_reduceSuggestionAttributeRange'](_0x2234b1,_0x329feb['range'],_0xa7721b),_0x12431a=!0x0;});}return _0x12431a;}['_reduceSuggestionAttributeRange'](_0x4bad3f,_0x240aa8,_0x2f2602){const _0xa2ebc7=_0x4bad3f['getFirstRange']()['getDifference'](_0x240aa8);0x0!==_0xa2ebc7['length']?0x1!==_0xa2ebc7['length']?this['_breakSuggestionMarker'](_0x4bad3f,_0x240aa8['start'],_0x240aa8['end']):this['_setSuggestionRange'](_0x4bad3f,_0xa2ebc7[0x0]):_0x2f2602['removeMarker'](_0x4bad3f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9fbbf2){this['_editor']=_0x9fbbf2,this['_model']=_0x9fbbf2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x53bcc2,_0x4b4dd0,_0x26d604,_0x148015,_0x27fa6e,_0x4a9858){return new u(this['_model'],{'type':_0x53bcc2,'subType':_0x4b4dd0,'id':_0x26d604,'author':_0x148015,'creator':_0x148015,'attributes':_0x27fa6e,'onAttributesChange':_0x4a9858,'onAccept':(..._0x56f649)=>this['getSuggestionCallback'](_0x53bcc2,_0x4b4dd0,'accept')(..._0x56f649),'onDiscard':(..._0x2ca7b1)=>this['getSuggestionCallback'](_0x53bcc2,_0x4b4dd0,'discard')(..._0x2ca7b1)});}['registerCustomCallback'](_0x2b5ab1,_0x1ca68b,_0x1b41fa,_0x50c4cb){const _0x55e930=_0x2b5ab1+':'+_0x1ca68b+':'+_0x1b41fa;this['_customCallbacks']['set'](_0x55e930,_0x50c4cb);}['getSuggestionCallback'](_0x1ce00e,_0x5b8ae1,_0x7a3cff){const _0x2cb4ce=_0x1ce00e+':'+_0x5b8ae1+':'+_0x7a3cff;return this['_customCallbacks']['get'](_0x2cb4ce)||this['_defaultCallbacks']['get'](_0x1ce00e+':'+_0x7a3cff);}['_registerDefaultCallbacks'](){const _0x4e6226=()=>!0x1,_0x53b1a4=_0x3a81d7=>{_0x3a81d7['sort']((_0x514a7a,_0x2c0302)=>_0x514a7a['start']['isBefore'](_0x2c0302['start'])?0x1:-0x1),this['_model']['change'](_0x46b961=>{for(const _0x23e8c1 of _0x3a81d7){let _0x5e61e5;_0x5e61e5=_0x23e8c1['end']['isAtEnd']&&_0x23e8c1['end']['parent']==_0x23e8c1['start']['nodeAfter']?_0x46b961['createSelection'](_0x23e8c1['start']['nodeAfter'],'on'):_0x46b961['createSelection'](_0x23e8c1),this['_model']['deleteContent'](_0x5e61e5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3d1b6b=(_0x28ac50,_0x4b932c)=>{_0x4b932c&&this['_model']['change'](_0x1752ba=>{const {commandName:_0xb2d735,commandParams:_0x4754fb=[]}=_0x4b932c,_0x2735bc=_0x28ac50['map'](_0x1c1ce3=>(Tt(_0x1c1ce3)&&(_0x1c1ce3=this['_model']['createRange'](_0x1c1ce3['end'])),_0x1c1ce3))['filter'](_0x492e0a=>'$graveyard'!==_0x492e0a['root']['rootName']);if(_0x2735bc['length']<0x1)return;const _0x2a88a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c3425=>_0x16e800['fromRange'](_0x2c3425));_0x1752ba['setSelection'](_0x2735bc);for(const _0x39a8f3 of this['_editor']['commands']['commands']())_0x39a8f3['refresh']();_0x4754fb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb2d735,..._0x4754fb);const _0x123f4a=_0x2a88a7['filter'](_0x409f03=>'$graveyard'!=_0x409f03['root']['rootName']);_0x123f4a['length']>0x0&&_0x1752ba['setSelection'](_0x123f4a);for(const _0x1fee81 of _0x2a88a7)_0x1fee81['detach']();});},_0x2cf9c6=(_0x2dd904,_0x43a662)=>0x1==_0x2dd904['length']&&0x1==_0x43a662['length']&&_0x2dd904[0x0]['end']['isEqual'](_0x43a662[0x0]['start']),_0xe34016=(_0x59df2b,_0x11d1a0,_0x4fbd37,_0xa5a5f)=>Ft(_0x59df2b,_0x11d1a0,_0x4fbd37,_0xa5a5f,this['_model'])?[_0x59df2b,_0x11d1a0]:Ft(_0x11d1a0,_0x59df2b,_0xa5a5f,_0x4fbd37,this['_model'])?[_0x11d1a0,_0x59df2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e6226),this['_defaultCallbacks']['set']('insertion:discard',_0x53b1a4),this['_defaultCallbacks']['set']('insertion:join',_0x2cf9c6),this['_defaultCallbacks']['set']('insertion:chain',_0xe34016),this['_defaultCallbacks']['set']('deletion:accept',_0x53b1a4),this['_defaultCallbacks']['set']('deletion:discard',_0x4e6226),this['_defaultCallbacks']['set']('deletion:join',_0x2cf9c6),this['_defaultCallbacks']['set']('deletion:chain',_0xe34016),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d1b6b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e6226),this['_defaultCallbacks']['set']('formatInline:join',_0x2cf9c6),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e6226),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d1b6b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e6226),this['_defaultCallbacks']['set']('formatBlock:join',_0x2cf9c6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e6226),this['_defaultCallbacks']['set']('attribute:accept',_0x4e6226),this['_defaultCallbacks']['set']('attribute:discard',(_0x122d12,_0x1fcd30)=>{if(!_0x1fcd30)return;const _0x196d92=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x23999a=>{if(_0x1fcd30['key']==m)for(const _0x3e9136 of _0x122d12){const _0x107629=_0x3e9136['start']['nodeAfter'],_0x11c0b9=_0x1fcd30['oldValue'];_0x23999a['rename'](_0x107629,_0x11c0b9);}else{if(_0x196d92['_isBlockAttribute'](_0x1fcd30['key'])){for(const _0x1bbef8 of _0x122d12)void 0x0!==_0x1fcd30['oldValue']?_0x23999a['setAttribute'](_0x1fcd30['key'],_0x1fcd30['oldValue'],_0x1bbef8['start']['nodeAfter']):_0x23999a['removeAttribute'](_0x1fcd30['key'],_0x1bbef8['start']['nodeAfter']);}else{for(const _0x14b5b1 of _0x122d12)_0x1fcd30['oldValue']?_0x23999a['setAttribute'](_0x1fcd30['key'],_0x1fcd30['oldValue'],_0x14b5b1):_0x23999a['removeAttribute'](_0x1fcd30['key'],_0x14b5b1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2cf9c6);}}function Rt(_0x40d19a,_0xb34d4a,_0x5f5958){for(const _0x582bd5 of _0xb34d4a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x582bd5['root']==_0x582bd5)return!0x1;if(!_0x5f5958['containsItem'](_0x582bd5))return!0x1;if(_0x40d19a['isObject'](_0x582bd5)||_0x40d19a['isLimit'](_0x582bd5))return!0x0;}return!0x1;}function Tt(_0x500527){return _0x500527['end']['parent']==_0x500527['start']['nodeAfter']&&_0x500527['end']['isAtStart'];}function Et(_0x562ff3,_0x721eaa,_0x3527d6,_0x1d54a1){const _0x2ff7e0=_0x5ecbc0=>!_0x5ecbc0['item']['is']('$textProxy')&&!_0x1d54a1['isObject'](_0x5ecbc0['item']),_0x3d9883=_0x562ff3['start']['getLastMatchingPosition'](_0x2ff7e0),_0x3d35cb=_0x562ff3['end']['getLastMatchingPosition'](_0x2ff7e0,{'direction':'backward'});return(!_0x562ff3['start']['isEqual'](_0x3d9883)||!_0x562ff3['end']['isEqual'](_0x3d35cb))&&(_0x3d9883['isBefore'](_0x3d35cb)?_0x3527d6['updateMarker'](_0x721eaa,{'range':_0x3527d6['createRange'](_0x3d9883,_0x3d35cb)}):_0x3527d6['removeMarker'](_0x721eaa),!0x0);}function Vt(_0x3bbd31){return _0xcee980(_0x3bbd31);}function Ut(_0x3abdbb){const _0xfb9b8f=_0x3abdbb['start']['nodeAfter'];return _0xfb9b8f&&_0xfb9b8f['is']('element');}function Ot(_0x1bfffa,_0x397c8f){return null==_0x1bfffa['end']['nodeBefore']&&_0x1bfffa['end']['parent']==_0x1bfffa['start']['nodeAfter']?Gt(_0x1bfffa['start']['nodeAfter'],_0x397c8f):_0x1bfffa;}function Gt(_0x57c863,_0x40685f){const _0x7698e6=_0x40685f['schema']['isObject'](_0x57c863)||_0x40685f['schema']['isSelectable'](_0x57c863);return _0x40685f['createRange'](_0x40685f['createPositionAt'](_0x57c863,'before'),_0x7698e6?_0x40685f['createPositionAfter'](_0x57c863):_0x40685f['createPositionAt'](_0x57c863,'end'));}function Ft(_0x64e682,_0x3306f3,_0x55242e,_0x15e336,_0x2526ad){if(!Pt(_0x64e682,_0x3306f3))return!0x1;if(_0x55242e['end']['isEqual'](_0x15e336['start']))return!0x0;if(_0x64e682['type']!=_0x3306f3['type'])return!0x1;if(!_0x55242e['end']['isTouching'](_0x15e336['start']))return!0x1;const _0x1069a8=_0x2526ad['createRange'](_0x55242e['end'],_0x15e336['start'])['getWalker']();for(const _0x22eadd of _0x1069a8)if(['elementStart','elementEnd']['includes'](_0x22eadd['type'])&&_0x2526ad['schema']['isLimit'](_0x22eadd['item']))return!0x1;return!0x0;}function Pt(_0x24a9c4,_0x38dc09,_0x32cb67=[]){return!(!_0x24a9c4['_isDataLoaded']||!_0x38dc09['_isDataLoaded'])&&_0x763405(Bt(_0x24a9c4['attributes'],_0x32cb67),Bt(_0x38dc09['attributes'],_0x32cb67));}function Lt(_0x3c2f9f,_0xb01fb9){const _0x25c477=Ht(_0x3c2f9f['attributes']),_0x56d55b=Ht(_0xb01fb9);if(!_0x3c2f9f['_isDataLoaded'])return!0x1;for(const _0x2ca091 of Object['keys'](_0x56d55b))if(!_0x763405(_0x25c477[_0x2ca091],_0x56d55b[_0x2ca091]))return!0x1;return!0x0;}function Ht(_0x44a339){const _0x488de9=Object['assign']({},_0x44a339);return delete _0x488de9['skipNestingCheck'],delete _0x488de9['tablePasteChainId'],_0x488de9;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x37fd29(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2a42d3,_0x4ad31a,_0x2ae061,_0x4249af){super(),this['model']=_0x4ad31a,this['view']=_0x2ae061,this['commentThreadController']=_0x4249af,this['_editor']=_0x2a42d3,this['_acceptCommand']=_0x2a42d3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2a42d3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x599515,_0x517c53)=>_0x599515||_0x517c53),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7d29b6=>_0x7d29b6&&this['_editor']['model']['canEditAt'](_0x4ad31a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x562e12=>_0x562e12&&this['_editor']['model']['canEditAt'](_0x4ad31a['getRanges']())),this['_pendingAction']=null,_0x2ae061['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ae061,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ae061,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ae061,'change:isDirty',()=>{_0x2ae061['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x4539d8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4539d8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x19de91{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1b2000,_0x43f8e3,_0x23e250,_0xdc313c){super(_0x1b2000),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x43f8e3['authoredAt']),this['bind']('authoredAt')['to'](_0x43f8e3),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x43f8e3,this['_localUser']=_0x23e250,this['_config']=_0xdc313c,_0xdc313c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f5e13}=this['_config'];this['commentsListView']=new _0x1f5e13(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x40379e=>_0x40379e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf548f3,_0x4d4ba2)=>_0xf548f3||!!_0x4d4ba2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43c751}=this['_config'],_0x51b985=new _0x43c751(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23d419=_0x51b985['commentInputView'];return _0x51b985['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23d419,'value',(_0xd31776,_0xcf2c2d,_0x27ac37)=>!!_0x27ac37||_0xd31776&&!_0xcf2c2d),_0x23d419['on']('submit',(_0x3259ae,_0x1ebe95)=>{this['fire']('addComment',_0x1ebe95),_0x23d419['editor']['setData']('');}),_0x23d419['on']('cancel',()=>this['focus']()),_0x23d419['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51b985;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x51b9fd,_0xa24d1b,_0x271ffa,_0x48387f){super(_0x51b9fd,_0xa24d1b,_0x271ffa,_0x48387f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e1893=>_0x1e1893&&_0x1e1893[0x0]?_0x1e1893[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4dfb14,_0x438d53)=>{let _0x2c106a='';for(const _0x237c74 of _0x4dfb14)_0x2c106a+='<p>'+ds(_0x237c74['content'],_0x237c74['color'])+'</p>';return _0x438d53?_0x2c106a:_0x132720(_0x2c106a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x51b9fd,'Accept\x20suggestion'),_0x52329b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x51b9fd,'Discard\x20suggestion'),_0x52329b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3292ce(_0x51b9fd,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4932a5=this['bindTemplate'],_0x44d972=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4932a5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4932a5['to']('authoredAt',_0x4d1959=>this['_config']['formatDateTime'](_0x4d1959))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x44d972['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3c00fa={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4932a5['if']('isActive','ck-suggestion-wrapper--active'),_0x4932a5['to']('type',_0x48df43=>'ck-suggestion-'+_0x48df43),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x44d972}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3c00fa['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3c00fa;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x6af15,_0x4fcabb,_0x246405)=>{this['_descriptionElement']['innerHTML']=_0x246405;});}['_createButton'](_0x3beaeb,_0x3419a5,_0x398eb6,_0x3f3b95,_0x40133d){const _0x5f301b=new _0x5e1f82(this['locale']);return _0x5f301b['set']({'label':_0x3beaeb,'icon':_0x3419a5,'tooltip':!0x0,'tooltipPosition':_0x40133d}),_0x5f301b['extendTemplate']({'attributes':{'class':_0x398eb6}}),_0x5f301b['on']('execute',()=>{this['fire'](_0x3f3b95,this['_model']['id']);}),_0x5f301b;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x573826,_0x5630e3){let _0x8074e4='';return _0x8074e4+=_0x573826['split']('*')['map']((_0x261475,_0x2af60c)=>_0x2af60c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x261475)+'</span>':us(_0x261475))['join'](''),_0x5630e3&&(_0x8074e4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5630e3['value']+'\x22\x20title=\x22'+_0x5630e3['title']+'\x22></span>'),_0x8074e4;}function us(_0x16d898){const _0xff6815=document['createElement']('span');return _0xff6815['innerText']=_0x16d898,_0xff6815['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5297f7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4306be,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5adcd6){super(_0x5adcd6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19d9bb=this['editor']['config'];_0x19d9bb['define']('trackChanges.SuggestionThreadView',ne),_0x19d9bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19d9bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x43a733,_0x2c062d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x191d43,_0x2e22b3]of this['_handleControllerBuffer']){const _0x39c1ba=this['_suggestionToController']['has'](_0x191d43);_0x39c1ba||_0x2e22b3?_0x39c1ba&&_0x2e22b3&&this['_destroyController'](_0x191d43):this['_initializeController'](_0x191d43);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x43a733,_0x2c062d);}['init'](){const _0x857d44=this['editor'],_0x14743e=_0x857d44['plugins']['get']('TrackChangesEditing'),_0x1771c9=_0x857d44['plugins']['get']('Annotations'),_0x16ec5b=_0x857d44['plugins']['get']('EditorAnnotations'),_0x5e0b1e=_0x857d44['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16ec5b['addSourceCollector'](()=>{const _0xfbf113=[];for(const [_0x3a517c,_0x229fdf]of Array['from'](this['_suggestionToController'])){const _0x593276=_0x3a517c['getAllAdjacentSuggestions'](),_0xe6302b=[];for(const _0x4430ee of _0x593276){if(!_0x4430ee['isInContent'])continue;if(_0x4430ee['isMultiRange']){_0xe6302b['push'](..._0x4430ee['getRanges']());continue;}const _0x103057=_0x4430ee['getFirstRange']();if(_0xe6302b['length']>0x0){const _0x48a453=_0xe6302b[0x0]['getJoined'](_0x103057);if(_0x48a453){_0xe6302b[0x0]=_0x48a453;continue;}}_0xe6302b['push'](_0x103057);}_0xfbf113['push']([_0x229fdf['view'],_0xe6302b]);}return _0xfbf113;}),this['listenTo'](_0x14743e,'suggestionLoaded',(_0x5c1460,_0x4e0ed4)=>{this['listenTo'](_0x4e0ed4,'change:previous',(_0x1e18f0,_0x3c2309,_0x5145b6,_0x771688)=>{_0x4e0ed4['isInContent']&&(null==_0x5145b6?(this['_updateController'](_0x771688['head']),this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x1)):(this['_updateController'](_0x5145b6['head']),null==_0x771688&&this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x0)));}),null!==_0x4e0ed4['previous']?this['_updateController'](_0x4e0ed4['head']):this['_handleSuggestionControllerDelayed'](_0x4e0ed4,!0x1);}),this['listenTo'](_0x14743e,'suggestionUnloaded',(_0x5ee3d2,_0x38a0b5,_0x3ec200)=>{this['stopListening'](_0x38a0b5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x38a0b5),this['_suggestionToController']['has'](_0x38a0b5)&&this['_destroyController'](_0x38a0b5),_0x3ec200&&this['_updateController'](_0x3ec200['head']);}),this['listenTo'](_0x14743e,'suggestionChanged',(_0x285de3,_0x556336)=>{this['_updateController'](_0x556336);}),this['listenTo'](_0x1771c9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e0b1e,'addComment',(_0x25e17d,{threadId:_0x36f81d,isFromAdapter:_0x48ed13})=>{if(_0x48ed13||!_0x14743e['hasSuggestion'](_0x36f81d))return;const _0x29ccf2=_0x14743e['getSuggestion'](_0x36f81d);this['_suggestionToController']['get'](_0x29ccf2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x509023=this['editor']['plugins']['get']('Annotations'),_0x207c35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162fe3=Array['from'](_0x509023['activeAnnotations'],_0x33f3d3=>_0x33f3d3['innerView'])['filter'](_0x176f62=>this['_viewToController']['has'](_0x176f62)),_0x131704=[];for(const _0x666201 of _0x162fe3){const _0xe4c172=this['_viewToController']['get'](_0x666201)['model']['getAllAdjacentSuggestions']();_0x131704['push'](..._0xe4c172['reduce']((_0xd022a9,_0xb1dd0)=>[..._0xd022a9,..._0xb1dd0['getMarkerNames']()],[]));}_0x207c35['activeMarkers']=_0x131704;}['_addUIComponentsToFactory'](){const _0xc3a6a3=this['editor'],_0x1879b2=_0xc3a6a3['locale'],_0x1af4a8=o(_0x1879b2,'Track\x20changes'),_0x477a94=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1af4a8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1879b2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x30e294 of _0x477a94)if(ae(_0x30e294)){const _0x3c2951=_0xc3a6a3['commands']['get'](_0x30e294['model']['commandName']);_0x30e294['model']['bind']('isOn','isEnabled')['to'](_0x3c2951,'value','isEnabled');}_0xc3a6a3['ui']['componentFactory']['add']('trackChanges',_0x1f2cfc=>this['_createToolbarButton'](_0x1f2cfc,_0x477a94,_0x1af4a8)),_0xc3a6a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44b123=>this['_createMenuBarMenu'](_0x44b123,_0x477a94,_0x1af4a8));}['_createToolbarButton'](_0x150e7e,_0xebfc14,_0x2d072d){const _0x11a335=zt(_0x150e7e,Zt),_0x3b3dc3=this['editor']['commands']['get']('trackChanges');_0x11a335['buttonView']['set']({'tooltip':_0x2d072d,'label':_0x2d072d,'icon':ie}),_0x11a335['buttonView']['bind']('isOn')['to'](_0x3b3dc3,'value'),_0x11a335['buttonView']['on']('execute',()=>{_0x3b3dc3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x11a335,_0xebfc14,{'role':'menu'});const _0x37772a=[];for(const _0x41316b of _0xebfc14)ae(_0x41316b)&&_0x37772a['push'](this['editor']['commands']['get'](_0x41316b['model']['commandName']));const _0x274142=_0x11a335['buttonView'];return _0x274142['actionView']['unbind']('isEnabled'),_0x274142['arrowView']['unbind']('isEnabled'),_0x274142['actionView']['bind']('isEnabled')['to'](_0x3b3dc3,'isEnabled'),_0x274142['arrowView']['bind']('isEnabled')['toMany'](_0x37772a,'isEnabled',(..._0x11046a)=>_0x11046a['some'](_0x1b0de2=>_0x1b0de2)),_0x11a335['on']('execute',_0x172fca=>{this['editor']['execute'](_0x172fca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11a335;}['_createMenuBarMenu'](_0x3b30f1,_0x1504f4,_0x22c023){const _0x5e2eb0=new Kt(_0x3b30f1),_0x47a74d=this['editor']['commands']['get']('trackChanges');_0x5e2eb0['buttonView']['set']({'label':_0x22c023,'icon':ie});const _0x34fcde=new Qt(_0x3b30f1);for(const _0x156baf of _0x1504f4){if('separator'==_0x156baf['type']){_0x34fcde['items']['add'](new Jt(_0x3b30f1));continue;}const _0x5f1d4e=new Xt(_0x3b30f1,_0x5e2eb0),_0x19702a=new Yt(_0x3b30f1),_0x2aa731=_0x156baf['model'];_0x19702a['bind'](...Object['keys'](_0x2aa731))['to'](_0x2aa731),_0x19702a['delegate']('execute')['to'](_0x5e2eb0),_0x19702a['on']('execute',()=>{this['editor']['execute'](_0x2aa731['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f1d4e['children']['add'](_0x19702a),_0x34fcde['items']['add'](_0x5f1d4e);}return _0x5e2eb0['bind']('isEnabled')['to'](_0x47a74d,'isEnabled'),_0x5e2eb0['panelView']['children']['add'](_0x34fcde),_0x5e2eb0;}['_initializeController'](_0x4ae12e){const _0x2e9371=this['editor'],_0x12d186=_0x2e9371['config'],_0x42c7a7=_0x2e9371['plugins']['get']('Annotations'),_0xcdee9d=_0x2e9371['plugins']['get']('CommentsRepository'),_0x4ed590=_0x2e9371['plugins']['get']('EditorAnnotations'),_0x2f59f0=_0x2e9371['plugins']['get'](_0x4306be)['me'],_0x5ae339=_0x12d186['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3978ec,CommentThreadInputView:_0x4c80ba}=_0x2e9371['plugins']['get']('CommentsUI');let _0x56a965,_0x2e23f2;this['_annotationViews']['has'](_0x4ae12e['id'])?(_0x2e23f2=this['_annotationViews']['get'](_0x4ae12e['id']),_0x56a965=_0x2e23f2['mainView']):(_0x56a965=new _0x5ae339(_0x2e9371['locale'],_0x4ae12e,_0x2f59f0,{'disableComments':this['_disableComments'],'editorConfig':_0x12d186['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x12d186['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12d186['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12d186['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x64b405(_0x12d186['get']('locale')),'CommentView':_0x12d186['get']('comments')['CommentView'],'CommentsListView':_0x3978ec,'CommentThreadInputView':_0x4c80ba}),_0x56a965['acceptButton']['on']('execute',()=>{_0x2e9371['editing']['view']['focus']();}),_0x56a965['discardButton']['on']('execute',()=>{_0x2e9371['editing']['view']['focus']();}),_0x2e23f2=_0x42c7a7['createAnnotationView'](this['editor']['locale'],_0x56a965),_0x2e23f2['bind']('isDirty')['to'](_0x56a965,'isDirty'),_0x2e23f2['bind']('length')['to'](_0x56a965),_0x2e23f2['bind']('type')['to'](_0x56a965,'type',_0x280bd5=>'suggestion-'+_0x280bd5),this['_annotationViews']['set'](_0x4ae12e['id'],_0x2e23f2));const _0x5d1420=_0xcdee9d['createCommentThreadController'](_0x4ae12e['commentThread'],_0x56a965),_0x8c6d9a=new oe(_0x2e9371,_0x4ae12e,_0x56a965,_0x5d1420),_0x375008=_0x4ae12e['getAllAdjacentSuggestions']()['filter'](_0x537425=>_0x537425['isInContent']);_0x56a965['descriptionParts']=_0x2e9371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x375008),this['_suggestionToController']['set'](_0x4ae12e,_0x8c6d9a),this['_viewToController']['set'](_0x56a965,_0x8c6d9a);const _0xb71550=_0x42c7a7['createAnnotation']({'view':_0x2e23f2,'target':()=>{const _0x31cde4=[],_0x33bc64=_0x4ae12e['getAllAdjacentSuggestions']()['filter'](_0x7d47f3=>_0x7d47f3['isInContent']);for(const _0x51bc94 of _0x33bc64)_0x31cde4['push'](..._0x51bc94['getMarkers']());return _0x1acdac(_0x2e9371['editing'],_0x31cde4);},'type':()=>'suggestion-'+_0x8c6d9a['view']['type']});_0xcdee9d['_bindAnnotationToEditors'](_0x56a965,_0xb71550),_0x42c7a7['add'](_0xb71550),_0x4ed590['registerAnnotation'](_0xb71550);}['_destroyController'](_0x3457d3){const _0x250379=this['editor']['plugins']['get']('CommentsRepository'),_0xf7c892=this['editor']['plugins']['get']('Annotations'),_0x4dac91=this['_suggestionToController']['get'](_0x3457d3),_0x41c7f0=_0x4dac91['view'],_0x2b1861=_0xf7c892['getByInnerView'](_0x41c7f0);_0x250379['_unbindEditors'](_0x41c7f0),_0x2b1861&&_0xf7c892['remove'](_0x2b1861),this['_suggestionToController']['delete'](_0x3457d3),this['_viewToController']['delete'](_0x41c7f0),_0x4dac91['destroy']();}['_updateController'](_0xc1c1d4){if(!_0xc1c1d4['isInContent']||!this['_suggestionToController']['has'](_0xc1c1d4))return;const _0x378af1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bcea3=this['_suggestionToController']['get'](_0xc1c1d4),_0x5ad18a=_0xc1c1d4['getAllAdjacentSuggestions']();_0x3bcea3['view']['descriptionParts']=_0x378af1['descriptionFactory']['getDescriptions'](_0x5ad18a);}['destroy'](){for(const _0x5652bd of this['_suggestionToController']['keys']())this['_destroyController'](_0x5652bd);for(const _0x35051b of this['_annotationViews']['values']())_0x35051b['mainView']['destroy']();super['destroy']();}}function ae(_0x54c9f0){return'model'in _0x54c9f0;}class k extends _0x5297f7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x365d1b){this['editor']['plugins']['get'](p)['adapter']=_0x365d1b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x57b3b4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x57b3b4);}['getSuggestions']({skipNotAttached:_0x3f94e6=!0x1,toJSON:_0xc5c54e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f94e6,'toJSON':_0xc5c54e});}['getSuggestion'](_0x34370e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x34370e);}}const T=['Pagination'];class P extends _0x5297f7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x212c8c=this['editor'];if(_0x212c8c['config']['define']('trackChangesData.editorCreator',_0x549266=>{const _0x4fa205=_0x212c8c['model']['document']['getRootNames']()['reduce']((_0x106b5e,_0x1a2ed2)=>(_0x106b5e[_0x1a2ed2]='',_0x106b5e),{});return _0x212c8c['constructor']['create'](_0x4fa205,_0x549266);}),'function'!=typeof _0x212c8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x190e91('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9c7a32){return N(this['editor'],!0x0,_0x9c7a32);}['getDataWithDiscardedSuggestions'](_0x8e3354){return N(this['editor'],!0x1,_0x8e3354);}}class D extends _0x5297f7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3ae10d){super(_0x3ae10d),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x9ab351){return void 0x0!==_0x9ab351['getRootsAttributes'];}async function N(_0x497706,_0x34588b,_0x3ac4bd){const _0x23f87f=_0x578c29(_0x497706,T);_0x23f87f['plugins']['push'](p,D),_0x23f87f['rootsAttributes']=v(_0x497706)?_0x497706['getRootsAttributes']():void 0x0;const _0x4b56e4=document['createDocumentFragment'](),_0x3ab30e=_0x497706['config']['get']('trackChangesData')['editorCreator'],_0xbe594d=await _0x3ab30e(_0x23f87f,()=>function(_0x501a8d){const _0x41235d=document['createElement']('div');return _0x501a8d['appendChild'](_0x41235d),_0x41235d;}(_0x4b56e4));!function(_0xf6026f,_0x1ee9b1){const _0x1b142=_0xf6026f['model']['document']['getRootNames']()['reduce']((_0x3149dd,_0x4ed0e6)=>(_0x3149dd[_0x4ed0e6]=_0xf6026f['data']['get']({'rootName':_0x4ed0e6}),_0x3149dd),{}),_0x2ba223=_0xf6026f['plugins']['get']('Users')['users']['map'](_0x44f67f=>({'id':_0x44f67f['id'],'name':_0x44f67f['name']})),_0x13af33=_0xf6026f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cec92=_0xf6026f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22b122=_0x1ee9b1['plugins']['get']('Users'),_0x5ae470=_0x1ee9b1['plugins']['get']('TrackChangesEditing'),_0x31f2a1=_0x1ee9b1['plugins']['get']('CommentsRepository');for(const _0x5d2a01 of _0x2ba223)_0x22b122['getUser'](_0x5d2a01['id'])||_0x22b122['addUser'](_0x5d2a01);_0x22b122['me']||_0x22b122['useAnonymousUser']();for(const _0x4ef07c of _0x13af33)_0x5ae470['addSuggestionData'](_0x4ef07c);for(const _0x2944b6 of _0x4cec92)_0x31f2a1['addCommentThread'](_0x2944b6);_0x1ee9b1['data']['set'](_0x1b142);}(_0x497706,_0xbe594d),_0xbe594d['execute'](_0x34588b?'acceptAllSuggestions':'discardAllSuggestions');const _0x751432=v(_0xbe594d)?_0xbe594d['getFullData'](_0x3ac4bd):_0xbe594d['data']['get'](_0x3ac4bd);return await _0xbe594d['destroy'](),_0x751432;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0xeaacfa,PendingActions as _0x5b0c8c,icons as _0xb3e85c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4054be,ObservableMixin as _0x4ff9be,uid as _0x107e61,insertToPriorityArray as _0x5aa210,priorities as _0x2a5a1e,logWarning as _0x8dc560,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5a5258,View as _0xb7d5df,ButtonView as _0x1863cb,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x43f0c5,hashObject as _0x25faca,surroundingMarkersDetector as _0x2efde5,trimHtml as _0x582db4,UserView as _0x532e9f,getDateTimeFormatter as _0x493fae,getAllMarkersDomElementsSorted as _0x2e8ef6,sanitizeEditorConfig as _0x5663ba}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1941c9,LiveRange as _0x54c30a,LivePosition as _0x375039}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50a99b,toWidget as _0x390659}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x43f6f6,set as _0xaf29af,isEqual as _0x2ef343,unset as _0xaa167b,omit as Bt}from'lodash-es';import{Delete as _0x575b39,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a4105,ShiftEnter as _0x4aa5ce}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1cfcc2,_0x7b8a1){super(_0x1cfcc2),this['_enabledCommands']=_0x7b8a1,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 _0x5c9e8d of this['editor']['commands']['commands']())_0x5c9e8d['affectsData']&&!this['_enabledCommands']['has'](_0x5c9e8d)&&_0x5c9e8d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x208089 of this['editor']['commands']['commands']())_0x208089['affectsData']&&!this['_enabledCommands']['has'](_0x208089)&&_0x208089['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x571d38,_0xc233c8){super(_0x571d38),this['_suggestions']=_0xc233c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x510102){const _0x227a2b=this['_suggestions']['get'](_0x510102);if(!_0x227a2b)throw new _0x4054be('track-changes-accept-suggestion-not-found',this);const _0x2157b0=_0x227a2b['getRanges']();this['editor']['model']['canEditAt'](_0x2157b0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x227a2b);}}class B extends ts{['_suggestions'];constructor(_0x5ded73,_0x3613bd){super(_0x5ded73),this['_suggestions']=_0x3613bd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31206e){const _0x254460=this['_suggestions']['get'](_0x31206e);if(!_0x254460)throw new _0x4054be('track-changes-discard-suggestion-not-found',this);const _0x21ab66=_0x254460['getRanges']();this['editor']['model']['canEditAt'](_0x21ab66)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x254460);}}function ss(_0x4537e7){return _0x4537e7['sort']((_0x2871a9,_0x4bc18d)=>'deletion'==_0x2871a9['type']&&'deletion'!=_0x4bc18d['type']?-0x1:'deletion'!=_0x2871a9['type']&&'deletion'==_0x4bc18d['type']?0x1:0x0);}function to(_0x503ce2,_0x6e3ad3){let _0x3be9ec,_0x46fede=0x0;const _0x55070f=[],_0x5082de=_0x6e3ad3['schema'];for(;_0x46fede<_0x503ce2['length'];){const _0x52ee43=_0x503ce2[_0x46fede],_0x97554c=_0x503ce2[_0x46fede+0x1];_0x3be9ec||(_0x3be9ec=_0x6e3ad3['createPositionBefore'](_0x52ee43)),co(_0x6e3ad3,_0x52ee43,_0x97554c)||(_0x55070f['push'](_0x6e3ad3['createRange'](_0x3be9ec,_0x5082de['isObject'](_0x52ee43)?_0x6e3ad3['createPositionAfter'](_0x52ee43):_0x6e3ad3['createPositionAt'](_0x52ee43,'end'))),_0x3be9ec=null),_0x46fede++;}return _0x55070f;}function co(_0xff3bcf,_0x4e002e,_0x4c311a){if(!_0x4c311a)return!0x1;const _0xb3f87a=_0xff3bcf['createPositionAfter'](_0x4e002e),_0x48bc38=_0xff3bcf['createPositionBefore'](_0x4c311a);return _0xb3f87a['isTouching'](_0x48bc38);}function rs(_0x5c903f,_0x418de3,_0x1366f6){for(;_0x1366f6['length'];){const _0x30121f=_0x1366f6['splice'](0x0,0x64);_0x5c903f['change'](()=>{for(const _0x2c54e9 of _0x30121f)_0x2c54e9['isInContent']&&_0x418de3['execute'](_0x2c54e9['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5ca14b,_0x4448b3,_0x47dae2){super(_0x5ca14b),this['_command']=_0x4448b3,this['_suggestions']=_0x47dae2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46e4ff=Array['from'](this['_suggestions']['values']())['some'](_0xbf0674=>_0xbf0674['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46e4ff;}['execute'](){const _0x3f9610=ss(Array['from'](this['_suggestions']['values']()));for(const _0x19d23d of _0x3f9610){const _0x110840=_0x19d23d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x110840))return;}rs(this['editor']['model'],this['_command'],_0x3f9610);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37fd62,_0x41d258,_0x172210){super(_0x37fd62),this['_command']=_0x41d258,this['_suggestions']=_0x172210,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51f262=this['editor']['model']['document']['selection'],_0xfd3db2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xba63c1,_0x137366){const _0x46ec9d=Array['from'](_0xba63c1['getRanges']()),_0x16b772=new Set();for(const _0x1ec40e of _0x137366)if(_0x1ec40e['isInContent']){for(const _0x22223a of _0x46ec9d)for(const _0x566450 of _0x1ec40e['getRanges']())(_0x22223a['isIntersecting'](_0x566450)||_0xba63c1['isCollapsed']&&!_0x1ec40e['isMultiRange']&&_0x1ec40e['next']&&_0x566450['end']['isTouching'](_0x22223a['start']))&&_0x16b772['add'](_0x1ec40e);}return _0x16b772;}(_0x51f262,_0xfd3db2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40cedf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4b0846 of _0x40cedf){const _0x74f3eb=_0x4b0846['getRanges']();if(!this['editor']['model']['canEditAt'](_0x74f3eb))return;}rs(this['editor']['model'],this['_command'],_0x40cedf);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ff9be(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x307c60,_0x350b7a){super(),this['id']=_0x350b7a['id'],this['type']=_0x350b7a['type'],this['subType']=_0x350b7a['subType']||null,this['author']=_0x350b7a['author'],this['creator']=_0x350b7a['creator']||_0x350b7a['author'],this['isExternal']=Boolean(_0x350b7a['attributes']&&_0x350b7a['attributes']['@external']),this['data']=null,this['_model']=_0x307c60,this['_onAccept']=_0x350b7a['onAccept'],this['_onDiscard']=_0x350b7a['onDiscard'],this['_onAttributesChange']=_0x350b7a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x350b7a['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 _0x2e8bdb=this;for(;_0x2e8bdb['previous'];)_0x2e8bdb=_0x2e8bdb['previous'];return _0x2e8bdb;}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'](_0x5dcc88){this['_markerNames']['add'](_0x5dcc88);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc4eb99=>this['_model']['markers']['get'](_0xc4eb99))['filter'](_0x172c93=>_0x172c93);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x64ce28=>{for(const _0x1e39cd of this['getMarkers']())_0x64ce28['removeMarker'](_0x1e39cd);}),this['_markerNames']['clear']();}['removeMarker'](_0x2caad3){this['_model']['change'](_0x3f5bfd=>{_0x3f5bfd['removeMarker'](_0x2caad3);}),this['_markerNames']['delete'](_0x2caad3);}['addRange'](_0x2c43ec){const _0x144805='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x144805),this['_model']['change'](_0x3c6b39=>{_0x3c6b39['addMarker'](_0x144805,{'range':_0x2c43ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x6a5ef5){for(const _0x55f7e8 of this['getRanges']())if(_0x55f7e8['isIntersecting'](_0x6a5ef5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x48b65b=>_0x48b65b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1affa4,_0x44c5e3)=>[..._0x1affa4,..._0x44c5e3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1163ac=this['getRanges']();if(0x1!=_0x1163ac['length'])return null;const _0x104637=_0x1163ac[0x0],_0x35ef1e=_0x104637['start']['nodeAfter'],_0x3cefaa=_0x104637['end']['nodeBefore'];return _0x35ef1e instanceof _0x1941c9?_0x35ef1e!=_0x3cefaa?null:_0x35ef1e: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 _0x9d8691=[];let _0x3223ca=this['head'];for(;_0x3223ca;)_0x9d8691['push'](_0x3223ca),_0x3223ca=_0x3223ca['next'];return _0x9d8691;}['setAttribute'](_0x1b101a,_0x203b30){const _0x48baf8=_0x43f6f6(this['attributes']);_0xaf29af(_0x48baf8,_0x1b101a,_0x203b30),_0x2ef343(_0x48baf8,this['attributes'])||(this['attributes']=_0x48baf8,this['_onAttributesChange'](_0x48baf8));}['removeAttribute'](_0x1cc488){const _0x369f25=_0x43f6f6(this['attributes']);_0xaa167b(_0x369f25,_0x1cc488),_0x2ef343(_0x369f25,this['attributes'])||(this['attributes']=_0x369f25,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 _0x107e61()['substr'](0x1,0x5);}}function o(_0x484a0e,_0x4f0aa9,_0x1b7888){const t=_0x484a0e['t'];switch(_0x4f0aa9){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',_0x1b7888);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b7888);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b7888);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b7888);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b7888);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',_0x1b7888);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b7888);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',_0x1b7888);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b7888);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b7888);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b7888);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b7888);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b7888);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b7888);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b7888);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b7888);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b7888);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b7888);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b7888);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b7888);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b7888);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b7888);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b7888);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'},_0x1b7888);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b7888);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b7888);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b7888);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b7888);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b7888);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b7888);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b7888);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b7888);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'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b7888);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b7888);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b7888);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'},_0x1b7888);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4f0aa9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1bb7b4,_0x13bc5c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1bb7b4,this['_locale']=_0x13bc5c;}['getDescriptions'](_0x506c8c){const _0x54f374=[],_0x497801=new Set(),_0x208895=new Set();for(let _0xd2fcfb=0x0;_0xd2fcfb<_0x506c8c['length'];_0xd2fcfb++){const _0x3e9f73=_0x506c8c[_0xd2fcfb];if(!_0x3e9f73['isInContent'])continue;const _0x3202fb=this['_handleCustomCallbackDescription'](_0x3e9f73);if(_0x3202fb){if(null!=_0x3e9f73['subType']){if(_0x497801['has'](_0x3e9f73['subType']))continue;_0x497801['add'](_0x3e9f73['subType']);}_0x54f374['push'](_0x3202fb);}else{if('attribute'!=_0x3e9f73['type'])'insertion'!=_0x3e9f73['type']&&'deletion'!=_0x3e9f73['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54f374,_0x3e9f73,_0x506c8c[_0xd2fcfb+0x1]);else{const _0x852ddd=_0x3e9f73['data']['key'];if(_0x208895['has'](_0x852ddd))continue;_0x208895['add'](_0x3e9f73['data']['key']),_0x852ddd==m?this['_handleRenameSuggestionDescription'](_0x54f374,_0x3e9f73):this['_handleAttributeSuggestionDescription'](_0x54f374,_0x3e9f73);}}}return this['_resolveDescriptionItems'](_0x54f374);}['registerDescriptionCallback'](_0x51bab5){this['_customCallbacks']['push'](_0x51bab5);}['registerElementLabel'](_0x19bd7a,_0x2b3389,_0x5837da=_0x2a5a1e['normal']){'function'==typeof _0x19bd7a?_0x5aa210(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19bd7a,'label':_0x2b3389,'priority':_0x5837da}):this['_itemLabels']['set'](_0x19bd7a,_0x2b3389);}['registerAttributeLabel'](_0x42648d,_0x2726be){this['_attributeLabels']['set'](_0x42648d,_0x2726be);}['getItemLabel'](_0x507b37,_0x518b5d=0x1){let _0x37a8a5;for(const _0x2362dc of this['_itemLabelsCallbacks'])if(_0x2362dc['matchingCallback'](_0x507b37)){_0x37a8a5=_0x2362dc['label'];break;}return _0x37a8a5||(_0x37a8a5=this['_itemLabels']['get'](_0x507b37['name'])),_0x37a8a5?_0x37a8a5(_0x518b5d):0x1!==_0x518b5d?_0x518b5d+'\x20'+_0x507b37['name']+'s':''+_0x507b37['name'];}['_addDescriptionItems'](_0x1a0062,_0x150a1c){const _0x353de7=_0x150a1c['getFirstRange']()['getWalker'](),_0x4f8dd0='insertion'==_0x150a1c['type']?'add':'remove';for(const _0x5261af of _0x353de7){const _0x15699a=_0x5261af['item'],_0x5444b6=_0x1a0062[_0x1a0062['length']-0x1];if(_0x15699a['is']('$textProxy'))_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),_0x5444b6&&'text'==_0x5444b6['type']?_0x5444b6[_0x4f8dd0]+=_0x15699a['data']:_0x1a0062['push']({'type':'text','add':'add'==_0x4f8dd0?_0x15699a['data']:'','remove':'remove'==_0x4f8dd0?_0x15699a['data']:''});else{if(this['_schema']['isObject'](_0x15699a)){const _0x316bbc=_0x15699a;if(_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),'elementEnd'==_0x5261af['type'])continue;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'Object'&&_0x5444b6['element']['name']==_0x316bbc['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'Object','element':_0x316bbc,'quantity':0x1}),_0x353de7['skip'](_0x505dda=>!('elementEnd'==_0x505dda['type']&&_0x505dda['item']==_0x15699a));}else{if(this['_schema']['checkChild'](_0x15699a,'$text')||_0x15699a['is']('element','softBreak')){const _0x563b0e=_0x15699a;if('add'==_0x4f8dd0&&'elementStart'==_0x5261af['type']||'remove'==_0x4f8dd0&&'elementEnd'==_0x5261af['type'])continue;if(_0x5444b6&&-0x1==_0x5444b6['type']['indexOf']('Container')){'text'==_0x5444b6['type']&&(_0x5444b6[_0x4f8dd0]+='\x0a');continue;}let _0x4d3b49;if(_0x4d3b49='add'==_0x4f8dd0?_0x563b0e['nextSibling']&&!this['_schema']['isObject'](_0x563b0e['nextSibling'])?_0x563b0e['nextSibling']:null:_0x563b0e['previousSibling']&&!this['_schema']['isObject'](_0x563b0e['previousSibling'])?_0x563b0e['previousSibling']:null,_0x563b0e['isEmpty']||_0x4d3b49&&_0x4d3b49['isEmpty']){const _0x249364=_0x4d3b49&&_0x4d3b49['isEmpty']?_0x4d3b49:_0x563b0e;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'EmptyContainer'&&_0x5444b6['element']['name']==_0x249364['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'EmptyContainer','element':_0x249364,'quantity':0x1});}else _0x1a0062['push']({'type':_0x4f8dd0+'Container','element':_0x563b0e});}}}}}['_resolveDescriptionItems'](_0x103f87){const _0x123cc9=this['_locale'],_0x512bf1=[],_0x4aaa8f=[],_0x47b141=[];for(const _0x44ee4f of _0x103f87)switch(_0x44ee4f['type']){case'text':if(_0x44ee4f['add']=_0x44ee4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44ee4f['remove']=_0x44ee4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44ee4f['add']&&''!=_0x44ee4f['remove']){_0x512bf1['push']({'type':'replace','content':o(_0x123cc9,'REPLACE_TEXT',['\x22'+_0x44ee4f['remove']+'\x22','\x22'+_0x44ee4f['add']+'\x22'])});continue;}if(null!=_0x44ee4f['add']['match'](/^ +$/)){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['add']['length']))});continue;}if(null!=_0x44ee4f['remove']['match'](/^ +$/)){_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['remove']['length']))});continue;}if(''!=_0x44ee4f['add']){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0','\x22'+_0x44ee4f['add']+'\x22')});continue;}_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0','\x22'+_0x44ee4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addContainer':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Split:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeContainer':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Merge:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addFormat':_0x4aaa8f['push'](_0x44ee4f['key']);continue;case'removeFormat':_0x47b141['push'](_0x44ee4f['key']);continue;default:_0x512bf1['push'](_0x44ee4f);}if(_0x4aaa8f['length']){const _0x40dfe8=_0x4aaa8f['map'](_0x304efb=>this['_attributeLabels']['has'](_0x304efb)?this['_attributeLabels']['get'](_0x304efb):_0x304efb)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40dfe8)});}if(_0x47b141['length']){const _0x5ab53d=_0x47b141['map'](_0x569e88=>this['_attributeLabels']['has'](_0x569e88)?this['_attributeLabels']['get'](_0x569e88):_0x569e88)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ab53d)});}return _0x512bf1;}['_handleCustomCallbackDescription'](_0x57d5a6){for(const _0x3c92f1 of this['_customCallbacks']){const _0x5db415=_0x3c92f1(_0x57d5a6);if(_0x5db415&&'type'in _0x5db415)return _0x5db415;}}['_handleAttributeSuggestionDescription'](_0x183d78,_0x257a5a){const _0x16a6d1=_0x257a5a['data'],_0x30deee=void 0x0===_0x16a6d1['newValue']?'removeFormat':'addFormat';_0x183d78['push']({'type':_0x30deee,'key':_0x16a6d1['key']});}['_handleRenameSuggestionDescription'](_0x566b28,_0x192bd3){_0x566b28['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x192bd3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x521283,_0x1eef4c,_0x3ecccb){if(this['_addDescriptionItems'](_0x521283,_0x1eef4c),_0x3ecccb&&_0x3ecccb['getFirstRange']()&&!_0x1eef4c['getFirstRange']()['end']['isEqual'](_0x3ecccb['getFirstRange']()['start'])){const _0x8b7039=_0x521283[_0x521283['length']-0x1],_0x56c9ba='insertion'==_0x1eef4c['type']?'add':'remove';_0x8b7039&&'text'==_0x8b7039['type']&&(_0x8b7039[_0x56c9ba]+='\x0a');}}}class E extends _0xeaacfa{['afterInit'](){const _0x1a880f=this['editor'],_0xfb957=_0x1a880f['plugins']['get']('TrackChangesEditing');_0x1a880f['commands']['get']('showAIAssistant')&&_0xfb957['enableCommand']('showAIAssistant');}}class V extends _0xeaacfa{['afterInit'](){const _0x4ae81d=this['editor'],_0x2e8a2d=_0x4ae81d['locale'];if(!_0x4ae81d['plugins']['has']('AlignmentEditing'))return;const _0x4f3983=_0x4ae81d['plugins']['get']('TrackChangesEditing');_0x4f3983['enableDefaultAttributesIntegration']('alignment'),_0x4f3983['registerBlockAttribute']('alignment'),_0x4f3983['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2e8a2d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f75e1=this['editor'],_0xeedb99=_0x4f75e1['locale'];_0x4f75e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511bb8=>{if('formatBlock'!=_0x511bb8['type'])return;const {data:_0x515bc5}=_0x511bb8;if(_0x515bc5&&'alignment'==_0x515bc5['commandName']){const _0x4f66a7=_0x515bc5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeedb99,'*Format:*\x20%0',function(_0xf5ea8a){switch(_0xf5ea8a){case'left':return o(_0xeedb99,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeedb99,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeedb99,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeedb99,'FORMAT_JUSTIFY_TEXT');}}(_0x4f66a7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xeaacfa{['afterInit'](){const _0xaaedcc=this['editor'],_0x27a811=_0xaaedcc['plugins']['get']('TrackChangesEditing'),_0xd25d37=_0xaaedcc['locale'];for(const _0xfda45 of ti){if(!_0xaaedcc['plugins']['has'](_0xfda45))continue;const _0x591b87=_0xfda45['slice'](0x0,-0x7)['toLowerCase'](),_0x409e2b='FORMAT_'+_0x591b87['toUpperCase']();_0x27a811['enableDefaultAttributesIntegration'](_0x591b87),_0x27a811['registerInlineAttribute'](_0x591b87),_0x27a811['descriptionFactory']['registerAttributeLabel'](_0x591b87,o(_0xd25d37,_0x409e2b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca9fc=this['editor'],_0x43008a=_0x2ca9fc['locale'],_0x449ab9=_0x2ca9fc['plugins']['get']('TrackChangesEditing');function _0x26aedc(_0x1ef3cc,_0x258a7e){_0x449ab9['descriptionFactory']['registerDescriptionCallback'](_0x2f1453=>{if('formatInline'!=_0x2f1453['type'])return;const {data:_0x47a854}=_0x2f1453;return _0x47a854&&_0x47a854['commandName']===_0x1ef3cc?_0x47a854['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43008a,'*Format:*\x20%0',_0x258a7e)}:{'type':'format','content':o(_0x43008a,'*Remove\x20format:*\x20%0',_0x258a7e)}:void 0x0;});}_0x26aedc('bold',o(_0x43008a,'FORMAT_BOLD')),_0x26aedc('italic',o(_0x43008a,'FORMAT_ITALIC')),_0x26aedc('underline',o(_0x43008a,'FORMAT_UNDERLINE')),_0x26aedc('code',o(_0x43008a,'FORMAT_CODE')),_0x26aedc('strikethrough',o(_0x43008a,'FORMAT_STRIKETHROUGH')),_0x26aedc('subscript',o(_0x43008a,'FORMAT_SUBSCRIPT')),_0x26aedc('superscript',o(_0x43008a,'FORMAT_SUPERSCRIPT'));}}class O extends _0xeaacfa{['afterInit'](){const _0x3f95da=this['editor'],_0x58b0b1=_0x3f95da['locale'];if(!_0x3f95da['plugins']['has']('BlockQuoteEditing'))return;const _0x103c87=_0x3f95da['plugins']['get']('TrackChangesEditing'),_0x20f950=this['editor']['commands']['get']('blockQuote');_0x103c87['enableCommand']('blockQuote',(_0x2a40e4,_0x3d34ea={})=>{const _0x529fb9=this['editor']['model']['document']['selection'],_0xaf67e5=_0x3d34ea&&void 0x0!==_0x3d34ea['forceValue']?_0x3d34ea['forceValue']:!_0x20f950['value'];let _0x3ccd36=[];if(_0xaf67e5){const _0x4fb00b=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x3a1bdc=>oo(_0x3a1bdc)||function(_0x4cfb0f,_0x1fd9d8){const _0x9cd0f8=_0x1fd9d8['checkChild'](_0x4cfb0f['parent'],'blockQuote'),_0x47d672=_0x1fd9d8['checkChild'](['$root','blockQuote'],_0x4cfb0f);return _0x9cd0f8&&_0x47d672;}(_0x3a1bdc,this['editor']['model']['schema']));_0x3ccd36=to(_0x4fb00b,_0x3f95da['model']);}else{const _0xdc1acf=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x14febc=>oo(_0x14febc));_0x3ccd36=to(_0xdc1acf,_0x3f95da['model']);}_0x3f95da['model']['change'](()=>{for(const _0x5d0c5b of _0x3ccd36)_0x103c87['markBlockFormat'](_0x5d0c5b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xaf67e5}]});});}),_0x103c87['descriptionFactory']['registerDescriptionCallback'](_0x440430=>{const {data:_0x2d69b4}=_0x440430;if(_0x2d69b4&&'blockQuote'==_0x2d69b4['commandName']){const _0x2899ef=o(_0x58b0b1,'ELEMENT_BLOCK_QUOTE');return _0x2d69b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b0b1,'*Set\x20format:*\x20%0',_0x2899ef)}:{'type':'format','content':o(_0x58b0b1,'*Remove\x20format:*\x20%0',_0x2899ef)};}});}}function oo(_0x1e2ee0){return'blockQuote'==_0x1e2ee0['parent']['name'];}class G extends _0xeaacfa{['afterInit'](){const _0x36b7b0=this['editor'];_0x36b7b0['plugins']['has']('CaseChange')&&(_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xeaacfa{['afterInit'](){const _0x4bc7fa=this['editor'];_0x4bc7fa['commands']['get']('ckbox')&&_0x4bc7fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xeaacfa{['afterInit'](){const _0x68d7a4=this['editor'];if(!_0x68d7a4['plugins']['has']('CodeBlock'))return;const _0x105aad=_0x68d7a4['plugins']['get']('TrackChangesEditing'),_0x23ddf8=_0x68d7a4['locale'],_0x328b74=_0x68d7a4['config']['get']('codeBlock')['languages'],_0x571505=_0x68d7a4['commands']['get']('codeBlock');_0x105aad['enableCommand']('indentCodeBlock'),_0x105aad['enableCommand']('outdentCodeBlock'),_0x105aad['enableCommand']('codeBlock',(_0x3c9916,_0x1385b3={})=>{const _0x1060a4=_0x68d7a4['model'],_0x1205b8=_0x68d7a4['model']['document']['selection'],_0x57d31d=_0x1385b3&&void 0x0!==_0x1385b3['forceValue']?_0x1385b3['forceValue']:!_0x571505['value'];let _0x490382;_0x1385b3['language']||(_0x1385b3['language']=_0x328b74[0x0]['language']),_0x490382=_0x57d31d?Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x4ba5fe=>eo(_0x4ba5fe)||function(_0x1f7155,_0x350173){if(_0x1f7155['is']('rootElement')||_0x350173['isLimit'](_0x1f7155))return!0x1;return _0x350173['checkChild'](_0x1f7155['parent'],'codeBlock');}(_0x4ba5fe,_0x1060a4['schema'])):Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x24acdd=>eo(_0x24acdd));const _0x1d1675=to(_0x490382,_0x1060a4);_0x1060a4['change'](()=>{for(const _0x28adf7 of _0x1d1675)_0x105aad['markBlockFormat'](_0x28adf7,{'commandName':'codeBlock','commandParams':[{..._0x1385b3,'forceValue':_0x57d31d}],'formatGroupId':'blockName'});});}),(_0x105aad['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a94a1=>o(_0x23ddf8,'ELEMENT_CODE_BLOCK',_0x5a94a1)),_0x105aad['descriptionFactory']['registerDescriptionCallback'](_0x41bed4=>{if('formatBlock'!=_0x41bed4['type'])return;const _0x353b1d=_0x23ddf8['t'],{data:_0x1d6548}=_0x41bed4;if(!_0x1d6548||'codeBlock'!=_0x1d6548['commandName'])return;const _0x355258=_0x1d6548['commandParams'][0x0]['language'],_0x3c0100=_0x353b1d(_0x328b74['find'](_0x4fc7a5=>_0x4fc7a5['language']===_0x355258)['label'])['toLowerCase']();return _0x1d6548['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23ddf8,'*Set\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c0100+')')}:{'type':'format','content':o(_0x23ddf8,'*Remove\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b13a6){return'codeBlock'==_0x4b13a6['name'];}class H extends _0xeaacfa{['afterInit'](){const _0x50b13b=this['editor'];if(!_0x50b13b['plugins']['has']('CommentsEditing'))return;_0x50b13b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11b5a8,_0x5e7b0d,_0xac149c){const _0x5c9093=[];for(const _0x326724 of _0x5e7b0d['getItems']())_0x326724['hasAttribute'](_0x11b5a8)&&_0x5c9093['push'](_0xac149c['createRangeOn'](_0x326724));return _0x5c9093;}function _e(_0x2189f3,_0x30399d,{showActiveMarker:_0x1ca9cf=!0x0}={}){const _0x3aba94=_0x2189f3['plugins']['get']('TrackChangesEditing');return(_0x57440e,_0x109d90,_0x247b9c)=>{if(!_0x247b9c['consumable']['test'](_0x109d90['markerRange'],_0x57440e['name']))return;const _0x416096=_0x109d90['markerRange']['getWalker'](),_0x5692c0=_0x109d90['markerRange']['start'],_0x1c2b80=_0x2189f3['model']['schema'];let _0x4fa9a4=null,_0x44e71b=null,_0x55c93d=!0x1,_0x36cde3=!0x1;for(const _0x130c68 of _0x416096){const _0x28f6d4=_0x130c68['item'];_0x55c93d=_0x55c93d||_0x1c2b80['isContent'](_0x28f6d4);const _0xfe75aa=_0x247b9c['mapper']['toViewElement'](_0x28f6d4);if(_0xfe75aa&&_0xfe75aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x130c68['type']&&(_0x1c2b80['isBlock'](_0x28f6d4)&&!_0x1c2b80['isLimit'](_0x28f6d4)&&(_0x28f6d4['nextSibling']||_0x5692c0['isAtEnd']?_0x4fa9a4&&_0x4fa9a4['parent']==_0x28f6d4||(_0x4fa9a4=_0x28f6d4,_0x202fa5(_0x130c68['previousPosition']),_0x36cde3=!0x0):_0x44e71b=_0x44e71b||_0x130c68['previousPosition']));}function _0x202fa5(_0x31556e){const _0x2807ca=_0x247b9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30399d}),_0x30eb5a=_0x247b9c['mapper']['toViewPosition'](_0x31556e);_0x1ca9cf&&_0x3aba94['activeMarkers']['includes'](_0x109d90['markerName'])&&_0x247b9c['writer']['addClass']('ck-suggestion-marker--active',_0x2807ca),_0x247b9c['writer']['insert'](_0x30eb5a,_0x2807ca),_0x247b9c['mapper']['bindElementToMarker'](_0x2807ca,_0x109d90['markerName']);}_0x55c93d||_0x36cde3||!_0x44e71b||_0x202fa5(_0x44e71b);};}class q extends _0xeaacfa{static get['requires'](){return[_0x575b39];}['init'](){const _0x5c74bc=this['editor'],_0x5bc0a1=_0x5c74bc['plugins']['get']('TrackChangesEditing');_0x5bc0a1['enableCommand']('delete');const _0x661f1=_0x5c74bc['commands']['get']('deleteForward');_0x5bc0a1['enableCommand']('deleteForward',(_0x3b3c2a,_0x1ee319={})=>{const _0x17391d=_0x5c74bc['model']['createSelection'](_0x5c74bc['model']['document']['selection']);_0x17391d['isCollapsed']&&_0x5c74bc['model']['modifySelection'](_0x17391d,{'direction':'forward','unit':_0x1ee319['unit']});const _0x5915df=_0x17391d['getFirstRange'](),_0x2f303f=_0x54c30a['fromRange'](_0x5915df);let _0x5bdfb7;_0x3b3c2a(_0x1ee319),_0x5bdfb7='$graveyard'==_0x2f303f['root']['rootName']?_0x5c74bc['model']['createRange'](_0x5915df['start']):_0x5c74bc['model']['createRange'](_0x2f303f['start'],_0x2f303f['end']),_0x2f303f['detach'](),_0x5c74bc['model']['enqueueChange'](_0x661f1['buffer']['batch'],_0x270be1=>{_0x661f1['buffer']['lock'](),_0x270be1['setSelection'](_0x270be1['createRange'](_0x5bdfb7['end'])),_0x661f1['buffer']['unlock']();});}),_0x5c74bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5c74bc,'merge'),{'priority':'high'}),_0x5c74bc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x28ff5e,_0x4ccda5,_0x30fed7)=>{_0x30fed7['options']['showSuggestionHighlights']&&_e(_0x5c74bc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x28ff5e,_0x4ccda5,_0x30fed7);},{'priority':'high'}),_0x5c74bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1620f2,_0x2b926a,_0x55b398)=>{const _0x107a16=_0x55b398['mapper']['markerNameToElements'](_0x2b926a['markerName']);if(_0x107a16){for(const _0x560eba of _0x107a16)_0x560eba['is']('uiElement')&&(_0x55b398['mapper']['unbindElementFromMarkerName'](_0x560eba,_0x2b926a['markerName']),_0x55b398['writer']['remove'](_0x560eba));}},{'priority':'high'});}}class z extends _0xeaacfa{['afterInit'](){const _0x238b6e=this['editor'];if(!_0x238b6e['plugins']['has']('ListEditing'))return;const _0x3a380f=_0x238b6e['locale'],_0x5ead5d=_0x238b6e['plugins']['get']('TrackChangesEditing'),_0x64539d=_0x238b6e['plugins']['has']('TodoListEditing'),_0xb34f00=!!_0x238b6e['config']['get']('list.multiBlock');function _0x2c2f62(_0x907e65){return{'type':'format','content':''+o(_0x3a380f,'*Set\x20format:*\x20%0',_0x907e65)};}function _0x3df9cf(_0x1624f1){return{'type':'format','content':''+o(_0x3a380f,'*Remove\x20format:*\x20%0',_0x1624f1)};}_0x5ead5d['enableDefaultAttributesIntegration']('numberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('bulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('indentList'),_0x5ead5d['enableDefaultAttributesIntegration']('outdentList'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ead5d['registerBlockAttribute']('listItemId'),_0x5ead5d['registerBlockAttribute']('listType'),_0x5ead5d['registerBlockAttribute']('listIndent'),_0xb34f00&&(_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x64539d&&(_0x5ead5d['enableDefaultAttributesIntegration']('todoList'),_0x5ead5d['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ead5d['registerBlockAttribute']('todoListChecked'),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x4c7fe9=>{const {data:_0x5dcd68}=_0x4c7fe9;if(_0x5dcd68&&'todoListChecked'==_0x5dcd68['key'])return{'type':'format','content':_0x5dcd68['newValue']?o(_0x3a380f,'*Check\x20item*'):o(_0x3a380f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x539f0e=>{if(_0x539f0e['batch']['isUndo'])return!0x1;let _0x31bbcf=!0x1;const _0x2a5335=_0x5ead5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c4e47=>'todoListChecked'===_0x5ead5d['_getAttributeKey'](_0x1c4e47));for(const _0x224720 of _0x2a5335){'todo'!=_0x224720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ead5d['_findSuggestions'](_0x224720['getFirstRange'](),'attribute')['find'](_0x4a80a7=>'listType'===_0x5ead5d['_getAttributeKey'](_0x4a80a7['suggestion']))||(_0x539f0e['removeMarker'](_0x224720['getFirstMarker']()),_0x31bbcf=!0x0));}return _0x31bbcf;})),_0x5ead5d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3a380f,'FORMAT_INDENT'));const _0x40199d={'type':'format','content':''};_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x516790=>{const {data:_0x1f3d97}=_0x516790;if(!_0x1f3d97||'listType'!=_0x1f3d97['key'])return;let _0x518cd4=_0x516790['head'];for(;_0x518cd4;){if(_0x518cd4['data']&&(('listStyle'==_0x518cd4['data']['key']||'listMarkerStyle'==_0x518cd4['data']['key'])&&(_0x518cd4['data']['newValue']&&'default'!=_0x518cd4['data']['newValue']||'default'!=_0x518cd4['data']['oldValue']&&!_0x1f3d97['newValue'])||!_0xb34f00&&_0x518cd4['data']['key']==m))return _0x40199d;_0x518cd4=_0x518cd4['next'];}if(null==_0x1f3d97['newValue'])switch(_0x1f3d97['oldValue']){case'bulleted':return _0x3df9cf(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df9cf(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df9cf(o(_0x3a380f,'ELEMENT_TODO_LIST'));}switch(_0x1f3d97['newValue']){case'bulleted':return _0x2c2f62(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c2f62(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c2f62(o(_0x3a380f,'ELEMENT_TODO_LIST'));}}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x9440d7=>{const {data:_0x540304}=_0x9440d7;if(_0x540304&&'listIndent'==_0x540304['key'])return null==_0x540304['newValue']||null==_0x540304['oldValue']&&0x0==_0x540304['newValue']?_0x40199d:void 0x0;}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x1bfe6e=>{if('attribute'!=_0x1bfe6e['type'])return;const {data:_0x7842e}=_0x1bfe6e;if(!_0x7842e||'listItemId'!=_0x7842e['key'])return;const _0xc8f044=le(_0x1bfe6e);return'newValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Split:*\x20list\x20item')}:_0x40199d;}),_0x238b6e['model']['document']['registerPostFixer'](_0x1bc157=>this['listItemIdFixer'](_0x1bc157)),_0x238b6e['model']['document']['registerPostFixer'](_0x575fa5=>this['noTrackChangesFixer'](_0x575fa5)),_0x238b6e['model']['document']['registerPostFixer'](_0xee5f15=>this['assureChains'](_0xee5f15)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x21e9c1){if(_0x21e9c1['batch']['isUndo']||!_0x21e9c1['batch']['isLocal'])return!0x1;let _0x46c8b8=!0x1;const _0x15ccae=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc85f=>_0x5cc85f['data']&&'listItemId'==_0x5cc85f['data']['key'])['filter'](_0x123c81=>_0x123c81['data']['newValue']&&_0x123c81['data']['oldValue']);for(const _0x3bff90 of _0x15ccae)le(_0x3bff90)||(_0x21e9c1['removeMarker'](_0x3bff90['getFirstMarker']()),_0x46c8b8=!0x0);return _0x46c8b8;}['noTrackChangesFixer'](_0x1279a2){if(_0x1279a2['batch']['isUndo']||!_0x1279a2['batch']['isLocal'])return!0x1;const _0x27f463=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27f463['trackChangesCommand']['value'])return!0x1;let _0x51d91a=!0x1;const _0x140124=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x406b8f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xa8836d=>'attribute'==_0xa8836d['type'])['filter'](_0x5e4302=>_0x140124['includes'](_0x5e4302['attributeKey']));if(0x0==_0x406b8f['length'])return _0x51d91a;for(const _0x21dabf of _0x406b8f){const _0x5f006d=_0x27f463['_findSuggestions'](_0x21dabf['range'],'attribute')['filter'](_0x20c11d=>!_0x20c11d['meta']['isNextTo'])['map'](_0x51fcbd=>_0x51fcbd['suggestion'])['filter'](_0x4a9a99=>{const _0x711555=_0x27f463['_getAttributeKey'](_0x4a9a99);return _0x140124['includes'](_0x711555);});if(_0x5f006d['length']){for(const _0x13fa97 of _0x5f006d)_0x1279a2['removeMarker'](_0x13fa97['getFirstMarker']());_0x51d91a=!0x0;}}return _0x51d91a;}['assureChains'](_0x814348){if(_0x814348['batch']['isUndo']||!_0x814348['batch']['isLocal'])return!0x1;const _0x481de3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5924c1=!0x1;const _0x43b1eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5523d3 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})){const _0x250557=_0x481de3['_findSuggestions'](_0x5523d3['getFirstRange'](),'attribute')['map'](_0x374ef6=>_0x374ef6['suggestion'])['filter'](_0x1b4d7b=>_0x1b4d7b['data']&&_0x43b1eb['includes'](_0x1b4d7b['data']['key']));if(!_0x250557['length'])continue;const _0x6f997d=_0x250557[0x0]['head']['attributes']['groupId'];if(!_0x250557['every'](_0x5c7ee6=>_0x5c7ee6['attributes']['groupId']===_0x6f997d)){for(const _0xe0be3 of _0x250557)_0x1685ed(_0xe0be3,_0x6f997d)&&(_0x5924c1=!0x0);}}return _0x5924c1;function _0xc7ee02(_0x3f5855,_0x361741){for(const _0x4fcfc4 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x140c39=>'attribute'==_0x140c39['type']&&_0x140c39['attributes']['groupId']==_0x3f5855))_0x4fcfc4['setAttribute']('groupId',_0x361741);}function _0x1685ed(_0x1987da,_0x2c2a66){let _0x1c1681=_0x1987da['head'],_0x3c4432=!0x1;for(;_0x1c1681;)_0x1c1681['attributes']['groupId']!=_0x2c2a66&&(_0xc7ee02(_0x1c1681['attributes']['groupId'],_0x2c2a66),_0x1c1681['setAttribute']('groupId',_0x2c2a66),_0x3c4432=!0x0),_0x1c1681=_0x1c1681['next'];return _0x3c4432;}}['_supportLegacySuggestions'](){const _0x2eaebb=this['editor'],_0x554b89=_0x2eaebb['locale'],_0x4beb53=_0x2eaebb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4beb53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50dfb4,_0x16e734){const _0x39ff46=[];for(let _0x4014d8 of _0x50dfb4)_0x4014d8['start']['nodeAfter']===_0x4014d8['end']['parent']&&(_0x4014d8=_0x2eaebb['model']['createRange'](_0x2eaebb['model']['createPositionAt'](_0x4014d8['start']['nodeAfter'],0x0))),_0x39ff46['push'](_0x4014d8);_0x2eaebb['model']['change'](_0xfbec96=>{const _0xd07b7c=_0x2eaebb['model']['document']['selection'],_0x504b7a=Array['from'](_0xd07b7c['getRanges']())['map'](_0x45ff0c=>_0x54c30a['fromRange'](_0x45ff0c));_0xfbec96['setSelection'](_0x39ff46),_0x2eaebb['commands']['get'](_0x16e734['commandName'])['refresh'](),_0x16e734['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2eaebb['execute'](_0x16e734['commandName'],..._0x16e734['commandParams']),_0xfbec96['setSelection'](_0x504b7a);for(const _0x439edb of _0x504b7a)_0x439edb['detach']();});}),_0x4beb53['descriptionFactory']['registerElementLabel'](function(_0x974140){const _0x386060=!_0x2eaebb['model']['schema']['isObject'](_0x974140),_0x41815e=_0x974140['previousSibling'],_0x42098d=_0x974140['nextSibling'],_0x567d1c=_0x974140['getAttribute']('listItemId'),_0x57fa7d=!_0x41815e||_0x41815e['getAttribute']('listItemId')!==_0x567d1c,_0x56b1c9=!_0x42098d||_0x42098d['getAttribute']('listItemId')!==_0x567d1c;return _0x386060&&Boolean(_0x567d1c)&&_0x57fa7d&&_0x56b1c9;},_0x3c6922=>o(_0x554b89,'ELEMENT_LIST_ITEM',_0x3c6922));}['_registerLegacyDescription'](){const _0x3ce4c1=this['editor'],_0x50b6fe=_0x3ce4c1['locale'];function _0x2e278c(_0x3553a5){const _0x162df1=_0x3ce4c1['commands']['get']('bulletedList')['value'],_0x14b1a1=_0x3ce4c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x3553a5?_0x162df1:_0x14b1a1;}_0x3ce4c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5da6a0){if('formatBlock'!=_0x5da6a0['type'])return;const {data:_0x2461e8}=_0x5da6a0;if(!_0x2461e8)return;let _0x21cbed,_0x1a0a7d,_0x46e485,_0x179d55;switch(_0x2461e8['commandName']){case'bulletedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21cbed='*Indent:*\x20%0',_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21cbed=function(_0x403095){const _0x3e6c9d=_0x403095['getFirstRange']();let _0x9b6d2e=_0x3e6c9d['start']['nodeAfter'];for(;_0x9b6d2e&&_0x3e6c9d['containsItem'](_0x9b6d2e);){if(_0x9b6d2e['getAttribute']('listIndent')>0x0)return!0x1;_0x9b6d2e=_0x9b6d2e['nextSibling'];}return!0x0;}(_0x5da6a0)?o(_0x50b6fe,'*Format:*\x20remove\x20from\x20%0',o(_0x50b6fe,function(_0x534917){return'ELEMENT_'+_0x534917['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5da6a0))):o(_0x50b6fe,'*Outdent:*\x20%0',o(_0x50b6fe,'ELEMENT_LIST_ITEM')),_0x1a0a7d={'type':'format','content':_0x21cbed};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2461e8['multipleBlocks']&&(_0x21cbed='*Merge:*\x20%0',_0x1a0a7d={'type':'deletion','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))});}return _0x1a0a7d;});}}function le(_0x2a53c1){let _0x332b12=_0x2a53c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x332b12;){const _0x2f25ad=_0x332b12['getAttribute']('listItemId');if(!_0x2f25ad)return!0x1;if(_0x2f25ad==_0x2a53c1['data']['newValue'])return'newValue';if(_0x2f25ad==_0x2a53c1['data']['oldValue'])return'oldValue';_0x332b12=_0x332b12['previousSibling'];}return!0x1;}class ue extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ccd0a=this['editor']['config']['get']('list.properties'),_0x17a175=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ccd0a['styles']&&(_0x17a175['enableDefaultAttributesIntegration']('listStyle'),_0x17a175['registerBlockAttribute']('listStyle')),_0x1ccd0a['reversed']&&(_0x17a175['enableDefaultAttributesIntegration']('listReversed'),_0x17a175['registerBlockAttribute']('listReversed')),_0x1ccd0a['startIndex']&&(_0x17a175['enableDefaultAttributesIntegration']('listStart'),_0x17a175['registerBlockAttribute']('listStart'));const _0x3703fa={'type':'format','content':''};_0x17a175['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xaca68d=this['editor']['locale'];_0x17a175['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xaca68d,'FORMAT_LIST_REVERSED')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0xe2f7b0=>{const {data:_0xb70be8}=_0xe2f7b0;if(_0xb70be8&&'listReversed'==_0xb70be8['key'])return null==_0xb70be8['newValue']||0x0==_0xb70be8['newValue']&&null==_0xb70be8['oldValue']?_0x3703fa:void 0x0;}),_0x17a175['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xaca68d,'FORMAT_LIST_START')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0x1a7b52=>{const {data:_0x4ee639}=_0x1a7b52;if(_0x4ee639&&'listStart'==_0x4ee639['key'])return null==_0x4ee639['newValue']||0x1==_0x4ee639['newValue']&&null==_0x4ee639['oldValue']?_0x3703fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ff20f=>{if(_0x3ff20f['batch']['isUndo'])return!0x1;let _0x2e8a60=!0x1;const _0x346b58=_0x17a175['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9389c6=>{const _0x59bc9c=_0x17a175['_getAttributeKey'](_0x9389c6);return'listStart'==_0x59bc9c||'listReversed'==_0x59bc9c;});for(const _0x16de65 of _0x346b58){const _0x569f74=_0x16de65['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x569f74||'customNumbered'==_0x569f74)continue;_0x17a175['_findSuggestions'](_0x16de65['getFirstRange'](),'attribute')['find'](_0x56f242=>'listType'==_0x17a175['_getAttributeKey'](_0x56f242['suggestion']))||(_0x3ff20f['removeMarker'](_0x16de65['getFirstMarker']()),_0x2e8a60=!0x0);}return _0x2e8a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x356717){const _0x4dd257=this['editor']['locale'],{data:_0x77758}=_0x356717,_0x2968c8={'type':'format','content':''};if(!_0x77758||'listStyle'!=_0x77758['key'])return;if(!_0x77758['oldValue'])return'default'==_0x77758['newValue']?_0x2968c8:{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};if(!_0x77758['newValue']){if('default'==_0x77758['oldValue'])return _0x2968c8;let _0x3721d8=_0x356717['head'];for(;_0x3721d8;){if(_0x3721d8['data']&&'listType'==_0x3721d8['data']['key']&&_0x3721d8['data']['newValue'])return _0x2968c8;_0x3721d8=_0x3721d8['next'];}return{'type':'format','content':''+o(_0x4dd257,'*Remove\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['oldValue'])))};}if('default'!=_0x77758['newValue'])return{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};let _0x2dcc76=_0x356717['head'];for(;_0x2dcc76;){if(_0x2dcc76['data']&&'listType'==_0x2dcc76['data']['key']&&_0x2dcc76['data']['newValue']&&_0x2dcc76['data']['oldValue'])return _0x2968c8;_0x2dcc76=_0x2dcc76['next'];}return{'type':'format','content':o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,'ELEMENT_'+_0x356717['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e84ae=this['editor'],_0x5aec09=_0x2e84ae['locale'];_0x2e84ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20fcce=>{if('formatBlock'!=_0x20fcce['type'])return;const {data:_0x561b78}=_0x20fcce;if(!_0x561b78)return;let _0x69576e,_0x169ad7;switch(_0x561b78['commandName']){case'listStyle':_0x69576e='*Change\x20to:*\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,o(_0x5aec09,this['_getTranslationKeyForListStyle'](_0x561b78['commandParams'][0x0]['type'])))};break;case'listReversed':_0x69576e=_0x561b78['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e)};break;case'listStart':_0x69576e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,_0x561b78['commandParams'][0x0]['startIndex'])};}return _0x169ad7;});}['_getTranslationKeyForListStyle'](_0x247248){return'ELEMENT_'+function(_0x5c03d6){if(pe['includes'](_0x5c03d6))return'bulleted';if(ye['includes'](_0x5c03d6))return'numbered';return null;}(_0x247248)['toUpperCase']()+'_LIST_'+_0x247248['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xeaacfa{static get['requires'](){return[_0x4a4105];}['init'](){const _0x32b663=this['editor'],_0x4f82cf=_0x32b663['plugins']['get']('TrackChangesEditing'),_0xba71e=_0x32b663['commands']['get']('enter');_0x4f82cf['enableCommand']('enter',()=>{_0x32b663['model']['change'](_0x1d5629=>{const _0x5a48cc=_0x32b663['model']['document']['selection'],_0x224943=_0x5a48cc['getFirstPosition'](),_0x203313=_0x54c30a['fromRange'](_0x5a48cc['getFirstRange']());if(_0xba71e['enterBlock'](_0x1d5629)){const _0x339ec5=_0x32b663['model']['createPositionAt'](_0x224943['parent']['nextSibling'],0x0),_0xd3ac31=_0x1d5629['createRange'](_0x224943,_0x339ec5);_0x4f82cf['markInsertion'](_0xd3ac31);}else _0x1d5629['setSelection'](_0x1d5629['createRange'](_0x203313['end']));_0x203313['detach'](),_0xba71e['fire']('afterExecute',{'writer':_0x1d5629});});}),_0x32b663['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x32b663,'split'),{'priority':'high'}),_0x32b663['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc09576,_0x5efb1c,_0x6cb8df)=>{const _0x1d47ff=_0x6cb8df['mapper']['markerNameToElements'](_0x5efb1c['markerName']);if(_0x1d47ff){for(const _0x4476c6 of _0x1d47ff)_0x4476c6['hasClass']('ck-suggestion-marker-split')&&(_0x6cb8df['mapper']['unbindElementFromMarkerName'](_0x4476c6,_0x5efb1c['markerName']),_0x6cb8df['writer']['remove'](_0x4476c6));}},{'priority':'high'}),_0x32b663['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25c547,_0x392994,_0x21555a)=>{_0x21555a['options']['showSuggestionHighlights']&&_e(_0x32b663,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25c547,_0x392994,_0x21555a);},{'priority':'high'});}}class J extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x625e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x625e1e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x625e1e['enableCommand']('findNext'),_0x625e1e['enableCommand']('findPrevious'),_0x625e1e['enableCommand']('replace'),_0x625e1e['enableCommand']('replaceAll');}['handleFindCommand'](_0x537227,_0x546935,_0x1c5c72={}){const _0x3ab6aa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x537227(_0x253ccc=>('string'==typeof _0x546935?_0x3ab6aa['findByTextCallback'](_0x546935,_0x1c5c72):_0x546935)(_0x253ccc)['filter'](_0x10c21c=>!0x1===this['_isInDeletionRange'](_0x10c21c,_0x253ccc['item'])),_0x1c5c72);}['_isInDeletionRange'](_0x582455,_0x129d79){const _0x479ebb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['start']),this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['end']));for(const _0x2a9495 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x479ebb['getIntersection'](_0x2a9495['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0xeaacfa{['afterInit'](){const _0x557c48=this['editor']['locale'],_0x1a3fec=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e75ff,commandName:_0x37048a}of ro)this['editor']['plugins']['has'](_0x1e75ff)&&(_0x1a3fec['enableDefaultAttributesIntegration'](_0x37048a),_0x1a3fec['registerInlineAttribute'](_0x37048a));_0x557c48['t'],_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x557c48,'FORMAT_FONT_SIZE')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x557c48,'FORMAT_FONT_FAMILY')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x557c48,'FORMAT_FONT_COLOR')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x557c48,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b634b=this['editor'],_0x13a2a6=_0x5b634b['locale'];_0x5b634b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7ab4=>{const _0x52ae8e=_0x13a2a6['t'];if('formatInline'!=_0x1b7ab4['type'])return;const {data:_0x1203f5}=_0x1b7ab4;if(null!=_0x1203f5){if('fontSize'==_0x1203f5['commandName']){const _0x390e87=_0x1203f5['commandParams'][0x0]['value'];if(_0x390e87){const _0x4e9352=_0x52ae8e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1702fe=>_0x1702fe['model']==_0x390e87)['title'])['toLowerCase']();return{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20size:*\x20%0',_0x4e9352)};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1203f5['commandName']){const _0x299b7a=_0x1203f5['commandParams'][0x0]['value'];return _0x299b7a?{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20family:*\x20%0',_0x299b7a)}:{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1203f5['commandName']){const _0x15d4eb=_0x1203f5['commandParams'][0x0]['value'];if(_0x15d4eb){const _0xc9ae1f=_0x5a5258(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7ddde9=>_0x7ddde9['model']==_0x15d4eb);let _0x4dc857=_0x15d4eb,_0x2827c2='';return _0xc9ae1f&&(_0x4dc857=_0xc9ae1f['label'],_0x2827c2=_0x52ae8e(_0x4dc857)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20color:*\x20%0',_0x2827c2)['trim'](),'color':{'value':_0x15d4eb,'title':_0x2827c2||_0x4dc857}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1203f5['commandName']){const _0x11989d=_0x1203f5['commandParams'][0x0]['value'];if(_0x11989d){const _0x3a77fe=_0x5a5258(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xca4e66=>_0xca4e66['model']==_0x11989d);let _0x1ab4e7=_0x11989d,_0x5817d5='';return _0x3a77fe&&(_0x1ab4e7=_0x3a77fe['label'],_0x5817d5=_0x52ae8e(_0x1ab4e7)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x5817d5)['trim'](),'color':{'value':_0x11989d,'title':_0x5817d5||_0x1ab4e7}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xeaacfa{['afterInit'](){const _0x30954f=this['editor'],_0x2c5bc7=_0x30954f['plugins']['get']('TrackChangesEditing'),_0x16093b=_0x30954f['commands']['get']('copyFormat'),_0x304f60=_0x30954f['commands']['get']('pasteFormat');_0x16093b&&_0x304f60&&(_0x2c5bc7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c5bc7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c52c0=this['editor'],_0x10a62c=_0x2c52c0['locale'];_0x2c52c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9d32=>{if('formatBlock'!=_0x3e9d32['type']&&'formatInline'!=_0x3e9d32['type'])return;const {data:_0x255450}=_0x3e9d32;if(_0x255450&&'pasteFormat'===_0x255450['commandName']){const _0x45e121=[],_0x5426ec=_0x255450['commandParams'][0x0];for(const [_0x5f37cb,_0x3dd0a0]of Object['entries'](_0x5426ec))_0x45e121['push'](so(_0x2c52c0,_0x5f37cb,_0x3dd0a0));return _0x45e121['length']?{'type':'format','content':o(_0x10a62c,'*Set\x20format\x20to:*\x20%0',_0x45e121['join'](',\x20'))}:{'type':'format','content':o(_0x10a62c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5ea734,_0x4fc074,_0x10e426){const _0x26c775=_0x5ea734['locale']['t'],_0x31fd4b=_0x4fc074['split'](/(?=[A-Z])/)['join']('\x20'),_0x3fe280=_0x26c775(_0x31fd4b['charAt'](0x0)['toUpperCase']()+_0x31fd4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10e426)return _0x3fe280;if('fontColor'===_0x4fc074||'fontBackgroundColor'===_0x4fc074){const _0x39956e=_0x5a5258(_0x5ea734['config']['get']('fontColor.colors'))['find'](_0x3f563c=>_0x3f563c['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x39956e?_0x26c775(_0x39956e['label'])['toLowerCase']():_0x10e426)+')';}if('fontSize'===_0x4fc074&&isNaN(parseFloat(_0x10e426))){const _0x45c343=_0x5ea734['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5ea734['config']['get']('fontSize.options'))['find'](_0x42d389=>_0x42d389['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x45c343?_0x26c775(_0x45c343['title'])['toLowerCase']():_0x10e426)+')';}return _0x3fe280+'\x20('+_0x10e426+')';}class Y extends _0xeaacfa{['_headingOptions'];['afterInit'](){const _0x459956=this['editor'];if(!_0x459956['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x459956['config']['get']('heading.options');const _0x3dfc08=_0x459956['locale'],_0xbadf77=_0x459956['plugins']['get']('TrackChangesEditing');_0xbadf77['enableDefaultAttributesIntegration']('heading');for(const _0x4ff85e of this['_headingOptions'])'paragraph'!=_0x4ff85e['model']&&_0xbadf77['descriptionFactory']['registerElementLabel'](_0x4ff85e['model'],_0x51a22d=>{const _0xf76fd4=this['_getHeadingLevel'](_0x4ff85e['model']);return null!==_0xf76fd4?_0x22168e(_0x51a22d,_0xf76fd4):_0x176939(_0x51a22d,_0x4ff85e['title']);});function _0x22168e(_0x5bbe23,_0x53fea7){return o(_0x3dfc08,'ELEMENT_HEADING',[_0x5bbe23,_0x53fea7]);}function _0x176939(_0x55a295,_0x535b10){return o(_0x3dfc08,'ELEMENT_HEADING_CUSTOM',[_0x55a295,_0x535b10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d859=this['editor'],_0x5197ba=_0x30d859['locale'];function _0x277295(_0x938ac9,_0xcf71ca){return o(_0x5197ba,'ELEMENT_HEADING_CUSTOM',[_0x938ac9,_0xcf71ca]);}_0x30d859['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93c912=>{if('formatBlock'!=_0x93c912['type'])return;const {data:_0x48551d}=_0x93c912;if(_0x48551d&&'heading'==_0x48551d['commandName']){const _0x2e9e28=_0x48551d['commandParams'][0x0]['value'],_0x47cb55=this['_getHeadingLevel'](_0x2e9e28);if(null!==_0x47cb55)return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',(_0x23cb47=0x1,_0x117270=_0x47cb55,o(_0x5197ba,'ELEMENT_HEADING',[_0x23cb47,_0x117270])))};const _0xf565f7=this['_headingOptions']['find'](_0x29f546=>_0x29f546['model']===_0x2e9e28)['title'];return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',_0x277295(0x1,_0xf565f7))};}var _0x23cb47,_0x117270;});}['_getHeadingLevel'](_0x39b8b6){const _0x1c0a09=_0x39b8b6['match'](/^heading(\d+)/);if(_0x1c0a09)return _0x1c0a09[0x1];const _0x31aa7b=this['_headingOptions']?.['find'](_0x5b0132=>_0x5b0132['model']==_0x39b8b6);if(_0x31aa7b&&_0x31aa7b['view']){const _0x41a7f7=_0x31aa7b['view'],_0x4a4876=(_0x41a7f7['name']??_0x41a7f7)['match'](/^h(\d+)/);if(_0x4a4876)return _0x4a4876[0x1];}return null;}}class Z extends _0xeaacfa{['afterInit'](){const _0x27a00b=this['editor'];if(!_0x27a00b['plugins']['has']('HighlightEditing'))return;const _0xa5ac5b=_0x27a00b['plugins']['get']('TrackChangesEditing'),_0x186472=_0x27a00b['locale'];_0xa5ac5b['enableDefaultAttributesIntegration']('highlight'),_0xa5ac5b['registerInlineAttribute']('highlight'),_0xa5ac5b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x186472,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b90a7=this['editor'],_0x44e7ea=_0x4b90a7['locale'];_0x4b90a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c1ab=>{if('formatInline'!=_0x14c1ab['type'])return;const {data:_0x28307a}=_0x14c1ab;if(_0x28307a&&'highlight'==_0x28307a['commandName']){const _0x31fe07=_0x44e7ea['t'],_0x486bf9=_0x28307a['commandParams'][0x0]['value'];if(_0x486bf9){const _0x13c1c7=_0x4b90a7['config']['get']('highlight.options')['find'](_0x302b75=>_0x302b75['model']==_0x486bf9),_0x35c0b2=_0x31fe07(_0x13c1c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x44e7ea,'*Set\x20highlight:*\x20%0',_0x35c0b2),'color':{'value':_0x13c1c7['color'],'title':_0x13c1c7['title']}};}return{'type':'format','content':o(_0x44e7ea,'*Remove\x20highlight*',o(_0x44e7ea,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xeaacfa{['afterInit'](){const _0x1e9da7=this['editor'];if(!_0x1e9da7['plugins']['has']('HorizontalLineEditing'))return;_0x1e9da7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a111f=_0x1e9da7['plugins']['get']('TrackChangesEditing'),_0x19868e=_0x1e9da7['locale'];_0x1a111f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4dbe03=>o(_0x19868e,'ELEMENT_HORIZONTAL_LINE',_0x4dbe03)),_0x1e9da7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb8dd81,{writer:_0x27469e,options:_0x4cb91c})=>{if(!_0x4cb91c['showSuggestionHighlights'])return null;const _0x5530dd=_0x27469e['createContainerElement']('div'),_0x318b21=_0x27469e['createEmptyElement']('hr');return _0x27469e['addClass']('ck-horizontal-line',_0x5530dd),_0x27469e['insert'](_0x27469e['createPositionAt'](_0x5530dd,0x0),_0x318b21),_0x5530dd;},'converterPriority':'high'});}}class et extends _0xeaacfa{['afterInit'](){const _0x21d12b=this['editor'];if(!_0x21d12b['plugins']['has']('HtmlEmbed'))return;const _0x151dab=_0x21d12b['plugins']['get']('TrackChangesEditing'),_0x16327d=_0x21d12b['locale'];_0x151dab['descriptionFactory']['registerElementLabel']('rawHtml',_0xacd1f8=>o(_0x16327d,'ELEMENT_HTML_EMBED',_0xacd1f8)),_0x151dab['enableDefaultAttributesIntegration']('htmlEmbed'),_0x151dab['registerBlockAttribute']('value'),_0x151dab['descriptionFactory']['registerDescriptionCallback'](_0x16310f=>{if('attribute'!=_0x16310f['type'])return;const {data:_0x339316}=_0x16310f;if(_0x339316&&'value'==_0x339316['key']&&_0x16310f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1cdff0=o(_0x16327d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16327d,'*Change\x20%0\x20content*',_0x1cdff0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d45f7=this['editor'],_0x27d8fa=_0x5d45f7['locale'];_0x5d45f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8cf2=>{if('formatBlock'!=_0x4b8cf2['type'])return;const {data:_0x3fbe89}=_0x4b8cf2;if(_0x3fbe89&&'htmlEmbed'==_0x3fbe89['commandName']){const _0x246c88=o(_0x27d8fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27d8fa,'*Change\x20%0\x20content*',_0x246c88)};}});}}class it extends _0xeaacfa{['afterInit'](){const _0x363ac3=this['editor'];if(!_0x363ac3['plugins']['has']('ImageEditing'))return;const _0x2c9c0=_0x363ac3['plugins']['get']('TrackChangesEditing'),_0x575868=_0x363ac3['plugins']['get']('ImageUtils'),_0x8c668f=_0x363ac3['locale'];_0x2c9c0['enableCommand']('insertImage'),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f785b=>o(_0x8c668f,'ELEMENT_IMAGE',_0x1f785b)),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageInline',_0x457741=>o(_0x8c668f,'ELEMENT_INLINE_IMAGE',_0x457741)),_0x2c9c0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x8c668f,'ELEMENT_CAPTION')),_0x363ac3['plugins']['has']('ImageUploadEditing')&&_0x2c9c0['enableCommand']('uploadImage'),_0x363ac3['plugins']['has']('ImageBlockEditing')&&_0x363ac3['plugins']['has']('ImageInlineEditing')&&(_0x2c9c0['enableCommand']('imageTypeInline',(_0x4fda24,_0x412ad9)=>{const _0x5a3297=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']);_0x363ac3['model']['change'](()=>{_0x2c9c0['markBlockFormat'](_0x5a3297,{'commandName':'imageTypeInline','commandParams':[_0x412ad9]},[],'convertBlockImageToInline');});}),_0x2c9c0['enableCommand']('imageTypeBlock',(_0x707913,_0x123ab3)=>{_0x363ac3['model']['change'](_0x385e25=>{let _0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x534aed=_0x375039['fromPosition'](_0x127728['start'],'toPrevious'),_0x3b6381=_0x375039['fromPosition'](_0x127728['end'],'toNext');_0x2c9c0['forceDefaultExecution'](()=>_0x707913(_0x123ab3)),_0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x283ff7=_0x385e25['createRange'](_0x534aed,_0x3b6381);_0x534aed['detach'](),_0x3b6381['detach'](),_0x2c9c0['markBlockFormat'](_0x599e30,{'commandName':'imageTypeInline','commandParams':[_0x123ab3]},[],'convertInlineImageToBlock'),_0x283ff7['start']['isBefore'](_0x127728['start'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x283ff7['start'],_0x127728['start']),'convertInlineImageToBlock'),_0x127728['end']['isBefore'](_0x283ff7['end'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x127728['end'],_0x283ff7['end']),'convertInlineImageToBlock');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f239])=>{const _0x5a74ab=_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3180dc=_0x39f239['start'],_0x1f1f8d=_0x39f239['end'];const _0x45057f=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x3180dc,'backward'),_0x3f6f65=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x1f1f8d,'forward');_0x45057f['isCollapsed']&&(_0x3180dc=_0x45057f['start']),_0x3f6f65['isCollapsed']&&(_0x1f1f8d=_0x3f6f65['end']),_0x5a74ab([_0x363ac3['model']['createRange'](_0x3180dc,_0x1f1f8d)]);}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bff71),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bff71)),_0x363ac3['plugins']['has']('ImageCaptionEditing')&&(_0x2c9c0['enableCommand']('toggleImageCaption',(_0x2aa9f5,_0x162342)=>{const _0x2af8e9=_0x363ac3['plugins']['get']('ImageCaptionUtils');let _0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d);_0x363ac3['model']['change'](()=>{if(_0x541b59)return void _0x2c9c0['markDeletion'](_0x363ac3['model']['createRangeOn'](_0x541b59));const _0x1c9a70=_0x575868['isBlockImage'](_0x3d946d);_0x2aa9f5(_0x162342),_0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d),_0x2c9c0['markInsertion'](_0x363ac3['model']['createRangeOn'](_0x541b59),_0x1c9a70?null:'imageCaption');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bff71));const _0x1c3eee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7d8f(_0x42d74f,_0x511bfa){const _0x3357ce=_0x1c3eee['findIndex'](({type:_0x5a2e2d,subType:_0xac9645})=>_0x42d74f['type']==_0x5a2e2d&&_0x42d74f['subType']==_0xac9645),_0x54588d=_0x1c3eee['findIndex'](({type:_0x3d6314,subType:_0x47fecf})=>_0x511bfa['type']==_0x3d6314&&_0x511bfa['subType']==_0x47fecf);if(_0x3357ce<0x0||_0x54588d<0x0)return!0x1;const _0x1a26b8=_0x42d74f['getFirstRange'](),_0xe23293=_0x511bfa['getFirstRange']();if((0x0==_0x3357ce||0x1==_0x3357ce)&&0x2==_0x54588d&&_0x1a26b8['isIntersecting'](_0xe23293))return!0x0;if(0x2==_0x3357ce&&0x3==_0x54588d){const _0x4c0fc7=_0x2c9c0['_findSuggestions'](_0x1a26b8,'insertion')['filter'](({suggestion:_0x754fb9,meta:_0x449f70})=>_0x449f70['isOwn']&&'convertInlineImageToBlock'==_0x754fb9['subType']);if(_0x4c0fc7['length']>0x1&&_0xe23293['end']['isEqual'](_0x1a26b8['start']))return!0x0;if(0x1==_0x4c0fc7['length']&&(_0x1a26b8['start']['isEqual'](_0xe23293['end'])||_0x1a26b8['end']['isEqual'](_0xe23293['start'])))return!0x0;}if(0x3==_0x3357ce&&0x3==_0x54588d&&_0x1a26b8['start']['isBefore'](_0xe23293['start'])){const _0x54901b=_0x1a26b8['end']['nodeAfter'],_0x2c7dad=_0xe23293['start']['nodeBefore'];return _0x575868['isBlockImage'](_0x54901b)&&_0x54901b===_0x2c7dad;}return!0x1;}function _0x2bff71(_0x135c32,_0x55adca){return _0x2b7d8f(_0x135c32,_0x55adca)?[_0x135c32,_0x55adca]:_0x2b7d8f(_0x55adca,_0x135c32)?[_0x55adca,_0x135c32]:null;}_0x363ac3['plugins']['has']('ImageResize')&&(_0x2c9c0['enableDefaultAttributesIntegration']('resizeImage'),_0x2c9c0['registerBlockAttribute']('resizedWidth'),_0x2c9c0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x8c668f,'FORMAT_IMAGE_SIZE'))),_0x363ac3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c9c0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c9c0['registerBlockAttribute']('alt')),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x2e5c78=>{if(!!_0x1c3eee['find'](({type:_0x4e18ab,subType:_0xb3d830})=>_0x2e5c78['type']==_0x4e18ab&&_0x2e5c78['subType']==_0xb3d830))return _0x2e5c78['previous']?{}:void 0x0;}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x304167=>{if('insertion'==_0x304167['type']||'deletion'==_0x304167['type']){const _0x32e1b5=_0x304167['getContainedElement']();if(_0x32e1b5&&_0x32e1b5['is']('element','caption'))return{'type':'insertion'==_0x304167['type']?'addObject':'removeObject','element':_0x32e1b5,'quantity':0x1};}}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x1353a=>'formatBlock'==_0x1353a['type']&&'convertInlineImageToBlock'==_0x1353a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1353a['type']&&'convertBlockImageToInline'==_0x1353a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x4daaab=>{if('attribute'!=_0x4daaab['type'])return;const {data:_0x5854cc}=_0x4daaab;if(!_0x5854cc||'alt'!=_0x5854cc['key'])return;const _0x56fe96=_0x5854cc['newValue'];return _0x56fe96?{'type':'format','content':o(_0x8c668f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56fe96+'\x22')}:{'type':'format','content':o(_0x8c668f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a6936=this['editor'],_0x464890=_0x1a6936['locale'];_0x1a6936['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1db3e8=>{if('formatBlock'!=_0x1db3e8['type']&&'formatInline'!=_0x1db3e8['type'])return;const {data:_0x3ce7b2}=_0x1db3e8;if(_0x3ce7b2){if('imageTextAlternative'==_0x3ce7b2['commandName']){const _0x3e14ba=_0x3ce7b2['commandParams'][0x0]['newValue'];return _0x3e14ba?{'type':'format','content':o(_0x464890,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e14ba+'\x22')}:{'type':'format','content':o(_0x464890,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ce7b2['commandName']){const _0xf333d8=_0x3ce7b2['commandParams'][0x0]['width'];return _0xf333d8?{'type':'format','content':o(_0x464890,'*Set\x20image\x20width:*\x20%0',_0xf333d8)}:{'type':'format','content':o(_0x464890,'*Reset\x20image\x20width*')};}}});}}class st extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4f0415=this['editor']['locale'],_0x3985e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3985e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3985e3['registerBlockAttribute']('src'),_0x3985e3['descriptionFactory']['registerDescriptionCallback'](_0x52e904=>{if('attribute'!=_0x52e904['type'])return;const {data:_0x5f0c98}=_0x52e904;return _0x5f0c98&&'src'==_0x5f0c98['key']?_0x5f0c98['newValue']&&_0x5f0c98['oldValue']?{'type':'format','content':o(_0x4f0415,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ff08=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a04df=this['editor'],_0x5a67c4=_0x5a04df['locale'];_0x5a04df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a553c=>{if('formatBlock'!=_0x1a553c['type']&&'formatInline'!=_0x1a553c['type'])return;const {data:_0x21742b}=_0x1a553c;if(!_0x21742b||'replaceImageSource'!=_0x21742b['commandName'])return;return{'type':'format','content':o(_0x5a67c4,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xeaacfa{['afterInit'](){const _0x53c036=this['editor'];if(!_0x53c036['plugins']['has']('ImageStyleEditing'))return;const _0x7d8b9c=_0x53c036['plugins']['get']('TrackChangesEditing'),_0x4a8f7f=_0x53c036['plugins']['get']('ImageUtils'),_0x4f0ff2={};_0x7d8b9c['enableCommand']('imageStyle',(_0x5e0724,_0x2cd4e4)=>{const _0x23d9d6=_0x53c036['plugins']['get']('Users')['me'],_0x577c56=_0x53c036['commands']['get']('imageStyle');let _0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x38bd03=_0x577c56['value'];if(_0x38bd03==_0x2cd4e4['value'])return;const _0x426272={'commandName':'imageStyle','commandParams':[_0x2cd4e4],'formatGroupId':_0x107e61()};_0x53c036['model']['change'](()=>{if(_0x7d8b9c['getSuggestions']()['filter'](_0x3765ee=>_0x3765ee['isInContent']&&_0x23d9d6==_0x3765ee['author']&&('formatBlock'==_0x3765ee['type']||'formatInline'==_0x3765ee['type'])&&('imageStylePreApply'==_0x3765ee['subType']||'imageStylePostApply'==_0x3765ee['subType'])&&_0x3765ee['getFirstRange']()['isEqual'](_0x1c350d))['forEach'](_0xfc2d7=>_0x7d8b9c['discardSuggestion'](_0xfc2d7['head'])),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x577c56['refresh'](),_0x53c036['commands']['get']('imageTypeInline')['refresh'](),_0x53c036['commands']['get']('imageTypeBlock')['refresh'](),_0x38bd03=_0x577c56['value'],_0x38bd03!=_0x2cd4e4['value'])return _0x4a8f7f['isInlineImage'](_0x57e688)&&_0x577c56['shouldConvertImageType'](_0x2cd4e4['value'],_0x57e688)?(_0x5e0724({..._0x2cd4e4,'setImageSizes':!0x1}),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),void _0x7d8b9c['markBlockFormat'](_0x57e688,{..._0x426272,'commandReversedParams':[{'value':_0x38bd03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a8f7f['isBlockImage'](_0x57e688)?_0x7d8b9c['markBlockFormat'](_0x57e688,_0x426272,[],'imageStylePostApply'):_0x7d8b9c['markInlineFormat'](_0x1c350d,_0x426272,'imageStylePostApply'));});});for(const _0x6a4fbd of _0x53c036['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f0ff2[_0x6a4fbd['name']]=_0x6a4fbd['title']['toLowerCase']();_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c73d7])=>{_0x4a8f7f['setImageNaturalSizeAttributes'](_0x5c73d7['getContainedElement']());}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32f3c0,_0x204578)=>{_0x7d8b9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32f3c0,{'commandName':_0x204578['commandName'],'commandParams':_0x204578['commandReversedParams']});}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3229c7,_0x1e0860){if(_0xa2d7bd(_0x3229c7,_0x1e0860))return[_0x3229c7,_0x1e0860];if(_0xa2d7bd(_0x1e0860,_0x3229c7))return[_0x1e0860,_0x3229c7];return null;});const _0x37ee04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa2d7bd(_0x241f59,_0x2a92ae){const _0x28f01a=_0x37ee04['findIndex'](({type:_0x44ab7e,subType:_0x4a1189})=>_0x241f59['type']==_0x44ab7e&&_0x241f59['subType']==_0x4a1189),_0x568e22=_0x37ee04['findIndex'](({type:_0x555f78,subType:_0x2c47d4})=>_0x2a92ae['type']==_0x555f78&&_0x2a92ae['subType']==_0x2c47d4);if(_0x28f01a<0x0||_0x568e22<0x0)return!0x1;const _0x1e0be6=_0x241f59['getFirstRange'](),_0x140c2d=_0x2a92ae['getFirstRange']();if((0x0==_0x28f01a||0x1==_0x28f01a)&&0x2==_0x568e22&&_0x1e0be6['isIntersecting'](_0x140c2d))return!0x0;if(0x2==_0x28f01a&&0x3==_0x568e22){const _0x482f66=_0x7d8b9c['_findSuggestions'](_0x1e0be6,'insertion')['filter'](({suggestion:_0x5ae948,meta:_0x1a98b})=>_0x1a98b['isOwn']&&'convertInlineImageToBlock'==_0x5ae948['subType']);if(_0x482f66['length']>0x1&&_0x140c2d['end']['isEqual'](_0x1e0be6['start']))return!0x0;if(0x1==_0x482f66['length']&&(_0x1e0be6['start']['isEqual'](_0x140c2d['end'])||_0x1e0be6['end']['isEqual'](_0x140c2d['start'])))return!0x0;}if(0x3==_0x28f01a&&0x3==_0x568e22&&_0x1e0be6['start']['isBefore'](_0x140c2d['start'])){const _0x4292f2=_0x1e0be6['end']['nodeAfter'],_0x1897ef=_0x140c2d['start']['nodeBefore'];return _0x4a8f7f['isBlockImage'](_0x4292f2)&&_0x4292f2===_0x1897ef;}return!0x1;}_0x53c036['model']['document']['registerPostFixer'](()=>{let _0x1fa7bb=!0x1;const _0x27b231=Array['from'](_0x53c036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22a80b,data:_0x364d81}of _0x27b231){const {group:_0x2ed97f,type:_0x447874,subType:_0x344083,id:_0x2fb609}=_0x7d8b9c['_splitMarkerName'](_0x22a80b);if('suggestion'==_0x2ed97f&&_0x7d8b9c['hasSuggestion'](_0x2fb609)){if('formatBlock'==_0x447874&&('imageStylePreApply'==_0x344083||'imageStylePostApply'==_0x344083)){const _0xac5515=_0x7d8b9c['getSuggestion'](_0x2fb609);if(_0x364d81['newRange']){const _0x3e238a=_0xac5515['getFirstRange']()['getContainedElement']();if(_0x4a8f7f['isBlockImage'](_0x3e238a))continue;_0x7d8b9c['discardSuggestion'](_0xac5515),_0x1fa7bb=!0x0;}}if('insertion'==_0x447874&&'imageCaption'==_0x344083&&!_0x364d81['newRange']){const _0x361ade=_0x7d8b9c['getSuggestion'](_0x2fb609);_0x361ade['next']&&_0x361ade['next']['isInContent']&&(_0x7d8b9c['discardSuggestion'](_0x361ade['next']),_0x1fa7bb=!0x0);}}}return _0x1fa7bb;}),this['_registerLegacyDescription'](_0x4f0ff2);}['_registerLegacyDescription'](_0xd022a4){const _0xba53e8=this['editor'],_0x4c098b=_0xba53e8['locale'];_0xba53e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a6e5=>{if('formatBlock'!=_0x20a6e5['type']&&'formatInline'!=_0x20a6e5['type'])return;const {data:_0x1e88f4}=_0x20a6e5;if(!_0x1e88f4||'imageStyle'!=_0x1e88f4['commandName'])return;const _0x5d548b=_0x1e88f4['commandParams'][0x0]['value'];return _0x10cae9('side'===_0x5d548b?o(_0x4c098b,'FORMAT_SIDE_IMAGE'):_0xd022a4[_0x5d548b]||_0x5d548b);function _0x10cae9(_0x557f92){return{'type':'format','content':o(_0x4c098b,'*Format:*\x20%0',_0x557f92)};}});}}class ot extends _0xeaacfa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x32a992){super(_0x32a992),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2dc988=this['editor'],_0x1ccdad=_0x2dc988['commands']['get']('importWord'),_0x1bfdec=_0x2dc988['commands']['get']('trackChanges');_0x1ccdad&&(_0x1ccdad['on']('execute',(_0x5c4bcc,[,_0x4115db])=>{this['_trackChangesValueDuringImport']=_0x1bfdec['value'],_0x4115db['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ccdad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ccdad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1bfdec['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2dc988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1dd9e5,_0x175c1e){const {suggestions:_0x13e929}=_0x175c1e,_0x326730=this['editor']['commands']['get']('trackChanges'),_0x4ddcd7=_0x326730['value'];this['_trackChangesValueDuringImport']!==_0x4ddcd7&&(_0x326730['execute'](),this['_trackChangesExecuted']=!0x0),_0x13e929&&_0x13e929['forEach'](({id:_0x2a814a,type:_0x27b7fb,author:_0x176fc6,created_at:_0x2809d7})=>{const _0x1c99d7={'id':_0x2a814a,'type':_0x27b7fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x176fc6,'createdAt':_0x2809d7?new Date(_0x2809d7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c99d7);});}}class rt extends _0xeaacfa{['afterInit'](){const _0x48264e=this['editor'],_0x1bd156=_0x48264e['plugins']['get']('TrackChangesEditing');if(_0x48264e['plugins']['has']('IndentEditing')&&(_0x1bd156['enableCommand']('indent'),_0x1bd156['enableCommand']('outdent')),_0x48264e['plugins']['has']('IndentBlock')){for(const _0x53091e of['indentBlock','outdentBlock'])_0x1bd156['enableDefaultAttributesIntegration'](_0x53091e);}const _0x4aed88=_0x48264e['locale'];_0x1bd156['registerBlockAttribute']('blockIndent'),_0x1bd156['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4aed88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x497d6e=this['editor'],_0x5c6982=_0x497d6e['locale'],_0x370379=_0x497d6e['plugins']['get']('TrackChangesEditing');_0x370379['descriptionFactory']['registerDescriptionCallback'](_0xb73803=>{if('formatBlock'!=_0xb73803['type'])return;const {data:_0x599a18}=_0xb73803;if(!_0x599a18)return;if('indentBlock'!=_0x599a18['commandName']&&'outdentBlock'!=_0x599a18['commandName'])return;const _0xb2278f=_0xb73803['getItems']()[0x0],_0x133ead=_0x370379['descriptionFactory']['getItemLabel'](_0xb2278f);return'indentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Indent:*\x20%0',_0x133ead)}:'outdentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Outdent:*\x20%0',_0x133ead)}:void 0x0;});}}class at extends _0xeaacfa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xeaacfa{['afterInit'](){const _0x34946c=this['editor'];if(!_0x34946c['plugins']['has']('LinkEditing'))return;const _0xfe63a7=_0x34946c['plugins']['get']('TrackChangesEditing'),_0x1b83e6=_0x34946c['commands']['get']('link');_0xfe63a7['enableDefaultAttributesIntegration']('link'),_0xfe63a7['enableDefaultAttributesIntegration']('unlink'),_0xfe63a7['registerInlineAttribute']('linkHref');for(const _0x7d8c59 of _0x1b83e6['manualDecorators'])_0xfe63a7['registerInlineAttribute'](_0x7d8c59['id']),_0xfe63a7['descriptionFactory']['registerAttributeLabel'](_0x7d8c59['id'],'link\x20('+_0x7d8c59['label']['toLowerCase']()+')');_0xfe63a7['descriptionFactory']['registerDescriptionCallback'](_0x1864f7=>{if('attribute'!=_0x1864f7['type'])return;const {data:_0x497bf4}=_0x1864f7;if(!_0x497bf4||'linkHref'!=_0x497bf4['key'])return;const _0x1f4d7b=_0x497bf4['newValue'],_0x2a73b5=_0x34946c['locale'];return{'type':'format','content':null==_0x1f4d7b?o(_0x2a73b5,'*Remove\x20link*'):o(_0x2a73b5,'*Set\x20link:*\x20%0','\x22'+_0x1f4d7b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1442cc=this['editor'],_0x4249a5=_0x1442cc['locale'];_0x1442cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b219=>{if('formatInline'!=_0x48b219['type'])return;const {data:_0xdadb06}=_0x48b219;if(_0xdadb06){if('link'==_0xdadb06['commandName']){const _0x755caa=_0xdadb06['commandParams'][0x0];return{'type':'format','content':o(_0x4249a5,'*Set\x20link:*\x20%0','\x22'+_0x755caa+'\x22')};}return'unlink'==_0xdadb06['commandName']?{'type':'format','content':o(_0x4249a5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xeaacfa{['afterInit'](){const _0xf76b56=this['editor'],_0x3e57f8=_0xf76b56['locale'];if(!_0xf76b56['plugins']['has']('LegacyListEditing'))return;const _0x4d7a62=_0xf76b56['plugins']['get']('TrackChangesEditing'),_0x41aa7e=_0xf76b56['plugins']['has']('LegacyTodoListEditing');function _0x2b6c12(_0x470bcd){return()=>{const _0x4a67c5=_0xf76b56['model']['document']['selection'],_0x32a3dc=_0xf76b56['commands']['get'](_0x470bcd);if(_0x32a3dc['value'])return void _0xf76b56['execute']('paragraph',{});const _0x2cafe0=_0x470bcd['slice'](0x0,-0x4),_0x3daea8=function(_0x22c915,_0x32b3d9,_0x4204c8){let _0x13b3a6=Array['from'](_0x22c915)['filter'](_0x462bbc=>function(_0x325923,_0x1f8fac){return _0x1f8fac['checkChild'](_0x325923['parent'],'listItem')&&!_0x1f8fac['isObject'](_0x325923);}(_0x462bbc,_0x4204c8));_0x13b3a6=_0x13b3a6['filter'](_0x319605=>!_0x319605['is']('element','listItem')||_0x319605['getAttribute']('listType')!=_0x32b3d9);const _0x72d8bb=new Set();for(const _0x1b7846 of _0x13b3a6)_0x1b7846['is']('element','listItem')?_0x72d8bb['add'](me(_0x1b7846)):_0x72d8bb['add'](_0x1b7846);return Array['from'](_0x72d8bb);}(_0x4a67c5['getSelectedBlocks'](),_0x2cafe0,_0xf76b56['model']['schema']);_0xf76b56['model']['change'](()=>{for(const _0x53d733 of _0x3daea8)_0x4d7a62['markBlockFormat'](_0x53d733,{'commandName':_0x470bcd,'commandParams':[{'forceValue':!_0x32a3dc['value']}],'formatGroupId':'blockName'},fe(_0x53d733));});};}function _0x4048b9(_0x50c3d2){return()=>{const _0x3713ad=function(_0x3da927){let _0x5a1361=Array['from'](_0x3da927);const _0x3d6e37=_0x5a1361['findIndex'](_0x3562f2=>'listItem'!=_0x3562f2['name']);return _0x3d6e37>-0x1&&(_0x5a1361=_0x5a1361['slice'](0x0,_0x3d6e37)),_0x5a1361;}(_0xf76b56['model']['document']['selection']['getSelectedBlocks']()),_0x5cfa78=_0xf76b56['model']['createRange'](_0xf76b56['model']['createPositionAt'](_0x3713ad[0x0],'before'),_0xf76b56['model']['createPositionAt'](_0x3713ad[_0x3713ad['length']-0x1],'end'));_0xf76b56['model']['change'](()=>{_0x4d7a62['markBlockFormat'](_0x5cfa78,{'commandName':_0x50c3d2,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd833c0){const _0x2addcb=new Set();for(const _0x32433b of _0xd833c0){let _0x1f1966=_0x32433b['nextSibling'];for(;_0x1f1966&&_0x1f1966['getAttribute']('listIndent')>_0x32433b['getAttribute']('listIndent');)_0x2addcb['add'](_0x1f1966),_0x1f1966=_0x1f1966['nextSibling'];}return Array['from'](_0x2addcb);}(_0x3713ad));});};}_0x4d7a62['enableCommand']('numberedList',_0x2b6c12('numberedList')),_0x4d7a62['enableCommand']('bulletedList',_0x2b6c12('bulletedList')),_0x41aa7e&&_0x4d7a62['enableCommand']('todoList',_0x2b6c12('todoList')),_0x4d7a62['enableCommand']('indentList',_0x4048b9('indentList')),_0x4d7a62['enableCommand']('outdentList',_0x4048b9('outdentList')),_0x41aa7e&&_0x4d7a62['enableCommand']('checkTodoList',()=>{const _0x5cb778=_0xf76b56['commands']['get']('checkTodoList'),_0x4984e3=Array['from'](_0x5cb778['_selectedElements']);_0x4984e3['filter'](_0x553e2f=>_0x553e2f['getAttribute']('todoListChecked')!=_0x5cb778['value']),_0xf76b56['model']['change'](()=>{for(const _0x200932 of _0x4984e3)_0x4d7a62['markBlockFormat'](_0x200932,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb778['value']}]});});}),_0x4d7a62['descriptionFactory']['registerElementLabel']('listItem',_0x3954a4=>o(_0x3e57f8,'ELEMENT_LIST_ITEM',_0x3954a4)),_0x4d7a62['descriptionFactory']['registerDescriptionCallback'](_0x15e8d6=>{if('formatBlock'!=_0x15e8d6['type']&&'formatInline'!=_0x15e8d6['type'])return;const {data:_0x2865b1}=_0x15e8d6;if(_0x2865b1){if('numberedList'==_0x2865b1['commandName']||'bulletedList'==_0x2865b1['commandName']||'todoList'==_0x2865b1['commandName'])switch(_0x2865b1['commandName']['replace']('List','')){case'bulleted':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Indent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Outdent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2865b1['commandName'])return _0x2865b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e57f8,'*Check\x20item*')}:{'type':'format','content':o(_0x3e57f8,'*Uncheck\x20item*')};}function _0x1a72bb(_0x524728){return{'type':'format','content':o(_0x3e57f8,'*Change\x20to:*\x20%0',_0x524728)};}});}}function me(_0x9b87f4){const _0x33efe4=_0x9b87f4['getAttribute']('listIndent');if(0x0==_0x33efe4)return _0x9b87f4;let _0x1fb39c=_0x9b87f4;for(;_0x9b87f4['previousSibling']&&_0x9b87f4['previousSibling']['is']('element','listItem');){const _0x4ef344=_0x9b87f4['previousSibling']['getAttribute']('listIndent');if(_0x4ef344==_0x33efe4)_0x1fb39c=_0x9b87f4['previousSibling'];else{if(_0x4ef344<_0x33efe4)break;}_0x9b87f4=_0x9b87f4['previousSibling'];}return _0x1fb39c;}function fe(_0x2b181f){const _0x54ec70=[];if(_0x2b181f['is']('element','listItem')&&_0x2b181f['getAttribute']('listIndent')>0x0){let _0x4aac03=_0x2b181f['nextSibling'];for(;_0x4aac03&&'listItem'==_0x4aac03['name']&&_0x4aac03['getAttribute']('listIndent')==_0x2b181f['getAttribute']('listIndent');)_0x54ec70['push'](_0x4aac03),_0x4aac03=_0x4aac03['nextSibling'];}return _0x54ec70;}class K extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50ea77=this['editor']['config']['get']('list.properties'),_0x2930e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ea77['styles']&&_0x2930e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50ea77['reversed']&&_0x2930e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50ea77['startIndex']&&_0x2930e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2930e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2cd471,_0x2f5290={}){const _0x9c7cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55dbdc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9c7cc4['markMultiRangeBlockFormat'](_0x55dbdc,{'commandName':'listStyle','commandParams':[{'type':_0x2f5290['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5ed722,_0x5c4f61={}){const _0x5b0070=this['editor']['plugins']['get']('TrackChangesEditing'),_0x299073=this['_getSuggestionBlocks'](_0x25b600=>_0x25b600['is']('element','listItem')&&'numbered'===_0x25b600['getAttribute']('listType'));if(_0x299073['length']<0x1)return;const _0x54ac2c=_0x299073['map'](_0x24da5e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24da5e,'before'),this['editor']['model']['createPositionAt'](_0x24da5e,0x0)));this['editor']['model']['change'](()=>{_0x5b0070['markMultiRangeBlockFormat'](_0x54ac2c,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c4f61['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d5c0d,_0x4a7c11={}){const _0x4694c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16a744=this['_getSuggestionBlocks'](_0x497ba1=>_0x497ba1['is']('element','listItem')&&'numbered'===_0x497ba1['getAttribute']('listType'));if(_0x16a744['length']<0x1)return;const _0x51ebca=_0x16a744['map'](_0x520c13=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x520c13,'before'),this['editor']['model']['createPositionAt'](_0x520c13,0x0)));this['editor']['model']['change'](()=>{_0x4694c0['markMultiRangeBlockFormat'](_0x51ebca,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7c11['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fb68e){if('formatBlock'!=_0x2fb68e['type']&&'formatInline'!=_0x2fb68e['type'])return;const _0x22ce50=this['editor']['locale'],{data:_0x49da7a}=_0x2fb68e;if(!_0x49da7a)return;let _0x17de27,_0x23926c;switch(_0x49da7a['commandName']){case'listStyle':_0x17de27='*Change\x20to:*\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,o(_0x22ce50,this['_getTranslationKeyForListStyle'](_0x49da7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17de27=_0x49da7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27)};break;case'listStart':_0x17de27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,_0x49da7a['commandParams'][0x0]['startIndex'])};}return _0x23926c;}['_getSuggestionBlocksForListStyle'](){const _0x37b6b9=this['editor']['plugins']['get']('LegacyListUtils');let _0x12a3cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x12a3cf[0x0]?.['is']('element','listItem')&&_0x12a3cf['unshift'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x12a3cf[_0x12a3cf['length']-0x1]?.['is']('element','listItem')&&_0x12a3cf['push'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12a3cf=[...new Set(_0x12a3cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x12a3cf=_0x12a3cf['filter'](_0x4d983e=>_0x4d983e['is']('element','listItem'))),_0x12a3cf;}['_getSuggestionBlocks'](_0x7d8105){const _0x2eb3ef=this['editor']['plugins']['get']('LegacyListUtils');let _0x22c0ae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7d8105)['map'](_0x1f2402=>{const _0x12cda5=this['editor']['model']['createPositionAt'](_0x1f2402,0x0);return[..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'backward'),..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'forward')];})['flat']();return _0x22c0ae=[...new Set(_0x22c0ae)],_0x22c0ae;}['_getTranslationKeyForListStyle'](_0x52f68c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52f68c)||'default')['toUpperCase']()+'_LIST_'+_0x52f68c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xeaacfa{['afterInit'](){const _0x4a048f=this['editor'];if(!_0x4a048f['plugins']['has']('MediaEmbedEditing'))return;const _0x57ae7d=_0x4a048f['plugins']['get']('TrackChangesEditing'),_0x1b39f9=_0x4a048f['locale'];_0x57ae7d['enableCommand']('mediaEmbed'),_0x57ae7d['descriptionFactory']['registerElementLabel']('media',_0x2cd80a=>o(_0x1b39f9,'ELEMENT_MEDIA',_0x2cd80a)),_0x4a048f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x228319,{writer:_0x2e2f8f,options:_0x19d109})=>{if(_0x19d109['showSuggestionHighlights'])return _0x2e2f8f['createEmptyElement']('div');},'converterPriority':'high'}),_0x4a048f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x136b15,_0x26f034,_0x1666b2)=>{_0x1666b2['options']['showSuggestionHighlights']&&_0x136b15['stop']();},{'priority':'high'});}}class gt extends _0xeaacfa{['afterInit'](){const _0x3b3974=this['editor'];_0x3b3974['plugins']['has']('MentionEditing')&&_0x3b3974['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xeaacfa{['afterInit'](){const _0xba6e34=this['editor'],_0x5677ad=_0xba6e34['plugins']['get']('TrackChangesEditing');_0xba6e34['plugins']['has']('MultiLevelList')&&(_0x5677ad['enableDefaultAttributesIntegration']('multiLevelList'),_0x5677ad['registerBlockAttribute']('listMarkerStyle'),_0x5677ad['descriptionFactory']['registerDescriptionCallback'](_0x5f0013=>this['handleDescriptions'](_0x5f0013)));}['handleDescriptions'](_0x1a2d88){const _0x128a50=this['editor']['locale'],{data:_0x3df3d8}=_0x1a2d88,_0x4c9bb6={'type':'format','content':''};if(_0x3df3d8&&'listMarkerStyle'==_0x3df3d8['key']){if(!_0x3df3d8['oldValue'])return{'type':'format','content':o(_0x128a50,'*Set\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['newValue']+')'};if(!_0x3df3d8['newValue']){let _0x1104a9=_0x1a2d88['head'];for(;_0x1104a9;){if(_0x1104a9['data']&&'listType'==_0x1104a9['data']['key']&&_0x1104a9['data']['newValue'])return _0x4c9bb6;_0x1104a9=_0x1104a9['next'];}return{'type':'format','content':o(_0x128a50,'*Remove\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['oldValue']+')'};}}}}class mt extends _0xeaacfa{['afterInit'](){const _0x3535a9=this['editor'];if(!_0x3535a9['plugins']['has']('PageBreakEditing'))return;_0x3535a9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x515e1d=_0x3535a9['plugins']['get']('TrackChangesEditing'),_0x325bc4=_0x3535a9['locale'];_0x515e1d['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f034e=>o(_0x325bc4,'ELEMENT_PAGE_BREAK',_0x1f034e));}}class dt extends _0xeaacfa{['afterInit'](){const _0x3adc2c=this['editor'];if(!_0x3adc2c['plugins']['has']('Paragraph'))return;const _0x3bb7a4=_0x3adc2c['locale'],_0x4dcdaf=_0x3adc2c['plugins']['get']('TrackChangesEditing');_0x4dcdaf['descriptionFactory']['registerElementLabel']('paragraph',_0x104448=>o(_0x3bb7a4,'ELEMENT_PARAGRAPH',_0x104448)),_0x4dcdaf['enableDefaultAttributesIntegration']('paragraph'),_0x4dcdaf['enableCommand']('insertParagraph'),_0x3adc2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3adc2c),{'priority':'highest'}),_0x3adc2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc74481,_0x53a5e0,_0x547d51)=>{_0x547d51['options']['showSuggestionHighlights']&&nr(_0x3adc2c,{'showActiveMarker':!0x1})(_0xc74481,_0x53a5e0,_0x547d51);},{'priority':'highest'});const _0xf9fdd0=_0x4dcdaf['descriptionFactory'];_0xf9fdd0['registerDescriptionCallback'](_0x7bf613=>{if('insertion'!==_0x7bf613['type'])return;const {start:_0x533019,end:_0x15983c}=_0x7bf613['getFirstRange']();if(!_0x533019['isTouching'](_0x15983c)||!_0x533019['nodeAfter'])return;const _0x1e836e=_0x3adc2c['model']['schema'],_0x48b710=_0x533019['nodeAfter'];return _0x1e836e['isBlock'](_0x48b710)&&!_0x1e836e['isLimit'](_0x48b710)&&_0x1e836e['checkChild'](_0x48b710,'$text')?{'type':'insertion','content':o(_0x3bb7a4,'*Insert:*\x20%0',_0xf9fdd0['getItemLabel'](_0x48b710,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41303f=this['editor'],_0x172edd=_0x41303f['locale'];_0x41303f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8df5ce=>{if('formatBlock'!=_0x8df5ce['type'])return;const {data:_0x32b74b}=_0x8df5ce;return _0x32b74b&&'paragraph'==_0x32b74b['commandName']?{'type':'format','content':o(_0x172edd,'*Change\x20to:*\x20%0',o(_0x172edd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16d079,{showActiveMarker:_0x44f0af=!0x0}={}){return(_0x253566,_0x2d3656,_0x552b28)=>{const _0x50e441=_0x16d079['plugins']['get']('TrackChangesEditing'),_0x5e1dac=_0x2d3656['markerRange']['start'],_0x5bf57d=_0x2d3656['markerRange']['end'],_0x5d7209=_0x16d079['model']['schema'];if(!_0x5e1dac['isTouching'](_0x5bf57d)||!_0x5e1dac['nodeAfter'])return;const _0x566123=_0x5e1dac['nodeAfter'];if(_0x5d7209['isBlock'](_0x566123)&&!_0x5d7209['isLimit'](_0x566123)&&_0x5d7209['checkChild'](_0x566123,'$text')){if(!_0x552b28['consumable']['consume'](_0x2d3656['markerRange'],_0x253566['name']))return;const _0x36703a=_0x552b28['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x464b4e=_0x552b28['mapper']['toViewPosition'](_0x5bf57d);_0x44f0af&&_0x50e441['activeMarkers']['includes'](_0x2d3656['markerName'])&&_0x552b28['writer']['addClass']('ck-suggestion-marker--active',_0x36703a),_0x552b28['writer']['insert'](_0x464b4e,_0x36703a),_0x552b28['mapper']['bindElementToMarker'](_0x36703a,_0x2d3656['markerName']);}};}class pt extends _0xeaacfa{['afterInit'](){const _0x5a04d6=this['editor'];if(!_0x5a04d6['plugins']['has']('RemoveFormatEditing'))return;_0x5a04d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63b8f7=this['editor'];_0x63b8f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a13a6=>{if('formatBlock'!=_0x2a13a6['type']&&'formatInline'!=_0x2a13a6['type'])return;const {data:_0x6d12df}=_0x2a13a6;return _0x6d12df&&'removeFormat'==_0x6d12df['commandName']?{'type':'format','content':o(_0x63b8f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xeaacfa{['afterInit'](){const _0x5cc89a=this['editor'];if(!_0x5cc89a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e67a2=_0x5cc89a['plugins']['get']('TrackChangesEditing');_0x5e67a2['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e67a2['enableCommand']('goToNextRestrictedEditingException');const _0x46ab92=_0x5cc89a['plugins']['get']('RestrictedEditingModeEditing');_0x46ab92['enableCommand']('trackChanges'),_0x46ab92['enableCommand']('acceptSuggestion'),_0x46ab92['enableCommand']('discardSuggestion'),_0x46ab92['enableCommand']('acceptAllSuggestions'),_0x46ab92['enableCommand']('discardAllSuggestions'),_0x46ab92['enableCommand']('acceptSelectedSuggestions'),_0x46ab92['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xeaacfa{static get['requires'](){return[_0x4aa5ce];}['init'](){const _0x1e4667=this['editor'],_0x22d8d0=_0x1e4667['plugins']['get']('TrackChangesEditing');_0x22d8d0['enableCommand']('shiftEnter'),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x301839,_0x5c1a3e,_0x487b64)=>{_0x487b64['options']['showSuggestionHighlights']&&de(_0x1e4667,{'showActiveMarker':!0x1})(_0x301839,_0x5c1a3e,_0x487b64);}),_0x22d8d0['descriptionFactory']['registerElementLabel']('softBreak',_0x34609b=>o(_0x1e4667['locale'],'ELEMENT_LINE_BREAK',_0x34609b));}}function de(_0x3bfab4,{showActiveMarker:_0x599c3b=!0x0}={}){return(_0x2d245c,_0x187f00,_0x45a6e3)=>{const _0x5052c7=_0x3bfab4['plugins']['get']('TrackChangesEditing');if(!_0x45a6e3['consumable']['test'](_0x187f00['markerRange'],_0x2d245c['name']))return;const _0x499429=_0x3bfab4['model'];for(const _0x45271f of _0x187f00['markerRange']['getItems']()){if(!_0x45271f['is']('element','softBreak'))continue;const _0x36009a='deletion'==_0x187f00['markerName']['split'](':')[0x1]?'merge':'split',_0x595434=_0x45a6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36009a}),_0xadda37=_0x45a6e3['mapper']['toViewPosition'](_0x499429['createPositionBefore'](_0x45271f));_0x599c3b&&_0x5052c7['activeMarkers']['includes'](_0x187f00['markerName'])&&_0x45a6e3['writer']['addClass']('ck-suggestion-marker--active',_0x595434),_0x45a6e3['writer']['insert'](_0xadda37,_0x595434),_0x45a6e3['mapper']['bindElementToMarker'](_0x595434,_0x187f00['markerName']);}};}class wt extends _0xeaacfa{['afterInit'](){const _0x4ba540=this['editor'],_0x552a30=_0x4ba540['model'],_0x5b706d=_0x4ba540['locale'];if(!_0x4ba540['plugins']['has']('StandardEditingModeEditing'))return;const _0x1cd9f7=_0x4ba540['plugins']['get']('TrackChangesEditing'),_0x24b427='restrictedEditingException',_0x2c624d=_0x4ba540['commands']['get'](_0x24b427);_0x1cd9f7['enableCommand'](_0x24b427,(_0x329c77,_0x37c282={})=>{const _0xd29d37=_0x552a30['document']['selection'];if(_0xd29d37['isCollapsed'])return void _0x329c77(_0x37c282);const _0x2729a0=void 0x0!==_0x37c282['forceValue']?_0x37c282['forceValue']:!_0x2c624d['value'];_0x552a30['change'](()=>{const _0xb4e00d=Array['from'](_0xd29d37['getRanges']());for(const _0x5632c9 of _0xb4e00d){const _0x4e5410=_0x2729a0?[_0x5632c9]:io(_0x24b427,_0x5632c9,_0x552a30);for(const _0x16c33b of _0x4e5410)_0x1cd9f7['markInlineFormat'](_0x16c33b,{'commandName':_0x24b427,'commandParams':[{'forceValue':_0x2729a0}]});}});}),_0x1cd9f7['descriptionFactory']['registerDescriptionCallback'](_0xe4d48c=>{if('formatBlock'!=_0xe4d48c['type']&&'formatInline'!=_0xe4d48c['type'])return;const {data:_0x5272f2}=_0xe4d48c;return _0x5272f2&&_0x5272f2['commandName']==_0x24b427?_0x5272f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xeaacfa{['afterInit'](){const _0x5aebf3=this['editor'];if(!_0x5aebf3['plugins']['has']('Style')||!_0x5aebf3['plugins']['has']('DataSchema'))return;const _0x4ce84b=_0x5aebf3['plugins']['get']('TrackChangesEditing'),_0x329ddf=_0x5aebf3['locale'],_0x38b2af=_0x5aebf3['config']['get']('style')||{},_0x52eaf5=_0x5aebf3['plugins']['get']('GeneralHtmlSupport'),_0x37866c=_0x5aebf3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5aebf3['plugins']['get']('DataSchema'),_0x38b2af['definitions']);_0x4ce84b['enableDefaultAttributesIntegration']('style');const _0x39c354=new Set();for(const _0x393916 of _0x37866c['block']){const _0x92c94c=_0x52eaf5['getGhsAttributeNameForElement'](_0x393916['element']);_0x39c354['add'](_0x92c94c);}const _0x3c5516=new Set();for(const _0x9bb9e6 of _0x37866c['inline']){const _0xc1360a=_0x52eaf5['getGhsAttributeNameForElement'](_0x9bb9e6['element']);_0x3c5516['add'](_0xc1360a);for(const _0x48af4a of _0x9bb9e6['ghsAttributes'])_0x3c5516['add'](_0x48af4a);}for(const _0x3944ff of _0x39c354)_0x4ce84b['registerBlockAttribute'](_0x3944ff),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x3944ff,o(_0x329ddf,'FORMAT_STYLE'));for(const _0x372c7a of _0x3c5516)_0x4ce84b['registerInlineAttribute'](_0x372c7a),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x372c7a,o(_0x329ddf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4178f5=this['editor'],_0x441e11=_0x4178f5['locale'];_0x4178f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d794=>{if('formatBlock'!=_0x10d794['type']&&'formatInline'!=_0x10d794['type'])return;const {data:_0x2ac4ee}=_0x10d794;return _0x2ac4ee&&'style'===_0x2ac4ee['commandName']?_0x2ac4ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x441e11,'*Set\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x441e11,'*Remove\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xeaacfa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b2841){super(_0x4b2841),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x357e23=this['editor'],_0x1c39c9=_0x357e23['model']['document']['selection'];if(!_0x357e23['plugins']['has']('TableEditing'))return;const _0x5e19a8=_0x357e23['locale'],_0xfc0040=_0x357e23['plugins']['get']('TrackChangesEditing'),_0x395845=_0x357e23['plugins']['get']('TableUtils');_0xfc0040['descriptionFactory']['registerElementLabel']('table',_0x20c9ea=>o(_0x5e19a8,'ELEMENT_TABLE',_0x20c9ea)),this['_setupColumnsRowsFixing'](),_0xfc0040['enableCommand']('insertTable'),_0xfc0040['enableCommand']('selectTableRow'),_0xfc0040['enableCommand']('selectTableColumn');for(const _0x53bfda of['insertTableRowAbove','insertTableRowBelow']){const _0x133578=_0x357e23['commands']['get'](_0x53bfda);_0xfc0040['enableCommand'](_0x53bfda,_0xa40b81=>{_0x357e23['model']['change'](_0x58eefd=>{_0xa40b81();const _0x451bf8='above'===_0x133578['order'],_0x56deb1=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x20ef7d=_0x395845['getRowIndexes'](_0x56deb1),_0x16b37f=_0x451bf8?_0x20ef7d['first']-0x1:_0x20ef7d['last']+0x1,_0x9d3ab0=_0x56deb1[0x0]['findAncestor']('table'),_0x4bc386=_0x395845['createTableWalker'](_0x9d3ab0,{'startRow':_0x16b37f,'endRow':_0x16b37f}),_0x2e7562=Array['from'](_0x4bc386)['map'](_0x56bba4=>_0x58eefd['createRangeOn'](_0x56bba4['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2e7562,'tableRow');});});}for(const _0x348372 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2092ac=_0x357e23['commands']['get'](_0x348372);_0xfc0040['enableCommand'](_0x348372,_0x120979=>{_0x357e23['model']['change'](_0x16df71=>{_0x120979();const _0x53a687='left'===_0x2092ac['order'],_0x467822=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x4cd4f7=_0x395845['getColumnIndexes'](_0x467822),_0xc5b944=_0x53a687?_0x4cd4f7['first']-0x1:_0x4cd4f7['last']+0x1,_0x464ff0=_0x467822[0x0]['findAncestor']('table'),_0x3a5366=_0x395845['createTableWalker'](_0x464ff0,{'startRow':0x0,'column':_0xc5b944,'includeAllSlots':!0x1}),_0x2acbd8=Array['from'](_0x3a5366)['map'](_0xe10630=>_0x16df71['createRangeOn'](_0xe10630['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2acbd8,'tableColumn');});});}for(const _0x13e01c of['removeTableRow','removeTableColumn']){const _0x43de16=_0x13e01c['substr'](0xb),_0x12ef2f=_0x43de16['toLowerCase'](),_0x3ca6fb=_0x12ef2f['substr'](0x0,0x3)+'span',_0x274733='table'+_0x43de16,_0x483853='min'+_0x43de16,_0x6c2b4e='max'+_0x43de16;_0xfc0040['enableCommand'](_0x13e01c,()=>{_0x357e23['model']['change'](_0x4c6d8a=>{const _0x2ee42c=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0xa59376=_0x2ee42c[0x0]['findAncestor']('table');let _0x58d95e;if('removeTableRow'==_0x13e01c){const _0x553a00=_0x395845['getRowIndexes'](_0x2ee42c);_0x58d95e={'startRow':_0x553a00['first'],'endRow':_0x553a00['last'],'includeAllSlots':!0x0};}else{const _0x34ba1e=_0x395845['getColumnIndexes'](_0x2ee42c);_0x58d95e={'startColumn':_0x34ba1e['first'],'endColumn':_0x34ba1e['last'],'includeAllSlots':!0x0};}const _0x3bc6c6=_0x395845['createTableWalker'](_0xa59376,_0x58d95e),_0x518624=Array['from'](_0x3bc6c6)['map'](({cell:_0x4aa0ad})=>_0x4aa0ad),_0x3a7bf3=Ee(_0x518624['filter'](_0x35ebb1=>_0x35ebb1['hasAttribute'](_0x3ca6fb))),_0x259323=Ee(_0x518624['filter'](_0x5d33f2=>!_0x5d33f2['hasAttribute'](_0x3ca6fb)))['map'](_0x7a4e84=>_0x4c6d8a['createRangeOn'](_0x7a4e84)),_0xf3c02=_0xfc0040['markMultiRangeDeletion'](_0x259323,_0x274733);if(_0xf3c02&&('tableRow'==_0xf3c02['subType']||'tableColumn'==_0xf3c02['subType'])){const _0x393f62=this['_getSuggestionCoords'](_0xf3c02);for(const _0x332fbb of _0x3a7bf3){const _0x519700=_0x4c6d8a['createRangeOn'](_0x332fbb),_0x54412d=_0x395845['getCellLocation'](_0x332fbb),_0x4e65bb=_0x332fbb['getAttribute'](_0x3ca6fb)-0x1,_0x45722f=_0x393f62[_0x483853],_0x57a7f7=_0x393f62[_0x6c2b4e];_0x45722f<=_0x54412d[_0x12ef2f]&&_0x54412d[_0x12ef2f]+_0x4e65bb<=_0x57a7f7&&_0xf3c02['addRange'](_0x519700);}}});});}function _0x1ac3d9(_0x2210d8){const _0x45b6df=Array['from'](_0x1c39c9['getRanges']())['map'](_0x5791ae=>_0x54c30a['fromRange'](_0x5791ae));_0x357e23['model']['change'](_0x3be6fa=>{const _0x1c452f=_0x3be6fa['batch'];_0x2210d8=_0x2210d8['filter'](_0x4a1902=>'$graveyard'!=_0x4a1902['root']['rootName']),_0x3be6fa['setSelection'](_0x2210d8),_0x357e23['commands']['get']('removeTableRow')['refresh'](),_0x357e23['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x357e23['model']['enqueueChange'](()=>{_0x357e23['model']['enqueueChange'](_0x1c452f,_0x15bd4a=>{const _0x26690f=_0x45b6df['filter'](_0x58e267=>'$graveyard'!=_0x58e267['root']['rootName']);_0x26690f['length']>0x0&&_0x15bd4a['setSelection'](_0x26690f);for(const _0x589f82 of _0x45b6df)_0x589f82['detach']();});});});}function _0x5da136(_0x34b854){_0x357e23['model']['change'](_0x555424=>{const _0x39bfe6=Array['from'](_0x1c39c9['getRanges']())['map'](_0x4dddd4=>_0x54c30a['fromRange'](_0x4dddd4)),_0x16c863=[];for(const _0x43cf04 of _0x34b854)for(const _0x2fdb61 of _0x43cf04['getItems']({'shallow':!0x0}))_0x16c863['push'](_0x2fdb61);for(const _0xa23a45 of _0x16c863)'$graveyard'!=_0xa23a45['root']['rootName']&&(_0x555424['setSelection'](_0x555424['createPositionAt'](_0xa23a45,0x0)),_0x357e23['commands']['get']('removeTableColumn')['refresh'](),_0x357e23['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x562353=_0x39bfe6['filter'](_0x517d18=>'$graveyard'!=_0x517d18['root']['rootName']);_0x562353['length']>0x0&&_0x555424['setSelection'](_0x562353);for(const _0x3e7e2c of _0x39bfe6)_0x3e7e2c['detach']();});}function _0x1e2c04(_0x375779,_0x55c086){return _0x55c086['every'](_0x22da18=>_0x375779['some'](_0x225cb9=>_0x225cb9['end']['isEqual'](_0x22da18['start'])||_0x22da18['end']['isEqual'](_0x225cb9['start'])));}function _0x12ad48(_0x2d3da5,_0x290777){return _0x2d3da5['some'](_0x219e82=>_0x290777['some'](_0x37560e=>_0x219e82['end']['isTouching'](_0x37560e['start'])));}_0x357e23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f108d,_0x515623,_0x5c2223)=>{if(!_0x5c2223['options']['showSuggestionHighlights'])return;const _0x38fb0f=_0x515623['item'];if(!_0x38fb0f)return;const _0x239442=_0x5c2223['mapper']['toViewElement'](_0x38fb0f);function _0xbce742(_0x18cc5e){return Array['isArray'](_0x18cc5e)?_0x18cc5e:[_0x18cc5e];}_0x239442&&'tableCell'===_0x38fb0f['name']&&_0x50a99b(_0x239442,_0x5c2223['writer'],(_0x2e65fa,_0x300bb9,_0x24d855)=>_0x24d855['addClass'](_0xbce742(_0x300bb9['classes']),_0x2e65fa),(_0xb3f2bc,_0x147916,_0x42fd03)=>_0x42fd03['removeClass'](_0xbce742(_0x147916['classes']),_0xb3f2bc));},{'priority':'highest'}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0xa36bf6=>{if('insertion'!=_0xa36bf6['type']&&'deletion'!=_0xa36bf6['type'])return;const _0x490067=_0xa36bf6['getContainedElement']();if(null!=_0x490067&&_0x490067['is']('element','table')){if('insertion'==_0xa36bf6['type']){const _0x2d14ef=_0xa36bf6['getItems']()['filter'](_0x2d0299=>_0x2d0299['is']('$textProxy'))['map'](_0x2e8b2d=>_0x2e8b2d['data']);if(_0x2d14ef['length'])return{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d14ef['join']('\x20')+'\x22'))};}if('deletion'==_0xa36bf6['type']){const _0x5a53ee=_0xa36bf6['getItems']()['filter'](_0x23ed31=>_0x23ed31['is']('$textProxy'))['map'](_0x248c51=>_0x248c51['data']);if(_0x5a53ee['length'])return{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a53ee['join']('\x20')+'\x22'))};}}}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0x14de91=>{if('tableRow'==_0x14de91['subType']){const _0x389859=_0x14de91['getItems']()['filter'](_0x39acf2=>_0x39acf2['is']('$textProxy'))['map'](_0x247c3b=>_0x247c3b['data']),_0x3de77b=this['_getSuggestionCoords'](_0x14de91),_0x236346=_0x3de77b['maxRow']-_0x3de77b['minRow']+0x1;if('insertion'==_0x14de91['type'])return _0x389859['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};if('deletion'==_0x14de91['type'])return _0x389859['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};}if('tableColumn'==_0x14de91['subType']){const _0x3aea3e=_0x14de91['getItems']()['filter'](_0x24691c=>_0x24691c['is']('$textProxy'))['map'](_0xe84f30=>_0xe84f30['data']),_0x221221=this['_getSuggestionCoords'](_0x14de91),_0x26d0f0=_0x221221['maxColumn']-_0x221221['minColumn']+0x1;if('insertion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};if('deletion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};}}),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12ad48),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12ad48);}['_acceptFormatSuggestionCallbackFactory'](){const _0x236231=this['editor'],_0x2098c0=_0x236231['model']['document']['selection'];return(_0xc4c948,_0x2d812c)=>{_0x236231['model']['change'](_0x31fcd0=>{const {commandName:_0xcc845a,commandParams:_0x3b670a}=_0x2d812c;let _0x4495cd=_0xc4c948[0x0]['end']['nodeBefore'];_0x3b670a&&_0x3b670a[0x0]&&!0x1===_0x3b670a[0x0]['forceValue']&&(_0x4495cd=_0xc4c948[0x0]['start']['nodeAfter']);const _0x53db98=_0x31fcd0['createRangeIn'](_0x4495cd);if('$graveyard'==_0x53db98['root']['rootName'])return;const _0x5db7ff=Array['from'](_0x2098c0['getRanges']())['map'](_0x2c492f=>_0x54c30a['fromRange'](_0x2c492f));_0x31fcd0['setSelection'](_0x53db98),_0x236231['commands']['get'](_0xcc845a)['refresh'](),_0x3b670a['push']({'forceDefaultExecution':!0x0}),_0x236231['execute'](_0xcc845a,..._0x3b670a);const _0x360fe1=_0x5db7ff['filter'](_0x3730c2=>'$graveyard'!=_0x3730c2['root']['rootName']);_0x360fe1['length']>0x0&&_0x31fcd0['setSelection'](_0x360fe1);for(const _0x37d37e of _0x5db7ff)_0x37d37e['detach']();});};}['_getCoordsForCells'](_0x350905){const _0x14cc0f=this['editor']['plugins']['get']('TableUtils');let _0x37d4c5=Number['MAX_SAFE_INTEGER'],_0x36f7ed=Number['MIN_SAFE_INTEGER'],_0x4829d3=Number['MAX_SAFE_INTEGER'],_0xf53075=Number['MIN_SAFE_INTEGER'];for(const _0x64f978 of _0x350905){if('$graveyard'==_0x64f978['root']['rootName'])continue;const {row:_0x276471,column:_0x10c6d8}=_0x14cc0f['getCellLocation'](_0x64f978),_0x3b3581=_0x64f978['hasAttribute']('rowspan')?_0x64f978['getAttribute']('rowspan')-0x1:0x0,_0x32d49b=_0x64f978['hasAttribute']('colspan')?_0x64f978['getAttribute']('colspan')-0x1:0x0;_0x37d4c5=_0x276471<_0x37d4c5?_0x276471:_0x37d4c5,_0x36f7ed=_0x276471+_0x3b3581>_0x36f7ed?_0x276471+_0x3b3581:_0x36f7ed,_0x4829d3=_0x10c6d8<_0x4829d3?_0x10c6d8:_0x4829d3,_0xf53075=_0x10c6d8+_0x32d49b>_0xf53075?_0x10c6d8+_0x32d49b:_0xf53075;}return{'minRow':_0x37d4c5,'maxRow':_0x36f7ed,'minColumn':_0x4829d3,'maxColumn':_0xf53075};}['_setupColumnsRowsFixing'](){const _0x3bdfde=this['editor'],_0x504773=_0x3bdfde['plugins']['get']('TrackChangesEditing'),_0x1bdbba=_0x3bdfde['plugins']['get']('TableUtils');_0x3bdfde['model']['document']['on']('change:data',()=>{const _0x18609f=Array['from'](_0x3bdfde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9a28,data:_0x581539}of _0x18609f){const {group:_0x71774e,id:_0x50b5aa,subType:_0x137009}=_0x504773['_splitMarkerName'](_0x3a9a28);if('suggestion'!=_0x71774e)continue;if(null!=_0x581539['oldRange'])continue;const _0x134baa=_0x504773['getSuggestion'](_0x50b5aa);this['_tablePostFixingSubtypes']['includes'](_0x137009)&&this['_tableSuggestions']['add'](_0x134baa);}},{'priority':'low'});const _0xdbcfed=(_0x4db2a9,_0x5eeaa5)=>{let _0x3a4509=!0x1;const _0x10ce6a=_0x5eeaa5['createRangeOn'](_0x4db2a9),_0xc96232=_0x4db2a9['findAncestor']('table'),_0x404959=_0x1bdbba['getCellLocation'](_0x4db2a9);for(const _0x1e8efc of this['_tableSuggestions']){const _0x383ebe=_0x1e8efc['subType'],_0x32f024=_0x383ebe['startsWith']('tablePaste'),_0x509f74=_0x383ebe['substr'](_0x32f024?0xa:0x5),_0x5ee3c4=_0x509f74['toLowerCase'](),_0x141282=_0x5ee3c4['substr'](0x0,0x3)+'span',_0x1b9a29='min'+_0x509f74,_0x4d4b31='max'+_0x509f74;if(!_0x1e8efc['isInContent'])continue;if(_0xc96232!=_0x1e8efc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e8efc['isIntersectingWithRange'](_0x10ce6a))continue;const _0x459e85=_0x4db2a9['hasAttribute'](_0x141282)?_0x4db2a9['getAttribute'](_0x141282)-0x1:0x0,_0x20544f=this['_getSuggestionCoords'](_0x1e8efc),_0x7fb634=_0x20544f[_0x1b9a29],_0x247777=_0x20544f[_0x4d4b31];_0x7fb634<=_0x404959[_0x5ee3c4]&&_0x404959[_0x5ee3c4]+_0x459e85<=_0x247777&&(_0x1e8efc['addRange'](_0x10ce6a),_0x3a4509=!0x0);}return _0x3a4509;};_0x3bdfde['model']['document']['registerPostFixer'](_0x3384f0=>{let _0x14a312=!0x1;for(const _0x1f30c5 of _0x3bdfde['model']['document']['differ']['getChanges']())if('insert'==_0x1f30c5['type']){if('tableRow'==_0x1f30c5['name']){for(const _0x55942b of _0x1f30c5['position']['nodeAfter']['getChildren']())_0x14a312=_0x14a312||_0xdbcfed(_0x55942b,_0x3384f0);}else'tableCell'==_0x1f30c5['name']&&(_0x14a312=_0x14a312||_0xdbcfed(_0x1f30c5['position']['nodeAfter'],_0x3384f0));}return _0x14a312;});}['_getSuggestionCoords'](_0x3bafbf){return this['_getCoordsForCells'](_0x3bafbf['getRanges']()['map'](_0x37acb5=>_0x37acb5['start']['nodeAfter']));}}function Ee(_0x327738){return Array['from'](new Set(_0x327738)['values']());}class St extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4451b5=this['editor'],_0xa8f89f=_0x4451b5['model']['document']['selection'],_0x39d395=_0x4451b5['locale'];if(!_0x4451b5['plugins']['has']('TableEditing'))return;const _0x1211ca=_0x4451b5['plugins']['get']('TrackChangesEditing'),_0x513826=_0x4451b5['plugins']['get']('TableUtils'),_0x22a6f9=_0x4451b5['plugins']['get'](jt);_0x22a6f9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1211ca['enableCommand']('mergeTableCells',()=>{const _0x1f2c16=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection']);_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat'](_0x1f2c16,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4451b5['commands']['get']('mergeTableCells')['on']('execute',(_0x1eb2c0,_0x1065d4)=>{_0x4451b5['commands']['get']('trackChanges')['value']&&(_0x1065d4['length']>0x0&&_0x1065d4[_0x1065d4['length']-0x1]&&_0x1065d4[_0x1065d4['length']-0x1]['forceDefaultExecution']||_0x1211ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1eb2c0['stop']());},{'priority':'highest'});for(const _0x27c0e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xad7192=_0x4451b5['commands']['get'](_0x27c0e3);_0x1211ca['enableCommand'](_0x27c0e3,()=>{const _0x27e8ae=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf7ccd3=>_0xf7ccd3['is']('element','tableCell')),_0x46f4bc=_0xad7192['value'];_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat']([_0x27e8ae,_0x46f4bc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d0dcf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x553d5d=_0x4451b5['commands']['get'](_0x1d0dcf);_0x1211ca['enableCommand'](_0x1d0dcf,()=>{const _0x193671=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection'])[0x0],_0x58e763=_0x193671['findAncestor']('table'),{column:_0x3dc3ce,row:_0x4f98f1}=_0x513826['getCellLocation'](_0x193671);let _0x335b0e=[];if('horizontally'==_0x553d5d['direction']){const _0x5eeabf=_0x513826['createTableWalker'](_0x58e763,{'startRow':_0x4f98f1,'endRow':_0x4f98f1,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x5eeabf)['map'](_0x39f571=>_0x39f571['cell']);}else{const _0x300d9c=_0x513826['createTableWalker'](_0x58e763,{'column':_0x3dc3ce,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x300d9c)['map'](_0x431389=>_0x431389['cell']);}_0x4451b5['model']['change'](_0x2d3507=>{_0x1211ca['markBlockFormat'](_0x2d3507['createRangeOn'](_0x193671),{'commandName':_0x1d0dcf,'commandParams':[]},_0x335b0e,_0x1d0dcf);});});}_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x4ccd14=>{if('formatBlock'!=_0x4ccd14['type']&&'formatInline'!=_0x4ccd14['type'])return;const {data:_0x5589f5}=_0x4ccd14;return _0x5589f5&&'mergeTableCells'==_0x5589f5['commandName']?{'type':'format','content':o(_0x39d395,'*Merge\x20cells*')}:void 0x0;}),_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x540eb4=>{if('formatBlock'!=_0x540eb4['type']&&'formatInline'!=_0x540eb4['type'])return;const {data:_0xf331f0}=_0x540eb4;return _0xf331f0?'splitTableCellVertically'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x419109=_0x22a6f9['_acceptFormatSuggestionCallbackFactory']();for(const _0x424459 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x424459,'accept',_0x419109);for(const _0x38dcc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38dcc6,'accept',_0x419109);_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1dfd55=>{_0x4451b5['model']['change'](_0x51b854=>{const _0x17ebee=Array['from'](_0xa8f89f['getRanges']())['map'](_0x5a7513=>_0x54c30a['fromRange'](_0x5a7513));_0x51b854['setSelection'](_0x1dfd55),_0x4451b5['commands']['get']('mergeTableCells')['refresh'](),_0x4451b5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x199a17=_0x17ebee['filter'](_0x5ca504=>'$graveyard'!=_0x5ca504['root']['rootName']);_0x199a17['length']>0x0&&_0x51b854['setSelection'](_0x199a17);for(const _0x224ed6 of _0x17ebee)_0x224ed6['detach']();});});for(const _0x50b39 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x165b97=_0x4451b5['commands']['get'](_0x50b39);_0x165b97['on']('set:isEnabled',(_0xa9b421,_0x8f0429,_0x3f7cad)=>{if(_0x3f7cad){const _0x59988f=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x588486=>_0x588486['is']('element','tableCell'));this['_areMergableCells'](_0x165b97['value'],_0x59988f)||(_0xa9b421['return']=!0x1,_0xa9b421['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2b3f5a=this['editor']['commands']['get']('mergeTableCells'),_0x292afb=this['editor']['plugins']['get']('TableUtils');if(!_0x2b3f5a['isEnabled'])return!0x1;const _0x279580=_0x292afb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1eaef9 of _0x279580)for(const _0x1ea32e of _0x279580)if(_0x1eaef9!=_0x1ea32e&&!this['_areMergableCells'](_0x1eaef9,_0x1ea32e))return!0x1;return!0x0;}['_areMergableCells'](_0x55b65f,_0x4a4942){const _0x333dd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6037b=this['editor']['model']['createRangeOn'](_0x55b65f),_0x2813d4=this['editor']['model']['createRangeOn'](_0x4a4942),_0x27a816=new Set(),_0x2694cb=new Set();for(const _0x576ffb of _0x333dd2['getSuggestions']())if(('insertion'==_0x576ffb['type']||'deletion'==_0x576ffb['type']||'mergeTableCells'==_0x576ffb['subType'])&&_0x576ffb['isInContent']){for(const _0x85ccb4 of _0x576ffb['getRanges']())_0x85ccb4['containsRange'](_0xa6037b,!0x0)&&_0x27a816['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']),_0x85ccb4['containsRange'](_0x2813d4,!0x0)&&_0x2694cb['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']);}if(_0x27a816['size']!=_0x2694cb['size'])return!0x1;for(const _0x4a71b8 of _0x27a816)if(!_0x2694cb['has'](_0x4a71b8))return!0x1;return!0x0;}}class At extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x218bed=this['editor'];if(!_0x218bed['plugins']['has']('TableEditing'))return;const _0x4f6a0f=_0x218bed['locale'],_0x20a036=_0x218bed['plugins']['get']('TrackChangesEditing');_0x20a036['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20a036['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20a036['registerBlockAttribute']('headingRows'),_0x20a036['registerBlockAttribute']('headingColumns'),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f6a0f,'FORMAT_HEADER_ROW')),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f6a0f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13094f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d172=this['editor']['plugins']['get']('TableUtils'),_0x1a3687=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3547e5({showActiveMarker:_0x3f13e0=!0x0,setDataAttribute:_0x4e5625=!0x0}={}){return(_0x19eee4,_0x4e9e28,_0x5dba64)=>{const {type:_0x5de45b,id:_0x453b11}=_0x13094f['_splitMarkerName'](_0x4e9e28['markerName']),_0x33b3c9=_0x13094f['getSuggestion'](_0x453b11),_0x52e3d1=_0x33b3c9['data'];if('formatBlock'!=_0x33b3c9['type']||!_0x52e3d1||'setTableColumnHeader'!=_0x52e3d1['commandName'])return;if(_0x4e9e28['item'])return void _0x19eee4['stop']();if(!_0x5dba64['consumable']['consume'](_0x4e9e28['markerRange'],_0x19eee4['name']))return;const _0x502585=_0x4e9e28['markerRange']['start']['nodeAfter'],_0x2c8306=_0x4e9e28['markerRange']['end']['nodeBefore'],_0xfbdb6a=_0x502585['parent']['parent'],{column:_0x257009}=_0x58d172['getCellLocation'](_0x502585),{column:_0x50f278}=_0x58d172['getCellLocation'](_0x2c8306);for(let _0x178c63=_0x257009;_0x178c63<=_0x50f278;_0x178c63++){const _0x2c95ef=_0x58d172['createTableWalker'](_0xfbdb6a,{'column':_0x178c63,'includeAllSlots':!0x1});for(const _0x248593 of _0x2c95ef){const _0x291de1=_0x248593['cell'],_0x3991c5=_0x5dba64['mapper']['toViewElement'](_0x291de1);_0x5dba64['writer']['addClass']('ck-suggestion-marker-'+_0x5de45b,_0x3991c5),_0x4e5625&&_0x5dba64['writer']['setAttribute']('data-suggestion',_0x453b11,_0x3991c5),_0x5dba64['mapper']['bindElementToMarker'](_0x3991c5,_0x4e9e28['markerName']),_0x3f13e0&&(_0x13094f['activeMarkers']['includes'](_0x4e9e28['markerName'])?_0x5dba64['writer']['addClass']('ck-suggestion-marker--active',_0x3991c5):_0x5dba64['writer']['removeClass']('ck-suggestion-marker--active',_0x3991c5));}}};}_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a3687),_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a3687),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3547e5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38364b,_0x1262fe,_0x2a87d6)=>{_0x2a87d6['options']['showSuggestionHighlights']&&_0x3547e5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38364b,_0x1262fe,_0x2a87d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30185a,_0x1a4f20,_0x3803e0)=>{const {type:_0x1a869e,id:_0x23f955}=_0x13094f['_splitMarkerName'](_0x1a4f20['markerName']),_0x3b1577=_0x13094f['getSuggestion'](_0x23f955),_0x2618c1=_0x3b1577['data'];if('formatBlock'!=_0x3b1577['type']||!_0x2618c1||'setTableColumnHeader'!=_0x2618c1['commandName'])return;const _0x322216=_0x3803e0['mapper']['markerNameToElements'](_0x1a4f20['markerName']);if(_0x322216){for(const _0x5c4fe6 of _0x322216)_0x3803e0['writer']['removeClass']('ck-suggestion-marker-'+_0x1a869e,_0x5c4fe6),_0x3803e0['writer']['removeClass']('ck-suggestion-marker--active',_0x5c4fe6),_0x3803e0['writer']['removeAttribute']('data-suggestion',_0x5c4fe6),_0x3803e0['mapper']['unbindElementFromMarkerName'](_0x5c4fe6,_0x1a4f20['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf7b11=this['editor'],_0x5601b6=_0xf7b11['locale'];function _0x4ef85e(_0x2a51fc){return{'type':'format','content':o(_0x5601b6,'*Format:*\x20%0',_0x2a51fc)};}_0xf7b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2faf8c=>{if('formatBlock'!=_0x2faf8c['type'])return;const {data:_0x1c62f6}=_0x2faf8c;if(_0x1c62f6){if('setTableRowHeader'==_0x1c62f6['commandName']){const _0x1c8834=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x1c8834?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c62f6['commandName']){const _0x3601d3=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x3601d3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x13f6a7=>[_0x13f6a7,null]));class It extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x165a73=this['editor'];if(!_0x165a73['plugins']['has']('TableClipboard'))return;const _0x399ddf=_0x165a73['plugins']['get']('TrackChangesEditing'),_0xf28c68=_0x165a73['plugins']['get']('TableUtils'),_0x4ca2e8=_0x165a73['plugins']['get'](jt),_0x1e2fb4=_0x165a73['plugins']['get']('TableClipboard');_0x4ca2e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x165a73['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x165a73['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59e39e=null;_0x165a73['model']['on']('insertContent',(_0x4be22a,_0x3d01b4)=>{const [_0x4d5a6b,_0x42e60d]=_0x3d01b4,_0x1707a0=_0x3d01b4[_0x3d01b4['length']-0x1];_0x1707a0&&_0x1707a0['forceDefaultExecution']||_0x399ddf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d4784,_0x221c11,_0x2234f,_0x427cfc,_0x522a49){if(_0x221c11&&!_0x221c11['is']('documentSelection'))return!0x1;const _0x952cdb=_0x522a49['getTableIfOnlyTableInContent'](_0x2d4784,_0x2234f);if(!_0x952cdb||!he(_0x952cdb,void 0x0,_0x427cfc))return!0x1;const _0x5418c2=_0x427cfc['getSelectionAffectedTableCells'](_0x2234f['document']['selection']);if(!_0x5418c2['length'])return!0x1;const _0x4f6df9=_0x5418c2[0x0]['findAncestor']('table'),_0x1a550a=_0x427cfc['getRowIndexes'](_0x5418c2),_0x5afbe1=_0x427cfc['getColumnIndexes'](_0x5418c2),_0x3de486={'startRow':_0x1a550a['first'],'endRow':_0x1a550a['last'],'startColumn':_0x5afbe1['first'],'endColumn':_0x5afbe1['last']};return 0x1==_0x5418c2['length']&&(_0x3de486['endRow']+=_0x427cfc['getRows'](_0x952cdb)-0x1,_0x3de486['endColumn']+=_0x427cfc['getColumns'](_0x952cdb)-0x1),he(_0x4f6df9,_0x3de486,_0x427cfc);}(_0x4d5a6b,_0x42e60d,_0x165a73['model'],_0xf28c68,_0x1e2fb4)&&(_0x4be22a['stop'](),_0x59e39e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x165a73['model']['change'](()=>{_0x165a73['model']['insertContent'](_0x3d01b4[0x0],_0x3d01b4[0x1],_0x3d01b4[0x2],{'forceDefaultExecution':!0x0});const _0x5d0e6d=_0x107e61(),{rowInsertionRanges:_0xc11aec,columnInsertionRanges:_0x487266,insertionRanges:_0x26db87,deletionRanges:_0x3b4add,cells:_0x388e00}=_0x59e39e;_0xc11aec['length']&&_0x399ddf['markMultiRangeInsertion'](_0xc11aec,'tablePasteRow',{'tablePasteChainId':_0x5d0e6d}),_0x487266['length']&&_0x399ddf['markMultiRangeInsertion'](_0x487266,'tablePasteColumn',{'tablePasteChainId':_0x5d0e6d}),_0x26db87['length']&&(_0x399ddf['markMultiRangeInsertion'](_0x26db87,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x26db87['forEach'](_0x17243d=>_0x17243d['detach']?.())),_0x3b4add['length']&&(_0x399ddf['markMultiRangeDeletion'](_0x3b4add,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x3b4add['forEach'](_0x398bfc=>_0x398bfc['detach']?.()));const _0x316fbb=_0x399ddf['markMultiRangeBlockFormat'](_0x388e00['map'](({element:_0x255d66})=>_0x255d66),{'formatGroupId':_0x107e61()},[],'tablePasteCell',{'tablePasteChainId':_0x5d0e6d});if(_0x316fbb){const _0x5c8dc5=_0x316fbb['getMarkers'](),_0x54fbaf=[];for(const {element:_0x1d0afb,attributes:_0x21c46a}of _0x388e00){if(!_0x21c46a)continue;const _0x42f9e2=_0x165a73['model']['createRangeOn'](_0x1d0afb),_0x458d23=_0x5c8dc5['find'](_0x3ae1d6=>_0x3ae1d6['getRange']()['isEqual'](_0x42f9e2));_0x458d23&&_0x54fbaf['push']([_0x458d23['name'],_0x21c46a]);}_0x54fbaf['length']&&_0x316fbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x54fbaf));}_0x59e39e=null;}));},{'priority':_0x2a5a1e['high']+0xa}),_0x165a73['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5afbb5,_0x52d02d)=>{const [_0x6a4f0a,_0xfb72ac,,_0x4df531]=_0x52d02d;if(!_0x59e39e)return;_0x5afbb5['stop']();const _0x3a9b61=_0x6a4f0a['cell'],_0x22232f=_0xfb72ac,_0x44b6e1=Pe(_0x3a9b61),_0x400fee=Pe(_0x22232f);_0x5afbb5['return']=_0x3a9b61;let _0x3c4b82=null,_0x436496=null;if(_0x400fee||_0x44b6e1){if(_0x44b6e1&&!_0x400fee){_0x4df531['remove'](_0x3a9b61['getChild'](0x0));for(const _0x3f2f0 of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x3f2f0,_0x3a9b61,'end');const _0x55f90f=_0x59e39e['rowInsertionIndexes']['includes'](_0x6a4f0a['row']),_0x2b47fa=_0x59e39e['columnInsertionIndexes']['includes'](_0x6a4f0a['column']);_0x55f90f||_0x2b47fa||(_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeIn'](_0x3a9b61)));}else _0x400fee&&!_0x44b6e1&&(_0x436496=_0x4df531['createRangeIn'](_0x3a9b61));}else{const _0x37cfb4=_0x4df531['createElement']('tableCellSuggestion'),_0xc6eb55=_0x4df531['createElement']('tableCellSuggestion');_0x4df531['wrap'](_0x4df531['createRangeIn'](_0x3a9b61),_0xc6eb55),_0x4df531['insert'](_0x37cfb4,_0x3a9b61,0x0);for(const _0x37817a of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x37817a,_0x37cfb4,'end');_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0x37cfb4)),_0x436496=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0xc6eb55));}const _0x1aa850=Array['from'](_0x22232f['getAttributes']())['filter'](([_0x4a615a])=>ge['includes'](_0x4a615a));_0x59e39e['cells']['push']({'element':_0x3a9b61,'attributes':_0x1aa850['length']?Object['fromEntries'](_0x1aa850):null}),_0x3c4b82&&_0x59e39e['insertionRanges']['push'](_0x3c4b82),_0x436496&&_0x59e39e['deletionRanges']['push'](_0x436496);},{'priority':'high'}),_0xf28c68['on']('insertColumns',(_0x14f388,_0x145513)=>{const [_0x244c4a,_0x281f74={}]=_0x145513;if(!_0x59e39e)return;const _0x813532=_0x281f74['at']||0x0,_0x5231df=_0x281f74['columns']||0x1;_0x59e39e['columnInsertionIndexes']=new Array(_0x5231df)['fill'](_0x813532)['map']((_0x4ebfd4,_0x57dfd1)=>_0x4ebfd4+_0x57dfd1);for(const {cell:_0x438c1b}of _0xf28c68['createTableWalker'](_0x244c4a,{'startColumn':_0x813532,'endColumn':_0x813532+_0x5231df-0x1}))_0x59e39e['columnInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x438c1b));},{'priority':'low'}),_0xf28c68['on']('insertRows',(_0x2e7094,_0x217689)=>{const [_0x4581fe,_0x1541ee={}]=_0x217689;if(!_0x59e39e)return;const _0x38bda7=_0x1541ee['at']||0x0,_0x2ca5a2=_0x1541ee['rows']||0x1;_0x59e39e['rowInsertionIndexes']=new Array(_0x2ca5a2)['fill'](_0x38bda7)['map']((_0x2bceb1,_0x4e5263)=>_0x2bceb1+_0x4e5263);for(const {cell:_0x3ee164}of _0xf28c68['createTableWalker'](_0x4581fe,{'startRow':_0x38bda7,'endRow':_0x38bda7+_0x2ca5a2-0x1}))_0x59e39e['rowInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x3ee164));},{'priority':'low'}),_0x399ddf['descriptionFactory']['registerDescriptionCallback'](_0x5c0b56=>{if(_0x5c0b56['subType']&&_0x5c0b56['subType']['startsWith']('tablePaste'))return _0x5c0b56['previous']?{}:{'type':'insertion','content':o(_0x165a73['locale'],'*Replace\x20table\x20cells*')};});const _0x58b2f9=()=>!0x1;for(const _0x1d31fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d31fb,'join',_0x58b2f9);_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x433d57,_0x268b2e,_0x51a327)=>{const _0x35515a=_0x433d57['map'](_0x2ee79d=>_0x2ee79d['getContainedElement']())['filter'](_0x2fc3d2=>_0x2fc3d2),_0x4bd94c=new Map(_0x35515a['map'](_0x2ecb0f=>[_0x2ecb0f,null]));if(_0x59e39e){for(const {element:_0x167557,attributes:_0x5e0ad5}of _0x59e39e['cells'])_0x5e0ad5&&_0x4bd94c['set'](_0x167557,_0x5e0ad5);}else{if(_0x51a327&&_0x51a327['markerAttributes'])for(const [_0x8e1bbe,_0x43788e]of Object['entries'](_0x51a327['markerAttributes'])){const _0x14b3dc=_0x165a73['model']['markers']['get'](_0x8e1bbe),_0x2185f2=_0x14b3dc?_0x14b3dc['getRange']()['getContainedElement']():null;_0x2185f2&&_0x4bd94c['set'](_0x2185f2,_0x43788e);}}_0x165a73['model']['change'](_0x1751ce=>{for(const [_0x3f7ffe,_0x3a84cd]of _0x4bd94c)_0x1751ce['setAttributes']({...Ce,..._0x3a84cd},_0x3f7ffe);});});const _0x2bd1b8=(_0x9fd842,_0x997f8f)=>{_0x399ddf['_suggestionFactory']['registerCustomCallback'](_0x9fd842,'tablePaste',_0x997f8f,(_0xe6652d,_0x5bf7d9,_0x446b90)=>{_0x165a73['model']['change'](_0x46a4c1=>{const _0x155c00=[];for(const _0x253709 of _0xe6652d){const _0x12444c=_0x253709['start']['nodeAfter'];_0x12444c['is']('element','tableCellSuggestion')&&_0x155c00['push'](_0x12444c);}_0x399ddf['_suggestionFactory']['getSuggestionCallback'](_0x9fd842,null,_0x997f8f)(_0xe6652d,_0x5bf7d9,_0x446b90);for(const _0x4eeb08 of _0x155c00)'$graveyard'!=_0x4eeb08['root']['rootName']&&_0x46a4c1['unwrap'](_0x4eeb08);});});};_0x2bd1b8('insertion','accept'),_0x2bd1b8('insertion','discard'),_0x2bd1b8('deletion','accept'),_0x2bd1b8('deletion','discard'),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x118e56=>{const _0x40c57=_0x118e56['map'](_0x154fa7=>_0x154fa7['getContainedElement']()),_0x56f0d1=_0x40c57[0x0]['findAncestor']('table'),{minRow:_0x56a8eb,maxRow:_0x40cdf9}=_0x4ca2e8['_getCoordsForCells'](_0x40c57);_0xf28c68['removeRows'](_0x56f0d1,{'at':_0x56a8eb,'rows':_0x40cdf9-_0x56a8eb+0x1});}),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fdb7e=>{const _0x3e6767=_0x3fdb7e['map'](_0x1430ae=>_0x1430ae['getContainedElement']()),_0x8372ae=_0x3e6767[0x0]['findAncestor']('table'),{minColumn:_0x3585a7,maxColumn:_0x4760e7}=_0x4ca2e8['_getCoordsForCells'](_0x3e6767);_0xf28c68['removeColumns'](_0x8372ae,{'at':_0x3585a7,'columns':_0x4760e7-_0x3585a7+0x1});});const _0x45c6fc=(_0x5efc37,_0x3ef72b)=>{if(!_0x3ef72b['subType']||!_0x3ef72b['subType']['startsWith']('tablePaste'))return;const _0x20a6f2=_0x3ef72b['attributes']['tablePasteChainId'],_0x1896f4=_0x399ddf['getSuggestions']()['filter'](_0x55a82d=>_0x55a82d['isInContent']&&_0x55a82d['attributes']&&_0x55a82d['attributes']['tablePasteChainId']==_0x20a6f2);_0x1896f4['length']&&_0x3ef72b['getAllAdjacentSuggestions']()['length']!=_0x1896f4['length']&&_0x1896f4['reduce']((_0x258072,_0xcd98e5)=>(_0x258072['next']=_0xcd98e5,_0xcd98e5['previous']=_0x258072,_0xcd98e5));};function _0x3cb355(_0xf9ace7,_0xb3e81a=!0x0){const {id:_0x30ab7e}=_0x399ddf['_splitMarkerName'](_0xf9ace7['markerName']),_0x318547=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cee11=_0x399ddf['activeMarkers']['includes'](_0xf9ace7['markerName']);return _0x5cee11&&_0x318547['push']('ck-suggestion-marker--active'),{'classes':_0x318547,'attributes':{'data-suggestion':_0x30ab7e},'priority':_0x5cee11&&_0xb3e81a?0xbc2:0xbb8};}_0x399ddf['on']('suggestionLoaded',_0x45c6fc,{'priority':'high'}),_0x399ddf['on']('suggestionUnloaded',_0x45c6fc,{'priority':'high'}),_0x165a73['model']['document']['registerPostFixer'](()=>{let _0x3d3256=!0x1;const _0x5e5ae9=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xad07c2,data:_0x1bdb9f}of _0x5e5ae9){const {group:_0x38c8f4,type:_0x3125ec,id:_0x3529d1}=_0x399ddf['_splitMarkerName'](_0xad07c2);if('suggestion'!=_0x38c8f4||'deletion'!=_0x3125ec||_0x1bdb9f['oldRange'])continue;if(!_0x399ddf['hasSuggestion'](_0x3529d1))continue;const _0x1e56c3=_0x399ddf['getSuggestion'](_0x3529d1)['getRanges'](),_0x152c65=_0x165a73['plugins']['get']('Users')['me'];for(const _0x2c7f7c of _0x399ddf['getSuggestions']()){if(!_0x2c7f7c['isInContent']||_0x2c7f7c['author']!=_0x152c65)continue;if('formatBlock'!=_0x2c7f7c['type']||'tablePasteCell'!=_0x2c7f7c['subType'])continue;if(_0x2c7f7c['getRanges']()['every'](_0x1e48da=>_0x1e56c3['some'](_0x1f9e6a=>_0x1f9e6a['containsRange'](_0x1e48da,!0x0)))){for(const _0x2b3b08 of _0x2c7f7c['getAllAdjacentSuggestions']())_0x2b3b08['isInContent']&&(_0x2b3b08['discard'](),_0x3d3256=!0x0);}}}return _0x3d3256;}),_0x165a73['model']['document']['registerPostFixer'](_0xebd1c=>{const _0x44892b=_0x165a73['commands']['get']('redo');if(!_0x44892b||!_0x44892b['_createdBatches']['has'](_0xebd1c['batch']))return!0x1;let _0x44b394=!0x1;const _0x22bf2d=_0x165a73['plugins']['get']('Users')['me'],_0x288dcc=_0x165a73['model']['document']['differ']['getChanges'](),_0x44643d=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47b042,data:_0x5863b1})=>{const {group:_0x742fd0,subType:_0x5bfd06,authorId:_0x2955c7}=_0x399ddf['_splitMarkerName'](_0x47b042);return'suggestion'==_0x742fd0&&'tablePaste'==_0x5bfd06&&_0x2955c7==_0x22bf2d['id']&&!_0x5863b1['oldRange'];});for(const _0x428ec2 of _0x288dcc){if('insert'!=_0x428ec2['type']||'tableCellSuggestion'!=_0x428ec2['name']||0x1!=_0x428ec2['length'])continue;const _0x329ec4=_0xebd1c['createRange'](_0x428ec2['position'],_0x428ec2['position']['getShiftedBy'](0x1));if(!_0x44643d['find'](({data:_0x46f730})=>_0x46f730['newRange']['isEqual'](_0x329ec4))){for(const {name:_0x3f9210,data:_0x205b25}of _0x44643d)if(_0x329ec4['containsRange'](_0x205b25['newRange'])){_0xebd1c['updateMarker'](_0x3f9210,{'range':_0x329ec4}),_0x44b394=!0x0;break;}}}return _0x44b394;}),_0x165a73['model']['document']['registerPostFixer'](_0x2e317f=>{let _0x5d6735=!0x1;const _0x164231=_0x165a73['plugins']['get']('Users')['me'],_0x21d7ca=_0x399ddf['getSuggestions']()['filter'](_0x1ff51a=>_0x1ff51a['isInContent']&&_0x1ff51a['author']==_0x164231),_0x264686=new Set(),_0x180316=new Set();for(const _0x34a8e7 of _0x21d7ca)if('tablePaste'==_0x34a8e7['subType'])for(const _0x5d9c10 of _0x34a8e7['getMarkers']()){const _0x38b056=_0x5d9c10['getRange']()['getContainedElement']();if(_0x38b056){if(_0x38b056['is']('element','tableCellSuggestion')&&Pe(_0x38b056)){_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x264686['add'](_0x38b056),_0x5d6735=!0x0;const _0x515e7a=_0x38b056['nextSibling'],_0x1e25d3=_0x38b056['previousSibling'],_0x29742a=_0x515e7a&&_0x515e7a['is']('element','tableCellSuggestion'),_0x59ba3a=_0x1e25d3&&_0x1e25d3['is']('element','tableCellSuggestion');_0x29742a&&!_0x264686['has'](_0x515e7a)&&_0x180316['add'](_0x515e7a),_0x59ba3a&&!_0x264686['has'](_0x1e25d3)&&_0x180316['add'](_0x1e25d3);}else _0x38b056['is']('element','paragraph')&&_0x38b056['isEmpty']&&(_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x5d6735=!0x0);}}else{if('tablePasteCell'==_0x34a8e7['subType']){if(!_0x34a8e7['attributes']||!_0x34a8e7['attributes']['tablePasteChainId'])continue;const _0x189751=_0x34a8e7['attributes']['markerAttributes'];if(_0x189751&&Object['keys'](_0x189751)['length'])continue;const _0x20504c=_0x34a8e7['attributes']['tablePasteChainId'];let _0x3491f2=!0x0,_0x4381ae=!0x0;for(const _0x14de44 of _0x21d7ca)if(_0x14de44['subType']&&_0x14de44['subType']['startsWith']('tablePaste')){if(!_0x14de44['attributes']['tablePasteChainId']){_0x4381ae=!0x1;break;}if(_0x14de44['id']!=_0x34a8e7['id']&&_0x14de44['attributes']['tablePasteChainId']==_0x20504c){_0x3491f2=!0x1;break;}}_0x4381ae&&_0x3491f2&&(_0x34a8e7['removeMarkers'](),_0x5d6735=!0x0);}}for(const _0xa028f8 of _0x264686)_0x2e317f['remove'](_0xa028f8);for(const _0x412cad of _0x180316)_0x2e317f['unwrap'](_0x412cad);return _0x5d6735;}),_0x165a73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b18d1,_0x251ae3)=>_0x3cb355(_0x2b18d1),'converterPriority':'high'}),_0x165a73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28769a,_0x417268)=>_0x417268['options']['showSuggestionHighlights']?_0x3cb355(_0x28769a,!0x1):null,'converterPriority':'high'});const _0x3a4e8b=_0x165a73['editing']['view'];this['listenTo'](_0x3a4e8b['document'],'clipboardOutput',(_0x13107e,_0x242798)=>{const _0x4383c3=[];for(const _0x34eacc of _0x3a4e8b['createRangeIn'](_0x242798['content'])['getItems']())_0x34eacc['is']('element','suggestion-td')&&_0x4383c3['push'](_0x34eacc);_0x3a4e8b['change'](_0x149e25=>{for(const _0x4dccf4 of _0x4383c3)_0x149e25['move'](_0x149e25['createRangeIn'](_0x4dccf4),_0x149e25['createPositionBefore'](_0x4dccf4)),_0x149e25['remove'](_0x4dccf4);});});}}function Pe(_0x373e85){if(_0x373e85['isEmpty'])return!0x0;const _0x38169c=_0x373e85['getChild'](0x0);return _0x38169c['is']('element','paragraph')&&_0x38169c['isEmpty'];}function he(_0x5e26fd,_0x3bb194={},_0x2eb673){for(const {isAnchor:_0x576b7e,cellHeight:_0x4d5e9c,cellWidth:_0x16a6c8}of _0x2eb673['createTableWalker'](_0x5e26fd,{'includeAllSlots':!0x0,..._0x3bb194}))if(!_0x576b7e||0x1!=_0x4d5e9c||0x1!=_0x16a6c8)return!0x1;return!0x0;}class vt extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2061ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x2061ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2061ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x464130,_0x4c4d12){const _0x1aee42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d26fc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x159341=_0x4c4d12['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ff44e=_0x1d26fc['getColumnGroupElement'](_0x159341);let _0x43c61b=_0x1ff44e?_0x1d26fc['getTableColumnsWidths'](_0x1ff44e):null,_0x432ff7=_0x159341['getAttribute']('tableWidth')||null;const _0x5da690=_0x4c4d12['tableWidth']||_0x432ff7,_0x141860=_0x4c4d12['columnWidths']||_0x43c61b,_0x5c37a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3eb43f of _0x1aee42['getSuggestions']()){const _0x3cc65d=_0x3eb43f['getContainedElement']();if('resizeTable'===_0x3eb43f['subType']&&_0x3cc65d===_0x159341){_0x3eb43f['author']!==_0x5c37a9&&_0x3eb43f['discard']();const _0x3e6c9b=_0x3eb43f['data']['commandParams'];_0x432ff7=_0x3e6c9b[0x0]['tableWidth'],_0x43c61b=_0x3e6c9b[0x0]['columnWidths'];break;}}_0x464130({'table':_0x159341,'tableWidth':_0x5da690,'columnWidths':_0x141860}),_0x1aee42['markBlockFormat'](_0x159341,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432ff7,'columnWidths':_0x43c61b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x7adbd7){if('formatBlock'!=_0x7adbd7['type']&&'formatInline'!=_0x7adbd7['type'])return;const {data:_0x2d4992}=_0x7adbd7;if(_0x2d4992&&'resizeTable'===_0x2d4992['formatGroupId']){const _0x4650af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4650af)};}}}class Ct extends _0xeaacfa{['afterInit'](){const _0x481ac1=this['editor'];_0x481ac1['plugins']['has']('Template')&&_0x481ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0xeaacfa{['afterInit'](){const _0x5701b2=this['editor'];if(!_0x5701b2['commands']['get']('insertTableOfContents'))return;_0x5701b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x20f029=_0x5701b2['plugins']['get']('TrackChangesEditing'),_0x361a70=_0x5701b2['locale'];_0x20f029['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42c9bb=>o(_0x361a70,'ELEMENT_TABLE_OF_CONTENTS',_0x42c9bb));}}class Dt extends _0xeaacfa{['afterInit'](){const _0x5f51ca=this['editor'];if(!_0x5f51ca['plugins']['has']('Title'))return;const _0x38efd6=_0x5f51ca['plugins']['get']('TrackChangesEditing');_0x38efd6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5f51ca['locale'],'ELEMENT_TITLE')),_0x5f51ca['model']['document']['registerPostFixer'](_0x2c36a2=>{let _0x5114cc=!0x1;const _0x580adc=Array['from'](_0x5f51ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6d2f53,data:_0x5e4a39}of _0x580adc){const {group:_0x2bdc6e}=_0x38efd6['_splitMarkerName'](_0x6d2f53);if('suggestion'!==_0x2bdc6e||!_0x5e4a39['newRange'])continue;const _0x47a1a5=_0x5e4a39['newRange'],_0x583b94=_0x47a1a5['end']['nodeBefore'];if(!_0x583b94||!_0x583b94['is']('element','title-content'))continue;if(!_0x47a1a5['start']['isTouching'](_0x47a1a5['end']))continue;const _0x27f22a=_0x5f51ca['model']['schema']['getNearestSelectionRange'](_0x47a1a5['end'],'forward');if(_0x27f22a&&_0x27f22a['isCollapsed']){const _0x23a9ca=_0x2c36a2['createRange'](_0x47a1a5['start'],_0x27f22a['start']);_0x23a9ca['isEqual'](_0x47a1a5)||(_0x2c36a2['updateMarker'](_0x6d2f53,{'range':_0x23a9ca}),_0x5114cc=!0x0);}_0x5114cc||(_0x2c36a2['removeMarker'](_0x6d2f53),_0x5114cc=!0x0);}return _0x5114cc;});}}class Nt extends _0xeaacfa{['afterInit'](){const _0x48d4fc=this['editor'],_0x1ba16e=_0x48d4fc['plugins']['get']('TrackChangesEditing');_0x48d4fc['plugins']['has']('UndoEditing')&&(_0x1ba16e['enableCommand']('undo'),_0x1ba16e['enableCommand']('redo'));}}class Mt extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4ee4bb=this['editor'];if(!_0x4ee4bb['plugins']['has']('TableCaptionEditing'))return;_0x4ee4bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xeaacfa{['tableProperties'];['tableCellProperties'];constructor(_0xc3ee3){super(_0xc3ee3),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 _0x3c185e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6e05f2 of this['tableProperties'])_0x3c185e['enableCommand'](_0x6e05f2,(_0x54ea20,_0x1c4418)=>{const _0x3b3616=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6e05f2,[_0x3b3616],this['tableProperties'],'tableProperties',_0x54ea20,_0x1c4418);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x37a69f,_0x2d182d)=>this['handleDiscardAction'](this['tableProperties'],_0x37a69f,_0x2d182d)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3dc8e1 of this['tableCellProperties'])_0x3c185e['enableCommand'](_0x3dc8e1,(_0x392bd6,_0x118a04)=>{const _0x373be4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3dc8e1,_0x373be4,this['tableCellProperties'],'tableCellProperties',_0x392bd6,_0x118a04);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4dfc9a,_0x46c86a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4dfc9a,_0x46c86a)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c185e['descriptionFactory']['registerDescriptionCallback'](_0x28e779=>this['handleSuggestionDescription'](_0x28e779));}['_handlePropertyChange'](_0x363ac0,_0x714cda,_0xed7629,_0x4814d6,_0xcd4f25,_0x4ddacb){const _0x46cd1b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ddacb['batch'],()=>{for(const _0xd13a99 of _0x714cda){if(this['_getSuggestion'](_0xd13a99,_0x4814d6))_0xcd4f25(_0x4ddacb);else{const _0x3ef50e={};for(const _0x114e86 of _0xed7629){const _0x412616=_0xd13a99['getAttribute'](_0x114e86);void 0x0!==_0x412616&&(_0x3ef50e[_0x114e86]=_0x412616);}_0xcd4f25(_0x4ddacb),_0x46cd1b['markBlockFormat'](_0xd13a99,{'commandParams':[_0x3ef50e]},[],_0x4814d6);}}});}['handleDiscardAction'](_0x41e940,_0x2c452f,_0x4b3eb0){const _0x55bc0f=_0x2c452f[0x0]['start']['nodeAfter'],_0x543c28=_0x4b3eb0['commandParams'][0x0];this['editor']['model']['change'](_0x33fbd1=>{for(const _0x4a17cf of _0x41e940)void 0x0!==_0x543c28[_0x4a17cf]?_0x33fbd1['setAttribute'](_0x4a17cf,_0x543c28[_0x4a17cf],_0x55bc0f):_0x33fbd1['removeAttribute'](_0x4a17cf,_0x55bc0f);});}['handleSuggestionDescription'](_0x11991c){if(_0x11991c['data'])switch(_0x11991c['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'](_0xa42539,_0x18e0a6){const _0x2dc689=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53b0ce of _0x2dc689['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a5152=_0x53b0ce['getContainedElement']();if(_0x53b0ce['subType']===_0x18e0a6&&_0x2a5152===_0xa42539)return _0x53b0ce;}return null;}}const m='$elementName';class p extends _0xeaacfa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x43f0c5,_0x5b0c8c,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3c36a4){function _0x530108(_0x94857){return _0x94857['map'](_0x46bebd=>String['fromCharCode'](_0x46bebd))['join']('');}super(_0x3c36a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x589360,_0x493b40,_0x169230,_0x576a44)=>{this['_model']['change'](()=>{for(const _0x3d4428 of[..._0x576a44,..._0x169230])this['_model']['markers']['has'](_0x3d4428)&&_0x3c36a4['editing']['reconvertMarker'](_0x3d4428);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3c36a4['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(),_0x3c36a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c36a4['config']['get']('trackChanges.trackFormatChanges'),_0x3c36a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c36a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3c36a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x530108([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530108([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x36]);}['init'](){const _0x4153d9=this['editor'],_0x2a6c08=(_0x9415b9,_0x22f22d)=>{if('attribute'!=_0x9415b9)return'ck-suggestion-marker-'+_0x9415b9;const _0x4732b4=_0x22f22d['split']('|')[0x0];return this['_isBlockAttribute'](_0x4732b4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4153d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f0451=>{const {id:_0x3a6108,type:_0x1be66f,subType:_0x9164be}=this['_splitMarkerName'](_0x4f0451['markerName']),_0x217f7c=['ck-suggestion-marker',_0x2a6c08(_0x1be66f,_0x9164be)];let _0x53c61d=0xbb8;return this['activeMarkers']['includes'](_0x4f0451['markerName'])&&(_0x217f7c['push']('ck-suggestion-marker--active'),_0x53c61d=0xbc2),'deletion'==_0x1be66f&&(_0x53c61d+=0x5),{'classes':_0x217f7c,'attributes':{'data-suggestion':_0x3a6108},'priority':_0x53c61d};}}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x170a5a=>{_0x170a5a['on']('addMarker:suggestion',(_0x3bad45,_0x4a0c0c,_0x5272b7)=>{if(!_0x5272b7['options']['showSuggestionHighlights'])return;const _0x1aa1f2=_0x4a0c0c['item'];if(!_0x1aa1f2)return;const _0x23b9df=_0x5272b7['mapper']['toViewElement'](_0x1aa1f2);_0x4153d9['model']['schema']['isObject'](_0x1aa1f2)&&_0x23b9df&&!_0x23b9df['getCustomProperty']('widget')&&_0x23b9df['is']('containerElement')&&_0x390659(_0x23b9df,_0x5272b7['writer']);},{'priority':'high'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c78bd,_0x3cdb7c)=>{if(!_0x3cdb7c['options']['showSuggestionHighlights'])return null;const {type:_0x140798,subType:_0x551a19}=this['_splitMarkerName'](_0x3c78bd['markerName']);return{'classes':['ck-suggestion-marker',_0x2a6c08(_0x140798,_0x551a19)],'priority':0xbb8};}});const _0x2146ab=({showActiveMarkers:_0x288fda=!0x0,isAttributeSuggestion:_0x439180=!0x1}={})=>(_0x5071c0,_0x4202f3,_0x2c36c9)=>{if(!_0x4202f3['item'])return;const {id:_0x35b25e}=this['_splitMarkerName'](_0x4202f3['markerName']);if(_0x439180){const _0x2b7904=this['_suggestions']['get'](_0x35b25e),_0x4c6498=this['_getAttributeKey'](_0x2b7904);if(!this['_isBlockAttribute'](_0x4c6498))return;}if(_0x4202f3['item']['is']('selection'))return void _0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);const _0xdd49fe=_0x2c36c9['mapper']['toViewElement'](_0x4202f3['item']);if(_0x4202f3['item']['is']('element')&&_0x4153d9['model']['schema']['isBlock'](_0x4202f3['item'])&&!_0xdd49fe['getCustomProperty']('addHighlight')){_0x2c36c9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xdd49fe),_0x2c36c9['writer']['setAttribute']('data-suggestion',_0x35b25e,_0xdd49fe),_0x2c36c9['mapper']['bindElementToMarker'](_0xdd49fe,_0x4202f3['markerName']),_0x288fda&&(this['activeMarkers']['includes'](_0x4202f3['markerName'])?_0x2c36c9['writer']['addClass']('ck-suggestion-marker--active',_0xdd49fe):_0x2c36c9['writer']['removeClass']('ck-suggestion-marker--active',_0xdd49fe));for(const _0x5e3b82 of _0x4153d9['model']['createRangeIn'](_0x4202f3['item'])['getItems']())_0x2c36c9['consumable']['consume'](_0x5e3b82,_0x5071c0['name']);_0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);}};_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x4a6a5a=>{_0x4a6a5a['on']('addMarker:suggestion:formatBlock',(_0x3a9127,_0x1f533c,_0x1d2045)=>{_0x1d2045['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1})(_0x3a9127,_0x1f533c,_0x1d2045);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x5c7162=>{_0x5c7162['on']('addMarker:suggestion:attribute',(_0x370c5c,_0x315c35,_0x56eb28)=>{_0x56eb28['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x370c5c,_0x315c35,_0x56eb28);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25b437,_0x38b03e)=>_0x38b03e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x25b437['substr'](0xb)}}),_0x4153d9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15e211,{writer:_0x5cf57d})=>{let _0x138326='suggestion:'+_0x15e211['getAttribute']('suggestion-type')+':'+_0x15e211['getAttribute']('id');return _0x15e211['getAttribute']('marker-count')&&(_0x138326+=':'+_0x15e211['getAttribute']('marker-count')),_0x5cf57d['createElement']('$marker',{'data-name':_0x138326});}}),_0x4153d9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1391ea=>{_0x1391ea['on']('addMarker:suggestion:formatBlock',_0x2146ab(),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x30499a=>{_0x30499a['on']('addMarker:suggestion:attribute',_0x2146ab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1a5943=>{_0x1a5943['on']('removeMarker:suggestion:formatBlock',(_0x59e57a,_0x2c6798,_0x1c094b)=>{const _0x338cad=_0x1c094b['mapper']['markerNameToElements'](_0x2c6798['markerName']);if(_0x338cad){for(const _0x2ad3db of _0x338cad)_0x2ad3db['getCustomProperty']('addHighlight')||(_0x1c094b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ad3db),_0x1c094b['writer']['removeAttribute']('data-suggestion',_0x2ad3db),_0x1c094b['mapper']['unbindElementFromMarkerName'](_0x2ad3db,_0x2c6798['markerName']));}},{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x3b1ef0=>{_0x3b1ef0['on']('removeMarker:suggestion:attribute',(_0x52d24a,_0x3031af,_0x446deb)=>{const _0xfa1dc5=_0x446deb['mapper']['markerNameToElements'](_0x3031af['markerName']);if(!_0xfa1dc5)return;const {id:_0x1cd119}=this['_splitMarkerName'](_0x3031af['markerName']),_0x2f84a7=this['_suggestions']['get'](_0x1cd119),_0x52ed8b=this['_getAttributeKey'](_0x2f84a7);if(this['_isBlockAttribute'](_0x52ed8b)){for(const _0x169038 of _0xfa1dc5)_0x169038['getCustomProperty']('addHighlight')||(_0x446deb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x169038),_0x446deb['writer']['removeAttribute']('data-suggestion',_0x169038),_0x446deb['mapper']['unbindElementFromMarkerName'](_0x169038,_0x3031af['markerName']));}},{'priority':'high'});}),_0x4153d9['model']['document']['registerPostFixer'](_0x53e135=>{let _0x40b6a4=!0x1;const _0x5aff5d=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']()),_0x4d3eb5=new Set();for(const {name:_0x13bd82,data:_0x35a969}of _0x5aff5d){const {group:_0x4603a7,type:_0x5e3ff7,subType:_0x432e64,id:_0x3683a7}=this['_splitMarkerName'](_0x13bd82);if('suggestion'!==_0x4603a7)continue;const _0x5c15bb=this['_suggestions']['get'](_0x3683a7);if(null!=_0x35a969['newRange']){'formatInline'==_0x5e3ff7&&(_0x40b6a4=_0x40b6a4||Et(_0x35a969['newRange'],_0x13bd82,_0x53e135,_0x4153d9['model']['schema']));const _0x15445a='attribute'==_0x5e3ff7&&this['_isBlockAttribute'](_0x432e64['split']('|')[0x0]);if(_0x35a969['newRange']['isCollapsed']||'$graveyard'==_0x35a969['newRange']['root']['rootName']||'formatBlock'==_0x5e3ff7&&!Ut(_0x35a969['newRange'])||_0x15445a&&!Ut(_0x35a969['newRange'])||'deletion'==_0x5e3ff7&&!(!Tt(_0x70365f=_0x35a969['newRange'])&&!function(_0x4f16de){return _0x4f16de['start']['parent']==_0x4f16de['end']['nodeBefore']&&_0x4f16de['start']['isAtEnd'];}(_0x70365f)))_0x53e135['removeMarker'](_0x13bd82),_0x40b6a4=!0x0;else{if(!_0x5c15bb||!_0x5c15bb['isInContent'])continue;_0x4d3eb5['add'](_0x5c15bb);}}}var _0x70365f;return _0x4d3eb5['size']>0x0&&(_0x40b6a4=!!this['_joinWithAdjacentSuggestions'](_0x4d3eb5)||_0x40b6a4),_0x40b6a4;}),_0x4153d9['model']['document']['registerPostFixer'](_0x5a7950=>{let _0x452dd2=!0x1;for(const _0x59da43 of _0x4153d9['model']['document']['differ']['getChanges']())if('insert'==_0x59da43['type'])for(const _0x40625e of this['_suggestions']['values']()){if(_0x40625e['isMultiRange']||!_0x40625e['isInContent'])continue;const _0x2d11c2='formatBlock'==_0x40625e['type'],_0x2b8ad9=this['_getAttributeKey'](_0x40625e),_0x498bd0=_0x2b8ad9&&this['_isBlockAttribute'](_0x2b8ad9);if(!_0x2d11c2&&!_0x498bd0)continue;const _0x53b16f=_0x40625e['getFirstRange']();if(_0x53b16f['start']['parent']!=_0x53b16f['end']['parent']&&!_0x53b16f['end']['isAtEnd']){const _0x46f639=_0x4153d9['model']['createPositionAt'](_0x53b16f['start']['nodeAfter'],'end'),_0xa0e1e4=_0x4153d9['model']['createRange'](_0x53b16f['start'],_0x46f639);_0x5a7950['updateMarker'](_0x40625e['getFirstMarker'](),{'range':_0xa0e1e4}),_0x452dd2=!0x0;}}return _0x452dd2;}),_0x4153d9['model']['document']['registerPostFixer'](_0xd168be=>this['_processAttributeChanges'](_0xd168be)),_0x4153d9['model']['document']['registerPostFixer'](_0x3bb2f3=>!_0x3bb2f3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bb2f3)),_0x4153d9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4153d9['model']['document']['on']('change:data',(_0x3b3ad1,_0x7bd6cd)=>{if(!_0x7bd6cd['isLocal']||_0x7bd6cd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x44d4c3=_0x4153d9['model']['document']['differ']['getChanges']();if(0x0==_0x44d4c3['length'])return;const _0x3f5f47=[],_0x186fb6=_0x44d4c3['filter'](_0x42ba6c=>'attribute'==_0x42ba6c['type']),_0x380154=_0x44d4c3['filter'](_0x5d6df9=>'insert'==_0x5d6df9['type']&&'$text'!=_0x5d6df9['name']);for(const _0x3f3b97 of _0x186fb6)this['_isRegisteredAttribute'](_0x3f3b97['attributeKey'])&&_0x3f5f47['push']({'key':_0x3f3b97['attributeKey'],'newValue':_0x3f3b97['attributeNewValue'],'oldValue':_0x3f3b97['attributeOldValue'],'range':Ot(_0x3f3b97['range'],_0x4153d9['model'])});for(const _0x5650fd of _0x380154){if('rename'!=_0x5650fd['action']&&'refresh'!=_0x5650fd['action'])continue;const _0xd21062=Gt(_0x5650fd['position']['nodeAfter'],_0x4153d9['model']),_0x44111a=_0x5650fd['before'];'rename'==_0x5650fd['action']&&_0x3f5f47['push']({'key':m,'newValue':_0x5650fd['name'],'oldValue':_0x44111a['name'],'range':_0xd21062});for(const [_0x2020a7,_0x1e221f]of _0x44111a['attributes']){if(!this['_isRegisteredAttribute'](_0x2020a7))continue;const _0x19c058=_0x5650fd['attributes']['get'](_0x2020a7);_0x1e221f!==_0x19c058&&_0x3f5f47['push']({'key':_0x2020a7,'newValue':_0x19c058,'oldValue':_0x1e221f,'range':_0xd21062});}for(const [_0x13046d,_0x3af118]of _0x5650fd['attributes'])this['_isRegisteredAttribute'](_0x13046d)&&(_0x44111a['attributes']['has'](_0x13046d)||_0x3f5f47['push']({'key':_0x13046d,'newValue':_0x3af118,'oldValue':null,'range':_0xd21062}));}0x0!=_0x3f5f47['length']&&_0x4153d9['model']['enqueueChange'](_0x7bd6cd,_0x2fa2fb=>{const _0x16ed8d=_0x107e61();for(const {range:_0x2a1d73,key:_0x4463f8,oldValue:_0x59786e,newValue:_0x495d02}of _0x3f5f47)this['markAttributeChange'](_0x2a1d73,_0x4463f8,_0x59786e,_0x495d02,{'groupId':_0x16ed8d});this['_reduceExistingSuggestions'](_0x2fa2fb,_0x3f5f47);});},{'priority':'lowest'}),_0x4153d9['model']['markers']['on']('update:suggestion',(_0x56596a,_0x4e7d95,_0x154a3d)=>{if(null==_0x154a3d){const {id:_0x41f394}=this['_splitMarkerName'](_0x4e7d95['name']),_0x428112=this['_suggestions']['get'](_0x41f394);_0x428112&&_0x428112['addMarkerName'](_0x4e7d95['name']);}}),_0x4153d9['model']['document']['on']('change:data',()=>{const _0x170142=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14f61b=>'suggestion'===this['_splitMarkerName'](_0x14f61b['name'])['group']);if(0x0===_0x170142['length'])return;_0x170142['sort']((_0x3eb67e,_0x3eb8cf)=>{const _0x18f86f=_0x3eb67e['data']['oldRange'],_0x8b1510=_0x3eb8cf['data']['oldRange'];return null===_0x18f86f&&null===_0x8b1510?0x0:null===_0x18f86f&&null!==_0x8b1510?-0x1:null!==_0x18f86f&&null===_0x8b1510?0x1:_0x18f86f['start']['isBefore'](_0x8b1510['start'])?-0x1:0x1;});const _0x340b39=new Set(),_0x5377f3=new Set();for(const {name:_0x63b0a,data:_0x460422}of _0x170142){const {id:_0x5b9533}=this['_splitMarkerName'](_0x63b0a);if(null===_0x460422['oldRange']){const _0x489513=this['_handleNewSuggestionMarker'](_0x63b0a);_0x5377f3['add'](_0x489513);}else{const _0x35b990=this['_suggestions']['get'](_0x5b9533);null!==_0x460422['newRange']||_0x35b990['isInContent']?(_0x340b39['add'](_0x35b990['head']),_0x5377f3['add'](_0x35b990)):this['_removeSuggestion'](_0x35b990);}}_0x5377f3['size']>0x0&&this['_refreshSuggestionsChain'](_0x5377f3);for(const _0x54ef71 of _0x340b39)this['fire']('suggestionChanged',_0x54ef71);}),_0x4153d9['model']['on']('applyOperation',(_0x48ffce,_0x4c614e)=>{const _0x33d70a=_0x4c614e[0x0];if(!this['_suggestions']['size'])return;if(!_0x33d70a['isDocumentOperation'])return;if(_0x33d70a['batch']['isUndo']||!_0x33d70a['batch']['isLocal'])return;let _0xa8446f,_0x56f277;switch(_0x33d70a['type']){case'insert':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['position']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;case'split':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['splitPosition']),_0x56f277=_0x4153d9['model']['createPositionAt'](_0x33d70a['moveTargetPosition']);break;case'move':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['targetPosition']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;default:return;}const _0x4e8762=_0x4153d9['model']['createRange'](_0xa8446f,_0x56f277);_0x4153d9['model']['change'](()=>{for(const {suggestion:_0x4c2f45,meta:_0x3ee93d}of this['_findSuggestions'](_0x4e8762)){if(_0x4c2f45['isMultiRange'])continue;if('formatInline'==_0x4c2f45['type'])continue;const _0x5531f4=this['_getAttributeKey'](_0x4c2f45);if(_0x5531f4&&this['_isBlockAttribute'](_0x5531f4)&&'split'!=_0x33d70a['type'])continue;const _0x1bd234=_0x4c2f45['data']&&_0x4c2f45['data']['multipleBlocks'];('formatBlock'!=_0x4c2f45['type']||'split'==_0x33d70a['type']&&!_0x1bd234)&&(_0x3ee93d['containsRangeInObject']||'insertion'==_0x4c2f45['type']&&_0x3ee93d['isOwn']||_0x4c2f45['getFirstRange']()['containsRange'](_0x4e8762)&&this['_breakSuggestionMarker'](_0x4c2f45,_0xa8446f,_0x56f277));}});},{'priority':'lowest'}),_0x4153d9['model']['on']('deleteContent',(_0x3b3889,_0x540009)=>{const _0x249e69=_0x540009[0x0],_0x2ea4f3=_0x540009[0x1];if(_0x2ea4f3&&_0x2ea4f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249e69['isCollapsed'])return;const _0x5b097e=_0x4153d9['model']['schema'],{start:_0x3c63ec,end:_0x5bbf8e}=_0x249e69['getFirstRange'](),_0x11dda3=_0x3c63ec['nodeAfter']&&_0x5b097e['isLimit'](_0x3c63ec['nodeAfter'])?null:_0x5b097e['getNearestSelectionRange'](_0x3c63ec,'forward'),_0x1577a6=_0x5bbf8e['nodeBefore']&&_0x5b097e['isLimit'](_0x5bbf8e['nodeBefore'])?null:_0x5b097e['getNearestSelectionRange'](_0x5bbf8e,'backward'),_0xc8703=_0x4153d9['model']['createRange'](_0x11dda3?_0x11dda3['start']:_0x3c63ec,_0x1577a6?_0x1577a6['end']:_0x5bbf8e);_0x4153d9['model']['change'](_0x4eff28=>{this['markDeletion'](_0xc8703);const _0x19b1fd=_0x4153d9['model']['schema']['getNearestSelectionRange'](_0xc8703['start']);_0x249e69['is']('documentSelection')?_0x4eff28['setSelection'](_0x19b1fd):_0x249e69['setTo'](_0x19b1fd);}),_0x3b3889['stop']();},{'priority':_0x2a5a1e['normal']+0xa}),_0x4153d9['model']['on']('insertContent',(_0x39a7c2,_0x4e5b63)=>{const _0x125e73=_0x4e5b63[_0x4e5b63['length']-0x1];_0x125e73&&_0x125e73['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4153d9['model']['change'](()=>{let _0x5501c8=_0x4153d9['model']['insertContent'](_0x4e5b63[0x0],_0x4e5b63[0x1],_0x4e5b63[0x2],{'forceDefaultExecution':!0x0});if(!_0x5501c8)return;_0x39a7c2['return']=_0x5501c8['clone']();const _0x4e0523=_0x5501c8['end']['nodeBefore'],_0x2154c8=_0x4153d9['model']['schema'];_0x4e0523&&_0x2154c8['isBlock'](_0x4e0523)&&!_0x2154c8['isObject'](_0x4e0523)&&(_0x5501c8=_0x4153d9['model']['createRange'](_0x5501c8['start'],_0x4153d9['model']['createPositionAt'](_0x4e0523,'end'))),this['markInsertion'](_0x5501c8);}),_0x39a7c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bdc7b=new $(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('acceptSuggestion',_0x4bdc7b),this['enableCommand']('acceptSuggestion');const _0x5a2d11=new B(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('discardSuggestion',_0x5a2d11),this['enableCommand']('discardSuggestion'),_0x4153d9['commands']['add']('acceptAllSuggestions',new x(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4153d9['commands']['add']('discardAllSuggestions',new x(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4153d9['commands']['add']('acceptSelectedSuggestions',new R(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4153d9['commands']['add']('discardSelectedSuggestions',new R(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x38d51c=_0x4153d9['plugins']['get']('CommentsRepository');this['listenTo'](_0x38d51c,'addComment',(_0x1961ed,{threadId:_0x571ef0})=>{const _0x103adb=this['_suggestions']['get'](_0x571ef0);_0x103adb&&_0x103adb['commentThread']&&0x1===_0x103adb['commentThread']['length']&&this['_updateSuggestionData'](_0x571ef0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x38d51c,'removeComment',(_0x6de1f5,{threadId:_0xc8bc18})=>{const _0x23061f=this['_suggestions']['get'](_0xc8bc18);_0x23061f&&_0x23061f['commentThread']&&!_0x23061f['commentThread']['length']&&this['_updateSuggestionData'](_0xc8bc18,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1a4c7b){if(this['_adapter'])throw new _0x4054be('track-changes-adapter-already-set',this);this['_adapter']=_0x1a4c7b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x38db09=!0x1,toJSON:_0x544fae=!0x1}={}){const _0x4db9c3=[];for(const _0x49121a of this['_suggestions']['values']())_0x38db09&&!_0x49121a['isInContent']||_0x4db9c3['push'](_0x49121a);return _0x544fae?_0x4db9c3['map'](_0x3e2783=>_0x3e2783['toJSON']()):_0x4db9c3;}['getSuggestion'](_0x355d49){const _0x5d38fa=this['_suggestions']['get'](_0x355d49);if(!_0x5d38fa)throw new _0x4054be('track-changes-suggestion-not-found',this);return _0x5d38fa;}['hasSuggestion'](_0x2390ee){return this['_suggestions']['has'](_0x2390ee);}['addSuggestionData'](_0x3e0b18){const {authorId:_0x50bd4e,id:_0x5a0407,attributes:_0xa0d239}=_0x3e0b18,[_0xc02176,_0x12d178]=_0x3e0b18['type']['split'](':'),_0x3bc3cb=this['_suggestions']['get'](_0x5a0407)||this['_createSuggestion'](_0xc02176,_0x12d178,_0x5a0407,_0x50bd4e,_0xa0d239);if(this['_addThreadToSuggestion'](_0x3bc3cb),this['_checkSuggestionCorrectness'](_0x3bc3cb,_0xc02176,_0x12d178||null,_0x50bd4e),_0x3bc3cb['createdAt']=_0x3e0b18['createdAt'],_0x3bc3cb['_isDataLoaded']=!0x0,_0xa0d239&&_0xa0d239['@external']){const _0x34debc=_0xa0d239['@external'],_0x1b1cfe=this['_getExternalAuthor'](_0x34debc['authorName']);_0x3bc3cb['authoredAt']=_0x34debc['createdAt'],_0x3bc3cb['author']=_0x1b1cfe,_0x3bc3cb['isExternal']=!0x0;}else _0x3bc3cb['authoredAt']=_0x3e0b18['createdAt'];switch(_0x3e0b18['data']&&(_0x3bc3cb['data']=_0x3e0b18['data']),_0x3e0b18['attributes']&&(_0x3bc3cb['attributes']=_0x3e0b18['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3bc3cb['_saved']=!0x0),this['_suggestionState']['get'](_0x3bc3cb)){case'notReady':this['_suggestionState']['set'](_0x3bc3cb,'dataReady');break;case'markerReady':_0x3bc3cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3bc3cb])),this['_refreshSuggestionsChain'](new Set([_0x3bc3cb])),this['_suggestionState']['set'](_0x3bc3cb,'ready'),this['fire']('suggestionLoaded',_0x3bc3cb)):this['_suggestionState']['set'](_0x3bc3cb,'removed');}return _0x3bc3cb;}['acceptSuggestion'](_0x102950){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f7909 of _0x102950['getAllAdjacentSuggestions']())_0x2f7909['accept']();});});}['discardSuggestion'](_0xe4f91){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3521 of _0xe4f91['getAllAdjacentSuggestions']())_0x1c3521['discard']();});});}['enableCommand'](_0x38c09c,_0x2d161f){const _0x134e23=this['editor']['commands']['get'](_0x38c09c);if(!_0x134e23)throw new _0x4054be('track-changes-command-not-found',this,{'commandName':_0x38c09c});if(this['_enabledCommands']['has'](_0x134e23))throw new _0x4054be('track-changes-enable-command-twice',this,{'commandName':_0x38c09c});this['_enabledCommands']['add'](_0x134e23),_0x2d161f&&_0x134e23['on']('execute',(_0x1a638b,_0x4871fb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4871fb['length']>0x0&&_0x4871fb[_0x4871fb['length']-0x1]&&_0x4871fb[_0x4871fb['length']-0x1]['forceDefaultExecution']?_0x4871fb['pop']():(_0x1a638b['return']=_0x2d161f((..._0x9026c7)=>_0x134e23['execute'](..._0x9026c7,{'forceDefaultExecution':!0x0}),..._0x4871fb),_0x1a638b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x336c72){let _0x4cc5bb,_0x4fea28;const _0x1d349f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cc5bb=_0x336c72();}catch(_0x4e1733){_0x4fea28=_0x4e1733;}return _0x1d349f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fea28&&_0x4054be['rethrowUnexpectedError'](_0x4fea28,this),_0x4cc5bb;}['markInsertion'](_0xc9ce21,_0x208198=null,_0x24a48e={}){if(_0xc9ce21['isCollapsed'])return null;const _0x18c767=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22fcf8,meta:_0x22c9eb}of this['_findSuggestions'](_0xc9ce21,'insertion'))if(_0x22c9eb['isOwn']){if(!_0x22c9eb['isNextTo']){if(_0x22c9eb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x22fcf8,_0x24a48e))continue;return _0x22fcf8;}if(Lt(_0x22fcf8,_0x24a48e))return _0x22fcf8;this['_breakSuggestionMarker'](_0x22fcf8,_0xc9ce21['start'],_0xc9ce21['end']);break;}if(_0x208198==_0x22fcf8['subType']&&Lt(_0x22fcf8,_0x24a48e)){const _0x14b940=_0x22fcf8['getFirstRange']();return _0x14b940['start']['isEqual'](_0xc9ce21['end'])?this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0xc9ce21['start'],_0x14b940['end'])):this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0x14b940['start'],_0xc9ce21['end'])),_0x22fcf8;}}const _0xeaf09=_0x107e61(),_0x32e88a=_0x18c767['id'],_0x48dd6c=_0x208198?'insertion:'+_0x208198:'insertion',_0x4f9854=this['_setSuggestionData']({'id':_0xeaf09,'type':_0x48dd6c,'createdAt':new Date(),'authorId':_0x32e88a,'attributes':_0x24a48e});return this['_addSuggestionMarker'](_0x48dd6c,_0xeaf09,_0x32e88a,_0xc9ce21),_0x4f9854;}['markMultiRangeInsertion'](_0x7e4492,_0x1f74ff='multi',_0x1a2a93={}){const _0x5dfa76=this['editor']['plugins']['get']('Users')['me'],_0x4597b3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1f74ff,'join');for(const _0x19be0a of this['getSuggestions']())if(_0x19be0a['author']['id']==_0x5dfa76['id']&&'insertion'==_0x19be0a['type']&&_0x19be0a['subType']==_0x1f74ff&&Lt(_0x19be0a,_0x1a2a93)&&(_0x4597b3(_0x19be0a['getRanges'](),_0x7e4492)||_0x4597b3(_0x7e4492,_0x19be0a['getRanges']()))){for(const _0x36ec9d of _0x7e4492)_0x19be0a['addRange'](_0x36ec9d);return _0x19be0a;}for(const {suggestion:_0x20cd6e,meta:_0x591762}of this['_findSuggestions'](_0x7e4492,'insertion')){if(!_0x591762['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x591762['containsRangeInObject'])continue;if(!Lt(_0x20cd6e,_0x1a2a93))continue;let _0x4ac559=!0x0;for(const _0x521894 of _0x20cd6e['getRanges']())for(const _0xa3123c of _0x7e4492)if(!_0x521894['containsRange'](_0xa3123c)){_0x4ac559=!0x1;break;}if(_0x4ac559)return _0x20cd6e;}const _0x234e5a=_0x107e61(),_0x377612=_0x5dfa76['id'],_0x3e73f0='insertion:'+_0x1f74ff,_0x354c79=this['_setSuggestionData']({'id':_0x234e5a,'type':_0x3e73f0,'createdAt':new Date(),'authorId':_0x377612,'attributes':_0x1a2a93});for(const _0x51cd57 of _0x7e4492)this['_addSuggestionMarker'](_0x3e73f0,_0x234e5a,_0x377612,_0x51cd57,u['getMultiRangeId']());return _0x354c79;}['markInlineFormat'](_0x521612,_0x51f27c,_0x1d983a=null,_0x3a69b0={}){if(_0x1d983a=_0x1d983a||Vt(_0x51f27c),_0x521612['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x37bc85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');return this['forceDefaultExecution'](()=>_0x37bc85([_0x521612],_0x51f27c,_0x3a69b0)),null;}const _0x5b40cf=this['editor']['plugins']['get']('Users')['me'],_0x2d36ae=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x198789,meta:_0x3a0028}of this['_findSuggestions'](_0x521612,'insertion'))_0x3a0028['isOwn']&&!_0x3a0028['isInsideObject']&&_0x2d36ae['push'](..._0x198789['getRanges']());}const _0xc024f8=function(_0x35d7a5,_0x4822a7){const _0x4d4add=[];for(const _0x3c2cf6 of _0x4822a7){const _0x15b048=_0x35d7a5['getIntersection'](_0x3c2cf6);_0x15b048&&_0x4d4add['push'](_0x15b048);}return _0x4d4add;}(_0x521612,_0x2d36ae),_0x654a91=function(_0x254a54,_0x48f734){const _0x5c31d8=[_0x254a54];for(const _0x16752a of _0x48f734){let _0x19eb2f=0x0;for(;_0x19eb2f<_0x5c31d8['length'];){const _0x51ea76=_0x5c31d8[_0x19eb2f]['getDifference'](_0x16752a);_0x5c31d8['splice'](_0x19eb2f,0x1,..._0x51ea76),_0x19eb2f+=_0x51ea76['length'];}}return _0x5c31d8;}(_0x521612,_0x2d36ae);_0xc024f8['length']&&this['_model']['change'](()=>{for(const _0x12c491 of _0xc024f8){const _0x311940=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');this['forceDefaultExecution'](()=>_0x311940([_0x12c491],_0x51f27c,_0x3a69b0));}});for(const _0x2afada of _0x654a91){let _0xc597dc=null,_0x50eab4=_0x2afada['start'],_0x1d62d6=_0x2afada['end'];for(const {suggestion:_0x15c58a,meta:_0x1a7b67}of this['_findSuggestions'](_0x2afada,'formatInline')){if(!_0x1a7b67['isOwn'])continue;if(_0x15c58a['subType']!=_0x1d983a)continue;if(!Lt(_0x15c58a,_0x3a69b0))continue;const _0x1e5161=_0x15c58a['getFirstRange']();if(_0x1e5161['containsRange'](_0x2afada,!0x0))return null;_0x50eab4=_0x50eab4['isBefore'](_0x1e5161['start'])?_0x50eab4:_0x1e5161['start'],_0x1d62d6=_0x1d62d6['isAfter'](_0x1e5161['end'])?_0x1d62d6:_0x1e5161['end'],_0xc597dc?_0x1e5161['start']['isBefore'](_0xc597dc['getFirstRange']()['start'])?(_0xc597dc['removeMarkers'](),_0xc597dc=_0x15c58a):_0x15c58a['removeMarkers']():_0xc597dc=_0x15c58a;}const _0x3d5561=this['_model']['createRange'](_0x50eab4,_0x1d62d6);if(_0xc597dc)this['_setSuggestionRange'](_0xc597dc,_0x3d5561);else{const _0x53de28=_0x107e61(),_0x22f1d1=_0x5b40cf['id'];this['_setSuggestionData']({'id':_0x53de28,'type':'formatInline:'+_0x1d983a,'data':_0x51f27c,'createdAt':new Date(),'authorId':_0x22f1d1,'attributes':_0x3a69b0}),this['_addSuggestionMarker']('formatInline:'+_0x1d983a,_0x53de28,_0x22f1d1,_0x3d5561);}}return null;}['markBlockFormat'](_0x28e747,_0x104d16,_0x47423f=[],_0x4ddd46=null,_0x40c560={}){_0x104d16['formatGroupId']||(_0x104d16['formatGroupId']=_0x104d16['commandName']),_0x104d16['multipleBlocks']=_0x28e747['is']('range'),_0x4ddd46=_0x4ddd46||Vt(_0x104d16);const _0x35748f=_0x47423f['map'](_0x1d3b6=>Gt(_0x1d3b6,this['_model'])),_0x4f3746=_0x28e747['is']('range')?_0x28e747:Gt(_0x28e747,this['_model']);if('never'===this['_trackFormatChanges']){const _0xca87bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0xca87bf([_0x4f3746],_0x104d16,_0x40c560)),null;}_0x35748f['push'](_0x4f3746);let _0x30813c=!0x0;for(const _0x51104d of _0x35748f)if(!this['_rangeIsInLocalUserInsertion'](_0x51104d)){_0x30813c=!0x1;break;}if(_0x30813c&&'always'!==this['_trackFormatChanges']){const _0x42540a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0x42540a([_0x4f3746],_0x104d16,_0x40c560)),null;}let _0xada77a=null,_0x16dc6b=_0x4f3746['start'],_0xfd3630=_0x4f3746['end'];for(const {suggestion:_0x5482c3,meta:_0xd10b40}of this['_findSuggestions'](_0x4f3746,'formatBlock')){if(!_0xd10b40['isOwn'])continue;if(_0xd10b40['isNextTo']||_0xd10b40['containsRangeInObject']||_0xd10b40['isInsideObject'])continue;if(_0x5482c3['data']['formatGroupId']!=_0x104d16['formatGroupId'])continue;if(!Lt(_0x5482c3,_0x40c560))continue;const _0x307b88=_0x5482c3['getFirstRange']();if(_0x5482c3['subType']==_0x4ddd46){if(_0x307b88['containsRange'](_0x4f3746,!0x0))return null;_0x16dc6b=_0x16dc6b['isBefore'](_0x307b88['start'])?_0x16dc6b:_0x307b88['start'],_0xfd3630=_0xfd3630['isAfter'](_0x307b88['end'])?_0xfd3630:_0x307b88['end'],_0xada77a?_0x307b88['start']['isBefore'](_0xada77a['getFirstRange']()['start'])?(_0xada77a['removeMarkers'](),_0xada77a=_0x5482c3):_0x5482c3['removeMarkers']():_0xada77a=_0x5482c3;}else{const _0x34d29b=_0x4f3746['getIntersection'](_0x307b88);this['_cutOutSuggestionMarker'](_0x5482c3,_0x34d29b);}}const _0x31c804=this['editor']['plugins']['get']('Users')['me'],_0x52b8fc=_0x107e61(),_0x364d13=_0x31c804['id'];if(_0xada77a)return this['_setSuggestionRange'](_0xada77a,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0xada77a;{const _0x1aa153=this['_setSuggestionData']({'id':_0x52b8fc,'type':'formatBlock:'+_0x4ddd46,'data':_0x104d16,'createdAt':new Date(),'authorId':_0x364d13,'attributes':_0x40c560});return this['_addSuggestionMarker']('formatBlock:'+_0x4ddd46,_0x52b8fc,_0x364d13,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0x1aa153;}}['markMultiRangeBlockFormat'](_0x5032e9,_0x4a876a,_0x2b66a4=[],_0x4132f4=null,_0x99e183={}){_0x4a876a['formatGroupId']||(_0x4a876a['formatGroupId']=_0x4a876a['commandName']);const _0x3deab4=_0x5032e9[0x0];_0x4a876a['multipleBlocks']=_0x3deab4['is']('range'),_0x4132f4=_0x4132f4||Vt(_0x4a876a);const _0x1d54bc=_0x2b66a4['map'](_0x75c839=>Gt(_0x75c839,this['_model'])),_0x43fc73=_0x3deab4['is']('range')?_0x5032e9:_0x5032e9['map'](_0x5988dc=>Gt(_0x5988dc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x76df6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x76df6f(_0x43fc73,_0x4a876a,_0x99e183)),null;}_0x1d54bc['push'](..._0x43fc73);let _0x1c68b8=!0x0;for(const _0x34784b of _0x1d54bc)if(!this['_rangeIsInLocalUserInsertion'](_0x34784b)){_0x1c68b8=!0x1;break;}if(_0x1c68b8&&'always'!==this['_trackFormatChanges']){const _0x4fd655=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x4fd655(_0x43fc73,_0x4a876a,_0x99e183)),null;}const _0x558cbf=this['editor']['plugins']['get']('Users')['me'];for(const _0x168cc7 of this['getSuggestions']()){if(_0x168cc7['author']['id']!=_0x558cbf['id'])continue;if('formatBlock'!=_0x168cc7['type']||_0x168cc7['data']['formatGroupId']!=_0x4a876a['formatGroupId'])continue;if(!Lt(_0x168cc7,_0x99e183))continue;const _0x845506=_0x168cc7['subType']==_0x4132f4;for(let _0x14ed65=0x0;_0x14ed65<_0x43fc73['length'];_0x14ed65++){const _0x5a82fe=_0x43fc73[_0x14ed65];for(const _0x30bc4f of _0x168cc7['getMarkers']()){const _0x35a075=_0x30bc4f['getRange']();if(_0x5a82fe['isEqual'](_0x35a075)){_0x845506?(_0x43fc73['splice'](_0x14ed65,0x1),_0x14ed65--):_0x168cc7['removeMarker'](_0x30bc4f['name']);break;}}}}if(0x0==_0x43fc73['length'])return null;const _0x349106=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'join');for(const _0x78d84d of this['getSuggestions']())if(_0x78d84d['author']['id']==_0x558cbf['id']&&'formatBlock'==_0x78d84d['type']&&_0x78d84d['data']['formatGroupId']==_0x4a876a['formatGroupId']&&_0x78d84d['subType']==_0x4132f4&&Lt(_0x78d84d,_0x99e183)&&(_0x349106(_0x78d84d['getRanges'](),_0x43fc73)||_0x349106(_0x43fc73,_0x78d84d['getRanges']()))){for(const _0x3d5879 of _0x43fc73)_0x78d84d['addRange'](_0x3d5879);return _0x78d84d;}const _0x2edb77=_0x107e61(),_0x3bdab7=_0x558cbf['id'],_0x459a8f='formatBlock:'+_0x4132f4,_0x3c7118=this['_setSuggestionData']({'id':_0x2edb77,'type':_0x459a8f,'data':_0x4a876a,'createdAt':new Date(),'authorId':_0x3bdab7,'attributes':_0x99e183});for(const _0x4cdd46 of _0x43fc73)this['_addSuggestionMarker'](_0x459a8f,_0x2edb77,_0x3bdab7,_0x4cdd46,u['getMultiRangeId']());return _0x3c7118;}['markDeletion'](_0x98772f,_0x3dec22=null,_0x9f5953={}){if(_0x98772f['isCollapsed'])return null;const _0x4e3ff7=this['editor']['plugins']['get']('Users')['me'],_0x46d1bd=new _0x54c30a(_0x98772f['start'],_0x98772f['end']);for(const {suggestion:_0x19241a,meta:_0xbccd95}of this['_findSuggestions'](_0x46d1bd,'insertion'))if(_0xbccd95['isOwn']&&!_0xbccd95['isNextTo']){if(_0x19241a['isMultiRange']){const _0x5cf934=_0x19241a['getRanges']()['filter'](_0x271232=>'$graveyard'!=_0x271232['root']['rootName']);_0x5cf934['every'](_0x2de2bf=>_0x46d1bd['containsRange'](_0x2de2bf,!0x0))&&_0x19241a['discard']();if(_0x5cf934['some'](_0xdf9d4d=>_0xdf9d4d['containsRange'](_0x46d1bd,!0x0))){const _0x1f9cb3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dec22,'accept');return this['forceDefaultExecution'](()=>_0x1f9cb3([_0x46d1bd],null,_0x9f5953)),null;}}else{const _0x2aac19=_0x46d1bd['getIntersection'](_0x19241a['getFirstRange']());null!==_0x2aac19&&_0x19241a['_onDiscard']([_0x2aac19],null,_0x9f5953);}}if(_0x46d1bd['detach'](),_0x46d1bd['isCollapsed']||'$graveyard'==_0x46d1bd['root']['rootName'])return null;let _0x3f2451=null,_0x2f4704=_0x46d1bd['start'],_0x20cc51=_0x46d1bd['end'];const _0x2af7fe=this['_findSuggestions'](_0x46d1bd,'deletion');for(const {suggestion:_0x59b036,meta:_0x1f78bb}of _0x2af7fe){const _0x4669e1=this['_model']['createRange'](_0x2f4704,_0x20cc51);if(_0x1f78bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f78bb['containsRangeInObject']&&!_0x1f78bb['isInsideObject'])){if(_0x59b036['isMultiRange']){if(!Lt(_0x59b036,_0x9f5953))continue;let _0x17dd39=!0x0;for(const _0x3268a9 of _0x59b036['getRanges']()){if(_0x3268a9['containsRange'](_0x4669e1,!0x0))return _0x59b036;_0x4669e1['containsRange'](_0x3268a9)||(_0x17dd39=!0x1);}_0x17dd39&&_0x59b036['discard']();}else{const _0x374b0c=_0x59b036['getFirstRange']();if(_0x374b0c['containsRange'](_0x4669e1,!0x0))return _0x59b036;if(!Lt(_0x59b036,_0x9f5953)){_0x4669e1['containsRange'](_0x374b0c)?_0x59b036['removeMarkers']():_0x374b0c['containsPosition'](_0x2f4704)?_0x2f4704=_0x374b0c['end']:_0x374b0c['containsPosition'](_0x20cc51)&&(_0x20cc51=_0x374b0c['start']);continue;}_0x2f4704=_0x2f4704['isBefore'](_0x374b0c['start'])?_0x2f4704:_0x374b0c['start'],_0x20cc51=_0x20cc51['isAfter'](_0x374b0c['end'])?_0x20cc51:_0x374b0c['end'],_0x9f5953=Object['assign']({},_0x59b036['attributes']),_0x3f2451?_0x374b0c['start']['isBefore'](_0x3f2451['getFirstRange']()['start'])?(_0x3f2451['removeMarkers'](),_0x3f2451=_0x59b036):_0x59b036['removeMarkers']():_0x3f2451=_0x59b036;}}}if(_0x3f2451)return this['_setSuggestionRange'](_0x3f2451,this['_model']['createRange'](_0x2f4704,_0x20cc51)),_0x3f2451;{const _0x2c70bf=_0x107e61(),_0x31c4ad=this['_model']['createRange'](_0x2f4704,_0x20cc51),_0x19e10b=_0x4e3ff7['id'],_0x35bef7=_0x3dec22?'deletion:'+_0x3dec22:'deletion',_0x479025=this['_setSuggestionData']({'id':_0x2c70bf,'type':_0x35bef7,'createdAt':new Date(),'authorId':_0x19e10b,'attributes':_0x9f5953});return this['_addSuggestionMarker'](_0x35bef7,_0x2c70bf,_0x19e10b,_0x31c4ad),_0x479025;}}['markMultiRangeDeletion'](_0x5ba95a,_0x193769='multi',_0x2e0bb8={}){const _0x827c58=this['editor']['plugins']['get']('Users')['me'],_0xa1a77a=_0x5ba95a['map'](_0xb7bf05=>new _0x54c30a(_0xb7bf05['start'],_0xb7bf05['end'])),_0x4e6779=new Set();for(const {suggestion:_0xc2ea74,meta:_0x36a0fe}of this['_findSuggestions'](_0xa1a77a,'insertion'))_0x36a0fe['isOwn']&&!_0x36a0fe['isNextTo']&&_0x4e6779['add'](_0xc2ea74);for(const _0xd5309e of _0x4e6779)if(_0xd5309e['isMultiRange']){const _0xb1fbd7=_0xd5309e['getRanges']();(!_0xd5309e['attributes']||!_0xd5309e['attributes']['skipNestingCheck'])&&(_0xb1fbd7['every'](_0x21e287=>_0xa1a77a['some'](_0x599f6c=>_0x599f6c['containsRange'](_0x21e287,!0x0)))&&_0xd5309e['discard']());if(_0xa1a77a['every'](_0x24cb9f=>_0xb1fbd7['some'](_0x453de5=>_0x453de5['containsRange'](_0x24cb9f,!0x0)))){const _0x299895=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x299895(_0x5ba95a,null,_0x2e0bb8)),null;}}else{const _0x4a5570=_0xd5309e['getFirstRange']();_0xa1a77a['some'](_0x1f77f8=>_0x1f77f8['containsRange'](_0x4a5570,!0x0))&&_0xd5309e['discard']();if(_0xa1a77a['every'](_0x11b2ad=>_0x4a5570['containsRange'](_0x11b2ad,!0x0))){const _0x4c826e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x4c826e(_0xa1a77a,null,_0x2e0bb8)),null;}}const _0x373256=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'join');let _0x2d8b67=null;for(const _0x2b7578 of this['getSuggestions']())if(_0x2b7578['author']['id']==_0x827c58['id']&&_0x2b7578['isInContent']&&'deletion'==_0x2b7578['type']&&_0x2b7578['subType']==_0x193769&&Lt(_0x2b7578,_0x2e0bb8)&&(_0x373256(_0x2b7578['getRanges'](),_0xa1a77a)||_0x373256(_0xa1a77a,_0x2b7578['getRanges']()))){if(_0x2d8b67){if(_0x2b7578['commentThread']&&_0x2b7578['commentThread']['length'])continue;for(const _0x2fa30d of _0x2b7578['getRanges']())_0x2d8b67['isIntersectingWithRange'](_0x2fa30d)||_0x2d8b67['addRange'](_0x2fa30d);_0x2b7578['removeMarkers']();}else{_0x2d8b67=_0x2b7578;for(const _0x48648f of _0xa1a77a)_0x2b7578['isIntersectingWithRange'](_0x48648f)||_0x2b7578['addRange'](_0x48648f);}}if(_0x2d8b67)return _0x2d8b67;_0x4e6779['clear']();for(const {suggestion:_0x50ff59,meta:_0x1a4652}of this['_findSuggestions'](_0xa1a77a,'deletion'))_0x1a4652['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a4652['containsRangeInObject']&&!_0x1a4652['isInsideObject'])&&Lt(_0x50ff59,_0x2e0bb8)&&_0x4e6779['add'](_0x50ff59);for(const _0x3e7a37 of _0x4e6779){const _0x5e1831=_0x3e7a37['getRanges']();if(!_0x2e0bb8||!_0x2e0bb8['skipNestingCheck']){if(_0xa1a77a['every'](_0x136fb3=>_0x5e1831['some'](_0x54055b=>_0x54055b['containsRange'](_0x136fb3,!0x0))))return _0x3e7a37;}(!_0x3e7a37['attributes']||!_0x3e7a37['attributes']['skipNestingCheck'])&&(_0x5e1831['every'](_0x384e62=>_0xa1a77a['some'](_0x10c775=>_0x10c775['containsRange'](_0x384e62,!0x0)))&&_0x3e7a37['discard']());}const _0x31b37e=_0x107e61(),_0x1186ae=_0x827c58['id'],_0x2062fc='deletion:'+_0x193769,_0x1a06aa=this['_setSuggestionData']({'id':_0x31b37e,'type':_0x2062fc,'createdAt':new Date(),'authorId':_0x1186ae,'attributes':_0x2e0bb8});for(const _0x3218b0 of _0xa1a77a)_0x3218b0['detach'](),_0x3218b0['isCollapsed']||'$graveyard'==_0x3218b0['root']['rootName']||this['_addSuggestionMarker'](_0x2062fc,_0x31b37e,_0x1186ae,_0x3218b0,u['getMultiRangeId']());return _0x1a06aa;}['markAttributeChange'](_0x4e9d3e,_0x1cb9ea,_0x58ef8c,_0x2b78e9,_0x171de0){if(_0x4e9d3e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a3ece=this['editor']['plugins']['get']('Users')['me']['id'],_0x1120da=Array['from'](this['_suggestions']['values']())['filter'](_0x3a0d9=>'attribute'==_0x3a0d9['type']&&_0x3a0d9['data']['key']==_0x1cb9ea&&_0x3a0d9['isIntersectingWithRange'](_0x4e9d3e));if('default'===this['_trackFormatChanges']){const _0x3df32b=this['_findSuggestions'](_0x4e9d3e,'insertion')['filter'](({meta:_0x17f430})=>_0x17f430['isOwn']&&!_0x17f430['isInsideObject']&&!_0x17f430['isNextTo'])['map'](({suggestion:_0x251db6})=>_0x251db6);_0x1120da['unshift'](..._0x3df32b);}const _0x24ac48=new Map([[_0x4e9d3e,_0x58ef8c]]);for(const _0xf9e6e2 of _0x1120da){const _0x2c5679='attribute'==_0xf9e6e2['type']?_0xf9e6e2['data']['oldValue']:void 0x0,_0x306d76=_0xf9e6e2['getFirstRange'](),_0x32411c=Array['from'](_0x24ac48['keys']())['find'](_0x2575e4=>_0x2575e4['isIntersecting'](_0x306d76));if(!_0x32411c)continue;const _0xcd9deb=_0x32411c['getDifference'](_0x306d76);this['_isBlockAttribute'](_0x1cb9ea)&&'insertion'==_0xf9e6e2['type']&&0x0!=_0xcd9deb['length']||(_0x24ac48['delete'](_0x32411c),_0xcd9deb['forEach'](_0x47304a=>{_0x24ac48['set'](_0x47304a,_0x58ef8c);}),'insertion'!=_0xf9e6e2['type']&&_0x2c5679!=_0x2b78e9&&_0x24ac48['set'](_0x32411c['getIntersection'](_0x306d76),_0x2c5679));}const _0x51a71d=[];for(const [_0x36d6ad,_0x281cd9]of _0x24ac48){const _0x50df02=_0x107e61(),_0x587f64={'key':_0x1cb9ea,'oldValue':_0x281cd9,'newValue':_0x2b78e9};_0x1cb9ea['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':_0x1cb9ea});const _0x17e2c3=('attribute:'+(_0x1cb9ea+'|'+Vt({'newValue':_0x2b78e9})))['substring'](0x0,0x3c),_0x402db8=this['_setSuggestionData']({'id':_0x50df02,'type':_0x17e2c3,'data':_0x587f64,'createdAt':new Date(),'authorId':_0x2a3ece,'attributes':_0x171de0});_0x51a71d['push'](_0x402db8),this['_addSuggestionMarker'](_0x17e2c3,_0x50df02,_0x2a3ece,_0x36d6ad);}return _0x51a71d;}['enableDefaultAttributesIntegration'](_0x424cd1){this['enableCommand'](_0x424cd1,(_0x4fa199,..._0x23db7b)=>{this['_recordAttributeChanges'](()=>{_0x4fa199(..._0x23db7b);});});}['registerBlockAttribute'](_0x2fabb2){this['_blockAttributeKeys']['add'](_0x2fabb2);}['registerInlineAttribute'](_0x59b499){this['_inlineAttributeKeys']['add'](_0x59b499);}['_getAttributeKey'](_0x364d09){return'attribute'==_0x364d09['type']?_0x364d09['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x53c28f,_0xfa8463){const _0x319742=_0x53c28f['getFirstMarker']();this['_model']['change'](_0x174900=>{_0x174900['updateMarker'](_0x319742,{'range':_0xfa8463});});}['_addThreadToSuggestion'](_0x115dae){const _0x1c6fac=_0x115dae['id'],_0x131d71=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c6fac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x131d71,'threadId':_0x1c6fac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5add5e=this['_commentsRepository']['getCommentThread'](_0x1c6fac);_0x5add5e['unbind']('isRemovable'),_0x5add5e['isRemovable']=!0x1,_0x115dae['commentThread']=_0x5add5e;}['_checkSuggestionCorrectness'](_0x1702f3,_0x544ecb,_0x8da0a8,_0xa6edc8){if(_0x1702f3['type']!=_0x544ecb||_0x1702f3['subType']!=_0x8da0a8||_0x1702f3['creator']['id']!=_0xa6edc8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4054be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x332184,_0xe0143c){const _0x1aec70=_0x332184['getFirstRange']();if(_0xe0143c['isEqual'](_0x1aec70))_0x332184['removeMarkers']();else{if(_0x1aec70['containsRange'](_0xe0143c)){const _0x373e5d=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x373e5d));const _0x2b9e28=_0x107e61(),_0x5d9a8b=_0x332184['creator']['id'],_0x53f840=_0x332184['type']+':'+_0x332184['subType'];this['_setSuggestionData']({'id':_0x2b9e28,'type':_0x53f840,'createdAt':new Date(),'authorId':_0x5d9a8b,'data':_0x332184['data'],'attributes':_0x332184['attributes']});const _0x36db2f=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after'),_0x124650=this['_model']['createRange'](_0x36db2f,_0x1aec70['end']);this['_addSuggestionMarker'](_0x53f840,_0x2b9e28,_0x5d9a8b,_0x124650);}else{if(_0x1aec70['containsPosition'](_0xe0143c['start'])){const _0x49c6f4=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x49c6f4));}else{const _0x29c1f2=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x29c1f2,_0x1aec70['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e03b0){for(const {suggestion:_0xf9c657,meta:_0x158eb8}of this['_findSuggestions'](_0x5e03b0,'insertion')){if(!_0x158eb8['isOwn'])continue;const _0x39ef65=_0xf9c657['getRanges']();for(const _0x33eb2a of _0x39ef65)if(!_0x5e03b0['getDifference'](_0x33eb2a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c1ec7){const _0x1f4fea=this['editor']['plugins']['get']('Users')['getUser'](_0x1c1ec7);if(!_0x1f4fea)throw new _0x4054be('track-changes-user-not-found',this);return _0x1f4fea;}['_getExternalAuthor'](_0x2c283e){const _0x48fab3=this['editor']['plugins']['get']('Users'),_0x4f6587=_0x25faca('external:'+_0x2c283e),_0x418ac1=_0x48fab3['getUser'](_0x4f6587);return _0x418ac1||_0x48fab3['addUser']({'id':_0x4f6587,'name':_0x2c283e});}['_createSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x5ccf84,_0x1d7aa8){const _0x51fdd3=this['_getAuthorFromId'](_0x5ccf84),_0x43974e=this['_suggestionFactory']['buildSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x51fdd3,_0x1d7aa8,_0x2b72c8=>{this['_updateSuggestionData'](_0x16ee26,{'attributes':_0x2b72c8});const _0x1c78f7=this['getSuggestion'](_0x16ee26);this['_joinWithAdjacentSuggestions'](new Set([_0x1c78f7])),this['_refreshSuggestionsChain'](new Set([_0x1c78f7]));});return this['listenTo'](_0x43974e,'accept',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43974e,'discard',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16ee26,_0x43974e),this['_suggestionState']['set'](_0x43974e,'notReady'),_0x43974e;}['_splitMarkerName'](_0x483597){const _0x366409=_0x483597['split'](':');return{'group':_0x366409[0x0],'type':_0x366409[0x1],'subType':_0x366409['length']>=0x5?_0x366409[0x2]:null,'id':_0x366409['length']<0x5?_0x366409[0x2]:_0x366409[0x3],'authorId':_0x366409['length']<0x5?_0x366409[0x3]:_0x366409[0x4],'markerCount':0x6==_0x366409['length']?_0x366409[0x5]:null};}['_breakSuggestionMarker'](_0x1c8386,_0x2fb786,_0x47cab8){const _0x5a8424=_0x1c8386['getFirstRange'](),_0x14e50a=_0x5a8424['start'],_0x1b03b4=_0x5a8424['end'];this['_setSuggestionRange'](_0x1c8386,this['_model']['createRange'](_0x14e50a,_0x2fb786));const _0xe860df=_0x107e61(),_0x3217f4=_0x1c8386['creator']['id'],_0x315955=_0x1c8386['type']+(_0x1c8386['subType']?':'+_0x1c8386['subType']:'');this['_setSuggestionData']({'id':_0xe860df,'type':_0x315955,'createdAt':new Date(),'authorId':_0x3217f4,'originalSuggestionId':_0x1c8386['id'],'attributes':_0x1c8386['attributes'],'data':_0x1c8386['data']});const _0x74c87=this['_getAttributeKey'](_0x1c8386);('formatBlock'==_0x1c8386['type']||_0x74c87&&this['_isBlockAttribute'](_0x74c87))&&(_0x47cab8=this['_model']['createPositionBefore'](_0x47cab8['parent'])),this['_addSuggestionMarker'](_0x315955,_0xe860df,_0x3217f4,this['_model']['createRange'](_0x47cab8,_0x1b03b4));}['_findSuggestions'](_0x32cea8,_0x5bb33f=null){const _0x104514=[],_0x4dd9d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x32cea8)||(_0x32cea8=[_0x32cea8]);for(const _0x380089 of this['getSuggestions']()){if(!_0x380089['isInContent'])continue;if(_0x5bb33f&&_0x380089['type']!=_0x5bb33f)continue;let _0x21c937=!0x1;for(const _0x16253a of _0x380089['getRanges']()){for(const _0x33fc21 of _0x32cea8){const _0xcea03f=_0x33fc21['start']['isEqual'](_0x16253a['end'])||_0x33fc21['end']['isEqual'](_0x16253a['start']);if(_0xcea03f||_0x33fc21['getIntersection'](_0x16253a)){const _0x37ff3f=_0x33fc21['containsRange'](_0x16253a)&&Rt(this['_model']['schema'],_0x16253a['start'],_0x33fc21),_0x333d16=_0x16253a['containsRange'](_0x33fc21)&&Rt(this['_model']['schema'],_0x33fc21['start'],_0x16253a);_0x104514['push']({'suggestion':_0x380089,'meta':{'isOwn':_0x4dd9d4==_0x380089['author'],'isNextTo':_0xcea03f,'isInsideObject':_0x37ff3f,'containsRangeInObject':_0x333d16}}),_0x21c937=!0x0;break;}}if(_0x21c937)break;}}return _0x104514;}['_addSuggestionMarker'](_0x5ef6af,_0x4fe5f7,_0x55e173,_0x36b0a1,_0x33745b){this['_model']['change'](_0x599a61=>{let _0x1a90b1='suggestion:'+_0x5ef6af+':'+_0x4fe5f7+':'+_0x55e173;_0x33745b&&(_0x1a90b1=_0x1a90b1+':'+_0x33745b),_0x599a61['addMarker'](_0x1a90b1,{'range':_0x36b0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b0cae){const _0x7929e6=_0x3b0cae['previous'],_0x4aa476=_0x3b0cae['next'];_0x3b0cae['previous']=null,_0x3b0cae['next']=null,null!=_0x7929e6&&_0x7929e6['next']==_0x3b0cae&&(_0x7929e6['next']=_0x4aa476),null!=_0x4aa476&&_0x4aa476['previous']==_0x3b0cae&&(_0x4aa476['previous']=_0x7929e6),'ready'==this['_suggestionState']['get'](_0x3b0cae)&&(this['_suggestionState']['set'](_0x3b0cae,'removed'),this['fire']('suggestionUnloaded',_0x3b0cae,_0x7929e6,_0x4aa476));}['_setSuggestionData'](_0x30d31c){const _0xb1e94d=_0x30d31c['id'],_0x188b83=this['addSuggestionData'](_0x30d31c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e2f2=this['editor']['plugins']['get']('PendingActions'),_0x664d4a=_0x188b83['hasComments'],_0x2f42cf=_0x188b83['subType']?_0x188b83['type']+':'+_0x188b83['subType']:_0x188b83['type'],_0x24b56c=this['editor']['locale'],_0x14be4b=_0x50e2f2['add'](o(_0x24b56c,'PENDING_ACTION_SUGGESTION')),_0x44e06e={'id':_0xb1e94d,'type':_0x2f42cf,'hasComments':_0x664d4a,'data':_0x30d31c['data']||null,'originalSuggestionId':_0x30d31c['originalSuggestionId']||null,'attributes':_0x188b83['attributes']};this['_adapter']['addSuggestion'](_0x44e06e)['then'](_0x9cb166=>{_0x188b83['_saved']=!0x0,_0x50e2f2['remove'](_0x14be4b),_0x9cb166&&_0x9cb166['createdAt']&&(this['_suggestions']['get'](_0xb1e94d)['createdAt']=_0x9cb166['createdAt']);})['catch'](_0x4dcc90=>{throw _0x8dc560('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x188b83['discard']();}),_0x188b83['stopListening'](),this['_suggestions']['delete'](_0x188b83['id']),this['_suggestionState']['delete'](_0x188b83),_0x4dcc90;});}return _0x188b83;}['_isBlockAttribute'](_0x5b03f8){return this['_blockAttributeKeys']['has'](_0x5b03f8);}['_updateSuggestionData'](_0x21b0b3,_0x45fc85){const _0x841f46=this['editor']['plugins']['get']('PendingActions'),_0x45be60=this['getSuggestion'](_0x21b0b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x45be60['_saved']){const _0x3872ae=_0x841f46['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21b0b3,_0x45fc85)['then'](()=>{_0x841f46['remove'](_0x3872ae);});}else _0x45be60['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21b0b3,_0x45fc85);});}}['_getSuggestionData'](_0x116331){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4054be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x116331);}['_handleNewSuggestionMarker'](_0x4f2ac5){const {id:_0x2e6090,type:_0x2a9f37,subType:_0x2cb4d1,authorId:_0x1d0e87}=this['_splitMarkerName'](_0x4f2ac5),_0x238358=this['_suggestions']['get'](_0x2e6090)||this['_createSuggestion'](_0x2a9f37,_0x2cb4d1,_0x2e6090,_0x1d0e87,{});switch(this['_checkSuggestionCorrectness'](_0x238358,_0x2a9f37,_0x2cb4d1,_0x1d0e87),this['_suggestionState']['get'](_0x238358)){case'notReady':this['_getSuggestionData'](_0x2e6090)['then'](_0x1dd238=>{let _0x21c79b=Promise['resolve']();_0x1dd238['hasComments']&&(_0x21c79b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e6090})),_0x21c79b['then'](()=>{this['addSuggestionData'](_0x1dd238)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x238358,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e6090,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x238358,'ready'),this['fire']('suggestionLoaded',_0x238358);break;case'ready':this['fire']('suggestionChanged',_0x238358);}return _0x238358['addMarkerName'](_0x4f2ac5),_0x238358;}['_refreshSuggestionsChain'](_0x423e24){const _0x52e108=Array['from'](_0x423e24),_0x57132a=_0x52e108['filter'](_0x411c9d=>'attribute'==_0x411c9d['type']);this['_refreshAttributeSuggestionsChain'](_0x57132a);const _0x3e4a80=_0x52e108['filter'](_0x4b0389=>!_0x4b0389['isMultiRange']&&'attribute'!=_0x4b0389['type']),_0x502a30=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x173aaf=>!_0x173aaf['isMultiRange']&&'attribute'!=_0x173aaf['type']),_0xe97edf=_0x502a30['filter'](_0x42b3d5=>!_0x423e24['has'](_0x42b3d5)),_0x18eac4=new Map(_0x502a30['map'](_0x281b0a=>[_0x281b0a,this['_suggestionFactory']['getSuggestionCallback'](_0x281b0a['type'],_0x281b0a['subType'],'chain')])),_0x23bd6a=new Map(_0x502a30['map'](_0xb4fa33=>[_0xb4fa33,_0xb4fa33['getFirstRange']()])),_0x54bd00=new Set(),_0x53b4f9=new Set();for(let _0x405e30=0x0;_0x405e30<_0x3e4a80['length'];_0x405e30++)_0x10e143(_0x3e4a80[_0x405e30],_0x3e4a80,_0x405e30+0x1);for(let _0x9d3ef7=0x0;_0x9d3ef7<_0x3e4a80['length'];_0x9d3ef7++)_0x10e143(_0x3e4a80[_0x9d3ef7],_0xe97edf,0x0);const _0x391066=new Set();for(let _0x306a5c=0x0;_0x306a5c<_0x3e4a80['length'];_0x306a5c++){const _0x548a97=_0x3e4a80[_0x306a5c];!_0x53b4f9['has'](_0x548a97)&&_0x548a97['previous']&&(_0x391066['add'](_0x548a97['previous']),_0x548a97['previous']['next']===_0x548a97&&(_0x548a97['previous']['next']=null),_0x548a97['previous']=null),!_0x54bd00['has'](_0x548a97)&&_0x548a97['next']&&(_0x391066['add'](_0x548a97['next']),_0x548a97['next']['previous']===_0x548a97&&(_0x548a97['next']['previous']=null),_0x548a97['next']=null);}function _0x10e143(_0x406719,_0x449d19,_0x5a2be0){for(let _0x5c2a02=_0x5a2be0;_0x5c2a02<_0x449d19['length'];_0x5c2a02++){const _0x5ded7f=_0x20f4dd(_0x406719,_0x449d19[_0x5c2a02]);_0x5ded7f&&(_0x5ded7f[0x0]['next']=_0x5ded7f[0x1],_0x5ded7f[0x1]['previous']=_0x5ded7f[0x0],_0x54bd00['add'](_0x5ded7f[0x0]),_0x53b4f9['add'](_0x5ded7f[0x1]));}}function _0x20f4dd(_0x37abc0,_0x5e1232){if(_0x37abc0['author']['id']!==_0x5e1232['author']['id'])return null;const _0x425f15=_0x18eac4['get'](_0x37abc0)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232));if(!_0x425f15)return null;return _0x18eac4['get'](_0x5e1232)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232))?_0x425f15[0x1]['commentThread']&&_0x425f15[0x1]['commentThread']['length']?null:_0x425f15:null;}_0x391066['size']&&this['_refreshSuggestionsChain'](_0x391066);}['_refreshAttributeSuggestionsChain'](_0x1e4cd9){if(0x0==_0x1e4cd9['length'])return;const _0x56c083=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b99ee=>'attribute'==_0x3b99ee['type']&&_0x3b99ee['_isDataLoaded']),_0x3bd086=[],_0x58c7e3=new Map();for(const _0x1aaf4a of _0x56c083){const _0x285d0b=_0x25faca(_0x1aaf4a['attributes']);_0x58c7e3['has'](_0x285d0b)||(_0x58c7e3['set'](_0x285d0b,_0x3bd086['length']),_0x3bd086['push']([]));const _0x2f4bea=_0x58c7e3['get'](_0x285d0b);_0x3bd086[_0x2f4bea]['push'](_0x1aaf4a);}!(function(){_0x3bd086['sort']((_0x436611,_0x5ceaf5)=>{const _0x560658=_0x436611[0x0]['createdAt'],_0x906b4d=_0x5ceaf5[0x0]['createdAt'];return _0x560658==_0x906b4d?_0x436611[0x0]['attributes']['groupId']<_0x5ceaf5[0x0]['attributes']['groupId']?-0x1:0x1:_0x560658<_0x906b4d?-0x1:0x1;});for(const _0x387c79 of _0x3bd086)_0x387c79['sort']((_0x549a49,_0x5dbca7)=>_0x549a49['id']<_0x5dbca7['id']?-0x1:0x1);}());for(let _0x53d982=0x0;_0x53d982<_0x3bd086['length'];_0x53d982++){if(0x0==_0x3bd086[_0x53d982]['length'])continue;const _0x16f99b=[];for(let _0x80c652=_0x53d982+0x1;_0x80c652<_0x3bd086['length'];_0x80c652++)0x0!=_0x3bd086[_0x80c652]['length']&&_0x1b739f(_0x3bd086[_0x53d982],_0x3bd086[_0x80c652])&&_0x16f99b['push'](_0x80c652);for(const _0xb3ba4c of _0x16f99b)_0x3bd086[_0x53d982]=_0x3bd086[_0x53d982]['concat'](_0x3bd086[_0xb3ba4c]),_0x3bd086[_0xb3ba4c]=[];}for(const _0x13ff6d of _0x3bd086)for(let _0x7b5d71=0x0;_0x7b5d71<_0x13ff6d['length'];_0x7b5d71++)_0x13ff6d[_0x7b5d71]['next']=_0x13ff6d[_0x7b5d71+0x1]||null;for(const _0x1ea134 of _0x3bd086)for(let _0x159be8=0x0;_0x159be8<_0x1ea134['length'];_0x159be8++)_0x1ea134[_0x159be8]['previous']=_0x1ea134[_0x159be8-0x1]||null;function _0x1b739f(_0x58db0b,_0x1d5cb3){if(_0x58db0b[0x0]['attributes']['groupId']!==_0x1d5cb3[0x0]['attributes']['groupId']&&_0x58db0b[0x0]['author']!==_0x1d5cb3[0x0]['author'])return!0x1;if(!function(_0x5ab0cb,_0x346af0){if(!_0x5ab0cb['hasComments']&&!_0x346af0['hasComments'])return!0x0;if(_0x5ab0cb['hasComments']&&_0x346af0['hasComments'])return!0x1;if(_0x5ab0cb['hasComments']&&_0x346af0['createdAt']<_0x5ab0cb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x346af0['hasComments']&&_0x5ab0cb['createdAt']<_0x346af0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58db0b[0x0],_0x1d5cb3[0x0]))return!0x1;const _0x1a0196=Bt(_0x58db0b[0x0]['attributes'],'groupId'),_0xa7c031=Bt(_0x1d5cb3[0x0]['attributes'],'groupId');if(!_0x2ef343(_0x1a0196,_0xa7c031))return!0x1;return!!_0x58db0b['every'](_0xcf0b91=>_0x1d5cb3['some'](_0x5d6d4e=>_0xcf0b91['getFirstRange']()['isEqual'](_0x5d6d4e['getFirstRange']())))&&_0x1d5cb3['every'](_0x18085e=>_0x58db0b['some'](_0x59da31=>_0x18085e['getFirstRange']()['isEqual'](_0x59da31['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x68f76b){const _0x1b3bf9=Array['from'](_0x68f76b),_0x1143ed=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2bad5d=_0x1143ed['filter'](_0x44dcb7=>!_0x68f76b['has'](_0x44dcb7)),_0xb1b76a=new Map(_0x1b3bf9['map'](_0x4db741=>[_0x4db741,this['_suggestionFactory']['getSuggestionCallback'](_0x4db741['type'],_0x4db741['subType'],'join')])),_0x12859a=new Map(_0x1143ed['map'](_0x18589b=>[_0x18589b,_0x18589b['getRanges']()]));for(let _0x10dad6=0x0;_0x10dad6<_0x1b3bf9['length'];_0x10dad6++){if(_0x1029cd(this,_0x1b3bf9[_0x10dad6],_0x1b3bf9,_0x10dad6+0x1))return!0x0;}for(let _0x2edb45=0x0;_0x2edb45<_0x1b3bf9['length'];_0x2edb45++){if(_0x1029cd(this,_0x1b3bf9[_0x2edb45],_0x2bad5d,0x0))return!0x0;}return!0x1;function _0x1029cd(_0x5ac2d0,_0x6d89e2,_0x3a41c0,_0x13e4d4){for(let _0x51915a=_0x13e4d4;_0x51915a<_0x3a41c0['length'];_0x51915a++){const _0x281a08=_0x3a41c0[_0x51915a];if(_0x281a08['type']!==_0x6d89e2['type']||_0x281a08['author']['id']!==_0x6d89e2['author']['id']||_0x281a08['subType']!==_0x6d89e2['subType'])continue;if(!Pt(_0x6d89e2,_0x281a08,['groupId']))continue;if('attribute'==_0x6d89e2['type']&&_0x6d89e2['data']['oldValue']!=_0x281a08['data']['oldValue'])continue;if('attribute'==_0x6d89e2['type']&&_0x5ac2d0['_isBlockAttribute'](_0x6d89e2['data']['key']))continue;if('formatBlock'==_0x6d89e2['type']){const _0x4ec909=_0x5ac2d0['editor']['model'],_0x100930=_0x6d89e2['getContainedElement']();if(_0x100930&&(_0x4ec909['schema']['isObject'](_0x100930)||_0x4ec909['schema']['isLimit'](_0x100930)))continue;}const _0x149e09=_0xb1b76a['get'](_0x6d89e2),_0x420a4e=_0x12859a['get'](_0x6d89e2),_0x7a7b8=_0x12859a['get'](_0x281a08),_0x154c73=_0x6d89e2['commentThread']&&_0x6d89e2['commentThread']['length'],_0x356b71=_0x281a08['commentThread']&&_0x281a08['commentThread']['length'];if(!_0x154c73&&_0x149e09(_0x7a7b8,_0x420a4e))return _0x5ac2d0['_joinSuggestions'](_0x281a08,_0x6d89e2),_0x12859a['delete'](_0x6d89e2),!0x0;if(!_0x356b71&&_0x149e09(_0x420a4e,_0x7a7b8))return _0x5ac2d0['_joinSuggestions'](_0x6d89e2,_0x281a08),_0x12859a['delete'](_0x281a08),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f0ac8,_0x2c3b00){if(_0x2f0ac8['isMultiRange']){for(const _0x310568 of _0x2c3b00['getRanges']())_0x2f0ac8['addRange'](_0x310568);}else{const _0x52c253=_0x2c3b00['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f0ac8,this['_model']['createRange'](_0x2f0ac8['getFirstRange']()['start'],_0x52c253));}_0x2c3b00['removeMarkers']();}['_getMarkerAnnouncementText'](_0x676d11,_0xfb0b0){const _0x55ad32=_0x676d11['startsWith']('format')||_0x676d11['startsWith']('attribute')?'FORMATTING':_0x676d11['toUpperCase']();return o(this['editor']['locale'],_0xfb0b0+'_'+_0x55ad32+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x39da7e=this['editor'];if(!_0x39da7e['ui'])return;const {ariaLiveAnnouncer:_0x203b74}=_0x39da7e['ui'];_0x2efde5(this['_model'],({left:_0x2dae08,entered:_0x4c5545})=>{for(const _0x418034 of _0x2dae08){const {group:_0x112a93,type:_0x50c46f}=this['_splitMarkerName'](_0x418034['name']);if('suggestion'===_0x112a93){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x50c46f,'LEAVE'));break;}}for(const _0x39c294 of _0x4c5545){const {group:_0x5ac402,type:_0x7aea01}=this['_splitMarkerName'](_0x39c294['name']);if('suggestion'===_0x5ac402){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x7aea01,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fb442){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1149cd=this['editor'],_0x2ced6a=_0x1149cd['model']['document']['differ']['getChanges']();if(0x0==_0x2ced6a['length'])return!0x1;const _0x1e3d6d=[],_0x103d6a=_0x2ced6a['filter'](_0x27575c=>'attribute'==_0x27575c['type']),_0x31fb3b=_0x2ced6a['filter'](_0x5d1f73=>'insert'==_0x5d1f73['type']&&'$text'!=_0x5d1f73['name']),_0x4acf70=_0x2ced6a['filter'](_0x26596a=>'remove'==_0x26596a['type']&&'$text'!=_0x26596a['name']);for(const _0x4ff4a3 of _0x103d6a)_0x1e3d6d['push']({'key':_0x4ff4a3['attributeKey'],'newValue':_0x4ff4a3['attributeNewValue'],'oldValue':_0x4ff4a3['attributeOldValue'],'range':Ot(_0x4ff4a3['range'],_0x1149cd['model'])});for(const _0x829a92 of _0x31fb3b){const _0x43749a=_0x4acf70['find'](_0x595f76=>_0x595f76['position']['isEqual'](_0x829a92['position']));_0x43749a&&_0x1e3d6d['push']({'key':m,'newValue':_0x829a92['name'],'oldValue':_0x43749a['name'],'range':_0x1149cd['model']['createRangeOn'](_0x829a92['position']['nodeAfter'])});}return 0x0!=_0x1e3d6d['length']&&this['_reduceExistingSuggestions'](_0x2fb442,_0x1e3d6d);}['_processAttributeSuggestions'](_0x257823){let _0xb83ab4=!0x1;const _0x561b56=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e78fd=>_0x4e78fd['data']['newRange']&&_0x4e78fd['name']['startsWith']('suggestion:attribute:'));for(const _0x1241b4 of _0x561b56){const {subType:_0x15cca6,id:_0x125af3}=this['_splitMarkerName'](_0x1241b4['name']),_0x410d16=_0x15cca6['split']('|')[0x0];for(const _0x2239dc of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2239dc['id']!=_0x125af3&&'attribute'==_0x2239dc['type']&&_0x2239dc['data']&&_0x2239dc['data']['key']==_0x410d16&&_0x2239dc['getFirstRange']()['isIntersecting'](_0x1241b4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2239dc,_0x1241b4['data']['newRange'],_0x257823),_0xb83ab4=!0x0);}return _0xb83ab4;}['_recordAttributeChanges'](_0x33c266){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x33c266();}['_isRegisteredAttribute'](_0x636f86){const _0x29524b=this['_isBlockAttribute'](_0x636f86),_0x10d22d=this['_inlineAttributeKeys']['has'](_0x636f86);return _0x29524b||_0x10d22d;}['_reduceExistingSuggestions'](_0x8490e9,_0x29a59c){if(0x0==_0x29a59c['length'])return!0x1;let _0x4a32ec=!0x1;for(const _0x2b1726 of _0x29a59c){const _0x5da5e6=this['_findSuggestions'](_0x2b1726['range'],'attribute')['filter'](_0x262be1=>!_0x262be1['meta']['isNextTo'])['map'](_0x36102e=>_0x36102e['suggestion']),_0x2bd541=_0x25faca({'newValue':_0x2b1726['newValue']});_0x5da5e6['filter'](_0x299c41=>{const [_0x35131e,_0x5975f0]=_0x299c41['subType']['split']('|');return _0x35131e==_0x2b1726['key']&&_0x5975f0!=_0x2bd541;})['forEach'](_0xb4f9d6=>{this['_reduceSuggestionAttributeRange'](_0xb4f9d6,_0x2b1726['range'],_0x8490e9),_0x4a32ec=!0x0;});}return _0x4a32ec;}['_reduceSuggestionAttributeRange'](_0x41e821,_0x5e2765,_0x48e02c){const _0x2c3eb1=_0x41e821['getFirstRange']()['getDifference'](_0x5e2765);0x0!==_0x2c3eb1['length']?0x1!==_0x2c3eb1['length']?this['_breakSuggestionMarker'](_0x41e821,_0x5e2765['start'],_0x5e2765['end']):this['_setSuggestionRange'](_0x41e821,_0x2c3eb1[0x0]):_0x48e02c['removeMarker'](_0x41e821['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a3f95){this['_editor']=_0x4a3f95,this['_model']=_0x4a3f95['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xba7c84,_0x327eb9,_0x469cf3,_0x2e8378,_0x23a57c,_0x2057e1){return new u(this['_model'],{'type':_0xba7c84,'subType':_0x327eb9,'id':_0x469cf3,'author':_0x2e8378,'creator':_0x2e8378,'attributes':_0x23a57c,'onAttributesChange':_0x2057e1,'onAccept':(..._0x4dc129)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'accept')(..._0x4dc129),'onDiscard':(..._0x53e10a)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'discard')(..._0x53e10a)});}['registerCustomCallback'](_0x8d0c70,_0x4e682b,_0x1240df,_0x3f28c4){const _0x1781ce=_0x8d0c70+':'+_0x4e682b+':'+_0x1240df;this['_customCallbacks']['set'](_0x1781ce,_0x3f28c4);}['getSuggestionCallback'](_0x2340e8,_0x3aeb03,_0x1afe7f){const _0x2f1c8c=_0x2340e8+':'+_0x3aeb03+':'+_0x1afe7f;return this['_customCallbacks']['get'](_0x2f1c8c)||this['_defaultCallbacks']['get'](_0x2340e8+':'+_0x1afe7f);}['_registerDefaultCallbacks'](){const _0x5cc865=()=>!0x1,_0x3b409b=_0x1d1caa=>{_0x1d1caa['sort']((_0xa927c2,_0x178c45)=>_0xa927c2['start']['isBefore'](_0x178c45['start'])?0x1:-0x1),this['_model']['change'](_0x556d67=>{for(const _0x517dfe of _0x1d1caa){let _0x640724;_0x640724=_0x517dfe['end']['isAtEnd']&&_0x517dfe['end']['parent']==_0x517dfe['start']['nodeAfter']?_0x556d67['createSelection'](_0x517dfe['start']['nodeAfter'],'on'):_0x556d67['createSelection'](_0x517dfe),this['_model']['deleteContent'](_0x640724,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x10151c=(_0x87186a,_0xbb482f)=>{_0xbb482f&&this['_model']['change'](_0x848718=>{const {commandName:_0x3cff22,commandParams:_0x54e337=[]}=_0xbb482f,_0x31f853=_0x87186a['map'](_0x1bd1d8=>(Tt(_0x1bd1d8)&&(_0x1bd1d8=this['_model']['createRange'](_0x1bd1d8['end'])),_0x1bd1d8))['filter'](_0x54e173=>'$graveyard'!==_0x54e173['root']['rootName']);if(_0x31f853['length']<0x1)return;const _0x1ae976=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55452d=>_0x54c30a['fromRange'](_0x55452d));_0x848718['setSelection'](_0x31f853);for(const _0x489c4f of this['_editor']['commands']['commands']())_0x489c4f['refresh']();_0x54e337['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3cff22,..._0x54e337);const _0x1c8791=_0x1ae976['filter'](_0x2cc7d2=>'$graveyard'!=_0x2cc7d2['root']['rootName']);_0x1c8791['length']>0x0&&_0x848718['setSelection'](_0x1c8791);for(const _0x2a40f9 of _0x1ae976)_0x2a40f9['detach']();});},_0x24967e=(_0x6f159c,_0x43b6a6)=>0x1==_0x6f159c['length']&&0x1==_0x43b6a6['length']&&_0x6f159c[0x0]['end']['isEqual'](_0x43b6a6[0x0]['start']),_0x501cfa=(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399)=>Ft(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399,this['_model'])?[_0x254425,_0x43bbf7]:Ft(_0x43bbf7,_0x254425,_0x30f399,_0x96a90d,this['_model'])?[_0x43bbf7,_0x254425]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cc865),this['_defaultCallbacks']['set']('insertion:discard',_0x3b409b),this['_defaultCallbacks']['set']('insertion:join',_0x24967e),this['_defaultCallbacks']['set']('insertion:chain',_0x501cfa),this['_defaultCallbacks']['set']('deletion:accept',_0x3b409b),this['_defaultCallbacks']['set']('deletion:discard',_0x5cc865),this['_defaultCallbacks']['set']('deletion:join',_0x24967e),this['_defaultCallbacks']['set']('deletion:chain',_0x501cfa),this['_defaultCallbacks']['set']('formatInline:accept',_0x10151c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatInline:join',_0x24967e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:accept',_0x10151c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:join',_0x24967e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cc865),this['_defaultCallbacks']['set']('attribute:accept',_0x5cc865),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e9e88,_0x29d349)=>{if(!_0x29d349)return;const _0x2d6195=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a0ead=>{if(_0x29d349['key']==m)for(const _0xc98ffd of _0x2e9e88){const _0x961c70=_0xc98ffd['start']['nodeAfter'],_0x333370=_0x29d349['oldValue'];_0x2a0ead['rename'](_0x961c70,_0x333370);}else{if(_0x2d6195['_isBlockAttribute'](_0x29d349['key'])){for(const _0x1eaac7 of _0x2e9e88)void 0x0!==_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x1eaac7['start']['nodeAfter']):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x1eaac7['start']['nodeAfter']);}else{for(const _0x5ec867 of _0x2e9e88)_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x5ec867):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x5ec867);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24967e);}}function Rt(_0xc178e,_0x317e27,_0x1d87e0){for(const _0x20533b of _0x317e27['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20533b['root']==_0x20533b)return!0x1;if(!_0x1d87e0['containsItem'](_0x20533b))return!0x1;if(_0xc178e['isObject'](_0x20533b)||_0xc178e['isLimit'](_0x20533b))return!0x0;}return!0x1;}function Tt(_0x5a539f){return _0x5a539f['end']['parent']==_0x5a539f['start']['nodeAfter']&&_0x5a539f['end']['isAtStart'];}function Et(_0x1f7fe3,_0x1195bb,_0x1850f4,_0x52eb58){const _0x589d29=_0x5e8462=>!_0x5e8462['item']['is']('$textProxy')&&!_0x52eb58['isObject'](_0x5e8462['item']),_0x2a74e1=_0x1f7fe3['start']['getLastMatchingPosition'](_0x589d29),_0x41f897=_0x1f7fe3['end']['getLastMatchingPosition'](_0x589d29,{'direction':'backward'});return(!_0x1f7fe3['start']['isEqual'](_0x2a74e1)||!_0x1f7fe3['end']['isEqual'](_0x41f897))&&(_0x2a74e1['isBefore'](_0x41f897)?_0x1850f4['updateMarker'](_0x1195bb,{'range':_0x1850f4['createRange'](_0x2a74e1,_0x41f897)}):_0x1850f4['removeMarker'](_0x1195bb),!0x0);}function Vt(_0x3d35ad){return _0x25faca(_0x3d35ad);}function Ut(_0x469adb){const _0x290970=_0x469adb['start']['nodeAfter'];return _0x290970&&_0x290970['is']('element');}function Ot(_0x1f8dc2,_0x279be4){return null==_0x1f8dc2['end']['nodeBefore']&&_0x1f8dc2['end']['parent']==_0x1f8dc2['start']['nodeAfter']?Gt(_0x1f8dc2['start']['nodeAfter'],_0x279be4):_0x1f8dc2;}function Gt(_0x1e5114,_0x1c080e){const _0x33fad7=_0x1c080e['schema']['isObject'](_0x1e5114)||_0x1c080e['schema']['isSelectable'](_0x1e5114);return _0x1c080e['createRange'](_0x1c080e['createPositionAt'](_0x1e5114,'before'),_0x33fad7?_0x1c080e['createPositionAfter'](_0x1e5114):_0x1c080e['createPositionAt'](_0x1e5114,'end'));}function Ft(_0x21ba08,_0xe0ef6,_0x21470e,_0x4c0e38,_0x48d006){if(!Pt(_0x21ba08,_0xe0ef6))return!0x1;if(_0x21470e['end']['isEqual'](_0x4c0e38['start']))return!0x0;if(_0x21ba08['type']!=_0xe0ef6['type'])return!0x1;if(!_0x21470e['end']['isTouching'](_0x4c0e38['start']))return!0x1;const _0x10c0d3=_0x48d006['createRange'](_0x21470e['end'],_0x4c0e38['start'])['getWalker']();for(const _0x3dd1cb of _0x10c0d3)if(['elementStart','elementEnd']['includes'](_0x3dd1cb['type'])&&_0x48d006['schema']['isLimit'](_0x3dd1cb['item']))return!0x1;return!0x0;}function Pt(_0x240014,_0x1f84c0,_0x7b6f94=[]){return!(!_0x240014['_isDataLoaded']||!_0x1f84c0['_isDataLoaded'])&&_0x2ef343(Bt(_0x240014['attributes'],_0x7b6f94),Bt(_0x1f84c0['attributes'],_0x7b6f94));}function Lt(_0x26d0eb,_0x44c67c){const _0x8609f1=Ht(_0x26d0eb['attributes']),_0x350e3f=Ht(_0x44c67c);if(!_0x26d0eb['_isDataLoaded'])return!0x1;for(const _0x507154 of Object['keys'](_0x350e3f))if(!_0x2ef343(_0x8609f1[_0x507154],_0x350e3f[_0x507154]))return!0x1;return!0x0;}function Ht(_0x21e751){const _0x46aa74=Object['assign']({},_0x21e751);return delete _0x46aa74['skipNestingCheck'],delete _0x46aa74['tablePasteChainId'],_0x46aa74;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4ff9be(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xcbd594,_0x176188,_0x2bf5c8,_0x505b12){super(),this['model']=_0x176188,this['view']=_0x2bf5c8,this['commentThreadController']=_0x505b12,this['_editor']=_0xcbd594,this['_acceptCommand']=_0xcbd594['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xcbd594['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a6356,_0x3a89ea)=>_0x2a6356||_0x3a89ea),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd435f9=>_0xd435f9&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e038d=>_0x1e038d&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['_pendingAction']=null,_0x2bf5c8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bf5c8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bf5c8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bf5c8,'change:isDirty',()=>{_0x2bf5c8['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 _0x518f2b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x518f2b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb7d5df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x27e71e,_0x3faa49,_0x29cdcd,_0x2baf00){super(_0x27e71e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3faa49['authoredAt']),this['bind']('authoredAt')['to'](_0x3faa49),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3faa49,this['_localUser']=_0x29cdcd,this['_config']=_0x2baf00,_0x2baf00['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x336c5f}=this['_config'];this['commentsListView']=new _0x336c5f(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',_0x3ffa14=>_0x3ffa14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ee83,_0x215082)=>_0x1ee83||!!_0x215082);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30fc93}=this['_config'],_0x1369e8=new _0x30fc93(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20280d=_0x1369e8['commentInputView'];return _0x1369e8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20280d,'value',(_0x3be437,_0x2f3afd,_0x56f357)=>!!_0x56f357||_0x3be437&&!_0x2f3afd),_0x20280d['on']('submit',(_0x525d9d,_0x66b605)=>{this['fire']('addComment',_0x66b605),_0x20280d['editor']['setData']('');}),_0x20280d['on']('cancel',()=>this['focus']()),_0x20280d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1369e8;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7){super(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x37c771=>_0x37c771&&_0x37c771[0x0]?_0x37c771[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5663ab,_0x129e06)=>{let _0x34501a='';for(const _0x3c7e86 of _0x5663ab)_0x34501a+='<p>'+ds(_0x3c7e86['content'],_0x3c7e86['color'])+'</p>';return _0x129e06?_0x34501a:_0x582db4(_0x34501a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x28d05f,'Accept\x20suggestion'),_0xb3e85c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x28d05f,'Discard\x20suggestion'),_0xb3e85c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x532e9f(_0x28d05f,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4c2836=this['bindTemplate'],_0x4579db=[{'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':_0x4c2836['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c2836['to']('authoredAt',_0x5ae3d5=>this['_config']['formatDateTime'](_0x5ae3d5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4579db['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xf44937={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4c2836['if']('isActive','ck-suggestion-wrapper--active'),_0x4c2836['to']('type',_0x384fab=>'ck-suggestion-'+_0x384fab),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4579db}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xf44937['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xf44937;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xba6b81,_0x44c4e9,_0x2d626d)=>{this['_descriptionElement']['innerHTML']=_0x2d626d;});}['_createButton'](_0x294baf,_0x16e9f4,_0x297e73,_0x2e7843,_0x59ca3e){const _0x2964c1=new _0x1863cb(this['locale']);return _0x2964c1['set']({'label':_0x294baf,'icon':_0x16e9f4,'tooltip':!0x0,'tooltipPosition':_0x59ca3e}),_0x2964c1['extendTemplate']({'attributes':{'class':_0x297e73}}),_0x2964c1['on']('execute',()=>{this['fire'](_0x2e7843,this['_model']['id']);}),_0x2964c1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x336c61,_0x2cf826){let _0x1448ab='';return _0x1448ab+=_0x336c61['split']('*')['map']((_0x5ed7a1,_0x59ccb7)=>_0x59ccb7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5ed7a1)+'</span>':us(_0x5ed7a1))['join'](''),_0x2cf826&&(_0x1448ab+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2cf826['value']+'\x22\x20title=\x22'+_0x2cf826['title']+'\x22></span>'),_0x1448ab;}function us(_0x12c8fd){const _0x3bf27a=document['createElement']('span');return _0x3bf27a['innerText']=_0x12c8fd,_0x3bf27a['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0xeaacfa{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x43f0c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xeb08a3){super(_0xeb08a3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x47225a=this['editor']['config'];_0x47225a['define']('trackChanges.SuggestionThreadView',ne),_0x47225a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x47225a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x16d0a0,_0x9eb27){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x504e83,_0x5eab72]of this['_handleControllerBuffer']){const _0x2e4b77=this['_suggestionToController']['has'](_0x504e83);_0x2e4b77||_0x5eab72?_0x2e4b77&&_0x5eab72&&this['_destroyController'](_0x504e83):this['_initializeController'](_0x504e83);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x16d0a0,_0x9eb27);}['init'](){const _0x1d5394=this['editor'],_0x6c560=_0x1d5394['plugins']['get']('TrackChangesEditing'),_0x14ef2d=_0x1d5394['plugins']['get']('Annotations'),_0x50111a=_0x1d5394['plugins']['get']('EditorAnnotations'),_0x339e90=_0x1d5394['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x50111a['addSourceCollector'](()=>{const _0x15ed21=[];for(const [_0xafbaf8,_0x299ebb]of Array['from'](this['_suggestionToController'])){const _0xf817fa=_0xafbaf8['getAllAdjacentSuggestions'](),_0x4ebeb9=[];for(const _0x146b66 of _0xf817fa){if(!_0x146b66['isInContent'])continue;if(_0x146b66['isMultiRange']){_0x4ebeb9['push'](..._0x146b66['getRanges']());continue;}const _0x9514b6=_0x146b66['getFirstRange']();if(_0x4ebeb9['length']>0x0){const _0x1118bd=_0x4ebeb9[0x0]['getJoined'](_0x9514b6);if(_0x1118bd){_0x4ebeb9[0x0]=_0x1118bd;continue;}}_0x4ebeb9['push'](_0x9514b6);}_0x15ed21['push']([_0x299ebb['view'],_0x4ebeb9]);}return _0x15ed21;}),this['listenTo'](_0x6c560,'suggestionLoaded',(_0x2f8b54,_0x3877a6)=>{this['listenTo'](_0x3877a6,'change:previous',(_0x176a0d,_0xe27803,_0x3647de,_0x48467a)=>{_0x3877a6['isInContent']&&(null==_0x3647de?(this['_updateController'](_0x48467a['head']),this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1)):(this['_updateController'](_0x3647de['head']),null==_0x48467a&&this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x0)));}),null!==_0x3877a6['previous']?this['_updateController'](_0x3877a6['head']):this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1);}),this['listenTo'](_0x6c560,'suggestionUnloaded',(_0x63ac0a,_0x6a8e75,_0x390aa7)=>{this['stopListening'](_0x6a8e75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x6a8e75),this['_suggestionToController']['has'](_0x6a8e75)&&this['_destroyController'](_0x6a8e75),_0x390aa7&&this['_updateController'](_0x390aa7['head']);}),this['listenTo'](_0x6c560,'suggestionChanged',(_0x596f5e,_0x508ec4)=>{this['_updateController'](_0x508ec4);}),this['listenTo'](_0x14ef2d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x339e90,'addComment',(_0x4810e1,{threadId:_0x45ce1a,isFromAdapter:_0x4aa094})=>{if(_0x4aa094||!_0x6c560['hasSuggestion'](_0x45ce1a))return;const _0x483817=_0x6c560['getSuggestion'](_0x45ce1a);this['_suggestionToController']['get'](_0x483817)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5edafb=this['editor']['plugins']['get']('Annotations'),_0x4a5201=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4274e5=Array['from'](_0x5edafb['activeAnnotations'],_0x58f191=>_0x58f191['innerView'])['filter'](_0x16bc41=>this['_viewToController']['has'](_0x16bc41)),_0x599634=[];for(const _0x15abba of _0x4274e5){const _0x60815f=this['_viewToController']['get'](_0x15abba)['model']['getAllAdjacentSuggestions']();_0x599634['push'](..._0x60815f['reduce']((_0x46784a,_0x179a12)=>[..._0x46784a,..._0x179a12['getMarkerNames']()],[]));}_0x4a5201['activeMarkers']=_0x599634;}['_addUIComponentsToFactory'](){const _0x38e87b=this['editor'],_0x2f9d84=_0x38e87b['locale'],_0x34ec64=o(_0x2f9d84,'Track\x20changes'),_0x12be0d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x34ec64,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11d567 of _0x12be0d)if(ae(_0x11d567)){const _0xef7d69=_0x38e87b['commands']['get'](_0x11d567['model']['commandName']);_0x11d567['model']['bind']('isOn','isEnabled')['to'](_0xef7d69,'value','isEnabled');}_0x38e87b['ui']['componentFactory']['add']('trackChanges',_0x325836=>this['_createToolbarButton'](_0x325836,_0x12be0d,_0x34ec64)),_0x38e87b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x768f61=>this['_createMenuBarMenu'](_0x768f61,_0x12be0d,_0x34ec64));}['_createToolbarButton'](_0x2a2f52,_0x2321a5,_0x26c66a){const _0x1080f6=zt(_0x2a2f52,Zt),_0x323279=this['editor']['commands']['get']('trackChanges');_0x1080f6['buttonView']['set']({'tooltip':_0x26c66a,'label':_0x26c66a,'icon':ie}),_0x1080f6['buttonView']['bind']('isOn')['to'](_0x323279,'value'),_0x1080f6['buttonView']['on']('execute',()=>{_0x323279['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1080f6,_0x2321a5,{'role':'menu'});const _0x2fa1dc=[];for(const _0x1de85c of _0x2321a5)ae(_0x1de85c)&&_0x2fa1dc['push'](this['editor']['commands']['get'](_0x1de85c['model']['commandName']));const _0x2a5b0b=_0x1080f6['buttonView'];return _0x2a5b0b['actionView']['unbind']('isEnabled'),_0x2a5b0b['arrowView']['unbind']('isEnabled'),_0x2a5b0b['actionView']['bind']('isEnabled')['to'](_0x323279,'isEnabled'),_0x2a5b0b['arrowView']['bind']('isEnabled')['toMany'](_0x2fa1dc,'isEnabled',(..._0x4caa9e)=>_0x4caa9e['some'](_0x429e74=>_0x429e74)),_0x1080f6['on']('execute',_0x288207=>{this['editor']['execute'](_0x288207['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1080f6;}['_createMenuBarMenu'](_0x1ef5fe,_0x95a425,_0x292c03){const _0x135f99=new Kt(_0x1ef5fe),_0x58394d=this['editor']['commands']['get']('trackChanges');_0x135f99['buttonView']['set']({'label':_0x292c03,'icon':ie});const _0x398c5b=new Qt(_0x1ef5fe);for(const _0x11c45f of _0x95a425){if('separator'==_0x11c45f['type']){_0x398c5b['items']['add'](new Jt(_0x1ef5fe));continue;}const _0x5bec1a=new Xt(_0x1ef5fe,_0x135f99),_0x3141d6=new Yt(_0x1ef5fe),_0x56488b=_0x11c45f['model'];_0x3141d6['bind'](...Object['keys'](_0x56488b))['to'](_0x56488b),_0x3141d6['delegate']('execute')['to'](_0x135f99),_0x3141d6['on']('execute',()=>{this['editor']['execute'](_0x56488b['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bec1a['children']['add'](_0x3141d6),_0x398c5b['items']['add'](_0x5bec1a);}return _0x135f99['bind']('isEnabled')['to'](_0x58394d,'isEnabled'),_0x135f99['panelView']['children']['add'](_0x398c5b),_0x135f99;}['_initializeController'](_0x485a63){const _0x3ef081=this['editor'],_0x4bd5b9=_0x3ef081['config'],_0x5ac528=_0x3ef081['plugins']['get']('Annotations'),_0x45f409=_0x3ef081['plugins']['get']('CommentsRepository'),_0x170179=_0x3ef081['plugins']['get']('EditorAnnotations'),_0x3252f7=_0x3ef081['plugins']['get'](_0x43f0c5)['me'],_0x6b42ac=_0x4bd5b9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x229e05,CommentThreadInputView:_0x253e05}=_0x3ef081['plugins']['get']('CommentsUI');let _0x3fed7c,_0x174a79;this['_annotationViews']['has'](_0x485a63['id'])?(_0x174a79=this['_annotationViews']['get'](_0x485a63['id']),_0x3fed7c=_0x174a79['mainView']):(_0x3fed7c=new _0x6b42ac(_0x3ef081['locale'],_0x485a63,_0x3252f7,{'disableComments':this['_disableComments'],'editorConfig':_0x4bd5b9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bd5b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x493fae(_0x4bd5b9['get']('locale')),'CommentView':_0x4bd5b9['get']('comments')['CommentView'],'CommentsListView':_0x229e05,'CommentThreadInputView':_0x253e05}),_0x3fed7c['acceptButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x3fed7c['discardButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x174a79=_0x5ac528['createAnnotationView'](this['editor']['locale'],_0x3fed7c),_0x174a79['bind']('isDirty')['to'](_0x3fed7c,'isDirty'),_0x174a79['bind']('length')['to'](_0x3fed7c),_0x174a79['bind']('type')['to'](_0x3fed7c,'type',_0x1b8ce6=>'suggestion-'+_0x1b8ce6),this['_annotationViews']['set'](_0x485a63['id'],_0x174a79));const _0x2a527c=_0x45f409['createCommentThreadController'](_0x485a63['commentThread'],_0x3fed7c),_0x3f948c=new oe(_0x3ef081,_0x485a63,_0x3fed7c,_0x2a527c),_0x4c6302=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x43a294=>_0x43a294['isInContent']);_0x3fed7c['descriptionParts']=_0x3ef081['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c6302),this['_suggestionToController']['set'](_0x485a63,_0x3f948c),this['_viewToController']['set'](_0x3fed7c,_0x3f948c);const _0x2436c4=_0x5ac528['createAnnotation']({'view':_0x174a79,'target':()=>{const _0x29b43f=[],_0x5739b2=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x5f031a=>_0x5f031a['isInContent']);for(const _0x4f4020 of _0x5739b2)_0x29b43f['push'](..._0x4f4020['getMarkers']());return _0x2e8ef6(_0x3ef081['editing'],_0x29b43f);},'type':()=>'suggestion-'+_0x3f948c['view']['type']});_0x45f409['_bindAnnotationToEditors'](_0x3fed7c,_0x2436c4),_0x5ac528['add'](_0x2436c4),_0x170179['registerAnnotation'](_0x2436c4);}['_destroyController'](_0x498f8d){const _0x108569=this['editor']['plugins']['get']('CommentsRepository'),_0x32bd68=this['editor']['plugins']['get']('Annotations'),_0x22d472=this['_suggestionToController']['get'](_0x498f8d),_0x479612=_0x22d472['view'],_0x16a105=_0x32bd68['getByInnerView'](_0x479612);_0x108569['_unbindEditors'](_0x479612),_0x16a105&&_0x32bd68['remove'](_0x16a105),this['_suggestionToController']['delete'](_0x498f8d),this['_viewToController']['delete'](_0x479612),_0x22d472['destroy']();}['_updateController'](_0x32e75d){if(!_0x32e75d['isInContent']||!this['_suggestionToController']['has'](_0x32e75d))return;const _0x12f379=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a04a=this['_suggestionToController']['get'](_0x32e75d),_0x233b90=_0x32e75d['getAllAdjacentSuggestions']();_0x25a04a['view']['descriptionParts']=_0x12f379['descriptionFactory']['getDescriptions'](_0x233b90);}['destroy'](){for(const _0x548032 of this['_suggestionToController']['keys']())this['_destroyController'](_0x548032);for(const _0x2fb0ae of this['_annotationViews']['values']())_0x2fb0ae['mainView']['destroy']();super['destroy']();}}function ae(_0x277ee2){return'model'in _0x277ee2;}class k extends _0xeaacfa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39ac65){this['editor']['plugins']['get'](p)['adapter']=_0x39ac65;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38341e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38341e);}['getSuggestions']({skipNotAttached:_0x32a4df=!0x1,toJSON:_0x2be2c0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x32a4df,'toJSON':_0x2be2c0});}['getSuggestion'](_0x4c56be){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c56be);}}const T=['Pagination'];class P extends _0xeaacfa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x410218=this['editor'];if(_0x410218['config']['define']('trackChangesData.editorCreator',_0x2cffd7=>{const _0x2bbb23=_0x410218['model']['document']['getRootNames']()['reduce']((_0x59e936,_0x47365b)=>(_0x59e936[_0x47365b]='',_0x59e936),{});return _0x410218['constructor']['create'](_0x2bbb23,_0x2cffd7);}),'function'!=typeof _0x410218['config']['get']('trackChangesData')['editorCreator'])throw new _0x4054be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x26c9d9){return N(this['editor'],!0x0,_0x26c9d9);}['getDataWithDiscardedSuggestions'](_0x1dcaed){return N(this['editor'],!0x1,_0x1dcaed);}}class D extends _0xeaacfa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3b57b8){super(_0x3b57b8),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(_0x541537){return void 0x0!==_0x541537['getRootsAttributes'];}async function N(_0x4b5b61,_0x4b2588,_0x419d60){const _0x8892bb=_0x5663ba(_0x4b5b61,T);_0x8892bb['plugins']['push'](p,D),_0x8892bb['rootsAttributes']=v(_0x4b5b61)?_0x4b5b61['getRootsAttributes']():void 0x0;const _0x2c9b66=document['createDocumentFragment'](),_0x5022f0=_0x4b5b61['config']['get']('trackChangesData')['editorCreator'],_0x471e46=await _0x5022f0(_0x8892bb,()=>function(_0x3d5ea3){const _0xa25048=document['createElement']('div');return _0x3d5ea3['appendChild'](_0xa25048),_0xa25048;}(_0x2c9b66));!function(_0x1b10e8,_0x393e2e){const _0x2d4fc8=_0x1b10e8['model']['document']['getRootNames']()['reduce']((_0x1d9a3d,_0x1bcd98)=>(_0x1d9a3d[_0x1bcd98]=_0x1b10e8['data']['get']({'rootName':_0x1bcd98}),_0x1d9a3d),{}),_0x33af8c=_0x1b10e8['plugins']['get']('Users')['users']['map'](_0xe76b08=>({'id':_0xe76b08['id'],'name':_0xe76b08['name']})),_0x1f854a=_0x1b10e8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1814df=_0x1b10e8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ae619=_0x393e2e['plugins']['get']('Users'),_0x349de4=_0x393e2e['plugins']['get']('TrackChangesEditing'),_0x296416=_0x393e2e['plugins']['get']('CommentsRepository');for(const _0x4c9949 of _0x33af8c)_0x1ae619['getUser'](_0x4c9949['id'])||_0x1ae619['addUser'](_0x4c9949);_0x1ae619['me']||_0x1ae619['useAnonymousUser']();for(const _0x3dd804 of _0x1f854a)_0x349de4['addSuggestionData'](_0x3dd804);for(const _0x3a7d8c of _0x1814df)_0x296416['addCommentThread'](_0x3a7d8c);_0x393e2e['data']['set'](_0x2d4fc8);}(_0x4b5b61,_0x471e46),_0x471e46['execute'](_0x4b2588?'acceptAllSuggestions':'discardAllSuggestions');const _0x33ff85=v(_0x471e46)?_0x471e46['getFullData'](_0x419d60):_0x471e46['data']['get'](_0x419d60);return await _0x471e46['destroy'](),_0x33ff85;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|