@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240817.0 → 0.0.0-nightly-20240818.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
|
-
_0x323fd6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x32b5b3,_0x373761){super(),this['id']=_0x373761['id'],this['type']=_0x373761['type'],this['subType']=_0x373761['subType']||null,this['author']=_0x373761['author'],this['creator']=_0x373761['creator']||_0x373761['author'],this['isExternal']=Boolean(_0x373761['attributes']&&_0x373761['attributes']['@external']),this['data']=null,this['_model']=_0x32b5b3,this['_onAccept']=_0x373761['onAccept'],this['_onDiscard']=_0x373761['onDiscard'],this['_onAttributesChange']=_0x373761['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x373761['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 _0x4964cb=this;for(;_0x4964cb['previous'];)_0x4964cb=_0x4964cb['previous'];return _0x4964cb;}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'](_0x50c3a6){this['_markerNames']['add'](_0x50c3a6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x477542=>this['_model']['markers']['get'](_0x477542))['filter'](_0x4829d8=>_0x4829d8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2d61ed=>{for(const _0x2439ad of this['getMarkers']())_0x2d61ed['removeMarker'](_0x2439ad);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fbd71){this['_model']['change'](_0x41587b=>{_0x41587b['removeMarker'](_0x2fbd71);}),this['_markerNames']['delete'](_0x2fbd71);}['addRange'](_0x129b1b){const _0x1021f6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1021f6),this['_model']['change'](_0x79c0ba=>{_0x79c0ba['addMarker'](_0x1021f6,{'range':_0x129b1b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a6c0f){for(const _0x2ef534 of this['getRanges']())if(_0x2ef534['isIntersecting'](_0x3a6c0f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32b0a8=>_0x32b0a8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x422299,_0x1867d2)=>[..._0x422299,..._0x1867d2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x7b47c5=this['getRanges']();if(0x1!=_0x7b47c5['length'])return null;const _0x2c019a=_0x7b47c5[0x0],_0x243282=_0x2c019a['start']['nodeAfter'],_0x419ea8=_0x2c019a['end']['nodeBefore'];return _0x243282 instanceof _0x32462f?_0x243282!=_0x419ea8?null:_0x243282: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 _0x42ffc5=[];let _0x46f37b=this['head'];for(;_0x46f37b;)_0x42ffc5['push'](_0x46f37b),_0x46f37b=_0x46f37b['next'];return _0x42ffc5;}['setAttribute'](_0x2ae9da,_0x212306){const _0x3b08c1=_0x500f0a(this['attributes']);_0x4ed03a(_0x3b08c1,_0x2ae9da,_0x212306),_0x26e437(_0x3b08c1,this['attributes'])||(this['attributes']=_0x3b08c1,this['_onAttributesChange'](_0x3b08c1));}['removeAttribute'](_0xb4d5d2){const _0x4e4826=_0x500f0a(this['attributes']);_0x5cdf0c(_0x4e4826,_0xb4d5d2),_0x26e437(_0x4e4826,this['attributes'])||(this['attributes']=_0x4e4826,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 _0xca03d8()['substr'](0x1,0x5);}}function o(_0x1a8f61,_0x11af7b,_0x4b1ddb){const t=_0x1a8f61['t'];switch(_0x11af7b){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',_0x4b1ddb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b1ddb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b1ddb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b1ddb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b1ddb);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',_0x4b1ddb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b1ddb);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',_0x4b1ddb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b1ddb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b1ddb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b1ddb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b1ddb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b1ddb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b1ddb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b1ddb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b1ddb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b1ddb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b1ddb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b1ddb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b1ddb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b1ddb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b1ddb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b1ddb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b1ddb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b1ddb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b1ddb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b1ddb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b1ddb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b1ddb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b1ddb);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'},_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b1ddb);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'},_0x4b1ddb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b1ddb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b1ddb);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'},_0x4b1ddb);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'},_0x4b1ddb);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'},_0x4b1ddb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b1ddb);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'},_0x4b1ddb);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'},_0x4b1ddb);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'},_0x4b1ddb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x11af7b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4fedb9,_0x5c902b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4fedb9,this['_locale']=_0x5c902b;}['getDescriptions'](_0x183d2b){const _0x1b68a7=[],_0x51e03f=new Set(),_0x4d70ce=new Set();for(let _0x1a76f9=0x0;_0x1a76f9<_0x183d2b['length'];_0x1a76f9++){const _0xcf1d34=_0x183d2b[_0x1a76f9];if(!_0xcf1d34['isInContent'])continue;const _0x268f1b=this['_handleCustomCallbackDescription'](_0xcf1d34);if(_0x268f1b){if(null!=_0xcf1d34['subType']){if(_0x51e03f['has'](_0xcf1d34['subType']))continue;_0x51e03f['add'](_0xcf1d34['subType']);}_0x1b68a7['push'](_0x268f1b);}else{if('attribute'!=_0xcf1d34['type'])'insertion'!=_0xcf1d34['type']&&'deletion'!=_0xcf1d34['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b68a7,_0xcf1d34,_0x183d2b[_0x1a76f9+0x1]);else{const _0x303471=_0xcf1d34['data']['key'];if(_0x4d70ce['has'](_0x303471))continue;_0x4d70ce['add'](_0xcf1d34['data']['key']),_0x303471==m?this['_handleRenameSuggestionDescription'](_0x1b68a7,_0xcf1d34):this['_handleAttributeSuggestionDescription'](_0x1b68a7,_0xcf1d34);}}}return this['_resolveDescriptionItems'](_0x1b68a7);}['registerDescriptionCallback'](_0x56793c){this['_customCallbacks']['push'](_0x56793c);}['registerElementLabel'](_0x31702b,_0x2ba1f0,_0x385893=_0x37f3b3['normal']){'function'==typeof _0x31702b?_0x53efb0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31702b,'label':_0x2ba1f0,'priority':_0x385893}):this['_itemLabels']['set'](_0x31702b,_0x2ba1f0);}['registerAttributeLabel'](_0x53d344,_0x24ea7f){this['_attributeLabels']['set'](_0x53d344,_0x24ea7f);}['getItemLabel'](_0x119855,_0x319896=0x1){let _0x204a8c;for(const _0x1e3d78 of this['_itemLabelsCallbacks'])if(_0x1e3d78['matchingCallback'](_0x119855)){_0x204a8c=_0x1e3d78['label'];break;}return _0x204a8c||(_0x204a8c=this['_itemLabels']['get'](_0x119855['name'])),_0x204a8c?_0x204a8c(_0x319896):0x1!==_0x319896?_0x319896+'\x20'+_0x119855['name']+'s':''+_0x119855['name'];}['_addDescriptionItems'](_0x16f2dd,_0x126a99){const _0x27080a=_0x126a99['getFirstRange']()['getWalker'](),_0x214e78='insertion'==_0x126a99['type']?'add':'remove';for(const _0x2d8099 of _0x27080a){const _0x15f7b7=_0x2d8099['item'],_0x126113=_0x16f2dd[_0x16f2dd['length']-0x1];if(_0x15f7b7['is']('$textProxy'))_0x126113&&_0x126113['type']['indexOf']('Container')>-0x1&&_0x16f2dd['pop'](),_0x126113&&'text'==_0x126113['type']?_0x126113[_0x214e78]+=_0x15f7b7['data']:_0x16f2dd['push']({'type':'text','add':'add'==_0x214e78?_0x15f7b7['data']:'','remove':'remove'==_0x214e78?_0x15f7b7['data']:''});else{if(this['_schema']['isObject'](_0x15f7b7)){const _0x304972=_0x15f7b7;if(_0x126113&&_0x126113['type']['indexOf']('Container')>-0x1&&_0x16f2dd['pop'](),'elementEnd'==_0x2d8099['type'])continue;_0x126113&&_0x126113['type']==_0x214e78+'Object'&&_0x126113['element']['name']==_0x304972['name']?_0x126113['quantity']++:_0x16f2dd['push']({'type':_0x214e78+'Object','element':_0x304972,'quantity':0x1}),_0x27080a['skip'](_0x5e27a7=>!('elementEnd'==_0x5e27a7['type']&&_0x5e27a7['item']==_0x15f7b7));}else{if(this['_schema']['checkChild'](_0x15f7b7,'$text')||_0x15f7b7['is']('element','softBreak')){const _0x48bfb4=_0x15f7b7;if('add'==_0x214e78&&'elementStart'==_0x2d8099['type']||'remove'==_0x214e78&&'elementEnd'==_0x2d8099['type'])continue;if(_0x126113&&-0x1==_0x126113['type']['indexOf']('Container')){'text'==_0x126113['type']&&(_0x126113[_0x214e78]+='\x0a');continue;}let _0x452ece;if(_0x452ece='add'==_0x214e78?_0x48bfb4['nextSibling']&&!this['_schema']['isObject'](_0x48bfb4['nextSibling'])?_0x48bfb4['nextSibling']:null:_0x48bfb4['previousSibling']&&!this['_schema']['isObject'](_0x48bfb4['previousSibling'])?_0x48bfb4['previousSibling']:null,_0x48bfb4['isEmpty']||_0x452ece&&_0x452ece['isEmpty']){const _0x5d7b98=_0x452ece&&_0x452ece['isEmpty']?_0x452ece:_0x48bfb4;_0x126113&&_0x126113['type']==_0x214e78+'EmptyContainer'&&_0x126113['element']['name']==_0x5d7b98['name']?_0x126113['quantity']++:_0x16f2dd['push']({'type':_0x214e78+'EmptyContainer','element':_0x5d7b98,'quantity':0x1});}else _0x16f2dd['push']({'type':_0x214e78+'Container','element':_0x48bfb4});}}}}}['_resolveDescriptionItems'](_0x2716e0){const _0x3f8c43=this['_locale'],_0x440f56=[],_0xaad6e2=[],_0x20415a=[];for(const _0x524b72 of _0x2716e0)switch(_0x524b72['type']){case'text':if(_0x524b72['add']=_0x524b72['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x524b72['remove']=_0x524b72['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x524b72['add']&&''!=_0x524b72['remove']){_0x440f56['push']({'type':'replace','content':o(_0x3f8c43,'REPLACE_TEXT',['\x22'+_0x524b72['remove']+'\x22','\x22'+_0x524b72['add']+'\x22'])});continue;}if(null!=_0x524b72['add']['match'](/^ +$/)){_0x440f56['push']({'type':'insertion','content':o(_0x3f8c43,'*Insert:*\x20%0',o(_0x3f8c43,'ELEMENT_SPACE',_0x524b72['add']['length']))});continue;}if(null!=_0x524b72['remove']['match'](/^ +$/)){_0x440f56['push']({'type':'deletion','content':o(_0x3f8c43,'*Remove:*\x20%0',o(_0x3f8c43,'ELEMENT_SPACE',_0x524b72['remove']['length']))});continue;}if(''!=_0x524b72['add']){_0x440f56['push']({'type':'insertion','content':o(_0x3f8c43,'*Insert:*\x20%0','\x22'+_0x524b72['add']+'\x22')});continue;}_0x440f56['push']({'type':'deletion','content':o(_0x3f8c43,'*Remove:*\x20%0','\x22'+_0x524b72['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x440f56['push']({'type':'insertion','content':o(_0x3f8c43,'*Insert:*\x20%0',this['getItemLabel'](_0x524b72['element'],_0x524b72['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x440f56['push']({'type':'deletion','content':o(_0x3f8c43,'*Remove:*\x20%0',this['getItemLabel'](_0x524b72['element'],_0x524b72['quantity']))});continue;case'addContainer':_0x440f56['push']({'type':'insertion','content':o(_0x3f8c43,'*Split:*\x20%0',this['getItemLabel'](_0x524b72['element'],_0x524b72['quantity']))});continue;case'removeContainer':_0x440f56['push']({'type':'deletion','content':o(_0x3f8c43,'*Merge:*\x20%0',this['getItemLabel'](_0x524b72['element'],_0x524b72['quantity']))});continue;case'addFormat':_0xaad6e2['push'](_0x524b72['key']);continue;case'removeFormat':_0x20415a['push'](_0x524b72['key']);continue;default:_0x440f56['push'](_0x524b72);}if(_0xaad6e2['length']){const _0x4ab8ea=_0xaad6e2['map'](_0xba7c4a=>this['_attributeLabels']['has'](_0xba7c4a)?this['_attributeLabels']['get'](_0xba7c4a):_0xba7c4a)['join'](',\x20');_0x440f56['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4ab8ea)});}if(_0x20415a['length']){const _0x1d001b=_0x20415a['map'](_0x142bcd=>this['_attributeLabels']['has'](_0x142bcd)?this['_attributeLabels']['get'](_0x142bcd):_0x142bcd)['join'](',\x20');_0x440f56['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d001b)});}return _0x440f56;}['_handleCustomCallbackDescription'](_0x532d4a){for(const _0x10255f of this['_customCallbacks']){const _0x2dd375=_0x10255f(_0x532d4a);if(_0x2dd375&&'type'in _0x2dd375)return _0x2dd375;}}['_handleAttributeSuggestionDescription'](_0x206f86,_0x10061a){const _0x47793d=_0x10061a['data'],_0x2c349a=void 0x0===_0x47793d['newValue']?'removeFormat':'addFormat';_0x206f86['push']({'type':_0x2c349a,'key':_0x47793d['key']});}['_handleRenameSuggestionDescription'](_0x2ce7d9,_0x46823d){_0x2ce7d9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46823d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1f873e,_0x18b0d6,_0x5136ca){if(this['_addDescriptionItems'](_0x1f873e,_0x18b0d6),_0x5136ca&&_0x5136ca['getFirstRange']()&&!_0x18b0d6['getFirstRange']()['end']['isEqual'](_0x5136ca['getFirstRange']()['start'])){const _0x228c25=_0x1f873e[_0x1f873e['length']-0x1],_0x242862='insertion'==_0x18b0d6['type']?'add':'remove';_0x228c25&&'text'==_0x228c25['type']&&(_0x228c25[_0x242862]+='\x0a');}}}class V extends _0x36b02c{['afterInit'](){const _0x319f70=this['editor'],_0x14be9c=_0x319f70['plugins']['get']('TrackChangesEditing');_0x319f70['commands']['get']('showAIAssistant')&&_0x14be9c['enableCommand']('showAIAssistant');}}class U extends _0x36b02c{['afterInit'](){const _0x2a7e60=this['editor'],_0x467f86=_0x2a7e60['locale'];if(!_0x2a7e60['plugins']['has']('AlignmentEditing'))return;const _0x20fe4d=_0x2a7e60['plugins']['get']('TrackChangesEditing');_0x20fe4d['enableDefaultAttributesIntegration']('alignment'),_0x20fe4d['registerBlockAttribute']('alignment'),_0x20fe4d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x467f86,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5014a5=this['editor'],_0x518b1d=_0x5014a5['locale'];_0x5014a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4a35=>{if('formatBlock'!=_0x5e4a35['type'])return;const {data:_0x1ec60c}=_0x5e4a35;if(_0x1ec60c&&'alignment'==_0x1ec60c['commandName']){const _0x1a4cf0=_0x1ec60c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x518b1d,'*Format:*\x20%0',function(_0x1887ea){switch(_0x1887ea){case'left':return o(_0x518b1d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x518b1d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x518b1d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x518b1d,'FORMAT_JUSTIFY_TEXT');}}(_0x1a4cf0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x36b02c{['afterInit'](){const _0x1a29a8=this['editor'],_0x49a860=_0x1a29a8['plugins']['get']('TrackChangesEditing'),_0xa3de0b=_0x1a29a8['locale'];for(const _0x3ccd0a of ti){if(!_0x1a29a8['plugins']['has'](_0x3ccd0a))continue;const _0x314a1f=_0x3ccd0a['slice'](0x0,-0x7)['toLowerCase'](),_0x33d36c='FORMAT_'+_0x314a1f['toUpperCase']();_0x49a860['enableDefaultAttributesIntegration'](_0x314a1f),_0x49a860['registerInlineAttribute'](_0x314a1f),_0x49a860['descriptionFactory']['registerAttributeLabel'](_0x314a1f,o(_0xa3de0b,_0x33d36c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cf39f=this['editor'],_0x39c330=_0x5cf39f['locale'],_0x3a0fcd=_0x5cf39f['plugins']['get']('TrackChangesEditing');function _0xc3fee8(_0x3ae919,_0x209d26){_0x3a0fcd['descriptionFactory']['registerDescriptionCallback'](_0x2ceba0=>{if('formatInline'!=_0x2ceba0['type'])return;const {data:_0x5b8cd5}=_0x2ceba0;return _0x5b8cd5&&_0x5b8cd5['commandName']===_0x3ae919?_0x5b8cd5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39c330,'*Format:*\x20%0',_0x209d26)}:{'type':'format','content':o(_0x39c330,'*Remove\x20format:*\x20%0',_0x209d26)}:void 0x0;});}_0xc3fee8('bold',o(_0x39c330,'FORMAT_BOLD')),_0xc3fee8('italic',o(_0x39c330,'FORMAT_ITALIC')),_0xc3fee8('underline',o(_0x39c330,'FORMAT_UNDERLINE')),_0xc3fee8('code',o(_0x39c330,'FORMAT_CODE')),_0xc3fee8('strikethrough',o(_0x39c330,'FORMAT_STRIKETHROUGH')),_0xc3fee8('subscript',o(_0x39c330,'FORMAT_SUBSCRIPT')),_0xc3fee8('superscript',o(_0x39c330,'FORMAT_SUPERSCRIPT'));}}class F extends _0x36b02c{['afterInit'](){const _0x81e656=this['editor'],_0x2b9d84=_0x81e656['locale'];if(!_0x81e656['plugins']['has']('BlockQuoteEditing'))return;const _0x76c4e5=_0x81e656['plugins']['get']('TrackChangesEditing'),_0x23f685=this['editor']['commands']['get']('blockQuote');_0x76c4e5['enableCommand']('blockQuote',(_0xb184b9,_0x6f562d={})=>{const _0x2f7072=this['editor']['model']['document']['selection'],_0x38f331=_0x6f562d&&void 0x0!==_0x6f562d['forceValue']?_0x6f562d['forceValue']:!_0x23f685['value'];let _0x197c12=[];if(_0x38f331){const _0x14481f=Array['from'](_0x2f7072['getSelectedBlocks']())['filter'](_0x50cd1c=>oo(_0x50cd1c)||function(_0x5dc5f8,_0x262935){const _0xc7eb1e=_0x262935['checkChild'](_0x5dc5f8['parent'],'blockQuote'),_0xbac659=_0x262935['checkChild'](['$root','blockQuote'],_0x5dc5f8);return _0xc7eb1e&&_0xbac659;}(_0x50cd1c,this['editor']['model']['schema']));_0x197c12=to(_0x14481f,_0x81e656['model']);}else{const _0x55ced0=Array['from'](_0x2f7072['getSelectedBlocks']())['filter'](_0x14a697=>oo(_0x14a697));_0x197c12=to(_0x55ced0,_0x81e656['model']);}_0x81e656['model']['change'](()=>{for(const _0x43f98c of _0x197c12)_0x76c4e5['markBlockFormat'](_0x43f98c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38f331}]});});}),_0x76c4e5['descriptionFactory']['registerDescriptionCallback'](_0x4bace1=>{const {data:_0x7b6a1d}=_0x4bace1;if(_0x7b6a1d&&'blockQuote'==_0x7b6a1d['commandName']){const _0x5a1afe=o(_0x2b9d84,'ELEMENT_BLOCK_QUOTE');return _0x7b6a1d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b9d84,'*Set\x20format:*\x20%0',_0x5a1afe)}:{'type':'format','content':o(_0x2b9d84,'*Remove\x20format:*\x20%0',_0x5a1afe)};}});}}function oo(_0x2210cf){return'blockQuote'==_0x2210cf['parent']['name'];}class L extends _0x36b02c{['afterInit'](){const _0x5d6b80=this['editor'];_0x5d6b80['plugins']['has']('CaseChange')&&(_0x5d6b80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d6b80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d6b80['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x36b02c{['afterInit'](){const _0x4cc893=this['editor'];_0x4cc893['commands']['get']('ckbox')&&_0x4cc893['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x36b02c{['afterInit'](){const _0x1b8264=this['editor'];if(!_0x1b8264['plugins']['has']('CodeBlock'))return;const _0x38f654=_0x1b8264['plugins']['get']('TrackChangesEditing'),_0x209780=_0x1b8264['locale'],_0x4d2e72=_0x1b8264['config']['get']('codeBlock')['languages'],_0x31ecd9=_0x1b8264['commands']['get']('codeBlock');_0x38f654['enableCommand']('indentCodeBlock'),_0x38f654['enableCommand']('outdentCodeBlock'),_0x38f654['enableCommand']('codeBlock',(_0x7099b4,_0x2c50ef={})=>{const _0x43d3d3=_0x1b8264['model'],_0x8e6703=_0x1b8264['model']['document']['selection'],_0xfe4d29=_0x2c50ef&&void 0x0!==_0x2c50ef['forceValue']?_0x2c50ef['forceValue']:!_0x31ecd9['value'];let _0x4ee448;_0x2c50ef['language']||(_0x2c50ef['language']=_0x4d2e72[0x0]['language']),_0x4ee448=_0xfe4d29?Array['from'](_0x8e6703['getSelectedBlocks']())['filter'](_0x46a96f=>eo(_0x46a96f)||function(_0x130884,_0x345855){if(_0x130884['is']('rootElement')||_0x345855['isLimit'](_0x130884))return!0x1;return _0x345855['checkChild'](_0x130884['parent'],'codeBlock');}(_0x46a96f,_0x43d3d3['schema'])):Array['from'](_0x8e6703['getSelectedBlocks']())['filter'](_0x164a20=>eo(_0x164a20));const _0x132b0e=to(_0x4ee448,_0x43d3d3);_0x43d3d3['change'](()=>{for(const _0x3c4581 of _0x132b0e)_0x38f654['markBlockFormat'](_0x3c4581,{'commandName':'codeBlock','commandParams':[{..._0x2c50ef,'forceValue':_0xfe4d29}],'formatGroupId':'blockName'});});}),(_0x38f654['descriptionFactory']['registerElementLabel']('codeBlock',_0x251453=>o(_0x209780,'ELEMENT_CODE_BLOCK',_0x251453)),_0x38f654['descriptionFactory']['registerDescriptionCallback'](_0x37e152=>{if('formatBlock'!=_0x37e152['type'])return;const _0x38511a=_0x209780['t'],{data:_0x28a423}=_0x37e152;if(!_0x28a423||'codeBlock'!=_0x28a423['commandName'])return;const _0x350b7f=_0x28a423['commandParams'][0x0]['language'],_0x189dc7=_0x38511a(_0x4d2e72['find'](_0x27e3ae=>_0x27e3ae['language']===_0x350b7f)['label'])['toLowerCase']();return _0x28a423['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x209780,'*Set\x20format:*\x20%0',o(_0x209780,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x189dc7+')')}:{'type':'format','content':o(_0x209780,'*Remove\x20format:*\x20%0',o(_0x209780,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x170c16){return'codeBlock'==_0x170c16['name'];}class q extends _0x36b02c{['afterInit'](){const _0x49c8e4=this['editor'];if(!_0x49c8e4['plugins']['has']('CommentsEditing'))return;_0x49c8e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2a0261,_0x554488,_0x33aeef){const _0x480b1a=[];for(const _0x2b92fd of _0x554488['getItems']())_0x2b92fd['hasAttribute'](_0x2a0261)&&_0x480b1a['push'](_0x33aeef['createRangeOn'](_0x2b92fd));return _0x480b1a;}function _e(_0x4be1b5,_0x2b044b,{showActiveMarker:_0x44fe04=!0x0}={}){const _0x3139df=_0x4be1b5['plugins']['get']('TrackChangesEditing');return(_0x164816,_0x5e83a4,_0x55b5d8)=>{if(!_0x55b5d8['consumable']['test'](_0x5e83a4['markerRange'],_0x164816['name']))return;const _0x450957=_0x5e83a4['markerRange']['getWalker'](),_0x11290e=_0x5e83a4['markerRange']['start'],_0x2c8cfe=_0x4be1b5['model']['schema'];let _0x5c4cc3=null,_0x5d2645=null,_0x4f2ecd=!0x1,_0x4eef0f=!0x1;for(const _0x3d0177 of _0x450957){const _0x2c71b0=_0x3d0177['item'];_0x4f2ecd=_0x4f2ecd||_0x2c8cfe['isContent'](_0x2c71b0);const _0x23d178=_0x55b5d8['mapper']['toViewElement'](_0x2c71b0);if(_0x23d178&&_0x23d178['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d0177['type']&&(_0x2c8cfe['isBlock'](_0x2c71b0)&&!_0x2c8cfe['isLimit'](_0x2c71b0)&&(_0x2c71b0['nextSibling']||_0x11290e['isAtEnd']?_0x5c4cc3&&_0x5c4cc3['parent']==_0x2c71b0||(_0x5c4cc3=_0x2c71b0,_0xfeb8f3(_0x3d0177['previousPosition']),_0x4eef0f=!0x0):_0x5d2645=_0x5d2645||_0x3d0177['previousPosition']));}function _0xfeb8f3(_0x2ff291){const {authorId:_0x3d5411}=_0x3139df['_splitMarkerName'](_0x5e83a4['markerName']),_0x25cfaf=_0x55b5d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b044b,'data-author-id':_0x3d5411}),_0x5e979a=_0x55b5d8['mapper']['toViewPosition'](_0x2ff291);_0x44fe04&&_0x3139df['activeMarkers']['includes'](_0x5e83a4['markerName'])&&_0x55b5d8['writer']['addClass']('ck-suggestion-marker--active',_0x25cfaf),_0x55b5d8['writer']['insert'](_0x5e979a,_0x25cfaf),_0x55b5d8['mapper']['bindElementToMarker'](_0x25cfaf,_0x5e83a4['markerName']);}_0x4f2ecd||_0x4eef0f||!_0x5d2645||_0xfeb8f3(_0x5d2645);};}class z extends _0x36b02c{static get['requires'](){return[_0x4122a9];}['init'](){const _0x4dc00a=this['editor'],_0x119bd0=_0x4dc00a['plugins']['get']('TrackChangesEditing');_0x119bd0['enableCommand']('delete');const _0x41db29=_0x4dc00a['commands']['get']('deleteForward');_0x119bd0['enableCommand']('deleteForward',(_0x590e13,_0xfe4a5f={})=>{const _0x516e31=_0x4dc00a['model']['createSelection'](_0x4dc00a['model']['document']['selection']);_0x516e31['isCollapsed']&&_0x4dc00a['model']['modifySelection'](_0x516e31,{'direction':'forward','unit':_0xfe4a5f['unit']});const _0x3a8377=_0x516e31['getFirstRange'](),_0x4a57a5=_0x3f290a['fromRange'](_0x3a8377);let _0x244e52;_0x590e13(_0xfe4a5f),_0x244e52='$graveyard'==_0x4a57a5['root']['rootName']?_0x4dc00a['model']['createRange'](_0x3a8377['start']):_0x4dc00a['model']['createRange'](_0x4a57a5['start'],_0x4a57a5['end']),_0x4a57a5['detach'](),_0x4dc00a['model']['enqueueChange'](_0x41db29['buffer']['batch'],_0x237c9a=>{_0x41db29['buffer']['lock'](),_0x237c9a['setSelection'](_0x237c9a['createRange'](_0x244e52['end'])),_0x41db29['buffer']['unlock']();});}),_0x4dc00a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4dc00a,'merge'),{'priority':'high'}),_0x4dc00a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2c07a8,_0x207c46,_0xfab962)=>{_0xfab962['options']['showSuggestionHighlights']&&_e(_0x4dc00a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2c07a8,_0x207c46,_0xfab962);},{'priority':'high'}),_0x4dc00a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x8c727,_0x25c2ad,_0x1c30e7)=>{const _0x44ca97=_0x1c30e7['mapper']['markerNameToElements'](_0x25c2ad['markerName']);if(_0x44ca97){for(const _0x4dd84f of _0x44ca97)_0x4dd84f['is']('uiElement')&&(_0x1c30e7['mapper']['unbindElementFromMarkerName'](_0x4dd84f,_0x25c2ad['markerName']),_0x1c30e7['writer']['remove'](_0x4dd84f));}},{'priority':'high'});}}class K extends _0x36b02c{['afterInit'](){const _0x1e6271=this['editor'];if(!_0x1e6271['plugins']['has']('ListEditing'))return;const _0xe640a5=_0x1e6271['locale'],_0x1fd1c5=_0x1e6271['plugins']['get']('TrackChangesEditing'),_0x1faee8=_0x1e6271['plugins']['has']('TodoListEditing'),_0x4e7fe2=!!_0x1e6271['config']['get']('list.multiBlock');function _0x281817(_0x3a2d81){return{'type':'format','content':''+o(_0xe640a5,'*Set\x20format:*\x20%0',_0x3a2d81)};}function _0x45809b(_0x1fcf0b){return{'type':'format','content':''+o(_0xe640a5,'*Remove\x20format:*\x20%0',_0x1fcf0b)};}_0x1fd1c5['enableDefaultAttributesIntegration']('numberedList'),_0x1fd1c5['enableDefaultAttributesIntegration']('bulletedList'),_0x1fd1c5['enableDefaultAttributesIntegration']('customNumberedList'),_0x1fd1c5['enableDefaultAttributesIntegration']('customBulletedList'),_0x1fd1c5['enableDefaultAttributesIntegration']('indentList'),_0x1fd1c5['enableDefaultAttributesIntegration']('outdentList'),_0x1fd1c5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1fd1c5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1fd1c5['registerBlockAttribute']('listItemId'),_0x1fd1c5['registerBlockAttribute']('listType'),_0x1fd1c5['registerBlockAttribute']('listIndent'),_0x4e7fe2&&(_0x1fd1c5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1fd1c5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1faee8&&(_0x1fd1c5['enableDefaultAttributesIntegration']('todoList'),_0x1fd1c5['enableDefaultAttributesIntegration']('checkTodoList'),_0x1fd1c5['registerBlockAttribute']('todoListChecked'),_0x1fd1c5['descriptionFactory']['registerDescriptionCallback'](_0x3e55f8=>{const {data:_0xb9b61b}=_0x3e55f8;if(_0xb9b61b&&'todoListChecked'==_0xb9b61b['key'])return{'type':'format','content':_0xb9b61b['newValue']?o(_0xe640a5,'*Check\x20item*'):o(_0xe640a5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x545a38=>{if(_0x545a38['batch']['isUndo'])return!0x1;let _0x4fc21c=!0x1;const _0x24311c=_0x1fd1c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x143685=>'todoListChecked'===_0x1fd1c5['_getAttributeKey'](_0x143685));for(const _0x1983c6 of _0x24311c){'todo'!=_0x1983c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1fd1c5['_findSuggestions'](_0x1983c6['getFirstRange'](),'attribute')['find'](_0x1a9866=>'listType'===_0x1fd1c5['_getAttributeKey'](_0x1a9866['suggestion']))||(_0x545a38['removeMarker'](_0x1983c6['getFirstMarker']()),_0x4fc21c=!0x0));}return _0x4fc21c;})),_0x1fd1c5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xe640a5,'FORMAT_INDENT'));const _0x2136cc={'type':'format','content':''};_0x1fd1c5['descriptionFactory']['registerDescriptionCallback'](_0x177a57=>{const {data:_0x1e42c9}=_0x177a57;if(!_0x1e42c9||'listType'!=_0x1e42c9['key'])return;let _0x134373=_0x177a57['head'];for(;_0x134373;){if(_0x134373['data']&&(('listStyle'==_0x134373['data']['key']||'listMarkerStyle'==_0x134373['data']['key'])&&(_0x134373['data']['newValue']&&'default'!=_0x134373['data']['newValue']||'default'!=_0x134373['data']['oldValue']&&!_0x1e42c9['newValue'])||!_0x4e7fe2&&_0x134373['data']['key']==m))return _0x2136cc;_0x134373=_0x134373['next'];}if(null==_0x1e42c9['newValue'])switch(_0x1e42c9['oldValue']){case'bulleted':return _0x45809b(o(_0xe640a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45809b(o(_0xe640a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45809b(o(_0xe640a5,'ELEMENT_TODO_LIST'));}switch(_0x1e42c9['newValue']){case'bulleted':return _0x281817(o(_0xe640a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x281817(o(_0xe640a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x281817(o(_0xe640a5,'ELEMENT_TODO_LIST'));}}),_0x1fd1c5['descriptionFactory']['registerDescriptionCallback'](_0x37454f=>{const {data:_0x585acf}=_0x37454f;if(_0x585acf&&'listIndent'==_0x585acf['key'])return null==_0x585acf['newValue']||null==_0x585acf['oldValue']&&0x0==_0x585acf['newValue']?_0x2136cc:void 0x0;}),_0x1fd1c5['descriptionFactory']['registerDescriptionCallback'](_0x4c4791=>{if('attribute'!=_0x4c4791['type'])return;const {data:_0x417148}=_0x4c4791;if(!_0x417148||'listItemId'!=_0x417148['key'])return;const _0x39cc28=Ee(_0x4c4791);return'newValue'==_0x39cc28?{'type':'format','content':o(_0xe640a5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39cc28?{'type':'format','content':o(_0xe640a5,'*Split:*\x20list\x20item')}:_0x2136cc;}),_0x1e6271['model']['document']['registerPostFixer'](_0x2a55f9=>this['listItemIdFixer'](_0x2a55f9)),_0x1e6271['model']['document']['registerPostFixer'](_0x45a132=>this['noTrackChangesFixer'](_0x45a132)),_0x1e6271['model']['document']['on']('change:data',(_0x57805f,_0x388dd7)=>{if(_0x388dd7['isUndo']||!_0x388dd7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2f51c0){if(_0x2f51c0['batch']['isUndo']||!_0x2f51c0['batch']['isLocal'])return!0x1;let _0x4b2c52=!0x1;const _0x3efca1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d4d68=>_0x1d4d68['data']&&'listItemId'==_0x1d4d68['data']['key'])['filter'](_0x4b6a86=>_0x4b6a86['data']['newValue']&&_0x4b6a86['data']['oldValue']);for(const _0x48d98f of _0x3efca1)Ee(_0x48d98f)||(_0x2f51c0['removeMarker'](_0x48d98f['getFirstMarker']()),_0x4b2c52=!0x0);return _0x4b2c52;}['noTrackChangesFixer'](_0x3a02bb){if(_0x3a02bb['batch']['isUndo']||!_0x3a02bb['batch']['isLocal'])return!0x1;const _0x3085dc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3085dc['trackChangesCommand']['value'])return!0x1;let _0x30a79f=!0x1;const _0x440dd7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x354d4a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x312dc1=>'attribute'==_0x312dc1['type'])['filter'](_0x7943f2=>_0x440dd7['includes'](_0x7943f2['attributeKey']));if(0x0==_0x354d4a['length'])return _0x30a79f;for(const _0x5b1533 of _0x354d4a){const _0x5ba49e=_0x3085dc['_findSuggestions'](_0x5b1533['range'],'attribute')['filter'](_0x5da896=>!_0x5da896['meta']['isNextTo'])['map'](_0x2e922a=>_0x2e922a['suggestion'])['filter'](_0xba518d=>{const _0x43fde5=_0x3085dc['_getAttributeKey'](_0xba518d);return _0x440dd7['includes'](_0x43fde5);});if(_0x5ba49e['length']){for(const _0x41a7c4 of _0x5ba49e)_0x3a02bb['removeMarker'](_0x41a7c4['getFirstMarker']());_0x30a79f=!0x0;}}return _0x30a79f;}['assureChains'](){const _0xa07cf2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fceee=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x237ee3;const _0x4ad24a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a6084=>{if(_0x3a6084['data']['oldRange']||!_0x3a6084['data']['newRange'])return null;if(!_0x3a6084['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x540876}=_0xa07cf2['_splitMarkerName'](_0x3a6084['name']);if(!_0xa07cf2['hasSuggestion'](_0x540876))return null;const _0x452170=_0xa07cf2['getSuggestion'](_0x540876);return _0x2fceee['includes'](_0x452170['data']['key']);})['map'](_0x37eedc=>{const {id:_0x5d07cd}=_0xa07cf2['_splitMarkerName'](_0x37eedc['name']),_0x544c67=_0xa07cf2['getSuggestion'](_0x5d07cd);return _0x237ee3=_0x544c67['attributes']['groupId'],_0x544c67['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4ad24a['size'])return;const _0x528a56=_0xa07cf2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26ebf4=>'attribute'==_0x26ebf4['type']&&_0x26ebf4['data']&&_0x2fceee['includes'](_0x26ebf4['data']['key'])&&_0x26ebf4['attributes']['groupId']!=_0x237ee3)['map'](_0x243908=>({'listItem':_0x243908['getFirstRange']()['start']['nodeAfter'],'groupId':_0x243908['attributes']['groupId']})),_0x39d56a=new Set();for(const {groupId:_0x2afd8c,listItem:_0x4f5132}of _0x528a56)_0x4ad24a['has'](_0x4f5132)&&_0x39d56a['add'](_0x2afd8c);for(const _0x1538b2 of _0xa07cf2['getSuggestions']())_0x39d56a['has'](_0x1538b2['attributes']['groupId'])&&_0x1538b2['setAttribute']('groupId',_0x237ee3);}['_supportLegacySuggestions'](){const _0x84fb=this['editor'],_0x53bd15=_0x84fb['locale'],_0x24bfa3=_0x84fb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x24bfa3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5861be,_0x491a6c){const _0x5c29f8=[];for(let _0x2d704a of _0x5861be)_0x2d704a['start']['nodeAfter']===_0x2d704a['end']['parent']&&(_0x2d704a=_0x84fb['model']['createRange'](_0x84fb['model']['createPositionAt'](_0x2d704a['start']['nodeAfter'],0x0))),_0x5c29f8['push'](_0x2d704a);_0x84fb['model']['change'](_0x336323=>{const _0x14e352=_0x84fb['model']['document']['selection'],_0x2304cd=Array['from'](_0x14e352['getRanges']())['map'](_0x34e36e=>_0x3f290a['fromRange'](_0x34e36e));_0x336323['setSelection'](_0x5c29f8),_0x84fb['commands']['get'](_0x491a6c['commandName'])['refresh'](),_0x491a6c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x84fb['execute'](_0x491a6c['commandName'],..._0x491a6c['commandParams']),_0x336323['setSelection'](_0x2304cd);for(const _0x543561 of _0x2304cd)_0x543561['detach']();});}),_0x24bfa3['descriptionFactory']['registerElementLabel'](function(_0x35694a){const _0x4be13d=!_0x84fb['model']['schema']['isObject'](_0x35694a),_0x5f3b9f=_0x35694a['previousSibling'],_0x52e744=_0x35694a['nextSibling'],_0x3cfc1c=_0x35694a['getAttribute']('listItemId'),_0x5a8573=!_0x5f3b9f||_0x5f3b9f['getAttribute']('listItemId')!==_0x3cfc1c,_0x1dc140=!_0x52e744||_0x52e744['getAttribute']('listItemId')!==_0x3cfc1c;return _0x4be13d&&Boolean(_0x3cfc1c)&&_0x5a8573&&_0x1dc140;},_0x502696=>o(_0x53bd15,'ELEMENT_LIST_ITEM',_0x502696));}['_registerLegacyDescription'](){const _0x547bca=this['editor'],_0x245f7a=_0x547bca['locale'];function _0x3fbb34(_0x33747a){const _0x18865e=_0x547bca['commands']['get']('bulletedList')['value'],_0x4bdbdd=_0x547bca['commands']['get']('numberedList')['value'];return'numberedList'===_0x33747a?_0x18865e:_0x4bdbdd;}_0x547bca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e09e3){if('formatBlock'!=_0x4e09e3['type'])return;const {data:_0x392b10}=_0x4e09e3;if(!_0x392b10)return;let _0x4fa3ba,_0x302c75,_0x1c1029,_0x474be7;switch(_0x392b10['commandName']){case'bulletedList':_0x1c1029=_0x392b10['commandParams'][0x0]['forceValue'],_0x474be7=_0x3fbb34(_0x392b10['commandName']),_0x4fa3ba=_0x1c1029?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x474be7&&_0x547bca['config']['get']('list.multiBlock')||(_0x4fa3ba='*Change\x20to:*\x20%0'),_0x302c75={'type':'format','content':o(_0x245f7a,_0x4fa3ba,o(_0x245f7a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c1029=_0x392b10['commandParams'][0x0]['forceValue'],_0x474be7=_0x3fbb34(_0x392b10['commandName']),_0x4fa3ba=_0x1c1029?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x474be7&&_0x547bca['config']['get']('list.multiBlock')||(_0x4fa3ba='*Change\x20to:*\x20%0'),_0x302c75={'type':'format','content':o(_0x245f7a,_0x4fa3ba,o(_0x245f7a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4fa3ba='*Indent:*\x20%0',_0x302c75={'type':'format','content':o(_0x245f7a,_0x4fa3ba,o(_0x245f7a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4fa3ba=function(_0x37a8d3){const _0x1ae696=_0x37a8d3['getFirstRange']();let _0x279def=_0x1ae696['start']['nodeAfter'];for(;_0x279def&&_0x1ae696['containsItem'](_0x279def);){if(_0x279def['getAttribute']('listIndent')>0x0)return!0x1;_0x279def=_0x279def['nextSibling'];}return!0x0;}(_0x4e09e3)?o(_0x245f7a,'*Format:*\x20remove\x20from\x20%0',o(_0x245f7a,function(_0x5945f){return'ELEMENT_'+_0x5945f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e09e3))):o(_0x245f7a,'*Outdent:*\x20%0',o(_0x245f7a,'ELEMENT_LIST_ITEM')),_0x302c75={'type':'format','content':_0x4fa3ba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x392b10['multipleBlocks']&&(_0x4fa3ba='*Merge:*\x20%0',_0x302c75={'type':'deletion','content':o(_0x245f7a,_0x4fa3ba,o(_0x245f7a,'ELEMENT_LIST_ITEM'))});}return _0x302c75;});}}function Ee(_0x55aac5){let _0x2e33dd=_0x55aac5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2e33dd;){const _0x169cde=_0x2e33dd['getAttribute']('listItemId');if(!_0x169cde)return!0x1;if(_0x169cde==_0x55aac5['data']['newValue'])return'newValue';if(_0x169cde==_0x55aac5['data']['oldValue'])return'oldValue';_0x2e33dd=_0x2e33dd['previousSibling'];}return!0x1;}class pe extends _0x36b02c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ece02=this['editor']['config']['get']('list.properties'),_0x35ceba=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ece02['styles']&&(_0x35ceba['enableDefaultAttributesIntegration']('listStyle'),_0x35ceba['registerBlockAttribute']('listStyle')),_0x4ece02['reversed']&&(_0x35ceba['enableDefaultAttributesIntegration']('listReversed'),_0x35ceba['registerBlockAttribute']('listReversed')),_0x4ece02['startIndex']&&(_0x35ceba['enableDefaultAttributesIntegration']('listStart'),_0x35ceba['registerBlockAttribute']('listStart'));const _0x35220f={'type':'format','content':''};_0x35ceba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x345568=this['editor']['locale'];_0x35ceba['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x345568,'FORMAT_LIST_REVERSED')),_0x35ceba['descriptionFactory']['registerDescriptionCallback'](_0x5b10a9=>{const {data:_0x3dbe86}=_0x5b10a9;if(_0x3dbe86&&'listReversed'==_0x3dbe86['key'])return null==_0x3dbe86['newValue']||0x0==_0x3dbe86['newValue']&&null==_0x3dbe86['oldValue']?_0x35220f:void 0x0;}),_0x35ceba['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x345568,'FORMAT_LIST_START')),_0x35ceba['descriptionFactory']['registerDescriptionCallback'](_0x16346c=>{const {data:_0x4d17c9}=_0x16346c;if(_0x4d17c9&&'listStart'==_0x4d17c9['key'])return null==_0x4d17c9['newValue']||0x1==_0x4d17c9['newValue']&&null==_0x4d17c9['oldValue']?_0x35220f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ce65f=>{if(_0x1ce65f['batch']['isUndo'])return!0x1;let _0x29a5bc=!0x1;const _0x5308d9=_0x35ceba['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x572746=>{const _0x4db709=_0x35ceba['_getAttributeKey'](_0x572746);return'listStart'==_0x4db709||'listReversed'==_0x4db709;});for(const _0x28d406 of _0x5308d9){const _0x1d2261=_0x28d406['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1d2261||'customNumbered'==_0x1d2261)continue;_0x35ceba['_findSuggestions'](_0x28d406['getFirstRange'](),'attribute')['find'](_0x229fc4=>'listType'==_0x35ceba['_getAttributeKey'](_0x229fc4['suggestion']))||(_0x1ce65f['removeMarker'](_0x28d406['getFirstMarker']()),_0x29a5bc=!0x0);}return _0x29a5bc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3b8bef){const _0x367e0d=this['editor']['locale'],{data:_0x4c5271}=_0x3b8bef,_0xb8724f={'type':'format','content':''};if(!_0x4c5271||'listStyle'!=_0x4c5271['key'])return;if(!_0x4c5271['oldValue'])return'default'==_0x4c5271['newValue']?_0xb8724f:{'type':'format','content':''+o(_0x367e0d,'*Set\x20format:*\x20%0',o(_0x367e0d,this['_getTranslationKeyForListStyle'](_0x4c5271['newValue'])))};if(!_0x4c5271['newValue']){if('default'==_0x4c5271['oldValue'])return _0xb8724f;let _0xf16d1c=_0x3b8bef['head'];for(;_0xf16d1c;){if(_0xf16d1c['data']&&'listType'==_0xf16d1c['data']['key']&&_0xf16d1c['data']['newValue'])return _0xb8724f;_0xf16d1c=_0xf16d1c['next'];}return{'type':'format','content':''+o(_0x367e0d,'*Remove\x20format:*\x20%0',o(_0x367e0d,this['_getTranslationKeyForListStyle'](_0x4c5271['oldValue'])))};}if('default'!=_0x4c5271['newValue'])return{'type':'format','content':''+o(_0x367e0d,'*Set\x20format:*\x20%0',o(_0x367e0d,this['_getTranslationKeyForListStyle'](_0x4c5271['newValue'])))};let _0x201d37=_0x3b8bef['head'];for(;_0x201d37;){if(_0x201d37['data']&&'listType'==_0x201d37['data']['key']&&_0x201d37['data']['newValue']&&_0x201d37['data']['oldValue'])return _0xb8724f;_0x201d37=_0x201d37['next'];}return{'type':'format','content':o(_0x367e0d,'*Set\x20format:*\x20%0',o(_0x367e0d,'ELEMENT_'+_0x3b8bef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34fc8c=this['editor'],_0x4be9fa=_0x34fc8c['locale'];_0x34fc8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460a12=>{if('formatBlock'!=_0x460a12['type'])return;const {data:_0x3fb887}=_0x460a12;if(!_0x3fb887)return;let _0x3125e2,_0x10c93e;switch(_0x3fb887['commandName']){case'listStyle':_0x3125e2='*Change\x20to:*\x20%0',_0x10c93e={'type':'format','content':o(_0x4be9fa,_0x3125e2,o(_0x4be9fa,this['_getTranslationKeyForListStyle'](_0x3fb887['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3125e2=_0x3fb887['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10c93e={'type':'format','content':o(_0x4be9fa,_0x3125e2)};break;case'listStart':_0x3125e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10c93e={'type':'format','content':o(_0x4be9fa,_0x3125e2,_0x3fb887['commandParams'][0x0]['startIndex'])};}return _0x10c93e;});}['_getTranslationKeyForListStyle'](_0x480525){return'ELEMENT_'+function(_0x9c27cc){if(ye['includes'](_0x9c27cc))return'bulleted';if(Se['includes'](_0x9c27cc))return'numbered';return null;}(_0x480525)['toUpperCase']()+'_LIST_'+_0x480525['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x36b02c{static get['requires'](){return[_0x1f1db9];}['init'](){const _0x4d1f3f=this['editor'],_0x41f0af=_0x4d1f3f['plugins']['get']('TrackChangesEditing'),_0x3e7b28=_0x4d1f3f['commands']['get']('enter');_0x41f0af['enableCommand']('enter',()=>{_0x4d1f3f['model']['change'](_0x284d59=>{const _0x1f9b25=_0x4d1f3f['model']['document']['selection'],_0x4fc7b4=_0x1f9b25['getFirstPosition'](),_0x130d95=_0x3f290a['fromRange'](_0x1f9b25['getFirstRange']());if(_0x3e7b28['enterBlock'](_0x284d59)){const _0x143551=_0x4d1f3f['model']['createPositionAt'](_0x4fc7b4['parent']['nextSibling'],0x0),_0x4fa8c8=_0x284d59['createRange'](_0x4fc7b4,_0x143551);_0x41f0af['markInsertion'](_0x4fa8c8);}else _0x284d59['setSelection'](_0x284d59['createRange'](_0x130d95['end']));_0x130d95['detach'](),_0x3e7b28['fire']('afterExecute',{'writer':_0x284d59});});}),_0x4d1f3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4d1f3f,'split'),{'priority':'high'}),_0x4d1f3f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x7ea196,_0x5b41e6,_0x4835e6)=>{const _0x5c388c=_0x4835e6['mapper']['markerNameToElements'](_0x5b41e6['markerName']);if(_0x5c388c){for(const _0x3ddde2 of _0x5c388c)_0x3ddde2['hasClass']('ck-suggestion-marker-split')&&(_0x4835e6['mapper']['unbindElementFromMarkerName'](_0x3ddde2,_0x5b41e6['markerName']),_0x4835e6['writer']['remove'](_0x3ddde2));}},{'priority':'high'}),_0x4d1f3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35c25b,_0x532bc8,_0x12790a)=>{_0x12790a['options']['showSuggestionHighlights']&&_e(_0x4d1f3f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35c25b,_0x532bc8,_0x12790a);},{'priority':'high'});}}class X extends _0x36b02c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x57ff24=this['editor']['plugins']['get']('TrackChangesEditing');_0x57ff24['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x57ff24['enableCommand']('findNext'),_0x57ff24['enableCommand']('findPrevious'),_0x57ff24['enableCommand']('replace'),_0x57ff24['enableCommand']('replaceAll');}['handleFindCommand'](_0x239bb8,_0x22951d,_0x97a4d8={}){const _0x1dd365=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x239bb8(_0xa82a9=>{let _0x516876=('string'==typeof _0x22951d?_0x1dd365['findByTextCallback'](_0x22951d,_0x97a4d8):_0x22951d)(_0xa82a9);Array['isArray'](_0x516876)&&(_0x516876={'results':_0x516876,'searchText':'string'==typeof _0x22951d?_0x22951d:''});const _0x3c2ae5=_0x516876['results']['filter'](_0x5e8496=>!0x1===this['_isInDeletionRange'](_0x5e8496,_0xa82a9['item']));return{..._0x516876,'results':_0x3c2ae5};},_0x97a4d8);}['_isInDeletionRange'](_0x3e4405,_0x59d75e){const _0x2a8a90=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59d75e,_0x3e4405['start']),this['editor']['model']['createPositionAt'](_0x59d75e,_0x3e4405['end']));for(const _0x2ec62f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a8a90['getIntersection'](_0x2ec62f['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 _0x36b02c{['afterInit'](){const _0x1618bd=this['editor']['locale'],_0x49ad11=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41d0f5,commandName:_0x33087f}of ro)this['editor']['plugins']['has'](_0x41d0f5)&&(_0x49ad11['enableDefaultAttributesIntegration'](_0x33087f),_0x49ad11['registerInlineAttribute'](_0x33087f));_0x49ad11['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1618bd,'FORMAT_FONT_SIZE')),_0x49ad11['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1618bd,'FORMAT_FONT_FAMILY')),_0x49ad11['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1618bd,'FORMAT_FONT_COLOR')),_0x49ad11['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1618bd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d3fde=this['editor'],_0x224fcf=_0x1d3fde['locale'];_0x1d3fde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x211fdb=>{const _0x6a2807=_0x224fcf['t'];if('formatInline'!=_0x211fdb['type'])return;const {data:_0xf17b89}=_0x211fdb;if(null!=_0xf17b89){if('fontSize'==_0xf17b89['commandName']){const _0x398448=_0xf17b89['commandParams'][0x0]['value'];if(_0x398448){const _0x3ce240=_0x6a2807(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28626b=>_0x28626b['model']==_0x398448)['title'])['toLowerCase']();return{'type':'format','content':o(_0x224fcf,'*Set\x20font\x20size:*\x20%0',_0x3ce240)};}return{'type':'format','content':o(_0x224fcf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xf17b89['commandName']){const _0x3af419=_0xf17b89['commandParams'][0x0]['value'];return _0x3af419?{'type':'format','content':o(_0x224fcf,'*Set\x20font\x20family:*\x20%0',_0x3af419)}:{'type':'format','content':o(_0x224fcf,'*Reset\x20font\x20family*')};}if('fontColor'==_0xf17b89['commandName']){const _0x58d381=_0xf17b89['commandParams'][0x0]['value'];if(_0x58d381){const _0x579520=_0x4b756a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54029c=>_0x54029c['model']==_0x58d381);let _0x3f9c07=_0x58d381,_0x59cd32='';return _0x579520&&(_0x3f9c07=_0x579520['label'],_0x59cd32=_0x6a2807(_0x3f9c07)['toLowerCase']()),{'type':'format','content':o(_0x224fcf,'*Set\x20font\x20color:*\x20%0',_0x59cd32)['trim'](),'color':{'value':_0x58d381,'title':_0x59cd32||_0x3f9c07}};}return{'type':'format','content':o(_0x224fcf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xf17b89['commandName']){const _0x351cb5=_0xf17b89['commandParams'][0x0]['value'];if(_0x351cb5){const _0x3e13ea=_0x4b756a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e0eec=>_0x3e0eec['model']==_0x351cb5);let _0x400413=_0x351cb5,_0x52e708='';return _0x3e13ea&&(_0x400413=_0x3e13ea['label'],_0x52e708=_0x6a2807(_0x400413)['toLowerCase']()),{'type':'format','content':o(_0x224fcf,'*Set\x20font\x20background\x20color:*\x20%0',_0x52e708)['trim'](),'color':{'value':_0x351cb5,'title':_0x52e708||_0x400413}};}return{'type':'format','content':o(_0x224fcf,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x36b02c{['afterInit'](){const _0x3eee4b=this['editor'],_0x4a03a6=_0x3eee4b['plugins']['get']('TrackChangesEditing'),_0x53dbb6=_0x3eee4b['commands']['get']('copyFormat'),_0x3f24fe=_0x3eee4b['commands']['get']('pasteFormat');_0x53dbb6&&_0x3f24fe&&(_0x4a03a6['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a03a6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x53513b=this['editor'],_0x404bb1=_0x53513b['locale'];_0x53513b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x254ce8=>{if('formatBlock'!=_0x254ce8['type']&&'formatInline'!=_0x254ce8['type'])return;const {data:_0x26419f}=_0x254ce8;if(_0x26419f&&'pasteFormat'===_0x26419f['commandName']){const _0xf2ae33=[],_0xe62294=_0x26419f['commandParams'][0x0];for(const [_0x62957c,_0x1fea57]of Object['entries'](_0xe62294))_0xf2ae33['push'](so(_0x53513b,_0x62957c,_0x1fea57));return _0xf2ae33['length']?{'type':'format','content':o(_0x404bb1,'*Set\x20format\x20to:*\x20%0',_0xf2ae33['join'](',\x20'))}:{'type':'format','content':o(_0x404bb1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5998a3,_0x3052df,_0x4ba691){const _0x94329c=_0x5998a3['locale']['t'],_0x11d325=_0x3052df['split'](/(?=[A-Z])/)['join']('\x20'),_0x568143=_0x94329c(_0x11d325['charAt'](0x0)['toUpperCase']()+_0x11d325['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ba691)return _0x568143;if('fontColor'===_0x3052df||'fontBackgroundColor'===_0x3052df){const _0x23bdf9=_0x4b756a(_0x5998a3['config']['get']('fontColor.colors'))['find'](_0x428ac9=>_0x428ac9['model']==_0x4ba691);return _0x568143+'\x20('+(_0x23bdf9?_0x94329c(_0x23bdf9['label'])['toLowerCase']():_0x4ba691)+')';}if('fontSize'===_0x3052df&&isNaN(parseFloat(_0x4ba691))){const _0x3a2d9a=_0x5998a3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5998a3['config']['get']('fontSize.options'))['find'](_0x42ba7f=>_0x42ba7f['model']==_0x4ba691);return _0x568143+'\x20('+(_0x3a2d9a?_0x94329c(_0x3a2d9a['title'])['toLowerCase']():_0x4ba691)+')';}return _0x568143+'\x20('+_0x4ba691+')';}class tt extends _0x36b02c{['_headingOptions'];['afterInit'](){const _0x2430dc=this['editor'];if(!_0x2430dc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2430dc['config']['get']('heading.options');const _0x47e539=_0x2430dc['locale'],_0x51b9db=_0x2430dc['plugins']['get']('TrackChangesEditing');_0x51b9db['enableDefaultAttributesIntegration']('heading');for(const _0x1b50f5 of this['_headingOptions'])'paragraph'!=_0x1b50f5['model']&&_0x51b9db['descriptionFactory']['registerElementLabel'](_0x1b50f5['model'],_0x40115b=>{const _0x5078d0=this['_getHeadingLevel'](_0x1b50f5['model']);return null!==_0x5078d0?_0xcbe71(_0x40115b,_0x5078d0):_0x144a52(_0x40115b,_0x1b50f5['title']);});function _0xcbe71(_0x1b35ef,_0x5f2c9d){return o(_0x47e539,'ELEMENT_HEADING',[_0x1b35ef,_0x5f2c9d]);}function _0x144a52(_0x372aad,_0xdc4770){return o(_0x47e539,'ELEMENT_HEADING_CUSTOM',[_0x372aad,_0xdc4770]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc7fb5=this['editor'],_0x2b6c56=_0xcc7fb5['locale'];function _0x86614b(_0x1e554e,_0xcb9518){return o(_0x2b6c56,'ELEMENT_HEADING_CUSTOM',[_0x1e554e,_0xcb9518]);}_0xcc7fb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x63a55f=>{if('formatBlock'!=_0x63a55f['type'])return;const {data:_0x5c0c80}=_0x63a55f;if(_0x5c0c80&&'heading'==_0x5c0c80['commandName']){const _0x23c41e=_0x5c0c80['commandParams'][0x0]['value'],_0x5ded66=this['_getHeadingLevel'](_0x23c41e);if(null!==_0x5ded66)return{'type':'format','content':o(_0x2b6c56,'*Change\x20to:*\x20%0',(_0x15d0ff=0x1,_0x2ea33a=_0x5ded66,o(_0x2b6c56,'ELEMENT_HEADING',[_0x15d0ff,_0x2ea33a])))};const _0x4ac615=this['_headingOptions']['find'](_0x505294=>_0x505294['model']===_0x23c41e)['title'];return{'type':'format','content':o(_0x2b6c56,'*Change\x20to:*\x20%0',_0x86614b(0x1,_0x4ac615))};}var _0x15d0ff,_0x2ea33a;});}['_getHeadingLevel'](_0xa8c497){const _0x3bbdb5=_0xa8c497['match'](/^heading(\d+)/);if(_0x3bbdb5)return _0x3bbdb5[0x1];const _0x11cb71=this['_headingOptions']?.['find'](_0x3fa708=>_0x3fa708['model']==_0xa8c497);if(_0x11cb71&&_0x11cb71['view']){const _0xfde9a1=_0x11cb71['view'],_0x3ddbd7=(_0xfde9a1['name']??_0xfde9a1)['match'](/^h(\d+)/);if(_0x3ddbd7)return _0x3ddbd7[0x1];}return null;}}class et extends _0x36b02c{['afterInit'](){const _0x351a91=this['editor'];if(!_0x351a91['plugins']['has']('HighlightEditing'))return;const _0xbd2d9=_0x351a91['plugins']['get']('TrackChangesEditing'),_0x518fec=_0x351a91['locale'];_0xbd2d9['enableDefaultAttributesIntegration']('highlight'),_0xbd2d9['registerInlineAttribute']('highlight'),_0xbd2d9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x518fec,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b0ab7=this['editor'],_0x4ade42=_0x2b0ab7['locale'];_0x2b0ab7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x798132=>{if('formatInline'!=_0x798132['type'])return;const {data:_0x4b4ada}=_0x798132;if(_0x4b4ada&&'highlight'==_0x4b4ada['commandName']){const _0x1e6159=_0x4ade42['t'],_0x4b9d0=_0x4b4ada['commandParams'][0x0]['value'];if(_0x4b9d0){const _0x2e9f12=_0x2b0ab7['config']['get']('highlight.options')['find'](_0x5506ed=>_0x5506ed['model']==_0x4b9d0),_0x10b553=_0x1e6159(_0x2e9f12['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ade42,'*Set\x20highlight:*\x20%0',_0x10b553),'color':{'value':_0x2e9f12['color'],'title':_0x2e9f12['title']}};}return{'type':'format','content':o(_0x4ade42,'*Remove\x20highlight*',o(_0x4ade42,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x36b02c{['afterInit'](){const _0x21e0fa=this['editor'];if(!_0x21e0fa['plugins']['has']('HorizontalLineEditing'))return;_0x21e0fa['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58dbcc=_0x21e0fa['plugins']['get']('TrackChangesEditing'),_0x26fe23=_0x21e0fa['locale'];_0x58dbcc['descriptionFactory']['registerElementLabel']('horizontalLine',_0x528eb6=>o(_0x26fe23,'ELEMENT_HORIZONTAL_LINE',_0x528eb6)),_0x21e0fa['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x33989d,{writer:_0x51b9bc,options:_0x3e4498})=>{if(!_0x3e4498['showSuggestionHighlights'])return null;const _0x1fc2f7=_0x51b9bc['createContainerElement']('div'),_0x46fec7=_0x51b9bc['createEmptyElement']('hr');return _0x51b9bc['addClass']('ck-horizontal-line',_0x1fc2f7),_0x51b9bc['insert'](_0x51b9bc['createPositionAt'](_0x1fc2f7,0x0),_0x46fec7),_0x1fc2f7;},'converterPriority':'high'});}}class st extends _0x36b02c{['afterInit'](){const _0x1eb892=this['editor'];if(!_0x1eb892['plugins']['has']('HtmlEmbed'))return;const _0x215776=_0x1eb892['plugins']['get']('TrackChangesEditing'),_0x119fd2=_0x1eb892['locale'];_0x215776['descriptionFactory']['registerElementLabel']('rawHtml',_0x2df86d=>o(_0x119fd2,'ELEMENT_HTML_EMBED',_0x2df86d)),_0x215776['enableDefaultAttributesIntegration']('htmlEmbed'),_0x215776['registerBlockAttribute']('value'),_0x215776['descriptionFactory']['registerDescriptionCallback'](_0x1cc588=>{if('attribute'!=_0x1cc588['type'])return;const {data:_0x2b1343}=_0x1cc588;if(_0x2b1343&&'value'==_0x2b1343['key']&&_0x1cc588['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3818e8=o(_0x119fd2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x119fd2,'*Change\x20%0\x20content*',_0x3818e8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a3bba=this['editor'],_0x17c4c3=_0x2a3bba['locale'];_0x2a3bba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538027=>{if('formatBlock'!=_0x538027['type'])return;const {data:_0x79079f}=_0x538027;if(_0x79079f&&'htmlEmbed'==_0x79079f['commandName']){const _0x1cc9bc=o(_0x17c4c3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x17c4c3,'*Change\x20%0\x20content*',_0x1cc9bc)};}});}}class nt extends _0x36b02c{['afterInit'](){const _0x4d43ed=this['editor'];if(!_0x4d43ed['plugins']['has']('ImageEditing'))return;const _0x1e6a5d=_0x4d43ed['plugins']['get']('TrackChangesEditing'),_0x6d56dd=_0x4d43ed['plugins']['get']('ImageUtils'),_0x193ed1=_0x4d43ed['locale'];_0x1e6a5d['enableCommand']('insertImage'),_0x1e6a5d['descriptionFactory']['registerElementLabel']('imageBlock',_0x7d5a64=>o(_0x193ed1,'ELEMENT_IMAGE',_0x7d5a64)),_0x1e6a5d['descriptionFactory']['registerElementLabel']('imageInline',_0x5dccbb=>o(_0x193ed1,'ELEMENT_INLINE_IMAGE',_0x5dccbb)),_0x1e6a5d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x193ed1,'ELEMENT_CAPTION')),_0x4d43ed['plugins']['has']('ImageUploadEditing')&&_0x1e6a5d['enableCommand']('uploadImage'),_0x4d43ed['plugins']['has']('ImageBlockEditing')&&_0x4d43ed['plugins']['has']('ImageInlineEditing')&&(_0x1e6a5d['enableCommand']('imageTypeInline',(_0x3fcc96,_0x3217ba)=>{const _0xd7cff4=_0x6d56dd['getClosestSelectedImageElement'](_0x4d43ed['model']['document']['selection']);_0x4d43ed['model']['change'](()=>{_0x1e6a5d['markBlockFormat'](_0xd7cff4,{'commandName':'imageTypeInline','commandParams':[_0x3217ba]},[],'convertBlockImageToInline');});}),_0x1e6a5d['enableCommand']('imageTypeBlock',(_0x3159fa,_0xa30545)=>{_0x4d43ed['model']['change'](_0x36ee24=>{let _0x19e9c4=_0x6d56dd['getClosestSelectedImageElement'](_0x4d43ed['model']['document']['selection']),_0x51132c=_0x36ee24['createRangeOn'](_0x19e9c4);const _0x250c5e=_0x36e14f['fromPosition'](_0x51132c['start'],'toPrevious'),_0x5643a4=_0x36e14f['fromPosition'](_0x51132c['end'],'toNext');_0x1e6a5d['forceDefaultExecution'](()=>_0x3159fa(_0xa30545)),_0x19e9c4=_0x6d56dd['getClosestSelectedImageElement'](_0x4d43ed['model']['document']['selection']),_0x51132c=_0x36ee24['createRangeOn'](_0x19e9c4);const _0x159b22=_0x36ee24['createRange'](_0x250c5e,_0x5643a4);_0x250c5e['detach'](),_0x5643a4['detach'](),_0x1e6a5d['markBlockFormat'](_0x19e9c4,{'commandName':'imageTypeInline','commandParams':[_0xa30545]},[],'convertInlineImageToBlock'),_0x159b22['start']['isBefore'](_0x51132c['start'])&&_0x1e6a5d['markInsertion'](_0x36ee24['createRange'](_0x159b22['start'],_0x51132c['start']),'convertInlineImageToBlock'),_0x51132c['end']['isBefore'](_0x159b22['end'])&&_0x1e6a5d['markInsertion'](_0x36ee24['createRange'](_0x51132c['end'],_0x159b22['end']),'convertInlineImageToBlock');});}),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e6a5d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x103e0b])=>{const _0x3bc743=_0x1e6a5d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f4f00=_0x103e0b['start'],_0x47aef5=_0x103e0b['end'];const _0x5f00dc=_0x4d43ed['model']['schema']['getNearestSelectionRange'](_0x4f4f00,'backward'),_0x307d78=_0x4d43ed['model']['schema']['getNearestSelectionRange'](_0x47aef5,'forward');_0x5f00dc['isCollapsed']&&(_0x4f4f00=_0x5f00dc['start']),_0x307d78['isCollapsed']&&(_0x47aef5=_0x307d78['end']),_0x3bc743([_0x4d43ed['model']['createRange'](_0x4f4f00,_0x47aef5)]);}),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x33f538),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x33f538)),_0x4d43ed['plugins']['has']('ImageCaptionEditing')&&(_0x1e6a5d['enableCommand']('toggleImageCaption',(_0x21b0d1,_0x4bf965)=>{const _0x5d034a=_0x4d43ed['plugins']['get']('ImageCaptionUtils');let _0x27ebf8=_0x6d56dd['getClosestSelectedImageElement'](_0x4d43ed['model']['document']['selection']),_0x14350e=_0x5d034a['getCaptionFromImageModelElement'](_0x27ebf8);_0x4d43ed['model']['change'](()=>{if(_0x14350e)return void _0x1e6a5d['markDeletion'](_0x4d43ed['model']['createRangeOn'](_0x14350e));const _0x49d673=_0x6d56dd['isBlockImage'](_0x27ebf8);_0x21b0d1(_0x4bf965),_0x27ebf8=_0x6d56dd['getClosestSelectedImageElement'](_0x4d43ed['model']['document']['selection']),_0x14350e=_0x5d034a['getCaptionFromImageModelElement'](_0x27ebf8),_0x1e6a5d['markInsertion'](_0x4d43ed['model']['createRangeOn'](_0x14350e),_0x49d673?null:'imageCaption');});}),_0x1e6a5d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x33f538));const _0x186b54=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bde5a(_0x2d2b16,_0x4e6ac0){const _0xa61ded=_0x186b54['findIndex'](({type:_0xf90de4,subType:_0x3a9171})=>_0x2d2b16['type']==_0xf90de4&&_0x2d2b16['subType']==_0x3a9171),_0xc2bedc=_0x186b54['findIndex'](({type:_0x55f46e,subType:_0x44518a})=>_0x4e6ac0['type']==_0x55f46e&&_0x4e6ac0['subType']==_0x44518a);if(_0xa61ded<0x0||_0xc2bedc<0x0)return!0x1;const _0x327af6=_0x2d2b16['getFirstRange'](),_0x352967=_0x4e6ac0['getFirstRange']();if((0x0==_0xa61ded||0x1==_0xa61ded)&&0x2==_0xc2bedc&&_0x327af6['isIntersecting'](_0x352967))return!0x0;if(0x2==_0xa61ded&&0x3==_0xc2bedc){const _0x4f0380=_0x1e6a5d['_findSuggestions'](_0x327af6,'insertion')['filter'](({suggestion:_0x16b78c,meta:_0x51f771})=>_0x51f771['isOwn']&&'convertInlineImageToBlock'==_0x16b78c['subType']);if(_0x4f0380['length']>0x1&&_0x352967['end']['isEqual'](_0x327af6['start']))return!0x0;if(0x1==_0x4f0380['length']&&(_0x327af6['start']['isEqual'](_0x352967['end'])||_0x327af6['end']['isEqual'](_0x352967['start'])))return!0x0;}if(0x3==_0xa61ded&&0x3==_0xc2bedc&&_0x327af6['start']['isBefore'](_0x352967['start'])){const _0x5c047f=_0x327af6['end']['nodeAfter'],_0x47280b=_0x352967['start']['nodeBefore'];return _0x6d56dd['isBlockImage'](_0x5c047f)&&_0x5c047f===_0x47280b;}return!0x1;}function _0x33f538(_0x599da9,_0x4bd7f2){return _0x4bde5a(_0x599da9,_0x4bd7f2)?[_0x599da9,_0x4bd7f2]:_0x4bde5a(_0x4bd7f2,_0x599da9)?[_0x4bd7f2,_0x599da9]:null;}_0x4d43ed['plugins']['has']('ImageResize')&&(_0x1e6a5d['enableDefaultAttributesIntegration']('resizeImage'),_0x1e6a5d['registerBlockAttribute']('resizedWidth'),_0x1e6a5d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x193ed1,'FORMAT_IMAGE_SIZE'))),_0x4d43ed['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e6a5d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e6a5d['registerBlockAttribute']('alt')),_0x1e6a5d['descriptionFactory']['registerDescriptionCallback'](_0x25c857=>{if(!!_0x186b54['find'](({type:_0x2203eb,subType:_0x52dfcc})=>_0x25c857['type']==_0x2203eb&&_0x25c857['subType']==_0x52dfcc))return _0x25c857['previous']?{}:void 0x0;}),_0x1e6a5d['descriptionFactory']['registerDescriptionCallback'](_0x102b33=>{if('insertion'==_0x102b33['type']||'deletion'==_0x102b33['type']){const _0x125de1=_0x102b33['getContainedElement']();if(_0x125de1&&_0x125de1['is']('element','caption'))return{'type':'insertion'==_0x102b33['type']?'addObject':'removeObject','element':_0x125de1,'quantity':0x1};}}),_0x1e6a5d['descriptionFactory']['registerDescriptionCallback'](_0x446273=>'formatBlock'==_0x446273['type']&&'convertInlineImageToBlock'==_0x446273['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x446273['type']&&'convertBlockImageToInline'==_0x446273['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e6a5d['descriptionFactory']['registerDescriptionCallback'](_0x5f2947=>{if('attribute'!=_0x5f2947['type'])return;const {data:_0x4cd163}=_0x5f2947;if(!_0x4cd163||'alt'!=_0x4cd163['key'])return;const _0x1ca341=_0x4cd163['newValue'];return _0x1ca341?{'type':'format','content':o(_0x193ed1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ca341+'\x22')}:{'type':'format','content':o(_0x193ed1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a03d2=this['editor'],_0x5059dd=_0x3a03d2['locale'];_0x3a03d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c076=>{if('formatBlock'!=_0x14c076['type']&&'formatInline'!=_0x14c076['type'])return;const {data:_0x159bf7}=_0x14c076;if(_0x159bf7){if('imageTextAlternative'==_0x159bf7['commandName']){const _0x50f1f7=_0x159bf7['commandParams'][0x0]['newValue'];return _0x50f1f7?{'type':'format','content':o(_0x5059dd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50f1f7+'\x22')}:{'type':'format','content':o(_0x5059dd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x159bf7['commandName']){const _0x342919=_0x159bf7['commandParams'][0x0]['width'];return _0x342919?{'type':'format','content':o(_0x5059dd,'*Set\x20image\x20width:*\x20%0',_0x342919)}:{'type':'format','content':o(_0x5059dd,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x36b02c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4e7243=this['editor']['locale'],_0xa5303f=this['editor']['plugins']['get']('TrackChangesEditing');_0xa5303f['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa5303f['registerBlockAttribute']('src'),_0xa5303f['descriptionFactory']['registerDescriptionCallback'](_0x5e39bd=>{if('attribute'!=_0x5e39bd['type'])return;const {data:_0x56c9cc}=_0x5e39bd;return _0x56c9cc&&'src'==_0x56c9cc['key']?_0x56c9cc['newValue']&&_0x56c9cc['oldValue']?{'type':'format','content':o(_0x4e7243,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e04f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e04f0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e04f0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e04f0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e04f0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x199b75=this['editor'],_0x16e03c=_0x199b75['locale'];_0x199b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4950=>{if('formatBlock'!=_0x2c4950['type']&&'formatInline'!=_0x2c4950['type'])return;const {data:_0x517094}=_0x2c4950;if(!_0x517094||'replaceImageSource'!=_0x517094['commandName'])return;return{'type':'format','content':o(_0x16e03c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x36b02c{['afterInit'](){const _0x529cdc=this['editor'];if(!_0x529cdc['plugins']['has']('ImageStyleEditing'))return;const _0x9fe64d=_0x529cdc['plugins']['get']('TrackChangesEditing'),_0x4acbd4=_0x529cdc['plugins']['get']('ImageUtils'),_0x16e86c={};_0x9fe64d['enableCommand']('imageStyle',(_0x282e7b,_0x4cb283)=>{const _0x4c823a=_0x529cdc['plugins']['get']('Users')['me'],_0x5c926c=_0x529cdc['commands']['get']('imageStyle');let _0x292a67=_0x4acbd4['getClosestSelectedImageElement'](_0x529cdc['model']['document']['selection']),_0x26ad9b=_0x529cdc['model']['createRangeOn'](_0x292a67),_0x293a70=_0x5c926c['value'];if(_0x293a70==_0x4cb283['value'])return;const _0x356072={'commandName':'imageStyle','commandParams':[_0x4cb283],'formatGroupId':_0xca03d8()};_0x529cdc['model']['change'](()=>{if(_0x9fe64d['getSuggestions']()['filter'](_0x3fb88c=>_0x3fb88c['isInContent']&&_0x4c823a==_0x3fb88c['author']&&('formatBlock'==_0x3fb88c['type']||'formatInline'==_0x3fb88c['type'])&&('imageStylePreApply'==_0x3fb88c['subType']||'imageStylePostApply'==_0x3fb88c['subType'])&&_0x3fb88c['getFirstRange']()['isEqual'](_0x26ad9b))['forEach'](_0x67ca7a=>_0x9fe64d['discardSuggestion'](_0x67ca7a['head'])),_0x292a67=_0x4acbd4['getClosestSelectedImageElement'](_0x529cdc['model']['document']['selection']),_0x26ad9b=_0x529cdc['model']['createRangeOn'](_0x292a67),_0x5c926c['refresh'](),_0x529cdc['commands']['get']('imageTypeInline')['refresh'](),_0x529cdc['commands']['get']('imageTypeBlock')['refresh'](),_0x293a70=_0x5c926c['value'],_0x293a70!=_0x4cb283['value'])return _0x4acbd4['isInlineImage'](_0x292a67)&&_0x5c926c['shouldConvertImageType'](_0x4cb283['value'],_0x292a67)?(_0x282e7b({..._0x4cb283,'setImageSizes':!0x1}),_0x292a67=_0x4acbd4['getClosestSelectedImageElement'](_0x529cdc['model']['document']['selection']),void _0x9fe64d['markBlockFormat'](_0x292a67,{..._0x356072,'commandReversedParams':[{'value':_0x293a70||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4acbd4['isBlockImage'](_0x292a67)?_0x9fe64d['markBlockFormat'](_0x292a67,_0x356072,[],'imageStylePostApply'):_0x9fe64d['markInlineFormat'](_0x26ad9b,_0x356072,'imageStylePostApply'));});});for(const _0x46dd1f of _0x529cdc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x16e86c[_0x46dd1f['name']]=_0x46dd1f['title']['toLowerCase']();_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b00cd])=>{_0x4acbd4['setImageNaturalSizeAttributes'](_0x4b00cd['getContainedElement']());}),_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ddd9c,_0x319da9)=>{_0x9fe64d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ddd9c,{'commandName':_0x319da9['commandName'],'commandParams':_0x319da9['commandReversedParams']});}),_0x9fe64d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5ee841,_0x2d5bc0){if(_0x13ad72(_0x5ee841,_0x2d5bc0))return[_0x5ee841,_0x2d5bc0];if(_0x13ad72(_0x2d5bc0,_0x5ee841))return[_0x2d5bc0,_0x5ee841];return null;});const _0x96d4c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13ad72(_0x598791,_0x4b57c1){const _0x1f8705=_0x96d4c6['findIndex'](({type:_0x54c0b4,subType:_0x472d5f})=>_0x598791['type']==_0x54c0b4&&_0x598791['subType']==_0x472d5f),_0x2d089e=_0x96d4c6['findIndex'](({type:_0x1c0f0b,subType:_0xddcaa})=>_0x4b57c1['type']==_0x1c0f0b&&_0x4b57c1['subType']==_0xddcaa);if(_0x1f8705<0x0||_0x2d089e<0x0)return!0x1;const _0x4efd55=_0x598791['getFirstRange'](),_0x1ed394=_0x4b57c1['getFirstRange']();if((0x0==_0x1f8705||0x1==_0x1f8705)&&0x2==_0x2d089e&&_0x4efd55['isIntersecting'](_0x1ed394))return!0x0;if(0x2==_0x1f8705&&0x3==_0x2d089e){const _0x5bca52=_0x9fe64d['_findSuggestions'](_0x4efd55,'insertion')['filter'](({suggestion:_0x3065e2,meta:_0x1b1ef3})=>_0x1b1ef3['isOwn']&&'convertInlineImageToBlock'==_0x3065e2['subType']);if(_0x5bca52['length']>0x1&&_0x1ed394['end']['isEqual'](_0x4efd55['start']))return!0x0;if(0x1==_0x5bca52['length']&&(_0x4efd55['start']['isEqual'](_0x1ed394['end'])||_0x4efd55['end']['isEqual'](_0x1ed394['start'])))return!0x0;}if(0x3==_0x1f8705&&0x3==_0x2d089e&&_0x4efd55['start']['isBefore'](_0x1ed394['start'])){const _0x3297a5=_0x4efd55['end']['nodeAfter'],_0x360b99=_0x1ed394['start']['nodeBefore'];return _0x4acbd4['isBlockImage'](_0x3297a5)&&_0x3297a5===_0x360b99;}return!0x1;}_0x529cdc['model']['document']['registerPostFixer'](()=>{let _0x12ee1a=!0x1;const _0x47b04d=Array['from'](_0x529cdc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x123eb2,data:_0x18691e}of _0x47b04d){const {group:_0x5708aa,type:_0x475cfd,subType:_0x306f15,id:_0x5c38fe}=_0x9fe64d['_splitMarkerName'](_0x123eb2);if('suggestion'==_0x5708aa&&_0x9fe64d['hasSuggestion'](_0x5c38fe)){if('formatBlock'==_0x475cfd&&('imageStylePreApply'==_0x306f15||'imageStylePostApply'==_0x306f15)){const _0xec7e58=_0x9fe64d['getSuggestion'](_0x5c38fe);if(_0x18691e['newRange']){const _0x315c31=_0xec7e58['getFirstRange']()['getContainedElement']();if(_0x4acbd4['isBlockImage'](_0x315c31))continue;_0x9fe64d['discardSuggestion'](_0xec7e58),_0x12ee1a=!0x0;}}if('insertion'==_0x475cfd&&'imageCaption'==_0x306f15&&!_0x18691e['newRange']){const _0xaccb30=_0x9fe64d['getSuggestion'](_0x5c38fe);_0xaccb30['next']&&_0xaccb30['next']['isInContent']&&(_0x9fe64d['discardSuggestion'](_0xaccb30['next']),_0x12ee1a=!0x0);}}}return _0x12ee1a;}),this['_registerLegacyDescription'](_0x16e86c);}['_registerLegacyDescription'](_0x12f540){const _0x22d1fa=this['editor'],_0x158f59=_0x22d1fa['locale'];_0x22d1fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fada5=>{if('formatBlock'!=_0x4fada5['type']&&'formatInline'!=_0x4fada5['type'])return;const {data:_0xf053c5}=_0x4fada5;if(!_0xf053c5||'imageStyle'!=_0xf053c5['commandName'])return;const _0x5b5808=_0xf053c5['commandParams'][0x0]['value'];return _0x348b03('side'===_0x5b5808?o(_0x158f59,'FORMAT_SIDE_IMAGE'):_0x12f540[_0x5b5808]||_0x5b5808);function _0x348b03(_0x55fad5){return{'type':'format','content':o(_0x158f59,'*Format:*\x20%0',_0x55fad5)};}});}}class at extends _0x36b02c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x521044){super(_0x521044),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x574ed0=this['editor'],_0x46132e=_0x574ed0['commands']['get']('importWord'),_0x39aec7=_0x574ed0['commands']['get']('trackChanges');_0x46132e&&(_0x46132e['on']('execute',(_0x18a469,[,_0x533fb5])=>{this['_trackChangesValueDuringImport']=_0x39aec7['value'],_0x533fb5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x46132e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x46132e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x39aec7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x574ed0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3757e8,_0x295086){const {suggestions:_0xc4a350}=_0x295086,_0x5bb1c9=this['editor']['commands']['get']('trackChanges'),_0x15102f=_0x5bb1c9['value'];this['_trackChangesValueDuringImport']!==_0x15102f&&(_0x5bb1c9['execute'](),this['_trackChangesExecuted']=!0x0),_0xc4a350&&_0xc4a350['forEach'](({id:_0x5ad848,type:_0x2d3164,author:_0x5e8237,created_at:_0x2472fb})=>{const _0x1251b7={'id':_0x5ad848,'type':_0x2d3164,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e8237,'createdAt':_0x2472fb?new Date(_0x2472fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1251b7);});}}class ct extends _0x36b02c{['afterInit'](){const _0x2c0786=this['editor'],_0x541d41=_0x2c0786['plugins']['get']('TrackChangesEditing');if(_0x2c0786['plugins']['has']('IndentEditing')&&(_0x541d41['enableCommand']('indent'),_0x541d41['enableCommand']('outdent')),_0x2c0786['plugins']['has']('IndentBlock')){for(const _0x43a41f of['indentBlock','outdentBlock'])_0x541d41['enableDefaultAttributesIntegration'](_0x43a41f);}const _0x52fdc8=_0x2c0786['locale'];_0x541d41['registerBlockAttribute']('blockIndent'),_0x541d41['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x52fdc8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5250ee=this['editor'],_0x220fc4=_0x5250ee['locale'],_0x51e581=_0x5250ee['plugins']['get']('TrackChangesEditing');_0x51e581['descriptionFactory']['registerDescriptionCallback'](_0x4cff36=>{if('formatBlock'!=_0x4cff36['type'])return;const {data:_0x55ec92}=_0x4cff36;if(!_0x55ec92)return;if('indentBlock'!=_0x55ec92['commandName']&&'outdentBlock'!=_0x55ec92['commandName'])return;const _0x40a6e6=_0x4cff36['getItems']()[0x0],_0x4b651c=_0x51e581['descriptionFactory']['getItemLabel'](_0x40a6e6);return'indentBlock'==_0x55ec92['commandName']?{'type':'format','content':o(_0x220fc4,'*Indent:*\x20%0',_0x4b651c)}:'outdentBlock'==_0x55ec92['commandName']?{'type':'format','content':o(_0x220fc4,'*Outdent:*\x20%0',_0x4b651c)}:void 0x0;});}}class ut extends _0x36b02c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x36b02c{['afterInit'](){const _0x245c12=this['editor'];if(!_0x245c12['plugins']['has']('LinkEditing'))return;const _0x25e59e=_0x245c12['plugins']['get']('TrackChangesEditing'),_0x22a517=_0x245c12['commands']['get']('link');_0x25e59e['enableDefaultAttributesIntegration']('link'),_0x25e59e['enableDefaultAttributesIntegration']('unlink'),_0x25e59e['registerInlineAttribute']('linkHref');for(const _0x3f3dd6 of _0x22a517['manualDecorators'])_0x25e59e['registerInlineAttribute'](_0x3f3dd6['id']),_0x25e59e['descriptionFactory']['registerAttributeLabel'](_0x3f3dd6['id'],'link\x20('+_0x3f3dd6['label']['toLowerCase']()+')');_0x25e59e['descriptionFactory']['registerDescriptionCallback'](_0x1eb8db=>{if('attribute'!=_0x1eb8db['type'])return;const {data:_0x2129c7}=_0x1eb8db;if(!_0x2129c7||'linkHref'!=_0x2129c7['key'])return;const _0x5a822d=_0x2129c7['newValue'],_0x546f73=_0x245c12['locale'];return{'type':'format','content':null==_0x5a822d?o(_0x546f73,'*Remove\x20link*'):o(_0x546f73,'*Set\x20link:*\x20%0','\x22'+_0x5a822d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x370ed8=this['editor'],_0x55273f=_0x370ed8['locale'];_0x370ed8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x190e4f=>{if('formatInline'!=_0x190e4f['type'])return;const {data:_0x205e09}=_0x190e4f;if(_0x205e09){if('link'==_0x205e09['commandName']){const _0x1c7dc3=_0x205e09['commandParams'][0x0];return{'type':'format','content':o(_0x55273f,'*Set\x20link:*\x20%0','\x22'+_0x1c7dc3+'\x22')};}return'unlink'==_0x205e09['commandName']?{'type':'format','content':o(_0x55273f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x36b02c{['afterInit'](){const _0x11f97f=this['editor'],_0x56200d=_0x11f97f['locale'];if(!_0x11f97f['plugins']['has']('LegacyListEditing'))return;const _0x8313c7=_0x11f97f['plugins']['get']('TrackChangesEditing'),_0x43aab7=_0x11f97f['plugins']['has']('LegacyTodoListEditing');function _0x2949d3(_0x429347){return()=>{const _0x393421=_0x11f97f['model']['document']['selection'],_0x27aa47=_0x11f97f['commands']['get'](_0x429347);if(_0x27aa47['value'])return void _0x11f97f['execute']('paragraph',{});const _0x59b3db=_0x429347['slice'](0x0,-0x4),_0xee4196=function(_0x1f7d86,_0x2694a5,_0x38402b){let _0xfc9eab=Array['from'](_0x1f7d86)['filter'](_0x9f760a=>function(_0x515c71,_0x476bcf){return _0x476bcf['checkChild'](_0x515c71['parent'],'listItem')&&!_0x476bcf['isObject'](_0x515c71);}(_0x9f760a,_0x38402b));_0xfc9eab=_0xfc9eab['filter'](_0x50f83b=>!_0x50f83b['is']('element','listItem')||_0x50f83b['getAttribute']('listType')!=_0x2694a5);const _0x35b611=new Set();for(const _0x242b4e of _0xfc9eab)_0x242b4e['is']('element','listItem')?_0x35b611['add'](fe(_0x242b4e)):_0x35b611['add'](_0x242b4e);return Array['from'](_0x35b611);}(_0x393421['getSelectedBlocks'](),_0x59b3db,_0x11f97f['model']['schema']);_0x11f97f['model']['change'](()=>{for(const _0x11cdfa of _0xee4196)_0x8313c7['markBlockFormat'](_0x11cdfa,{'commandName':_0x429347,'commandParams':[{'forceValue':!_0x27aa47['value']}],'formatGroupId':'blockName'},ue(_0x11cdfa));});};}function _0x31e413(_0x16c561){return()=>{const _0x9bd3af=function(_0x52041a){let _0x31d41a=Array['from'](_0x52041a);const _0xebae20=_0x31d41a['findIndex'](_0x4c46e5=>'listItem'!=_0x4c46e5['name']);return _0xebae20>-0x1&&(_0x31d41a=_0x31d41a['slice'](0x0,_0xebae20)),_0x31d41a;}(_0x11f97f['model']['document']['selection']['getSelectedBlocks']()),_0x682a64=_0x11f97f['model']['createRange'](_0x11f97f['model']['createPositionAt'](_0x9bd3af[0x0],'before'),_0x11f97f['model']['createPositionAt'](_0x9bd3af[_0x9bd3af['length']-0x1],'end'));_0x11f97f['model']['change'](()=>{_0x8313c7['markBlockFormat'](_0x682a64,{'commandName':_0x16c561,'commandParams':[],'formatGroupId':'listIndent'},function(_0xc4a59c){const _0x28b948=new Set();for(const _0x2acbe6 of _0xc4a59c){let _0x5c76c3=_0x2acbe6['nextSibling'];for(;_0x5c76c3&&_0x5c76c3['getAttribute']('listIndent')>_0x2acbe6['getAttribute']('listIndent');)_0x28b948['add'](_0x5c76c3),_0x5c76c3=_0x5c76c3['nextSibling'];}return Array['from'](_0x28b948);}(_0x9bd3af));});};}_0x8313c7['enableCommand']('numberedList',_0x2949d3('numberedList')),_0x8313c7['enableCommand']('bulletedList',_0x2949d3('bulletedList')),_0x43aab7&&_0x8313c7['enableCommand']('todoList',_0x2949d3('todoList')),_0x8313c7['enableCommand']('indentList',_0x31e413('indentList')),_0x8313c7['enableCommand']('outdentList',_0x31e413('outdentList')),_0x43aab7&&_0x8313c7['enableCommand']('checkTodoList',()=>{const _0x5d51cb=_0x11f97f['commands']['get']('checkTodoList'),_0x116d32=Array['from'](_0x5d51cb['_selectedElements']);_0x116d32['filter'](_0x5033f1=>_0x5033f1['getAttribute']('todoListChecked')!=_0x5d51cb['value']),_0x11f97f['model']['change'](()=>{for(const _0x110c29 of _0x116d32)_0x8313c7['markBlockFormat'](_0x110c29,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d51cb['value']}]});});}),_0x8313c7['descriptionFactory']['registerElementLabel']('listItem',_0x1d5e51=>o(_0x56200d,'ELEMENT_LIST_ITEM',_0x1d5e51)),_0x8313c7['descriptionFactory']['registerDescriptionCallback'](_0x829b3d=>{if('formatBlock'!=_0x829b3d['type']&&'formatInline'!=_0x829b3d['type'])return;const {data:_0x8f12e4}=_0x829b3d;if(_0x8f12e4){if('numberedList'==_0x8f12e4['commandName']||'bulletedList'==_0x8f12e4['commandName']||'todoList'==_0x8f12e4['commandName'])switch(_0x8f12e4['commandName']['replace']('List','')){case'bulleted':return _0x58a36c(o(_0x56200d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58a36c(o(_0x56200d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58a36c(o(_0x56200d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8f12e4['commandName'])return{'type':'format','content':o(_0x56200d,'*Indent:*\x20%0',o(_0x56200d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8f12e4['commandName'])return{'type':'format','content':o(_0x56200d,'*Outdent:*\x20%0',o(_0x56200d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8f12e4['commandName'])return _0x8f12e4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56200d,'*Check\x20item*')}:{'type':'format','content':o(_0x56200d,'*Uncheck\x20item*')};}function _0x58a36c(_0x3bcbd0){return{'type':'format','content':o(_0x56200d,'*Change\x20to:*\x20%0',_0x3bcbd0)};}});}}function fe(_0x4e9c50){const _0x5baa1d=_0x4e9c50['getAttribute']('listIndent');if(0x0==_0x5baa1d)return _0x4e9c50;let _0x2ae4c3=_0x4e9c50;for(;_0x4e9c50['previousSibling']&&_0x4e9c50['previousSibling']['is']('element','listItem');){const _0x18d140=_0x4e9c50['previousSibling']['getAttribute']('listIndent');if(_0x18d140==_0x5baa1d)_0x2ae4c3=_0x4e9c50['previousSibling'];else{if(_0x18d140<_0x5baa1d)break;}_0x4e9c50=_0x4e9c50['previousSibling'];}return _0x2ae4c3;}function ue(_0x2ebf39){const _0xe2c7af=[];if(_0x2ebf39['is']('element','listItem')&&_0x2ebf39['getAttribute']('listIndent')>0x0){let _0x36fd70=_0x2ebf39['nextSibling'];for(;_0x36fd70&&'listItem'==_0x36fd70['name']&&_0x36fd70['getAttribute']('listIndent')==_0x2ebf39['getAttribute']('listIndent');)_0xe2c7af['push'](_0x36fd70),_0x36fd70=_0x36fd70['nextSibling'];}return _0xe2c7af;}class W extends _0x36b02c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x22ee5f=this['editor']['config']['get']('list.properties'),_0x58f81b=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ee5f['styles']&&_0x58f81b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x22ee5f['reversed']&&_0x58f81b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x22ee5f['startIndex']&&_0x58f81b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x58f81b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x163af4,_0x3b600c={}){const _0x1e908d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c9c3f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e908d['markMultiRangeBlockFormat'](_0x5c9c3f,{'commandName':'listStyle','commandParams':[{'type':_0x3b600c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x499b27,_0x16041d={}){const _0x5b955a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d0023=this['_getSuggestionBlocks'](_0x3d08bf=>_0x3d08bf['is']('element','listItem')&&'numbered'===_0x3d08bf['getAttribute']('listType'));if(_0x1d0023['length']<0x1)return;const _0x4acd94=_0x1d0023['map'](_0x34b116=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34b116,'before'),this['editor']['model']['createPositionAt'](_0x34b116,0x0)));this['editor']['model']['change'](()=>{_0x5b955a['markMultiRangeBlockFormat'](_0x4acd94,{'commandName':'listReversed','commandParams':[{'reversed':_0x16041d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40db7d,_0x1ea99a={}){const _0x2f560b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaef025=this['_getSuggestionBlocks'](_0xd422f0=>_0xd422f0['is']('element','listItem')&&'numbered'===_0xd422f0['getAttribute']('listType'));if(_0xaef025['length']<0x1)return;const _0x47d30b=_0xaef025['map'](_0x535ac3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x535ac3,'before'),this['editor']['model']['createPositionAt'](_0x535ac3,0x0)));this['editor']['model']['change'](()=>{_0x2f560b['markMultiRangeBlockFormat'](_0x47d30b,{'commandName':'listStart','commandParams':[{'startIndex':_0x1ea99a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x11be7a){if('formatBlock'!=_0x11be7a['type']&&'formatInline'!=_0x11be7a['type'])return;const _0x3e7068=this['editor']['locale'],{data:_0x28da85}=_0x11be7a;if(!_0x28da85)return;let _0x48118d,_0x3b3565;switch(_0x28da85['commandName']){case'listStyle':_0x48118d='*Change\x20to:*\x20%0',_0x3b3565={'type':'format','content':o(_0x3e7068,_0x48118d,o(_0x3e7068,this['_getTranslationKeyForListStyle'](_0x28da85['commandParams'][0x0]['type'])))};break;case'listReversed':_0x48118d=_0x28da85['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b3565={'type':'format','content':o(_0x3e7068,_0x48118d)};break;case'listStart':_0x48118d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b3565={'type':'format','content':o(_0x3e7068,_0x48118d,_0x28da85['commandParams'][0x0]['startIndex'])};}return _0x3b3565;}['_getSuggestionBlocksForListStyle'](){const _0x53f119=this['editor']['plugins']['get']('LegacyListUtils');let _0xb57a72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xb57a72[0x0]?.['is']('element','listItem')&&_0xb57a72['unshift'](..._0x53f119['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xb57a72[_0xb57a72['length']-0x1]?.['is']('element','listItem')&&_0xb57a72['push'](..._0x53f119['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xb57a72=[...new Set(_0xb57a72)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xb57a72=_0xb57a72['filter'](_0x4d68f1=>_0x4d68f1['is']('element','listItem'))),_0xb57a72;}['_getSuggestionBlocks'](_0x407144){const _0x15622d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e392e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x407144)['map'](_0x5c17ee=>{const _0x4a5dcd=this['editor']['model']['createPositionAt'](_0x5c17ee,0x0);return[..._0x15622d['getSiblingNodes'](_0x4a5dcd,'backward'),..._0x15622d['getSiblingNodes'](_0x4a5dcd,'forward')];})['flat']();return _0x4e392e=[...new Set(_0x4e392e)],_0x4e392e;}['_getTranslationKeyForListStyle'](_0x30f6f4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30f6f4)||'default')['toUpperCase']()+'_LIST_'+_0x30f6f4['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x36b02c{['afterInit'](){const _0x2376bf=this['editor'];if(!_0x2376bf['plugins']['has']('MediaEmbedEditing'))return;const _0xb14e69=_0x2376bf['plugins']['get']('TrackChangesEditing'),_0x660b2d=_0x2376bf['locale'];_0xb14e69['enableCommand']('mediaEmbed'),_0xb14e69['descriptionFactory']['registerElementLabel']('media',_0x51da61=>o(_0x660b2d,'ELEMENT_MEDIA',_0x51da61)),_0x2376bf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x40ab57,{writer:_0x4082c5,options:_0x18f77d})=>{if(_0x18f77d['showSuggestionHighlights'])return _0x4082c5['createEmptyElement']('div');},'converterPriority':'high'}),_0x2376bf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ac4d7,_0x39a97f,_0x597997)=>{_0x597997['options']['showSuggestionHighlights']&&_0x1ac4d7['stop']();},{'priority':'high'});}}class mt extends _0x36b02c{['afterInit'](){const _0x62ad33=this['editor'];_0x62ad33['plugins']['has']('MentionEditing')&&_0x62ad33['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x36b02c{['afterInit'](){const _0x520fc3=this['editor'];if(!_0x520fc3['commands']['get']('insertMergeField'))return;_0x520fc3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x7b9efe=_0x520fc3['plugins']['get']('TrackChangesEditing'),_0x2d8bd3=_0x520fc3['locale'];_0x7b9efe['descriptionFactory']['registerElementLabel']('mergeField',_0x167a5a=>o(_0x2d8bd3,'ELEMENT_MERGE_FIELD',_0x167a5a)),_0x7b9efe['descriptionFactory']['registerDescriptionCallback'](_0x1d84bc=>{if('insertion'!=_0x1d84bc['type']&&'deletion'!=_0x1d84bc['type'])return;const _0x64a964=_0x1d84bc['getContainedElement']();if(null==_0x64a964)return;if(!_0x64a964['is']('element','mergeField'))return;const _0x454862=_0x520fc3['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x64a964['getAttribute']('id'));return'insertion'==_0x1d84bc['type']?{'type':'insertion','content':o(_0x2d8bd3,'*Insert:*\x20%0','\x22'+_0x454862+'\x22\x20'+o(_0x2d8bd3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2d8bd3,'*Remove:*\x20%0','\x22'+_0x454862+'\x22\x20'+o(_0x2d8bd3,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x36b02c{['afterInit'](){const _0x2e2bf=this['editor'],_0x267d5d=_0x2e2bf['plugins']['get']('TrackChangesEditing');_0x2e2bf['plugins']['has']('MultiLevelList')&&(_0x267d5d['enableDefaultAttributesIntegration']('multiLevelList'),_0x267d5d['registerBlockAttribute']('listMarkerStyle'),_0x267d5d['descriptionFactory']['registerDescriptionCallback'](_0x4627f8=>this['handleDescriptions'](_0x4627f8)));}['handleDescriptions'](_0x13a21e){const _0x506958=this['editor']['locale'],{data:_0x8e9dd5}=_0x13a21e,_0x50084b={'type':'format','content':''};if(_0x8e9dd5&&'listMarkerStyle'==_0x8e9dd5['key']){if(!_0x8e9dd5['oldValue'])return{'type':'format','content':o(_0x506958,'*Set\x20format:*\x20%0',o(_0x506958,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8e9dd5['newValue']+')'};if(!_0x8e9dd5['newValue']){let _0x12eb28=_0x13a21e['head'];for(;_0x12eb28;){if(_0x12eb28['data']&&'listType'==_0x12eb28['data']['key']&&_0x12eb28['data']['newValue'])return _0x50084b;_0x12eb28=_0x12eb28['next'];}return{'type':'format','content':o(_0x506958,'*Remove\x20format:*\x20%0',o(_0x506958,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8e9dd5['oldValue']+')'};}}}}class kt extends _0x36b02c{['afterInit'](){const _0x448b17=this['editor'];if(!_0x448b17['plugins']['has']('PageBreakEditing'))return;_0x448b17['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c295e=_0x448b17['plugins']['get']('TrackChangesEditing'),_0x3116c0=_0x448b17['locale'];_0x1c295e['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b31e=>o(_0x3116c0,'ELEMENT_PAGE_BREAK',_0x5b31e));}}class bt extends _0x36b02c{['afterInit'](){const _0x23696e=this['editor'];if(!_0x23696e['plugins']['has']('Paragraph'))return;const _0x3c3d3c=_0x23696e['locale'],_0x3b6780=_0x23696e['plugins']['get']('TrackChangesEditing');_0x3b6780['descriptionFactory']['registerElementLabel']('paragraph',_0x34ad28=>o(_0x3c3d3c,'ELEMENT_PARAGRAPH',_0x34ad28)),_0x3b6780['enableDefaultAttributesIntegration']('paragraph'),_0x3b6780['enableCommand']('insertParagraph'),_0x23696e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23696e),{'priority':'highest'}),_0x23696e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a19ee,_0x2c817d,_0x15463f)=>{_0x15463f['options']['showSuggestionHighlights']&&nr(_0x23696e,{'showActiveMarker':!0x1})(_0x5a19ee,_0x2c817d,_0x15463f);},{'priority':'highest'});const _0x1a5e76=_0x3b6780['descriptionFactory'];_0x1a5e76['registerDescriptionCallback'](_0x380a26=>{if('insertion'!==_0x380a26['type'])return;const {start:_0x36cf3f,end:_0x159dc6}=_0x380a26['getFirstRange']();if(!_0x36cf3f['isTouching'](_0x159dc6)||!_0x36cf3f['nodeAfter'])return;const _0x2a9f60=_0x23696e['model']['schema'],_0x1e414d=_0x36cf3f['nodeAfter'];return _0x2a9f60['isBlock'](_0x1e414d)&&!_0x2a9f60['isLimit'](_0x1e414d)&&_0x2a9f60['checkChild'](_0x1e414d,'$text')?{'type':'insertion','content':o(_0x3c3d3c,'*Insert:*\x20%0',_0x1a5e76['getItemLabel'](_0x1e414d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23bc39=this['editor'],_0x53f848=_0x23bc39['locale'];_0x23bc39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7b92=>{if('formatBlock'!=_0x3a7b92['type'])return;const {data:_0x90c43c}=_0x3a7b92;return _0x90c43c&&'paragraph'==_0x90c43c['commandName']?{'type':'format','content':o(_0x53f848,'*Change\x20to:*\x20%0',o(_0x53f848,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5a515a,{showActiveMarker:_0x260d6c=!0x0}={}){return(_0x555965,_0x3c5e49,_0x14e417)=>{const _0xc71bae=_0x5a515a['plugins']['get']('TrackChangesEditing'),_0x115b36=_0x3c5e49['markerRange']['start'],_0x3f7970=_0x3c5e49['markerRange']['end'],_0xf5ba65=_0x5a515a['model']['schema'];if(!_0x115b36['isTouching'](_0x3f7970)||!_0x115b36['nodeAfter'])return;const _0x1e498c=_0x115b36['nodeAfter'];if(_0xf5ba65['isBlock'](_0x1e498c)&&!_0xf5ba65['isLimit'](_0x1e498c)&&_0xf5ba65['checkChild'](_0x1e498c,'$text')){if(!_0x14e417['consumable']['consume'](_0x3c5e49['markerRange'],_0x555965['name']))return;const {authorId:_0x345a32}=_0xc71bae['_splitMarkerName'](_0x3c5e49['markerName']),_0x3114a7=_0x14e417['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x345a32}),_0x5606f6=_0x14e417['mapper']['toViewPosition'](_0x3f7970);_0x260d6c&&_0xc71bae['activeMarkers']['includes'](_0x3c5e49['markerName'])&&_0x14e417['writer']['addClass']('ck-suggestion-marker--active',_0x3114a7),_0x14e417['writer']['insert'](_0x5606f6,_0x3114a7),_0x14e417['mapper']['bindElementToMarker'](_0x3114a7,_0x3c5e49['markerName']);}};}class wt extends _0x36b02c{['afterInit'](){const _0x19261f=this['editor'];if(!_0x19261f['plugins']['has']('RemoveFormatEditing'))return;_0x19261f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d6b6=this['editor'];_0x52d6b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391dab=>{if('formatBlock'!=_0x391dab['type']&&'formatInline'!=_0x391dab['type'])return;const {data:_0x402e18}=_0x391dab;return _0x402e18&&'removeFormat'==_0x402e18['commandName']?{'type':'format','content':o(_0x52d6b6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x36b02c{['afterInit'](){const _0x4cda6d=this['editor'];if(!_0x4cda6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2503ec=_0x4cda6d['plugins']['get']('TrackChangesEditing');_0x2503ec['enableCommand']('goToPreviousRestrictedEditingException'),_0x2503ec['enableCommand']('goToNextRestrictedEditingException');const _0x23eee2=_0x4cda6d['plugins']['get']('RestrictedEditingModeEditing');_0x23eee2['enableCommand']('trackChanges'),_0x23eee2['enableCommand']('acceptSuggestion'),_0x23eee2['enableCommand']('discardSuggestion'),_0x23eee2['enableCommand']('acceptAllSuggestions'),_0x23eee2['enableCommand']('discardAllSuggestions'),_0x23eee2['enableCommand']('acceptSelectedSuggestions'),_0x23eee2['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x36b02c{static get['requires'](){return[_0x10754b];}['init'](){const _0x1f26ed=this['editor'],_0x39e2d0=_0x1f26ed['plugins']['get']('TrackChangesEditing');_0x39e2d0['enableCommand']('shiftEnter'),_0x1f26ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1f26ed),{'priority':'high'}),_0x1f26ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1f26ed),{'priority':'high'}),_0x1f26ed['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x172c2b,_0x3477e1,_0x5949)=>{_0x5949['options']['showSuggestionHighlights']&&ge(_0x1f26ed,{'showActiveMarker':!0x1})(_0x172c2b,_0x3477e1,_0x5949);}),_0x39e2d0['descriptionFactory']['registerElementLabel']('softBreak',_0xe2f1a2=>o(_0x1f26ed['locale'],'ELEMENT_LINE_BREAK',_0xe2f1a2));}}function ge(_0x32ee14,{showActiveMarker:_0xdc65ee=!0x0}={}){return(_0x3a8f63,_0x27d614,_0x41a7db)=>{const _0x55a2b9=_0x32ee14['plugins']['get']('TrackChangesEditing');if(!_0x41a7db['consumable']['test'](_0x27d614['markerRange'],_0x3a8f63['name']))return;const _0x3511e2=_0x32ee14['model'];for(const _0xfbb518 of _0x27d614['markerRange']['getItems']()){if(!_0xfbb518['is']('element','softBreak'))continue;const _0x12606d='deletion'==_0x27d614['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x271efa}=_0x55a2b9['_splitMarkerName'](_0x27d614['markerName']),_0xdb1229=_0x41a7db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12606d,'data-author-id':_0x271efa}),_0xaf5194=_0x41a7db['mapper']['toViewPosition'](_0x3511e2['createPositionBefore'](_0xfbb518));_0xdc65ee&&_0x55a2b9['activeMarkers']['includes'](_0x27d614['markerName'])&&_0x41a7db['writer']['addClass']('ck-suggestion-marker--active',_0xdb1229),_0x41a7db['writer']['insert'](_0xaf5194,_0xdb1229),_0x41a7db['mapper']['bindElementToMarker'](_0xdb1229,_0x27d614['markerName']);}};}class St extends _0x36b02c{['afterInit'](){const _0x2c4846=this['editor'],_0x34b26a=_0x2c4846['model'],_0x3b7e1a=_0x2c4846['locale'];if(!_0x2c4846['plugins']['has']('StandardEditingModeEditing'))return;const _0x3601bf=_0x2c4846['plugins']['get']('TrackChangesEditing'),_0x395c9b='restrictedEditingException',_0xa3a229=_0x2c4846['commands']['get'](_0x395c9b);_0x3601bf['enableCommand'](_0x395c9b,(_0x1afd4c,_0x5e309={})=>{const _0x1fa5ab=_0x34b26a['document']['selection'];if(_0x1fa5ab['isCollapsed'])return void _0x1afd4c(_0x5e309);const _0x342198=void 0x0!==_0x5e309['forceValue']?_0x5e309['forceValue']:!_0xa3a229['value'];_0x34b26a['change'](()=>{const _0x4feab8=Array['from'](_0x1fa5ab['getRanges']());for(const _0x404a79 of _0x4feab8){const _0x3af6d9=_0x342198?[_0x404a79]:io(_0x395c9b,_0x404a79,_0x34b26a);for(const _0x4cf3a5 of _0x3af6d9)_0x3601bf['markInlineFormat'](_0x4cf3a5,{'commandName':_0x395c9b,'commandParams':[{'forceValue':_0x342198}]});}});}),_0x3601bf['descriptionFactory']['registerDescriptionCallback'](_0xe13f7=>{if('formatBlock'!=_0xe13f7['type']&&'formatInline'!=_0xe13f7['type'])return;const {data:_0x6073cc}=_0xe13f7;return _0x6073cc&&_0x6073cc['commandName']==_0x395c9b?_0x6073cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b7e1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3b7e1a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x36b02c{['afterInit'](){const _0x187013=this['editor'];if(!_0x187013['plugins']['has']('Style')||!_0x187013['plugins']['has']('DataSchema'))return;const _0x4b8168=_0x187013['plugins']['get']('TrackChangesEditing'),_0x56f1d5=_0x187013['locale'],_0xec2b5f=_0x187013['config']['get']('style')||{},_0x216e58=_0x187013['plugins']['get']('GeneralHtmlSupport'),_0x184fe9=_0x187013['plugins']['get']('StyleUtils')['normalizeConfig'](_0x187013['plugins']['get']('DataSchema'),_0xec2b5f['definitions']);_0x4b8168['enableDefaultAttributesIntegration']('style');const _0x32d0c8=new Set();for(const _0x12de42 of _0x184fe9['block']){const _0x5d21d1=_0x216e58['getGhsAttributeNameForElement'](_0x12de42['element']);_0x32d0c8['add'](_0x5d21d1);}const _0x4300f6=new Set();for(const _0x22e347 of _0x184fe9['inline']){const _0x824306=_0x216e58['getGhsAttributeNameForElement'](_0x22e347['element']);_0x4300f6['add'](_0x824306);for(const _0x4af462 of _0x22e347['ghsAttributes'])_0x4300f6['add'](_0x4af462);}for(const _0x1f4536 of _0x32d0c8)_0x4b8168['registerBlockAttribute'](_0x1f4536),_0x4b8168['descriptionFactory']['registerAttributeLabel'](_0x1f4536,o(_0x56f1d5,'FORMAT_STYLE'));for(const _0x30a3b1 of _0x4300f6)_0x4b8168['registerInlineAttribute'](_0x30a3b1),_0x4b8168['descriptionFactory']['registerAttributeLabel'](_0x30a3b1,o(_0x56f1d5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4c50=this['editor'],_0xcc7d8e=_0x5a4c50['locale'];_0x5a4c50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a060=>{if('formatBlock'!=_0x42a060['type']&&'formatInline'!=_0x42a060['type'])return;const {data:_0x2adbf6}=_0x42a060;return _0x2adbf6&&'style'===_0x2adbf6['commandName']?_0x2adbf6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcc7d8e,'*Set\x20format:*\x20%0',_0x2adbf6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xcc7d8e,'*Remove\x20format:*\x20%0',_0x2adbf6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x36b02c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x206f24){super(_0x206f24),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x538bad=this['editor'],_0x617b20=_0x538bad['model']['document']['selection'];if(!_0x538bad['plugins']['has']('TableEditing'))return;const _0x2d7d7a=_0x538bad['locale'],_0x59a560=_0x538bad['plugins']['get']('TrackChangesEditing'),_0x3e030f=_0x538bad['plugins']['get']('TableUtils');_0x59a560['descriptionFactory']['registerElementLabel']('table',_0x313e5a=>o(_0x2d7d7a,'ELEMENT_TABLE',_0x313e5a)),this['_setupColumnsRowsFixing'](),_0x59a560['enableCommand']('insertTable'),_0x59a560['enableCommand']('selectTableRow'),_0x59a560['enableCommand']('selectTableColumn');for(const _0x109542 of['insertTableRowAbove','insertTableRowBelow']){const _0x43e3f1=_0x538bad['commands']['get'](_0x109542);_0x59a560['enableCommand'](_0x109542,_0x560844=>{_0x538bad['model']['change'](_0x5a85bb=>{_0x560844();const _0xecaff3='above'===_0x43e3f1['order'],_0xf60237=_0x3e030f['getSelectionAffectedTableCells'](_0x617b20),_0x303bb3=_0x3e030f['getRowIndexes'](_0xf60237),_0xfe38fc=_0xecaff3?_0x303bb3['first']-0x1:_0x303bb3['last']+0x1,_0x327293=_0xf60237[0x0]['findAncestor']('table'),_0x460145=_0x3e030f['createTableWalker'](_0x327293,{'startRow':_0xfe38fc,'endRow':_0xfe38fc}),_0x54183b=Array['from'](_0x460145)['map'](_0x4c4191=>_0x5a85bb['createRangeOn'](_0x4c4191['cell']));_0x59a560['markMultiRangeInsertion'](_0x54183b,'tableRow');});});}for(const _0x9eeea0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4225fa=_0x538bad['commands']['get'](_0x9eeea0);_0x59a560['enableCommand'](_0x9eeea0,_0x52ceba=>{_0x538bad['model']['change'](_0x35da60=>{_0x52ceba();const _0x29d882='left'===_0x4225fa['order'],_0x468927=_0x3e030f['getSelectionAffectedTableCells'](_0x617b20),_0x106f93=_0x3e030f['getColumnIndexes'](_0x468927),_0x5d7b9b=_0x29d882?_0x106f93['first']-0x1:_0x106f93['last']+0x1,_0x1d7980=_0x468927[0x0]['findAncestor']('table'),_0x1f331b=_0x3e030f['createTableWalker'](_0x1d7980,{'startRow':0x0,'column':_0x5d7b9b,'includeAllSlots':!0x1}),_0x465b40=Array['from'](_0x1f331b)['map'](_0x4a50e5=>_0x35da60['createRangeOn'](_0x4a50e5['cell']));_0x59a560['markMultiRangeInsertion'](_0x465b40,'tableColumn');});});}for(const _0x5118af of['removeTableRow','removeTableColumn']){const _0x1fcefe=_0x5118af['substr'](0xb),_0x56e0cd=_0x1fcefe['toLowerCase'](),_0x369253=_0x56e0cd['substr'](0x0,0x3)+'span',_0x3e5598='table'+_0x1fcefe,_0x1570ad='min'+_0x1fcefe,_0x5ad610='max'+_0x1fcefe;_0x59a560['enableCommand'](_0x5118af,()=>{_0x538bad['model']['change'](_0x19e826=>{const _0x5d2fa9=_0x3e030f['getSelectionAffectedTableCells'](_0x617b20),_0x4599a1=_0x5d2fa9[0x0]['findAncestor']('table');let _0x436739;if('removeTableRow'==_0x5118af){const _0x57f14c=_0x3e030f['getRowIndexes'](_0x5d2fa9);_0x436739={'startRow':_0x57f14c['first'],'endRow':_0x57f14c['last'],'includeAllSlots':!0x0};}else{const _0x271bc1=_0x3e030f['getColumnIndexes'](_0x5d2fa9);_0x436739={'startColumn':_0x271bc1['first'],'endColumn':_0x271bc1['last'],'includeAllSlots':!0x0};}const _0x67d6a6=_0x3e030f['createTableWalker'](_0x4599a1,_0x436739),_0x3b87cf=Array['from'](_0x67d6a6)['map'](({cell:_0x4d0439})=>_0x4d0439),_0x509c27=be(_0x3b87cf['filter'](_0x540ed1=>_0x540ed1['hasAttribute'](_0x369253))),_0x5af954=be(_0x3b87cf['filter'](_0x17e22b=>!_0x17e22b['hasAttribute'](_0x369253)))['map'](_0x55f4d4=>_0x19e826['createRangeOn'](_0x55f4d4)),_0xa056f=_0x59a560['markMultiRangeDeletion'](_0x5af954,_0x3e5598);if(_0xa056f&&('tableRow'==_0xa056f['subType']||'tableColumn'==_0xa056f['subType'])){const _0x121c53=this['_getSuggestionCoords'](_0xa056f);for(const _0x4445ee of _0x509c27){const _0x3bf20e=_0x19e826['createRangeOn'](_0x4445ee),_0x26ff1e=_0x3e030f['getCellLocation'](_0x4445ee),_0x24f79f=_0x4445ee['getAttribute'](_0x369253)-0x1,_0x48326d=_0x121c53[_0x1570ad],_0x1a4d70=_0x121c53[_0x5ad610];_0x48326d<=_0x26ff1e[_0x56e0cd]&&_0x26ff1e[_0x56e0cd]+_0x24f79f<=_0x1a4d70&&_0xa056f['addRange'](_0x3bf20e);}}});});}function _0x3b870b(_0x4c02fc){const _0x20bb72=Array['from'](_0x617b20['getRanges']())['map'](_0x31923d=>_0x3f290a['fromRange'](_0x31923d));_0x538bad['model']['change'](_0x56b10c=>{const _0x3063b3=_0x56b10c['batch'];_0x4c02fc=_0x4c02fc['filter'](_0x2a4247=>'$graveyard'!=_0x2a4247['root']['rootName']),_0x56b10c['setSelection'](_0x4c02fc),_0x538bad['commands']['get']('removeTableRow')['refresh'](),_0x538bad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x538bad['model']['enqueueChange'](()=>{_0x538bad['model']['enqueueChange'](_0x3063b3,_0x597324=>{const _0x1574fe=_0x20bb72['filter'](_0x5c7859=>'$graveyard'!=_0x5c7859['root']['rootName']);_0x1574fe['length']>0x0&&_0x597324['setSelection'](_0x1574fe);for(const _0x39bb63 of _0x20bb72)_0x39bb63['detach']();});});});}function _0x355c5f(_0x480baa){_0x538bad['model']['change'](_0x5ce05f=>{const _0x16f1a4=Array['from'](_0x617b20['getRanges']())['map'](_0x573085=>_0x3f290a['fromRange'](_0x573085)),_0x1a242f=[];for(const _0x8d24e7 of _0x480baa)for(const _0x1ca30d of _0x8d24e7['getItems']({'shallow':!0x0}))_0x1a242f['push'](_0x1ca30d);for(const _0x368aef of _0x1a242f)'$graveyard'!=_0x368aef['root']['rootName']&&(_0x5ce05f['setSelection'](_0x5ce05f['createPositionAt'](_0x368aef,0x0)),_0x538bad['commands']['get']('removeTableColumn')['refresh'](),_0x538bad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xfd4eda=_0x16f1a4['filter'](_0x5b92a0=>'$graveyard'!=_0x5b92a0['root']['rootName']);_0xfd4eda['length']>0x0&&_0x5ce05f['setSelection'](_0xfd4eda);for(const _0x48dfec of _0x16f1a4)_0x48dfec['detach']();});}function _0x5d1284(_0xb1ca50,_0x4692c1){return _0x4692c1['every'](_0x4830e1=>_0xb1ca50['some'](_0x39c59b=>_0x39c59b['end']['isEqual'](_0x4830e1['start'])||_0x4830e1['end']['isEqual'](_0x39c59b['start'])));}function _0x2f9a6b(_0x32b393,_0x5a2cb9){return!_0x32b393['some'](_0xf973fd=>_0x5a2cb9['some'](_0x61b32a=>_0xf973fd['isIntersecting'](_0x61b32a)))&&_0x32b393['some'](_0x2a0cfc=>_0x5a2cb9['some'](_0x4bc680=>_0x2a0cfc['end']['isTouching'](_0x4bc680['start'])));}_0x538bad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2786ac,_0x1c35df,_0x5b5728)=>{if(!_0x5b5728['options']['showSuggestionHighlights'])return;const _0x36fada=_0x1c35df['item'];if(!_0x36fada)return;const _0x2f68a4=_0x5b5728['mapper']['toViewElement'](_0x36fada);function _0x15d783(_0x446605){return Array['isArray'](_0x446605)?_0x446605:[_0x446605];}_0x2f68a4&&'tableCell'===_0x36fada['name']&&_0x3836d1(_0x2f68a4,_0x5b5728['writer'],(_0x54ff3e,_0x44de12,_0x157194)=>_0x157194['addClass'](_0x15d783(_0x44de12['classes']),_0x54ff3e),(_0x3f9550,_0x3567f0,_0x5c1864)=>_0x5c1864['removeClass'](_0x15d783(_0x3567f0['classes']),_0x3f9550));},{'priority':'highest'}),_0x59a560['descriptionFactory']['registerDescriptionCallback'](_0x17b9f3=>{if('insertion'!=_0x17b9f3['type']&&'deletion'!=_0x17b9f3['type'])return;const _0x3ea4f3=_0x17b9f3['getContainedElement']();if(null!=_0x3ea4f3&&_0x3ea4f3['is']('element','table')){if('insertion'==_0x17b9f3['type']){const _0x327633=_0x17b9f3['getItems']()['filter'](_0x5e61b4=>_0x5e61b4['is']('$textProxy'))['map'](_0x28c8b6=>_0x28c8b6['data']);if(_0x327633['length'])return{'type':'insertion','content':o(_0x2d7d7a,'*Insert:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x327633['join']('\x20')+'\x22'))};}if('deletion'==_0x17b9f3['type']){const _0x2a7b29=_0x17b9f3['getItems']()['filter'](_0x25ce16=>_0x25ce16['is']('$textProxy'))['map'](_0x520ef4=>_0x520ef4['data']);if(_0x2a7b29['length'])return{'type':'deletion','content':o(_0x2d7d7a,'*Remove:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a7b29['join']('\x20')+'\x22'))};}}}),_0x59a560['descriptionFactory']['registerDescriptionCallback'](_0x4681b7=>{if('tableRow'==_0x4681b7['subType']){const _0x13cc6d=_0x4681b7['getItems']()['filter'](_0x35d262=>_0x35d262['is']('$textProxy'))['map'](_0x597b71=>_0x597b71['data']),_0x290698=this['_getSuggestionCoords'](_0x4681b7),_0x2600e2=_0x290698['maxRow']-_0x290698['minRow']+0x1;if('insertion'==_0x4681b7['type'])return _0x13cc6d['length']?{'type':'insertion','content':o(_0x2d7d7a,'*Insert:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2600e2,'\x22'+_0x13cc6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d7d7a,'*Insert:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_ROW',_0x2600e2))};if('deletion'==_0x4681b7['type'])return _0x13cc6d['length']?{'type':'deletion','content':o(_0x2d7d7a,'*Remove:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2600e2,'\x22'+_0x13cc6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d7d7a,'*Remove:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_ROW',_0x2600e2))};}if('tableColumn'==_0x4681b7['subType']){const _0x5f5cc3=_0x4681b7['getItems']()['filter'](_0x28a032=>_0x28a032['is']('$textProxy'))['map'](_0x51e5e0=>_0x51e5e0['data']),_0x313de5=this['_getSuggestionCoords'](_0x4681b7),_0x22785f=_0x313de5['maxColumn']-_0x313de5['minColumn']+0x1;if('insertion'==_0x4681b7['type'])return _0x5f5cc3['length']?{'type':'insertion','content':o(_0x2d7d7a,'*Insert:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x22785f,'\x22'+_0x5f5cc3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d7d7a,'*Insert:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_COLUMN',_0x22785f))};if('deletion'==_0x4681b7['type'])return _0x5f5cc3['length']?{'type':'deletion','content':o(_0x2d7d7a,'*Remove:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x22785f,'\x22'+_0x5f5cc3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d7d7a,'*Remove:*\x20%0',o(_0x2d7d7a,'ELEMENT_TABLE_COLUMN',_0x22785f))};}}),_0x59a560['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3b870b),_0x59a560['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3b870b),_0x59a560['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x355c5f),_0x59a560['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x355c5f),_0x59a560['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d1284),_0x59a560['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d1284),_0x59a560['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f9a6b),_0x59a560['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f9a6b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45d307=this['editor'],_0x323fc9=_0x45d307['model']['document']['selection'];return(_0x39fee1,_0x4647ee)=>{_0x45d307['model']['change'](_0x404127=>{const {commandName:_0x23e1ad,commandParams:_0x541b45}=_0x4647ee;let _0x1c5778=_0x39fee1[0x0]['end']['nodeBefore'];_0x541b45&&_0x541b45[0x0]&&!0x1===_0x541b45[0x0]['forceValue']&&(_0x1c5778=_0x39fee1[0x0]['start']['nodeAfter']);const _0x2b69f4=_0x404127['createRangeIn'](_0x1c5778);if('$graveyard'==_0x2b69f4['root']['rootName'])return;const _0x562125=Array['from'](_0x323fc9['getRanges']())['map'](_0x3bda26=>_0x3f290a['fromRange'](_0x3bda26));_0x404127['setSelection'](_0x2b69f4),_0x45d307['commands']['get'](_0x23e1ad)['refresh'](),_0x541b45['push']({'forceDefaultExecution':!0x0}),_0x45d307['execute'](_0x23e1ad,..._0x541b45);const _0x29853e=_0x562125['filter'](_0xdf92d5=>'$graveyard'!=_0xdf92d5['root']['rootName']);_0x29853e['length']>0x0&&_0x404127['setSelection'](_0x29853e);for(const _0x2928c4 of _0x562125)_0x2928c4['detach']();});};}['_getCoordsForCells'](_0x327f38){const _0x40d6a7=this['editor']['plugins']['get']('TableUtils');let _0x4db145=Number['MAX_SAFE_INTEGER'],_0x37cea4=Number['MIN_SAFE_INTEGER'],_0x4a2640=Number['MAX_SAFE_INTEGER'],_0x244ce0=Number['MIN_SAFE_INTEGER'];for(const _0x22e8c0 of _0x327f38){if('$graveyard'==_0x22e8c0['root']['rootName'])continue;const {row:_0x576e9a,column:_0x217132}=_0x40d6a7['getCellLocation'](_0x22e8c0),_0x550809=_0x22e8c0['hasAttribute']('rowspan')?_0x22e8c0['getAttribute']('rowspan')-0x1:0x0,_0x5b89da=_0x22e8c0['hasAttribute']('colspan')?_0x22e8c0['getAttribute']('colspan')-0x1:0x0;_0x4db145=_0x576e9a<_0x4db145?_0x576e9a:_0x4db145,_0x37cea4=_0x576e9a+_0x550809>_0x37cea4?_0x576e9a+_0x550809:_0x37cea4,_0x4a2640=_0x217132<_0x4a2640?_0x217132:_0x4a2640,_0x244ce0=_0x217132+_0x5b89da>_0x244ce0?_0x217132+_0x5b89da:_0x244ce0;}return{'minRow':_0x4db145,'maxRow':_0x37cea4,'minColumn':_0x4a2640,'maxColumn':_0x244ce0};}['_setupColumnsRowsFixing'](){const _0xe8f14b=this['editor'],_0x455dd9=_0xe8f14b['plugins']['get']('TrackChangesEditing'),_0x3fbd92=_0xe8f14b['plugins']['get']('TableUtils');_0xe8f14b['model']['document']['on']('change:data',()=>{const _0x2c7722=Array['from'](_0xe8f14b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x501314,data:_0x59e877}of _0x2c7722){const {group:_0x341890,id:_0x4857d1,subType:_0x4e5a73}=_0x455dd9['_splitMarkerName'](_0x501314);if('suggestion'!=_0x341890)continue;if(null!=_0x59e877['oldRange'])continue;const _0x327cce=_0x455dd9['getSuggestion'](_0x4857d1);this['_tablePostFixingSubtypes']['includes'](_0x4e5a73)&&this['_tableSuggestions']['add'](_0x327cce);}},{'priority':'low'});const _0x5775c6=(_0x356126,_0x87a0af)=>{let _0x438b61=!0x1;const _0x1a473c=_0x87a0af['createRangeOn'](_0x356126),_0x2a45b4=_0x356126['findAncestor']('table'),_0x151dab=_0x3fbd92['getCellLocation'](_0x356126);for(const _0x5cf330 of this['_tableSuggestions']){const _0x322503=_0x5cf330['subType'],_0x3eeb3=_0x322503['startsWith']('tablePaste'),_0x1dc3a2=_0x322503['substr'](_0x3eeb3?0xa:0x5),_0x5919c2=_0x1dc3a2['toLowerCase'](),_0x913f22=_0x5919c2['substr'](0x0,0x3)+'span',_0x2314c7='min'+_0x1dc3a2,_0x40f7c7='max'+_0x1dc3a2;if(!_0x5cf330['isInContent'])continue;if(_0x2a45b4!=_0x5cf330['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5cf330['isIntersectingWithRange'](_0x1a473c))continue;const _0x476c63=_0x356126['hasAttribute'](_0x913f22)?_0x356126['getAttribute'](_0x913f22)-0x1:0x0,_0x1452d0=this['_getSuggestionCoords'](_0x5cf330),_0x1d0a7b=_0x1452d0[_0x2314c7],_0x527100=_0x1452d0[_0x40f7c7];_0x1d0a7b<=_0x151dab[_0x5919c2]&&_0x151dab[_0x5919c2]+_0x476c63<=_0x527100&&(_0x5cf330['addRange'](_0x1a473c),_0x438b61=!0x0);}return _0x438b61;};_0xe8f14b['model']['document']['registerPostFixer'](_0xa4dc60=>{let _0x313087=!0x1;for(const _0x5db771 of _0xe8f14b['model']['document']['differ']['getChanges']())if('insert'==_0x5db771['type']){if('tableRow'==_0x5db771['name']){for(const _0x29698a of _0x5db771['position']['nodeAfter']['getChildren']())_0x313087=_0x313087||_0x5775c6(_0x29698a,_0xa4dc60);}else'tableCell'==_0x5db771['name']&&(_0x313087=_0x313087||_0x5775c6(_0x5db771['position']['nodeAfter'],_0xa4dc60));}return _0x313087;});}['_getSuggestionCoords'](_0x425a1a){return this['_getCoordsForCells'](_0x425a1a['getRanges']()['map'](_0x3b17be=>_0x3b17be['start']['nodeAfter']));}}function be(_0x5863af){return Array['from'](new Set(_0x5863af)['values']());}class vt extends _0x36b02c{static get['requires'](){return[It];}['afterInit'](){const _0xa413c=this['editor'],_0x44bd40=_0xa413c['model']['document']['selection'],_0x4845a2=_0xa413c['locale'];if(!_0xa413c['plugins']['has']('TableEditing'))return;const _0x422510=_0xa413c['plugins']['get']('TrackChangesEditing'),_0x1fbed8=_0xa413c['plugins']['get']('TableUtils'),_0x1a60e6=_0xa413c['plugins']['get'](It);_0x1a60e6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x422510['enableCommand']('mergeTableCells',()=>{const _0xe32306=_0x1fbed8['getSelectionAffectedTableCells'](_0xa413c['model']['document']['selection']);_0xa413c['model']['change'](()=>{_0x422510['markMultiRangeBlockFormat'](_0xe32306,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa413c['commands']['get']('mergeTableCells')['on']('execute',(_0x20dfb9,_0x4a5f51)=>{_0xa413c['commands']['get']('trackChanges')['value']&&(_0x4a5f51['length']>0x0&&_0x4a5f51[_0x4a5f51['length']-0x1]&&_0x4a5f51[_0x4a5f51['length']-0x1]['forceDefaultExecution']||_0x422510['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x20dfb9['stop']());},{'priority':'highest'});for(const _0x80e0e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d05ab=_0xa413c['commands']['get'](_0x80e0e);_0x422510['enableCommand'](_0x80e0e,()=>{const _0x185f68=_0xa413c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x12c6fc=>_0x12c6fc['is']('element','tableCell')),_0x333553=_0x2d05ab['value'];_0xa413c['model']['change'](()=>{_0x422510['markMultiRangeBlockFormat']([_0x185f68,_0x333553],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a7680 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4539ff=_0xa413c['commands']['get'](_0x3a7680);_0x422510['enableCommand'](_0x3a7680,()=>{const _0x32f3e2=_0x1fbed8['getSelectionAffectedTableCells'](_0xa413c['model']['document']['selection'])[0x0],_0x40cdcc=_0x32f3e2['findAncestor']('table'),{column:_0x32ed5d,row:_0x52efca}=_0x1fbed8['getCellLocation'](_0x32f3e2);let _0x4120a4=[];if('horizontally'==_0x4539ff['direction']){const _0x2063e2=_0x1fbed8['createTableWalker'](_0x40cdcc,{'startRow':_0x52efca,'endRow':_0x52efca,'includeAllSlots':!0x0});_0x4120a4=Array['from'](_0x2063e2)['map'](_0x1acdff=>_0x1acdff['cell']);}else{const _0x42b483=_0x1fbed8['createTableWalker'](_0x40cdcc,{'column':_0x32ed5d,'includeAllSlots':!0x0});_0x4120a4=Array['from'](_0x42b483)['map'](_0x5f13f6=>_0x5f13f6['cell']);}_0xa413c['model']['change'](_0x2d416b=>{_0x422510['markBlockFormat'](_0x2d416b['createRangeOn'](_0x32f3e2),{'commandName':_0x3a7680,'commandParams':[]},_0x4120a4,_0x3a7680);});});}_0x422510['descriptionFactory']['registerDescriptionCallback'](_0x126309=>{if('formatBlock'!=_0x126309['type']&&'formatInline'!=_0x126309['type'])return;const {data:_0x32b1d9}=_0x126309;return _0x32b1d9&&'mergeTableCells'==_0x32b1d9['commandName']?{'type':'format','content':o(_0x4845a2,'*Merge\x20cells*')}:void 0x0;}),_0x422510['descriptionFactory']['registerDescriptionCallback'](_0x3a6b72=>{if('formatBlock'!=_0x3a6b72['type']&&'formatInline'!=_0x3a6b72['type'])return;const {data:_0x1dc6f2}=_0x3a6b72;return _0x1dc6f2?'splitTableCellVertically'==_0x1dc6f2['commandName']?{'type':'format','content':o(_0x4845a2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1dc6f2['commandName']?{'type':'format','content':o(_0x4845a2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x549ab0=_0x1a60e6['_acceptFormatSuggestionCallbackFactory']();for(const _0x42604b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x422510['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42604b,'accept',_0x549ab0);for(const _0x14e006 of['splitTableCellVertically','splitTableCellHorizontally'])_0x422510['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14e006,'accept',_0x549ab0);_0x422510['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x415916=>{_0xa413c['model']['change'](_0x2e352a=>{const _0x59e421=Array['from'](_0x44bd40['getRanges']())['map'](_0x2246ac=>_0x3f290a['fromRange'](_0x2246ac));_0x2e352a['setSelection'](_0x415916),_0xa413c['commands']['get']('mergeTableCells')['refresh'](),_0xa413c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5ee551=_0x59e421['filter'](_0x1ced57=>'$graveyard'!=_0x1ced57['root']['rootName']);_0x5ee551['length']>0x0&&_0x2e352a['setSelection'](_0x5ee551);for(const _0x2873cc of _0x59e421)_0x2873cc['detach']();});});for(const _0x2c0c63 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x23f9e9=_0xa413c['commands']['get'](_0x2c0c63);_0x23f9e9['on']('set:isEnabled',(_0x3918e6,_0x2b7229,_0xf64d5d)=>{if(_0xf64d5d){const _0x3bb0ce=_0xa413c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49a94a=>_0x49a94a['is']('element','tableCell'));this['_areMergableCells'](_0x23f9e9['value'],_0x3bb0ce)||(_0x3918e6['return']=!0x1,_0x3918e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x907041=this['editor']['commands']['get']('mergeTableCells'),_0x5b827a=this['editor']['plugins']['get']('TableUtils');if(!_0x907041['isEnabled'])return!0x1;const _0x377ce2=_0x5b827a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44b101 of _0x377ce2)for(const _0x2bb858 of _0x377ce2)if(_0x44b101!=_0x2bb858&&!this['_areMergableCells'](_0x44b101,_0x2bb858))return!0x1;return!0x0;}['_areMergableCells'](_0x45730c,_0x304a74){const _0x5097d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3232f3=this['editor']['model']['createRangeOn'](_0x45730c),_0x502577=this['editor']['model']['createRangeOn'](_0x304a74),_0x33d9d5=new Set(),_0x5b0ada=new Set();for(const _0x29b76c of _0x5097d4['getSuggestions']())if(('insertion'==_0x29b76c['type']||'deletion'==_0x29b76c['type']||'mergeTableCells'==_0x29b76c['subType'])&&_0x29b76c['isInContent']){for(const _0x189611 of _0x29b76c['getRanges']())_0x189611['containsRange'](_0x3232f3,!0x0)&&_0x33d9d5['add'](_0x29b76c['type']+':'+_0x29b76c['author']['id']),_0x189611['containsRange'](_0x502577,!0x0)&&_0x5b0ada['add'](_0x29b76c['type']+':'+_0x29b76c['author']['id']);}if(_0x33d9d5['size']!=_0x5b0ada['size'])return!0x1;for(const _0x598d7d of _0x33d9d5)if(!_0x5b0ada['has'](_0x598d7d))return!0x1;return!0x0;}}class Ct extends _0x36b02c{static get['requires'](){return[It];}['afterInit'](){const _0xb5b2ba=this['editor'];if(!_0xb5b2ba['plugins']['has']('TableEditing'))return;const _0xdebac0=_0xb5b2ba['locale'],_0x490706=_0xb5b2ba['plugins']['get']('TrackChangesEditing');_0x490706['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x490706['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x490706['registerBlockAttribute']('headingRows'),_0x490706['registerBlockAttribute']('headingColumns'),_0x490706['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xdebac0,'FORMAT_HEADER_ROW')),_0x490706['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xdebac0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45a6cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5160ce=this['editor']['plugins']['get']('TableUtils'),_0x2a7530=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x260683({showActiveMarker:_0x1722a0=!0x0,setDataAttribute:_0x1dbf46=!0x0}={}){return(_0x4c38d0,_0x3536ae,_0x594841)=>{const {type:_0x62d779,id:_0x504736}=_0x45a6cd['_splitMarkerName'](_0x3536ae['markerName']),_0x5a2410=_0x45a6cd['getSuggestion'](_0x504736),_0x99514c=_0x5a2410['data'];if('formatBlock'!=_0x5a2410['type']||!_0x99514c||'setTableColumnHeader'!=_0x99514c['commandName'])return;if(_0x3536ae['item'])return void _0x4c38d0['stop']();if(!_0x594841['consumable']['consume'](_0x3536ae['markerRange'],_0x4c38d0['name']))return;const _0x5edf71=_0x3536ae['markerRange']['start']['nodeAfter'],_0x2891bd=_0x3536ae['markerRange']['end']['nodeBefore'],_0x21d7bc=_0x5edf71['parent']['parent'],{column:_0x3ad810}=_0x5160ce['getCellLocation'](_0x5edf71),{column:_0x3f34f3}=_0x5160ce['getCellLocation'](_0x2891bd);for(let _0x2d502a=_0x3ad810;_0x2d502a<=_0x3f34f3;_0x2d502a++){const _0xff6532=_0x5160ce['createTableWalker'](_0x21d7bc,{'column':_0x2d502a,'includeAllSlots':!0x1});for(const _0x12d73d of _0xff6532){const _0x3d617e=_0x12d73d['cell'],_0x43394d=_0x594841['mapper']['toViewElement'](_0x3d617e);_0x594841['writer']['addClass']('ck-suggestion-marker-'+_0x62d779,_0x43394d),_0x1dbf46&&_0x594841['writer']['setAttribute']('data-suggestion',_0x504736,_0x43394d),_0x594841['mapper']['bindElementToMarker'](_0x43394d,_0x3536ae['markerName']),_0x1722a0&&(_0x45a6cd['activeMarkers']['includes'](_0x3536ae['markerName'])?_0x594841['writer']['addClass']('ck-suggestion-marker--active',_0x43394d):_0x594841['writer']['removeClass']('ck-suggestion-marker--active',_0x43394d));}}};}_0x45a6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a7530),_0x45a6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a7530),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x260683(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24117e,_0xe9c1cd,_0xe5c05d)=>{_0xe5c05d['options']['showSuggestionHighlights']&&_0x260683({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24117e,_0xe9c1cd,_0xe5c05d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e4fb4,_0x107de5,_0x198b7f)=>{const {type:_0x11c6f4,id:_0x21e25d}=_0x45a6cd['_splitMarkerName'](_0x107de5['markerName']),_0x13f8a4=_0x45a6cd['getSuggestion'](_0x21e25d),_0x41b5e5=_0x13f8a4['data'];if('formatBlock'!=_0x13f8a4['type']||!_0x41b5e5||'setTableColumnHeader'!=_0x41b5e5['commandName'])return;const _0x699d6a=_0x198b7f['mapper']['markerNameToElements'](_0x107de5['markerName']);if(_0x699d6a){for(const _0x4666e7 of _0x699d6a)_0x198b7f['writer']['removeClass']('ck-suggestion-marker-'+_0x11c6f4,_0x4666e7),_0x198b7f['writer']['removeClass']('ck-suggestion-marker--active',_0x4666e7),_0x198b7f['writer']['removeAttribute']('data-suggestion',_0x4666e7),_0x198b7f['mapper']['unbindElementFromMarkerName'](_0x4666e7,_0x107de5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474fc8=this['editor'],_0x444c13=_0x474fc8['locale'];function _0x1dc8c6(_0xf2afd1){return{'type':'format','content':o(_0x444c13,'*Format:*\x20%0',_0xf2afd1)};}_0x474fc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3656f4=>{if('formatBlock'!=_0x3656f4['type'])return;const {data:_0x48b5b8}=_0x3656f4;if(_0x48b5b8){if('setTableRowHeader'==_0x48b5b8['commandName']){const _0x2b5dac=_0x48b5b8['commandParams'][0x0]['forceValue'];return _0x1dc8c6(o(_0x444c13,_0x2b5dac?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x48b5b8['commandName']){const _0xeb922b=_0x48b5b8['commandParams'][0x0]['forceValue'];return _0x1dc8c6(o(_0x444c13,_0xeb922b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x4f7efa=>[_0x4f7efa,null]));class _t extends _0x36b02c{static get['requires'](){return[It];}['afterInit'](){const _0x124bcb=this['editor'];if(!_0x124bcb['plugins']['has']('TableClipboard'))return;const _0x2e6d74=_0x124bcb['plugins']['get']('TrackChangesEditing'),_0x5d9cbf=_0x124bcb['plugins']['get']('TableUtils'),_0x1ba935=_0x124bcb['plugins']['get'](It),_0x49d6df=_0x124bcb['plugins']['get']('TableClipboard');_0x1ba935['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x124bcb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x124bcb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x567ffc=null;_0x124bcb['model']['on']('insertContent',(_0x1fe41a,_0x1aa3f2)=>{const [_0x111c96,_0x3ecef8]=_0x1aa3f2,_0x5179dd=_0x1aa3f2[_0x1aa3f2['length']-0x1];_0x5179dd&&_0x5179dd['forceDefaultExecution']||_0x2e6d74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4209c4,_0x142fc3,_0x2431f3,_0x46d2f0,_0x4bafd1){if(_0x142fc3&&!_0x142fc3['is']('documentSelection'))return!0x1;const _0x498ba6=_0x4bafd1['getTableIfOnlyTableInContent'](_0x4209c4,_0x2431f3);if(!_0x498ba6||!Re(_0x498ba6,void 0x0,_0x46d2f0))return!0x1;const _0x2a28f0=_0x46d2f0['getSelectionAffectedTableCells'](_0x2431f3['document']['selection']);if(!_0x2a28f0['length'])return!0x1;const _0x137a3a=_0x2a28f0[0x0]['findAncestor']('table'),_0x1e182b=_0x46d2f0['getRowIndexes'](_0x2a28f0),_0x4062b5=_0x46d2f0['getColumnIndexes'](_0x2a28f0),_0x4fc95e={'startRow':_0x1e182b['first'],'endRow':_0x1e182b['last'],'startColumn':_0x4062b5['first'],'endColumn':_0x4062b5['last']};return 0x1==_0x2a28f0['length']&&(_0x4fc95e['endRow']+=_0x46d2f0['getRows'](_0x498ba6)-0x1,_0x4fc95e['endColumn']+=_0x46d2f0['getColumns'](_0x498ba6)-0x1),Re(_0x137a3a,_0x4fc95e,_0x46d2f0);}(_0x111c96,_0x3ecef8,_0x124bcb['model'],_0x5d9cbf,_0x49d6df)&&(_0x1fe41a['stop'](),_0x567ffc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x124bcb['model']['change'](()=>{_0x124bcb['model']['insertContent'](_0x1aa3f2[0x0],_0x1aa3f2[0x1],_0x1aa3f2[0x2],{'forceDefaultExecution':!0x0});const _0x4a7fb8=_0xca03d8(),{rowInsertionRanges:_0x10e8f5,columnInsertionRanges:_0x139fde,insertionRanges:_0x223458,deletionRanges:_0x291314,cells:_0x582d28}=_0x567ffc;_0x10e8f5['length']&&_0x2e6d74['markMultiRangeInsertion'](_0x10e8f5,'tablePasteRow',{'tablePasteChainId':_0x4a7fb8}),_0x139fde['length']&&_0x2e6d74['markMultiRangeInsertion'](_0x139fde,'tablePasteColumn',{'tablePasteChainId':_0x4a7fb8}),_0x223458['length']&&(_0x2e6d74['markMultiRangeInsertion'](_0x223458,'tablePaste',{'tablePasteChainId':_0x4a7fb8,'skipNestingCheck':!0x0}),_0x223458['forEach'](_0x2144a7=>_0x2144a7['detach']?.())),_0x291314['length']&&(_0x2e6d74['markMultiRangeDeletion'](_0x291314,'tablePaste',{'tablePasteChainId':_0x4a7fb8,'skipNestingCheck':!0x0}),_0x291314['forEach'](_0x58a6aa=>_0x58a6aa['detach']?.()));const _0x538f88=_0x2e6d74['markMultiRangeBlockFormat'](_0x582d28['map'](({element:_0x5631be})=>_0x5631be),{'formatGroupId':_0xca03d8()},[],'tablePasteCell',{'tablePasteChainId':_0x4a7fb8});if(_0x538f88){const _0x5896c2=_0x538f88['getMarkers'](),_0x5b9dd1=[];for(const {element:_0x45b704,attributes:_0x201481}of _0x582d28){if(!_0x201481)continue;const _0xa14073=_0x124bcb['model']['createRangeOn'](_0x45b704),_0x5d6db9=_0x5896c2['find'](_0x7a874a=>_0x7a874a['getRange']()['isEqual'](_0xa14073));_0x5d6db9&&_0x5b9dd1['push']([_0x5d6db9['name'],_0x201481]);}_0x5b9dd1['length']&&_0x538f88['setAttribute']('markerAttributes',Object['fromEntries'](_0x5b9dd1));}_0x567ffc=null;}));},{'priority':_0x37f3b3['high']+0xa}),_0x124bcb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe754bd,_0x557093)=>{const [_0x53bfcf,_0x1e3583,,_0xe8a7ba]=_0x557093;if(!_0x567ffc)return;_0xe754bd['stop']();const _0x2c2438=_0x53bfcf['cell'],_0x535fa8=_0x1e3583,_0xb9be1b=ke(_0x2c2438),_0x53d577=ke(_0x535fa8);_0xe754bd['return']=_0x2c2438;let _0x3b338e=null,_0x5dd48a=null;if(_0x53d577||_0xb9be1b){if(_0xb9be1b&&!_0x53d577){_0xe8a7ba['remove'](_0x2c2438['getChild'](0x0));for(const _0x30dc26 of Array['from'](_0x535fa8['getChildren']()))_0xe8a7ba['insert'](_0x30dc26,_0x2c2438,'end');const _0x2a2000=_0x567ffc['rowInsertionIndexes']['includes'](_0x53bfcf['row']),_0x20cfec=_0x567ffc['columnInsertionIndexes']['includes'](_0x53bfcf['column']);_0x2a2000||_0x20cfec||(_0x3b338e=_0x3f290a['fromRange'](_0xe8a7ba['createRangeIn'](_0x2c2438)));}else _0x53d577&&!_0xb9be1b&&(_0x5dd48a=_0xe8a7ba['createRangeIn'](_0x2c2438));}else{const _0x444e0a=_0xe8a7ba['createElement']('tableCellSuggestion'),_0x4a07f0=_0xe8a7ba['createElement']('tableCellSuggestion');_0xe8a7ba['wrap'](_0xe8a7ba['createRangeIn'](_0x2c2438),_0x4a07f0),_0xe8a7ba['insert'](_0x444e0a,_0x2c2438,0x0);for(const _0x4774cf of Array['from'](_0x535fa8['getChildren']()))_0xe8a7ba['insert'](_0x4774cf,_0x444e0a,'end');_0x3b338e=_0x3f290a['fromRange'](_0xe8a7ba['createRangeOn'](_0x444e0a)),_0x5dd48a=_0x3f290a['fromRange'](_0xe8a7ba['createRangeOn'](_0x4a07f0));}const _0x5d584d=Array['from'](_0x535fa8['getAttributes']())['filter'](([_0x569ef6])=>Pe['includes'](_0x569ef6));_0x567ffc['cells']['push']({'element':_0x2c2438,'attributes':_0x5d584d['length']?Object['fromEntries'](_0x5d584d):null}),_0x3b338e&&_0x567ffc['insertionRanges']['push'](_0x3b338e),_0x5dd48a&&_0x567ffc['deletionRanges']['push'](_0x5dd48a);},{'priority':'high'}),_0x5d9cbf['on']('insertColumns',(_0xe34a8c,_0x358ee4)=>{const [_0x5f685e,_0x19a1db={}]=_0x358ee4;if(!_0x567ffc)return;const _0x1a0ddc=_0x19a1db['at']||0x0,_0x21e85a=_0x19a1db['columns']||0x1;_0x567ffc['columnInsertionIndexes']=new Array(_0x21e85a)['fill'](_0x1a0ddc)['map']((_0x48a829,_0xdf1fbd)=>_0x48a829+_0xdf1fbd);for(const {cell:_0x3fe329}of _0x5d9cbf['createTableWalker'](_0x5f685e,{'startColumn':_0x1a0ddc,'endColumn':_0x1a0ddc+_0x21e85a-0x1}))_0x567ffc['columnInsertionRanges']['push'](_0x124bcb['model']['createRangeOn'](_0x3fe329));},{'priority':'low'}),_0x5d9cbf['on']('insertRows',(_0x379e06,_0x38717c)=>{const [_0x424054,_0xf5e811={}]=_0x38717c;if(!_0x567ffc)return;const _0x4643e5=_0xf5e811['at']||0x0,_0x410c75=_0xf5e811['rows']||0x1;_0x567ffc['rowInsertionIndexes']=new Array(_0x410c75)['fill'](_0x4643e5)['map']((_0x285e86,_0x14a9e1)=>_0x285e86+_0x14a9e1);for(const {cell:_0x68a4be}of _0x5d9cbf['createTableWalker'](_0x424054,{'startRow':_0x4643e5,'endRow':_0x4643e5+_0x410c75-0x1}))_0x567ffc['rowInsertionRanges']['push'](_0x124bcb['model']['createRangeOn'](_0x68a4be));},{'priority':'low'}),_0x2e6d74['descriptionFactory']['registerDescriptionCallback'](_0x187050=>{if(_0x187050['subType']&&_0x187050['subType']['startsWith']('tablePaste'))return _0x187050['previous']?{}:{'type':'insertion','content':o(_0x124bcb['locale'],'*Replace\x20table\x20cells*')};});const _0x2ee750=()=>!0x1;for(const _0x3e8a28 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2e6d74['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e8a28,'join',_0x2ee750),_0x2e6d74['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e8a28,'join',_0x2ee750),_0x2e6d74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e8a28,'join',_0x2ee750);_0x2e6d74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2ee750),_0x2e6d74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x39a3e1,_0x1a9e16,_0x59bf81)=>{const _0x1d5334=_0x39a3e1['map'](_0x3497bc=>_0x3497bc['getContainedElement']())['filter'](_0x1497b5=>_0x1497b5),_0x2bd9f0=new Map(_0x1d5334['map'](_0xc436be=>[_0xc436be,null]));if(_0x567ffc){for(const {element:_0x374465,attributes:_0x2ee2fd}of _0x567ffc['cells'])_0x2ee2fd&&_0x2bd9f0['set'](_0x374465,_0x2ee2fd);}else{if(_0x59bf81&&_0x59bf81['markerAttributes'])for(const [_0x1841e1,_0x4ed36d]of Object['entries'](_0x59bf81['markerAttributes'])){const _0x542054=_0x124bcb['model']['markers']['get'](_0x1841e1),_0x59f8df=_0x542054?_0x542054['getRange']()['getContainedElement']():null;_0x59f8df&&_0x2bd9f0['set'](_0x59f8df,_0x4ed36d);}}_0x124bcb['model']['change'](_0x4d35eb=>{for(const [_0x90edfc,_0x268c95]of _0x2bd9f0)_0x4d35eb['setAttributes']({...we,..._0x268c95},_0x90edfc);});});const _0x1eec89=(_0x3765d8,_0x28e027)=>{_0x2e6d74['_suggestionFactory']['registerCustomCallback'](_0x3765d8,'tablePaste',_0x28e027,(_0x399d69,_0x2dd046,_0x4238e5)=>{_0x124bcb['model']['change'](_0x5cbdf6=>{const _0x3416a4=[];for(const _0x85c580 of _0x399d69){const _0x5c336a=_0x85c580['start']['nodeAfter'];_0x5c336a['is']('element','tableCellSuggestion')&&_0x3416a4['push'](_0x5c336a);}_0x2e6d74['_suggestionFactory']['getSuggestionCallback'](_0x3765d8,null,_0x28e027)(_0x399d69,_0x2dd046,_0x4238e5);for(const _0xb954c4 of _0x3416a4)'$graveyard'!=_0xb954c4['root']['rootName']&&_0x5cbdf6['unwrap'](_0xb954c4);});});};_0x1eec89('insertion','accept'),_0x1eec89('insertion','discard'),_0x1eec89('deletion','accept'),_0x1eec89('deletion','discard'),_0x2e6d74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32b0ca=>{const _0x116eeb=_0x32b0ca['map'](_0xf76488=>_0xf76488['getContainedElement']()),_0x3d39d9=_0x116eeb[0x0]['findAncestor']('table'),{minRow:_0x1a8ed4,maxRow:_0x3b6950}=_0x1ba935['_getCoordsForCells'](_0x116eeb);_0x5d9cbf['removeRows'](_0x3d39d9,{'at':_0x1a8ed4,'rows':_0x3b6950-_0x1a8ed4+0x1});}),_0x2e6d74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e69d6=>{const _0x2fb8c0=_0x4e69d6['map'](_0x595e84=>_0x595e84['getContainedElement']()),_0x4bad06=_0x2fb8c0[0x0]['findAncestor']('table'),{minColumn:_0xacc9d3,maxColumn:_0x8e3716}=_0x1ba935['_getCoordsForCells'](_0x2fb8c0);_0x5d9cbf['removeColumns'](_0x4bad06,{'at':_0xacc9d3,'columns':_0x8e3716-_0xacc9d3+0x1});});const _0x34c1ad=(_0x50c273,_0x14f19f)=>{if(!_0x14f19f['subType']||!_0x14f19f['subType']['startsWith']('tablePaste'))return;const _0x3d392e=_0x14f19f['attributes']['tablePasteChainId'],_0x39b5ed=_0x2e6d74['getSuggestions']()['filter'](_0x3937a4=>_0x3937a4['isInContent']&&_0x3937a4['attributes']&&_0x3937a4['attributes']['tablePasteChainId']==_0x3d392e);_0x39b5ed['length']&&_0x14f19f['getAllAdjacentSuggestions']()['length']!=_0x39b5ed['length']&&_0x39b5ed['reduce']((_0x4b9d8c,_0x52e541)=>(_0x4b9d8c['next']=_0x52e541,_0x52e541['previous']=_0x4b9d8c,_0x52e541));};function _0xe0f63f(_0xa733b8,_0x2a4232=!0x0){const {id:_0x11c412,authorId:_0x274d91}=_0x2e6d74['_splitMarkerName'](_0xa733b8['markerName']),_0x3c4b87=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b1826=_0x2e6d74['activeMarkers']['includes'](_0xa733b8['markerName']);return _0x5b1826&&_0x3c4b87['push']('ck-suggestion-marker--active'),{'classes':_0x3c4b87,'attributes':{'data-suggestion':_0x11c412,'data-author-id':_0x274d91},'priority':_0x5b1826&&_0x2a4232?0xbc2:0xbb8};}_0x2e6d74['on']('suggestionLoaded',_0x34c1ad,{'priority':'high'}),_0x2e6d74['on']('suggestionUnloaded',_0x34c1ad,{'priority':'high'}),_0x124bcb['model']['document']['registerPostFixer'](()=>{let _0x18a1e1=!0x1;const _0x9f79d8=Array['from'](_0x124bcb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x480295,data:_0x10abae}of _0x9f79d8){const {group:_0x15c22b,type:_0x298626,id:_0x556972}=_0x2e6d74['_splitMarkerName'](_0x480295);if('suggestion'!=_0x15c22b||'deletion'!=_0x298626||_0x10abae['oldRange'])continue;if(!_0x2e6d74['hasSuggestion'](_0x556972))continue;const _0x49e4b6=_0x2e6d74['getSuggestion'](_0x556972)['getRanges'](),_0x477bb6=_0x124bcb['plugins']['get']('Users')['me'];for(const _0x5d4a57 of _0x2e6d74['getSuggestions']()){if(!_0x5d4a57['isInContent']||_0x5d4a57['author']!=_0x477bb6)continue;if('formatBlock'!=_0x5d4a57['type']||'tablePasteCell'!=_0x5d4a57['subType'])continue;if(_0x5d4a57['getRanges']()['every'](_0x32ec19=>_0x49e4b6['some'](_0x1616e3=>_0x1616e3['containsRange'](_0x32ec19,!0x0)))){for(const _0x5a7769 of _0x5d4a57['getAllAdjacentSuggestions']())_0x5a7769['isInContent']&&(_0x5a7769['discard'](),_0x18a1e1=!0x0);}}}return _0x18a1e1;}),_0x124bcb['model']['document']['registerPostFixer'](_0x182faf=>{const _0x414b77=_0x124bcb['commands']['get']('redo');if(!_0x414b77||!_0x414b77['_createdBatches']['has'](_0x182faf['batch']))return!0x1;let _0x1a4f3b=!0x1;const _0x3e3ffb=_0x124bcb['plugins']['get']('Users')['me'],_0x420450=_0x124bcb['model']['document']['differ']['getChanges'](),_0x11a5db=Array['from'](_0x124bcb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x48061b,data:_0xe0fdfd})=>{const {group:_0x40ee5e,subType:_0x1fb501,authorId:_0x14b126}=_0x2e6d74['_splitMarkerName'](_0x48061b);return'suggestion'==_0x40ee5e&&'tablePaste'==_0x1fb501&&_0x14b126==_0x3e3ffb['id']&&!_0xe0fdfd['oldRange'];});for(const _0x7bd535 of _0x420450){if('insert'!=_0x7bd535['type']||'tableCellSuggestion'!=_0x7bd535['name']||0x1!=_0x7bd535['length'])continue;const _0x29cea4=_0x182faf['createRange'](_0x7bd535['position'],_0x7bd535['position']['getShiftedBy'](0x1));if(!_0x11a5db['find'](({data:_0x4c5034})=>_0x4c5034['newRange']['isEqual'](_0x29cea4))){for(const {name:_0x554de9,data:_0x5de361}of _0x11a5db)if(_0x29cea4['containsRange'](_0x5de361['newRange'])){_0x182faf['updateMarker'](_0x554de9,{'range':_0x29cea4}),_0x1a4f3b=!0x0;break;}}}return _0x1a4f3b;}),_0x124bcb['model']['document']['registerPostFixer'](_0x16a060=>{let _0x339573=!0x1;const _0x50a05e=_0x124bcb['plugins']['get']('Users')['me'],_0x4332c8=_0x2e6d74['getSuggestions']()['filter'](_0x7b14ca=>_0x7b14ca['isInContent']&&_0x7b14ca['author']==_0x50a05e),_0x5885b4=new Set(),_0x55d3b8=new Set();for(const _0x427ce9 of _0x4332c8)if('tablePaste'==_0x427ce9['subType'])for(const _0x3c810e of _0x427ce9['getMarkers']()){const _0x9d06d3=_0x3c810e['getRange']()['getContainedElement']();if(_0x9d06d3){if(_0x9d06d3['is']('element','tableCellSuggestion')&&ke(_0x9d06d3)){_0x427ce9['removeMarker'](_0x3c810e['name']),_0x5885b4['add'](_0x9d06d3),_0x339573=!0x0;const _0x182cec=_0x9d06d3['nextSibling'],_0x104249=_0x9d06d3['previousSibling'],_0x39e801=_0x182cec&&_0x182cec['is']('element','tableCellSuggestion'),_0x184f00=_0x104249&&_0x104249['is']('element','tableCellSuggestion');_0x39e801&&!_0x5885b4['has'](_0x182cec)&&_0x55d3b8['add'](_0x182cec),_0x184f00&&!_0x5885b4['has'](_0x104249)&&_0x55d3b8['add'](_0x104249);}else _0x9d06d3['is']('element','paragraph')&&_0x9d06d3['isEmpty']&&(_0x427ce9['removeMarker'](_0x3c810e['name']),_0x339573=!0x0);}}else{if('tablePasteCell'==_0x427ce9['subType']){if(!_0x427ce9['attributes']||!_0x427ce9['attributes']['tablePasteChainId'])continue;const _0x47fbac=_0x427ce9['attributes']['markerAttributes'];if(_0x47fbac&&Object['keys'](_0x47fbac)['length'])continue;const _0x16fe8e=_0x427ce9['attributes']['tablePasteChainId'];let _0x3a6a6b=!0x0,_0x23ce48=!0x0;for(const _0x30253f of _0x4332c8)if(_0x30253f['subType']&&_0x30253f['subType']['startsWith']('tablePaste')){if(!_0x30253f['attributes']['tablePasteChainId']){_0x23ce48=!0x1;break;}if(_0x30253f['id']!=_0x427ce9['id']&&_0x30253f['attributes']['tablePasteChainId']==_0x16fe8e){_0x3a6a6b=!0x1;break;}}_0x23ce48&&_0x3a6a6b&&(_0x427ce9['removeMarkers'](),_0x339573=!0x0);}}for(const _0x23c217 of _0x5885b4)_0x16a060['remove'](_0x23c217);for(const _0x4bd7bf of _0x55d3b8)_0x16a060['unwrap'](_0x4bd7bf);return _0x339573;}),_0x124bcb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb9abb2,_0x3d365e)=>_0xe0f63f(_0xb9abb2),'converterPriority':'high'}),_0x124bcb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b4698,_0x28e042)=>_0x28e042['options']['showSuggestionHighlights']?_0xe0f63f(_0x1b4698,!0x1):null,'converterPriority':'high'});const _0x56dcd2=_0x124bcb['editing']['view'];this['listenTo'](_0x56dcd2['document'],'clipboardOutput',(_0x15bc65,_0x4116ed)=>{const _0x24c829=[];for(const _0x5dc749 of _0x56dcd2['createRangeIn'](_0x4116ed['content'])['getItems']())_0x5dc749['is']('element','suggestion-td')&&_0x24c829['push'](_0x5dc749);_0x56dcd2['change'](_0x493f3d=>{for(const _0x296d25 of _0x24c829)_0x493f3d['move'](_0x493f3d['createRangeIn'](_0x296d25),_0x493f3d['createPositionBefore'](_0x296d25)),_0x493f3d['remove'](_0x296d25);});});}}function ke(_0x963f29){if(_0x963f29['isEmpty'])return!0x0;const _0x4a171b=_0x963f29['getChild'](0x0);return _0x4a171b['is']('element','paragraph')&&_0x4a171b['isEmpty'];}function Re(_0x1c32b5,_0x910563={},_0x4286d9){for(const {isAnchor:_0x5dbd7c,cellHeight:_0x14ff09,cellWidth:_0x36e619}of _0x4286d9['createTableWalker'](_0x1c32b5,{'includeAllSlots':!0x0,..._0x910563}))if(!_0x5dbd7c||0x1!=_0x14ff09||0x1!=_0x36e619)return!0x1;return!0x0;}class Nt extends _0x36b02c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x128d23=this['editor']['plugins']['get']('TrackChangesEditing');_0x128d23['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x128d23['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x128d23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x128d23['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x128d23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x128d23['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4233fc,_0x2f4ecd){const _0x25f5fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f8261=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x567bbf=_0x2f4ecd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4eb6e5=_0x3f8261['getColumnGroupElement'](_0x567bbf);let _0x576000=_0x4eb6e5?_0x3f8261['getTableColumnsWidths'](_0x4eb6e5):null,_0x3f7875=_0x567bbf['getAttribute']('tableWidth')||null;const _0x138432=_0x2f4ecd['tableWidth']||_0x3f7875,_0x576fe0=_0x2f4ecd['columnWidths']||_0x576000,_0x157108=this['editor']['plugins']['get']('Users')['me'];for(const _0x2df3f1 of _0x25f5fe['getSuggestions']()){const _0x398db6=_0x2df3f1['getContainedElement']();if('resizeTable'===_0x2df3f1['subType']&&_0x398db6===_0x567bbf){_0x2df3f1['author']!==_0x157108&&_0x2df3f1['discard']();const _0x43ed94=_0x2df3f1['data']['commandParams'];_0x3f7875=_0x43ed94[0x0]['tableWidth'],_0x576000=_0x43ed94[0x0]['columnWidths'];break;}}_0x4233fc({'table':_0x567bbf,'tableWidth':_0x138432,'columnWidths':_0x576fe0}),_0x25f5fe['markBlockFormat'](_0x567bbf,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f7875,'columnWidths':_0x576000}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x126c21){if('formatBlock'!=_0x126c21['type']&&'formatInline'!=_0x126c21['type'])return;const {data:_0x3d95cd}=_0x126c21;if(_0x3d95cd&&'resizeTable'===_0x3d95cd['formatGroupId']){const _0x2a64fc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a64fc)};}}}class Dt extends _0x36b02c{['afterInit'](){const _0x2d2380=this['editor'];_0x2d2380['plugins']['has']('Template')&&_0x2d2380['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x36b02c{['afterInit'](){const _0x531cfb=this['editor'];if(!_0x531cfb['commands']['get']('insertTableOfContents'))return;_0x531cfb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x45ab0c=_0x531cfb['plugins']['get']('TrackChangesEditing'),_0x132388=_0x531cfb['locale'];_0x45ab0c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x148f6f=>o(_0x132388,'ELEMENT_TABLE_OF_CONTENTS',_0x148f6f));}}class $t extends _0x36b02c{['afterInit'](){const _0x42ca4a=this['editor'];if(!_0x42ca4a['plugins']['has']('Title'))return;const _0x336c1d=_0x42ca4a['plugins']['get']('TrackChangesEditing');_0x336c1d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x42ca4a['locale'],'ELEMENT_TITLE')),_0x42ca4a['model']['document']['registerPostFixer'](_0x16e6b8=>{let _0x145795=!0x1;const _0x559761=Array['from'](_0x42ca4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b8d65,data:_0xf5b3ee}of _0x559761){const {group:_0x5f1efb}=_0x336c1d['_splitMarkerName'](_0x3b8d65);if('suggestion'!==_0x5f1efb||!_0xf5b3ee['newRange'])continue;const _0x370ff2=_0xf5b3ee['newRange'],_0x387f91=_0x370ff2['end']['nodeBefore'];if(!_0x387f91||!_0x387f91['is']('element','title-content'))continue;if(!_0x370ff2['start']['isTouching'](_0x370ff2['end']))continue;const _0x1fb622=_0x42ca4a['model']['schema']['getNearestSelectionRange'](_0x370ff2['end'],'forward');if(_0x1fb622&&_0x1fb622['isCollapsed']){const _0x227a2c=_0x16e6b8['createRange'](_0x370ff2['start'],_0x1fb622['start']);_0x227a2c['isEqual'](_0x370ff2)||(_0x16e6b8['updateMarker'](_0x3b8d65,{'range':_0x227a2c}),_0x145795=!0x0);}_0x145795||(_0x16e6b8['removeMarker'](_0x3b8d65),_0x145795=!0x0);}return _0x145795;});}}class Bt extends _0x36b02c{['afterInit'](){const _0x4a4641=this['editor'],_0x1086fc=_0x4a4641['plugins']['get']('TrackChangesEditing');_0x4a4641['plugins']['has']('UndoEditing')&&(_0x1086fc['enableCommand']('undo'),_0x1086fc['enableCommand']('redo'));}}class xt extends _0x36b02c{static get['requires'](){return[It];}['afterInit'](){const _0x3ccb2c=this['editor'];if(!_0x3ccb2c['plugins']['has']('TableCaptionEditing'))return;_0x3ccb2c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x36b02c{['tableProperties'];['tableCellProperties'];constructor(_0x38e0c0){super(_0x38e0c0),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 _0x3975d6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d66c2 of this['tableProperties'])_0x3975d6['enableCommand'](_0x5d66c2,(_0x129a52,_0x46ad87)=>{const _0x1e98cf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d66c2,[_0x1e98cf],this['tableProperties'],'tableProperties',_0x129a52,_0x46ad87);});_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3975d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ceab7,_0xa98e48)=>this['handleDiscardAction'](this['tableProperties'],_0x2ceab7,_0xa98e48)),_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x51f5c0 of this['tableCellProperties'])_0x3975d6['enableCommand'](_0x51f5c0,(_0x58c80f,_0x29e101)=>{const _0x1c8c9b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x51f5c0,_0x1c8c9b,this['tableCellProperties'],'tableCellProperties',_0x58c80f,_0x29e101);});_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3975d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x20b6cc,_0x33729e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x20b6cc,_0x33729e)),_0x3975d6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3975d6['descriptionFactory']['registerDescriptionCallback'](_0x5082b3=>this['handleSuggestionDescription'](_0x5082b3));}['_handlePropertyChange'](_0x4fca7b,_0x28a03f,_0x1a5a05,_0x1ecc76,_0x3b36ae,_0x412f19){const _0x5a8f23=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x412f19['batch'],()=>{for(const _0x48d4ad of _0x28a03f){if(this['_getSuggestion'](_0x48d4ad,_0x1ecc76))_0x3b36ae(_0x412f19);else{const _0x11cb3a={};for(const _0x41bdff of _0x1a5a05){const _0x1d8332=_0x48d4ad['getAttribute'](_0x41bdff);void 0x0!==_0x1d8332&&(_0x11cb3a[_0x41bdff]=_0x1d8332);}_0x3b36ae(_0x412f19),_0x5a8f23['markBlockFormat'](_0x48d4ad,{'commandParams':[_0x11cb3a]},[],_0x1ecc76);}}});}['handleDiscardAction'](_0x5a582b,_0x26efe4,_0x1ad404){const _0x4f60ca=_0x26efe4[0x0]['start']['nodeAfter'],_0x1b7a44=_0x1ad404['commandParams'][0x0];this['editor']['model']['change'](_0x5a40c7=>{for(const _0x3a85f6 of _0x5a582b)void 0x0!==_0x1b7a44[_0x3a85f6]?_0x5a40c7['setAttribute'](_0x3a85f6,_0x1b7a44[_0x3a85f6],_0x4f60ca):_0x5a40c7['removeAttribute'](_0x3a85f6,_0x4f60ca);});}['handleSuggestionDescription'](_0x41818c){if(_0x41818c['data'])switch(_0x41818c['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'](_0x4886bd,_0x136dca){const _0x1e46d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x150df5 of _0x1e46d8['getSuggestions']({'skipNotAttached':!0x0})){const _0x15f43e=_0x150df5['getContainedElement']();if(_0x150df5['subType']===_0x136dca&&_0x15f43e===_0x4886bd)return _0x150df5;}return null;}}const m='$elementName';class p extends _0x36b02c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2f928a,_0x25b7b8,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(_0xb1594f){function _0x17d4a1(_0x51388a){return _0x51388a['map'](_0x72b1f0=>String['fromCharCode'](_0x72b1f0))['join']('');}super(_0xb1594f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5c225a,_0x267108,_0x47f56e,_0x3dfba2)=>{this['_model']['change'](()=>{for(const _0x358591 of[..._0x3dfba2,..._0x47f56e])this['_model']['markers']['has'](_0x358591)&&_0xb1594f['editing']['reconvertMarker'](_0x358591);});}),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']=_0xb1594f['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(),_0xb1594f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xb1594f['config']['get']('trackChanges.trackFormatChanges'),_0xb1594f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xb1594f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xb1594f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x17d4a1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x17d4a1([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x34]);}['init'](){const _0x1e1aed=this['editor'],_0x3ea8e3=(_0x1a3312,_0x1eb3b6)=>{if('attribute'!=_0x1a3312)return'ck-suggestion-marker-'+_0x1a3312;const _0x20aaeb=_0x1eb3b6['split']('|')[0x0];return this['_isBlockAttribute'](_0x20aaeb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e1aed['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x48f641=>{const {id:_0x5d1994,authorId:_0x35f84b,type:_0x5b9978,subType:_0x1d9de0}=this['_splitMarkerName'](_0x48f641['markerName']),_0xbcd7b0=['ck-suggestion-marker',_0x3ea8e3(_0x5b9978,_0x1d9de0)];let _0x16e0a3=0xbb8;return this['activeMarkers']['includes'](_0x48f641['markerName'])&&(_0xbcd7b0['push']('ck-suggestion-marker--active'),_0x16e0a3=0xbc2),'deletion'==_0x5b9978&&(_0x16e0a3+=0x5),{'classes':_0xbcd7b0,'attributes':{'data-suggestion':_0x5d1994,'data-author-id':_0x35f84b},'priority':_0x16e0a3};}}),_0x1e1aed['conversion']['for']('dataDowncast')['add'](_0x269450=>{_0x269450['on']('addMarker:suggestion',(_0x489842,_0x316646,_0x45d7dd)=>{if(!_0x45d7dd['options']['showSuggestionHighlights'])return;const _0x8710d5=_0x316646['item'];if(!_0x8710d5)return;const _0xc5d424=_0x45d7dd['mapper']['toViewElement'](_0x8710d5);_0x1e1aed['model']['schema']['isObject'](_0x8710d5)&&_0xc5d424&&!_0xc5d424['getCustomProperty']('widget')&&_0xc5d424['is']('containerElement')&&_0x3d619f(_0xc5d424,_0x45d7dd['writer']);},{'priority':'high'});}),_0x1e1aed['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23f59b,_0x174919)=>{if(!_0x174919['options']['showSuggestionHighlights'])return null;const {type:_0x4942b0,subType:_0x23fd9f}=this['_splitMarkerName'](_0x23f59b['markerName']);return{'classes':['ck-suggestion-marker',_0x3ea8e3(_0x4942b0,_0x23fd9f)],'priority':0xbb8};}});const _0x5dfba6=({showActiveMarkers:_0x2ac95e=!0x0,isAttributeSuggestion:_0x2d2f34=!0x1}={})=>(_0x16ba01,_0x4cf36a,_0x67e33e)=>{if(!_0x4cf36a['item'])return;const {id:_0x7a3902,authorId:_0x218091}=this['_splitMarkerName'](_0x4cf36a['markerName']);if(_0x2d2f34){const _0x5eb6b3=this['_suggestions']['get'](_0x7a3902),_0x5766e0=this['_getAttributeKey'](_0x5eb6b3);if(!this['_isBlockAttribute'](_0x5766e0))return;}if(_0x4cf36a['item']['is']('selection'))return void _0x67e33e['consumable']['consume'](_0x4cf36a['item'],_0x16ba01['name']);const _0x5b5804=_0x67e33e['mapper']['toViewElement'](_0x4cf36a['item']);if(_0x4cf36a['item']['is']('element')&&_0x1e1aed['model']['schema']['isBlock'](_0x4cf36a['item'])&&!_0x5b5804['getCustomProperty']('addHighlight')){_0x67e33e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5b5804),_0x67e33e['writer']['setAttribute']('data-suggestion',_0x7a3902,_0x5b5804),_0x67e33e['writer']['setAttribute']('data-author-id',_0x218091,_0x5b5804),_0x67e33e['mapper']['bindElementToMarker'](_0x5b5804,_0x4cf36a['markerName']),_0x2ac95e&&(this['activeMarkers']['includes'](_0x4cf36a['markerName'])?_0x67e33e['writer']['addClass']('ck-suggestion-marker--active',_0x5b5804):_0x67e33e['writer']['removeClass']('ck-suggestion-marker--active',_0x5b5804));for(const _0x51372f of _0x1e1aed['model']['createRangeIn'](_0x4cf36a['item'])['getItems']())_0x67e33e['consumable']['consume'](_0x51372f,_0x16ba01['name']);_0x67e33e['consumable']['consume'](_0x4cf36a['item'],_0x16ba01['name']);}};_0x1e1aed['conversion']['for']('dataDowncast')['add'](_0x131103=>{_0x131103['on']('addMarker:suggestion:formatBlock',(_0x3ea33d,_0x2ccec0,_0x316d4d)=>{_0x316d4d['options']['showSuggestionHighlights']&&_0x5dfba6({'showActiveMarkers':!0x1})(_0x3ea33d,_0x2ccec0,_0x316d4d);},{'priority':'highest'});}),_0x1e1aed['conversion']['for']('dataDowncast')['add'](_0x35bfe0=>{_0x35bfe0['on']('addMarker:suggestion:attribute',(_0x357e08,_0x33a392,_0x168e12)=>{_0x168e12['options']['showSuggestionHighlights']&&_0x5dfba6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x357e08,_0x33a392,_0x168e12);},{'priority':'highest'});}),_0x1e1aed['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x20a44c,_0x5a7e52)=>_0x5a7e52['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x20a44c['substr'](0xb)}}),_0x1e1aed['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x56a5ef,{writer:_0x5528d3})=>{let _0x25c49d='suggestion:'+_0x56a5ef['getAttribute']('suggestion-type')+':'+_0x56a5ef['getAttribute']('id');return _0x56a5ef['getAttribute']('marker-count')&&(_0x25c49d+=':'+_0x56a5ef['getAttribute']('marker-count')),_0x5528d3['createElement']('$marker',{'data-name':_0x25c49d});}}),_0x1e1aed['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e1aed['conversion']['for']('editingDowncast')['add'](_0x13493f=>{_0x13493f['on']('addMarker:suggestion:formatBlock',_0x5dfba6(),{'priority':'high'});}),_0x1e1aed['conversion']['for']('editingDowncast')['add'](_0x3dcd50=>{_0x3dcd50['on']('addMarker:suggestion:attribute',_0x5dfba6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e1aed['conversion']['for']('editingDowncast')['add'](_0x14ebf5=>{_0x14ebf5['on']('removeMarker:suggestion:formatBlock',(_0x59fec2,_0x6d7bec,_0x5f343a)=>{const _0x1ab34d=_0x5f343a['mapper']['markerNameToElements'](_0x6d7bec['markerName']);if(_0x1ab34d){for(const _0xe7efad of _0x1ab34d)_0xe7efad['getCustomProperty']('addHighlight')||(_0x5f343a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe7efad),_0x5f343a['writer']['removeAttribute']('data-suggestion',_0xe7efad),_0x5f343a['writer']['removeAttribute']('data-author-id',_0xe7efad),_0x5f343a['mapper']['unbindElementFromMarkerName'](_0xe7efad,_0x6d7bec['markerName']));}},{'priority':'high'});}),_0x1e1aed['conversion']['for']('editingDowncast')['add'](_0x521424=>{_0x521424['on']('removeMarker:suggestion:attribute',(_0x383c54,_0x2b026e,_0x5d3ea5)=>{const _0x44c5fe=_0x5d3ea5['mapper']['markerNameToElements'](_0x2b026e['markerName']);if(!_0x44c5fe)return;const {id:_0x4e8bef}=this['_splitMarkerName'](_0x2b026e['markerName']),_0x582cc7=this['_suggestions']['get'](_0x4e8bef),_0x3c2d1c=this['_getAttributeKey'](_0x582cc7);if(this['_isBlockAttribute'](_0x3c2d1c)){for(const _0x503847 of _0x44c5fe)_0x503847['getCustomProperty']('addHighlight')||(_0x5d3ea5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x503847),_0x5d3ea5['writer']['removeAttribute']('data-suggestion',_0x503847),_0x5d3ea5['writer']['removeAttribute']('data-author-id',_0x503847),_0x5d3ea5['mapper']['unbindElementFromMarkerName'](_0x503847,_0x2b026e['markerName']));}},{'priority':'high'});}),_0x1e1aed['model']['document']['registerPostFixer'](_0x522b25=>{let _0x3b3936=!0x1;const _0x7d014=Array['from'](_0x1e1aed['model']['document']['differ']['getChangedMarkers']()),_0x4412b1=new Set();for(const {name:_0x396ada,data:_0x2d1b32}of _0x7d014){const {group:_0x5ded10,type:_0x3584e3,subType:_0x454794,id:_0xd7d7f3}=this['_splitMarkerName'](_0x396ada);if('suggestion'!==_0x5ded10)continue;const _0x3779ba=this['_suggestions']['get'](_0xd7d7f3);if(null!=_0x2d1b32['newRange']){'formatInline'==_0x3584e3&&(_0x3b3936=_0x3b3936||Ut(_0x2d1b32['newRange'],_0x396ada,_0x522b25,_0x1e1aed['model']['schema']));const _0x430d74='attribute'==_0x3584e3&&this['_isBlockAttribute'](_0x454794['split']('|')[0x0]);if(_0x2d1b32['newRange']['isCollapsed']||'$graveyard'==_0x2d1b32['newRange']['root']['rootName']||'formatBlock'==_0x3584e3&&!Ft(_0x2d1b32['newRange'])||_0x430d74&&!Ft(_0x2d1b32['newRange'])||'deletion'==_0x3584e3&&!(!Vt(_0x4e0484=_0x2d1b32['newRange'])&&!function(_0x269142){return _0x269142['start']['parent']==_0x269142['end']['nodeBefore']&&_0x269142['start']['isAtEnd'];}(_0x4e0484)))_0x522b25['removeMarker'](_0x396ada),_0x3b3936=!0x0;else{if(!_0x3779ba||!_0x3779ba['isInContent'])continue;if(_0x2d1b32['newRange']&&_0x2d1b32['oldRange']&&_0x2d1b32['newRange']['isEqual'](_0x2d1b32['oldRange']))continue;_0x4412b1['add'](_0x3779ba);}}}var _0x4e0484;return _0x4412b1['size']>0x0&&(_0x3b3936=!!this['_joinWithAdjacentSuggestions'](_0x4412b1)||_0x3b3936),_0x3b3936;}),_0x1e1aed['model']['document']['registerPostFixer'](_0x260df7=>{let _0x58955a=!0x1;for(const _0x514cb2 of _0x1e1aed['model']['document']['differ']['getChanges']())if('insert'==_0x514cb2['type'])for(const _0x237d1c of this['_suggestions']['values']()){if(_0x237d1c['isMultiRange']||!_0x237d1c['isInContent'])continue;const _0x4e1b56='formatBlock'==_0x237d1c['type'],_0x11efec=this['_getAttributeKey'](_0x237d1c),_0x4966c2=_0x11efec&&this['_isBlockAttribute'](_0x11efec);if(!_0x4e1b56&&!_0x4966c2)continue;const _0x51850e=_0x237d1c['getFirstRange']();if(_0x51850e['start']['parent']!=_0x51850e['end']['parent']&&!_0x51850e['end']['isAtEnd']){const _0x4a2cf3=_0x1e1aed['model']['createPositionAt'](_0x51850e['start']['nodeAfter'],'end'),_0x294f7d=_0x1e1aed['model']['createRange'](_0x51850e['start'],_0x4a2cf3);_0x260df7['updateMarker'](_0x237d1c['getFirstMarker'](),{'range':_0x294f7d}),_0x58955a=!0x0;}}return _0x58955a;}),_0x1e1aed['model']['document']['registerPostFixer'](_0x2b04df=>this['_processAttributeChanges'](_0x2b04df)),_0x1e1aed['model']['document']['registerPostFixer'](_0x24a0d0=>!_0x24a0d0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24a0d0)),_0x1e1aed['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e1aed['model']['document']['on']('change:data',(_0x21e1f7,_0x4f14e7)=>{if(!_0x4f14e7['isLocal']||_0x4f14e7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3688d9=_0x1e1aed['model']['document']['differ']['getChanges']();if(0x0==_0x3688d9['length'])return;const _0x2e2557=[],_0x177055=_0x3688d9['filter'](_0x9ab88c=>'attribute'==_0x9ab88c['type']),_0x2aa86d=_0x3688d9['filter'](_0x40ea46=>'insert'==_0x40ea46['type']&&'$text'!=_0x40ea46['name']);for(const _0x202f4a of _0x177055)this['_isRegisteredAttribute'](_0x202f4a['attributeKey'])&&_0x2e2557['push']({'key':_0x202f4a['attributeKey'],'newValue':_0x202f4a['attributeNewValue'],'oldValue':_0x202f4a['attributeOldValue'],'range':Pt(_0x202f4a['range'],_0x1e1aed['model'])});for(const _0x5964d0 of _0x2aa86d){if('rename'!=_0x5964d0['action']&&'refresh'!=_0x5964d0['action'])continue;const _0x181a7b=Lt(_0x5964d0['position']['nodeAfter'],_0x1e1aed['model']),_0x248fae=_0x5964d0['before'];'rename'==_0x5964d0['action']&&_0x2e2557['push']({'key':m,'newValue':_0x5964d0['name'],'oldValue':_0x248fae['name'],'range':_0x181a7b});for(const [_0x500c74,_0x138f2a]of _0x248fae['attributes']){if(!this['_isRegisteredAttribute'](_0x500c74))continue;const _0x4dfdcc=_0x5964d0['attributes']['get'](_0x500c74);_0x138f2a!==_0x4dfdcc&&_0x2e2557['push']({'key':_0x500c74,'newValue':_0x4dfdcc,'oldValue':_0x138f2a,'range':_0x181a7b});}for(const [_0x98e52b,_0x229170]of _0x5964d0['attributes'])this['_isRegisteredAttribute'](_0x98e52b)&&(_0x248fae['attributes']['has'](_0x98e52b)||_0x2e2557['push']({'key':_0x98e52b,'newValue':_0x229170,'oldValue':null,'range':_0x181a7b}));}0x0!=_0x2e2557['length']&&_0x1e1aed['model']['enqueueChange'](_0x4f14e7,_0x8eab5f=>{const _0x5ab9d6=_0xca03d8();for(const {range:_0x3ffbbc,key:_0x419c0b,oldValue:_0x3f54d3,newValue:_0x83a0df}of _0x2e2557)this['markAttributeChange'](_0x3ffbbc,_0x419c0b,_0x3f54d3,_0x83a0df,{'groupId':_0x5ab9d6});this['_reduceExistingSuggestions'](_0x8eab5f,_0x2e2557);});},{'priority':'lowest'}),_0x1e1aed['model']['markers']['on']('update:suggestion',(_0x7fc0f8,_0x2f15e9,_0x4737e1)=>{if(null==_0x4737e1){const {id:_0x5084c7}=this['_splitMarkerName'](_0x2f15e9['name']),_0x11be73=this['_suggestions']['get'](_0x5084c7);_0x11be73&&_0x11be73['addMarkerName'](_0x2f15e9['name']);}}),_0x1e1aed['model']['document']['on']('change:data',()=>{const _0x38a90e=Array['from'](_0x1e1aed['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd21324=>'suggestion'===this['_splitMarkerName'](_0xd21324['name'])['group']);if(0x0===_0x38a90e['length'])return;_0x38a90e['sort']((_0x474c00,_0x5610d9)=>{const _0x115dec=_0x474c00['data']['oldRange'],_0x17941b=_0x5610d9['data']['oldRange'];return null===_0x115dec&&null===_0x17941b?0x0:null===_0x115dec&&null!==_0x17941b?-0x1:null!==_0x115dec&&null===_0x17941b?0x1:_0x115dec['start']['isBefore'](_0x17941b['start'])?-0x1:0x1;});const _0x466689=new Set(),_0xcd2433=new Set();for(const {name:_0x539f7a,data:_0x35bd61}of _0x38a90e){const {id:_0x3353bd}=this['_splitMarkerName'](_0x539f7a);if(null===_0x35bd61['oldRange']){const _0x5ed864=this['_handleNewSuggestionMarker'](_0x539f7a);_0xcd2433['add'](_0x5ed864);}else{const _0x5abacb=this['_suggestions']['get'](_0x3353bd);null!==_0x35bd61['newRange']||_0x5abacb['isInContent']?(_0x466689['add'](_0x5abacb['head']),_0xcd2433['add'](_0x5abacb)):this['_removeSuggestion'](_0x5abacb);}}_0xcd2433['size']>0x0&&this['_refreshSuggestionsChain'](_0xcd2433);for(const _0x1cd97e of _0x466689)this['fire']('suggestionChanged',_0x1cd97e);}),_0x1e1aed['model']['on']('applyOperation',(_0x37bc46,_0x3fdcc4)=>{const _0x58c898=_0x3fdcc4[0x0];if(!this['_suggestions']['size'])return;if(!_0x58c898['isDocumentOperation'])return;if(_0x58c898['batch']['isUndo']||!_0x58c898['batch']['isLocal'])return;let _0x273c1d,_0x47db98;switch(_0x58c898['type']){case'insert':_0x273c1d=_0x1e1aed['model']['createPositionAt'](_0x58c898['position']),_0x47db98=_0x273c1d['getShiftedBy'](_0x58c898['howMany']);break;case'split':_0x273c1d=_0x1e1aed['model']['createPositionAt'](_0x58c898['splitPosition']),_0x47db98=_0x1e1aed['model']['createPositionAt'](_0x58c898['moveTargetPosition']);break;case'move':_0x273c1d=_0x1e1aed['model']['createPositionAt'](_0x58c898['targetPosition']),_0x47db98=_0x273c1d['getShiftedBy'](_0x58c898['howMany']);break;default:return;}const _0x273b75=_0x1e1aed['model']['createRange'](_0x273c1d,_0x47db98);_0x1e1aed['model']['change'](()=>{for(const {suggestion:_0x2a70ce,meta:_0x1e8562}of this['_findSuggestions'](_0x273b75)){if(_0x2a70ce['isMultiRange'])continue;if('formatInline'==_0x2a70ce['type'])continue;const _0x3e71dc=this['_getAttributeKey'](_0x2a70ce);if(_0x3e71dc&&this['_isBlockAttribute'](_0x3e71dc)&&'split'!=_0x58c898['type'])continue;const _0x499373=_0x2a70ce['data']&&_0x2a70ce['data']['multipleBlocks'];('formatBlock'!=_0x2a70ce['type']||'split'==_0x58c898['type']&&!_0x499373)&&(_0x1e8562['containsRangeInObject']||'insertion'==_0x2a70ce['type']&&_0x1e8562['isOwn']||_0x2a70ce['getFirstRange']()['containsRange'](_0x273b75)&&this['_breakSuggestionMarker'](_0x2a70ce,_0x273c1d,_0x47db98));}});},{'priority':'lowest'}),_0x1e1aed['model']['on']('deleteContent',(_0xcff1a0,_0x562ec5)=>{const _0x54f90c=_0x562ec5[0x0],_0x2493bf=_0x562ec5[0x1];if(_0x2493bf&&_0x2493bf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x54f90c['isCollapsed'])return;const _0x1d236e=_0x1e1aed['model']['schema'],{start:_0x4f36c3,end:_0x132e58}=_0x54f90c['getFirstRange'](),_0x29612f=_0x4f36c3['nodeAfter']&&_0x1d236e['isLimit'](_0x4f36c3['nodeAfter'])?null:_0x1d236e['getNearestSelectionRange'](_0x4f36c3,'forward'),_0x3b2d6e=_0x132e58['nodeBefore']&&_0x1d236e['isLimit'](_0x132e58['nodeBefore'])?null:_0x1d236e['getNearestSelectionRange'](_0x132e58,'backward'),_0x3353d7=_0x1e1aed['model']['createRange'](_0x29612f?_0x29612f['start']:_0x4f36c3,_0x3b2d6e?_0x3b2d6e['end']:_0x132e58);_0x1e1aed['model']['change'](_0x3c59ca=>{this['markDeletion'](_0x3353d7);const _0x4a476a=_0x1e1aed['model']['schema']['getNearestSelectionRange'](_0x3353d7['start']);_0x54f90c['is']('documentSelection')?_0x3c59ca['setSelection'](_0x4a476a):_0x54f90c['setTo'](_0x4a476a);}),_0xcff1a0['stop']();},{'priority':_0x37f3b3['normal']+0xa}),_0x1e1aed['model']['on']('insertContent',(_0x2343b8,_0x4e90b9)=>{const _0x537233=_0x4e90b9[_0x4e90b9['length']-0x1];_0x537233&&_0x537233['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e1aed['model']['change'](()=>{let _0x1dc794=_0x1e1aed['model']['insertContent'](_0x4e90b9[0x0],_0x4e90b9[0x1],_0x4e90b9[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dc794)return;_0x2343b8['return']=_0x1dc794['clone']();const _0x42b95e=_0x1dc794['end']['nodeBefore'],_0x18a3e6=_0x1e1aed['model']['schema'];_0x42b95e&&_0x18a3e6['isBlock'](_0x42b95e)&&!_0x18a3e6['isObject'](_0x42b95e)&&(_0x1dc794=_0x1e1aed['model']['createRange'](_0x1dc794['start'],_0x1e1aed['model']['createPositionAt'](_0x42b95e,'end'))),this['markInsertion'](_0x1dc794);}),_0x2343b8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x27faf3=new x(_0x1e1aed,this['_suggestions']);_0x1e1aed['commands']['add']('acceptSuggestion',_0x27faf3),this['enableCommand']('acceptSuggestion');const _0x42aaaa=new R(_0x1e1aed,this['_suggestions']);_0x1e1aed['commands']['add']('discardSuggestion',_0x42aaaa),this['enableCommand']('discardSuggestion'),_0x1e1aed['commands']['add']('acceptAllSuggestions',new E(_0x1e1aed,_0x27faf3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e1aed['commands']['add']('discardAllSuggestions',new E(_0x1e1aed,_0x42aaaa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e1aed['commands']['add']('acceptSelectedSuggestions',new O(_0x1e1aed,_0x27faf3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e1aed['commands']['add']('discardSelectedSuggestions',new O(_0x1e1aed,_0x42aaaa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12b809=_0x1e1aed['plugins']['get']('CommentsRepository');this['listenTo'](_0x12b809,'addComment',(_0x520981,{threadId:_0x370487})=>{const _0x2d5c2b=this['_suggestions']['get'](_0x370487);_0x2d5c2b&&_0x2d5c2b['commentThread']&&0x1===_0x2d5c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x370487,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12b809,'removeComment',(_0x4ee193,{threadId:_0x4d144d})=>{const _0x35efa3=this['_suggestions']['get'](_0x4d144d);_0x35efa3&&_0x35efa3['commentThread']&&!_0x35efa3['commentThread']['length']&&this['_updateSuggestionData'](_0x4d144d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x35f4df){if(this['_adapter'])throw new _0x22e9fd('track-changes-adapter-already-set',this);this['_adapter']=_0x35f4df;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f0bd9=!0x1,toJSON:_0x443435=!0x1}={}){const _0x229483=[];for(const _0x254cea of this['_suggestions']['values']())_0x3f0bd9&&!_0x254cea['isInContent']||_0x229483['push'](_0x254cea);return _0x443435?_0x229483['map'](_0x24d4b5=>_0x24d4b5['toJSON']()):_0x229483;}['getSuggestion'](_0x31b404){const _0x10ce8b=this['_suggestions']['get'](_0x31b404);if(!_0x10ce8b)throw new _0x22e9fd('track-changes-suggestion-not-found',this);return _0x10ce8b;}['hasSuggestion'](_0x373d77){return this['_suggestions']['has'](_0x373d77);}['addSuggestionData'](_0x3ecedc){const {authorId:_0x1211b0,id:_0x589b8a,attributes:_0xbc2d0d}=_0x3ecedc,[_0x2d4adc,_0x43b7fc]=_0x3ecedc['type']['split'](':'),_0x36ae5e=this['_suggestions']['get'](_0x589b8a)||this['_createSuggestion'](_0x2d4adc,_0x43b7fc,_0x589b8a,_0x1211b0,_0xbc2d0d);if(this['_addThreadToSuggestion'](_0x36ae5e),this['_checkSuggestionCorrectness'](_0x36ae5e,_0x2d4adc,_0x43b7fc||null,_0x1211b0),_0x36ae5e['createdAt']=_0x3ecedc['createdAt'],_0x36ae5e['_isDataLoaded']=!0x0,_0xbc2d0d&&_0xbc2d0d['@external']){const _0x175870=_0xbc2d0d['@external'],_0x1a3e72=this['_getExternalAuthor'](_0x175870['authorName']);_0x36ae5e['authoredAt']=_0x175870['createdAt'],_0x36ae5e['author']=_0x1a3e72,_0x36ae5e['isExternal']=!0x0;}else _0x36ae5e['authoredAt']=_0x3ecedc['createdAt'];switch(_0x3ecedc['data']&&(_0x36ae5e['data']=_0x3ecedc['data']),_0x3ecedc['attributes']&&(_0x36ae5e['attributes']=_0x3ecedc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x36ae5e['_saved']=!0x0),this['_suggestionState']['get'](_0x36ae5e)){case'notReady':this['_suggestionState']['set'](_0x36ae5e,'dataReady');break;case'markerReady':_0x36ae5e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x36ae5e])),this['_refreshSuggestionsChain'](new Set([_0x36ae5e])),this['_suggestionState']['set'](_0x36ae5e,'ready'),this['fire']('suggestionLoaded',_0x36ae5e)):this['_suggestionState']['set'](_0x36ae5e,'removed');}return _0x36ae5e;}['acceptSuggestion'](_0x1591ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4184ff of _0x1591ed['getAllAdjacentSuggestions']())_0x4184ff['accept']();});});}['discardSuggestion'](_0x91c360){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xdd5482 of _0x91c360['getAllAdjacentSuggestions']())_0xdd5482['discard']();});});}['enableCommand'](_0x44f645,_0x370fe0){const _0x43d5fe=this['editor']['commands']['get'](_0x44f645);if(!_0x43d5fe)throw new _0x22e9fd('track-changes-command-not-found',this,{'commandName':_0x44f645});if(this['_enabledCommands']['has'](_0x43d5fe))throw new _0x22e9fd('track-changes-enable-command-twice',this,{'commandName':_0x44f645});this['_enabledCommands']['add'](_0x43d5fe),_0x370fe0&&_0x43d5fe['on']('execute',(_0x384adb,_0x3d4be1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d4be1['length']>0x0&&_0x3d4be1[_0x3d4be1['length']-0x1]&&_0x3d4be1[_0x3d4be1['length']-0x1]['forceDefaultExecution']?_0x3d4be1['pop']():(_0x384adb['return']=_0x370fe0((..._0x250587)=>_0x43d5fe['execute'](..._0x250587,{'forceDefaultExecution':!0x0}),..._0x3d4be1),_0x384adb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24cee9){let _0x3dbadd,_0x1a3ca7;const _0xb3a557=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3dbadd=_0x24cee9();}catch(_0xea5c3f){_0x1a3ca7=_0xea5c3f;}return _0xb3a557||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1a3ca7&&_0x22e9fd['rethrowUnexpectedError'](_0x1a3ca7,this),_0x3dbadd;}['markInsertion'](_0x56cb94,_0xdfc6ef=null,_0xca0e90={}){if(_0x56cb94['isCollapsed'])return null;const _0x2a9fd8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3ae662,meta:_0x5cd18b}of this['_findSuggestions'](_0x56cb94,'insertion'))if(_0x5cd18b['isOwn']){if(!_0x5cd18b['isNextTo']){if(_0x5cd18b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3ae662,_0xca0e90))continue;return _0x3ae662;}if(qt(_0x3ae662,_0xca0e90))return _0x3ae662;this['_breakSuggestionMarker'](_0x3ae662,_0x56cb94['start'],_0x56cb94['end']);break;}if(_0xdfc6ef==_0x3ae662['subType']&&qt(_0x3ae662,_0xca0e90)){const _0x1ac22e=_0x3ae662['getFirstRange']();return _0x1ac22e['start']['isEqual'](_0x56cb94['end'])?this['_setSuggestionRange'](_0x3ae662,this['_model']['createRange'](_0x56cb94['start'],_0x1ac22e['end'])):this['_setSuggestionRange'](_0x3ae662,this['_model']['createRange'](_0x1ac22e['start'],_0x56cb94['end'])),_0x3ae662;}}const _0x2c988e=_0xca03d8(),_0x253505=_0x2a9fd8['id'],_0x5d78d0=_0xdfc6ef?'insertion:'+_0xdfc6ef:'insertion',_0x1e3774=this['_setSuggestionData']({'id':_0x2c988e,'type':_0x5d78d0,'createdAt':new Date(),'authorId':_0x253505,'attributes':_0xca0e90});return this['_addSuggestionMarker'](_0x5d78d0,_0x2c988e,_0x253505,_0x56cb94),_0x1e3774;}['markMultiRangeInsertion'](_0x11b2a4,_0x7fe470='multi',_0x39f28c={}){const _0x5de617=this['editor']['plugins']['get']('Users')['me'],_0x44ad71=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7fe470,'join');for(const _0x2838d1 of this['getSuggestions']())if(_0x2838d1['author']['id']==_0x5de617['id']&&'insertion'==_0x2838d1['type']&&_0x2838d1['subType']==_0x7fe470&&qt(_0x2838d1,_0x39f28c)&&(_0x44ad71(_0x2838d1['getRanges'](),_0x11b2a4)||_0x44ad71(_0x11b2a4,_0x2838d1['getRanges']()))){for(const _0x5730bd of _0x11b2a4)_0x2838d1['addRange'](_0x5730bd);return _0x2838d1;}for(const {suggestion:_0x386b69,meta:_0x478f0e}of this['_findSuggestions'](_0x11b2a4,'insertion')){if(!_0x478f0e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x478f0e['containsRangeInObject'])continue;if(!qt(_0x386b69,_0x39f28c))continue;let _0xcc1eb6=!0x0;for(const _0x5ca2fa of _0x386b69['getRanges']())for(const _0x1c356d of _0x11b2a4)if(!_0x5ca2fa['containsRange'](_0x1c356d)){_0xcc1eb6=!0x1;break;}if(_0xcc1eb6)return _0x386b69;}const _0x4d8136=_0xca03d8(),_0x158ebd=_0x5de617['id'],_0x5a4bca='insertion:'+_0x7fe470,_0x4f397e=this['_setSuggestionData']({'id':_0x4d8136,'type':_0x5a4bca,'createdAt':new Date(),'authorId':_0x158ebd,'attributes':_0x39f28c});for(const _0x50916e of _0x11b2a4)this['_addSuggestionMarker'](_0x5a4bca,_0x4d8136,_0x158ebd,_0x50916e,u['getMultiRangeId']());return _0x4f397e;}['markInlineFormat'](_0x463eaa,_0x49e04b,_0x4d0b6d=null,_0x5e8d94={}){if(_0x4d0b6d=_0x4d0b6d||Gt(_0x49e04b),_0x463eaa['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x363949=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d0b6d,'accept');return this['forceDefaultExecution'](()=>_0x363949([_0x463eaa],_0x49e04b,_0x5e8d94)),null;}const _0x48e62f=this['editor']['plugins']['get']('Users')['me'],_0x258686=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x374f49,meta:_0x2013ff}of this['_findSuggestions'](_0x463eaa,'insertion'))_0x2013ff['isOwn']&&!_0x2013ff['isInsideObject']&&_0x258686['push'](..._0x374f49['getRanges']());}const _0x258658=function(_0x1cde3c,_0x456067){const _0x233fb5=[];for(const _0x244c71 of _0x456067){const _0x31b348=_0x1cde3c['getIntersection'](_0x244c71);_0x31b348&&_0x233fb5['push'](_0x31b348);}return _0x233fb5;}(_0x463eaa,_0x258686),_0xc9eea1=function(_0x16c4c7,_0x455a4b){const _0x51e465=[_0x16c4c7];for(const _0x2fcaac of _0x455a4b){let _0x18204d=0x0;for(;_0x18204d<_0x51e465['length'];){const _0x3ca848=_0x51e465[_0x18204d]['getDifference'](_0x2fcaac);_0x51e465['splice'](_0x18204d,0x1,..._0x3ca848),_0x18204d+=_0x3ca848['length'];}}return _0x51e465;}(_0x463eaa,_0x258686);_0x258658['length']&&this['_model']['change'](()=>{for(const _0x28de94 of _0x258658){const _0x46af54=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d0b6d,'accept');this['forceDefaultExecution'](()=>_0x46af54([_0x28de94],_0x49e04b,_0x5e8d94));}});for(const _0x535d5b of _0xc9eea1){let _0x29598e=null,_0x2f75d2=_0x535d5b['start'],_0x4cd2f3=_0x535d5b['end'];for(const {suggestion:_0x4240da,meta:_0x5c2459}of this['_findSuggestions'](_0x535d5b,'formatInline')){if(!_0x5c2459['isOwn'])continue;if(_0x4240da['subType']!=_0x4d0b6d)continue;if(!qt(_0x4240da,_0x5e8d94))continue;const _0x20d06c=_0x4240da['getFirstRange']();if(_0x20d06c['containsRange'](_0x535d5b,!0x0))return null;_0x2f75d2=_0x2f75d2['isBefore'](_0x20d06c['start'])?_0x2f75d2:_0x20d06c['start'],_0x4cd2f3=_0x4cd2f3['isAfter'](_0x20d06c['end'])?_0x4cd2f3:_0x20d06c['end'],_0x29598e?_0x20d06c['start']['isBefore'](_0x29598e['getFirstRange']()['start'])?(_0x29598e['removeMarkers'](),_0x29598e=_0x4240da):_0x4240da['removeMarkers']():_0x29598e=_0x4240da;}const _0x15fc4e=this['_model']['createRange'](_0x2f75d2,_0x4cd2f3);if(_0x29598e)this['_setSuggestionRange'](_0x29598e,_0x15fc4e);else{const _0x36471a=_0xca03d8(),_0x17f95a=_0x48e62f['id'];this['_setSuggestionData']({'id':_0x36471a,'type':'formatInline:'+_0x4d0b6d,'data':_0x49e04b,'createdAt':new Date(),'authorId':_0x17f95a,'attributes':_0x5e8d94}),this['_addSuggestionMarker']('formatInline:'+_0x4d0b6d,_0x36471a,_0x17f95a,_0x15fc4e);}}return null;}['markBlockFormat'](_0x57cd81,_0x4a02b5,_0x4a2e2a=[],_0x352f5c=null,_0x458be4={}){_0x4a02b5['formatGroupId']||(_0x4a02b5['formatGroupId']=_0x4a02b5['commandName']),_0x4a02b5['multipleBlocks']=_0x57cd81['is']('range'),_0x352f5c=_0x352f5c||Gt(_0x4a02b5);const _0x428866=_0x4a2e2a['map'](_0x3bcc10=>Lt(_0x3bcc10,this['_model'])),_0x2934d8=_0x57cd81['is']('range')?_0x57cd81:Lt(_0x57cd81,this['_model']);if('never'===this['_trackFormatChanges']){const _0x6003bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x352f5c,'accept');return this['forceDefaultExecution'](()=>_0x6003bd([_0x2934d8],_0x4a02b5,_0x458be4)),null;}_0x428866['push'](_0x2934d8);let _0x20ee86=!0x0;for(const _0xaef8a of _0x428866)if(!this['_rangeIsInLocalUserInsertion'](_0xaef8a)){_0x20ee86=!0x1;break;}if(_0x20ee86&&'always'!==this['_trackFormatChanges']){const _0x2e530d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x352f5c,'accept');return this['forceDefaultExecution'](()=>_0x2e530d([_0x2934d8],_0x4a02b5,_0x458be4)),null;}let _0x2acfd1=null,_0x2a02c8=_0x2934d8['start'],_0x32d853=_0x2934d8['end'];for(const {suggestion:_0x509fd5,meta:_0x3fa33d}of this['_findSuggestions'](_0x2934d8,'formatBlock')){if(!_0x3fa33d['isOwn'])continue;if(_0x3fa33d['isNextTo']||_0x3fa33d['containsRangeInObject']||_0x3fa33d['isInsideObject'])continue;if(_0x509fd5['data']['formatGroupId']!=_0x4a02b5['formatGroupId'])continue;if(!qt(_0x509fd5,_0x458be4))continue;const _0x11862a=_0x509fd5['getFirstRange']();if(_0x509fd5['subType']==_0x352f5c){if(_0x11862a['containsRange'](_0x2934d8,!0x0))return null;_0x2a02c8=_0x2a02c8['isBefore'](_0x11862a['start'])?_0x2a02c8:_0x11862a['start'],_0x32d853=_0x32d853['isAfter'](_0x11862a['end'])?_0x32d853:_0x11862a['end'],_0x2acfd1?_0x11862a['start']['isBefore'](_0x2acfd1['getFirstRange']()['start'])?(_0x2acfd1['removeMarkers'](),_0x2acfd1=_0x509fd5):_0x509fd5['removeMarkers']():_0x2acfd1=_0x509fd5;}else{const _0x4cdcba=_0x2934d8['getIntersection'](_0x11862a);this['_cutOutSuggestionMarker'](_0x509fd5,_0x4cdcba);}}const _0x4c0706=this['editor']['plugins']['get']('Users')['me'],_0xf70f10=_0xca03d8(),_0x2c75e7=_0x4c0706['id'];if(_0x2acfd1)return this['_setSuggestionRange'](_0x2acfd1,this['_model']['createRange'](_0x2a02c8,_0x32d853)),_0x2acfd1;{const _0x129270=this['_setSuggestionData']({'id':_0xf70f10,'type':'formatBlock:'+_0x352f5c,'data':_0x4a02b5,'createdAt':new Date(),'authorId':_0x2c75e7,'attributes':_0x458be4});return this['_addSuggestionMarker']('formatBlock:'+_0x352f5c,_0xf70f10,_0x2c75e7,this['_model']['createRange'](_0x2a02c8,_0x32d853)),_0x129270;}}['markMultiRangeBlockFormat'](_0x108c89,_0x1181d2,_0x215ae1=[],_0x353289=null,_0x2b3846={}){_0x1181d2['formatGroupId']||(_0x1181d2['formatGroupId']=_0x1181d2['commandName']);const _0x182523=_0x108c89[0x0];_0x1181d2['multipleBlocks']=_0x182523['is']('range'),_0x353289=_0x353289||Gt(_0x1181d2);const _0x3884b9=_0x215ae1['map'](_0x26b775=>Lt(_0x26b775,this['_model'])),_0x496fc8=_0x182523['is']('range')?_0x108c89:_0x108c89['map'](_0x526afd=>Lt(_0x526afd,this['_model']));if('never'===this['_trackFormatChanges']){const _0x138029=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x353289,'accept');return this['forceDefaultExecution'](()=>_0x138029(_0x496fc8,_0x1181d2,_0x2b3846)),null;}_0x3884b9['push'](..._0x496fc8);let _0x3859be=!0x0;for(const _0x205baa of _0x3884b9)if(!this['_rangeIsInLocalUserInsertion'](_0x205baa)){_0x3859be=!0x1;break;}if(_0x3859be&&'always'!==this['_trackFormatChanges']){const _0x4c0dcd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x353289,'accept');return this['forceDefaultExecution'](()=>_0x4c0dcd(_0x496fc8,_0x1181d2,_0x2b3846)),null;}const _0x3d7184=this['editor']['plugins']['get']('Users')['me'];for(const _0x10b373 of this['getSuggestions']()){if(_0x10b373['author']['id']!=_0x3d7184['id'])continue;if('formatBlock'!=_0x10b373['type']||_0x10b373['data']['formatGroupId']!=_0x1181d2['formatGroupId'])continue;if(!qt(_0x10b373,_0x2b3846))continue;const _0x4c372e=_0x10b373['subType']==_0x353289;for(let _0x423fb0=0x0;_0x423fb0<_0x496fc8['length'];_0x423fb0++){const _0x474d38=_0x496fc8[_0x423fb0];for(const _0x20e5e0 of _0x10b373['getMarkers']()){const _0x2de93a=_0x20e5e0['getRange']();if(_0x474d38['isEqual'](_0x2de93a)){_0x4c372e?(_0x496fc8['splice'](_0x423fb0,0x1),_0x423fb0--):_0x10b373['removeMarker'](_0x20e5e0['name']);break;}}}}if(0x0==_0x496fc8['length'])return null;const _0x5094bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x353289,'join');for(const _0x337de6 of this['getSuggestions']())if(_0x337de6['author']['id']==_0x3d7184['id']&&'formatBlock'==_0x337de6['type']&&_0x337de6['data']['formatGroupId']==_0x1181d2['formatGroupId']&&_0x337de6['subType']==_0x353289&&qt(_0x337de6,_0x2b3846)&&(_0x5094bb(_0x337de6['getRanges'](),_0x496fc8)||_0x5094bb(_0x496fc8,_0x337de6['getRanges']()))){for(const _0x47fe2d of _0x496fc8)_0x337de6['addRange'](_0x47fe2d);return _0x337de6;}const _0x167896=_0xca03d8(),_0x1a11bc=_0x3d7184['id'],_0x55a14a='formatBlock:'+_0x353289,_0x34760b=this['_setSuggestionData']({'id':_0x167896,'type':_0x55a14a,'data':_0x1181d2,'createdAt':new Date(),'authorId':_0x1a11bc,'attributes':_0x2b3846});for(const _0x4889c7 of _0x496fc8)this['_addSuggestionMarker'](_0x55a14a,_0x167896,_0x1a11bc,_0x4889c7,u['getMultiRangeId']());return _0x34760b;}['markDeletion'](_0x4dc682,_0xc5e1f1=null,_0xe7bf60={}){if(_0x4dc682['isCollapsed'])return null;const _0x20d3a9=this['editor']['plugins']['get']('Users')['me'],_0x227791=new _0x3f290a(_0x4dc682['start'],_0x4dc682['end']);for(const {suggestion:_0x30b48a,meta:_0x2c3e29}of this['_findSuggestions'](_0x227791,'insertion'))if(_0x2c3e29['isOwn']&&!_0x2c3e29['isNextTo']){if(_0x30b48a['isMultiRange']){const _0x5e5bc6=_0x30b48a['getRanges']()['filter'](_0x23f769=>'$graveyard'!=_0x23f769['root']['rootName']);_0x5e5bc6['every'](_0x439d6a=>_0x227791['containsRange'](_0x439d6a,!0x0))&&_0x30b48a['discard']();if(_0x5e5bc6['some'](_0x49e032=>_0x49e032['containsRange'](_0x227791,!0x0))){const _0x35e700=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc5e1f1,'accept');return this['forceDefaultExecution'](()=>_0x35e700([_0x227791],null,_0xe7bf60)),null;}}else{const _0xc8b1b2=_0x227791['getIntersection'](_0x30b48a['getFirstRange']());null!==_0xc8b1b2&&_0x30b48a['_onDiscard']([_0xc8b1b2],null,_0xe7bf60);}}if(_0x227791['detach'](),_0x227791['isCollapsed']||'$graveyard'==_0x227791['root']['rootName'])return null;let _0x496a34=null,_0x17729a=_0x227791['start'],_0x423ae0=_0x227791['end'];const _0x35214c=this['_findSuggestions'](_0x227791,'deletion');for(const {suggestion:_0x49ef6a,meta:_0x2a83ea}of _0x35214c){const _0x2ee0c9=this['_model']['createRange'](_0x17729a,_0x423ae0);if(_0x2a83ea['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a83ea['containsRangeInObject']&&!_0x2a83ea['isInsideObject'])){if(_0x49ef6a['isMultiRange']){if(!qt(_0x49ef6a,_0xe7bf60))continue;let _0x47eff3=!0x0;for(const _0x414bf5 of _0x49ef6a['getRanges']()){if(_0x414bf5['containsRange'](_0x2ee0c9,!0x0))return _0x49ef6a;_0x2ee0c9['containsRange'](_0x414bf5)||(_0x47eff3=!0x1);}_0x47eff3&&_0x49ef6a['discard']();}else{const _0x23ea52=_0x49ef6a['getFirstRange']();if(_0x23ea52['containsRange'](_0x2ee0c9,!0x0))return _0x49ef6a;if(!qt(_0x49ef6a,_0xe7bf60)){_0x2ee0c9['containsRange'](_0x23ea52)?_0x49ef6a['removeMarkers']():_0x23ea52['containsPosition'](_0x17729a)?_0x17729a=_0x23ea52['end']:_0x23ea52['containsPosition'](_0x423ae0)&&(_0x423ae0=_0x23ea52['start']);continue;}_0x17729a=_0x17729a['isBefore'](_0x23ea52['start'])?_0x17729a:_0x23ea52['start'],_0x423ae0=_0x423ae0['isAfter'](_0x23ea52['end'])?_0x423ae0:_0x23ea52['end'],_0xe7bf60=Object['assign']({},_0x49ef6a['attributes']),_0x496a34?_0x23ea52['start']['isBefore'](_0x496a34['getFirstRange']()['start'])?(_0x496a34['removeMarkers'](),_0x496a34=_0x49ef6a):_0x49ef6a['removeMarkers']():_0x496a34=_0x49ef6a;}}}if(_0x496a34)return this['_setSuggestionRange'](_0x496a34,this['_model']['createRange'](_0x17729a,_0x423ae0)),_0x496a34;{const _0x1db4a4=_0xca03d8(),_0x258517=this['_model']['createRange'](_0x17729a,_0x423ae0),_0x4adbe2=_0x20d3a9['id'],_0x40acc2=_0xc5e1f1?'deletion:'+_0xc5e1f1:'deletion',_0x3f5ba8=this['_setSuggestionData']({'id':_0x1db4a4,'type':_0x40acc2,'createdAt':new Date(),'authorId':_0x4adbe2,'attributes':_0xe7bf60});return this['_addSuggestionMarker'](_0x40acc2,_0x1db4a4,_0x4adbe2,_0x258517),_0x3f5ba8;}}['markMultiRangeDeletion'](_0x5ae7e6,_0x16e2cd='multi',_0x45423b={}){const _0xdd5c50=this['editor']['plugins']['get']('Users')['me'],_0x3ef728=_0x5ae7e6['map'](_0x4f9441=>new _0x3f290a(_0x4f9441['start'],_0x4f9441['end'])),_0x1eeb75=new Set();for(const {suggestion:_0x5de7ac,meta:_0x14bb54}of this['_findSuggestions'](_0x3ef728,'insertion'))_0x14bb54['isOwn']&&!_0x14bb54['isNextTo']&&_0x1eeb75['add'](_0x5de7ac);for(const _0xcfe3f4 of _0x1eeb75)if(_0xcfe3f4['isMultiRange']){const _0x5781fe=_0xcfe3f4['getRanges']();(!_0xcfe3f4['attributes']||!_0xcfe3f4['attributes']['skipNestingCheck'])&&(_0x5781fe['every'](_0x3fd7ff=>_0x3ef728['some'](_0x3c31b0=>_0x3c31b0['containsRange'](_0x3fd7ff,!0x0)))&&_0xcfe3f4['discard']());if(_0x3ef728['every'](_0x2a51ff=>_0x5781fe['some'](_0x258f68=>_0x258f68['containsRange'](_0x2a51ff,!0x0)))){const _0x42d12e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e2cd,'accept');return this['forceDefaultExecution'](()=>_0x42d12e(_0x5ae7e6,null,_0x45423b)),null;}}else{const _0x3f87ae=_0xcfe3f4['getFirstRange']();_0x3ef728['some'](_0x5048d0=>_0x5048d0['containsRange'](_0x3f87ae,!0x0))&&_0xcfe3f4['discard']();if(_0x3ef728['every'](_0x428e05=>_0x3f87ae['containsRange'](_0x428e05,!0x0))){const _0x1fef7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e2cd,'accept');return this['forceDefaultExecution'](()=>_0x1fef7f(_0x3ef728,null,_0x45423b)),null;}}const _0x185a38=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e2cd,'join');let _0x4efc5c=null;for(const _0x36011d of this['getSuggestions']())if(_0x36011d['author']['id']==_0xdd5c50['id']&&_0x36011d['isInContent']&&'deletion'==_0x36011d['type']&&_0x36011d['subType']==_0x16e2cd&&qt(_0x36011d,_0x45423b)&&(_0x185a38(_0x36011d['getRanges'](),_0x3ef728)||_0x185a38(_0x3ef728,_0x36011d['getRanges']()))){if(_0x4efc5c){if(_0x36011d['commentThread']&&_0x36011d['commentThread']['length'])continue;for(const _0x421d03 of _0x36011d['getRanges']())_0x4efc5c['isIntersectingWithRange'](_0x421d03)||_0x4efc5c['addRange'](_0x421d03);_0x36011d['removeMarkers']();}else{_0x4efc5c=_0x36011d;for(const _0x4e2c83 of _0x3ef728)_0x36011d['isIntersectingWithRange'](_0x4e2c83)||_0x36011d['addRange'](_0x4e2c83);}}if(_0x4efc5c)return _0x4efc5c;_0x1eeb75['clear']();for(const {suggestion:_0x386aa6,meta:_0x4d8f4d}of this['_findSuggestions'](_0x3ef728,'deletion'))_0x4d8f4d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d8f4d['containsRangeInObject']&&!_0x4d8f4d['isInsideObject'])&&qt(_0x386aa6,_0x45423b)&&_0x1eeb75['add'](_0x386aa6);for(const _0x5b21a8 of _0x1eeb75){const _0x28377a=_0x5b21a8['getRanges']();if(!_0x45423b||!_0x45423b['skipNestingCheck']){if(_0x3ef728['every'](_0x5fe068=>_0x28377a['some'](_0x2d4c92=>_0x2d4c92['containsRange'](_0x5fe068,!0x0))))return _0x5b21a8;}(!_0x5b21a8['attributes']||!_0x5b21a8['attributes']['skipNestingCheck'])&&(_0x28377a['every'](_0x18daa3=>_0x3ef728['some'](_0x24ccd7=>_0x24ccd7['containsRange'](_0x18daa3,!0x0)))&&_0x5b21a8['discard']());}const _0x3f5eb8=_0xca03d8(),_0x3c1ef5=_0xdd5c50['id'],_0xf784d7='deletion:'+_0x16e2cd,_0x3f31c8=this['_setSuggestionData']({'id':_0x3f5eb8,'type':_0xf784d7,'createdAt':new Date(),'authorId':_0x3c1ef5,'attributes':_0x45423b});for(const _0x1016d0 of _0x3ef728)_0x1016d0['detach'](),_0x1016d0['isCollapsed']||'$graveyard'==_0x1016d0['root']['rootName']||this['_addSuggestionMarker'](_0xf784d7,_0x3f5eb8,_0x3c1ef5,_0x1016d0,u['getMultiRangeId']());return _0x3f31c8;}['markAttributeChange'](_0x2bf86f,_0xa803e6,_0x3bb435,_0x72e5f0,_0x37c5d2){if(_0x2bf86f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x41d048=this['editor']['plugins']['get']('Users')['me']['id'],_0x443360=Array['from'](this['_suggestions']['values']())['filter'](_0x2689df=>'attribute'==_0x2689df['type']&&_0x2689df['data']['key']==_0xa803e6&&_0x2689df['isIntersectingWithRange'](_0x2bf86f));if('default'===this['_trackFormatChanges']){const _0x363e47=this['_findSuggestions'](_0x2bf86f,'insertion')['filter'](({meta:_0x3bd228})=>_0x3bd228['isOwn']&&!_0x3bd228['isInsideObject']&&!_0x3bd228['isNextTo'])['map'](({suggestion:_0x5d2526})=>_0x5d2526);_0x443360['unshift'](..._0x363e47);}const _0x5049c8=new Map([[_0x2bf86f,_0x3bb435]]);for(const _0x58505b of _0x443360){const _0x82c0c8='attribute'==_0x58505b['type']?_0x58505b['data']['oldValue']:void 0x0,_0x20c2a9=_0x58505b['getFirstRange'](),_0x5cc569=Array['from'](_0x5049c8['keys']())['find'](_0xd1f08a=>_0xd1f08a['isIntersecting'](_0x20c2a9));if(!_0x5cc569)continue;const _0x31bdc8=_0x5cc569['getDifference'](_0x20c2a9);this['_isBlockAttribute'](_0xa803e6)&&'insertion'==_0x58505b['type']&&0x0!=_0x31bdc8['length']||(_0x5049c8['delete'](_0x5cc569),_0x31bdc8['forEach'](_0x4bba44=>{_0x5049c8['set'](_0x4bba44,_0x3bb435);}),'insertion'!=_0x58505b['type']&&_0x82c0c8!=_0x72e5f0&&_0x5049c8['set'](_0x5cc569['getIntersection'](_0x20c2a9),_0x82c0c8));}const _0x5ebba8=[];for(const [_0x1938cd,_0x170c7e]of _0x5049c8){const _0x3308a8=_0xca03d8(),_0x432de8={'key':_0xa803e6,'oldValue':_0x170c7e,'newValue':_0x72e5f0};_0xa803e6['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':_0xa803e6});const _0x3a616a=('attribute:'+(_0xa803e6+'|'+Gt({'newValue':_0x72e5f0})))['substring'](0x0,0x3c),_0x5d93ab=this['_setSuggestionData']({'id':_0x3308a8,'type':_0x3a616a,'data':_0x432de8,'createdAt':new Date(),'authorId':_0x41d048,'attributes':_0x37c5d2});_0x5ebba8['push'](_0x5d93ab),this['_addSuggestionMarker'](_0x3a616a,_0x3308a8,_0x41d048,_0x1938cd);}return _0x5ebba8;}['enableDefaultAttributesIntegration'](_0x3ecddb){this['enableCommand'](_0x3ecddb,(_0x2c9e48,..._0x1bcb63)=>{this['_recordAttributeChanges'](()=>{_0x2c9e48(..._0x1bcb63);});});}['registerBlockAttribute'](_0x46de2d){this['_blockAttributeKeys']['add'](_0x46de2d);}['registerInlineAttribute'](_0x3459f0){this['_inlineAttributeKeys']['add'](_0x3459f0);}['_getAttributeKey'](_0x17b256){return'attribute'==_0x17b256['type']?_0x17b256['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2ab538,_0xa6f90e){const _0xcf36a1=_0x2ab538['getFirstMarker']();this['_model']['change'](_0x2c9fc6=>{_0x2c9fc6['updateMarker'](_0xcf36a1,{'range':_0xa6f90e});});}['_addThreadToSuggestion'](_0x1885f4){const _0x6819ab=_0x1885f4['id'],_0x462aca=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x6819ab)||this['_commentsRepository']['addCommentThread']({'channelId':_0x462aca,'threadId':_0x6819ab,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x26c926=this['_commentsRepository']['getCommentThread'](_0x6819ab);_0x26c926['unbind']('isRemovable'),_0x26c926['isRemovable']=!0x1,_0x1885f4['commentThread']=_0x26c926;}['_checkSuggestionCorrectness'](_0x18447d,_0x58f947,_0x50cee7,_0x4e9807){if(_0x18447d['type']!=_0x58f947||_0x18447d['subType']!=_0x50cee7||_0x18447d['creator']['id']!=_0x4e9807)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x22e9fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x540be2,_0x58d424){const _0x4b1b40=_0x540be2['getFirstRange']();if(_0x58d424['isEqual'](_0x4b1b40))_0x540be2['removeMarkers']();else{if(_0x4b1b40['containsRange'](_0x58d424)){const _0x3ac918=this['_model']['createPositionAt'](_0x58d424['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x540be2,this['_model']['createRange'](_0x4b1b40['start'],_0x3ac918));const _0xd37e72=_0xca03d8(),_0x1212b7=_0x540be2['creator']['id'],_0x40d819=_0x540be2['type']+':'+_0x540be2['subType'];this['_setSuggestionData']({'id':_0xd37e72,'type':_0x40d819,'createdAt':new Date(),'authorId':_0x1212b7,'data':_0x540be2['data'],'attributes':_0x540be2['attributes']});const _0x4db027=this['_model']['createPositionAt'](_0x58d424['end']['parent'],'after'),_0x5976cd=this['_model']['createRange'](_0x4db027,_0x4b1b40['end']);this['_addSuggestionMarker'](_0x40d819,_0xd37e72,_0x1212b7,_0x5976cd);}else{if(_0x4b1b40['containsPosition'](_0x58d424['start'])){const _0x250fec=this['_model']['createPositionAt'](_0x58d424['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x540be2,this['_model']['createRange'](_0x4b1b40['start'],_0x250fec));}else{const _0x188b46=this['_model']['createPositionAt'](_0x58d424['end']['parent'],'after');this['_setSuggestionRange'](_0x540be2,this['_model']['createRange'](_0x188b46,_0x4b1b40['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d10a3){for(const {suggestion:_0x1a497e,meta:_0xef3c9d}of this['_findSuggestions'](_0x5d10a3,'insertion')){if(!_0xef3c9d['isOwn'])continue;const _0x1fabec=_0x1a497e['getRanges']();for(const _0x1fdab4 of _0x1fabec)if(!_0x5d10a3['getDifference'](_0x1fdab4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5829a7){const _0xc159a7=this['editor']['plugins']['get']('Users')['getUser'](_0x5829a7);if(!_0xc159a7)throw new _0x22e9fd('track-changes-user-not-found',this);return _0xc159a7;}['_getExternalAuthor'](_0x31811f){const _0x2edb0f=this['editor']['plugins']['get']('Users'),_0x430786=_0x537a9e('external:'+_0x31811f),_0x91782d=_0x2edb0f['getUser'](_0x430786);return _0x91782d||_0x2edb0f['addUser']({'id':_0x430786,'name':_0x31811f});}['_createSuggestion'](_0x3098b1,_0x13243e,_0x3fac0e,_0x239911,_0x2bb242){const _0x2add79=this['_getAuthorFromId'](_0x239911),_0x5e6d59=this['_suggestionFactory']['buildSuggestion'](_0x3098b1,_0x13243e,_0x3fac0e,_0x2add79,_0x2bb242,_0x3097ea=>{this['_updateSuggestionData'](_0x3fac0e,{'attributes':_0x3097ea});const _0x4bf81b=this['getSuggestion'](_0x3fac0e);this['_joinWithAdjacentSuggestions'](new Set([_0x4bf81b])),this['_refreshSuggestionsChain'](new Set([_0x4bf81b]));});return this['listenTo'](_0x5e6d59,'accept',()=>{this['_updateSuggestionData'](_0x3fac0e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e6d59,'discard',()=>{this['_updateSuggestionData'](_0x3fac0e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3fac0e,_0x5e6d59),this['_suggestionState']['set'](_0x5e6d59,'notReady'),_0x5e6d59;}['_splitMarkerName'](_0x52f83c){const _0x203e9b=_0x52f83c['split'](':');return{'group':_0x203e9b[0x0],'type':_0x203e9b[0x1],'subType':_0x203e9b['length']>=0x5?_0x203e9b[0x2]:null,'id':_0x203e9b['length']<0x5?_0x203e9b[0x2]:_0x203e9b[0x3],'authorId':_0x203e9b['length']<0x5?_0x203e9b[0x3]:_0x203e9b[0x4],'markerCount':0x6==_0x203e9b['length']?_0x203e9b[0x5]:null};}['_breakSuggestionMarker'](_0x33e673,_0x3201c4,_0x80dc92){const _0x3b1efb=_0x33e673['getFirstRange'](),_0x52a41b=_0x3b1efb['start'],_0x1ce562=_0x3b1efb['end'];this['_setSuggestionRange'](_0x33e673,this['_model']['createRange'](_0x52a41b,_0x3201c4));const _0x5876e=_0xca03d8(),_0x5da968=_0x33e673['creator']['id'],_0x2ae26f=_0x33e673['type']+(_0x33e673['subType']?':'+_0x33e673['subType']:'');this['_setSuggestionData']({'id':_0x5876e,'type':_0x2ae26f,'createdAt':new Date(),'authorId':_0x5da968,'originalSuggestionId':_0x33e673['id'],'attributes':_0x33e673['attributes'],'data':_0x33e673['data']});const _0x250488=this['_getAttributeKey'](_0x33e673);('formatBlock'==_0x33e673['type']||_0x250488&&this['_isBlockAttribute'](_0x250488))&&(_0x80dc92=this['_model']['createPositionBefore'](_0x80dc92['parent'])),this['_addSuggestionMarker'](_0x2ae26f,_0x5876e,_0x5da968,this['_model']['createRange'](_0x80dc92,_0x1ce562));}['_findSuggestions'](_0x156ca6,_0x3028ae=null){const _0x332c9f=[],_0x571606=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x156ca6)||(_0x156ca6=[_0x156ca6]);for(const _0x2357cd of this['getSuggestions']()){if(!_0x2357cd['isInContent'])continue;if(_0x3028ae&&_0x2357cd['type']!=_0x3028ae)continue;let _0x44796c=!0x1;for(const _0x36936e of _0x2357cd['getRanges']()){for(const _0x38c2de of _0x156ca6){const _0x196954=_0x38c2de['start']['isEqual'](_0x36936e['end'])||_0x38c2de['end']['isEqual'](_0x36936e['start']);if(_0x196954||_0x38c2de['getIntersection'](_0x36936e)){const _0x474926=_0x38c2de['containsRange'](_0x36936e)&&Ot(this['_model']['schema'],_0x36936e['start'],_0x38c2de),_0x5d7153=_0x36936e['containsRange'](_0x38c2de)&&Ot(this['_model']['schema'],_0x38c2de['start'],_0x36936e);_0x332c9f['push']({'suggestion':_0x2357cd,'meta':{'isOwn':_0x571606==_0x2357cd['author'],'isNextTo':_0x196954,'isInsideObject':_0x474926,'containsRangeInObject':_0x5d7153}}),_0x44796c=!0x0;break;}}if(_0x44796c)break;}}return _0x332c9f;}['_addSuggestionMarker'](_0xfce5c4,_0x42b757,_0x22c739,_0x42c6cc,_0x4840b1){this['_model']['change'](_0x245a07=>{let _0x33bcf9='suggestion:'+_0xfce5c4+':'+_0x42b757+':'+_0x22c739;_0x4840b1&&(_0x33bcf9=_0x33bcf9+':'+_0x4840b1),_0x245a07['addMarker'](_0x33bcf9,{'range':_0x42c6cc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x27d934){const _0x53ef9f=_0x27d934['previous'],_0x56ccc3=_0x27d934['next'];_0x27d934['previous']=null,_0x27d934['next']=null,null!=_0x53ef9f&&_0x53ef9f['next']==_0x27d934&&(_0x53ef9f['next']=_0x56ccc3),null!=_0x56ccc3&&_0x56ccc3['previous']==_0x27d934&&(_0x56ccc3['previous']=_0x53ef9f),'ready'==this['_suggestionState']['get'](_0x27d934)&&(this['_suggestionState']['set'](_0x27d934,'removed'),this['fire']('suggestionUnloaded',_0x27d934,_0x53ef9f,_0x56ccc3));}['_setSuggestionData'](_0x41b778){const _0x5def38=_0x41b778['id'],_0x47a8e6=this['addSuggestionData'](_0x41b778);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x21707d=this['editor']['plugins']['get']('PendingActions'),_0xec5ebc=_0x47a8e6['hasComments'],_0x1ae900=_0x47a8e6['subType']?_0x47a8e6['type']+':'+_0x47a8e6['subType']:_0x47a8e6['type'],_0x3b76a8=this['editor']['locale'],_0x1aba38=_0x21707d['add'](o(_0x3b76a8,'PENDING_ACTION_SUGGESTION')),_0x2bbdc2={'id':_0x5def38,'type':_0x1ae900,'hasComments':_0xec5ebc,'data':_0x41b778['data']||null,'originalSuggestionId':_0x41b778['originalSuggestionId']||null,'attributes':_0x47a8e6['attributes']};this['_adapter']['addSuggestion'](_0x2bbdc2)['then'](_0x37a5dc=>{_0x47a8e6['_saved']=!0x0,_0x21707d['remove'](_0x1aba38),_0x37a5dc&&_0x37a5dc['createdAt']&&(this['_suggestions']['get'](_0x5def38)['createdAt']=_0x37a5dc['createdAt']);})['catch'](_0x4eeb88=>{throw _0xde09c2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x47a8e6['discard']();}),_0x47a8e6['stopListening'](),this['_suggestions']['delete'](_0x47a8e6['id']),this['_suggestionState']['delete'](_0x47a8e6),_0x4eeb88;});}return _0x47a8e6;}['_isBlockAttribute'](_0x10aea9){return this['_blockAttributeKeys']['has'](_0x10aea9);}['_updateSuggestionData'](_0x1b2b8a,_0x389849){const _0x1436c2=this['editor']['plugins']['get']('PendingActions'),_0x4169e8=this['getSuggestion'](_0x1b2b8a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4169e8['_saved']){const _0x30d96c=_0x1436c2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1b2b8a,_0x389849)['then'](()=>{_0x1436c2['remove'](_0x30d96c);});}else _0x4169e8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1b2b8a,_0x389849);});}}['_getSuggestionData'](_0x2eb493){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x22e9fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2eb493);}['_handleNewSuggestionMarker'](_0x491f4d){const {id:_0x4ba215,type:_0x15b38b,subType:_0x3c6646,authorId:_0x1fafce}=this['_splitMarkerName'](_0x491f4d),_0x2243ef=this['_suggestions']['get'](_0x4ba215)||this['_createSuggestion'](_0x15b38b,_0x3c6646,_0x4ba215,_0x1fafce,{});switch(this['_checkSuggestionCorrectness'](_0x2243ef,_0x15b38b,_0x3c6646,_0x1fafce),this['_suggestionState']['get'](_0x2243ef)){case'notReady':this['_getSuggestionData'](_0x4ba215)['then'](_0xfaff35=>{let _0xde9f99=Promise['resolve']();_0xfaff35['hasComments']&&(_0xde9f99=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ba215})),_0xde9f99['then'](()=>{this['addSuggestionData'](_0xfaff35)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2243ef,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ba215,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2243ef,'ready'),this['fire']('suggestionLoaded',_0x2243ef);break;case'ready':this['fire']('suggestionChanged',_0x2243ef);}return _0x2243ef['addMarkerName'](_0x491f4d),_0x2243ef;}['_refreshSuggestionsChain'](_0x27856f){const _0xf83405=Array['from'](_0x27856f),_0x1e825e=_0xf83405['filter'](_0x19b0fc=>'attribute'==_0x19b0fc['type']);this['_refreshAttributeSuggestionsChain'](_0x1e825e);const _0x23804c=_0xf83405['filter'](_0x530388=>!_0x530388['isMultiRange']&&'attribute'!=_0x530388['type']),_0x3bf53e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ab396=>!_0x3ab396['isMultiRange']&&'attribute'!=_0x3ab396['type']),_0x50fea2=_0x3bf53e['filter'](_0xb5d3d5=>!_0x27856f['has'](_0xb5d3d5)),_0x39ece9=new Map(_0x3bf53e['map'](_0xd42f36=>[_0xd42f36,this['_suggestionFactory']['getSuggestionCallback'](_0xd42f36['type'],_0xd42f36['subType'],'chain')])),_0x33c6b2=new Map(_0x3bf53e['map'](_0x299c21=>[_0x299c21,_0x299c21['getFirstRange']()])),_0x462b22=new Set(),_0x5128a6=new Set();for(let _0x1baac8=0x0;_0x1baac8<_0x23804c['length'];_0x1baac8++)_0x4c7c25(_0x23804c[_0x1baac8],_0x23804c,_0x1baac8+0x1);for(let _0x4fbf41=0x0;_0x4fbf41<_0x23804c['length'];_0x4fbf41++)_0x4c7c25(_0x23804c[_0x4fbf41],_0x50fea2,0x0);const _0x3414f1=new Set();for(let _0x3ab9fe=0x0;_0x3ab9fe<_0x23804c['length'];_0x3ab9fe++){const _0x16865a=_0x23804c[_0x3ab9fe];!_0x5128a6['has'](_0x16865a)&&_0x16865a['previous']&&(_0x3414f1['add'](_0x16865a['previous']),_0x16865a['previous']['next']===_0x16865a&&(_0x16865a['previous']['next']=null),_0x16865a['previous']=null),!_0x462b22['has'](_0x16865a)&&_0x16865a['next']&&(_0x3414f1['add'](_0x16865a['next']),_0x16865a['next']['previous']===_0x16865a&&(_0x16865a['next']['previous']=null),_0x16865a['next']=null);}function _0x4c7c25(_0x576245,_0x31bfd9,_0x1e2ab6){for(let _0x1ef14b=_0x1e2ab6;_0x1ef14b<_0x31bfd9['length'];_0x1ef14b++){const _0x3654ca=_0x2b4983(_0x576245,_0x31bfd9[_0x1ef14b]);_0x3654ca&&(_0x3654ca[0x0]['next']=_0x3654ca[0x1],_0x3654ca[0x1]['previous']=_0x3654ca[0x0],_0x462b22['add'](_0x3654ca[0x0]),_0x5128a6['add'](_0x3654ca[0x1]));}}function _0x2b4983(_0x29be53,_0x58a60d){if(_0x29be53['author']['id']!==_0x58a60d['author']['id'])return null;const _0x5f55cd=_0x39ece9['get'](_0x29be53)(_0x29be53,_0x58a60d,_0x33c6b2['get'](_0x29be53),_0x33c6b2['get'](_0x58a60d));if(!_0x5f55cd)return null;return _0x39ece9['get'](_0x58a60d)(_0x29be53,_0x58a60d,_0x33c6b2['get'](_0x29be53),_0x33c6b2['get'](_0x58a60d))?_0x5f55cd[0x1]['commentThread']&&_0x5f55cd[0x1]['commentThread']['length']?null:_0x5f55cd:null;}_0x3414f1['size']&&this['_refreshSuggestionsChain'](_0x3414f1);}['_refreshAttributeSuggestionsChain'](_0x2d904c){if(0x0==_0x2d904c['length'])return;const _0x11fcd1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2937ae=>'attribute'==_0x2937ae['type']&&_0x2937ae['_isDataLoaded']),_0x22939a=[],_0x5019fa=new Map();for(const _0x24f295 of _0x11fcd1){const _0x24c7ba=_0x537a9e(_0x24f295['attributes']);_0x5019fa['has'](_0x24c7ba)||(_0x5019fa['set'](_0x24c7ba,_0x22939a['length']),_0x22939a['push']([]));const _0x51318f=_0x5019fa['get'](_0x24c7ba);_0x22939a[_0x51318f]['push'](_0x24f295);}!(function(){_0x22939a['sort']((_0x33f541,_0x1b1411)=>{const _0x4b01e9=_0x33f541[0x0]['createdAt'],_0x3dff22=_0x1b1411[0x0]['createdAt'];return _0x4b01e9==_0x3dff22?_0x33f541[0x0]['attributes']['groupId']<_0x1b1411[0x0]['attributes']['groupId']?-0x1:0x1:_0x4b01e9<_0x3dff22?-0x1:0x1;});for(const _0x51a7f0 of _0x22939a)_0x51a7f0['sort']((_0x296308,_0x215e2d)=>_0x296308['id']<_0x215e2d['id']?-0x1:0x1);}());for(let _0x3c9571=0x0;_0x3c9571<_0x22939a['length'];_0x3c9571++){if(0x0==_0x22939a[_0x3c9571]['length'])continue;const _0x114557=[];for(let _0x4eea4a=_0x3c9571+0x1;_0x4eea4a<_0x22939a['length'];_0x4eea4a++)0x0!=_0x22939a[_0x4eea4a]['length']&&_0x1de1eb(_0x22939a[_0x3c9571],_0x22939a[_0x4eea4a])&&_0x114557['push'](_0x4eea4a);for(const _0x4a42c5 of _0x114557)_0x22939a[_0x3c9571]=_0x22939a[_0x3c9571]['concat'](_0x22939a[_0x4a42c5]),_0x22939a[_0x4a42c5]=[];}for(const _0x242097 of _0x22939a)for(let _0x4b8759=0x0;_0x4b8759<_0x242097['length'];_0x4b8759++){const _0x9deaee=_0x242097[_0x4b8759+0x1]||null;_0x242097[_0x4b8759]['next']!==_0x9deaee&&(_0x242097[_0x4b8759]['next']=_0x9deaee);}for(const _0x22d11e of _0x22939a)for(let _0x5ed7c6=0x0;_0x5ed7c6<_0x22d11e['length'];_0x5ed7c6++){const _0x32ea4a=_0x22d11e[_0x5ed7c6-0x1]||null;_0x22d11e[_0x5ed7c6]['previous']!==_0x32ea4a&&(_0x22d11e[_0x5ed7c6]['previous']=_0x32ea4a);}function _0x1de1eb(_0x55f4e1,_0x4e363e){if(_0x55f4e1[0x0]['attributes']['groupId']!==_0x4e363e[0x0]['attributes']['groupId']&&_0x55f4e1[0x0]['author']!==_0x4e363e[0x0]['author'])return!0x1;if(!function(_0x2920f4,_0x27ee14){if(!_0x2920f4['hasComments']&&!_0x27ee14['hasComments'])return!0x0;if(_0x2920f4['hasComments']&&_0x27ee14['hasComments'])return!0x1;if(_0x2920f4['hasComments']&&_0x27ee14['createdAt']<_0x2920f4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x27ee14['hasComments']&&_0x2920f4['createdAt']<_0x27ee14['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55f4e1[0x0],_0x4e363e[0x0]))return!0x1;const _0x51a2d8=Tt(_0x55f4e1[0x0]['attributes'],'groupId'),_0x1f9ee3=Tt(_0x4e363e[0x0]['attributes'],'groupId');if(!_0x26e437(_0x51a2d8,_0x1f9ee3))return!0x1;return!!_0x55f4e1['every'](_0x4ac127=>_0x4e363e['some'](_0x3a09e0=>_0x4ac127['getFirstRange']()['isEqual'](_0x3a09e0['getFirstRange']())))&&_0x4e363e['every'](_0x5f196c=>_0x55f4e1['some'](_0x3d30ba=>_0x5f196c['getFirstRange']()['isEqual'](_0x3d30ba['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5df9f6){const _0x182413=Array['from'](_0x5df9f6),_0x555ac2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5da346=_0x555ac2['filter'](_0x286e46=>!_0x5df9f6['has'](_0x286e46)),_0x37bc54=new Map(_0x182413['map'](_0x1e1cee=>[_0x1e1cee,this['_suggestionFactory']['getSuggestionCallback'](_0x1e1cee['type'],_0x1e1cee['subType'],'join')])),_0xafdf69=new Map(_0x555ac2['map'](_0x54a960=>[_0x54a960,_0x54a960['getRanges']()]));for(let _0x100a11=0x0;_0x100a11<_0x182413['length'];_0x100a11++){if(_0x2c9f8d(this,_0x182413[_0x100a11],_0x182413,_0x100a11+0x1))return!0x0;}for(let _0x29ea9f=0x0;_0x29ea9f<_0x182413['length'];_0x29ea9f++){if(_0x2c9f8d(this,_0x182413[_0x29ea9f],_0x5da346,0x0))return!0x0;}return!0x1;function _0x2c9f8d(_0x480860,_0x4637e9,_0x31a70a,_0x704c6d){for(let _0x6bad6f=_0x704c6d;_0x6bad6f<_0x31a70a['length'];_0x6bad6f++){const _0x36fc39=_0x31a70a[_0x6bad6f];if(_0x36fc39['type']!==_0x4637e9['type']||_0x36fc39['author']['id']!==_0x4637e9['author']['id']||_0x36fc39['subType']!==_0x4637e9['subType'])continue;if(!Jt(_0x4637e9,_0x36fc39))continue;if('attribute'==_0x4637e9['type']&&_0x4637e9['data']['oldValue']!=_0x36fc39['data']['oldValue'])continue;if('attribute'==_0x4637e9['type']&&_0x480860['_isBlockAttribute'](_0x4637e9['data']['key']))continue;if('formatBlock'==_0x4637e9['type']){const _0x249596=_0x480860['editor']['model'],_0x4476ab=_0x4637e9['getContainedElement']();if(_0x4476ab&&(_0x249596['schema']['isObject'](_0x4476ab)||_0x249596['schema']['isLimit'](_0x4476ab)))continue;}const _0x2f1a2b=_0x37bc54['get'](_0x4637e9),_0x1be206=_0xafdf69['get'](_0x4637e9),_0x1e9951=_0xafdf69['get'](_0x36fc39),_0x89d14b=_0x4637e9['commentThread']&&_0x4637e9['commentThread']['length'],_0x430461=_0x36fc39['commentThread']&&_0x36fc39['commentThread']['length'];if(!_0x89d14b&&_0x2f1a2b(_0x1e9951,_0x1be206))return _0x480860['_joinSuggestions'](_0x36fc39,_0x4637e9),_0xafdf69['delete'](_0x4637e9),!0x0;if(!_0x430461&&_0x2f1a2b(_0x1be206,_0x1e9951))return _0x480860['_joinSuggestions'](_0x4637e9,_0x36fc39),_0xafdf69['delete'](_0x36fc39),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5eacbe,_0x4adcbb){if(_0x5eacbe['isMultiRange']){for(const _0x641bb0 of _0x4adcbb['getRanges']())_0x5eacbe['addRange'](_0x641bb0);}else{const _0x4b7d1f=_0x4adcbb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5eacbe,this['_model']['createRange'](_0x5eacbe['getFirstRange']()['start'],_0x4b7d1f));}_0x4adcbb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x37ef85,_0x51c03c,_0x58b1a2){const _0x26b146=_0x37ef85['startsWith']('format')||_0x37ef85['startsWith']('attribute')?'FORMATTING':_0x37ef85['toUpperCase']();return o(this['editor']['locale'],_0x51c03c+'_'+_0x26b146+'_SUGGESTION_ANNOUNCEMENT',_0x58b1a2);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a26d9=this['editor'];if(!_0x4a26d9['ui'])return;const {ariaLiveAnnouncer:_0x118482}=_0x4a26d9['ui'];_0x558df4(this['_model'],({left:_0x17b9b2,entered:_0x44dba4})=>{for(const _0x50edd9 of _0x17b9b2){const {group:_0x54cd17,type:_0x5c7cce}=this['_splitMarkerName'](_0x50edd9['name']);if('suggestion'===_0x54cd17){_0x118482['announce'](this['_getMarkerAnnouncementText'](_0x5c7cce,'LEAVE'));break;}}for(const _0x42ee72 of _0x44dba4){const {group:_0x4ca3a3,type:_0x22b2a4}=this['_splitMarkerName'](_0x42ee72['name']);if('suggestion'===_0x4ca3a3){_0x118482['announce'](this['_getMarkerAnnouncementText'](_0x22b2a4,'ENTER',_0x449dc8(_0x2e4105)));break;}}});}['_processAttributeChanges'](_0x1d36c2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f6e59=this['editor'],_0x18ea86=_0x2f6e59['model']['document']['differ']['getChanges']();if(0x0==_0x18ea86['length'])return!0x1;const _0x3c1774=[],_0x16af3d=_0x18ea86['filter'](_0x548b83=>'attribute'==_0x548b83['type']),_0x92d5a6=_0x18ea86['filter'](_0x807317=>'insert'==_0x807317['type']&&'$text'!=_0x807317['name']),_0x54dca1=_0x18ea86['filter'](_0x512c30=>'remove'==_0x512c30['type']&&'$text'!=_0x512c30['name']);for(const _0x2f9b1e of _0x16af3d)_0x3c1774['push']({'key':_0x2f9b1e['attributeKey'],'newValue':_0x2f9b1e['attributeNewValue'],'oldValue':_0x2f9b1e['attributeOldValue'],'range':Pt(_0x2f9b1e['range'],_0x2f6e59['model'])});for(const _0x5a12f7 of _0x92d5a6){const _0x36c68c=_0x54dca1['find'](_0x65dbb6=>_0x65dbb6['position']['isEqual'](_0x5a12f7['position']));_0x36c68c&&_0x3c1774['push']({'key':m,'newValue':_0x5a12f7['name'],'oldValue':_0x36c68c['name'],'range':_0x2f6e59['model']['createRangeOn'](_0x5a12f7['position']['nodeAfter'])});}return 0x0!=_0x3c1774['length']&&this['_reduceExistingSuggestions'](_0x1d36c2,_0x3c1774);}['_processAttributeSuggestions'](_0x1b9c68){let _0x430bf4=!0x1;const _0x14b1bc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1059ef=>_0x1059ef['data']['newRange']&&_0x1059ef['name']['startsWith']('suggestion:attribute:'));for(const _0x4ff7f9 of _0x14b1bc){const {subType:_0x59f02e,id:_0x5355ef}=this['_splitMarkerName'](_0x4ff7f9['name']),_0x1f1955=_0x59f02e['split']('|')[0x0];for(const _0x5e0ad8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e0ad8['id']!=_0x5355ef&&'attribute'==_0x5e0ad8['type']&&_0x5e0ad8['data']&&_0x5e0ad8['data']['key']==_0x1f1955&&_0x5e0ad8['getFirstRange']()['isIntersecting'](_0x4ff7f9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e0ad8,_0x4ff7f9['data']['newRange'],_0x1b9c68),_0x430bf4=!0x0);}return _0x430bf4;}['_recordAttributeChanges'](_0x5864e8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5864e8();}['_isRegisteredAttribute'](_0x54f340){const _0x527c85=this['_isBlockAttribute'](_0x54f340),_0x355f38=this['_inlineAttributeKeys']['has'](_0x54f340);return _0x527c85||_0x355f38;}['_reduceExistingSuggestions'](_0x5b5e1b,_0x36c727){if(0x0==_0x36c727['length'])return!0x1;let _0x2d4bfd=!0x1;for(const _0x5cab12 of _0x36c727){const _0x2623ca=this['_findSuggestions'](_0x5cab12['range'],'attribute')['filter'](_0x4e0861=>!_0x4e0861['meta']['isNextTo'])['map'](_0x485073=>_0x485073['suggestion']),_0x4dcd09=_0x537a9e({'newValue':_0x5cab12['newValue']});_0x2623ca['filter'](_0x3e54bf=>{const [_0x105118,_0x48d6af]=_0x3e54bf['subType']['split']('|');return _0x105118==_0x5cab12['key']&&_0x48d6af!=_0x4dcd09;})['forEach'](_0x2e34a3=>{this['_reduceSuggestionAttributeRange'](_0x2e34a3,_0x5cab12['range'],_0x5b5e1b),_0x2d4bfd=!0x0;});}return _0x2d4bfd;}['_reduceSuggestionAttributeRange'](_0x2d62fb,_0x31ff4f,_0xa61b30){const _0x1b8ad5=_0x2d62fb['getFirstRange']()['getDifference'](_0x31ff4f);0x0!==_0x1b8ad5['length']?0x1!==_0x1b8ad5['length']?this['_breakSuggestionMarker'](_0x2d62fb,_0x31ff4f['start'],_0x31ff4f['end']):this['_setSuggestionRange'](_0x2d62fb,_0x1b8ad5[0x0]):_0xa61b30['removeMarker'](_0x2d62fb['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2e1664){this['_editor']=_0x2e1664,this['_model']=_0x2e1664['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xca77cd,_0x21f792,_0x1bc516,_0x3f45eb,_0x35f598,_0xb3dc62){return new u(this['_model'],{'type':_0xca77cd,'subType':_0x21f792,'id':_0x1bc516,'author':_0x3f45eb,'creator':_0x3f45eb,'attributes':_0x35f598,'onAttributesChange':_0xb3dc62,'onAccept':(..._0x42c2ae)=>this['getSuggestionCallback'](_0xca77cd,_0x21f792,'accept')(..._0x42c2ae),'onDiscard':(..._0x16457a)=>this['getSuggestionCallback'](_0xca77cd,_0x21f792,'discard')(..._0x16457a)});}['registerCustomCallback'](_0x5ac1c2,_0x19bd0d,_0x2161e0,_0x3bdb89){const _0x342881=_0x5ac1c2+':'+_0x19bd0d+':'+_0x2161e0;this['_customCallbacks']['set'](_0x342881,_0x3bdb89);}['getSuggestionCallback'](_0x4897b0,_0x412f14,_0x2bc102){const _0x41883d=_0x4897b0+':'+_0x412f14+':'+_0x2bc102;return this['_customCallbacks']['get'](_0x41883d)||this['_defaultCallbacks']['get'](_0x4897b0+':'+_0x2bc102);}['_registerDefaultCallbacks'](){const _0x646c0c=()=>!0x1,_0x584ee5=_0x5a43bd=>{_0x5a43bd['sort']((_0x4bf921,_0x1b5029)=>_0x4bf921['start']['isBefore'](_0x1b5029['start'])?0x1:-0x1),this['_model']['change'](_0x1f3637=>{for(const _0x2853bc of _0x5a43bd){let _0x1dbecb;_0x1dbecb=_0x2853bc['end']['isAtEnd']&&_0x2853bc['end']['parent']==_0x2853bc['start']['nodeAfter']?_0x1f3637['createSelection'](_0x2853bc['start']['nodeAfter'],'on'):_0x1f3637['createSelection'](_0x2853bc),this['_model']['deleteContent'](_0x1dbecb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x14fe76=(_0x40ce94,_0x1de2cc)=>{_0x1de2cc&&this['_model']['change'](_0x429297=>{const {commandName:_0x28f6f9,commandParams:_0x1c713b=[]}=_0x1de2cc,_0x10ade4=_0x40ce94['map'](_0x599aa0=>(Vt(_0x599aa0)&&(_0x599aa0=this['_model']['createRange'](_0x599aa0['end'])),_0x599aa0))['filter'](_0x1253ab=>'$graveyard'!==_0x1253ab['root']['rootName']);if(_0x10ade4['length']<0x1)return;const _0xcd2531=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe59272=>_0x3f290a['fromRange'](_0xe59272));_0x429297['setSelection'](_0x10ade4);for(const _0xd072b5 of this['_editor']['commands']['commands']())_0xd072b5['refresh']();_0x1c713b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28f6f9,..._0x1c713b);const _0x452684=_0xcd2531['filter'](_0x155678=>'$graveyard'!=_0x155678['root']['rootName']);_0x452684['length']>0x0&&_0x429297['setSelection'](_0x452684);for(const _0x217f3c of _0xcd2531)_0x217f3c['detach']();});},_0x4e0244=(_0x50fb93,_0x116e08)=>0x1==_0x50fb93['length']&&0x1==_0x116e08['length']&&_0x50fb93[0x0]['end']['isEqual'](_0x116e08[0x0]['start']),_0x3dc6ef=(_0x24d2a7,_0x44ce1c,_0x2dab81,_0x1f7c71)=>Ht(_0x24d2a7,_0x44ce1c,_0x2dab81,_0x1f7c71,this['_model'])?[_0x24d2a7,_0x44ce1c]:Ht(_0x44ce1c,_0x24d2a7,_0x1f7c71,_0x2dab81,this['_model'])?[_0x44ce1c,_0x24d2a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x646c0c),this['_defaultCallbacks']['set']('insertion:discard',_0x584ee5),this['_defaultCallbacks']['set']('insertion:join',_0x4e0244),this['_defaultCallbacks']['set']('insertion:chain',_0x3dc6ef),this['_defaultCallbacks']['set']('deletion:accept',_0x584ee5),this['_defaultCallbacks']['set']('deletion:discard',_0x646c0c),this['_defaultCallbacks']['set']('deletion:join',_0x4e0244),this['_defaultCallbacks']['set']('deletion:chain',_0x3dc6ef),this['_defaultCallbacks']['set']('formatInline:accept',_0x14fe76),this['_defaultCallbacks']['set']('formatInline:discard',_0x646c0c),this['_defaultCallbacks']['set']('formatInline:join',_0x4e0244),this['_defaultCallbacks']['set']('formatInline:chain',_0x646c0c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x14fe76),this['_defaultCallbacks']['set']('formatBlock:discard',_0x646c0c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e0244),this['_defaultCallbacks']['set']('formatBlock:chain',_0x646c0c),this['_defaultCallbacks']['set']('attribute:accept',_0x646c0c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5b1da8,_0x1f09d5)=>{if(!_0x1f09d5)return;const _0x423197=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18c303=>{if(_0x1f09d5['key']==m)for(const _0x5ed4cc of _0x5b1da8){const _0x2e8753=_0x5ed4cc['start']['nodeAfter'],_0x7fdc5f=_0x1f09d5['oldValue'];_0x18c303['rename'](_0x2e8753,_0x7fdc5f);}else{if(_0x423197['_isBlockAttribute'](_0x1f09d5['key'])){for(const _0xb7829e of _0x5b1da8)void 0x0!==_0x1f09d5['oldValue']?_0x18c303['setAttribute'](_0x1f09d5['key'],_0x1f09d5['oldValue'],_0xb7829e['start']['nodeAfter']):_0x18c303['removeAttribute'](_0x1f09d5['key'],_0xb7829e['start']['nodeAfter']);}else{for(const _0x41dbbd of _0x5b1da8)_0x1f09d5['oldValue']?_0x18c303['setAttribute'](_0x1f09d5['key'],_0x1f09d5['oldValue'],_0x41dbbd):_0x18c303['removeAttribute'](_0x1f09d5['key'],_0x41dbbd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e0244);}}function Ot(_0xb7b5a5,_0x48c1b8,_0x12d19a){for(const _0x36ccec of _0x48c1b8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x36ccec['root']==_0x36ccec)return!0x1;if(!_0x12d19a['containsItem'](_0x36ccec))return!0x1;if(_0xb7b5a5['isObject'](_0x36ccec)||_0xb7b5a5['isLimit'](_0x36ccec))return!0x0;}return!0x1;}function Vt(_0x17c0b5){return _0x17c0b5['end']['parent']==_0x17c0b5['start']['nodeAfter']&&_0x17c0b5['end']['isAtStart'];}function Ut(_0x4d0d24,_0x584c7a,_0x269d9e,_0x593cd2){const _0x2ebe25=_0x3327ad=>!_0x3327ad['item']['is']('$textProxy')&&!_0x593cd2['isObject'](_0x3327ad['item']),_0x17d7ee=_0x4d0d24['start']['getLastMatchingPosition'](_0x2ebe25),_0x4762b4=_0x4d0d24['end']['getLastMatchingPosition'](_0x2ebe25,{'direction':'backward'});return(!_0x4d0d24['start']['isEqual'](_0x17d7ee)||!_0x4d0d24['end']['isEqual'](_0x4762b4))&&(_0x17d7ee['isBefore'](_0x4762b4)?_0x269d9e['updateMarker'](_0x584c7a,{'range':_0x269d9e['createRange'](_0x17d7ee,_0x4762b4)}):_0x269d9e['removeMarker'](_0x584c7a),!0x0);}function Gt(_0x3d437f){return _0x537a9e(_0x3d437f);}function Ft(_0x5e42bd){const _0xd9bc96=_0x5e42bd['start']['nodeAfter'];return _0xd9bc96&&_0xd9bc96['is']('element');}function Pt(_0x247d1c,_0xf28f3c){return null==_0x247d1c['end']['nodeBefore']&&_0x247d1c['end']['parent']==_0x247d1c['start']['nodeAfter']?Lt(_0x247d1c['start']['nodeAfter'],_0xf28f3c):_0x247d1c;}function Lt(_0x7a84a,_0xea781a){const _0x146e90=_0xea781a['schema']['isObject'](_0x7a84a)||_0xea781a['schema']['isSelectable'](_0x7a84a);return _0xea781a['createRange'](_0xea781a['createPositionAt'](_0x7a84a,'before'),_0x146e90?_0xea781a['createPositionAfter'](_0x7a84a):_0xea781a['createPositionAt'](_0x7a84a,'end'));}function Ht(_0x326d59,_0x22e0e1,_0x333153,_0x1eb778,_0x31726c){if(_0x326d59['next'])return!0x1;if(!Jt(_0x326d59,_0x22e0e1))return!0x1;if(_0x333153['end']['isEqual'](_0x1eb778['start']))return!0x0;if(_0x326d59['type']!=_0x22e0e1['type'])return!0x1;if(!_0x333153['end']['isTouching'](_0x1eb778['start']))return!0x1;const _0x45110b=_0x31726c['createRange'](_0x333153['end'],_0x1eb778['start'])['getWalker']();for(const _0x1a9853 of _0x45110b)if(['elementStart','elementEnd']['includes'](_0x1a9853['type'])&&_0x31726c['schema']['isLimit'](_0x1a9853['item']))return!0x1;return!0x0;}function Jt(_0x36a8e0,_0x5b993e){if(!_0x36a8e0['_isDataLoaded']||!_0x5b993e['_isDataLoaded'])return!0x1;const _0x1f3b2d=new Set(Object['keys'](_0x36a8e0['attributes'])),_0x5ca43b=new Set(Object['keys'](_0x5b993e['attributes']));if(_0x1f3b2d['delete']('groupId'),_0x5ca43b['delete']('groupId'),0x0==_0x1f3b2d['size']&&0x0==_0x5ca43b['size'])return!0x0;if(_0x1f3b2d['size']!=_0x5ca43b['size'])return!0x1;const _0x3dacb7={..._0x36a8e0['attributes']},_0x311978={..._0x5b993e['attributes']};return delete _0x3dacb7['groupId'],delete _0x311978['groupId'],JSON['stringify'](_0x3dacb7)==JSON['stringify'](_0x311978);}function qt(_0x39df45,_0x365819){const _0x1c39b9=zt(_0x39df45['attributes']),_0x3550fc=zt(_0x365819);if(!_0x39df45['_isDataLoaded'])return!0x1;for(const _0x19940b of Object['keys'](_0x3550fc))if(!_0x26e437(_0x1c39b9[_0x19940b],_0x3550fc[_0x19940b]))return!0x1;return!0x0;}function zt(_0x296f46){const _0x254ddd=Object['assign']({},_0x296f46);return delete _0x254ddd['skipNestingCheck'],delete _0x254ddd['tablePasteChainId'],_0x254ddd;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x323fd6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x174800,_0x26eb2d,_0x595691,_0x4c78fc){super(),this['model']=_0x26eb2d,this['view']=_0x595691,this['commentThreadController']=_0x4c78fc,this['_editor']=_0x174800,this['_acceptCommand']=_0x174800['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x174800['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f163c,_0x3c5d83)=>_0x4f163c||_0x3c5d83),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x254b5a=>_0x254b5a&&this['_editor']['model']['canEditAt'](_0x26eb2d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf345d7=>_0xf345d7&&this['_editor']['model']['canEditAt'](_0x26eb2d['getRanges']())),this['_pendingAction']=null,_0x595691['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x595691,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x595691,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x595691,'change:isDirty',()=>{_0x595691['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 _0x4f5a87=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f5a87);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x10b06b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1d87c8,_0xa97cd3,_0x103568,_0x4fe591){super(_0x1d87c8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4ea59b(_0x1d87c8,o(_0x1d87c8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xa97cd3['authoredAt']),this['bind']('authoredAt')['to'](_0xa97cd3),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',_0xa97cd3,'authoredAt',this,'descriptionParts',(_0x1e6ac4,_0x58b92e,_0xfe4eea)=>{const _0x5d9f9c=_0xfe4eea['map'](_0x5a0bae=>ls(_0x5a0bae['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1e6ac4-0x1,_0xa97cd3['author']['name'],_0x58b92e?_0x4fe591['formatDateTime'](_0x58b92e):'',new DOMParser()['parseFromString'](_0x5d9f9c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5de40f(),this['focusTracker']=new _0x65d541(),this['keystrokes']=new _0x22b655(),this['focusCycler']=new _0x4c9edd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x51fcd2=>_0x51fcd2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xa97cd3,this['_localUser']=_0x103568,this['_config']=_0x4fe591,_0x4fe591['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x163a13(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a0788}=this['_config'];this['commentsListView']=new _0x5a0788(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',_0x2d9c26=>_0x2d9c26+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x144ec5,_0x17c1ef)=>_0x144ec5||!!_0x17c1ef);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x344873}=this['_config'],_0x2d0b02=new _0x344873(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25b922=_0x2d0b02['commentInputView'];return _0x2d0b02['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25b922,'value',(_0x596121,_0x315c57,_0x5902c7)=>!!_0x5902c7||_0x596121&&!_0x315c57),_0x25b922['on']('submit',(_0x37a58e,_0xcb620)=>{this['fire']('addComment',_0xcb620),_0x25b922['editor']['setData']('');}),_0x25b922['on']('cancel',()=>this['focus']()),_0x25b922['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2d0b02;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x611a8a,_0x1a7dee,_0x28db0b,_0xcd4018){super(_0x611a8a,_0x1a7dee,_0x28db0b,_0xcd4018),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1488ab=>_0x1488ab&&_0x1488ab[0x0]?_0x1488ab[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1d1cc2,_0x166f85)=>{let _0x21f6e6='';for(const _0x112b9e of _0x1d1cc2)_0x21f6e6+='<p>'+ls(_0x112b9e['content'],_0x112b9e['color'])+'</p>';return _0x166f85?_0x21f6e6:_0x21b5a2(_0x21f6e6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xcd4018['SuggestionView'](_0x611a8a,_0x1a7dee,{'formatDateTime':_0xcd4018['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 _0x349385=this['bindTemplate'],_0x44f2a5=[this['suggestionView']];return this['commentsListView']&&_0x44f2a5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44f2a5['push'](this['commentThreadInputView']),_0x44f2a5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x349385['if']('isActive','ck-suggestion-wrapper--active'),_0x349385['to']('type',_0x2e084c=>'ck-suggestion-'+_0x2e084c),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':_0x349385['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44f2a5};}['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 _0x10b06b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xe02cc6,_0x4d5a08,_0x22714b){super(_0xe02cc6),this['_model']=_0x4d5a08,this['_config']=_0x22714b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4d5a08),this['acceptButton']=this['_createButton'](o(_0xe02cc6,'Accept\x20suggestion'),_0x11067a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xe02cc6,'Discard\x20suggestion'),_0x11067a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2a3f3d(_0xe02cc6,_0x4d5a08['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5de40f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x65d541(),this['keystrokes']=new _0x22b655(),this['focusCycler']=new _0x4c9edd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x313b17=>_0x313b17['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe55683=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe55683['innerHTML']=this['description'],this['on']('change:description',(_0x36c95c,_0x2aaee1,_0x1c64e9)=>{_0xe55683['innerHTML']=_0x1c64e9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b2647=this['bindTemplate'],_0x3edd1f=[{'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':_0x2b2647['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b2647['to']('authoredAt',_0x4c9676=>this['_config']['formatDateTime'](_0x4c9676))}]}]},{'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']&&_0x3edd1f['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':_0x3edd1f}]};}['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'](_0xbc75ba,_0x45f63a,_0x278398,_0x310cfc,_0x173fc3){const _0x351c9d=new _0x35cf5b(this['locale']);return _0x351c9d['set']({'label':_0xbc75ba,'icon':_0x45f63a,'tooltip':!0x0,'tooltipPosition':_0x173fc3}),_0x351c9d['extendTemplate']({'attributes':{'class':_0x278398}}),_0x351c9d['on']('execute',()=>{this['fire'](_0x310cfc,this['_model']['id']);}),_0x351c9d;}['_setupKeyboardNavigation'](){const _0x1479be=this['element'];this['keystrokes']['listenTo'](_0x1479be);for(const _0x575f46 of this['focusables'])this['focusTracker']['add'](_0x575f46['element']),this['keystrokes']['listenTo'](_0x575f46['element']);this['keystrokes']['set']('enter',(_0x5398f7,_0x263362)=>{_0x1479be===_0x5398f7['target']&&(this['focusCycler']['focusFirst'](),_0x263362());}),this['keystrokes']['set']('esc',(_0xbe1c92,_0x42ccf1)=>{_0x1479be!==_0xbe1c92['target']&&(this['focus'](),_0x42ccf1());});}}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 _0x36b02c{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2f928a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4577fb){super(_0x4577fb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5986e4=this['editor']['config'];_0x5986e4['define']('trackChanges.SuggestionThreadView',re),_0x5986e4['define']('trackChanges.SuggestionView',ce),_0x5986e4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5986e4['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x11b8cf,_0xb719a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c009d,_0x494c76]of this['_handleControllerBuffer']){const _0x2ef0e5=this['_suggestionToController']['has'](_0x2c009d);_0x2ef0e5||_0x494c76?_0x2ef0e5&&_0x494c76&&this['_destroyController'](_0x2c009d):this['_initializeController'](_0x2c009d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x11b8cf,_0xb719a);}['init'](){const _0x3df1c6=this['editor'],_0x549a84=_0x3df1c6['plugins']['get']('TrackChangesEditing'),_0x8b5797=_0x3df1c6['plugins']['get']('Annotations'),_0x17585c=_0x3df1c6['plugins']['get']('EditorAnnotations'),_0xd4e2ac=_0x3df1c6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17585c['addSourceCollector'](()=>{const _0x149f1b=[];for(const [_0x5575a5,_0x50e728]of Array['from'](this['_suggestionToController'])){const _0x392946=_0x5575a5['getAllAdjacentSuggestions'](),_0x4912d2=[];for(const _0x1896a7 of _0x392946){if(!_0x1896a7['isInContent'])continue;if(_0x1896a7['isMultiRange']){_0x4912d2['push'](..._0x1896a7['getRanges']());continue;}const _0x1f0eaa=_0x1896a7['getFirstRange']();if(_0x4912d2['length']>0x0){const _0x360646=_0x4912d2[0x0]['getJoined'](_0x1f0eaa);if(_0x360646){_0x4912d2[0x0]=_0x360646;continue;}}_0x4912d2['push'](_0x1f0eaa);}_0x149f1b['push']([_0x50e728['view'],_0x4912d2]);}return _0x149f1b;}),this['listenTo'](_0x549a84,'suggestionLoaded',(_0x48cacf,_0x2b9a94)=>{this['listenTo'](_0x2b9a94,'change:previous',(_0x506ee4,_0x173ad9,_0x15f6d1,_0x3e694b)=>{_0x2b9a94['isInContent']&&(null==_0x15f6d1?(this['_updateController'](_0x3e694b['head']),this['_handleSuggestionControllerDelayed'](_0x2b9a94,!0x1)):(this['_updateController'](_0x15f6d1['head']),null==_0x3e694b&&this['_handleSuggestionControllerDelayed'](_0x2b9a94,!0x0)));}),null!==_0x2b9a94['previous']?this['_updateController'](_0x2b9a94['head']):this['_handleSuggestionControllerDelayed'](_0x2b9a94,!0x1);}),this['listenTo'](_0x549a84,'suggestionUnloaded',(_0x70d391,_0xb39ea8,_0x29bd21)=>{this['stopListening'](_0xb39ea8,'change:previous'),this['_handleControllerBuffer']['delete'](_0xb39ea8),this['_suggestionToController']['has'](_0xb39ea8)&&this['_destroyController'](_0xb39ea8),_0x29bd21&&this['_updateController'](_0x29bd21['head']);}),this['listenTo'](_0x549a84,'suggestionChanged',(_0x3fb3ad,_0x3c9d9e)=>{this['_updateController'](_0x3c9d9e);}),this['listenTo'](_0x8b5797,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xd4e2ac,'addComment',(_0x48cba1,{threadId:_0x16c277,isFromAdapter:_0x2216d6})=>{if(_0x2216d6||!_0x549a84['hasSuggestion'](_0x16c277))return;const _0x2ebce9=_0x549a84['getSuggestion'](_0x16c277);this['_suggestionToController']['get'](_0x2ebce9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x13a867=this['editor']['plugins']['get']('Annotations'),_0x50aa05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f608=Array['from'](_0x13a867['activeAnnotations'],_0x5c0915=>_0x5c0915['innerView'])['filter'](_0x28c2f2=>this['_viewToController']['has'](_0x28c2f2)),_0x54643c=[];for(const _0x27ae68 of _0x41f608){const _0x468461=this['_viewToController']['get'](_0x27ae68)['model']['getAllAdjacentSuggestions']();_0x54643c['push'](..._0x468461['reduce']((_0x3674a4,_0x2a5214)=>[..._0x3674a4,..._0x2a5214['getMarkerNames']()],[]));}_0x50aa05['activeMarkers']=_0x54643c;}['_addUIComponentsToFactory'](){const _0x2e757f=this['editor'],_0x1bfcd8=_0x2e757f['locale'],_0x584e5d=o(_0x1bfcd8,'Track\x20changes'),_0x4d504d=new Wt([{'type':'switchbutton','model':new _0x5b488c({'withText':!0x0,'isToggleable':!0x0,'label':_0x584e5d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b488c({'withText':!0x0,'label':o(_0x1bfcd8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b488c({'withText':!0x0,'label':o(_0x1bfcd8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b488c({'withText':!0x0,'label':o(_0x1bfcd8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b488c({'withText':!0x0,'label':o(_0x1bfcd8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3f4fbc of _0x4d504d)if(me(_0x3f4fbc)){const _0x14fd28=_0x2e757f['commands']['get'](_0x3f4fbc['model']['commandName']);_0x3f4fbc['model']['bind']('isOn','isEnabled')['to'](_0x14fd28,'value','isEnabled');}_0x2e757f['ui']['componentFactory']['add']('trackChanges',_0x2ca479=>this['_createToolbarButton'](_0x2ca479,_0x4d504d,_0x584e5d)),_0x2e757f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4142c5=>this['_createMenuBarMenu'](_0x4142c5,_0x4d504d,_0x584e5d));}['_createToolbarButton'](_0x26c8bd,_0x1d2236,_0x544d22){const _0x12e9a8=Qt(_0x26c8bd,_0x3d0345),_0x1e72d9=this['editor']['commands']['get']('trackChanges');_0x12e9a8['buttonView']['set']({'tooltip':_0x544d22,'label':_0x544d22,'icon':he}),_0x12e9a8['buttonView']['bind']('isOn')['to'](_0x1e72d9,'value'),_0x12e9a8['buttonView']['on']('execute',()=>{_0x1e72d9['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x12e9a8,_0x1d2236,{'role':'menu'});const _0x3b1a72=[];for(const _0x41e82a of _0x1d2236)me(_0x41e82a)&&_0x3b1a72['push'](this['editor']['commands']['get'](_0x41e82a['model']['commandName']));const _0x4f6c55=_0x12e9a8['buttonView'];return _0x4f6c55['actionView']['unbind']('isEnabled'),_0x4f6c55['arrowView']['unbind']('isEnabled'),_0x4f6c55['actionView']['bind']('isEnabled')['to'](_0x1e72d9,'isEnabled'),_0x4f6c55['arrowView']['bind']('isEnabled')['toMany'](_0x3b1a72,'isEnabled',(..._0x3633bf)=>_0x3633bf['some'](_0x594b52=>_0x594b52)),_0x12e9a8['on']('execute',_0x21e5b8=>{this['editor']['execute'](_0x21e5b8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12e9a8;}['_createMenuBarMenu'](_0x1944f0,_0x8b7889,_0x4a2c5f){const _0x4f9c1f=new Yt(_0x1944f0),_0xfb87f1=this['editor']['commands']['get']('trackChanges');_0x4f9c1f['buttonView']['set']({'label':_0x4a2c5f,'icon':he});const _0x1f7a85=new Zt(_0x1944f0);for(const _0x257a3d of _0x8b7889){if('separator'==_0x257a3d['type']){_0x1f7a85['items']['add'](new Xt(_0x1944f0));continue;}const _0x22cac1=new te(_0x1944f0,_0x4f9c1f),_0x237ce9=new _0x477a57(_0x1944f0),_0x78afd1=_0x257a3d['model'];_0x237ce9['bind'](...Object['keys'](_0x78afd1))['to'](_0x78afd1),_0x237ce9['delegate']('execute')['to'](_0x4f9c1f),_0x237ce9['on']('execute',()=>{this['editor']['execute'](_0x78afd1['commandName']),this['editor']['editing']['view']['focus']();}),_0x22cac1['children']['add'](_0x237ce9),_0x1f7a85['items']['add'](_0x22cac1);}return _0x4f9c1f['bind']('isEnabled')['to'](_0xfb87f1,'isEnabled'),_0x4f9c1f['panelView']['children']['add'](_0x1f7a85),_0x4f9c1f;}['_initializeController'](_0x1c8d3d){const _0x5315f4=this['editor'],_0x25cf48=_0x5315f4['config'],_0x306ddf=_0x5315f4['plugins']['get']('Annotations'),_0x40db6f=_0x5315f4['plugins']['get']('CommentsRepository'),_0x5e25d6=_0x5315f4['plugins']['get']('EditorAnnotations'),_0x44cbe3=_0x5315f4['plugins']['get'](_0x2f928a)['me'],_0x40dbb5=_0x25cf48['get']('trackChanges')['SuggestionThreadView'],_0x5c7e6f=_0x25cf48['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe0ea00,CommentThreadInputView:_0x172c2d}=_0x5315f4['plugins']['get']('CommentsUI');let _0x303539,_0x217271;this['_annotationViews']['has'](_0x1c8d3d['id'])?(_0x217271=this['_annotationViews']['get'](_0x1c8d3d['id']),_0x303539=_0x217271['mainView']):(_0x303539=new _0x40dbb5(_0x5315f4['locale'],_0x1c8d3d,_0x44cbe3,{'disableComments':this['_disableComments'],'editorConfig':_0x25cf48['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x25cf48['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25cf48['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25cf48['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x417b6f(_0x25cf48['get']('locale')),'CommentView':_0x25cf48['get']('comments')['CommentView'],'CommentsListView':_0xe0ea00,'CommentThreadInputView':_0x172c2d,'SuggestionView':_0x5c7e6f}),_0x303539['suggestionView']['acceptButton']['on']('execute',()=>{_0x5315f4['editing']['view']['focus']();}),_0x303539['suggestionView']['discardButton']['on']('execute',()=>{_0x5315f4['editing']['view']['focus']();}),_0x217271=_0x306ddf['createAnnotationView'](this['editor']['locale'],_0x303539),_0x217271['bind']('isDirty')['to'](_0x303539,'isDirty'),_0x217271['bind']('length')['to'](_0x303539),_0x217271['bind']('type')['to'](_0x303539,'type',_0x143048=>'suggestion-'+_0x143048),this['listenTo'](_0x303539,'escape',()=>{_0x5315f4['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x1c8d3d['id'],_0x217271));const _0x14198b=_0x40db6f['createCommentThreadController'](_0x1c8d3d['commentThread'],_0x303539),_0x46cda0=new ae(_0x5315f4,_0x1c8d3d,_0x303539,_0x14198b),_0x50e969=_0x1c8d3d['getAllAdjacentSuggestions']()['filter'](_0x4ec3fa=>_0x4ec3fa['isInContent']);_0x303539['descriptionParts']=_0x5315f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x50e969),this['_suggestionToController']['set'](_0x1c8d3d,_0x46cda0),this['_viewToController']['set'](_0x303539,_0x46cda0);const _0x42434a=_0x306ddf['createAnnotation']({'view':_0x217271,'target':()=>{const _0xd51b51=[],_0x1dbf97=_0x1c8d3d['getAllAdjacentSuggestions']()['filter'](_0xa1d90e=>_0xa1d90e['isInContent']);for(const _0x302c94 of _0x1dbf97)_0xd51b51['push'](..._0x302c94['getMarkers']());return _0x5e456c(_0x5315f4['editing'],_0xd51b51);},'type':()=>'suggestion-'+_0x46cda0['view']['type']});_0x40db6f['_bindAnnotationToEditors'](_0x303539,_0x42434a),_0x306ddf['add'](_0x42434a),_0x5e25d6['registerAnnotation'](_0x42434a);}['_destroyController'](_0x5831b6){const _0x5952b4=this['editor']['plugins']['get']('CommentsRepository'),_0xa74b0b=this['editor']['plugins']['get']('Annotations'),_0x4b8fd7=this['_suggestionToController']['get'](_0x5831b6),_0x23251c=_0x4b8fd7['view'],_0x10e0e2=_0xa74b0b['getByInnerView'](_0x23251c);_0x5952b4['_unbindEditors'](_0x23251c),_0x10e0e2&&_0xa74b0b['remove'](_0x10e0e2),this['_suggestionToController']['delete'](_0x5831b6),this['_viewToController']['delete'](_0x23251c),_0x4b8fd7['destroy']();}['_updateController'](_0x5787d5){if(!_0x5787d5['isInContent']||!this['_suggestionToController']['has'](_0x5787d5))return;const _0x45cafb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eea6a=this['_suggestionToController']['get'](_0x5787d5),_0xa2282f=_0x5787d5['getAllAdjacentSuggestions']();_0x3eea6a['view']['descriptionParts']=_0x45cafb['descriptionFactory']['getDescriptions'](_0xa2282f);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x2e4105,(_0x55818a,_0x49c191)=>{const _0x2b9d6b=this['editor']['plugins']['get'](k),_0x4eb3c2=this['editor']['plugins']['get'](p);if(!_0x4eb3c2['activeMarkers']['length'])return;const {id:_0xf77509}=_0x4eb3c2['_splitMarkerName'](_0x4eb3c2['activeMarkers'][0x0]),_0x4ec943=_0x2b9d6b['getSuggestion'](_0xf77509);_0x4ec943&&(this['_suggestionToController']['get'](_0x4ec943)['view']['focus'](),_0x49c191());});}['destroy'](){for(const _0x4ce85e of this['_suggestionToController']['keys']())this['_destroyController'](_0x4ce85e);for(const _0x56c26c of this['_annotationViews']['values']())_0x56c26c['mainView']['destroy']();super['destroy']();}}function me(_0x4189cd){return'model'in _0x4189cd;}class k extends _0x36b02c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x15e1b8){this['editor']['plugins']['get'](p)['adapter']=_0x15e1b8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x40f13a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x40f13a);}['getSuggestions']({skipNotAttached:_0x4c46d2=!0x1,toJSON:_0x487360=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c46d2,'toJSON':_0x487360});}['getSuggestion'](_0xb641b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xb641b);}}const T=['Pagination'];class P extends _0x36b02c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3aa12e=this['editor'];if(_0x3aa12e['config']['define']('trackChangesData.editorCreator',_0x8612d1=>{const _0x1e117f=_0x3aa12e['model']['document']['getRootNames']()['reduce']((_0x9742fa,_0x30d6ce)=>(_0x9742fa[_0x30d6ce]='',_0x9742fa),{});return _0x3aa12e['constructor']['create'](_0x1e117f,_0x8612d1);}),'function'!=typeof _0x3aa12e['config']['get']('trackChangesData')['editorCreator'])throw new _0x22e9fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x529155){return N(this['editor'],!0x0,_0x529155);}['getDataWithDiscardedSuggestions'](_0x31e301){return N(this['editor'],!0x1,_0x31e301);}}class D extends _0x36b02c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1787c3){super(_0x1787c3),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(_0x5d8a5c){return void 0x0!==_0x5d8a5c['getRootsAttributes'];}async function N(_0x4299ce,_0x163f3c,_0x512d9c){const _0x540acd=_0x47e63b(_0x4299ce,T);_0x540acd['plugins']['push'](p,D),_0x540acd['rootsAttributes']=v(_0x4299ce)?_0x4299ce['getRootsAttributes']():void 0x0;const _0x24268c=document['createDocumentFragment'](),_0x30d88a=_0x4299ce['config']['get']('trackChangesData')['editorCreator'],_0x26c072=await _0x30d88a(_0x540acd,()=>function(_0x5c4c0d){const _0x5fb5dc=document['createElement']('div');return _0x5c4c0d['appendChild'](_0x5fb5dc),_0x5fb5dc;}(_0x24268c));!function(_0x21345d,_0x34cd38){const _0x399da9=_0x21345d['model']['document']['getRootNames']()['reduce']((_0xc33ef5,_0x3a265f)=>(_0xc33ef5[_0x3a265f]=_0x21345d['data']['get']({'rootName':_0x3a265f}),_0xc33ef5),{}),_0x3311a9=_0x21345d['plugins']['get']('Users')['users']['map'](_0x483968=>({'id':_0x483968['id'],'name':_0x483968['name']})),_0x1a81f4=_0x21345d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ccd0f=_0x21345d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56f090=_0x34cd38['plugins']['get']('Users'),_0x3b19ff=_0x34cd38['plugins']['get']('TrackChangesEditing'),_0x5d013a=_0x34cd38['plugins']['get']('CommentsRepository');for(const _0x3e636a of _0x5d013a['getCommentThreads']())_0x3e636a['remove']();for(const _0x2c767d of _0x3311a9)_0x56f090['getUser'](_0x2c767d['id'])||_0x56f090['addUser'](_0x2c767d);_0x56f090['me']||_0x56f090['useAnonymousUser']();for(const _0x5b6961 of _0x1ccd0f)_0x5d013a['addCommentThread'](_0x5b6961);for(const _0x2a7b19 of _0x1a81f4)_0x3b19ff['addSuggestionData'](_0x2a7b19);_0x34cd38['data']['set'](_0x399da9);}(_0x4299ce,_0x26c072),_0x26c072['execute'](_0x163f3c?'acceptAllSuggestions':'discardAllSuggestions');const _0x4daa68=v(_0x26c072)?_0x26c072['getFullData'](_0x512d9c):_0x26c072['data']['get'](_0x512d9c);return await _0x26c072['destroy'](),_0x4daa68;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4313d1,PendingActions as _0x3046e1,icons as _0x5f1221}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a398d,ObservableMixin as _0x4937a9,uid as _0x2008f5,insertToPriorityArray as _0x20907e,priorities as _0x11f5d5,logWarning as _0x59f81a,getEnvKeystrokeText as _0x4bc0d1,FocusTracker as _0xc133a6,KeystrokeHandler as _0x2d7954,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xa74f68,View as _0xc9a794,ViewCollection as _0x4d5dce,FocusCycler as _0x560ef0,ViewModel as _0x17849f,createDropdown as Qt,SplitButtonView as _0x5e1d21,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x28eee8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1154aa,hashObject as _0x2ada69,surroundingMarkersDetector as _0x345267,ENTER_THREAD_KEYSTROKE as _0x18328d,AriaDescriptionView as _0x53c741,setupThreadKeyboardNavigation as _0x152c40,trimHtml as _0x275f1c,UserView as _0x491ffc,LateFocusButtonView as _0x419c9e,getDateTimeFormatter as _0x2f7f13,getAllMarkersDomElementsSorted as _0x5c8c30,sanitizeEditorConfig as _0x21e4db}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3bc6ab,LiveRange as _0x41dcaa,LivePosition as _0x549864}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x30ba19,toWidget as _0x12778f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59eabf,set as _0x40d9f8,isEqual as _0x5a0a72,unset as _0x348f20,omit as Tt}from'lodash-es';import{Delete as _0x4f172c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4044b1,ShiftEnter as _0x5719ac}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2d4e72,_0x50639e){super(_0x2d4e72),this['_enabledCommands']=_0x50639e,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 _0x161aa7 of this['editor']['commands']['commands']())_0x161aa7['affectsData']&&!this['_enabledCommands']['has'](_0x161aa7)&&_0x161aa7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xaf1459 of this['editor']['commands']['commands']())_0xaf1459['affectsData']&&!this['_enabledCommands']['has'](_0xaf1459)&&_0xaf1459['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x3c05c1,_0x3411c0){super(_0x3c05c1),this['_suggestions']=_0x3411c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5a68db){const _0x70d5d4=this['_suggestions']['get'](_0x5a68db);if(!_0x70d5d4)throw new _0x1a398d('track-changes-accept-suggestion-not-found',this);const _0x319e4e=_0x70d5d4['getRanges']();this['editor']['model']['canEditAt'](_0x319e4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x70d5d4);}}class R extends ts{['_suggestions'];constructor(_0x239fbb,_0x1d8939){super(_0x239fbb),this['_suggestions']=_0x1d8939,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5323a5){const _0x403fd6=this['_suggestions']['get'](_0x5323a5);if(!_0x403fd6)throw new _0x1a398d('track-changes-discard-suggestion-not-found',this);const _0x3655a9=_0x403fd6['getRanges']();this['editor']['model']['canEditAt'](_0x3655a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x403fd6);}}function ls(_0x259d9d,_0x5266e2){let _0x7ab13a='';return _0x7ab13a+=_0x259d9d['split']('*')['map']((_0x505eb1,_0xd270cc)=>_0xd270cc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x505eb1)+'</span>':nn(_0x505eb1))['join'](''),_0x5266e2&&(_0x7ab13a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5266e2['value']+'\x22\x20title=\x22'+_0x5266e2['title']+'\x22></span>'),_0x7ab13a;}function nn(_0x3ac008){const _0x28c7dc=document['createElement']('span');return _0x28c7dc['innerText']=_0x3ac008,_0x28c7dc['innerHTML'];}function ss(_0x45cec7){return _0x45cec7['sort']((_0x587eea,_0x1ad58c)=>'deletion'==_0x587eea['type']&&'deletion'!=_0x1ad58c['type']?-0x1:'deletion'!=_0x587eea['type']&&'deletion'==_0x1ad58c['type']?0x1:0x0);}function to(_0x4653a7,_0x47de4f){let _0x2328e6,_0x5e06e4=0x0;const _0x10c314=[],_0x5527b5=_0x47de4f['schema'];for(;_0x5e06e4<_0x4653a7['length'];){const _0x2136a2=_0x4653a7[_0x5e06e4],_0x27c5de=_0x4653a7[_0x5e06e4+0x1];_0x2328e6||(_0x2328e6=_0x47de4f['createPositionBefore'](_0x2136a2)),on(_0x47de4f,_0x2136a2,_0x27c5de)||(_0x10c314['push'](_0x47de4f['createRange'](_0x2328e6,_0x5527b5['isObject'](_0x2136a2)?_0x47de4f['createPositionAfter'](_0x2136a2):_0x47de4f['createPositionAt'](_0x2136a2,'end'))),_0x2328e6=null),_0x5e06e4++;}return _0x10c314;}function on(_0x153ba6,_0x2ecfe4,_0x40d937){if(!_0x40d937)return!0x1;const _0x3aed21=_0x153ba6['createPositionAfter'](_0x2ecfe4),_0x18b081=_0x153ba6['createPositionBefore'](_0x40d937);return _0x3aed21['isTouching'](_0x18b081);}function rs(_0x380634,_0x5c6f89,_0x5c6412){for(;_0x5c6412['length'];){const _0x2312ec=_0x5c6412['splice'](0x0,0x64);_0x380634['change'](()=>{for(const _0x4d793a of _0x2312ec)_0x4d793a['isInContent']&&_0x5c6f89['execute'](_0x4d793a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3a9258,_0x47cfde,_0x268fbb){super(_0x3a9258),this['_command']=_0x47cfde,this['_suggestions']=_0x268fbb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x25a793=Array['from'](this['_suggestions']['values']())['some'](_0x180c7f=>_0x180c7f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x25a793;}['execute'](){const _0x398c40=ss(Array['from'](this['_suggestions']['values']()));for(const _0xc0188f of _0x398c40){const _0x15ddd7=_0xc0188f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x15ddd7))return;}rs(this['editor']['model'],this['_command'],_0x398c40);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x13f22d,_0x530d59,_0x5cb5c8){super(_0x13f22d),this['_command']=_0x530d59,this['_suggestions']=_0x5cb5c8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x558fe3=this['editor']['model']['document']['selection'],_0x224088=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x17971b,_0x19701e){const _0x49b0a3=Array['from'](_0x17971b['getRanges']()),_0x15eb2c=new Set();for(const _0x39737c of _0x19701e)if(_0x39737c['isInContent']){for(const _0x47c205 of _0x49b0a3)for(const _0xace6b6 of _0x39737c['getRanges']())(_0x47c205['isIntersecting'](_0xace6b6)||_0x17971b['isCollapsed']&&!_0x39737c['isMultiRange']&&_0x39737c['next']&&_0xace6b6['end']['isTouching'](_0x47c205['start']))&&_0x15eb2c['add'](_0x39737c);}return _0x15eb2c;}(_0x558fe3,_0x224088),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26864c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x57ae2d of _0x26864c){const _0x4c3f8f=_0x57ae2d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c3f8f))return;}rs(this['editor']['model'],this['_command'],_0x26864c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4937a9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xd17f8c,_0x47d63b){super(),this['id']=_0x47d63b['id'],this['type']=_0x47d63b['type'],this['subType']=_0x47d63b['subType']||null,this['author']=_0x47d63b['author'],this['creator']=_0x47d63b['creator']||_0x47d63b['author'],this['isExternal']=Boolean(_0x47d63b['attributes']&&_0x47d63b['attributes']['@external']),this['data']=null,this['_model']=_0xd17f8c,this['_onAccept']=_0x47d63b['onAccept'],this['_onDiscard']=_0x47d63b['onDiscard'],this['_onAttributesChange']=_0x47d63b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47d63b['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 _0xacfc8e=this;for(;_0xacfc8e['previous'];)_0xacfc8e=_0xacfc8e['previous'];return _0xacfc8e;}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'](_0xde10e){this['_markerNames']['add'](_0xde10e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4c607a=>this['_model']['markers']['get'](_0x4c607a))['filter'](_0x5127dc=>_0x5127dc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x438cdd=>{for(const _0x25affc of this['getMarkers']())_0x438cdd['removeMarker'](_0x25affc);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e1cc0){this['_model']['change'](_0x2740e2=>{_0x2740e2['removeMarker'](_0x2e1cc0);}),this['_markerNames']['delete'](_0x2e1cc0);}['addRange'](_0x59ad79){const _0x38952b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x38952b),this['_model']['change'](_0x37ba7e=>{_0x37ba7e['addMarker'](_0x38952b,{'range':_0x59ad79,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x56997e){for(const _0x37986a of this['getRanges']())if(_0x37986a['isIntersecting'](_0x56997e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1a4138=>_0x1a4138['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x47715b,_0x5ee37e)=>[..._0x47715b,..._0x5ee37e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18fe9b=this['getRanges']();if(0x1!=_0x18fe9b['length'])return null;const _0x2691e8=_0x18fe9b[0x0],_0x2844ef=_0x2691e8['start']['nodeAfter'],_0x3532f0=_0x2691e8['end']['nodeBefore'];return _0x2844ef instanceof _0x3bc6ab?_0x2844ef!=_0x3532f0?null:_0x2844ef: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 _0x4f45e7=[];let _0x569814=this['head'];for(;_0x569814;)_0x4f45e7['push'](_0x569814),_0x569814=_0x569814['next'];return _0x4f45e7;}['setAttribute'](_0x539fc0,_0x4cb783){const _0x3fa295=_0x59eabf(this['attributes']);_0x40d9f8(_0x3fa295,_0x539fc0,_0x4cb783),_0x5a0a72(_0x3fa295,this['attributes'])||(this['attributes']=_0x3fa295,this['_onAttributesChange'](_0x3fa295));}['removeAttribute'](_0x308c96){const _0x238457=_0x59eabf(this['attributes']);_0x348f20(_0x238457,_0x308c96),_0x5a0a72(_0x238457,this['attributes'])||(this['attributes']=_0x238457,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 _0x2008f5()['substr'](0x1,0x5);}}function o(_0x126617,_0x31252c,_0x1f9213){const t=_0x126617['t'];switch(_0x31252c){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',_0x1f9213);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f9213);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f9213);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f9213);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f9213);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',_0x1f9213);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f9213);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',_0x1f9213);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f9213);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f9213);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f9213);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f9213);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f9213);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f9213);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f9213);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f9213);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f9213);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f9213);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f9213);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f9213);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f9213);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f9213);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f9213);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'},_0x1f9213);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f9213);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f9213);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f9213);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f9213);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f9213);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'},_0x1f9213);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f9213);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f9213);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f9213);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f9213);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'},_0x1f9213);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f9213);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'},_0x1f9213);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'},_0x1f9213);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f9213);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'},_0x1f9213);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f9213);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'},_0x1f9213);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f9213);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f9213);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'},_0x1f9213);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'},_0x1f9213);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'},_0x1f9213);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1f9213);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'},_0x1f9213);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'},_0x1f9213);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'},_0x1f9213);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31252c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4fece0,_0x250971){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4fece0,this['_locale']=_0x250971;}['getDescriptions'](_0x4c056a){const _0x5d7695=[],_0x5df598=new Set(),_0x57297f=new Set();for(let _0x595dcf=0x0;_0x595dcf<_0x4c056a['length'];_0x595dcf++){const _0x1678fc=_0x4c056a[_0x595dcf];if(!_0x1678fc['isInContent'])continue;const _0x5ea3ed=this['_handleCustomCallbackDescription'](_0x1678fc);if(_0x5ea3ed){if(null!=_0x1678fc['subType']){if(_0x5df598['has'](_0x1678fc['subType']))continue;_0x5df598['add'](_0x1678fc['subType']);}_0x5d7695['push'](_0x5ea3ed);}else{if('attribute'!=_0x1678fc['type'])'insertion'!=_0x1678fc['type']&&'deletion'!=_0x1678fc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d7695,_0x1678fc,_0x4c056a[_0x595dcf+0x1]);else{const _0x4b8552=_0x1678fc['data']['key'];if(_0x57297f['has'](_0x4b8552))continue;_0x57297f['add'](_0x1678fc['data']['key']),_0x4b8552==m?this['_handleRenameSuggestionDescription'](_0x5d7695,_0x1678fc):this['_handleAttributeSuggestionDescription'](_0x5d7695,_0x1678fc);}}}return this['_resolveDescriptionItems'](_0x5d7695);}['registerDescriptionCallback'](_0x3fc370){this['_customCallbacks']['push'](_0x3fc370);}['registerElementLabel'](_0x3808ee,_0x156b2c,_0x3f8d86=_0x11f5d5['normal']){'function'==typeof _0x3808ee?_0x20907e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3808ee,'label':_0x156b2c,'priority':_0x3f8d86}):this['_itemLabels']['set'](_0x3808ee,_0x156b2c);}['registerAttributeLabel'](_0x238401,_0x312ef7){this['_attributeLabels']['set'](_0x238401,_0x312ef7);}['getItemLabel'](_0x4d0692,_0x4556dc=0x1){let _0x38eb8a;for(const _0xd21422 of this['_itemLabelsCallbacks'])if(_0xd21422['matchingCallback'](_0x4d0692)){_0x38eb8a=_0xd21422['label'];break;}return _0x38eb8a||(_0x38eb8a=this['_itemLabels']['get'](_0x4d0692['name'])),_0x38eb8a?_0x38eb8a(_0x4556dc):0x1!==_0x4556dc?_0x4556dc+'\x20'+_0x4d0692['name']+'s':''+_0x4d0692['name'];}['_addDescriptionItems'](_0x3b64ca,_0x2fed7f){const _0x95c62b=_0x2fed7f['getFirstRange']()['getWalker'](),_0x3419d7='insertion'==_0x2fed7f['type']?'add':'remove';for(const _0x4fe9f7 of _0x95c62b){const _0x440de8=_0x4fe9f7['item'],_0x50eb54=_0x3b64ca[_0x3b64ca['length']-0x1];if(_0x440de8['is']('$textProxy'))_0x50eb54&&_0x50eb54['type']['indexOf']('Container')>-0x1&&_0x3b64ca['pop'](),_0x50eb54&&'text'==_0x50eb54['type']?_0x50eb54[_0x3419d7]+=_0x440de8['data']:_0x3b64ca['push']({'type':'text','add':'add'==_0x3419d7?_0x440de8['data']:'','remove':'remove'==_0x3419d7?_0x440de8['data']:''});else{if(this['_schema']['isObject'](_0x440de8)){const _0x5ab2d4=_0x440de8;if(_0x50eb54&&_0x50eb54['type']['indexOf']('Container')>-0x1&&_0x3b64ca['pop'](),'elementEnd'==_0x4fe9f7['type'])continue;_0x50eb54&&_0x50eb54['type']==_0x3419d7+'Object'&&_0x50eb54['element']['name']==_0x5ab2d4['name']?_0x50eb54['quantity']++:_0x3b64ca['push']({'type':_0x3419d7+'Object','element':_0x5ab2d4,'quantity':0x1}),_0x95c62b['skip'](_0x39582d=>!('elementEnd'==_0x39582d['type']&&_0x39582d['item']==_0x440de8));}else{if(this['_schema']['checkChild'](_0x440de8,'$text')||_0x440de8['is']('element','softBreak')){const _0x4f77ba=_0x440de8;if('add'==_0x3419d7&&'elementStart'==_0x4fe9f7['type']||'remove'==_0x3419d7&&'elementEnd'==_0x4fe9f7['type'])continue;if(_0x50eb54&&-0x1==_0x50eb54['type']['indexOf']('Container')){'text'==_0x50eb54['type']&&(_0x50eb54[_0x3419d7]+='\x0a');continue;}let _0x3c59e;if(_0x3c59e='add'==_0x3419d7?_0x4f77ba['nextSibling']&&!this['_schema']['isObject'](_0x4f77ba['nextSibling'])?_0x4f77ba['nextSibling']:null:_0x4f77ba['previousSibling']&&!this['_schema']['isObject'](_0x4f77ba['previousSibling'])?_0x4f77ba['previousSibling']:null,_0x4f77ba['isEmpty']||_0x3c59e&&_0x3c59e['isEmpty']){const _0x2b2ba4=_0x3c59e&&_0x3c59e['isEmpty']?_0x3c59e:_0x4f77ba;_0x50eb54&&_0x50eb54['type']==_0x3419d7+'EmptyContainer'&&_0x50eb54['element']['name']==_0x2b2ba4['name']?_0x50eb54['quantity']++:_0x3b64ca['push']({'type':_0x3419d7+'EmptyContainer','element':_0x2b2ba4,'quantity':0x1});}else _0x3b64ca['push']({'type':_0x3419d7+'Container','element':_0x4f77ba});}}}}}['_resolveDescriptionItems'](_0x529b85){const _0x54427d=this['_locale'],_0x7208f3=[],_0x45aea4=[],_0x400db9=[];for(const _0x4f171c of _0x529b85)switch(_0x4f171c['type']){case'text':if(_0x4f171c['add']=_0x4f171c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f171c['remove']=_0x4f171c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f171c['add']&&''!=_0x4f171c['remove']){_0x7208f3['push']({'type':'replace','content':o(_0x54427d,'REPLACE_TEXT',['\x22'+_0x4f171c['remove']+'\x22','\x22'+_0x4f171c['add']+'\x22'])});continue;}if(null!=_0x4f171c['add']['match'](/^ +$/)){_0x7208f3['push']({'type':'insertion','content':o(_0x54427d,'*Insert:*\x20%0',o(_0x54427d,'ELEMENT_SPACE',_0x4f171c['add']['length']))});continue;}if(null!=_0x4f171c['remove']['match'](/^ +$/)){_0x7208f3['push']({'type':'deletion','content':o(_0x54427d,'*Remove:*\x20%0',o(_0x54427d,'ELEMENT_SPACE',_0x4f171c['remove']['length']))});continue;}if(''!=_0x4f171c['add']){_0x7208f3['push']({'type':'insertion','content':o(_0x54427d,'*Insert:*\x20%0','\x22'+_0x4f171c['add']+'\x22')});continue;}_0x7208f3['push']({'type':'deletion','content':o(_0x54427d,'*Remove:*\x20%0','\x22'+_0x4f171c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x7208f3['push']({'type':'insertion','content':o(_0x54427d,'*Insert:*\x20%0',this['getItemLabel'](_0x4f171c['element'],_0x4f171c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x7208f3['push']({'type':'deletion','content':o(_0x54427d,'*Remove:*\x20%0',this['getItemLabel'](_0x4f171c['element'],_0x4f171c['quantity']))});continue;case'addContainer':_0x7208f3['push']({'type':'insertion','content':o(_0x54427d,'*Split:*\x20%0',this['getItemLabel'](_0x4f171c['element'],_0x4f171c['quantity']))});continue;case'removeContainer':_0x7208f3['push']({'type':'deletion','content':o(_0x54427d,'*Merge:*\x20%0',this['getItemLabel'](_0x4f171c['element'],_0x4f171c['quantity']))});continue;case'addFormat':_0x45aea4['push'](_0x4f171c['key']);continue;case'removeFormat':_0x400db9['push'](_0x4f171c['key']);continue;default:_0x7208f3['push'](_0x4f171c);}if(_0x45aea4['length']){const _0x2ab784=_0x45aea4['map'](_0x4eeae6=>this['_attributeLabels']['has'](_0x4eeae6)?this['_attributeLabels']['get'](_0x4eeae6):_0x4eeae6)['join'](',\x20');_0x7208f3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ab784)});}if(_0x400db9['length']){const _0x5904f6=_0x400db9['map'](_0x98f3b2=>this['_attributeLabels']['has'](_0x98f3b2)?this['_attributeLabels']['get'](_0x98f3b2):_0x98f3b2)['join'](',\x20');_0x7208f3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5904f6)});}return _0x7208f3;}['_handleCustomCallbackDescription'](_0x37bbbe){for(const _0x2a25f5 of this['_customCallbacks']){const _0x1807d6=_0x2a25f5(_0x37bbbe);if(_0x1807d6&&'type'in _0x1807d6)return _0x1807d6;}}['_handleAttributeSuggestionDescription'](_0x56c88f,_0x188ae4){const _0x2c4e0c=_0x188ae4['data'],_0x436ce5=void 0x0===_0x2c4e0c['newValue']?'removeFormat':'addFormat';_0x56c88f['push']({'type':_0x436ce5,'key':_0x2c4e0c['key']});}['_handleRenameSuggestionDescription'](_0x1963d5,_0x3238c9){_0x1963d5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3238c9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a85c9,_0x357a7a,_0x5f1967){if(this['_addDescriptionItems'](_0x1a85c9,_0x357a7a),_0x5f1967&&_0x5f1967['getFirstRange']()&&!_0x357a7a['getFirstRange']()['end']['isEqual'](_0x5f1967['getFirstRange']()['start'])){const _0x16a484=_0x1a85c9[_0x1a85c9['length']-0x1],_0x2ad4f3='insertion'==_0x357a7a['type']?'add':'remove';_0x16a484&&'text'==_0x16a484['type']&&(_0x16a484[_0x2ad4f3]+='\x0a');}}}class V extends _0x4313d1{['afterInit'](){const _0x408998=this['editor'],_0x245a5f=_0x408998['plugins']['get']('TrackChangesEditing');_0x408998['commands']['get']('showAIAssistant')&&_0x245a5f['enableCommand']('showAIAssistant');}}class U extends _0x4313d1{['afterInit'](){const _0x45dc00=this['editor'],_0x10d625=_0x45dc00['locale'];if(!_0x45dc00['plugins']['has']('AlignmentEditing'))return;const _0x592161=_0x45dc00['plugins']['get']('TrackChangesEditing');_0x592161['enableDefaultAttributesIntegration']('alignment'),_0x592161['registerBlockAttribute']('alignment'),_0x592161['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x10d625,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e297a=this['editor'],_0x52c012=_0x1e297a['locale'];_0x1e297a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4b28=>{if('formatBlock'!=_0x2c4b28['type'])return;const {data:_0x2e312a}=_0x2c4b28;if(_0x2e312a&&'alignment'==_0x2e312a['commandName']){const _0xa47dc5=_0x2e312a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52c012,'*Format:*\x20%0',function(_0x1b5312){switch(_0x1b5312){case'left':return o(_0x52c012,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52c012,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52c012,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52c012,'FORMAT_JUSTIFY_TEXT');}}(_0xa47dc5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4313d1{['afterInit'](){const _0x48c324=this['editor'],_0x4edab9=_0x48c324['plugins']['get']('TrackChangesEditing'),_0x1bd5f0=_0x48c324['locale'];for(const _0x24f3e0 of ti){if(!_0x48c324['plugins']['has'](_0x24f3e0))continue;const _0x46918e=_0x24f3e0['slice'](0x0,-0x7)['toLowerCase'](),_0x35990a='FORMAT_'+_0x46918e['toUpperCase']();_0x4edab9['enableDefaultAttributesIntegration'](_0x46918e),_0x4edab9['registerInlineAttribute'](_0x46918e),_0x4edab9['descriptionFactory']['registerAttributeLabel'](_0x46918e,o(_0x1bd5f0,_0x35990a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28121a=this['editor'],_0x4c6a05=_0x28121a['locale'],_0x1f9ed1=_0x28121a['plugins']['get']('TrackChangesEditing');function _0x306e12(_0x47f5f7,_0x161310){_0x1f9ed1['descriptionFactory']['registerDescriptionCallback'](_0x436867=>{if('formatInline'!=_0x436867['type'])return;const {data:_0x3652a5}=_0x436867;return _0x3652a5&&_0x3652a5['commandName']===_0x47f5f7?_0x3652a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c6a05,'*Format:*\x20%0',_0x161310)}:{'type':'format','content':o(_0x4c6a05,'*Remove\x20format:*\x20%0',_0x161310)}:void 0x0;});}_0x306e12('bold',o(_0x4c6a05,'FORMAT_BOLD')),_0x306e12('italic',o(_0x4c6a05,'FORMAT_ITALIC')),_0x306e12('underline',o(_0x4c6a05,'FORMAT_UNDERLINE')),_0x306e12('code',o(_0x4c6a05,'FORMAT_CODE')),_0x306e12('strikethrough',o(_0x4c6a05,'FORMAT_STRIKETHROUGH')),_0x306e12('subscript',o(_0x4c6a05,'FORMAT_SUBSCRIPT')),_0x306e12('superscript',o(_0x4c6a05,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4313d1{['afterInit'](){const _0x44cee4=this['editor'],_0x5b3980=_0x44cee4['locale'];if(!_0x44cee4['plugins']['has']('BlockQuoteEditing'))return;const _0x1a60ce=_0x44cee4['plugins']['get']('TrackChangesEditing'),_0x332257=this['editor']['commands']['get']('blockQuote');_0x1a60ce['enableCommand']('blockQuote',(_0x4efd33,_0x534597={})=>{const _0xe833cf=this['editor']['model']['document']['selection'],_0xf9862e=_0x534597&&void 0x0!==_0x534597['forceValue']?_0x534597['forceValue']:!_0x332257['value'];let _0xc9281c=[];if(_0xf9862e){const _0x106590=Array['from'](_0xe833cf['getSelectedBlocks']())['filter'](_0xa99b9e=>oo(_0xa99b9e)||function(_0x34a450,_0x23fa2c){const _0x34e6d6=_0x23fa2c['checkChild'](_0x34a450['parent'],'blockQuote'),_0x5f07fd=_0x23fa2c['checkChild'](['$root','blockQuote'],_0x34a450);return _0x34e6d6&&_0x5f07fd;}(_0xa99b9e,this['editor']['model']['schema']));_0xc9281c=to(_0x106590,_0x44cee4['model']);}else{const _0x18059e=Array['from'](_0xe833cf['getSelectedBlocks']())['filter'](_0xb4913f=>oo(_0xb4913f));_0xc9281c=to(_0x18059e,_0x44cee4['model']);}_0x44cee4['model']['change'](()=>{for(const _0x29cbf8 of _0xc9281c)_0x1a60ce['markBlockFormat'](_0x29cbf8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf9862e}]});});}),_0x1a60ce['descriptionFactory']['registerDescriptionCallback'](_0x1b5e2f=>{const {data:_0x340da8}=_0x1b5e2f;if(_0x340da8&&'blockQuote'==_0x340da8['commandName']){const _0x58ce1f=o(_0x5b3980,'ELEMENT_BLOCK_QUOTE');return _0x340da8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b3980,'*Set\x20format:*\x20%0',_0x58ce1f)}:{'type':'format','content':o(_0x5b3980,'*Remove\x20format:*\x20%0',_0x58ce1f)};}});}}function oo(_0x766610){return'blockQuote'==_0x766610['parent']['name'];}class L extends _0x4313d1{['afterInit'](){const _0x16f67b=this['editor'];_0x16f67b['plugins']['has']('CaseChange')&&(_0x16f67b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x16f67b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x16f67b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4313d1{['afterInit'](){const _0x6e1ee3=this['editor'];_0x6e1ee3['commands']['get']('ckbox')&&_0x6e1ee3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4313d1{['afterInit'](){const _0x5a4e48=this['editor'];if(!_0x5a4e48['plugins']['has']('CodeBlock'))return;const _0x2fbb78=_0x5a4e48['plugins']['get']('TrackChangesEditing'),_0x5e3413=_0x5a4e48['locale'],_0x1de057=_0x5a4e48['config']['get']('codeBlock')['languages'],_0x9dc303=_0x5a4e48['commands']['get']('codeBlock');_0x2fbb78['enableCommand']('indentCodeBlock'),_0x2fbb78['enableCommand']('outdentCodeBlock'),_0x2fbb78['enableCommand']('codeBlock',(_0x1924fb,_0x3199fe={})=>{const _0x3d7158=_0x5a4e48['model'],_0x4ce2e6=_0x5a4e48['model']['document']['selection'],_0x572b32=_0x3199fe&&void 0x0!==_0x3199fe['forceValue']?_0x3199fe['forceValue']:!_0x9dc303['value'];let _0x50815a;_0x3199fe['language']||(_0x3199fe['language']=_0x1de057[0x0]['language']),_0x50815a=_0x572b32?Array['from'](_0x4ce2e6['getSelectedBlocks']())['filter'](_0x586814=>eo(_0x586814)||function(_0x171172,_0x3d30a8){if(_0x171172['is']('rootElement')||_0x3d30a8['isLimit'](_0x171172))return!0x1;return _0x3d30a8['checkChild'](_0x171172['parent'],'codeBlock');}(_0x586814,_0x3d7158['schema'])):Array['from'](_0x4ce2e6['getSelectedBlocks']())['filter'](_0x513521=>eo(_0x513521));const _0x4eb955=to(_0x50815a,_0x3d7158);_0x3d7158['change'](()=>{for(const _0x58fa04 of _0x4eb955)_0x2fbb78['markBlockFormat'](_0x58fa04,{'commandName':'codeBlock','commandParams':[{..._0x3199fe,'forceValue':_0x572b32}],'formatGroupId':'blockName'});});}),(_0x2fbb78['descriptionFactory']['registerElementLabel']('codeBlock',_0xd1689d=>o(_0x5e3413,'ELEMENT_CODE_BLOCK',_0xd1689d)),_0x2fbb78['descriptionFactory']['registerDescriptionCallback'](_0x2751bf=>{if('formatBlock'!=_0x2751bf['type'])return;const _0x58086a=_0x5e3413['t'],{data:_0x581ced}=_0x2751bf;if(!_0x581ced||'codeBlock'!=_0x581ced['commandName'])return;const _0x375c91=_0x581ced['commandParams'][0x0]['language'],_0x24ce9c=_0x58086a(_0x1de057['find'](_0x1f4ca1=>_0x1f4ca1['language']===_0x375c91)['label'])['toLowerCase']();return _0x581ced['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e3413,'*Set\x20format:*\x20%0',o(_0x5e3413,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24ce9c+')')}:{'type':'format','content':o(_0x5e3413,'*Remove\x20format:*\x20%0',o(_0x5e3413,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3043c1){return'codeBlock'==_0x3043c1['name'];}class q extends _0x4313d1{['afterInit'](){const _0x41d1ec=this['editor'];if(!_0x41d1ec['plugins']['has']('CommentsEditing'))return;_0x41d1ec['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x275ed3,_0xb63ea2,_0x2ea967){const _0x935835=[];for(const _0x191c95 of _0xb63ea2['getItems']())_0x191c95['hasAttribute'](_0x275ed3)&&_0x935835['push'](_0x2ea967['createRangeOn'](_0x191c95));return _0x935835;}function _e(_0x45481f,_0x2a889e,{showActiveMarker:_0x2fc1ec=!0x0}={}){const _0x599657=_0x45481f['plugins']['get']('TrackChangesEditing');return(_0x3c9ac8,_0x227ff7,_0x4e272c)=>{if(!_0x4e272c['consumable']['test'](_0x227ff7['markerRange'],_0x3c9ac8['name']))return;const _0x27e98b=_0x227ff7['markerRange']['getWalker'](),_0x39652b=_0x227ff7['markerRange']['start'],_0x187c59=_0x45481f['model']['schema'];let _0x3041ca=null,_0x32fb6a=null,_0x4492f7=!0x1,_0x836ee0=!0x1;for(const _0x219595 of _0x27e98b){const _0x5d2391=_0x219595['item'];_0x4492f7=_0x4492f7||_0x187c59['isContent'](_0x5d2391);const _0x1b4d47=_0x4e272c['mapper']['toViewElement'](_0x5d2391);if(_0x1b4d47&&_0x1b4d47['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x219595['type']&&(_0x187c59['isBlock'](_0x5d2391)&&!_0x187c59['isLimit'](_0x5d2391)&&(_0x5d2391['nextSibling']||_0x39652b['isAtEnd']?_0x3041ca&&_0x3041ca['parent']==_0x5d2391||(_0x3041ca=_0x5d2391,_0x33809e(_0x219595['previousPosition']),_0x836ee0=!0x0):_0x32fb6a=_0x32fb6a||_0x219595['previousPosition']));}function _0x33809e(_0x17fcd9){const {authorId:_0x55649b}=_0x599657['_splitMarkerName'](_0x227ff7['markerName']),_0x3e4a15=_0x4e272c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a889e,'data-author-id':_0x55649b}),_0x1c94e7=_0x4e272c['mapper']['toViewPosition'](_0x17fcd9);_0x2fc1ec&&_0x599657['activeMarkers']['includes'](_0x227ff7['markerName'])&&_0x4e272c['writer']['addClass']('ck-suggestion-marker--active',_0x3e4a15),_0x4e272c['writer']['insert'](_0x1c94e7,_0x3e4a15),_0x4e272c['mapper']['bindElementToMarker'](_0x3e4a15,_0x227ff7['markerName']);}_0x4492f7||_0x836ee0||!_0x32fb6a||_0x33809e(_0x32fb6a);};}class z extends _0x4313d1{static get['requires'](){return[_0x4f172c];}['init'](){const _0x382d27=this['editor'],_0x1d447e=_0x382d27['plugins']['get']('TrackChangesEditing');_0x1d447e['enableCommand']('delete');const _0x403cca=_0x382d27['commands']['get']('deleteForward');_0x1d447e['enableCommand']('deleteForward',(_0x2079fc,_0x9e45e3={})=>{const _0x44c8ee=_0x382d27['model']['createSelection'](_0x382d27['model']['document']['selection']);_0x44c8ee['isCollapsed']&&_0x382d27['model']['modifySelection'](_0x44c8ee,{'direction':'forward','unit':_0x9e45e3['unit']});const _0x3ddde7=_0x44c8ee['getFirstRange'](),_0x3d95b9=_0x41dcaa['fromRange'](_0x3ddde7);let _0x429909;_0x2079fc(_0x9e45e3),_0x429909='$graveyard'==_0x3d95b9['root']['rootName']?_0x382d27['model']['createRange'](_0x3ddde7['start']):_0x382d27['model']['createRange'](_0x3d95b9['start'],_0x3d95b9['end']),_0x3d95b9['detach'](),_0x382d27['model']['enqueueChange'](_0x403cca['buffer']['batch'],_0x57190d=>{_0x403cca['buffer']['lock'](),_0x57190d['setSelection'](_0x57190d['createRange'](_0x429909['end'])),_0x403cca['buffer']['unlock']();});}),_0x382d27['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x382d27,'merge'),{'priority':'high'}),_0x382d27['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17893f,_0x4926bd,_0x5ad8ff)=>{_0x5ad8ff['options']['showSuggestionHighlights']&&_e(_0x382d27,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17893f,_0x4926bd,_0x5ad8ff);},{'priority':'high'}),_0x382d27['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x356711,_0x175b61,_0x187cef)=>{const _0x506a40=_0x187cef['mapper']['markerNameToElements'](_0x175b61['markerName']);if(_0x506a40){for(const _0x146374 of _0x506a40)_0x146374['is']('uiElement')&&(_0x187cef['mapper']['unbindElementFromMarkerName'](_0x146374,_0x175b61['markerName']),_0x187cef['writer']['remove'](_0x146374));}},{'priority':'high'});}}class K extends _0x4313d1{['afterInit'](){const _0x3ca7f5=this['editor'];if(!_0x3ca7f5['plugins']['has']('ListEditing'))return;const _0x141966=_0x3ca7f5['locale'],_0x144d35=_0x3ca7f5['plugins']['get']('TrackChangesEditing'),_0x4b8ead=_0x3ca7f5['plugins']['has']('TodoListEditing'),_0xa4e0a4=!!_0x3ca7f5['config']['get']('list.multiBlock');function _0x5849bb(_0x4a81d8){return{'type':'format','content':''+o(_0x141966,'*Set\x20format:*\x20%0',_0x4a81d8)};}function _0x46c843(_0x3dbdba){return{'type':'format','content':''+o(_0x141966,'*Remove\x20format:*\x20%0',_0x3dbdba)};}_0x144d35['enableDefaultAttributesIntegration']('numberedList'),_0x144d35['enableDefaultAttributesIntegration']('bulletedList'),_0x144d35['enableDefaultAttributesIntegration']('customNumberedList'),_0x144d35['enableDefaultAttributesIntegration']('customBulletedList'),_0x144d35['enableDefaultAttributesIntegration']('indentList'),_0x144d35['enableDefaultAttributesIntegration']('outdentList'),_0x144d35['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x144d35['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x144d35['registerBlockAttribute']('listItemId'),_0x144d35['registerBlockAttribute']('listType'),_0x144d35['registerBlockAttribute']('listIndent'),_0xa4e0a4&&(_0x144d35['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x144d35['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b8ead&&(_0x144d35['enableDefaultAttributesIntegration']('todoList'),_0x144d35['enableDefaultAttributesIntegration']('checkTodoList'),_0x144d35['registerBlockAttribute']('todoListChecked'),_0x144d35['descriptionFactory']['registerDescriptionCallback'](_0x34b296=>{const {data:_0x1ea2c0}=_0x34b296;if(_0x1ea2c0&&'todoListChecked'==_0x1ea2c0['key'])return{'type':'format','content':_0x1ea2c0['newValue']?o(_0x141966,'*Check\x20item*'):o(_0x141966,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a50ce=>{if(_0x3a50ce['batch']['isUndo'])return!0x1;let _0x4e10a3=!0x1;const _0x228d57=_0x144d35['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3efcfa=>'todoListChecked'===_0x144d35['_getAttributeKey'](_0x3efcfa));for(const _0x129633 of _0x228d57){'todo'!=_0x129633['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x144d35['_findSuggestions'](_0x129633['getFirstRange'](),'attribute')['find'](_0x96b2fc=>'listType'===_0x144d35['_getAttributeKey'](_0x96b2fc['suggestion']))||(_0x3a50ce['removeMarker'](_0x129633['getFirstMarker']()),_0x4e10a3=!0x0));}return _0x4e10a3;})),_0x144d35['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x141966,'FORMAT_INDENT'));const _0x49f393={'type':'format','content':''};_0x144d35['descriptionFactory']['registerDescriptionCallback'](_0x2a779e=>{const {data:_0x9bbf86}=_0x2a779e;if(!_0x9bbf86||'listType'!=_0x9bbf86['key'])return;let _0x3bc75f=_0x2a779e['head'];for(;_0x3bc75f;){if(_0x3bc75f['data']&&(('listStyle'==_0x3bc75f['data']['key']||'listMarkerStyle'==_0x3bc75f['data']['key'])&&(_0x3bc75f['data']['newValue']&&'default'!=_0x3bc75f['data']['newValue']||'default'!=_0x3bc75f['data']['oldValue']&&!_0x9bbf86['newValue'])||!_0xa4e0a4&&_0x3bc75f['data']['key']==m))return _0x49f393;_0x3bc75f=_0x3bc75f['next'];}if(null==_0x9bbf86['newValue'])switch(_0x9bbf86['oldValue']){case'bulleted':return _0x46c843(o(_0x141966,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46c843(o(_0x141966,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46c843(o(_0x141966,'ELEMENT_TODO_LIST'));}switch(_0x9bbf86['newValue']){case'bulleted':return _0x5849bb(o(_0x141966,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5849bb(o(_0x141966,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5849bb(o(_0x141966,'ELEMENT_TODO_LIST'));}}),_0x144d35['descriptionFactory']['registerDescriptionCallback'](_0x161d40=>{const {data:_0x4b777d}=_0x161d40;if(_0x4b777d&&'listIndent'==_0x4b777d['key'])return null==_0x4b777d['newValue']||null==_0x4b777d['oldValue']&&0x0==_0x4b777d['newValue']?_0x49f393:void 0x0;}),_0x144d35['descriptionFactory']['registerDescriptionCallback'](_0x50f6db=>{if('attribute'!=_0x50f6db['type'])return;const {data:_0x36633a}=_0x50f6db;if(!_0x36633a||'listItemId'!=_0x36633a['key'])return;const _0x5efa71=Ee(_0x50f6db);return'newValue'==_0x5efa71?{'type':'format','content':o(_0x141966,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5efa71?{'type':'format','content':o(_0x141966,'*Split:*\x20list\x20item')}:_0x49f393;}),_0x3ca7f5['model']['document']['registerPostFixer'](_0x2c8e2b=>this['listItemIdFixer'](_0x2c8e2b)),_0x3ca7f5['model']['document']['registerPostFixer'](_0x5d0a60=>this['noTrackChangesFixer'](_0x5d0a60)),_0x3ca7f5['model']['document']['on']('change:data',(_0x23c237,_0xd9b920)=>{if(_0xd9b920['isUndo']||!_0xd9b920['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d3939){if(_0x4d3939['batch']['isUndo']||!_0x4d3939['batch']['isLocal'])return!0x1;let _0x68670=!0x1;const _0x299992=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x242f19=>_0x242f19['data']&&'listItemId'==_0x242f19['data']['key'])['filter'](_0x128f0f=>_0x128f0f['data']['newValue']&&_0x128f0f['data']['oldValue']);for(const _0x246c62 of _0x299992)Ee(_0x246c62)||(_0x4d3939['removeMarker'](_0x246c62['getFirstMarker']()),_0x68670=!0x0);return _0x68670;}['noTrackChangesFixer'](_0x20ef48){if(_0x20ef48['batch']['isUndo']||!_0x20ef48['batch']['isLocal'])return!0x1;const _0x44efb8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44efb8['trackChangesCommand']['value'])return!0x1;let _0x5c6cb8=!0x1;const _0x31b8ea=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x890c16=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4e103d=>'attribute'==_0x4e103d['type'])['filter'](_0x446d16=>_0x31b8ea['includes'](_0x446d16['attributeKey']));if(0x0==_0x890c16['length'])return _0x5c6cb8;for(const _0x11209e of _0x890c16){const _0x158f35=_0x44efb8['_findSuggestions'](_0x11209e['range'],'attribute')['filter'](_0x2bec74=>!_0x2bec74['meta']['isNextTo'])['map'](_0x5d6b0d=>_0x5d6b0d['suggestion'])['filter'](_0x10fcf7=>{const _0xdedbd6=_0x44efb8['_getAttributeKey'](_0x10fcf7);return _0x31b8ea['includes'](_0xdedbd6);});if(_0x158f35['length']){for(const _0x23b390 of _0x158f35)_0x20ef48['removeMarker'](_0x23b390['getFirstMarker']());_0x5c6cb8=!0x0;}}return _0x5c6cb8;}['assureChains'](){const _0xb2407c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fedf8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x50a702;const _0x525644=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f28e4=>{if(_0x2f28e4['data']['oldRange']||!_0x2f28e4['data']['newRange'])return null;if(!_0x2f28e4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2dd582}=_0xb2407c['_splitMarkerName'](_0x2f28e4['name']);if(!_0xb2407c['hasSuggestion'](_0x2dd582))return null;const _0x84273b=_0xb2407c['getSuggestion'](_0x2dd582);return _0x4fedf8['includes'](_0x84273b['data']['key']);})['map'](_0x9f3d1d=>{const {id:_0x48c0d2}=_0xb2407c['_splitMarkerName'](_0x9f3d1d['name']),_0x1bcc17=_0xb2407c['getSuggestion'](_0x48c0d2);return _0x50a702=_0x1bcc17['attributes']['groupId'],_0x1bcc17['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x525644['size'])return;const _0x1afa1e=_0xb2407c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x166c7c=>'attribute'==_0x166c7c['type']&&_0x166c7c['data']&&_0x4fedf8['includes'](_0x166c7c['data']['key'])&&_0x166c7c['attributes']['groupId']!=_0x50a702)['map'](_0x59e9fa=>({'listItem':_0x59e9fa['getFirstRange']()['start']['nodeAfter'],'groupId':_0x59e9fa['attributes']['groupId']})),_0x2339da=new Set();for(const {groupId:_0x13d5bd,listItem:_0x521de7}of _0x1afa1e)_0x525644['has'](_0x521de7)&&_0x2339da['add'](_0x13d5bd);for(const _0x2b4053 of _0xb2407c['getSuggestions']())_0x2339da['has'](_0x2b4053['attributes']['groupId'])&&_0x2b4053['setAttribute']('groupId',_0x50a702);}['_supportLegacySuggestions'](){const _0x5ad1ca=this['editor'],_0x30b84d=_0x5ad1ca['locale'],_0x11894b=_0x5ad1ca['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x11894b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51be06,_0x30eb6b){const _0x3b70c8=[];for(let _0x5c6c40 of _0x51be06)_0x5c6c40['start']['nodeAfter']===_0x5c6c40['end']['parent']&&(_0x5c6c40=_0x5ad1ca['model']['createRange'](_0x5ad1ca['model']['createPositionAt'](_0x5c6c40['start']['nodeAfter'],0x0))),_0x3b70c8['push'](_0x5c6c40);_0x5ad1ca['model']['change'](_0x461768=>{const _0x540d6a=_0x5ad1ca['model']['document']['selection'],_0x3371b6=Array['from'](_0x540d6a['getRanges']())['map'](_0xf5628=>_0x41dcaa['fromRange'](_0xf5628));_0x461768['setSelection'](_0x3b70c8),_0x5ad1ca['commands']['get'](_0x30eb6b['commandName'])['refresh'](),_0x30eb6b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ad1ca['execute'](_0x30eb6b['commandName'],..._0x30eb6b['commandParams']),_0x461768['setSelection'](_0x3371b6);for(const _0x5a2f89 of _0x3371b6)_0x5a2f89['detach']();});}),_0x11894b['descriptionFactory']['registerElementLabel'](function(_0x57f721){const _0x425d0e=!_0x5ad1ca['model']['schema']['isObject'](_0x57f721),_0x58c95c=_0x57f721['previousSibling'],_0xc9b6f7=_0x57f721['nextSibling'],_0x21dfe7=_0x57f721['getAttribute']('listItemId'),_0x3e5b77=!_0x58c95c||_0x58c95c['getAttribute']('listItemId')!==_0x21dfe7,_0x39005e=!_0xc9b6f7||_0xc9b6f7['getAttribute']('listItemId')!==_0x21dfe7;return _0x425d0e&&Boolean(_0x21dfe7)&&_0x3e5b77&&_0x39005e;},_0x12d715=>o(_0x30b84d,'ELEMENT_LIST_ITEM',_0x12d715));}['_registerLegacyDescription'](){const _0x2cf1af=this['editor'],_0x34e63c=_0x2cf1af['locale'];function _0xcaa04f(_0x24fa94){const _0x50d2a0=_0x2cf1af['commands']['get']('bulletedList')['value'],_0x49543d=_0x2cf1af['commands']['get']('numberedList')['value'];return'numberedList'===_0x24fa94?_0x50d2a0:_0x49543d;}_0x2cf1af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3aeffc){if('formatBlock'!=_0x3aeffc['type'])return;const {data:_0x52e1d8}=_0x3aeffc;if(!_0x52e1d8)return;let _0x27eabd,_0x2cfac3,_0x5d2788,_0x559ac2;switch(_0x52e1d8['commandName']){case'bulletedList':_0x5d2788=_0x52e1d8['commandParams'][0x0]['forceValue'],_0x559ac2=_0xcaa04f(_0x52e1d8['commandName']),_0x27eabd=_0x5d2788?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x559ac2&&_0x2cf1af['config']['get']('list.multiBlock')||(_0x27eabd='*Change\x20to:*\x20%0'),_0x2cfac3={'type':'format','content':o(_0x34e63c,_0x27eabd,o(_0x34e63c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d2788=_0x52e1d8['commandParams'][0x0]['forceValue'],_0x559ac2=_0xcaa04f(_0x52e1d8['commandName']),_0x27eabd=_0x5d2788?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x559ac2&&_0x2cf1af['config']['get']('list.multiBlock')||(_0x27eabd='*Change\x20to:*\x20%0'),_0x2cfac3={'type':'format','content':o(_0x34e63c,_0x27eabd,o(_0x34e63c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27eabd='*Indent:*\x20%0',_0x2cfac3={'type':'format','content':o(_0x34e63c,_0x27eabd,o(_0x34e63c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27eabd=function(_0x341b7e){const _0x23e84d=_0x341b7e['getFirstRange']();let _0x15c3b1=_0x23e84d['start']['nodeAfter'];for(;_0x15c3b1&&_0x23e84d['containsItem'](_0x15c3b1);){if(_0x15c3b1['getAttribute']('listIndent')>0x0)return!0x1;_0x15c3b1=_0x15c3b1['nextSibling'];}return!0x0;}(_0x3aeffc)?o(_0x34e63c,'*Format:*\x20remove\x20from\x20%0',o(_0x34e63c,function(_0x3f6416){return'ELEMENT_'+_0x3f6416['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3aeffc))):o(_0x34e63c,'*Outdent:*\x20%0',o(_0x34e63c,'ELEMENT_LIST_ITEM')),_0x2cfac3={'type':'format','content':_0x27eabd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52e1d8['multipleBlocks']&&(_0x27eabd='*Merge:*\x20%0',_0x2cfac3={'type':'deletion','content':o(_0x34e63c,_0x27eabd,o(_0x34e63c,'ELEMENT_LIST_ITEM'))});}return _0x2cfac3;});}}function Ee(_0x2b6594){let _0x4004d4=_0x2b6594['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4004d4;){const _0x278b5a=_0x4004d4['getAttribute']('listItemId');if(!_0x278b5a)return!0x1;if(_0x278b5a==_0x2b6594['data']['newValue'])return'newValue';if(_0x278b5a==_0x2b6594['data']['oldValue'])return'oldValue';_0x4004d4=_0x4004d4['previousSibling'];}return!0x1;}class pe extends _0x4313d1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x151a99=this['editor']['config']['get']('list.properties'),_0x2da113=this['editor']['plugins']['get']('TrackChangesEditing');_0x151a99['styles']&&(_0x2da113['enableDefaultAttributesIntegration']('listStyle'),_0x2da113['registerBlockAttribute']('listStyle')),_0x151a99['reversed']&&(_0x2da113['enableDefaultAttributesIntegration']('listReversed'),_0x2da113['registerBlockAttribute']('listReversed')),_0x151a99['startIndex']&&(_0x2da113['enableDefaultAttributesIntegration']('listStart'),_0x2da113['registerBlockAttribute']('listStart'));const _0x5484e4={'type':'format','content':''};_0x2da113['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c9819=this['editor']['locale'];_0x2da113['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2c9819,'FORMAT_LIST_REVERSED')),_0x2da113['descriptionFactory']['registerDescriptionCallback'](_0x8ff161=>{const {data:_0x367863}=_0x8ff161;if(_0x367863&&'listReversed'==_0x367863['key'])return null==_0x367863['newValue']||0x0==_0x367863['newValue']&&null==_0x367863['oldValue']?_0x5484e4:void 0x0;}),_0x2da113['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2c9819,'FORMAT_LIST_START')),_0x2da113['descriptionFactory']['registerDescriptionCallback'](_0x5c36c1=>{const {data:_0x49bb42}=_0x5c36c1;if(_0x49bb42&&'listStart'==_0x49bb42['key'])return null==_0x49bb42['newValue']||0x1==_0x49bb42['newValue']&&null==_0x49bb42['oldValue']?_0x5484e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25fa39=>{if(_0x25fa39['batch']['isUndo'])return!0x1;let _0xc4d9a9=!0x1;const _0x1220cd=_0x2da113['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x506cee=>{const _0x36549b=_0x2da113['_getAttributeKey'](_0x506cee);return'listStart'==_0x36549b||'listReversed'==_0x36549b;});for(const _0x9b0382 of _0x1220cd){const _0x54e525=_0x9b0382['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54e525||'customNumbered'==_0x54e525)continue;_0x2da113['_findSuggestions'](_0x9b0382['getFirstRange'](),'attribute')['find'](_0x18d776=>'listType'==_0x2da113['_getAttributeKey'](_0x18d776['suggestion']))||(_0x25fa39['removeMarker'](_0x9b0382['getFirstMarker']()),_0xc4d9a9=!0x0);}return _0xc4d9a9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x364a74){const _0x11a998=this['editor']['locale'],{data:_0x3a8a63}=_0x364a74,_0x4f2b13={'type':'format','content':''};if(!_0x3a8a63||'listStyle'!=_0x3a8a63['key'])return;if(!_0x3a8a63['oldValue'])return'default'==_0x3a8a63['newValue']?_0x4f2b13:{'type':'format','content':''+o(_0x11a998,'*Set\x20format:*\x20%0',o(_0x11a998,this['_getTranslationKeyForListStyle'](_0x3a8a63['newValue'])))};if(!_0x3a8a63['newValue']){if('default'==_0x3a8a63['oldValue'])return _0x4f2b13;let _0x45dc48=_0x364a74['head'];for(;_0x45dc48;){if(_0x45dc48['data']&&'listType'==_0x45dc48['data']['key']&&_0x45dc48['data']['newValue'])return _0x4f2b13;_0x45dc48=_0x45dc48['next'];}return{'type':'format','content':''+o(_0x11a998,'*Remove\x20format:*\x20%0',o(_0x11a998,this['_getTranslationKeyForListStyle'](_0x3a8a63['oldValue'])))};}if('default'!=_0x3a8a63['newValue'])return{'type':'format','content':''+o(_0x11a998,'*Set\x20format:*\x20%0',o(_0x11a998,this['_getTranslationKeyForListStyle'](_0x3a8a63['newValue'])))};let _0x344d90=_0x364a74['head'];for(;_0x344d90;){if(_0x344d90['data']&&'listType'==_0x344d90['data']['key']&&_0x344d90['data']['newValue']&&_0x344d90['data']['oldValue'])return _0x4f2b13;_0x344d90=_0x344d90['next'];}return{'type':'format','content':o(_0x11a998,'*Set\x20format:*\x20%0',o(_0x11a998,'ELEMENT_'+_0x364a74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x371a70=this['editor'],_0x4a5685=_0x371a70['locale'];_0x371a70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19de2e=>{if('formatBlock'!=_0x19de2e['type'])return;const {data:_0xa93a54}=_0x19de2e;if(!_0xa93a54)return;let _0x593783,_0x5bc16a;switch(_0xa93a54['commandName']){case'listStyle':_0x593783='*Change\x20to:*\x20%0',_0x5bc16a={'type':'format','content':o(_0x4a5685,_0x593783,o(_0x4a5685,this['_getTranslationKeyForListStyle'](_0xa93a54['commandParams'][0x0]['type'])))};break;case'listReversed':_0x593783=_0xa93a54['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bc16a={'type':'format','content':o(_0x4a5685,_0x593783)};break;case'listStart':_0x593783='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bc16a={'type':'format','content':o(_0x4a5685,_0x593783,_0xa93a54['commandParams'][0x0]['startIndex'])};}return _0x5bc16a;});}['_getTranslationKeyForListStyle'](_0xe6cf59){return'ELEMENT_'+function(_0x312a53){if(ye['includes'](_0x312a53))return'bulleted';if(Se['includes'](_0x312a53))return'numbered';return null;}(_0xe6cf59)['toUpperCase']()+'_LIST_'+_0xe6cf59['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4313d1{static get['requires'](){return[_0x4044b1];}['init'](){const _0x45c995=this['editor'],_0x138c58=_0x45c995['plugins']['get']('TrackChangesEditing'),_0x9dd67e=_0x45c995['commands']['get']('enter');_0x138c58['enableCommand']('enter',()=>{_0x45c995['model']['change'](_0x1359f7=>{const _0x4fea1d=_0x45c995['model']['document']['selection'],_0x46c523=_0x4fea1d['getFirstPosition'](),_0x5c1e5d=_0x41dcaa['fromRange'](_0x4fea1d['getFirstRange']());if(_0x9dd67e['enterBlock'](_0x1359f7)){const _0x57f348=_0x45c995['model']['createPositionAt'](_0x46c523['parent']['nextSibling'],0x0),_0x2156f1=_0x1359f7['createRange'](_0x46c523,_0x57f348);_0x138c58['markInsertion'](_0x2156f1);}else _0x1359f7['setSelection'](_0x1359f7['createRange'](_0x5c1e5d['end']));_0x5c1e5d['detach'](),_0x9dd67e['fire']('afterExecute',{'writer':_0x1359f7});});}),_0x45c995['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x45c995,'split'),{'priority':'high'}),_0x45c995['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2e5c1,_0x21b0b7,_0xca958d)=>{const _0x40ce05=_0xca958d['mapper']['markerNameToElements'](_0x21b0b7['markerName']);if(_0x40ce05){for(const _0x50b0ed of _0x40ce05)_0x50b0ed['hasClass']('ck-suggestion-marker-split')&&(_0xca958d['mapper']['unbindElementFromMarkerName'](_0x50b0ed,_0x21b0b7['markerName']),_0xca958d['writer']['remove'](_0x50b0ed));}},{'priority':'high'}),_0x45c995['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12edcc,_0x20b707,_0x4d107d)=>{_0x4d107d['options']['showSuggestionHighlights']&&_e(_0x45c995,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x12edcc,_0x20b707,_0x4d107d);},{'priority':'high'});}}class X extends _0x4313d1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xe61e61=this['editor']['plugins']['get']('TrackChangesEditing');_0xe61e61['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xe61e61['enableCommand']('findNext'),_0xe61e61['enableCommand']('findPrevious'),_0xe61e61['enableCommand']('replace'),_0xe61e61['enableCommand']('replaceAll');}['handleFindCommand'](_0x4e45a8,_0x20990c,_0x588367={}){const _0x4f8402=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4e45a8(_0x4c2262=>{let _0x5743de=('string'==typeof _0x20990c?_0x4f8402['findByTextCallback'](_0x20990c,_0x588367):_0x20990c)(_0x4c2262);Array['isArray'](_0x5743de)&&(_0x5743de={'results':_0x5743de,'searchText':'string'==typeof _0x20990c?_0x20990c:''});const _0x1ff5a6=_0x5743de['results']['filter'](_0x2820d3=>!0x1===this['_isInDeletionRange'](_0x2820d3,_0x4c2262['item']));return{..._0x5743de,'results':_0x1ff5a6};},_0x588367);}['_isInDeletionRange'](_0x36d162,_0x471855){const _0x228f0e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x471855,_0x36d162['start']),this['editor']['model']['createPositionAt'](_0x471855,_0x36d162['end']));for(const _0x2f5567 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x228f0e['getIntersection'](_0x2f5567['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 _0x4313d1{['afterInit'](){const _0x2794c6=this['editor']['locale'],_0xe452a6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b7098,commandName:_0x45252a}of ro)this['editor']['plugins']['has'](_0x1b7098)&&(_0xe452a6['enableDefaultAttributesIntegration'](_0x45252a),_0xe452a6['registerInlineAttribute'](_0x45252a));_0xe452a6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2794c6,'FORMAT_FONT_SIZE')),_0xe452a6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2794c6,'FORMAT_FONT_FAMILY')),_0xe452a6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2794c6,'FORMAT_FONT_COLOR')),_0xe452a6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2794c6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f6eb3=this['editor'],_0x333462=_0x1f6eb3['locale'];_0x1f6eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1648b2=>{const _0xc4fa0=_0x333462['t'];if('formatInline'!=_0x1648b2['type'])return;const {data:_0x312848}=_0x1648b2;if(null!=_0x312848){if('fontSize'==_0x312848['commandName']){const _0x11f44e=_0x312848['commandParams'][0x0]['value'];if(_0x11f44e){const _0x2fd474=_0xc4fa0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x200802=>_0x200802['model']==_0x11f44e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x333462,'*Set\x20font\x20size:*\x20%0',_0x2fd474)};}return{'type':'format','content':o(_0x333462,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x312848['commandName']){const _0x3bd506=_0x312848['commandParams'][0x0]['value'];return _0x3bd506?{'type':'format','content':o(_0x333462,'*Set\x20font\x20family:*\x20%0',_0x3bd506)}:{'type':'format','content':o(_0x333462,'*Reset\x20font\x20family*')};}if('fontColor'==_0x312848['commandName']){const _0x41945b=_0x312848['commandParams'][0x0]['value'];if(_0x41945b){const _0x49e554=_0xa74f68(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5924ad=>_0x5924ad['model']==_0x41945b);let _0xe770cd=_0x41945b,_0x4519c2='';return _0x49e554&&(_0xe770cd=_0x49e554['label'],_0x4519c2=_0xc4fa0(_0xe770cd)['toLowerCase']()),{'type':'format','content':o(_0x333462,'*Set\x20font\x20color:*\x20%0',_0x4519c2)['trim'](),'color':{'value':_0x41945b,'title':_0x4519c2||_0xe770cd}};}return{'type':'format','content':o(_0x333462,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x312848['commandName']){const _0x369c86=_0x312848['commandParams'][0x0]['value'];if(_0x369c86){const _0x54f432=_0xa74f68(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x45459d=>_0x45459d['model']==_0x369c86);let _0x4517d8=_0x369c86,_0x3c9fdb='';return _0x54f432&&(_0x4517d8=_0x54f432['label'],_0x3c9fdb=_0xc4fa0(_0x4517d8)['toLowerCase']()),{'type':'format','content':o(_0x333462,'*Set\x20font\x20background\x20color:*\x20%0',_0x3c9fdb)['trim'](),'color':{'value':_0x369c86,'title':_0x3c9fdb||_0x4517d8}};}return{'type':'format','content':o(_0x333462,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4313d1{['afterInit'](){const _0x489817=this['editor'],_0x1f0754=_0x489817['plugins']['get']('TrackChangesEditing'),_0x33d799=_0x489817['commands']['get']('copyFormat'),_0x5f2f6b=_0x489817['commands']['get']('pasteFormat');_0x33d799&&_0x5f2f6b&&(_0x1f0754['enableDefaultAttributesIntegration']('pasteFormat'),_0x1f0754['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x33eac9=this['editor'],_0x1f5ee0=_0x33eac9['locale'];_0x33eac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f87f1=>{if('formatBlock'!=_0x2f87f1['type']&&'formatInline'!=_0x2f87f1['type'])return;const {data:_0x4b3475}=_0x2f87f1;if(_0x4b3475&&'pasteFormat'===_0x4b3475['commandName']){const _0x332dc7=[],_0x5d68d3=_0x4b3475['commandParams'][0x0];for(const [_0x1ed73e,_0x2a6104]of Object['entries'](_0x5d68d3))_0x332dc7['push'](so(_0x33eac9,_0x1ed73e,_0x2a6104));return _0x332dc7['length']?{'type':'format','content':o(_0x1f5ee0,'*Set\x20format\x20to:*\x20%0',_0x332dc7['join'](',\x20'))}:{'type':'format','content':o(_0x1f5ee0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4faef3,_0x3224d6,_0x243747){const _0x18c3d8=_0x4faef3['locale']['t'],_0x3e499b=_0x3224d6['split'](/(?=[A-Z])/)['join']('\x20'),_0x28c51d=_0x18c3d8(_0x3e499b['charAt'](0x0)['toUpperCase']()+_0x3e499b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x243747)return _0x28c51d;if('fontColor'===_0x3224d6||'fontBackgroundColor'===_0x3224d6){const _0x553aac=_0xa74f68(_0x4faef3['config']['get']('fontColor.colors'))['find'](_0x30e35f=>_0x30e35f['model']==_0x243747);return _0x28c51d+'\x20('+(_0x553aac?_0x18c3d8(_0x553aac['label'])['toLowerCase']():_0x243747)+')';}if('fontSize'===_0x3224d6&&isNaN(parseFloat(_0x243747))){const _0x5f097d=_0x4faef3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4faef3['config']['get']('fontSize.options'))['find'](_0x5a46be=>_0x5a46be['model']==_0x243747);return _0x28c51d+'\x20('+(_0x5f097d?_0x18c3d8(_0x5f097d['title'])['toLowerCase']():_0x243747)+')';}return _0x28c51d+'\x20('+_0x243747+')';}class tt extends _0x4313d1{['_headingOptions'];['afterInit'](){const _0x5c44b5=this['editor'];if(!_0x5c44b5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c44b5['config']['get']('heading.options');const _0x3db67c=_0x5c44b5['locale'],_0x249eae=_0x5c44b5['plugins']['get']('TrackChangesEditing');_0x249eae['enableDefaultAttributesIntegration']('heading');for(const _0xa8de51 of this['_headingOptions'])'paragraph'!=_0xa8de51['model']&&_0x249eae['descriptionFactory']['registerElementLabel'](_0xa8de51['model'],_0x35cdf5=>{const _0xe28274=this['_getHeadingLevel'](_0xa8de51['model']);return null!==_0xe28274?_0x5db0ea(_0x35cdf5,_0xe28274):_0x3f3f90(_0x35cdf5,_0xa8de51['title']);});function _0x5db0ea(_0x3ca43c,_0x412fdb){return o(_0x3db67c,'ELEMENT_HEADING',[_0x3ca43c,_0x412fdb]);}function _0x3f3f90(_0x2f8b8b,_0x2b56e8){return o(_0x3db67c,'ELEMENT_HEADING_CUSTOM',[_0x2f8b8b,_0x2b56e8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589a43=this['editor'],_0x49fce6=_0x589a43['locale'];function _0x2d54cc(_0x2293e1,_0x4ff47b){return o(_0x49fce6,'ELEMENT_HEADING_CUSTOM',[_0x2293e1,_0x4ff47b]);}_0x589a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c7ada=>{if('formatBlock'!=_0x4c7ada['type'])return;const {data:_0x1ee4d7}=_0x4c7ada;if(_0x1ee4d7&&'heading'==_0x1ee4d7['commandName']){const _0x2e974d=_0x1ee4d7['commandParams'][0x0]['value'],_0x13fe55=this['_getHeadingLevel'](_0x2e974d);if(null!==_0x13fe55)return{'type':'format','content':o(_0x49fce6,'*Change\x20to:*\x20%0',(_0x1dbe15=0x1,_0x4912b9=_0x13fe55,o(_0x49fce6,'ELEMENT_HEADING',[_0x1dbe15,_0x4912b9])))};const _0x197b21=this['_headingOptions']['find'](_0x2c4e07=>_0x2c4e07['model']===_0x2e974d)['title'];return{'type':'format','content':o(_0x49fce6,'*Change\x20to:*\x20%0',_0x2d54cc(0x1,_0x197b21))};}var _0x1dbe15,_0x4912b9;});}['_getHeadingLevel'](_0x5074ce){const _0x306d4b=_0x5074ce['match'](/^heading(\d+)/);if(_0x306d4b)return _0x306d4b[0x1];const _0x469a17=this['_headingOptions']?.['find'](_0x4e9f1e=>_0x4e9f1e['model']==_0x5074ce);if(_0x469a17&&_0x469a17['view']){const _0x2420b2=_0x469a17['view'],_0x4498cb=(_0x2420b2['name']??_0x2420b2)['match'](/^h(\d+)/);if(_0x4498cb)return _0x4498cb[0x1];}return null;}}class et extends _0x4313d1{['afterInit'](){const _0x458185=this['editor'];if(!_0x458185['plugins']['has']('HighlightEditing'))return;const _0x4083a2=_0x458185['plugins']['get']('TrackChangesEditing'),_0x4c295a=_0x458185['locale'];_0x4083a2['enableDefaultAttributesIntegration']('highlight'),_0x4083a2['registerInlineAttribute']('highlight'),_0x4083a2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4c295a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2ed2=this['editor'],_0x94207=_0x2f2ed2['locale'];_0x2f2ed2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x277251=>{if('formatInline'!=_0x277251['type'])return;const {data:_0x537176}=_0x277251;if(_0x537176&&'highlight'==_0x537176['commandName']){const _0x1265f2=_0x94207['t'],_0x5cecd4=_0x537176['commandParams'][0x0]['value'];if(_0x5cecd4){const _0x57865c=_0x2f2ed2['config']['get']('highlight.options')['find'](_0x5272ac=>_0x5272ac['model']==_0x5cecd4),_0x5cd94e=_0x1265f2(_0x57865c['title'])['toLowerCase']();return{'type':'format','content':o(_0x94207,'*Set\x20highlight:*\x20%0',_0x5cd94e),'color':{'value':_0x57865c['color'],'title':_0x57865c['title']}};}return{'type':'format','content':o(_0x94207,'*Remove\x20highlight*',o(_0x94207,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4313d1{['afterInit'](){const _0x34ac0d=this['editor'];if(!_0x34ac0d['plugins']['has']('HorizontalLineEditing'))return;_0x34ac0d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x23380c=_0x34ac0d['plugins']['get']('TrackChangesEditing'),_0x298c48=_0x34ac0d['locale'];_0x23380c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x370ea2=>o(_0x298c48,'ELEMENT_HORIZONTAL_LINE',_0x370ea2)),_0x34ac0d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a8687,{writer:_0x199268,options:_0x2689f7})=>{if(!_0x2689f7['showSuggestionHighlights'])return null;const _0x549e13=_0x199268['createContainerElement']('div'),_0x100649=_0x199268['createEmptyElement']('hr');return _0x199268['addClass']('ck-horizontal-line',_0x549e13),_0x199268['insert'](_0x199268['createPositionAt'](_0x549e13,0x0),_0x100649),_0x549e13;},'converterPriority':'high'});}}class st extends _0x4313d1{['afterInit'](){const _0x3eaccf=this['editor'];if(!_0x3eaccf['plugins']['has']('HtmlEmbed'))return;const _0x3df399=_0x3eaccf['plugins']['get']('TrackChangesEditing'),_0x59675d=_0x3eaccf['locale'];_0x3df399['descriptionFactory']['registerElementLabel']('rawHtml',_0x1bb335=>o(_0x59675d,'ELEMENT_HTML_EMBED',_0x1bb335)),_0x3df399['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3df399['registerBlockAttribute']('value'),_0x3df399['descriptionFactory']['registerDescriptionCallback'](_0xbc4597=>{if('attribute'!=_0xbc4597['type'])return;const {data:_0x31bfb3}=_0xbc4597;if(_0x31bfb3&&'value'==_0x31bfb3['key']&&_0xbc4597['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1023d3=o(_0x59675d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x59675d,'*Change\x20%0\x20content*',_0x1023d3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41786a=this['editor'],_0x41bdb0=_0x41786a['locale'];_0x41786a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318b9e=>{if('formatBlock'!=_0x318b9e['type'])return;const {data:_0x31b47c}=_0x318b9e;if(_0x31b47c&&'htmlEmbed'==_0x31b47c['commandName']){const _0x335075=o(_0x41bdb0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41bdb0,'*Change\x20%0\x20content*',_0x335075)};}});}}class nt extends _0x4313d1{['afterInit'](){const _0x129ecd=this['editor'];if(!_0x129ecd['plugins']['has']('ImageEditing'))return;const _0x5b0ee4=_0x129ecd['plugins']['get']('TrackChangesEditing'),_0xf9fbd9=_0x129ecd['plugins']['get']('ImageUtils'),_0x537929=_0x129ecd['locale'];_0x5b0ee4['enableCommand']('insertImage'),_0x5b0ee4['descriptionFactory']['registerElementLabel']('imageBlock',_0x550e84=>o(_0x537929,'ELEMENT_IMAGE',_0x550e84)),_0x5b0ee4['descriptionFactory']['registerElementLabel']('imageInline',_0x32cef2=>o(_0x537929,'ELEMENT_INLINE_IMAGE',_0x32cef2)),_0x5b0ee4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x537929,'ELEMENT_CAPTION')),_0x129ecd['plugins']['has']('ImageUploadEditing')&&_0x5b0ee4['enableCommand']('uploadImage'),_0x129ecd['plugins']['has']('ImageBlockEditing')&&_0x129ecd['plugins']['has']('ImageInlineEditing')&&(_0x5b0ee4['enableCommand']('imageTypeInline',(_0x3ee247,_0x2f89cd)=>{const _0x5df1f8=_0xf9fbd9['getClosestSelectedImageElement'](_0x129ecd['model']['document']['selection']);_0x129ecd['model']['change'](()=>{_0x5b0ee4['markBlockFormat'](_0x5df1f8,{'commandName':'imageTypeInline','commandParams':[_0x2f89cd]},[],'convertBlockImageToInline');});}),_0x5b0ee4['enableCommand']('imageTypeBlock',(_0x10f718,_0x517a4b)=>{_0x129ecd['model']['change'](_0x2c9632=>{let _0x197720=_0xf9fbd9['getClosestSelectedImageElement'](_0x129ecd['model']['document']['selection']),_0x212138=_0x2c9632['createRangeOn'](_0x197720);const _0x5e42c2=_0x549864['fromPosition'](_0x212138['start'],'toPrevious'),_0x5a15df=_0x549864['fromPosition'](_0x212138['end'],'toNext');_0x5b0ee4['forceDefaultExecution'](()=>_0x10f718(_0x517a4b)),_0x197720=_0xf9fbd9['getClosestSelectedImageElement'](_0x129ecd['model']['document']['selection']),_0x212138=_0x2c9632['createRangeOn'](_0x197720);const _0x58bf8d=_0x2c9632['createRange'](_0x5e42c2,_0x5a15df);_0x5e42c2['detach'](),_0x5a15df['detach'](),_0x5b0ee4['markBlockFormat'](_0x197720,{'commandName':'imageTypeInline','commandParams':[_0x517a4b]},[],'convertInlineImageToBlock'),_0x58bf8d['start']['isBefore'](_0x212138['start'])&&_0x5b0ee4['markInsertion'](_0x2c9632['createRange'](_0x58bf8d['start'],_0x212138['start']),'convertInlineImageToBlock'),_0x212138['end']['isBefore'](_0x58bf8d['end'])&&_0x5b0ee4['markInsertion'](_0x2c9632['createRange'](_0x212138['end'],_0x58bf8d['end']),'convertInlineImageToBlock');});}),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5b0ee4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x193188])=>{const _0x33b0cb=_0x5b0ee4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14423b=_0x193188['start'],_0x26ec22=_0x193188['end'];const _0x183910=_0x129ecd['model']['schema']['getNearestSelectionRange'](_0x14423b,'backward'),_0x5896fd=_0x129ecd['model']['schema']['getNearestSelectionRange'](_0x26ec22,'forward');_0x183910['isCollapsed']&&(_0x14423b=_0x183910['start']),_0x5896fd['isCollapsed']&&(_0x26ec22=_0x5896fd['end']),_0x33b0cb([_0x129ecd['model']['createRange'](_0x14423b,_0x26ec22)]);}),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34f404),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34f404)),_0x129ecd['plugins']['has']('ImageCaptionEditing')&&(_0x5b0ee4['enableCommand']('toggleImageCaption',(_0x104730,_0x691b3a)=>{const _0x460682=_0x129ecd['plugins']['get']('ImageCaptionUtils');let _0x18c3dd=_0xf9fbd9['getClosestSelectedImageElement'](_0x129ecd['model']['document']['selection']),_0x21cdeb=_0x460682['getCaptionFromImageModelElement'](_0x18c3dd);_0x129ecd['model']['change'](()=>{if(_0x21cdeb)return void _0x5b0ee4['markDeletion'](_0x129ecd['model']['createRangeOn'](_0x21cdeb));const _0x2739e4=_0xf9fbd9['isBlockImage'](_0x18c3dd);_0x104730(_0x691b3a),_0x18c3dd=_0xf9fbd9['getClosestSelectedImageElement'](_0x129ecd['model']['document']['selection']),_0x21cdeb=_0x460682['getCaptionFromImageModelElement'](_0x18c3dd),_0x5b0ee4['markInsertion'](_0x129ecd['model']['createRangeOn'](_0x21cdeb),_0x2739e4?null:'imageCaption');});}),_0x5b0ee4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34f404));const _0x1893b0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x577087(_0x2a4705,_0x4a63f6){const _0x1c8cad=_0x1893b0['findIndex'](({type:_0x2b503d,subType:_0x633b14})=>_0x2a4705['type']==_0x2b503d&&_0x2a4705['subType']==_0x633b14),_0x4025cd=_0x1893b0['findIndex'](({type:_0x522045,subType:_0x2f1905})=>_0x4a63f6['type']==_0x522045&&_0x4a63f6['subType']==_0x2f1905);if(_0x1c8cad<0x0||_0x4025cd<0x0)return!0x1;const _0x2677f5=_0x2a4705['getFirstRange'](),_0x13ccbc=_0x4a63f6['getFirstRange']();if((0x0==_0x1c8cad||0x1==_0x1c8cad)&&0x2==_0x4025cd&&_0x2677f5['isIntersecting'](_0x13ccbc))return!0x0;if(0x2==_0x1c8cad&&0x3==_0x4025cd){const _0xea9477=_0x5b0ee4['_findSuggestions'](_0x2677f5,'insertion')['filter'](({suggestion:_0x41aff0,meta:_0x2bb69d})=>_0x2bb69d['isOwn']&&'convertInlineImageToBlock'==_0x41aff0['subType']);if(_0xea9477['length']>0x1&&_0x13ccbc['end']['isEqual'](_0x2677f5['start']))return!0x0;if(0x1==_0xea9477['length']&&(_0x2677f5['start']['isEqual'](_0x13ccbc['end'])||_0x2677f5['end']['isEqual'](_0x13ccbc['start'])))return!0x0;}if(0x3==_0x1c8cad&&0x3==_0x4025cd&&_0x2677f5['start']['isBefore'](_0x13ccbc['start'])){const _0x18f707=_0x2677f5['end']['nodeAfter'],_0x39cbea=_0x13ccbc['start']['nodeBefore'];return _0xf9fbd9['isBlockImage'](_0x18f707)&&_0x18f707===_0x39cbea;}return!0x1;}function _0x34f404(_0x4fe7f2,_0x106e30){return _0x577087(_0x4fe7f2,_0x106e30)?[_0x4fe7f2,_0x106e30]:_0x577087(_0x106e30,_0x4fe7f2)?[_0x106e30,_0x4fe7f2]:null;}_0x129ecd['plugins']['has']('ImageResize')&&(_0x5b0ee4['enableDefaultAttributesIntegration']('resizeImage'),_0x5b0ee4['registerBlockAttribute']('resizedWidth'),_0x5b0ee4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x537929,'FORMAT_IMAGE_SIZE'))),_0x129ecd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5b0ee4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b0ee4['registerBlockAttribute']('alt')),_0x5b0ee4['descriptionFactory']['registerDescriptionCallback'](_0x209076=>{if(!!_0x1893b0['find'](({type:_0x14ec28,subType:_0x316ff5})=>_0x209076['type']==_0x14ec28&&_0x209076['subType']==_0x316ff5))return _0x209076['previous']?{}:void 0x0;}),_0x5b0ee4['descriptionFactory']['registerDescriptionCallback'](_0x154dc7=>{if('insertion'==_0x154dc7['type']||'deletion'==_0x154dc7['type']){const _0x309794=_0x154dc7['getContainedElement']();if(_0x309794&&_0x309794['is']('element','caption'))return{'type':'insertion'==_0x154dc7['type']?'addObject':'removeObject','element':_0x309794,'quantity':0x1};}}),_0x5b0ee4['descriptionFactory']['registerDescriptionCallback'](_0x206b2e=>'formatBlock'==_0x206b2e['type']&&'convertInlineImageToBlock'==_0x206b2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x206b2e['type']&&'convertBlockImageToInline'==_0x206b2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5b0ee4['descriptionFactory']['registerDescriptionCallback'](_0x48ab54=>{if('attribute'!=_0x48ab54['type'])return;const {data:_0x606a85}=_0x48ab54;if(!_0x606a85||'alt'!=_0x606a85['key'])return;const _0x577e69=_0x606a85['newValue'];return _0x577e69?{'type':'format','content':o(_0x537929,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x577e69+'\x22')}:{'type':'format','content':o(_0x537929,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382c76=this['editor'],_0x295b09=_0x382c76['locale'];_0x382c76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a3615=>{if('formatBlock'!=_0x1a3615['type']&&'formatInline'!=_0x1a3615['type'])return;const {data:_0xe5fe8b}=_0x1a3615;if(_0xe5fe8b){if('imageTextAlternative'==_0xe5fe8b['commandName']){const _0x15eae1=_0xe5fe8b['commandParams'][0x0]['newValue'];return _0x15eae1?{'type':'format','content':o(_0x295b09,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x15eae1+'\x22')}:{'type':'format','content':o(_0x295b09,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe5fe8b['commandName']){const _0x446572=_0xe5fe8b['commandParams'][0x0]['width'];return _0x446572?{'type':'format','content':o(_0x295b09,'*Set\x20image\x20width:*\x20%0',_0x446572)}:{'type':'format','content':o(_0x295b09,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4313d1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3317b8=this['editor']['locale'],_0x2cd700=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cd700['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2cd700['registerBlockAttribute']('src'),_0x2cd700['descriptionFactory']['registerDescriptionCallback'](_0x42576b=>{if('attribute'!=_0x42576b['type'])return;const {data:_0x3b64d9}=_0x42576b;return _0x3b64d9&&'src'==_0x3b64d9['key']?_0x3b64d9['newValue']&&_0x3b64d9['oldValue']?{'type':'format','content':o(_0x3317b8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x389330=this['editor']['plugins']['get']('TrackChangesEditing');_0x389330['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x389330['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x389330['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x389330['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49e3d8=this['editor'],_0x24bd59=_0x49e3d8['locale'];_0x49e3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25818e=>{if('formatBlock'!=_0x25818e['type']&&'formatInline'!=_0x25818e['type'])return;const {data:_0x28159e}=_0x25818e;if(!_0x28159e||'replaceImageSource'!=_0x28159e['commandName'])return;return{'type':'format','content':o(_0x24bd59,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4313d1{['afterInit'](){const _0x46e467=this['editor'];if(!_0x46e467['plugins']['has']('ImageStyleEditing'))return;const _0x288d12=_0x46e467['plugins']['get']('TrackChangesEditing'),_0x133490=_0x46e467['plugins']['get']('ImageUtils'),_0x2631a8={};_0x288d12['enableCommand']('imageStyle',(_0x833157,_0x251bdc)=>{const _0x404f5f=_0x46e467['plugins']['get']('Users')['me'],_0x55797b=_0x46e467['commands']['get']('imageStyle');let _0x421a25=_0x133490['getClosestSelectedImageElement'](_0x46e467['model']['document']['selection']),_0x42f32e=_0x46e467['model']['createRangeOn'](_0x421a25),_0x1aae13=_0x55797b['value'];if(_0x1aae13==_0x251bdc['value'])return;const _0x3d0237={'commandName':'imageStyle','commandParams':[_0x251bdc],'formatGroupId':_0x2008f5()};_0x46e467['model']['change'](()=>{if(_0x288d12['getSuggestions']()['filter'](_0x4ac57b=>_0x4ac57b['isInContent']&&_0x404f5f==_0x4ac57b['author']&&('formatBlock'==_0x4ac57b['type']||'formatInline'==_0x4ac57b['type'])&&('imageStylePreApply'==_0x4ac57b['subType']||'imageStylePostApply'==_0x4ac57b['subType'])&&_0x4ac57b['getFirstRange']()['isEqual'](_0x42f32e))['forEach'](_0x8588cf=>_0x288d12['discardSuggestion'](_0x8588cf['head'])),_0x421a25=_0x133490['getClosestSelectedImageElement'](_0x46e467['model']['document']['selection']),_0x42f32e=_0x46e467['model']['createRangeOn'](_0x421a25),_0x55797b['refresh'](),_0x46e467['commands']['get']('imageTypeInline')['refresh'](),_0x46e467['commands']['get']('imageTypeBlock')['refresh'](),_0x1aae13=_0x55797b['value'],_0x1aae13!=_0x251bdc['value'])return _0x133490['isInlineImage'](_0x421a25)&&_0x55797b['shouldConvertImageType'](_0x251bdc['value'],_0x421a25)?(_0x833157({..._0x251bdc,'setImageSizes':!0x1}),_0x421a25=_0x133490['getClosestSelectedImageElement'](_0x46e467['model']['document']['selection']),void _0x288d12['markBlockFormat'](_0x421a25,{..._0x3d0237,'commandReversedParams':[{'value':_0x1aae13||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x133490['isBlockImage'](_0x421a25)?_0x288d12['markBlockFormat'](_0x421a25,_0x3d0237,[],'imageStylePostApply'):_0x288d12['markInlineFormat'](_0x42f32e,_0x3d0237,'imageStylePostApply'));});});for(const _0x4a40b6 of _0x46e467['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2631a8[_0x4a40b6['name']]=_0x4a40b6['title']['toLowerCase']();_0x288d12['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x288d12['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x288d12['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x288d12['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59148d])=>{_0x133490['setImageNaturalSizeAttributes'](_0x59148d['getContainedElement']());}),_0x288d12['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d30bb,_0x25a46a)=>{_0x288d12['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d30bb,{'commandName':_0x25a46a['commandName'],'commandParams':_0x25a46a['commandReversedParams']});}),_0x288d12['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2ebd81,_0x347dd0){if(_0x2728cc(_0x2ebd81,_0x347dd0))return[_0x2ebd81,_0x347dd0];if(_0x2728cc(_0x347dd0,_0x2ebd81))return[_0x347dd0,_0x2ebd81];return null;});const _0x8062e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2728cc(_0xa77bca,_0x2303c8){const _0x16ef2d=_0x8062e2['findIndex'](({type:_0x50cd37,subType:_0x408999})=>_0xa77bca['type']==_0x50cd37&&_0xa77bca['subType']==_0x408999),_0x4bf92c=_0x8062e2['findIndex'](({type:_0x8f10a1,subType:_0x21104a})=>_0x2303c8['type']==_0x8f10a1&&_0x2303c8['subType']==_0x21104a);if(_0x16ef2d<0x0||_0x4bf92c<0x0)return!0x1;const _0x4e5ce3=_0xa77bca['getFirstRange'](),_0x33d34c=_0x2303c8['getFirstRange']();if((0x0==_0x16ef2d||0x1==_0x16ef2d)&&0x2==_0x4bf92c&&_0x4e5ce3['isIntersecting'](_0x33d34c))return!0x0;if(0x2==_0x16ef2d&&0x3==_0x4bf92c){const _0x2754c0=_0x288d12['_findSuggestions'](_0x4e5ce3,'insertion')['filter'](({suggestion:_0x4aae60,meta:_0x4be46d})=>_0x4be46d['isOwn']&&'convertInlineImageToBlock'==_0x4aae60['subType']);if(_0x2754c0['length']>0x1&&_0x33d34c['end']['isEqual'](_0x4e5ce3['start']))return!0x0;if(0x1==_0x2754c0['length']&&(_0x4e5ce3['start']['isEqual'](_0x33d34c['end'])||_0x4e5ce3['end']['isEqual'](_0x33d34c['start'])))return!0x0;}if(0x3==_0x16ef2d&&0x3==_0x4bf92c&&_0x4e5ce3['start']['isBefore'](_0x33d34c['start'])){const _0xf3dd83=_0x4e5ce3['end']['nodeAfter'],_0x2fc15a=_0x33d34c['start']['nodeBefore'];return _0x133490['isBlockImage'](_0xf3dd83)&&_0xf3dd83===_0x2fc15a;}return!0x1;}_0x46e467['model']['document']['registerPostFixer'](()=>{let _0x3b2a5f=!0x1;const _0x50aede=Array['from'](_0x46e467['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cb50b,data:_0x474262}of _0x50aede){const {group:_0x39fb16,type:_0x52dc4d,subType:_0xca8513,id:_0x4e5802}=_0x288d12['_splitMarkerName'](_0x1cb50b);if('suggestion'==_0x39fb16&&_0x288d12['hasSuggestion'](_0x4e5802)){if('formatBlock'==_0x52dc4d&&('imageStylePreApply'==_0xca8513||'imageStylePostApply'==_0xca8513)){const _0x81d0bf=_0x288d12['getSuggestion'](_0x4e5802);if(_0x474262['newRange']){const _0x2897de=_0x81d0bf['getFirstRange']()['getContainedElement']();if(_0x133490['isBlockImage'](_0x2897de))continue;_0x288d12['discardSuggestion'](_0x81d0bf),_0x3b2a5f=!0x0;}}if('insertion'==_0x52dc4d&&'imageCaption'==_0xca8513&&!_0x474262['newRange']){const _0xc9413=_0x288d12['getSuggestion'](_0x4e5802);_0xc9413['next']&&_0xc9413['next']['isInContent']&&(_0x288d12['discardSuggestion'](_0xc9413['next']),_0x3b2a5f=!0x0);}}}return _0x3b2a5f;}),this['_registerLegacyDescription'](_0x2631a8);}['_registerLegacyDescription'](_0x38597c){const _0x2ab4a4=this['editor'],_0x325bb9=_0x2ab4a4['locale'];_0x2ab4a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aeef9=>{if('formatBlock'!=_0x2aeef9['type']&&'formatInline'!=_0x2aeef9['type'])return;const {data:_0x5750cf}=_0x2aeef9;if(!_0x5750cf||'imageStyle'!=_0x5750cf['commandName'])return;const _0x5a9443=_0x5750cf['commandParams'][0x0]['value'];return _0xd0df41('side'===_0x5a9443?o(_0x325bb9,'FORMAT_SIDE_IMAGE'):_0x38597c[_0x5a9443]||_0x5a9443);function _0xd0df41(_0x27450f){return{'type':'format','content':o(_0x325bb9,'*Format:*\x20%0',_0x27450f)};}});}}class at extends _0x4313d1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a36c4){super(_0x4a36c4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b58a9=this['editor'],_0x3de69b=_0x4b58a9['commands']['get']('importWord'),_0x357f8c=_0x4b58a9['commands']['get']('trackChanges');_0x3de69b&&(_0x3de69b['on']('execute',(_0x384cf1,[,_0x4eacaa])=>{this['_trackChangesValueDuringImport']=_0x357f8c['value'],_0x4eacaa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3de69b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3de69b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x357f8c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b58a9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x76b588,_0x5b6b81){const {suggestions:_0x1573ae}=_0x5b6b81,_0x4e60fe=this['editor']['commands']['get']('trackChanges'),_0x548bdd=_0x4e60fe['value'];this['_trackChangesValueDuringImport']!==_0x548bdd&&(_0x4e60fe['execute'](),this['_trackChangesExecuted']=!0x0),_0x1573ae&&_0x1573ae['forEach'](({id:_0x5d9c51,type:_0x15e858,author:_0x14f444,created_at:_0x4c7c05})=>{const _0xa98af5={'id':_0x5d9c51,'type':_0x15e858,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x14f444,'createdAt':_0x4c7c05?new Date(_0x4c7c05):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa98af5);});}}class ct extends _0x4313d1{['afterInit'](){const _0x58d178=this['editor'],_0x867a7e=_0x58d178['plugins']['get']('TrackChangesEditing');if(_0x58d178['plugins']['has']('IndentEditing')&&(_0x867a7e['enableCommand']('indent'),_0x867a7e['enableCommand']('outdent')),_0x58d178['plugins']['has']('IndentBlock')){for(const _0x56a0d2 of['indentBlock','outdentBlock'])_0x867a7e['enableDefaultAttributesIntegration'](_0x56a0d2);}const _0x38dacb=_0x58d178['locale'];_0x867a7e['registerBlockAttribute']('blockIndent'),_0x867a7e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x38dacb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59d8c2=this['editor'],_0x35aae1=_0x59d8c2['locale'],_0x3df96a=_0x59d8c2['plugins']['get']('TrackChangesEditing');_0x3df96a['descriptionFactory']['registerDescriptionCallback'](_0x29f9b7=>{if('formatBlock'!=_0x29f9b7['type'])return;const {data:_0x1e30ed}=_0x29f9b7;if(!_0x1e30ed)return;if('indentBlock'!=_0x1e30ed['commandName']&&'outdentBlock'!=_0x1e30ed['commandName'])return;const _0x553c57=_0x29f9b7['getItems']()[0x0],_0x19706d=_0x3df96a['descriptionFactory']['getItemLabel'](_0x553c57);return'indentBlock'==_0x1e30ed['commandName']?{'type':'format','content':o(_0x35aae1,'*Indent:*\x20%0',_0x19706d)}:'outdentBlock'==_0x1e30ed['commandName']?{'type':'format','content':o(_0x35aae1,'*Outdent:*\x20%0',_0x19706d)}:void 0x0;});}}class ut extends _0x4313d1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4313d1{['afterInit'](){const _0x46353f=this['editor'];if(!_0x46353f['plugins']['has']('LinkEditing'))return;const _0x454de8=_0x46353f['plugins']['get']('TrackChangesEditing'),_0x33cea2=_0x46353f['commands']['get']('link');_0x454de8['enableDefaultAttributesIntegration']('link'),_0x454de8['enableDefaultAttributesIntegration']('unlink'),_0x454de8['registerInlineAttribute']('linkHref');for(const _0x51b389 of _0x33cea2['manualDecorators'])_0x454de8['registerInlineAttribute'](_0x51b389['id']),_0x454de8['descriptionFactory']['registerAttributeLabel'](_0x51b389['id'],'link\x20('+_0x51b389['label']['toLowerCase']()+')');_0x454de8['descriptionFactory']['registerDescriptionCallback'](_0x4b4ae6=>{if('attribute'!=_0x4b4ae6['type'])return;const {data:_0x3af26b}=_0x4b4ae6;if(!_0x3af26b||'linkHref'!=_0x3af26b['key'])return;const _0x3c5428=_0x3af26b['newValue'],_0x1aedfd=_0x46353f['locale'];return{'type':'format','content':null==_0x3c5428?o(_0x1aedfd,'*Remove\x20link*'):o(_0x1aedfd,'*Set\x20link:*\x20%0','\x22'+_0x3c5428+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3160bf=this['editor'],_0x47742c=_0x3160bf['locale'];_0x3160bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x238391=>{if('formatInline'!=_0x238391['type'])return;const {data:_0x395d37}=_0x238391;if(_0x395d37){if('link'==_0x395d37['commandName']){const _0xd30913=_0x395d37['commandParams'][0x0];return{'type':'format','content':o(_0x47742c,'*Set\x20link:*\x20%0','\x22'+_0xd30913+'\x22')};}return'unlink'==_0x395d37['commandName']?{'type':'format','content':o(_0x47742c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4313d1{['afterInit'](){const _0x140e23=this['editor'],_0x22e81e=_0x140e23['locale'];if(!_0x140e23['plugins']['has']('LegacyListEditing'))return;const _0x261cf2=_0x140e23['plugins']['get']('TrackChangesEditing'),_0x148ef9=_0x140e23['plugins']['has']('LegacyTodoListEditing');function _0x40cce6(_0x359f3b){return()=>{const _0x1c03eb=_0x140e23['model']['document']['selection'],_0x23f55d=_0x140e23['commands']['get'](_0x359f3b);if(_0x23f55d['value'])return void _0x140e23['execute']('paragraph',{});const _0xabd210=_0x359f3b['slice'](0x0,-0x4),_0x429d03=function(_0x631c9b,_0x2d2024,_0x248459){let _0x5a81f6=Array['from'](_0x631c9b)['filter'](_0x556646=>function(_0x3a2191,_0x127220){return _0x127220['checkChild'](_0x3a2191['parent'],'listItem')&&!_0x127220['isObject'](_0x3a2191);}(_0x556646,_0x248459));_0x5a81f6=_0x5a81f6['filter'](_0x10ddd3=>!_0x10ddd3['is']('element','listItem')||_0x10ddd3['getAttribute']('listType')!=_0x2d2024);const _0x31a462=new Set();for(const _0x33c361 of _0x5a81f6)_0x33c361['is']('element','listItem')?_0x31a462['add'](fe(_0x33c361)):_0x31a462['add'](_0x33c361);return Array['from'](_0x31a462);}(_0x1c03eb['getSelectedBlocks'](),_0xabd210,_0x140e23['model']['schema']);_0x140e23['model']['change'](()=>{for(const _0x2a1b18 of _0x429d03)_0x261cf2['markBlockFormat'](_0x2a1b18,{'commandName':_0x359f3b,'commandParams':[{'forceValue':!_0x23f55d['value']}],'formatGroupId':'blockName'},ue(_0x2a1b18));});};}function _0x4893f1(_0x3c0e8e){return()=>{const _0x5a39a4=function(_0x20d816){let _0x24d68f=Array['from'](_0x20d816);const _0xc02d9d=_0x24d68f['findIndex'](_0x4e1b01=>'listItem'!=_0x4e1b01['name']);return _0xc02d9d>-0x1&&(_0x24d68f=_0x24d68f['slice'](0x0,_0xc02d9d)),_0x24d68f;}(_0x140e23['model']['document']['selection']['getSelectedBlocks']()),_0x12a083=_0x140e23['model']['createRange'](_0x140e23['model']['createPositionAt'](_0x5a39a4[0x0],'before'),_0x140e23['model']['createPositionAt'](_0x5a39a4[_0x5a39a4['length']-0x1],'end'));_0x140e23['model']['change'](()=>{_0x261cf2['markBlockFormat'](_0x12a083,{'commandName':_0x3c0e8e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x51894e){const _0x111450=new Set();for(const _0x575ddf of _0x51894e){let _0x6bc2f2=_0x575ddf['nextSibling'];for(;_0x6bc2f2&&_0x6bc2f2['getAttribute']('listIndent')>_0x575ddf['getAttribute']('listIndent');)_0x111450['add'](_0x6bc2f2),_0x6bc2f2=_0x6bc2f2['nextSibling'];}return Array['from'](_0x111450);}(_0x5a39a4));});};}_0x261cf2['enableCommand']('numberedList',_0x40cce6('numberedList')),_0x261cf2['enableCommand']('bulletedList',_0x40cce6('bulletedList')),_0x148ef9&&_0x261cf2['enableCommand']('todoList',_0x40cce6('todoList')),_0x261cf2['enableCommand']('indentList',_0x4893f1('indentList')),_0x261cf2['enableCommand']('outdentList',_0x4893f1('outdentList')),_0x148ef9&&_0x261cf2['enableCommand']('checkTodoList',()=>{const _0x32430b=_0x140e23['commands']['get']('checkTodoList'),_0x2508c3=Array['from'](_0x32430b['_selectedElements']);_0x2508c3['filter'](_0xbac253=>_0xbac253['getAttribute']('todoListChecked')!=_0x32430b['value']),_0x140e23['model']['change'](()=>{for(const _0x48706c of _0x2508c3)_0x261cf2['markBlockFormat'](_0x48706c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x32430b['value']}]});});}),_0x261cf2['descriptionFactory']['registerElementLabel']('listItem',_0x5c14d3=>o(_0x22e81e,'ELEMENT_LIST_ITEM',_0x5c14d3)),_0x261cf2['descriptionFactory']['registerDescriptionCallback'](_0x3f750d=>{if('formatBlock'!=_0x3f750d['type']&&'formatInline'!=_0x3f750d['type'])return;const {data:_0x7b7c9d}=_0x3f750d;if(_0x7b7c9d){if('numberedList'==_0x7b7c9d['commandName']||'bulletedList'==_0x7b7c9d['commandName']||'todoList'==_0x7b7c9d['commandName'])switch(_0x7b7c9d['commandName']['replace']('List','')){case'bulleted':return _0x323ba9(o(_0x22e81e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x323ba9(o(_0x22e81e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x323ba9(o(_0x22e81e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7b7c9d['commandName'])return{'type':'format','content':o(_0x22e81e,'*Indent:*\x20%0',o(_0x22e81e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7b7c9d['commandName'])return{'type':'format','content':o(_0x22e81e,'*Outdent:*\x20%0',o(_0x22e81e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7b7c9d['commandName'])return _0x7b7c9d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22e81e,'*Check\x20item*')}:{'type':'format','content':o(_0x22e81e,'*Uncheck\x20item*')};}function _0x323ba9(_0x2e3bfa){return{'type':'format','content':o(_0x22e81e,'*Change\x20to:*\x20%0',_0x2e3bfa)};}});}}function fe(_0x235ceb){const _0xe7e6db=_0x235ceb['getAttribute']('listIndent');if(0x0==_0xe7e6db)return _0x235ceb;let _0x58c5af=_0x235ceb;for(;_0x235ceb['previousSibling']&&_0x235ceb['previousSibling']['is']('element','listItem');){const _0x5dbd68=_0x235ceb['previousSibling']['getAttribute']('listIndent');if(_0x5dbd68==_0xe7e6db)_0x58c5af=_0x235ceb['previousSibling'];else{if(_0x5dbd68<_0xe7e6db)break;}_0x235ceb=_0x235ceb['previousSibling'];}return _0x58c5af;}function ue(_0x4e4f09){const _0x549039=[];if(_0x4e4f09['is']('element','listItem')&&_0x4e4f09['getAttribute']('listIndent')>0x0){let _0x4e15e1=_0x4e4f09['nextSibling'];for(;_0x4e15e1&&'listItem'==_0x4e15e1['name']&&_0x4e15e1['getAttribute']('listIndent')==_0x4e4f09['getAttribute']('listIndent');)_0x549039['push'](_0x4e15e1),_0x4e15e1=_0x4e15e1['nextSibling'];}return _0x549039;}class W extends _0x4313d1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x504166=this['editor']['config']['get']('list.properties'),_0x5406bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x504166['styles']&&_0x5406bb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x504166['reversed']&&_0x5406bb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x504166['startIndex']&&_0x5406bb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5406bb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e97f7,_0x8e9e02={}){const _0x455a91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41c098=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x455a91['markMultiRangeBlockFormat'](_0x41c098,{'commandName':'listStyle','commandParams':[{'type':_0x8e9e02['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x22808f,_0x4cd3e6={}){const _0x46360a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3baa36=this['_getSuggestionBlocks'](_0x454403=>_0x454403['is']('element','listItem')&&'numbered'===_0x454403['getAttribute']('listType'));if(_0x3baa36['length']<0x1)return;const _0x1dff3f=_0x3baa36['map'](_0x2e23a2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e23a2,'before'),this['editor']['model']['createPositionAt'](_0x2e23a2,0x0)));this['editor']['model']['change'](()=>{_0x46360a['markMultiRangeBlockFormat'](_0x1dff3f,{'commandName':'listReversed','commandParams':[{'reversed':_0x4cd3e6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x42eef7,_0x323e05={}){const _0x541ecb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24ef1f=this['_getSuggestionBlocks'](_0x5e7fa3=>_0x5e7fa3['is']('element','listItem')&&'numbered'===_0x5e7fa3['getAttribute']('listType'));if(_0x24ef1f['length']<0x1)return;const _0x557805=_0x24ef1f['map'](_0x2b6516=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b6516,'before'),this['editor']['model']['createPositionAt'](_0x2b6516,0x0)));this['editor']['model']['change'](()=>{_0x541ecb['markMultiRangeBlockFormat'](_0x557805,{'commandName':'listStart','commandParams':[{'startIndex':_0x323e05['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4aa521){if('formatBlock'!=_0x4aa521['type']&&'formatInline'!=_0x4aa521['type'])return;const _0xe4af2e=this['editor']['locale'],{data:_0x36204f}=_0x4aa521;if(!_0x36204f)return;let _0x37f97d,_0x21f2b9;switch(_0x36204f['commandName']){case'listStyle':_0x37f97d='*Change\x20to:*\x20%0',_0x21f2b9={'type':'format','content':o(_0xe4af2e,_0x37f97d,o(_0xe4af2e,this['_getTranslationKeyForListStyle'](_0x36204f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37f97d=_0x36204f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21f2b9={'type':'format','content':o(_0xe4af2e,_0x37f97d)};break;case'listStart':_0x37f97d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21f2b9={'type':'format','content':o(_0xe4af2e,_0x37f97d,_0x36204f['commandParams'][0x0]['startIndex'])};}return _0x21f2b9;}['_getSuggestionBlocksForListStyle'](){const _0x5327ce=this['editor']['plugins']['get']('LegacyListUtils');let _0x26622e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x26622e[0x0]?.['is']('element','listItem')&&_0x26622e['unshift'](..._0x5327ce['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x26622e[_0x26622e['length']-0x1]?.['is']('element','listItem')&&_0x26622e['push'](..._0x5327ce['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x26622e=[...new Set(_0x26622e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x26622e=_0x26622e['filter'](_0x3a4f1a=>_0x3a4f1a['is']('element','listItem'))),_0x26622e;}['_getSuggestionBlocks'](_0x32340f){const _0x5c1e46=this['editor']['plugins']['get']('LegacyListUtils');let _0x5956b0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x32340f)['map'](_0x31199f=>{const _0x8c959d=this['editor']['model']['createPositionAt'](_0x31199f,0x0);return[..._0x5c1e46['getSiblingNodes'](_0x8c959d,'backward'),..._0x5c1e46['getSiblingNodes'](_0x8c959d,'forward')];})['flat']();return _0x5956b0=[...new Set(_0x5956b0)],_0x5956b0;}['_getTranslationKeyForListStyle'](_0x4379d0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4379d0)||'default')['toUpperCase']()+'_LIST_'+_0x4379d0['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4313d1{['afterInit'](){const _0x4ad5fe=this['editor'];if(!_0x4ad5fe['plugins']['has']('MediaEmbedEditing'))return;const _0x1efb4b=_0x4ad5fe['plugins']['get']('TrackChangesEditing'),_0x56376a=_0x4ad5fe['locale'];_0x1efb4b['enableCommand']('mediaEmbed'),_0x1efb4b['descriptionFactory']['registerElementLabel']('media',_0x3dd4be=>o(_0x56376a,'ELEMENT_MEDIA',_0x3dd4be)),_0x4ad5fe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cfbd3,{writer:_0x447504,options:_0x42eb6f})=>{if(_0x42eb6f['showSuggestionHighlights'])return _0x447504['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ad5fe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3fec02,_0x3bd783,_0x4858c0)=>{_0x4858c0['options']['showSuggestionHighlights']&&_0x3fec02['stop']();},{'priority':'high'});}}class mt extends _0x4313d1{['afterInit'](){const _0x258a45=this['editor'];_0x258a45['plugins']['has']('MentionEditing')&&_0x258a45['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4313d1{['afterInit'](){const _0x5944e8=this['editor'];if(!_0x5944e8['commands']['get']('insertMergeField'))return;_0x5944e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x5b199a=_0x5944e8['plugins']['get']('TrackChangesEditing'),_0x1b1b8d=_0x5944e8['locale'];_0x5b199a['descriptionFactory']['registerElementLabel']('mergeField',_0x352b47=>o(_0x1b1b8d,'ELEMENT_MERGE_FIELD',_0x352b47)),_0x5b199a['descriptionFactory']['registerDescriptionCallback'](_0x34816a=>{if('insertion'!=_0x34816a['type']&&'deletion'!=_0x34816a['type'])return;const _0x2b547a=_0x34816a['getContainedElement']();if(null==_0x2b547a)return;if(!_0x2b547a['is']('element','mergeField'))return;const _0x436ac9=_0x5944e8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2b547a['getAttribute']('id'));return'insertion'==_0x34816a['type']?{'type':'insertion','content':o(_0x1b1b8d,'*Insert:*\x20%0','\x22'+_0x436ac9+'\x22\x20'+o(_0x1b1b8d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1b1b8d,'*Remove:*\x20%0','\x22'+_0x436ac9+'\x22\x20'+o(_0x1b1b8d,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4313d1{['afterInit'](){const _0xa06dff=this['editor'],_0x4b62ab=_0xa06dff['plugins']['get']('TrackChangesEditing');_0xa06dff['plugins']['has']('MultiLevelList')&&(_0x4b62ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x4b62ab['registerBlockAttribute']('listMarkerStyle'),_0x4b62ab['descriptionFactory']['registerDescriptionCallback'](_0x376397=>this['handleDescriptions'](_0x376397)));}['handleDescriptions'](_0x2bbab5){const _0x58663e=this['editor']['locale'],{data:_0x1f6f4e}=_0x2bbab5,_0x52e01a={'type':'format','content':''};if(_0x1f6f4e&&'listMarkerStyle'==_0x1f6f4e['key']){if(!_0x1f6f4e['oldValue'])return{'type':'format','content':o(_0x58663e,'*Set\x20format:*\x20%0',o(_0x58663e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f6f4e['newValue']+')'};if(!_0x1f6f4e['newValue']){let _0x5784c9=_0x2bbab5['head'];for(;_0x5784c9;){if(_0x5784c9['data']&&'listType'==_0x5784c9['data']['key']&&_0x5784c9['data']['newValue'])return _0x52e01a;_0x5784c9=_0x5784c9['next'];}return{'type':'format','content':o(_0x58663e,'*Remove\x20format:*\x20%0',o(_0x58663e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f6f4e['oldValue']+')'};}}}}class kt extends _0x4313d1{['afterInit'](){const _0x4b020a=this['editor'];if(!_0x4b020a['plugins']['has']('PageBreakEditing'))return;_0x4b020a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2e8fff=_0x4b020a['plugins']['get']('TrackChangesEditing'),_0x54091a=_0x4b020a['locale'];_0x2e8fff['descriptionFactory']['registerElementLabel']('pageBreak',_0x27d1b8=>o(_0x54091a,'ELEMENT_PAGE_BREAK',_0x27d1b8));}}class bt extends _0x4313d1{['afterInit'](){const _0x56423e=this['editor'];if(!_0x56423e['plugins']['has']('Paragraph'))return;const _0x2603de=_0x56423e['locale'],_0xd17a3b=_0x56423e['plugins']['get']('TrackChangesEditing');_0xd17a3b['descriptionFactory']['registerElementLabel']('paragraph',_0x4293d9=>o(_0x2603de,'ELEMENT_PARAGRAPH',_0x4293d9)),_0xd17a3b['enableDefaultAttributesIntegration']('paragraph'),_0xd17a3b['enableCommand']('insertParagraph'),_0x56423e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56423e),{'priority':'highest'}),_0x56423e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2dc559,_0x38a9c8,_0x504a5c)=>{_0x504a5c['options']['showSuggestionHighlights']&&nr(_0x56423e,{'showActiveMarker':!0x1})(_0x2dc559,_0x38a9c8,_0x504a5c);},{'priority':'highest'});const _0x2e0086=_0xd17a3b['descriptionFactory'];_0x2e0086['registerDescriptionCallback'](_0x623ac3=>{if('insertion'!==_0x623ac3['type'])return;const {start:_0x4b4e55,end:_0x3ded5e}=_0x623ac3['getFirstRange']();if(!_0x4b4e55['isTouching'](_0x3ded5e)||!_0x4b4e55['nodeAfter'])return;const _0x2670f3=_0x56423e['model']['schema'],_0x7b2e28=_0x4b4e55['nodeAfter'];return _0x2670f3['isBlock'](_0x7b2e28)&&!_0x2670f3['isLimit'](_0x7b2e28)&&_0x2670f3['checkChild'](_0x7b2e28,'$text')?{'type':'insertion','content':o(_0x2603de,'*Insert:*\x20%0',_0x2e0086['getItemLabel'](_0x7b2e28,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb89e=this['editor'],_0x40d3f3=_0x1cb89e['locale'];_0x1cb89e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x420137=>{if('formatBlock'!=_0x420137['type'])return;const {data:_0x2df49e}=_0x420137;return _0x2df49e&&'paragraph'==_0x2df49e['commandName']?{'type':'format','content':o(_0x40d3f3,'*Change\x20to:*\x20%0',o(_0x40d3f3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x33d547,{showActiveMarker:_0x3a4ef3=!0x0}={}){return(_0x1e968c,_0x5d1602,_0x235f46)=>{const _0x40e38a=_0x33d547['plugins']['get']('TrackChangesEditing'),_0x23b5d7=_0x5d1602['markerRange']['start'],_0x3d0470=_0x5d1602['markerRange']['end'],_0x53bd9b=_0x33d547['model']['schema'];if(!_0x23b5d7['isTouching'](_0x3d0470)||!_0x23b5d7['nodeAfter'])return;const _0x2b9fae=_0x23b5d7['nodeAfter'];if(_0x53bd9b['isBlock'](_0x2b9fae)&&!_0x53bd9b['isLimit'](_0x2b9fae)&&_0x53bd9b['checkChild'](_0x2b9fae,'$text')){if(!_0x235f46['consumable']['consume'](_0x5d1602['markerRange'],_0x1e968c['name']))return;const {authorId:_0x117530}=_0x40e38a['_splitMarkerName'](_0x5d1602['markerName']),_0x48a975=_0x235f46['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x117530}),_0x1b7457=_0x235f46['mapper']['toViewPosition'](_0x3d0470);_0x3a4ef3&&_0x40e38a['activeMarkers']['includes'](_0x5d1602['markerName'])&&_0x235f46['writer']['addClass']('ck-suggestion-marker--active',_0x48a975),_0x235f46['writer']['insert'](_0x1b7457,_0x48a975),_0x235f46['mapper']['bindElementToMarker'](_0x48a975,_0x5d1602['markerName']);}};}class wt extends _0x4313d1{['afterInit'](){const _0x354e8c=this['editor'];if(!_0x354e8c['plugins']['has']('RemoveFormatEditing'))return;_0x354e8c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x502c58=this['editor'];_0x502c58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a401c=>{if('formatBlock'!=_0x3a401c['type']&&'formatInline'!=_0x3a401c['type'])return;const {data:_0x50c680}=_0x3a401c;return _0x50c680&&'removeFormat'==_0x50c680['commandName']?{'type':'format','content':o(_0x502c58['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4313d1{['afterInit'](){const _0x4027ad=this['editor'];if(!_0x4027ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50470e=_0x4027ad['plugins']['get']('TrackChangesEditing');_0x50470e['enableCommand']('goToPreviousRestrictedEditingException'),_0x50470e['enableCommand']('goToNextRestrictedEditingException');const _0x3ba0a7=_0x4027ad['plugins']['get']('RestrictedEditingModeEditing');_0x3ba0a7['enableCommand']('trackChanges'),_0x3ba0a7['enableCommand']('acceptSuggestion'),_0x3ba0a7['enableCommand']('discardSuggestion'),_0x3ba0a7['enableCommand']('acceptAllSuggestions'),_0x3ba0a7['enableCommand']('discardAllSuggestions'),_0x3ba0a7['enableCommand']('acceptSelectedSuggestions'),_0x3ba0a7['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4313d1{static get['requires'](){return[_0x5719ac];}['init'](){const _0x193c6a=this['editor'],_0x56a0ef=_0x193c6a['plugins']['get']('TrackChangesEditing');_0x56a0ef['enableCommand']('shiftEnter'),_0x193c6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x193c6a),{'priority':'high'}),_0x193c6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x193c6a),{'priority':'high'}),_0x193c6a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x411f4a,_0x2e1733,_0x1d38de)=>{_0x1d38de['options']['showSuggestionHighlights']&&ge(_0x193c6a,{'showActiveMarker':!0x1})(_0x411f4a,_0x2e1733,_0x1d38de);}),_0x56a0ef['descriptionFactory']['registerElementLabel']('softBreak',_0x3d3854=>o(_0x193c6a['locale'],'ELEMENT_LINE_BREAK',_0x3d3854));}}function ge(_0x43b1fb,{showActiveMarker:_0xb0d81b=!0x0}={}){return(_0x19be29,_0x325e9d,_0x39a9ce)=>{const _0x43b765=_0x43b1fb['plugins']['get']('TrackChangesEditing');if(!_0x39a9ce['consumable']['test'](_0x325e9d['markerRange'],_0x19be29['name']))return;const _0x32540d=_0x43b1fb['model'];for(const _0x5d8560 of _0x325e9d['markerRange']['getItems']()){if(!_0x5d8560['is']('element','softBreak'))continue;const _0x1dd34c='deletion'==_0x325e9d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c78fc}=_0x43b765['_splitMarkerName'](_0x325e9d['markerName']),_0x170727=_0x39a9ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1dd34c,'data-author-id':_0x1c78fc}),_0x4e3690=_0x39a9ce['mapper']['toViewPosition'](_0x32540d['createPositionBefore'](_0x5d8560));_0xb0d81b&&_0x43b765['activeMarkers']['includes'](_0x325e9d['markerName'])&&_0x39a9ce['writer']['addClass']('ck-suggestion-marker--active',_0x170727),_0x39a9ce['writer']['insert'](_0x4e3690,_0x170727),_0x39a9ce['mapper']['bindElementToMarker'](_0x170727,_0x325e9d['markerName']);}};}class St extends _0x4313d1{['afterInit'](){const _0xf4a85f=this['editor'],_0x338fde=_0xf4a85f['model'],_0x3eac38=_0xf4a85f['locale'];if(!_0xf4a85f['plugins']['has']('StandardEditingModeEditing'))return;const _0x449156=_0xf4a85f['plugins']['get']('TrackChangesEditing'),_0xd1c2ba='restrictedEditingException',_0x200415=_0xf4a85f['commands']['get'](_0xd1c2ba);_0x449156['enableCommand'](_0xd1c2ba,(_0x4ca3ee,_0x453beb={})=>{const _0xe444fd=_0x338fde['document']['selection'];if(_0xe444fd['isCollapsed'])return void _0x4ca3ee(_0x453beb);const _0x25c298=void 0x0!==_0x453beb['forceValue']?_0x453beb['forceValue']:!_0x200415['value'];_0x338fde['change'](()=>{const _0x1fe715=Array['from'](_0xe444fd['getRanges']());for(const _0x2acaa4 of _0x1fe715){const _0x52d0bb=_0x25c298?[_0x2acaa4]:io(_0xd1c2ba,_0x2acaa4,_0x338fde);for(const _0x849f9f of _0x52d0bb)_0x449156['markInlineFormat'](_0x849f9f,{'commandName':_0xd1c2ba,'commandParams':[{'forceValue':_0x25c298}]});}});}),_0x449156['descriptionFactory']['registerDescriptionCallback'](_0x3ff9b0=>{if('formatBlock'!=_0x3ff9b0['type']&&'formatInline'!=_0x3ff9b0['type'])return;const {data:_0x3ba5f6}=_0x3ff9b0;return _0x3ba5f6&&_0x3ba5f6['commandName']==_0xd1c2ba?_0x3ba5f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eac38,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3eac38,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4313d1{['afterInit'](){const _0x357cc7=this['editor'];if(!_0x357cc7['plugins']['has']('Style')||!_0x357cc7['plugins']['has']('DataSchema'))return;const _0x299f67=_0x357cc7['plugins']['get']('TrackChangesEditing'),_0x2ccae4=_0x357cc7['locale'],_0xa5d15f=_0x357cc7['config']['get']('style')||{},_0x2678e7=_0x357cc7['plugins']['get']('GeneralHtmlSupport'),_0x49b767=_0x357cc7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x357cc7['plugins']['get']('DataSchema'),_0xa5d15f['definitions']);_0x299f67['enableDefaultAttributesIntegration']('style');const _0x2c80a8=new Set();for(const _0x3d7e8d of _0x49b767['block']){const _0x2a6d99=_0x2678e7['getGhsAttributeNameForElement'](_0x3d7e8d['element']);_0x2c80a8['add'](_0x2a6d99);}const _0x11a78b=new Set();for(const _0x598707 of _0x49b767['inline']){const _0xd6917a=_0x2678e7['getGhsAttributeNameForElement'](_0x598707['element']);_0x11a78b['add'](_0xd6917a);for(const _0x1dd997 of _0x598707['ghsAttributes'])_0x11a78b['add'](_0x1dd997);}for(const _0x53da82 of _0x2c80a8)_0x299f67['registerBlockAttribute'](_0x53da82),_0x299f67['descriptionFactory']['registerAttributeLabel'](_0x53da82,o(_0x2ccae4,'FORMAT_STYLE'));for(const _0x1ba640 of _0x11a78b)_0x299f67['registerInlineAttribute'](_0x1ba640),_0x299f67['descriptionFactory']['registerAttributeLabel'](_0x1ba640,o(_0x2ccae4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a8db=this['editor'],_0x3ad426=_0x46a8db['locale'];_0x46a8db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2adcf6=>{if('formatBlock'!=_0x2adcf6['type']&&'formatInline'!=_0x2adcf6['type'])return;const {data:_0x3c08d6}=_0x2adcf6;return _0x3c08d6&&'style'===_0x3c08d6['commandName']?_0x3c08d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ad426,'*Set\x20format:*\x20%0',_0x3c08d6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3ad426,'*Remove\x20format:*\x20%0',_0x3c08d6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4313d1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1bf21e){super(_0x1bf21e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x561189=this['editor'],_0x4402d4=_0x561189['model']['document']['selection'];if(!_0x561189['plugins']['has']('TableEditing'))return;const _0x4dfc8c=_0x561189['locale'],_0x4798fc=_0x561189['plugins']['get']('TrackChangesEditing'),_0x15a903=_0x561189['plugins']['get']('TableUtils');_0x4798fc['descriptionFactory']['registerElementLabel']('table',_0x3200ad=>o(_0x4dfc8c,'ELEMENT_TABLE',_0x3200ad)),this['_setupColumnsRowsFixing'](),_0x4798fc['enableCommand']('insertTable'),_0x4798fc['enableCommand']('selectTableRow'),_0x4798fc['enableCommand']('selectTableColumn');for(const _0x24c17c of['insertTableRowAbove','insertTableRowBelow']){const _0x129316=_0x561189['commands']['get'](_0x24c17c);_0x4798fc['enableCommand'](_0x24c17c,_0xb2716=>{_0x561189['model']['change'](_0x6b3e20=>{_0xb2716();const _0x36023a='above'===_0x129316['order'],_0x3a663f=_0x15a903['getSelectionAffectedTableCells'](_0x4402d4),_0x2ed8d1=_0x15a903['getRowIndexes'](_0x3a663f),_0x1f18f2=_0x36023a?_0x2ed8d1['first']-0x1:_0x2ed8d1['last']+0x1,_0x568ea6=_0x3a663f[0x0]['findAncestor']('table'),_0x242c3d=_0x15a903['createTableWalker'](_0x568ea6,{'startRow':_0x1f18f2,'endRow':_0x1f18f2}),_0x27c67f=Array['from'](_0x242c3d)['map'](_0x546cce=>_0x6b3e20['createRangeOn'](_0x546cce['cell']));_0x4798fc['markMultiRangeInsertion'](_0x27c67f,'tableRow');});});}for(const _0x26ebd2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47bc67=_0x561189['commands']['get'](_0x26ebd2);_0x4798fc['enableCommand'](_0x26ebd2,_0x3f3ed7=>{_0x561189['model']['change'](_0x521bb3=>{_0x3f3ed7();const _0x51100a='left'===_0x47bc67['order'],_0x19275d=_0x15a903['getSelectionAffectedTableCells'](_0x4402d4),_0x293311=_0x15a903['getColumnIndexes'](_0x19275d),_0x20f5e1=_0x51100a?_0x293311['first']-0x1:_0x293311['last']+0x1,_0x4e10f2=_0x19275d[0x0]['findAncestor']('table'),_0xc376c2=_0x15a903['createTableWalker'](_0x4e10f2,{'startRow':0x0,'column':_0x20f5e1,'includeAllSlots':!0x1}),_0x453265=Array['from'](_0xc376c2)['map'](_0x509dd7=>_0x521bb3['createRangeOn'](_0x509dd7['cell']));_0x4798fc['markMultiRangeInsertion'](_0x453265,'tableColumn');});});}for(const _0x5154d5 of['removeTableRow','removeTableColumn']){const _0x479afa=_0x5154d5['substr'](0xb),_0x3d8d54=_0x479afa['toLowerCase'](),_0x52391c=_0x3d8d54['substr'](0x0,0x3)+'span',_0x2515c6='table'+_0x479afa,_0x512295='min'+_0x479afa,_0x29cf2b='max'+_0x479afa;_0x4798fc['enableCommand'](_0x5154d5,()=>{_0x561189['model']['change'](_0x1fccba=>{const _0x1a2525=_0x15a903['getSelectionAffectedTableCells'](_0x4402d4),_0x2d0070=_0x1a2525[0x0]['findAncestor']('table');let _0x4151cc;if('removeTableRow'==_0x5154d5){const _0x5a6c18=_0x15a903['getRowIndexes'](_0x1a2525);_0x4151cc={'startRow':_0x5a6c18['first'],'endRow':_0x5a6c18['last'],'includeAllSlots':!0x0};}else{const _0x1fed6d=_0x15a903['getColumnIndexes'](_0x1a2525);_0x4151cc={'startColumn':_0x1fed6d['first'],'endColumn':_0x1fed6d['last'],'includeAllSlots':!0x0};}const _0x2bdc09=_0x15a903['createTableWalker'](_0x2d0070,_0x4151cc),_0x411522=Array['from'](_0x2bdc09)['map'](({cell:_0x5c9252})=>_0x5c9252),_0x59ebf3=be(_0x411522['filter'](_0x31b966=>_0x31b966['hasAttribute'](_0x52391c))),_0x43f920=be(_0x411522['filter'](_0x1e6656=>!_0x1e6656['hasAttribute'](_0x52391c)))['map'](_0x282491=>_0x1fccba['createRangeOn'](_0x282491)),_0x19803b=_0x4798fc['markMultiRangeDeletion'](_0x43f920,_0x2515c6);if(_0x19803b&&('tableRow'==_0x19803b['subType']||'tableColumn'==_0x19803b['subType'])){const _0x16fa46=this['_getSuggestionCoords'](_0x19803b);for(const _0x3c31f9 of _0x59ebf3){const _0x3c4198=_0x1fccba['createRangeOn'](_0x3c31f9),_0xbbae84=_0x15a903['getCellLocation'](_0x3c31f9),_0xdd1782=_0x3c31f9['getAttribute'](_0x52391c)-0x1,_0x58a594=_0x16fa46[_0x512295],_0x3055b2=_0x16fa46[_0x29cf2b];_0x58a594<=_0xbbae84[_0x3d8d54]&&_0xbbae84[_0x3d8d54]+_0xdd1782<=_0x3055b2&&_0x19803b['addRange'](_0x3c4198);}}});});}function _0x4b0536(_0x447a4a){const _0xb270d=Array['from'](_0x4402d4['getRanges']())['map'](_0x21c65e=>_0x41dcaa['fromRange'](_0x21c65e));_0x561189['model']['change'](_0x22c097=>{const _0x5e4db8=_0x22c097['batch'];_0x447a4a=_0x447a4a['filter'](_0x39f655=>'$graveyard'!=_0x39f655['root']['rootName']),_0x22c097['setSelection'](_0x447a4a),_0x561189['commands']['get']('removeTableRow')['refresh'](),_0x561189['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x561189['model']['enqueueChange'](()=>{_0x561189['model']['enqueueChange'](_0x5e4db8,_0x2d6396=>{const _0x5deb90=_0xb270d['filter'](_0x23c61c=>'$graveyard'!=_0x23c61c['root']['rootName']);_0x5deb90['length']>0x0&&_0x2d6396['setSelection'](_0x5deb90);for(const _0x84958d of _0xb270d)_0x84958d['detach']();});});});}function _0x3f2461(_0x5764be){_0x561189['model']['change'](_0x7aae03=>{const _0x4eecf1=Array['from'](_0x4402d4['getRanges']())['map'](_0x4b8c7b=>_0x41dcaa['fromRange'](_0x4b8c7b)),_0x15963e=[];for(const _0x5dfaf9 of _0x5764be)for(const _0x35d8e1 of _0x5dfaf9['getItems']({'shallow':!0x0}))_0x15963e['push'](_0x35d8e1);for(const _0x4fb704 of _0x15963e)'$graveyard'!=_0x4fb704['root']['rootName']&&(_0x7aae03['setSelection'](_0x7aae03['createPositionAt'](_0x4fb704,0x0)),_0x561189['commands']['get']('removeTableColumn')['refresh'](),_0x561189['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1cad53=_0x4eecf1['filter'](_0x399493=>'$graveyard'!=_0x399493['root']['rootName']);_0x1cad53['length']>0x0&&_0x7aae03['setSelection'](_0x1cad53);for(const _0x451b7f of _0x4eecf1)_0x451b7f['detach']();});}function _0x4bd6b9(_0x90ed2,_0x3540b0){return _0x3540b0['every'](_0x2f4625=>_0x90ed2['some'](_0x573064=>_0x573064['end']['isEqual'](_0x2f4625['start'])||_0x2f4625['end']['isEqual'](_0x573064['start'])));}function _0x2f9cb4(_0x5dafae,_0x506e03){return!_0x5dafae['some'](_0x1eecc7=>_0x506e03['some'](_0x80a25a=>_0x1eecc7['isIntersecting'](_0x80a25a)))&&_0x5dafae['some'](_0x2b5c85=>_0x506e03['some'](_0x5a0532=>_0x2b5c85['end']['isTouching'](_0x5a0532['start'])));}_0x561189['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7ab5,_0x40e9b8,_0x14b391)=>{if(!_0x14b391['options']['showSuggestionHighlights'])return;const _0x5923d5=_0x40e9b8['item'];if(!_0x5923d5)return;const _0x4eee79=_0x14b391['mapper']['toViewElement'](_0x5923d5);function _0xe36fd3(_0x423a63){return Array['isArray'](_0x423a63)?_0x423a63:[_0x423a63];}_0x4eee79&&'tableCell'===_0x5923d5['name']&&_0x30ba19(_0x4eee79,_0x14b391['writer'],(_0x65e188,_0x1130e7,_0x356c07)=>_0x356c07['addClass'](_0xe36fd3(_0x1130e7['classes']),_0x65e188),(_0x2cc1b4,_0x2c3453,_0x56897f)=>_0x56897f['removeClass'](_0xe36fd3(_0x2c3453['classes']),_0x2cc1b4));},{'priority':'highest'}),_0x4798fc['descriptionFactory']['registerDescriptionCallback'](_0x274031=>{if('insertion'!=_0x274031['type']&&'deletion'!=_0x274031['type'])return;const _0xa5817b=_0x274031['getContainedElement']();if(null!=_0xa5817b&&_0xa5817b['is']('element','table')){if('insertion'==_0x274031['type']){const _0x5e3cf6=_0x274031['getItems']()['filter'](_0x86742b=>_0x86742b['is']('$textProxy'))['map'](_0x145d67=>_0x145d67['data']);if(_0x5e3cf6['length'])return{'type':'insertion','content':o(_0x4dfc8c,'*Insert:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e3cf6['join']('\x20')+'\x22'))};}if('deletion'==_0x274031['type']){const _0x1506d1=_0x274031['getItems']()['filter'](_0x1a0606=>_0x1a0606['is']('$textProxy'))['map'](_0x3d3af2=>_0x3d3af2['data']);if(_0x1506d1['length'])return{'type':'deletion','content':o(_0x4dfc8c,'*Remove:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1506d1['join']('\x20')+'\x22'))};}}}),_0x4798fc['descriptionFactory']['registerDescriptionCallback'](_0xb5fac4=>{if('tableRow'==_0xb5fac4['subType']){const _0x5ad611=_0xb5fac4['getItems']()['filter'](_0x104d82=>_0x104d82['is']('$textProxy'))['map'](_0x58a28e=>_0x58a28e['data']),_0x4602b4=this['_getSuggestionCoords'](_0xb5fac4),_0x52393b=_0x4602b4['maxRow']-_0x4602b4['minRow']+0x1;if('insertion'==_0xb5fac4['type'])return _0x5ad611['length']?{'type':'insertion','content':o(_0x4dfc8c,'*Insert:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x52393b,'\x22'+_0x5ad611['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4dfc8c,'*Insert:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_ROW',_0x52393b))};if('deletion'==_0xb5fac4['type'])return _0x5ad611['length']?{'type':'deletion','content':o(_0x4dfc8c,'*Remove:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x52393b,'\x22'+_0x5ad611['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4dfc8c,'*Remove:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_ROW',_0x52393b))};}if('tableColumn'==_0xb5fac4['subType']){const _0x3a945a=_0xb5fac4['getItems']()['filter'](_0x17ddb8=>_0x17ddb8['is']('$textProxy'))['map'](_0x10f396=>_0x10f396['data']),_0x475ab9=this['_getSuggestionCoords'](_0xb5fac4),_0x1df257=_0x475ab9['maxColumn']-_0x475ab9['minColumn']+0x1;if('insertion'==_0xb5fac4['type'])return _0x3a945a['length']?{'type':'insertion','content':o(_0x4dfc8c,'*Insert:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1df257,'\x22'+_0x3a945a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4dfc8c,'*Insert:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_COLUMN',_0x1df257))};if('deletion'==_0xb5fac4['type'])return _0x3a945a['length']?{'type':'deletion','content':o(_0x4dfc8c,'*Remove:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1df257,'\x22'+_0x3a945a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4dfc8c,'*Remove:*\x20%0',o(_0x4dfc8c,'ELEMENT_TABLE_COLUMN',_0x1df257))};}}),_0x4798fc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b0536),_0x4798fc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b0536),_0x4798fc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3f2461),_0x4798fc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3f2461),_0x4798fc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4bd6b9),_0x4798fc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4bd6b9),_0x4798fc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f9cb4),_0x4798fc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f9cb4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x212616=this['editor'],_0x235bcc=_0x212616['model']['document']['selection'];return(_0x422e6c,_0x447ab4)=>{_0x212616['model']['change'](_0x4ebb2b=>{const {commandName:_0x31bce2,commandParams:_0x395ce1}=_0x447ab4;let _0x3c7bd4=_0x422e6c[0x0]['end']['nodeBefore'];_0x395ce1&&_0x395ce1[0x0]&&!0x1===_0x395ce1[0x0]['forceValue']&&(_0x3c7bd4=_0x422e6c[0x0]['start']['nodeAfter']);const _0x4590fb=_0x4ebb2b['createRangeIn'](_0x3c7bd4);if('$graveyard'==_0x4590fb['root']['rootName'])return;const _0x49b3cc=Array['from'](_0x235bcc['getRanges']())['map'](_0x11ef7f=>_0x41dcaa['fromRange'](_0x11ef7f));_0x4ebb2b['setSelection'](_0x4590fb),_0x212616['commands']['get'](_0x31bce2)['refresh'](),_0x395ce1['push']({'forceDefaultExecution':!0x0}),_0x212616['execute'](_0x31bce2,..._0x395ce1);const _0xa64212=_0x49b3cc['filter'](_0x51b449=>'$graveyard'!=_0x51b449['root']['rootName']);_0xa64212['length']>0x0&&_0x4ebb2b['setSelection'](_0xa64212);for(const _0x4e37a9 of _0x49b3cc)_0x4e37a9['detach']();});};}['_getCoordsForCells'](_0x588245){const _0x3e1961=this['editor']['plugins']['get']('TableUtils');let _0x859983=Number['MAX_SAFE_INTEGER'],_0x1adcb9=Number['MIN_SAFE_INTEGER'],_0x170e73=Number['MAX_SAFE_INTEGER'],_0x8768b5=Number['MIN_SAFE_INTEGER'];for(const _0x34cb48 of _0x588245){if('$graveyard'==_0x34cb48['root']['rootName'])continue;const {row:_0x5a8fac,column:_0x1642af}=_0x3e1961['getCellLocation'](_0x34cb48),_0x30338a=_0x34cb48['hasAttribute']('rowspan')?_0x34cb48['getAttribute']('rowspan')-0x1:0x0,_0x2c6400=_0x34cb48['hasAttribute']('colspan')?_0x34cb48['getAttribute']('colspan')-0x1:0x0;_0x859983=_0x5a8fac<_0x859983?_0x5a8fac:_0x859983,_0x1adcb9=_0x5a8fac+_0x30338a>_0x1adcb9?_0x5a8fac+_0x30338a:_0x1adcb9,_0x170e73=_0x1642af<_0x170e73?_0x1642af:_0x170e73,_0x8768b5=_0x1642af+_0x2c6400>_0x8768b5?_0x1642af+_0x2c6400:_0x8768b5;}return{'minRow':_0x859983,'maxRow':_0x1adcb9,'minColumn':_0x170e73,'maxColumn':_0x8768b5};}['_setupColumnsRowsFixing'](){const _0x51bc76=this['editor'],_0x24e74b=_0x51bc76['plugins']['get']('TrackChangesEditing'),_0x447bc8=_0x51bc76['plugins']['get']('TableUtils');_0x51bc76['model']['document']['on']('change:data',()=>{const _0x4e8c46=Array['from'](_0x51bc76['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ade86,data:_0x472b4e}of _0x4e8c46){const {group:_0x1acd34,id:_0x3a9e5c,subType:_0x14a25a}=_0x24e74b['_splitMarkerName'](_0x2ade86);if('suggestion'!=_0x1acd34)continue;if(null!=_0x472b4e['oldRange'])continue;const _0x127cd4=_0x24e74b['getSuggestion'](_0x3a9e5c);this['_tablePostFixingSubtypes']['includes'](_0x14a25a)&&this['_tableSuggestions']['add'](_0x127cd4);}},{'priority':'low'});const _0x26a95e=(_0x30e814,_0x431414)=>{let _0x15498c=!0x1;const _0x2f45aa=_0x431414['createRangeOn'](_0x30e814),_0x9ac2c4=_0x30e814['findAncestor']('table'),_0x586f64=_0x447bc8['getCellLocation'](_0x30e814);for(const _0x2bf527 of this['_tableSuggestions']){const _0x44fc32=_0x2bf527['subType'],_0x47a037=_0x44fc32['startsWith']('tablePaste'),_0x534077=_0x44fc32['substr'](_0x47a037?0xa:0x5),_0xc793c0=_0x534077['toLowerCase'](),_0x33b95d=_0xc793c0['substr'](0x0,0x3)+'span',_0x1278df='min'+_0x534077,_0x554579='max'+_0x534077;if(!_0x2bf527['isInContent'])continue;if(_0x9ac2c4!=_0x2bf527['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2bf527['isIntersectingWithRange'](_0x2f45aa))continue;const _0x2db08d=_0x30e814['hasAttribute'](_0x33b95d)?_0x30e814['getAttribute'](_0x33b95d)-0x1:0x0,_0x13f606=this['_getSuggestionCoords'](_0x2bf527),_0x2e7dc9=_0x13f606[_0x1278df],_0x176b74=_0x13f606[_0x554579];_0x2e7dc9<=_0x586f64[_0xc793c0]&&_0x586f64[_0xc793c0]+_0x2db08d<=_0x176b74&&(_0x2bf527['addRange'](_0x2f45aa),_0x15498c=!0x0);}return _0x15498c;};_0x51bc76['model']['document']['registerPostFixer'](_0x4c1d9e=>{let _0x2ae2e8=!0x1;for(const _0xbde169 of _0x51bc76['model']['document']['differ']['getChanges']())if('insert'==_0xbde169['type']){if('tableRow'==_0xbde169['name']){for(const _0x3a0abf of _0xbde169['position']['nodeAfter']['getChildren']())_0x2ae2e8=_0x2ae2e8||_0x26a95e(_0x3a0abf,_0x4c1d9e);}else'tableCell'==_0xbde169['name']&&(_0x2ae2e8=_0x2ae2e8||_0x26a95e(_0xbde169['position']['nodeAfter'],_0x4c1d9e));}return _0x2ae2e8;});}['_getSuggestionCoords'](_0x4435d4){return this['_getCoordsForCells'](_0x4435d4['getRanges']()['map'](_0xc3cf0=>_0xc3cf0['start']['nodeAfter']));}}function be(_0x30c54d){return Array['from'](new Set(_0x30c54d)['values']());}class vt extends _0x4313d1{static get['requires'](){return[It];}['afterInit'](){const _0x59d3ee=this['editor'],_0x778f24=_0x59d3ee['model']['document']['selection'],_0x3fed80=_0x59d3ee['locale'];if(!_0x59d3ee['plugins']['has']('TableEditing'))return;const _0x1dee0d=_0x59d3ee['plugins']['get']('TrackChangesEditing'),_0x1eabf7=_0x59d3ee['plugins']['get']('TableUtils'),_0x33237c=_0x59d3ee['plugins']['get'](It);_0x33237c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1dee0d['enableCommand']('mergeTableCells',()=>{const _0x3bc143=_0x1eabf7['getSelectionAffectedTableCells'](_0x59d3ee['model']['document']['selection']);_0x59d3ee['model']['change'](()=>{_0x1dee0d['markMultiRangeBlockFormat'](_0x3bc143,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x59d3ee['commands']['get']('mergeTableCells')['on']('execute',(_0x497fc7,_0x7259d6)=>{_0x59d3ee['commands']['get']('trackChanges')['value']&&(_0x7259d6['length']>0x0&&_0x7259d6[_0x7259d6['length']-0x1]&&_0x7259d6[_0x7259d6['length']-0x1]['forceDefaultExecution']||_0x1dee0d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x497fc7['stop']());},{'priority':'highest'});for(const _0x5a7e56 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3acec6=_0x59d3ee['commands']['get'](_0x5a7e56);_0x1dee0d['enableCommand'](_0x5a7e56,()=>{const _0x4c277b=_0x59d3ee['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fdf86=>_0x4fdf86['is']('element','tableCell')),_0xb11035=_0x3acec6['value'];_0x59d3ee['model']['change'](()=>{_0x1dee0d['markMultiRangeBlockFormat']([_0x4c277b,_0xb11035],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2a099e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x43b045=_0x59d3ee['commands']['get'](_0x2a099e);_0x1dee0d['enableCommand'](_0x2a099e,()=>{const _0x329b19=_0x1eabf7['getSelectionAffectedTableCells'](_0x59d3ee['model']['document']['selection'])[0x0],_0x3b8e3b=_0x329b19['findAncestor']('table'),{column:_0xf37722,row:_0x2766fc}=_0x1eabf7['getCellLocation'](_0x329b19);let _0x168b5b=[];if('horizontally'==_0x43b045['direction']){const _0x43d83a=_0x1eabf7['createTableWalker'](_0x3b8e3b,{'startRow':_0x2766fc,'endRow':_0x2766fc,'includeAllSlots':!0x0});_0x168b5b=Array['from'](_0x43d83a)['map'](_0x8531d0=>_0x8531d0['cell']);}else{const _0x226076=_0x1eabf7['createTableWalker'](_0x3b8e3b,{'column':_0xf37722,'includeAllSlots':!0x0});_0x168b5b=Array['from'](_0x226076)['map'](_0x54aa47=>_0x54aa47['cell']);}_0x59d3ee['model']['change'](_0x2bbfa4=>{_0x1dee0d['markBlockFormat'](_0x2bbfa4['createRangeOn'](_0x329b19),{'commandName':_0x2a099e,'commandParams':[]},_0x168b5b,_0x2a099e);});});}_0x1dee0d['descriptionFactory']['registerDescriptionCallback'](_0x3518d8=>{if('formatBlock'!=_0x3518d8['type']&&'formatInline'!=_0x3518d8['type'])return;const {data:_0x5da5e6}=_0x3518d8;return _0x5da5e6&&'mergeTableCells'==_0x5da5e6['commandName']?{'type':'format','content':o(_0x3fed80,'*Merge\x20cells*')}:void 0x0;}),_0x1dee0d['descriptionFactory']['registerDescriptionCallback'](_0x14b4df=>{if('formatBlock'!=_0x14b4df['type']&&'formatInline'!=_0x14b4df['type'])return;const {data:_0xee61de}=_0x14b4df;return _0xee61de?'splitTableCellVertically'==_0xee61de['commandName']?{'type':'format','content':o(_0x3fed80,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xee61de['commandName']?{'type':'format','content':o(_0x3fed80,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ae3c9=_0x33237c['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d433c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1dee0d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d433c,'accept',_0x5ae3c9);for(const _0x576dae of['splitTableCellVertically','splitTableCellHorizontally'])_0x1dee0d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x576dae,'accept',_0x5ae3c9);_0x1dee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5bfb7f=>{_0x59d3ee['model']['change'](_0x10b749=>{const _0x2656e2=Array['from'](_0x778f24['getRanges']())['map'](_0x90a79b=>_0x41dcaa['fromRange'](_0x90a79b));_0x10b749['setSelection'](_0x5bfb7f),_0x59d3ee['commands']['get']('mergeTableCells')['refresh'](),_0x59d3ee['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x31c6d9=_0x2656e2['filter'](_0x57eca3=>'$graveyard'!=_0x57eca3['root']['rootName']);_0x31c6d9['length']>0x0&&_0x10b749['setSelection'](_0x31c6d9);for(const _0x4a5e76 of _0x2656e2)_0x4a5e76['detach']();});});for(const _0x5b9d28 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1934ec=_0x59d3ee['commands']['get'](_0x5b9d28);_0x1934ec['on']('set:isEnabled',(_0x64117,_0x2a85ef,_0x4ac164)=>{if(_0x4ac164){const _0x387da2=_0x59d3ee['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ba981=>_0x3ba981['is']('element','tableCell'));this['_areMergableCells'](_0x1934ec['value'],_0x387da2)||(_0x64117['return']=!0x1,_0x64117['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ef8b1=this['editor']['commands']['get']('mergeTableCells'),_0x57efa3=this['editor']['plugins']['get']('TableUtils');if(!_0x1ef8b1['isEnabled'])return!0x1;const _0x48f251=_0x57efa3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xb94c1c of _0x48f251)for(const _0x31cc12 of _0x48f251)if(_0xb94c1c!=_0x31cc12&&!this['_areMergableCells'](_0xb94c1c,_0x31cc12))return!0x1;return!0x0;}['_areMergableCells'](_0x27402b,_0x59c1dc){const _0x4fb4d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b1eca=this['editor']['model']['createRangeOn'](_0x27402b),_0x1d6f12=this['editor']['model']['createRangeOn'](_0x59c1dc),_0x4d5101=new Set(),_0x4634aa=new Set();for(const _0x43a8ed of _0x4fb4d2['getSuggestions']())if(('insertion'==_0x43a8ed['type']||'deletion'==_0x43a8ed['type']||'mergeTableCells'==_0x43a8ed['subType'])&&_0x43a8ed['isInContent']){for(const _0x2ac5ef of _0x43a8ed['getRanges']())_0x2ac5ef['containsRange'](_0x2b1eca,!0x0)&&_0x4d5101['add'](_0x43a8ed['type']+':'+_0x43a8ed['author']['id']),_0x2ac5ef['containsRange'](_0x1d6f12,!0x0)&&_0x4634aa['add'](_0x43a8ed['type']+':'+_0x43a8ed['author']['id']);}if(_0x4d5101['size']!=_0x4634aa['size'])return!0x1;for(const _0x2c54d9 of _0x4d5101)if(!_0x4634aa['has'](_0x2c54d9))return!0x1;return!0x0;}}class Ct extends _0x4313d1{static get['requires'](){return[It];}['afterInit'](){const _0x40fcea=this['editor'];if(!_0x40fcea['plugins']['has']('TableEditing'))return;const _0x16716b=_0x40fcea['locale'],_0x57f7c6=_0x40fcea['plugins']['get']('TrackChangesEditing');_0x57f7c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f7c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f7c6['registerBlockAttribute']('headingRows'),_0x57f7c6['registerBlockAttribute']('headingColumns'),_0x57f7c6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x16716b,'FORMAT_HEADER_ROW')),_0x57f7c6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x16716b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x231ddf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5333f4=this['editor']['plugins']['get']('TableUtils'),_0x29155e=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5ca5c2({showActiveMarker:_0x134440=!0x0,setDataAttribute:_0x517f35=!0x0}={}){return(_0x4ba438,_0x5553c0,_0x359cdf)=>{const {type:_0x19c4b4,id:_0xa47d1c}=_0x231ddf['_splitMarkerName'](_0x5553c0['markerName']),_0x4a23d7=_0x231ddf['getSuggestion'](_0xa47d1c),_0x47924b=_0x4a23d7['data'];if('formatBlock'!=_0x4a23d7['type']||!_0x47924b||'setTableColumnHeader'!=_0x47924b['commandName'])return;if(_0x5553c0['item'])return void _0x4ba438['stop']();if(!_0x359cdf['consumable']['consume'](_0x5553c0['markerRange'],_0x4ba438['name']))return;const _0x8be767=_0x5553c0['markerRange']['start']['nodeAfter'],_0x7e4826=_0x5553c0['markerRange']['end']['nodeBefore'],_0x9544d4=_0x8be767['parent']['parent'],{column:_0x135b95}=_0x5333f4['getCellLocation'](_0x8be767),{column:_0x12a7a2}=_0x5333f4['getCellLocation'](_0x7e4826);for(let _0x359add=_0x135b95;_0x359add<=_0x12a7a2;_0x359add++){const _0x5706fb=_0x5333f4['createTableWalker'](_0x9544d4,{'column':_0x359add,'includeAllSlots':!0x1});for(const _0x1bc8ba of _0x5706fb){const _0x5affd7=_0x1bc8ba['cell'],_0x16d0db=_0x359cdf['mapper']['toViewElement'](_0x5affd7);_0x359cdf['writer']['addClass']('ck-suggestion-marker-'+_0x19c4b4,_0x16d0db),_0x517f35&&_0x359cdf['writer']['setAttribute']('data-suggestion',_0xa47d1c,_0x16d0db),_0x359cdf['mapper']['bindElementToMarker'](_0x16d0db,_0x5553c0['markerName']),_0x134440&&(_0x231ddf['activeMarkers']['includes'](_0x5553c0['markerName'])?_0x359cdf['writer']['addClass']('ck-suggestion-marker--active',_0x16d0db):_0x359cdf['writer']['removeClass']('ck-suggestion-marker--active',_0x16d0db));}}};}_0x231ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29155e),_0x231ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29155e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ca5c2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x250d4c,_0x2b5d52,_0x5a8011)=>{_0x5a8011['options']['showSuggestionHighlights']&&_0x5ca5c2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x250d4c,_0x2b5d52,_0x5a8011);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x350dbe,_0x376678,_0x1e5a69)=>{const {type:_0x183448,id:_0x4c1624}=_0x231ddf['_splitMarkerName'](_0x376678['markerName']),_0x1e8b8c=_0x231ddf['getSuggestion'](_0x4c1624),_0x30da3b=_0x1e8b8c['data'];if('formatBlock'!=_0x1e8b8c['type']||!_0x30da3b||'setTableColumnHeader'!=_0x30da3b['commandName'])return;const _0x1353c1=_0x1e5a69['mapper']['markerNameToElements'](_0x376678['markerName']);if(_0x1353c1){for(const _0x57cdb6 of _0x1353c1)_0x1e5a69['writer']['removeClass']('ck-suggestion-marker-'+_0x183448,_0x57cdb6),_0x1e5a69['writer']['removeClass']('ck-suggestion-marker--active',_0x57cdb6),_0x1e5a69['writer']['removeAttribute']('data-suggestion',_0x57cdb6),_0x1e5a69['mapper']['unbindElementFromMarkerName'](_0x57cdb6,_0x376678['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b32b8=this['editor'],_0x17837d=_0x4b32b8['locale'];function _0xd49a4e(_0x35ab96){return{'type':'format','content':o(_0x17837d,'*Format:*\x20%0',_0x35ab96)};}_0x4b32b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53cb82=>{if('formatBlock'!=_0x53cb82['type'])return;const {data:_0x6840c1}=_0x53cb82;if(_0x6840c1){if('setTableRowHeader'==_0x6840c1['commandName']){const _0xf27fa4=_0x6840c1['commandParams'][0x0]['forceValue'];return _0xd49a4e(o(_0x17837d,_0xf27fa4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x6840c1['commandName']){const _0x8ea39c=_0x6840c1['commandParams'][0x0]['forceValue'];return _0xd49a4e(o(_0x17837d,_0x8ea39c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x1431d0=>[_0x1431d0,null]));class _t extends _0x4313d1{static get['requires'](){return[It];}['afterInit'](){const _0x290e2=this['editor'];if(!_0x290e2['plugins']['has']('TableClipboard'))return;const _0x10710a=_0x290e2['plugins']['get']('TrackChangesEditing'),_0x539072=_0x290e2['plugins']['get']('TableUtils'),_0x7d009d=_0x290e2['plugins']['get'](It),_0x223a9c=_0x290e2['plugins']['get']('TableClipboard');_0x7d009d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x290e2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x290e2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x317d30=null;_0x290e2['model']['on']('insertContent',(_0x3daaa2,_0x420f84)=>{const [_0x237982,_0x2c3cc9]=_0x420f84,_0x2521d7=_0x420f84[_0x420f84['length']-0x1];_0x2521d7&&_0x2521d7['forceDefaultExecution']||_0x10710a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x425997,_0x29b11f,_0x4b3510,_0x4785c7,_0x335a10){if(_0x29b11f&&!_0x29b11f['is']('documentSelection'))return!0x1;const _0x3a7828=_0x335a10['getTableIfOnlyTableInContent'](_0x425997,_0x4b3510);if(!_0x3a7828||!Re(_0x3a7828,void 0x0,_0x4785c7))return!0x1;const _0x29054c=_0x4785c7['getSelectionAffectedTableCells'](_0x4b3510['document']['selection']);if(!_0x29054c['length'])return!0x1;const _0x44749b=_0x29054c[0x0]['findAncestor']('table'),_0x46e946=_0x4785c7['getRowIndexes'](_0x29054c),_0x160d22=_0x4785c7['getColumnIndexes'](_0x29054c),_0x5eea8a={'startRow':_0x46e946['first'],'endRow':_0x46e946['last'],'startColumn':_0x160d22['first'],'endColumn':_0x160d22['last']};return 0x1==_0x29054c['length']&&(_0x5eea8a['endRow']+=_0x4785c7['getRows'](_0x3a7828)-0x1,_0x5eea8a['endColumn']+=_0x4785c7['getColumns'](_0x3a7828)-0x1),Re(_0x44749b,_0x5eea8a,_0x4785c7);}(_0x237982,_0x2c3cc9,_0x290e2['model'],_0x539072,_0x223a9c)&&(_0x3daaa2['stop'](),_0x317d30={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x290e2['model']['change'](()=>{_0x290e2['model']['insertContent'](_0x420f84[0x0],_0x420f84[0x1],_0x420f84[0x2],{'forceDefaultExecution':!0x0});const _0x153ec9=_0x2008f5(),{rowInsertionRanges:_0x47cc08,columnInsertionRanges:_0x212d14,insertionRanges:_0x2e9329,deletionRanges:_0x156002,cells:_0x41671d}=_0x317d30;_0x47cc08['length']&&_0x10710a['markMultiRangeInsertion'](_0x47cc08,'tablePasteRow',{'tablePasteChainId':_0x153ec9}),_0x212d14['length']&&_0x10710a['markMultiRangeInsertion'](_0x212d14,'tablePasteColumn',{'tablePasteChainId':_0x153ec9}),_0x2e9329['length']&&(_0x10710a['markMultiRangeInsertion'](_0x2e9329,'tablePaste',{'tablePasteChainId':_0x153ec9,'skipNestingCheck':!0x0}),_0x2e9329['forEach'](_0x13c05=>_0x13c05['detach']?.())),_0x156002['length']&&(_0x10710a['markMultiRangeDeletion'](_0x156002,'tablePaste',{'tablePasteChainId':_0x153ec9,'skipNestingCheck':!0x0}),_0x156002['forEach'](_0x13679d=>_0x13679d['detach']?.()));const _0x4d0d44=_0x10710a['markMultiRangeBlockFormat'](_0x41671d['map'](({element:_0x797692})=>_0x797692),{'formatGroupId':_0x2008f5()},[],'tablePasteCell',{'tablePasteChainId':_0x153ec9});if(_0x4d0d44){const _0x2ed47a=_0x4d0d44['getMarkers'](),_0x5aed22=[];for(const {element:_0xc9f1f7,attributes:_0xde3ee0}of _0x41671d){if(!_0xde3ee0)continue;const _0x5327cd=_0x290e2['model']['createRangeOn'](_0xc9f1f7),_0x299a9e=_0x2ed47a['find'](_0x30c661=>_0x30c661['getRange']()['isEqual'](_0x5327cd));_0x299a9e&&_0x5aed22['push']([_0x299a9e['name'],_0xde3ee0]);}_0x5aed22['length']&&_0x4d0d44['setAttribute']('markerAttributes',Object['fromEntries'](_0x5aed22));}_0x317d30=null;}));},{'priority':_0x11f5d5['high']+0xa}),_0x290e2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5f5df4,_0x141b9a)=>{const [_0x42105a,_0x567f56,,_0x53acee]=_0x141b9a;if(!_0x317d30)return;_0x5f5df4['stop']();const _0x2cd1c9=_0x42105a['cell'],_0x42de79=_0x567f56,_0x445b05=ke(_0x2cd1c9),_0x4e5d00=ke(_0x42de79);_0x5f5df4['return']=_0x2cd1c9;let _0x43ccce=null,_0x2cb3b9=null;if(_0x4e5d00||_0x445b05){if(_0x445b05&&!_0x4e5d00){_0x53acee['remove'](_0x2cd1c9['getChild'](0x0));for(const _0x4c1a10 of Array['from'](_0x42de79['getChildren']()))_0x53acee['insert'](_0x4c1a10,_0x2cd1c9,'end');const _0x21d9e5=_0x317d30['rowInsertionIndexes']['includes'](_0x42105a['row']),_0x24925a=_0x317d30['columnInsertionIndexes']['includes'](_0x42105a['column']);_0x21d9e5||_0x24925a||(_0x43ccce=_0x41dcaa['fromRange'](_0x53acee['createRangeIn'](_0x2cd1c9)));}else _0x4e5d00&&!_0x445b05&&(_0x2cb3b9=_0x53acee['createRangeIn'](_0x2cd1c9));}else{const _0x4aae82=_0x53acee['createElement']('tableCellSuggestion'),_0x18f717=_0x53acee['createElement']('tableCellSuggestion');_0x53acee['wrap'](_0x53acee['createRangeIn'](_0x2cd1c9),_0x18f717),_0x53acee['insert'](_0x4aae82,_0x2cd1c9,0x0);for(const _0x612bc7 of Array['from'](_0x42de79['getChildren']()))_0x53acee['insert'](_0x612bc7,_0x4aae82,'end');_0x43ccce=_0x41dcaa['fromRange'](_0x53acee['createRangeOn'](_0x4aae82)),_0x2cb3b9=_0x41dcaa['fromRange'](_0x53acee['createRangeOn'](_0x18f717));}const _0x817773=Array['from'](_0x42de79['getAttributes']())['filter'](([_0x1d3b9c])=>Pe['includes'](_0x1d3b9c));_0x317d30['cells']['push']({'element':_0x2cd1c9,'attributes':_0x817773['length']?Object['fromEntries'](_0x817773):null}),_0x43ccce&&_0x317d30['insertionRanges']['push'](_0x43ccce),_0x2cb3b9&&_0x317d30['deletionRanges']['push'](_0x2cb3b9);},{'priority':'high'}),_0x539072['on']('insertColumns',(_0x4d560a,_0x1e117e)=>{const [_0x5c84e1,_0x2a3b6b={}]=_0x1e117e;if(!_0x317d30)return;const _0x2c0ba7=_0x2a3b6b['at']||0x0,_0x55b615=_0x2a3b6b['columns']||0x1;_0x317d30['columnInsertionIndexes']=new Array(_0x55b615)['fill'](_0x2c0ba7)['map']((_0x2b0aca,_0x80355)=>_0x2b0aca+_0x80355);for(const {cell:_0xf7e8b8}of _0x539072['createTableWalker'](_0x5c84e1,{'startColumn':_0x2c0ba7,'endColumn':_0x2c0ba7+_0x55b615-0x1}))_0x317d30['columnInsertionRanges']['push'](_0x290e2['model']['createRangeOn'](_0xf7e8b8));},{'priority':'low'}),_0x539072['on']('insertRows',(_0x4b77b0,_0x366301)=>{const [_0x3c5751,_0x3ccd07={}]=_0x366301;if(!_0x317d30)return;const _0x636908=_0x3ccd07['at']||0x0,_0x281465=_0x3ccd07['rows']||0x1;_0x317d30['rowInsertionIndexes']=new Array(_0x281465)['fill'](_0x636908)['map']((_0xd2e49f,_0x54ce5d)=>_0xd2e49f+_0x54ce5d);for(const {cell:_0x32a28a}of _0x539072['createTableWalker'](_0x3c5751,{'startRow':_0x636908,'endRow':_0x636908+_0x281465-0x1}))_0x317d30['rowInsertionRanges']['push'](_0x290e2['model']['createRangeOn'](_0x32a28a));},{'priority':'low'}),_0x10710a['descriptionFactory']['registerDescriptionCallback'](_0x26ccae=>{if(_0x26ccae['subType']&&_0x26ccae['subType']['startsWith']('tablePaste'))return _0x26ccae['previous']?{}:{'type':'insertion','content':o(_0x290e2['locale'],'*Replace\x20table\x20cells*')};});const _0x281359=()=>!0x1;for(const _0x1ba9e8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x10710a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ba9e8,'join',_0x281359),_0x10710a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ba9e8,'join',_0x281359),_0x10710a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ba9e8,'join',_0x281359);_0x10710a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x281359),_0x10710a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x47e85c,_0x1193a7,_0x553303)=>{const _0x497dc1=_0x47e85c['map'](_0x159fbc=>_0x159fbc['getContainedElement']())['filter'](_0x4a6e9c=>_0x4a6e9c),_0x51234a=new Map(_0x497dc1['map'](_0x36b61f=>[_0x36b61f,null]));if(_0x317d30){for(const {element:_0x1187ed,attributes:_0x453453}of _0x317d30['cells'])_0x453453&&_0x51234a['set'](_0x1187ed,_0x453453);}else{if(_0x553303&&_0x553303['markerAttributes'])for(const [_0x43329b,_0x21e698]of Object['entries'](_0x553303['markerAttributes'])){const _0x145644=_0x290e2['model']['markers']['get'](_0x43329b),_0x5d3798=_0x145644?_0x145644['getRange']()['getContainedElement']():null;_0x5d3798&&_0x51234a['set'](_0x5d3798,_0x21e698);}}_0x290e2['model']['change'](_0x4e5065=>{for(const [_0x3ac4c1,_0x5cdd66]of _0x51234a)_0x4e5065['setAttributes']({...we,..._0x5cdd66},_0x3ac4c1);});});const _0x4e96e2=(_0x28f1f4,_0x29bf1b)=>{_0x10710a['_suggestionFactory']['registerCustomCallback'](_0x28f1f4,'tablePaste',_0x29bf1b,(_0x2d9f56,_0x70dc7d,_0x41063b)=>{_0x290e2['model']['change'](_0x5b3769=>{const _0xb8f1a0=[];for(const _0x5046d7 of _0x2d9f56){const _0x47c9b6=_0x5046d7['start']['nodeAfter'];_0x47c9b6['is']('element','tableCellSuggestion')&&_0xb8f1a0['push'](_0x47c9b6);}_0x10710a['_suggestionFactory']['getSuggestionCallback'](_0x28f1f4,null,_0x29bf1b)(_0x2d9f56,_0x70dc7d,_0x41063b);for(const _0x372601 of _0xb8f1a0)'$graveyard'!=_0x372601['root']['rootName']&&_0x5b3769['unwrap'](_0x372601);});});};_0x4e96e2('insertion','accept'),_0x4e96e2('insertion','discard'),_0x4e96e2('deletion','accept'),_0x4e96e2('deletion','discard'),_0x10710a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa2381f=>{const _0x5dc241=_0xa2381f['map'](_0x9853be=>_0x9853be['getContainedElement']()),_0x13fe1e=_0x5dc241[0x0]['findAncestor']('table'),{minRow:_0x2e0ad6,maxRow:_0x633e3b}=_0x7d009d['_getCoordsForCells'](_0x5dc241);_0x539072['removeRows'](_0x13fe1e,{'at':_0x2e0ad6,'rows':_0x633e3b-_0x2e0ad6+0x1});}),_0x10710a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10265d=>{const _0x3f6edf=_0x10265d['map'](_0x5a8fe1=>_0x5a8fe1['getContainedElement']()),_0x37afb2=_0x3f6edf[0x0]['findAncestor']('table'),{minColumn:_0x443a07,maxColumn:_0x22ad1d}=_0x7d009d['_getCoordsForCells'](_0x3f6edf);_0x539072['removeColumns'](_0x37afb2,{'at':_0x443a07,'columns':_0x22ad1d-_0x443a07+0x1});});const _0x3ecab1=(_0x134b24,_0x4878fc)=>{if(!_0x4878fc['subType']||!_0x4878fc['subType']['startsWith']('tablePaste'))return;const _0x28e745=_0x4878fc['attributes']['tablePasteChainId'],_0x3de8a6=_0x10710a['getSuggestions']()['filter'](_0x57d35b=>_0x57d35b['isInContent']&&_0x57d35b['attributes']&&_0x57d35b['attributes']['tablePasteChainId']==_0x28e745);_0x3de8a6['length']&&_0x4878fc['getAllAdjacentSuggestions']()['length']!=_0x3de8a6['length']&&_0x3de8a6['reduce']((_0x568407,_0x4e1449)=>(_0x568407['next']=_0x4e1449,_0x4e1449['previous']=_0x568407,_0x4e1449));};function _0x917f30(_0x28ab45,_0x3c782b=!0x0){const {id:_0x42a72d,authorId:_0x544135}=_0x10710a['_splitMarkerName'](_0x28ab45['markerName']),_0x172ce4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x296ae2=_0x10710a['activeMarkers']['includes'](_0x28ab45['markerName']);return _0x296ae2&&_0x172ce4['push']('ck-suggestion-marker--active'),{'classes':_0x172ce4,'attributes':{'data-suggestion':_0x42a72d,'data-author-id':_0x544135},'priority':_0x296ae2&&_0x3c782b?0xbc2:0xbb8};}_0x10710a['on']('suggestionLoaded',_0x3ecab1,{'priority':'high'}),_0x10710a['on']('suggestionUnloaded',_0x3ecab1,{'priority':'high'}),_0x290e2['model']['document']['registerPostFixer'](()=>{let _0x4dc16b=!0x1;const _0x3057c=Array['from'](_0x290e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c3793,data:_0x57a8f7}of _0x3057c){const {group:_0x16649c,type:_0xa2ab5e,id:_0x2c584d}=_0x10710a['_splitMarkerName'](_0x1c3793);if('suggestion'!=_0x16649c||'deletion'!=_0xa2ab5e||_0x57a8f7['oldRange'])continue;if(!_0x10710a['hasSuggestion'](_0x2c584d))continue;const _0x5c98be=_0x10710a['getSuggestion'](_0x2c584d)['getRanges'](),_0x580409=_0x290e2['plugins']['get']('Users')['me'];for(const _0x1f10c5 of _0x10710a['getSuggestions']()){if(!_0x1f10c5['isInContent']||_0x1f10c5['author']!=_0x580409)continue;if('formatBlock'!=_0x1f10c5['type']||'tablePasteCell'!=_0x1f10c5['subType'])continue;if(_0x1f10c5['getRanges']()['every'](_0x398fd7=>_0x5c98be['some'](_0x2d54f6=>_0x2d54f6['containsRange'](_0x398fd7,!0x0)))){for(const _0x174246 of _0x1f10c5['getAllAdjacentSuggestions']())_0x174246['isInContent']&&(_0x174246['discard'](),_0x4dc16b=!0x0);}}}return _0x4dc16b;}),_0x290e2['model']['document']['registerPostFixer'](_0x22f0e7=>{const _0x5e4416=_0x290e2['commands']['get']('redo');if(!_0x5e4416||!_0x5e4416['_createdBatches']['has'](_0x22f0e7['batch']))return!0x1;let _0xa49819=!0x1;const _0x2b3c63=_0x290e2['plugins']['get']('Users')['me'],_0x147575=_0x290e2['model']['document']['differ']['getChanges'](),_0x5e07b3=Array['from'](_0x290e2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x14513b,data:_0xcf8525})=>{const {group:_0x94a5f1,subType:_0x28cbbb,authorId:_0x311098}=_0x10710a['_splitMarkerName'](_0x14513b);return'suggestion'==_0x94a5f1&&'tablePaste'==_0x28cbbb&&_0x311098==_0x2b3c63['id']&&!_0xcf8525['oldRange'];});for(const _0x472cef of _0x147575){if('insert'!=_0x472cef['type']||'tableCellSuggestion'!=_0x472cef['name']||0x1!=_0x472cef['length'])continue;const _0x11c41c=_0x22f0e7['createRange'](_0x472cef['position'],_0x472cef['position']['getShiftedBy'](0x1));if(!_0x5e07b3['find'](({data:_0x31c5b3})=>_0x31c5b3['newRange']['isEqual'](_0x11c41c))){for(const {name:_0x85fd38,data:_0x257d2b}of _0x5e07b3)if(_0x11c41c['containsRange'](_0x257d2b['newRange'])){_0x22f0e7['updateMarker'](_0x85fd38,{'range':_0x11c41c}),_0xa49819=!0x0;break;}}}return _0xa49819;}),_0x290e2['model']['document']['registerPostFixer'](_0x45b5d6=>{let _0x570fda=!0x1;const _0x3098f1=_0x290e2['plugins']['get']('Users')['me'],_0x48a65f=_0x10710a['getSuggestions']()['filter'](_0x4a2ff9=>_0x4a2ff9['isInContent']&&_0x4a2ff9['author']==_0x3098f1),_0x3a3de4=new Set(),_0x566c6c=new Set();for(const _0x5cfe33 of _0x48a65f)if('tablePaste'==_0x5cfe33['subType'])for(const _0x24f12f of _0x5cfe33['getMarkers']()){const _0xb34a79=_0x24f12f['getRange']()['getContainedElement']();if(_0xb34a79){if(_0xb34a79['is']('element','tableCellSuggestion')&&ke(_0xb34a79)){_0x5cfe33['removeMarker'](_0x24f12f['name']),_0x3a3de4['add'](_0xb34a79),_0x570fda=!0x0;const _0x29d9d5=_0xb34a79['nextSibling'],_0x528275=_0xb34a79['previousSibling'],_0x362609=_0x29d9d5&&_0x29d9d5['is']('element','tableCellSuggestion'),_0x1a85f8=_0x528275&&_0x528275['is']('element','tableCellSuggestion');_0x362609&&!_0x3a3de4['has'](_0x29d9d5)&&_0x566c6c['add'](_0x29d9d5),_0x1a85f8&&!_0x3a3de4['has'](_0x528275)&&_0x566c6c['add'](_0x528275);}else _0xb34a79['is']('element','paragraph')&&_0xb34a79['isEmpty']&&(_0x5cfe33['removeMarker'](_0x24f12f['name']),_0x570fda=!0x0);}}else{if('tablePasteCell'==_0x5cfe33['subType']){if(!_0x5cfe33['attributes']||!_0x5cfe33['attributes']['tablePasteChainId'])continue;const _0x808e7d=_0x5cfe33['attributes']['markerAttributes'];if(_0x808e7d&&Object['keys'](_0x808e7d)['length'])continue;const _0x9edded=_0x5cfe33['attributes']['tablePasteChainId'];let _0x2d768e=!0x0,_0x47d1be=!0x0;for(const _0x4d5584 of _0x48a65f)if(_0x4d5584['subType']&&_0x4d5584['subType']['startsWith']('tablePaste')){if(!_0x4d5584['attributes']['tablePasteChainId']){_0x47d1be=!0x1;break;}if(_0x4d5584['id']!=_0x5cfe33['id']&&_0x4d5584['attributes']['tablePasteChainId']==_0x9edded){_0x2d768e=!0x1;break;}}_0x47d1be&&_0x2d768e&&(_0x5cfe33['removeMarkers'](),_0x570fda=!0x0);}}for(const _0x2e4b2d of _0x3a3de4)_0x45b5d6['remove'](_0x2e4b2d);for(const _0x236e52 of _0x566c6c)_0x45b5d6['unwrap'](_0x236e52);return _0x570fda;}),_0x290e2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x350bad,_0x2a33b3)=>_0x917f30(_0x350bad),'converterPriority':'high'}),_0x290e2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xe4fe69,_0x2dfade)=>_0x2dfade['options']['showSuggestionHighlights']?_0x917f30(_0xe4fe69,!0x1):null,'converterPriority':'high'});const _0x789584=_0x290e2['editing']['view'];this['listenTo'](_0x789584['document'],'clipboardOutput',(_0x601898,_0x346e77)=>{const _0x599dab=[];for(const _0x23b91e of _0x789584['createRangeIn'](_0x346e77['content'])['getItems']())_0x23b91e['is']('element','suggestion-td')&&_0x599dab['push'](_0x23b91e);_0x789584['change'](_0x3f1101=>{for(const _0xda7b7e of _0x599dab)_0x3f1101['move'](_0x3f1101['createRangeIn'](_0xda7b7e),_0x3f1101['createPositionBefore'](_0xda7b7e)),_0x3f1101['remove'](_0xda7b7e);});});}}function ke(_0x44a434){if(_0x44a434['isEmpty'])return!0x0;const _0x27a06e=_0x44a434['getChild'](0x0);return _0x27a06e['is']('element','paragraph')&&_0x27a06e['isEmpty'];}function Re(_0x5a8cc7,_0x2accf9={},_0x354117){for(const {isAnchor:_0x380cba,cellHeight:_0xfde798,cellWidth:_0x532f1f}of _0x354117['createTableWalker'](_0x5a8cc7,{'includeAllSlots':!0x0,..._0x2accf9}))if(!_0x380cba||0x1!=_0xfde798||0x1!=_0x532f1f)return!0x1;return!0x0;}class Nt extends _0x4313d1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x233915=this['editor']['plugins']['get']('TrackChangesEditing');_0x233915['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x233915['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x233915['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x233915['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x233915['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x233915['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x29c448,_0x322433){const _0x4b7dd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2103f5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x27edf4=_0x322433['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x257fc8=_0x2103f5['getColumnGroupElement'](_0x27edf4);let _0x37716e=_0x257fc8?_0x2103f5['getTableColumnsWidths'](_0x257fc8):null,_0x3a0b0f=_0x27edf4['getAttribute']('tableWidth')||null;const _0x3b31d4=_0x322433['tableWidth']||_0x3a0b0f,_0x112fc5=_0x322433['columnWidths']||_0x37716e,_0x11d6a7=this['editor']['plugins']['get']('Users')['me'];for(const _0xc65a28 of _0x4b7dd5['getSuggestions']()){const _0x1bc173=_0xc65a28['getContainedElement']();if('resizeTable'===_0xc65a28['subType']&&_0x1bc173===_0x27edf4){_0xc65a28['author']!==_0x11d6a7&&_0xc65a28['discard']();const _0x4fa994=_0xc65a28['data']['commandParams'];_0x3a0b0f=_0x4fa994[0x0]['tableWidth'],_0x37716e=_0x4fa994[0x0]['columnWidths'];break;}}_0x29c448({'table':_0x27edf4,'tableWidth':_0x3b31d4,'columnWidths':_0x112fc5}),_0x4b7dd5['markBlockFormat'](_0x27edf4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a0b0f,'columnWidths':_0x37716e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x586e8f){if('formatBlock'!=_0x586e8f['type']&&'formatInline'!=_0x586e8f['type'])return;const {data:_0x19ed80}=_0x586e8f;if(_0x19ed80&&'resizeTable'===_0x19ed80['formatGroupId']){const _0x3a4653='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a4653)};}}}class Dt extends _0x4313d1{['afterInit'](){const _0x5e35ee=this['editor'];_0x5e35ee['plugins']['has']('Template')&&_0x5e35ee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4313d1{['afterInit'](){const _0x512327=this['editor'];if(!_0x512327['commands']['get']('insertTableOfContents'))return;_0x512327['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2b9a1f=_0x512327['plugins']['get']('TrackChangesEditing'),_0x32bcaa=_0x512327['locale'];_0x2b9a1f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x59e2ab=>o(_0x32bcaa,'ELEMENT_TABLE_OF_CONTENTS',_0x59e2ab));}}class $t extends _0x4313d1{['afterInit'](){const _0x5c463a=this['editor'];if(!_0x5c463a['plugins']['has']('Title'))return;const _0x3b9671=_0x5c463a['plugins']['get']('TrackChangesEditing');_0x3b9671['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5c463a['locale'],'ELEMENT_TITLE')),_0x5c463a['model']['document']['registerPostFixer'](_0x411b1d=>{let _0x330d41=!0x1;const _0x586603=Array['from'](_0x5c463a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35d7da,data:_0x547c81}of _0x586603){const {group:_0xc052da}=_0x3b9671['_splitMarkerName'](_0x35d7da);if('suggestion'!==_0xc052da||!_0x547c81['newRange'])continue;const _0x48be77=_0x547c81['newRange'],_0x1cceaf=_0x48be77['end']['nodeBefore'];if(!_0x1cceaf||!_0x1cceaf['is']('element','title-content'))continue;if(!_0x48be77['start']['isTouching'](_0x48be77['end']))continue;const _0x31284c=_0x5c463a['model']['schema']['getNearestSelectionRange'](_0x48be77['end'],'forward');if(_0x31284c&&_0x31284c['isCollapsed']){const _0x495ec4=_0x411b1d['createRange'](_0x48be77['start'],_0x31284c['start']);_0x495ec4['isEqual'](_0x48be77)||(_0x411b1d['updateMarker'](_0x35d7da,{'range':_0x495ec4}),_0x330d41=!0x0);}_0x330d41||(_0x411b1d['removeMarker'](_0x35d7da),_0x330d41=!0x0);}return _0x330d41;});}}class Bt extends _0x4313d1{['afterInit'](){const _0x505e9a=this['editor'],_0x14a42f=_0x505e9a['plugins']['get']('TrackChangesEditing');_0x505e9a['plugins']['has']('UndoEditing')&&(_0x14a42f['enableCommand']('undo'),_0x14a42f['enableCommand']('redo'));}}class xt extends _0x4313d1{static get['requires'](){return[It];}['afterInit'](){const _0x220f93=this['editor'];if(!_0x220f93['plugins']['has']('TableCaptionEditing'))return;_0x220f93['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4313d1{['tableProperties'];['tableCellProperties'];constructor(_0xea73fa){super(_0xea73fa),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 _0x5ded37=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x28eccb of this['tableProperties'])_0x5ded37['enableCommand'](_0x28eccb,(_0x107dd5,_0x26e9a1)=>{const _0x361055=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x28eccb,[_0x361055],this['tableProperties'],'tableProperties',_0x107dd5,_0x26e9a1);});_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ded37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d130d,_0x268841)=>this['handleDiscardAction'](this['tableProperties'],_0x4d130d,_0x268841)),_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xb1c8e of this['tableCellProperties'])_0x5ded37['enableCommand'](_0xb1c8e,(_0x19558b,_0x25dba3)=>{const _0xa7eb6c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xb1c8e,_0xa7eb6c,this['tableCellProperties'],'tableCellProperties',_0x19558b,_0x25dba3);});_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ded37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26dfe2,_0x16b0df)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26dfe2,_0x16b0df)),_0x5ded37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5ded37['descriptionFactory']['registerDescriptionCallback'](_0x11b4e2=>this['handleSuggestionDescription'](_0x11b4e2));}['_handlePropertyChange'](_0x196dfd,_0x3f38de,_0x8f924f,_0x40af3e,_0x586e84,_0xdfd9f9){const _0x521e09=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xdfd9f9['batch'],()=>{for(const _0x3d3b8d of _0x3f38de){if(this['_getSuggestion'](_0x3d3b8d,_0x40af3e))_0x586e84(_0xdfd9f9);else{const _0x53cfa8={};for(const _0x378c16 of _0x8f924f){const _0x440d39=_0x3d3b8d['getAttribute'](_0x378c16);void 0x0!==_0x440d39&&(_0x53cfa8[_0x378c16]=_0x440d39);}_0x586e84(_0xdfd9f9),_0x521e09['markBlockFormat'](_0x3d3b8d,{'commandParams':[_0x53cfa8]},[],_0x40af3e);}}});}['handleDiscardAction'](_0x7b59c0,_0x45cf4e,_0x2065d6){const _0x5e6fee=_0x45cf4e[0x0]['start']['nodeAfter'],_0x4aeec7=_0x2065d6['commandParams'][0x0];this['editor']['model']['change'](_0x4f9e33=>{for(const _0x236192 of _0x7b59c0)void 0x0!==_0x4aeec7[_0x236192]?_0x4f9e33['setAttribute'](_0x236192,_0x4aeec7[_0x236192],_0x5e6fee):_0x4f9e33['removeAttribute'](_0x236192,_0x5e6fee);});}['handleSuggestionDescription'](_0x4c0dc7){if(_0x4c0dc7['data'])switch(_0x4c0dc7['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'](_0x58bc53,_0x4b918e){const _0x2af50d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x588bee of _0x2af50d['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e35d3=_0x588bee['getContainedElement']();if(_0x588bee['subType']===_0x4b918e&&_0x1e35d3===_0x58bc53)return _0x588bee;}return null;}}const m='$elementName';class p extends _0x4313d1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1154aa,_0x3046e1,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(_0x1f2a17){function _0x49ce89(_0x2770f2){return _0x2770f2['map'](_0x362265=>String['fromCharCode'](_0x362265))['join']('');}super(_0x1f2a17),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x25e7ea,_0x503961,_0x292e16,_0x18eb63)=>{this['_model']['change'](()=>{for(const _0x31c072 of[..._0x18eb63,..._0x292e16])this['_model']['markers']['has'](_0x31c072)&&_0x1f2a17['editing']['reconvertMarker'](_0x31c072);});}),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']=_0x1f2a17['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(),_0x1f2a17['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f2a17['config']['get']('trackChanges.trackFormatChanges'),_0x1f2a17['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f2a17['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1f2a17,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x49ce89([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x49ce89([0x34,0x30,0x34,0x38,0x31,0x36,0x33,0x36]);}['init'](){const _0x14d164=this['editor'],_0x37a09b=(_0x38989d,_0x5b7846)=>{if('attribute'!=_0x38989d)return'ck-suggestion-marker-'+_0x38989d;const _0x1b3db2=_0x5b7846['split']('|')[0x0];return this['_isBlockAttribute'](_0x1b3db2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x14d164['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f2784=>{const {id:_0x41c139,authorId:_0x3c0f03,type:_0x1b087a,subType:_0x5a3552}=this['_splitMarkerName'](_0x2f2784['markerName']),_0x2dae64=['ck-suggestion-marker',_0x37a09b(_0x1b087a,_0x5a3552)];let _0x4c4cfe=0xbb8;return this['activeMarkers']['includes'](_0x2f2784['markerName'])&&(_0x2dae64['push']('ck-suggestion-marker--active'),_0x4c4cfe=0xbc2),'deletion'==_0x1b087a&&(_0x4c4cfe+=0x5),{'classes':_0x2dae64,'attributes':{'data-suggestion':_0x41c139,'data-author-id':_0x3c0f03},'priority':_0x4c4cfe};}}),_0x14d164['conversion']['for']('dataDowncast')['add'](_0x4de7dc=>{_0x4de7dc['on']('addMarker:suggestion',(_0x3b1885,_0x4a37b5,_0x238762)=>{if(!_0x238762['options']['showSuggestionHighlights'])return;const _0x1c8682=_0x4a37b5['item'];if(!_0x1c8682)return;const _0x3c286d=_0x238762['mapper']['toViewElement'](_0x1c8682);_0x14d164['model']['schema']['isObject'](_0x1c8682)&&_0x3c286d&&!_0x3c286d['getCustomProperty']('widget')&&_0x3c286d['is']('containerElement')&&_0x12778f(_0x3c286d,_0x238762['writer']);},{'priority':'high'});}),_0x14d164['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a455e,_0x1ed6c6)=>{if(!_0x1ed6c6['options']['showSuggestionHighlights'])return null;const {type:_0x375ac0,subType:_0x38819e}=this['_splitMarkerName'](_0x2a455e['markerName']);return{'classes':['ck-suggestion-marker',_0x37a09b(_0x375ac0,_0x38819e)],'priority':0xbb8};}});const _0x4f8b88=({showActiveMarkers:_0x186591=!0x0,isAttributeSuggestion:_0x53d1c6=!0x1}={})=>(_0x41048c,_0x3018de,_0x255c34)=>{if(!_0x3018de['item'])return;const {id:_0x34f1ed,authorId:_0x5a3de6}=this['_splitMarkerName'](_0x3018de['markerName']);if(_0x53d1c6){const _0x10ca46=this['_suggestions']['get'](_0x34f1ed),_0x944124=this['_getAttributeKey'](_0x10ca46);if(!this['_isBlockAttribute'](_0x944124))return;}if(_0x3018de['item']['is']('selection'))return void _0x255c34['consumable']['consume'](_0x3018de['item'],_0x41048c['name']);const _0x4f7294=_0x255c34['mapper']['toViewElement'](_0x3018de['item']);if(_0x3018de['item']['is']('element')&&_0x14d164['model']['schema']['isBlock'](_0x3018de['item'])&&!_0x4f7294['getCustomProperty']('addHighlight')){_0x255c34['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f7294),_0x255c34['writer']['setAttribute']('data-suggestion',_0x34f1ed,_0x4f7294),_0x255c34['writer']['setAttribute']('data-author-id',_0x5a3de6,_0x4f7294),_0x255c34['mapper']['bindElementToMarker'](_0x4f7294,_0x3018de['markerName']),_0x186591&&(this['activeMarkers']['includes'](_0x3018de['markerName'])?_0x255c34['writer']['addClass']('ck-suggestion-marker--active',_0x4f7294):_0x255c34['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7294));for(const _0x28041c of _0x14d164['model']['createRangeIn'](_0x3018de['item'])['getItems']())_0x255c34['consumable']['consume'](_0x28041c,_0x41048c['name']);_0x255c34['consumable']['consume'](_0x3018de['item'],_0x41048c['name']);}};_0x14d164['conversion']['for']('dataDowncast')['add'](_0xff7b13=>{_0xff7b13['on']('addMarker:suggestion:formatBlock',(_0x1e6069,_0x50c50a,_0x13fc99)=>{_0x13fc99['options']['showSuggestionHighlights']&&_0x4f8b88({'showActiveMarkers':!0x1})(_0x1e6069,_0x50c50a,_0x13fc99);},{'priority':'highest'});}),_0x14d164['conversion']['for']('dataDowncast')['add'](_0x338b30=>{_0x338b30['on']('addMarker:suggestion:attribute',(_0x13915c,_0x3e879f,_0x4287d2)=>{_0x4287d2['options']['showSuggestionHighlights']&&_0x4f8b88({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x13915c,_0x3e879f,_0x4287d2);},{'priority':'highest'});}),_0x14d164['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x46de93,_0x1f7675)=>_0x1f7675['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x46de93['substr'](0xb)}}),_0x14d164['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x488328,{writer:_0x2060b2})=>{let _0x1dd98e='suggestion:'+_0x488328['getAttribute']('suggestion-type')+':'+_0x488328['getAttribute']('id');return _0x488328['getAttribute']('marker-count')&&(_0x1dd98e+=':'+_0x488328['getAttribute']('marker-count')),_0x2060b2['createElement']('$marker',{'data-name':_0x1dd98e});}}),_0x14d164['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x14d164['conversion']['for']('editingDowncast')['add'](_0x1720e3=>{_0x1720e3['on']('addMarker:suggestion:formatBlock',_0x4f8b88(),{'priority':'high'});}),_0x14d164['conversion']['for']('editingDowncast')['add'](_0x588dfe=>{_0x588dfe['on']('addMarker:suggestion:attribute',_0x4f8b88({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x14d164['conversion']['for']('editingDowncast')['add'](_0x4d4162=>{_0x4d4162['on']('removeMarker:suggestion:formatBlock',(_0x5d7b45,_0x3249aa,_0x3f0442)=>{const _0x509269=_0x3f0442['mapper']['markerNameToElements'](_0x3249aa['markerName']);if(_0x509269){for(const _0x463dac of _0x509269)_0x463dac['getCustomProperty']('addHighlight')||(_0x3f0442['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x463dac),_0x3f0442['writer']['removeAttribute']('data-suggestion',_0x463dac),_0x3f0442['writer']['removeAttribute']('data-author-id',_0x463dac),_0x3f0442['mapper']['unbindElementFromMarkerName'](_0x463dac,_0x3249aa['markerName']));}},{'priority':'high'});}),_0x14d164['conversion']['for']('editingDowncast')['add'](_0x2021fa=>{_0x2021fa['on']('removeMarker:suggestion:attribute',(_0x46daab,_0x349dac,_0x2c8cb1)=>{const _0x39415e=_0x2c8cb1['mapper']['markerNameToElements'](_0x349dac['markerName']);if(!_0x39415e)return;const {id:_0x5663d4}=this['_splitMarkerName'](_0x349dac['markerName']),_0x29d317=this['_suggestions']['get'](_0x5663d4),_0x5c3ff0=this['_getAttributeKey'](_0x29d317);if(this['_isBlockAttribute'](_0x5c3ff0)){for(const _0xa9ebfd of _0x39415e)_0xa9ebfd['getCustomProperty']('addHighlight')||(_0x2c8cb1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xa9ebfd),_0x2c8cb1['writer']['removeAttribute']('data-suggestion',_0xa9ebfd),_0x2c8cb1['writer']['removeAttribute']('data-author-id',_0xa9ebfd),_0x2c8cb1['mapper']['unbindElementFromMarkerName'](_0xa9ebfd,_0x349dac['markerName']));}},{'priority':'high'});}),_0x14d164['model']['document']['registerPostFixer'](_0xe14d6c=>{let _0x3edb67=!0x1;const _0x246f54=Array['from'](_0x14d164['model']['document']['differ']['getChangedMarkers']()),_0x5e99bb=new Set();for(const {name:_0x132333,data:_0x5416a1}of _0x246f54){const {group:_0x3da503,type:_0x454d00,subType:_0x46eaa5,id:_0x2ccce3}=this['_splitMarkerName'](_0x132333);if('suggestion'!==_0x3da503)continue;const _0x7ab3cd=this['_suggestions']['get'](_0x2ccce3);if(null!=_0x5416a1['newRange']){'formatInline'==_0x454d00&&(_0x3edb67=_0x3edb67||Ut(_0x5416a1['newRange'],_0x132333,_0xe14d6c,_0x14d164['model']['schema']));const _0x580c57='attribute'==_0x454d00&&this['_isBlockAttribute'](_0x46eaa5['split']('|')[0x0]);if(_0x5416a1['newRange']['isCollapsed']||'$graveyard'==_0x5416a1['newRange']['root']['rootName']||'formatBlock'==_0x454d00&&!Ft(_0x5416a1['newRange'])||_0x580c57&&!Ft(_0x5416a1['newRange'])||'deletion'==_0x454d00&&!(!Vt(_0x4f02e1=_0x5416a1['newRange'])&&!function(_0x57efac){return _0x57efac['start']['parent']==_0x57efac['end']['nodeBefore']&&_0x57efac['start']['isAtEnd'];}(_0x4f02e1)))_0xe14d6c['removeMarker'](_0x132333),_0x3edb67=!0x0;else{if(!_0x7ab3cd||!_0x7ab3cd['isInContent'])continue;if(_0x5416a1['newRange']&&_0x5416a1['oldRange']&&_0x5416a1['newRange']['isEqual'](_0x5416a1['oldRange']))continue;_0x5e99bb['add'](_0x7ab3cd);}}}var _0x4f02e1;return _0x5e99bb['size']>0x0&&(_0x3edb67=!!this['_joinWithAdjacentSuggestions'](_0x5e99bb)||_0x3edb67),_0x3edb67;}),_0x14d164['model']['document']['registerPostFixer'](_0x47c8eb=>{let _0x473cb1=!0x1;for(const _0x3b3fe6 of _0x14d164['model']['document']['differ']['getChanges']())if('insert'==_0x3b3fe6['type'])for(const _0x1bf7cf of this['_suggestions']['values']()){if(_0x1bf7cf['isMultiRange']||!_0x1bf7cf['isInContent'])continue;const _0x1d5edf='formatBlock'==_0x1bf7cf['type'],_0x3dd8d4=this['_getAttributeKey'](_0x1bf7cf),_0x8b0f36=_0x3dd8d4&&this['_isBlockAttribute'](_0x3dd8d4);if(!_0x1d5edf&&!_0x8b0f36)continue;const _0x27b1b1=_0x1bf7cf['getFirstRange']();if(_0x27b1b1['start']['parent']!=_0x27b1b1['end']['parent']&&!_0x27b1b1['end']['isAtEnd']){const _0x4bfdc7=_0x14d164['model']['createPositionAt'](_0x27b1b1['start']['nodeAfter'],'end'),_0xaea630=_0x14d164['model']['createRange'](_0x27b1b1['start'],_0x4bfdc7);_0x47c8eb['updateMarker'](_0x1bf7cf['getFirstMarker'](),{'range':_0xaea630}),_0x473cb1=!0x0;}}return _0x473cb1;}),_0x14d164['model']['document']['registerPostFixer'](_0x3c424c=>this['_processAttributeChanges'](_0x3c424c)),_0x14d164['model']['document']['registerPostFixer'](_0x2c9363=>!_0x2c9363['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2c9363)),_0x14d164['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x14d164['model']['document']['on']('change:data',(_0x47434b,_0x468747)=>{if(!_0x468747['isLocal']||_0x468747['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4c0b30=_0x14d164['model']['document']['differ']['getChanges']();if(0x0==_0x4c0b30['length'])return;const _0x375f78=[],_0x5c7aa9=_0x4c0b30['filter'](_0x1e7d48=>'attribute'==_0x1e7d48['type']),_0xe33fda=_0x4c0b30['filter'](_0x38d241=>'insert'==_0x38d241['type']&&'$text'!=_0x38d241['name']);for(const _0x508fbe of _0x5c7aa9)this['_isRegisteredAttribute'](_0x508fbe['attributeKey'])&&_0x375f78['push']({'key':_0x508fbe['attributeKey'],'newValue':_0x508fbe['attributeNewValue'],'oldValue':_0x508fbe['attributeOldValue'],'range':Pt(_0x508fbe['range'],_0x14d164['model'])});for(const _0x2718f9 of _0xe33fda){if('rename'!=_0x2718f9['action']&&'refresh'!=_0x2718f9['action'])continue;const _0xe49bb1=Lt(_0x2718f9['position']['nodeAfter'],_0x14d164['model']),_0x4f57a7=_0x2718f9['before'];'rename'==_0x2718f9['action']&&_0x375f78['push']({'key':m,'newValue':_0x2718f9['name'],'oldValue':_0x4f57a7['name'],'range':_0xe49bb1});for(const [_0x1b4864,_0xe6910]of _0x4f57a7['attributes']){if(!this['_isRegisteredAttribute'](_0x1b4864))continue;const _0x91a2e4=_0x2718f9['attributes']['get'](_0x1b4864);_0xe6910!==_0x91a2e4&&_0x375f78['push']({'key':_0x1b4864,'newValue':_0x91a2e4,'oldValue':_0xe6910,'range':_0xe49bb1});}for(const [_0x2588ce,_0x1385ca]of _0x2718f9['attributes'])this['_isRegisteredAttribute'](_0x2588ce)&&(_0x4f57a7['attributes']['has'](_0x2588ce)||_0x375f78['push']({'key':_0x2588ce,'newValue':_0x1385ca,'oldValue':null,'range':_0xe49bb1}));}0x0!=_0x375f78['length']&&_0x14d164['model']['enqueueChange'](_0x468747,_0x33fa2f=>{const _0x408fa0=_0x2008f5();for(const {range:_0x193d7d,key:_0x517c77,oldValue:_0x5c4966,newValue:_0x5ac71d}of _0x375f78)this['markAttributeChange'](_0x193d7d,_0x517c77,_0x5c4966,_0x5ac71d,{'groupId':_0x408fa0});this['_reduceExistingSuggestions'](_0x33fa2f,_0x375f78);});},{'priority':'lowest'}),_0x14d164['model']['markers']['on']('update:suggestion',(_0x13443f,_0x5e6bdc,_0x1c0fac)=>{if(null==_0x1c0fac){const {id:_0x55ffed}=this['_splitMarkerName'](_0x5e6bdc['name']),_0x41e047=this['_suggestions']['get'](_0x55ffed);_0x41e047&&_0x41e047['addMarkerName'](_0x5e6bdc['name']);}}),_0x14d164['model']['document']['on']('change:data',()=>{const _0x2ea1d4=Array['from'](_0x14d164['model']['document']['differ']['getChangedMarkers']())['filter'](_0x48e8f4=>'suggestion'===this['_splitMarkerName'](_0x48e8f4['name'])['group']);if(0x0===_0x2ea1d4['length'])return;_0x2ea1d4['sort']((_0xd09445,_0x29372a)=>{const _0x59d6ac=_0xd09445['data']['oldRange'],_0x1d5830=_0x29372a['data']['oldRange'];return null===_0x59d6ac&&null===_0x1d5830?0x0:null===_0x59d6ac&&null!==_0x1d5830?-0x1:null!==_0x59d6ac&&null===_0x1d5830?0x1:_0x59d6ac['start']['isBefore'](_0x1d5830['start'])?-0x1:0x1;});const _0x56fbfc=new Set(),_0x36c1d5=new Set();for(const {name:_0x53432d,data:_0x50806e}of _0x2ea1d4){const {id:_0x36b04d}=this['_splitMarkerName'](_0x53432d);if(null===_0x50806e['oldRange']){const _0x370b03=this['_handleNewSuggestionMarker'](_0x53432d);_0x36c1d5['add'](_0x370b03);}else{const _0x497791=this['_suggestions']['get'](_0x36b04d);null!==_0x50806e['newRange']||_0x497791['isInContent']?(_0x56fbfc['add'](_0x497791['head']),_0x36c1d5['add'](_0x497791)):this['_removeSuggestion'](_0x497791);}}_0x36c1d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x36c1d5);for(const _0x4368f1 of _0x56fbfc)this['fire']('suggestionChanged',_0x4368f1);}),_0x14d164['model']['on']('applyOperation',(_0x300cb8,_0x147c99)=>{const _0x19f128=_0x147c99[0x0];if(!this['_suggestions']['size'])return;if(!_0x19f128['isDocumentOperation'])return;if(_0x19f128['batch']['isUndo']||!_0x19f128['batch']['isLocal'])return;let _0x1bb547,_0x116a03;switch(_0x19f128['type']){case'insert':_0x1bb547=_0x14d164['model']['createPositionAt'](_0x19f128['position']),_0x116a03=_0x1bb547['getShiftedBy'](_0x19f128['howMany']);break;case'split':_0x1bb547=_0x14d164['model']['createPositionAt'](_0x19f128['splitPosition']),_0x116a03=_0x14d164['model']['createPositionAt'](_0x19f128['moveTargetPosition']);break;case'move':_0x1bb547=_0x14d164['model']['createPositionAt'](_0x19f128['targetPosition']),_0x116a03=_0x1bb547['getShiftedBy'](_0x19f128['howMany']);break;default:return;}const _0x1a6167=_0x14d164['model']['createRange'](_0x1bb547,_0x116a03);_0x14d164['model']['change'](()=>{for(const {suggestion:_0x2bfa5c,meta:_0x2f9287}of this['_findSuggestions'](_0x1a6167)){if(_0x2bfa5c['isMultiRange'])continue;if('formatInline'==_0x2bfa5c['type'])continue;const _0x540492=this['_getAttributeKey'](_0x2bfa5c);if(_0x540492&&this['_isBlockAttribute'](_0x540492)&&'split'!=_0x19f128['type'])continue;const _0x5d38e3=_0x2bfa5c['data']&&_0x2bfa5c['data']['multipleBlocks'];('formatBlock'!=_0x2bfa5c['type']||'split'==_0x19f128['type']&&!_0x5d38e3)&&(_0x2f9287['containsRangeInObject']||'insertion'==_0x2bfa5c['type']&&_0x2f9287['isOwn']||_0x2bfa5c['getFirstRange']()['containsRange'](_0x1a6167)&&this['_breakSuggestionMarker'](_0x2bfa5c,_0x1bb547,_0x116a03));}});},{'priority':'lowest'}),_0x14d164['model']['on']('deleteContent',(_0x3150cf,_0x2fa9a2)=>{const _0x5067c9=_0x2fa9a2[0x0],_0x10e35f=_0x2fa9a2[0x1];if(_0x10e35f&&_0x10e35f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5067c9['isCollapsed'])return;const _0x283ae0=_0x14d164['model']['schema'],{start:_0x577fee,end:_0x51de89}=_0x5067c9['getFirstRange'](),_0x59b9c8=_0x577fee['nodeAfter']&&_0x283ae0['isLimit'](_0x577fee['nodeAfter'])?null:_0x283ae0['getNearestSelectionRange'](_0x577fee,'forward'),_0x243dfd=_0x51de89['nodeBefore']&&_0x283ae0['isLimit'](_0x51de89['nodeBefore'])?null:_0x283ae0['getNearestSelectionRange'](_0x51de89,'backward'),_0x5f50a6=_0x14d164['model']['createRange'](_0x59b9c8?_0x59b9c8['start']:_0x577fee,_0x243dfd?_0x243dfd['end']:_0x51de89);_0x14d164['model']['change'](_0x400a7e=>{this['markDeletion'](_0x5f50a6);const _0x16e804=_0x14d164['model']['schema']['getNearestSelectionRange'](_0x5f50a6['start']);_0x5067c9['is']('documentSelection')?_0x400a7e['setSelection'](_0x16e804):_0x5067c9['setTo'](_0x16e804);}),_0x3150cf['stop']();},{'priority':_0x11f5d5['normal']+0xa}),_0x14d164['model']['on']('insertContent',(_0x57de17,_0x22a42d)=>{const _0x244472=_0x22a42d[_0x22a42d['length']-0x1];_0x244472&&_0x244472['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x14d164['model']['change'](()=>{let _0x37bd86=_0x14d164['model']['insertContent'](_0x22a42d[0x0],_0x22a42d[0x1],_0x22a42d[0x2],{'forceDefaultExecution':!0x0});if(!_0x37bd86)return;_0x57de17['return']=_0x37bd86['clone']();const _0x219833=_0x37bd86['end']['nodeBefore'],_0x1845b1=_0x14d164['model']['schema'];_0x219833&&_0x1845b1['isBlock'](_0x219833)&&!_0x1845b1['isObject'](_0x219833)&&(_0x37bd86=_0x14d164['model']['createRange'](_0x37bd86['start'],_0x14d164['model']['createPositionAt'](_0x219833,'end'))),this['markInsertion'](_0x37bd86);}),_0x57de17['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x7f70a8=new x(_0x14d164,this['_suggestions']);_0x14d164['commands']['add']('acceptSuggestion',_0x7f70a8),this['enableCommand']('acceptSuggestion');const _0x525abe=new R(_0x14d164,this['_suggestions']);_0x14d164['commands']['add']('discardSuggestion',_0x525abe),this['enableCommand']('discardSuggestion'),_0x14d164['commands']['add']('acceptAllSuggestions',new E(_0x14d164,_0x7f70a8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x14d164['commands']['add']('discardAllSuggestions',new E(_0x14d164,_0x525abe,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x14d164['commands']['add']('acceptSelectedSuggestions',new O(_0x14d164,_0x7f70a8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x14d164['commands']['add']('discardSelectedSuggestions',new O(_0x14d164,_0x525abe,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4010d4=_0x14d164['plugins']['get']('CommentsRepository');this['listenTo'](_0x4010d4,'addComment',(_0x27ab80,{threadId:_0x4129ca})=>{const _0x315b4d=this['_suggestions']['get'](_0x4129ca);_0x315b4d&&_0x315b4d['commentThread']&&0x1===_0x315b4d['commentThread']['length']&&this['_updateSuggestionData'](_0x4129ca,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4010d4,'removeComment',(_0x39bbd7,{threadId:_0x448a0d})=>{const _0x5a28fc=this['_suggestions']['get'](_0x448a0d);_0x5a28fc&&_0x5a28fc['commentThread']&&!_0x5a28fc['commentThread']['length']&&this['_updateSuggestionData'](_0x448a0d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x27fbc7){if(this['_adapter'])throw new _0x1a398d('track-changes-adapter-already-set',this);this['_adapter']=_0x27fbc7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6e4537=!0x1,toJSON:_0xbacbe6=!0x1}={}){const _0x4cfc80=[];for(const _0x119713 of this['_suggestions']['values']())_0x6e4537&&!_0x119713['isInContent']||_0x4cfc80['push'](_0x119713);return _0xbacbe6?_0x4cfc80['map'](_0xdc7372=>_0xdc7372['toJSON']()):_0x4cfc80;}['getSuggestion'](_0x2ecad3){const _0x1f74b5=this['_suggestions']['get'](_0x2ecad3);if(!_0x1f74b5)throw new _0x1a398d('track-changes-suggestion-not-found',this);return _0x1f74b5;}['hasSuggestion'](_0x53d37f){return this['_suggestions']['has'](_0x53d37f);}['addSuggestionData'](_0x14b7a2){const {authorId:_0x98bfa1,id:_0x140b71,attributes:_0xafc212}=_0x14b7a2,[_0x5c0a16,_0xa1540c]=_0x14b7a2['type']['split'](':'),_0xc3361b=this['_suggestions']['get'](_0x140b71)||this['_createSuggestion'](_0x5c0a16,_0xa1540c,_0x140b71,_0x98bfa1,_0xafc212);if(this['_addThreadToSuggestion'](_0xc3361b),this['_checkSuggestionCorrectness'](_0xc3361b,_0x5c0a16,_0xa1540c||null,_0x98bfa1),_0xc3361b['createdAt']=_0x14b7a2['createdAt'],_0xc3361b['_isDataLoaded']=!0x0,_0xafc212&&_0xafc212['@external']){const _0x5963f0=_0xafc212['@external'],_0xd927af=this['_getExternalAuthor'](_0x5963f0['authorName']);_0xc3361b['authoredAt']=_0x5963f0['createdAt'],_0xc3361b['author']=_0xd927af,_0xc3361b['isExternal']=!0x0;}else _0xc3361b['authoredAt']=_0x14b7a2['createdAt'];switch(_0x14b7a2['data']&&(_0xc3361b['data']=_0x14b7a2['data']),_0x14b7a2['attributes']&&(_0xc3361b['attributes']=_0x14b7a2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xc3361b['_saved']=!0x0),this['_suggestionState']['get'](_0xc3361b)){case'notReady':this['_suggestionState']['set'](_0xc3361b,'dataReady');break;case'markerReady':_0xc3361b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xc3361b])),this['_refreshSuggestionsChain'](new Set([_0xc3361b])),this['_suggestionState']['set'](_0xc3361b,'ready'),this['fire']('suggestionLoaded',_0xc3361b)):this['_suggestionState']['set'](_0xc3361b,'removed');}return _0xc3361b;}['acceptSuggestion'](_0x22fa90){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x331fc9 of _0x22fa90['getAllAdjacentSuggestions']())_0x331fc9['accept']();});});}['discardSuggestion'](_0x7a60c6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46ec05 of _0x7a60c6['getAllAdjacentSuggestions']())_0x46ec05['discard']();});});}['enableCommand'](_0x599cd4,_0x102f2f){const _0x36a58d=this['editor']['commands']['get'](_0x599cd4);if(!_0x36a58d)throw new _0x1a398d('track-changes-command-not-found',this,{'commandName':_0x599cd4});if(this['_enabledCommands']['has'](_0x36a58d))throw new _0x1a398d('track-changes-enable-command-twice',this,{'commandName':_0x599cd4});this['_enabledCommands']['add'](_0x36a58d),_0x102f2f&&_0x36a58d['on']('execute',(_0x52fe61,_0x31542b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31542b['length']>0x0&&_0x31542b[_0x31542b['length']-0x1]&&_0x31542b[_0x31542b['length']-0x1]['forceDefaultExecution']?_0x31542b['pop']():(_0x52fe61['return']=_0x102f2f((..._0x3b8f46)=>_0x36a58d['execute'](..._0x3b8f46,{'forceDefaultExecution':!0x0}),..._0x31542b),_0x52fe61['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf47084){let _0x4686b3,_0x241567;const _0x51957c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4686b3=_0xf47084();}catch(_0x1d4f02){_0x241567=_0x1d4f02;}return _0x51957c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x241567&&_0x1a398d['rethrowUnexpectedError'](_0x241567,this),_0x4686b3;}['markInsertion'](_0x59ed9e,_0x320950=null,_0x3642f2={}){if(_0x59ed9e['isCollapsed'])return null;const _0x26295e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x378f27,meta:_0x34e918}of this['_findSuggestions'](_0x59ed9e,'insertion'))if(_0x34e918['isOwn']){if(!_0x34e918['isNextTo']){if(_0x34e918['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x378f27,_0x3642f2))continue;return _0x378f27;}if(qt(_0x378f27,_0x3642f2))return _0x378f27;this['_breakSuggestionMarker'](_0x378f27,_0x59ed9e['start'],_0x59ed9e['end']);break;}if(_0x320950==_0x378f27['subType']&&qt(_0x378f27,_0x3642f2)){const _0x3fda82=_0x378f27['getFirstRange']();return _0x3fda82['start']['isEqual'](_0x59ed9e['end'])?this['_setSuggestionRange'](_0x378f27,this['_model']['createRange'](_0x59ed9e['start'],_0x3fda82['end'])):this['_setSuggestionRange'](_0x378f27,this['_model']['createRange'](_0x3fda82['start'],_0x59ed9e['end'])),_0x378f27;}}const _0x46d2c4=_0x2008f5(),_0x27a0b2=_0x26295e['id'],_0x395100=_0x320950?'insertion:'+_0x320950:'insertion',_0xb963ff=this['_setSuggestionData']({'id':_0x46d2c4,'type':_0x395100,'createdAt':new Date(),'authorId':_0x27a0b2,'attributes':_0x3642f2});return this['_addSuggestionMarker'](_0x395100,_0x46d2c4,_0x27a0b2,_0x59ed9e),_0xb963ff;}['markMultiRangeInsertion'](_0x2eabd4,_0x11bafc='multi',_0x2017e1={}){const _0xb560fd=this['editor']['plugins']['get']('Users')['me'],_0x291c8a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x11bafc,'join');for(const _0x22648a of this['getSuggestions']())if(_0x22648a['author']['id']==_0xb560fd['id']&&'insertion'==_0x22648a['type']&&_0x22648a['subType']==_0x11bafc&&qt(_0x22648a,_0x2017e1)&&(_0x291c8a(_0x22648a['getRanges'](),_0x2eabd4)||_0x291c8a(_0x2eabd4,_0x22648a['getRanges']()))){for(const _0x18792d of _0x2eabd4)_0x22648a['addRange'](_0x18792d);return _0x22648a;}for(const {suggestion:_0x11e018,meta:_0x16fcfc}of this['_findSuggestions'](_0x2eabd4,'insertion')){if(!_0x16fcfc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16fcfc['containsRangeInObject'])continue;if(!qt(_0x11e018,_0x2017e1))continue;let _0x1654e2=!0x0;for(const _0x20e75c of _0x11e018['getRanges']())for(const _0x3eb64f of _0x2eabd4)if(!_0x20e75c['containsRange'](_0x3eb64f)){_0x1654e2=!0x1;break;}if(_0x1654e2)return _0x11e018;}const _0x4100b6=_0x2008f5(),_0xf509d1=_0xb560fd['id'],_0xa09a6b='insertion:'+_0x11bafc,_0x43bd98=this['_setSuggestionData']({'id':_0x4100b6,'type':_0xa09a6b,'createdAt':new Date(),'authorId':_0xf509d1,'attributes':_0x2017e1});for(const _0x705e0a of _0x2eabd4)this['_addSuggestionMarker'](_0xa09a6b,_0x4100b6,_0xf509d1,_0x705e0a,u['getMultiRangeId']());return _0x43bd98;}['markInlineFormat'](_0x167923,_0x52fb1f,_0xa2f973=null,_0x13b0a3={}){if(_0xa2f973=_0xa2f973||Gt(_0x52fb1f),_0x167923['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57bed7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa2f973,'accept');return this['forceDefaultExecution'](()=>_0x57bed7([_0x167923],_0x52fb1f,_0x13b0a3)),null;}const _0x1a1ef4=this['editor']['plugins']['get']('Users')['me'],_0x1d0014=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4e7d32,meta:_0x496ad1}of this['_findSuggestions'](_0x167923,'insertion'))_0x496ad1['isOwn']&&!_0x496ad1['isInsideObject']&&_0x1d0014['push'](..._0x4e7d32['getRanges']());}const _0x3ec226=function(_0x25081c,_0x2ce6a7){const _0xc1bf0d=[];for(const _0x592619 of _0x2ce6a7){const _0x5a8f98=_0x25081c['getIntersection'](_0x592619);_0x5a8f98&&_0xc1bf0d['push'](_0x5a8f98);}return _0xc1bf0d;}(_0x167923,_0x1d0014),_0x127c57=function(_0x3e4097,_0x23164f){const _0x40a19b=[_0x3e4097];for(const _0x3383b9 of _0x23164f){let _0x3f841b=0x0;for(;_0x3f841b<_0x40a19b['length'];){const _0x56a55b=_0x40a19b[_0x3f841b]['getDifference'](_0x3383b9);_0x40a19b['splice'](_0x3f841b,0x1,..._0x56a55b),_0x3f841b+=_0x56a55b['length'];}}return _0x40a19b;}(_0x167923,_0x1d0014);_0x3ec226['length']&&this['_model']['change'](()=>{for(const _0x40e762 of _0x3ec226){const _0x5eb5e0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa2f973,'accept');this['forceDefaultExecution'](()=>_0x5eb5e0([_0x40e762],_0x52fb1f,_0x13b0a3));}});for(const _0x536a51 of _0x127c57){let _0x234a60=null,_0x5ce004=_0x536a51['start'],_0x1578d0=_0x536a51['end'];for(const {suggestion:_0x14b6a5,meta:_0x19e314}of this['_findSuggestions'](_0x536a51,'formatInline')){if(!_0x19e314['isOwn'])continue;if(_0x14b6a5['subType']!=_0xa2f973)continue;if(!qt(_0x14b6a5,_0x13b0a3))continue;const _0xaf53cf=_0x14b6a5['getFirstRange']();if(_0xaf53cf['containsRange'](_0x536a51,!0x0))return null;_0x5ce004=_0x5ce004['isBefore'](_0xaf53cf['start'])?_0x5ce004:_0xaf53cf['start'],_0x1578d0=_0x1578d0['isAfter'](_0xaf53cf['end'])?_0x1578d0:_0xaf53cf['end'],_0x234a60?_0xaf53cf['start']['isBefore'](_0x234a60['getFirstRange']()['start'])?(_0x234a60['removeMarkers'](),_0x234a60=_0x14b6a5):_0x14b6a5['removeMarkers']():_0x234a60=_0x14b6a5;}const _0x47cb37=this['_model']['createRange'](_0x5ce004,_0x1578d0);if(_0x234a60)this['_setSuggestionRange'](_0x234a60,_0x47cb37);else{const _0x52d61d=_0x2008f5(),_0x16d7fa=_0x1a1ef4['id'];this['_setSuggestionData']({'id':_0x52d61d,'type':'formatInline:'+_0xa2f973,'data':_0x52fb1f,'createdAt':new Date(),'authorId':_0x16d7fa,'attributes':_0x13b0a3}),this['_addSuggestionMarker']('formatInline:'+_0xa2f973,_0x52d61d,_0x16d7fa,_0x47cb37);}}return null;}['markBlockFormat'](_0x2f3423,_0x4ab25f,_0x3d8891=[],_0x36426c=null,_0x1695e1={}){_0x4ab25f['formatGroupId']||(_0x4ab25f['formatGroupId']=_0x4ab25f['commandName']),_0x4ab25f['multipleBlocks']=_0x2f3423['is']('range'),_0x36426c=_0x36426c||Gt(_0x4ab25f);const _0xc7934a=_0x3d8891['map'](_0x465b91=>Lt(_0x465b91,this['_model'])),_0x406048=_0x2f3423['is']('range')?_0x2f3423:Lt(_0x2f3423,this['_model']);if('never'===this['_trackFormatChanges']){const _0x45fb77=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36426c,'accept');return this['forceDefaultExecution'](()=>_0x45fb77([_0x406048],_0x4ab25f,_0x1695e1)),null;}_0xc7934a['push'](_0x406048);let _0x5e9486=!0x0;for(const _0x29f4b3 of _0xc7934a)if(!this['_rangeIsInLocalUserInsertion'](_0x29f4b3)){_0x5e9486=!0x1;break;}if(_0x5e9486&&'always'!==this['_trackFormatChanges']){const _0x5c8898=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36426c,'accept');return this['forceDefaultExecution'](()=>_0x5c8898([_0x406048],_0x4ab25f,_0x1695e1)),null;}let _0x16ad19=null,_0x5a70e8=_0x406048['start'],_0x469d26=_0x406048['end'];for(const {suggestion:_0x38e139,meta:_0x516368}of this['_findSuggestions'](_0x406048,'formatBlock')){if(!_0x516368['isOwn'])continue;if(_0x516368['isNextTo']||_0x516368['containsRangeInObject']||_0x516368['isInsideObject'])continue;if(_0x38e139['data']['formatGroupId']!=_0x4ab25f['formatGroupId'])continue;if(!qt(_0x38e139,_0x1695e1))continue;const _0xe95e9a=_0x38e139['getFirstRange']();if(_0x38e139['subType']==_0x36426c){if(_0xe95e9a['containsRange'](_0x406048,!0x0))return null;_0x5a70e8=_0x5a70e8['isBefore'](_0xe95e9a['start'])?_0x5a70e8:_0xe95e9a['start'],_0x469d26=_0x469d26['isAfter'](_0xe95e9a['end'])?_0x469d26:_0xe95e9a['end'],_0x16ad19?_0xe95e9a['start']['isBefore'](_0x16ad19['getFirstRange']()['start'])?(_0x16ad19['removeMarkers'](),_0x16ad19=_0x38e139):_0x38e139['removeMarkers']():_0x16ad19=_0x38e139;}else{const _0x200489=_0x406048['getIntersection'](_0xe95e9a);this['_cutOutSuggestionMarker'](_0x38e139,_0x200489);}}const _0x17d053=this['editor']['plugins']['get']('Users')['me'],_0x4e4c0d=_0x2008f5(),_0x412385=_0x17d053['id'];if(_0x16ad19)return this['_setSuggestionRange'](_0x16ad19,this['_model']['createRange'](_0x5a70e8,_0x469d26)),_0x16ad19;{const _0x598b48=this['_setSuggestionData']({'id':_0x4e4c0d,'type':'formatBlock:'+_0x36426c,'data':_0x4ab25f,'createdAt':new Date(),'authorId':_0x412385,'attributes':_0x1695e1});return this['_addSuggestionMarker']('formatBlock:'+_0x36426c,_0x4e4c0d,_0x412385,this['_model']['createRange'](_0x5a70e8,_0x469d26)),_0x598b48;}}['markMultiRangeBlockFormat'](_0x14f748,_0x2256da,_0x5e6c8c=[],_0x14db8b=null,_0x30bf43={}){_0x2256da['formatGroupId']||(_0x2256da['formatGroupId']=_0x2256da['commandName']);const _0x4d84eb=_0x14f748[0x0];_0x2256da['multipleBlocks']=_0x4d84eb['is']('range'),_0x14db8b=_0x14db8b||Gt(_0x2256da);const _0x14de07=_0x5e6c8c['map'](_0x5f5b31=>Lt(_0x5f5b31,this['_model'])),_0x22c4c4=_0x4d84eb['is']('range')?_0x14f748:_0x14f748['map'](_0x5b0550=>Lt(_0x5b0550,this['_model']));if('never'===this['_trackFormatChanges']){const _0xcd7ebc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14db8b,'accept');return this['forceDefaultExecution'](()=>_0xcd7ebc(_0x22c4c4,_0x2256da,_0x30bf43)),null;}_0x14de07['push'](..._0x22c4c4);let _0x491f38=!0x0;for(const _0x12f837 of _0x14de07)if(!this['_rangeIsInLocalUserInsertion'](_0x12f837)){_0x491f38=!0x1;break;}if(_0x491f38&&'always'!==this['_trackFormatChanges']){const _0x2af6be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14db8b,'accept');return this['forceDefaultExecution'](()=>_0x2af6be(_0x22c4c4,_0x2256da,_0x30bf43)),null;}const _0x116dee=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f586c of this['getSuggestions']()){if(_0x3f586c['author']['id']!=_0x116dee['id'])continue;if('formatBlock'!=_0x3f586c['type']||_0x3f586c['data']['formatGroupId']!=_0x2256da['formatGroupId'])continue;if(!qt(_0x3f586c,_0x30bf43))continue;const _0x1513b5=_0x3f586c['subType']==_0x14db8b;for(let _0x285faa=0x0;_0x285faa<_0x22c4c4['length'];_0x285faa++){const _0x46df0b=_0x22c4c4[_0x285faa];for(const _0x14f65a of _0x3f586c['getMarkers']()){const _0x2c6fd3=_0x14f65a['getRange']();if(_0x46df0b['isEqual'](_0x2c6fd3)){_0x1513b5?(_0x22c4c4['splice'](_0x285faa,0x1),_0x285faa--):_0x3f586c['removeMarker'](_0x14f65a['name']);break;}}}}if(0x0==_0x22c4c4['length'])return null;const _0x2a256d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14db8b,'join');for(const _0x25a468 of this['getSuggestions']())if(_0x25a468['author']['id']==_0x116dee['id']&&'formatBlock'==_0x25a468['type']&&_0x25a468['data']['formatGroupId']==_0x2256da['formatGroupId']&&_0x25a468['subType']==_0x14db8b&&qt(_0x25a468,_0x30bf43)&&(_0x2a256d(_0x25a468['getRanges'](),_0x22c4c4)||_0x2a256d(_0x22c4c4,_0x25a468['getRanges']()))){for(const _0x817685 of _0x22c4c4)_0x25a468['addRange'](_0x817685);return _0x25a468;}const _0x17aa68=_0x2008f5(),_0x15faf1=_0x116dee['id'],_0x529db6='formatBlock:'+_0x14db8b,_0x2bec38=this['_setSuggestionData']({'id':_0x17aa68,'type':_0x529db6,'data':_0x2256da,'createdAt':new Date(),'authorId':_0x15faf1,'attributes':_0x30bf43});for(const _0x715346 of _0x22c4c4)this['_addSuggestionMarker'](_0x529db6,_0x17aa68,_0x15faf1,_0x715346,u['getMultiRangeId']());return _0x2bec38;}['markDeletion'](_0x182f9f,_0x2996ac=null,_0x218e6={}){if(_0x182f9f['isCollapsed'])return null;const _0x1712c2=this['editor']['plugins']['get']('Users')['me'],_0x549597=new _0x41dcaa(_0x182f9f['start'],_0x182f9f['end']);for(const {suggestion:_0xb695b4,meta:_0x10ee2e}of this['_findSuggestions'](_0x549597,'insertion'))if(_0x10ee2e['isOwn']&&!_0x10ee2e['isNextTo']){if(_0xb695b4['isMultiRange']){const _0x28c347=_0xb695b4['getRanges']()['filter'](_0x4d7a37=>'$graveyard'!=_0x4d7a37['root']['rootName']);_0x28c347['every'](_0x4ab6f9=>_0x549597['containsRange'](_0x4ab6f9,!0x0))&&_0xb695b4['discard']();if(_0x28c347['some'](_0x130c17=>_0x130c17['containsRange'](_0x549597,!0x0))){const _0x367e5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2996ac,'accept');return this['forceDefaultExecution'](()=>_0x367e5b([_0x549597],null,_0x218e6)),null;}}else{const _0x104120=_0x549597['getIntersection'](_0xb695b4['getFirstRange']());null!==_0x104120&&_0xb695b4['_onDiscard']([_0x104120],null,_0x218e6);}}if(_0x549597['detach'](),_0x549597['isCollapsed']||'$graveyard'==_0x549597['root']['rootName'])return null;let _0x314ef9=null,_0x5ce9b9=_0x549597['start'],_0xebc4db=_0x549597['end'];const _0x3b21e8=this['_findSuggestions'](_0x549597,'deletion');for(const {suggestion:_0x46e75d,meta:_0x31b028}of _0x3b21e8){const _0x280e14=this['_model']['createRange'](_0x5ce9b9,_0xebc4db);if(_0x31b028['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31b028['containsRangeInObject']&&!_0x31b028['isInsideObject'])){if(_0x46e75d['isMultiRange']){if(!qt(_0x46e75d,_0x218e6))continue;let _0x43efd0=!0x0;for(const _0x4c17a2 of _0x46e75d['getRanges']()){if(_0x4c17a2['containsRange'](_0x280e14,!0x0))return _0x46e75d;_0x280e14['containsRange'](_0x4c17a2)||(_0x43efd0=!0x1);}_0x43efd0&&_0x46e75d['discard']();}else{const _0x280d85=_0x46e75d['getFirstRange']();if(_0x280d85['containsRange'](_0x280e14,!0x0))return _0x46e75d;if(!qt(_0x46e75d,_0x218e6)){_0x280e14['containsRange'](_0x280d85)?_0x46e75d['removeMarkers']():_0x280d85['containsPosition'](_0x5ce9b9)?_0x5ce9b9=_0x280d85['end']:_0x280d85['containsPosition'](_0xebc4db)&&(_0xebc4db=_0x280d85['start']);continue;}_0x5ce9b9=_0x5ce9b9['isBefore'](_0x280d85['start'])?_0x5ce9b9:_0x280d85['start'],_0xebc4db=_0xebc4db['isAfter'](_0x280d85['end'])?_0xebc4db:_0x280d85['end'],_0x218e6=Object['assign']({},_0x46e75d['attributes']),_0x314ef9?_0x280d85['start']['isBefore'](_0x314ef9['getFirstRange']()['start'])?(_0x314ef9['removeMarkers'](),_0x314ef9=_0x46e75d):_0x46e75d['removeMarkers']():_0x314ef9=_0x46e75d;}}}if(_0x314ef9)return this['_setSuggestionRange'](_0x314ef9,this['_model']['createRange'](_0x5ce9b9,_0xebc4db)),_0x314ef9;{const _0x2d35ad=_0x2008f5(),_0x1e1838=this['_model']['createRange'](_0x5ce9b9,_0xebc4db),_0x7ddbca=_0x1712c2['id'],_0x204715=_0x2996ac?'deletion:'+_0x2996ac:'deletion',_0x5b65b=this['_setSuggestionData']({'id':_0x2d35ad,'type':_0x204715,'createdAt':new Date(),'authorId':_0x7ddbca,'attributes':_0x218e6});return this['_addSuggestionMarker'](_0x204715,_0x2d35ad,_0x7ddbca,_0x1e1838),_0x5b65b;}}['markMultiRangeDeletion'](_0xe8127b,_0x46d922='multi',_0x3627b5={}){const _0x1d9b1a=this['editor']['plugins']['get']('Users')['me'],_0x2384c3=_0xe8127b['map'](_0x3568de=>new _0x41dcaa(_0x3568de['start'],_0x3568de['end'])),_0x1dbb6b=new Set();for(const {suggestion:_0x21644e,meta:_0x2645e8}of this['_findSuggestions'](_0x2384c3,'insertion'))_0x2645e8['isOwn']&&!_0x2645e8['isNextTo']&&_0x1dbb6b['add'](_0x21644e);for(const _0x16cd45 of _0x1dbb6b)if(_0x16cd45['isMultiRange']){const _0x45f447=_0x16cd45['getRanges']();(!_0x16cd45['attributes']||!_0x16cd45['attributes']['skipNestingCheck'])&&(_0x45f447['every'](_0x3cb33d=>_0x2384c3['some'](_0x47434d=>_0x47434d['containsRange'](_0x3cb33d,!0x0)))&&_0x16cd45['discard']());if(_0x2384c3['every'](_0x553c14=>_0x45f447['some'](_0x2a27e3=>_0x2a27e3['containsRange'](_0x553c14,!0x0)))){const _0x3f528b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46d922,'accept');return this['forceDefaultExecution'](()=>_0x3f528b(_0xe8127b,null,_0x3627b5)),null;}}else{const _0x34f21f=_0x16cd45['getFirstRange']();_0x2384c3['some'](_0x5d1f42=>_0x5d1f42['containsRange'](_0x34f21f,!0x0))&&_0x16cd45['discard']();if(_0x2384c3['every'](_0x5686d3=>_0x34f21f['containsRange'](_0x5686d3,!0x0))){const _0xc513f6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46d922,'accept');return this['forceDefaultExecution'](()=>_0xc513f6(_0x2384c3,null,_0x3627b5)),null;}}const _0x12817d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46d922,'join');let _0x23aaab=null;for(const _0x15cad7 of this['getSuggestions']())if(_0x15cad7['author']['id']==_0x1d9b1a['id']&&_0x15cad7['isInContent']&&'deletion'==_0x15cad7['type']&&_0x15cad7['subType']==_0x46d922&&qt(_0x15cad7,_0x3627b5)&&(_0x12817d(_0x15cad7['getRanges'](),_0x2384c3)||_0x12817d(_0x2384c3,_0x15cad7['getRanges']()))){if(_0x23aaab){if(_0x15cad7['commentThread']&&_0x15cad7['commentThread']['length'])continue;for(const _0x782fa8 of _0x15cad7['getRanges']())_0x23aaab['isIntersectingWithRange'](_0x782fa8)||_0x23aaab['addRange'](_0x782fa8);_0x15cad7['removeMarkers']();}else{_0x23aaab=_0x15cad7;for(const _0x19ab87 of _0x2384c3)_0x15cad7['isIntersectingWithRange'](_0x19ab87)||_0x15cad7['addRange'](_0x19ab87);}}if(_0x23aaab)return _0x23aaab;_0x1dbb6b['clear']();for(const {suggestion:_0x123ce9,meta:_0x1ffb98}of this['_findSuggestions'](_0x2384c3,'deletion'))_0x1ffb98['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ffb98['containsRangeInObject']&&!_0x1ffb98['isInsideObject'])&&qt(_0x123ce9,_0x3627b5)&&_0x1dbb6b['add'](_0x123ce9);for(const _0x39cc2d of _0x1dbb6b){const _0x39d236=_0x39cc2d['getRanges']();if(!_0x3627b5||!_0x3627b5['skipNestingCheck']){if(_0x2384c3['every'](_0x3c64f6=>_0x39d236['some'](_0x2b55c5=>_0x2b55c5['containsRange'](_0x3c64f6,!0x0))))return _0x39cc2d;}(!_0x39cc2d['attributes']||!_0x39cc2d['attributes']['skipNestingCheck'])&&(_0x39d236['every'](_0x5014c7=>_0x2384c3['some'](_0x47ebc9=>_0x47ebc9['containsRange'](_0x5014c7,!0x0)))&&_0x39cc2d['discard']());}const _0x5d4a00=_0x2008f5(),_0x3e249f=_0x1d9b1a['id'],_0x3aca42='deletion:'+_0x46d922,_0x10dd9a=this['_setSuggestionData']({'id':_0x5d4a00,'type':_0x3aca42,'createdAt':new Date(),'authorId':_0x3e249f,'attributes':_0x3627b5});for(const _0xd8e3fd of _0x2384c3)_0xd8e3fd['detach'](),_0xd8e3fd['isCollapsed']||'$graveyard'==_0xd8e3fd['root']['rootName']||this['_addSuggestionMarker'](_0x3aca42,_0x5d4a00,_0x3e249f,_0xd8e3fd,u['getMultiRangeId']());return _0x10dd9a;}['markAttributeChange'](_0x28e44c,_0x33cfa6,_0x196039,_0x54089a,_0xfc0186){if(_0x28e44c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x357d00=this['editor']['plugins']['get']('Users')['me']['id'],_0x48871d=Array['from'](this['_suggestions']['values']())['filter'](_0x42b655=>'attribute'==_0x42b655['type']&&_0x42b655['data']['key']==_0x33cfa6&&_0x42b655['isIntersectingWithRange'](_0x28e44c));if('default'===this['_trackFormatChanges']){const _0x2b1dd6=this['_findSuggestions'](_0x28e44c,'insertion')['filter'](({meta:_0x3b4d45})=>_0x3b4d45['isOwn']&&!_0x3b4d45['isInsideObject']&&!_0x3b4d45['isNextTo'])['map'](({suggestion:_0x2a36a1})=>_0x2a36a1);_0x48871d['unshift'](..._0x2b1dd6);}const _0xf4782f=new Map([[_0x28e44c,_0x196039]]);for(const _0x4455d2 of _0x48871d){const _0x3787c8='attribute'==_0x4455d2['type']?_0x4455d2['data']['oldValue']:void 0x0,_0x123e96=_0x4455d2['getFirstRange'](),_0x30341f=Array['from'](_0xf4782f['keys']())['find'](_0x3bccba=>_0x3bccba['isIntersecting'](_0x123e96));if(!_0x30341f)continue;const _0x22dd2a=_0x30341f['getDifference'](_0x123e96);this['_isBlockAttribute'](_0x33cfa6)&&'insertion'==_0x4455d2['type']&&0x0!=_0x22dd2a['length']||(_0xf4782f['delete'](_0x30341f),_0x22dd2a['forEach'](_0x194926=>{_0xf4782f['set'](_0x194926,_0x196039);}),'insertion'!=_0x4455d2['type']&&_0x3787c8!=_0x54089a&&_0xf4782f['set'](_0x30341f['getIntersection'](_0x123e96),_0x3787c8));}const _0x17fa2e=[];for(const [_0x4a002f,_0x11a35c]of _0xf4782f){const _0x3ccc1f=_0x2008f5(),_0x592986={'key':_0x33cfa6,'oldValue':_0x11a35c,'newValue':_0x54089a};_0x33cfa6['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':_0x33cfa6});const _0x5039fd=('attribute:'+(_0x33cfa6+'|'+Gt({'newValue':_0x54089a})))['substring'](0x0,0x3c),_0x33c72c=this['_setSuggestionData']({'id':_0x3ccc1f,'type':_0x5039fd,'data':_0x592986,'createdAt':new Date(),'authorId':_0x357d00,'attributes':_0xfc0186});_0x17fa2e['push'](_0x33c72c),this['_addSuggestionMarker'](_0x5039fd,_0x3ccc1f,_0x357d00,_0x4a002f);}return _0x17fa2e;}['enableDefaultAttributesIntegration'](_0x46cb6d){this['enableCommand'](_0x46cb6d,(_0x43299c,..._0x422cf3)=>{this['_recordAttributeChanges'](()=>{_0x43299c(..._0x422cf3);});});}['registerBlockAttribute'](_0x1c1035){this['_blockAttributeKeys']['add'](_0x1c1035);}['registerInlineAttribute'](_0x1189de){this['_inlineAttributeKeys']['add'](_0x1189de);}['_getAttributeKey'](_0x1312e7){return'attribute'==_0x1312e7['type']?_0x1312e7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2c0ede,_0x35c66c){const _0x472755=_0x2c0ede['getFirstMarker']();this['_model']['change'](_0x5ba22b=>{_0x5ba22b['updateMarker'](_0x472755,{'range':_0x35c66c});});}['_addThreadToSuggestion'](_0x2768bc){const _0x5ae44b=_0x2768bc['id'],_0x510b93=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5ae44b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x510b93,'threadId':_0x5ae44b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5a27cb=this['_commentsRepository']['getCommentThread'](_0x5ae44b);_0x5a27cb['unbind']('isRemovable'),_0x5a27cb['isRemovable']=!0x1,_0x2768bc['commentThread']=_0x5a27cb;}['_checkSuggestionCorrectness'](_0xccb263,_0x1adcd1,_0x2c0262,_0x34068b){if(_0xccb263['type']!=_0x1adcd1||_0xccb263['subType']!=_0x2c0262||_0xccb263['creator']['id']!=_0x34068b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a398d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5b8123,_0x13e4c7){const _0x5800a1=_0x5b8123['getFirstRange']();if(_0x13e4c7['isEqual'](_0x5800a1))_0x5b8123['removeMarkers']();else{if(_0x5800a1['containsRange'](_0x13e4c7)){const _0x44faf5=this['_model']['createPositionAt'](_0x13e4c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5b8123,this['_model']['createRange'](_0x5800a1['start'],_0x44faf5));const _0x275911=_0x2008f5(),_0x381cd6=_0x5b8123['creator']['id'],_0x62fcfb=_0x5b8123['type']+':'+_0x5b8123['subType'];this['_setSuggestionData']({'id':_0x275911,'type':_0x62fcfb,'createdAt':new Date(),'authorId':_0x381cd6,'data':_0x5b8123['data'],'attributes':_0x5b8123['attributes']});const _0x184c3f=this['_model']['createPositionAt'](_0x13e4c7['end']['parent'],'after'),_0x5a5947=this['_model']['createRange'](_0x184c3f,_0x5800a1['end']);this['_addSuggestionMarker'](_0x62fcfb,_0x275911,_0x381cd6,_0x5a5947);}else{if(_0x5800a1['containsPosition'](_0x13e4c7['start'])){const _0xd0c39c=this['_model']['createPositionAt'](_0x13e4c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5b8123,this['_model']['createRange'](_0x5800a1['start'],_0xd0c39c));}else{const _0x103001=this['_model']['createPositionAt'](_0x13e4c7['end']['parent'],'after');this['_setSuggestionRange'](_0x5b8123,this['_model']['createRange'](_0x103001,_0x5800a1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2ba2de){for(const {suggestion:_0x1b5457,meta:_0xc73db3}of this['_findSuggestions'](_0x2ba2de,'insertion')){if(!_0xc73db3['isOwn'])continue;const _0x4f83c6=_0x1b5457['getRanges']();for(const _0x50498c of _0x4f83c6)if(!_0x2ba2de['getDifference'](_0x50498c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x16d788){const _0x536652=this['editor']['plugins']['get']('Users')['getUser'](_0x16d788);if(!_0x536652)throw new _0x1a398d('track-changes-user-not-found',this);return _0x536652;}['_getExternalAuthor'](_0x55971d){const _0x231f64=this['editor']['plugins']['get']('Users'),_0x37ee5d=_0x2ada69('external:'+_0x55971d),_0x5dc7b9=_0x231f64['getUser'](_0x37ee5d);return _0x5dc7b9||_0x231f64['addUser']({'id':_0x37ee5d,'name':_0x55971d});}['_createSuggestion'](_0xc15570,_0x39fd12,_0x12ce19,_0x249045,_0x35d71a){const _0x117c3f=this['_getAuthorFromId'](_0x249045),_0x1f2dd6=this['_suggestionFactory']['buildSuggestion'](_0xc15570,_0x39fd12,_0x12ce19,_0x117c3f,_0x35d71a,_0x99a504=>{this['_updateSuggestionData'](_0x12ce19,{'attributes':_0x99a504});const _0x3fc1e4=this['getSuggestion'](_0x12ce19);this['_joinWithAdjacentSuggestions'](new Set([_0x3fc1e4])),this['_refreshSuggestionsChain'](new Set([_0x3fc1e4]));});return this['listenTo'](_0x1f2dd6,'accept',()=>{this['_updateSuggestionData'](_0x12ce19,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f2dd6,'discard',()=>{this['_updateSuggestionData'](_0x12ce19,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x12ce19,_0x1f2dd6),this['_suggestionState']['set'](_0x1f2dd6,'notReady'),_0x1f2dd6;}['_splitMarkerName'](_0x2ae2c0){const _0x3e2d59=_0x2ae2c0['split'](':');return{'group':_0x3e2d59[0x0],'type':_0x3e2d59[0x1],'subType':_0x3e2d59['length']>=0x5?_0x3e2d59[0x2]:null,'id':_0x3e2d59['length']<0x5?_0x3e2d59[0x2]:_0x3e2d59[0x3],'authorId':_0x3e2d59['length']<0x5?_0x3e2d59[0x3]:_0x3e2d59[0x4],'markerCount':0x6==_0x3e2d59['length']?_0x3e2d59[0x5]:null};}['_breakSuggestionMarker'](_0xdb09ca,_0x29ea65,_0x37494d){const _0x35ca0e=_0xdb09ca['getFirstRange'](),_0x541940=_0x35ca0e['start'],_0x1b99e5=_0x35ca0e['end'];this['_setSuggestionRange'](_0xdb09ca,this['_model']['createRange'](_0x541940,_0x29ea65));const _0x58cd29=_0x2008f5(),_0x3fa865=_0xdb09ca['creator']['id'],_0xc46da=_0xdb09ca['type']+(_0xdb09ca['subType']?':'+_0xdb09ca['subType']:'');this['_setSuggestionData']({'id':_0x58cd29,'type':_0xc46da,'createdAt':new Date(),'authorId':_0x3fa865,'originalSuggestionId':_0xdb09ca['id'],'attributes':_0xdb09ca['attributes'],'data':_0xdb09ca['data']});const _0x24b080=this['_getAttributeKey'](_0xdb09ca);('formatBlock'==_0xdb09ca['type']||_0x24b080&&this['_isBlockAttribute'](_0x24b080))&&(_0x37494d=this['_model']['createPositionBefore'](_0x37494d['parent'])),this['_addSuggestionMarker'](_0xc46da,_0x58cd29,_0x3fa865,this['_model']['createRange'](_0x37494d,_0x1b99e5));}['_findSuggestions'](_0x44612d,_0x44a214=null){const _0x4bdef1=[],_0x15fb44=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44612d)||(_0x44612d=[_0x44612d]);for(const _0x35752c of this['getSuggestions']()){if(!_0x35752c['isInContent'])continue;if(_0x44a214&&_0x35752c['type']!=_0x44a214)continue;let _0x54b261=!0x1;for(const _0x472018 of _0x35752c['getRanges']()){for(const _0x3d9ab0 of _0x44612d){const _0x1e9f72=_0x3d9ab0['start']['isEqual'](_0x472018['end'])||_0x3d9ab0['end']['isEqual'](_0x472018['start']);if(_0x1e9f72||_0x3d9ab0['getIntersection'](_0x472018)){const _0x494b1a=_0x3d9ab0['containsRange'](_0x472018)&&Ot(this['_model']['schema'],_0x472018['start'],_0x3d9ab0),_0x41fe64=_0x472018['containsRange'](_0x3d9ab0)&&Ot(this['_model']['schema'],_0x3d9ab0['start'],_0x472018);_0x4bdef1['push']({'suggestion':_0x35752c,'meta':{'isOwn':_0x15fb44==_0x35752c['author'],'isNextTo':_0x1e9f72,'isInsideObject':_0x494b1a,'containsRangeInObject':_0x41fe64}}),_0x54b261=!0x0;break;}}if(_0x54b261)break;}}return _0x4bdef1;}['_addSuggestionMarker'](_0xe87b2c,_0x3d4125,_0x44c5c6,_0x2830bf,_0x33107b){this['_model']['change'](_0x5c7a56=>{let _0x2ce380='suggestion:'+_0xe87b2c+':'+_0x3d4125+':'+_0x44c5c6;_0x33107b&&(_0x2ce380=_0x2ce380+':'+_0x33107b),_0x5c7a56['addMarker'](_0x2ce380,{'range':_0x2830bf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2cafc3){const _0x561388=_0x2cafc3['previous'],_0xf33dc=_0x2cafc3['next'];_0x2cafc3['previous']=null,_0x2cafc3['next']=null,null!=_0x561388&&_0x561388['next']==_0x2cafc3&&(_0x561388['next']=_0xf33dc),null!=_0xf33dc&&_0xf33dc['previous']==_0x2cafc3&&(_0xf33dc['previous']=_0x561388),'ready'==this['_suggestionState']['get'](_0x2cafc3)&&(this['_suggestionState']['set'](_0x2cafc3,'removed'),this['fire']('suggestionUnloaded',_0x2cafc3,_0x561388,_0xf33dc));}['_setSuggestionData'](_0x5049d2){const _0xf09592=_0x5049d2['id'],_0x574255=this['addSuggestionData'](_0x5049d2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x350b5d=this['editor']['plugins']['get']('PendingActions'),_0x371cdb=_0x574255['hasComments'],_0x58bf17=_0x574255['subType']?_0x574255['type']+':'+_0x574255['subType']:_0x574255['type'],_0x4d8087=this['editor']['locale'],_0x427f21=_0x350b5d['add'](o(_0x4d8087,'PENDING_ACTION_SUGGESTION')),_0x262bc8={'id':_0xf09592,'type':_0x58bf17,'hasComments':_0x371cdb,'data':_0x5049d2['data']||null,'originalSuggestionId':_0x5049d2['originalSuggestionId']||null,'attributes':_0x574255['attributes']};this['_adapter']['addSuggestion'](_0x262bc8)['then'](_0x1f0551=>{_0x574255['_saved']=!0x0,_0x350b5d['remove'](_0x427f21),_0x1f0551&&_0x1f0551['createdAt']&&(this['_suggestions']['get'](_0xf09592)['createdAt']=_0x1f0551['createdAt']);})['catch'](_0x2a67fd=>{throw _0x59f81a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x574255['discard']();}),_0x574255['stopListening'](),this['_suggestions']['delete'](_0x574255['id']),this['_suggestionState']['delete'](_0x574255),_0x2a67fd;});}return _0x574255;}['_isBlockAttribute'](_0x4df850){return this['_blockAttributeKeys']['has'](_0x4df850);}['_updateSuggestionData'](_0x1e542a,_0x4b23b5){const _0x7624f3=this['editor']['plugins']['get']('PendingActions'),_0x51025f=this['getSuggestion'](_0x1e542a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x51025f['_saved']){const _0x1c61c5=_0x7624f3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e542a,_0x4b23b5)['then'](()=>{_0x7624f3['remove'](_0x1c61c5);});}else _0x51025f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e542a,_0x4b23b5);});}}['_getSuggestionData'](_0x245a60){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a398d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x245a60);}['_handleNewSuggestionMarker'](_0xe423e7){const {id:_0x3242cd,type:_0x522736,subType:_0x8a88aa,authorId:_0x40ebc5}=this['_splitMarkerName'](_0xe423e7),_0x604ea=this['_suggestions']['get'](_0x3242cd)||this['_createSuggestion'](_0x522736,_0x8a88aa,_0x3242cd,_0x40ebc5,{});switch(this['_checkSuggestionCorrectness'](_0x604ea,_0x522736,_0x8a88aa,_0x40ebc5),this['_suggestionState']['get'](_0x604ea)){case'notReady':this['_getSuggestionData'](_0x3242cd)['then'](_0x32b10a=>{let _0x541be8=Promise['resolve']();_0x32b10a['hasComments']&&(_0x541be8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3242cd})),_0x541be8['then'](()=>{this['addSuggestionData'](_0x32b10a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x604ea,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3242cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x604ea,'ready'),this['fire']('suggestionLoaded',_0x604ea);break;case'ready':this['fire']('suggestionChanged',_0x604ea);}return _0x604ea['addMarkerName'](_0xe423e7),_0x604ea;}['_refreshSuggestionsChain'](_0x44ca6f){const _0x388726=Array['from'](_0x44ca6f),_0x4fd101=_0x388726['filter'](_0x5cf050=>'attribute'==_0x5cf050['type']);this['_refreshAttributeSuggestionsChain'](_0x4fd101);const _0x24de25=_0x388726['filter'](_0xfdecc0=>!_0xfdecc0['isMultiRange']&&'attribute'!=_0xfdecc0['type']),_0x4b6499=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33d11b=>!_0x33d11b['isMultiRange']&&'attribute'!=_0x33d11b['type']),_0x18b605=_0x4b6499['filter'](_0x335ac3=>!_0x44ca6f['has'](_0x335ac3)),_0x44ecce=new Map(_0x4b6499['map'](_0x3b2f03=>[_0x3b2f03,this['_suggestionFactory']['getSuggestionCallback'](_0x3b2f03['type'],_0x3b2f03['subType'],'chain')])),_0xf057a0=new Map(_0x4b6499['map'](_0x51ec99=>[_0x51ec99,_0x51ec99['getFirstRange']()])),_0x469bfa=new Set(),_0x345eaf=new Set();for(let _0x1c4c83=0x0;_0x1c4c83<_0x24de25['length'];_0x1c4c83++)_0x466de8(_0x24de25[_0x1c4c83],_0x24de25,_0x1c4c83+0x1);for(let _0x30c878=0x0;_0x30c878<_0x24de25['length'];_0x30c878++)_0x466de8(_0x24de25[_0x30c878],_0x18b605,0x0);const _0x58f34e=new Set();for(let _0x2bdba3=0x0;_0x2bdba3<_0x24de25['length'];_0x2bdba3++){const _0x4f74d2=_0x24de25[_0x2bdba3];!_0x345eaf['has'](_0x4f74d2)&&_0x4f74d2['previous']&&(_0x58f34e['add'](_0x4f74d2['previous']),_0x4f74d2['previous']['next']===_0x4f74d2&&(_0x4f74d2['previous']['next']=null),_0x4f74d2['previous']=null),!_0x469bfa['has'](_0x4f74d2)&&_0x4f74d2['next']&&(_0x58f34e['add'](_0x4f74d2['next']),_0x4f74d2['next']['previous']===_0x4f74d2&&(_0x4f74d2['next']['previous']=null),_0x4f74d2['next']=null);}function _0x466de8(_0x3ff891,_0x35f5e2,_0xf592b){for(let _0x2f4def=_0xf592b;_0x2f4def<_0x35f5e2['length'];_0x2f4def++){const _0x53648f=_0x49c9e0(_0x3ff891,_0x35f5e2[_0x2f4def]);_0x53648f&&(_0x53648f[0x0]['next']=_0x53648f[0x1],_0x53648f[0x1]['previous']=_0x53648f[0x0],_0x469bfa['add'](_0x53648f[0x0]),_0x345eaf['add'](_0x53648f[0x1]));}}function _0x49c9e0(_0x4478df,_0x31f4c6){if(_0x4478df['author']['id']!==_0x31f4c6['author']['id'])return null;const _0x2c71cb=_0x44ecce['get'](_0x4478df)(_0x4478df,_0x31f4c6,_0xf057a0['get'](_0x4478df),_0xf057a0['get'](_0x31f4c6));if(!_0x2c71cb)return null;return _0x44ecce['get'](_0x31f4c6)(_0x4478df,_0x31f4c6,_0xf057a0['get'](_0x4478df),_0xf057a0['get'](_0x31f4c6))?_0x2c71cb[0x1]['commentThread']&&_0x2c71cb[0x1]['commentThread']['length']?null:_0x2c71cb:null;}_0x58f34e['size']&&this['_refreshSuggestionsChain'](_0x58f34e);}['_refreshAttributeSuggestionsChain'](_0x1bb373){if(0x0==_0x1bb373['length'])return;const _0x1b6fa5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10fa7b=>'attribute'==_0x10fa7b['type']&&_0x10fa7b['_isDataLoaded']),_0x253ba8=[],_0x572306=new Map();for(const _0x2d1a1d of _0x1b6fa5){const _0xd9c5fe=_0x2ada69(_0x2d1a1d['attributes']);_0x572306['has'](_0xd9c5fe)||(_0x572306['set'](_0xd9c5fe,_0x253ba8['length']),_0x253ba8['push']([]));const _0x3e8e37=_0x572306['get'](_0xd9c5fe);_0x253ba8[_0x3e8e37]['push'](_0x2d1a1d);}!(function(){_0x253ba8['sort']((_0x2b5764,_0x176533)=>{const _0x27fdaf=_0x2b5764[0x0]['createdAt'],_0x166a40=_0x176533[0x0]['createdAt'];return _0x27fdaf==_0x166a40?_0x2b5764[0x0]['attributes']['groupId']<_0x176533[0x0]['attributes']['groupId']?-0x1:0x1:_0x27fdaf<_0x166a40?-0x1:0x1;});for(const _0x52ae00 of _0x253ba8)_0x52ae00['sort']((_0x111bc3,_0x3086d1)=>_0x111bc3['id']<_0x3086d1['id']?-0x1:0x1);}());for(let _0x53751b=0x0;_0x53751b<_0x253ba8['length'];_0x53751b++){if(0x0==_0x253ba8[_0x53751b]['length'])continue;const _0x7f45de=[];for(let _0x23ca51=_0x53751b+0x1;_0x23ca51<_0x253ba8['length'];_0x23ca51++)0x0!=_0x253ba8[_0x23ca51]['length']&&_0x5a3159(_0x253ba8[_0x53751b],_0x253ba8[_0x23ca51])&&_0x7f45de['push'](_0x23ca51);for(const _0x1ae02a of _0x7f45de)_0x253ba8[_0x53751b]=_0x253ba8[_0x53751b]['concat'](_0x253ba8[_0x1ae02a]),_0x253ba8[_0x1ae02a]=[];}for(const _0x51d0e7 of _0x253ba8)for(let _0x4da6c9=0x0;_0x4da6c9<_0x51d0e7['length'];_0x4da6c9++){const _0x14f550=_0x51d0e7[_0x4da6c9+0x1]||null;_0x51d0e7[_0x4da6c9]['next']!==_0x14f550&&(_0x51d0e7[_0x4da6c9]['next']=_0x14f550);}for(const _0x2ed760 of _0x253ba8)for(let _0x56779d=0x0;_0x56779d<_0x2ed760['length'];_0x56779d++){const _0x43d124=_0x2ed760[_0x56779d-0x1]||null;_0x2ed760[_0x56779d]['previous']!==_0x43d124&&(_0x2ed760[_0x56779d]['previous']=_0x43d124);}function _0x5a3159(_0xcde10c,_0x3c4df0){if(_0xcde10c[0x0]['attributes']['groupId']!==_0x3c4df0[0x0]['attributes']['groupId']&&_0xcde10c[0x0]['author']!==_0x3c4df0[0x0]['author'])return!0x1;if(!function(_0x8e354f,_0x4da68f){if(!_0x8e354f['hasComments']&&!_0x4da68f['hasComments'])return!0x0;if(_0x8e354f['hasComments']&&_0x4da68f['hasComments'])return!0x1;if(_0x8e354f['hasComments']&&_0x4da68f['createdAt']<_0x8e354f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4da68f['hasComments']&&_0x8e354f['createdAt']<_0x4da68f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xcde10c[0x0],_0x3c4df0[0x0]))return!0x1;const _0x201735=Tt(_0xcde10c[0x0]['attributes'],'groupId'),_0x3e6564=Tt(_0x3c4df0[0x0]['attributes'],'groupId');if(!_0x5a0a72(_0x201735,_0x3e6564))return!0x1;return!!_0xcde10c['every'](_0x1b5c6c=>_0x3c4df0['some'](_0x33ffcd=>_0x1b5c6c['getFirstRange']()['isEqual'](_0x33ffcd['getFirstRange']())))&&_0x3c4df0['every'](_0x2219be=>_0xcde10c['some'](_0x5f1df6=>_0x2219be['getFirstRange']()['isEqual'](_0x5f1df6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x20f190){const _0x557012=Array['from'](_0x20f190),_0x423ed5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x362770=_0x423ed5['filter'](_0x509758=>!_0x20f190['has'](_0x509758)),_0x24d6b3=new Map(_0x557012['map'](_0x1f0785=>[_0x1f0785,this['_suggestionFactory']['getSuggestionCallback'](_0x1f0785['type'],_0x1f0785['subType'],'join')])),_0x2b73d6=new Map(_0x423ed5['map'](_0x3504ee=>[_0x3504ee,_0x3504ee['getRanges']()]));for(let _0x2011aa=0x0;_0x2011aa<_0x557012['length'];_0x2011aa++){if(_0x2f09d6(this,_0x557012[_0x2011aa],_0x557012,_0x2011aa+0x1))return!0x0;}for(let _0x1202cd=0x0;_0x1202cd<_0x557012['length'];_0x1202cd++){if(_0x2f09d6(this,_0x557012[_0x1202cd],_0x362770,0x0))return!0x0;}return!0x1;function _0x2f09d6(_0x36fefb,_0x1dce23,_0x19ffd9,_0x52927f){for(let _0x2cdef0=_0x52927f;_0x2cdef0<_0x19ffd9['length'];_0x2cdef0++){const _0x1d0987=_0x19ffd9[_0x2cdef0];if(_0x1d0987['type']!==_0x1dce23['type']||_0x1d0987['author']['id']!==_0x1dce23['author']['id']||_0x1d0987['subType']!==_0x1dce23['subType'])continue;if(!Jt(_0x1dce23,_0x1d0987))continue;if('attribute'==_0x1dce23['type']&&_0x1dce23['data']['oldValue']!=_0x1d0987['data']['oldValue'])continue;if('attribute'==_0x1dce23['type']&&_0x36fefb['_isBlockAttribute'](_0x1dce23['data']['key']))continue;if('formatBlock'==_0x1dce23['type']){const _0x2253c3=_0x36fefb['editor']['model'],_0x39ce4a=_0x1dce23['getContainedElement']();if(_0x39ce4a&&(_0x2253c3['schema']['isObject'](_0x39ce4a)||_0x2253c3['schema']['isLimit'](_0x39ce4a)))continue;}const _0x38bf16=_0x24d6b3['get'](_0x1dce23),_0x375ce9=_0x2b73d6['get'](_0x1dce23),_0x171fed=_0x2b73d6['get'](_0x1d0987),_0x42fba7=_0x1dce23['commentThread']&&_0x1dce23['commentThread']['length'],_0xfb8739=_0x1d0987['commentThread']&&_0x1d0987['commentThread']['length'];if(!_0x42fba7&&_0x38bf16(_0x171fed,_0x375ce9))return _0x36fefb['_joinSuggestions'](_0x1d0987,_0x1dce23),_0x2b73d6['delete'](_0x1dce23),!0x0;if(!_0xfb8739&&_0x38bf16(_0x375ce9,_0x171fed))return _0x36fefb['_joinSuggestions'](_0x1dce23,_0x1d0987),_0x2b73d6['delete'](_0x1d0987),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c9e40,_0x212620){if(_0x5c9e40['isMultiRange']){for(const _0x5d75e6 of _0x212620['getRanges']())_0x5c9e40['addRange'](_0x5d75e6);}else{const _0xcaa7f4=_0x212620['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c9e40,this['_model']['createRange'](_0x5c9e40['getFirstRange']()['start'],_0xcaa7f4));}_0x212620['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2fe963,_0x57af88,_0x444342){const _0x238702=_0x2fe963['startsWith']('format')||_0x2fe963['startsWith']('attribute')?'FORMATTING':_0x2fe963['toUpperCase']();return o(this['editor']['locale'],_0x57af88+'_'+_0x238702+'_SUGGESTION_ANNOUNCEMENT',_0x444342);}['_initAriaMarkerChangeAnnouncements'](){const _0x4c0243=this['editor'];if(!_0x4c0243['ui'])return;const {ariaLiveAnnouncer:_0x593c0e}=_0x4c0243['ui'];_0x345267(this['_model'],({left:_0x65133e,entered:_0x563e47})=>{for(const _0xbcad2 of _0x65133e){const {group:_0x531361,type:_0x8c7d0d}=this['_splitMarkerName'](_0xbcad2['name']);if('suggestion'===_0x531361){_0x593c0e['announce'](this['_getMarkerAnnouncementText'](_0x8c7d0d,'LEAVE'));break;}}for(const _0x36eb76 of _0x563e47){const {group:_0x21c101,type:_0xb1d75b}=this['_splitMarkerName'](_0x36eb76['name']);if('suggestion'===_0x21c101){_0x593c0e['announce'](this['_getMarkerAnnouncementText'](_0xb1d75b,'ENTER',_0x4bc0d1(_0x18328d)));break;}}});}['_processAttributeChanges'](_0x4ac30c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5cb4df=this['editor'],_0x112335=_0x5cb4df['model']['document']['differ']['getChanges']();if(0x0==_0x112335['length'])return!0x1;const _0x446ad4=[],_0xd2b226=_0x112335['filter'](_0x3d5558=>'attribute'==_0x3d5558['type']),_0x38145f=_0x112335['filter'](_0x4ab505=>'insert'==_0x4ab505['type']&&'$text'!=_0x4ab505['name']),_0x3547be=_0x112335['filter'](_0x3f70c7=>'remove'==_0x3f70c7['type']&&'$text'!=_0x3f70c7['name']);for(const _0x4155ef of _0xd2b226)_0x446ad4['push']({'key':_0x4155ef['attributeKey'],'newValue':_0x4155ef['attributeNewValue'],'oldValue':_0x4155ef['attributeOldValue'],'range':Pt(_0x4155ef['range'],_0x5cb4df['model'])});for(const _0xc5c429 of _0x38145f){const _0x30b503=_0x3547be['find'](_0x5cc968=>_0x5cc968['position']['isEqual'](_0xc5c429['position']));_0x30b503&&_0x446ad4['push']({'key':m,'newValue':_0xc5c429['name'],'oldValue':_0x30b503['name'],'range':_0x5cb4df['model']['createRangeOn'](_0xc5c429['position']['nodeAfter'])});}return 0x0!=_0x446ad4['length']&&this['_reduceExistingSuggestions'](_0x4ac30c,_0x446ad4);}['_processAttributeSuggestions'](_0x5733ea){let _0xdbccb7=!0x1;const _0x2149f6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b86e2=>_0x2b86e2['data']['newRange']&&_0x2b86e2['name']['startsWith']('suggestion:attribute:'));for(const _0x1b9b4f of _0x2149f6){const {subType:_0x30b00b,id:_0x4fd005}=this['_splitMarkerName'](_0x1b9b4f['name']),_0xbfcfda=_0x30b00b['split']('|')[0x0];for(const _0x937e2c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x937e2c['id']!=_0x4fd005&&'attribute'==_0x937e2c['type']&&_0x937e2c['data']&&_0x937e2c['data']['key']==_0xbfcfda&&_0x937e2c['getFirstRange']()['isIntersecting'](_0x1b9b4f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x937e2c,_0x1b9b4f['data']['newRange'],_0x5733ea),_0xdbccb7=!0x0);}return _0xdbccb7;}['_recordAttributeChanges'](_0x14f97f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x14f97f();}['_isRegisteredAttribute'](_0x50cf76){const _0xe35c88=this['_isBlockAttribute'](_0x50cf76),_0x490266=this['_inlineAttributeKeys']['has'](_0x50cf76);return _0xe35c88||_0x490266;}['_reduceExistingSuggestions'](_0xe2c2ef,_0x3c6827){if(0x0==_0x3c6827['length'])return!0x1;let _0x1ae747=!0x1;for(const _0x1811fd of _0x3c6827){const _0x4cd9b0=this['_findSuggestions'](_0x1811fd['range'],'attribute')['filter'](_0x204fe1=>!_0x204fe1['meta']['isNextTo'])['map'](_0x3a1eb3=>_0x3a1eb3['suggestion']),_0xba1b7f=_0x2ada69({'newValue':_0x1811fd['newValue']});_0x4cd9b0['filter'](_0x2ee241=>{const [_0x3e817a,_0x1067c6]=_0x2ee241['subType']['split']('|');return _0x3e817a==_0x1811fd['key']&&_0x1067c6!=_0xba1b7f;})['forEach'](_0x5e21f8=>{this['_reduceSuggestionAttributeRange'](_0x5e21f8,_0x1811fd['range'],_0xe2c2ef),_0x1ae747=!0x0;});}return _0x1ae747;}['_reduceSuggestionAttributeRange'](_0x24f41b,_0x3c8d6a,_0x2988c0){const _0x5b84a3=_0x24f41b['getFirstRange']()['getDifference'](_0x3c8d6a);0x0!==_0x5b84a3['length']?0x1!==_0x5b84a3['length']?this['_breakSuggestionMarker'](_0x24f41b,_0x3c8d6a['start'],_0x3c8d6a['end']):this['_setSuggestionRange'](_0x24f41b,_0x5b84a3[0x0]):_0x2988c0['removeMarker'](_0x24f41b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x118118){this['_editor']=_0x118118,this['_model']=_0x118118['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x481d9e,_0x496ff4,_0x2dacde,_0x4fcf56,_0xf35d8f,_0x2a3748){return new u(this['_model'],{'type':_0x481d9e,'subType':_0x496ff4,'id':_0x2dacde,'author':_0x4fcf56,'creator':_0x4fcf56,'attributes':_0xf35d8f,'onAttributesChange':_0x2a3748,'onAccept':(..._0x22693a)=>this['getSuggestionCallback'](_0x481d9e,_0x496ff4,'accept')(..._0x22693a),'onDiscard':(..._0x5b11dd)=>this['getSuggestionCallback'](_0x481d9e,_0x496ff4,'discard')(..._0x5b11dd)});}['registerCustomCallback'](_0x2abaff,_0x27a6a1,_0x5c8dc0,_0x2d80d2){const _0x210a6f=_0x2abaff+':'+_0x27a6a1+':'+_0x5c8dc0;this['_customCallbacks']['set'](_0x210a6f,_0x2d80d2);}['getSuggestionCallback'](_0x4366da,_0x410b3d,_0x43e9ff){const _0x5c7c3b=_0x4366da+':'+_0x410b3d+':'+_0x43e9ff;return this['_customCallbacks']['get'](_0x5c7c3b)||this['_defaultCallbacks']['get'](_0x4366da+':'+_0x43e9ff);}['_registerDefaultCallbacks'](){const _0x3537f3=()=>!0x1,_0x3f4387=_0x277ebf=>{_0x277ebf['sort']((_0x3d7498,_0xf8ded6)=>_0x3d7498['start']['isBefore'](_0xf8ded6['start'])?0x1:-0x1),this['_model']['change'](_0x54f484=>{for(const _0x435d11 of _0x277ebf){let _0x3f5149;_0x3f5149=_0x435d11['end']['isAtEnd']&&_0x435d11['end']['parent']==_0x435d11['start']['nodeAfter']?_0x54f484['createSelection'](_0x435d11['start']['nodeAfter'],'on'):_0x54f484['createSelection'](_0x435d11),this['_model']['deleteContent'](_0x3f5149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59cc8b=(_0xb02eea,_0x4bd894)=>{_0x4bd894&&this['_model']['change'](_0x17a53a=>{const {commandName:_0xf315a,commandParams:_0x21fe3a=[]}=_0x4bd894,_0x53fde7=_0xb02eea['map'](_0x4829b3=>(Vt(_0x4829b3)&&(_0x4829b3=this['_model']['createRange'](_0x4829b3['end'])),_0x4829b3))['filter'](_0x53bb90=>'$graveyard'!==_0x53bb90['root']['rootName']);if(_0x53fde7['length']<0x1)return;const _0x5594b4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57abd1=>_0x41dcaa['fromRange'](_0x57abd1));_0x17a53a['setSelection'](_0x53fde7);for(const _0x28d34c of this['_editor']['commands']['commands']())_0x28d34c['refresh']();_0x21fe3a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf315a,..._0x21fe3a);const _0xf4929d=_0x5594b4['filter'](_0x35a18f=>'$graveyard'!=_0x35a18f['root']['rootName']);_0xf4929d['length']>0x0&&_0x17a53a['setSelection'](_0xf4929d);for(const _0x349bd9 of _0x5594b4)_0x349bd9['detach']();});},_0x3fa80c=(_0xe64e8a,_0x38f59c)=>0x1==_0xe64e8a['length']&&0x1==_0x38f59c['length']&&_0xe64e8a[0x0]['end']['isEqual'](_0x38f59c[0x0]['start']),_0x288db5=(_0x425ef4,_0x457bf0,_0x424982,_0x584ca7)=>Ht(_0x425ef4,_0x457bf0,_0x424982,_0x584ca7,this['_model'])?[_0x425ef4,_0x457bf0]:Ht(_0x457bf0,_0x425ef4,_0x584ca7,_0x424982,this['_model'])?[_0x457bf0,_0x425ef4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3537f3),this['_defaultCallbacks']['set']('insertion:discard',_0x3f4387),this['_defaultCallbacks']['set']('insertion:join',_0x3fa80c),this['_defaultCallbacks']['set']('insertion:chain',_0x288db5),this['_defaultCallbacks']['set']('deletion:accept',_0x3f4387),this['_defaultCallbacks']['set']('deletion:discard',_0x3537f3),this['_defaultCallbacks']['set']('deletion:join',_0x3fa80c),this['_defaultCallbacks']['set']('deletion:chain',_0x288db5),this['_defaultCallbacks']['set']('formatInline:accept',_0x59cc8b),this['_defaultCallbacks']['set']('formatInline:discard',_0x3537f3),this['_defaultCallbacks']['set']('formatInline:join',_0x3fa80c),this['_defaultCallbacks']['set']('formatInline:chain',_0x3537f3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x59cc8b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3537f3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3fa80c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3537f3),this['_defaultCallbacks']['set']('attribute:accept',_0x3537f3),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dc40b,_0xe3e728)=>{if(!_0xe3e728)return;const _0x537bb2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9e176=>{if(_0xe3e728['key']==m)for(const _0x3e76b2 of _0x1dc40b){const _0x145a64=_0x3e76b2['start']['nodeAfter'],_0x2a5383=_0xe3e728['oldValue'];_0x9e176['rename'](_0x145a64,_0x2a5383);}else{if(_0x537bb2['_isBlockAttribute'](_0xe3e728['key'])){for(const _0x481e28 of _0x1dc40b)void 0x0!==_0xe3e728['oldValue']?_0x9e176['setAttribute'](_0xe3e728['key'],_0xe3e728['oldValue'],_0x481e28['start']['nodeAfter']):_0x9e176['removeAttribute'](_0xe3e728['key'],_0x481e28['start']['nodeAfter']);}else{for(const _0x3b7d23 of _0x1dc40b)_0xe3e728['oldValue']?_0x9e176['setAttribute'](_0xe3e728['key'],_0xe3e728['oldValue'],_0x3b7d23):_0x9e176['removeAttribute'](_0xe3e728['key'],_0x3b7d23);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3fa80c);}}function Ot(_0x406b0b,_0x5abb26,_0x3198ed){for(const _0x57e054 of _0x5abb26['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x57e054['root']==_0x57e054)return!0x1;if(!_0x3198ed['containsItem'](_0x57e054))return!0x1;if(_0x406b0b['isObject'](_0x57e054)||_0x406b0b['isLimit'](_0x57e054))return!0x0;}return!0x1;}function Vt(_0x412077){return _0x412077['end']['parent']==_0x412077['start']['nodeAfter']&&_0x412077['end']['isAtStart'];}function Ut(_0x51f694,_0x2e2c89,_0x8ce8f4,_0x3e5ddc){const _0x5cfc28=_0x38eb39=>!_0x38eb39['item']['is']('$textProxy')&&!_0x3e5ddc['isObject'](_0x38eb39['item']),_0x5187f1=_0x51f694['start']['getLastMatchingPosition'](_0x5cfc28),_0x2938cb=_0x51f694['end']['getLastMatchingPosition'](_0x5cfc28,{'direction':'backward'});return(!_0x51f694['start']['isEqual'](_0x5187f1)||!_0x51f694['end']['isEqual'](_0x2938cb))&&(_0x5187f1['isBefore'](_0x2938cb)?_0x8ce8f4['updateMarker'](_0x2e2c89,{'range':_0x8ce8f4['createRange'](_0x5187f1,_0x2938cb)}):_0x8ce8f4['removeMarker'](_0x2e2c89),!0x0);}function Gt(_0x26431f){return _0x2ada69(_0x26431f);}function Ft(_0x11ac21){const _0x265db6=_0x11ac21['start']['nodeAfter'];return _0x265db6&&_0x265db6['is']('element');}function Pt(_0x52db81,_0x4d5271){return null==_0x52db81['end']['nodeBefore']&&_0x52db81['end']['parent']==_0x52db81['start']['nodeAfter']?Lt(_0x52db81['start']['nodeAfter'],_0x4d5271):_0x52db81;}function Lt(_0x4011c4,_0x432ac8){const _0x10ecc6=_0x432ac8['schema']['isObject'](_0x4011c4)||_0x432ac8['schema']['isSelectable'](_0x4011c4);return _0x432ac8['createRange'](_0x432ac8['createPositionAt'](_0x4011c4,'before'),_0x10ecc6?_0x432ac8['createPositionAfter'](_0x4011c4):_0x432ac8['createPositionAt'](_0x4011c4,'end'));}function Ht(_0x17e8ad,_0x2321ea,_0x323028,_0x3f17ac,_0x359122){if(_0x17e8ad['next'])return!0x1;if(!Jt(_0x17e8ad,_0x2321ea))return!0x1;if(_0x323028['end']['isEqual'](_0x3f17ac['start']))return!0x0;if(_0x17e8ad['type']!=_0x2321ea['type'])return!0x1;if(!_0x323028['end']['isTouching'](_0x3f17ac['start']))return!0x1;const _0x5abc75=_0x359122['createRange'](_0x323028['end'],_0x3f17ac['start'])['getWalker']();for(const _0x29e88b of _0x5abc75)if(['elementStart','elementEnd']['includes'](_0x29e88b['type'])&&_0x359122['schema']['isLimit'](_0x29e88b['item']))return!0x1;return!0x0;}function Jt(_0x1ea3c9,_0xc3a1c9){if(!_0x1ea3c9['_isDataLoaded']||!_0xc3a1c9['_isDataLoaded'])return!0x1;const _0x33b3ed=new Set(Object['keys'](_0x1ea3c9['attributes'])),_0x4ea7ad=new Set(Object['keys'](_0xc3a1c9['attributes']));if(_0x33b3ed['delete']('groupId'),_0x4ea7ad['delete']('groupId'),0x0==_0x33b3ed['size']&&0x0==_0x4ea7ad['size'])return!0x0;if(_0x33b3ed['size']!=_0x4ea7ad['size'])return!0x1;const _0x644d69={..._0x1ea3c9['attributes']},_0x74287f={..._0xc3a1c9['attributes']};return delete _0x644d69['groupId'],delete _0x74287f['groupId'],JSON['stringify'](_0x644d69)==JSON['stringify'](_0x74287f);}function qt(_0x31c1f5,_0x1e4854){const _0x59880e=zt(_0x31c1f5['attributes']),_0x17d5e5=zt(_0x1e4854);if(!_0x31c1f5['_isDataLoaded'])return!0x1;for(const _0x4a2180 of Object['keys'](_0x17d5e5))if(!_0x5a0a72(_0x59880e[_0x4a2180],_0x17d5e5[_0x4a2180]))return!0x1;return!0x0;}function zt(_0x508956){const _0x4ae738=Object['assign']({},_0x508956);return delete _0x4ae738['skipNestingCheck'],delete _0x4ae738['tablePasteChainId'],_0x4ae738;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4937a9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12d650,_0x1f731d,_0x380d6f,_0x1ee421){super(),this['model']=_0x1f731d,this['view']=_0x380d6f,this['commentThreadController']=_0x1ee421,this['_editor']=_0x12d650,this['_acceptCommand']=_0x12d650['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12d650['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x317fa0,_0x491a3d)=>_0x317fa0||_0x491a3d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x44cd81=>_0x44cd81&&this['_editor']['model']['canEditAt'](_0x1f731d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x112ce3=>_0x112ce3&&this['_editor']['model']['canEditAt'](_0x1f731d['getRanges']())),this['_pendingAction']=null,_0x380d6f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x380d6f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x380d6f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x380d6f,'change:isDirty',()=>{_0x380d6f['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 _0x3f7d9d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f7d9d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xc9a794{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f3778,_0x357b22,_0x1b912d,_0x20743b){super(_0x5f3778),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x53c741(_0x5f3778,o(_0x5f3778,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x357b22['authoredAt']),this['bind']('authoredAt')['to'](_0x357b22),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',_0x357b22,'authoredAt',this,'descriptionParts',(_0x177ede,_0x3d190b,_0xa07ce3)=>{const _0x195693=_0xa07ce3['map'](_0x48cb68=>ls(_0x48cb68['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x177ede-0x1,_0x357b22['author']['name'],_0x3d190b?_0x20743b['formatDateTime'](_0x3d190b):'',new DOMParser()['parseFromString'](_0x195693,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4d5dce(),this['focusTracker']=new _0xc133a6(),this['keystrokes']=new _0x2d7954(),this['focusCycler']=new _0x560ef0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1929df=>_0x1929df['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x357b22,this['_localUser']=_0x1b912d,this['_config']=_0x20743b,_0x20743b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x152c40(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x22b0d6}=this['_config'];this['commentsListView']=new _0x22b0d6(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',_0x531b01=>_0x531b01+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cc08e,_0x3ac0ed)=>_0x3cc08e||!!_0x3ac0ed);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1fe3d6}=this['_config'],_0x8656d0=new _0x1fe3d6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15cf6f=_0x8656d0['commentInputView'];return _0x8656d0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15cf6f,'value',(_0xb0b647,_0x4bbf07,_0xe52293)=>!!_0xe52293||_0xb0b647&&!_0x4bbf07),_0x15cf6f['on']('submit',(_0x1713ea,_0xd1e9c1)=>{this['fire']('addComment',_0xd1e9c1),_0x15cf6f['editor']['setData']('');}),_0x15cf6f['on']('cancel',()=>this['focus']()),_0x15cf6f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x8656d0;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5ef434,_0x3c4d08,_0x40087d,_0x5a4674){super(_0x5ef434,_0x3c4d08,_0x40087d,_0x5a4674),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x43c740=>_0x43c740&&_0x43c740[0x0]?_0x43c740[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5afd80,_0x40760c)=>{let _0xf0757b='';for(const _0x420e6a of _0x5afd80)_0xf0757b+='<p>'+ls(_0x420e6a['content'],_0x420e6a['color'])+'</p>';return _0x40760c?_0xf0757b:_0x275f1c(_0xf0757b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a4674['SuggestionView'](_0x5ef434,_0x3c4d08,{'formatDateTime':_0x5a4674['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 _0x50b577=this['bindTemplate'],_0x285ff2=[this['suggestionView']];return this['commentsListView']&&_0x285ff2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x285ff2['push'](this['commentThreadInputView']),_0x285ff2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x50b577['if']('isActive','ck-suggestion-wrapper--active'),_0x50b577['to']('type',_0x384a93=>'ck-suggestion-'+_0x384a93),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':_0x50b577['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x285ff2};}['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 _0xc9a794{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39dcd1,_0x35803b,_0x410428){super(_0x39dcd1),this['_model']=_0x35803b,this['_config']=_0x410428,this['set']('description',''),this['bind']('authoredAt')['to'](_0x35803b),this['acceptButton']=this['_createButton'](o(_0x39dcd1,'Accept\x20suggestion'),_0x5f1221['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39dcd1,'Discard\x20suggestion'),_0x5f1221['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x491ffc(_0x39dcd1,_0x35803b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4d5dce([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc133a6(),this['keystrokes']=new _0x2d7954(),this['focusCycler']=new _0x560ef0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x169535=>_0x169535['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4fdffb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4fdffb['innerHTML']=this['description'],this['on']('change:description',(_0x470151,_0x472a2e,_0x15ee87)=>{_0x4fdffb['innerHTML']=_0x15ee87;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3598c2=this['bindTemplate'],_0x4e2157=[{'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':_0x3598c2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3598c2['to']('authoredAt',_0x2e70d5=>this['_config']['formatDateTime'](_0x2e70d5))}]}]},{'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']&&_0x4e2157['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':_0x4e2157}]};}['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'](_0x596dd1,_0x58e8b2,_0x5de58a,_0x3e96b5,_0x505457){const _0x4865fe=new _0x419c9e(this['locale']);return _0x4865fe['set']({'label':_0x596dd1,'icon':_0x58e8b2,'tooltip':!0x0,'tooltipPosition':_0x505457}),_0x4865fe['extendTemplate']({'attributes':{'class':_0x5de58a}}),_0x4865fe['on']('execute',()=>{this['fire'](_0x3e96b5,this['_model']['id']);}),_0x4865fe;}['_setupKeyboardNavigation'](){const _0x49a20f=this['element'];this['keystrokes']['listenTo'](_0x49a20f);for(const _0x58841e of this['focusables'])this['focusTracker']['add'](_0x58841e['element']),this['keystrokes']['listenTo'](_0x58841e['element']);this['keystrokes']['set']('enter',(_0x9e0ef8,_0x2396fb)=>{_0x49a20f===_0x9e0ef8['target']&&(this['focusCycler']['focusFirst'](),_0x2396fb());}),this['keystrokes']['set']('esc',(_0x2b99bc,_0x902570)=>{_0x49a20f!==_0x2b99bc['target']&&(this['focus'](),_0x902570());});}}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 _0x4313d1{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1154aa,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xe83838){super(_0xe83838),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d6c7c=this['editor']['config'];_0x1d6c7c['define']('trackChanges.SuggestionThreadView',re),_0x1d6c7c['define']('trackChanges.SuggestionView',ce),_0x1d6c7c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d6c7c['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x4f8f28,_0x3827a4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x19676f,_0x4b7b54]of this['_handleControllerBuffer']){const _0x3711aa=this['_suggestionToController']['has'](_0x19676f);_0x3711aa||_0x4b7b54?_0x3711aa&&_0x4b7b54&&this['_destroyController'](_0x19676f):this['_initializeController'](_0x19676f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f8f28,_0x3827a4);}['init'](){const _0x890d68=this['editor'],_0x15906b=_0x890d68['plugins']['get']('TrackChangesEditing'),_0x2d62b9=_0x890d68['plugins']['get']('Annotations'),_0x20be9f=_0x890d68['plugins']['get']('EditorAnnotations'),_0xdc5847=_0x890d68['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x20be9f['addSourceCollector'](()=>{const _0x157c0f=[];for(const [_0x2e78e5,_0x3f67fd]of Array['from'](this['_suggestionToController'])){const _0x254de0=_0x2e78e5['getAllAdjacentSuggestions'](),_0x32addc=[];for(const _0x287c1e of _0x254de0){if(!_0x287c1e['isInContent'])continue;if(_0x287c1e['isMultiRange']){_0x32addc['push'](..._0x287c1e['getRanges']());continue;}const _0x5a7d51=_0x287c1e['getFirstRange']();if(_0x32addc['length']>0x0){const _0x5259e8=_0x32addc[0x0]['getJoined'](_0x5a7d51);if(_0x5259e8){_0x32addc[0x0]=_0x5259e8;continue;}}_0x32addc['push'](_0x5a7d51);}_0x157c0f['push']([_0x3f67fd['view'],_0x32addc]);}return _0x157c0f;}),this['listenTo'](_0x15906b,'suggestionLoaded',(_0x4ed7c6,_0x5c94ff)=>{this['listenTo'](_0x5c94ff,'change:previous',(_0x28a5dc,_0x4c60b0,_0x249607,_0x22c960)=>{_0x5c94ff['isInContent']&&(null==_0x249607?(this['_updateController'](_0x22c960['head']),this['_handleSuggestionControllerDelayed'](_0x5c94ff,!0x1)):(this['_updateController'](_0x249607['head']),null==_0x22c960&&this['_handleSuggestionControllerDelayed'](_0x5c94ff,!0x0)));}),null!==_0x5c94ff['previous']?this['_updateController'](_0x5c94ff['head']):this['_handleSuggestionControllerDelayed'](_0x5c94ff,!0x1);}),this['listenTo'](_0x15906b,'suggestionUnloaded',(_0x18d27e,_0x501062,_0x529752)=>{this['stopListening'](_0x501062,'change:previous'),this['_handleControllerBuffer']['delete'](_0x501062),this['_suggestionToController']['has'](_0x501062)&&this['_destroyController'](_0x501062),_0x529752&&this['_updateController'](_0x529752['head']);}),this['listenTo'](_0x15906b,'suggestionChanged',(_0x2e0473,_0xed24c3)=>{this['_updateController'](_0xed24c3);}),this['listenTo'](_0x2d62b9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xdc5847,'addComment',(_0x17617a,{threadId:_0x48fcc2,isFromAdapter:_0xdfa0a6})=>{if(_0xdfa0a6||!_0x15906b['hasSuggestion'](_0x48fcc2))return;const _0x9f80ef=_0x15906b['getSuggestion'](_0x48fcc2);this['_suggestionToController']['get'](_0x9f80ef)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3e0ca5=this['editor']['plugins']['get']('Annotations'),_0x2469f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52b45f=Array['from'](_0x3e0ca5['activeAnnotations'],_0x3c36db=>_0x3c36db['innerView'])['filter'](_0x5780c1=>this['_viewToController']['has'](_0x5780c1)),_0x5d5bba=[];for(const _0x39fc42 of _0x52b45f){const _0x5c6dd1=this['_viewToController']['get'](_0x39fc42)['model']['getAllAdjacentSuggestions']();_0x5d5bba['push'](..._0x5c6dd1['reduce']((_0x3ca85e,_0x1ca43a)=>[..._0x3ca85e,..._0x1ca43a['getMarkerNames']()],[]));}_0x2469f8['activeMarkers']=_0x5d5bba;}['_addUIComponentsToFactory'](){const _0x59ba04=this['editor'],_0x2c8cbb=_0x59ba04['locale'],_0x42dc58=o(_0x2c8cbb,'Track\x20changes'),_0x1ba4a9=new Wt([{'type':'switchbutton','model':new _0x17849f({'withText':!0x0,'isToggleable':!0x0,'label':_0x42dc58,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x17849f({'withText':!0x0,'label':o(_0x2c8cbb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17849f({'withText':!0x0,'label':o(_0x2c8cbb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17849f({'withText':!0x0,'label':o(_0x2c8cbb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x17849f({'withText':!0x0,'label':o(_0x2c8cbb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3f3db9 of _0x1ba4a9)if(me(_0x3f3db9)){const _0x410a9c=_0x59ba04['commands']['get'](_0x3f3db9['model']['commandName']);_0x3f3db9['model']['bind']('isOn','isEnabled')['to'](_0x410a9c,'value','isEnabled');}_0x59ba04['ui']['componentFactory']['add']('trackChanges',_0x285c6d=>this['_createToolbarButton'](_0x285c6d,_0x1ba4a9,_0x42dc58)),_0x59ba04['ui']['componentFactory']['add']('menuBar:trackChanges',_0x257c2a=>this['_createMenuBarMenu'](_0x257c2a,_0x1ba4a9,_0x42dc58));}['_createToolbarButton'](_0x6f2f08,_0x3b5b18,_0x4c89c7){const _0x3895a0=Qt(_0x6f2f08,_0x5e1d21),_0x65e284=this['editor']['commands']['get']('trackChanges');_0x3895a0['buttonView']['set']({'tooltip':_0x4c89c7,'label':_0x4c89c7,'icon':he}),_0x3895a0['buttonView']['bind']('isOn')['to'](_0x65e284,'value'),_0x3895a0['buttonView']['on']('execute',()=>{_0x65e284['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3895a0,_0x3b5b18,{'role':'menu'});const _0xace78a=[];for(const _0x3e96ce of _0x3b5b18)me(_0x3e96ce)&&_0xace78a['push'](this['editor']['commands']['get'](_0x3e96ce['model']['commandName']));const _0x233735=_0x3895a0['buttonView'];return _0x233735['actionView']['unbind']('isEnabled'),_0x233735['arrowView']['unbind']('isEnabled'),_0x233735['actionView']['bind']('isEnabled')['to'](_0x65e284,'isEnabled'),_0x233735['arrowView']['bind']('isEnabled')['toMany'](_0xace78a,'isEnabled',(..._0x4ff20d)=>_0x4ff20d['some'](_0x3f1b8f=>_0x3f1b8f)),_0x3895a0['on']('execute',_0x264124=>{this['editor']['execute'](_0x264124['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3895a0;}['_createMenuBarMenu'](_0x1f087b,_0x4bb4ec,_0x5dc232){const _0xecad12=new Yt(_0x1f087b),_0x16df4c=this['editor']['commands']['get']('trackChanges');_0xecad12['buttonView']['set']({'label':_0x5dc232,'icon':he});const _0x39a6d=new Zt(_0x1f087b);for(const _0x52e43e of _0x4bb4ec){if('separator'==_0x52e43e['type']){_0x39a6d['items']['add'](new Xt(_0x1f087b));continue;}const _0xf022b8=new te(_0x1f087b,_0xecad12),_0x2f3d23=new _0x28eee8(_0x1f087b),_0x3c0070=_0x52e43e['model'];_0x2f3d23['bind'](...Object['keys'](_0x3c0070))['to'](_0x3c0070),_0x2f3d23['delegate']('execute')['to'](_0xecad12),_0x2f3d23['on']('execute',()=>{this['editor']['execute'](_0x3c0070['commandName']),this['editor']['editing']['view']['focus']();}),_0xf022b8['children']['add'](_0x2f3d23),_0x39a6d['items']['add'](_0xf022b8);}return _0xecad12['bind']('isEnabled')['to'](_0x16df4c,'isEnabled'),_0xecad12['panelView']['children']['add'](_0x39a6d),_0xecad12;}['_initializeController'](_0xe58119){const _0x5a7346=this['editor'],_0x11239f=_0x5a7346['config'],_0x29d776=_0x5a7346['plugins']['get']('Annotations'),_0x5b9d31=_0x5a7346['plugins']['get']('CommentsRepository'),_0xe79bba=_0x5a7346['plugins']['get']('EditorAnnotations'),_0x1e087d=_0x5a7346['plugins']['get'](_0x1154aa)['me'],_0x51a206=_0x11239f['get']('trackChanges')['SuggestionThreadView'],_0x8eead0=_0x11239f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2920a4,CommentThreadInputView:_0xaa3e8b}=_0x5a7346['plugins']['get']('CommentsUI');let _0x269a96,_0x3bf32c;this['_annotationViews']['has'](_0xe58119['id'])?(_0x3bf32c=this['_annotationViews']['get'](_0xe58119['id']),_0x269a96=_0x3bf32c['mainView']):(_0x269a96=new _0x51a206(_0x5a7346['locale'],_0xe58119,_0x1e087d,{'disableComments':this['_disableComments'],'editorConfig':_0x11239f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x11239f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11239f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11239f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f7f13(_0x11239f['get']('locale')),'CommentView':_0x11239f['get']('comments')['CommentView'],'CommentsListView':_0x2920a4,'CommentThreadInputView':_0xaa3e8b,'SuggestionView':_0x8eead0}),_0x269a96['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a7346['editing']['view']['focus']();}),_0x269a96['suggestionView']['discardButton']['on']('execute',()=>{_0x5a7346['editing']['view']['focus']();}),_0x3bf32c=_0x29d776['createAnnotationView'](this['editor']['locale'],_0x269a96),_0x3bf32c['bind']('isDirty')['to'](_0x269a96,'isDirty'),_0x3bf32c['bind']('length')['to'](_0x269a96),_0x3bf32c['bind']('type')['to'](_0x269a96,'type',_0x56b173=>'suggestion-'+_0x56b173),this['listenTo'](_0x269a96,'escape',()=>{_0x5a7346['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0xe58119['id'],_0x3bf32c));const _0x533699=_0x5b9d31['createCommentThreadController'](_0xe58119['commentThread'],_0x269a96),_0x570ac5=new ae(_0x5a7346,_0xe58119,_0x269a96,_0x533699),_0x2d37ac=_0xe58119['getAllAdjacentSuggestions']()['filter'](_0x34d4a0=>_0x34d4a0['isInContent']);_0x269a96['descriptionParts']=_0x5a7346['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d37ac),this['_suggestionToController']['set'](_0xe58119,_0x570ac5),this['_viewToController']['set'](_0x269a96,_0x570ac5);const _0x23e902=_0x29d776['createAnnotation']({'view':_0x3bf32c,'target':()=>{const _0x23bf22=[],_0x4448ad=_0xe58119['getAllAdjacentSuggestions']()['filter'](_0x24d8fb=>_0x24d8fb['isInContent']);for(const _0x378cf3 of _0x4448ad)_0x23bf22['push'](..._0x378cf3['getMarkers']());return _0x5c8c30(_0x5a7346['editing'],_0x23bf22);},'type':()=>'suggestion-'+_0x570ac5['view']['type']});_0x5b9d31['_bindAnnotationToEditors'](_0x269a96,_0x23e902),_0x29d776['add'](_0x23e902),_0xe79bba['registerAnnotation'](_0x23e902);}['_destroyController'](_0x501765){const _0x42ff43=this['editor']['plugins']['get']('CommentsRepository'),_0x13c873=this['editor']['plugins']['get']('Annotations'),_0x45168a=this['_suggestionToController']['get'](_0x501765),_0x16e03d=_0x45168a['view'],_0x43e2a3=_0x13c873['getByInnerView'](_0x16e03d);_0x42ff43['_unbindEditors'](_0x16e03d),_0x43e2a3&&_0x13c873['remove'](_0x43e2a3),this['_suggestionToController']['delete'](_0x501765),this['_viewToController']['delete'](_0x16e03d),_0x45168a['destroy']();}['_updateController'](_0xd696b5){if(!_0xd696b5['isInContent']||!this['_suggestionToController']['has'](_0xd696b5))return;const _0x3d8586=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414816=this['_suggestionToController']['get'](_0xd696b5),_0x42ef70=_0xd696b5['getAllAdjacentSuggestions']();_0x414816['view']['descriptionParts']=_0x3d8586['descriptionFactory']['getDescriptions'](_0x42ef70);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x18328d,(_0x1aab1a,_0x37545e)=>{const _0x37e505=this['editor']['plugins']['get'](k),_0x297d25=this['editor']['plugins']['get'](p);if(!_0x297d25['activeMarkers']['length'])return;const {id:_0x1556fb}=_0x297d25['_splitMarkerName'](_0x297d25['activeMarkers'][0x0]),_0x39fc34=_0x37e505['getSuggestion'](_0x1556fb);_0x39fc34&&(this['_suggestionToController']['get'](_0x39fc34)['view']['focus'](),_0x37545e());});}['destroy'](){for(const _0x568745 of this['_suggestionToController']['keys']())this['_destroyController'](_0x568745);for(const _0x182076 of this['_annotationViews']['values']())_0x182076['mainView']['destroy']();super['destroy']();}}function me(_0x375682){return'model'in _0x375682;}class k extends _0x4313d1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xe9a50a){this['editor']['plugins']['get'](p)['adapter']=_0xe9a50a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x210740){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x210740);}['getSuggestions']({skipNotAttached:_0x16bc98=!0x1,toJSON:_0x1cfcd3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x16bc98,'toJSON':_0x1cfcd3});}['getSuggestion'](_0x59cdf2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x59cdf2);}}const T=['Pagination'];class P extends _0x4313d1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5e4d12=this['editor'];if(_0x5e4d12['config']['define']('trackChangesData.editorCreator',_0x57670d=>{const _0x4ff36e=_0x5e4d12['model']['document']['getRootNames']()['reduce']((_0x4fa0a7,_0x56a6d6)=>(_0x4fa0a7[_0x56a6d6]='',_0x4fa0a7),{});return _0x5e4d12['constructor']['create'](_0x4ff36e,_0x57670d);}),'function'!=typeof _0x5e4d12['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a398d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8ce075){return N(this['editor'],!0x0,_0x8ce075);}['getDataWithDiscardedSuggestions'](_0x1f3d46){return N(this['editor'],!0x1,_0x1f3d46);}}class D extends _0x4313d1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x10bdbb){super(_0x10bdbb),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(_0x529984){return void 0x0!==_0x529984['getRootsAttributes'];}async function N(_0x13ac53,_0x4f3fa9,_0xecb15){const _0xe980ab=_0x21e4db(_0x13ac53,T);_0xe980ab['plugins']['push'](p,D),_0xe980ab['rootsAttributes']=v(_0x13ac53)?_0x13ac53['getRootsAttributes']():void 0x0;const _0x319cfc=document['createDocumentFragment'](),_0x1626ca=_0x13ac53['config']['get']('trackChangesData')['editorCreator'],_0x39caad=await _0x1626ca(_0xe980ab,()=>function(_0x4ab6d8){const _0x173275=document['createElement']('div');return _0x4ab6d8['appendChild'](_0x173275),_0x173275;}(_0x319cfc));!function(_0x5ec760,_0x55a122){const _0x2abdd3=_0x5ec760['model']['document']['getRootNames']()['reduce']((_0x4cf245,_0x2b44dd)=>(_0x4cf245[_0x2b44dd]=_0x5ec760['data']['get']({'rootName':_0x2b44dd}),_0x4cf245),{}),_0x5638f2=_0x5ec760['plugins']['get']('Users')['users']['map'](_0x1d3c91=>({'id':_0x1d3c91['id'],'name':_0x1d3c91['name']})),_0x5dd0f2=_0x5ec760['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c327e=_0x5ec760['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x7ef35b=_0x55a122['plugins']['get']('Users'),_0x4bb260=_0x55a122['plugins']['get']('TrackChangesEditing'),_0x65b7ef=_0x55a122['plugins']['get']('CommentsRepository');for(const _0x58de22 of _0x65b7ef['getCommentThreads']())_0x58de22['remove']();for(const _0x335691 of _0x5638f2)_0x7ef35b['getUser'](_0x335691['id'])||_0x7ef35b['addUser'](_0x335691);_0x7ef35b['me']||_0x7ef35b['useAnonymousUser']();for(const _0x5366af of _0x1c327e)_0x65b7ef['addCommentThread'](_0x5366af);for(const _0x29850e of _0x5dd0f2)_0x4bb260['addSuggestionData'](_0x29850e);_0x55a122['data']['set'](_0x2abdd3);}(_0x13ac53,_0x39caad),_0x39caad['execute'](_0x4f3fa9?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c4128=v(_0x39caad)?_0x39caad['getFullData'](_0xecb15):_0x39caad['data']['get'](_0xecb15);return await _0x39caad['destroy'](),_0x5c4128;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|