@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241001.0 → 0.0.0-nightly-20241002.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x9ee3f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9c7a50,_0x1c3bef){super(),this['id']=_0x1c3bef['id'],this['type']=_0x1c3bef['type'],this['subType']=_0x1c3bef['subType']||null,this['author']=_0x1c3bef['author'],this['creator']=_0x1c3bef['creator']||_0x1c3bef['author'],this['isExternal']=Boolean(_0x1c3bef['attributes']&&_0x1c3bef['attributes']['@external']),this['data']=null,this['_model']=_0x9c7a50,this['_onAccept']=_0x1c3bef['onAccept'],this['_onDiscard']=_0x1c3bef['onDiscard'],this['_onAttributesChange']=_0x1c3bef['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c3bef['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 _0x40c681=this;for(;_0x40c681['previous'];)_0x40c681=_0x40c681['previous'];return _0x40c681;}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'](_0x4aa50b){this['_markerNames']['add'](_0x4aa50b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a4ce4=>this['_model']['markers']['get'](_0x2a4ce4))['filter'](_0x12aa20=>_0x12aa20);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xca71f2=>{for(const _0x32171d of this['getMarkers']())_0xca71f2['removeMarker'](_0x32171d);}),this['_markerNames']['clear']();}['removeMarker'](_0x533b92){this['_model']['change'](_0x338625=>{_0x338625['removeMarker'](_0x533b92);}),this['_markerNames']['delete'](_0x533b92);}['addRange'](_0x53a0fd){const _0x5bf126='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5bf126),this['_model']['change'](_0x2e2b14=>{_0x2e2b14['addMarker'](_0x5bf126,{'range':_0x53a0fd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3876c0){for(const _0x3c8ea1 of this['getRanges']())if(_0x3c8ea1['isIntersecting'](_0x3876c0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50fe85=>_0x50fe85['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x498772,_0x3c9ba4)=>[..._0x498772,..._0x3c9ba4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1b8872=this['getRanges']();if(0x1!=_0x1b8872['length'])return null;const _0x548cba=_0x1b8872[0x0],_0x29e5b4=_0x548cba['start']['nodeAfter'],_0x2ddc76=_0x548cba['end']['nodeBefore'];return _0x29e5b4 instanceof _0x355757?_0x29e5b4!=_0x2ddc76?null:_0x29e5b4: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 _0x569dbe=[];let _0x13a17a=this['head'];for(;_0x13a17a;)_0x569dbe['push'](_0x13a17a),_0x13a17a=_0x13a17a['next'];return _0x569dbe;}['setAttribute'](_0x2f88df,_0x5854da){const _0x27400e=_0x4d2352(this['attributes']);_0x394d02(_0x27400e,_0x2f88df,_0x5854da),_0x3bc98d(_0x27400e,this['attributes'])||(this['attributes']=_0x27400e,this['_onAttributesChange'](_0x27400e));}['removeAttribute'](_0x419338){const _0x205984=_0x4d2352(this['attributes']);_0x4bd5bb(_0x205984,_0x419338),_0x3bc98d(_0x205984,this['attributes'])||(this['attributes']=_0x205984,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 _0x2b4c20()['substr'](0x1,0x5);}}function o(_0x1869fe,_0x2ff590,_0x4ab5ce){const t=_0x1869fe['t'];switch(_0x2ff590){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',_0x4ab5ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ab5ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ab5ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ab5ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ab5ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ab5ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ab5ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ab5ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ab5ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ab5ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ab5ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ab5ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ab5ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ab5ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ab5ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ab5ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ab5ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ab5ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ab5ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ab5ce);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ab5ce);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x4ab5ce);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x4ab5ce);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x4ab5ce);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff590;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c0bd9,_0x554eba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c0bd9,this['_locale']=_0x554eba;}['getDescriptions'](_0x1483c2){const _0x39c2cd=[],_0x3b4ad2=new Set(),_0x1b7f6b=new Set();for(let _0x131fc1=0x0;_0x131fc1<_0x1483c2['length'];_0x131fc1++){const _0x57b49c=_0x1483c2[_0x131fc1];if(!_0x57b49c['isInContent'])continue;const _0x25ffc7=this['_handleCustomCallbackDescription'](_0x57b49c);if(_0x25ffc7){if(null!=_0x57b49c['subType']){if(_0x3b4ad2['has'](_0x57b49c['subType']))continue;_0x3b4ad2['add'](_0x57b49c['subType']);}_0x39c2cd['push'](_0x25ffc7);}else{if('attribute'!=_0x57b49c['type'])'insertion'!=_0x57b49c['type']&&'deletion'!=_0x57b49c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x39c2cd,_0x57b49c,_0x1483c2[_0x131fc1+0x1]);else{const _0x2b06c3=_0x57b49c['data']['key'];if(_0x1b7f6b['has'](_0x2b06c3))continue;_0x1b7f6b['add'](_0x57b49c['data']['key']),_0x2b06c3==m?this['_handleRenameSuggestionDescription'](_0x39c2cd,_0x57b49c):this['_handleAttributeSuggestionDescription'](_0x39c2cd,_0x57b49c);}}}return this['_resolveDescriptionItems'](_0x39c2cd);}['registerDescriptionCallback'](_0xff96f8){this['_customCallbacks']['push'](_0xff96f8);}['registerElementLabel'](_0x1156ab,_0xf5fd05,_0x5639b9=_0x408fd7['normal']){'function'==typeof _0x1156ab?_0x5d21a8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1156ab,'label':_0xf5fd05,'priority':_0x5639b9}):this['_itemLabels']['set'](_0x1156ab,_0xf5fd05);}['registerAttributeLabel'](_0x3a80c3,_0x22913d){this['_attributeLabels']['set'](_0x3a80c3,_0x22913d);}['getItemLabel'](_0x1e28e4,_0x125d88=0x1){let _0x44b649;for(const _0x400ea9 of this['_itemLabelsCallbacks'])if(_0x400ea9['matchingCallback'](_0x1e28e4)){_0x44b649=_0x400ea9['label'];break;}return _0x44b649||(_0x44b649=this['_itemLabels']['get'](_0x1e28e4['name'])),_0x44b649?_0x44b649(_0x125d88):0x1!==_0x125d88?_0x125d88+'\x20'+_0x1e28e4['name']+'s':''+_0x1e28e4['name'];}['_addDescriptionItems'](_0x25f79f,_0x21ce77){const _0x4dd1d3=_0x21ce77['getFirstRange']()['getWalker'](),_0x2577d2='insertion'==_0x21ce77['type']?'add':'remove';for(const _0x2f1f88 of _0x4dd1d3){const _0x165722=_0x2f1f88['item'],_0x33f28f=_0x25f79f[_0x25f79f['length']-0x1];if(_0x165722['is']('$textProxy'))_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),_0x33f28f&&'text'==_0x33f28f['type']?_0x33f28f[_0x2577d2]+=_0x165722['data']:_0x25f79f['push']({'type':'text','add':'add'==_0x2577d2?_0x165722['data']:'','remove':'remove'==_0x2577d2?_0x165722['data']:''});else{if(this['_schema']['isObject'](_0x165722)){const _0x2a3cf7=_0x165722;if(_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),'elementEnd'==_0x2f1f88['type'])continue;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'Object'&&_0x33f28f['element']['name']==_0x2a3cf7['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'Object','element':_0x2a3cf7,'quantity':0x1}),_0x4dd1d3['skip'](_0x2c9784=>!('elementEnd'==_0x2c9784['type']&&_0x2c9784['item']==_0x165722));}else{if(this['_schema']['checkChild'](_0x165722,'$text')||_0x165722['is']('element','softBreak')){const _0x55de4c=_0x165722;if('add'==_0x2577d2&&'elementStart'==_0x2f1f88['type']||'remove'==_0x2577d2&&'elementEnd'==_0x2f1f88['type'])continue;if(_0x33f28f&&-0x1==_0x33f28f['type']['indexOf']('Container')){'text'==_0x33f28f['type']&&(_0x33f28f[_0x2577d2]+='\x0a');continue;}let _0x41eee0;if(_0x41eee0='add'==_0x2577d2?_0x55de4c['nextSibling']&&!this['_schema']['isObject'](_0x55de4c['nextSibling'])?_0x55de4c['nextSibling']:null:_0x55de4c['previousSibling']&&!this['_schema']['isObject'](_0x55de4c['previousSibling'])?_0x55de4c['previousSibling']:null,_0x55de4c['isEmpty']||_0x41eee0&&_0x41eee0['isEmpty']){const _0x3b775c=_0x41eee0&&_0x41eee0['isEmpty']?_0x41eee0:_0x55de4c;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'EmptyContainer'&&_0x33f28f['element']['name']==_0x3b775c['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'EmptyContainer','element':_0x3b775c,'quantity':0x1});}else _0x25f79f['push']({'type':_0x2577d2+'Container','element':_0x55de4c});}}}}}['_resolveDescriptionItems'](_0x3b0900){const _0x25aa61=this['_locale'],_0x36dcd7=[],_0x2ccaec=[],_0x33f967=[];for(const _0x166dc5 of _0x3b0900)switch(_0x166dc5['type']){case'text':if(_0x166dc5['add']=_0x166dc5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x166dc5['remove']=_0x166dc5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x166dc5['add']&&''!=_0x166dc5['remove']){_0x36dcd7['push']({'type':'replace','content':o(_0x25aa61,'REPLACE_TEXT',['\x22'+_0x166dc5['remove']+'\x22','\x22'+_0x166dc5['add']+'\x22'])});continue;}if(null!=_0x166dc5['add']['match'](/^ +$/)){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['add']['length']))});continue;}if(null!=_0x166dc5['remove']['match'](/^ +$/)){_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['remove']['length']))});continue;}if(''!=_0x166dc5['add']){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0','\x22'+_0x166dc5['add']+'\x22')});continue;}_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0','\x22'+_0x166dc5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addContainer':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Split:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeContainer':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Merge:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addFormat':_0x2ccaec['push'](_0x166dc5['key']);continue;case'removeFormat':_0x33f967['push'](_0x166dc5['key']);continue;default:_0x36dcd7['push'](_0x166dc5);}if(_0x2ccaec['length']){const _0x1d2b68=_0x2ccaec['map'](_0x34ef41=>this['_attributeLabels']['has'](_0x34ef41)?this['_attributeLabels']['get'](_0x34ef41):_0x34ef41)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d2b68)});}if(_0x33f967['length']){const _0x3ca9c3=_0x33f967['map'](_0x4ec983=>this['_attributeLabels']['has'](_0x4ec983)?this['_attributeLabels']['get'](_0x4ec983):_0x4ec983)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3ca9c3)});}return _0x36dcd7;}['_handleCustomCallbackDescription'](_0x5e28ee){for(const _0x1e99a6 of this['_customCallbacks']){const _0x2f79f3=_0x1e99a6(_0x5e28ee);if(_0x2f79f3&&'type'in _0x2f79f3)return _0x2f79f3;}}['_handleAttributeSuggestionDescription'](_0x2baab3,_0x2570d2){const _0x2b39aa=_0x2570d2['data'],_0x3112e2=void 0x0===_0x2b39aa['newValue']?'removeFormat':'addFormat';_0x2baab3['push']({'type':_0x3112e2,'key':_0x2b39aa['key']});}['_handleRenameSuggestionDescription'](_0x5df15d,_0x384d3a){_0x5df15d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x384d3a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53d26d,_0x58934a,_0x1f0313){if(this['_addDescriptionItems'](_0x53d26d,_0x58934a),_0x1f0313&&_0x1f0313['getFirstRange']()&&!_0x58934a['getFirstRange']()['end']['isEqual'](_0x1f0313['getFirstRange']()['start'])){const _0x5486fa=_0x53d26d[_0x53d26d['length']-0x1],_0x4d4c5f='insertion'==_0x58934a['type']?'add':'remove';_0x5486fa&&'text'==_0x5486fa['type']&&(_0x5486fa[_0x4d4c5f]+='\x0a');}}}class V extends _0x328234{['afterInit'](){const _0x17c528=this['editor'],_0x39f7b9=_0x17c528['plugins']['get']('TrackChangesEditing');_0x17c528['commands']['get']('showAIAssistant')&&_0x39f7b9['enableCommand']('showAIAssistant');}}class U extends _0x328234{['afterInit'](){const _0x407c78=this['editor'],_0x4b2a5a=_0x407c78['locale'];if(!_0x407c78['plugins']['has']('AlignmentEditing'))return;const _0x1b3618=_0x407c78['plugins']['get']('TrackChangesEditing');_0x1b3618['enableDefaultAttributesIntegration']('alignment'),_0x1b3618['registerBlockAttribute']('alignment'),_0x1b3618['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b2a5a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440ea5=this['editor'],_0x9e44e0=_0x440ea5['locale'];_0x440ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376258=>{if('formatBlock'!=_0x376258['type'])return;const {data:_0x47e65d}=_0x376258;if(_0x47e65d&&'alignment'==_0x47e65d['commandName']){const _0x1aecd3=_0x47e65d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x9e44e0,'*Format:*\x20%0',function(_0x281a97){switch(_0x281a97){case'left':return o(_0x9e44e0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x9e44e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x9e44e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x9e44e0,'FORMAT_JUSTIFY_TEXT');}}(_0x1aecd3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x328234{['afterInit'](){const _0x552ccc=this['editor'],_0x28f0ff=_0x552ccc['plugins']['get']('TrackChangesEditing'),_0x2c5ffe=_0x552ccc['locale'];for(const _0x1a90a7 of ti){if(!_0x552ccc['plugins']['has'](_0x1a90a7))continue;const _0x4698f1=_0x1a90a7['slice'](0x0,-0x7)['toLowerCase'](),_0x434c50='FORMAT_'+_0x4698f1['toUpperCase']();_0x28f0ff['enableDefaultAttributesIntegration'](_0x4698f1),_0x28f0ff['registerInlineAttribute'](_0x4698f1),_0x28f0ff['descriptionFactory']['registerAttributeLabel'](_0x4698f1,o(_0x2c5ffe,_0x434c50));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51260d=this['editor'],_0x103af9=_0x51260d['locale'],_0x4270c7=_0x51260d['plugins']['get']('TrackChangesEditing');function _0x464c18(_0x41b5e0,_0x590b87){_0x4270c7['descriptionFactory']['registerDescriptionCallback'](_0x589c4c=>{if('formatInline'!=_0x589c4c['type'])return;const {data:_0x3918a0}=_0x589c4c;return _0x3918a0&&_0x3918a0['commandName']===_0x41b5e0?_0x3918a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x103af9,'*Format:*\x20%0',_0x590b87)}:{'type':'format','content':o(_0x103af9,'*Remove\x20format:*\x20%0',_0x590b87)}:void 0x0;});}_0x464c18('bold',o(_0x103af9,'FORMAT_BOLD')),_0x464c18('italic',o(_0x103af9,'FORMAT_ITALIC')),_0x464c18('underline',o(_0x103af9,'FORMAT_UNDERLINE')),_0x464c18('code',o(_0x103af9,'FORMAT_CODE')),_0x464c18('strikethrough',o(_0x103af9,'FORMAT_STRIKETHROUGH')),_0x464c18('subscript',o(_0x103af9,'FORMAT_SUBSCRIPT')),_0x464c18('superscript',o(_0x103af9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x328234{['afterInit'](){const _0x4861b8=this['editor'],_0x4448b6=_0x4861b8['locale'];if(!_0x4861b8['plugins']['has']('BlockQuoteEditing'))return;const _0x5d01aa=_0x4861b8['plugins']['get']('TrackChangesEditing'),_0x34773a=this['editor']['commands']['get']('blockQuote');_0x5d01aa['enableCommand']('blockQuote',(_0x5d4fd3,_0x437466={})=>{const _0x45a7df=this['editor']['model']['document']['selection'],_0x212b06=_0x437466&&void 0x0!==_0x437466['forceValue']?_0x437466['forceValue']:!_0x34773a['value'];let _0x12a9ac=[];if(_0x212b06){const _0x77b9c7=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x129209=>oo(_0x129209)||function(_0x3bf220,_0x481425){const _0x2b3e90=_0x481425['checkChild'](_0x3bf220['parent'],'blockQuote'),_0xcebe76=_0x481425['checkChild'](['$root','blockQuote'],_0x3bf220);return _0x2b3e90&&_0xcebe76;}(_0x129209,this['editor']['model']['schema']));_0x12a9ac=to(_0x77b9c7,_0x4861b8['model']);}else{const _0xd76021=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x1f6d85=>oo(_0x1f6d85));_0x12a9ac=to(_0xd76021,_0x4861b8['model']);}_0x4861b8['model']['change'](()=>{for(const _0x2a75c9 of _0x12a9ac)_0x5d01aa['markBlockFormat'](_0x2a75c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x212b06}]});});}),_0x5d01aa['descriptionFactory']['registerDescriptionCallback'](_0x280625=>{const {data:_0x5c7e6c}=_0x280625;if(_0x5c7e6c&&'blockQuote'==_0x5c7e6c['commandName']){const _0x1b74a9=o(_0x4448b6,'ELEMENT_BLOCK_QUOTE');return _0x5c7e6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4448b6,'*Set\x20format:*\x20%0',_0x1b74a9)}:{'type':'format','content':o(_0x4448b6,'*Remove\x20format:*\x20%0',_0x1b74a9)};}});}}function oo(_0x4231b1){return'blockQuote'==_0x4231b1['parent']['name'];}class L extends _0x328234{['afterInit'](){const _0x3d1d28=this['editor'];_0x3d1d28['plugins']['has']('CaseChange')&&(_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x328234{['afterInit'](){const _0x1876ba=this['editor'];_0x1876ba['commands']['get']('ckbox')&&_0x1876ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x328234{['afterInit'](){const _0x4ed767=this['editor'];if(!_0x4ed767['plugins']['has']('CodeBlock'))return;const _0x44100e=_0x4ed767['plugins']['get']('TrackChangesEditing'),_0x303ec3=_0x4ed767['locale'],_0x20d9d8=_0x4ed767['config']['get']('codeBlock')['languages'],_0x53da85=_0x4ed767['commands']['get']('codeBlock');_0x44100e['enableCommand']('indentCodeBlock'),_0x44100e['enableCommand']('outdentCodeBlock'),_0x44100e['enableCommand']('codeBlock',(_0x5bf2fa,_0x17a816={})=>{const _0x1e01df=_0x4ed767['model'],_0x563693=_0x4ed767['model']['document']['selection'],_0x48adc9=_0x17a816&&void 0x0!==_0x17a816['forceValue']?_0x17a816['forceValue']:!_0x53da85['value'];let _0xda6451;_0x17a816['language']||(_0x17a816['language']=_0x20d9d8[0x0]['language']),_0xda6451=_0x48adc9?Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x41ac4a=>eo(_0x41ac4a)||function(_0x5c4c14,_0x4474f7){if(_0x5c4c14['is']('rootElement')||_0x4474f7['isLimit'](_0x5c4c14))return!0x1;return _0x4474f7['checkChild'](_0x5c4c14['parent'],'codeBlock');}(_0x41ac4a,_0x1e01df['schema'])):Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x152ac1=>eo(_0x152ac1));const _0x2a983e=to(_0xda6451,_0x1e01df);_0x1e01df['change'](()=>{for(const _0x288b8e of _0x2a983e)_0x44100e['markBlockFormat'](_0x288b8e,{'commandName':'codeBlock','commandParams':[{..._0x17a816,'forceValue':_0x48adc9}],'formatGroupId':'blockName'});});}),(_0x44100e['descriptionFactory']['registerElementLabel']('codeBlock',_0x4877d8=>o(_0x303ec3,'ELEMENT_CODE_BLOCK',_0x4877d8)),_0x44100e['descriptionFactory']['registerDescriptionCallback'](_0x591ae1=>{if('formatBlock'!=_0x591ae1['type'])return;const _0x51c9ba=_0x303ec3['t'],{data:_0x42faf7}=_0x591ae1;if(!_0x42faf7||'codeBlock'!=_0x42faf7['commandName'])return;const _0x3be676=_0x42faf7['commandParams'][0x0]['language'],_0x3c344c=_0x51c9ba(_0x20d9d8['find'](_0x535f9f=>_0x535f9f['language']===_0x3be676)['label'])['toLowerCase']();return _0x42faf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303ec3,'*Set\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c344c+')')}:{'type':'format','content':o(_0x303ec3,'*Remove\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x78d299){return'codeBlock'==_0x78d299['name'];}class q extends _0x328234{['afterInit'](){const _0x20cf6a=this['editor'];if(!_0x20cf6a['plugins']['has']('CommentsEditing'))return;_0x20cf6a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x145108,_0x207245,_0x56c362){const _0x464ae2=[];for(const _0x898567 of _0x207245['getItems']())_0x898567['hasAttribute'](_0x145108)&&_0x464ae2['push'](_0x56c362['createRangeOn'](_0x898567));return _0x464ae2;}function _e(_0x42212e,_0x164b0b,{showActiveMarker:_0x33f255=!0x0}={}){const _0x1ca10d=_0x42212e['plugins']['get']('TrackChangesEditing');return(_0x50f819,_0x9b869f,_0x372bf9)=>{if(!_0x372bf9['consumable']['test'](_0x9b869f['markerRange'],_0x50f819['name']))return;const _0x4504ec=_0x9b869f['markerRange']['getWalker'](),_0x3e6d4e=_0x9b869f['markerRange']['start'],_0x23832c=_0x42212e['model']['schema'];let _0x300446=null,_0x46872d=null,_0x48b8d0=!0x1,_0x23c8a9=!0x1;for(const _0x39a901 of _0x4504ec){const _0x595eb4=_0x39a901['item'];_0x48b8d0=_0x48b8d0||_0x23832c['isContent'](_0x595eb4);const _0x4bd72e=_0x372bf9['mapper']['toViewElement'](_0x595eb4);if(_0x4bd72e&&_0x4bd72e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39a901['type']&&(_0x23832c['isBlock'](_0x595eb4)&&!_0x23832c['isLimit'](_0x595eb4)&&(_0x595eb4['nextSibling']||_0x3e6d4e['isAtEnd']?_0x300446&&_0x300446['parent']==_0x595eb4||(_0x300446=_0x595eb4,_0x203a3a(_0x39a901['previousPosition']),_0x23c8a9=!0x0):_0x46872d=_0x46872d||_0x39a901['previousPosition']));}function _0x203a3a(_0x2071d7){const {authorId:_0xb3cf9a}=_0x1ca10d['_splitMarkerName'](_0x9b869f['markerName']),_0x199c81=_0x372bf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x164b0b,'data-author-id':_0xb3cf9a}),_0x120ce4=_0x372bf9['mapper']['toViewPosition'](_0x2071d7);_0x33f255&&_0x1ca10d['activeMarkers']['includes'](_0x9b869f['markerName'])&&_0x372bf9['writer']['addClass']('ck-suggestion-marker--active',_0x199c81),_0x372bf9['writer']['insert'](_0x120ce4,_0x199c81),_0x372bf9['mapper']['bindElementToMarker'](_0x199c81,_0x9b869f['markerName']);}_0x48b8d0||_0x23c8a9||!_0x46872d||_0x203a3a(_0x46872d);};}class z extends _0x328234{static get['requires'](){return[_0x131b3f];}['init'](){const _0x5a6efd=this['editor'],_0x4709fa=_0x5a6efd['plugins']['get']('TrackChangesEditing');_0x4709fa['enableCommand']('delete');const _0x7aedb5=_0x5a6efd['commands']['get']('deleteForward');_0x4709fa['enableCommand']('deleteForward',(_0x379ab2,_0x25dea3={})=>{const _0x189079=_0x5a6efd['model']['createSelection'](_0x5a6efd['model']['document']['selection']);_0x189079['isCollapsed']&&_0x5a6efd['model']['modifySelection'](_0x189079,{'direction':'forward','unit':_0x25dea3['unit']});const _0x70cec8=_0x189079['getFirstRange'](),_0x440bdb=_0xf41792['fromRange'](_0x70cec8);let _0x16305b;_0x379ab2(_0x25dea3),_0x16305b='$graveyard'==_0x440bdb['root']['rootName']?_0x5a6efd['model']['createRange'](_0x70cec8['start']):_0x5a6efd['model']['createRange'](_0x440bdb['start'],_0x440bdb['end']),_0x440bdb['detach'](),_0x5a6efd['model']['enqueueChange'](_0x7aedb5['buffer']['batch'],_0x364e9c=>{_0x7aedb5['buffer']['lock'](),_0x364e9c['setSelection'](_0x364e9c['createRange'](_0x16305b['end'])),_0x7aedb5['buffer']['unlock']();});}),_0x5a6efd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5a6efd,'merge'),{'priority':'high'}),_0x5a6efd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x9ad387,_0xcb4e52,_0x47505d)=>{_0x47505d['options']['showSuggestionHighlights']&&_e(_0x5a6efd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x9ad387,_0xcb4e52,_0x47505d);},{'priority':'high'}),_0x5a6efd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x128859,_0x7849ba,_0x51664c)=>{const _0x3134e5=_0x51664c['mapper']['markerNameToElements'](_0x7849ba['markerName']);if(_0x3134e5){for(const _0x365127 of _0x3134e5)_0x365127['is']('uiElement')&&(_0x51664c['mapper']['unbindElementFromMarkerName'](_0x365127,_0x7849ba['markerName']),_0x51664c['writer']['remove'](_0x365127));}},{'priority':'high'});}}class K extends _0x328234{['afterInit'](){const _0x26a80e=this['editor'];if(!_0x26a80e['plugins']['has']('ListEditing'))return;const _0x3de7c5=_0x26a80e['locale'],_0x4d09d5=_0x26a80e['plugins']['get']('TrackChangesEditing'),_0x4cce2f=_0x26a80e['plugins']['has']('TodoListEditing'),_0x3b3633=!!_0x26a80e['config']['get']('list.multiBlock');function _0x1797af(_0x1a63b0){return{'type':'format','content':''+o(_0x3de7c5,'*Set\x20format:*\x20%0',_0x1a63b0)};}function _0x23b960(_0x1156b3){return{'type':'format','content':''+o(_0x3de7c5,'*Remove\x20format:*\x20%0',_0x1156b3)};}_0x4d09d5['enableDefaultAttributesIntegration']('numberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('bulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('indentList'),_0x4d09d5['enableDefaultAttributesIntegration']('outdentList'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d09d5['registerBlockAttribute']('listItemId'),_0x4d09d5['registerBlockAttribute']('listType'),_0x4d09d5['registerBlockAttribute']('listIndent'),_0x3b3633&&(_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4cce2f&&(_0x4d09d5['enableDefaultAttributesIntegration']('todoList'),_0x4d09d5['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d09d5['registerBlockAttribute']('todoListChecked'),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x4f938f=>{const {data:_0x2dac9a}=_0x4f938f;if(_0x2dac9a&&'todoListChecked'==_0x2dac9a['key'])return{'type':'format','content':_0x2dac9a['newValue']?o(_0x3de7c5,'*Check\x20item*'):o(_0x3de7c5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x77040=>{if(_0x77040['batch']['isUndo'])return!0x1;let _0x1dfa8d=!0x1;const _0xb4b577=_0x4d09d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5ed0=>'todoListChecked'===_0x4d09d5['_getAttributeKey'](_0x4f5ed0));for(const _0x58ef1f of _0xb4b577){'todo'!=_0x58ef1f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d09d5['_findSuggestions'](_0x58ef1f['getFirstRange'](),'attribute')['find'](_0x85b325=>'listType'===_0x4d09d5['_getAttributeKey'](_0x85b325['suggestion']))||(_0x77040['removeMarker'](_0x58ef1f['getFirstMarker']()),_0x1dfa8d=!0x0));}return _0x1dfa8d;})),_0x4d09d5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3de7c5,'FORMAT_INDENT'));const _0x260691={'type':'format','content':''};_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x2d83aa=>{const {data:_0xbc000d}=_0x2d83aa;if(!_0xbc000d||'listType'!=_0xbc000d['key'])return;let _0x4ca0a5=_0x2d83aa['head'];for(;_0x4ca0a5;){if(_0x4ca0a5['data']&&(('listStyle'==_0x4ca0a5['data']['key']||'listMarkerStyle'==_0x4ca0a5['data']['key'])&&(_0x4ca0a5['data']['newValue']&&'default'!=_0x4ca0a5['data']['newValue']||'default'!=_0x4ca0a5['data']['oldValue']&&!_0xbc000d['newValue'])||!_0x3b3633&&_0x4ca0a5['data']['key']==m))return _0x260691;_0x4ca0a5=_0x4ca0a5['next'];}if(null==_0xbc000d['newValue'])switch(_0xbc000d['oldValue']){case'bulleted':return _0x23b960(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23b960(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23b960(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}switch(_0xbc000d['newValue']){case'bulleted':return _0x1797af(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1797af(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1797af(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x1b51e3=>{const {data:_0x333e3a}=_0x1b51e3;if(_0x333e3a&&'listIndent'==_0x333e3a['key'])return null==_0x333e3a['newValue']||null==_0x333e3a['oldValue']&&0x0==_0x333e3a['newValue']?_0x260691:void 0x0;}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x3b6e32=>{if('attribute'!=_0x3b6e32['type'])return;const {data:_0x266416}=_0x3b6e32;if(!_0x266416||'listItemId'!=_0x266416['key'])return;const _0x5bc816=Ee(_0x3b6e32);return'newValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Split:*\x20list\x20item')}:_0x260691;}),_0x26a80e['model']['document']['registerPostFixer'](_0x263e8c=>this['listItemIdFixer'](_0x263e8c)),_0x26a80e['model']['document']['registerPostFixer'](_0x14160c=>this['noTrackChangesFixer'](_0x14160c)),_0x26a80e['model']['document']['on']('change:data',(_0x4c39c2,_0x1e9fa2)=>{if(_0x1e9fa2['isUndo']||!_0x1e9fa2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x334d02){if(_0x334d02['batch']['isUndo']||!_0x334d02['batch']['isLocal'])return!0x1;let _0x59eaf2=!0x1;const _0x212166=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e471f=>_0x1e471f['data']&&'listItemId'==_0x1e471f['data']['key'])['filter'](_0x3a64ea=>_0x3a64ea['data']['newValue']&&_0x3a64ea['data']['oldValue']);for(const _0x4e1fb7 of _0x212166)Ee(_0x4e1fb7)||(_0x334d02['removeMarker'](_0x4e1fb7['getFirstMarker']()),_0x59eaf2=!0x0);return _0x59eaf2;}['noTrackChangesFixer'](_0x59288b){if(_0x59288b['batch']['isUndo']||!_0x59288b['batch']['isLocal'])return!0x1;const _0x1248de=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1248de['trackChangesCommand']['value'])return!0x1;let _0x4d0457=!0x1;const _0x32e824=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46427a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27fbee=>'attribute'==_0x27fbee['type'])['filter'](_0x22438c=>_0x32e824['includes'](_0x22438c['attributeKey']));if(0x0==_0x46427a['length'])return _0x4d0457;for(const _0x4d331b of _0x46427a){const _0x50d591=_0x1248de['_findSuggestions'](_0x4d331b['range'],'attribute')['filter'](_0x3c7e5d=>!_0x3c7e5d['meta']['isNextTo'])['map'](_0x3a63f8=>_0x3a63f8['suggestion'])['filter'](_0x6a3ce9=>{const _0x46b541=_0x1248de['_getAttributeKey'](_0x6a3ce9);return _0x32e824['includes'](_0x46b541);});if(_0x50d591['length']){for(const _0x33fe8b of _0x50d591)_0x59288b['removeMarker'](_0x33fe8b['getFirstMarker']());_0x4d0457=!0x0;}}return _0x4d0457;}['assureChains'](){const _0x2a8ebd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581098=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33cc3e;const _0x5557b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39c0a3=>{if(_0x39c0a3['data']['oldRange']||!_0x39c0a3['data']['newRange'])return null;if(!_0x39c0a3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x87f24f}=_0x2a8ebd['_splitMarkerName'](_0x39c0a3['name']);if(!_0x2a8ebd['hasSuggestion'](_0x87f24f))return null;const _0x3127ef=_0x2a8ebd['getSuggestion'](_0x87f24f);return _0x581098['includes'](_0x3127ef['data']['key']);})['map'](_0x567a37=>{const {id:_0x36f801}=_0x2a8ebd['_splitMarkerName'](_0x567a37['name']),_0x1237c2=_0x2a8ebd['getSuggestion'](_0x36f801);return _0x33cc3e=_0x1237c2['attributes']['groupId'],_0x1237c2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5557b2['size'])return;const _0x2985b3=_0x2a8ebd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dba0b=>'attribute'==_0x1dba0b['type']&&_0x1dba0b['data']&&_0x581098['includes'](_0x1dba0b['data']['key'])&&_0x1dba0b['attributes']['groupId']!=_0x33cc3e)['map'](_0x1209cf=>({'listItem':_0x1209cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1209cf['attributes']['groupId']})),_0x56453c=new Set();for(const {groupId:_0x4a4531,listItem:_0x738256}of _0x2985b3)_0x5557b2['has'](_0x738256)&&_0x56453c['add'](_0x4a4531);for(const _0x106a6f of _0x2a8ebd['getSuggestions']())_0x56453c['has'](_0x106a6f['attributes']['groupId'])&&_0x106a6f['setAttribute']('groupId',_0x33cc3e);}['_supportLegacySuggestions'](){const _0x2e580f=this['editor'],_0x30df29=_0x2e580f['locale'],_0x7fef6b=_0x2e580f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x7fef6b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x987560,_0x5de21b){const _0x5cba58=[];for(let _0x1c516f of _0x987560)_0x1c516f['start']['nodeAfter']===_0x1c516f['end']['parent']&&(_0x1c516f=_0x2e580f['model']['createRange'](_0x2e580f['model']['createPositionAt'](_0x1c516f['start']['nodeAfter'],0x0))),_0x5cba58['push'](_0x1c516f);_0x2e580f['model']['change'](_0x1c8f32=>{const _0x44aea9=_0x2e580f['model']['document']['selection'],_0x58c879=Array['from'](_0x44aea9['getRanges']())['map'](_0x2ad36f=>_0xf41792['fromRange'](_0x2ad36f));_0x1c8f32['setSelection'](_0x5cba58),_0x2e580f['commands']['get'](_0x5de21b['commandName'])['refresh'](),_0x5de21b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e580f['execute'](_0x5de21b['commandName'],..._0x5de21b['commandParams']),_0x1c8f32['setSelection'](_0x58c879);for(const _0x47017c of _0x58c879)_0x47017c['detach']();});}),_0x7fef6b['descriptionFactory']['registerElementLabel'](function(_0x126d29){const _0x59cad3=!_0x2e580f['model']['schema']['isObject'](_0x126d29),_0x3e8e7a=_0x126d29['previousSibling'],_0x2ad84f=_0x126d29['nextSibling'],_0x1b2663=_0x126d29['getAttribute']('listItemId'),_0x540b8b=!_0x3e8e7a||_0x3e8e7a['getAttribute']('listItemId')!==_0x1b2663,_0xea601f=!_0x2ad84f||_0x2ad84f['getAttribute']('listItemId')!==_0x1b2663;return _0x59cad3&&Boolean(_0x1b2663)&&_0x540b8b&&_0xea601f;},_0x442525=>o(_0x30df29,'ELEMENT_LIST_ITEM',_0x442525));}['_registerLegacyDescription'](){const _0x58f532=this['editor'],_0x4ce307=_0x58f532['locale'];function _0x47e99a(_0x11825a){const _0x44dca2=_0x58f532['commands']['get']('bulletedList')['value'],_0x5909e0=_0x58f532['commands']['get']('numberedList')['value'];return'numberedList'===_0x11825a?_0x44dca2:_0x5909e0;}_0x58f532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a5bc){if('formatBlock'!=_0x48a5bc['type'])return;const {data:_0x3dcf95}=_0x48a5bc;if(!_0x3dcf95)return;let _0x4b1f20,_0x18ed21,_0x432c76,_0x2fd728;switch(_0x3dcf95['commandName']){case'bulletedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4b1f20='*Indent:*\x20%0',_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4b1f20=function(_0x157d1d){const _0x4e5c73=_0x157d1d['getFirstRange']();let _0x2547d7=_0x4e5c73['start']['nodeAfter'];for(;_0x2547d7&&_0x4e5c73['containsItem'](_0x2547d7);){if(_0x2547d7['getAttribute']('listIndent')>0x0)return!0x1;_0x2547d7=_0x2547d7['nextSibling'];}return!0x0;}(_0x48a5bc)?o(_0x4ce307,'*Format:*\x20remove\x20from\x20%0',o(_0x4ce307,function(_0x63c3ea){return'ELEMENT_'+_0x63c3ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a5bc))):o(_0x4ce307,'*Outdent:*\x20%0',o(_0x4ce307,'ELEMENT_LIST_ITEM')),_0x18ed21={'type':'format','content':_0x4b1f20};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3dcf95['multipleBlocks']&&(_0x4b1f20='*Merge:*\x20%0',_0x18ed21={'type':'deletion','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))});}return _0x18ed21;});}}function Ee(_0x3b6a29){let _0x1b073c=_0x3b6a29['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1b073c;){const _0x2dd3ad=_0x1b073c['getAttribute']('listItemId');if(!_0x2dd3ad)return!0x1;if(_0x2dd3ad==_0x3b6a29['data']['newValue'])return'newValue';if(_0x2dd3ad==_0x3b6a29['data']['oldValue'])return'oldValue';_0x1b073c=_0x1b073c['previousSibling'];}return!0x1;}class pe extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b6137=this['editor']['config']['get']('list.properties'),_0x26072a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6137['styles']&&(_0x26072a['enableDefaultAttributesIntegration']('listStyle'),_0x26072a['registerBlockAttribute']('listStyle')),_0x3b6137['reversed']&&(_0x26072a['enableDefaultAttributesIntegration']('listReversed'),_0x26072a['registerBlockAttribute']('listReversed')),_0x3b6137['startIndex']&&(_0x26072a['enableDefaultAttributesIntegration']('listStart'),_0x26072a['registerBlockAttribute']('listStart'));const _0x43d0a6={'type':'format','content':''};_0x26072a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11df2e=this['editor']['locale'];_0x26072a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11df2e,'FORMAT_LIST_REVERSED')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x30fc97=>{const {data:_0x264c8e}=_0x30fc97;if(_0x264c8e&&'listReversed'==_0x264c8e['key'])return null==_0x264c8e['newValue']||0x0==_0x264c8e['newValue']&&null==_0x264c8e['oldValue']?_0x43d0a6:void 0x0;}),_0x26072a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11df2e,'FORMAT_LIST_START')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x570e5e=>{const {data:_0x3a89f6}=_0x570e5e;if(_0x3a89f6&&'listStart'==_0x3a89f6['key'])return null==_0x3a89f6['newValue']||0x1==_0x3a89f6['newValue']&&null==_0x3a89f6['oldValue']?_0x43d0a6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bf963=>{if(_0x4bf963['batch']['isUndo'])return!0x1;let _0x34520b=!0x1;const _0x20cfbf=_0x26072a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bfc58=>{const _0x2419bd=_0x26072a['_getAttributeKey'](_0x4bfc58);return'listStart'==_0x2419bd||'listReversed'==_0x2419bd;});for(const _0x4c0bb9 of _0x20cfbf){const _0xb3997d=_0x4c0bb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xb3997d||'customNumbered'==_0xb3997d)continue;_0x26072a['_findSuggestions'](_0x4c0bb9['getFirstRange'](),'attribute')['find'](_0x132850=>'listType'==_0x26072a['_getAttributeKey'](_0x132850['suggestion']))||(_0x4bf963['removeMarker'](_0x4c0bb9['getFirstMarker']()),_0x34520b=!0x0);}return _0x34520b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58f45c){const _0x3b2d4c=this['editor']['locale'],{data:_0x40bd76}=_0x58f45c,_0x28a54f={'type':'format','content':''};if(!_0x40bd76||'listStyle'!=_0x40bd76['key'])return;if(!_0x40bd76['oldValue'])return'default'==_0x40bd76['newValue']?_0x28a54f:{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};if(!_0x40bd76['newValue']){if('default'==_0x40bd76['oldValue'])return _0x28a54f;let _0x55dcf7=_0x58f45c['head'];for(;_0x55dcf7;){if(_0x55dcf7['data']&&'listType'==_0x55dcf7['data']['key']&&_0x55dcf7['data']['newValue'])return _0x28a54f;_0x55dcf7=_0x55dcf7['next'];}return{'type':'format','content':''+o(_0x3b2d4c,'*Remove\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['oldValue'])))};}if('default'!=_0x40bd76['newValue'])return{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};let _0x3b4897=_0x58f45c['head'];for(;_0x3b4897;){if(_0x3b4897['data']&&'listType'==_0x3b4897['data']['key']&&_0x3b4897['data']['newValue']&&_0x3b4897['data']['oldValue'])return _0x28a54f;_0x3b4897=_0x3b4897['next'];}return{'type':'format','content':o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,'ELEMENT_'+_0x58f45c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13e302=this['editor'],_0x240214=_0x13e302['locale'];_0x13e302['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1138ae=>{if('formatBlock'!=_0x1138ae['type'])return;const {data:_0x13a418}=_0x1138ae;if(!_0x13a418)return;let _0x436bfa,_0x40baee;switch(_0x13a418['commandName']){case'listStyle':_0x436bfa='*Change\x20to:*\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,o(_0x240214,this['_getTranslationKeyForListStyle'](_0x13a418['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436bfa=_0x13a418['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa)};break;case'listStart':_0x436bfa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,_0x13a418['commandParams'][0x0]['startIndex'])};}return _0x40baee;});}['_getTranslationKeyForListStyle'](_0x369fbe){return'ELEMENT_'+function(_0x284c2a){if(ye['includes'](_0x284c2a))return'bulleted';if(Se['includes'](_0x284c2a))return'numbered';return null;}(_0x369fbe)['toUpperCase']()+'_LIST_'+_0x369fbe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x328234{static get['requires'](){return[_0x5e4ac3];}['init'](){const _0x4f7635=this['editor'],_0x15ba43=_0x4f7635['plugins']['get']('TrackChangesEditing'),_0x658cce=_0x4f7635['commands']['get']('enter');_0x15ba43['enableCommand']('enter',()=>{_0x4f7635['model']['change'](_0x48a15a=>{const _0x5d736c=_0x4f7635['model']['document']['selection'],_0x2d48a5=_0x5d736c['getFirstPosition'](),_0x3a6c6f=_0xf41792['fromRange'](_0x5d736c['getFirstRange']());if(_0x658cce['enterBlock'](_0x48a15a)){const _0x39eb19=_0x4f7635['model']['createPositionAt'](_0x2d48a5['parent']['nextSibling'],0x0),_0x4b26fe=_0x48a15a['createRange'](_0x2d48a5,_0x39eb19);_0x15ba43['markInsertion'](_0x4b26fe);}else _0x48a15a['setSelection'](_0x48a15a['createRange'](_0x3a6c6f['end']));_0x3a6c6f['detach'](),_0x658cce['fire']('afterExecute',{'writer':_0x48a15a});});}),_0x4f7635['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4f7635,'split'),{'priority':'high'}),_0x4f7635['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fc592,_0x492212,_0x2bb509)=>{const _0x4cf80d=_0x2bb509['mapper']['markerNameToElements'](_0x492212['markerName']);if(_0x4cf80d){for(const _0x1e2374 of _0x4cf80d)_0x1e2374['hasClass']('ck-suggestion-marker-split')&&(_0x2bb509['mapper']['unbindElementFromMarkerName'](_0x1e2374,_0x492212['markerName']),_0x2bb509['writer']['remove'](_0x1e2374));}},{'priority':'high'}),_0x4f7635['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13626f,_0x495989,_0x1bc098)=>{_0x1bc098['options']['showSuggestionHighlights']&&_e(_0x4f7635,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13626f,_0x495989,_0x1bc098);},{'priority':'high'});}}class X extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10808c=this['editor']['plugins']['get']('TrackChangesEditing');_0x10808c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10808c['enableCommand']('findNext'),_0x10808c['enableCommand']('findPrevious'),_0x10808c['enableCommand']('replace'),_0x10808c['enableCommand']('replaceAll');}['handleFindCommand'](_0x54b8b7,_0x2b778d,_0x537837={}){const _0x9dae62=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54b8b7(_0x9adcba=>{let _0x3a3609=('string'==typeof _0x2b778d?_0x9dae62['findByTextCallback'](_0x2b778d,_0x537837):_0x2b778d)(_0x9adcba);Array['isArray'](_0x3a3609)&&(_0x3a3609={'results':_0x3a3609,'searchText':'string'==typeof _0x2b778d?_0x2b778d:''});const _0x49fb59=_0x3a3609['results']['filter'](_0x4e61e5=>!0x1===this['_isInDeletionRange'](_0x4e61e5,_0x9adcba['item']));return{..._0x3a3609,'results':_0x49fb59};},_0x537837);}['_isInDeletionRange'](_0x10158b,_0x33fdb3){const _0x407656=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['start']),this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['end']));for(const _0x1bb302 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x407656['getIntersection'](_0x1bb302['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x328234{['afterInit'](){const _0x5462b1=this['editor']['locale'],_0x593919=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d788f,commandName:_0xaf5d7f}of ro)this['editor']['plugins']['has'](_0x3d788f)&&(_0x593919['enableDefaultAttributesIntegration'](_0xaf5d7f),_0x593919['registerInlineAttribute'](_0xaf5d7f));_0x593919['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5462b1,'FORMAT_FONT_SIZE')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5462b1,'FORMAT_FONT_FAMILY')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5462b1,'FORMAT_FONT_COLOR')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5462b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a384=this['editor'],_0x31b0b0=_0x38a384['locale'];_0x38a384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd40a03=>{const _0x3d51fe=_0x31b0b0['t'];if('formatInline'!=_0xd40a03['type'])return;const {data:_0x403084}=_0xd40a03;if(null!=_0x403084){if('fontSize'==_0x403084['commandName']){const _0x7cbc75=_0x403084['commandParams'][0x0]['value'];if(_0x7cbc75){const _0x3bc84e=_0x3d51fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3a3c5f=>_0x3a3c5f['model']==_0x7cbc75)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20size:*\x20%0',_0x3bc84e)};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x403084['commandName']){const _0x26d951=_0x403084['commandParams'][0x0]['value'];return _0x26d951?{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20family:*\x20%0',_0x26d951)}:{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x403084['commandName']){const _0x2560c8=_0x403084['commandParams'][0x0]['value'];if(_0x2560c8){const _0x6de905=_0x4bf0f0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44458b=>_0x44458b['model']==_0x2560c8);let _0x147e14=_0x2560c8,_0x33c8ad='';return _0x6de905&&(_0x147e14=_0x6de905['label'],_0x33c8ad=_0x3d51fe(_0x147e14)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20color:*\x20%0',_0x33c8ad)['trim'](),'color':{'value':_0x2560c8,'title':_0x33c8ad||_0x147e14}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x403084['commandName']){const _0x4ad53c=_0x403084['commandParams'][0x0]['value'];if(_0x4ad53c){const _0x382b85=_0x4bf0f0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x488a16=>_0x488a16['model']==_0x4ad53c);let _0x260c9e=_0x4ad53c,_0x4290db='';return _0x382b85&&(_0x260c9e=_0x382b85['label'],_0x4290db=_0x3d51fe(_0x260c9e)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20background\x20color:*\x20%0',_0x4290db)['trim'](),'color':{'value':_0x4ad53c,'title':_0x4290db||_0x260c9e}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x328234{['afterInit'](){const _0x2f11ef=this['editor'],_0x3c34c2=_0x2f11ef['plugins']['get']('TrackChangesEditing'),_0x3e8c80=_0x2f11ef['commands']['get']('copyFormat'),_0x34b105=_0x2f11ef['commands']['get']('pasteFormat');_0x3e8c80&&_0x34b105&&(_0x3c34c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c34c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1772fb=this['editor'],_0x2eedd8=_0x1772fb['locale'];_0x1772fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b1ba=>{if('formatBlock'!=_0x47b1ba['type']&&'formatInline'!=_0x47b1ba['type'])return;const {data:_0x1d27ab}=_0x47b1ba;if(_0x1d27ab&&'pasteFormat'===_0x1d27ab['commandName']){const _0x275af8=[],_0x50a84e=_0x1d27ab['commandParams'][0x0];for(const [_0x341066,_0x1dd38e]of Object['entries'](_0x50a84e))_0x275af8['push'](so(_0x1772fb,_0x341066,_0x1dd38e));return _0x275af8['length']?{'type':'format','content':o(_0x2eedd8,'*Set\x20format\x20to:*\x20%0',_0x275af8['join'](',\x20'))}:{'type':'format','content':o(_0x2eedd8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12a4d5,_0x2beb91,_0x22b7e2){const _0x177014=_0x12a4d5['locale']['t'],_0x2ac029=_0x2beb91['split'](/(?=[A-Z])/)['join']('\x20'),_0x13723f=_0x177014(_0x2ac029['charAt'](0x0)['toUpperCase']()+_0x2ac029['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22b7e2)return _0x13723f;if('fontColor'===_0x2beb91||'fontBackgroundColor'===_0x2beb91){const _0x3f44e7=_0x4bf0f0(_0x12a4d5['config']['get']('fontColor.colors'))['find'](_0x2b5c5f=>_0x2b5c5f['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x3f44e7?_0x177014(_0x3f44e7['label'])['toLowerCase']():_0x22b7e2)+')';}if('fontSize'===_0x2beb91&&isNaN(parseFloat(_0x22b7e2))){const _0x34c25e=_0x12a4d5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12a4d5['config']['get']('fontSize.options'))['find'](_0x333df2=>_0x333df2['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x34c25e?_0x177014(_0x34c25e['title'])['toLowerCase']():_0x22b7e2)+')';}return _0x13723f+'\x20('+_0x22b7e2+')';}class tt extends _0x328234{['_headingOptions'];['afterInit'](){const _0x3f1792=this['editor'];if(!_0x3f1792['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f1792['config']['get']('heading.options');const _0x3e5f67=_0x3f1792['locale'],_0x2944e5=_0x3f1792['plugins']['get']('TrackChangesEditing');_0x2944e5['enableDefaultAttributesIntegration']('heading');for(const _0x3bb9df of this['_headingOptions'])'paragraph'!=_0x3bb9df['model']&&_0x2944e5['descriptionFactory']['registerElementLabel'](_0x3bb9df['model'],_0x282ff5=>{const _0x307c44=this['_getHeadingLevel'](_0x3bb9df['model']);return null!==_0x307c44?_0xf38ba7(_0x282ff5,_0x307c44):_0x157cea(_0x282ff5,_0x3bb9df['title']);});function _0xf38ba7(_0x437c36,_0xadf101){return o(_0x3e5f67,'ELEMENT_HEADING',[_0x437c36,_0xadf101]);}function _0x157cea(_0x1c18a9,_0x1cf647){return o(_0x3e5f67,'ELEMENT_HEADING_CUSTOM',[_0x1c18a9,_0x1cf647]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcdd7=this['editor'],_0x3b6885=_0x1fcdd7['locale'];function _0x542371(_0x4fbe63,_0x5d380b){return o(_0x3b6885,'ELEMENT_HEADING_CUSTOM',[_0x4fbe63,_0x5d380b]);}_0x1fcdd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eb94d=>{if('formatBlock'!=_0x1eb94d['type'])return;const {data:_0x564445}=_0x1eb94d;if(_0x564445&&'heading'==_0x564445['commandName']){const _0xd8986e=_0x564445['commandParams'][0x0]['value'],_0x835f5e=this['_getHeadingLevel'](_0xd8986e);if(null!==_0x835f5e)return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',(_0x2160a3=0x1,_0x3aab2f=_0x835f5e,o(_0x3b6885,'ELEMENT_HEADING',[_0x2160a3,_0x3aab2f])))};const _0xb9545b=this['_headingOptions']['find'](_0x481af5=>_0x481af5['model']===_0xd8986e)['title'];return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',_0x542371(0x1,_0xb9545b))};}var _0x2160a3,_0x3aab2f;});}['_getHeadingLevel'](_0x4f8f3c){const _0x179955=_0x4f8f3c['match'](/^heading(\d+)/);if(_0x179955)return _0x179955[0x1];const _0x4ce5c9=this['_headingOptions']?.['find'](_0x13ed16=>_0x13ed16['model']==_0x4f8f3c);if(_0x4ce5c9&&_0x4ce5c9['view']){const _0x3aae96=_0x4ce5c9['view'],_0x38a6da=(_0x3aae96['name']??_0x3aae96)['match'](/^h(\d+)/);if(_0x38a6da)return _0x38a6da[0x1];}return null;}}class et extends _0x328234{['afterInit'](){const _0x235084=this['editor'];if(!_0x235084['plugins']['has']('HighlightEditing'))return;const _0x410f44=_0x235084['plugins']['get']('TrackChangesEditing'),_0x56a65e=_0x235084['locale'];_0x410f44['enableDefaultAttributesIntegration']('highlight'),_0x410f44['registerInlineAttribute']('highlight'),_0x410f44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56a65e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4736a4=this['editor'],_0xa2ae82=_0x4736a4['locale'];_0x4736a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545cf1=>{if('formatInline'!=_0x545cf1['type'])return;const {data:_0x4c87f3}=_0x545cf1;if(_0x4c87f3&&'highlight'==_0x4c87f3['commandName']){const _0x17557b=_0xa2ae82['t'],_0x33a9d3=_0x4c87f3['commandParams'][0x0]['value'];if(_0x33a9d3){const _0x41c424=_0x4736a4['config']['get']('highlight.options')['find'](_0x29e96c=>_0x29e96c['model']==_0x33a9d3),_0x35ef0e=_0x17557b(_0x41c424['title'])['toLowerCase']();return{'type':'format','content':o(_0xa2ae82,'*Set\x20highlight:*\x20%0',_0x35ef0e),'color':{'value':_0x41c424['color'],'title':_0x41c424['title']}};}return{'type':'format','content':o(_0xa2ae82,'*Remove\x20highlight*',o(_0xa2ae82,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x328234{['afterInit'](){const _0x1c1b56=this['editor'];if(!_0x1c1b56['plugins']['has']('HorizontalLineEditing'))return;_0x1c1b56['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50e07e=_0x1c1b56['plugins']['get']('TrackChangesEditing'),_0x22b37e=_0x1c1b56['locale'];_0x50e07e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3dd055=>o(_0x22b37e,'ELEMENT_HORIZONTAL_LINE',_0x3dd055)),_0x1c1b56['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4224a8,{writer:_0x4600f4,options:_0x4c1234})=>{if(!_0x4c1234['showSuggestionHighlights'])return null;const _0x2fbcc9=_0x4600f4['createContainerElement']('div'),_0x3d67a2=_0x4600f4['createEmptyElement']('hr');return _0x4600f4['addClass']('ck-horizontal-line',_0x2fbcc9),_0x4600f4['insert'](_0x4600f4['createPositionAt'](_0x2fbcc9,0x0),_0x3d67a2),_0x2fbcc9;},'converterPriority':'high'});}}class st extends _0x328234{['afterInit'](){const _0x16810f=this['editor'];if(!_0x16810f['plugins']['has']('HtmlEmbed'))return;const _0x26c49c=_0x16810f['plugins']['get']('TrackChangesEditing'),_0x2b0c45=_0x16810f['locale'];_0x26c49c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d9403=>o(_0x2b0c45,'ELEMENT_HTML_EMBED',_0x5d9403)),_0x26c49c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26c49c['registerBlockAttribute']('value'),_0x26c49c['descriptionFactory']['registerDescriptionCallback'](_0x159e82=>{if('attribute'!=_0x159e82['type'])return;const {data:_0x217c08}=_0x159e82;if(_0x217c08&&'value'==_0x217c08['key']&&_0x159e82['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57c5a4=o(_0x2b0c45,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b0c45,'*Change\x20%0\x20content*',_0x57c5a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5c3c=this['editor'],_0xf983c1=_0x2d5c3c['locale'];_0x2d5c3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e66d6=>{if('formatBlock'!=_0x4e66d6['type'])return;const {data:_0x5ca97e}=_0x4e66d6;if(_0x5ca97e&&'htmlEmbed'==_0x5ca97e['commandName']){const _0x25c889=o(_0xf983c1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf983c1,'*Change\x20%0\x20content*',_0x25c889)};}});}}class nt extends _0x328234{['afterInit'](){const _0x59d849=this['editor'];if(!_0x59d849['plugins']['has']('ImageEditing'))return;const _0x8e4505=_0x59d849['plugins']['get']('TrackChangesEditing'),_0x169484=_0x59d849['plugins']['get']('ImageUtils'),_0x2f5bdd=_0x59d849['locale'];_0x8e4505['enableCommand']('insertImage'),_0x8e4505['descriptionFactory']['registerElementLabel']('imageBlock',_0x576db2=>o(_0x2f5bdd,'ELEMENT_IMAGE',_0x576db2)),_0x8e4505['descriptionFactory']['registerElementLabel']('imageInline',_0x2c06e7=>o(_0x2f5bdd,'ELEMENT_INLINE_IMAGE',_0x2c06e7)),_0x8e4505['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f5bdd,'ELEMENT_CAPTION')),_0x59d849['plugins']['has']('ImageUploadEditing')&&_0x8e4505['enableCommand']('uploadImage'),_0x59d849['plugins']['has']('ImageBlockEditing')&&_0x59d849['plugins']['has']('ImageInlineEditing')&&(_0x8e4505['enableCommand']('imageTypeInline',(_0xc5a3e,_0x44fd48)=>{const _0x2af183=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']);_0x59d849['model']['change'](()=>{_0x8e4505['markBlockFormat'](_0x2af183,{'commandName':'imageTypeInline','commandParams':[_0x44fd48]},[],'convertBlockImageToInline');});}),_0x8e4505['enableCommand']('imageTypeBlock',(_0x3fb6c5,_0x382015)=>{_0x59d849['model']['change'](_0x56af31=>{let _0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0xaa957=_0x3cc3dd['fromPosition'](_0x2d6090['start'],'toPrevious'),_0x798228=_0x3cc3dd['fromPosition'](_0x2d6090['end'],'toNext');_0x8e4505['forceDefaultExecution'](()=>_0x3fb6c5(_0x382015)),_0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0x4f6068=_0x56af31['createRange'](_0xaa957,_0x798228);_0xaa957['detach'](),_0x798228['detach'](),_0x8e4505['markBlockFormat'](_0x97561f,{'commandName':'imageTypeInline','commandParams':[_0x382015]},[],'convertInlineImageToBlock'),_0x4f6068['start']['isBefore'](_0x2d6090['start'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x4f6068['start'],_0x2d6090['start']),'convertInlineImageToBlock'),_0x2d6090['end']['isBefore'](_0x4f6068['end'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x2d6090['end'],_0x4f6068['end']),'convertInlineImageToBlock');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e4505['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a6f8])=>{const _0x3ab9d9=_0x8e4505['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x547a75=_0x52a6f8['start'],_0x383fb3=_0x52a6f8['end'];const _0x172ee9=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x547a75,'backward'),_0x1ad1af=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x383fb3,'forward');_0x172ee9['isCollapsed']&&(_0x547a75=_0x172ee9['start']),_0x1ad1af['isCollapsed']&&(_0x383fb3=_0x1ad1af['end']),_0x3ab9d9([_0x59d849['model']['createRange'](_0x547a75,_0x383fb3)]);}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5093df),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5093df)),_0x59d849['plugins']['has']('ImageCaptionEditing')&&(_0x8e4505['enableCommand']('toggleImageCaption',(_0x51a07d,_0x2ec693)=>{const _0x1d8862=_0x59d849['plugins']['get']('ImageCaptionUtils');let _0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a);_0x59d849['model']['change'](()=>{if(_0x20fe3e)return void _0x8e4505['markDeletion'](_0x59d849['model']['createRangeOn'](_0x20fe3e));const _0x15bf37=_0x169484['isBlockImage'](_0x1d2c9a);_0x51a07d(_0x2ec693),_0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a),_0x8e4505['markInsertion'](_0x59d849['model']['createRangeOn'](_0x20fe3e),_0x15bf37?null:'imageCaption');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5093df));const _0x1fd8ba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x572eb7(_0x44ea80,_0x22f389){const _0x26f5ba=_0x1fd8ba['findIndex'](({type:_0x46afcb,subType:_0x148bb8})=>_0x44ea80['type']==_0x46afcb&&_0x44ea80['subType']==_0x148bb8),_0x3d7a39=_0x1fd8ba['findIndex'](({type:_0x5bf781,subType:_0x3b5d07})=>_0x22f389['type']==_0x5bf781&&_0x22f389['subType']==_0x3b5d07);if(_0x26f5ba<0x0||_0x3d7a39<0x0)return!0x1;const _0xee1f7a=_0x44ea80['getFirstRange'](),_0x11c01d=_0x22f389['getFirstRange']();if((0x0==_0x26f5ba||0x1==_0x26f5ba)&&0x2==_0x3d7a39&&_0xee1f7a['isIntersecting'](_0x11c01d))return!0x0;if(0x2==_0x26f5ba&&0x3==_0x3d7a39){const _0x30df54=_0x8e4505['_findSuggestions'](_0xee1f7a,'insertion')['filter'](({suggestion:_0x8e9b8e,meta:_0x5714f4})=>_0x5714f4['isOwn']&&'convertInlineImageToBlock'==_0x8e9b8e['subType']);if(_0x30df54['length']>0x1&&_0x11c01d['end']['isEqual'](_0xee1f7a['start']))return!0x0;if(0x1==_0x30df54['length']&&(_0xee1f7a['start']['isEqual'](_0x11c01d['end'])||_0xee1f7a['end']['isEqual'](_0x11c01d['start'])))return!0x0;}if(0x3==_0x26f5ba&&0x3==_0x3d7a39&&_0xee1f7a['start']['isBefore'](_0x11c01d['start'])){const _0x5f20ea=_0xee1f7a['end']['nodeAfter'],_0x10d72d=_0x11c01d['start']['nodeBefore'];return _0x169484['isBlockImage'](_0x5f20ea)&&_0x5f20ea===_0x10d72d;}return!0x1;}function _0x5093df(_0xdd4dfb,_0x31a083){return _0x572eb7(_0xdd4dfb,_0x31a083)?[_0xdd4dfb,_0x31a083]:_0x572eb7(_0x31a083,_0xdd4dfb)?[_0x31a083,_0xdd4dfb]:null;}_0x59d849['plugins']['has']('ImageResize')&&(_0x8e4505['enableDefaultAttributesIntegration']('resizeImage'),_0x8e4505['registerBlockAttribute']('resizedWidth'),_0x8e4505['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f5bdd,'FORMAT_IMAGE_SIZE'))),_0x59d849['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e4505['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e4505['registerBlockAttribute']('alt')),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x5752fe=>{if(!!_0x1fd8ba['find'](({type:_0x51b2ed,subType:_0x3b6acf})=>_0x5752fe['type']==_0x51b2ed&&_0x5752fe['subType']==_0x3b6acf))return _0x5752fe['previous']?{}:void 0x0;}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x1e9808=>{if('insertion'==_0x1e9808['type']||'deletion'==_0x1e9808['type']){const _0x2ad6f5=_0x1e9808['getContainedElement']();if(_0x2ad6f5&&_0x2ad6f5['is']('element','caption'))return{'type':'insertion'==_0x1e9808['type']?'addObject':'removeObject','element':_0x2ad6f5,'quantity':0x1};}}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x4afdf5=>'formatBlock'==_0x4afdf5['type']&&'convertInlineImageToBlock'==_0x4afdf5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4afdf5['type']&&'convertBlockImageToInline'==_0x4afdf5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0xb7b490=>{if('attribute'!=_0xb7b490['type'])return;const {data:_0xca953}=_0xb7b490;if(!_0xca953||'alt'!=_0xca953['key'])return;const _0x340f5b=_0xca953['newValue'];return _0x340f5b?{'type':'format','content':o(_0x2f5bdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x340f5b+'\x22')}:{'type':'format','content':o(_0x2f5bdd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1903bd=this['editor'],_0x28a5a8=_0x1903bd['locale'];_0x1903bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b261f=>{if('formatBlock'!=_0x1b261f['type']&&'formatInline'!=_0x1b261f['type'])return;const {data:_0x4fed45}=_0x1b261f;if(_0x4fed45){if('imageTextAlternative'==_0x4fed45['commandName']){const _0x37991b=_0x4fed45['commandParams'][0x0]['newValue'];return _0x37991b?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37991b+'\x22')}:{'type':'format','content':o(_0x28a5a8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4fed45['commandName']){const _0x320670=_0x4fed45['commandParams'][0x0]['width'];return _0x320670?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20width:*\x20%0',_0x320670)}:{'type':'format','content':o(_0x28a5a8,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bba04=this['editor']['locale'],_0x147c4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x147c4c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x147c4c['registerBlockAttribute']('src'),_0x147c4c['descriptionFactory']['registerDescriptionCallback'](_0x4682a6=>{if('attribute'!=_0x4682a6['type'])return;const {data:_0x4077b9}=_0x4682a6;return _0x4077b9&&'src'==_0x4077b9['key']?_0x4077b9['newValue']&&_0x4077b9['oldValue']?{'type':'format','content':o(_0x4bba04,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x350106=this['editor']['plugins']['get']('TrackChangesEditing');_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd2ea=this['editor'],_0x2b1323=_0x3cd2ea['locale'];_0x3cd2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abdbe=>{if('formatBlock'!=_0x4abdbe['type']&&'formatInline'!=_0x4abdbe['type'])return;const {data:_0x8ba1fb}=_0x4abdbe;if(!_0x8ba1fb||'replaceImageSource'!=_0x8ba1fb['commandName'])return;return{'type':'format','content':o(_0x2b1323,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x328234{['afterInit'](){const _0x4d3f2c=this['editor'];if(!_0x4d3f2c['plugins']['has']('ImageStyleEditing'))return;const _0x1a8b15=_0x4d3f2c['plugins']['get']('TrackChangesEditing'),_0x3bf344=_0x4d3f2c['plugins']['get']('ImageUtils'),_0x363772={};_0x1a8b15['enableCommand']('imageStyle',(_0x181e39,_0x16fa7b)=>{const _0x352eb3=_0x4d3f2c['plugins']['get']('Users')['me'],_0x4f1a70=_0x4d3f2c['commands']['get']('imageStyle');let _0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x5ee253=_0x4f1a70['value'];if(_0x5ee253==_0x16fa7b['value'])return;const _0x2f3fd8={'commandName':'imageStyle','commandParams':[_0x16fa7b],'formatGroupId':_0x2b4c20()};_0x4d3f2c['model']['change'](()=>{if(_0x1a8b15['getSuggestions']()['filter'](_0x539353=>_0x539353['isInContent']&&_0x352eb3==_0x539353['author']&&('formatBlock'==_0x539353['type']||'formatInline'==_0x539353['type'])&&('imageStylePreApply'==_0x539353['subType']||'imageStylePostApply'==_0x539353['subType'])&&_0x539353['getFirstRange']()['isEqual'](_0x18f5a8))['forEach'](_0x573f00=>_0x1a8b15['discardSuggestion'](_0x573f00['head'])),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x4f1a70['refresh'](),_0x4d3f2c['commands']['get']('imageTypeInline')['refresh'](),_0x4d3f2c['commands']['get']('imageTypeBlock')['refresh'](),_0x5ee253=_0x4f1a70['value'],_0x5ee253!=_0x16fa7b['value'])return _0x3bf344['isInlineImage'](_0x568d99)&&_0x4f1a70['shouldConvertImageType'](_0x16fa7b['value'],_0x568d99)?(_0x181e39({..._0x16fa7b,'setImageSizes':!0x1}),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),void _0x1a8b15['markBlockFormat'](_0x568d99,{..._0x2f3fd8,'commandReversedParams':[{'value':_0x5ee253||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3bf344['isBlockImage'](_0x568d99)?_0x1a8b15['markBlockFormat'](_0x568d99,_0x2f3fd8,[],'imageStylePostApply'):_0x1a8b15['markInlineFormat'](_0x18f5a8,_0x2f3fd8,'imageStylePostApply'));});});for(const _0x5c1f8d of _0x4d3f2c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x363772[_0x5c1f8d['name']]=_0x5c1f8d['title']['toLowerCase']();_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x110b32])=>{_0x3bf344['setImageNaturalSizeAttributes'](_0x110b32['getContainedElement']());}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4df31a,_0x5b4aac)=>{_0x1a8b15['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4df31a,{'commandName':_0x5b4aac['commandName'],'commandParams':_0x5b4aac['commandReversedParams']});}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x172c29,_0x5e6d0e){if(_0x438a2d(_0x172c29,_0x5e6d0e))return[_0x172c29,_0x5e6d0e];if(_0x438a2d(_0x5e6d0e,_0x172c29))return[_0x5e6d0e,_0x172c29];return null;});const _0x47df21=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x438a2d(_0x538fe9,_0x49ac52){const _0x5e7e56=_0x47df21['findIndex'](({type:_0x27a76d,subType:_0x42e57f})=>_0x538fe9['type']==_0x27a76d&&_0x538fe9['subType']==_0x42e57f),_0x4c7c03=_0x47df21['findIndex'](({type:_0x11720c,subType:_0x4a858f})=>_0x49ac52['type']==_0x11720c&&_0x49ac52['subType']==_0x4a858f);if(_0x5e7e56<0x0||_0x4c7c03<0x0)return!0x1;const _0x3b38f5=_0x538fe9['getFirstRange'](),_0x5ca96e=_0x49ac52['getFirstRange']();if((0x0==_0x5e7e56||0x1==_0x5e7e56)&&0x2==_0x4c7c03&&_0x3b38f5['isIntersecting'](_0x5ca96e))return!0x0;if(0x2==_0x5e7e56&&0x3==_0x4c7c03){const _0x12e0d6=_0x1a8b15['_findSuggestions'](_0x3b38f5,'insertion')['filter'](({suggestion:_0x4bc67a,meta:_0x3f52e9})=>_0x3f52e9['isOwn']&&'convertInlineImageToBlock'==_0x4bc67a['subType']);if(_0x12e0d6['length']>0x1&&_0x5ca96e['end']['isEqual'](_0x3b38f5['start']))return!0x0;if(0x1==_0x12e0d6['length']&&(_0x3b38f5['start']['isEqual'](_0x5ca96e['end'])||_0x3b38f5['end']['isEqual'](_0x5ca96e['start'])))return!0x0;}if(0x3==_0x5e7e56&&0x3==_0x4c7c03&&_0x3b38f5['start']['isBefore'](_0x5ca96e['start'])){const _0x4d40b7=_0x3b38f5['end']['nodeAfter'],_0x29524c=_0x5ca96e['start']['nodeBefore'];return _0x3bf344['isBlockImage'](_0x4d40b7)&&_0x4d40b7===_0x29524c;}return!0x1;}_0x4d3f2c['model']['document']['registerPostFixer'](()=>{let _0x54d49f=!0x1;const _0x4b38a7=Array['from'](_0x4d3f2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x491070,data:_0x17d315}of _0x4b38a7){const {group:_0x20ba6b,type:_0x26b74b,subType:_0x4f41d7,id:_0x4228bc}=_0x1a8b15['_splitMarkerName'](_0x491070);if('suggestion'==_0x20ba6b&&_0x1a8b15['hasSuggestion'](_0x4228bc)){if('formatBlock'==_0x26b74b&&('imageStylePreApply'==_0x4f41d7||'imageStylePostApply'==_0x4f41d7)){const _0x528b96=_0x1a8b15['getSuggestion'](_0x4228bc);if(_0x17d315['newRange']){const _0x511893=_0x528b96['getFirstRange']()['getContainedElement']();if(_0x3bf344['isBlockImage'](_0x511893))continue;_0x1a8b15['discardSuggestion'](_0x528b96),_0x54d49f=!0x0;}}if('insertion'==_0x26b74b&&'imageCaption'==_0x4f41d7&&!_0x17d315['newRange']){const _0x1e4cd8=_0x1a8b15['getSuggestion'](_0x4228bc);_0x1e4cd8['next']&&_0x1e4cd8['next']['isInContent']&&(_0x1a8b15['discardSuggestion'](_0x1e4cd8['next']),_0x54d49f=!0x0);}}}return _0x54d49f;}),this['_registerLegacyDescription'](_0x363772);}['_registerLegacyDescription'](_0x137e19){const _0x313df1=this['editor'],_0x59727d=_0x313df1['locale'];_0x313df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a954=>{if('formatBlock'!=_0x18a954['type']&&'formatInline'!=_0x18a954['type'])return;const {data:_0x37b309}=_0x18a954;if(!_0x37b309||'imageStyle'!=_0x37b309['commandName'])return;const _0x30fbb3=_0x37b309['commandParams'][0x0]['value'];return _0x34c5cc('side'===_0x30fbb3?o(_0x59727d,'FORMAT_SIDE_IMAGE'):_0x137e19[_0x30fbb3]||_0x30fbb3);function _0x34c5cc(_0x58809d){return{'type':'format','content':o(_0x59727d,'*Format:*\x20%0',_0x58809d)};}});}}class at extends _0x328234{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x162eb8){super(_0x162eb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f547c=this['editor'],_0x580076=_0x1f547c['commands']['get']('importWord'),_0x19fd6b=_0x1f547c['commands']['get']('trackChanges');_0x580076&&(_0x580076['on']('execute',(_0x21939f,[,_0xa77f38])=>{this['_trackChangesValueDuringImport']=_0x19fd6b['value'],_0xa77f38['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x580076,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x580076,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x19fd6b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f547c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x571e9a,_0x5bfe09){const {suggestions:_0x59c137}=_0x5bfe09,_0x5a3d84=this['editor']['commands']['get']('trackChanges'),_0x4d0bdb=_0x5a3d84['value'];this['_trackChangesValueDuringImport']!==_0x4d0bdb&&(_0x5a3d84['execute'](),this['_trackChangesExecuted']=!0x0),_0x59c137&&_0x59c137['forEach'](({id:_0x5d23d8,type:_0x36e39a,author:_0x4ad871,created_at:_0x4cd476})=>{const _0xb265de={'id':_0x5d23d8,'type':_0x36e39a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ad871,'createdAt':_0x4cd476?new Date(_0x4cd476):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb265de);});}}class ct extends _0x328234{['afterInit'](){const _0x1e05db=this['editor'],_0x211d20=_0x1e05db['plugins']['get']('TrackChangesEditing');if(_0x1e05db['plugins']['has']('IndentEditing')&&(_0x211d20['enableCommand']('indent'),_0x211d20['enableCommand']('outdent')),_0x1e05db['plugins']['has']('IndentBlock')){for(const _0x232bdc of['indentBlock','outdentBlock'])_0x211d20['enableDefaultAttributesIntegration'](_0x232bdc);}const _0x13d9af=_0x1e05db['locale'];_0x211d20['registerBlockAttribute']('blockIndent'),_0x211d20['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x13d9af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3030ce=this['editor'],_0x14d965=_0x3030ce['locale'],_0x5cb987=_0x3030ce['plugins']['get']('TrackChangesEditing');_0x5cb987['descriptionFactory']['registerDescriptionCallback'](_0x535f05=>{if('formatBlock'!=_0x535f05['type'])return;const {data:_0x39c266}=_0x535f05;if(!_0x39c266)return;if('indentBlock'!=_0x39c266['commandName']&&'outdentBlock'!=_0x39c266['commandName'])return;const _0x2c03f0=_0x535f05['getItems']()[0x0],_0x23fed8=_0x5cb987['descriptionFactory']['getItemLabel'](_0x2c03f0);return'indentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Indent:*\x20%0',_0x23fed8)}:'outdentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Outdent:*\x20%0',_0x23fed8)}:void 0x0;});}}class ut extends _0x328234{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x328234{['afterInit'](){const _0x4f4cfa=this['editor'];if(!_0x4f4cfa['plugins']['has']('LinkEditing'))return;const _0x1cdbb0=_0x4f4cfa['plugins']['get']('TrackChangesEditing'),_0x41b9e9=_0x4f4cfa['commands']['get']('link');_0x1cdbb0['enableDefaultAttributesIntegration']('link'),_0x1cdbb0['enableDefaultAttributesIntegration']('unlink'),_0x1cdbb0['registerInlineAttribute']('linkHref');for(const _0x1056cf of _0x41b9e9['manualDecorators'])_0x1cdbb0['registerInlineAttribute'](_0x1056cf['id']),_0x1cdbb0['descriptionFactory']['registerAttributeLabel'](_0x1056cf['id'],'link\x20('+_0x1056cf['label']['toLowerCase']()+')');_0x1cdbb0['descriptionFactory']['registerDescriptionCallback'](_0x597ba4=>{if('attribute'!=_0x597ba4['type'])return;const {data:_0x544800}=_0x597ba4;if(!_0x544800||'linkHref'!=_0x544800['key'])return;const _0x5d8b82=_0x544800['newValue'],_0x54d872=_0x4f4cfa['locale'];return{'type':'format','content':null==_0x5d8b82?o(_0x54d872,'*Remove\x20link*'):o(_0x54d872,'*Set\x20link:*\x20%0','\x22'+_0x5d8b82+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa8e309=this['editor'],_0x5052b1=_0xa8e309['locale'];_0xa8e309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f48f9=>{if('formatInline'!=_0x5f48f9['type'])return;const {data:_0x31f5b1}=_0x5f48f9;if(_0x31f5b1){if('link'==_0x31f5b1['commandName']){const _0x32968b=_0x31f5b1['commandParams'][0x0];return{'type':'format','content':o(_0x5052b1,'*Set\x20link:*\x20%0','\x22'+_0x32968b+'\x22')};}return'unlink'==_0x31f5b1['commandName']?{'type':'format','content':o(_0x5052b1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x328234{['afterInit'](){const _0x3c7fa7=this['editor'],_0x22620e=_0x3c7fa7['locale'];if(!_0x3c7fa7['plugins']['has']('LegacyListEditing'))return;const _0x4366e5=_0x3c7fa7['plugins']['get']('TrackChangesEditing'),_0x43544c=_0x3c7fa7['plugins']['has']('LegacyTodoListEditing');function _0x349a19(_0x18dc0e){return()=>{const _0x49a18d=_0x3c7fa7['model']['document']['selection'],_0x137202=_0x3c7fa7['commands']['get'](_0x18dc0e);if(_0x137202['value'])return void _0x3c7fa7['execute']('paragraph',{});const _0x293960=_0x18dc0e['slice'](0x0,-0x4),_0x362517=function(_0x179fb0,_0xcca1c6,_0x2b797c){let _0x568ef3=Array['from'](_0x179fb0)['filter'](_0x4ab7da=>function(_0x1c21db,_0x2049d3){return _0x2049d3['checkChild'](_0x1c21db['parent'],'listItem')&&!_0x2049d3['isObject'](_0x1c21db);}(_0x4ab7da,_0x2b797c));_0x568ef3=_0x568ef3['filter'](_0x2f9233=>!_0x2f9233['is']('element','listItem')||_0x2f9233['getAttribute']('listType')!=_0xcca1c6);const _0x4ec30e=new Set();for(const _0x17277a of _0x568ef3)_0x17277a['is']('element','listItem')?_0x4ec30e['add'](fe(_0x17277a)):_0x4ec30e['add'](_0x17277a);return Array['from'](_0x4ec30e);}(_0x49a18d['getSelectedBlocks'](),_0x293960,_0x3c7fa7['model']['schema']);_0x3c7fa7['model']['change'](()=>{for(const _0x294703 of _0x362517)_0x4366e5['markBlockFormat'](_0x294703,{'commandName':_0x18dc0e,'commandParams':[{'forceValue':!_0x137202['value']}],'formatGroupId':'blockName'},ue(_0x294703));});};}function _0x6ebef(_0x366f6e){return()=>{const _0x36b902=function(_0xa260e9){let _0x58abe4=Array['from'](_0xa260e9);const _0x3183eb=_0x58abe4['findIndex'](_0x5035dd=>'listItem'!=_0x5035dd['name']);return _0x3183eb>-0x1&&(_0x58abe4=_0x58abe4['slice'](0x0,_0x3183eb)),_0x58abe4;}(_0x3c7fa7['model']['document']['selection']['getSelectedBlocks']()),_0x5aa321=_0x3c7fa7['model']['createRange'](_0x3c7fa7['model']['createPositionAt'](_0x36b902[0x0],'before'),_0x3c7fa7['model']['createPositionAt'](_0x36b902[_0x36b902['length']-0x1],'end'));_0x3c7fa7['model']['change'](()=>{_0x4366e5['markBlockFormat'](_0x5aa321,{'commandName':_0x366f6e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5714ce){const _0x5149dc=new Set();for(const _0x5ad09e of _0x5714ce){let _0x40f874=_0x5ad09e['nextSibling'];for(;_0x40f874&&_0x40f874['getAttribute']('listIndent')>_0x5ad09e['getAttribute']('listIndent');)_0x5149dc['add'](_0x40f874),_0x40f874=_0x40f874['nextSibling'];}return Array['from'](_0x5149dc);}(_0x36b902));});};}_0x4366e5['enableCommand']('numberedList',_0x349a19('numberedList')),_0x4366e5['enableCommand']('bulletedList',_0x349a19('bulletedList')),_0x43544c&&_0x4366e5['enableCommand']('todoList',_0x349a19('todoList')),_0x4366e5['enableCommand']('indentList',_0x6ebef('indentList')),_0x4366e5['enableCommand']('outdentList',_0x6ebef('outdentList')),_0x43544c&&_0x4366e5['enableCommand']('checkTodoList',()=>{const _0x27278c=_0x3c7fa7['commands']['get']('checkTodoList'),_0xc7cf9c=Array['from'](_0x27278c['_selectedElements']);_0xc7cf9c['filter'](_0x59c448=>_0x59c448['getAttribute']('todoListChecked')!=_0x27278c['value']),_0x3c7fa7['model']['change'](()=>{for(const _0xd52ad4 of _0xc7cf9c)_0x4366e5['markBlockFormat'](_0xd52ad4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x27278c['value']}]});});}),_0x4366e5['descriptionFactory']['registerElementLabel']('listItem',_0x31870c=>o(_0x22620e,'ELEMENT_LIST_ITEM',_0x31870c)),_0x4366e5['descriptionFactory']['registerDescriptionCallback'](_0x1900a3=>{if('formatBlock'!=_0x1900a3['type']&&'formatInline'!=_0x1900a3['type'])return;const {data:_0x39ae1b}=_0x1900a3;if(_0x39ae1b){if('numberedList'==_0x39ae1b['commandName']||'bulletedList'==_0x39ae1b['commandName']||'todoList'==_0x39ae1b['commandName'])switch(_0x39ae1b['commandName']['replace']('List','')){case'bulleted':return _0x521df0(o(_0x22620e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x521df0(o(_0x22620e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x521df0(o(_0x22620e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Indent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Outdent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39ae1b['commandName'])return _0x39ae1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22620e,'*Check\x20item*')}:{'type':'format','content':o(_0x22620e,'*Uncheck\x20item*')};}function _0x521df0(_0x2c94c6){return{'type':'format','content':o(_0x22620e,'*Change\x20to:*\x20%0',_0x2c94c6)};}});}}function fe(_0x1c57fd){const _0x42432e=_0x1c57fd['getAttribute']('listIndent');if(0x0==_0x42432e)return _0x1c57fd;let _0x3f334c=_0x1c57fd;for(;_0x1c57fd['previousSibling']&&_0x1c57fd['previousSibling']['is']('element','listItem');){const _0x2ff9af=_0x1c57fd['previousSibling']['getAttribute']('listIndent');if(_0x2ff9af==_0x42432e)_0x3f334c=_0x1c57fd['previousSibling'];else{if(_0x2ff9af<_0x42432e)break;}_0x1c57fd=_0x1c57fd['previousSibling'];}return _0x3f334c;}function ue(_0x51180e){const _0x2c58b2=[];if(_0x51180e['is']('element','listItem')&&_0x51180e['getAttribute']('listIndent')>0x0){let _0x21fefe=_0x51180e['nextSibling'];for(;_0x21fefe&&'listItem'==_0x21fefe['name']&&_0x21fefe['getAttribute']('listIndent')==_0x51180e['getAttribute']('listIndent');)_0x2c58b2['push'](_0x21fefe),_0x21fefe=_0x21fefe['nextSibling'];}return _0x2c58b2;}class W extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x329844=this['editor']['config']['get']('list.properties'),_0x1c1ef2=this['editor']['plugins']['get']('TrackChangesEditing');_0x329844['styles']&&_0x1c1ef2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x329844['reversed']&&_0x1c1ef2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x329844['startIndex']&&_0x1c1ef2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c1ef2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x14fc6f,_0x4a2044={}){const _0x56ec04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bad3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56ec04['markMultiRangeBlockFormat'](_0x24bad3,{'commandName':'listStyle','commandParams':[{'type':_0x4a2044['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x312602,_0x38f73d={}){const _0x21e351=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4473e6=this['_getSuggestionBlocks'](_0x5b57f4=>_0x5b57f4['is']('element','listItem')&&'numbered'===_0x5b57f4['getAttribute']('listType'));if(_0x4473e6['length']<0x1)return;const _0x334cdd=_0x4473e6['map'](_0x4e0812=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e0812,'before'),this['editor']['model']['createPositionAt'](_0x4e0812,0x0)));this['editor']['model']['change'](()=>{_0x21e351['markMultiRangeBlockFormat'](_0x334cdd,{'commandName':'listReversed','commandParams':[{'reversed':_0x38f73d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5af60f,_0x40d840={}){const _0x211c9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222274=this['_getSuggestionBlocks'](_0xba13c7=>_0xba13c7['is']('element','listItem')&&'numbered'===_0xba13c7['getAttribute']('listType'));if(_0x222274['length']<0x1)return;const _0x468de0=_0x222274['map'](_0x2c8620=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8620,'before'),this['editor']['model']['createPositionAt'](_0x2c8620,0x0)));this['editor']['model']['change'](()=>{_0x211c9b['markMultiRangeBlockFormat'](_0x468de0,{'commandName':'listStart','commandParams':[{'startIndex':_0x40d840['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3cf059){if('formatBlock'!=_0x3cf059['type']&&'formatInline'!=_0x3cf059['type'])return;const _0x26e1e5=this['editor']['locale'],{data:_0x193d39}=_0x3cf059;if(!_0x193d39)return;let _0x5c92d2,_0x6df66e;switch(_0x193d39['commandName']){case'listStyle':_0x5c92d2='*Change\x20to:*\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,o(_0x26e1e5,this['_getTranslationKeyForListStyle'](_0x193d39['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c92d2=_0x193d39['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2)};break;case'listStart':_0x5c92d2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,_0x193d39['commandParams'][0x0]['startIndex'])};}return _0x6df66e;}['_getSuggestionBlocksForListStyle'](){const _0x22b57e=this['editor']['plugins']['get']('LegacyListUtils');let _0x16c844=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x16c844[0x0]?.['is']('element','listItem')&&_0x16c844['unshift'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x16c844[_0x16c844['length']-0x1]?.['is']('element','listItem')&&_0x16c844['push'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x16c844=[...new Set(_0x16c844)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x16c844=_0x16c844['filter'](_0x5193d2=>_0x5193d2['is']('element','listItem'))),_0x16c844;}['_getSuggestionBlocks'](_0x3dd935){const _0x53fba5=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b3393=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3dd935)['map'](_0x2974f0=>{const _0x24d8fa=this['editor']['model']['createPositionAt'](_0x2974f0,0x0);return[..._0x53fba5['getSiblingNodes'](_0x24d8fa,'backward'),..._0x53fba5['getSiblingNodes'](_0x24d8fa,'forward')];})['flat']();return _0x6b3393=[...new Set(_0x6b3393)],_0x6b3393;}['_getTranslationKeyForListStyle'](_0x24d8da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24d8da)||'default')['toUpperCase']()+'_LIST_'+_0x24d8da['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x328234{['afterInit'](){const _0x4571fd=this['editor'];if(!_0x4571fd['plugins']['has']('MediaEmbedEditing'))return;const _0xd6a22b=_0x4571fd['plugins']['get']('TrackChangesEditing'),_0x4b3624=_0x4571fd['locale'];_0xd6a22b['enableCommand']('mediaEmbed'),_0xd6a22b['descriptionFactory']['registerElementLabel']('media',_0x5f0036=>o(_0x4b3624,'ELEMENT_MEDIA',_0x5f0036)),_0x4571fd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31d936,{writer:_0x14bc65,options:_0x441997})=>{if(_0x441997['showSuggestionHighlights'])return _0x14bc65['createEmptyElement']('div');},'converterPriority':'high'}),_0x4571fd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x718bb4,_0x36727f,_0x290039)=>{_0x290039['options']['showSuggestionHighlights']&&_0x718bb4['stop']();},{'priority':'high'});}}class mt extends _0x328234{['afterInit'](){const _0x1446bc=this['editor'];_0x1446bc['plugins']['has']('MentionEditing')&&_0x1446bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x328234{['afterInit'](){const _0x508c1a=this['editor'];if(!_0x508c1a['plugins']['has']('MergeFieldsEditing'))return;_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x39debc=_0x508c1a['plugins']['get']('TrackChangesEditing'),_0x3cb77f=_0x508c1a['locale'];_0x39debc['descriptionFactory']['registerElementLabel']('mergeField',_0x4904a3=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x4904a3)),_0x39debc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2676d8=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x2676d8)),_0x39debc['descriptionFactory']['registerDescriptionCallback'](_0x202e2a=>{if('insertion'!=_0x202e2a['type']&&'deletion'!=_0x202e2a['type'])return;const _0x172eb5=_0x202e2a['getContainedElement']();if(null==_0x172eb5)return;if(!_0x172eb5['is']('element','mergeField')&&!_0x172eb5['is']('element','mergeFieldBlock'))return;const _0x501c52=_0x508c1a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x172eb5['getAttribute']('id'));return'insertion'==_0x202e2a['type']?{'type':'insertion','content':o(_0x3cb77f,'*Insert:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cb77f,'*Remove:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x328234{['afterInit'](){const _0x336562=this['editor'],_0xcf21a4=_0x336562['plugins']['get']('TrackChangesEditing');_0x336562['plugins']['has']('MultiLevelList')&&(_0xcf21a4['enableDefaultAttributesIntegration']('multiLevelList'),_0xcf21a4['registerBlockAttribute']('listMarkerStyle'),_0xcf21a4['descriptionFactory']['registerDescriptionCallback'](_0x245546=>this['handleDescriptions'](_0x245546)));}['handleDescriptions'](_0x4364d3){const _0x31bfc1=this['editor']['locale'],{data:_0x2f0787}=_0x4364d3,_0x51b666={'type':'format','content':''};if(_0x2f0787&&'listMarkerStyle'==_0x2f0787['key']){if(!_0x2f0787['oldValue'])return{'type':'format','content':o(_0x31bfc1,'*Set\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['newValue']+')'};if(!_0x2f0787['newValue']){let _0x57f8ce=_0x4364d3['head'];for(;_0x57f8ce;){if(_0x57f8ce['data']&&'listType'==_0x57f8ce['data']['key']&&_0x57f8ce['data']['newValue'])return _0x51b666;_0x57f8ce=_0x57f8ce['next'];}return{'type':'format','content':o(_0x31bfc1,'*Remove\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['oldValue']+')'};}}}}class kt extends _0x328234{['afterInit'](){const _0x5bd041=this['editor'];if(!_0x5bd041['plugins']['has']('PageBreakEditing'))return;_0x5bd041['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x369fee=_0x5bd041['plugins']['get']('TrackChangesEditing'),_0x40e251=_0x5bd041['locale'];_0x369fee['descriptionFactory']['registerElementLabel']('pageBreak',_0x57055b=>o(_0x40e251,'ELEMENT_PAGE_BREAK',_0x57055b));}}class bt extends _0x328234{['afterInit'](){const _0x29428c=this['editor'];if(!_0x29428c['plugins']['has']('Paragraph'))return;const _0x1a4dce=_0x29428c['locale'],_0x44f7ef=_0x29428c['plugins']['get']('TrackChangesEditing');_0x44f7ef['descriptionFactory']['registerElementLabel']('paragraph',_0x2b5310=>o(_0x1a4dce,'ELEMENT_PARAGRAPH',_0x2b5310)),_0x44f7ef['enableDefaultAttributesIntegration']('paragraph'),_0x44f7ef['enableCommand']('insertParagraph'),_0x29428c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x29428c),{'priority':'highest'}),_0x29428c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e088b,_0x25766b,_0x1d1650)=>{_0x1d1650['options']['showSuggestionHighlights']&&nr(_0x29428c,{'showActiveMarker':!0x1})(_0x1e088b,_0x25766b,_0x1d1650);},{'priority':'highest'});const _0x4ad5f7=_0x44f7ef['descriptionFactory'];_0x4ad5f7['registerDescriptionCallback'](_0x1e96fd=>{if('insertion'!==_0x1e96fd['type'])return;const {start:_0x4d11c7,end:_0xbda0fa}=_0x1e96fd['getFirstRange']();if(!_0x4d11c7['isTouching'](_0xbda0fa)||!_0x4d11c7['nodeAfter'])return;const _0x541bb4=_0x29428c['model']['schema'],_0x8cde8a=_0x4d11c7['nodeAfter'];return _0x541bb4['isBlock'](_0x8cde8a)&&!_0x541bb4['isLimit'](_0x8cde8a)&&_0x541bb4['checkChild'](_0x8cde8a,'$text')?{'type':'insertion','content':o(_0x1a4dce,'*Insert:*\x20%0',_0x4ad5f7['getItemLabel'](_0x8cde8a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4879c4=this['editor'],_0x1de12d=_0x4879c4['locale'];_0x4879c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bc35e=>{if('formatBlock'!=_0x3bc35e['type'])return;const {data:_0x1a5e76}=_0x3bc35e;return _0x1a5e76&&'paragraph'==_0x1a5e76['commandName']?{'type':'format','content':o(_0x1de12d,'*Change\x20to:*\x20%0',o(_0x1de12d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54055e,{showActiveMarker:_0x1923a5=!0x0}={}){return(_0xe08ce7,_0x556763,_0x5149d9)=>{const _0x241f07=_0x54055e['plugins']['get']('TrackChangesEditing'),_0x239316=_0x556763['markerRange']['start'],_0x425193=_0x556763['markerRange']['end'],_0xdcd656=_0x54055e['model']['schema'];if(!_0x239316['isTouching'](_0x425193)||!_0x239316['nodeAfter'])return;const _0x190ae4=_0x239316['nodeAfter'];if(_0xdcd656['isBlock'](_0x190ae4)&&!_0xdcd656['isLimit'](_0x190ae4)&&_0xdcd656['checkChild'](_0x190ae4,'$text')){if(!_0x5149d9['consumable']['consume'](_0x556763['markerRange'],_0xe08ce7['name']))return;const {authorId:_0xaace3}=_0x241f07['_splitMarkerName'](_0x556763['markerName']),_0x207c85=_0x5149d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xaace3}),_0x12c013=_0x5149d9['mapper']['toViewPosition'](_0x425193);_0x1923a5&&_0x241f07['activeMarkers']['includes'](_0x556763['markerName'])&&_0x5149d9['writer']['addClass']('ck-suggestion-marker--active',_0x207c85),_0x5149d9['writer']['insert'](_0x12c013,_0x207c85),_0x5149d9['mapper']['bindElementToMarker'](_0x207c85,_0x556763['markerName']);}};}class wt extends _0x328234{['afterInit'](){const _0x19d16a=this['editor'];if(!_0x19d16a['plugins']['has']('RemoveFormatEditing'))return;_0x19d16a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57a258=this['editor'];_0x57a258['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb1128=>{if('formatBlock'!=_0xeb1128['type']&&'formatInline'!=_0xeb1128['type'])return;const {data:_0x1e3179}=_0xeb1128;return _0x1e3179&&'removeFormat'==_0x1e3179['commandName']?{'type':'format','content':o(_0x57a258['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x328234{['afterInit'](){const _0x2c6a6d=this['editor'];if(!_0x2c6a6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3532c8=_0x2c6a6d['plugins']['get']('TrackChangesEditing');_0x3532c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x3532c8['enableCommand']('goToNextRestrictedEditingException');const _0x77ac2a=_0x2c6a6d['plugins']['get']('RestrictedEditingModeEditing');_0x77ac2a['enableCommand']('trackChanges'),_0x77ac2a['enableCommand']('acceptSuggestion'),_0x77ac2a['enableCommand']('discardSuggestion'),_0x77ac2a['enableCommand']('acceptAllSuggestions'),_0x77ac2a['enableCommand']('discardAllSuggestions'),_0x77ac2a['enableCommand']('acceptSelectedSuggestions'),_0x77ac2a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x328234{static get['requires'](){return[_0x51d29b];}['init'](){const _0x43a744=this['editor'],_0x71b943=_0x43a744['plugins']['get']('TrackChangesEditing');_0x71b943['enableCommand']('shiftEnter'),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x43a744),{'priority':'high'}),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x43a744),{'priority':'high'}),_0x43a744['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x228394,_0x30f299,_0x145924)=>{_0x145924['options']['showSuggestionHighlights']&&ge(_0x43a744,{'showActiveMarker':!0x1})(_0x228394,_0x30f299,_0x145924);}),_0x71b943['descriptionFactory']['registerElementLabel']('softBreak',_0x144f4e=>o(_0x43a744['locale'],'ELEMENT_LINE_BREAK',_0x144f4e));}}function ge(_0x1f0482,{showActiveMarker:_0x9c6a7=!0x0}={}){return(_0x5ab0a5,_0x1bef8d,_0x407730)=>{const _0x104b6e=_0x1f0482['plugins']['get']('TrackChangesEditing');if(!_0x407730['consumable']['test'](_0x1bef8d['markerRange'],_0x5ab0a5['name']))return;const _0x1bd142=_0x1f0482['model'];for(const _0x542a58 of _0x1bef8d['markerRange']['getItems']()){if(!_0x542a58['is']('element','softBreak'))continue;const _0x56dbf5='deletion'==_0x1bef8d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c8c3f}=_0x104b6e['_splitMarkerName'](_0x1bef8d['markerName']),_0x1421be=_0x407730['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56dbf5,'data-author-id':_0x1c8c3f}),_0x2f1cb5=_0x407730['mapper']['toViewPosition'](_0x1bd142['createPositionBefore'](_0x542a58));_0x9c6a7&&_0x104b6e['activeMarkers']['includes'](_0x1bef8d['markerName'])&&_0x407730['writer']['addClass']('ck-suggestion-marker--active',_0x1421be),_0x407730['writer']['insert'](_0x2f1cb5,_0x1421be),_0x407730['mapper']['bindElementToMarker'](_0x1421be,_0x1bef8d['markerName']);}};}class St extends _0x328234{['afterInit'](){const _0x2ed452=this['editor'],_0x3c042b=_0x2ed452['model'],_0x35b81f=_0x2ed452['locale'];if(!_0x2ed452['plugins']['has']('StandardEditingModeEditing'))return;const _0x231c8a=_0x2ed452['plugins']['get']('TrackChangesEditing'),_0x468d89='restrictedEditingException',_0x1ed1b9=_0x2ed452['commands']['get'](_0x468d89);_0x231c8a['enableCommand'](_0x468d89,(_0x37c05e,_0x3c0e3a={})=>{const _0x39d85d=_0x3c042b['document']['selection'];if(_0x39d85d['isCollapsed'])return void _0x37c05e(_0x3c0e3a);const _0x47eed8=void 0x0!==_0x3c0e3a['forceValue']?_0x3c0e3a['forceValue']:!_0x1ed1b9['value'];_0x3c042b['change'](()=>{const _0x2da8f6=Array['from'](_0x39d85d['getRanges']());for(const _0x5a4bf4 of _0x2da8f6){const _0x1e0027=_0x47eed8?[_0x5a4bf4]:io(_0x468d89,_0x5a4bf4,_0x3c042b);for(const _0x13f777 of _0x1e0027)_0x231c8a['markInlineFormat'](_0x13f777,{'commandName':_0x468d89,'commandParams':[{'forceValue':_0x47eed8}]});}});}),_0x231c8a['descriptionFactory']['registerDescriptionCallback'](_0x315c8f=>{if('formatBlock'!=_0x315c8f['type']&&'formatInline'!=_0x315c8f['type'])return;const {data:_0x35a725}=_0x315c8f;return _0x35a725&&_0x35a725['commandName']==_0x468d89?_0x35a725['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x328234{['afterInit'](){const _0x5f4f8c=this['editor'];if(!_0x5f4f8c['plugins']['has']('Style')||!_0x5f4f8c['plugins']['has']('DataSchema'))return;const _0x307cdd=_0x5f4f8c['plugins']['get']('TrackChangesEditing'),_0xd2b28b=_0x5f4f8c['locale'],_0x415b02=_0x5f4f8c['config']['get']('style')||{},_0x131937=_0x5f4f8c['plugins']['get']('GeneralHtmlSupport'),_0x5819bb=_0x5f4f8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f4f8c['plugins']['get']('DataSchema'),_0x415b02['definitions']);_0x307cdd['enableDefaultAttributesIntegration']('style');const _0x4178a0=new Set();for(const _0x2b3f8e of _0x5819bb['block']){const _0x12d132=_0x131937['getGhsAttributeNameForElement'](_0x2b3f8e['element']);_0x4178a0['add'](_0x12d132);}const _0x20391d=new Set();for(const _0xa42acf of _0x5819bb['inline']){const _0x1826a7=_0x131937['getGhsAttributeNameForElement'](_0xa42acf['element']);_0x20391d['add'](_0x1826a7);for(const _0x5e68ee of _0xa42acf['ghsAttributes'])_0x20391d['add'](_0x5e68ee);}for(const _0x2d8183 of _0x4178a0)_0x307cdd['registerBlockAttribute'](_0x2d8183),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x2d8183,o(_0xd2b28b,'FORMAT_STYLE'));for(const _0x552b91 of _0x20391d)_0x307cdd['registerInlineAttribute'](_0x552b91),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x552b91,o(_0xd2b28b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249b9d=this['editor'],_0x4f5f83=_0x249b9d['locale'];_0x249b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152ded=>{if('formatBlock'!=_0x152ded['type']&&'formatInline'!=_0x152ded['type'])return;const {data:_0x4d0e69}=_0x152ded;return _0x4d0e69&&'style'===_0x4d0e69['commandName']?_0x4d0e69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f5f83,'*Set\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f5f83,'*Remove\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x328234{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49d824){super(_0x49d824),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf34919=this['editor'],_0x494774=_0xf34919['model']['document']['selection'];if(!_0xf34919['plugins']['has']('TableEditing'))return;const _0x6dc08=_0xf34919['locale'],_0x2ea94f=_0xf34919['plugins']['get']('TrackChangesEditing'),_0x251317=_0xf34919['plugins']['get']('TableUtils');_0x2ea94f['descriptionFactory']['registerElementLabel']('table',_0x2ccf91=>o(_0x6dc08,'ELEMENT_TABLE',_0x2ccf91)),this['_setupColumnsRowsFixing'](),_0x2ea94f['enableCommand']('insertTable'),_0x2ea94f['enableCommand']('selectTableRow'),_0x2ea94f['enableCommand']('selectTableColumn');for(const _0x3a6955 of['insertTableRowAbove','insertTableRowBelow']){const _0x23be5e=_0xf34919['commands']['get'](_0x3a6955);_0x2ea94f['enableCommand'](_0x3a6955,_0x29f07b=>{_0xf34919['model']['change'](_0x377f8f=>{_0x29f07b();const _0x8eadb4='above'===_0x23be5e['order'],_0x40bc2f=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x385442=_0x251317['getRowIndexes'](_0x40bc2f),_0x93b74b=_0x8eadb4?_0x385442['first']-0x1:_0x385442['last']+0x1,_0x1fabf0=_0x40bc2f[0x0]['findAncestor']('table'),_0x1f95ec=_0x251317['createTableWalker'](_0x1fabf0,{'startRow':_0x93b74b,'endRow':_0x93b74b}),_0x3cd0c0=Array['from'](_0x1f95ec)['map'](_0x4f91ed=>_0x377f8f['createRangeOn'](_0x4f91ed['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x3cd0c0,'tableRow');});});}for(const _0x5e13ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a268c=_0xf34919['commands']['get'](_0x5e13ff);_0x2ea94f['enableCommand'](_0x5e13ff,_0x4999cc=>{_0xf34919['model']['change'](_0x3b8d7b=>{_0x4999cc();const _0x4082b3='left'===_0x3a268c['order'],_0x4eee6c=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x4ed919=_0x251317['getColumnIndexes'](_0x4eee6c),_0x26d42f=_0x4082b3?_0x4ed919['first']-0x1:_0x4ed919['last']+0x1,_0x5b2fda=_0x4eee6c[0x0]['findAncestor']('table'),_0x3547a6=_0x251317['createTableWalker'](_0x5b2fda,{'startRow':0x0,'column':_0x26d42f,'includeAllSlots':!0x1}),_0x59aa10=Array['from'](_0x3547a6)['map'](_0x4b1e27=>_0x3b8d7b['createRangeOn'](_0x4b1e27['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x59aa10,'tableColumn');});});}for(const _0x5edd3d of['removeTableRow','removeTableColumn']){const _0x573bbc=_0x5edd3d['substr'](0xb),_0x28091d=_0x573bbc['toLowerCase'](),_0x489652=_0x28091d['substr'](0x0,0x3)+'span',_0x3a2123='table'+_0x573bbc,_0xd338d0='min'+_0x573bbc,_0x364fd6='max'+_0x573bbc;_0x2ea94f['enableCommand'](_0x5edd3d,()=>{_0xf34919['model']['change'](_0x1090f7=>{const _0x3923aa=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x44a157=_0x3923aa[0x0]['findAncestor']('table');let _0x5bea9a;if('removeTableRow'==_0x5edd3d){const _0xcfd3fe=_0x251317['getRowIndexes'](_0x3923aa);_0x5bea9a={'startRow':_0xcfd3fe['first'],'endRow':_0xcfd3fe['last'],'includeAllSlots':!0x0};}else{const _0x200706=_0x251317['getColumnIndexes'](_0x3923aa);_0x5bea9a={'startColumn':_0x200706['first'],'endColumn':_0x200706['last'],'includeAllSlots':!0x0};}const _0x3c8a97=_0x251317['createTableWalker'](_0x44a157,_0x5bea9a),_0xf3f3c6=Array['from'](_0x3c8a97)['map'](({cell:_0x2e5853})=>_0x2e5853),_0x535378=be(_0xf3f3c6['filter'](_0x4d0b10=>_0x4d0b10['hasAttribute'](_0x489652))),_0x3bdac6=be(_0xf3f3c6['filter'](_0x5ecb83=>!_0x5ecb83['hasAttribute'](_0x489652)))['map'](_0x328768=>_0x1090f7['createRangeOn'](_0x328768)),_0x3b06b7=_0x2ea94f['markMultiRangeDeletion'](_0x3bdac6,_0x3a2123);if(_0x3b06b7&&('tableRow'==_0x3b06b7['subType']||'tableColumn'==_0x3b06b7['subType'])){const _0x779909=this['_getSuggestionCoords'](_0x3b06b7);for(const _0x5e33fc of _0x535378){const _0x4e6873=_0x1090f7['createRangeOn'](_0x5e33fc),_0x3db54e=_0x251317['getCellLocation'](_0x5e33fc),_0x2fef9f=_0x5e33fc['getAttribute'](_0x489652)-0x1,_0x2efe08=_0x779909[_0xd338d0],_0x1a87d5=_0x779909[_0x364fd6];_0x2efe08<=_0x3db54e[_0x28091d]&&_0x3db54e[_0x28091d]+_0x2fef9f<=_0x1a87d5&&_0x3b06b7['addRange'](_0x4e6873);}}});});}function _0x3d1c58(_0x4988f2){const _0x112648=Array['from'](_0x494774['getRanges']())['map'](_0x495457=>_0xf41792['fromRange'](_0x495457));_0xf34919['model']['change'](_0x4d644a=>{const _0x811173=_0x4d644a['batch'];_0x4988f2=_0x4988f2['filter'](_0x3c32bf=>'$graveyard'!=_0x3c32bf['root']['rootName']),_0x4d644a['setSelection'](_0x4988f2),_0xf34919['commands']['get']('removeTableRow')['refresh'](),_0xf34919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf34919['model']['enqueueChange'](()=>{_0xf34919['model']['enqueueChange'](_0x811173,_0x3e51b3=>{const _0x52bd34=_0x112648['filter'](_0xb86cbe=>'$graveyard'!=_0xb86cbe['root']['rootName']);_0x52bd34['length']>0x0&&_0x3e51b3['setSelection'](_0x52bd34);for(const _0x841a2d of _0x112648)_0x841a2d['detach']();});});});}function _0x5709a3(_0x241280){_0xf34919['model']['change'](_0x5ee781=>{const _0x104353=Array['from'](_0x494774['getRanges']())['map'](_0x452a7f=>_0xf41792['fromRange'](_0x452a7f)),_0xaa84df=[];for(const _0x925484 of _0x241280)for(const _0x39ca50 of _0x925484['getItems']({'shallow':!0x0}))_0xaa84df['push'](_0x39ca50);for(const _0xa96aee of _0xaa84df)'$graveyard'!=_0xa96aee['root']['rootName']&&(_0x5ee781['setSelection'](_0x5ee781['createPositionAt'](_0xa96aee,0x0)),_0xf34919['commands']['get']('removeTableColumn')['refresh'](),_0xf34919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22f1ab=_0x104353['filter'](_0x37a1f9=>'$graveyard'!=_0x37a1f9['root']['rootName']);_0x22f1ab['length']>0x0&&_0x5ee781['setSelection'](_0x22f1ab);for(const _0x5a372f of _0x104353)_0x5a372f['detach']();});}function _0x5137a5(_0x563490,_0x45571b){return _0x45571b['every'](_0x2eea8a=>_0x563490['some'](_0x29dc6e=>_0x29dc6e['end']['isEqual'](_0x2eea8a['start'])||_0x2eea8a['end']['isEqual'](_0x29dc6e['start'])));}function _0x4b95d6(_0x36b916,_0x253a04){return!_0x36b916['some'](_0xb27d6f=>_0x253a04['some'](_0x2659e3=>_0xb27d6f['isIntersecting'](_0x2659e3)))&&_0x36b916['some'](_0x4d4795=>_0x253a04['some'](_0x2d28c0=>_0x4d4795['end']['isTouching'](_0x2d28c0['start'])));}_0xf34919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe17ca7,_0x3ab207,_0x433761)=>{if(!_0x433761['options']['showSuggestionHighlights'])return;const _0x7e12a8=_0x3ab207['item'];if(!_0x7e12a8)return;const _0x1f3a9a=_0x433761['mapper']['toViewElement'](_0x7e12a8);function _0x17efdc(_0x247e9){return Array['isArray'](_0x247e9)?_0x247e9:[_0x247e9];}_0x1f3a9a&&'tableCell'===_0x7e12a8['name']&&_0x476147(_0x1f3a9a,_0x433761['writer'],(_0x85263,_0x37b247,_0x1b974c)=>_0x1b974c['addClass'](_0x17efdc(_0x37b247['classes']),_0x85263),(_0x15328f,_0x4fd6be,_0x389515)=>_0x389515['removeClass'](_0x17efdc(_0x4fd6be['classes']),_0x15328f));},{'priority':'highest'}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x1069e0=>{if('insertion'!=_0x1069e0['type']&&'deletion'!=_0x1069e0['type'])return;const _0x4c941e=_0x1069e0['getContainedElement']();if(null!=_0x4c941e&&_0x4c941e['is']('element','table')){if('insertion'==_0x1069e0['type']){const _0x425b41=_0x1069e0['getItems']()['filter'](_0x160192=>_0x160192['is']('$textProxy'))['map'](_0x227990=>_0x227990['data']);if(_0x425b41['length'])return{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x425b41['join']('\x20')+'\x22'))};}if('deletion'==_0x1069e0['type']){const _0x5b1865=_0x1069e0['getItems']()['filter'](_0x5b020e=>_0x5b020e['is']('$textProxy'))['map'](_0xdaf178=>_0xdaf178['data']);if(_0x5b1865['length'])return{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b1865['join']('\x20')+'\x22'))};}}}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x567337=>{if('tableRow'==_0x567337['subType']){const _0x5b7af7=_0x567337['getItems']()['filter'](_0x5841e0=>_0x5841e0['is']('$textProxy'))['map'](_0x820a63=>_0x820a63['data']),_0x1f7d93=this['_getSuggestionCoords'](_0x567337),_0x365482=_0x1f7d93['maxRow']-_0x1f7d93['minRow']+0x1;if('insertion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};if('deletion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};}if('tableColumn'==_0x567337['subType']){const _0x463797=_0x567337['getItems']()['filter'](_0x249fc4=>_0x249fc4['is']('$textProxy'))['map'](_0x2a88ae=>_0x2a88ae['data']),_0x106a88=this['_getSuggestionCoords'](_0x567337),_0x567272=_0x106a88['maxColumn']-_0x106a88['minColumn']+0x1;if('insertion'==_0x567337['type'])return _0x463797['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};if('deletion'==_0x567337['type'])return _0x463797['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};}}),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b95d6),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b95d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27ccc0=this['editor'],_0x3f20a5=_0x27ccc0['model']['document']['selection'];return(_0x3908e5,_0x4df937)=>{_0x27ccc0['model']['change'](_0x36bfd7=>{const {commandName:_0x4b0aec,commandParams:_0x582921}=_0x4df937;let _0x1fc2da=_0x3908e5[0x0]['end']['nodeBefore'];_0x582921&&_0x582921[0x0]&&!0x1===_0x582921[0x0]['forceValue']&&(_0x1fc2da=_0x3908e5[0x0]['start']['nodeAfter']);const _0x187156=_0x36bfd7['createRangeIn'](_0x1fc2da);if('$graveyard'==_0x187156['root']['rootName'])return;const _0x586901=Array['from'](_0x3f20a5['getRanges']())['map'](_0x293d97=>_0xf41792['fromRange'](_0x293d97));_0x36bfd7['setSelection'](_0x187156),_0x27ccc0['commands']['get'](_0x4b0aec)['refresh'](),_0x582921['push']({'forceDefaultExecution':!0x0}),_0x27ccc0['execute'](_0x4b0aec,..._0x582921);const _0x4ed59a=_0x586901['filter'](_0x4edebf=>'$graveyard'!=_0x4edebf['root']['rootName']);_0x4ed59a['length']>0x0&&_0x36bfd7['setSelection'](_0x4ed59a);for(const _0x3026c7 of _0x586901)_0x3026c7['detach']();});};}['_getCoordsForCells'](_0x51f92d){const _0x5dadf8=this['editor']['plugins']['get']('TableUtils');let _0x4fb937=Number['MAX_SAFE_INTEGER'],_0x19ae7b=Number['MIN_SAFE_INTEGER'],_0x1b8e2d=Number['MAX_SAFE_INTEGER'],_0x4859ac=Number['MIN_SAFE_INTEGER'];for(const _0x18eb0d of _0x51f92d){if('$graveyard'==_0x18eb0d['root']['rootName'])continue;const {row:_0x3dc747,column:_0x3349cf}=_0x5dadf8['getCellLocation'](_0x18eb0d),_0x1fc69c=_0x18eb0d['hasAttribute']('rowspan')?_0x18eb0d['getAttribute']('rowspan')-0x1:0x0,_0x47b2b7=_0x18eb0d['hasAttribute']('colspan')?_0x18eb0d['getAttribute']('colspan')-0x1:0x0;_0x4fb937=_0x3dc747<_0x4fb937?_0x3dc747:_0x4fb937,_0x19ae7b=_0x3dc747+_0x1fc69c>_0x19ae7b?_0x3dc747+_0x1fc69c:_0x19ae7b,_0x1b8e2d=_0x3349cf<_0x1b8e2d?_0x3349cf:_0x1b8e2d,_0x4859ac=_0x3349cf+_0x47b2b7>_0x4859ac?_0x3349cf+_0x47b2b7:_0x4859ac;}return{'minRow':_0x4fb937,'maxRow':_0x19ae7b,'minColumn':_0x1b8e2d,'maxColumn':_0x4859ac};}['_setupColumnsRowsFixing'](){const _0x999d81=this['editor'],_0x3a0d79=_0x999d81['plugins']['get']('TrackChangesEditing'),_0x45409e=_0x999d81['plugins']['get']('TableUtils');_0x999d81['model']['document']['on']('change:data',()=>{const _0x10355b=Array['from'](_0x999d81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbc79ff,data:_0x9b0d4b}of _0x10355b){const {group:_0xc5568d,id:_0x2ff268,subType:_0x2d81ba}=_0x3a0d79['_splitMarkerName'](_0xbc79ff);if('suggestion'!=_0xc5568d)continue;if(null!=_0x9b0d4b['oldRange'])continue;const _0x766816=_0x3a0d79['getSuggestion'](_0x2ff268);this['_tablePostFixingSubtypes']['includes'](_0x2d81ba)&&this['_tableSuggestions']['add'](_0x766816);}},{'priority':'low'});const _0x1f90f4=(_0x158b3a,_0x21c9f1)=>{let _0x351351=!0x1;const _0x58d8f6=_0x21c9f1['createRangeOn'](_0x158b3a),_0x2499aa=_0x158b3a['findAncestor']('table'),_0x1ec3ee=_0x45409e['getCellLocation'](_0x158b3a);for(const _0x4825e6 of this['_tableSuggestions']){const _0x2f52a6=_0x4825e6['subType'],_0x32af38=_0x2f52a6['startsWith']('tablePaste'),_0x48f4f9=_0x2f52a6['substr'](_0x32af38?0xa:0x5),_0x3cddcf=_0x48f4f9['toLowerCase'](),_0x209825=_0x3cddcf['substr'](0x0,0x3)+'span',_0x343e2e='min'+_0x48f4f9,_0x59dccd='max'+_0x48f4f9;if(!_0x4825e6['isInContent'])continue;if(_0x2499aa!=_0x4825e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4825e6['isIntersectingWithRange'](_0x58d8f6))continue;const _0x66c0eb=_0x158b3a['hasAttribute'](_0x209825)?_0x158b3a['getAttribute'](_0x209825)-0x1:0x0,_0x54e444=this['_getSuggestionCoords'](_0x4825e6),_0x3952d2=_0x54e444[_0x343e2e],_0x586e82=_0x54e444[_0x59dccd];_0x3952d2<=_0x1ec3ee[_0x3cddcf]&&_0x1ec3ee[_0x3cddcf]+_0x66c0eb<=_0x586e82&&(_0x4825e6['addRange'](_0x58d8f6),_0x351351=!0x0);}return _0x351351;};_0x999d81['model']['document']['registerPostFixer'](_0x411dd0=>{let _0x2af623=!0x1;for(const _0xa8ce9c of _0x999d81['model']['document']['differ']['getChanges']())if('insert'==_0xa8ce9c['type']){if('tableRow'==_0xa8ce9c['name']){for(const _0x3281f0 of _0xa8ce9c['position']['nodeAfter']['getChildren']())_0x2af623=_0x2af623||_0x1f90f4(_0x3281f0,_0x411dd0);}else'tableCell'==_0xa8ce9c['name']&&(_0x2af623=_0x2af623||_0x1f90f4(_0xa8ce9c['position']['nodeAfter'],_0x411dd0));}return _0x2af623;});}['_getSuggestionCoords'](_0x39ac71){return this['_getCoordsForCells'](_0x39ac71['getRanges']()['map'](_0x1d0c0d=>_0x1d0c0d['start']['nodeAfter']));}}function be(_0x19cc39){return Array['from'](new Set(_0x19cc39)['values']());}class vt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x805cb7=this['editor'],_0x37d2b3=_0x805cb7['model']['document']['selection'],_0x11e08f=_0x805cb7['locale'];if(!_0x805cb7['plugins']['has']('TableEditing'))return;const _0x495718=_0x805cb7['plugins']['get']('TrackChangesEditing'),_0x45d0ec=_0x805cb7['plugins']['get']('TableUtils'),_0x389286=_0x805cb7['plugins']['get'](It);_0x389286['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x495718['enableCommand']('mergeTableCells',()=>{const _0x1fe895=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection']);_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat'](_0x1fe895,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x805cb7['commands']['get']('mergeTableCells')['on']('execute',(_0x55c94b,_0x54292d)=>{_0x805cb7['commands']['get']('trackChanges')['value']&&(_0x54292d['length']>0x0&&_0x54292d[_0x54292d['length']-0x1]&&_0x54292d[_0x54292d['length']-0x1]['forceDefaultExecution']||_0x495718['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x55c94b['stop']());},{'priority':'highest'});for(const _0xf1cd33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50ae76=_0x805cb7['commands']['get'](_0xf1cd33);_0x495718['enableCommand'](_0xf1cd33,()=>{const _0x523abf=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xef8717=>_0xef8717['is']('element','tableCell')),_0x5ad28c=_0x50ae76['value'];_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat']([_0x523abf,_0x5ad28c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54165e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x48d4c9=_0x805cb7['commands']['get'](_0x54165e);_0x495718['enableCommand'](_0x54165e,()=>{const _0x4f28c0=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection'])[0x0],_0x42e6a4=_0x4f28c0['findAncestor']('table'),{column:_0x5ce9a1,row:_0x19450d}=_0x45d0ec['getCellLocation'](_0x4f28c0);let _0x2675d4=[];if('horizontally'==_0x48d4c9['direction']){const _0x40626a=_0x45d0ec['createTableWalker'](_0x42e6a4,{'startRow':_0x19450d,'endRow':_0x19450d,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0x40626a)['map'](_0x1017ba=>_0x1017ba['cell']);}else{const _0xfe37d0=_0x45d0ec['createTableWalker'](_0x42e6a4,{'column':_0x5ce9a1,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0xfe37d0)['map'](_0x103f09=>_0x103f09['cell']);}_0x805cb7['model']['change'](_0x511f46=>{_0x495718['markBlockFormat'](_0x511f46['createRangeOn'](_0x4f28c0),{'commandName':_0x54165e,'commandParams':[]},_0x2675d4,_0x54165e);});});}_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x236519=>{if('formatBlock'!=_0x236519['type']&&'formatInline'!=_0x236519['type'])return;const {data:_0xb1255e}=_0x236519;return _0xb1255e&&'mergeTableCells'==_0xb1255e['commandName']?{'type':'format','content':o(_0x11e08f,'*Merge\x20cells*')}:void 0x0;}),_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x170229=>{if('formatBlock'!=_0x170229['type']&&'formatInline'!=_0x170229['type'])return;const {data:_0x122687}=_0x170229;return _0x122687?'splitTableCellVertically'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48f7ae=_0x389286['_acceptFormatSuggestionCallbackFactory']();for(const _0x2cf20e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cf20e,'accept',_0x48f7ae);for(const _0x2cae23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cae23,'accept',_0x48f7ae);_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a0fb5=>{_0x805cb7['model']['change'](_0x227d83=>{const _0x3bd1dd=Array['from'](_0x37d2b3['getRanges']())['map'](_0x5514cb=>_0xf41792['fromRange'](_0x5514cb));_0x227d83['setSelection'](_0x5a0fb5),_0x805cb7['commands']['get']('mergeTableCells')['refresh'](),_0x805cb7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56b2fe=_0x3bd1dd['filter'](_0x4861c4=>'$graveyard'!=_0x4861c4['root']['rootName']);_0x56b2fe['length']>0x0&&_0x227d83['setSelection'](_0x56b2fe);for(const _0x18bf85 of _0x3bd1dd)_0x18bf85['detach']();});});for(const _0x4f65f4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbb9284=_0x805cb7['commands']['get'](_0x4f65f4);_0xbb9284['on']('set:isEnabled',(_0x4b41f5,_0xe7ac87,_0x538d74)=>{if(_0x538d74){const _0x584b65=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x464568=>_0x464568['is']('element','tableCell'));this['_areMergableCells'](_0xbb9284['value'],_0x584b65)||(_0x4b41f5['return']=!0x1,_0x4b41f5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16c564=this['editor']['commands']['get']('mergeTableCells'),_0x13bc3f=this['editor']['plugins']['get']('TableUtils');if(!_0x16c564['isEnabled'])return!0x1;const _0x37ca0e=_0x13bc3f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1247d7 of _0x37ca0e)for(const _0x41d371 of _0x37ca0e)if(_0x1247d7!=_0x41d371&&!this['_areMergableCells'](_0x1247d7,_0x41d371))return!0x1;return!0x0;}['_areMergableCells'](_0x4a8d9c,_0x234d52){const _0x5bd2e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153601=this['editor']['model']['createRangeOn'](_0x4a8d9c),_0x3c954a=this['editor']['model']['createRangeOn'](_0x234d52),_0x53a2ec=new Set(),_0x1b8b1c=new Set();for(const _0x59c156 of _0x5bd2e1['getSuggestions']())if(('insertion'==_0x59c156['type']||'deletion'==_0x59c156['type']||'mergeTableCells'==_0x59c156['subType'])&&_0x59c156['isInContent']){for(const _0x520e1d of _0x59c156['getRanges']())_0x520e1d['containsRange'](_0x153601,!0x0)&&_0x53a2ec['add'](_0x59c156['type']+':'+_0x59c156['author']['id']),_0x520e1d['containsRange'](_0x3c954a,!0x0)&&_0x1b8b1c['add'](_0x59c156['type']+':'+_0x59c156['author']['id']);}if(_0x53a2ec['size']!=_0x1b8b1c['size'])return!0x1;for(const _0x202dae of _0x53a2ec)if(!_0x1b8b1c['has'](_0x202dae))return!0x1;return!0x0;}}class Ct extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x10f16c=this['editor'];if(!_0x10f16c['plugins']['has']('TableEditing'))return;const _0x358e88=_0x10f16c['locale'],_0x55a256=_0x10f16c['plugins']['get']('TrackChangesEditing');_0x55a256['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55a256['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55a256['registerBlockAttribute']('headingRows'),_0x55a256['registerBlockAttribute']('headingColumns'),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x358e88,'FORMAT_HEADER_ROW')),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x358e88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5312c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc609e3=this['editor']['plugins']['get']('TableUtils'),_0x274e0f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x53091a({showActiveMarker:_0x3d46ac=!0x0,setDataAttribute:_0x2bf8b5=!0x0}={}){return(_0x5eb29e,_0x21687a,_0x2c5e83)=>{const {type:_0x379a0d,id:_0x387f9b}=_0x5312c5['_splitMarkerName'](_0x21687a['markerName']),_0x1b0fcb=_0x5312c5['getSuggestion'](_0x387f9b),_0x41b42d=_0x1b0fcb['data'];if('formatBlock'!=_0x1b0fcb['type']||!_0x41b42d||'setTableColumnHeader'!=_0x41b42d['commandName'])return;if(_0x21687a['item'])return void _0x5eb29e['stop']();if(!_0x2c5e83['consumable']['consume'](_0x21687a['markerRange'],_0x5eb29e['name']))return;const _0x35cb91=_0x21687a['markerRange']['start']['nodeAfter'],_0xde864a=_0x21687a['markerRange']['end']['nodeBefore'],_0x15be07=_0x35cb91['parent']['parent'],{column:_0x10d9de}=_0xc609e3['getCellLocation'](_0x35cb91),{column:_0x50ce1e}=_0xc609e3['getCellLocation'](_0xde864a);for(let _0x5570dd=_0x10d9de;_0x5570dd<=_0x50ce1e;_0x5570dd++){const _0x340cb=_0xc609e3['createTableWalker'](_0x15be07,{'column':_0x5570dd,'includeAllSlots':!0x1});for(const _0xfe4933 of _0x340cb){const _0x43760f=_0xfe4933['cell'],_0x86e7d9=_0x2c5e83['mapper']['toViewElement'](_0x43760f);_0x2c5e83['writer']['addClass']('ck-suggestion-marker-'+_0x379a0d,_0x86e7d9),_0x2bf8b5&&_0x2c5e83['writer']['setAttribute']('data-suggestion',_0x387f9b,_0x86e7d9),_0x2c5e83['mapper']['bindElementToMarker'](_0x86e7d9,_0x21687a['markerName']),_0x3d46ac&&(_0x5312c5['activeMarkers']['includes'](_0x21687a['markerName'])?_0x2c5e83['writer']['addClass']('ck-suggestion-marker--active',_0x86e7d9):_0x2c5e83['writer']['removeClass']('ck-suggestion-marker--active',_0x86e7d9));}}};}_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x274e0f),_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x274e0f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x53091a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4416ec,_0x48dd80,_0x24b0c6)=>{_0x24b0c6['options']['showSuggestionHighlights']&&_0x53091a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4416ec,_0x48dd80,_0x24b0c6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x80b8ce,_0xcaf0ed,_0x39d594)=>{const {type:_0x3ae08d,id:_0x252a15}=_0x5312c5['_splitMarkerName'](_0xcaf0ed['markerName']),_0x205d29=_0x5312c5['getSuggestion'](_0x252a15),_0x4f9568=_0x205d29['data'];if('formatBlock'!=_0x205d29['type']||!_0x4f9568||'setTableColumnHeader'!=_0x4f9568['commandName'])return;const _0x5bb743=_0x39d594['mapper']['markerNameToElements'](_0xcaf0ed['markerName']);if(_0x5bb743){for(const _0x323c13 of _0x5bb743)_0x39d594['writer']['removeClass']('ck-suggestion-marker-'+_0x3ae08d,_0x323c13),_0x39d594['writer']['removeClass']('ck-suggestion-marker--active',_0x323c13),_0x39d594['writer']['removeAttribute']('data-suggestion',_0x323c13),_0x39d594['mapper']['unbindElementFromMarkerName'](_0x323c13,_0xcaf0ed['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e000a=this['editor'],_0x5cacb2=_0x2e000a['locale'];function _0x27a531(_0x139435){return{'type':'format','content':o(_0x5cacb2,'*Format:*\x20%0',_0x139435)};}_0x2e000a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11df79=>{if('formatBlock'!=_0x11df79['type'])return;const {data:_0x1bc0d2}=_0x11df79;if(_0x1bc0d2){if('setTableRowHeader'==_0x1bc0d2['commandName']){const _0xf725d=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0xf725d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1bc0d2['commandName']){const _0x13c964=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0x13c964?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x23eb50=>[_0x23eb50,null]));class _t extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x187d67=this['editor'];if(!_0x187d67['plugins']['has']('TableClipboard'))return;const _0x531cbc=_0x187d67['plugins']['get']('TrackChangesEditing'),_0x55a3aa=_0x187d67['plugins']['get']('TableUtils'),_0x56fe83=_0x187d67['plugins']['get'](It),_0x177a4a=_0x187d67['plugins']['get']('TableClipboard');_0x56fe83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x187d67['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x187d67['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x108108=null;_0x187d67['model']['on']('insertContent',(_0x23c980,_0x173b27)=>{const [_0x3a5b11,_0x3976d1]=_0x173b27,_0x39be31=_0x173b27[_0x173b27['length']-0x1];_0x39be31&&_0x39be31['forceDefaultExecution']||_0x531cbc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45b8cb,_0x305d38,_0x57608a,_0x158567,_0x3cd417){if(_0x305d38&&!_0x305d38['is']('documentSelection'))return!0x1;const _0x5e8053=_0x3cd417['getTableIfOnlyTableInContent'](_0x45b8cb,_0x57608a);if(!_0x5e8053||!Re(_0x5e8053,void 0x0,_0x158567))return!0x1;const _0xb1879a=_0x158567['getSelectionAffectedTableCells'](_0x57608a['document']['selection']);if(!_0xb1879a['length'])return!0x1;const _0x51d649=_0xb1879a[0x0]['findAncestor']('table'),_0x339b0f=_0x158567['getRowIndexes'](_0xb1879a),_0x42335b=_0x158567['getColumnIndexes'](_0xb1879a),_0x33efaa={'startRow':_0x339b0f['first'],'endRow':_0x339b0f['last'],'startColumn':_0x42335b['first'],'endColumn':_0x42335b['last']};return 0x1==_0xb1879a['length']&&(_0x33efaa['endRow']+=_0x158567['getRows'](_0x5e8053)-0x1,_0x33efaa['endColumn']+=_0x158567['getColumns'](_0x5e8053)-0x1),Re(_0x51d649,_0x33efaa,_0x158567);}(_0x3a5b11,_0x3976d1,_0x187d67['model'],_0x55a3aa,_0x177a4a)&&(_0x23c980['stop'](),_0x108108={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x187d67['model']['change'](()=>{_0x187d67['model']['insertContent'](_0x173b27[0x0],_0x173b27[0x1],_0x173b27[0x2],{'forceDefaultExecution':!0x0});const _0x98ea22=_0x2b4c20(),{rowInsertionRanges:_0x4723e1,columnInsertionRanges:_0x2a83d5,insertionRanges:_0x39591d,deletionRanges:_0xc7d64c,cells:_0x16250b}=_0x108108;_0x4723e1['length']&&_0x531cbc['markMultiRangeInsertion'](_0x4723e1,'tablePasteRow',{'tablePasteChainId':_0x98ea22}),_0x2a83d5['length']&&_0x531cbc['markMultiRangeInsertion'](_0x2a83d5,'tablePasteColumn',{'tablePasteChainId':_0x98ea22}),_0x39591d['length']&&(_0x531cbc['markMultiRangeInsertion'](_0x39591d,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0x39591d['forEach'](_0x9994f5=>_0x9994f5['detach']?.())),_0xc7d64c['length']&&(_0x531cbc['markMultiRangeDeletion'](_0xc7d64c,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0xc7d64c['forEach'](_0x4558b8=>_0x4558b8['detach']?.()));const _0x4a7641=_0x531cbc['markMultiRangeBlockFormat'](_0x16250b['map'](({element:_0xe605d8})=>_0xe605d8),{'formatGroupId':_0x2b4c20()},[],'tablePasteCell',{'tablePasteChainId':_0x98ea22});if(_0x4a7641){const _0x513445=_0x4a7641['getMarkers'](),_0x87ed3b=[];for(const {element:_0xadb7c2,attributes:_0x163843}of _0x16250b){if(!_0x163843)continue;const _0x3348c1=_0x187d67['model']['createRangeOn'](_0xadb7c2),_0x11cae6=_0x513445['find'](_0x69792c=>_0x69792c['getRange']()['isEqual'](_0x3348c1));_0x11cae6&&_0x87ed3b['push']([_0x11cae6['name'],_0x163843]);}_0x87ed3b['length']&&_0x4a7641['setAttribute']('markerAttributes',Object['fromEntries'](_0x87ed3b));}_0x108108=null;}));},{'priority':_0x408fd7['high']+0xa}),_0x187d67['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x464f6e,_0x44d29b)=>{const [_0x4201b7,_0xaddf43,,_0x7bcccb]=_0x44d29b;if(!_0x108108)return;_0x464f6e['stop']();const _0xeb033c=_0x4201b7['cell'],_0x15b342=_0xaddf43,_0x286cd9=ke(_0xeb033c),_0x46457f=ke(_0x15b342);_0x464f6e['return']=_0xeb033c;let _0x5a3f66=null,_0x4753ff=null;if(_0x46457f||_0x286cd9){if(_0x286cd9&&!_0x46457f){_0x7bcccb['remove'](_0xeb033c['getChild'](0x0));for(const _0x2fea64 of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x2fea64,_0xeb033c,'end');const _0x369baf=_0x108108['rowInsertionIndexes']['includes'](_0x4201b7['row']),_0x1a745e=_0x108108['columnInsertionIndexes']['includes'](_0x4201b7['column']);_0x369baf||_0x1a745e||(_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeIn'](_0xeb033c)));}else _0x46457f&&!_0x286cd9&&(_0x4753ff=_0x7bcccb['createRangeIn'](_0xeb033c));}else{const _0x2e3564=_0x7bcccb['createElement']('tableCellSuggestion'),_0x21c21a=_0x7bcccb['createElement']('tableCellSuggestion');_0x7bcccb['wrap'](_0x7bcccb['createRangeIn'](_0xeb033c),_0x21c21a),_0x7bcccb['insert'](_0x2e3564,_0xeb033c,0x0);for(const _0x29010e of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x29010e,_0x2e3564,'end');_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x2e3564)),_0x4753ff=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x21c21a));}const _0x4f2d70=Array['from'](_0x15b342['getAttributes']())['filter'](([_0x51489f])=>Pe['includes'](_0x51489f));_0x108108['cells']['push']({'element':_0xeb033c,'attributes':_0x4f2d70['length']?Object['fromEntries'](_0x4f2d70):null}),_0x5a3f66&&_0x108108['insertionRanges']['push'](_0x5a3f66),_0x4753ff&&_0x108108['deletionRanges']['push'](_0x4753ff);},{'priority':'high'}),_0x55a3aa['on']('insertColumns',(_0x4e51bd,_0x57a1c2)=>{const [_0x413eef,_0x5b4bf3={}]=_0x57a1c2;if(!_0x108108)return;const _0x59bf39=_0x5b4bf3['at']||0x0,_0x2c7440=_0x5b4bf3['columns']||0x1;_0x108108['columnInsertionIndexes']=new Array(_0x2c7440)['fill'](_0x59bf39)['map']((_0x1ef927,_0x271fe8)=>_0x1ef927+_0x271fe8);for(const {cell:_0x46c08f}of _0x55a3aa['createTableWalker'](_0x413eef,{'startColumn':_0x59bf39,'endColumn':_0x59bf39+_0x2c7440-0x1}))_0x108108['columnInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x46c08f));},{'priority':'low'}),_0x55a3aa['on']('insertRows',(_0x3fb321,_0x3ec117)=>{const [_0x1ef4b1,_0x9536ed={}]=_0x3ec117;if(!_0x108108)return;const _0x445b23=_0x9536ed['at']||0x0,_0x2c12e8=_0x9536ed['rows']||0x1;_0x108108['rowInsertionIndexes']=new Array(_0x2c12e8)['fill'](_0x445b23)['map']((_0x56dff5,_0x17260c)=>_0x56dff5+_0x17260c);for(const {cell:_0x500cae}of _0x55a3aa['createTableWalker'](_0x1ef4b1,{'startRow':_0x445b23,'endRow':_0x445b23+_0x2c12e8-0x1}))_0x108108['rowInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x500cae));},{'priority':'low'}),_0x531cbc['descriptionFactory']['registerDescriptionCallback'](_0xe94fd=>{if(_0xe94fd['subType']&&_0xe94fd['subType']['startsWith']('tablePaste'))return _0xe94fd['previous']?{}:{'type':'insertion','content':o(_0x187d67['locale'],'*Replace\x20table\x20cells*')};});const _0x70edbb=()=>!0x1;for(const _0x47c17f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('deletion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47c17f,'join',_0x70edbb);_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52aeba,_0x46ed58,_0x48a5cf)=>{const _0x4be0d4=_0x52aeba['map'](_0x22ec0a=>_0x22ec0a['getContainedElement']())['filter'](_0x582752=>_0x582752),_0xa806b0=new Map(_0x4be0d4['map'](_0x87a69c=>[_0x87a69c,null]));if(_0x108108){for(const {element:_0xa840b3,attributes:_0x12a713}of _0x108108['cells'])_0x12a713&&_0xa806b0['set'](_0xa840b3,_0x12a713);}else{if(_0x48a5cf&&_0x48a5cf['markerAttributes'])for(const [_0x14e27b,_0x5cf66d]of Object['entries'](_0x48a5cf['markerAttributes'])){const _0x589c84=_0x187d67['model']['markers']['get'](_0x14e27b),_0x49c72d=_0x589c84?_0x589c84['getRange']()['getContainedElement']():null;_0x49c72d&&_0xa806b0['set'](_0x49c72d,_0x5cf66d);}}_0x187d67['model']['change'](_0x499e7a=>{for(const [_0x1812c3,_0x101f45]of _0xa806b0)_0x499e7a['setAttributes']({...we,..._0x101f45},_0x1812c3);});});const _0x908992=(_0x265a4a,_0x45abc3)=>{_0x531cbc['_suggestionFactory']['registerCustomCallback'](_0x265a4a,'tablePaste',_0x45abc3,(_0xe0e944,_0x5f047f,_0x5dbadc)=>{_0x187d67['model']['change'](_0x2d22c2=>{const _0x3254fe=[];for(const _0x27b092 of _0xe0e944){const _0x293a8e=_0x27b092['start']['nodeAfter'];_0x293a8e['is']('element','tableCellSuggestion')&&_0x3254fe['push'](_0x293a8e);}_0x531cbc['_suggestionFactory']['getSuggestionCallback'](_0x265a4a,null,_0x45abc3)(_0xe0e944,_0x5f047f,_0x5dbadc);for(const _0x3e9c61 of _0x3254fe)'$graveyard'!=_0x3e9c61['root']['rootName']&&_0x2d22c2['unwrap'](_0x3e9c61);});});};_0x908992('insertion','accept'),_0x908992('insertion','discard'),_0x908992('deletion','accept'),_0x908992('deletion','discard'),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x239ced=>{const _0x33eed4=_0x239ced['map'](_0x742f19=>_0x742f19['getContainedElement']()),_0x4a3276=_0x33eed4[0x0]['findAncestor']('table'),{minRow:_0x2d4d5f,maxRow:_0x24a12d}=_0x56fe83['_getCoordsForCells'](_0x33eed4);_0x55a3aa['removeRows'](_0x4a3276,{'at':_0x2d4d5f,'rows':_0x24a12d-_0x2d4d5f+0x1});}),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb3786e=>{const _0x5f2f6a=_0xb3786e['map'](_0x453f0a=>_0x453f0a['getContainedElement']()),_0x247d29=_0x5f2f6a[0x0]['findAncestor']('table'),{minColumn:_0x1c3b8c,maxColumn:_0x3fad04}=_0x56fe83['_getCoordsForCells'](_0x5f2f6a);_0x55a3aa['removeColumns'](_0x247d29,{'at':_0x1c3b8c,'columns':_0x3fad04-_0x1c3b8c+0x1});});const _0x56f568=(_0xda70cb,_0x15049a)=>{if(!_0x15049a['subType']||!_0x15049a['subType']['startsWith']('tablePaste'))return;const _0x311f56=_0x15049a['attributes']['tablePasteChainId'],_0x3b88fb=_0x531cbc['getSuggestions']()['filter'](_0x3eacda=>_0x3eacda['isInContent']&&_0x3eacda['attributes']&&_0x3eacda['attributes']['tablePasteChainId']==_0x311f56);_0x3b88fb['length']&&_0x15049a['getAllAdjacentSuggestions']()['length']!=_0x3b88fb['length']&&_0x3b88fb['reduce']((_0x2fef9c,_0x43abda)=>(_0x2fef9c['next']=_0x43abda,_0x43abda['previous']=_0x2fef9c,_0x43abda));};function _0x2de001(_0x1de109,_0x20c813=!0x0){const {id:_0x1251ea,authorId:_0x2805ac}=_0x531cbc['_splitMarkerName'](_0x1de109['markerName']),_0x4cd9df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14f63=_0x531cbc['activeMarkers']['includes'](_0x1de109['markerName']);return _0x14f63&&_0x4cd9df['push']('ck-suggestion-marker--active'),{'classes':_0x4cd9df,'attributes':{'data-suggestion':_0x1251ea,'data-author-id':_0x2805ac},'priority':_0x14f63&&_0x20c813?0xbc2:0xbb8};}_0x531cbc['on']('suggestionLoaded',_0x56f568,{'priority':'high'}),_0x531cbc['on']('suggestionUnloaded',_0x56f568,{'priority':'high'}),_0x187d67['model']['document']['registerPostFixer'](()=>{let _0x3da0a2=!0x1;const _0x531ef4=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x96ec0f,data:_0x59fed3}of _0x531ef4){const {group:_0x15e241,type:_0x1b80ed,id:_0x98bc4}=_0x531cbc['_splitMarkerName'](_0x96ec0f);if('suggestion'!=_0x15e241||'deletion'!=_0x1b80ed||_0x59fed3['oldRange'])continue;if(!_0x531cbc['hasSuggestion'](_0x98bc4))continue;const _0x254e37=_0x531cbc['getSuggestion'](_0x98bc4)['getRanges'](),_0x336f9d=_0x187d67['plugins']['get']('Users')['me'];for(const _0x22aa29 of _0x531cbc['getSuggestions']()){if(!_0x22aa29['isInContent']||_0x22aa29['author']!=_0x336f9d)continue;if('formatBlock'!=_0x22aa29['type']||'tablePasteCell'!=_0x22aa29['subType'])continue;if(_0x22aa29['getRanges']()['every'](_0x5f5c29=>_0x254e37['some'](_0x21a3a8=>_0x21a3a8['containsRange'](_0x5f5c29,!0x0)))){for(const _0x54191a of _0x22aa29['getAllAdjacentSuggestions']())_0x54191a['isInContent']&&(_0x54191a['discard'](),_0x3da0a2=!0x0);}}}return _0x3da0a2;}),_0x187d67['model']['document']['registerPostFixer'](_0x107ce4=>{const _0x5f3ccb=_0x187d67['commands']['get']('redo');if(!_0x5f3ccb||!_0x5f3ccb['_createdBatches']['has'](_0x107ce4['batch']))return!0x1;let _0x95b8cd=!0x1;const _0x11e6b9=_0x187d67['plugins']['get']('Users')['me'],_0x1df7b1=_0x187d67['model']['document']['differ']['getChanges'](),_0x5545fd=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b8061,data:_0x463cc6})=>{const {group:_0x1bc893,subType:_0x2810f4,authorId:_0x4d24cc}=_0x531cbc['_splitMarkerName'](_0x5b8061);return'suggestion'==_0x1bc893&&'tablePaste'==_0x2810f4&&_0x4d24cc==_0x11e6b9['id']&&!_0x463cc6['oldRange'];});for(const _0x441398 of _0x1df7b1){if('insert'!=_0x441398['type']||'tableCellSuggestion'!=_0x441398['name']||0x1!=_0x441398['length'])continue;const _0x120e55=_0x107ce4['createRange'](_0x441398['position'],_0x441398['position']['getShiftedBy'](0x1));if(!_0x5545fd['find'](({data:_0x566616})=>_0x566616['newRange']['isEqual'](_0x120e55))){for(const {name:_0xb34357,data:_0x32c6e2}of _0x5545fd)if(_0x120e55['containsRange'](_0x32c6e2['newRange'])){_0x107ce4['updateMarker'](_0xb34357,{'range':_0x120e55}),_0x95b8cd=!0x0;break;}}}return _0x95b8cd;}),_0x187d67['model']['document']['registerPostFixer'](_0x2fdaf6=>{let _0x23f009=!0x1;const _0x3b3322=_0x187d67['plugins']['get']('Users')['me'],_0xfee98=_0x531cbc['getSuggestions']()['filter'](_0x3ddd38=>_0x3ddd38['isInContent']&&_0x3ddd38['author']==_0x3b3322),_0x143226=new Set(),_0x3fbc99=new Set();for(const _0xf83711 of _0xfee98)if('tablePaste'==_0xf83711['subType'])for(const _0xca926d of _0xf83711['getMarkers']()){const _0x44f633=_0xca926d['getRange']()['getContainedElement']();if(_0x44f633){if(_0x44f633['is']('element','tableCellSuggestion')&&ke(_0x44f633)){_0xf83711['removeMarker'](_0xca926d['name']),_0x143226['add'](_0x44f633),_0x23f009=!0x0;const _0x4500e9=_0x44f633['nextSibling'],_0x5562a8=_0x44f633['previousSibling'],_0x14b82a=_0x4500e9&&_0x4500e9['is']('element','tableCellSuggestion'),_0x41b2aa=_0x5562a8&&_0x5562a8['is']('element','tableCellSuggestion');_0x14b82a&&!_0x143226['has'](_0x4500e9)&&_0x3fbc99['add'](_0x4500e9),_0x41b2aa&&!_0x143226['has'](_0x5562a8)&&_0x3fbc99['add'](_0x5562a8);}else _0x44f633['is']('element','paragraph')&&_0x44f633['isEmpty']&&(_0xf83711['removeMarker'](_0xca926d['name']),_0x23f009=!0x0);}}else{if('tablePasteCell'==_0xf83711['subType']){if(!_0xf83711['attributes']||!_0xf83711['attributes']['tablePasteChainId'])continue;const _0x36795f=_0xf83711['attributes']['markerAttributes'];if(_0x36795f&&Object['keys'](_0x36795f)['length'])continue;const _0x4ef18d=_0xf83711['attributes']['tablePasteChainId'];let _0x15ae92=!0x0,_0x14fb7d=!0x0;for(const _0x17b9e6 of _0xfee98)if(_0x17b9e6['subType']&&_0x17b9e6['subType']['startsWith']('tablePaste')){if(!_0x17b9e6['attributes']['tablePasteChainId']){_0x14fb7d=!0x1;break;}if(_0x17b9e6['id']!=_0xf83711['id']&&_0x17b9e6['attributes']['tablePasteChainId']==_0x4ef18d){_0x15ae92=!0x1;break;}}_0x14fb7d&&_0x15ae92&&(_0xf83711['removeMarkers'](),_0x23f009=!0x0);}}for(const _0x3b7b27 of _0x143226)_0x2fdaf6['remove'](_0x3b7b27);for(const _0x28d94f of _0x3fbc99)_0x2fdaf6['unwrap'](_0x28d94f);return _0x23f009;}),_0x187d67['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x38446b=>_0x2de001(_0x38446b),'converterPriority':'high'}),_0x187d67['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32e07d,_0x4f43d3)=>_0x4f43d3['options']['showSuggestionHighlights']?_0x2de001(_0x32e07d,!0x1):null,'converterPriority':'high'});const _0x4765fb=_0x187d67['editing']['view'];this['listenTo'](_0x4765fb['document'],'clipboardOutput',(_0x30aae2,_0x154db7)=>{const _0x4b204f=[];for(const _0x4102ed of _0x4765fb['createRangeIn'](_0x154db7['content'])['getItems']())_0x4102ed['is']('element','suggestion-td')&&_0x4b204f['push'](_0x4102ed);_0x4765fb['change'](_0x1adabf=>{for(const _0x843d6b of _0x4b204f)_0x1adabf['move'](_0x1adabf['createRangeIn'](_0x843d6b),_0x1adabf['createPositionBefore'](_0x843d6b)),_0x1adabf['remove'](_0x843d6b);});});}}function ke(_0x345e3c){if(_0x345e3c['isEmpty'])return!0x0;const _0x4d2ff3=_0x345e3c['getChild'](0x0);return _0x4d2ff3['is']('element','paragraph')&&_0x4d2ff3['isEmpty'];}function Re(_0x1c0566,_0x12277f={},_0x470bc0){for(const {isAnchor:_0xbd9187,cellHeight:_0x586728,cellWidth:_0xfc1250}of _0x470bc0['createTableWalker'](_0x1c0566,{'includeAllSlots':!0x0,..._0x12277f}))if(!_0xbd9187||0x1!=_0x586728||0x1!=_0xfc1250)return!0x1;return!0x0;}class Nt extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a9454=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a9454['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a9454['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x271e94,_0x1181d7){const _0x4be10a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2de9a5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5c52c9=_0x1181d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x46102f=_0x2de9a5['getColumnGroupElement'](_0x5c52c9);let _0x3b4c38=_0x46102f?_0x2de9a5['getTableColumnsWidths'](_0x46102f):null,_0x50ce71=_0x5c52c9['getAttribute']('tableWidth')||null;const _0x5095dc=_0x1181d7['tableWidth']||_0x50ce71,_0x3656ad=_0x1181d7['columnWidths']||_0x3b4c38,_0x1d78d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2cc50a of _0x4be10a['getSuggestions']()){const _0x202884=_0x2cc50a['getContainedElement']();if('resizeTable'===_0x2cc50a['subType']&&_0x202884===_0x5c52c9){_0x2cc50a['author']!==_0x1d78d1&&_0x2cc50a['discard']();const _0x590032=_0x2cc50a['data']['commandParams'];_0x50ce71=_0x590032[0x0]['tableWidth'],_0x3b4c38=_0x590032[0x0]['columnWidths'];break;}}_0x271e94({'table':_0x5c52c9,'tableWidth':_0x5095dc,'columnWidths':_0x3656ad}),_0x4be10a['markBlockFormat'](_0x5c52c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x50ce71,'columnWidths':_0x3b4c38}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c1698){if('formatBlock'!=_0x1c1698['type']&&'formatInline'!=_0x1c1698['type'])return;const {data:_0x5d44b6}=_0x1c1698;if(_0x5d44b6&&'resizeTable'===_0x5d44b6['formatGroupId']){const _0x140802='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x140802)};}}}class Dt extends _0x328234{['afterInit'](){const _0x316deb=this['editor'];_0x316deb['plugins']['has']('Template')&&_0x316deb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x328234{['afterInit'](){const _0x1b8ccb=this['editor'];if(!_0x1b8ccb['commands']['get']('insertTableOfContents'))return;_0x1b8ccb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5d231e=_0x1b8ccb['plugins']['get']('TrackChangesEditing'),_0x4b0494=_0x1b8ccb['locale'];_0x5d231e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1318ff=>o(_0x4b0494,'ELEMENT_TABLE_OF_CONTENTS',_0x1318ff));}}class $t extends _0x328234{['afterInit'](){const _0xee801=this['editor'];if(!_0xee801['plugins']['has']('Title'))return;const _0x20b81f=_0xee801['plugins']['get']('TrackChangesEditing');_0x20b81f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xee801['locale'],'ELEMENT_TITLE')),_0xee801['model']['document']['registerPostFixer'](_0x3e9202=>{let _0x325441=!0x1;const _0x2037c1=Array['from'](_0xee801['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fefee,data:_0x5d87ad}of _0x2037c1){const {group:_0x18da86}=_0x20b81f['_splitMarkerName'](_0x2fefee);if('suggestion'!==_0x18da86||!_0x5d87ad['newRange'])continue;const _0x2fc5a3=_0x5d87ad['newRange'],_0x3f264e=_0x2fc5a3['end']['nodeBefore'];if(!_0x3f264e||!_0x3f264e['is']('element','title-content'))continue;if(!_0x2fc5a3['start']['isTouching'](_0x2fc5a3['end']))continue;const _0x55003a=_0xee801['model']['schema']['getNearestSelectionRange'](_0x2fc5a3['end'],'forward');if(_0x55003a&&_0x55003a['isCollapsed']){const _0x58f4af=_0x3e9202['createRange'](_0x2fc5a3['start'],_0x55003a['start']);_0x58f4af['isEqual'](_0x2fc5a3)||(_0x3e9202['updateMarker'](_0x2fefee,{'range':_0x58f4af}),_0x325441=!0x0);}_0x325441||(_0x3e9202['removeMarker'](_0x2fefee),_0x325441=!0x0);}return _0x325441;});}}class Bt extends _0x328234{['afterInit'](){const _0xa2aaba=this['editor'],_0x590b63=_0xa2aaba['plugins']['get']('TrackChangesEditing');_0xa2aaba['plugins']['has']('UndoEditing')&&(_0x590b63['enableCommand']('undo'),_0x590b63['enableCommand']('redo'));}}class xt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x1f7b0c=this['editor'];if(!_0x1f7b0c['plugins']['has']('TableCaptionEditing'))return;_0x1f7b0c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x328234{['tableProperties'];['tableCellProperties'];constructor(_0x3b15fd){super(_0x3b15fd),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 _0x149694=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x549c7c of this['tableProperties'])_0x149694['enableCommand'](_0x549c7c,(_0x13dbd5,_0x106229)=>{const _0x5e8dbf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x549c7c,[_0x5e8dbf],this['tableProperties'],'tableProperties',_0x13dbd5,_0x106229);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cab41,_0x407186)=>this['handleDiscardAction'](this['tableProperties'],_0x5cab41,_0x407186)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3536c4 of this['tableCellProperties'])_0x149694['enableCommand'](_0x3536c4,(_0x104cdc,_0x3aa617)=>{const _0x5b141c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3536c4,_0x5b141c,this['tableCellProperties'],'tableCellProperties',_0x104cdc,_0x3aa617);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x13f82b,_0x304ad0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x13f82b,_0x304ad0)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x149694['descriptionFactory']['registerDescriptionCallback'](_0x46a087=>this['handleSuggestionDescription'](_0x46a087));}['_handlePropertyChange'](_0x2aea5f,_0x1d8cc4,_0x3b5633,_0x37255c,_0x2d6e30,_0x3025d5){const _0x2c4d48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3025d5['batch'],()=>{for(const _0x1214a4 of _0x1d8cc4){if(this['_getSuggestion'](_0x1214a4,_0x37255c))_0x2d6e30(_0x3025d5);else{const _0x13b6cb={};for(const _0x4a8b7a of _0x3b5633){const _0x3e3391=_0x1214a4['getAttribute'](_0x4a8b7a);void 0x0!==_0x3e3391&&(_0x13b6cb[_0x4a8b7a]=_0x3e3391);}_0x2d6e30(_0x3025d5),_0x2c4d48['markBlockFormat'](_0x1214a4,{'commandParams':[_0x13b6cb]},[],_0x37255c);}}});}['handleDiscardAction'](_0x43c07f,_0x5c9556,_0x427ace){const _0x5632e0=_0x5c9556[0x0]['start']['nodeAfter'],_0xbe1f6e=_0x427ace['commandParams'][0x0];this['editor']['model']['change'](_0x394310=>{for(const _0xddd7f5 of _0x43c07f)void 0x0!==_0xbe1f6e[_0xddd7f5]?_0x394310['setAttribute'](_0xddd7f5,_0xbe1f6e[_0xddd7f5],_0x5632e0):_0x394310['removeAttribute'](_0xddd7f5,_0x5632e0);});}['handleSuggestionDescription'](_0xbc2fd){if(_0xbc2fd['data'])switch(_0xbc2fd['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'](_0x103e01,_0x140968){const _0x99a30=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2da2e4 of _0x99a30['getSuggestions']({'skipNotAttached':!0x0})){const _0x164f63=_0x2da2e4['getContainedElement']();if(_0x2da2e4['subType']===_0x140968&&_0x164f63===_0x103e01)return _0x2da2e4;}return null;}}const m='$elementName';class p extends _0x328234{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25715a,_0x11fe9d,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2a2bad){function _0x447f46(_0x1e8963){return _0x1e8963['map'](_0x2e127d=>String['fromCharCode'](_0x2e127d))['join']('');}super(_0x2a2bad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x223200,_0x57577c,_0x1319cd,_0x1eb1e9)=>{this['_model']['change'](()=>{for(const _0x21dcb0 of[..._0x1eb1e9,..._0x1319cd])this['_model']['markers']['has'](_0x21dcb0)&&_0x2a2bad['editing']['reconvertMarker'](_0x21dcb0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a2bad['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(),_0x2a2bad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a2bad['config']['get']('trackChanges.trackFormatChanges'),_0x2a2bad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a2bad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a2bad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x447f46([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x447f46([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x32]);}['init'](){const _0x1fca45=this['editor'],_0x2840dc=(_0x296210,_0x212275)=>{if('attribute'!=_0x296210)return'ck-suggestion-marker-'+_0x296210;const _0x35db6c=_0x212275['split']('|')[0x0];return this['_isBlockAttribute'](_0x35db6c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1fca45['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x394af0=>{const {id:_0x249aee,authorId:_0x112e1f,type:_0xb668ca,subType:_0x44d9a2}=this['_splitMarkerName'](_0x394af0['markerName']),_0x1a4e25=['ck-suggestion-marker',_0x2840dc(_0xb668ca,_0x44d9a2)];let _0x21c966=0xbb8;return this['activeMarkers']['includes'](_0x394af0['markerName'])&&(_0x1a4e25['push']('ck-suggestion-marker--active'),_0x21c966=0xbc2),'deletion'==_0xb668ca&&(_0x21c966+=0x5),{'classes':_0x1a4e25,'attributes':{'data-suggestion':_0x249aee,'data-author-id':_0x112e1f},'priority':_0x21c966};}}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x252685=>{_0x252685['on']('addMarker:suggestion',(_0xea0b5e,_0x28bf4a,_0x46e78b)=>{if(!_0x46e78b['options']['showSuggestionHighlights'])return;const _0x1c15c5=_0x28bf4a['item'];if(!_0x1c15c5)return;const _0x1abfdf=_0x46e78b['mapper']['toViewElement'](_0x1c15c5);_0x1fca45['model']['schema']['isObject'](_0x1c15c5)&&_0x1abfdf&&!_0x1abfdf['getCustomProperty']('widget')&&_0x1abfdf['is']('containerElement')&&_0x20adee(_0x1abfdf,_0x46e78b['writer']);},{'priority':'high'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47b4ec,_0x115682)=>{if(!_0x115682['options']['showSuggestionHighlights'])return null;const {type:_0x3972f3,subType:_0x5a295f}=this['_splitMarkerName'](_0x47b4ec['markerName']);return{'classes':['ck-suggestion-marker',_0x2840dc(_0x3972f3,_0x5a295f)],'priority':0xbb8};}});const _0x1d6f0c=({showActiveMarkers:_0x549fee=!0x0,isAttributeSuggestion:_0x2e3903=!0x1}={})=>(_0x2746bb,_0x2b2b05,_0x708d8d)=>{if(!_0x2b2b05['item'])return;const {id:_0x3f0991,authorId:_0x1c006c}=this['_splitMarkerName'](_0x2b2b05['markerName']);if(_0x2e3903){const _0x582376=this['_suggestions']['get'](_0x3f0991),_0x4c3838=this['_getAttributeKey'](_0x582376);if(!this['_isBlockAttribute'](_0x4c3838))return;}if(_0x2b2b05['item']['is']('selection'))return void _0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);const _0x1542d6=_0x708d8d['mapper']['toViewElement'](_0x2b2b05['item']);if(_0x2b2b05['item']['is']('element')&&_0x1fca45['model']['schema']['isBlock'](_0x2b2b05['item'])&&!_0x1542d6['getCustomProperty']('addHighlight')){_0x708d8d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1542d6),_0x708d8d['writer']['setAttribute']('data-suggestion',_0x3f0991,_0x1542d6),_0x708d8d['writer']['setAttribute']('data-author-id',_0x1c006c,_0x1542d6),_0x708d8d['mapper']['bindElementToMarker'](_0x1542d6,_0x2b2b05['markerName']),_0x549fee&&(this['activeMarkers']['includes'](_0x2b2b05['markerName'])?_0x708d8d['writer']['addClass']('ck-suggestion-marker--active',_0x1542d6):_0x708d8d['writer']['removeClass']('ck-suggestion-marker--active',_0x1542d6));for(const _0x52b98b of _0x1fca45['model']['createRangeIn'](_0x2b2b05['item'])['getItems']())_0x708d8d['consumable']['consume'](_0x52b98b,_0x2746bb['name']);_0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);}};_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x498da0=>{_0x498da0['on']('addMarker:suggestion:formatBlock',(_0x5dc27a,_0x4ffa86,_0x4c52ad)=>{_0x4c52ad['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1})(_0x5dc27a,_0x4ffa86,_0x4c52ad);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x2d1773=>{_0x2d1773['on']('addMarker:suggestion:attribute',(_0x38b466,_0x656fe8,_0x21f723)=>{_0x21f723['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38b466,_0x656fe8,_0x21f723);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51f888,_0x30e27c)=>_0x30e27c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51f888['substr'](0xb)}}),_0x1fca45['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404c40,{writer:_0x5332f3})=>{let _0x20c2e5='suggestion:'+_0x404c40['getAttribute']('suggestion-type')+':'+_0x404c40['getAttribute']('id');return _0x404c40['getAttribute']('marker-count')&&(_0x20c2e5+=':'+_0x404c40['getAttribute']('marker-count')),_0x5332f3['createElement']('$marker',{'data-name':_0x20c2e5});}}),_0x1fca45['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x16369a=>{_0x16369a['on']('addMarker:suggestion:formatBlock',_0x1d6f0c(),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x211aae=>{_0x211aae['on']('addMarker:suggestion:attribute',_0x1d6f0c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x5dfa34=>{_0x5dfa34['on']('removeMarker:suggestion:formatBlock',(_0x5d5d35,_0x305d25,_0xeca696)=>{const _0x24c657=_0xeca696['mapper']['markerNameToElements'](_0x305d25['markerName']);if(_0x24c657){for(const _0x2671ac of _0x24c657)_0x2671ac['getCustomProperty']('addHighlight')||(_0xeca696['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2671ac),_0xeca696['writer']['removeAttribute']('data-suggestion',_0x2671ac),_0xeca696['writer']['removeAttribute']('data-author-id',_0x2671ac),_0xeca696['mapper']['unbindElementFromMarkerName'](_0x2671ac,_0x305d25['markerName']));}},{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x1484e6=>{_0x1484e6['on']('removeMarker:suggestion:attribute',(_0x33858f,_0x3cb5b7,_0x14823f)=>{const _0x397baf=_0x14823f['mapper']['markerNameToElements'](_0x3cb5b7['markerName']);if(!_0x397baf)return;const {id:_0x56f87f}=this['_splitMarkerName'](_0x3cb5b7['markerName']),_0x50931c=this['_suggestions']['get'](_0x56f87f),_0x4bd926=this['_getAttributeKey'](_0x50931c);if(this['_isBlockAttribute'](_0x4bd926)){for(const _0x9b47b9 of _0x397baf)_0x9b47b9['getCustomProperty']('addHighlight')||(_0x14823f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-suggestion',_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-author-id',_0x9b47b9),_0x14823f['mapper']['unbindElementFromMarkerName'](_0x9b47b9,_0x3cb5b7['markerName']));}},{'priority':'high'});}),_0x1fca45['model']['document']['registerPostFixer'](_0x3573bd=>{let _0x53f384=!0x1;const _0x35e1d1=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']()),_0x57f3f7=new Set();for(const {name:_0x316d13,data:_0x2a171f}of _0x35e1d1){const {group:_0x16ec0e,type:_0x7ea048,subType:_0x398b86,id:_0x1a706c}=this['_splitMarkerName'](_0x316d13);if('suggestion'!==_0x16ec0e)continue;const _0x598f47=this['_suggestions']['get'](_0x1a706c);if(null!=_0x2a171f['newRange']){'formatInline'==_0x7ea048&&(_0x53f384=_0x53f384||Ut(_0x2a171f['newRange'],_0x316d13,_0x3573bd,_0x1fca45['model']['schema']));const _0x495fdc='attribute'==_0x7ea048&&this['_isBlockAttribute'](_0x398b86['split']('|')[0x0]);if(_0x2a171f['newRange']['isCollapsed']||'$graveyard'==_0x2a171f['newRange']['root']['rootName']||'formatBlock'==_0x7ea048&&!Ft(_0x2a171f['newRange'])||_0x495fdc&&!Ft(_0x2a171f['newRange'])||'deletion'==_0x7ea048&&!(!Vt(_0x19ccf2=_0x2a171f['newRange'])&&!function(_0x250adf){return _0x250adf['start']['parent']==_0x250adf['end']['nodeBefore']&&_0x250adf['start']['isAtEnd'];}(_0x19ccf2)))_0x3573bd['removeMarker'](_0x316d13),_0x53f384=!0x0;else{if(!_0x598f47||!_0x598f47['isInContent'])continue;if(_0x2a171f['newRange']&&_0x2a171f['oldRange']&&_0x2a171f['newRange']['isEqual'](_0x2a171f['oldRange']))continue;_0x57f3f7['add'](_0x598f47);}}}var _0x19ccf2;return _0x57f3f7['size']>0x0&&(_0x53f384=!!this['_joinWithAdjacentSuggestions'](_0x57f3f7)||_0x53f384),_0x53f384;}),_0x1fca45['model']['document']['registerPostFixer'](_0x18adfb=>{let _0x1a162f=!0x1;for(const _0x4aa107 of _0x1fca45['model']['document']['differ']['getChanges']())if('insert'==_0x4aa107['type'])for(const _0x13458b of this['_suggestions']['values']()){if(_0x13458b['isMultiRange']||!_0x13458b['isInContent'])continue;const _0x3acb09='formatBlock'==_0x13458b['type'],_0x2ee36d=this['_getAttributeKey'](_0x13458b),_0x15b5f3=_0x2ee36d&&this['_isBlockAttribute'](_0x2ee36d);if(!_0x3acb09&&!_0x15b5f3)continue;const _0x492bdd=_0x13458b['getFirstRange']();if(_0x492bdd['start']['parent']!=_0x492bdd['end']['parent']&&!_0x492bdd['end']['isAtEnd']){const _0x2c99fd=_0x1fca45['model']['createPositionAt'](_0x492bdd['start']['nodeAfter'],'end'),_0x2e4409=_0x1fca45['model']['createRange'](_0x492bdd['start'],_0x2c99fd);_0x18adfb['updateMarker'](_0x13458b['getFirstMarker'](),{'range':_0x2e4409}),_0x1a162f=!0x0;}}return _0x1a162f;}),_0x1fca45['model']['document']['registerPostFixer'](_0x54cb88=>this['_processAttributeChanges'](_0x54cb88)),_0x1fca45['model']['document']['registerPostFixer'](_0x5b1659=>!_0x5b1659['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5b1659)),_0x1fca45['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1fca45['model']['document']['on']('change:data',(_0x5c8c50,_0x14046d)=>{if(!_0x14046d['isLocal']||_0x14046d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4f75ed=_0x1fca45['model']['document']['differ']['getChanges']();if(0x0==_0x4f75ed['length'])return;const _0x5e8588=[],_0xb2a1db=_0x4f75ed['filter'](_0x172347=>'attribute'==_0x172347['type']),_0x3518dc=_0x4f75ed['filter'](_0x5df69c=>'insert'==_0x5df69c['type']&&'$text'!=_0x5df69c['name']);for(const _0x5b23c1 of _0xb2a1db)this['_isRegisteredAttribute'](_0x5b23c1['attributeKey'])&&_0x5e8588['push']({'key':_0x5b23c1['attributeKey'],'newValue':_0x5b23c1['attributeNewValue'],'oldValue':_0x5b23c1['attributeOldValue'],'range':Pt(_0x5b23c1['range'],_0x1fca45['model'])});for(const _0x2e679b of _0x3518dc){if('rename'!=_0x2e679b['action']&&'refresh'!=_0x2e679b['action'])continue;const _0x5b8fa9=Lt(_0x2e679b['position']['nodeAfter'],_0x1fca45['model']),_0x19525a=_0x2e679b['before'];'rename'==_0x2e679b['action']&&_0x5e8588['push']({'key':m,'newValue':_0x2e679b['name'],'oldValue':_0x19525a['name'],'range':_0x5b8fa9});for(const [_0x106512,_0x1b9b9e]of _0x19525a['attributes']){if(!this['_isRegisteredAttribute'](_0x106512))continue;const _0x157f00=_0x2e679b['attributes']['get'](_0x106512);_0x1b9b9e!==_0x157f00&&_0x5e8588['push']({'key':_0x106512,'newValue':_0x157f00,'oldValue':_0x1b9b9e,'range':_0x5b8fa9});}for(const [_0x1bdbff,_0x4fa57c]of _0x2e679b['attributes'])this['_isRegisteredAttribute'](_0x1bdbff)&&(_0x19525a['attributes']['has'](_0x1bdbff)||_0x5e8588['push']({'key':_0x1bdbff,'newValue':_0x4fa57c,'oldValue':null,'range':_0x5b8fa9}));}0x0!=_0x5e8588['length']&&_0x1fca45['model']['enqueueChange'](_0x14046d,_0x35c9fd=>{const _0x4e3938=_0x2b4c20();for(const {range:_0x3b8063,key:_0x3ab182,oldValue:_0x50674,newValue:_0x2e1459}of _0x5e8588)this['markAttributeChange'](_0x3b8063,_0x3ab182,_0x50674,_0x2e1459,{'groupId':_0x4e3938});this['_reduceExistingSuggestions'](_0x35c9fd,_0x5e8588);});},{'priority':'lowest'}),_0x1fca45['model']['markers']['on']('update:suggestion',(_0x23b20c,_0x308219,_0x451ab0)=>{if(null==_0x451ab0){const {id:_0x677c0a}=this['_splitMarkerName'](_0x308219['name']),_0x387437=this['_suggestions']['get'](_0x677c0a);_0x387437&&_0x387437['addMarkerName'](_0x308219['name']);}}),_0x1fca45['model']['document']['on']('change:data',()=>{const _0x1019bf=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']())['filter'](_0x58d037=>'suggestion'===this['_splitMarkerName'](_0x58d037['name'])['group']);if(0x0===_0x1019bf['length'])return;_0x1019bf['sort']((_0xc5b54d,_0xf3dc91)=>{const _0xd28f26=_0xc5b54d['data']['oldRange'],_0x43f3d2=_0xf3dc91['data']['oldRange'];return null===_0xd28f26&&null===_0x43f3d2?0x0:null===_0xd28f26&&null!==_0x43f3d2?-0x1:null!==_0xd28f26&&null===_0x43f3d2?0x1:_0xd28f26['start']['isBefore'](_0x43f3d2['start'])?-0x1:0x1;});const _0x9008d4=new Set(),_0x3330fa=new Set();for(const {name:_0x5ce97c,data:_0x3ebf44}of _0x1019bf){const {id:_0x46b5ae}=this['_splitMarkerName'](_0x5ce97c);if(null===_0x3ebf44['oldRange']){const _0x5ac521=this['_handleNewSuggestionMarker'](_0x5ce97c);_0x3330fa['add'](_0x5ac521);}else{const _0x18d48b=this['_suggestions']['get'](_0x46b5ae);null!==_0x3ebf44['newRange']||_0x18d48b['isInContent']?(_0x9008d4['add'](_0x18d48b['head']),_0x3330fa['add'](_0x18d48b)):this['_removeSuggestion'](_0x18d48b);}}_0x3330fa['size']>0x0&&this['_refreshSuggestionsChain'](_0x3330fa);for(const _0xcb2e0d of _0x9008d4)this['fire']('suggestionChanged',_0xcb2e0d);}),_0x1fca45['model']['on']('applyOperation',(_0x31f619,_0x40728d)=>{const _0x40856d=_0x40728d[0x0];if(!this['_suggestions']['size'])return;if(!_0x40856d['isDocumentOperation'])return;if(_0x40856d['batch']['isUndo']||!_0x40856d['batch']['isLocal'])return;let _0x39c10f,_0x375ed1;switch(_0x40856d['type']){case'insert':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['position']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;case'split':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['splitPosition']),_0x375ed1=_0x1fca45['model']['createPositionAt'](_0x40856d['moveTargetPosition']);break;case'move':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['targetPosition']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;default:return;}const _0x14a8be=_0x1fca45['model']['createRange'](_0x39c10f,_0x375ed1);_0x1fca45['model']['change'](()=>{for(const {suggestion:_0x3bfb0a,meta:_0x4a230e}of this['_findSuggestions'](_0x14a8be)){if(_0x3bfb0a['isMultiRange'])continue;if('formatInline'==_0x3bfb0a['type'])continue;const _0xec662d=this['_getAttributeKey'](_0x3bfb0a);if(_0xec662d&&this['_isBlockAttribute'](_0xec662d)&&'split'!=_0x40856d['type'])continue;const _0x2f559c=_0x3bfb0a['data']&&_0x3bfb0a['data']['multipleBlocks'];('formatBlock'!=_0x3bfb0a['type']||'split'==_0x40856d['type']&&!_0x2f559c)&&(_0x4a230e['containsRangeInObject']||'insertion'==_0x3bfb0a['type']&&_0x4a230e['isOwn']||_0x3bfb0a['getFirstRange']()['containsRange'](_0x14a8be)&&this['_breakSuggestionMarker'](_0x3bfb0a,_0x39c10f,_0x375ed1));}});},{'priority':'lowest'}),_0x1fca45['model']['on']('deleteContent',(_0x1620bd,_0xb4e71e)=>{const _0x393fa5=_0xb4e71e[0x0],_0x22bea8=_0xb4e71e[0x1];if(_0x22bea8&&_0x22bea8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x393fa5['isCollapsed'])return;const _0x14303f=_0x1fca45['model']['schema'],{start:_0x572f8d,end:_0x457d56}=_0x393fa5['getFirstRange'](),_0x1d51db=_0x572f8d['nodeAfter']&&_0x14303f['isLimit'](_0x572f8d['nodeAfter'])?null:_0x14303f['getNearestSelectionRange'](_0x572f8d,'forward'),_0x4e0f4=_0x457d56['nodeBefore']&&_0x14303f['isLimit'](_0x457d56['nodeBefore'])?null:_0x14303f['getNearestSelectionRange'](_0x457d56,'backward'),_0x30d558=_0x1fca45['model']['createRange'](_0x1d51db?_0x1d51db['start']:_0x572f8d,_0x4e0f4?_0x4e0f4['end']:_0x457d56);_0x1fca45['model']['change'](_0x3ec7aa=>{this['markDeletion'](_0x30d558);const _0x7dceca=_0x1fca45['model']['schema']['getNearestSelectionRange'](_0x30d558['start']);_0x393fa5['is']('documentSelection')?_0x3ec7aa['setSelection'](_0x7dceca):_0x393fa5['setTo'](_0x7dceca);}),_0x1620bd['stop']();},{'priority':_0x408fd7['normal']+0xa}),_0x1fca45['model']['on']('insertContent',(_0x1dbece,_0x7509df)=>{const _0x5c39b3=_0x7509df[_0x7509df['length']-0x1];_0x5c39b3&&_0x5c39b3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1fca45['model']['change'](()=>{let _0x1ad3b6=_0x1fca45['model']['insertContent'](_0x7509df[0x0],_0x7509df[0x1],_0x7509df[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ad3b6)return;_0x1dbece['return']=_0x1ad3b6['clone']();const _0x33e5e1=_0x1ad3b6['end']['nodeBefore'],_0x2678d9=_0x1fca45['model']['schema'];_0x33e5e1&&_0x2678d9['isBlock'](_0x33e5e1)&&!_0x2678d9['isObject'](_0x33e5e1)&&(_0x1ad3b6=_0x1fca45['model']['createRange'](_0x1ad3b6['start'],_0x1fca45['model']['createPositionAt'](_0x33e5e1,'end'))),this['markInsertion'](_0x1ad3b6);}),_0x1dbece['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x458520=new x(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('acceptSuggestion',_0x458520),this['enableCommand']('acceptSuggestion');const _0x4ada37=new R(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('discardSuggestion',_0x4ada37),this['enableCommand']('discardSuggestion'),_0x1fca45['commands']['add']('acceptAllSuggestions',new E(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1fca45['commands']['add']('discardAllSuggestions',new E(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1fca45['commands']['add']('acceptSelectedSuggestions',new O(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1fca45['commands']['add']('discardSelectedSuggestions',new O(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x439faa=_0x1fca45['plugins']['get']('CommentsRepository');this['listenTo'](_0x439faa,'addComment',(_0x5a3a9d,{threadId:_0xf41ca})=>{const _0x36c6d4=this['_suggestions']['get'](_0xf41ca);_0x36c6d4&&_0x36c6d4['commentThread']&&0x1===_0x36c6d4['commentThread']['length']&&this['_updateSuggestionData'](_0xf41ca,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x439faa,'removeComment',(_0x443a06,{threadId:_0x32821c})=>{const _0xf32b03=this['_suggestions']['get'](_0x32821c);_0xf32b03&&_0xf32b03['commentThread']&&!_0xf32b03['commentThread']['length']&&this['_updateSuggestionData'](_0x32821c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x143d4f){if(this['_adapter'])throw new _0x2d253a('track-changes-adapter-already-set',this);this['_adapter']=_0x143d4f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a2de0=!0x1,toJSON:_0x50acb8=!0x1}={}){const _0x161b7b=[];for(const _0x5106b7 of this['_suggestions']['values']())_0x3a2de0&&!_0x5106b7['isInContent']||_0x161b7b['push'](_0x5106b7);return _0x50acb8?_0x161b7b['map'](_0x58da55=>_0x58da55['toJSON']()):_0x161b7b;}['getSuggestion'](_0x5c7c0a){const _0x4b0cce=this['_suggestions']['get'](_0x5c7c0a);if(!_0x4b0cce)throw new _0x2d253a('track-changes-suggestion-not-found',this);return _0x4b0cce;}['hasSuggestion'](_0x4fc0e5){return this['_suggestions']['has'](_0x4fc0e5);}['addSuggestionData'](_0x1878e5){const {authorId:_0x5bd4d8,id:_0x5ca2de,attributes:_0x3c955f}=_0x1878e5,[_0xdfa46a,_0x3ff623]=_0x1878e5['type']['split'](':'),_0x5323fd=this['_suggestions']['get'](_0x5ca2de)||this['_createSuggestion'](_0xdfa46a,_0x3ff623,_0x5ca2de,_0x5bd4d8,_0x3c955f);if(this['_addThreadToSuggestion'](_0x5323fd),this['_checkSuggestionCorrectness'](_0x5323fd,_0xdfa46a,_0x3ff623||null,_0x5bd4d8),_0x5323fd['createdAt']=_0x1878e5['createdAt'],_0x5323fd['_isDataLoaded']=!0x0,_0x3c955f&&_0x3c955f['@external']){const _0x1041f6=_0x3c955f['@external'],_0x25a073=this['_getExternalAuthor'](_0x1041f6['authorName']);_0x5323fd['authoredAt']=_0x1041f6['createdAt'],_0x5323fd['author']=_0x25a073,_0x5323fd['isExternal']=!0x0;}else _0x5323fd['authoredAt']=_0x1878e5['createdAt'];switch(_0x1878e5['data']&&(_0x5323fd['data']=_0x1878e5['data']),_0x1878e5['attributes']&&(_0x5323fd['attributes']=_0x1878e5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5323fd['_saved']=!0x0),this['_suggestionState']['get'](_0x5323fd)){case'notReady':this['_suggestionState']['set'](_0x5323fd,'dataReady');break;case'markerReady':_0x5323fd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5323fd])),this['_refreshSuggestionsChain'](new Set([_0x5323fd])),this['_suggestionState']['set'](_0x5323fd,'ready'),this['fire']('suggestionLoaded',_0x5323fd)):this['_suggestionState']['set'](_0x5323fd,'removed');}return _0x5323fd;}['acceptSuggestion'](_0x3a658e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379da0 of _0x3a658e['getAllAdjacentSuggestions']())_0x379da0['accept']();});});}['discardSuggestion'](_0x5c9a7a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43fcb5 of _0x5c9a7a['getAllAdjacentSuggestions']())_0x43fcb5['discard']();});});}['enableCommand'](_0x2ee2fc,_0x2d1c72){const _0xc1a58e=this['editor']['commands']['get'](_0x2ee2fc);if(!_0xc1a58e)throw new _0x2d253a('track-changes-command-not-found',this,{'commandName':_0x2ee2fc});if(this['_enabledCommands']['has'](_0xc1a58e))throw new _0x2d253a('track-changes-enable-command-twice',this,{'commandName':_0x2ee2fc});this['_enabledCommands']['add'](_0xc1a58e),_0x2d1c72&&_0xc1a58e['on']('execute',(_0x5783b3,_0x43c039)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43c039['length']>0x0&&_0x43c039[_0x43c039['length']-0x1]&&_0x43c039[_0x43c039['length']-0x1]['forceDefaultExecution']?_0x43c039['pop']():(_0x5783b3['return']=_0x2d1c72((..._0x3b39a1)=>_0xc1a58e['execute'](..._0x3b39a1,{'forceDefaultExecution':!0x0}),..._0x43c039),_0x5783b3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x250c49){let _0xdb2733,_0x25b786;const _0x31f6cb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdb2733=_0x250c49();}catch(_0x43697b){_0x25b786=_0x43697b;}return _0x31f6cb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x25b786&&_0x2d253a['rethrowUnexpectedError'](_0x25b786,this),_0xdb2733;}['markInsertion'](_0x1e0d5e,_0x3b6ed1=null,_0x59dbba={}){if(_0x1e0d5e['isCollapsed'])return null;const _0x54b9bf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d4585,meta:_0x56b00e}of this['_findSuggestions'](_0x1e0d5e,'insertion'))if(_0x56b00e['isOwn']){if(!_0x56b00e['isNextTo']){if(_0x56b00e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4d4585,_0x59dbba))continue;return _0x4d4585;}if(qt(_0x4d4585,_0x59dbba))return _0x4d4585;this['_breakSuggestionMarker'](_0x4d4585,_0x1e0d5e['start'],_0x1e0d5e['end']);break;}if(_0x3b6ed1==_0x4d4585['subType']&&qt(_0x4d4585,_0x59dbba)){const _0x37e3c8=_0x4d4585['getFirstRange']();return _0x37e3c8['start']['isEqual'](_0x1e0d5e['end'])?this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x1e0d5e['start'],_0x37e3c8['end'])):this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x37e3c8['start'],_0x1e0d5e['end'])),_0x4d4585;}}const _0x203e18=_0x2b4c20(),_0x557d8a=_0x54b9bf['id'],_0x248008=_0x3b6ed1?'insertion:'+_0x3b6ed1:'insertion',_0x51950c=this['_setSuggestionData']({'id':_0x203e18,'type':_0x248008,'createdAt':new Date(),'authorId':_0x557d8a,'attributes':_0x59dbba});return this['_addSuggestionMarker'](_0x248008,_0x203e18,_0x557d8a,_0x1e0d5e),_0x51950c;}['markMultiRangeInsertion'](_0x100bbe,_0x40c839='multi',_0x243765={}){const _0x577c97=this['editor']['plugins']['get']('Users')['me'],_0xc5ea52=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40c839,'join');for(const _0x29f4ff of this['getSuggestions']())if(_0x29f4ff['author']['id']==_0x577c97['id']&&'insertion'==_0x29f4ff['type']&&_0x29f4ff['subType']==_0x40c839&&qt(_0x29f4ff,_0x243765)&&(_0xc5ea52(_0x29f4ff['getRanges'](),_0x100bbe)||_0xc5ea52(_0x100bbe,_0x29f4ff['getRanges']()))){for(const _0x367b13 of _0x100bbe)_0x29f4ff['addRange'](_0x367b13);return _0x29f4ff;}for(const {suggestion:_0x5885cb,meta:_0x1d0323}of this['_findSuggestions'](_0x100bbe,'insertion')){if(!_0x1d0323['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d0323['containsRangeInObject'])continue;if(!qt(_0x5885cb,_0x243765))continue;let _0x14db46=!0x0;for(const _0x56691 of _0x5885cb['getRanges']())for(const _0x507289 of _0x100bbe)if(!_0x56691['containsRange'](_0x507289)){_0x14db46=!0x1;break;}if(_0x14db46)return _0x5885cb;}const _0x33f4bc=_0x2b4c20(),_0x2cc3b2=_0x577c97['id'],_0x1094c4='insertion:'+_0x40c839,_0x318f3b=this['_setSuggestionData']({'id':_0x33f4bc,'type':_0x1094c4,'createdAt':new Date(),'authorId':_0x2cc3b2,'attributes':_0x243765});for(const _0x1ae3a9 of _0x100bbe)this['_addSuggestionMarker'](_0x1094c4,_0x33f4bc,_0x2cc3b2,_0x1ae3a9,u['getMultiRangeId']());return _0x318f3b;}['markInlineFormat'](_0x341cd6,_0x7de036,_0x57115b=null,_0x5b6ba7={}){if(_0x57115b=_0x57115b||Gt(_0x7de036),_0x341cd6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f9030=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');return this['forceDefaultExecution'](()=>_0x1f9030([_0x341cd6],_0x7de036,_0x5b6ba7)),null;}const _0x30a7e3=this['editor']['plugins']['get']('Users')['me'],_0x236280=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e0053,meta:_0x55b5b3}of this['_findSuggestions'](_0x341cd6,'insertion'))_0x55b5b3['isOwn']&&!_0x55b5b3['isInsideObject']&&_0x236280['push'](..._0x3e0053['getRanges']());}const _0x8630cf=function(_0x4412c9,_0x566a8b){const _0x1482ac=[];for(const _0xc82c3d of _0x566a8b){const _0x506867=_0x4412c9['getIntersection'](_0xc82c3d);_0x506867&&_0x1482ac['push'](_0x506867);}return _0x1482ac;}(_0x341cd6,_0x236280),_0x1c69e1=function(_0x224903,_0x325c7c){const _0x40790c=[_0x224903];for(const _0x100faa of _0x325c7c){let _0x2409f6=0x0;for(;_0x2409f6<_0x40790c['length'];){const _0x1b5f51=_0x40790c[_0x2409f6]['getDifference'](_0x100faa);_0x40790c['splice'](_0x2409f6,0x1,..._0x1b5f51),_0x2409f6+=_0x1b5f51['length'];}}return _0x40790c;}(_0x341cd6,_0x236280);_0x8630cf['length']&&this['_model']['change'](()=>{for(const _0xb59acd of _0x8630cf){const _0x457262=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');this['forceDefaultExecution'](()=>_0x457262([_0xb59acd],_0x7de036,_0x5b6ba7));}});for(const _0x375569 of _0x1c69e1){let _0x1ac64d=null,_0x44ce4e=_0x375569['start'],_0xc10595=_0x375569['end'];for(const {suggestion:_0x4e6706,meta:_0x58e9bf}of this['_findSuggestions'](_0x375569,'formatInline')){if(!_0x58e9bf['isOwn'])continue;if(_0x4e6706['subType']!=_0x57115b)continue;if(!qt(_0x4e6706,_0x5b6ba7))continue;const _0xbe9da5=_0x4e6706['getFirstRange']();if(_0xbe9da5['containsRange'](_0x375569,!0x0))return null;_0x44ce4e=_0x44ce4e['isBefore'](_0xbe9da5['start'])?_0x44ce4e:_0xbe9da5['start'],_0xc10595=_0xc10595['isAfter'](_0xbe9da5['end'])?_0xc10595:_0xbe9da5['end'],_0x1ac64d?_0xbe9da5['start']['isBefore'](_0x1ac64d['getFirstRange']()['start'])?(_0x1ac64d['removeMarkers'](),_0x1ac64d=_0x4e6706):_0x4e6706['removeMarkers']():_0x1ac64d=_0x4e6706;}const _0x59d9a4=this['_model']['createRange'](_0x44ce4e,_0xc10595);if(_0x1ac64d)this['_setSuggestionRange'](_0x1ac64d,_0x59d9a4);else{const _0x4398b3=_0x2b4c20(),_0x99f93c=_0x30a7e3['id'];this['_setSuggestionData']({'id':_0x4398b3,'type':'formatInline:'+_0x57115b,'data':_0x7de036,'createdAt':new Date(),'authorId':_0x99f93c,'attributes':_0x5b6ba7}),this['_addSuggestionMarker']('formatInline:'+_0x57115b,_0x4398b3,_0x99f93c,_0x59d9a4);}}return null;}['markBlockFormat'](_0x5a4f4a,_0x5d7a72,_0x5496d8=[],_0x5bb7ba=null,_0xaaf593={}){_0x5d7a72['formatGroupId']||(_0x5d7a72['formatGroupId']=_0x5d7a72['commandName']),_0x5d7a72['multipleBlocks']=_0x5a4f4a['is']('range'),_0x5bb7ba=_0x5bb7ba||Gt(_0x5d7a72);const _0x223e9c=_0x5496d8['map'](_0x2d19ba=>Lt(_0x2d19ba,this['_model'])),_0x43a8f9=_0x5a4f4a['is']('range')?_0x5a4f4a:Lt(_0x5a4f4a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x439378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x439378([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}_0x223e9c['push'](_0x43a8f9);let _0x4913a4=!0x0;for(const _0x19d853 of _0x223e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x19d853)){_0x4913a4=!0x1;break;}if(_0x4913a4&&'always'!==this['_trackFormatChanges']){const _0x121133=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x121133([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}let _0x58f8fb=null,_0x31adb7=_0x43a8f9['start'],_0x4a072e=_0x43a8f9['end'];for(const {suggestion:_0x4a9a30,meta:_0x3753b9}of this['_findSuggestions'](_0x43a8f9,'formatBlock')){if(!_0x3753b9['isOwn'])continue;if(_0x3753b9['isNextTo']||_0x3753b9['containsRangeInObject']||_0x3753b9['isInsideObject'])continue;if(_0x4a9a30['data']['formatGroupId']!=_0x5d7a72['formatGroupId'])continue;if(!qt(_0x4a9a30,_0xaaf593))continue;const _0x5369e2=_0x4a9a30['getFirstRange']();if(_0x4a9a30['subType']==_0x5bb7ba){if(_0x5369e2['containsRange'](_0x43a8f9,!0x0))return null;_0x31adb7=_0x31adb7['isBefore'](_0x5369e2['start'])?_0x31adb7:_0x5369e2['start'],_0x4a072e=_0x4a072e['isAfter'](_0x5369e2['end'])?_0x4a072e:_0x5369e2['end'],_0x58f8fb?_0x5369e2['start']['isBefore'](_0x58f8fb['getFirstRange']()['start'])?(_0x58f8fb['removeMarkers'](),_0x58f8fb=_0x4a9a30):_0x4a9a30['removeMarkers']():_0x58f8fb=_0x4a9a30;}else{const _0x52023a=_0x43a8f9['getIntersection'](_0x5369e2);this['_cutOutSuggestionMarker'](_0x4a9a30,_0x52023a);}}const _0x4bc2eb=this['editor']['plugins']['get']('Users')['me'],_0x953b5b=_0x2b4c20(),_0x5cee32=_0x4bc2eb['id'];if(_0x58f8fb)return this['_setSuggestionRange'](_0x58f8fb,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x58f8fb;{const _0x284772=this['_setSuggestionData']({'id':_0x953b5b,'type':'formatBlock:'+_0x5bb7ba,'data':_0x5d7a72,'createdAt':new Date(),'authorId':_0x5cee32,'attributes':_0xaaf593});return this['_addSuggestionMarker']('formatBlock:'+_0x5bb7ba,_0x953b5b,_0x5cee32,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x284772;}}['markMultiRangeBlockFormat'](_0x11e8b5,_0x5a23d2,_0x5b60f1=[],_0x1482d0=null,_0x1f6507={}){_0x5a23d2['formatGroupId']||(_0x5a23d2['formatGroupId']=_0x5a23d2['commandName']);const _0x5eeffe=_0x11e8b5[0x0];_0x5a23d2['multipleBlocks']=_0x5eeffe['is']('range'),_0x1482d0=_0x1482d0||Gt(_0x5a23d2);const _0x1909b4=_0x5b60f1['map'](_0x11a8b6=>Lt(_0x11a8b6,this['_model'])),_0x59a4a0=_0x5eeffe['is']('range')?_0x11e8b5:_0x11e8b5['map'](_0x225544=>Lt(_0x225544,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2022fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x2022fd(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}_0x1909b4['push'](..._0x59a4a0);let _0x5cb651=!0x0;for(const _0x2f360f of _0x1909b4)if(!this['_rangeIsInLocalUserInsertion'](_0x2f360f)){_0x5cb651=!0x1;break;}if(_0x5cb651&&'always'!==this['_trackFormatChanges']){const _0x367052=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x367052(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}const _0x267033=this['editor']['plugins']['get']('Users')['me'];for(const _0xd35c4c of this['getSuggestions']()){if(_0xd35c4c['author']['id']!=_0x267033['id'])continue;if('formatBlock'!=_0xd35c4c['type']||_0xd35c4c['data']['formatGroupId']!=_0x5a23d2['formatGroupId'])continue;if(!qt(_0xd35c4c,_0x1f6507))continue;const _0x524567=_0xd35c4c['subType']==_0x1482d0;for(let _0x22d6e1=0x0;_0x22d6e1<_0x59a4a0['length'];_0x22d6e1++){const _0x175f4e=_0x59a4a0[_0x22d6e1];for(const _0x55afc2 of _0xd35c4c['getMarkers']()){const _0x54f1f0=_0x55afc2['getRange']();if(_0x175f4e['isEqual'](_0x54f1f0)){_0x524567?(_0x59a4a0['splice'](_0x22d6e1,0x1),_0x22d6e1--):_0xd35c4c['removeMarker'](_0x55afc2['name']);break;}}}}if(0x0==_0x59a4a0['length'])return null;const _0x37ff9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'join');for(const _0x1d8835 of this['getSuggestions']())if(_0x1d8835['author']['id']==_0x267033['id']&&'formatBlock'==_0x1d8835['type']&&_0x1d8835['data']['formatGroupId']==_0x5a23d2['formatGroupId']&&_0x1d8835['subType']==_0x1482d0&&qt(_0x1d8835,_0x1f6507)&&(_0x37ff9c(_0x1d8835['getRanges'](),_0x59a4a0)||_0x37ff9c(_0x59a4a0,_0x1d8835['getRanges']()))){for(const _0x401c43 of _0x59a4a0)_0x1d8835['addRange'](_0x401c43);return _0x1d8835;}const _0x292793=_0x2b4c20(),_0x149bcd=_0x267033['id'],_0x265a42='formatBlock:'+_0x1482d0,_0x1395c9=this['_setSuggestionData']({'id':_0x292793,'type':_0x265a42,'data':_0x5a23d2,'createdAt':new Date(),'authorId':_0x149bcd,'attributes':_0x1f6507});for(const _0x29f9a9 of _0x59a4a0)this['_addSuggestionMarker'](_0x265a42,_0x292793,_0x149bcd,_0x29f9a9,u['getMultiRangeId']());return _0x1395c9;}['markDeletion'](_0x55c010,_0x25cb6d=null,_0x5a9585={}){if(_0x55c010['isCollapsed'])return null;const _0x424596=this['editor']['plugins']['get']('Users')['me'],_0x2c9daa=new _0xf41792(_0x55c010['start'],_0x55c010['end']);for(const {suggestion:_0x309633,meta:_0x2df17a}of this['_findSuggestions'](_0x2c9daa,'insertion'))if(_0x2df17a['isOwn']&&!_0x2df17a['isNextTo']){if(_0x309633['isMultiRange']){const _0x221824=_0x309633['getRanges']()['filter'](_0x38b6be=>'$graveyard'!=_0x38b6be['root']['rootName']);_0x221824['every'](_0x3289b3=>_0x2c9daa['containsRange'](_0x3289b3,!0x0))&&_0x309633['discard']();if(_0x221824['some'](_0x5593c7=>_0x5593c7['containsRange'](_0x2c9daa,!0x0))){const _0x5a84a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25cb6d,'accept');return this['forceDefaultExecution'](()=>_0x5a84a1([_0x2c9daa],null,_0x5a9585)),null;}}else{const _0x3c175b=_0x2c9daa['getIntersection'](_0x309633['getFirstRange']());null!==_0x3c175b&&_0x309633['_onDiscard']([_0x3c175b],null,_0x5a9585);}}if(_0x2c9daa['detach'](),_0x2c9daa['isCollapsed']||'$graveyard'==_0x2c9daa['root']['rootName'])return null;let _0x5f1085=null,_0x14401c=_0x2c9daa['start'],_0x20a8dd=_0x2c9daa['end'];const _0x2bc364=this['_findSuggestions'](_0x2c9daa,'deletion');for(const {suggestion:_0x1d37d5,meta:_0x23ddc2}of _0x2bc364){const _0x1e9983=this['_model']['createRange'](_0x14401c,_0x20a8dd);if(_0x23ddc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23ddc2['containsRangeInObject']&&!_0x23ddc2['isInsideObject'])){if(_0x1d37d5['isMultiRange']){if(!qt(_0x1d37d5,_0x5a9585))continue;let _0x1bfdee=!0x0;for(const _0x4aceea of _0x1d37d5['getRanges']()){if(_0x4aceea['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;_0x1e9983['containsRange'](_0x4aceea)||(_0x1bfdee=!0x1);}_0x1bfdee&&_0x1d37d5['discard']();}else{const _0x285a78=_0x1d37d5['getFirstRange']();if(_0x285a78['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;if(!qt(_0x1d37d5,_0x5a9585)){_0x1e9983['containsRange'](_0x285a78)?_0x1d37d5['removeMarkers']():_0x285a78['containsPosition'](_0x14401c)?_0x14401c=_0x285a78['end']:_0x285a78['containsPosition'](_0x20a8dd)&&(_0x20a8dd=_0x285a78['start']);continue;}_0x14401c=_0x14401c['isBefore'](_0x285a78['start'])?_0x14401c:_0x285a78['start'],_0x20a8dd=_0x20a8dd['isAfter'](_0x285a78['end'])?_0x20a8dd:_0x285a78['end'],_0x5a9585=Object['assign']({},_0x1d37d5['attributes']),_0x5f1085?_0x285a78['start']['isBefore'](_0x5f1085['getFirstRange']()['start'])?(_0x5f1085['removeMarkers'](),_0x5f1085=_0x1d37d5):_0x1d37d5['removeMarkers']():_0x5f1085=_0x1d37d5;}}}if(_0x5f1085)return this['_setSuggestionRange'](_0x5f1085,this['_model']['createRange'](_0x14401c,_0x20a8dd)),_0x5f1085;{const _0x524b62=_0x2b4c20(),_0x1a3ec4=this['_model']['createRange'](_0x14401c,_0x20a8dd),_0x190766=_0x424596['id'],_0x484078=_0x25cb6d?'deletion:'+_0x25cb6d:'deletion',_0x690288=this['_setSuggestionData']({'id':_0x524b62,'type':_0x484078,'createdAt':new Date(),'authorId':_0x190766,'attributes':_0x5a9585});return this['_addSuggestionMarker'](_0x484078,_0x524b62,_0x190766,_0x1a3ec4),_0x690288;}}['markMultiRangeDeletion'](_0x5dccb5,_0x39995c='multi',_0x3bee83={}){const _0x1be8a=this['editor']['plugins']['get']('Users')['me'],_0x2194d3=_0x5dccb5['map'](_0x17eb51=>new _0xf41792(_0x17eb51['start'],_0x17eb51['end'])),_0x5d6d8a=new Set();for(const {suggestion:_0x92fa0,meta:_0x5827e5}of this['_findSuggestions'](_0x2194d3,'insertion'))_0x5827e5['isOwn']&&!_0x5827e5['isNextTo']&&_0x5d6d8a['add'](_0x92fa0);for(const _0x474b86 of _0x5d6d8a)if(_0x474b86['isMultiRange']){const _0x1743e6=_0x474b86['getRanges']();(!_0x474b86['attributes']||!_0x474b86['attributes']['skipNestingCheck'])&&(_0x1743e6['every'](_0x1defe8=>_0x2194d3['some'](_0x34efed=>_0x34efed['containsRange'](_0x1defe8,!0x0)))&&_0x474b86['discard']());if(_0x2194d3['every'](_0x40efba=>_0x1743e6['some'](_0x12e28d=>_0x12e28d['containsRange'](_0x40efba,!0x0)))){const _0x2dc041=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x2dc041(_0x5dccb5,null,_0x3bee83)),null;}}else{const _0x5f345d=_0x474b86['getFirstRange']();_0x2194d3['some'](_0x2c80cc=>_0x2c80cc['containsRange'](_0x5f345d,!0x0))&&_0x474b86['discard']();if(_0x2194d3['every'](_0x46c8e0=>_0x5f345d['containsRange'](_0x46c8e0,!0x0))){const _0x38821d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x38821d(_0x2194d3,null,_0x3bee83)),null;}}const _0x72d449=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'join');let _0x27f4cd=null;for(const _0x1423a6 of this['getSuggestions']())if(_0x1423a6['author']['id']==_0x1be8a['id']&&_0x1423a6['isInContent']&&'deletion'==_0x1423a6['type']&&_0x1423a6['subType']==_0x39995c&&qt(_0x1423a6,_0x3bee83)&&(_0x72d449(_0x1423a6['getRanges'](),_0x2194d3)||_0x72d449(_0x2194d3,_0x1423a6['getRanges']()))){if(_0x27f4cd){if(_0x1423a6['commentThread']&&_0x1423a6['commentThread']['length'])continue;for(const _0x1e9f03 of _0x1423a6['getRanges']())_0x27f4cd['isIntersectingWithRange'](_0x1e9f03)||_0x27f4cd['addRange'](_0x1e9f03);_0x1423a6['removeMarkers']();}else{_0x27f4cd=_0x1423a6;for(const _0x2101a2 of _0x2194d3)_0x1423a6['isIntersectingWithRange'](_0x2101a2)||_0x1423a6['addRange'](_0x2101a2);}}if(_0x27f4cd)return _0x27f4cd;_0x5d6d8a['clear']();for(const {suggestion:_0xa771fb,meta:_0x1e7973}of this['_findSuggestions'](_0x2194d3,'deletion'))_0x1e7973['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e7973['containsRangeInObject']&&!_0x1e7973['isInsideObject'])&&qt(_0xa771fb,_0x3bee83)&&_0x5d6d8a['add'](_0xa771fb);for(const _0x241c5e of _0x5d6d8a){const _0x33c364=_0x241c5e['getRanges']();if(!_0x3bee83||!_0x3bee83['skipNestingCheck']){if(_0x2194d3['every'](_0x465f26=>_0x33c364['some'](_0x4e6dc1=>_0x4e6dc1['containsRange'](_0x465f26,!0x0))))return _0x241c5e;}(!_0x241c5e['attributes']||!_0x241c5e['attributes']['skipNestingCheck'])&&(_0x33c364['every'](_0x196eca=>_0x2194d3['some'](_0x1070dc=>_0x1070dc['containsRange'](_0x196eca,!0x0)))&&_0x241c5e['discard']());}const _0x3c1011=_0x2b4c20(),_0x21f492=_0x1be8a['id'],_0xeaceb9='deletion:'+_0x39995c,_0x43fdb9=this['_setSuggestionData']({'id':_0x3c1011,'type':_0xeaceb9,'createdAt':new Date(),'authorId':_0x21f492,'attributes':_0x3bee83});for(const _0xb838b5 of _0x2194d3)_0xb838b5['detach'](),_0xb838b5['isCollapsed']||'$graveyard'==_0xb838b5['root']['rootName']||this['_addSuggestionMarker'](_0xeaceb9,_0x3c1011,_0x21f492,_0xb838b5,u['getMultiRangeId']());return _0x43fdb9;}['markAttributeChange'](_0x4a7a23,_0x54aa13,_0x2e7736,_0x52c1ae,_0x36a1a5){if(_0x4a7a23['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x313525=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b5737=Array['from'](this['_suggestions']['values']())['filter'](_0x19a0c8=>'attribute'==_0x19a0c8['type']&&_0x19a0c8['data']['key']==_0x54aa13&&_0x19a0c8['isIntersectingWithRange'](_0x4a7a23));if('default'===this['_trackFormatChanges']){const _0x356bd3=this['_findSuggestions'](_0x4a7a23,'insertion')['filter'](({meta:_0x492114})=>_0x492114['isOwn']&&!_0x492114['isInsideObject']&&!_0x492114['isNextTo'])['map'](({suggestion:_0x1e73de})=>_0x1e73de);_0x4b5737['unshift'](..._0x356bd3);}const _0x181bc7=new Map([[_0x4a7a23,_0x2e7736]]);for(const _0x1b3213 of _0x4b5737){const _0x3ec388='attribute'==_0x1b3213['type']?_0x1b3213['data']['oldValue']:void 0x0,_0xb790e8=_0x1b3213['getFirstRange'](),_0x2a0634=Array['from'](_0x181bc7['keys']())['find'](_0x4db35f=>_0x4db35f['isIntersecting'](_0xb790e8));if(!_0x2a0634)continue;const _0x489916=_0x2a0634['getDifference'](_0xb790e8);this['_isBlockAttribute'](_0x54aa13)&&'insertion'==_0x1b3213['type']&&0x0!=_0x489916['length']||(_0x181bc7['delete'](_0x2a0634),_0x489916['forEach'](_0x1a0276=>{_0x181bc7['set'](_0x1a0276,_0x2e7736);}),'insertion'!=_0x1b3213['type']&&_0x3ec388!=_0x52c1ae&&_0x181bc7['set'](_0x2a0634['getIntersection'](_0xb790e8),_0x3ec388));}const _0x422cce=[];for(const [_0x193f6a,_0x507795]of _0x181bc7){const _0x3794f8=_0x2b4c20(),_0x2ae7dc={'key':_0x54aa13,'oldValue':_0x507795,'newValue':_0x52c1ae};_0x54aa13['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':_0x54aa13});const _0x179be5=('attribute:'+(_0x54aa13+'|'+Gt({'newValue':_0x52c1ae})))['substring'](0x0,0x3c),_0x1b7f18=this['_setSuggestionData']({'id':_0x3794f8,'type':_0x179be5,'data':_0x2ae7dc,'createdAt':new Date(),'authorId':_0x313525,'attributes':_0x36a1a5});_0x422cce['push'](_0x1b7f18),this['_addSuggestionMarker'](_0x179be5,_0x3794f8,_0x313525,_0x193f6a);}return _0x422cce;}['enableDefaultAttributesIntegration'](_0x37ddda){this['enableCommand'](_0x37ddda,(_0x4e3709,..._0x5976ed)=>{this['_recordAttributeChanges'](()=>{_0x4e3709(..._0x5976ed);});});}['registerBlockAttribute'](_0x10a79d){this['_blockAttributeKeys']['add'](_0x10a79d);}['registerInlineAttribute'](_0x12a983){this['_inlineAttributeKeys']['add'](_0x12a983);}['_getAttributeKey'](_0x34ccfd){return'attribute'==_0x34ccfd['type']?_0x34ccfd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5bd8ec,_0x291bc2){const _0x1d01ee=_0x5bd8ec['getFirstMarker']();this['_model']['change'](_0x51560b=>{_0x51560b['updateMarker'](_0x1d01ee,{'range':_0x291bc2});});}['_addThreadToSuggestion'](_0x478f74){const _0x258a8e=_0x478f74['id'],_0x4e8f3c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x258a8e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4e8f3c,'threadId':_0x258a8e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34b0f9=this['_commentsRepository']['getCommentThread'](_0x258a8e);_0x34b0f9['unbind']('isRemovable'),_0x34b0f9['isRemovable']=!0x1,_0x478f74['commentThread']=_0x34b0f9;}['_checkSuggestionCorrectness'](_0x2bfd2a,_0x480e19,_0x10b2a7,_0x36d5ee){if(_0x2bfd2a['type']!=_0x480e19||_0x2bfd2a['subType']!=_0x10b2a7||_0x2bfd2a['creator']['id']!=_0x36d5ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d253a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x423de,_0x45e432){const _0x5b97ad=_0x423de['getFirstRange']();if(_0x45e432['isEqual'](_0x5b97ad))_0x423de['removeMarkers']();else{if(_0x5b97ad['containsRange'](_0x45e432)){const _0x4b3f64=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x4b3f64));const _0x1cf5d4=_0x2b4c20(),_0x4ae29e=_0x423de['creator']['id'],_0x233ad0=_0x423de['type']+':'+_0x423de['subType'];this['_setSuggestionData']({'id':_0x1cf5d4,'type':_0x233ad0,'createdAt':new Date(),'authorId':_0x4ae29e,'data':_0x423de['data'],'attributes':_0x423de['attributes']});const _0x274358=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after'),_0x39fda1=this['_model']['createRange'](_0x274358,_0x5b97ad['end']);this['_addSuggestionMarker'](_0x233ad0,_0x1cf5d4,_0x4ae29e,_0x39fda1);}else{if(_0x5b97ad['containsPosition'](_0x45e432['start'])){const _0x338343=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x338343));}else{const _0x1b03c7=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x1b03c7,_0x5b97ad['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26ec13){for(const {suggestion:_0x1b3bfc,meta:_0x19dd5e}of this['_findSuggestions'](_0x26ec13,'insertion')){if(!_0x19dd5e['isOwn'])continue;const _0x5822f9=_0x1b3bfc['getRanges']();for(const _0x3b134f of _0x5822f9)if(!_0x26ec13['getDifference'](_0x3b134f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ec237){const _0x1b7ecf=this['editor']['plugins']['get']('Users')['getUser'](_0x3ec237);if(!_0x1b7ecf)throw new _0x2d253a('track-changes-user-not-found',this);return _0x1b7ecf;}['_getExternalAuthor'](_0x2a6308){const _0x3698c4=this['editor']['plugins']['get']('Users'),_0x3fe064=_0x4eeb59('external:'+_0x2a6308),_0x14475e=_0x3698c4['getUser'](_0x3fe064);return _0x14475e||_0x3698c4['addUser']({'id':_0x3fe064,'name':_0x2a6308});}['_createSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x304a25,_0x27c15c){const _0x4a422e=this['_getAuthorFromId'](_0x304a25),_0xc312fe=this['_suggestionFactory']['buildSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x4a422e,_0x27c15c,_0x20a358=>{this['_updateSuggestionData'](_0x5311cf,{'attributes':_0x20a358});const _0x24c29a=this['getSuggestion'](_0x5311cf);this['_joinWithAdjacentSuggestions'](new Set([_0x24c29a])),this['_refreshSuggestionsChain'](new Set([_0x24c29a]));});return this['listenTo'](_0xc312fe,'accept',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc312fe,'discard',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5311cf,_0xc312fe),this['_suggestionState']['set'](_0xc312fe,'notReady'),_0xc312fe;}['_splitMarkerName'](_0x4e0ae4){const _0x625ee6=_0x4e0ae4['split'](':');return{'group':_0x625ee6[0x0],'type':_0x625ee6[0x1],'subType':_0x625ee6['length']>=0x5?_0x625ee6[0x2]:null,'id':_0x625ee6['length']<0x5?_0x625ee6[0x2]:_0x625ee6[0x3],'authorId':_0x625ee6['length']<0x5?_0x625ee6[0x3]:_0x625ee6[0x4],'markerCount':0x6==_0x625ee6['length']?_0x625ee6[0x5]:null};}['_breakSuggestionMarker'](_0x10a5cd,_0x26ff90,_0x151d61){const _0x227662=_0x10a5cd['getFirstRange'](),_0xff11e4=_0x227662['start'],_0x17c635=_0x227662['end'];this['_setSuggestionRange'](_0x10a5cd,this['_model']['createRange'](_0xff11e4,_0x26ff90));const _0x3159f6=_0x2b4c20(),_0x54474e=_0x10a5cd['creator']['id'],_0x114923=_0x10a5cd['type']+(_0x10a5cd['subType']?':'+_0x10a5cd['subType']:'');this['_setSuggestionData']({'id':_0x3159f6,'type':_0x114923,'createdAt':new Date(),'authorId':_0x54474e,'originalSuggestionId':_0x10a5cd['id'],'attributes':_0x10a5cd['attributes'],'data':_0x10a5cd['data']});const _0x573538=this['_getAttributeKey'](_0x10a5cd);('formatBlock'==_0x10a5cd['type']||_0x573538&&this['_isBlockAttribute'](_0x573538))&&(_0x151d61=this['_model']['createPositionBefore'](_0x151d61['parent'])),this['_addSuggestionMarker'](_0x114923,_0x3159f6,_0x54474e,this['_model']['createRange'](_0x151d61,_0x17c635));}['_findSuggestions'](_0x8fc582,_0xb650f1=null){const _0x146892=[],_0x2b1863=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8fc582)||(_0x8fc582=[_0x8fc582]);for(const _0x4ab12d of this['getSuggestions']()){if(!_0x4ab12d['isInContent'])continue;if(_0xb650f1&&_0x4ab12d['type']!=_0xb650f1)continue;let _0x263175=!0x1;for(const _0x2612cd of _0x4ab12d['getRanges']()){for(const _0x370928 of _0x8fc582){const _0xc95209=_0x370928['start']['isEqual'](_0x2612cd['end'])||_0x370928['end']['isEqual'](_0x2612cd['start']);if(_0xc95209||_0x370928['getIntersection'](_0x2612cd)){const _0x3c85cb=_0x370928['containsRange'](_0x2612cd)&&Ot(this['_model']['schema'],_0x2612cd['start'],_0x370928),_0x18cceb=_0x2612cd['containsRange'](_0x370928)&&Ot(this['_model']['schema'],_0x370928['start'],_0x2612cd);_0x146892['push']({'suggestion':_0x4ab12d,'meta':{'isOwn':_0x2b1863==_0x4ab12d['author'],'isNextTo':_0xc95209,'isInsideObject':_0x3c85cb,'containsRangeInObject':_0x18cceb}}),_0x263175=!0x0;break;}}if(_0x263175)break;}}return _0x146892;}['_addSuggestionMarker'](_0x20621d,_0x4a751a,_0x14d164,_0x328945,_0x4dcd32){this['_model']['change'](_0x17f5e2=>{let _0x15f57d='suggestion:'+_0x20621d+':'+_0x4a751a+':'+_0x14d164;_0x4dcd32&&(_0x15f57d=_0x15f57d+':'+_0x4dcd32),_0x17f5e2['addMarker'](_0x15f57d,{'range':_0x328945,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b0699){const _0x2b7297=_0x2b0699['previous'],_0x4ce769=_0x2b0699['next'];_0x2b0699['previous']=null,_0x2b0699['next']=null,null!=_0x2b7297&&_0x2b7297['next']==_0x2b0699&&(_0x2b7297['next']=_0x4ce769),null!=_0x4ce769&&_0x4ce769['previous']==_0x2b0699&&(_0x4ce769['previous']=_0x2b7297),'ready'==this['_suggestionState']['get'](_0x2b0699)&&(this['_suggestionState']['set'](_0x2b0699,'removed'),this['fire']('suggestionUnloaded',_0x2b0699,_0x2b7297,_0x4ce769));}['_setSuggestionData'](_0x429145){const _0x65e13c=_0x429145['id'],_0xbc4dd9=this['addSuggestionData'](_0x429145);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ac8f4=this['editor']['plugins']['get']('PendingActions'),_0x352cf5=_0xbc4dd9['hasComments'],_0x34e7d8=_0xbc4dd9['subType']?_0xbc4dd9['type']+':'+_0xbc4dd9['subType']:_0xbc4dd9['type'],_0x42b367=this['editor']['locale'],_0xd46ed4=_0x5ac8f4['add'](o(_0x42b367,'PENDING_ACTION_SUGGESTION')),_0x4efa8f={'id':_0x65e13c,'type':_0x34e7d8,'hasComments':_0x352cf5,'data':_0x429145['data']||null,'originalSuggestionId':_0x429145['originalSuggestionId']||null,'attributes':_0xbc4dd9['attributes']};this['_adapter']['addSuggestion'](_0x4efa8f)['then'](_0xba7353=>{_0xbc4dd9['_saved']=!0x0,_0x5ac8f4['remove'](_0xd46ed4),_0xba7353&&_0xba7353['createdAt']&&(this['_suggestions']['get'](_0x65e13c)['createdAt']=_0xba7353['createdAt']);})['catch'](_0x71c48=>{throw _0x32c801('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xbc4dd9['discard']();}),_0xbc4dd9['stopListening'](),this['_suggestions']['delete'](_0xbc4dd9['id']),this['_suggestionState']['delete'](_0xbc4dd9),_0x71c48;});}return _0xbc4dd9;}['_isBlockAttribute'](_0x539a8b){return this['_blockAttributeKeys']['has'](_0x539a8b);}['_updateSuggestionData'](_0x134d7c,_0x20ab3d){const _0x33e502=this['editor']['plugins']['get']('PendingActions'),_0x39ec32=this['getSuggestion'](_0x134d7c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39ec32['_saved']){const _0x52c3a1=_0x33e502['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x134d7c,_0x20ab3d)['then'](()=>{_0x33e502['remove'](_0x52c3a1);});}else _0x39ec32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x134d7c,_0x20ab3d);});}}['_getSuggestionData'](_0x701746){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d253a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x701746);}['_handleNewSuggestionMarker'](_0x546082){const {id:_0x1e17db,type:_0x4da55a,subType:_0xe0108d,authorId:_0x3eab02}=this['_splitMarkerName'](_0x546082),_0xc67963=this['_suggestions']['get'](_0x1e17db)||this['_createSuggestion'](_0x4da55a,_0xe0108d,_0x1e17db,_0x3eab02,{});switch(this['_checkSuggestionCorrectness'](_0xc67963,_0x4da55a,_0xe0108d,_0x3eab02),this['_suggestionState']['get'](_0xc67963)){case'notReady':this['_getSuggestionData'](_0x1e17db)['then'](_0x237f3a=>{let _0x3e9ed0=Promise['resolve']();_0x237f3a['hasComments']&&(_0x3e9ed0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e17db})),_0x3e9ed0['then'](()=>{this['addSuggestionData'](_0x237f3a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xc67963,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e17db,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xc67963,'ready'),this['fire']('suggestionLoaded',_0xc67963);break;case'ready':this['fire']('suggestionChanged',_0xc67963);}return _0xc67963['addMarkerName'](_0x546082),_0xc67963;}['_refreshSuggestionsChain'](_0x4f61ff){const _0xf908aa=Array['from'](_0x4f61ff),_0x38ed34=_0xf908aa['filter'](_0x1dceaa=>'attribute'==_0x1dceaa['type']);this['_refreshAttributeSuggestionsChain'](_0x38ed34);const _0xa46750=_0xf908aa['filter'](_0x5e5445=>!_0x5e5445['isMultiRange']&&'attribute'!=_0x5e5445['type']),_0x197d7b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c590=>!_0x18c590['isMultiRange']&&'attribute'!=_0x18c590['type']),_0x1f4e13=_0x197d7b['filter'](_0x1650df=>!_0x4f61ff['has'](_0x1650df)),_0x4d4456=new Map(_0x197d7b['map'](_0x499b6f=>[_0x499b6f,this['_suggestionFactory']['getSuggestionCallback'](_0x499b6f['type'],_0x499b6f['subType'],'chain')])),_0x43199b=new Map(_0x197d7b['map'](_0x59f389=>[_0x59f389,_0x59f389['getFirstRange']()])),_0x1b6c89=new Set(),_0x1f83a7=new Set();for(let _0x2206e8=0x0;_0x2206e8<_0xa46750['length'];_0x2206e8++)_0x2cf89f(_0xa46750[_0x2206e8],_0xa46750,_0x2206e8+0x1);for(let _0x2a57da=0x0;_0x2a57da<_0xa46750['length'];_0x2a57da++)_0x2cf89f(_0xa46750[_0x2a57da],_0x1f4e13,0x0);const _0x2b9ede=new Set();for(let _0x43f842=0x0;_0x43f842<_0xa46750['length'];_0x43f842++){const _0x4e1173=_0xa46750[_0x43f842];!_0x1f83a7['has'](_0x4e1173)&&_0x4e1173['previous']&&(_0x2b9ede['add'](_0x4e1173['previous']),_0x4e1173['previous']['next']===_0x4e1173&&(_0x4e1173['previous']['next']=null),_0x4e1173['previous']=null),!_0x1b6c89['has'](_0x4e1173)&&_0x4e1173['next']&&(_0x2b9ede['add'](_0x4e1173['next']),_0x4e1173['next']['previous']===_0x4e1173&&(_0x4e1173['next']['previous']=null),_0x4e1173['next']=null);}function _0x2cf89f(_0x1685e8,_0x28fd6b,_0x1df6df){for(let _0x21fbd7=_0x1df6df;_0x21fbd7<_0x28fd6b['length'];_0x21fbd7++){const _0x5539e3=_0x3b7a96(_0x1685e8,_0x28fd6b[_0x21fbd7]);_0x5539e3&&(_0x5539e3[0x0]['next']=_0x5539e3[0x1],_0x5539e3[0x1]['previous']=_0x5539e3[0x0],_0x1b6c89['add'](_0x5539e3[0x0]),_0x1f83a7['add'](_0x5539e3[0x1]));}}function _0x3b7a96(_0x2fd06c,_0x46b937){if(_0x2fd06c['author']['id']!==_0x46b937['author']['id'])return null;const _0x497839=_0x4d4456['get'](_0x2fd06c)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937));if(!_0x497839)return null;return _0x4d4456['get'](_0x46b937)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937))?_0x497839[0x1]['commentThread']&&_0x497839[0x1]['commentThread']['length']?null:_0x497839:null;}_0x2b9ede['size']&&this['_refreshSuggestionsChain'](_0x2b9ede);}['_refreshAttributeSuggestionsChain'](_0x564677){if(0x0==_0x564677['length'])return;const _0x150301=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22fc9e=>'attribute'==_0x22fc9e['type']&&_0x22fc9e['_isDataLoaded']),_0x22e8a0=[],_0x4dc13d=new Map();for(const _0x7df050 of _0x150301){const _0x249f9f=_0x4eeb59(_0x7df050['attributes']);_0x4dc13d['has'](_0x249f9f)||(_0x4dc13d['set'](_0x249f9f,_0x22e8a0['length']),_0x22e8a0['push']([]));const _0x2cb515=_0x4dc13d['get'](_0x249f9f);_0x22e8a0[_0x2cb515]['push'](_0x7df050);}!(function(){_0x22e8a0['sort']((_0x3d8d68,_0x429fdb)=>{const _0x3fab13=_0x3d8d68[0x0]['createdAt'],_0x27a49d=_0x429fdb[0x0]['createdAt'];return _0x3fab13==_0x27a49d?_0x3d8d68[0x0]['attributes']['groupId']<_0x429fdb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fab13<_0x27a49d?-0x1:0x1;});for(const _0x1e4595 of _0x22e8a0)_0x1e4595['sort']((_0x139e3e,_0x4d241c)=>_0x139e3e['id']<_0x4d241c['id']?-0x1:0x1);}());for(let _0x29dff3=0x0;_0x29dff3<_0x22e8a0['length'];_0x29dff3++){if(0x0==_0x22e8a0[_0x29dff3]['length'])continue;const _0x5c0ca6=[];for(let _0x4e5ed6=_0x29dff3+0x1;_0x4e5ed6<_0x22e8a0['length'];_0x4e5ed6++)0x0!=_0x22e8a0[_0x4e5ed6]['length']&&_0x19ceda(_0x22e8a0[_0x29dff3],_0x22e8a0[_0x4e5ed6])&&_0x5c0ca6['push'](_0x4e5ed6);for(const _0x1e2b73 of _0x5c0ca6)_0x22e8a0[_0x29dff3]=_0x22e8a0[_0x29dff3]['concat'](_0x22e8a0[_0x1e2b73]),_0x22e8a0[_0x1e2b73]=[];}for(const _0x2cf8c1 of _0x22e8a0)for(let _0x59f34b=0x0;_0x59f34b<_0x2cf8c1['length'];_0x59f34b++){const _0x50ebd3=_0x2cf8c1[_0x59f34b+0x1]||null;_0x2cf8c1[_0x59f34b]['next']!==_0x50ebd3&&(_0x2cf8c1[_0x59f34b]['next']=_0x50ebd3);}for(const _0x3d3fbc of _0x22e8a0)for(let _0x17ddc5=0x0;_0x17ddc5<_0x3d3fbc['length'];_0x17ddc5++){const _0x485fb3=_0x3d3fbc[_0x17ddc5-0x1]||null;_0x3d3fbc[_0x17ddc5]['previous']!==_0x485fb3&&(_0x3d3fbc[_0x17ddc5]['previous']=_0x485fb3);}function _0x19ceda(_0x1b6ef3,_0x52692b){if(_0x1b6ef3[0x0]['attributes']['groupId']!==_0x52692b[0x0]['attributes']['groupId']&&_0x1b6ef3[0x0]['author']!==_0x52692b[0x0]['author'])return!0x1;if(!function(_0xb09238,_0x1316c8){if(!_0xb09238['hasComments']&&!_0x1316c8['hasComments'])return!0x0;if(_0xb09238['hasComments']&&_0x1316c8['hasComments'])return!0x1;if(_0xb09238['hasComments']&&_0x1316c8['createdAt']<_0xb09238['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1316c8['hasComments']&&_0xb09238['createdAt']<_0x1316c8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1b6ef3[0x0],_0x52692b[0x0]))return!0x1;const _0x27210e=Tt(_0x1b6ef3[0x0]['attributes'],'groupId'),_0x5c87ed=Tt(_0x52692b[0x0]['attributes'],'groupId');if(!_0x3bc98d(_0x27210e,_0x5c87ed))return!0x1;return!!_0x1b6ef3['every'](_0xeb2855=>_0x52692b['some'](_0x49625a=>_0xeb2855['getFirstRange']()['isEqual'](_0x49625a['getFirstRange']())))&&_0x52692b['every'](_0x73ece5=>_0x1b6ef3['some'](_0xc6da10=>_0x73ece5['getFirstRange']()['isEqual'](_0xc6da10['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fadcb){const _0x4ccb99=Array['from'](_0x2fadcb),_0x2379c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cb8ed=_0x2379c3['filter'](_0xb02510=>!_0x2fadcb['has'](_0xb02510)),_0x270e50=new Map(_0x4ccb99['map'](_0xc3356f=>[_0xc3356f,this['_suggestionFactory']['getSuggestionCallback'](_0xc3356f['type'],_0xc3356f['subType'],'join')])),_0x5a0854=new Map(_0x2379c3['map'](_0x32a64c=>[_0x32a64c,_0x32a64c['getRanges']()]));for(let _0xa2877=0x0;_0xa2877<_0x4ccb99['length'];_0xa2877++){if(_0x4757a7(this,_0x4ccb99[_0xa2877],_0x4ccb99,_0xa2877+0x1))return!0x0;}for(let _0x15a479=0x0;_0x15a479<_0x4ccb99['length'];_0x15a479++){if(_0x4757a7(this,_0x4ccb99[_0x15a479],_0x2cb8ed,0x0))return!0x0;}return!0x1;function _0x4757a7(_0x25ba81,_0x55a141,_0x6eb049,_0x254d52){for(let _0x1170fa=_0x254d52;_0x1170fa<_0x6eb049['length'];_0x1170fa++){const _0x30bf6a=_0x6eb049[_0x1170fa];if(_0x30bf6a['type']!==_0x55a141['type']||_0x30bf6a['author']['id']!==_0x55a141['author']['id']||_0x30bf6a['subType']!==_0x55a141['subType'])continue;if(!Jt(_0x55a141,_0x30bf6a))continue;if('attribute'==_0x55a141['type']&&_0x55a141['data']['oldValue']!=_0x30bf6a['data']['oldValue'])continue;if('attribute'==_0x55a141['type']&&_0x25ba81['_isBlockAttribute'](_0x55a141['data']['key']))continue;if('formatBlock'==_0x55a141['type']){const _0x550533=_0x25ba81['editor']['model'],_0x5726b9=_0x55a141['getContainedElement']();if(_0x5726b9&&(_0x550533['schema']['isObject'](_0x5726b9)||_0x550533['schema']['isLimit'](_0x5726b9)))continue;}const _0x330c2f=_0x270e50['get'](_0x55a141),_0xd7f46b=_0x5a0854['get'](_0x55a141),_0x22abf4=_0x5a0854['get'](_0x30bf6a),_0x3abe7=_0x55a141['commentThread']&&_0x55a141['commentThread']['length'],_0x2da160=_0x30bf6a['commentThread']&&_0x30bf6a['commentThread']['length'];if(!_0x3abe7&&_0x330c2f(_0x22abf4,_0xd7f46b))return _0x25ba81['_joinSuggestions'](_0x30bf6a,_0x55a141),_0x5a0854['delete'](_0x55a141),!0x0;if(!_0x2da160&&_0x330c2f(_0xd7f46b,_0x22abf4))return _0x25ba81['_joinSuggestions'](_0x55a141,_0x30bf6a),_0x5a0854['delete'](_0x30bf6a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3436a8,_0x55915b){if(_0x3436a8['isMultiRange']){for(const _0x4669cf of _0x55915b['getRanges']())_0x3436a8['addRange'](_0x4669cf);}else{const _0x44198e=_0x55915b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3436a8,this['_model']['createRange'](_0x3436a8['getFirstRange']()['start'],_0x44198e));}_0x55915b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x547061,_0x121fe6,_0x276c3f){const _0x4c0bd7=_0x547061['startsWith']('format')||_0x547061['startsWith']('attribute')?'FORMATTING':_0x547061['toUpperCase']();return o(this['editor']['locale'],_0x121fe6+'_'+_0x4c0bd7+'_SUGGESTION_ANNOUNCEMENT',_0x276c3f);}['_initAriaMarkerChangeAnnouncements'](){const _0xea04b2=this['editor'];if(!_0xea04b2['ui'])return;const {ariaLiveAnnouncer:_0x116ff0}=_0xea04b2['ui'];_0x4c46e3(this['_model'],({left:_0x2c8d7a,entered:_0x5354cc})=>{for(const _0x34fa21 of _0x2c8d7a){const {group:_0x4cafcb,type:_0xd310c2}=this['_splitMarkerName'](_0x34fa21['name']);if('suggestion'===_0x4cafcb){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0xd310c2,'LEAVE'));break;}}for(const _0x130429 of _0x5354cc){const {group:_0x207aa0,type:_0x3c43a3}=this['_splitMarkerName'](_0x130429['name']);if('suggestion'===_0x207aa0){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0x3c43a3,'ENTER',_0x753ada(_0x5ece77)));break;}}});}['_processAttributeChanges'](_0x3b5deb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37c9f4=this['editor'],_0x22192e=_0x37c9f4['model']['document']['differ']['getChanges']();if(0x0==_0x22192e['length'])return!0x1;const _0x8998f2=[],_0x2e0323=_0x22192e['filter'](_0x37208d=>'attribute'==_0x37208d['type']),_0x2b2925=_0x22192e['filter'](_0x3ed285=>'insert'==_0x3ed285['type']&&'$text'!=_0x3ed285['name']),_0x39adbe=_0x22192e['filter'](_0x2b2a09=>'remove'==_0x2b2a09['type']&&'$text'!=_0x2b2a09['name']);for(const _0x49a8c7 of _0x2e0323)_0x8998f2['push']({'key':_0x49a8c7['attributeKey'],'newValue':_0x49a8c7['attributeNewValue'],'oldValue':_0x49a8c7['attributeOldValue'],'range':Pt(_0x49a8c7['range'],_0x37c9f4['model'])});for(const _0x564edb of _0x2b2925){const _0x527dcf=_0x39adbe['find'](_0x1c0fc4=>_0x1c0fc4['position']['isEqual'](_0x564edb['position']));_0x527dcf&&_0x8998f2['push']({'key':m,'newValue':_0x564edb['name'],'oldValue':_0x527dcf['name'],'range':_0x37c9f4['model']['createRangeOn'](_0x564edb['position']['nodeAfter'])});}return 0x0!=_0x8998f2['length']&&this['_reduceExistingSuggestions'](_0x3b5deb,_0x8998f2);}['_processAttributeSuggestions'](_0x301b65){let _0x1b254c=!0x1;const _0x15c4ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x462be9=>_0x462be9['data']['newRange']&&_0x462be9['name']['startsWith']('suggestion:attribute:'));for(const _0xbb2246 of _0x15c4ee){const {subType:_0x42344a,id:_0x57e230}=this['_splitMarkerName'](_0xbb2246['name']),_0x48b24d=_0x42344a['split']('|')[0x0];for(const _0xff4f86 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xff4f86['id']!=_0x57e230&&'attribute'==_0xff4f86['type']&&_0xff4f86['data']&&_0xff4f86['data']['key']==_0x48b24d&&_0xff4f86['getFirstRange']()['isIntersecting'](_0xbb2246['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xff4f86,_0xbb2246['data']['newRange'],_0x301b65),_0x1b254c=!0x0);}return _0x1b254c;}['_recordAttributeChanges'](_0x8eef9b){this['_recordAttributeSuggestions']=!0x0,_0x8eef9b();}['_isRegisteredAttribute'](_0x3275fd){const _0x3301ae=this['_isBlockAttribute'](_0x3275fd),_0x513aae=this['_inlineAttributeKeys']['has'](_0x3275fd);return _0x3301ae||_0x513aae;}['_reduceExistingSuggestions'](_0x233703,_0x2024b2){if(0x0==_0x2024b2['length'])return!0x1;let _0x452cb7=!0x1;for(const _0xb27d4a of _0x2024b2){const _0x1c4d20=this['_findSuggestions'](_0xb27d4a['range'],'attribute')['filter'](_0x2bf384=>!_0x2bf384['meta']['isNextTo'])['map'](_0x27aa5a=>_0x27aa5a['suggestion']),_0xd386ae=_0x4eeb59({'newValue':_0xb27d4a['newValue']});_0x1c4d20['filter'](_0xac368a=>{const [_0x48905c,_0xc14e98]=_0xac368a['subType']['split']('|');return _0x48905c==_0xb27d4a['key']&&_0xc14e98!=_0xd386ae;})['forEach'](_0x3e63d0=>{this['_reduceSuggestionAttributeRange'](_0x3e63d0,_0xb27d4a['range'],_0x233703),_0x452cb7=!0x0;});}return _0x452cb7;}['_reduceSuggestionAttributeRange'](_0x169d2e,_0x2eaa55,_0x339443){const _0x29e724=_0x169d2e['getFirstRange']()['getDifference'](_0x2eaa55);0x0!==_0x29e724['length']?0x1!==_0x29e724['length']?this['_breakSuggestionMarker'](_0x169d2e,_0x2eaa55['start'],_0x2eaa55['end']):this['_setSuggestionRange'](_0x169d2e,_0x29e724[0x0]):_0x339443['removeMarker'](_0x169d2e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x217ef1){this['_editor']=_0x217ef1,this['_model']=_0x217ef1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3401b8,_0x119370,_0x10dccc,_0x202eb9,_0xf3e0b8,_0x513375){return new u(this['_model'],{'type':_0x3401b8,'subType':_0x119370,'id':_0x10dccc,'author':_0x202eb9,'creator':_0x202eb9,'attributes':_0xf3e0b8,'onAttributesChange':_0x513375,'onAccept':(..._0x2b9256)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'accept')(..._0x2b9256),'onDiscard':(..._0x5c8ed5)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'discard')(..._0x5c8ed5)});}['registerCustomCallback'](_0x486b6d,_0x48b2c9,_0x5a6268,_0x2ba452){const _0x2778ba=_0x486b6d+':'+_0x48b2c9+':'+_0x5a6268;this['_customCallbacks']['set'](_0x2778ba,_0x2ba452);}['getSuggestionCallback'](_0x571740,_0x57dbcb,_0x3aa383){const _0x25bc76=_0x571740+':'+_0x57dbcb+':'+_0x3aa383;return this['_customCallbacks']['get'](_0x25bc76)||this['_defaultCallbacks']['get'](_0x571740+':'+_0x3aa383);}['_registerDefaultCallbacks'](){const _0x307b1d=()=>!0x1,_0x291a68=_0x25f9ff=>{_0x25f9ff['sort']((_0x42f308,_0x38532c)=>_0x42f308['start']['isBefore'](_0x38532c['start'])?0x1:-0x1),this['_model']['change'](_0x545103=>{for(const _0x4c3aee of _0x25f9ff){let _0x41b125;_0x41b125=_0x4c3aee['end']['isAtEnd']&&_0x4c3aee['end']['parent']==_0x4c3aee['start']['nodeAfter']?_0x545103['createSelection'](_0x4c3aee['start']['nodeAfter'],'on'):_0x545103['createSelection'](_0x4c3aee),this['_model']['deleteContent'](_0x41b125,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2d3e92=(_0x293b63,_0xc057b)=>{_0xc057b&&this['_model']['change'](_0x35796c=>{const {commandName:_0x103a9f,commandParams:_0x23efb1=[]}=_0xc057b,_0x49d80f=_0x293b63['map'](_0x235f51=>(Vt(_0x235f51)&&(_0x235f51=this['_model']['createRange'](_0x235f51['end'])),_0x235f51))['filter'](_0x3d97fd=>'$graveyard'!==_0x3d97fd['root']['rootName']);if(_0x49d80f['length']<0x1)return;const _0x1fdb68=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2dcc53=>_0xf41792['fromRange'](_0x2dcc53));_0x35796c['setSelection'](_0x49d80f);for(const _0x4af3ee of this['_editor']['commands']['commands']())_0x4af3ee['refresh']();_0x23efb1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x103a9f,..._0x23efb1);const _0xeb7256=_0x1fdb68['filter'](_0x146324=>'$graveyard'!=_0x146324['root']['rootName']);_0xeb7256['length']>0x0&&_0x35796c['setSelection'](_0xeb7256);for(const _0xb6bb1f of _0x1fdb68)_0xb6bb1f['detach']();});},_0x20fab0=(_0x5e56fc,_0x106660)=>0x1==_0x5e56fc['length']&&0x1==_0x106660['length']&&_0x5e56fc[0x0]['end']['isEqual'](_0x106660[0x0]['start']),_0x70e3f3=(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08)=>Ht(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08,this['_model'])?[_0x3fcb02,_0x1941e7]:Ht(_0x1941e7,_0x3fcb02,_0x141d08,_0x45c127,this['_model'])?[_0x1941e7,_0x3fcb02]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x307b1d),this['_defaultCallbacks']['set']('insertion:discard',_0x291a68),this['_defaultCallbacks']['set']('insertion:join',_0x20fab0),this['_defaultCallbacks']['set']('insertion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('deletion:accept',_0x291a68),this['_defaultCallbacks']['set']('deletion:discard',_0x307b1d),this['_defaultCallbacks']['set']('deletion:join',_0x20fab0),this['_defaultCallbacks']['set']('deletion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatInline:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatInline:join',_0x20fab0),this['_defaultCallbacks']['set']('formatInline:chain',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatBlock:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:join',_0x20fab0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x307b1d),this['_defaultCallbacks']['set']('attribute:accept',_0x307b1d),this['_defaultCallbacks']['set']('attribute:discard',(_0x5cee09,_0x2282f3)=>{if(!_0x2282f3)return;const _0x3247f4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x26de4c=>{if(_0x2282f3['key']==m)for(const _0x55181e of _0x5cee09){const _0xe9a8cd=_0x55181e['start']['nodeAfter'],_0x248131=_0x2282f3['oldValue'];_0x26de4c['rename'](_0xe9a8cd,_0x248131);}else{if(_0x3247f4['_isBlockAttribute'](_0x2282f3['key'])){for(const _0x1cec6d of _0x5cee09)void 0x0!==_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x1cec6d['start']['nodeAfter']):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x1cec6d['start']['nodeAfter']);}else{for(const _0x230f07 of _0x5cee09)_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x230f07):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x230f07);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20fab0);}}function Ot(_0x11d052,_0x41bf30,_0x56782b){for(const _0x484607 of _0x41bf30['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x484607['root']==_0x484607)return!0x1;if(!_0x56782b['containsItem'](_0x484607))return!0x1;if(_0x11d052['isObject'](_0x484607)||_0x11d052['isLimit'](_0x484607))return!0x0;}return!0x1;}function Vt(_0x168d80){return _0x168d80['end']['parent']==_0x168d80['start']['nodeAfter']&&_0x168d80['end']['isAtStart'];}function Ut(_0x53c06e,_0x9b8361,_0x266761,_0x473abf){const _0x970bd5=_0xc77ad6=>!_0xc77ad6['item']['is']('$textProxy')&&!_0x473abf['isObject'](_0xc77ad6['item']),_0x264eb7=_0x53c06e['start']['getLastMatchingPosition'](_0x970bd5),_0x7db956=_0x53c06e['end']['getLastMatchingPosition'](_0x970bd5,{'direction':'backward'});return(!_0x53c06e['start']['isEqual'](_0x264eb7)||!_0x53c06e['end']['isEqual'](_0x7db956))&&(_0x264eb7['isBefore'](_0x7db956)?_0x266761['updateMarker'](_0x9b8361,{'range':_0x266761['createRange'](_0x264eb7,_0x7db956)}):_0x266761['removeMarker'](_0x9b8361),!0x0);}function Gt(_0x318914){return _0x4eeb59(_0x318914);}function Ft(_0x360567){const _0x35196f=_0x360567['start']['nodeAfter'];return _0x35196f&&_0x35196f['is']('element');}function Pt(_0x3e7a14,_0x5a70e1){return null==_0x3e7a14['end']['nodeBefore']&&_0x3e7a14['end']['parent']==_0x3e7a14['start']['nodeAfter']?Lt(_0x3e7a14['start']['nodeAfter'],_0x5a70e1):_0x3e7a14;}function Lt(_0x26205f,_0x3ea47a){const _0x127490=_0x3ea47a['schema']['isObject'](_0x26205f)||_0x3ea47a['schema']['isSelectable'](_0x26205f);return _0x3ea47a['createRange'](_0x3ea47a['createPositionAt'](_0x26205f,'before'),_0x127490?_0x3ea47a['createPositionAfter'](_0x26205f):_0x3ea47a['createPositionAt'](_0x26205f,'end'));}function Ht(_0x108ede,_0x17b99b,_0x4a81ad,_0xcee527,_0x5a6476){if(_0x108ede['next'])return!0x1;if(!Jt(_0x108ede,_0x17b99b))return!0x1;if(_0x4a81ad['end']['isEqual'](_0xcee527['start']))return!0x0;if(_0x108ede['type']!=_0x17b99b['type'])return!0x1;if(!_0x4a81ad['end']['isTouching'](_0xcee527['start']))return!0x1;const _0x182911=_0x5a6476['createRange'](_0x4a81ad['end'],_0xcee527['start'])['getWalker']();for(const _0x23dce2 of _0x182911)if(['elementStart','elementEnd']['includes'](_0x23dce2['type'])&&_0x5a6476['schema']['isLimit'](_0x23dce2['item']))return!0x1;return!0x0;}function Jt(_0x1f6004,_0x187691){if(!_0x1f6004['_isDataLoaded']||!_0x187691['_isDataLoaded'])return!0x1;const _0x37dd38=new Set(Object['keys'](_0x1f6004['attributes'])),_0x1df42f=new Set(Object['keys'](_0x187691['attributes']));if(_0x37dd38['delete']('groupId'),_0x1df42f['delete']('groupId'),0x0==_0x37dd38['size']&&0x0==_0x1df42f['size'])return!0x0;if(_0x37dd38['size']!=_0x1df42f['size'])return!0x1;const _0x42bff6={..._0x1f6004['attributes']},_0x6233e0={..._0x187691['attributes']};return delete _0x42bff6['groupId'],delete _0x6233e0['groupId'],JSON['stringify'](_0x42bff6)==JSON['stringify'](_0x6233e0);}function qt(_0x298d44,_0x11d70a){const _0xfd8e54=zt(_0x298d44['attributes']),_0xb823e9=zt(_0x11d70a);if(!_0x298d44['_isDataLoaded'])return!0x1;for(const _0x15fb0e of Object['keys'](_0xb823e9))if(!_0x3bc98d(_0xfd8e54[_0x15fb0e],_0xb823e9[_0x15fb0e]))return!0x1;return!0x0;}function zt(_0x927090){const _0x3630f6=Object['assign']({},_0x927090);return delete _0x3630f6['skipNestingCheck'],delete _0x3630f6['tablePasteChainId'],_0x3630f6;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x9ee3f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x336701,_0xd5be1,_0xce96bb,_0x4371b2){super(),this['model']=_0xd5be1,this['view']=_0xce96bb,this['commentThreadController']=_0x4371b2,this['_editor']=_0x336701,this['_acceptCommand']=_0x336701['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x336701['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10ec2e,_0x4947)=>_0x10ec2e||_0x4947),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x207546=>_0x207546&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x94dd73=>_0x94dd73&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['_pendingAction']=null,_0xce96bb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xce96bb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xce96bb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xce96bb,'change:isDirty',()=>{_0xce96bb['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 _0x2df1b1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2df1b1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x228380{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x505eb7,_0x1bf22a,_0xf37ace,_0x45cc1e){super(_0x505eb7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bb823(_0x505eb7,o(_0x505eb7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1bf22a['authoredAt']),this['bind']('authoredAt')['to'](_0x1bf22a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1bf22a,'authoredAt',this,'descriptionParts',(_0x4db004,_0x3652b9,_0x5dce95)=>{const _0x38215a=_0x5dce95['map'](_0x1adc3d=>ls(_0x1adc3d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4db004-0x1,_0x1bf22a['author']['name'],_0x3652b9?_0x45cc1e['formatDateTime'](_0x3652b9):'',new DOMParser()['parseFromString'](_0x38215a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x400e93(),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x235120=>_0x235120['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1bf22a,this['_localUser']=_0xf37ace,this['_config']=_0x45cc1e,_0x45cc1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x228aad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2de8c6}=this['_config'];this['commentsListView']=new _0x2de8c6(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',_0xe94555=>_0xe94555+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4063af,_0xed56)=>_0x4063af||!!_0xed56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36ef01}=this['_config'],_0x189228=new _0x36ef01(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35ead1=_0x189228['commentInputView'];return _0x189228['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35ead1,'value',(_0x47a670,_0x282e95,_0x118933)=>!!_0x118933||_0x47a670&&!_0x282e95),_0x35ead1['on']('submit',(_0xcbdcd1,_0x119cbc)=>{this['fire']('addComment',_0x119cbc),_0x35ead1['editor']['setData']('');}),_0x35ead1['on']('cancel',()=>this['focus']()),_0x35ead1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x189228;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cb335,_0x4d0892,_0xf51020,_0x234627){super(_0x1cb335,_0x4d0892,_0xf51020,_0x234627),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49997a=>_0x49997a&&_0x49997a[0x0]?_0x49997a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xcfadd9,_0x2250c1)=>{let _0x1e8080='';for(const _0x351b6b of _0xcfadd9)_0x1e8080+='<p>'+ls(_0x351b6b['content'],_0x351b6b['color'])+'</p>';return _0x2250c1?_0x1e8080:_0x227449(_0x1e8080,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x234627['SuggestionView'](_0x1cb335,_0x4d0892,{'formatDateTime':_0x234627['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3901ea=this['bindTemplate'],_0x372db4=[this['suggestionView']];return this['commentsListView']&&_0x372db4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x372db4['push'](this['commentThreadInputView']),_0x372db4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3901ea['if']('isActive','ck-suggestion-wrapper--active'),_0x3901ea['to']('type',_0x5f4a01=>'ck-suggestion-'+_0x5f4a01),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3901ea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x372db4};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x228380{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27da57,_0x2583d6,_0xef299c){super(_0x27da57),this['_model']=_0x2583d6,this['_config']=_0xef299c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2583d6),this['acceptButton']=this['_createButton'](o(_0x27da57,'Accept\x20suggestion'),_0x266fe0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27da57,'Discard\x20suggestion'),_0x266fe0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1986f5(_0x27da57,_0x2583d6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x400e93([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f10ac=>_0x1f10ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d1bee=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d1bee['innerHTML']=this['description'],this['on']('change:description',(_0x4484a1,_0x21d68d,_0x3070dc)=>{_0x3d1bee['innerHTML']=_0x3070dc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53c0ec=this['bindTemplate'],_0xba8783=[{'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':_0x53c0ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53c0ec['to']('authoredAt',_0x4c24bb=>this['_config']['formatDateTime'](_0x4c24bb))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xba8783['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xba8783}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5c844b,_0x1cba7a,_0x311e00,_0x22436b,_0x49c430){const _0x1df067=new _0xb1998d(this['locale']);return _0x1df067['set']({'label':_0x5c844b,'icon':_0x1cba7a,'tooltip':!0x0,'tooltipPosition':_0x49c430}),_0x1df067['extendTemplate']({'attributes':{'class':_0x311e00}}),_0x1df067['on']('execute',()=>{this['fire'](_0x22436b,this['_model']['id']);}),_0x1df067;}['_setupKeyboardNavigation'](){const _0xcdfb08=this['element'];this['keystrokes']['listenTo'](_0xcdfb08);for(const _0x31e5ef of this['focusables'])this['focusTracker']['add'](_0x31e5ef['element']),this['keystrokes']['listenTo'](_0x31e5ef['element']);this['keystrokes']['set']('enter',(_0x54ad3f,_0x410888)=>{_0xcdfb08===_0x54ad3f['target']&&(this['focusCycler']['focusFirst'](),_0x410888());}),this['keystrokes']['set']('esc',(_0x28e078,_0x2cf025)=>{_0xcdfb08!==_0x28e078['target']&&(this['focus'](),_0x2cf025());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x328234{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25715a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2d0032){super(_0x2d0032),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531671=this['editor']['config'];_0x531671['define']('trackChanges.SuggestionThreadView',re),_0x531671['define']('trackChanges.SuggestionView',ce),_0x531671['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531671['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x39167e,_0x1bdf59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3867bf,_0x1f719e]of this['_handleControllerBuffer']){const _0x76be79=this['_suggestionToController']['has'](_0x3867bf);_0x76be79||_0x1f719e?_0x76be79&&_0x1f719e&&this['_destroyController'](_0x3867bf):this['_initializeController'](_0x3867bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x39167e,_0x1bdf59);}['init'](){const _0x27d207=this['editor'],_0x353b81=_0x27d207['plugins']['get']('TrackChangesEditing'),_0x272966=_0x27d207['plugins']['get']('Annotations'),_0x5ed7fb=_0x27d207['plugins']['get']('EditorAnnotations'),_0x757b10=_0x27d207['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ed7fb['addSourceCollector'](()=>{const _0x193236=[];for(const [_0x291ada,_0x1bb910]of Array['from'](this['_suggestionToController'])){const _0x2bf7d6=_0x291ada['getAllAdjacentSuggestions'](),_0x25a67c=[];for(const _0x1efa58 of _0x2bf7d6){if(!_0x1efa58['isInContent'])continue;if(_0x1efa58['isMultiRange']){_0x25a67c['push'](..._0x1efa58['getRanges']());continue;}const _0x39ec04=_0x1efa58['getFirstRange']();if(_0x25a67c['length']>0x0){const _0x1f2015=_0x25a67c[0x0]['getJoined'](_0x39ec04);if(_0x1f2015){_0x25a67c[0x0]=_0x1f2015;continue;}}_0x25a67c['push'](_0x39ec04);}_0x193236['push']([_0x1bb910['view'],_0x25a67c]);}return _0x193236;}),this['listenTo'](_0x353b81,'suggestionLoaded',(_0x3d6991,_0x5b3da1)=>{this['listenTo'](_0x5b3da1,'change:previous',(_0x5467ff,_0x3cff69,_0x3c3905,_0x9aa0be)=>{_0x5b3da1['isInContent']&&(null==_0x3c3905?(this['_updateController'](_0x9aa0be['head']),this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1)):(this['_updateController'](_0x3c3905['head']),null==_0x9aa0be&&this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x0)));}),null!==_0x5b3da1['previous']?this['_updateController'](_0x5b3da1['head']):this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1);}),this['listenTo'](_0x353b81,'suggestionUnloaded',(_0x19177c,_0xd6a89,_0x4cc4e6)=>{this['stopListening'](_0xd6a89,'change:previous'),this['_handleControllerBuffer']['delete'](_0xd6a89),this['_suggestionToController']['has'](_0xd6a89)&&this['_destroyController'](_0xd6a89),_0x4cc4e6&&this['_updateController'](_0x4cc4e6['head']);}),this['listenTo'](_0x353b81,'suggestionChanged',(_0x5560c5,_0xfb7c3d)=>{this['_updateController'](_0xfb7c3d);}),this['listenTo'](_0x272966,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x757b10,'addComment',(_0x55b77d,{threadId:_0x42d300,isFromAdapter:_0x5555ce})=>{if(_0x5555ce||!_0x353b81['hasSuggestion'](_0x42d300))return;const _0x593ad9=_0x353b81['getSuggestion'](_0x42d300);this['_suggestionToController']['get'](_0x593ad9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4a0ca6=this['editor']['plugins']['get']('Annotations'),_0xc5a1a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b1ff=Array['from'](_0x4a0ca6['activeAnnotations'],_0x371205=>_0x371205['innerView'])['filter'](_0x38024d=>this['_viewToController']['has'](_0x38024d)),_0x30a3b7=[];for(const _0x10aa90 of _0x41b1ff){const _0x32cf62=this['_viewToController']['get'](_0x10aa90)['model']['getAllAdjacentSuggestions']();_0x30a3b7['push'](..._0x32cf62['reduce']((_0x207a84,_0x2b78c9)=>[..._0x207a84,..._0x2b78c9['getMarkerNames']()],[]));}_0xc5a1a6['activeMarkers']=_0x30a3b7;}['_addUIComponentsToFactory'](){const _0x5bb407=this['editor'],_0x47eca2=_0x5bb407['locale'],_0x29d963=o(_0x47eca2,'Track\x20changes'),_0x2154fb=new Wt([{'type':'switchbutton','model':new _0x1bd09f({'withText':!0x0,'isToggleable':!0x0,'label':_0x29d963,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xb65f47 of _0x2154fb)if(me(_0xb65f47)){const _0x2b9d4c=_0x5bb407['commands']['get'](_0xb65f47['model']['commandName']);_0xb65f47['model']['bind']('isOn','isEnabled')['to'](_0x2b9d4c,'value','isEnabled');}_0x5bb407['ui']['componentFactory']['add']('trackChanges',_0x41197c=>this['_createToolbarButton'](_0x41197c,_0x2154fb,_0x29d963)),_0x5bb407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d81f1=>this['_createMenuBarMenu'](_0x1d81f1,_0x2154fb,_0x29d963));}['_createToolbarButton'](_0x1d4e15,_0x547789,_0x2917f4){const _0xb64fbd=Qt(_0x1d4e15,_0x34e820),_0x34c220=this['editor']['commands']['get']('trackChanges');_0xb64fbd['buttonView']['set']({'tooltip':_0x2917f4,'label':_0x2917f4,'icon':he}),_0xb64fbd['buttonView']['bind']('isOn')['to'](_0x34c220,'value'),_0xb64fbd['buttonView']['on']('execute',()=>{_0x34c220['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xb64fbd,_0x547789,{'role':'menu'});const _0x5174e3=[];for(const _0xb18e0f of _0x547789)me(_0xb18e0f)&&_0x5174e3['push'](this['editor']['commands']['get'](_0xb18e0f['model']['commandName']));const _0xfe5b5d=_0xb64fbd['buttonView'];return _0xfe5b5d['actionView']['unbind']('isEnabled'),_0xfe5b5d['arrowView']['unbind']('isEnabled'),_0xfe5b5d['actionView']['bind']('isEnabled')['to'](_0x34c220,'isEnabled'),_0xfe5b5d['arrowView']['bind']('isEnabled')['toMany'](_0x5174e3,'isEnabled',(..._0x14152d)=>_0x14152d['some'](_0x1edf03=>_0x1edf03)),_0xb64fbd['on']('execute',_0x4a88ff=>{this['editor']['execute'](_0x4a88ff['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb64fbd;}['_createMenuBarMenu'](_0x511a95,_0x406834,_0x5d9d19){const _0x24b8fd=new Yt(_0x511a95),_0x10c8e3=this['editor']['commands']['get']('trackChanges');_0x24b8fd['buttonView']['set']({'label':_0x5d9d19,'icon':he});const _0x21a199=new Zt(_0x511a95);for(const _0x1d39af of _0x406834){if('separator'==_0x1d39af['type']){_0x21a199['items']['add'](new Xt(_0x511a95));continue;}const _0x2513b3=new te(_0x511a95,_0x24b8fd),_0x405077=new _0x45f15a(_0x511a95),_0x1fe695=_0x1d39af['model'];_0x405077['bind'](...Object['keys'](_0x1fe695))['to'](_0x1fe695),_0x405077['delegate']('execute')['to'](_0x24b8fd),_0x405077['on']('execute',()=>{this['editor']['execute'](_0x1fe695['commandName']),this['editor']['editing']['view']['focus']();}),_0x2513b3['children']['add'](_0x405077),_0x21a199['items']['add'](_0x2513b3);}return _0x24b8fd['bind']('isEnabled')['to'](_0x10c8e3,'isEnabled'),_0x24b8fd['panelView']['children']['add'](_0x21a199),_0x24b8fd;}['_initializeController'](_0x5c26bf){const _0x529d11=this['editor'],_0x257550=_0x529d11['config'],_0x191dce=_0x529d11['plugins']['get']('Annotations'),_0x42a9f8=_0x529d11['plugins']['get']('CommentsRepository'),_0x25d1e1=_0x529d11['plugins']['get']('EditorAnnotations'),_0x5b2801=_0x529d11['plugins']['get'](_0x25715a)['me'],_0x4561be=_0x257550['get']('trackChanges')['SuggestionThreadView'],_0x5de33f=_0x257550['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5f564f,CommentThreadInputView:_0x35aa3d}=_0x529d11['plugins']['get']('CommentsUI');let _0x4f949c,_0x4e88f7,_0x559230;this['_annotationViews']['has'](_0x5c26bf['id'])?(_0x4e88f7=this['_annotationViews']['get'](_0x5c26bf['id']),_0x4f949c=_0x4e88f7['mainView']):(_0x4f949c=new _0x4561be(_0x529d11['locale'],_0x5c26bf,_0x5b2801,{'disableComments':this['_disableComments'],'editorConfig':_0x257550['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x257550['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x257550['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x257550['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a3cec(_0x257550['get']('locale')),'CommentView':_0x257550['get']('comments')['CommentView'],'CommentsListView':_0x5f564f,'CommentThreadInputView':_0x35aa3d,'SuggestionView':_0x5de33f}),_0x4f949c['suggestionView']['acceptButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4f949c['suggestionView']['discardButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4e88f7=_0x191dce['createAnnotationView'](this['editor']['locale'],_0x4f949c),_0x4e88f7['bind']('isDirty')['to'](_0x4f949c,'isDirty'),_0x4e88f7['bind']('length')['to'](_0x4f949c),_0x4e88f7['bind']('type')['to'](_0x4f949c,'type',_0x5db73d=>'suggestion-'+_0x5db73d),_0x4f949c['on']('escape',()=>{_0x559230['fire']('escape');}),this['_annotationViews']['set'](_0x5c26bf['id'],_0x4e88f7));const _0x2b8656=_0x42a9f8['createCommentThreadController'](_0x5c26bf['commentThread'],_0x4f949c),_0x21330b=new ae(_0x529d11,_0x5c26bf,_0x4f949c,_0x2b8656),_0x5be572=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x4b6f88=>_0x4b6f88['isInContent']);_0x4f949c['descriptionParts']=_0x529d11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5be572),this['_suggestionToController']['set'](_0x5c26bf,_0x21330b),this['_viewToController']['set'](_0x4f949c,_0x21330b),_0x559230=_0x191dce['createAnnotation']({'view':_0x4e88f7,'target':()=>{const _0x173134=[],_0x48bb94=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x3f4fe8=>_0x3f4fe8['isInContent']);for(const _0x544362 of _0x48bb94)_0x173134['push'](..._0x544362['getMarkers']());return _0x54b84c(_0x529d11['editing'],_0x173134);},'type':()=>'suggestion-'+_0x21330b['view']['type']}),_0x42a9f8['_bindAnnotationToEditors'](_0x4f949c,_0x559230),_0x191dce['add'](_0x559230),_0x25d1e1['registerAnnotation'](_0x559230);}['_destroyController'](_0x54723a){const _0x4b53a5=this['editor']['plugins']['get']('CommentsRepository'),_0x594486=this['editor']['plugins']['get']('Annotations'),_0x5954d6=this['_suggestionToController']['get'](_0x54723a),_0x49c3f9=_0x5954d6['view'],_0x16320c=_0x594486['getByInnerView'](_0x49c3f9);_0x4b53a5['_unbindEditors'](_0x49c3f9),_0x16320c&&_0x594486['remove'](_0x16320c),this['_suggestionToController']['delete'](_0x54723a),this['_viewToController']['delete'](_0x49c3f9),_0x5954d6['destroy']();}['_updateController'](_0x5646d8){if(!_0x5646d8['isInContent']||!this['_suggestionToController']['has'](_0x5646d8))return;const _0x8f317f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d307d=this['_suggestionToController']['get'](_0x5646d8),_0x149716=_0x5646d8['getAllAdjacentSuggestions']();_0x2d307d['view']['descriptionParts']=_0x8f317f['descriptionFactory']['getDescriptions'](_0x149716);}['destroy'](){for(const _0x2b7883 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b7883);for(const _0x4bd275 of this['_annotationViews']['values']())_0x4bd275['mainView']['destroy']();super['destroy']();}}function me(_0x2f45e1){return'model'in _0x2f45e1;}class k extends _0x328234{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x528458){this['editor']['plugins']['get'](p)['adapter']=_0x528458;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2399d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2399d4);}['getSuggestions']({skipNotAttached:_0x5b5402=!0x1,toJSON:_0x334e25=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b5402,'toJSON':_0x334e25});}['getSuggestion'](_0x4855c8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4855c8);}}const T=['Pagination'];class P extends _0x328234{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5581a9=this['editor'];if(_0x5581a9['config']['define']('trackChangesData.editorCreator',_0x2f867b=>{const _0x89737a=_0x5581a9['model']['document']['getRootNames']()['reduce']((_0x414e74,_0x245e25)=>(_0x414e74[_0x245e25]='',_0x414e74),{});return _0x5581a9['constructor']['create'](_0x89737a,_0x2f867b);}),'function'!=typeof _0x5581a9['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d253a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x164bbd){return N(this['editor'],!0x0,_0x164bbd);}['getDataWithDiscardedSuggestions'](_0x22e7e8){return N(this['editor'],!0x1,_0x22e7e8);}}class D extends _0x328234{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2379ba){super(_0x2379ba),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(_0x1ca7e8){return void 0x0!==_0x1ca7e8['getRootsAttributes'];}async function N(_0x523d7f,_0x181930,_0xc12b30){const _0x3ad39f=_0x323a73(_0x523d7f,T);_0x3ad39f['plugins']['push'](p,D),_0x3ad39f['rootsAttributes']=v(_0x523d7f)?_0x523d7f['getRootsAttributes']():void 0x0;const _0x3edaab=document['createDocumentFragment'](),_0x1a7f47=_0x523d7f['config']['get']('trackChangesData')['editorCreator'],_0x526029=await _0x1a7f47(_0x3ad39f,()=>function(_0x572fad){const _0x59f210=document['createElement']('div');return _0x572fad['appendChild'](_0x59f210),_0x59f210;}(_0x3edaab));!function(_0x38356a,_0x982e40){const _0x1eea53=_0x38356a['model']['document']['getRootNames']()['reduce']((_0x236039,_0x2549c7)=>(_0x236039[_0x2549c7]=_0x38356a['data']['get']({'rootName':_0x2549c7}),_0x236039),{}),_0x2dc7a0=_0x38356a['plugins']['get']('Users')['users']['map'](_0x43f397=>({'id':_0x43f397['id'],'name':_0x43f397['name']})),_0x683487=_0x38356a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4558cb=_0x38356a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a925=_0x982e40['plugins']['get']('Users'),_0x1cf4f4=_0x982e40['plugins']['get']('TrackChangesEditing'),_0x1301da=_0x982e40['plugins']['get']('CommentsRepository');for(const _0x11f8fa of _0x1301da['getCommentThreads']())_0x11f8fa['remove']();for(const _0x44cdde of _0x2dc7a0)_0x56a925['getUser'](_0x44cdde['id'])||_0x56a925['addUser'](_0x44cdde);_0x56a925['me']||_0x56a925['useAnonymousUser']();for(const _0x41b39f of _0x4558cb)_0x1301da['addCommentThread'](_0x41b39f);for(const _0x1ea43d of _0x683487)_0x1cf4f4['addSuggestionData'](_0x1ea43d);_0x982e40['data']['set'](_0x1eea53);}(_0x523d7f,_0x526029),_0x526029['execute'](_0x181930?'acceptAllSuggestions':'discardAllSuggestions');const _0x1aa049=v(_0x526029)?_0x526029['getFullData'](_0xc12b30):_0x526029['data']['get'](_0xc12b30);return await _0x526029['destroy'](),_0x1aa049;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x59cc13,PendingActions as _0x13770d,icons as _0x20cacf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x427e50,ObservableMixin as _0x52e7bc,uid as _0x4dfb6e,insertToPriorityArray as _0xc78535,priorities as _0x62bf82,logWarning as _0xabec64,getEnvKeystrokeText as _0x13bccd,FocusTracker as _0x4b4207,KeystrokeHandler as _0x199b71,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5654dd,View as _0x1e173c,ViewCollection as _0x4cc9ea,FocusCycler as _0x3319c0,ViewModel as _0x161574,createDropdown as Qt,SplitButtonView as _0x546495,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x335d66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x466894,hashObject as _0x16bb8b,surroundingMarkersDetector as _0x23fca6,FOCUS_ANNOTATION_KEYSTROKE as _0x3fa135,AriaDescriptionView as _0x5b92e8,setupThreadKeyboardNavigation as _0x20ebaa,trimHtml as _0x1ace08,UserView as _0x4916b8,LateFocusButtonView as _0xec2831,getDateTimeFormatter as _0x375b65,getAllMarkersDomElementsSorted as _0x38cdbd,sanitizeEditorConfig as _0x40a82b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x524cda,LiveRange as _0x5af0c4,LivePosition as _0x24d499}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x451b7d,toWidget as _0x1e7e6d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2b4a1c,set as _0x227296,isEqual as _0xea8be9,unset as _0x4326b4,omit as Tt}from'lodash-es';import{Delete as _0x5720e6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x378ee0,ShiftEnter as _0x41117f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3e7f45,_0x5b116f){super(_0x3e7f45),this['_enabledCommands']=_0x5b116f,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 _0x3030fc of this['editor']['commands']['commands']())_0x3030fc['affectsData']&&!this['_enabledCommands']['has'](_0x3030fc)&&_0x3030fc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xfcaf44 of this['editor']['commands']['commands']())_0xfcaf44['affectsData']&&!this['_enabledCommands']['has'](_0xfcaf44)&&_0xfcaf44['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x100bef,_0x4f081f){super(_0x100bef),this['_suggestions']=_0x4f081f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x576c90){const _0x24b67c=this['_suggestions']['get'](_0x576c90);if(!_0x24b67c)throw new _0x427e50('track-changes-accept-suggestion-not-found',this);const _0x3dfa24=_0x24b67c['getRanges']();this['editor']['model']['canEditAt'](_0x3dfa24)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x24b67c);}}class R extends ts{['_suggestions'];constructor(_0x579989,_0x83ad2f){super(_0x579989),this['_suggestions']=_0x83ad2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6e499d){const _0x3daacf=this['_suggestions']['get'](_0x6e499d);if(!_0x3daacf)throw new _0x427e50('track-changes-discard-suggestion-not-found',this);const _0x2726a8=_0x3daacf['getRanges']();this['editor']['model']['canEditAt'](_0x2726a8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3daacf);}}function ls(_0x208fdf,_0x46bc55){let _0x330007='';return _0x330007+=_0x208fdf['split']('*')['map']((_0x5b5bef,_0x1c8de0)=>_0x1c8de0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b5bef)+'</span>':nn(_0x5b5bef))['join'](''),_0x46bc55&&(_0x330007+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x46bc55['value']+'\x22\x20title=\x22'+_0x46bc55['title']+'\x22></span>'),_0x330007;}function nn(_0x1c07f4){const _0x814cf9=document['createElement']('span');return _0x814cf9['innerText']=_0x1c07f4,_0x814cf9['innerHTML'];}function ss(_0x2b7e42){return _0x2b7e42['sort']((_0x4dbca6,_0x251f64)=>'deletion'==_0x4dbca6['type']&&'deletion'!=_0x251f64['type']?-0x1:'deletion'!=_0x4dbca6['type']&&'deletion'==_0x251f64['type']?0x1:0x0);}function to(_0x4f5de9,_0x238cc4){let _0x4faac2,_0x45ba82=0x0;const _0x2375e7=[],_0x34ebaa=_0x238cc4['schema'];for(;_0x45ba82<_0x4f5de9['length'];){const _0x23992f=_0x4f5de9[_0x45ba82],_0x2d6476=_0x4f5de9[_0x45ba82+0x1];_0x4faac2||(_0x4faac2=_0x238cc4['createPositionBefore'](_0x23992f)),on(_0x238cc4,_0x23992f,_0x2d6476)||(_0x2375e7['push'](_0x238cc4['createRange'](_0x4faac2,_0x34ebaa['isObject'](_0x23992f)?_0x238cc4['createPositionAfter'](_0x23992f):_0x238cc4['createPositionAt'](_0x23992f,'end'))),_0x4faac2=null),_0x45ba82++;}return _0x2375e7;}function on(_0x54c0d1,_0x4fedd3,_0x26c5a1){if(!_0x26c5a1)return!0x1;const _0x479dc2=_0x54c0d1['createPositionAfter'](_0x4fedd3),_0x285217=_0x54c0d1['createPositionBefore'](_0x26c5a1);return _0x479dc2['isTouching'](_0x285217);}function rs(_0x404ed9,_0x116eef,_0x36df97){for(;_0x36df97['length'];){const _0x3e07f8=_0x36df97['splice'](0x0,0x64);_0x404ed9['change'](()=>{for(const _0x31ee46 of _0x3e07f8)_0x31ee46['isInContent']&&_0x116eef['execute'](_0x31ee46['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3cb944,_0x933227,_0x280d04){super(_0x3cb944),this['_command']=_0x933227,this['_suggestions']=_0x280d04,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x135f87=Array['from'](this['_suggestions']['values']())['some'](_0x39a1da=>_0x39a1da['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x135f87;}['execute'](){const _0x52af1a=ss(Array['from'](this['_suggestions']['values']()));for(const _0xed10f3 of _0x52af1a){const _0x45b209=_0xed10f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45b209))return;}rs(this['editor']['model'],this['_command'],_0x52af1a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf12e20,_0x1ad0e0,_0x1e8ff0){super(_0xf12e20),this['_command']=_0x1ad0e0,this['_suggestions']=_0x1e8ff0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56fde5=this['editor']['model']['document']['selection'],_0x1342ac=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b17eb,_0x144a1a){const _0x4937cd=Array['from'](_0x1b17eb['getRanges']()),_0x1d9955=new Set();for(const _0x11198f of _0x144a1a)if(_0x11198f['isInContent']){for(const _0x365034 of _0x4937cd)for(const _0x5690c8 of _0x11198f['getRanges']())(_0x365034['isIntersecting'](_0x5690c8)||_0x1b17eb['isCollapsed']&&!_0x11198f['isMultiRange']&&_0x11198f['next']&&_0x5690c8['end']['isTouching'](_0x365034['start']))&&_0x1d9955['add'](_0x11198f);}return _0x1d9955;}(_0x56fde5,_0x1342ac),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48e7b8=ss(Array['from'](this['_selectedSuggestions']));for(const _0x34d83e of _0x48e7b8){const _0x494ad2=_0x34d83e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x494ad2))return;}rs(this['editor']['model'],this['_command'],_0x48e7b8);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52e7bc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x336c04,_0x3a0ecd){super(),this['id']=_0x3a0ecd['id'],this['type']=_0x3a0ecd['type'],this['subType']=_0x3a0ecd['subType']||null,this['author']=_0x3a0ecd['author'],this['creator']=_0x3a0ecd['creator']||_0x3a0ecd['author'],this['isExternal']=Boolean(_0x3a0ecd['attributes']&&_0x3a0ecd['attributes']['@external']),this['data']=null,this['_model']=_0x336c04,this['_onAccept']=_0x3a0ecd['onAccept'],this['_onDiscard']=_0x3a0ecd['onDiscard'],this['_onAttributesChange']=_0x3a0ecd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a0ecd['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 _0x686a9b=this;for(;_0x686a9b['previous'];)_0x686a9b=_0x686a9b['previous'];return _0x686a9b;}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'](_0x52fa4a){this['_markerNames']['add'](_0x52fa4a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3f6cbd=>this['_model']['markers']['get'](_0x3f6cbd))['filter'](_0x3cadc8=>_0x3cadc8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x18373f=>{for(const _0x52c85e of this['getMarkers']())_0x18373f['removeMarker'](_0x52c85e);}),this['_markerNames']['clear']();}['removeMarker'](_0x25d769){this['_model']['change'](_0xe075f3=>{_0xe075f3['removeMarker'](_0x25d769);}),this['_markerNames']['delete'](_0x25d769);}['addRange'](_0x3646e8){const _0xb4ef6b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xb4ef6b),this['_model']['change'](_0x341c05=>{_0x341c05['addMarker'](_0xb4ef6b,{'range':_0x3646e8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x494dc8){for(const _0x1c73cf of this['getRanges']())if(_0x1c73cf['isIntersecting'](_0x494dc8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4069ed=>_0x4069ed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x153feb,_0x3fedc9)=>[..._0x153feb,..._0x3fedc9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x29c84e=this['getRanges']();if(0x1!=_0x29c84e['length'])return null;const _0x1efd96=_0x29c84e[0x0],_0x36a17d=_0x1efd96['start']['nodeAfter'],_0x332f61=_0x1efd96['end']['nodeBefore'];return _0x36a17d instanceof _0x524cda?_0x36a17d!=_0x332f61?null:_0x36a17d: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 _0x547213=[];let _0x448fff=this['head'];for(;_0x448fff;)_0x547213['push'](_0x448fff),_0x448fff=_0x448fff['next'];return _0x547213;}['setAttribute'](_0x46cef1,_0x563843){const _0x53c613=_0x2b4a1c(this['attributes']);_0x227296(_0x53c613,_0x46cef1,_0x563843),_0xea8be9(_0x53c613,this['attributes'])||(this['attributes']=_0x53c613,this['_onAttributesChange'](_0x53c613));}['removeAttribute'](_0x381106){const _0x4e42cd=_0x2b4a1c(this['attributes']);_0x4326b4(_0x4e42cd,_0x381106),_0xea8be9(_0x4e42cd,this['attributes'])||(this['attributes']=_0x4e42cd,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 _0x4dfb6e()['substr'](0x1,0x5);}}function o(_0x43d5ab,_0x1d4a8c,_0x3ece36){const t=_0x43d5ab['t'];switch(_0x1d4a8c){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',_0x3ece36);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ece36);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ece36);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ece36);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ece36);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',_0x3ece36);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ece36);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',_0x3ece36);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ece36);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ece36);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ece36);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ece36);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ece36);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ece36);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ece36);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ece36);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ece36);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ece36);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ece36);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ece36);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ece36);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ece36);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ece36);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'},_0x3ece36);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ece36);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ece36);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ece36);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ece36);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ece36);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'},_0x3ece36);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ece36);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ece36);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ece36);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ece36);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'},_0x3ece36);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ece36);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'},_0x3ece36);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'},_0x3ece36);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ece36);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'},_0x3ece36);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ece36);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'},_0x3ece36);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ece36);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ece36);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3ece36);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'},_0x3ece36);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'},_0x3ece36);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ece36);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3ece36);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3ece36);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3ece36);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d4a8c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x693f94,_0x2951df){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x693f94,this['_locale']=_0x2951df;}['getDescriptions'](_0x2ca34a){const _0x54f5da=[],_0x52c8da=new Set(),_0x1c9191=new Set();for(let _0x3172ad=0x0;_0x3172ad<_0x2ca34a['length'];_0x3172ad++){const _0x1c3ddf=_0x2ca34a[_0x3172ad];if(!_0x1c3ddf['isInContent'])continue;const _0x48801f=this['_handleCustomCallbackDescription'](_0x1c3ddf);if(_0x48801f){if(null!=_0x1c3ddf['subType']){if(_0x52c8da['has'](_0x1c3ddf['subType']))continue;_0x52c8da['add'](_0x1c3ddf['subType']);}_0x54f5da['push'](_0x48801f);}else{if('attribute'!=_0x1c3ddf['type'])'insertion'!=_0x1c3ddf['type']&&'deletion'!=_0x1c3ddf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54f5da,_0x1c3ddf,_0x2ca34a[_0x3172ad+0x1]);else{const _0x23cfa2=_0x1c3ddf['data']['key'];if(_0x1c9191['has'](_0x23cfa2))continue;_0x1c9191['add'](_0x1c3ddf['data']['key']),_0x23cfa2==m?this['_handleRenameSuggestionDescription'](_0x54f5da,_0x1c3ddf):this['_handleAttributeSuggestionDescription'](_0x54f5da,_0x1c3ddf);}}}return this['_resolveDescriptionItems'](_0x54f5da);}['registerDescriptionCallback'](_0x4f054e){this['_customCallbacks']['push'](_0x4f054e);}['registerElementLabel'](_0x48706e,_0x354e9d,_0x409a62=_0x62bf82['normal']){'function'==typeof _0x48706e?_0xc78535(this['_itemLabelsCallbacks'],{'matchingCallback':_0x48706e,'label':_0x354e9d,'priority':_0x409a62}):this['_itemLabels']['set'](_0x48706e,_0x354e9d);}['registerAttributeLabel'](_0x375ad3,_0x5c8bab){this['_attributeLabels']['set'](_0x375ad3,_0x5c8bab);}['getItemLabel'](_0x223820,_0x2384ab=0x1){let _0x3caaa7;for(const _0x1c0f99 of this['_itemLabelsCallbacks'])if(_0x1c0f99['matchingCallback'](_0x223820)){_0x3caaa7=_0x1c0f99['label'];break;}return _0x3caaa7||(_0x3caaa7=this['_itemLabels']['get'](_0x223820['name'])),_0x3caaa7?_0x3caaa7(_0x2384ab):0x1!==_0x2384ab?_0x2384ab+'\x20'+_0x223820['name']+'s':''+_0x223820['name'];}['_addDescriptionItems'](_0x4113a0,_0x2a14cb){const _0x2e67e7=_0x2a14cb['getFirstRange']()['getWalker'](),_0x5c4239='insertion'==_0x2a14cb['type']?'add':'remove';for(const _0x2c2619 of _0x2e67e7){const _0x7208ae=_0x2c2619['item'],_0x1cda9a=_0x4113a0[_0x4113a0['length']-0x1];if(_0x7208ae['is']('$textProxy'))_0x1cda9a&&_0x1cda9a['type']['indexOf']('Container')>-0x1&&_0x4113a0['pop'](),_0x1cda9a&&'text'==_0x1cda9a['type']?_0x1cda9a[_0x5c4239]+=_0x7208ae['data']:_0x4113a0['push']({'type':'text','add':'add'==_0x5c4239?_0x7208ae['data']:'','remove':'remove'==_0x5c4239?_0x7208ae['data']:''});else{if(this['_schema']['isObject'](_0x7208ae)){const _0x5eee7f=_0x7208ae;if(_0x1cda9a&&_0x1cda9a['type']['indexOf']('Container')>-0x1&&_0x4113a0['pop'](),'elementEnd'==_0x2c2619['type'])continue;_0x1cda9a&&_0x1cda9a['type']==_0x5c4239+'Object'&&_0x1cda9a['element']['name']==_0x5eee7f['name']?_0x1cda9a['quantity']++:_0x4113a0['push']({'type':_0x5c4239+'Object','element':_0x5eee7f,'quantity':0x1}),_0x2e67e7['skip'](_0x2912ef=>!('elementEnd'==_0x2912ef['type']&&_0x2912ef['item']==_0x7208ae));}else{if(this['_schema']['checkChild'](_0x7208ae,'$text')||_0x7208ae['is']('element','softBreak')){const _0x21640a=_0x7208ae;if('add'==_0x5c4239&&'elementStart'==_0x2c2619['type']||'remove'==_0x5c4239&&'elementEnd'==_0x2c2619['type'])continue;if(_0x1cda9a&&-0x1==_0x1cda9a['type']['indexOf']('Container')){'text'==_0x1cda9a['type']&&(_0x1cda9a[_0x5c4239]+='\x0a');continue;}let _0x4f9bf7;if(_0x4f9bf7='add'==_0x5c4239?_0x21640a['nextSibling']&&!this['_schema']['isObject'](_0x21640a['nextSibling'])?_0x21640a['nextSibling']:null:_0x21640a['previousSibling']&&!this['_schema']['isObject'](_0x21640a['previousSibling'])?_0x21640a['previousSibling']:null,_0x21640a['isEmpty']||_0x4f9bf7&&_0x4f9bf7['isEmpty']){const _0x541117=_0x4f9bf7&&_0x4f9bf7['isEmpty']?_0x4f9bf7:_0x21640a;_0x1cda9a&&_0x1cda9a['type']==_0x5c4239+'EmptyContainer'&&_0x1cda9a['element']['name']==_0x541117['name']?_0x1cda9a['quantity']++:_0x4113a0['push']({'type':_0x5c4239+'EmptyContainer','element':_0x541117,'quantity':0x1});}else _0x4113a0['push']({'type':_0x5c4239+'Container','element':_0x21640a});}}}}}['_resolveDescriptionItems'](_0x449d41){const _0x3f8ba6=this['_locale'],_0x343bfd=[],_0x261cd0=[],_0x144ab3=[];for(const _0x52ded7 of _0x449d41)switch(_0x52ded7['type']){case'text':if(_0x52ded7['add']=_0x52ded7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52ded7['remove']=_0x52ded7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52ded7['add']&&''!=_0x52ded7['remove']){_0x343bfd['push']({'type':'replace','content':o(_0x3f8ba6,'REPLACE_TEXT',['\x22'+_0x52ded7['remove']+'\x22','\x22'+_0x52ded7['add']+'\x22'])});continue;}if(null!=_0x52ded7['add']['match'](/^ +$/)){_0x343bfd['push']({'type':'insertion','content':o(_0x3f8ba6,'*Insert:*\x20%0',o(_0x3f8ba6,'ELEMENT_SPACE',_0x52ded7['add']['length']))});continue;}if(null!=_0x52ded7['remove']['match'](/^ +$/)){_0x343bfd['push']({'type':'deletion','content':o(_0x3f8ba6,'*Remove:*\x20%0',o(_0x3f8ba6,'ELEMENT_SPACE',_0x52ded7['remove']['length']))});continue;}if(''!=_0x52ded7['add']){_0x343bfd['push']({'type':'insertion','content':o(_0x3f8ba6,'*Insert:*\x20%0','\x22'+_0x52ded7['add']+'\x22')});continue;}_0x343bfd['push']({'type':'deletion','content':o(_0x3f8ba6,'*Remove:*\x20%0','\x22'+_0x52ded7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x343bfd['push']({'type':'insertion','content':o(_0x3f8ba6,'*Insert:*\x20%0',this['getItemLabel'](_0x52ded7['element'],_0x52ded7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x343bfd['push']({'type':'deletion','content':o(_0x3f8ba6,'*Remove:*\x20%0',this['getItemLabel'](_0x52ded7['element'],_0x52ded7['quantity']))});continue;case'addContainer':_0x343bfd['push']({'type':'insertion','content':o(_0x3f8ba6,'*Split:*\x20%0',this['getItemLabel'](_0x52ded7['element'],_0x52ded7['quantity']))});continue;case'removeContainer':_0x343bfd['push']({'type':'deletion','content':o(_0x3f8ba6,'*Merge:*\x20%0',this['getItemLabel'](_0x52ded7['element'],_0x52ded7['quantity']))});continue;case'addFormat':_0x261cd0['push'](_0x52ded7['key']);continue;case'removeFormat':_0x144ab3['push'](_0x52ded7['key']);continue;default:_0x343bfd['push'](_0x52ded7);}if(_0x261cd0['length']){const _0x3ec24c=_0x261cd0['map'](_0x500201=>this['_attributeLabels']['has'](_0x500201)?this['_attributeLabels']['get'](_0x500201):_0x500201)['join'](',\x20');_0x343bfd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ec24c)});}if(_0x144ab3['length']){const _0x506b18=_0x144ab3['map'](_0x268380=>this['_attributeLabels']['has'](_0x268380)?this['_attributeLabels']['get'](_0x268380):_0x268380)['join'](',\x20');_0x343bfd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x506b18)});}return _0x343bfd;}['_handleCustomCallbackDescription'](_0x29bad1){for(const _0x4d0d02 of this['_customCallbacks']){const _0x3a9e34=_0x4d0d02(_0x29bad1);if(_0x3a9e34&&'type'in _0x3a9e34)return _0x3a9e34;}}['_handleAttributeSuggestionDescription'](_0x9af454,_0x5b8de1){const _0x2b29f6=_0x5b8de1['data'],_0x745a85=void 0x0===_0x2b29f6['newValue']?'removeFormat':'addFormat';_0x9af454['push']({'type':_0x745a85,'key':_0x2b29f6['key']});}['_handleRenameSuggestionDescription'](_0x2a0287,_0x1a676c){_0x2a0287['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1a676c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3a56a6,_0x31f871,_0x15b8c3){if(this['_addDescriptionItems'](_0x3a56a6,_0x31f871),_0x15b8c3&&_0x15b8c3['getFirstRange']()&&!_0x31f871['getFirstRange']()['end']['isEqual'](_0x15b8c3['getFirstRange']()['start'])){const _0x214a64=_0x3a56a6[_0x3a56a6['length']-0x1],_0x4ccfb1='insertion'==_0x31f871['type']?'add':'remove';_0x214a64&&'text'==_0x214a64['type']&&(_0x214a64[_0x4ccfb1]+='\x0a');}}}class V extends _0x59cc13{['afterInit'](){const _0x12af7a=this['editor'],_0x906b0e=_0x12af7a['plugins']['get']('TrackChangesEditing');_0x12af7a['commands']['get']('showAIAssistant')&&_0x906b0e['enableCommand']('showAIAssistant');}}class U extends _0x59cc13{['afterInit'](){const _0x1c6d9c=this['editor'],_0x42a9f3=_0x1c6d9c['locale'];if(!_0x1c6d9c['plugins']['has']('AlignmentEditing'))return;const _0x262f4d=_0x1c6d9c['plugins']['get']('TrackChangesEditing');_0x262f4d['enableDefaultAttributesIntegration']('alignment'),_0x262f4d['registerBlockAttribute']('alignment'),_0x262f4d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x42a9f3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41481e=this['editor'],_0x382ade=_0x41481e['locale'];_0x41481e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7c0610=>{if('formatBlock'!=_0x7c0610['type'])return;const {data:_0x3d5d85}=_0x7c0610;if(_0x3d5d85&&'alignment'==_0x3d5d85['commandName']){const _0xc6e6e7=_0x3d5d85['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x382ade,'*Format:*\x20%0',function(_0x49f901){switch(_0x49f901){case'left':return o(_0x382ade,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x382ade,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x382ade,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x382ade,'FORMAT_JUSTIFY_TEXT');}}(_0xc6e6e7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x59cc13{['afterInit'](){const _0x555cc1=this['editor'],_0x44e423=_0x555cc1['plugins']['get']('TrackChangesEditing'),_0x6997d5=_0x555cc1['locale'];for(const _0x274e4c of ti){if(!_0x555cc1['plugins']['has'](_0x274e4c))continue;const _0x8eb5c0=_0x274e4c['slice'](0x0,-0x7)['toLowerCase'](),_0x2cc532='FORMAT_'+_0x8eb5c0['toUpperCase']();_0x44e423['enableDefaultAttributesIntegration'](_0x8eb5c0),_0x44e423['registerInlineAttribute'](_0x8eb5c0),_0x44e423['descriptionFactory']['registerAttributeLabel'](_0x8eb5c0,o(_0x6997d5,_0x2cc532));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x281b98=this['editor'],_0x20723e=_0x281b98['locale'],_0x4c2d5a=_0x281b98['plugins']['get']('TrackChangesEditing');function _0x268517(_0x46184c,_0x274407){_0x4c2d5a['descriptionFactory']['registerDescriptionCallback'](_0x3b819c=>{if('formatInline'!=_0x3b819c['type'])return;const {data:_0x116620}=_0x3b819c;return _0x116620&&_0x116620['commandName']===_0x46184c?_0x116620['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20723e,'*Format:*\x20%0',_0x274407)}:{'type':'format','content':o(_0x20723e,'*Remove\x20format:*\x20%0',_0x274407)}:void 0x0;});}_0x268517('bold',o(_0x20723e,'FORMAT_BOLD')),_0x268517('italic',o(_0x20723e,'FORMAT_ITALIC')),_0x268517('underline',o(_0x20723e,'FORMAT_UNDERLINE')),_0x268517('code',o(_0x20723e,'FORMAT_CODE')),_0x268517('strikethrough',o(_0x20723e,'FORMAT_STRIKETHROUGH')),_0x268517('subscript',o(_0x20723e,'FORMAT_SUBSCRIPT')),_0x268517('superscript',o(_0x20723e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x59cc13{['afterInit'](){const _0x3bc5a7=this['editor'],_0x8802df=_0x3bc5a7['locale'];if(!_0x3bc5a7['plugins']['has']('BlockQuoteEditing'))return;const _0x436521=_0x3bc5a7['plugins']['get']('TrackChangesEditing'),_0x4cf416=this['editor']['commands']['get']('blockQuote');_0x436521['enableCommand']('blockQuote',(_0x3e9a4d,_0x38f54c={})=>{const _0x1f11ea=this['editor']['model']['document']['selection'],_0x3e0924=_0x38f54c&&void 0x0!==_0x38f54c['forceValue']?_0x38f54c['forceValue']:!_0x4cf416['value'];let _0x2f5f6a=[];if(_0x3e0924){const _0x4222ca=Array['from'](_0x1f11ea['getSelectedBlocks']())['filter'](_0x51b025=>oo(_0x51b025)||function(_0x38764b,_0x586816){const _0x33a707=_0x586816['checkChild'](_0x38764b['parent'],'blockQuote'),_0xad5626=_0x586816['checkChild'](['$root','blockQuote'],_0x38764b);return _0x33a707&&_0xad5626;}(_0x51b025,this['editor']['model']['schema']));_0x2f5f6a=to(_0x4222ca,_0x3bc5a7['model']);}else{const _0x11aade=Array['from'](_0x1f11ea['getSelectedBlocks']())['filter'](_0x321b71=>oo(_0x321b71));_0x2f5f6a=to(_0x11aade,_0x3bc5a7['model']);}_0x3bc5a7['model']['change'](()=>{for(const _0x21f946 of _0x2f5f6a)_0x436521['markBlockFormat'](_0x21f946,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3e0924}]});});}),_0x436521['descriptionFactory']['registerDescriptionCallback'](_0x3c09ad=>{const {data:_0x54a83e}=_0x3c09ad;if(_0x54a83e&&'blockQuote'==_0x54a83e['commandName']){const _0x1298ac=o(_0x8802df,'ELEMENT_BLOCK_QUOTE');return _0x54a83e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8802df,'*Set\x20format:*\x20%0',_0x1298ac)}:{'type':'format','content':o(_0x8802df,'*Remove\x20format:*\x20%0',_0x1298ac)};}});}}function oo(_0x55a633){return'blockQuote'==_0x55a633['parent']['name'];}class L extends _0x59cc13{['afterInit'](){const _0x142685=this['editor'];_0x142685['plugins']['has']('CaseChange')&&(_0x142685['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x142685['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x142685['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x59cc13{['afterInit'](){const _0x5275be=this['editor'];_0x5275be['commands']['get']('ckbox')&&_0x5275be['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x59cc13{['afterInit'](){const _0x4d4568=this['editor'];if(!_0x4d4568['plugins']['has']('CodeBlock'))return;const _0x178e0c=_0x4d4568['plugins']['get']('TrackChangesEditing'),_0x194e40=_0x4d4568['locale'],_0x4f6e8c=_0x4d4568['config']['get']('codeBlock')['languages'],_0x2ba65c=_0x4d4568['commands']['get']('codeBlock');_0x178e0c['enableCommand']('indentCodeBlock'),_0x178e0c['enableCommand']('outdentCodeBlock'),_0x178e0c['enableCommand']('codeBlock',(_0x2629db,_0x4f3e97={})=>{const _0xe8db07=_0x4d4568['model'],_0x3b97cd=_0x4d4568['model']['document']['selection'],_0x78efbc=_0x4f3e97&&void 0x0!==_0x4f3e97['forceValue']?_0x4f3e97['forceValue']:!_0x2ba65c['value'];let _0x1baad6;_0x4f3e97['language']||(_0x4f3e97['language']=_0x4f6e8c[0x0]['language']),_0x1baad6=_0x78efbc?Array['from'](_0x3b97cd['getSelectedBlocks']())['filter'](_0x47414b=>eo(_0x47414b)||function(_0x36ce3f,_0x45d601){if(_0x36ce3f['is']('rootElement')||_0x45d601['isLimit'](_0x36ce3f))return!0x1;return _0x45d601['checkChild'](_0x36ce3f['parent'],'codeBlock');}(_0x47414b,_0xe8db07['schema'])):Array['from'](_0x3b97cd['getSelectedBlocks']())['filter'](_0x3824dd=>eo(_0x3824dd));const _0x2aee26=to(_0x1baad6,_0xe8db07);_0xe8db07['change'](()=>{for(const _0x41f99d of _0x2aee26)_0x178e0c['markBlockFormat'](_0x41f99d,{'commandName':'codeBlock','commandParams':[{..._0x4f3e97,'forceValue':_0x78efbc}],'formatGroupId':'blockName'});});}),(_0x178e0c['descriptionFactory']['registerElementLabel']('codeBlock',_0x2c534a=>o(_0x194e40,'ELEMENT_CODE_BLOCK',_0x2c534a)),_0x178e0c['descriptionFactory']['registerDescriptionCallback'](_0x1892f6=>{if('formatBlock'!=_0x1892f6['type'])return;const _0x22accc=_0x194e40['t'],{data:_0x2a4fd9}=_0x1892f6;if(!_0x2a4fd9||'codeBlock'!=_0x2a4fd9['commandName'])return;const _0x428efe=_0x2a4fd9['commandParams'][0x0]['language'],_0x338077=_0x22accc(_0x4f6e8c['find'](_0x44c717=>_0x44c717['language']===_0x428efe)['label'])['toLowerCase']();return _0x2a4fd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x194e40,'*Set\x20format:*\x20%0',o(_0x194e40,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x338077+')')}:{'type':'format','content':o(_0x194e40,'*Remove\x20format:*\x20%0',o(_0x194e40,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xaa8f35){return'codeBlock'==_0xaa8f35['name'];}class q extends _0x59cc13{['afterInit'](){const _0x2e8704=this['editor'];if(!_0x2e8704['plugins']['has']('CommentsEditing'))return;_0x2e8704['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x31a7b8,_0x2e9e19,_0x2d290b){const _0xf405d0=[];for(const _0xfb7f24 of _0x2e9e19['getItems']())_0xfb7f24['hasAttribute'](_0x31a7b8)&&_0xf405d0['push'](_0x2d290b['createRangeOn'](_0xfb7f24));return _0xf405d0;}function _e(_0x58c3c7,_0x3f5e74,{showActiveMarker:_0x402b4d=!0x0}={}){const _0x184a4e=_0x58c3c7['plugins']['get']('TrackChangesEditing');return(_0x2ea1bd,_0x5e789d,_0x524979)=>{if(!_0x524979['consumable']['test'](_0x5e789d['markerRange'],_0x2ea1bd['name']))return;const _0x59382c=_0x5e789d['markerRange']['getWalker'](),_0x955bd0=_0x5e789d['markerRange']['start'],_0x50a183=_0x58c3c7['model']['schema'];let _0x24e2c6=null,_0x5cc460=null,_0xa8034a=!0x1,_0x4ab320=!0x1;for(const _0x1d2611 of _0x59382c){const _0x4e06f3=_0x1d2611['item'];_0xa8034a=_0xa8034a||_0x50a183['isContent'](_0x4e06f3);const _0x20dd18=_0x524979['mapper']['toViewElement'](_0x4e06f3);if(_0x20dd18&&_0x20dd18['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d2611['type']&&(_0x50a183['isBlock'](_0x4e06f3)&&!_0x50a183['isLimit'](_0x4e06f3)&&(_0x4e06f3['nextSibling']||_0x955bd0['isAtEnd']?_0x24e2c6&&_0x24e2c6['parent']==_0x4e06f3||(_0x24e2c6=_0x4e06f3,_0x2fe95a(_0x1d2611['previousPosition']),_0x4ab320=!0x0):_0x5cc460=_0x5cc460||_0x1d2611['previousPosition']));}function _0x2fe95a(_0x17b4b4){const {authorId:_0x20eb28}=_0x184a4e['_splitMarkerName'](_0x5e789d['markerName']),_0x40a372=_0x524979['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f5e74,'data-author-id':_0x20eb28}),_0x5329e2=_0x524979['mapper']['toViewPosition'](_0x17b4b4);_0x402b4d&&_0x184a4e['activeMarkers']['includes'](_0x5e789d['markerName'])&&_0x524979['writer']['addClass']('ck-suggestion-marker--active',_0x40a372),_0x524979['writer']['insert'](_0x5329e2,_0x40a372),_0x524979['mapper']['bindElementToMarker'](_0x40a372,_0x5e789d['markerName']);}_0xa8034a||_0x4ab320||!_0x5cc460||_0x2fe95a(_0x5cc460);};}class z extends _0x59cc13{static get['requires'](){return[_0x5720e6];}['init'](){const _0x37141a=this['editor'],_0xdf7f1b=_0x37141a['plugins']['get']('TrackChangesEditing');_0xdf7f1b['enableCommand']('delete');const _0x37ae1b=_0x37141a['commands']['get']('deleteForward');_0xdf7f1b['enableCommand']('deleteForward',(_0x1b2fd8,_0x10262e={})=>{const _0x1ea581=_0x37141a['model']['createSelection'](_0x37141a['model']['document']['selection']);_0x1ea581['isCollapsed']&&_0x37141a['model']['modifySelection'](_0x1ea581,{'direction':'forward','unit':_0x10262e['unit']});const _0xbf96d2=_0x1ea581['getFirstRange'](),_0x5ba2d8=_0x5af0c4['fromRange'](_0xbf96d2);let _0x464967;_0x1b2fd8(_0x10262e),_0x464967='$graveyard'==_0x5ba2d8['root']['rootName']?_0x37141a['model']['createRange'](_0xbf96d2['start']):_0x37141a['model']['createRange'](_0x5ba2d8['start'],_0x5ba2d8['end']),_0x5ba2d8['detach'](),_0x37141a['model']['enqueueChange'](_0x37ae1b['buffer']['batch'],_0xcd9902=>{_0x37ae1b['buffer']['lock'](),_0xcd9902['setSelection'](_0xcd9902['createRange'](_0x464967['end'])),_0x37ae1b['buffer']['unlock']();});}),_0x37141a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x37141a,'merge'),{'priority':'high'}),_0x37141a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x48674f,_0x22a869,_0x2e4b95)=>{_0x2e4b95['options']['showSuggestionHighlights']&&_e(_0x37141a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x48674f,_0x22a869,_0x2e4b95);},{'priority':'high'}),_0x37141a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4058e2,_0x53f625,_0x3ca294)=>{const _0x303a39=_0x3ca294['mapper']['markerNameToElements'](_0x53f625['markerName']);if(_0x303a39){for(const _0x2f4f7d of _0x303a39)_0x2f4f7d['is']('uiElement')&&(_0x3ca294['mapper']['unbindElementFromMarkerName'](_0x2f4f7d,_0x53f625['markerName']),_0x3ca294['writer']['remove'](_0x2f4f7d));}},{'priority':'high'});}}class K extends _0x59cc13{['afterInit'](){const _0x226b65=this['editor'];if(!_0x226b65['plugins']['has']('ListEditing'))return;const _0xf286fd=_0x226b65['locale'],_0x14965b=_0x226b65['plugins']['get']('TrackChangesEditing'),_0x11afb1=_0x226b65['plugins']['has']('TodoListEditing'),_0x1b594a=!!_0x226b65['config']['get']('list.multiBlock');function _0x1beed0(_0xc3a092){return{'type':'format','content':''+o(_0xf286fd,'*Set\x20format:*\x20%0',_0xc3a092)};}function _0x568563(_0x1514d5){return{'type':'format','content':''+o(_0xf286fd,'*Remove\x20format:*\x20%0',_0x1514d5)};}_0x14965b['enableDefaultAttributesIntegration']('numberedList'),_0x14965b['enableDefaultAttributesIntegration']('bulletedList'),_0x14965b['enableDefaultAttributesIntegration']('customNumberedList'),_0x14965b['enableDefaultAttributesIntegration']('customBulletedList'),_0x14965b['enableDefaultAttributesIntegration']('indentList'),_0x14965b['enableDefaultAttributesIntegration']('outdentList'),_0x14965b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14965b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14965b['registerBlockAttribute']('listItemId'),_0x14965b['registerBlockAttribute']('listType'),_0x14965b['registerBlockAttribute']('listIndent'),_0x1b594a&&(_0x14965b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14965b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x11afb1&&(_0x14965b['enableDefaultAttributesIntegration']('todoList'),_0x14965b['enableDefaultAttributesIntegration']('checkTodoList'),_0x14965b['registerBlockAttribute']('todoListChecked'),_0x14965b['descriptionFactory']['registerDescriptionCallback'](_0x2808bc=>{const {data:_0x439ae2}=_0x2808bc;if(_0x439ae2&&'todoListChecked'==_0x439ae2['key'])return{'type':'format','content':_0x439ae2['newValue']?o(_0xf286fd,'*Check\x20item*'):o(_0xf286fd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4075f9=>{if(_0x4075f9['batch']['isUndo'])return!0x1;let _0x221f7b=!0x1;const _0x232179=_0x14965b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2df55=>'todoListChecked'===_0x14965b['_getAttributeKey'](_0xc2df55));for(const _0x1695d9 of _0x232179){'todo'!=_0x1695d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14965b['_findSuggestions'](_0x1695d9['getFirstRange'](),'attribute')['find'](_0x17e05c=>'listType'===_0x14965b['_getAttributeKey'](_0x17e05c['suggestion']))||(_0x4075f9['removeMarker'](_0x1695d9['getFirstMarker']()),_0x221f7b=!0x0));}return _0x221f7b;})),_0x14965b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xf286fd,'FORMAT_INDENT'));const _0x25a4ff={'type':'format','content':''};_0x14965b['descriptionFactory']['registerDescriptionCallback'](_0x3b1692=>{const {data:_0x51ba7c}=_0x3b1692;if(!_0x51ba7c||'listType'!=_0x51ba7c['key'])return;let _0x2795c6=_0x3b1692['head'];for(;_0x2795c6;){if(_0x2795c6['data']&&(('listStyle'==_0x2795c6['data']['key']||'listMarkerStyle'==_0x2795c6['data']['key'])&&(_0x2795c6['data']['newValue']&&'default'!=_0x2795c6['data']['newValue']||'default'!=_0x2795c6['data']['oldValue']&&!_0x51ba7c['newValue'])||!_0x1b594a&&_0x2795c6['data']['key']==m))return _0x25a4ff;_0x2795c6=_0x2795c6['next'];}if(null==_0x51ba7c['newValue'])switch(_0x51ba7c['oldValue']){case'bulleted':return _0x568563(o(_0xf286fd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x568563(o(_0xf286fd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x568563(o(_0xf286fd,'ELEMENT_TODO_LIST'));}switch(_0x51ba7c['newValue']){case'bulleted':return _0x1beed0(o(_0xf286fd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1beed0(o(_0xf286fd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1beed0(o(_0xf286fd,'ELEMENT_TODO_LIST'));}}),_0x14965b['descriptionFactory']['registerDescriptionCallback'](_0x6342ff=>{const {data:_0x2f1a3f}=_0x6342ff;if(_0x2f1a3f&&'listIndent'==_0x2f1a3f['key'])return null==_0x2f1a3f['newValue']||null==_0x2f1a3f['oldValue']&&0x0==_0x2f1a3f['newValue']?_0x25a4ff:void 0x0;}),_0x14965b['descriptionFactory']['registerDescriptionCallback'](_0x43c7bf=>{if('attribute'!=_0x43c7bf['type'])return;const {data:_0x4ab303}=_0x43c7bf;if(!_0x4ab303||'listItemId'!=_0x4ab303['key'])return;const _0x1d59db=Ee(_0x43c7bf);return'newValue'==_0x1d59db?{'type':'format','content':o(_0xf286fd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d59db?{'type':'format','content':o(_0xf286fd,'*Split:*\x20list\x20item')}:_0x25a4ff;}),_0x226b65['model']['document']['registerPostFixer'](_0x3c53ff=>this['listItemIdFixer'](_0x3c53ff)),_0x226b65['model']['document']['registerPostFixer'](_0x48c355=>this['noTrackChangesFixer'](_0x48c355)),_0x226b65['model']['document']['on']('change:data',(_0x14fc51,_0x5cfc77)=>{if(_0x5cfc77['isUndo']||!_0x5cfc77['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf4de97){if(_0xf4de97['batch']['isUndo']||!_0xf4de97['batch']['isLocal'])return!0x1;let _0x5628de=!0x1;const _0x441c0a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x802e84=>_0x802e84['data']&&'listItemId'==_0x802e84['data']['key'])['filter'](_0x203516=>_0x203516['data']['newValue']&&_0x203516['data']['oldValue']);for(const _0x5e99a8 of _0x441c0a)Ee(_0x5e99a8)||(_0xf4de97['removeMarker'](_0x5e99a8['getFirstMarker']()),_0x5628de=!0x0);return _0x5628de;}['noTrackChangesFixer'](_0x30d30b){if(_0x30d30b['batch']['isUndo']||!_0x30d30b['batch']['isLocal'])return!0x1;const _0x513b20=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x513b20['trackChangesCommand']['value'])return!0x1;let _0x3408d5=!0x1;const _0x4d12c2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x235aed=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4dcd55=>'attribute'==_0x4dcd55['type'])['filter'](_0x3ab1b4=>_0x4d12c2['includes'](_0x3ab1b4['attributeKey']));if(0x0==_0x235aed['length'])return _0x3408d5;for(const _0x2b38f2 of _0x235aed){const _0xa05742=_0x513b20['_findSuggestions'](_0x2b38f2['range'],'attribute')['filter'](_0x35863a=>!_0x35863a['meta']['isNextTo'])['map'](_0x2dcb32=>_0x2dcb32['suggestion'])['filter'](_0x1db836=>{const _0x1e98e4=_0x513b20['_getAttributeKey'](_0x1db836);return _0x4d12c2['includes'](_0x1e98e4);});if(_0xa05742['length']){for(const _0x23b8d0 of _0xa05742)_0x30d30b['removeMarker'](_0x23b8d0['getFirstMarker']());_0x3408d5=!0x0;}}return _0x3408d5;}['assureChains'](){const _0x3ef3c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1056da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1972d1;const _0x54e018=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58807d=>{if(_0x58807d['data']['oldRange']||!_0x58807d['data']['newRange'])return null;if(!_0x58807d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x19ce55}=_0x3ef3c4['_splitMarkerName'](_0x58807d['name']);if(!_0x3ef3c4['hasSuggestion'](_0x19ce55))return null;const _0x3832ba=_0x3ef3c4['getSuggestion'](_0x19ce55);return _0x1056da['includes'](_0x3832ba['data']['key']);})['map'](_0x2b4b18=>{const {id:_0x3943b3}=_0x3ef3c4['_splitMarkerName'](_0x2b4b18['name']),_0x1f39eb=_0x3ef3c4['getSuggestion'](_0x3943b3);return _0x1972d1=_0x1f39eb['attributes']['groupId'],_0x1f39eb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x54e018['size'])return;const _0x33f9b8=_0x3ef3c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd06e7f=>'attribute'==_0xd06e7f['type']&&_0xd06e7f['data']&&_0x1056da['includes'](_0xd06e7f['data']['key'])&&_0xd06e7f['attributes']['groupId']!=_0x1972d1)['map'](_0xd489aa=>({'listItem':_0xd489aa['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd489aa['attributes']['groupId']})),_0x290825=new Set();for(const {groupId:_0xae445c,listItem:_0x58745e}of _0x33f9b8)_0x54e018['has'](_0x58745e)&&_0x290825['add'](_0xae445c);for(const _0xe427de of _0x3ef3c4['getSuggestions']())_0x290825['has'](_0xe427de['attributes']['groupId'])&&_0xe427de['setAttribute']('groupId',_0x1972d1);}['_supportLegacySuggestions'](){const _0x29635e=this['editor'],_0xb480b7=_0x29635e['locale'],_0x3e7ffe=_0x29635e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e7ffe['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31da36,_0x50d664){const _0x431475=[];for(let _0x2c86b0 of _0x31da36)_0x2c86b0['start']['nodeAfter']===_0x2c86b0['end']['parent']&&(_0x2c86b0=_0x29635e['model']['createRange'](_0x29635e['model']['createPositionAt'](_0x2c86b0['start']['nodeAfter'],0x0))),_0x431475['push'](_0x2c86b0);_0x29635e['model']['change'](_0x258ca7=>{const _0xcf4dbc=_0x29635e['model']['document']['selection'],_0x1098db=Array['from'](_0xcf4dbc['getRanges']())['map'](_0x394b8e=>_0x5af0c4['fromRange'](_0x394b8e));_0x258ca7['setSelection'](_0x431475),_0x29635e['commands']['get'](_0x50d664['commandName'])['refresh'](),_0x50d664['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x29635e['execute'](_0x50d664['commandName'],..._0x50d664['commandParams']),_0x258ca7['setSelection'](_0x1098db);for(const _0x4bcd73 of _0x1098db)_0x4bcd73['detach']();});}),_0x3e7ffe['descriptionFactory']['registerElementLabel'](function(_0x161fb4){const _0x2ca1e1=!_0x29635e['model']['schema']['isObject'](_0x161fb4),_0x80cc3=_0x161fb4['previousSibling'],_0x48cdcf=_0x161fb4['nextSibling'],_0x6ccb4e=_0x161fb4['getAttribute']('listItemId'),_0x661ba4=!_0x80cc3||_0x80cc3['getAttribute']('listItemId')!==_0x6ccb4e,_0x3d61af=!_0x48cdcf||_0x48cdcf['getAttribute']('listItemId')!==_0x6ccb4e;return _0x2ca1e1&&Boolean(_0x6ccb4e)&&_0x661ba4&&_0x3d61af;},_0x36d899=>o(_0xb480b7,'ELEMENT_LIST_ITEM',_0x36d899));}['_registerLegacyDescription'](){const _0x5a13db=this['editor'],_0x36c0fb=_0x5a13db['locale'];function _0x179d19(_0x2fcad4){const _0x52fefa=_0x5a13db['commands']['get']('bulletedList')['value'],_0xf030f1=_0x5a13db['commands']['get']('numberedList')['value'];return'numberedList'===_0x2fcad4?_0x52fefa:_0xf030f1;}_0x5a13db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2fac92){if('formatBlock'!=_0x2fac92['type'])return;const {data:_0x3cfb8d}=_0x2fac92;if(!_0x3cfb8d)return;let _0x36cfe9,_0x2908ca,_0x81ad08,_0x2c1059;switch(_0x3cfb8d['commandName']){case'bulletedList':_0x81ad08=_0x3cfb8d['commandParams'][0x0]['forceValue'],_0x2c1059=_0x179d19(_0x3cfb8d['commandName']),_0x36cfe9=_0x81ad08?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2c1059&&_0x5a13db['config']['get']('list.multiBlock')||(_0x36cfe9='*Change\x20to:*\x20%0'),_0x2908ca={'type':'format','content':o(_0x36c0fb,_0x36cfe9,o(_0x36c0fb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x81ad08=_0x3cfb8d['commandParams'][0x0]['forceValue'],_0x2c1059=_0x179d19(_0x3cfb8d['commandName']),_0x36cfe9=_0x81ad08?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2c1059&&_0x5a13db['config']['get']('list.multiBlock')||(_0x36cfe9='*Change\x20to:*\x20%0'),_0x2908ca={'type':'format','content':o(_0x36c0fb,_0x36cfe9,o(_0x36c0fb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36cfe9='*Indent:*\x20%0',_0x2908ca={'type':'format','content':o(_0x36c0fb,_0x36cfe9,o(_0x36c0fb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36cfe9=function(_0x54fb3c){const _0x1c6cb4=_0x54fb3c['getFirstRange']();let _0x3e205b=_0x1c6cb4['start']['nodeAfter'];for(;_0x3e205b&&_0x1c6cb4['containsItem'](_0x3e205b);){if(_0x3e205b['getAttribute']('listIndent')>0x0)return!0x1;_0x3e205b=_0x3e205b['nextSibling'];}return!0x0;}(_0x2fac92)?o(_0x36c0fb,'*Format:*\x20remove\x20from\x20%0',o(_0x36c0fb,function(_0x21ae80){return'ELEMENT_'+_0x21ae80['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2fac92))):o(_0x36c0fb,'*Outdent:*\x20%0',o(_0x36c0fb,'ELEMENT_LIST_ITEM')),_0x2908ca={'type':'format','content':_0x36cfe9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3cfb8d['multipleBlocks']&&(_0x36cfe9='*Merge:*\x20%0',_0x2908ca={'type':'deletion','content':o(_0x36c0fb,_0x36cfe9,o(_0x36c0fb,'ELEMENT_LIST_ITEM'))});}return _0x2908ca;});}}function Ee(_0x4bd86f){let _0x73bdf9=_0x4bd86f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x73bdf9;){const _0x1d1b37=_0x73bdf9['getAttribute']('listItemId');if(!_0x1d1b37)return!0x1;if(_0x1d1b37==_0x4bd86f['data']['newValue'])return'newValue';if(_0x1d1b37==_0x4bd86f['data']['oldValue'])return'oldValue';_0x73bdf9=_0x73bdf9['previousSibling'];}return!0x1;}class pe extends _0x59cc13{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x272f82=this['editor']['config']['get']('list.properties'),_0x3bc17f=this['editor']['plugins']['get']('TrackChangesEditing');_0x272f82['styles']&&(_0x3bc17f['enableDefaultAttributesIntegration']('listStyle'),_0x3bc17f['registerBlockAttribute']('listStyle')),_0x272f82['reversed']&&(_0x3bc17f['enableDefaultAttributesIntegration']('listReversed'),_0x3bc17f['registerBlockAttribute']('listReversed')),_0x272f82['startIndex']&&(_0x3bc17f['enableDefaultAttributesIntegration']('listStart'),_0x3bc17f['registerBlockAttribute']('listStart'));const _0x1cf356={'type':'format','content':''};_0x3bc17f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3281e5=this['editor']['locale'];_0x3bc17f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3281e5,'FORMAT_LIST_REVERSED')),_0x3bc17f['descriptionFactory']['registerDescriptionCallback'](_0x166ff5=>{const {data:_0x305917}=_0x166ff5;if(_0x305917&&'listReversed'==_0x305917['key'])return null==_0x305917['newValue']||0x0==_0x305917['newValue']&&null==_0x305917['oldValue']?_0x1cf356:void 0x0;}),_0x3bc17f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3281e5,'FORMAT_LIST_START')),_0x3bc17f['descriptionFactory']['registerDescriptionCallback'](_0x45ca61=>{const {data:_0x42252b}=_0x45ca61;if(_0x42252b&&'listStart'==_0x42252b['key'])return null==_0x42252b['newValue']||0x1==_0x42252b['newValue']&&null==_0x42252b['oldValue']?_0x1cf356:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4891e8=>{if(_0x4891e8['batch']['isUndo'])return!0x1;let _0x37991e=!0x1;const _0x2c3317=_0x3bc17f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7253a4=>{const _0x65d11a=_0x3bc17f['_getAttributeKey'](_0x7253a4);return'listStart'==_0x65d11a||'listReversed'==_0x65d11a;});for(const _0x461c7c of _0x2c3317){const _0x45fb01=_0x461c7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45fb01||'customNumbered'==_0x45fb01)continue;_0x3bc17f['_findSuggestions'](_0x461c7c['getFirstRange'](),'attribute')['find'](_0x575828=>'listType'==_0x3bc17f['_getAttributeKey'](_0x575828['suggestion']))||(_0x4891e8['removeMarker'](_0x461c7c['getFirstMarker']()),_0x37991e=!0x0);}return _0x37991e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3133c3){const _0x264e08=this['editor']['locale'],{data:_0x542d1e}=_0x3133c3,_0x52a1cd={'type':'format','content':''};if(!_0x542d1e||'listStyle'!=_0x542d1e['key'])return;if(!_0x542d1e['oldValue'])return'default'==_0x542d1e['newValue']?_0x52a1cd:{'type':'format','content':''+o(_0x264e08,'*Set\x20format:*\x20%0',o(_0x264e08,this['_getTranslationKeyForListStyle'](_0x542d1e['newValue'])))};if(!_0x542d1e['newValue']){if('default'==_0x542d1e['oldValue'])return _0x52a1cd;let _0x100e64=_0x3133c3['head'];for(;_0x100e64;){if(_0x100e64['data']&&'listType'==_0x100e64['data']['key']&&_0x100e64['data']['newValue'])return _0x52a1cd;_0x100e64=_0x100e64['next'];}return{'type':'format','content':''+o(_0x264e08,'*Remove\x20format:*\x20%0',o(_0x264e08,this['_getTranslationKeyForListStyle'](_0x542d1e['oldValue'])))};}if('default'!=_0x542d1e['newValue'])return{'type':'format','content':''+o(_0x264e08,'*Set\x20format:*\x20%0',o(_0x264e08,this['_getTranslationKeyForListStyle'](_0x542d1e['newValue'])))};let _0x47dab0=_0x3133c3['head'];for(;_0x47dab0;){if(_0x47dab0['data']&&'listType'==_0x47dab0['data']['key']&&_0x47dab0['data']['newValue']&&_0x47dab0['data']['oldValue'])return _0x52a1cd;_0x47dab0=_0x47dab0['next'];}return{'type':'format','content':o(_0x264e08,'*Set\x20format:*\x20%0',o(_0x264e08,'ELEMENT_'+_0x3133c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3a9d84=this['editor'],_0x441db0=_0x3a9d84['locale'];_0x3a9d84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ffdb=>{if('formatBlock'!=_0x32ffdb['type'])return;const {data:_0x3f989b}=_0x32ffdb;if(!_0x3f989b)return;let _0xdbd89a,_0x5423b2;switch(_0x3f989b['commandName']){case'listStyle':_0xdbd89a='*Change\x20to:*\x20%0',_0x5423b2={'type':'format','content':o(_0x441db0,_0xdbd89a,o(_0x441db0,this['_getTranslationKeyForListStyle'](_0x3f989b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdbd89a=_0x3f989b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5423b2={'type':'format','content':o(_0x441db0,_0xdbd89a)};break;case'listStart':_0xdbd89a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5423b2={'type':'format','content':o(_0x441db0,_0xdbd89a,_0x3f989b['commandParams'][0x0]['startIndex'])};}return _0x5423b2;});}['_getTranslationKeyForListStyle'](_0x404520){return'ELEMENT_'+function(_0x31b1bd){if(ye['includes'](_0x31b1bd))return'bulleted';if(Se['includes'](_0x31b1bd))return'numbered';return null;}(_0x404520)['toUpperCase']()+'_LIST_'+_0x404520['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x59cc13{static get['requires'](){return[_0x378ee0];}['init'](){const _0x4e7336=this['editor'],_0x1db508=_0x4e7336['plugins']['get']('TrackChangesEditing'),_0x1e2132=_0x4e7336['commands']['get']('enter');_0x1db508['enableCommand']('enter',()=>{_0x4e7336['model']['change'](_0x1e948c=>{const _0x2034a1=_0x4e7336['model']['document']['selection'],_0x115a96=_0x2034a1['getFirstPosition'](),_0x9efe39=_0x5af0c4['fromRange'](_0x2034a1['getFirstRange']());if(_0x1e2132['enterBlock'](_0x1e948c)){const _0x3bef04=_0x4e7336['model']['createPositionAt'](_0x115a96['parent']['nextSibling'],0x0),_0x4b1abf=_0x1e948c['createRange'](_0x115a96,_0x3bef04);_0x1db508['markInsertion'](_0x4b1abf);}else _0x1e948c['setSelection'](_0x1e948c['createRange'](_0x9efe39['end']));_0x9efe39['detach'](),_0x1e2132['fire']('afterExecute',{'writer':_0x1e948c});});}),_0x4e7336['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4e7336,'split'),{'priority':'high'}),_0x4e7336['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a7857,_0x2d946b,_0x2f2a0e)=>{const _0x26a7f0=_0x2f2a0e['mapper']['markerNameToElements'](_0x2d946b['markerName']);if(_0x26a7f0){for(const _0x147d0e of _0x26a7f0)_0x147d0e['hasClass']('ck-suggestion-marker-split')&&(_0x2f2a0e['mapper']['unbindElementFromMarkerName'](_0x147d0e,_0x2d946b['markerName']),_0x2f2a0e['writer']['remove'](_0x147d0e));}},{'priority':'high'}),_0x4e7336['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38e70a,_0x419610,_0x325634)=>{_0x325634['options']['showSuggestionHighlights']&&_e(_0x4e7336,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x38e70a,_0x419610,_0x325634);},{'priority':'high'});}}class X extends _0x59cc13{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x510e7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x510e7b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x510e7b['enableCommand']('findNext'),_0x510e7b['enableCommand']('findPrevious'),_0x510e7b['enableCommand']('replace'),_0x510e7b['enableCommand']('replaceAll');}['handleFindCommand'](_0x4644dd,_0x55c8a7,_0x493ab4={}){const _0x470e7b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4644dd(_0x4ffd2d=>{let _0x25a89a=('string'==typeof _0x55c8a7?_0x470e7b['findByTextCallback'](_0x55c8a7,_0x493ab4):_0x55c8a7)(_0x4ffd2d);Array['isArray'](_0x25a89a)&&(_0x25a89a={'results':_0x25a89a,'searchText':'string'==typeof _0x55c8a7?_0x55c8a7:''});const _0xb5e0dc=_0x25a89a['results']['filter'](_0x3990d7=>!0x1===this['_isInDeletionRange'](_0x3990d7,_0x4ffd2d['item']));return{..._0x25a89a,'results':_0xb5e0dc};},_0x493ab4);}['_isInDeletionRange'](_0x4fe45f,_0x36f045){const _0x27fcbf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36f045,_0x4fe45f['start']),this['editor']['model']['createPositionAt'](_0x36f045,_0x4fe45f['end']));for(const _0x78353f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27fcbf['getIntersection'](_0x78353f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x59cc13{['afterInit'](){const _0x55cb61=this['editor']['locale'],_0x37265d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16b4c3,commandName:_0x17c8a2}of ro)this['editor']['plugins']['has'](_0x16b4c3)&&(_0x37265d['enableDefaultAttributesIntegration'](_0x17c8a2),_0x37265d['registerInlineAttribute'](_0x17c8a2));_0x37265d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x55cb61,'FORMAT_FONT_SIZE')),_0x37265d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x55cb61,'FORMAT_FONT_FAMILY')),_0x37265d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x55cb61,'FORMAT_FONT_COLOR')),_0x37265d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x55cb61,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15e748=this['editor'],_0x3144c4=_0x15e748['locale'];_0x15e748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9fb5=>{const _0x1e47d5=_0x3144c4['t'];if('formatInline'!=_0x3b9fb5['type'])return;const {data:_0x52ffb2}=_0x3b9fb5;if(null!=_0x52ffb2){if('fontSize'==_0x52ffb2['commandName']){const _0x3ef985=_0x52ffb2['commandParams'][0x0]['value'];if(_0x3ef985){const _0x1e5912=_0x1e47d5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f7aeb=>_0x2f7aeb['model']==_0x3ef985)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3144c4,'*Set\x20font\x20size:*\x20%0',_0x1e5912)};}return{'type':'format','content':o(_0x3144c4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x52ffb2['commandName']){const _0x51d2a3=_0x52ffb2['commandParams'][0x0]['value'];return _0x51d2a3?{'type':'format','content':o(_0x3144c4,'*Set\x20font\x20family:*\x20%0',_0x51d2a3)}:{'type':'format','content':o(_0x3144c4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x52ffb2['commandName']){const _0x5492dc=_0x52ffb2['commandParams'][0x0]['value'];if(_0x5492dc){const _0x1bcaef=_0x5654dd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53a4d0=>_0x53a4d0['model']==_0x5492dc);let _0xe2f6d8=_0x5492dc,_0x318cf3='';return _0x1bcaef&&(_0xe2f6d8=_0x1bcaef['label'],_0x318cf3=_0x1e47d5(_0xe2f6d8)['toLowerCase']()),{'type':'format','content':o(_0x3144c4,'*Set\x20font\x20color:*\x20%0',_0x318cf3)['trim'](),'color':{'value':_0x5492dc,'title':_0x318cf3||_0xe2f6d8}};}return{'type':'format','content':o(_0x3144c4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x52ffb2['commandName']){const _0x2a85c8=_0x52ffb2['commandParams'][0x0]['value'];if(_0x2a85c8){const _0x1c13a0=_0x5654dd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x223ca5=>_0x223ca5['model']==_0x2a85c8);let _0x5c00c2=_0x2a85c8,_0x411543='';return _0x1c13a0&&(_0x5c00c2=_0x1c13a0['label'],_0x411543=_0x1e47d5(_0x5c00c2)['toLowerCase']()),{'type':'format','content':o(_0x3144c4,'*Set\x20font\x20background\x20color:*\x20%0',_0x411543)['trim'](),'color':{'value':_0x2a85c8,'title':_0x411543||_0x5c00c2}};}return{'type':'format','content':o(_0x3144c4,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x59cc13{['afterInit'](){const _0xef08c1=this['editor'],_0x1aa954=_0xef08c1['plugins']['get']('TrackChangesEditing'),_0x1c29e2=_0xef08c1['commands']['get']('copyFormat'),_0x4d0c8f=_0xef08c1['commands']['get']('pasteFormat');_0x1c29e2&&_0x4d0c8f&&(_0x1aa954['enableDefaultAttributesIntegration']('pasteFormat'),_0x1aa954['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xa1fb44=this['editor'],_0x13b93d=_0xa1fb44['locale'];_0xa1fb44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x610837=>{if('formatBlock'!=_0x610837['type']&&'formatInline'!=_0x610837['type'])return;const {data:_0x2ea03c}=_0x610837;if(_0x2ea03c&&'pasteFormat'===_0x2ea03c['commandName']){const _0x1db1e1=[],_0x3b4770=_0x2ea03c['commandParams'][0x0];for(const [_0x5c097d,_0x502aa7]of Object['entries'](_0x3b4770))_0x1db1e1['push'](so(_0xa1fb44,_0x5c097d,_0x502aa7));return _0x1db1e1['length']?{'type':'format','content':o(_0x13b93d,'*Set\x20format\x20to:*\x20%0',_0x1db1e1['join'](',\x20'))}:{'type':'format','content':o(_0x13b93d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1482e7,_0x5d588b,_0x30b4b6){const _0x4f8db8=_0x1482e7['locale']['t'],_0x5cdb08=_0x5d588b['split'](/(?=[A-Z])/)['join']('\x20'),_0x387ce3=_0x4f8db8(_0x5cdb08['charAt'](0x0)['toUpperCase']()+_0x5cdb08['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30b4b6)return _0x387ce3;if('fontColor'===_0x5d588b||'fontBackgroundColor'===_0x5d588b){const _0x4a1734=_0x5654dd(_0x1482e7['config']['get']('fontColor.colors'))['find'](_0x5ae9d5=>_0x5ae9d5['model']==_0x30b4b6);return _0x387ce3+'\x20('+(_0x4a1734?_0x4f8db8(_0x4a1734['label'])['toLowerCase']():_0x30b4b6)+')';}if('fontSize'===_0x5d588b&&isNaN(parseFloat(_0x30b4b6))){const _0x4348a6=_0x1482e7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1482e7['config']['get']('fontSize.options'))['find'](_0x40134f=>_0x40134f['model']==_0x30b4b6);return _0x387ce3+'\x20('+(_0x4348a6?_0x4f8db8(_0x4348a6['title'])['toLowerCase']():_0x30b4b6)+')';}return _0x387ce3+'\x20('+_0x30b4b6+')';}class tt extends _0x59cc13{['_headingOptions'];['afterInit'](){const _0x267ba7=this['editor'];if(!_0x267ba7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x267ba7['config']['get']('heading.options');const _0x381c52=_0x267ba7['locale'],_0x8ffd0a=_0x267ba7['plugins']['get']('TrackChangesEditing');_0x8ffd0a['enableDefaultAttributesIntegration']('heading');for(const _0x292c94 of this['_headingOptions'])'paragraph'!=_0x292c94['model']&&_0x8ffd0a['descriptionFactory']['registerElementLabel'](_0x292c94['model'],_0x4f30f5=>{const _0x4b5ea5=this['_getHeadingLevel'](_0x292c94['model']);return null!==_0x4b5ea5?_0x5488cf(_0x4f30f5,_0x4b5ea5):_0x4a726e(_0x4f30f5,_0x292c94['title']);});function _0x5488cf(_0x2c840f,_0x5607e2){return o(_0x381c52,'ELEMENT_HEADING',[_0x2c840f,_0x5607e2]);}function _0x4a726e(_0x3be645,_0x4ab85d){return o(_0x381c52,'ELEMENT_HEADING_CUSTOM',[_0x3be645,_0x4ab85d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb1f4=this['editor'],_0x228944=_0x4fb1f4['locale'];function _0x2fb335(_0xff3db3,_0x4f39c4){return o(_0x228944,'ELEMENT_HEADING_CUSTOM',[_0xff3db3,_0x4f39c4]);}_0x4fb1f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f5ce3=>{if('formatBlock'!=_0x4f5ce3['type'])return;const {data:_0x529530}=_0x4f5ce3;if(_0x529530&&'heading'==_0x529530['commandName']){const _0x21920b=_0x529530['commandParams'][0x0]['value'],_0x7c8ea6=this['_getHeadingLevel'](_0x21920b);if(null!==_0x7c8ea6)return{'type':'format','content':o(_0x228944,'*Change\x20to:*\x20%0',(_0x1fbbfc=0x1,_0x218ac3=_0x7c8ea6,o(_0x228944,'ELEMENT_HEADING',[_0x1fbbfc,_0x218ac3])))};const _0x5e378d=this['_headingOptions']['find'](_0x45b12a=>_0x45b12a['model']===_0x21920b)['title'];return{'type':'format','content':o(_0x228944,'*Change\x20to:*\x20%0',_0x2fb335(0x1,_0x5e378d))};}var _0x1fbbfc,_0x218ac3;});}['_getHeadingLevel'](_0x54b3bc){const _0x298fc5=_0x54b3bc['match'](/^heading(\d+)/);if(_0x298fc5)return _0x298fc5[0x1];const _0x50ab90=this['_headingOptions']?.['find'](_0x17b631=>_0x17b631['model']==_0x54b3bc);if(_0x50ab90&&_0x50ab90['view']){const _0xae98f6=_0x50ab90['view'],_0x4cad09=(_0xae98f6['name']??_0xae98f6)['match'](/^h(\d+)/);if(_0x4cad09)return _0x4cad09[0x1];}return null;}}class et extends _0x59cc13{['afterInit'](){const _0x2ebfb1=this['editor'];if(!_0x2ebfb1['plugins']['has']('HighlightEditing'))return;const _0x2c65b7=_0x2ebfb1['plugins']['get']('TrackChangesEditing'),_0x4b96db=_0x2ebfb1['locale'];_0x2c65b7['enableDefaultAttributesIntegration']('highlight'),_0x2c65b7['registerInlineAttribute']('highlight'),_0x2c65b7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4b96db,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22374c=this['editor'],_0x1ce3f4=_0x22374c['locale'];_0x22374c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45b6cf=>{if('formatInline'!=_0x45b6cf['type'])return;const {data:_0x3a06eb}=_0x45b6cf;if(_0x3a06eb&&'highlight'==_0x3a06eb['commandName']){const _0xcbad85=_0x1ce3f4['t'],_0xa9bee6=_0x3a06eb['commandParams'][0x0]['value'];if(_0xa9bee6){const _0x32f356=_0x22374c['config']['get']('highlight.options')['find'](_0x167bac=>_0x167bac['model']==_0xa9bee6),_0x476ae5=_0xcbad85(_0x32f356['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ce3f4,'*Set\x20highlight:*\x20%0',_0x476ae5),'color':{'value':_0x32f356['color'],'title':_0x32f356['title']}};}return{'type':'format','content':o(_0x1ce3f4,'*Remove\x20highlight*',o(_0x1ce3f4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x59cc13{['afterInit'](){const _0x342e35=this['editor'];if(!_0x342e35['plugins']['has']('HorizontalLineEditing'))return;_0x342e35['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e570b=_0x342e35['plugins']['get']('TrackChangesEditing'),_0x15d25c=_0x342e35['locale'];_0x1e570b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x73c1fd=>o(_0x15d25c,'ELEMENT_HORIZONTAL_LINE',_0x73c1fd)),_0x342e35['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1dd288,{writer:_0x159533,options:_0x6df540})=>{if(!_0x6df540['showSuggestionHighlights'])return null;const _0x1576dc=_0x159533['createContainerElement']('div'),_0x4bec44=_0x159533['createEmptyElement']('hr');return _0x159533['addClass']('ck-horizontal-line',_0x1576dc),_0x159533['insert'](_0x159533['createPositionAt'](_0x1576dc,0x0),_0x4bec44),_0x1576dc;},'converterPriority':'high'});}}class st extends _0x59cc13{['afterInit'](){const _0x57950a=this['editor'];if(!_0x57950a['plugins']['has']('HtmlEmbed'))return;const _0x1c969a=_0x57950a['plugins']['get']('TrackChangesEditing'),_0x1322be=_0x57950a['locale'];_0x1c969a['descriptionFactory']['registerElementLabel']('rawHtml',_0x280b55=>o(_0x1322be,'ELEMENT_HTML_EMBED',_0x280b55)),_0x1c969a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c969a['registerBlockAttribute']('value'),_0x1c969a['descriptionFactory']['registerDescriptionCallback'](_0xc0239=>{if('attribute'!=_0xc0239['type'])return;const {data:_0x144669}=_0xc0239;if(_0x144669&&'value'==_0x144669['key']&&_0xc0239['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59e807=o(_0x1322be,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1322be,'*Change\x20%0\x20content*',_0x59e807)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394992=this['editor'],_0x2301f1=_0x394992['locale'];_0x394992['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59ac03=>{if('formatBlock'!=_0x59ac03['type'])return;const {data:_0x333656}=_0x59ac03;if(_0x333656&&'htmlEmbed'==_0x333656['commandName']){const _0x8acaf6=o(_0x2301f1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2301f1,'*Change\x20%0\x20content*',_0x8acaf6)};}});}}class nt extends _0x59cc13{['afterInit'](){const _0x1ab65b=this['editor'];if(!_0x1ab65b['plugins']['has']('ImageEditing'))return;const _0x12f1b9=_0x1ab65b['plugins']['get']('TrackChangesEditing'),_0x5e4b48=_0x1ab65b['plugins']['get']('ImageUtils'),_0x26333b=_0x1ab65b['locale'];_0x12f1b9['enableCommand']('insertImage'),_0x12f1b9['descriptionFactory']['registerElementLabel']('imageBlock',_0x20e986=>o(_0x26333b,'ELEMENT_IMAGE',_0x20e986)),_0x12f1b9['descriptionFactory']['registerElementLabel']('imageInline',_0x453bfb=>o(_0x26333b,'ELEMENT_INLINE_IMAGE',_0x453bfb)),_0x12f1b9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x26333b,'ELEMENT_CAPTION')),_0x1ab65b['plugins']['has']('ImageUploadEditing')&&_0x12f1b9['enableCommand']('uploadImage'),_0x1ab65b['plugins']['has']('ImageBlockEditing')&&_0x1ab65b['plugins']['has']('ImageInlineEditing')&&(_0x12f1b9['enableCommand']('imageTypeInline',(_0x4f5147,_0x42b994)=>{const _0x17f878=_0x5e4b48['getClosestSelectedImageElement'](_0x1ab65b['model']['document']['selection']);_0x1ab65b['model']['change'](()=>{_0x12f1b9['markBlockFormat'](_0x17f878,{'commandName':'imageTypeInline','commandParams':[_0x42b994]},[],'convertBlockImageToInline');});}),_0x12f1b9['enableCommand']('imageTypeBlock',(_0x27fbe1,_0x794932)=>{_0x1ab65b['model']['change'](_0x432153=>{let _0x357f62=_0x5e4b48['getClosestSelectedImageElement'](_0x1ab65b['model']['document']['selection']),_0x1e66f7=_0x432153['createRangeOn'](_0x357f62);const _0x49dab0=_0x24d499['fromPosition'](_0x1e66f7['start'],'toPrevious'),_0x64980f=_0x24d499['fromPosition'](_0x1e66f7['end'],'toNext');_0x12f1b9['forceDefaultExecution'](()=>_0x27fbe1(_0x794932)),_0x357f62=_0x5e4b48['getClosestSelectedImageElement'](_0x1ab65b['model']['document']['selection']),_0x1e66f7=_0x432153['createRangeOn'](_0x357f62);const _0x1077e6=_0x432153['createRange'](_0x49dab0,_0x64980f);_0x49dab0['detach'](),_0x64980f['detach'](),_0x12f1b9['markBlockFormat'](_0x357f62,{'commandName':'imageTypeInline','commandParams':[_0x794932]},[],'convertInlineImageToBlock'),_0x1077e6['start']['isBefore'](_0x1e66f7['start'])&&_0x12f1b9['markInsertion'](_0x432153['createRange'](_0x1077e6['start'],_0x1e66f7['start']),'convertInlineImageToBlock'),_0x1e66f7['end']['isBefore'](_0x1077e6['end'])&&_0x12f1b9['markInsertion'](_0x432153['createRange'](_0x1e66f7['end'],_0x1077e6['end']),'convertInlineImageToBlock');});}),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x12f1b9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x45e608])=>{const _0x14b77d=_0x12f1b9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5dcc60=_0x45e608['start'],_0x513a60=_0x45e608['end'];const _0x37fe64=_0x1ab65b['model']['schema']['getNearestSelectionRange'](_0x5dcc60,'backward'),_0x76d188=_0x1ab65b['model']['schema']['getNearestSelectionRange'](_0x513a60,'forward');_0x37fe64['isCollapsed']&&(_0x5dcc60=_0x37fe64['start']),_0x76d188['isCollapsed']&&(_0x513a60=_0x76d188['end']),_0x14b77d([_0x1ab65b['model']['createRange'](_0x5dcc60,_0x513a60)]);}),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x268945),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x268945)),_0x1ab65b['plugins']['has']('ImageCaptionEditing')&&(_0x12f1b9['enableCommand']('toggleImageCaption',(_0x21fea1,_0x47e026)=>{const _0x537c61=_0x1ab65b['plugins']['get']('ImageCaptionUtils');let _0x437afb=_0x5e4b48['getClosestSelectedImageElement'](_0x1ab65b['model']['document']['selection']),_0x4dcd76=_0x537c61['getCaptionFromImageModelElement'](_0x437afb);_0x1ab65b['model']['change'](()=>{if(_0x4dcd76)return void _0x12f1b9['markDeletion'](_0x1ab65b['model']['createRangeOn'](_0x4dcd76));const _0x46a4ac=_0x5e4b48['isBlockImage'](_0x437afb);_0x21fea1(_0x47e026),_0x437afb=_0x5e4b48['getClosestSelectedImageElement'](_0x1ab65b['model']['document']['selection']),_0x4dcd76=_0x537c61['getCaptionFromImageModelElement'](_0x437afb),_0x12f1b9['markInsertion'](_0x1ab65b['model']['createRangeOn'](_0x4dcd76),_0x46a4ac?null:'imageCaption');});}),_0x12f1b9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x268945));const _0x15130e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e1f09(_0x533103,_0x28ff44){const _0x466019=_0x15130e['findIndex'](({type:_0x4298cc,subType:_0x7d52cb})=>_0x533103['type']==_0x4298cc&&_0x533103['subType']==_0x7d52cb),_0x380eca=_0x15130e['findIndex'](({type:_0x2e01ea,subType:_0x28bc65})=>_0x28ff44['type']==_0x2e01ea&&_0x28ff44['subType']==_0x28bc65);if(_0x466019<0x0||_0x380eca<0x0)return!0x1;const _0x4dc506=_0x533103['getFirstRange'](),_0x5c898f=_0x28ff44['getFirstRange']();if((0x0==_0x466019||0x1==_0x466019)&&0x2==_0x380eca&&_0x4dc506['isIntersecting'](_0x5c898f))return!0x0;if(0x2==_0x466019&&0x3==_0x380eca){const _0x3d365c=_0x12f1b9['_findSuggestions'](_0x4dc506,'insertion')['filter'](({suggestion:_0x2c5bae,meta:_0x59b81f})=>_0x59b81f['isOwn']&&'convertInlineImageToBlock'==_0x2c5bae['subType']);if(_0x3d365c['length']>0x1&&_0x5c898f['end']['isEqual'](_0x4dc506['start']))return!0x0;if(0x1==_0x3d365c['length']&&(_0x4dc506['start']['isEqual'](_0x5c898f['end'])||_0x4dc506['end']['isEqual'](_0x5c898f['start'])))return!0x0;}if(0x3==_0x466019&&0x3==_0x380eca&&_0x4dc506['start']['isBefore'](_0x5c898f['start'])){const _0x9dcc41=_0x4dc506['end']['nodeAfter'],_0x509c0e=_0x5c898f['start']['nodeBefore'];return _0x5e4b48['isBlockImage'](_0x9dcc41)&&_0x9dcc41===_0x509c0e;}return!0x1;}function _0x268945(_0x2f3b5f,_0x376b6a){return _0x4e1f09(_0x2f3b5f,_0x376b6a)?[_0x2f3b5f,_0x376b6a]:_0x4e1f09(_0x376b6a,_0x2f3b5f)?[_0x376b6a,_0x2f3b5f]:null;}_0x1ab65b['plugins']['has']('ImageResize')&&(_0x12f1b9['enableDefaultAttributesIntegration']('resizeImage'),_0x12f1b9['registerBlockAttribute']('resizedWidth'),_0x12f1b9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x26333b,'FORMAT_IMAGE_SIZE'))),_0x1ab65b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x12f1b9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x12f1b9['registerBlockAttribute']('alt')),_0x12f1b9['descriptionFactory']['registerDescriptionCallback'](_0x472e74=>{if(!!_0x15130e['find'](({type:_0xe70291,subType:_0x204806})=>_0x472e74['type']==_0xe70291&&_0x472e74['subType']==_0x204806))return _0x472e74['previous']?{}:void 0x0;}),_0x12f1b9['descriptionFactory']['registerDescriptionCallback'](_0x549340=>{if('insertion'==_0x549340['type']||'deletion'==_0x549340['type']){const _0x3fbd95=_0x549340['getContainedElement']();if(_0x3fbd95&&_0x3fbd95['is']('element','caption'))return{'type':'insertion'==_0x549340['type']?'addObject':'removeObject','element':_0x3fbd95,'quantity':0x1};}}),_0x12f1b9['descriptionFactory']['registerDescriptionCallback'](_0x15ae56=>'formatBlock'==_0x15ae56['type']&&'convertInlineImageToBlock'==_0x15ae56['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x15ae56['type']&&'convertBlockImageToInline'==_0x15ae56['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x12f1b9['descriptionFactory']['registerDescriptionCallback'](_0x35bf78=>{if('attribute'!=_0x35bf78['type'])return;const {data:_0x47c50d}=_0x35bf78;if(!_0x47c50d||'alt'!=_0x47c50d['key'])return;const _0x308608=_0x47c50d['newValue'];return _0x308608?{'type':'format','content':o(_0x26333b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x308608+'\x22')}:{'type':'format','content':o(_0x26333b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eebab=this['editor'],_0x5889f0=_0x5eebab['locale'];_0x5eebab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aa54f=>{if('formatBlock'!=_0x2aa54f['type']&&'formatInline'!=_0x2aa54f['type'])return;const {data:_0x322bbc}=_0x2aa54f;if(_0x322bbc){if('imageTextAlternative'==_0x322bbc['commandName']){const _0x33c29d=_0x322bbc['commandParams'][0x0]['newValue'];return _0x33c29d?{'type':'format','content':o(_0x5889f0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33c29d+'\x22')}:{'type':'format','content':o(_0x5889f0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x322bbc['commandName']){const _0xeb2b23=_0x322bbc['commandParams'][0x0]['width'];return _0xeb2b23?{'type':'format','content':o(_0x5889f0,'*Set\x20image\x20width:*\x20%0',_0xeb2b23)}:{'type':'format','content':o(_0x5889f0,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x59cc13{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x39186c=this['editor']['locale'],_0x1f7928=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7928['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1f7928['registerBlockAttribute']('src'),_0x1f7928['descriptionFactory']['registerDescriptionCallback'](_0x9e8bad=>{if('attribute'!=_0x9e8bad['type'])return;const {data:_0xe83c1f}=_0x9e8bad;return _0xe83c1f&&'src'==_0xe83c1f['key']?_0xe83c1f['newValue']&&_0xe83c1f['oldValue']?{'type':'format','content':o(_0x39186c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x317c6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x317c6b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x317c6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x317c6b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x317c6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11086f=this['editor'],_0x37256e=_0x11086f['locale'];_0x11086f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572043=>{if('formatBlock'!=_0x572043['type']&&'formatInline'!=_0x572043['type'])return;const {data:_0x45e794}=_0x572043;if(!_0x45e794||'replaceImageSource'!=_0x45e794['commandName'])return;return{'type':'format','content':o(_0x37256e,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x59cc13{['afterInit'](){const _0x250b62=this['editor'];if(!_0x250b62['plugins']['has']('ImageStyleEditing'))return;const _0x3bce89=_0x250b62['plugins']['get']('TrackChangesEditing'),_0x16873e=_0x250b62['plugins']['get']('ImageUtils'),_0x1ed49f={};_0x3bce89['enableCommand']('imageStyle',(_0x506f19,_0xf1bf9f)=>{const _0x5679a6=_0x250b62['plugins']['get']('Users')['me'],_0x5307d8=_0x250b62['commands']['get']('imageStyle');let _0x5f3cbc=_0x16873e['getClosestSelectedImageElement'](_0x250b62['model']['document']['selection']),_0x2c415e=_0x250b62['model']['createRangeOn'](_0x5f3cbc),_0x400ec7=_0x5307d8['value'];if(_0x400ec7==_0xf1bf9f['value'])return;const _0x115cdb={'commandName':'imageStyle','commandParams':[_0xf1bf9f],'formatGroupId':_0x4dfb6e()};_0x250b62['model']['change'](()=>{if(_0x3bce89['getSuggestions']()['filter'](_0x150d8c=>_0x150d8c['isInContent']&&_0x5679a6==_0x150d8c['author']&&('formatBlock'==_0x150d8c['type']||'formatInline'==_0x150d8c['type'])&&('imageStylePreApply'==_0x150d8c['subType']||'imageStylePostApply'==_0x150d8c['subType'])&&_0x150d8c['getFirstRange']()['isEqual'](_0x2c415e))['forEach'](_0x1360b6=>_0x3bce89['discardSuggestion'](_0x1360b6['head'])),_0x5f3cbc=_0x16873e['getClosestSelectedImageElement'](_0x250b62['model']['document']['selection']),_0x2c415e=_0x250b62['model']['createRangeOn'](_0x5f3cbc),_0x5307d8['refresh'](),_0x250b62['commands']['get']('imageTypeInline')['refresh'](),_0x250b62['commands']['get']('imageTypeBlock')['refresh'](),_0x400ec7=_0x5307d8['value'],_0x400ec7!=_0xf1bf9f['value'])return _0x16873e['isInlineImage'](_0x5f3cbc)&&_0x5307d8['shouldConvertImageType'](_0xf1bf9f['value'],_0x5f3cbc)?(_0x506f19({..._0xf1bf9f,'setImageSizes':!0x1}),_0x5f3cbc=_0x16873e['getClosestSelectedImageElement'](_0x250b62['model']['document']['selection']),void _0x3bce89['markBlockFormat'](_0x5f3cbc,{..._0x115cdb,'commandReversedParams':[{'value':_0x400ec7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x16873e['isBlockImage'](_0x5f3cbc)?_0x3bce89['markBlockFormat'](_0x5f3cbc,_0x115cdb,[],'imageStylePostApply'):_0x3bce89['markInlineFormat'](_0x2c415e,_0x115cdb,'imageStylePostApply'));});});for(const _0x32733f of _0x250b62['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1ed49f[_0x32733f['name']]=_0x32733f['title']['toLowerCase']();_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2354a8])=>{_0x16873e['setImageNaturalSizeAttributes'](_0x2354a8['getContainedElement']());}),_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x419d6d,_0x4fd3e1)=>{_0x3bce89['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x419d6d,{'commandName':_0x4fd3e1['commandName'],'commandParams':_0x4fd3e1['commandReversedParams']});}),_0x3bce89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xea6e34,_0x296aea){if(_0x558ace(_0xea6e34,_0x296aea))return[_0xea6e34,_0x296aea];if(_0x558ace(_0x296aea,_0xea6e34))return[_0x296aea,_0xea6e34];return null;});const _0x11b118=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x558ace(_0x3697e7,_0x530bd6){const _0x570c6b=_0x11b118['findIndex'](({type:_0x19ed52,subType:_0x898535})=>_0x3697e7['type']==_0x19ed52&&_0x3697e7['subType']==_0x898535),_0x57635f=_0x11b118['findIndex'](({type:_0x557f75,subType:_0x36b365})=>_0x530bd6['type']==_0x557f75&&_0x530bd6['subType']==_0x36b365);if(_0x570c6b<0x0||_0x57635f<0x0)return!0x1;const _0x1a3dff=_0x3697e7['getFirstRange'](),_0x261214=_0x530bd6['getFirstRange']();if((0x0==_0x570c6b||0x1==_0x570c6b)&&0x2==_0x57635f&&_0x1a3dff['isIntersecting'](_0x261214))return!0x0;if(0x2==_0x570c6b&&0x3==_0x57635f){const _0x1c73d0=_0x3bce89['_findSuggestions'](_0x1a3dff,'insertion')['filter'](({suggestion:_0x3024fb,meta:_0xfe80fa})=>_0xfe80fa['isOwn']&&'convertInlineImageToBlock'==_0x3024fb['subType']);if(_0x1c73d0['length']>0x1&&_0x261214['end']['isEqual'](_0x1a3dff['start']))return!0x0;if(0x1==_0x1c73d0['length']&&(_0x1a3dff['start']['isEqual'](_0x261214['end'])||_0x1a3dff['end']['isEqual'](_0x261214['start'])))return!0x0;}if(0x3==_0x570c6b&&0x3==_0x57635f&&_0x1a3dff['start']['isBefore'](_0x261214['start'])){const _0x7e1c5e=_0x1a3dff['end']['nodeAfter'],_0x2054fb=_0x261214['start']['nodeBefore'];return _0x16873e['isBlockImage'](_0x7e1c5e)&&_0x7e1c5e===_0x2054fb;}return!0x1;}_0x250b62['model']['document']['registerPostFixer'](()=>{let _0x2724fe=!0x1;const _0x5daee9=Array['from'](_0x250b62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x364309,data:_0x576dfb}of _0x5daee9){const {group:_0x274dcc,type:_0x546066,subType:_0x1160a3,id:_0x45ec42}=_0x3bce89['_splitMarkerName'](_0x364309);if('suggestion'==_0x274dcc&&_0x3bce89['hasSuggestion'](_0x45ec42)){if('formatBlock'==_0x546066&&('imageStylePreApply'==_0x1160a3||'imageStylePostApply'==_0x1160a3)){const _0x4f476c=_0x3bce89['getSuggestion'](_0x45ec42);if(_0x576dfb['newRange']){const _0x4c20ee=_0x4f476c['getFirstRange']()['getContainedElement']();if(_0x16873e['isBlockImage'](_0x4c20ee))continue;_0x3bce89['discardSuggestion'](_0x4f476c),_0x2724fe=!0x0;}}if('insertion'==_0x546066&&'imageCaption'==_0x1160a3&&!_0x576dfb['newRange']){const _0x4fba87=_0x3bce89['getSuggestion'](_0x45ec42);_0x4fba87['next']&&_0x4fba87['next']['isInContent']&&(_0x3bce89['discardSuggestion'](_0x4fba87['next']),_0x2724fe=!0x0);}}}return _0x2724fe;}),this['_registerLegacyDescription'](_0x1ed49f);}['_registerLegacyDescription'](_0x443e39){const _0xb9cab6=this['editor'],_0x12c97d=_0xb9cab6['locale'];_0xb9cab6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ad85d=>{if('formatBlock'!=_0x3ad85d['type']&&'formatInline'!=_0x3ad85d['type'])return;const {data:_0x300b30}=_0x3ad85d;if(!_0x300b30||'imageStyle'!=_0x300b30['commandName'])return;const _0x23e44d=_0x300b30['commandParams'][0x0]['value'];return _0x58c82f('side'===_0x23e44d?o(_0x12c97d,'FORMAT_SIDE_IMAGE'):_0x443e39[_0x23e44d]||_0x23e44d);function _0x58c82f(_0x176825){return{'type':'format','content':o(_0x12c97d,'*Format:*\x20%0',_0x176825)};}});}}class at extends _0x59cc13{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd6d18d){super(_0xd6d18d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b1d6b=this['editor'],_0xd91f9=_0x3b1d6b['commands']['get']('importWord'),_0x21ddc7=_0x3b1d6b['commands']['get']('trackChanges');_0xd91f9&&(_0xd91f9['on']('execute',(_0x392ad7,[,_0x4b3fe6])=>{this['_trackChangesValueDuringImport']=_0x21ddc7['value'],_0x4b3fe6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd91f9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd91f9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21ddc7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b1d6b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x11084d,_0x4b1f85){const {suggestions:_0x452bc3}=_0x4b1f85,_0x599ee3=this['editor']['commands']['get']('trackChanges'),_0x15e2ba=_0x599ee3['value'];this['_trackChangesValueDuringImport']!==_0x15e2ba&&(_0x599ee3['execute'](),this['_trackChangesExecuted']=!0x0),_0x452bc3&&_0x452bc3['forEach'](({id:_0x247183,type:_0x41d61c,author:_0x20e16c,created_at:_0x5896b5})=>{const _0x587df4={'id':_0x247183,'type':_0x41d61c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20e16c,'createdAt':_0x5896b5?new Date(_0x5896b5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x587df4);});}}class ct extends _0x59cc13{['afterInit'](){const _0x3f92f7=this['editor'],_0x368127=_0x3f92f7['plugins']['get']('TrackChangesEditing');if(_0x3f92f7['plugins']['has']('IndentEditing')&&(_0x368127['enableCommand']('indent'),_0x368127['enableCommand']('outdent')),_0x3f92f7['plugins']['has']('IndentBlock')){for(const _0x2d599a of['indentBlock','outdentBlock'])_0x368127['enableDefaultAttributesIntegration'](_0x2d599a);}const _0x7094cb=_0x3f92f7['locale'];_0x368127['registerBlockAttribute']('blockIndent'),_0x368127['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x7094cb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5873fb=this['editor'],_0x2620b3=_0x5873fb['locale'],_0x406cb1=_0x5873fb['plugins']['get']('TrackChangesEditing');_0x406cb1['descriptionFactory']['registerDescriptionCallback'](_0x3fea33=>{if('formatBlock'!=_0x3fea33['type'])return;const {data:_0x4ec6ff}=_0x3fea33;if(!_0x4ec6ff)return;if('indentBlock'!=_0x4ec6ff['commandName']&&'outdentBlock'!=_0x4ec6ff['commandName'])return;const _0x143388=_0x3fea33['getItems']()[0x0],_0x10d959=_0x406cb1['descriptionFactory']['getItemLabel'](_0x143388);return'indentBlock'==_0x4ec6ff['commandName']?{'type':'format','content':o(_0x2620b3,'*Indent:*\x20%0',_0x10d959)}:'outdentBlock'==_0x4ec6ff['commandName']?{'type':'format','content':o(_0x2620b3,'*Outdent:*\x20%0',_0x10d959)}:void 0x0;});}}class ut extends _0x59cc13{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x59cc13{['afterInit'](){const _0x4a999c=this['editor'];if(!_0x4a999c['plugins']['has']('LinkEditing'))return;const _0x35bbf2=_0x4a999c['plugins']['get']('TrackChangesEditing'),_0xb958d6=_0x4a999c['commands']['get']('link');_0x35bbf2['enableDefaultAttributesIntegration']('link'),_0x35bbf2['enableDefaultAttributesIntegration']('unlink'),_0x35bbf2['registerInlineAttribute']('linkHref');for(const _0x41f795 of _0xb958d6['manualDecorators'])_0x35bbf2['registerInlineAttribute'](_0x41f795['id']),_0x35bbf2['descriptionFactory']['registerAttributeLabel'](_0x41f795['id'],'link\x20('+_0x41f795['label']['toLowerCase']()+')');_0x35bbf2['descriptionFactory']['registerDescriptionCallback'](_0x301caf=>{if('attribute'!=_0x301caf['type'])return;const {data:_0x2646e0}=_0x301caf;if(!_0x2646e0||'linkHref'!=_0x2646e0['key'])return;const _0x5696c6=_0x2646e0['newValue'],_0x494fa5=_0x4a999c['locale'];return{'type':'format','content':null==_0x5696c6?o(_0x494fa5,'*Remove\x20link*'):o(_0x494fa5,'*Set\x20link:*\x20%0','\x22'+_0x5696c6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445a1b=this['editor'],_0x16f5b2=_0x445a1b['locale'];_0x445a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14da9f=>{if('formatInline'!=_0x14da9f['type'])return;const {data:_0x38f6a0}=_0x14da9f;if(_0x38f6a0){if('link'==_0x38f6a0['commandName']){const _0x216e91=_0x38f6a0['commandParams'][0x0];return{'type':'format','content':o(_0x16f5b2,'*Set\x20link:*\x20%0','\x22'+_0x216e91+'\x22')};}return'unlink'==_0x38f6a0['commandName']?{'type':'format','content':o(_0x16f5b2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x59cc13{['afterInit'](){const _0x30199e=this['editor'],_0x378f20=_0x30199e['locale'];if(!_0x30199e['plugins']['has']('LegacyListEditing'))return;const _0x59945d=_0x30199e['plugins']['get']('TrackChangesEditing'),_0x39a9db=_0x30199e['plugins']['has']('LegacyTodoListEditing');function _0x596ddf(_0x3144ac){return()=>{const _0x447f3e=_0x30199e['model']['document']['selection'],_0x24dbdf=_0x30199e['commands']['get'](_0x3144ac);if(_0x24dbdf['value'])return void _0x30199e['execute']('paragraph',{});const _0x596b5e=_0x3144ac['slice'](0x0,-0x4),_0xf7336c=function(_0x3a14be,_0x37b201,_0x4a0f0d){let _0x26af89=Array['from'](_0x3a14be)['filter'](_0x1d2e71=>function(_0x567fea,_0xc15c6b){return _0xc15c6b['checkChild'](_0x567fea['parent'],'listItem')&&!_0xc15c6b['isObject'](_0x567fea);}(_0x1d2e71,_0x4a0f0d));_0x26af89=_0x26af89['filter'](_0x232d0b=>!_0x232d0b['is']('element','listItem')||_0x232d0b['getAttribute']('listType')!=_0x37b201);const _0x157f53=new Set();for(const _0x5aa0ef of _0x26af89)_0x5aa0ef['is']('element','listItem')?_0x157f53['add'](fe(_0x5aa0ef)):_0x157f53['add'](_0x5aa0ef);return Array['from'](_0x157f53);}(_0x447f3e['getSelectedBlocks'](),_0x596b5e,_0x30199e['model']['schema']);_0x30199e['model']['change'](()=>{for(const _0xad833f of _0xf7336c)_0x59945d['markBlockFormat'](_0xad833f,{'commandName':_0x3144ac,'commandParams':[{'forceValue':!_0x24dbdf['value']}],'formatGroupId':'blockName'},ue(_0xad833f));});};}function _0x5a9004(_0x11cb4b){return()=>{const _0x31e6df=function(_0x1ee278){let _0x134a15=Array['from'](_0x1ee278);const _0x36e046=_0x134a15['findIndex'](_0x83d643=>'listItem'!=_0x83d643['name']);return _0x36e046>-0x1&&(_0x134a15=_0x134a15['slice'](0x0,_0x36e046)),_0x134a15;}(_0x30199e['model']['document']['selection']['getSelectedBlocks']()),_0x114315=_0x30199e['model']['createRange'](_0x30199e['model']['createPositionAt'](_0x31e6df[0x0],'before'),_0x30199e['model']['createPositionAt'](_0x31e6df[_0x31e6df['length']-0x1],'end'));_0x30199e['model']['change'](()=>{_0x59945d['markBlockFormat'](_0x114315,{'commandName':_0x11cb4b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x172b3d){const _0x21f630=new Set();for(const _0x4e2810 of _0x172b3d){let _0x2512d4=_0x4e2810['nextSibling'];for(;_0x2512d4&&_0x2512d4['getAttribute']('listIndent')>_0x4e2810['getAttribute']('listIndent');)_0x21f630['add'](_0x2512d4),_0x2512d4=_0x2512d4['nextSibling'];}return Array['from'](_0x21f630);}(_0x31e6df));});};}_0x59945d['enableCommand']('numberedList',_0x596ddf('numberedList')),_0x59945d['enableCommand']('bulletedList',_0x596ddf('bulletedList')),_0x39a9db&&_0x59945d['enableCommand']('todoList',_0x596ddf('todoList')),_0x59945d['enableCommand']('indentList',_0x5a9004('indentList')),_0x59945d['enableCommand']('outdentList',_0x5a9004('outdentList')),_0x39a9db&&_0x59945d['enableCommand']('checkTodoList',()=>{const _0x2d561a=_0x30199e['commands']['get']('checkTodoList'),_0x3f9721=Array['from'](_0x2d561a['_selectedElements']);_0x3f9721['filter'](_0x367e6a=>_0x367e6a['getAttribute']('todoListChecked')!=_0x2d561a['value']),_0x30199e['model']['change'](()=>{for(const _0x314c95 of _0x3f9721)_0x59945d['markBlockFormat'](_0x314c95,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d561a['value']}]});});}),_0x59945d['descriptionFactory']['registerElementLabel']('listItem',_0x28e215=>o(_0x378f20,'ELEMENT_LIST_ITEM',_0x28e215)),_0x59945d['descriptionFactory']['registerDescriptionCallback'](_0x185363=>{if('formatBlock'!=_0x185363['type']&&'formatInline'!=_0x185363['type'])return;const {data:_0x4c6fbc}=_0x185363;if(_0x4c6fbc){if('numberedList'==_0x4c6fbc['commandName']||'bulletedList'==_0x4c6fbc['commandName']||'todoList'==_0x4c6fbc['commandName'])switch(_0x4c6fbc['commandName']['replace']('List','')){case'bulleted':return _0x26bfe6(o(_0x378f20,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26bfe6(o(_0x378f20,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26bfe6(o(_0x378f20,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c6fbc['commandName'])return{'type':'format','content':o(_0x378f20,'*Indent:*\x20%0',o(_0x378f20,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c6fbc['commandName'])return{'type':'format','content':o(_0x378f20,'*Outdent:*\x20%0',o(_0x378f20,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c6fbc['commandName'])return _0x4c6fbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x378f20,'*Check\x20item*')}:{'type':'format','content':o(_0x378f20,'*Uncheck\x20item*')};}function _0x26bfe6(_0x353487){return{'type':'format','content':o(_0x378f20,'*Change\x20to:*\x20%0',_0x353487)};}});}}function fe(_0x46b5c7){const _0x3a2aed=_0x46b5c7['getAttribute']('listIndent');if(0x0==_0x3a2aed)return _0x46b5c7;let _0x3663bb=_0x46b5c7;for(;_0x46b5c7['previousSibling']&&_0x46b5c7['previousSibling']['is']('element','listItem');){const _0x7655d4=_0x46b5c7['previousSibling']['getAttribute']('listIndent');if(_0x7655d4==_0x3a2aed)_0x3663bb=_0x46b5c7['previousSibling'];else{if(_0x7655d4<_0x3a2aed)break;}_0x46b5c7=_0x46b5c7['previousSibling'];}return _0x3663bb;}function ue(_0x2a8ba3){const _0x57fd54=[];if(_0x2a8ba3['is']('element','listItem')&&_0x2a8ba3['getAttribute']('listIndent')>0x0){let _0x4255c5=_0x2a8ba3['nextSibling'];for(;_0x4255c5&&'listItem'==_0x4255c5['name']&&_0x4255c5['getAttribute']('listIndent')==_0x2a8ba3['getAttribute']('listIndent');)_0x57fd54['push'](_0x4255c5),_0x4255c5=_0x4255c5['nextSibling'];}return _0x57fd54;}class W extends _0x59cc13{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x88a88b=this['editor']['config']['get']('list.properties'),_0x48ebb1=this['editor']['plugins']['get']('TrackChangesEditing');_0x88a88b['styles']&&_0x48ebb1['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x88a88b['reversed']&&_0x48ebb1['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x88a88b['startIndex']&&_0x48ebb1['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48ebb1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x344eb7,_0x24be34={}){const _0x5405f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4314dc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5405f6['markMultiRangeBlockFormat'](_0x4314dc,{'commandName':'listStyle','commandParams':[{'type':_0x24be34['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xdfd5f,_0x4edf72={}){const _0x19b1ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x228388=this['_getSuggestionBlocks'](_0x35c6e7=>_0x35c6e7['is']('element','listItem')&&'numbered'===_0x35c6e7['getAttribute']('listType'));if(_0x228388['length']<0x1)return;const _0x2d37a1=_0x228388['map'](_0x1b1a48=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b1a48,'before'),this['editor']['model']['createPositionAt'](_0x1b1a48,0x0)));this['editor']['model']['change'](()=>{_0x19b1ac['markMultiRangeBlockFormat'](_0x2d37a1,{'commandName':'listReversed','commandParams':[{'reversed':_0x4edf72['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4a474c,_0x3142c0={}){const _0x4187ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34addc=this['_getSuggestionBlocks'](_0x24627e=>_0x24627e['is']('element','listItem')&&'numbered'===_0x24627e['getAttribute']('listType'));if(_0x34addc['length']<0x1)return;const _0x158cbf=_0x34addc['map'](_0x23f0cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23f0cb,'before'),this['editor']['model']['createPositionAt'](_0x23f0cb,0x0)));this['editor']['model']['change'](()=>{_0x4187ad['markMultiRangeBlockFormat'](_0x158cbf,{'commandName':'listStart','commandParams':[{'startIndex':_0x3142c0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29af5f){if('formatBlock'!=_0x29af5f['type']&&'formatInline'!=_0x29af5f['type'])return;const _0x4ddc19=this['editor']['locale'],{data:_0x198e8f}=_0x29af5f;if(!_0x198e8f)return;let _0xc96523,_0x17c3be;switch(_0x198e8f['commandName']){case'listStyle':_0xc96523='*Change\x20to:*\x20%0',_0x17c3be={'type':'format','content':o(_0x4ddc19,_0xc96523,o(_0x4ddc19,this['_getTranslationKeyForListStyle'](_0x198e8f['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc96523=_0x198e8f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17c3be={'type':'format','content':o(_0x4ddc19,_0xc96523)};break;case'listStart':_0xc96523='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17c3be={'type':'format','content':o(_0x4ddc19,_0xc96523,_0x198e8f['commandParams'][0x0]['startIndex'])};}return _0x17c3be;}['_getSuggestionBlocksForListStyle'](){const _0x1e0d09=this['editor']['plugins']['get']('LegacyListUtils');let _0x542618=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x542618[0x0]?.['is']('element','listItem')&&_0x542618['unshift'](..._0x1e0d09['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x542618[_0x542618['length']-0x1]?.['is']('element','listItem')&&_0x542618['push'](..._0x1e0d09['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x542618=[...new Set(_0x542618)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x542618=_0x542618['filter'](_0x3e7230=>_0x3e7230['is']('element','listItem'))),_0x542618;}['_getSuggestionBlocks'](_0x27edcd){const _0x27c4f5=this['editor']['plugins']['get']('LegacyListUtils');let _0x339664=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27edcd)['map'](_0xa69e9=>{const _0x1ca2c4=this['editor']['model']['createPositionAt'](_0xa69e9,0x0);return[..._0x27c4f5['getSiblingNodes'](_0x1ca2c4,'backward'),..._0x27c4f5['getSiblingNodes'](_0x1ca2c4,'forward')];})['flat']();return _0x339664=[...new Set(_0x339664)],_0x339664;}['_getTranslationKeyForListStyle'](_0x5abb69){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5abb69)||'default')['toUpperCase']()+'_LIST_'+_0x5abb69['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x59cc13{['afterInit'](){const _0x5d66fc=this['editor'];if(!_0x5d66fc['plugins']['has']('MediaEmbedEditing'))return;const _0x1436b4=_0x5d66fc['plugins']['get']('TrackChangesEditing'),_0x4ba522=_0x5d66fc['locale'];_0x1436b4['enableCommand']('mediaEmbed'),_0x1436b4['descriptionFactory']['registerElementLabel']('media',_0x31060d=>o(_0x4ba522,'ELEMENT_MEDIA',_0x31060d)),_0x5d66fc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f4cde,{writer:_0x178830,options:_0x56806e})=>{if(_0x56806e['showSuggestionHighlights'])return _0x178830['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d66fc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3eee86,_0x2b0dd7,_0x11db6a)=>{_0x11db6a['options']['showSuggestionHighlights']&&_0x3eee86['stop']();},{'priority':'high'});}}class mt extends _0x59cc13{['afterInit'](){const _0x2b1af7=this['editor'];_0x2b1af7['plugins']['has']('MentionEditing')&&_0x2b1af7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x59cc13{['afterInit'](){const _0xb31de5=this['editor'];if(!_0xb31de5['plugins']['has']('MergeFieldsEditing'))return;_0xb31de5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xb31de5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x14645a=_0xb31de5['plugins']['get']('TrackChangesEditing'),_0x2700c3=_0xb31de5['locale'];_0x14645a['descriptionFactory']['registerElementLabel']('mergeField',_0x543c18=>o(_0x2700c3,'ELEMENT_MERGE_FIELD',_0x543c18)),_0x14645a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x49a6b3=>o(_0x2700c3,'ELEMENT_MERGE_FIELD',_0x49a6b3)),_0x14645a['descriptionFactory']['registerDescriptionCallback'](_0x231575=>{if('insertion'!=_0x231575['type']&&'deletion'!=_0x231575['type'])return;const _0x5607e1=_0x231575['getContainedElement']();if(null==_0x5607e1)return;if(!_0x5607e1['is']('element','mergeField')&&!_0x5607e1['is']('element','mergeFieldBlock'))return;const _0x4b27a9=_0xb31de5['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5607e1['getAttribute']('id'));return'insertion'==_0x231575['type']?{'type':'insertion','content':o(_0x2700c3,'*Insert:*\x20%0','\x22'+_0x4b27a9+'\x22\x20'+o(_0x2700c3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2700c3,'*Remove:*\x20%0','\x22'+_0x4b27a9+'\x22\x20'+o(_0x2700c3,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x59cc13{['afterInit'](){const _0x36c79a=this['editor'],_0x4908e6=_0x36c79a['plugins']['get']('TrackChangesEditing');_0x36c79a['plugins']['has']('MultiLevelList')&&(_0x4908e6['enableDefaultAttributesIntegration']('multiLevelList'),_0x4908e6['registerBlockAttribute']('listMarkerStyle'),_0x4908e6['descriptionFactory']['registerDescriptionCallback'](_0x595298=>this['handleDescriptions'](_0x595298)));}['handleDescriptions'](_0x20f8c2){const _0x567918=this['editor']['locale'],{data:_0x1128de}=_0x20f8c2,_0x1f27d5={'type':'format','content':''};if(_0x1128de&&'listMarkerStyle'==_0x1128de['key']){if(!_0x1128de['oldValue'])return{'type':'format','content':o(_0x567918,'*Set\x20format:*\x20%0',o(_0x567918,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1128de['newValue']+')'};if(!_0x1128de['newValue']){let _0xe743f2=_0x20f8c2['head'];for(;_0xe743f2;){if(_0xe743f2['data']&&'listType'==_0xe743f2['data']['key']&&_0xe743f2['data']['newValue'])return _0x1f27d5;_0xe743f2=_0xe743f2['next'];}return{'type':'format','content':o(_0x567918,'*Remove\x20format:*\x20%0',o(_0x567918,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1128de['oldValue']+')'};}}}}class kt extends _0x59cc13{['afterInit'](){const _0x1bd98a=this['editor'];if(!_0x1bd98a['plugins']['has']('PageBreakEditing'))return;_0x1bd98a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x234423=_0x1bd98a['plugins']['get']('TrackChangesEditing'),_0x4d108a=_0x1bd98a['locale'];_0x234423['descriptionFactory']['registerElementLabel']('pageBreak',_0x99dbc8=>o(_0x4d108a,'ELEMENT_PAGE_BREAK',_0x99dbc8));}}class bt extends _0x59cc13{['afterInit'](){const _0x170c2e=this['editor'];if(!_0x170c2e['plugins']['has']('Paragraph'))return;const _0x3b1ab4=_0x170c2e['locale'],_0x174c01=_0x170c2e['plugins']['get']('TrackChangesEditing');_0x174c01['descriptionFactory']['registerElementLabel']('paragraph',_0x20b5c2=>o(_0x3b1ab4,'ELEMENT_PARAGRAPH',_0x20b5c2)),_0x174c01['enableDefaultAttributesIntegration']('paragraph'),_0x174c01['enableCommand']('insertParagraph'),_0x170c2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x170c2e),{'priority':'highest'}),_0x170c2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca543,_0x2a1605,_0x1f25fd)=>{_0x1f25fd['options']['showSuggestionHighlights']&&nr(_0x170c2e,{'showActiveMarker':!0x1})(_0x4ca543,_0x2a1605,_0x1f25fd);},{'priority':'highest'});const _0x373a90=_0x174c01['descriptionFactory'];_0x373a90['registerDescriptionCallback'](_0x5d66bc=>{if('insertion'!==_0x5d66bc['type'])return;const {start:_0x45a7d5,end:_0x57e49d}=_0x5d66bc['getFirstRange']();if(!_0x45a7d5['isTouching'](_0x57e49d)||!_0x45a7d5['nodeAfter'])return;const _0x3523df=_0x170c2e['model']['schema'],_0x2ef8eb=_0x45a7d5['nodeAfter'];return _0x3523df['isBlock'](_0x2ef8eb)&&!_0x3523df['isLimit'](_0x2ef8eb)&&_0x3523df['checkChild'](_0x2ef8eb,'$text')?{'type':'insertion','content':o(_0x3b1ab4,'*Insert:*\x20%0',_0x373a90['getItemLabel'](_0x2ef8eb,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530228=this['editor'],_0x27af33=_0x530228['locale'];_0x530228['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0152=>{if('formatBlock'!=_0x1c0152['type'])return;const {data:_0x5c1c80}=_0x1c0152;return _0x5c1c80&&'paragraph'==_0x5c1c80['commandName']?{'type':'format','content':o(_0x27af33,'*Change\x20to:*\x20%0',o(_0x27af33,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x33d003,{showActiveMarker:_0x4e7714=!0x0}={}){return(_0x4d2911,_0x66ce06,_0x1b84d0)=>{const _0x190a55=_0x33d003['plugins']['get']('TrackChangesEditing'),_0x32cc43=_0x66ce06['markerRange']['start'],_0x1024b2=_0x66ce06['markerRange']['end'],_0x1c2081=_0x33d003['model']['schema'];if(!_0x32cc43['isTouching'](_0x1024b2)||!_0x32cc43['nodeAfter'])return;const _0x4ca9be=_0x32cc43['nodeAfter'];if(_0x1c2081['isBlock'](_0x4ca9be)&&!_0x1c2081['isLimit'](_0x4ca9be)&&_0x1c2081['checkChild'](_0x4ca9be,'$text')){if(!_0x1b84d0['consumable']['consume'](_0x66ce06['markerRange'],_0x4d2911['name']))return;const {authorId:_0xea9091}=_0x190a55['_splitMarkerName'](_0x66ce06['markerName']),_0x3c2109=_0x1b84d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xea9091}),_0x544bed=_0x1b84d0['mapper']['toViewPosition'](_0x1024b2);_0x4e7714&&_0x190a55['activeMarkers']['includes'](_0x66ce06['markerName'])&&_0x1b84d0['writer']['addClass']('ck-suggestion-marker--active',_0x3c2109),_0x1b84d0['writer']['insert'](_0x544bed,_0x3c2109),_0x1b84d0['mapper']['bindElementToMarker'](_0x3c2109,_0x66ce06['markerName']);}};}class wt extends _0x59cc13{['afterInit'](){const _0x3ce10f=this['editor'];if(!_0x3ce10f['plugins']['has']('RemoveFormatEditing'))return;_0x3ce10f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34f028=this['editor'];_0x34f028['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26f99a=>{if('formatBlock'!=_0x26f99a['type']&&'formatInline'!=_0x26f99a['type'])return;const {data:_0x3f76c6}=_0x26f99a;return _0x3f76c6&&'removeFormat'==_0x3f76c6['commandName']?{'type':'format','content':o(_0x34f028['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x59cc13{['afterInit'](){const _0x533cf8=this['editor'];if(!_0x533cf8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x265d39=_0x533cf8['plugins']['get']('TrackChangesEditing');_0x265d39['enableCommand']('goToPreviousRestrictedEditingException'),_0x265d39['enableCommand']('goToNextRestrictedEditingException');const _0x3fbc4a=_0x533cf8['plugins']['get']('RestrictedEditingModeEditing');_0x3fbc4a['enableCommand']('trackChanges'),_0x3fbc4a['enableCommand']('acceptSuggestion'),_0x3fbc4a['enableCommand']('discardSuggestion'),_0x3fbc4a['enableCommand']('acceptAllSuggestions'),_0x3fbc4a['enableCommand']('discardAllSuggestions'),_0x3fbc4a['enableCommand']('acceptSelectedSuggestions'),_0x3fbc4a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x59cc13{static get['requires'](){return[_0x41117f];}['init'](){const _0x1e3dad=this['editor'],_0x149507=_0x1e3dad['plugins']['get']('TrackChangesEditing');_0x149507['enableCommand']('shiftEnter'),_0x1e3dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1e3dad),{'priority':'high'}),_0x1e3dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1e3dad),{'priority':'high'}),_0x1e3dad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21e081,_0x20d0cf,_0x4072e9)=>{_0x4072e9['options']['showSuggestionHighlights']&&ge(_0x1e3dad,{'showActiveMarker':!0x1})(_0x21e081,_0x20d0cf,_0x4072e9);}),_0x149507['descriptionFactory']['registerElementLabel']('softBreak',_0x31a3fb=>o(_0x1e3dad['locale'],'ELEMENT_LINE_BREAK',_0x31a3fb));}}function ge(_0x24e2e9,{showActiveMarker:_0x3c0c3b=!0x0}={}){return(_0xc17f86,_0x4d5d5f,_0x1767eb)=>{const _0x1793ad=_0x24e2e9['plugins']['get']('TrackChangesEditing');if(!_0x1767eb['consumable']['test'](_0x4d5d5f['markerRange'],_0xc17f86['name']))return;const _0x1ec4f3=_0x24e2e9['model'];for(const _0x53b9e1 of _0x4d5d5f['markerRange']['getItems']()){if(!_0x53b9e1['is']('element','softBreak'))continue;const _0x211929='deletion'==_0x4d5d5f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x248390}=_0x1793ad['_splitMarkerName'](_0x4d5d5f['markerName']),_0x3c5e39=_0x1767eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x211929,'data-author-id':_0x248390}),_0x3387ea=_0x1767eb['mapper']['toViewPosition'](_0x1ec4f3['createPositionBefore'](_0x53b9e1));_0x3c0c3b&&_0x1793ad['activeMarkers']['includes'](_0x4d5d5f['markerName'])&&_0x1767eb['writer']['addClass']('ck-suggestion-marker--active',_0x3c5e39),_0x1767eb['writer']['insert'](_0x3387ea,_0x3c5e39),_0x1767eb['mapper']['bindElementToMarker'](_0x3c5e39,_0x4d5d5f['markerName']);}};}class St extends _0x59cc13{['afterInit'](){const _0x5d565e=this['editor'],_0x694f2e=_0x5d565e['model'],_0x322e1e=_0x5d565e['locale'];if(!_0x5d565e['plugins']['has']('StandardEditingModeEditing'))return;const _0x4199e9=_0x5d565e['plugins']['get']('TrackChangesEditing'),_0x4d7ca7='restrictedEditingException',_0x4bd458=_0x5d565e['commands']['get'](_0x4d7ca7);_0x4199e9['enableCommand'](_0x4d7ca7,(_0x38b991,_0x4a819e={})=>{const _0x384bd5=_0x694f2e['document']['selection'];if(_0x384bd5['isCollapsed'])return void _0x38b991(_0x4a819e);const _0x5f2640=void 0x0!==_0x4a819e['forceValue']?_0x4a819e['forceValue']:!_0x4bd458['value'];_0x694f2e['change'](()=>{const _0x830daf=Array['from'](_0x384bd5['getRanges']());for(const _0x482de3 of _0x830daf){const _0x42f923=_0x5f2640?[_0x482de3]:io(_0x4d7ca7,_0x482de3,_0x694f2e);for(const _0x463b5b of _0x42f923)_0x4199e9['markInlineFormat'](_0x463b5b,{'commandName':_0x4d7ca7,'commandParams':[{'forceValue':_0x5f2640}]});}});}),_0x4199e9['descriptionFactory']['registerDescriptionCallback'](_0x4b5a07=>{if('formatBlock'!=_0x4b5a07['type']&&'formatInline'!=_0x4b5a07['type'])return;const {data:_0x3f0eec}=_0x4b5a07;return _0x3f0eec&&_0x3f0eec['commandName']==_0x4d7ca7?_0x3f0eec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x322e1e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x322e1e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x59cc13{['afterInit'](){const _0x2d1cb9=this['editor'];if(!_0x2d1cb9['plugins']['has']('Style')||!_0x2d1cb9['plugins']['has']('DataSchema'))return;const _0x38d515=_0x2d1cb9['plugins']['get']('TrackChangesEditing'),_0x572537=_0x2d1cb9['locale'],_0x1835c9=_0x2d1cb9['config']['get']('style')||{},_0x1af72a=_0x2d1cb9['plugins']['get']('GeneralHtmlSupport'),_0x399132=_0x2d1cb9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2d1cb9['plugins']['get']('DataSchema'),_0x1835c9['definitions']);_0x38d515['enableDefaultAttributesIntegration']('style');const _0x44bf9b=new Set();for(const _0x54e156 of _0x399132['block']){const _0x53755f=_0x1af72a['getGhsAttributeNameForElement'](_0x54e156['element']);_0x44bf9b['add'](_0x53755f);}const _0x490c3e=new Set();for(const _0x3948e4 of _0x399132['inline']){const _0x5c8b53=_0x1af72a['getGhsAttributeNameForElement'](_0x3948e4['element']);_0x490c3e['add'](_0x5c8b53);for(const _0xf2d089 of _0x3948e4['ghsAttributes'])_0x490c3e['add'](_0xf2d089);}for(const _0xc68f62 of _0x44bf9b)_0x38d515['registerBlockAttribute'](_0xc68f62),_0x38d515['descriptionFactory']['registerAttributeLabel'](_0xc68f62,o(_0x572537,'FORMAT_STYLE'));for(const _0x2947a9 of _0x490c3e)_0x38d515['registerInlineAttribute'](_0x2947a9),_0x38d515['descriptionFactory']['registerAttributeLabel'](_0x2947a9,o(_0x572537,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x346781=this['editor'],_0x410974=_0x346781['locale'];_0x346781['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289f56=>{if('formatBlock'!=_0x289f56['type']&&'formatInline'!=_0x289f56['type'])return;const {data:_0x2b7ca7}=_0x289f56;return _0x2b7ca7&&'style'===_0x2b7ca7['commandName']?_0x2b7ca7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x410974,'*Set\x20format:*\x20%0',_0x2b7ca7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x410974,'*Remove\x20format:*\x20%0',_0x2b7ca7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x59cc13{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x55f2c){super(_0x55f2c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6be2a2=this['editor'],_0x17a34d=_0x6be2a2['model']['document']['selection'];if(!_0x6be2a2['plugins']['has']('TableEditing'))return;const _0x35058c=_0x6be2a2['locale'],_0x3c7dc2=_0x6be2a2['plugins']['get']('TrackChangesEditing'),_0x41b96d=_0x6be2a2['plugins']['get']('TableUtils');_0x3c7dc2['descriptionFactory']['registerElementLabel']('table',_0x158df4=>o(_0x35058c,'ELEMENT_TABLE',_0x158df4)),this['_setupColumnsRowsFixing'](),_0x3c7dc2['enableCommand']('insertTable'),_0x3c7dc2['enableCommand']('selectTableRow'),_0x3c7dc2['enableCommand']('selectTableColumn');for(const _0x5ab780 of['insertTableRowAbove','insertTableRowBelow']){const _0x27d7ec=_0x6be2a2['commands']['get'](_0x5ab780);_0x3c7dc2['enableCommand'](_0x5ab780,_0x36bf06=>{_0x6be2a2['model']['change'](_0x546c6a=>{_0x36bf06();const _0x59325d='above'===_0x27d7ec['order'],_0x21613f=_0x41b96d['getSelectionAffectedTableCells'](_0x17a34d),_0x1c82a8=_0x41b96d['getRowIndexes'](_0x21613f),_0x481760=_0x59325d?_0x1c82a8['first']-0x1:_0x1c82a8['last']+0x1,_0x3af6ce=_0x21613f[0x0]['findAncestor']('table'),_0x4d6ba1=_0x41b96d['createTableWalker'](_0x3af6ce,{'startRow':_0x481760,'endRow':_0x481760}),_0x5ee71a=Array['from'](_0x4d6ba1)['map'](_0x199724=>_0x546c6a['createRangeOn'](_0x199724['cell']));_0x3c7dc2['markMultiRangeInsertion'](_0x5ee71a,'tableRow');});});}for(const _0x203dde of['insertTableColumnLeft','insertTableColumnRight']){const _0x528919=_0x6be2a2['commands']['get'](_0x203dde);_0x3c7dc2['enableCommand'](_0x203dde,_0x5aa774=>{_0x6be2a2['model']['change'](_0x2d12ab=>{_0x5aa774();const _0x59c163='left'===_0x528919['order'],_0x343521=_0x41b96d['getSelectionAffectedTableCells'](_0x17a34d),_0xb20b50=_0x41b96d['getColumnIndexes'](_0x343521),_0x672533=_0x59c163?_0xb20b50['first']-0x1:_0xb20b50['last']+0x1,_0x17ef43=_0x343521[0x0]['findAncestor']('table'),_0x453514=_0x41b96d['createTableWalker'](_0x17ef43,{'startRow':0x0,'column':_0x672533,'includeAllSlots':!0x1}),_0x496e49=Array['from'](_0x453514)['map'](_0x495640=>_0x2d12ab['createRangeOn'](_0x495640['cell']));_0x3c7dc2['markMultiRangeInsertion'](_0x496e49,'tableColumn');});});}for(const _0xe999d4 of['removeTableRow','removeTableColumn']){const _0x196464=_0xe999d4['substr'](0xb),_0x195bfa=_0x196464['toLowerCase'](),_0x16842a=_0x195bfa['substr'](0x0,0x3)+'span',_0x4c3bd2='table'+_0x196464,_0x52ae5b='min'+_0x196464,_0xc72ce7='max'+_0x196464;_0x3c7dc2['enableCommand'](_0xe999d4,()=>{_0x6be2a2['model']['change'](_0x535a33=>{const _0x3c0ba0=_0x41b96d['getSelectionAffectedTableCells'](_0x17a34d),_0x2caefb=_0x3c0ba0[0x0]['findAncestor']('table');let _0x2043a3;if('removeTableRow'==_0xe999d4){const _0x145480=_0x41b96d['getRowIndexes'](_0x3c0ba0);_0x2043a3={'startRow':_0x145480['first'],'endRow':_0x145480['last'],'includeAllSlots':!0x0};}else{const _0x128790=_0x41b96d['getColumnIndexes'](_0x3c0ba0);_0x2043a3={'startColumn':_0x128790['first'],'endColumn':_0x128790['last'],'includeAllSlots':!0x0};}const _0x2ae257=_0x41b96d['createTableWalker'](_0x2caefb,_0x2043a3),_0x9d6be4=Array['from'](_0x2ae257)['map'](({cell:_0x300396})=>_0x300396),_0x538873=be(_0x9d6be4['filter'](_0x531294=>_0x531294['hasAttribute'](_0x16842a))),_0x1389f8=be(_0x9d6be4['filter'](_0x399dde=>!_0x399dde['hasAttribute'](_0x16842a)))['map'](_0x615a25=>_0x535a33['createRangeOn'](_0x615a25)),_0xa4c3b7=_0x3c7dc2['markMultiRangeDeletion'](_0x1389f8,_0x4c3bd2);if(_0xa4c3b7&&('tableRow'==_0xa4c3b7['subType']||'tableColumn'==_0xa4c3b7['subType'])){const _0x50f1c6=this['_getSuggestionCoords'](_0xa4c3b7);for(const _0x419b61 of _0x538873){const _0x4373cf=_0x535a33['createRangeOn'](_0x419b61),_0x26c039=_0x41b96d['getCellLocation'](_0x419b61),_0x3985a3=_0x419b61['getAttribute'](_0x16842a)-0x1,_0xa4e57=_0x50f1c6[_0x52ae5b],_0x14dde8=_0x50f1c6[_0xc72ce7];_0xa4e57<=_0x26c039[_0x195bfa]&&_0x26c039[_0x195bfa]+_0x3985a3<=_0x14dde8&&_0xa4c3b7['addRange'](_0x4373cf);}}});});}function _0x5712a7(_0x1260fb){const _0x8bef3d=Array['from'](_0x17a34d['getRanges']())['map'](_0x45ca0b=>_0x5af0c4['fromRange'](_0x45ca0b));_0x6be2a2['model']['change'](_0x3a8363=>{const _0x9f8e4d=_0x3a8363['batch'];_0x1260fb=_0x1260fb['filter'](_0x23a83f=>'$graveyard'!=_0x23a83f['root']['rootName']),_0x3a8363['setSelection'](_0x1260fb),_0x6be2a2['commands']['get']('removeTableRow')['refresh'](),_0x6be2a2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6be2a2['model']['enqueueChange'](()=>{_0x6be2a2['model']['enqueueChange'](_0x9f8e4d,_0x5248c7=>{const _0xdfffda=_0x8bef3d['filter'](_0x554435=>'$graveyard'!=_0x554435['root']['rootName']);_0xdfffda['length']>0x0&&_0x5248c7['setSelection'](_0xdfffda);for(const _0x280ca3 of _0x8bef3d)_0x280ca3['detach']();});});});}function _0x2adf8b(_0x3e6769){_0x6be2a2['model']['change'](_0x548bbb=>{const _0x2eb942=Array['from'](_0x17a34d['getRanges']())['map'](_0x1b7815=>_0x5af0c4['fromRange'](_0x1b7815)),_0x1c6b50=[];for(const _0xfee71d of _0x3e6769)for(const _0x367bbe of _0xfee71d['getItems']({'shallow':!0x0}))_0x1c6b50['push'](_0x367bbe);for(const _0x5587dd of _0x1c6b50)'$graveyard'!=_0x5587dd['root']['rootName']&&(_0x548bbb['setSelection'](_0x548bbb['createPositionAt'](_0x5587dd,0x0)),_0x6be2a2['commands']['get']('removeTableColumn')['refresh'](),_0x6be2a2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4eb2fe=_0x2eb942['filter'](_0x321ee4=>'$graveyard'!=_0x321ee4['root']['rootName']);_0x4eb2fe['length']>0x0&&_0x548bbb['setSelection'](_0x4eb2fe);for(const _0x6909a3 of _0x2eb942)_0x6909a3['detach']();});}function _0x383f0a(_0x80f18c,_0x5620bc){return _0x5620bc['every'](_0x4a07c5=>_0x80f18c['some'](_0x100acc=>_0x100acc['end']['isEqual'](_0x4a07c5['start'])||_0x4a07c5['end']['isEqual'](_0x100acc['start'])));}function _0x368bd1(_0x14512e,_0x3c351d){return!_0x14512e['some'](_0x4368c4=>_0x3c351d['some'](_0x532b94=>_0x4368c4['isIntersecting'](_0x532b94)))&&_0x14512e['some'](_0x1355b9=>_0x3c351d['some'](_0x49c13d=>_0x1355b9['end']['isTouching'](_0x49c13d['start'])));}_0x6be2a2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x182fad,_0x21f8db,_0x428504)=>{if(!_0x428504['options']['showSuggestionHighlights'])return;const _0x350552=_0x21f8db['item'];if(!_0x350552)return;const _0x18d6d5=_0x428504['mapper']['toViewElement'](_0x350552);function _0x14e381(_0x784cde){return Array['isArray'](_0x784cde)?_0x784cde:[_0x784cde];}_0x18d6d5&&'tableCell'===_0x350552['name']&&_0x451b7d(_0x18d6d5,_0x428504['writer'],(_0x1e5649,_0x504228,_0x3b99c5)=>_0x3b99c5['addClass'](_0x14e381(_0x504228['classes']),_0x1e5649),(_0x45953f,_0xa12f5d,_0x1cf7dd)=>_0x1cf7dd['removeClass'](_0x14e381(_0xa12f5d['classes']),_0x45953f));},{'priority':'highest'}),_0x3c7dc2['descriptionFactory']['registerDescriptionCallback'](_0x414d4c=>{if('insertion'!=_0x414d4c['type']&&'deletion'!=_0x414d4c['type'])return;const _0x1e7340=_0x414d4c['getContainedElement']();if(null!=_0x1e7340&&_0x1e7340['is']('element','table')){if('insertion'==_0x414d4c['type']){const _0x4144be=_0x414d4c['getItems']()['filter'](_0x1e4c0e=>_0x1e4c0e['is']('$textProxy'))['map'](_0x51929d=>_0x51929d['data']);if(_0x4144be['length'])return{'type':'insertion','content':o(_0x35058c,'*Insert:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4144be['join']('\x20')+'\x22'))};}if('deletion'==_0x414d4c['type']){const _0x364744=_0x414d4c['getItems']()['filter'](_0x28124a=>_0x28124a['is']('$textProxy'))['map'](_0x47c139=>_0x47c139['data']);if(_0x364744['length'])return{'type':'deletion','content':o(_0x35058c,'*Remove:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x364744['join']('\x20')+'\x22'))};}}}),_0x3c7dc2['descriptionFactory']['registerDescriptionCallback'](_0x4e1499=>{if('tableRow'==_0x4e1499['subType']){const _0xfa9f27=_0x4e1499['getItems']()['filter'](_0x110b36=>_0x110b36['is']('$textProxy'))['map'](_0x2665ad=>_0x2665ad['data']),_0x37aadd=this['_getSuggestionCoords'](_0x4e1499),_0x2599fe=_0x37aadd['maxRow']-_0x37aadd['minRow']+0x1;if('insertion'==_0x4e1499['type'])return _0xfa9f27['length']?{'type':'insertion','content':o(_0x35058c,'*Insert:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2599fe,'\x22'+_0xfa9f27['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x35058c,'*Insert:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_ROW',_0x2599fe))};if('deletion'==_0x4e1499['type'])return _0xfa9f27['length']?{'type':'deletion','content':o(_0x35058c,'*Remove:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2599fe,'\x22'+_0xfa9f27['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x35058c,'*Remove:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_ROW',_0x2599fe))};}if('tableColumn'==_0x4e1499['subType']){const _0x8e9a64=_0x4e1499['getItems']()['filter'](_0xc4460=>_0xc4460['is']('$textProxy'))['map'](_0x1d0b38=>_0x1d0b38['data']),_0x1a785e=this['_getSuggestionCoords'](_0x4e1499),_0x152e6a=_0x1a785e['maxColumn']-_0x1a785e['minColumn']+0x1;if('insertion'==_0x4e1499['type'])return _0x8e9a64['length']?{'type':'insertion','content':o(_0x35058c,'*Insert:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x152e6a,'\x22'+_0x8e9a64['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x35058c,'*Insert:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_COLUMN',_0x152e6a))};if('deletion'==_0x4e1499['type'])return _0x8e9a64['length']?{'type':'deletion','content':o(_0x35058c,'*Remove:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x152e6a,'\x22'+_0x8e9a64['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x35058c,'*Remove:*\x20%0',o(_0x35058c,'ELEMENT_TABLE_COLUMN',_0x152e6a))};}}),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5712a7),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5712a7),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2adf8b),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2adf8b),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x383f0a),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x383f0a),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x368bd1),_0x3c7dc2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x368bd1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32d906=this['editor'],_0x22b66e=_0x32d906['model']['document']['selection'];return(_0x368ef9,_0x50c17b)=>{_0x32d906['model']['change'](_0x55e82b=>{const {commandName:_0x548ac1,commandParams:_0x53712e}=_0x50c17b;let _0x62feb=_0x368ef9[0x0]['end']['nodeBefore'];_0x53712e&&_0x53712e[0x0]&&!0x1===_0x53712e[0x0]['forceValue']&&(_0x62feb=_0x368ef9[0x0]['start']['nodeAfter']);const _0x42c762=_0x55e82b['createRangeIn'](_0x62feb);if('$graveyard'==_0x42c762['root']['rootName'])return;const _0xf7448e=Array['from'](_0x22b66e['getRanges']())['map'](_0x3d7513=>_0x5af0c4['fromRange'](_0x3d7513));_0x55e82b['setSelection'](_0x42c762),_0x32d906['commands']['get'](_0x548ac1)['refresh'](),_0x53712e['push']({'forceDefaultExecution':!0x0}),_0x32d906['execute'](_0x548ac1,..._0x53712e);const _0xd3a245=_0xf7448e['filter'](_0x299301=>'$graveyard'!=_0x299301['root']['rootName']);_0xd3a245['length']>0x0&&_0x55e82b['setSelection'](_0xd3a245);for(const _0x5acffc of _0xf7448e)_0x5acffc['detach']();});};}['_getCoordsForCells'](_0x4546bf){const _0x598b38=this['editor']['plugins']['get']('TableUtils');let _0x3e9862=Number['MAX_SAFE_INTEGER'],_0x1a505d=Number['MIN_SAFE_INTEGER'],_0x535133=Number['MAX_SAFE_INTEGER'],_0x521d84=Number['MIN_SAFE_INTEGER'];for(const _0x2fa7fd of _0x4546bf){if('$graveyard'==_0x2fa7fd['root']['rootName'])continue;const {row:_0x3db0d1,column:_0x2d793a}=_0x598b38['getCellLocation'](_0x2fa7fd),_0x553bad=_0x2fa7fd['hasAttribute']('rowspan')?_0x2fa7fd['getAttribute']('rowspan')-0x1:0x0,_0x59d518=_0x2fa7fd['hasAttribute']('colspan')?_0x2fa7fd['getAttribute']('colspan')-0x1:0x0;_0x3e9862=_0x3db0d1<_0x3e9862?_0x3db0d1:_0x3e9862,_0x1a505d=_0x3db0d1+_0x553bad>_0x1a505d?_0x3db0d1+_0x553bad:_0x1a505d,_0x535133=_0x2d793a<_0x535133?_0x2d793a:_0x535133,_0x521d84=_0x2d793a+_0x59d518>_0x521d84?_0x2d793a+_0x59d518:_0x521d84;}return{'minRow':_0x3e9862,'maxRow':_0x1a505d,'minColumn':_0x535133,'maxColumn':_0x521d84};}['_setupColumnsRowsFixing'](){const _0x43ab05=this['editor'],_0x302963=_0x43ab05['plugins']['get']('TrackChangesEditing'),_0x469ae5=_0x43ab05['plugins']['get']('TableUtils');_0x43ab05['model']['document']['on']('change:data',()=>{const _0x143e04=Array['from'](_0x43ab05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x96da63,data:_0x4565e2}of _0x143e04){const {group:_0x5e96f8,id:_0x415ab2,subType:_0x3ac525}=_0x302963['_splitMarkerName'](_0x96da63);if('suggestion'!=_0x5e96f8)continue;if(null!=_0x4565e2['oldRange'])continue;const _0x285f96=_0x302963['getSuggestion'](_0x415ab2);this['_tablePostFixingSubtypes']['includes'](_0x3ac525)&&this['_tableSuggestions']['add'](_0x285f96);}},{'priority':'low'});const _0xad0822=(_0x12e00e,_0x577891)=>{let _0x314b91=!0x1;const _0x57ad86=_0x577891['createRangeOn'](_0x12e00e),_0x5b490b=_0x12e00e['findAncestor']('table'),_0x1ff8f6=_0x469ae5['getCellLocation'](_0x12e00e);for(const _0x7e3f4d of this['_tableSuggestions']){const _0x3c8d6d=_0x7e3f4d['subType'],_0x4b03f4=_0x3c8d6d['startsWith']('tablePaste'),_0x5f58bb=_0x3c8d6d['substr'](_0x4b03f4?0xa:0x5),_0x2add6b=_0x5f58bb['toLowerCase'](),_0x581e48=_0x2add6b['substr'](0x0,0x3)+'span',_0x3c0e56='min'+_0x5f58bb,_0x123155='max'+_0x5f58bb;if(!_0x7e3f4d['isInContent'])continue;if(_0x5b490b!=_0x7e3f4d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7e3f4d['isIntersectingWithRange'](_0x57ad86))continue;const _0x2393ea=_0x12e00e['hasAttribute'](_0x581e48)?_0x12e00e['getAttribute'](_0x581e48)-0x1:0x0,_0x3f7f28=this['_getSuggestionCoords'](_0x7e3f4d),_0x51dd8b=_0x3f7f28[_0x3c0e56],_0x2922a2=_0x3f7f28[_0x123155];_0x51dd8b<=_0x1ff8f6[_0x2add6b]&&_0x1ff8f6[_0x2add6b]+_0x2393ea<=_0x2922a2&&(_0x7e3f4d['addRange'](_0x57ad86),_0x314b91=!0x0);}return _0x314b91;};_0x43ab05['model']['document']['registerPostFixer'](_0x47dac5=>{let _0x3e5f17=!0x1;for(const _0x5e0f9b of _0x43ab05['model']['document']['differ']['getChanges']())if('insert'==_0x5e0f9b['type']){if('tableRow'==_0x5e0f9b['name']){for(const _0x59dec2 of _0x5e0f9b['position']['nodeAfter']['getChildren']())_0x3e5f17=_0x3e5f17||_0xad0822(_0x59dec2,_0x47dac5);}else'tableCell'==_0x5e0f9b['name']&&(_0x3e5f17=_0x3e5f17||_0xad0822(_0x5e0f9b['position']['nodeAfter'],_0x47dac5));}return _0x3e5f17;});}['_getSuggestionCoords'](_0x5a1449){return this['_getCoordsForCells'](_0x5a1449['getRanges']()['map'](_0x76f4a=>_0x76f4a['start']['nodeAfter']));}}function be(_0x5225b1){return Array['from'](new Set(_0x5225b1)['values']());}class vt extends _0x59cc13{static get['requires'](){return[It];}['afterInit'](){const _0x459c5a=this['editor'],_0x399728=_0x459c5a['model']['document']['selection'],_0x289ae6=_0x459c5a['locale'];if(!_0x459c5a['plugins']['has']('TableEditing'))return;const _0x244570=_0x459c5a['plugins']['get']('TrackChangesEditing'),_0x638ac=_0x459c5a['plugins']['get']('TableUtils'),_0x16284e=_0x459c5a['plugins']['get'](It);_0x16284e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x244570['enableCommand']('mergeTableCells',()=>{const _0x371fcc=_0x638ac['getSelectionAffectedTableCells'](_0x459c5a['model']['document']['selection']);_0x459c5a['model']['change'](()=>{_0x244570['markMultiRangeBlockFormat'](_0x371fcc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x459c5a['commands']['get']('mergeTableCells')['on']('execute',(_0x1d7f47,_0x583bfa)=>{_0x459c5a['commands']['get']('trackChanges')['value']&&(_0x583bfa['length']>0x0&&_0x583bfa[_0x583bfa['length']-0x1]&&_0x583bfa[_0x583bfa['length']-0x1]['forceDefaultExecution']||_0x244570['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d7f47['stop']());},{'priority':'highest'});for(const _0x59e212 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a649b=_0x459c5a['commands']['get'](_0x59e212);_0x244570['enableCommand'](_0x59e212,()=>{const _0x594e5b=_0x459c5a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1112ad=>_0x1112ad['is']('element','tableCell')),_0x38a71e=_0x2a649b['value'];_0x459c5a['model']['change'](()=>{_0x244570['markMultiRangeBlockFormat']([_0x594e5b,_0x38a71e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xccee0c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x27c38e=_0x459c5a['commands']['get'](_0xccee0c);_0x244570['enableCommand'](_0xccee0c,()=>{const _0x19e048=_0x638ac['getSelectionAffectedTableCells'](_0x459c5a['model']['document']['selection'])[0x0],_0x5d2c04=_0x19e048['findAncestor']('table'),{column:_0x27069a,row:_0x2bff40}=_0x638ac['getCellLocation'](_0x19e048);let _0x34a9e8=[];if('horizontally'==_0x27c38e['direction']){const _0x2cceab=_0x638ac['createTableWalker'](_0x5d2c04,{'startRow':_0x2bff40,'endRow':_0x2bff40,'includeAllSlots':!0x0});_0x34a9e8=Array['from'](_0x2cceab)['map'](_0xf9241b=>_0xf9241b['cell']);}else{const _0x290698=_0x638ac['createTableWalker'](_0x5d2c04,{'column':_0x27069a,'includeAllSlots':!0x0});_0x34a9e8=Array['from'](_0x290698)['map'](_0x5f41de=>_0x5f41de['cell']);}_0x459c5a['model']['change'](_0x3b3a79=>{_0x244570['markBlockFormat'](_0x3b3a79['createRangeOn'](_0x19e048),{'commandName':_0xccee0c,'commandParams':[]},_0x34a9e8,_0xccee0c);});});}_0x244570['descriptionFactory']['registerDescriptionCallback'](_0x1226d4=>{if('formatBlock'!=_0x1226d4['type']&&'formatInline'!=_0x1226d4['type'])return;const {data:_0xe538e1}=_0x1226d4;return _0xe538e1&&'mergeTableCells'==_0xe538e1['commandName']?{'type':'format','content':o(_0x289ae6,'*Merge\x20cells*')}:void 0x0;}),_0x244570['descriptionFactory']['registerDescriptionCallback'](_0x4c2dcb=>{if('formatBlock'!=_0x4c2dcb['type']&&'formatInline'!=_0x4c2dcb['type'])return;const {data:_0xe58d67}=_0x4c2dcb;return _0xe58d67?'splitTableCellVertically'==_0xe58d67['commandName']?{'type':'format','content':o(_0x289ae6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe58d67['commandName']?{'type':'format','content':o(_0x289ae6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x215095=_0x16284e['_acceptFormatSuggestionCallbackFactory']();for(const _0x41de0b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x244570['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41de0b,'accept',_0x215095);for(const _0x39979f of['splitTableCellVertically','splitTableCellHorizontally'])_0x244570['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39979f,'accept',_0x215095);_0x244570['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5edb0c=>{_0x459c5a['model']['change'](_0x2e96fb=>{const _0xc59170=Array['from'](_0x399728['getRanges']())['map'](_0x3e01d9=>_0x5af0c4['fromRange'](_0x3e01d9));_0x2e96fb['setSelection'](_0x5edb0c),_0x459c5a['commands']['get']('mergeTableCells')['refresh'](),_0x459c5a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2a7542=_0xc59170['filter'](_0x495d1d=>'$graveyard'!=_0x495d1d['root']['rootName']);_0x2a7542['length']>0x0&&_0x2e96fb['setSelection'](_0x2a7542);for(const _0x5c4cc3 of _0xc59170)_0x5c4cc3['detach']();});});for(const _0x957a83 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x109603=_0x459c5a['commands']['get'](_0x957a83);_0x109603['on']('set:isEnabled',(_0xbabfe5,_0x5407d6,_0x2c62b5)=>{if(_0x2c62b5){const _0x5bfe28=_0x459c5a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x178365=>_0x178365['is']('element','tableCell'));this['_areMergableCells'](_0x109603['value'],_0x5bfe28)||(_0xbabfe5['return']=!0x1,_0xbabfe5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x555a32=this['editor']['commands']['get']('mergeTableCells'),_0x74365c=this['editor']['plugins']['get']('TableUtils');if(!_0x555a32['isEnabled'])return!0x1;const _0x51449e=_0x74365c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a8914 of _0x51449e)for(const _0x20d88f of _0x51449e)if(_0x1a8914!=_0x20d88f&&!this['_areMergableCells'](_0x1a8914,_0x20d88f))return!0x1;return!0x0;}['_areMergableCells'](_0xd4810f,_0x4c9457){const _0xf207f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x85740a=this['editor']['model']['createRangeOn'](_0xd4810f),_0x41ff0b=this['editor']['model']['createRangeOn'](_0x4c9457),_0x1181e0=new Set(),_0x833d6=new Set();for(const _0x26e543 of _0xf207f6['getSuggestions']())if(('insertion'==_0x26e543['type']||'deletion'==_0x26e543['type']||'mergeTableCells'==_0x26e543['subType'])&&_0x26e543['isInContent']){for(const _0x2fea8f of _0x26e543['getRanges']())_0x2fea8f['containsRange'](_0x85740a,!0x0)&&_0x1181e0['add'](_0x26e543['type']+':'+_0x26e543['author']['id']),_0x2fea8f['containsRange'](_0x41ff0b,!0x0)&&_0x833d6['add'](_0x26e543['type']+':'+_0x26e543['author']['id']);}if(_0x1181e0['size']!=_0x833d6['size'])return!0x1;for(const _0x3f5255 of _0x1181e0)if(!_0x833d6['has'](_0x3f5255))return!0x1;return!0x0;}}class Ct extends _0x59cc13{static get['requires'](){return[It];}['afterInit'](){const _0x23a0cf=this['editor'];if(!_0x23a0cf['plugins']['has']('TableEditing'))return;const _0x441330=_0x23a0cf['locale'],_0x218681=_0x23a0cf['plugins']['get']('TrackChangesEditing');_0x218681['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x218681['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x218681['registerBlockAttribute']('headingRows'),_0x218681['registerBlockAttribute']('headingColumns'),_0x218681['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x441330,'FORMAT_HEADER_ROW')),_0x218681['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x441330,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x56f48e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57e8ee=this['editor']['plugins']['get']('TableUtils'),_0x4da3b5=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5003f3({showActiveMarker:_0x3143a2=!0x0,setDataAttribute:_0x13842f=!0x0}={}){return(_0x4ea68c,_0x107abf,_0x45310e)=>{const {type:_0x1964bb,id:_0xdb1bf}=_0x56f48e['_splitMarkerName'](_0x107abf['markerName']),_0xb76f11=_0x56f48e['getSuggestion'](_0xdb1bf),_0x486998=_0xb76f11['data'];if('formatBlock'!=_0xb76f11['type']||!_0x486998||'setTableColumnHeader'!=_0x486998['commandName'])return;if(_0x107abf['item'])return void _0x4ea68c['stop']();if(!_0x45310e['consumable']['consume'](_0x107abf['markerRange'],_0x4ea68c['name']))return;const _0x16d16e=_0x107abf['markerRange']['start']['nodeAfter'],_0x4a7cb0=_0x107abf['markerRange']['end']['nodeBefore'],_0x4898c7=_0x16d16e['parent']['parent'],{column:_0x225502}=_0x57e8ee['getCellLocation'](_0x16d16e),{column:_0xf2f82a}=_0x57e8ee['getCellLocation'](_0x4a7cb0);for(let _0x4989c9=_0x225502;_0x4989c9<=_0xf2f82a;_0x4989c9++){const _0x54c3b8=_0x57e8ee['createTableWalker'](_0x4898c7,{'column':_0x4989c9,'includeAllSlots':!0x1});for(const _0x24149a of _0x54c3b8){const _0x114aaf=_0x24149a['cell'],_0x3875c8=_0x45310e['mapper']['toViewElement'](_0x114aaf);_0x45310e['writer']['addClass']('ck-suggestion-marker-'+_0x1964bb,_0x3875c8),_0x13842f&&_0x45310e['writer']['setAttribute']('data-suggestion',_0xdb1bf,_0x3875c8),_0x45310e['mapper']['bindElementToMarker'](_0x3875c8,_0x107abf['markerName']),_0x3143a2&&(_0x56f48e['activeMarkers']['includes'](_0x107abf['markerName'])?_0x45310e['writer']['addClass']('ck-suggestion-marker--active',_0x3875c8):_0x45310e['writer']['removeClass']('ck-suggestion-marker--active',_0x3875c8));}}};}_0x56f48e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4da3b5),_0x56f48e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4da3b5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5003f3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12c753,_0x3ab86f,_0x4c3d4f)=>{_0x4c3d4f['options']['showSuggestionHighlights']&&_0x5003f3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x12c753,_0x3ab86f,_0x4c3d4f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2d31ae,_0x4eec88,_0x3ecd62)=>{const {type:_0x4b0a80,id:_0x7561bb}=_0x56f48e['_splitMarkerName'](_0x4eec88['markerName']),_0x49ebda=_0x56f48e['getSuggestion'](_0x7561bb),_0x1f61f3=_0x49ebda['data'];if('formatBlock'!=_0x49ebda['type']||!_0x1f61f3||'setTableColumnHeader'!=_0x1f61f3['commandName'])return;const _0x354f14=_0x3ecd62['mapper']['markerNameToElements'](_0x4eec88['markerName']);if(_0x354f14){for(const _0x578b70 of _0x354f14)_0x3ecd62['writer']['removeClass']('ck-suggestion-marker-'+_0x4b0a80,_0x578b70),_0x3ecd62['writer']['removeClass']('ck-suggestion-marker--active',_0x578b70),_0x3ecd62['writer']['removeAttribute']('data-suggestion',_0x578b70),_0x3ecd62['mapper']['unbindElementFromMarkerName'](_0x578b70,_0x4eec88['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54f7a7=this['editor'],_0x2b10ad=_0x54f7a7['locale'];function _0xf62bda(_0x243289){return{'type':'format','content':o(_0x2b10ad,'*Format:*\x20%0',_0x243289)};}_0x54f7a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4d159=>{if('formatBlock'!=_0xa4d159['type'])return;const {data:_0x80c185}=_0xa4d159;if(_0x80c185){if('setTableRowHeader'==_0x80c185['commandName']){const _0x593250=_0x80c185['commandParams'][0x0]['forceValue'];return _0xf62bda(o(_0x2b10ad,_0x593250?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x80c185['commandName']){const _0x3165fe=_0x80c185['commandParams'][0x0]['forceValue'];return _0xf62bda(o(_0x2b10ad,_0x3165fe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x1a1660=>[_0x1a1660,null]));class _t extends _0x59cc13{static get['requires'](){return[It];}['afterInit'](){const _0x45f0bc=this['editor'];if(!_0x45f0bc['plugins']['has']('TableClipboard'))return;const _0x367a73=_0x45f0bc['plugins']['get']('TrackChangesEditing'),_0x306d16=_0x45f0bc['plugins']['get']('TableUtils'),_0x1aeee5=_0x45f0bc['plugins']['get'](It),_0x37913e=_0x45f0bc['plugins']['get']('TableClipboard');_0x1aeee5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x45f0bc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x45f0bc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x388eb3=null;_0x45f0bc['model']['on']('insertContent',(_0x236aa6,_0x152643)=>{const [_0x2858e0,_0x395a28]=_0x152643,_0x36554f=_0x152643[_0x152643['length']-0x1];_0x36554f&&_0x36554f['forceDefaultExecution']||_0x367a73['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1d656f,_0x2a91de,_0xab35f4,_0x6e45be,_0x4f45dc){if(_0x2a91de&&!_0x2a91de['is']('documentSelection'))return!0x1;const _0x69395e=_0x4f45dc['getTableIfOnlyTableInContent'](_0x1d656f,_0xab35f4);if(!_0x69395e||!Re(_0x69395e,void 0x0,_0x6e45be))return!0x1;const _0x3f65ab=_0x6e45be['getSelectionAffectedTableCells'](_0xab35f4['document']['selection']);if(!_0x3f65ab['length'])return!0x1;const _0x13e585=_0x3f65ab[0x0]['findAncestor']('table'),_0x353991=_0x6e45be['getRowIndexes'](_0x3f65ab),_0xc00b69=_0x6e45be['getColumnIndexes'](_0x3f65ab),_0x3429de={'startRow':_0x353991['first'],'endRow':_0x353991['last'],'startColumn':_0xc00b69['first'],'endColumn':_0xc00b69['last']};return 0x1==_0x3f65ab['length']&&(_0x3429de['endRow']+=_0x6e45be['getRows'](_0x69395e)-0x1,_0x3429de['endColumn']+=_0x6e45be['getColumns'](_0x69395e)-0x1),Re(_0x13e585,_0x3429de,_0x6e45be);}(_0x2858e0,_0x395a28,_0x45f0bc['model'],_0x306d16,_0x37913e)&&(_0x236aa6['stop'](),_0x388eb3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x45f0bc['model']['change'](()=>{_0x45f0bc['model']['insertContent'](_0x152643[0x0],_0x152643[0x1],_0x152643[0x2],{'forceDefaultExecution':!0x0});const _0x396b84=_0x4dfb6e(),{rowInsertionRanges:_0x78ab83,columnInsertionRanges:_0x260e9d,insertionRanges:_0x42dec9,deletionRanges:_0x5b13af,cells:_0xb6fb58}=_0x388eb3;_0x78ab83['length']&&_0x367a73['markMultiRangeInsertion'](_0x78ab83,'tablePasteRow',{'tablePasteChainId':_0x396b84}),_0x260e9d['length']&&_0x367a73['markMultiRangeInsertion'](_0x260e9d,'tablePasteColumn',{'tablePasteChainId':_0x396b84}),_0x42dec9['length']&&(_0x367a73['markMultiRangeInsertion'](_0x42dec9,'tablePaste',{'tablePasteChainId':_0x396b84,'skipNestingCheck':!0x0}),_0x42dec9['forEach'](_0x20156e=>_0x20156e['detach']?.())),_0x5b13af['length']&&(_0x367a73['markMultiRangeDeletion'](_0x5b13af,'tablePaste',{'tablePasteChainId':_0x396b84,'skipNestingCheck':!0x0}),_0x5b13af['forEach'](_0x43d3f9=>_0x43d3f9['detach']?.()));const _0x23959c=_0x367a73['markMultiRangeBlockFormat'](_0xb6fb58['map'](({element:_0x3f646d})=>_0x3f646d),{'formatGroupId':_0x4dfb6e()},[],'tablePasteCell',{'tablePasteChainId':_0x396b84});if(_0x23959c){const _0x5963f8=_0x23959c['getMarkers'](),_0xdaeb49=[];for(const {element:_0x571884,attributes:_0x4881f1}of _0xb6fb58){if(!_0x4881f1)continue;const _0x5e70c0=_0x45f0bc['model']['createRangeOn'](_0x571884),_0x4f8f1a=_0x5963f8['find'](_0x57d30a=>_0x57d30a['getRange']()['isEqual'](_0x5e70c0));_0x4f8f1a&&_0xdaeb49['push']([_0x4f8f1a['name'],_0x4881f1]);}_0xdaeb49['length']&&_0x23959c['setAttribute']('markerAttributes',Object['fromEntries'](_0xdaeb49));}_0x388eb3=null;}));},{'priority':_0x62bf82['high']+0xa}),_0x45f0bc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a27e4,_0x54e987)=>{const [_0x57161b,_0x2fd024,,_0x40bf44]=_0x54e987;if(!_0x388eb3)return;_0x2a27e4['stop']();const _0x3a9101=_0x57161b['cell'],_0x88f9b6=_0x2fd024,_0x56fabc=ke(_0x3a9101),_0x204363=ke(_0x88f9b6);_0x2a27e4['return']=_0x3a9101;let _0x5b6c78=null,_0x596cbe=null;if(_0x204363||_0x56fabc){if(_0x56fabc&&!_0x204363){_0x40bf44['remove'](_0x3a9101['getChild'](0x0));for(const _0x9dfb3a of Array['from'](_0x88f9b6['getChildren']()))_0x40bf44['insert'](_0x9dfb3a,_0x3a9101,'end');const _0x24e708=_0x388eb3['rowInsertionIndexes']['includes'](_0x57161b['row']),_0x171384=_0x388eb3['columnInsertionIndexes']['includes'](_0x57161b['column']);_0x24e708||_0x171384||(_0x5b6c78=_0x5af0c4['fromRange'](_0x40bf44['createRangeIn'](_0x3a9101)));}else _0x204363&&!_0x56fabc&&(_0x596cbe=_0x40bf44['createRangeIn'](_0x3a9101));}else{const _0x25278a=_0x40bf44['createElement']('tableCellSuggestion'),_0x51631a=_0x40bf44['createElement']('tableCellSuggestion');_0x40bf44['wrap'](_0x40bf44['createRangeIn'](_0x3a9101),_0x51631a),_0x40bf44['insert'](_0x25278a,_0x3a9101,0x0);for(const _0x3e9458 of Array['from'](_0x88f9b6['getChildren']()))_0x40bf44['insert'](_0x3e9458,_0x25278a,'end');_0x5b6c78=_0x5af0c4['fromRange'](_0x40bf44['createRangeOn'](_0x25278a)),_0x596cbe=_0x5af0c4['fromRange'](_0x40bf44['createRangeOn'](_0x51631a));}const _0x550a56=Array['from'](_0x88f9b6['getAttributes']())['filter'](([_0x4c57d8])=>Pe['includes'](_0x4c57d8));_0x388eb3['cells']['push']({'element':_0x3a9101,'attributes':_0x550a56['length']?Object['fromEntries'](_0x550a56):null}),_0x5b6c78&&_0x388eb3['insertionRanges']['push'](_0x5b6c78),_0x596cbe&&_0x388eb3['deletionRanges']['push'](_0x596cbe);},{'priority':'high'}),_0x306d16['on']('insertColumns',(_0x210cf5,_0x9e85ad)=>{const [_0x53e57,_0x5542cf={}]=_0x9e85ad;if(!_0x388eb3)return;const _0x40ccfe=_0x5542cf['at']||0x0,_0x38445a=_0x5542cf['columns']||0x1;_0x388eb3['columnInsertionIndexes']=new Array(_0x38445a)['fill'](_0x40ccfe)['map']((_0x253d7f,_0xa86b72)=>_0x253d7f+_0xa86b72);for(const {cell:_0x33a9}of _0x306d16['createTableWalker'](_0x53e57,{'startColumn':_0x40ccfe,'endColumn':_0x40ccfe+_0x38445a-0x1}))_0x388eb3['columnInsertionRanges']['push'](_0x45f0bc['model']['createRangeOn'](_0x33a9));},{'priority':'low'}),_0x306d16['on']('insertRows',(_0x48f898,_0x40b3db)=>{const [_0xe792a9,_0x54d022={}]=_0x40b3db;if(!_0x388eb3)return;const _0x3a2b31=_0x54d022['at']||0x0,_0x1a8f9d=_0x54d022['rows']||0x1;_0x388eb3['rowInsertionIndexes']=new Array(_0x1a8f9d)['fill'](_0x3a2b31)['map']((_0x172602,_0x83480c)=>_0x172602+_0x83480c);for(const {cell:_0x38aaf6}of _0x306d16['createTableWalker'](_0xe792a9,{'startRow':_0x3a2b31,'endRow':_0x3a2b31+_0x1a8f9d-0x1}))_0x388eb3['rowInsertionRanges']['push'](_0x45f0bc['model']['createRangeOn'](_0x38aaf6));},{'priority':'low'}),_0x367a73['descriptionFactory']['registerDescriptionCallback'](_0x173984=>{if(_0x173984['subType']&&_0x173984['subType']['startsWith']('tablePaste'))return _0x173984['previous']?{}:{'type':'insertion','content':o(_0x45f0bc['locale'],'*Replace\x20table\x20cells*')};});const _0x3d96a2=()=>!0x1;for(const _0x4801e7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x367a73['_suggestionFactory']['registerCustomCallback']('insertion',_0x4801e7,'join',_0x3d96a2),_0x367a73['_suggestionFactory']['registerCustomCallback']('deletion',_0x4801e7,'join',_0x3d96a2),_0x367a73['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4801e7,'join',_0x3d96a2);_0x367a73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d96a2),_0x367a73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a1b96,_0x1b7e5b,_0x308d1e)=>{const _0x58eb64=_0x1a1b96['map'](_0x27bcff=>_0x27bcff['getContainedElement']())['filter'](_0x192033=>_0x192033),_0x362e43=new Map(_0x58eb64['map'](_0x1113dc=>[_0x1113dc,null]));if(_0x388eb3){for(const {element:_0x4154b0,attributes:_0x19daba}of _0x388eb3['cells'])_0x19daba&&_0x362e43['set'](_0x4154b0,_0x19daba);}else{if(_0x308d1e&&_0x308d1e['markerAttributes'])for(const [_0x79898c,_0x2b7c2c]of Object['entries'](_0x308d1e['markerAttributes'])){const _0x5e3bb7=_0x45f0bc['model']['markers']['get'](_0x79898c),_0x2597e1=_0x5e3bb7?_0x5e3bb7['getRange']()['getContainedElement']():null;_0x2597e1&&_0x362e43['set'](_0x2597e1,_0x2b7c2c);}}_0x45f0bc['model']['change'](_0xecd11=>{for(const [_0x3cfe6a,_0x19078c]of _0x362e43)_0xecd11['setAttributes']({...we,..._0x19078c},_0x3cfe6a);});});const _0x2f3c41=(_0x5a4e16,_0x5f529e)=>{_0x367a73['_suggestionFactory']['registerCustomCallback'](_0x5a4e16,'tablePaste',_0x5f529e,(_0x57d59c,_0x9a3346,_0x37fae7)=>{_0x45f0bc['model']['change'](_0x595f05=>{const _0x568639=[];for(const _0x1f07b2 of _0x57d59c){const _0xb8569f=_0x1f07b2['start']['nodeAfter'];_0xb8569f['is']('element','tableCellSuggestion')&&_0x568639['push'](_0xb8569f);}_0x367a73['_suggestionFactory']['getSuggestionCallback'](_0x5a4e16,null,_0x5f529e)(_0x57d59c,_0x9a3346,_0x37fae7);for(const _0x4920b2 of _0x568639)'$graveyard'!=_0x4920b2['root']['rootName']&&_0x595f05['unwrap'](_0x4920b2);});});};_0x2f3c41('insertion','accept'),_0x2f3c41('insertion','discard'),_0x2f3c41('deletion','accept'),_0x2f3c41('deletion','discard'),_0x367a73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x12b65d=>{const _0x3d3ce1=_0x12b65d['map'](_0x3190be=>_0x3190be['getContainedElement']()),_0x16dfdd=_0x3d3ce1[0x0]['findAncestor']('table'),{minRow:_0x285734,maxRow:_0x3cbe97}=_0x1aeee5['_getCoordsForCells'](_0x3d3ce1);_0x306d16['removeRows'](_0x16dfdd,{'at':_0x285734,'rows':_0x3cbe97-_0x285734+0x1});}),_0x367a73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3c0060=>{const _0x23e8eb=_0x3c0060['map'](_0x21cf03=>_0x21cf03['getContainedElement']()),_0x5779d3=_0x23e8eb[0x0]['findAncestor']('table'),{minColumn:_0x3b57c2,maxColumn:_0x21b53a}=_0x1aeee5['_getCoordsForCells'](_0x23e8eb);_0x306d16['removeColumns'](_0x5779d3,{'at':_0x3b57c2,'columns':_0x21b53a-_0x3b57c2+0x1});});const _0x31a92c=(_0x564b4b,_0x3338ad)=>{if(!_0x3338ad['subType']||!_0x3338ad['subType']['startsWith']('tablePaste'))return;const _0x5f2b5b=_0x3338ad['attributes']['tablePasteChainId'],_0xd211b1=_0x367a73['getSuggestions']()['filter'](_0x4211a7=>_0x4211a7['isInContent']&&_0x4211a7['attributes']&&_0x4211a7['attributes']['tablePasteChainId']==_0x5f2b5b);_0xd211b1['length']&&_0x3338ad['getAllAdjacentSuggestions']()['length']!=_0xd211b1['length']&&_0xd211b1['reduce']((_0x1f09fa,_0x4223ac)=>(_0x1f09fa['next']=_0x4223ac,_0x4223ac['previous']=_0x1f09fa,_0x4223ac));};function _0x29d9bb(_0x9d96d9,_0x5d8154=!0x0){const {id:_0x16693c,authorId:_0x241593}=_0x367a73['_splitMarkerName'](_0x9d96d9['markerName']),_0x597bd0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47f3f1=_0x367a73['activeMarkers']['includes'](_0x9d96d9['markerName']);return _0x47f3f1&&_0x597bd0['push']('ck-suggestion-marker--active'),{'classes':_0x597bd0,'attributes':{'data-suggestion':_0x16693c,'data-author-id':_0x241593},'priority':_0x47f3f1&&_0x5d8154?0xbc2:0xbb8};}_0x367a73['on']('suggestionLoaded',_0x31a92c,{'priority':'high'}),_0x367a73['on']('suggestionUnloaded',_0x31a92c,{'priority':'high'}),_0x45f0bc['model']['document']['registerPostFixer'](()=>{let _0x5139ef=!0x1;const _0xe3038d=Array['from'](_0x45f0bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x360c83,data:_0x4d86ba}of _0xe3038d){const {group:_0x167d5f,type:_0x4b53ce,id:_0x72c8f8}=_0x367a73['_splitMarkerName'](_0x360c83);if('suggestion'!=_0x167d5f||'deletion'!=_0x4b53ce||_0x4d86ba['oldRange'])continue;if(!_0x367a73['hasSuggestion'](_0x72c8f8))continue;const _0x45b357=_0x367a73['getSuggestion'](_0x72c8f8)['getRanges'](),_0x2e24bf=_0x45f0bc['plugins']['get']('Users')['me'];for(const _0x2615f1 of _0x367a73['getSuggestions']()){if(!_0x2615f1['isInContent']||_0x2615f1['author']!=_0x2e24bf)continue;if('formatBlock'!=_0x2615f1['type']||'tablePasteCell'!=_0x2615f1['subType'])continue;if(_0x2615f1['getRanges']()['every'](_0x5a983b=>_0x45b357['some'](_0x4ea714=>_0x4ea714['containsRange'](_0x5a983b,!0x0)))){for(const _0x442986 of _0x2615f1['getAllAdjacentSuggestions']())_0x442986['isInContent']&&(_0x442986['discard'](),_0x5139ef=!0x0);}}}return _0x5139ef;}),_0x45f0bc['model']['document']['registerPostFixer'](_0x2494d8=>{const _0x6e6f80=_0x45f0bc['commands']['get']('redo');if(!_0x6e6f80||!_0x6e6f80['_createdBatches']['has'](_0x2494d8['batch']))return!0x1;let _0x1bc8cd=!0x1;const _0x107b9d=_0x45f0bc['plugins']['get']('Users')['me'],_0x14e56f=_0x45f0bc['model']['document']['differ']['getChanges'](),_0x3520d3=Array['from'](_0x45f0bc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1bf227,data:_0x12ace9})=>{const {group:_0x202d1d,subType:_0x3b488a,authorId:_0x32a30e}=_0x367a73['_splitMarkerName'](_0x1bf227);return'suggestion'==_0x202d1d&&'tablePaste'==_0x3b488a&&_0x32a30e==_0x107b9d['id']&&!_0x12ace9['oldRange'];});for(const _0x35f86a of _0x14e56f){if('insert'!=_0x35f86a['type']||'tableCellSuggestion'!=_0x35f86a['name']||0x1!=_0x35f86a['length'])continue;const _0x18f713=_0x2494d8['createRange'](_0x35f86a['position'],_0x35f86a['position']['getShiftedBy'](0x1));if(!_0x3520d3['find'](({data:_0x1da8f1})=>_0x1da8f1['newRange']['isEqual'](_0x18f713))){for(const {name:_0x5c99d9,data:_0x1bc87b}of _0x3520d3)if(_0x18f713['containsRange'](_0x1bc87b['newRange'])){_0x2494d8['updateMarker'](_0x5c99d9,{'range':_0x18f713}),_0x1bc8cd=!0x0;break;}}}return _0x1bc8cd;}),_0x45f0bc['model']['document']['registerPostFixer'](_0x5d9ce6=>{let _0x5f23a7=!0x1;const _0x54760d=_0x45f0bc['plugins']['get']('Users')['me'],_0x4459f0=_0x367a73['getSuggestions']()['filter'](_0x40eea1=>_0x40eea1['isInContent']&&_0x40eea1['author']==_0x54760d),_0x543f15=new Set(),_0x34105c=new Set();for(const _0x52b9eb of _0x4459f0)if('tablePaste'==_0x52b9eb['subType'])for(const _0x4d0111 of _0x52b9eb['getMarkers']()){const _0x115e28=_0x4d0111['getRange']()['getContainedElement']();if(_0x115e28){if(_0x115e28['is']('element','tableCellSuggestion')&&ke(_0x115e28)){_0x52b9eb['removeMarker'](_0x4d0111['name']),_0x543f15['add'](_0x115e28),_0x5f23a7=!0x0;const _0x2330bf=_0x115e28['nextSibling'],_0x13ac59=_0x115e28['previousSibling'],_0x1eeb0d=_0x2330bf&&_0x2330bf['is']('element','tableCellSuggestion'),_0x2ed941=_0x13ac59&&_0x13ac59['is']('element','tableCellSuggestion');_0x1eeb0d&&!_0x543f15['has'](_0x2330bf)&&_0x34105c['add'](_0x2330bf),_0x2ed941&&!_0x543f15['has'](_0x13ac59)&&_0x34105c['add'](_0x13ac59);}else _0x115e28['is']('element','paragraph')&&_0x115e28['isEmpty']&&(_0x52b9eb['removeMarker'](_0x4d0111['name']),_0x5f23a7=!0x0);}}else{if('tablePasteCell'==_0x52b9eb['subType']){if(!_0x52b9eb['attributes']||!_0x52b9eb['attributes']['tablePasteChainId'])continue;const _0x37a076=_0x52b9eb['attributes']['markerAttributes'];if(_0x37a076&&Object['keys'](_0x37a076)['length'])continue;const _0x290516=_0x52b9eb['attributes']['tablePasteChainId'];let _0x481a36=!0x0,_0x57d065=!0x0;for(const _0xc482f9 of _0x4459f0)if(_0xc482f9['subType']&&_0xc482f9['subType']['startsWith']('tablePaste')){if(!_0xc482f9['attributes']['tablePasteChainId']){_0x57d065=!0x1;break;}if(_0xc482f9['id']!=_0x52b9eb['id']&&_0xc482f9['attributes']['tablePasteChainId']==_0x290516){_0x481a36=!0x1;break;}}_0x57d065&&_0x481a36&&(_0x52b9eb['removeMarkers'](),_0x5f23a7=!0x0);}}for(const _0x425605 of _0x543f15)_0x5d9ce6['remove'](_0x425605);for(const _0x269abd of _0x34105c)_0x5d9ce6['unwrap'](_0x269abd);return _0x5f23a7;}),_0x45f0bc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x143868=>_0x29d9bb(_0x143868),'converterPriority':'high'}),_0x45f0bc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b4b8c,_0x484bab)=>_0x484bab['options']['showSuggestionHighlights']?_0x29d9bb(_0x3b4b8c,!0x1):null,'converterPriority':'high'});const _0x5c98a3=_0x45f0bc['editing']['view'];this['listenTo'](_0x5c98a3['document'],'clipboardOutput',(_0x35d04d,_0x3b9b77)=>{const _0x4ee7af=[];for(const _0x21f672 of _0x5c98a3['createRangeIn'](_0x3b9b77['content'])['getItems']())_0x21f672['is']('element','suggestion-td')&&_0x4ee7af['push'](_0x21f672);_0x5c98a3['change'](_0x540c49=>{for(const _0x3c9dc3 of _0x4ee7af)_0x540c49['move'](_0x540c49['createRangeIn'](_0x3c9dc3),_0x540c49['createPositionBefore'](_0x3c9dc3)),_0x540c49['remove'](_0x3c9dc3);});});}}function ke(_0xa4849e){if(_0xa4849e['isEmpty'])return!0x0;const _0x934c4a=_0xa4849e['getChild'](0x0);return _0x934c4a['is']('element','paragraph')&&_0x934c4a['isEmpty'];}function Re(_0x4b8091,_0x50e671={},_0x1f55da){for(const {isAnchor:_0x1e4a81,cellHeight:_0x244710,cellWidth:_0xfb87f8}of _0x1f55da['createTableWalker'](_0x4b8091,{'includeAllSlots':!0x0,..._0x50e671}))if(!_0x1e4a81||0x1!=_0x244710||0x1!=_0xfb87f8)return!0x1;return!0x0;}class Nt extends _0x59cc13{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a627c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a627c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a627c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a627c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a627c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a627c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a627c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x36c7e3,_0xd5b8dd){const _0xd6db0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26c584=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16ae13=_0xd5b8dd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cb6d6=_0x26c584['getColumnGroupElement'](_0x16ae13);let _0x33e598=_0x3cb6d6?_0x26c584['getTableColumnsWidths'](_0x3cb6d6):null,_0x1ee184=_0x16ae13['getAttribute']('tableWidth')||null;const _0xf95750=_0xd5b8dd['tableWidth']||_0x1ee184,_0x78d297=_0xd5b8dd['columnWidths']||_0x33e598,_0x38ad21=this['editor']['plugins']['get']('Users')['me'];for(const _0x355b5f of _0xd6db0c['getSuggestions']()){const _0x42b49f=_0x355b5f['getContainedElement']();if('resizeTable'===_0x355b5f['subType']&&_0x42b49f===_0x16ae13){_0x355b5f['author']!==_0x38ad21&&_0x355b5f['discard']();const _0x235ff4=_0x355b5f['data']['commandParams'];_0x1ee184=_0x235ff4[0x0]['tableWidth'],_0x33e598=_0x235ff4[0x0]['columnWidths'];break;}}_0x36c7e3({'table':_0x16ae13,'tableWidth':_0xf95750,'columnWidths':_0x78d297}),_0xd6db0c['markBlockFormat'](_0x16ae13,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ee184,'columnWidths':_0x33e598}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xe1b63e){if('formatBlock'!=_0xe1b63e['type']&&'formatInline'!=_0xe1b63e['type'])return;const {data:_0x63fbaa}=_0xe1b63e;if(_0x63fbaa&&'resizeTable'===_0x63fbaa['formatGroupId']){const _0xaae440='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xaae440)};}}}class Dt extends _0x59cc13{['afterInit'](){const _0x707737=this['editor'];_0x707737['plugins']['has']('Template')&&_0x707737['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x59cc13{['afterInit'](){const _0x1e1edb=this['editor'];if(!_0x1e1edb['commands']['get']('insertTableOfContents'))return;_0x1e1edb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x213a6b=_0x1e1edb['plugins']['get']('TrackChangesEditing'),_0x338c23=_0x1e1edb['locale'];_0x213a6b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12d57e=>o(_0x338c23,'ELEMENT_TABLE_OF_CONTENTS',_0x12d57e));}}class $t extends _0x59cc13{['afterInit'](){const _0x3e66da=this['editor'];if(!_0x3e66da['plugins']['has']('Title'))return;const _0x436dd1=_0x3e66da['plugins']['get']('TrackChangesEditing');_0x436dd1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3e66da['locale'],'ELEMENT_TITLE')),_0x3e66da['model']['document']['registerPostFixer'](_0x227146=>{let _0x4736de=!0x1;const _0x1239ce=Array['from'](_0x3e66da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bb548,data:_0x1649b5}of _0x1239ce){const {group:_0x4fd99e}=_0x436dd1['_splitMarkerName'](_0x5bb548);if('suggestion'!==_0x4fd99e||!_0x1649b5['newRange'])continue;const _0x59b799=_0x1649b5['newRange'],_0x2119ba=_0x59b799['end']['nodeBefore'];if(!_0x2119ba||!_0x2119ba['is']('element','title-content'))continue;if(!_0x59b799['start']['isTouching'](_0x59b799['end']))continue;const _0x4c53c4=_0x3e66da['model']['schema']['getNearestSelectionRange'](_0x59b799['end'],'forward');if(_0x4c53c4&&_0x4c53c4['isCollapsed']){const _0x333526=_0x227146['createRange'](_0x59b799['start'],_0x4c53c4['start']);_0x333526['isEqual'](_0x59b799)||(_0x227146['updateMarker'](_0x5bb548,{'range':_0x333526}),_0x4736de=!0x0);}_0x4736de||(_0x227146['removeMarker'](_0x5bb548),_0x4736de=!0x0);}return _0x4736de;});}}class Bt extends _0x59cc13{['afterInit'](){const _0x41b059=this['editor'],_0x5932a0=_0x41b059['plugins']['get']('TrackChangesEditing');_0x41b059['plugins']['has']('UndoEditing')&&(_0x5932a0['enableCommand']('undo'),_0x5932a0['enableCommand']('redo'));}}class xt extends _0x59cc13{static get['requires'](){return[It];}['afterInit'](){const _0x5f3e0f=this['editor'];if(!_0x5f3e0f['plugins']['has']('TableCaptionEditing'))return;_0x5f3e0f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x59cc13{['tableProperties'];['tableCellProperties'];constructor(_0x2af40d){super(_0x2af40d),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 _0x2f031d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47c3f5 of this['tableProperties'])_0x2f031d['enableCommand'](_0x47c3f5,(_0x1f1ab4,_0xf2b4b8)=>{const _0x1812ef=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47c3f5,[_0x1812ef],this['tableProperties'],'tableProperties',_0x1f1ab4,_0xf2b4b8);});_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f031d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26b005,_0x130deb)=>this['handleDiscardAction'](this['tableProperties'],_0x26b005,_0x130deb)),_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3f9e77 of this['tableCellProperties'])_0x2f031d['enableCommand'](_0x3f9e77,(_0xf04618,_0x49105a)=>{const _0xf5bd68=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3f9e77,_0xf5bd68,this['tableCellProperties'],'tableCellProperties',_0xf04618,_0x49105a);});_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f031d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x510ddc,_0x5ccb1d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x510ddc,_0x5ccb1d)),_0x2f031d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f031d['descriptionFactory']['registerDescriptionCallback'](_0x253b99=>this['handleSuggestionDescription'](_0x253b99));}['_handlePropertyChange'](_0x566d3d,_0x1363ed,_0xfb0c6f,_0x5b59c4,_0x4bb0ba,_0x344bbb){const _0x2a4511=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x344bbb['batch'],()=>{for(const _0xb22bdf of _0x1363ed){if(this['_getSuggestion'](_0xb22bdf,_0x5b59c4))_0x4bb0ba(_0x344bbb);else{const _0x327f6d={};for(const _0x1c351b of _0xfb0c6f){const _0xfe0ae8=_0xb22bdf['getAttribute'](_0x1c351b);void 0x0!==_0xfe0ae8&&(_0x327f6d[_0x1c351b]=_0xfe0ae8);}_0x4bb0ba(_0x344bbb),_0x2a4511['markBlockFormat'](_0xb22bdf,{'commandParams':[_0x327f6d]},[],_0x5b59c4);}}});}['handleDiscardAction'](_0xc2d9e0,_0x33bbc9,_0x31e422){const _0x3f43b9=_0x33bbc9[0x0]['start']['nodeAfter'],_0x148610=_0x31e422['commandParams'][0x0];this['editor']['model']['change'](_0x2712f7=>{for(const _0x12bc04 of _0xc2d9e0)void 0x0!==_0x148610[_0x12bc04]?_0x2712f7['setAttribute'](_0x12bc04,_0x148610[_0x12bc04],_0x3f43b9):_0x2712f7['removeAttribute'](_0x12bc04,_0x3f43b9);});}['handleSuggestionDescription'](_0x1db46a){if(_0x1db46a['data'])switch(_0x1db46a['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'](_0x42f4cc,_0x61d6dc){const _0x134999=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a8f93 of _0x134999['getSuggestions']({'skipNotAttached':!0x0})){const _0x31b48f=_0x1a8f93['getContainedElement']();if(_0x1a8f93['subType']===_0x61d6dc&&_0x31b48f===_0x42f4cc)return _0x1a8f93;}return null;}}const m='$elementName';class p extends _0x59cc13{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x466894,_0x13770d,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2340a5){function _0x19c5c1(_0xb3bc64){return _0xb3bc64['map'](_0x10d79c=>String['fromCharCode'](_0x10d79c))['join']('');}super(_0x2340a5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x249036,_0x2a78f2,_0x3e1ad4,_0xf92542)=>{this['_model']['change'](()=>{for(const _0x54555a of[..._0xf92542,..._0x3e1ad4])this['_model']['markers']['has'](_0x54555a)&&_0x2340a5['editing']['reconvertMarker'](_0x54555a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2340a5['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(),_0x2340a5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2340a5['config']['get']('trackChanges.trackFormatChanges'),_0x2340a5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2340a5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2340a5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x19c5c1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x19c5c1([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x34]);}['init'](){const _0x296ca1=this['editor'],_0x52d60c=(_0x42de06,_0x118d97)=>{if('attribute'!=_0x42de06)return'ck-suggestion-marker-'+_0x42de06;const _0x18908a=_0x118d97['split']('|')[0x0];return this['_isBlockAttribute'](_0x18908a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x296ca1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2529fb=>{const {id:_0x416e60,authorId:_0x2a8041,type:_0x2c96a4,subType:_0xd13ad4}=this['_splitMarkerName'](_0x2529fb['markerName']),_0x48786f=['ck-suggestion-marker',_0x52d60c(_0x2c96a4,_0xd13ad4)];let _0x3969f9=0xbb8;return this['activeMarkers']['includes'](_0x2529fb['markerName'])&&(_0x48786f['push']('ck-suggestion-marker--active'),_0x3969f9=0xbc2),'deletion'==_0x2c96a4&&(_0x3969f9+=0x5),{'classes':_0x48786f,'attributes':{'data-suggestion':_0x416e60,'data-author-id':_0x2a8041},'priority':_0x3969f9};}}),_0x296ca1['conversion']['for']('dataDowncast')['add'](_0x3ceee4=>{_0x3ceee4['on']('addMarker:suggestion',(_0x2b6fd6,_0x326b10,_0x4bdbfa)=>{if(!_0x4bdbfa['options']['showSuggestionHighlights'])return;const _0x2261a3=_0x326b10['item'];if(!_0x2261a3)return;const _0x4b8b66=_0x4bdbfa['mapper']['toViewElement'](_0x2261a3);_0x296ca1['model']['schema']['isObject'](_0x2261a3)&&_0x4b8b66&&!_0x4b8b66['getCustomProperty']('widget')&&_0x4b8b66['is']('containerElement')&&_0x1e7e6d(_0x4b8b66,_0x4bdbfa['writer']);},{'priority':'high'});}),_0x296ca1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x15e80d,_0x36290d)=>{if(!_0x36290d['options']['showSuggestionHighlights'])return null;const {type:_0x485784,subType:_0x3931e2}=this['_splitMarkerName'](_0x15e80d['markerName']);return{'classes':['ck-suggestion-marker',_0x52d60c(_0x485784,_0x3931e2)],'priority':0xbb8};}});const _0x37068d=({showActiveMarkers:_0x4d9f7a=!0x0,isAttributeSuggestion:_0x4c32ce=!0x1}={})=>(_0x233d07,_0x18cbc4,_0x467d37)=>{if(!_0x18cbc4['item'])return;const {id:_0x19130f,authorId:_0x19eacc}=this['_splitMarkerName'](_0x18cbc4['markerName']);if(_0x4c32ce){const _0x2203de=this['_suggestions']['get'](_0x19130f),_0x46fb26=this['_getAttributeKey'](_0x2203de);if(!this['_isBlockAttribute'](_0x46fb26))return;}if(_0x18cbc4['item']['is']('selection'))return void _0x467d37['consumable']['consume'](_0x18cbc4['item'],_0x233d07['name']);const _0x4286fe=_0x467d37['mapper']['toViewElement'](_0x18cbc4['item']);if(_0x18cbc4['item']['is']('element')&&_0x296ca1['model']['schema']['isBlock'](_0x18cbc4['item'])&&!_0x4286fe['getCustomProperty']('addHighlight')){_0x467d37['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4286fe),_0x467d37['writer']['setAttribute']('data-suggestion',_0x19130f,_0x4286fe),_0x467d37['writer']['setAttribute']('data-author-id',_0x19eacc,_0x4286fe),_0x467d37['mapper']['bindElementToMarker'](_0x4286fe,_0x18cbc4['markerName']),_0x4d9f7a&&(this['activeMarkers']['includes'](_0x18cbc4['markerName'])?_0x467d37['writer']['addClass']('ck-suggestion-marker--active',_0x4286fe):_0x467d37['writer']['removeClass']('ck-suggestion-marker--active',_0x4286fe));for(const _0x47ee26 of _0x296ca1['model']['createRangeIn'](_0x18cbc4['item'])['getItems']())_0x467d37['consumable']['consume'](_0x47ee26,_0x233d07['name']);_0x467d37['consumable']['consume'](_0x18cbc4['item'],_0x233d07['name']);}};_0x296ca1['conversion']['for']('dataDowncast')['add'](_0xb21cd0=>{_0xb21cd0['on']('addMarker:suggestion:formatBlock',(_0x1782ef,_0x4e68f9,_0x209494)=>{_0x209494['options']['showSuggestionHighlights']&&_0x37068d({'showActiveMarkers':!0x1})(_0x1782ef,_0x4e68f9,_0x209494);},{'priority':'highest'});}),_0x296ca1['conversion']['for']('dataDowncast')['add'](_0x311172=>{_0x311172['on']('addMarker:suggestion:attribute',(_0x4323a3,_0x4d8d1b,_0x5cf1b3)=>{_0x5cf1b3['options']['showSuggestionHighlights']&&_0x37068d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4323a3,_0x4d8d1b,_0x5cf1b3);},{'priority':'highest'});}),_0x296ca1['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb7d9d3,_0xa88407)=>_0xa88407['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xb7d9d3['substr'](0xb)}}),_0x296ca1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x525020,{writer:_0x1a25ce})=>{let _0x35921a='suggestion:'+_0x525020['getAttribute']('suggestion-type')+':'+_0x525020['getAttribute']('id');return _0x525020['getAttribute']('marker-count')&&(_0x35921a+=':'+_0x525020['getAttribute']('marker-count')),_0x1a25ce['createElement']('$marker',{'data-name':_0x35921a});}}),_0x296ca1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x296ca1['conversion']['for']('editingDowncast')['add'](_0x455d73=>{_0x455d73['on']('addMarker:suggestion:formatBlock',_0x37068d(),{'priority':'high'});}),_0x296ca1['conversion']['for']('editingDowncast')['add'](_0x575acf=>{_0x575acf['on']('addMarker:suggestion:attribute',_0x37068d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x296ca1['conversion']['for']('editingDowncast')['add'](_0x224432=>{_0x224432['on']('removeMarker:suggestion:formatBlock',(_0x239696,_0x9a5756,_0x105e5b)=>{const _0x4533b1=_0x105e5b['mapper']['markerNameToElements'](_0x9a5756['markerName']);if(_0x4533b1){for(const _0x351dcf of _0x4533b1)_0x351dcf['getCustomProperty']('addHighlight')||(_0x105e5b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x351dcf),_0x105e5b['writer']['removeAttribute']('data-suggestion',_0x351dcf),_0x105e5b['writer']['removeAttribute']('data-author-id',_0x351dcf),_0x105e5b['mapper']['unbindElementFromMarkerName'](_0x351dcf,_0x9a5756['markerName']));}},{'priority':'high'});}),_0x296ca1['conversion']['for']('editingDowncast')['add'](_0x44457a=>{_0x44457a['on']('removeMarker:suggestion:attribute',(_0x5a510d,_0x839a53,_0x420a64)=>{const _0x3757e4=_0x420a64['mapper']['markerNameToElements'](_0x839a53['markerName']);if(!_0x3757e4)return;const {id:_0x14b6d1}=this['_splitMarkerName'](_0x839a53['markerName']),_0x1385a8=this['_suggestions']['get'](_0x14b6d1),_0x218169=this['_getAttributeKey'](_0x1385a8);if(this['_isBlockAttribute'](_0x218169)){for(const _0x3b789 of _0x3757e4)_0x3b789['getCustomProperty']('addHighlight')||(_0x420a64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b789),_0x420a64['writer']['removeAttribute']('data-suggestion',_0x3b789),_0x420a64['writer']['removeAttribute']('data-author-id',_0x3b789),_0x420a64['mapper']['unbindElementFromMarkerName'](_0x3b789,_0x839a53['markerName']));}},{'priority':'high'});}),_0x296ca1['model']['document']['registerPostFixer'](_0x15e321=>{let _0x52c46f=!0x1;const _0x2f5f40=Array['from'](_0x296ca1['model']['document']['differ']['getChangedMarkers']()),_0x552e6e=new Set();for(const {name:_0x33ffdd,data:_0x51d0c8}of _0x2f5f40){const {group:_0x28f5be,type:_0x35046e,subType:_0x1a1b8d,id:_0x1cc978}=this['_splitMarkerName'](_0x33ffdd);if('suggestion'!==_0x28f5be)continue;const _0x1f911e=this['_suggestions']['get'](_0x1cc978);if(null!=_0x51d0c8['newRange']){'formatInline'==_0x35046e&&(_0x52c46f=_0x52c46f||Ut(_0x51d0c8['newRange'],_0x33ffdd,_0x15e321,_0x296ca1['model']['schema']));const _0x1079fb='attribute'==_0x35046e&&this['_isBlockAttribute'](_0x1a1b8d['split']('|')[0x0]);if(_0x51d0c8['newRange']['isCollapsed']||'$graveyard'==_0x51d0c8['newRange']['root']['rootName']||'formatBlock'==_0x35046e&&!Ft(_0x51d0c8['newRange'])||_0x1079fb&&!Ft(_0x51d0c8['newRange'])||'deletion'==_0x35046e&&!(!Vt(_0x5e5c40=_0x51d0c8['newRange'])&&!function(_0x364104){return _0x364104['start']['parent']==_0x364104['end']['nodeBefore']&&_0x364104['start']['isAtEnd'];}(_0x5e5c40)))_0x15e321['removeMarker'](_0x33ffdd),_0x52c46f=!0x0;else{if(!_0x1f911e||!_0x1f911e['isInContent'])continue;if(_0x51d0c8['newRange']&&_0x51d0c8['oldRange']&&_0x51d0c8['newRange']['isEqual'](_0x51d0c8['oldRange']))continue;_0x552e6e['add'](_0x1f911e);}}}var _0x5e5c40;return _0x552e6e['size']>0x0&&(_0x52c46f=!!this['_joinWithAdjacentSuggestions'](_0x552e6e)||_0x52c46f),_0x52c46f;}),_0x296ca1['model']['document']['registerPostFixer'](_0x474fc8=>{let _0x3f9fce=!0x1;for(const _0x6cf3a1 of _0x296ca1['model']['document']['differ']['getChanges']())if('insert'==_0x6cf3a1['type'])for(const _0x2146b7 of this['_suggestions']['values']()){if(_0x2146b7['isMultiRange']||!_0x2146b7['isInContent'])continue;const _0x3248ca='formatBlock'==_0x2146b7['type'],_0x14cde4=this['_getAttributeKey'](_0x2146b7),_0x3f5b6a=_0x14cde4&&this['_isBlockAttribute'](_0x14cde4);if(!_0x3248ca&&!_0x3f5b6a)continue;const _0x499e8d=_0x2146b7['getFirstRange']();if(_0x499e8d['start']['parent']!=_0x499e8d['end']['parent']&&!_0x499e8d['end']['isAtEnd']){const _0x2def4a=_0x296ca1['model']['createPositionAt'](_0x499e8d['start']['nodeAfter'],'end'),_0x44a7e3=_0x296ca1['model']['createRange'](_0x499e8d['start'],_0x2def4a);_0x474fc8['updateMarker'](_0x2146b7['getFirstMarker'](),{'range':_0x44a7e3}),_0x3f9fce=!0x0;}}return _0x3f9fce;}),_0x296ca1['model']['document']['registerPostFixer'](_0x425b51=>this['_processAttributeChanges'](_0x425b51)),_0x296ca1['model']['document']['registerPostFixer'](_0x1cb6e4=>!_0x1cb6e4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1cb6e4)),_0x296ca1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x296ca1['model']['document']['on']('change:data',(_0x3305d1,_0x3170f2)=>{if(!_0x3170f2['isLocal']||_0x3170f2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c4933=_0x296ca1['model']['document']['differ']['getChanges']();if(0x0==_0x2c4933['length'])return;const _0x371ff5=[],_0x1e3491=_0x2c4933['filter'](_0x41583a=>'attribute'==_0x41583a['type']),_0x3b679c=_0x2c4933['filter'](_0x2484fe=>'insert'==_0x2484fe['type']&&'$text'!=_0x2484fe['name']);for(const _0x3f9b26 of _0x1e3491)this['_isRegisteredAttribute'](_0x3f9b26['attributeKey'])&&_0x371ff5['push']({'key':_0x3f9b26['attributeKey'],'newValue':_0x3f9b26['attributeNewValue'],'oldValue':_0x3f9b26['attributeOldValue'],'range':Pt(_0x3f9b26['range'],_0x296ca1['model'])});for(const _0x164a82 of _0x3b679c){if('rename'!=_0x164a82['action']&&'refresh'!=_0x164a82['action'])continue;const _0xea4121=Lt(_0x164a82['position']['nodeAfter'],_0x296ca1['model']),_0x2c2f8c=_0x164a82['before'];'rename'==_0x164a82['action']&&_0x371ff5['push']({'key':m,'newValue':_0x164a82['name'],'oldValue':_0x2c2f8c['name'],'range':_0xea4121});for(const [_0x3b5202,_0x2a59c3]of _0x2c2f8c['attributes']){if(!this['_isRegisteredAttribute'](_0x3b5202))continue;const _0x11e2c1=_0x164a82['attributes']['get'](_0x3b5202);_0x2a59c3!==_0x11e2c1&&_0x371ff5['push']({'key':_0x3b5202,'newValue':_0x11e2c1,'oldValue':_0x2a59c3,'range':_0xea4121});}for(const [_0x3ccd00,_0xfd9bcb]of _0x164a82['attributes'])this['_isRegisteredAttribute'](_0x3ccd00)&&(_0x2c2f8c['attributes']['has'](_0x3ccd00)||_0x371ff5['push']({'key':_0x3ccd00,'newValue':_0xfd9bcb,'oldValue':null,'range':_0xea4121}));}0x0!=_0x371ff5['length']&&_0x296ca1['model']['enqueueChange'](_0x3170f2,_0x5a5234=>{const _0x984e11=_0x4dfb6e();for(const {range:_0x1e0d15,key:_0x264a47,oldValue:_0x266b8a,newValue:_0x350ccc}of _0x371ff5)this['markAttributeChange'](_0x1e0d15,_0x264a47,_0x266b8a,_0x350ccc,{'groupId':_0x984e11});this['_reduceExistingSuggestions'](_0x5a5234,_0x371ff5);});},{'priority':'lowest'}),_0x296ca1['model']['markers']['on']('update:suggestion',(_0x3c92c5,_0x4b6664,_0x3e812b)=>{if(null==_0x3e812b){const {id:_0x3fd978}=this['_splitMarkerName'](_0x4b6664['name']),_0x1e003e=this['_suggestions']['get'](_0x3fd978);_0x1e003e&&_0x1e003e['addMarkerName'](_0x4b6664['name']);}}),_0x296ca1['model']['document']['on']('change:data',()=>{const _0xd63f0e=Array['from'](_0x296ca1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1821ed=>'suggestion'===this['_splitMarkerName'](_0x1821ed['name'])['group']);if(0x0===_0xd63f0e['length'])return;_0xd63f0e['sort']((_0x3e0f01,_0x2f29a7)=>{const _0x490dc7=_0x3e0f01['data']['oldRange'],_0x26d7a4=_0x2f29a7['data']['oldRange'];return null===_0x490dc7&&null===_0x26d7a4?0x0:null===_0x490dc7&&null!==_0x26d7a4?-0x1:null!==_0x490dc7&&null===_0x26d7a4?0x1:_0x490dc7['start']['isBefore'](_0x26d7a4['start'])?-0x1:0x1;});const _0x253e3b=new Set(),_0x3cdd76=new Set();for(const {name:_0x1d354f,data:_0x3b12a1}of _0xd63f0e){const {id:_0x4299dc}=this['_splitMarkerName'](_0x1d354f);if(null===_0x3b12a1['oldRange']){const _0x4adc24=this['_handleNewSuggestionMarker'](_0x1d354f);_0x3cdd76['add'](_0x4adc24);}else{const _0x4df7fe=this['_suggestions']['get'](_0x4299dc);null!==_0x3b12a1['newRange']||_0x4df7fe['isInContent']?(_0x253e3b['add'](_0x4df7fe['head']),_0x3cdd76['add'](_0x4df7fe)):this['_removeSuggestion'](_0x4df7fe);}}_0x3cdd76['size']>0x0&&this['_refreshSuggestionsChain'](_0x3cdd76);for(const _0x34321c of _0x253e3b)this['fire']('suggestionChanged',_0x34321c);}),_0x296ca1['model']['on']('applyOperation',(_0x56bb4a,_0x236eea)=>{const _0x8a178d=_0x236eea[0x0];if(!this['_suggestions']['size'])return;if(!_0x8a178d['isDocumentOperation'])return;if(_0x8a178d['batch']['isUndo']||!_0x8a178d['batch']['isLocal'])return;let _0x1a66e0,_0x217916;switch(_0x8a178d['type']){case'insert':_0x1a66e0=_0x296ca1['model']['createPositionAt'](_0x8a178d['position']),_0x217916=_0x1a66e0['getShiftedBy'](_0x8a178d['howMany']);break;case'split':_0x1a66e0=_0x296ca1['model']['createPositionAt'](_0x8a178d['splitPosition']),_0x217916=_0x296ca1['model']['createPositionAt'](_0x8a178d['moveTargetPosition']);break;case'move':_0x1a66e0=_0x296ca1['model']['createPositionAt'](_0x8a178d['targetPosition']),_0x217916=_0x1a66e0['getShiftedBy'](_0x8a178d['howMany']);break;default:return;}const _0x151e22=_0x296ca1['model']['createRange'](_0x1a66e0,_0x217916);_0x296ca1['model']['change'](()=>{for(const {suggestion:_0x23eb04,meta:_0x3ceae4}of this['_findSuggestions'](_0x151e22)){if(_0x23eb04['isMultiRange'])continue;if('formatInline'==_0x23eb04['type'])continue;const _0x2c0958=this['_getAttributeKey'](_0x23eb04);if(_0x2c0958&&this['_isBlockAttribute'](_0x2c0958)&&'split'!=_0x8a178d['type'])continue;const _0x45666e=_0x23eb04['data']&&_0x23eb04['data']['multipleBlocks'];('formatBlock'!=_0x23eb04['type']||'split'==_0x8a178d['type']&&!_0x45666e)&&(_0x3ceae4['containsRangeInObject']||'insertion'==_0x23eb04['type']&&_0x3ceae4['isOwn']||_0x23eb04['getFirstRange']()['containsRange'](_0x151e22)&&this['_breakSuggestionMarker'](_0x23eb04,_0x1a66e0,_0x217916));}});},{'priority':'lowest'}),_0x296ca1['model']['on']('deleteContent',(_0x1d4f01,_0x4eea9d)=>{const _0x1afe0a=_0x4eea9d[0x0],_0x448a54=_0x4eea9d[0x1];if(_0x448a54&&_0x448a54['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1afe0a['isCollapsed'])return;const _0x22d85d=_0x296ca1['model']['schema'],{start:_0x511e81,end:_0x593b87}=_0x1afe0a['getFirstRange'](),_0x3b8cd6=_0x511e81['nodeAfter']&&_0x22d85d['isLimit'](_0x511e81['nodeAfter'])?null:_0x22d85d['getNearestSelectionRange'](_0x511e81,'forward'),_0x2b84dc=_0x593b87['nodeBefore']&&_0x22d85d['isLimit'](_0x593b87['nodeBefore'])?null:_0x22d85d['getNearestSelectionRange'](_0x593b87,'backward'),_0x598c47=_0x296ca1['model']['createRange'](_0x3b8cd6?_0x3b8cd6['start']:_0x511e81,_0x2b84dc?_0x2b84dc['end']:_0x593b87);_0x296ca1['model']['change'](_0x38accd=>{this['markDeletion'](_0x598c47);const _0x3cc2a7=_0x296ca1['model']['schema']['getNearestSelectionRange'](_0x598c47['start']);_0x1afe0a['is']('documentSelection')?_0x38accd['setSelection'](_0x3cc2a7):_0x1afe0a['setTo'](_0x3cc2a7);}),_0x1d4f01['stop']();},{'priority':_0x62bf82['normal']+0xa}),_0x296ca1['model']['on']('insertContent',(_0x292cba,_0x9e2457)=>{const _0x19587c=_0x9e2457[_0x9e2457['length']-0x1];_0x19587c&&_0x19587c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x296ca1['model']['change'](()=>{let _0x3c18dd=_0x296ca1['model']['insertContent'](_0x9e2457[0x0],_0x9e2457[0x1],_0x9e2457[0x2],{'forceDefaultExecution':!0x0});if(!_0x3c18dd)return;_0x292cba['return']=_0x3c18dd['clone']();const _0x4e2c28=_0x3c18dd['end']['nodeBefore'],_0x1d0e0e=_0x296ca1['model']['schema'];_0x4e2c28&&_0x1d0e0e['isBlock'](_0x4e2c28)&&!_0x1d0e0e['isObject'](_0x4e2c28)&&(_0x3c18dd=_0x296ca1['model']['createRange'](_0x3c18dd['start'],_0x296ca1['model']['createPositionAt'](_0x4e2c28,'end'))),this['markInsertion'](_0x3c18dd);}),_0x292cba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x59ae55=new x(_0x296ca1,this['_suggestions']);_0x296ca1['commands']['add']('acceptSuggestion',_0x59ae55),this['enableCommand']('acceptSuggestion');const _0x54f997=new R(_0x296ca1,this['_suggestions']);_0x296ca1['commands']['add']('discardSuggestion',_0x54f997),this['enableCommand']('discardSuggestion'),_0x296ca1['commands']['add']('acceptAllSuggestions',new E(_0x296ca1,_0x59ae55,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x296ca1['commands']['add']('discardAllSuggestions',new E(_0x296ca1,_0x54f997,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x296ca1['commands']['add']('acceptSelectedSuggestions',new O(_0x296ca1,_0x59ae55,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x296ca1['commands']['add']('discardSelectedSuggestions',new O(_0x296ca1,_0x54f997,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x257dfd=_0x296ca1['plugins']['get']('CommentsRepository');this['listenTo'](_0x257dfd,'addComment',(_0x4acd56,{threadId:_0x418121})=>{const _0x16a904=this['_suggestions']['get'](_0x418121);_0x16a904&&_0x16a904['commentThread']&&0x1===_0x16a904['commentThread']['length']&&this['_updateSuggestionData'](_0x418121,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x257dfd,'removeComment',(_0x14f4b1,{threadId:_0x301d56})=>{const _0x12455f=this['_suggestions']['get'](_0x301d56);_0x12455f&&_0x12455f['commentThread']&&!_0x12455f['commentThread']['length']&&this['_updateSuggestionData'](_0x301d56,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x572f31){if(this['_adapter'])throw new _0x427e50('track-changes-adapter-already-set',this);this['_adapter']=_0x572f31;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2594b4=!0x1,toJSON:_0x38147b=!0x1}={}){const _0x4794e6=[];for(const _0x986cd8 of this['_suggestions']['values']())_0x2594b4&&!_0x986cd8['isInContent']||_0x4794e6['push'](_0x986cd8);return _0x38147b?_0x4794e6['map'](_0x2d94c9=>_0x2d94c9['toJSON']()):_0x4794e6;}['getSuggestion'](_0x59f2f9){const _0xa5ce2d=this['_suggestions']['get'](_0x59f2f9);if(!_0xa5ce2d)throw new _0x427e50('track-changes-suggestion-not-found',this);return _0xa5ce2d;}['hasSuggestion'](_0x576f55){return this['_suggestions']['has'](_0x576f55);}['addSuggestionData'](_0x1cefae){const {authorId:_0x163407,id:_0x24d75c,attributes:_0x5f4343}=_0x1cefae,[_0x20491e,_0x4dfb30]=_0x1cefae['type']['split'](':'),_0x495a3f=this['_suggestions']['get'](_0x24d75c)||this['_createSuggestion'](_0x20491e,_0x4dfb30,_0x24d75c,_0x163407,_0x5f4343);if(this['_addThreadToSuggestion'](_0x495a3f),this['_checkSuggestionCorrectness'](_0x495a3f,_0x20491e,_0x4dfb30||null,_0x163407),_0x495a3f['createdAt']=_0x1cefae['createdAt'],_0x495a3f['_isDataLoaded']=!0x0,_0x5f4343&&_0x5f4343['@external']){const _0x286b84=_0x5f4343['@external'],_0x50f4f3=this['_getExternalAuthor'](_0x286b84['authorName']);_0x495a3f['authoredAt']=_0x286b84['createdAt'],_0x495a3f['author']=_0x50f4f3,_0x495a3f['isExternal']=!0x0;}else _0x495a3f['authoredAt']=_0x1cefae['createdAt'];switch(_0x1cefae['data']&&(_0x495a3f['data']=_0x1cefae['data']),_0x1cefae['attributes']&&(_0x495a3f['attributes']=_0x1cefae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x495a3f['_saved']=!0x0),this['_suggestionState']['get'](_0x495a3f)){case'notReady':this['_suggestionState']['set'](_0x495a3f,'dataReady');break;case'markerReady':_0x495a3f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x495a3f])),this['_refreshSuggestionsChain'](new Set([_0x495a3f])),this['_suggestionState']['set'](_0x495a3f,'ready'),this['fire']('suggestionLoaded',_0x495a3f)):this['_suggestionState']['set'](_0x495a3f,'removed');}return _0x495a3f;}['acceptSuggestion'](_0x41c5ef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a8f86 of _0x41c5ef['getAllAdjacentSuggestions']())_0x3a8f86['accept']();});});}['discardSuggestion'](_0x281598){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x119f9d of _0x281598['getAllAdjacentSuggestions']())_0x119f9d['discard']();});});}['enableCommand'](_0x9cea5b,_0x276097){const _0x4c6dec=this['editor']['commands']['get'](_0x9cea5b);if(!_0x4c6dec)throw new _0x427e50('track-changes-command-not-found',this,{'commandName':_0x9cea5b});if(this['_enabledCommands']['has'](_0x4c6dec))throw new _0x427e50('track-changes-enable-command-twice',this,{'commandName':_0x9cea5b});this['_enabledCommands']['add'](_0x4c6dec),_0x276097&&_0x4c6dec['on']('execute',(_0x16da5f,_0x136e48)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x136e48['length']>0x0&&_0x136e48[_0x136e48['length']-0x1]&&_0x136e48[_0x136e48['length']-0x1]['forceDefaultExecution']?_0x136e48['pop']():(_0x16da5f['return']=_0x276097((..._0x224eb8)=>_0x4c6dec['execute'](..._0x224eb8,{'forceDefaultExecution':!0x0}),..._0x136e48),_0x16da5f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xd9d275){let _0x16d3cf,_0x497c01;const _0x63e04=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16d3cf=_0xd9d275();}catch(_0x2bc102){_0x497c01=_0x2bc102;}return _0x63e04||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x497c01&&_0x427e50['rethrowUnexpectedError'](_0x497c01,this),_0x16d3cf;}['markInsertion'](_0x4d1c2c,_0x291de5=null,_0x185a1e={}){if(_0x4d1c2c['isCollapsed'])return null;const _0x195e29=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x368d0e,meta:_0x437278}of this['_findSuggestions'](_0x4d1c2c,'insertion'))if(_0x437278['isOwn']){if(!_0x437278['isNextTo']){if(_0x437278['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x368d0e,_0x185a1e))continue;return _0x368d0e;}if(qt(_0x368d0e,_0x185a1e))return _0x368d0e;this['_breakSuggestionMarker'](_0x368d0e,_0x4d1c2c['start'],_0x4d1c2c['end']);break;}if(_0x291de5==_0x368d0e['subType']&&qt(_0x368d0e,_0x185a1e)){const _0x14d5bc=_0x368d0e['getFirstRange']();return _0x14d5bc['start']['isEqual'](_0x4d1c2c['end'])?this['_setSuggestionRange'](_0x368d0e,this['_model']['createRange'](_0x4d1c2c['start'],_0x14d5bc['end'])):this['_setSuggestionRange'](_0x368d0e,this['_model']['createRange'](_0x14d5bc['start'],_0x4d1c2c['end'])),_0x368d0e;}}const _0x4efcc3=_0x4dfb6e(),_0x1a0bf8=_0x195e29['id'],_0x54cf85=_0x291de5?'insertion:'+_0x291de5:'insertion',_0x3fc43d=this['_setSuggestionData']({'id':_0x4efcc3,'type':_0x54cf85,'createdAt':new Date(),'authorId':_0x1a0bf8,'attributes':_0x185a1e});return this['_addSuggestionMarker'](_0x54cf85,_0x4efcc3,_0x1a0bf8,_0x4d1c2c),_0x3fc43d;}['markMultiRangeInsertion'](_0x1b7c15,_0x1ac902='multi',_0x17103={}){const _0x47b343=this['editor']['plugins']['get']('Users')['me'],_0x489245=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1ac902,'join');for(const _0x3fe95e of this['getSuggestions']())if(_0x3fe95e['author']['id']==_0x47b343['id']&&'insertion'==_0x3fe95e['type']&&_0x3fe95e['subType']==_0x1ac902&&qt(_0x3fe95e,_0x17103)&&(_0x489245(_0x3fe95e['getRanges'](),_0x1b7c15)||_0x489245(_0x1b7c15,_0x3fe95e['getRanges']()))){for(const _0x17289c of _0x1b7c15)_0x3fe95e['addRange'](_0x17289c);return _0x3fe95e;}for(const {suggestion:_0x5dbf90,meta:_0x5a5566}of this['_findSuggestions'](_0x1b7c15,'insertion')){if(!_0x5a5566['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a5566['containsRangeInObject'])continue;if(!qt(_0x5dbf90,_0x17103))continue;let _0x3cd5c2=!0x0;for(const _0x56d5f0 of _0x5dbf90['getRanges']())for(const _0x4a749c of _0x1b7c15)if(!_0x56d5f0['containsRange'](_0x4a749c)){_0x3cd5c2=!0x1;break;}if(_0x3cd5c2)return _0x5dbf90;}const _0x462b73=_0x4dfb6e(),_0x31ed67=_0x47b343['id'],_0xa6dd82='insertion:'+_0x1ac902,_0x3c3366=this['_setSuggestionData']({'id':_0x462b73,'type':_0xa6dd82,'createdAt':new Date(),'authorId':_0x31ed67,'attributes':_0x17103});for(const _0x575372 of _0x1b7c15)this['_addSuggestionMarker'](_0xa6dd82,_0x462b73,_0x31ed67,_0x575372,u['getMultiRangeId']());return _0x3c3366;}['markInlineFormat'](_0x184a8e,_0x257aec,_0x55cafd=null,_0x5d9fc2={}){if(_0x55cafd=_0x55cafd||Gt(_0x257aec),_0x184a8e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e4336=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55cafd,'accept');return this['forceDefaultExecution'](()=>_0x5e4336([_0x184a8e],_0x257aec,_0x5d9fc2)),null;}const _0x2e12ff=this['editor']['plugins']['get']('Users')['me'],_0x4842b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x29bdb3,meta:_0x1779b}of this['_findSuggestions'](_0x184a8e,'insertion'))_0x1779b['isOwn']&&!_0x1779b['isInsideObject']&&_0x4842b['push'](..._0x29bdb3['getRanges']());}const _0x238878=function(_0x3c7f5c,_0x3592ed){const _0x29c8cb=[];for(const _0x3528dc of _0x3592ed){const _0x35c063=_0x3c7f5c['getIntersection'](_0x3528dc);_0x35c063&&_0x29c8cb['push'](_0x35c063);}return _0x29c8cb;}(_0x184a8e,_0x4842b),_0xfbb95f=function(_0x260235,_0x125502){const _0x1d414b=[_0x260235];for(const _0x3f90b0 of _0x125502){let _0x56f075=0x0;for(;_0x56f075<_0x1d414b['length'];){const _0x469be7=_0x1d414b[_0x56f075]['getDifference'](_0x3f90b0);_0x1d414b['splice'](_0x56f075,0x1,..._0x469be7),_0x56f075+=_0x469be7['length'];}}return _0x1d414b;}(_0x184a8e,_0x4842b);_0x238878['length']&&this['_model']['change'](()=>{for(const _0x19bdaf of _0x238878){const _0x27931b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55cafd,'accept');this['forceDefaultExecution'](()=>_0x27931b([_0x19bdaf],_0x257aec,_0x5d9fc2));}});for(const _0x2cc4b3 of _0xfbb95f){let _0x2cb54b=null,_0x5baf33=_0x2cc4b3['start'],_0x55b393=_0x2cc4b3['end'];for(const {suggestion:_0x83eeec,meta:_0x5afd4e}of this['_findSuggestions'](_0x2cc4b3,'formatInline')){if(!_0x5afd4e['isOwn'])continue;if(_0x83eeec['subType']!=_0x55cafd)continue;if(!qt(_0x83eeec,_0x5d9fc2))continue;const _0x36f6e9=_0x83eeec['getFirstRange']();if(_0x36f6e9['containsRange'](_0x2cc4b3,!0x0))return null;_0x5baf33=_0x5baf33['isBefore'](_0x36f6e9['start'])?_0x5baf33:_0x36f6e9['start'],_0x55b393=_0x55b393['isAfter'](_0x36f6e9['end'])?_0x55b393:_0x36f6e9['end'],_0x2cb54b?_0x36f6e9['start']['isBefore'](_0x2cb54b['getFirstRange']()['start'])?(_0x2cb54b['removeMarkers'](),_0x2cb54b=_0x83eeec):_0x83eeec['removeMarkers']():_0x2cb54b=_0x83eeec;}const _0x41dad9=this['_model']['createRange'](_0x5baf33,_0x55b393);if(_0x2cb54b)this['_setSuggestionRange'](_0x2cb54b,_0x41dad9);else{const _0x4d2e7b=_0x4dfb6e(),_0x2ce635=_0x2e12ff['id'];this['_setSuggestionData']({'id':_0x4d2e7b,'type':'formatInline:'+_0x55cafd,'data':_0x257aec,'createdAt':new Date(),'authorId':_0x2ce635,'attributes':_0x5d9fc2}),this['_addSuggestionMarker']('formatInline:'+_0x55cafd,_0x4d2e7b,_0x2ce635,_0x41dad9);}}return null;}['markBlockFormat'](_0x26e933,_0x1b11c4,_0x1886c6=[],_0x4f4963=null,_0x2f84a5={}){_0x1b11c4['formatGroupId']||(_0x1b11c4['formatGroupId']=_0x1b11c4['commandName']),_0x1b11c4['multipleBlocks']=_0x26e933['is']('range'),_0x4f4963=_0x4f4963||Gt(_0x1b11c4);const _0x8d654=_0x1886c6['map'](_0x2e3ece=>Lt(_0x2e3ece,this['_model'])),_0x5efda6=_0x26e933['is']('range')?_0x26e933:Lt(_0x26e933,this['_model']);if('never'===this['_trackFormatChanges']){const _0x33e843=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f4963,'accept');return this['forceDefaultExecution'](()=>_0x33e843([_0x5efda6],_0x1b11c4,_0x2f84a5)),null;}_0x8d654['push'](_0x5efda6);let _0x11faea=!0x0;for(const _0x421b30 of _0x8d654)if(!this['_rangeIsInLocalUserInsertion'](_0x421b30)){_0x11faea=!0x1;break;}if(_0x11faea&&'always'!==this['_trackFormatChanges']){const _0x33bfd0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f4963,'accept');return this['forceDefaultExecution'](()=>_0x33bfd0([_0x5efda6],_0x1b11c4,_0x2f84a5)),null;}let _0x772243=null,_0x19335e=_0x5efda6['start'],_0x207acd=_0x5efda6['end'];for(const {suggestion:_0x3d229f,meta:_0x5e25b0}of this['_findSuggestions'](_0x5efda6,'formatBlock')){if(!_0x5e25b0['isOwn'])continue;if(_0x5e25b0['isNextTo']||_0x5e25b0['containsRangeInObject']||_0x5e25b0['isInsideObject'])continue;if(_0x3d229f['data']['formatGroupId']!=_0x1b11c4['formatGroupId'])continue;if(!qt(_0x3d229f,_0x2f84a5))continue;const _0x1eb876=_0x3d229f['getFirstRange']();if(_0x3d229f['subType']==_0x4f4963){if(_0x1eb876['containsRange'](_0x5efda6,!0x0))return null;_0x19335e=_0x19335e['isBefore'](_0x1eb876['start'])?_0x19335e:_0x1eb876['start'],_0x207acd=_0x207acd['isAfter'](_0x1eb876['end'])?_0x207acd:_0x1eb876['end'],_0x772243?_0x1eb876['start']['isBefore'](_0x772243['getFirstRange']()['start'])?(_0x772243['removeMarkers'](),_0x772243=_0x3d229f):_0x3d229f['removeMarkers']():_0x772243=_0x3d229f;}else{const _0x3758bd=_0x5efda6['getIntersection'](_0x1eb876);this['_cutOutSuggestionMarker'](_0x3d229f,_0x3758bd);}}const _0x1c4dbd=this['editor']['plugins']['get']('Users')['me'],_0x16945a=_0x4dfb6e(),_0x59ffbd=_0x1c4dbd['id'];if(_0x772243)return this['_setSuggestionRange'](_0x772243,this['_model']['createRange'](_0x19335e,_0x207acd)),_0x772243;{const _0x3cc5f6=this['_setSuggestionData']({'id':_0x16945a,'type':'formatBlock:'+_0x4f4963,'data':_0x1b11c4,'createdAt':new Date(),'authorId':_0x59ffbd,'attributes':_0x2f84a5});return this['_addSuggestionMarker']('formatBlock:'+_0x4f4963,_0x16945a,_0x59ffbd,this['_model']['createRange'](_0x19335e,_0x207acd)),_0x3cc5f6;}}['markMultiRangeBlockFormat'](_0x40fee1,_0x4d408c,_0x632bdb=[],_0x53516c=null,_0x52ea79={}){_0x4d408c['formatGroupId']||(_0x4d408c['formatGroupId']=_0x4d408c['commandName']);const _0x1c2c3a=_0x40fee1[0x0];_0x4d408c['multipleBlocks']=_0x1c2c3a['is']('range'),_0x53516c=_0x53516c||Gt(_0x4d408c);const _0x8645b=_0x632bdb['map'](_0xc13a8b=>Lt(_0xc13a8b,this['_model'])),_0x4be9eb=_0x1c2c3a['is']('range')?_0x40fee1:_0x40fee1['map'](_0x1ef7bb=>Lt(_0x1ef7bb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x516712=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53516c,'accept');return this['forceDefaultExecution'](()=>_0x516712(_0x4be9eb,_0x4d408c,_0x52ea79)),null;}_0x8645b['push'](..._0x4be9eb);let _0x2b9da4=!0x0;for(const _0x4437b3 of _0x8645b)if(!this['_rangeIsInLocalUserInsertion'](_0x4437b3)){_0x2b9da4=!0x1;break;}if(_0x2b9da4&&'always'!==this['_trackFormatChanges']){const _0x2690ba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53516c,'accept');return this['forceDefaultExecution'](()=>_0x2690ba(_0x4be9eb,_0x4d408c,_0x52ea79)),null;}const _0x94de34=this['editor']['plugins']['get']('Users')['me'];for(const _0x301218 of this['getSuggestions']()){if(_0x301218['author']['id']!=_0x94de34['id'])continue;if('formatBlock'!=_0x301218['type']||_0x301218['data']['formatGroupId']!=_0x4d408c['formatGroupId'])continue;if(!qt(_0x301218,_0x52ea79))continue;const _0x5e42cb=_0x301218['subType']==_0x53516c;for(let _0x518eda=0x0;_0x518eda<_0x4be9eb['length'];_0x518eda++){const _0x2361fa=_0x4be9eb[_0x518eda];for(const _0x10fd54 of _0x301218['getMarkers']()){const _0x11f182=_0x10fd54['getRange']();if(_0x2361fa['isEqual'](_0x11f182)){_0x5e42cb?(_0x4be9eb['splice'](_0x518eda,0x1),_0x518eda--):_0x301218['removeMarker'](_0x10fd54['name']);break;}}}}if(0x0==_0x4be9eb['length'])return null;const _0x20208e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53516c,'join');for(const _0x187037 of this['getSuggestions']())if(_0x187037['author']['id']==_0x94de34['id']&&'formatBlock'==_0x187037['type']&&_0x187037['data']['formatGroupId']==_0x4d408c['formatGroupId']&&_0x187037['subType']==_0x53516c&&qt(_0x187037,_0x52ea79)&&(_0x20208e(_0x187037['getRanges'](),_0x4be9eb)||_0x20208e(_0x4be9eb,_0x187037['getRanges']()))){for(const _0x373de7 of _0x4be9eb)_0x187037['addRange'](_0x373de7);return _0x187037;}const _0x14200e=_0x4dfb6e(),_0x520fc7=_0x94de34['id'],_0x5274f4='formatBlock:'+_0x53516c,_0x3a14f8=this['_setSuggestionData']({'id':_0x14200e,'type':_0x5274f4,'data':_0x4d408c,'createdAt':new Date(),'authorId':_0x520fc7,'attributes':_0x52ea79});for(const _0x3449e2 of _0x4be9eb)this['_addSuggestionMarker'](_0x5274f4,_0x14200e,_0x520fc7,_0x3449e2,u['getMultiRangeId']());return _0x3a14f8;}['markDeletion'](_0x2ca554,_0x1a5c30=null,_0x5985b3={}){if(_0x2ca554['isCollapsed'])return null;const _0x1c7941=this['editor']['plugins']['get']('Users')['me'],_0x3156d5=new _0x5af0c4(_0x2ca554['start'],_0x2ca554['end']);for(const {suggestion:_0x2ab57f,meta:_0x4cdb76}of this['_findSuggestions'](_0x3156d5,'insertion'))if(_0x4cdb76['isOwn']&&!_0x4cdb76['isNextTo']){if(_0x2ab57f['isMultiRange']){const _0x47dbc6=_0x2ab57f['getRanges']()['filter'](_0x55915d=>'$graveyard'!=_0x55915d['root']['rootName']);_0x47dbc6['every'](_0x4860e4=>_0x3156d5['containsRange'](_0x4860e4,!0x0))&&_0x2ab57f['discard']();if(_0x47dbc6['some'](_0x32e20a=>_0x32e20a['containsRange'](_0x3156d5,!0x0))){const _0x276c88=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a5c30,'accept');return this['forceDefaultExecution'](()=>_0x276c88([_0x3156d5],null,_0x5985b3)),null;}}else{const _0x927ed=_0x3156d5['getIntersection'](_0x2ab57f['getFirstRange']());null!==_0x927ed&&_0x2ab57f['_onDiscard']([_0x927ed],null,_0x5985b3);}}if(_0x3156d5['detach'](),_0x3156d5['isCollapsed']||'$graveyard'==_0x3156d5['root']['rootName'])return null;let _0xa1812c=null,_0x28a7a9=_0x3156d5['start'],_0x10bbf3=_0x3156d5['end'];const _0x55d358=this['_findSuggestions'](_0x3156d5,'deletion');for(const {suggestion:_0x1e7c5e,meta:_0x26308a}of _0x55d358){const _0x2b9fb0=this['_model']['createRange'](_0x28a7a9,_0x10bbf3);if(_0x26308a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26308a['containsRangeInObject']&&!_0x26308a['isInsideObject'])){if(_0x1e7c5e['isMultiRange']){if(!qt(_0x1e7c5e,_0x5985b3))continue;let _0x12e640=!0x0;for(const _0x27e390 of _0x1e7c5e['getRanges']()){if(_0x27e390['containsRange'](_0x2b9fb0,!0x0))return _0x1e7c5e;_0x2b9fb0['containsRange'](_0x27e390)||(_0x12e640=!0x1);}_0x12e640&&_0x1e7c5e['discard']();}else{const _0x1ea136=_0x1e7c5e['getFirstRange']();if(_0x1ea136['containsRange'](_0x2b9fb0,!0x0))return _0x1e7c5e;if(!qt(_0x1e7c5e,_0x5985b3)){_0x2b9fb0['containsRange'](_0x1ea136)?_0x1e7c5e['removeMarkers']():_0x1ea136['containsPosition'](_0x28a7a9)?_0x28a7a9=_0x1ea136['end']:_0x1ea136['containsPosition'](_0x10bbf3)&&(_0x10bbf3=_0x1ea136['start']);continue;}_0x28a7a9=_0x28a7a9['isBefore'](_0x1ea136['start'])?_0x28a7a9:_0x1ea136['start'],_0x10bbf3=_0x10bbf3['isAfter'](_0x1ea136['end'])?_0x10bbf3:_0x1ea136['end'],_0x5985b3=Object['assign']({},_0x1e7c5e['attributes']),_0xa1812c?_0x1ea136['start']['isBefore'](_0xa1812c['getFirstRange']()['start'])?(_0xa1812c['removeMarkers'](),_0xa1812c=_0x1e7c5e):_0x1e7c5e['removeMarkers']():_0xa1812c=_0x1e7c5e;}}}if(_0xa1812c)return this['_setSuggestionRange'](_0xa1812c,this['_model']['createRange'](_0x28a7a9,_0x10bbf3)),_0xa1812c;{const _0x38efa1=_0x4dfb6e(),_0x579598=this['_model']['createRange'](_0x28a7a9,_0x10bbf3),_0x2e24d8=_0x1c7941['id'],_0x2c1283=_0x1a5c30?'deletion:'+_0x1a5c30:'deletion',_0x1ace33=this['_setSuggestionData']({'id':_0x38efa1,'type':_0x2c1283,'createdAt':new Date(),'authorId':_0x2e24d8,'attributes':_0x5985b3});return this['_addSuggestionMarker'](_0x2c1283,_0x38efa1,_0x2e24d8,_0x579598),_0x1ace33;}}['markMultiRangeDeletion'](_0xacc53b,_0x48f8ea='multi',_0x590c50={}){const _0x32e804=this['editor']['plugins']['get']('Users')['me'],_0x3c0ab6=_0xacc53b['map'](_0x254383=>new _0x5af0c4(_0x254383['start'],_0x254383['end'])),_0x46dc67=new Set();for(const {suggestion:_0x5cb2f2,meta:_0x1f6390}of this['_findSuggestions'](_0x3c0ab6,'insertion'))_0x1f6390['isOwn']&&!_0x1f6390['isNextTo']&&_0x46dc67['add'](_0x5cb2f2);for(const _0x612fe2 of _0x46dc67)if(_0x612fe2['isMultiRange']){const _0x53d541=_0x612fe2['getRanges']();(!_0x612fe2['attributes']||!_0x612fe2['attributes']['skipNestingCheck'])&&(_0x53d541['every'](_0x291858=>_0x3c0ab6['some'](_0x530fbe=>_0x530fbe['containsRange'](_0x291858,!0x0)))&&_0x612fe2['discard']());if(_0x3c0ab6['every'](_0x26420b=>_0x53d541['some'](_0x3ed3a7=>_0x3ed3a7['containsRange'](_0x26420b,!0x0)))){const _0x2f98f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48f8ea,'accept');return this['forceDefaultExecution'](()=>_0x2f98f3(_0xacc53b,null,_0x590c50)),null;}}else{const _0x595795=_0x612fe2['getFirstRange']();_0x3c0ab6['some'](_0x5e9453=>_0x5e9453['containsRange'](_0x595795,!0x0))&&_0x612fe2['discard']();if(_0x3c0ab6['every'](_0x1f5429=>_0x595795['containsRange'](_0x1f5429,!0x0))){const _0x1712a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48f8ea,'accept');return this['forceDefaultExecution'](()=>_0x1712a9(_0x3c0ab6,null,_0x590c50)),null;}}const _0x51764c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48f8ea,'join');let _0x3d1563=null;for(const _0x4811ac of this['getSuggestions']())if(_0x4811ac['author']['id']==_0x32e804['id']&&_0x4811ac['isInContent']&&'deletion'==_0x4811ac['type']&&_0x4811ac['subType']==_0x48f8ea&&qt(_0x4811ac,_0x590c50)&&(_0x51764c(_0x4811ac['getRanges'](),_0x3c0ab6)||_0x51764c(_0x3c0ab6,_0x4811ac['getRanges']()))){if(_0x3d1563){if(_0x4811ac['commentThread']&&_0x4811ac['commentThread']['length'])continue;for(const _0x21dda4 of _0x4811ac['getRanges']())_0x3d1563['isIntersectingWithRange'](_0x21dda4)||_0x3d1563['addRange'](_0x21dda4);_0x4811ac['removeMarkers']();}else{_0x3d1563=_0x4811ac;for(const _0x3c69c4 of _0x3c0ab6)_0x4811ac['isIntersectingWithRange'](_0x3c69c4)||_0x4811ac['addRange'](_0x3c69c4);}}if(_0x3d1563)return _0x3d1563;_0x46dc67['clear']();for(const {suggestion:_0x34114f,meta:_0x3f3c74}of this['_findSuggestions'](_0x3c0ab6,'deletion'))_0x3f3c74['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f3c74['containsRangeInObject']&&!_0x3f3c74['isInsideObject'])&&qt(_0x34114f,_0x590c50)&&_0x46dc67['add'](_0x34114f);for(const _0x28840b of _0x46dc67){const _0x5a4930=_0x28840b['getRanges']();if(!_0x590c50||!_0x590c50['skipNestingCheck']){if(_0x3c0ab6['every'](_0x419abe=>_0x5a4930['some'](_0x3dde09=>_0x3dde09['containsRange'](_0x419abe,!0x0))))return _0x28840b;}(!_0x28840b['attributes']||!_0x28840b['attributes']['skipNestingCheck'])&&(_0x5a4930['every'](_0x44095b=>_0x3c0ab6['some'](_0x4c0901=>_0x4c0901['containsRange'](_0x44095b,!0x0)))&&_0x28840b['discard']());}const _0x52f0cc=_0x4dfb6e(),_0x2c9e38=_0x32e804['id'],_0x254341='deletion:'+_0x48f8ea,_0x6f93b8=this['_setSuggestionData']({'id':_0x52f0cc,'type':_0x254341,'createdAt':new Date(),'authorId':_0x2c9e38,'attributes':_0x590c50});for(const _0x124e10 of _0x3c0ab6)_0x124e10['detach'](),_0x124e10['isCollapsed']||'$graveyard'==_0x124e10['root']['rootName']||this['_addSuggestionMarker'](_0x254341,_0x52f0cc,_0x2c9e38,_0x124e10,u['getMultiRangeId']());return _0x6f93b8;}['markAttributeChange'](_0x5d7983,_0x55dc93,_0x50e90b,_0x46d829,_0x192d01){if(_0x5d7983['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d34f9=this['editor']['plugins']['get']('Users')['me']['id'],_0x1940bc=Array['from'](this['_suggestions']['values']())['filter'](_0x37f522=>'attribute'==_0x37f522['type']&&_0x37f522['data']['key']==_0x55dc93&&_0x37f522['isIntersectingWithRange'](_0x5d7983));if('default'===this['_trackFormatChanges']){const _0x42e5f7=this['_findSuggestions'](_0x5d7983,'insertion')['filter'](({meta:_0x5c795d})=>_0x5c795d['isOwn']&&!_0x5c795d['isInsideObject']&&!_0x5c795d['isNextTo'])['map'](({suggestion:_0x3ed757})=>_0x3ed757);_0x1940bc['unshift'](..._0x42e5f7);}const _0x521879=new Map([[_0x5d7983,_0x50e90b]]);for(const _0x2777fe of _0x1940bc){const _0x54654f='attribute'==_0x2777fe['type']?_0x2777fe['data']['oldValue']:void 0x0,_0x3e36e0=_0x2777fe['getFirstRange'](),_0x57ba73=Array['from'](_0x521879['keys']())['find'](_0xc2b5ee=>_0xc2b5ee['isIntersecting'](_0x3e36e0));if(!_0x57ba73)continue;const _0x4f8033=_0x57ba73['getDifference'](_0x3e36e0);this['_isBlockAttribute'](_0x55dc93)&&'insertion'==_0x2777fe['type']&&0x0!=_0x4f8033['length']||(_0x521879['delete'](_0x57ba73),_0x4f8033['forEach'](_0x4b90ac=>{_0x521879['set'](_0x4b90ac,_0x50e90b);}),'insertion'!=_0x2777fe['type']&&_0x54654f!=_0x46d829&&_0x521879['set'](_0x57ba73['getIntersection'](_0x3e36e0),_0x54654f));}const _0x58a7bd=[];for(const [_0x12e1c5,_0x64c3c7]of _0x521879){const _0x3bf42f=_0x4dfb6e(),_0x24d889={'key':_0x55dc93,'oldValue':_0x64c3c7,'newValue':_0x46d829};_0x55dc93['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':_0x55dc93});const _0xdb65f8=('attribute:'+(_0x55dc93+'|'+Gt({'newValue':_0x46d829})))['substring'](0x0,0x3c),_0x260b0b=this['_setSuggestionData']({'id':_0x3bf42f,'type':_0xdb65f8,'data':_0x24d889,'createdAt':new Date(),'authorId':_0x4d34f9,'attributes':_0x192d01});_0x58a7bd['push'](_0x260b0b),this['_addSuggestionMarker'](_0xdb65f8,_0x3bf42f,_0x4d34f9,_0x12e1c5);}return _0x58a7bd;}['enableDefaultAttributesIntegration'](_0x2eb4a2){this['enableCommand'](_0x2eb4a2,(_0x5b4aab,..._0x286c67)=>{this['_recordAttributeChanges'](()=>{_0x5b4aab(..._0x286c67);});});}['registerBlockAttribute'](_0x3ff0c2){this['_blockAttributeKeys']['add'](_0x3ff0c2);}['registerInlineAttribute'](_0x52912e){this['_inlineAttributeKeys']['add'](_0x52912e);}['_getAttributeKey'](_0x27fd98){return'attribute'==_0x27fd98['type']?_0x27fd98['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1ef169,_0x438982){const _0x4d4c00=_0x1ef169['getFirstMarker']();this['_model']['change'](_0x58a9cd=>{_0x58a9cd['updateMarker'](_0x4d4c00,{'range':_0x438982});});}['_addThreadToSuggestion'](_0x5a4c34){const _0x2c4bd3=_0x5a4c34['id'],_0x4ed7d5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c4bd3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4ed7d5,'threadId':_0x2c4bd3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x186571=this['_commentsRepository']['getCommentThread'](_0x2c4bd3);_0x186571['unbind']('isRemovable'),_0x186571['isRemovable']=!0x1,_0x5a4c34['commentThread']=_0x186571;}['_checkSuggestionCorrectness'](_0x1243a9,_0x119d78,_0x17340b,_0x22e194){if(_0x1243a9['type']!=_0x119d78||_0x1243a9['subType']!=_0x17340b||_0x1243a9['creator']['id']!=_0x22e194)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x427e50('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x291703,_0x5cf046){const _0x4f308c=_0x291703['getFirstRange']();if(_0x5cf046['isEqual'](_0x4f308c))_0x291703['removeMarkers']();else{if(_0x4f308c['containsRange'](_0x5cf046)){const _0x2b4d22=this['_model']['createPositionAt'](_0x5cf046['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x291703,this['_model']['createRange'](_0x4f308c['start'],_0x2b4d22));const _0xf52cbf=_0x4dfb6e(),_0x9a9074=_0x291703['creator']['id'],_0x174947=_0x291703['type']+':'+_0x291703['subType'];this['_setSuggestionData']({'id':_0xf52cbf,'type':_0x174947,'createdAt':new Date(),'authorId':_0x9a9074,'data':_0x291703['data'],'attributes':_0x291703['attributes']});const _0x1e5c4a=this['_model']['createPositionAt'](_0x5cf046['end']['parent'],'after'),_0x3b221b=this['_model']['createRange'](_0x1e5c4a,_0x4f308c['end']);this['_addSuggestionMarker'](_0x174947,_0xf52cbf,_0x9a9074,_0x3b221b);}else{if(_0x4f308c['containsPosition'](_0x5cf046['start'])){const _0x5c83a3=this['_model']['createPositionAt'](_0x5cf046['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x291703,this['_model']['createRange'](_0x4f308c['start'],_0x5c83a3));}else{const _0xca1d86=this['_model']['createPositionAt'](_0x5cf046['end']['parent'],'after');this['_setSuggestionRange'](_0x291703,this['_model']['createRange'](_0xca1d86,_0x4f308c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c1181){for(const {suggestion:_0x167fe8,meta:_0x54d729}of this['_findSuggestions'](_0x4c1181,'insertion')){if(!_0x54d729['isOwn'])continue;const _0x39d676=_0x167fe8['getRanges']();for(const _0x16634a of _0x39d676)if(!_0x4c1181['getDifference'](_0x16634a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d4dd1){const _0x269700=this['editor']['plugins']['get']('Users')['getUser'](_0x1d4dd1);if(!_0x269700)throw new _0x427e50('track-changes-user-not-found',this);return _0x269700;}['_getExternalAuthor'](_0x23d15c){const _0x63fe14=this['editor']['plugins']['get']('Users'),_0x100e7d=_0x16bb8b('external:'+_0x23d15c),_0x1bd7c5=_0x63fe14['getUser'](_0x100e7d);return _0x1bd7c5||_0x63fe14['addUser']({'id':_0x100e7d,'name':_0x23d15c});}['_createSuggestion'](_0x24c138,_0x5dd7d0,_0x448620,_0x5a570a,_0x19eba6){const _0x1d7d07=this['_getAuthorFromId'](_0x5a570a),_0x5041e6=this['_suggestionFactory']['buildSuggestion'](_0x24c138,_0x5dd7d0,_0x448620,_0x1d7d07,_0x19eba6,_0x3d022f=>{this['_updateSuggestionData'](_0x448620,{'attributes':_0x3d022f});const _0x4af765=this['getSuggestion'](_0x448620);this['_joinWithAdjacentSuggestions'](new Set([_0x4af765])),this['_refreshSuggestionsChain'](new Set([_0x4af765]));});return this['listenTo'](_0x5041e6,'accept',()=>{this['_updateSuggestionData'](_0x448620,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5041e6,'discard',()=>{this['_updateSuggestionData'](_0x448620,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x448620,_0x5041e6),this['_suggestionState']['set'](_0x5041e6,'notReady'),_0x5041e6;}['_splitMarkerName'](_0x4a7350){const _0x45de6b=_0x4a7350['split'](':');return{'group':_0x45de6b[0x0],'type':_0x45de6b[0x1],'subType':_0x45de6b['length']>=0x5?_0x45de6b[0x2]:null,'id':_0x45de6b['length']<0x5?_0x45de6b[0x2]:_0x45de6b[0x3],'authorId':_0x45de6b['length']<0x5?_0x45de6b[0x3]:_0x45de6b[0x4],'markerCount':0x6==_0x45de6b['length']?_0x45de6b[0x5]:null};}['_breakSuggestionMarker'](_0x1cfa41,_0x113efd,_0x4fdc59){const _0x3253c4=_0x1cfa41['getFirstRange'](),_0x44040c=_0x3253c4['start'],_0x103454=_0x3253c4['end'];this['_setSuggestionRange'](_0x1cfa41,this['_model']['createRange'](_0x44040c,_0x113efd));const _0x331fc6=_0x4dfb6e(),_0x1a3fdc=_0x1cfa41['creator']['id'],_0x342de1=_0x1cfa41['type']+(_0x1cfa41['subType']?':'+_0x1cfa41['subType']:'');this['_setSuggestionData']({'id':_0x331fc6,'type':_0x342de1,'createdAt':new Date(),'authorId':_0x1a3fdc,'originalSuggestionId':_0x1cfa41['id'],'attributes':_0x1cfa41['attributes'],'data':_0x1cfa41['data']});const _0x1f8de2=this['_getAttributeKey'](_0x1cfa41);('formatBlock'==_0x1cfa41['type']||_0x1f8de2&&this['_isBlockAttribute'](_0x1f8de2))&&(_0x4fdc59=this['_model']['createPositionBefore'](_0x4fdc59['parent'])),this['_addSuggestionMarker'](_0x342de1,_0x331fc6,_0x1a3fdc,this['_model']['createRange'](_0x4fdc59,_0x103454));}['_findSuggestions'](_0x408901,_0x579ebf=null){const _0x5612cd=[],_0x40ce7e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x408901)||(_0x408901=[_0x408901]);for(const _0x451368 of this['getSuggestions']()){if(!_0x451368['isInContent'])continue;if(_0x579ebf&&_0x451368['type']!=_0x579ebf)continue;let _0x2a3570=!0x1;for(const _0x56bf4c of _0x451368['getRanges']()){for(const _0x521e50 of _0x408901){const _0x5c9a39=_0x521e50['start']['isEqual'](_0x56bf4c['end'])||_0x521e50['end']['isEqual'](_0x56bf4c['start']);if(_0x5c9a39||_0x521e50['getIntersection'](_0x56bf4c)){const _0x3ec5c2=_0x521e50['containsRange'](_0x56bf4c)&&Ot(this['_model']['schema'],_0x56bf4c['start'],_0x521e50),_0x5ad9d2=_0x56bf4c['containsRange'](_0x521e50)&&Ot(this['_model']['schema'],_0x521e50['start'],_0x56bf4c);_0x5612cd['push']({'suggestion':_0x451368,'meta':{'isOwn':_0x40ce7e==_0x451368['author'],'isNextTo':_0x5c9a39,'isInsideObject':_0x3ec5c2,'containsRangeInObject':_0x5ad9d2}}),_0x2a3570=!0x0;break;}}if(_0x2a3570)break;}}return _0x5612cd;}['_addSuggestionMarker'](_0x1a961b,_0x37709f,_0xda0b90,_0x53b77b,_0x37a6fb){this['_model']['change'](_0x258ea7=>{let _0xd5b811='suggestion:'+_0x1a961b+':'+_0x37709f+':'+_0xda0b90;_0x37a6fb&&(_0xd5b811=_0xd5b811+':'+_0x37a6fb),_0x258ea7['addMarker'](_0xd5b811,{'range':_0x53b77b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e88f5){const _0x76859e=_0x1e88f5['previous'],_0xc13789=_0x1e88f5['next'];_0x1e88f5['previous']=null,_0x1e88f5['next']=null,null!=_0x76859e&&_0x76859e['next']==_0x1e88f5&&(_0x76859e['next']=_0xc13789),null!=_0xc13789&&_0xc13789['previous']==_0x1e88f5&&(_0xc13789['previous']=_0x76859e),'ready'==this['_suggestionState']['get'](_0x1e88f5)&&(this['_suggestionState']['set'](_0x1e88f5,'removed'),this['fire']('suggestionUnloaded',_0x1e88f5,_0x76859e,_0xc13789));}['_setSuggestionData'](_0x2b79e3){const _0x1ad016=_0x2b79e3['id'],_0x5c4eac=this['addSuggestionData'](_0x2b79e3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d437f=this['editor']['plugins']['get']('PendingActions'),_0x6d4047=_0x5c4eac['hasComments'],_0xb2934a=_0x5c4eac['subType']?_0x5c4eac['type']+':'+_0x5c4eac['subType']:_0x5c4eac['type'],_0x6bda57=this['editor']['locale'],_0x457b4c=_0x3d437f['add'](o(_0x6bda57,'PENDING_ACTION_SUGGESTION')),_0x1a4557={'id':_0x1ad016,'type':_0xb2934a,'hasComments':_0x6d4047,'data':_0x2b79e3['data']||null,'originalSuggestionId':_0x2b79e3['originalSuggestionId']||null,'attributes':_0x5c4eac['attributes']};this['_adapter']['addSuggestion'](_0x1a4557)['then'](_0x34455d=>{_0x5c4eac['_saved']=!0x0,_0x3d437f['remove'](_0x457b4c),_0x34455d&&_0x34455d['createdAt']&&(this['_suggestions']['get'](_0x1ad016)['createdAt']=_0x34455d['createdAt']);})['catch'](_0x3538db=>{throw _0xabec64('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5c4eac['discard']();}),_0x5c4eac['stopListening'](),this['_suggestions']['delete'](_0x5c4eac['id']),this['_suggestionState']['delete'](_0x5c4eac),_0x3538db;});}return _0x5c4eac;}['_isBlockAttribute'](_0x42153e){return this['_blockAttributeKeys']['has'](_0x42153e);}['_updateSuggestionData'](_0x106514,_0x1e8761){const _0x2ea1fb=this['editor']['plugins']['get']('PendingActions'),_0x363bc8=this['getSuggestion'](_0x106514);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x363bc8['_saved']){const _0x4f6a17=_0x2ea1fb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x106514,_0x1e8761)['then'](()=>{_0x2ea1fb['remove'](_0x4f6a17);});}else _0x363bc8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x106514,_0x1e8761);});}}['_getSuggestionData'](_0x25c48f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x427e50('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25c48f);}['_handleNewSuggestionMarker'](_0x1dcc78){const {id:_0x566752,type:_0x49d65d,subType:_0x2edc27,authorId:_0x4184ea}=this['_splitMarkerName'](_0x1dcc78),_0x32c665=this['_suggestions']['get'](_0x566752)||this['_createSuggestion'](_0x49d65d,_0x2edc27,_0x566752,_0x4184ea,{});switch(this['_checkSuggestionCorrectness'](_0x32c665,_0x49d65d,_0x2edc27,_0x4184ea),this['_suggestionState']['get'](_0x32c665)){case'notReady':this['_getSuggestionData'](_0x566752)['then'](_0x5cfbfb=>{let _0x45bddd=Promise['resolve']();_0x5cfbfb['hasComments']&&(_0x45bddd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x566752})),_0x45bddd['then'](()=>{this['addSuggestionData'](_0x5cfbfb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32c665,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x566752,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32c665,'ready'),this['fire']('suggestionLoaded',_0x32c665);break;case'ready':this['fire']('suggestionChanged',_0x32c665);}return _0x32c665['addMarkerName'](_0x1dcc78),_0x32c665;}['_refreshSuggestionsChain'](_0x1c0fc8){const _0x3502c4=Array['from'](_0x1c0fc8),_0x4c44ba=_0x3502c4['filter'](_0x1ab143=>'attribute'==_0x1ab143['type']);this['_refreshAttributeSuggestionsChain'](_0x4c44ba);const _0x4f6280=_0x3502c4['filter'](_0x552ee1=>!_0x552ee1['isMultiRange']&&'attribute'!=_0x552ee1['type']),_0x2cf200=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1767=>!_0x1f1767['isMultiRange']&&'attribute'!=_0x1f1767['type']),_0x4f6c1a=_0x2cf200['filter'](_0x1144c0=>!_0x1c0fc8['has'](_0x1144c0)),_0x546954=new Map(_0x2cf200['map'](_0x192f33=>[_0x192f33,this['_suggestionFactory']['getSuggestionCallback'](_0x192f33['type'],_0x192f33['subType'],'chain')])),_0x1e1b1d=new Map(_0x2cf200['map'](_0x585763=>[_0x585763,_0x585763['getFirstRange']()])),_0x2594f5=new Set(),_0x5aba45=new Set();for(let _0x554f38=0x0;_0x554f38<_0x4f6280['length'];_0x554f38++)_0x285f4b(_0x4f6280[_0x554f38],_0x4f6280,_0x554f38+0x1);for(let _0x34982b=0x0;_0x34982b<_0x4f6280['length'];_0x34982b++)_0x285f4b(_0x4f6280[_0x34982b],_0x4f6c1a,0x0);const _0x33eee8=new Set();for(let _0x40cdd3=0x0;_0x40cdd3<_0x4f6280['length'];_0x40cdd3++){const _0x7c4029=_0x4f6280[_0x40cdd3];!_0x5aba45['has'](_0x7c4029)&&_0x7c4029['previous']&&(_0x33eee8['add'](_0x7c4029['previous']),_0x7c4029['previous']['next']===_0x7c4029&&(_0x7c4029['previous']['next']=null),_0x7c4029['previous']=null),!_0x2594f5['has'](_0x7c4029)&&_0x7c4029['next']&&(_0x33eee8['add'](_0x7c4029['next']),_0x7c4029['next']['previous']===_0x7c4029&&(_0x7c4029['next']['previous']=null),_0x7c4029['next']=null);}function _0x285f4b(_0x16fdd8,_0x11fced,_0x2a2dc5){for(let _0x199e0c=_0x2a2dc5;_0x199e0c<_0x11fced['length'];_0x199e0c++){const _0x35e7ce=_0x352779(_0x16fdd8,_0x11fced[_0x199e0c]);_0x35e7ce&&(_0x35e7ce[0x0]['next']=_0x35e7ce[0x1],_0x35e7ce[0x1]['previous']=_0x35e7ce[0x0],_0x2594f5['add'](_0x35e7ce[0x0]),_0x5aba45['add'](_0x35e7ce[0x1]));}}function _0x352779(_0x24599f,_0x282cd5){if(_0x24599f['author']['id']!==_0x282cd5['author']['id'])return null;const _0x5dd539=_0x546954['get'](_0x24599f)(_0x24599f,_0x282cd5,_0x1e1b1d['get'](_0x24599f),_0x1e1b1d['get'](_0x282cd5));if(!_0x5dd539)return null;return _0x546954['get'](_0x282cd5)(_0x24599f,_0x282cd5,_0x1e1b1d['get'](_0x24599f),_0x1e1b1d['get'](_0x282cd5))?_0x5dd539[0x1]['commentThread']&&_0x5dd539[0x1]['commentThread']['length']?null:_0x5dd539:null;}_0x33eee8['size']&&this['_refreshSuggestionsChain'](_0x33eee8);}['_refreshAttributeSuggestionsChain'](_0x4b1334){if(0x0==_0x4b1334['length'])return;const _0x4f9807=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2eec=>'attribute'==_0x2c2eec['type']&&_0x2c2eec['_isDataLoaded']),_0x19a213=[],_0x1d5d7f=new Map();for(const _0xaf3014 of _0x4f9807){const _0x506876=_0x16bb8b(_0xaf3014['attributes']);_0x1d5d7f['has'](_0x506876)||(_0x1d5d7f['set'](_0x506876,_0x19a213['length']),_0x19a213['push']([]));const _0xe37ba6=_0x1d5d7f['get'](_0x506876);_0x19a213[_0xe37ba6]['push'](_0xaf3014);}!(function(){_0x19a213['sort']((_0x532715,_0x4572bb)=>{const _0x305d45=_0x532715[0x0]['createdAt'],_0x53defc=_0x4572bb[0x0]['createdAt'];return _0x305d45==_0x53defc?_0x532715[0x0]['attributes']['groupId']<_0x4572bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x305d45<_0x53defc?-0x1:0x1;});for(const _0x1da606 of _0x19a213)_0x1da606['sort']((_0x43b3da,_0x55593e)=>_0x43b3da['id']<_0x55593e['id']?-0x1:0x1);}());for(let _0x1ab5ec=0x0;_0x1ab5ec<_0x19a213['length'];_0x1ab5ec++){if(0x0==_0x19a213[_0x1ab5ec]['length'])continue;const _0x178440=[];for(let _0xcf13d4=_0x1ab5ec+0x1;_0xcf13d4<_0x19a213['length'];_0xcf13d4++)0x0!=_0x19a213[_0xcf13d4]['length']&&_0x24c537(_0x19a213[_0x1ab5ec],_0x19a213[_0xcf13d4])&&_0x178440['push'](_0xcf13d4);for(const _0x3d4807 of _0x178440)_0x19a213[_0x1ab5ec]=_0x19a213[_0x1ab5ec]['concat'](_0x19a213[_0x3d4807]),_0x19a213[_0x3d4807]=[];}for(const _0x30685e of _0x19a213)for(let _0x5a90d4=0x0;_0x5a90d4<_0x30685e['length'];_0x5a90d4++){const _0x1e5a6f=_0x30685e[_0x5a90d4+0x1]||null;_0x30685e[_0x5a90d4]['next']!==_0x1e5a6f&&(_0x30685e[_0x5a90d4]['next']=_0x1e5a6f);}for(const _0x25e604 of _0x19a213)for(let _0x5ef29e=0x0;_0x5ef29e<_0x25e604['length'];_0x5ef29e++){const _0x30e759=_0x25e604[_0x5ef29e-0x1]||null;_0x25e604[_0x5ef29e]['previous']!==_0x30e759&&(_0x25e604[_0x5ef29e]['previous']=_0x30e759);}function _0x24c537(_0x3514c1,_0x11e984){if(_0x3514c1[0x0]['attributes']['groupId']!==_0x11e984[0x0]['attributes']['groupId']&&_0x3514c1[0x0]['author']!==_0x11e984[0x0]['author'])return!0x1;if(!function(_0x37eeaf,_0x58e036){if(!_0x37eeaf['hasComments']&&!_0x58e036['hasComments'])return!0x0;if(_0x37eeaf['hasComments']&&_0x58e036['hasComments'])return!0x1;if(_0x37eeaf['hasComments']&&_0x58e036['createdAt']<_0x37eeaf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x58e036['hasComments']&&_0x37eeaf['createdAt']<_0x58e036['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3514c1[0x0],_0x11e984[0x0]))return!0x1;const _0x25ba2d=Tt(_0x3514c1[0x0]['attributes'],'groupId'),_0xe6bb9a=Tt(_0x11e984[0x0]['attributes'],'groupId');if(!_0xea8be9(_0x25ba2d,_0xe6bb9a))return!0x1;return!!_0x3514c1['every'](_0x53d594=>_0x11e984['some'](_0x17aaa7=>_0x53d594['getFirstRange']()['isEqual'](_0x17aaa7['getFirstRange']())))&&_0x11e984['every'](_0x4aa531=>_0x3514c1['some'](_0xba6826=>_0x4aa531['getFirstRange']()['isEqual'](_0xba6826['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6e9003){const _0x370edb=Array['from'](_0x6e9003),_0x25c40f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c7951=_0x25c40f['filter'](_0x4847b1=>!_0x6e9003['has'](_0x4847b1)),_0x388911=new Map(_0x370edb['map'](_0x2a79a0=>[_0x2a79a0,this['_suggestionFactory']['getSuggestionCallback'](_0x2a79a0['type'],_0x2a79a0['subType'],'join')])),_0x2d59ad=new Map(_0x25c40f['map'](_0x4e5ad1=>[_0x4e5ad1,_0x4e5ad1['getRanges']()]));for(let _0x2cf921=0x0;_0x2cf921<_0x370edb['length'];_0x2cf921++){if(_0x1ec188(this,_0x370edb[_0x2cf921],_0x370edb,_0x2cf921+0x1))return!0x0;}for(let _0x526d7f=0x0;_0x526d7f<_0x370edb['length'];_0x526d7f++){if(_0x1ec188(this,_0x370edb[_0x526d7f],_0x2c7951,0x0))return!0x0;}return!0x1;function _0x1ec188(_0x5b57a2,_0x1d2e84,_0x4df3ea,_0x37949f){for(let _0x246216=_0x37949f;_0x246216<_0x4df3ea['length'];_0x246216++){const _0x8fc535=_0x4df3ea[_0x246216];if(_0x8fc535['type']!==_0x1d2e84['type']||_0x8fc535['author']['id']!==_0x1d2e84['author']['id']||_0x8fc535['subType']!==_0x1d2e84['subType'])continue;if(!Jt(_0x1d2e84,_0x8fc535))continue;if('attribute'==_0x1d2e84['type']&&_0x1d2e84['data']['oldValue']!=_0x8fc535['data']['oldValue'])continue;if('attribute'==_0x1d2e84['type']&&_0x5b57a2['_isBlockAttribute'](_0x1d2e84['data']['key']))continue;if('formatBlock'==_0x1d2e84['type']){const _0x3e8d61=_0x5b57a2['editor']['model'],_0x4ab417=_0x1d2e84['getContainedElement']();if(_0x4ab417&&(_0x3e8d61['schema']['isObject'](_0x4ab417)||_0x3e8d61['schema']['isLimit'](_0x4ab417)))continue;}const _0x24e9e7=_0x388911['get'](_0x1d2e84),_0x4c6027=_0x2d59ad['get'](_0x1d2e84),_0x3e35d8=_0x2d59ad['get'](_0x8fc535),_0x5a68be=_0x1d2e84['commentThread']&&_0x1d2e84['commentThread']['length'],_0x16c8a0=_0x8fc535['commentThread']&&_0x8fc535['commentThread']['length'];if(!_0x5a68be&&_0x24e9e7(_0x3e35d8,_0x4c6027))return _0x5b57a2['_joinSuggestions'](_0x8fc535,_0x1d2e84),_0x2d59ad['delete'](_0x1d2e84),!0x0;if(!_0x16c8a0&&_0x24e9e7(_0x4c6027,_0x3e35d8))return _0x5b57a2['_joinSuggestions'](_0x1d2e84,_0x8fc535),_0x2d59ad['delete'](_0x8fc535),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3c5344,_0x2eca19){if(_0x3c5344['isMultiRange']){for(const _0x4d6564 of _0x2eca19['getRanges']())_0x3c5344['addRange'](_0x4d6564);}else{const _0x56e715=_0x2eca19['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3c5344,this['_model']['createRange'](_0x3c5344['getFirstRange']()['start'],_0x56e715));}_0x2eca19['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2f20b6,_0x9bd768,_0x191f5b){const _0x1f7778=_0x2f20b6['startsWith']('format')||_0x2f20b6['startsWith']('attribute')?'FORMATTING':_0x2f20b6['toUpperCase']();return o(this['editor']['locale'],_0x9bd768+'_'+_0x1f7778+'_SUGGESTION_ANNOUNCEMENT',_0x191f5b);}['_initAriaMarkerChangeAnnouncements'](){const _0xfd3e9b=this['editor'];if(!_0xfd3e9b['ui'])return;const {ariaLiveAnnouncer:_0x2b1bc1}=_0xfd3e9b['ui'];_0x23fca6(this['_model'],({left:_0x1338d6,entered:_0x19fefb})=>{for(const _0x375319 of _0x1338d6){const {group:_0xd5abaa,type:_0x1eb668}=this['_splitMarkerName'](_0x375319['name']);if('suggestion'===_0xd5abaa){_0x2b1bc1['announce'](this['_getMarkerAnnouncementText'](_0x1eb668,'LEAVE'));break;}}for(const _0xf8f7e9 of _0x19fefb){const {group:_0x3871a2,type:_0x376d4c}=this['_splitMarkerName'](_0xf8f7e9['name']);if('suggestion'===_0x3871a2){_0x2b1bc1['announce'](this['_getMarkerAnnouncementText'](_0x376d4c,'ENTER',_0x13bccd(_0x3fa135)));break;}}});}['_processAttributeChanges'](_0x34ea63){if(this['_recordAttributeSuggestions'])return!0x1;const _0x184048=this['editor'],_0x32b6c5=_0x184048['model']['document']['differ']['getChanges']();if(0x0==_0x32b6c5['length'])return!0x1;const _0x2663e9=[],_0x454b1f=_0x32b6c5['filter'](_0x2d59ae=>'attribute'==_0x2d59ae['type']),_0x13a8f0=_0x32b6c5['filter'](_0x2ec163=>'insert'==_0x2ec163['type']&&'$text'!=_0x2ec163['name']),_0xc3cfeb=_0x32b6c5['filter'](_0x57a76d=>'remove'==_0x57a76d['type']&&'$text'!=_0x57a76d['name']);for(const _0x1cd366 of _0x454b1f)_0x2663e9['push']({'key':_0x1cd366['attributeKey'],'newValue':_0x1cd366['attributeNewValue'],'oldValue':_0x1cd366['attributeOldValue'],'range':Pt(_0x1cd366['range'],_0x184048['model'])});for(const _0x16d4ff of _0x13a8f0){const _0x49ed57=_0xc3cfeb['find'](_0x38e17c=>_0x38e17c['position']['isEqual'](_0x16d4ff['position']));_0x49ed57&&_0x2663e9['push']({'key':m,'newValue':_0x16d4ff['name'],'oldValue':_0x49ed57['name'],'range':_0x184048['model']['createRangeOn'](_0x16d4ff['position']['nodeAfter'])});}return 0x0!=_0x2663e9['length']&&this['_reduceExistingSuggestions'](_0x34ea63,_0x2663e9);}['_processAttributeSuggestions'](_0x3e54ce){let _0x4750ab=!0x1;const _0x526342=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x42b104=>_0x42b104['data']['newRange']&&_0x42b104['name']['startsWith']('suggestion:attribute:'));for(const _0x1e239a of _0x526342){const {subType:_0x1f47ab,id:_0x19defc}=this['_splitMarkerName'](_0x1e239a['name']),_0x5a80ec=_0x1f47ab['split']('|')[0x0];for(const _0xe55589 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe55589['id']!=_0x19defc&&'attribute'==_0xe55589['type']&&_0xe55589['data']&&_0xe55589['data']['key']==_0x5a80ec&&_0xe55589['getFirstRange']()['isIntersecting'](_0x1e239a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe55589,_0x1e239a['data']['newRange'],_0x3e54ce),_0x4750ab=!0x0);}return _0x4750ab;}['_recordAttributeChanges'](_0x193f04){this['_recordAttributeSuggestions']=!0x0,_0x193f04();}['_isRegisteredAttribute'](_0x28da7f){const _0x472d6f=this['_isBlockAttribute'](_0x28da7f),_0x4977c3=this['_inlineAttributeKeys']['has'](_0x28da7f);return _0x472d6f||_0x4977c3;}['_reduceExistingSuggestions'](_0x3eab1c,_0x39ef06){if(0x0==_0x39ef06['length'])return!0x1;let _0x2fb5ff=!0x1;for(const _0x37d1d4 of _0x39ef06){const _0x37aaf7=this['_findSuggestions'](_0x37d1d4['range'],'attribute')['filter'](_0x51d0c5=>!_0x51d0c5['meta']['isNextTo'])['map'](_0xe73994=>_0xe73994['suggestion']),_0x52685e=_0x16bb8b({'newValue':_0x37d1d4['newValue']});_0x37aaf7['filter'](_0x75243e=>{const [_0x48cee3,_0xadb7c5]=_0x75243e['subType']['split']('|');return _0x48cee3==_0x37d1d4['key']&&_0xadb7c5!=_0x52685e;})['forEach'](_0x7fa8fa=>{this['_reduceSuggestionAttributeRange'](_0x7fa8fa,_0x37d1d4['range'],_0x3eab1c),_0x2fb5ff=!0x0;});}return _0x2fb5ff;}['_reduceSuggestionAttributeRange'](_0xe27375,_0x18ced8,_0xda7aac){const _0x59196c=_0xe27375['getFirstRange']()['getDifference'](_0x18ced8);0x0!==_0x59196c['length']?0x1!==_0x59196c['length']?this['_breakSuggestionMarker'](_0xe27375,_0x18ced8['start'],_0x18ced8['end']):this['_setSuggestionRange'](_0xe27375,_0x59196c[0x0]):_0xda7aac['removeMarker'](_0xe27375['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x313fef){this['_editor']=_0x313fef,this['_model']=_0x313fef['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f5623,_0x5bdfbc,_0x4f7d3b,_0x5c3a34,_0x4b311f,_0x53c9d0){return new u(this['_model'],{'type':_0x2f5623,'subType':_0x5bdfbc,'id':_0x4f7d3b,'author':_0x5c3a34,'creator':_0x5c3a34,'attributes':_0x4b311f,'onAttributesChange':_0x53c9d0,'onAccept':(..._0x525cbc)=>this['getSuggestionCallback'](_0x2f5623,_0x5bdfbc,'accept')(..._0x525cbc),'onDiscard':(..._0x20e8a6)=>this['getSuggestionCallback'](_0x2f5623,_0x5bdfbc,'discard')(..._0x20e8a6)});}['registerCustomCallback'](_0x24eda4,_0x5b73be,_0x28c658,_0x3b2e02){const _0x2ba4a5=_0x24eda4+':'+_0x5b73be+':'+_0x28c658;this['_customCallbacks']['set'](_0x2ba4a5,_0x3b2e02);}['getSuggestionCallback'](_0x2dc872,_0x313041,_0xc4aa49){const _0x41058b=_0x2dc872+':'+_0x313041+':'+_0xc4aa49;return this['_customCallbacks']['get'](_0x41058b)||this['_defaultCallbacks']['get'](_0x2dc872+':'+_0xc4aa49);}['_registerDefaultCallbacks'](){const _0x1b1be0=()=>!0x1,_0x243371=_0x2f8eb3=>{_0x2f8eb3['sort']((_0x4fa872,_0x58b983)=>_0x4fa872['start']['isBefore'](_0x58b983['start'])?0x1:-0x1),this['_model']['change'](_0x430692=>{for(const _0x5dc6b1 of _0x2f8eb3){let _0x3d274c;_0x3d274c=_0x5dc6b1['end']['isAtEnd']&&_0x5dc6b1['end']['parent']==_0x5dc6b1['start']['nodeAfter']?_0x430692['createSelection'](_0x5dc6b1['start']['nodeAfter'],'on'):_0x430692['createSelection'](_0x5dc6b1),this['_model']['deleteContent'](_0x3d274c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x34e9f1=(_0x15770f,_0x230bb3)=>{_0x230bb3&&this['_model']['change'](_0x53660f=>{const {commandName:_0x65ddba,commandParams:_0x2e5e3d=[]}=_0x230bb3,_0x41c2a8=_0x15770f['map'](_0xb49773=>(Vt(_0xb49773)&&(_0xb49773=this['_model']['createRange'](_0xb49773['end'])),_0xb49773))['filter'](_0x5e5066=>'$graveyard'!==_0x5e5066['root']['rootName']);if(_0x41c2a8['length']<0x1)return;const _0x15c85d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2fb8c7=>_0x5af0c4['fromRange'](_0x2fb8c7));_0x53660f['setSelection'](_0x41c2a8);for(const _0x3a8648 of this['_editor']['commands']['commands']())_0x3a8648['refresh']();_0x2e5e3d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x65ddba,..._0x2e5e3d);const _0x2ee370=_0x15c85d['filter'](_0x358da5=>'$graveyard'!=_0x358da5['root']['rootName']);_0x2ee370['length']>0x0&&_0x53660f['setSelection'](_0x2ee370);for(const _0x4d1d16 of _0x15c85d)_0x4d1d16['detach']();});},_0x2af2fa=(_0x57520d,_0x57a2e7)=>0x1==_0x57520d['length']&&0x1==_0x57a2e7['length']&&_0x57520d[0x0]['end']['isEqual'](_0x57a2e7[0x0]['start']),_0x506507=(_0x27d38d,_0x149ac9,_0x32bb71,_0x3c35af)=>Ht(_0x27d38d,_0x149ac9,_0x32bb71,_0x3c35af,this['_model'])?[_0x27d38d,_0x149ac9]:Ht(_0x149ac9,_0x27d38d,_0x3c35af,_0x32bb71,this['_model'])?[_0x149ac9,_0x27d38d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1b1be0),this['_defaultCallbacks']['set']('insertion:discard',_0x243371),this['_defaultCallbacks']['set']('insertion:join',_0x2af2fa),this['_defaultCallbacks']['set']('insertion:chain',_0x506507),this['_defaultCallbacks']['set']('deletion:accept',_0x243371),this['_defaultCallbacks']['set']('deletion:discard',_0x1b1be0),this['_defaultCallbacks']['set']('deletion:join',_0x2af2fa),this['_defaultCallbacks']['set']('deletion:chain',_0x506507),this['_defaultCallbacks']['set']('formatInline:accept',_0x34e9f1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1b1be0),this['_defaultCallbacks']['set']('formatInline:join',_0x2af2fa),this['_defaultCallbacks']['set']('formatInline:chain',_0x1b1be0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x34e9f1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1b1be0),this['_defaultCallbacks']['set']('formatBlock:join',_0x2af2fa),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1b1be0),this['_defaultCallbacks']['set']('attribute:accept',_0x1b1be0),this['_defaultCallbacks']['set']('attribute:discard',(_0x1cce04,_0x4396f2)=>{if(!_0x4396f2)return;const _0x35157a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x13942e=>{if(_0x4396f2['key']==m)for(const _0x2cb191 of _0x1cce04){const _0x2d5639=_0x2cb191['start']['nodeAfter'],_0x3471cd=_0x4396f2['oldValue'];_0x13942e['rename'](_0x2d5639,_0x3471cd);}else{if(_0x35157a['_isBlockAttribute'](_0x4396f2['key'])){for(const _0x2d65a7 of _0x1cce04)void 0x0!==_0x4396f2['oldValue']?_0x13942e['setAttribute'](_0x4396f2['key'],_0x4396f2['oldValue'],_0x2d65a7['start']['nodeAfter']):_0x13942e['removeAttribute'](_0x4396f2['key'],_0x2d65a7['start']['nodeAfter']);}else{for(const _0x31e7f0 of _0x1cce04)_0x4396f2['oldValue']?_0x13942e['setAttribute'](_0x4396f2['key'],_0x4396f2['oldValue'],_0x31e7f0):_0x13942e['removeAttribute'](_0x4396f2['key'],_0x31e7f0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2af2fa);}}function Ot(_0x390485,_0xd032ed,_0x514922){for(const _0x328bb6 of _0xd032ed['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x328bb6['root']==_0x328bb6)return!0x1;if(!_0x514922['containsItem'](_0x328bb6))return!0x1;if(_0x390485['isObject'](_0x328bb6)||_0x390485['isLimit'](_0x328bb6))return!0x0;}return!0x1;}function Vt(_0xd4f681){return _0xd4f681['end']['parent']==_0xd4f681['start']['nodeAfter']&&_0xd4f681['end']['isAtStart'];}function Ut(_0x29b946,_0x1457a0,_0x24f22b,_0x3df504){const _0x53df50=_0x6045c8=>!_0x6045c8['item']['is']('$textProxy')&&!_0x3df504['isObject'](_0x6045c8['item']),_0x6a7f88=_0x29b946['start']['getLastMatchingPosition'](_0x53df50),_0xcccd37=_0x29b946['end']['getLastMatchingPosition'](_0x53df50,{'direction':'backward'});return(!_0x29b946['start']['isEqual'](_0x6a7f88)||!_0x29b946['end']['isEqual'](_0xcccd37))&&(_0x6a7f88['isBefore'](_0xcccd37)?_0x24f22b['updateMarker'](_0x1457a0,{'range':_0x24f22b['createRange'](_0x6a7f88,_0xcccd37)}):_0x24f22b['removeMarker'](_0x1457a0),!0x0);}function Gt(_0x48be80){return _0x16bb8b(_0x48be80);}function Ft(_0x350496){const _0x28784b=_0x350496['start']['nodeAfter'];return _0x28784b&&_0x28784b['is']('element');}function Pt(_0x4357bf,_0x16c745){return null==_0x4357bf['end']['nodeBefore']&&_0x4357bf['end']['parent']==_0x4357bf['start']['nodeAfter']?Lt(_0x4357bf['start']['nodeAfter'],_0x16c745):_0x4357bf;}function Lt(_0x5f2119,_0x3a930b){const _0xcb5c34=_0x3a930b['schema']['isObject'](_0x5f2119)||_0x3a930b['schema']['isSelectable'](_0x5f2119);return _0x3a930b['createRange'](_0x3a930b['createPositionAt'](_0x5f2119,'before'),_0xcb5c34?_0x3a930b['createPositionAfter'](_0x5f2119):_0x3a930b['createPositionAt'](_0x5f2119,'end'));}function Ht(_0x5e5c4d,_0x4e8d09,_0x26b020,_0x263546,_0x32f315){if(_0x5e5c4d['next'])return!0x1;if(!Jt(_0x5e5c4d,_0x4e8d09))return!0x1;if(_0x26b020['end']['isEqual'](_0x263546['start']))return!0x0;if(_0x5e5c4d['type']!=_0x4e8d09['type'])return!0x1;if(!_0x26b020['end']['isTouching'](_0x263546['start']))return!0x1;const _0x32f880=_0x32f315['createRange'](_0x26b020['end'],_0x263546['start'])['getWalker']();for(const _0x3a7717 of _0x32f880)if(['elementStart','elementEnd']['includes'](_0x3a7717['type'])&&_0x32f315['schema']['isLimit'](_0x3a7717['item']))return!0x1;return!0x0;}function Jt(_0x336a06,_0xf9b4e7){if(!_0x336a06['_isDataLoaded']||!_0xf9b4e7['_isDataLoaded'])return!0x1;const _0x1a4d71=new Set(Object['keys'](_0x336a06['attributes'])),_0x5d1e71=new Set(Object['keys'](_0xf9b4e7['attributes']));if(_0x1a4d71['delete']('groupId'),_0x5d1e71['delete']('groupId'),0x0==_0x1a4d71['size']&&0x0==_0x5d1e71['size'])return!0x0;if(_0x1a4d71['size']!=_0x5d1e71['size'])return!0x1;const _0x3de173={..._0x336a06['attributes']},_0x157967={..._0xf9b4e7['attributes']};return delete _0x3de173['groupId'],delete _0x157967['groupId'],JSON['stringify'](_0x3de173)==JSON['stringify'](_0x157967);}function qt(_0x1aaf12,_0x49bd67){const _0x13bf5f=zt(_0x1aaf12['attributes']),_0x1bcb38=zt(_0x49bd67);if(!_0x1aaf12['_isDataLoaded'])return!0x1;for(const _0x25d6ec of Object['keys'](_0x1bcb38))if(!_0xea8be9(_0x13bf5f[_0x25d6ec],_0x1bcb38[_0x25d6ec]))return!0x1;return!0x0;}function zt(_0x32791b){const _0x65fdc1=Object['assign']({},_0x32791b);return delete _0x65fdc1['skipNestingCheck'],delete _0x65fdc1['tablePasteChainId'],_0x65fdc1;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x52e7bc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5aac08,_0x2cd01c,_0x5a3ad7,_0xabf79e){super(),this['model']=_0x2cd01c,this['view']=_0x5a3ad7,this['commentThreadController']=_0xabf79e,this['_editor']=_0x5aac08,this['_acceptCommand']=_0x5aac08['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5aac08['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x240cb8,_0x353b55)=>_0x240cb8||_0x353b55),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5766bb=>_0x5766bb&&this['_editor']['model']['canEditAt'](_0x2cd01c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2c2315=>_0x2c2315&&this['_editor']['model']['canEditAt'](_0x2cd01c['getRanges']())),this['_pendingAction']=null,_0x5a3ad7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5a3ad7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5a3ad7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5a3ad7,'change:isDirty',()=>{_0x5a3ad7['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 _0x47197f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x47197f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1e173c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2c75f5,_0x11f7b2,_0x178314,_0x20441d){super(_0x2c75f5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b92e8(_0x2c75f5,o(_0x2c75f5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x11f7b2['authoredAt']),this['bind']('authoredAt')['to'](_0x11f7b2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x11f7b2,'authoredAt',this,'descriptionParts',(_0x46eed8,_0x320549,_0x51899c)=>{const _0x1bccf9=_0x51899c['map'](_0x56ae80=>ls(_0x56ae80['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x46eed8-0x1,_0x11f7b2['author']['name'],_0x320549?_0x20441d['formatDateTime'](_0x320549):'',new DOMParser()['parseFromString'](_0x1bccf9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4cc9ea(),this['focusTracker']=new _0x4b4207(),this['keystrokes']=new _0x199b71(),this['focusCycler']=new _0x3319c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x412e8f=>_0x412e8f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x11f7b2,this['_localUser']=_0x178314,this['_config']=_0x20441d,_0x20441d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x20ebaa(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x462580}=this['_config'];this['commentsListView']=new _0x462580(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',_0x5da0d3=>_0x5da0d3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2518c6,_0x1a8c4e)=>_0x2518c6||!!_0x1a8c4e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb28f6d}=this['_config'],_0x4e9fa2=new _0xb28f6d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5480e0=_0x4e9fa2['commentInputView'];return _0x4e9fa2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5480e0,'value',(_0x3c44e6,_0x26654f,_0x6326d5)=>!!_0x6326d5||_0x3c44e6&&!_0x26654f),_0x5480e0['on']('submit',(_0x405fd1,_0x2314de)=>{this['fire']('addComment',_0x2314de),_0x5480e0['editor']['setData']('');}),_0x5480e0['on']('cancel',()=>this['focus']()),_0x5480e0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e9fa2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5397d3,_0x2e4feb,_0x20613b,_0x31391a){super(_0x5397d3,_0x2e4feb,_0x20613b,_0x31391a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x261573=>_0x261573&&_0x261573[0x0]?_0x261573[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5cb26a,_0x624afd)=>{let _0x1e9bd4='';for(const _0x594d8e of _0x5cb26a)_0x1e9bd4+='<p>'+ls(_0x594d8e['content'],_0x594d8e['color'])+'</p>';return _0x624afd?_0x1e9bd4:_0x1ace08(_0x1e9bd4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31391a['SuggestionView'](_0x5397d3,_0x2e4feb,{'formatDateTime':_0x31391a['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2c3ed7=this['bindTemplate'],_0x6a150b=[this['suggestionView']];return this['commentsListView']&&_0x6a150b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x6a150b['push'](this['commentThreadInputView']),_0x6a150b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c3ed7['if']('isActive','ck-suggestion-wrapper--active'),_0x2c3ed7['to']('type',_0x40a463=>'ck-suggestion-'+_0x40a463),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2c3ed7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x6a150b};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x1e173c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2884ac,_0x2dc49b,_0x24fdc){super(_0x2884ac),this['_model']=_0x2dc49b,this['_config']=_0x24fdc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2dc49b),this['acceptButton']=this['_createButton'](o(_0x2884ac,'Accept\x20suggestion'),_0x20cacf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2884ac,'Discard\x20suggestion'),_0x20cacf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4916b8(_0x2884ac,_0x2dc49b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4cc9ea([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b4207(),this['keystrokes']=new _0x199b71(),this['focusCycler']=new _0x3319c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1e8d63=>_0x1e8d63['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53a654=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53a654['innerHTML']=this['description'],this['on']('change:description',(_0x352956,_0xfac573,_0x318865)=>{_0x53a654['innerHTML']=_0x318865;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x255224=this['bindTemplate'],_0x19fac4=[{'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':_0x255224['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x255224['to']('authoredAt',_0x492d54=>this['_config']['formatDateTime'](_0x492d54))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x19fac4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x19fac4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xa417db,_0x412ed5,_0x1e262a,_0x5bc0bc,_0x5c0729){const _0x49d4c0=new _0xec2831(this['locale']);return _0x49d4c0['set']({'label':_0xa417db,'icon':_0x412ed5,'tooltip':!0x0,'tooltipPosition':_0x5c0729}),_0x49d4c0['extendTemplate']({'attributes':{'class':_0x1e262a}}),_0x49d4c0['on']('execute',()=>{this['fire'](_0x5bc0bc,this['_model']['id']);}),_0x49d4c0;}['_setupKeyboardNavigation'](){const _0x3fdaa0=this['element'];this['keystrokes']['listenTo'](_0x3fdaa0);for(const _0x12089c of this['focusables'])this['focusTracker']['add'](_0x12089c['element']),this['keystrokes']['listenTo'](_0x12089c['element']);this['keystrokes']['set']('enter',(_0x2534d6,_0x2ea4e5)=>{_0x3fdaa0===_0x2534d6['target']&&(this['focusCycler']['focusFirst'](),_0x2ea4e5());}),this['keystrokes']['set']('esc',(_0x40ec52,_0x5a55c6)=>{_0x3fdaa0!==_0x40ec52['target']&&(this['focus'](),_0x5a55c6());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x59cc13{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x466894,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x107769){super(_0x107769),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x509878=this['editor']['config'];_0x509878['define']('trackChanges.SuggestionThreadView',re),_0x509878['define']('trackChanges.SuggestionView',ce),_0x509878['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x509878['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40e58a,_0x13f3a3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x91cd10,_0x842dd6]of this['_handleControllerBuffer']){const _0x23117f=this['_suggestionToController']['has'](_0x91cd10);_0x23117f||_0x842dd6?_0x23117f&&_0x842dd6&&this['_destroyController'](_0x91cd10):this['_initializeController'](_0x91cd10);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40e58a,_0x13f3a3);}['init'](){const _0xc4812b=this['editor'],_0x534b8d=_0xc4812b['plugins']['get']('TrackChangesEditing'),_0xc47b96=_0xc4812b['plugins']['get']('Annotations'),_0x86fc0c=_0xc4812b['plugins']['get']('EditorAnnotations'),_0x1aeb81=_0xc4812b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x86fc0c['addSourceCollector'](()=>{const _0x4c2bb7=[];for(const [_0x345269,_0x5870dd]of Array['from'](this['_suggestionToController'])){const _0x33888c=_0x345269['getAllAdjacentSuggestions'](),_0xb94bed=[];for(const _0x9597e5 of _0x33888c){if(!_0x9597e5['isInContent'])continue;if(_0x9597e5['isMultiRange']){_0xb94bed['push'](..._0x9597e5['getRanges']());continue;}const _0x54125e=_0x9597e5['getFirstRange']();if(_0xb94bed['length']>0x0){const _0x21007f=_0xb94bed[0x0]['getJoined'](_0x54125e);if(_0x21007f){_0xb94bed[0x0]=_0x21007f;continue;}}_0xb94bed['push'](_0x54125e);}_0x4c2bb7['push']([_0x5870dd['view'],_0xb94bed]);}return _0x4c2bb7;}),this['listenTo'](_0x534b8d,'suggestionLoaded',(_0x1b0713,_0x2764f0)=>{this['listenTo'](_0x2764f0,'change:previous',(_0x1ef1c1,_0x5458fc,_0x23510d,_0x19453a)=>{_0x2764f0['isInContent']&&(null==_0x23510d?(this['_updateController'](_0x19453a['head']),this['_handleSuggestionControllerDelayed'](_0x2764f0,!0x1)):(this['_updateController'](_0x23510d['head']),null==_0x19453a&&this['_handleSuggestionControllerDelayed'](_0x2764f0,!0x0)));}),null!==_0x2764f0['previous']?this['_updateController'](_0x2764f0['head']):this['_handleSuggestionControllerDelayed'](_0x2764f0,!0x1);}),this['listenTo'](_0x534b8d,'suggestionUnloaded',(_0x490c16,_0x1c92d6,_0x3a57ad)=>{this['stopListening'](_0x1c92d6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c92d6),this['_suggestionToController']['has'](_0x1c92d6)&&this['_destroyController'](_0x1c92d6),_0x3a57ad&&this['_updateController'](_0x3a57ad['head']);}),this['listenTo'](_0x534b8d,'suggestionChanged',(_0x711b86,_0x16b2fc)=>{this['_updateController'](_0x16b2fc);}),this['listenTo'](_0xc47b96,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1aeb81,'addComment',(_0x302b90,{threadId:_0x2714ad,isFromAdapter:_0x57e1f4})=>{if(_0x57e1f4||!_0x534b8d['hasSuggestion'](_0x2714ad))return;const _0x454ff5=_0x534b8d['getSuggestion'](_0x2714ad);this['_suggestionToController']['get'](_0x454ff5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x21072d=this['editor']['plugins']['get']('Annotations'),_0x5a38c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf386ea=Array['from'](_0x21072d['activeAnnotations'],_0x4a00ba=>_0x4a00ba['innerView'])['filter'](_0x28a107=>this['_viewToController']['has'](_0x28a107)),_0x28f59b=[];for(const _0x288744 of _0xf386ea){const _0x10e22d=this['_viewToController']['get'](_0x288744)['model']['getAllAdjacentSuggestions']();_0x28f59b['push'](..._0x10e22d['reduce']((_0x45cb75,_0x5cdd93)=>[..._0x45cb75,..._0x5cdd93['getMarkerNames']()],[]));}_0x5a38c6['activeMarkers']=_0x28f59b;}['_addUIComponentsToFactory'](){const _0x13982c=this['editor'],_0x2178fd=_0x13982c['locale'],_0x2f3785=o(_0x2178fd,'Track\x20changes'),_0x541ddf=new Wt([{'type':'switchbutton','model':new _0x161574({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f3785,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x161574({'withText':!0x0,'label':o(_0x2178fd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x161574({'withText':!0x0,'label':o(_0x2178fd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x161574({'withText':!0x0,'label':o(_0x2178fd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x161574({'withText':!0x0,'label':o(_0x2178fd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x43b08a of _0x541ddf)if(me(_0x43b08a)){const _0x2b6580=_0x13982c['commands']['get'](_0x43b08a['model']['commandName']);_0x43b08a['model']['bind']('isOn','isEnabled')['to'](_0x2b6580,'value','isEnabled');}_0x13982c['ui']['componentFactory']['add']('trackChanges',_0x2599ad=>this['_createToolbarButton'](_0x2599ad,_0x541ddf,_0x2f3785)),_0x13982c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1838e6=>this['_createMenuBarMenu'](_0x1838e6,_0x541ddf,_0x2f3785));}['_createToolbarButton'](_0x54974d,_0x1c8ea7,_0x32ce29){const _0x2d5c95=Qt(_0x54974d,_0x546495),_0x4b0fe8=this['editor']['commands']['get']('trackChanges');_0x2d5c95['buttonView']['set']({'tooltip':_0x32ce29,'label':_0x32ce29,'icon':he}),_0x2d5c95['buttonView']['bind']('isOn')['to'](_0x4b0fe8,'value'),_0x2d5c95['buttonView']['on']('execute',()=>{_0x4b0fe8['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2d5c95,_0x1c8ea7,{'role':'menu'});const _0x4936f5=[];for(const _0xe41639 of _0x1c8ea7)me(_0xe41639)&&_0x4936f5['push'](this['editor']['commands']['get'](_0xe41639['model']['commandName']));const _0x1a7115=_0x2d5c95['buttonView'];return _0x1a7115['actionView']['unbind']('isEnabled'),_0x1a7115['arrowView']['unbind']('isEnabled'),_0x1a7115['actionView']['bind']('isEnabled')['to'](_0x4b0fe8,'isEnabled'),_0x1a7115['arrowView']['bind']('isEnabled')['toMany'](_0x4936f5,'isEnabled',(..._0xf9bd5e)=>_0xf9bd5e['some'](_0x2163c2=>_0x2163c2)),_0x2d5c95['on']('execute',_0x4597d4=>{this['editor']['execute'](_0x4597d4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d5c95;}['_createMenuBarMenu'](_0xb095e6,_0x48623c,_0x15ef59){const _0x2ea026=new Yt(_0xb095e6),_0x5e995d=this['editor']['commands']['get']('trackChanges');_0x2ea026['buttonView']['set']({'label':_0x15ef59,'icon':he});const _0x4caca8=new Zt(_0xb095e6);for(const _0xdcc0a4 of _0x48623c){if('separator'==_0xdcc0a4['type']){_0x4caca8['items']['add'](new Xt(_0xb095e6));continue;}const _0x237d00=new te(_0xb095e6,_0x2ea026),_0x38b121=new _0x335d66(_0xb095e6),_0xcfbad0=_0xdcc0a4['model'];_0x38b121['bind'](...Object['keys'](_0xcfbad0))['to'](_0xcfbad0),_0x38b121['delegate']('execute')['to'](_0x2ea026),_0x38b121['on']('execute',()=>{this['editor']['execute'](_0xcfbad0['commandName']),this['editor']['editing']['view']['focus']();}),_0x237d00['children']['add'](_0x38b121),_0x4caca8['items']['add'](_0x237d00);}return _0x2ea026['bind']('isEnabled')['to'](_0x5e995d,'isEnabled'),_0x2ea026['panelView']['children']['add'](_0x4caca8),_0x2ea026;}['_initializeController'](_0x471e6f){const _0x4425b6=this['editor'],_0x453ae2=_0x4425b6['config'],_0xd12a23=_0x4425b6['plugins']['get']('Annotations'),_0x132687=_0x4425b6['plugins']['get']('CommentsRepository'),_0x444d46=_0x4425b6['plugins']['get']('EditorAnnotations'),_0x1e3070=_0x4425b6['plugins']['get'](_0x466894)['me'],_0x21db17=_0x453ae2['get']('trackChanges')['SuggestionThreadView'],_0x399ed5=_0x453ae2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x188be5,CommentThreadInputView:_0x152cd0}=_0x4425b6['plugins']['get']('CommentsUI');let _0x58056d,_0x198f47,_0x592606;this['_annotationViews']['has'](_0x471e6f['id'])?(_0x198f47=this['_annotationViews']['get'](_0x471e6f['id']),_0x58056d=_0x198f47['mainView']):(_0x58056d=new _0x21db17(_0x4425b6['locale'],_0x471e6f,_0x1e3070,{'disableComments':this['_disableComments'],'editorConfig':_0x453ae2['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x453ae2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x453ae2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x453ae2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x375b65(_0x453ae2['get']('locale')),'CommentView':_0x453ae2['get']('comments')['CommentView'],'CommentsListView':_0x188be5,'CommentThreadInputView':_0x152cd0,'SuggestionView':_0x399ed5}),_0x58056d['suggestionView']['acceptButton']['on']('execute',()=>{_0x4425b6['editing']['view']['focus']();}),_0x58056d['suggestionView']['discardButton']['on']('execute',()=>{_0x4425b6['editing']['view']['focus']();}),_0x198f47=_0xd12a23['createAnnotationView'](this['editor']['locale'],_0x58056d),_0x198f47['bind']('isDirty')['to'](_0x58056d,'isDirty'),_0x198f47['bind']('length')['to'](_0x58056d),_0x198f47['bind']('type')['to'](_0x58056d,'type',_0x4b6413=>'suggestion-'+_0x4b6413),_0x58056d['on']('escape',()=>{_0x592606['fire']('escape');}),this['_annotationViews']['set'](_0x471e6f['id'],_0x198f47));const _0x32277c=_0x132687['createCommentThreadController'](_0x471e6f['commentThread'],_0x58056d),_0x463941=new ae(_0x4425b6,_0x471e6f,_0x58056d,_0x32277c),_0xd1b147=_0x471e6f['getAllAdjacentSuggestions']()['filter'](_0xeadc63=>_0xeadc63['isInContent']);_0x58056d['descriptionParts']=_0x4425b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd1b147),this['_suggestionToController']['set'](_0x471e6f,_0x463941),this['_viewToController']['set'](_0x58056d,_0x463941),_0x592606=_0xd12a23['createAnnotation']({'view':_0x198f47,'target':()=>{const _0x223924=[],_0x5ccc66=_0x471e6f['getAllAdjacentSuggestions']()['filter'](_0x4d8252=>_0x4d8252['isInContent']);for(const _0x2bf559 of _0x5ccc66)_0x223924['push'](..._0x2bf559['getMarkers']());return _0x38cdbd(_0x4425b6['editing'],_0x223924);},'type':()=>'suggestion-'+_0x463941['view']['type']}),_0x132687['_bindAnnotationToEditors'](_0x58056d,_0x592606),_0xd12a23['add'](_0x592606),_0x444d46['registerAnnotation'](_0x592606);}['_destroyController'](_0x29e5ea){const _0x38c381=this['editor']['plugins']['get']('CommentsRepository'),_0x48cb4a=this['editor']['plugins']['get']('Annotations'),_0x5c13a8=this['_suggestionToController']['get'](_0x29e5ea),_0xd715c3=_0x5c13a8['view'],_0x550aa9=_0x48cb4a['getByInnerView'](_0xd715c3);_0x38c381['_unbindEditors'](_0xd715c3),_0x550aa9&&_0x48cb4a['remove'](_0x550aa9),this['_suggestionToController']['delete'](_0x29e5ea),this['_viewToController']['delete'](_0xd715c3),_0x5c13a8['destroy']();}['_updateController'](_0x34b272){if(!_0x34b272['isInContent']||!this['_suggestionToController']['has'](_0x34b272))return;const _0xe39af2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ca0af=this['_suggestionToController']['get'](_0x34b272),_0x8e8f4b=_0x34b272['getAllAdjacentSuggestions']();_0x4ca0af['view']['descriptionParts']=_0xe39af2['descriptionFactory']['getDescriptions'](_0x8e8f4b);}['destroy'](){for(const _0x53cd25 of this['_suggestionToController']['keys']())this['_destroyController'](_0x53cd25);for(const _0xd58019 of this['_annotationViews']['values']())_0xd58019['mainView']['destroy']();super['destroy']();}}function me(_0x5a4247){return'model'in _0x5a4247;}class k extends _0x59cc13{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x27e513){this['editor']['plugins']['get'](p)['adapter']=_0x27e513;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1da146){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1da146);}['getSuggestions']({skipNotAttached:_0x6c669f=!0x1,toJSON:_0xe182b4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x6c669f,'toJSON':_0xe182b4});}['getSuggestion'](_0x3e1193){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3e1193);}}const T=['Pagination'];class P extends _0x59cc13{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x46f80d=this['editor'];if(_0x46f80d['config']['define']('trackChangesData.editorCreator',_0x5c8ff2=>{const _0x566a05=_0x46f80d['model']['document']['getRootNames']()['reduce']((_0x142a68,_0x594a43)=>(_0x142a68[_0x594a43]='',_0x142a68),{});return _0x46f80d['constructor']['create'](_0x566a05,_0x5c8ff2);}),'function'!=typeof _0x46f80d['config']['get']('trackChangesData')['editorCreator'])throw new _0x427e50('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x505747){return N(this['editor'],!0x0,_0x505747);}['getDataWithDiscardedSuggestions'](_0x984c2){return N(this['editor'],!0x1,_0x984c2);}}class D extends _0x59cc13{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x33b802){super(_0x33b802),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(_0x2119c7){return void 0x0!==_0x2119c7['getRootsAttributes'];}async function N(_0x300fe0,_0x575cb2,_0x134cb2){const _0x130cff=_0x40a82b(_0x300fe0,T);_0x130cff['plugins']['push'](p,D),_0x130cff['rootsAttributes']=v(_0x300fe0)?_0x300fe0['getRootsAttributes']():void 0x0;const _0x5cec52=document['createDocumentFragment'](),_0x2e479a=_0x300fe0['config']['get']('trackChangesData')['editorCreator'],_0x4d1cfd=await _0x2e479a(_0x130cff,()=>function(_0x2bcb11){const _0x52eddb=document['createElement']('div');return _0x2bcb11['appendChild'](_0x52eddb),_0x52eddb;}(_0x5cec52));!function(_0x690596,_0xd33486){const _0x39719f=_0x690596['model']['document']['getRootNames']()['reduce']((_0x5b9048,_0x29517a)=>(_0x5b9048[_0x29517a]=_0x690596['data']['get']({'rootName':_0x29517a}),_0x5b9048),{}),_0x191f06=_0x690596['plugins']['get']('Users')['users']['map'](_0x37a976=>({'id':_0x37a976['id'],'name':_0x37a976['name']})),_0x45a70d=_0x690596['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x402bef=_0x690596['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x402dfd=_0xd33486['plugins']['get']('Users'),_0x4ce8cb=_0xd33486['plugins']['get']('TrackChangesEditing'),_0x3bbac8=_0xd33486['plugins']['get']('CommentsRepository');for(const _0x230148 of _0x3bbac8['getCommentThreads']())_0x230148['remove']();for(const _0x41fc2a of _0x191f06)_0x402dfd['getUser'](_0x41fc2a['id'])||_0x402dfd['addUser'](_0x41fc2a);_0x402dfd['me']||_0x402dfd['useAnonymousUser']();for(const _0x1ec5bf of _0x402bef)_0x3bbac8['addCommentThread'](_0x1ec5bf);for(const _0x752d6 of _0x45a70d)_0x4ce8cb['addSuggestionData'](_0x752d6);_0xd33486['data']['set'](_0x39719f);}(_0x300fe0,_0x4d1cfd),_0x4d1cfd['execute'](_0x575cb2?'acceptAllSuggestions':'discardAllSuggestions');const _0x18bc75=v(_0x4d1cfd)?_0x4d1cfd['getFullData'](_0x134cb2):_0x4d1cfd['data']['get'](_0x134cb2);return await _0x4d1cfd['destroy'](),_0x18bc75;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|