@ckeditor/ckeditor5-track-changes 44.0.0-alpha.3 → 44.0.0-alpha.5
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 Qt,Plugin as
|
|
24
|
-
_0x1cbdd7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x179e54,_0x557d70){super(),this['id']=_0x557d70['id'],this['type']=_0x557d70['type'],this['subType']=_0x557d70['subType']||null,this['author']=_0x557d70['author'],this['creator']=_0x557d70['creator']||_0x557d70['author'],this['isExternal']=Boolean(_0x557d70['attributes']&&_0x557d70['attributes']['@external']),this['data']=null,this['_model']=_0x179e54,this['_onAccept']=_0x557d70['onAccept'],this['_onDiscard']=_0x557d70['onDiscard'],this['_onAttributesChange']=_0x557d70['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x557d70['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 _0x5f28a0=this;for(;_0x5f28a0['previous'];)_0x5f28a0=_0x5f28a0['previous'];return _0x5f28a0;}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'](_0x4b71be){this['_markerNames']['add'](_0x4b71be);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x516207=>this['_model']['markers']['get'](_0x516207))['filter'](_0x39c73d=>_0x39c73d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x53da5b=>{for(const _0x77f553 of this['getMarkers']())_0x53da5b['removeMarker'](_0x77f553);}),this['_markerNames']['clear']();}['removeMarker'](_0x653d72){this['_model']['change'](_0x167acb=>{_0x167acb['removeMarker'](_0x653d72);}),this['_markerNames']['delete'](_0x653d72);}['addRange'](_0x2304e9){const _0x5c6eff='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5c6eff),this['_model']['change'](_0xa62a9d=>{_0xa62a9d['addMarker'](_0x5c6eff,{'range':_0x2304e9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x75d59b){for(const _0x354e6d of this['getRanges']())if(_0x354e6d['isIntersecting'](_0x75d59b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5d1b59=>_0x5d1b59['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50e5c4,_0x246752)=>[..._0x50e5c4,..._0x246752['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5018a5=this['getRanges']();if(0x1!=_0x5018a5['length'])return null;const _0x2f05bb=_0x5018a5[0x0],_0xa506db=_0x2f05bb['start']['nodeAfter'],_0x295c83=_0x2f05bb['end']['nodeBefore'];return _0xa506db instanceof _0x116d66?_0xa506db!=_0x295c83?null:_0xa506db: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 _0x5ea2a3=[];let _0x340a89=this['head'];for(;_0x340a89;)_0x5ea2a3['push'](_0x340a89),_0x340a89=_0x340a89['next'];return _0x5ea2a3;}['setAttribute'](_0x26f4d0,_0x5a9fe8){const _0x5ed55c=_0x2931c2(this['attributes']);_0x2210d2(_0x5ed55c,_0x26f4d0,_0x5a9fe8),_0x49b274(_0x5ed55c,this['attributes'])||(this['attributes']=_0x5ed55c,this['_onAttributesChange'](_0x5ed55c));}['removeAttribute'](_0x525f48){const _0x1f853c=_0x2931c2(this['attributes']);_0x2ed535(_0x1f853c,_0x525f48),_0x49b274(_0x1f853c,this['attributes'])||(this['attributes']=_0x1f853c,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 _0x325d63()['substr'](0x1,0x5);}}function o(_0x3d0017,_0x180c9a,_0x4be3f4){const _0x5bc6f9=_0x3d0017['t'],t=_0x3d0017['t'];switch(_0x180c9a){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',_0x4be3f4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4be3f4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4be3f4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4be3f4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4be3f4);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',_0x4be3f4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4be3f4);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',_0x4be3f4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4be3f4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4be3f4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4be3f4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4be3f4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4be3f4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4be3f4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4be3f4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4be3f4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4be3f4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4be3f4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4be3f4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4be3f4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4be3f4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4be3f4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4be3f4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4be3f4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4be3f4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4be3f4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4be3f4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4be3f4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4be3f4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4be3f4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4be3f4);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'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4be3f4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4be3f4);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'},_0x4be3f4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4be3f4);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 _0x5bc6f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4be3f4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5bc6f9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4be3f4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4be3f4);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'},_0x4be3f4);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'},_0x4be3f4);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'},_0x4be3f4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x180c9a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13c812,_0x35b481){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13c812,this['_locale']=_0x35b481;}['getDescriptions'](_0x2ddd2a){const _0x49979e=[],_0x559fff=new Set(),_0x424d26=new Set();for(let _0x4d7b35=0x0;_0x4d7b35<_0x2ddd2a['length'];_0x4d7b35++){const _0xd175d7=_0x2ddd2a[_0x4d7b35];if(!_0xd175d7['isInContent'])continue;const _0x2ebdb6=this['_handleCustomCallbackDescription'](_0xd175d7);if(_0x2ebdb6){if(null!=_0xd175d7['subType']){if(_0x559fff['has'](_0xd175d7['subType']))continue;_0x559fff['add'](_0xd175d7['subType']);}_0x49979e['push'](_0x2ebdb6);}else{if('attribute'!=_0xd175d7['type'])'insertion'!=_0xd175d7['type']&&'deletion'!=_0xd175d7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49979e,_0xd175d7,_0x2ddd2a[_0x4d7b35+0x1]);else{const _0x457fcf=_0xd175d7['data']['key'];if(_0x424d26['has'](_0x457fcf))continue;_0x424d26['add'](_0xd175d7['data']['key']),_0x457fcf==m?this['_handleRenameSuggestionDescription'](_0x49979e,_0xd175d7):this['_handleAttributeSuggestionDescription'](_0x49979e,_0xd175d7);}}}return this['_resolveDescriptionItems'](_0x49979e);}['registerDescriptionCallback'](_0x834fe4){this['_customCallbacks']['push'](_0x834fe4);}['registerElementLabel'](_0x5bd945,_0x5ecb58,_0x55eccf=_0x3a775e['normal']){'function'==typeof _0x5bd945?_0x2444b3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5bd945,'label':_0x5ecb58,'priority':_0x55eccf}):this['_itemLabels']['set'](_0x5bd945,_0x5ecb58);}['registerAttributeLabel'](_0x4d28a2,_0x2df246){this['_attributeLabels']['set'](_0x4d28a2,_0x2df246);}['getItemLabel'](_0x430958,_0x474aab=0x1){let _0x111978;for(const _0x55fbb0 of this['_itemLabelsCallbacks'])if(_0x55fbb0['matchingCallback'](_0x430958)){_0x111978=_0x55fbb0['label'];break;}return _0x111978||(_0x111978=this['_itemLabels']['get'](_0x430958['name'])),_0x111978?_0x111978(_0x474aab):0x1!==_0x474aab?_0x474aab+'\x20'+_0x430958['name']+'s':''+_0x430958['name'];}['_addDescriptionItems'](_0x57cd0a,_0x1e7adf){const _0x5ddbc1=_0x1e7adf['getFirstRange']()['getWalker'](),_0xb12e9='insertion'==_0x1e7adf['type']?'add':'remove';for(const _0x254c52 of _0x5ddbc1){const _0x16288f=_0x254c52['item'],_0x243792=_0x57cd0a[_0x57cd0a['length']-0x1];if(_0x16288f['is']('$textProxy'))_0x243792&&_0x243792['type']['indexOf']('Container')>-0x1&&_0x57cd0a['pop'](),_0x243792&&'text'==_0x243792['type']?_0x243792[_0xb12e9]+=_0x16288f['data']:_0x57cd0a['push']({'type':'text','add':'add'==_0xb12e9?_0x16288f['data']:'','remove':'remove'==_0xb12e9?_0x16288f['data']:''});else{if(this['_schema']['isObject'](_0x16288f)){const _0x350185=_0x16288f;if(_0x243792&&_0x243792['type']['indexOf']('Container')>-0x1&&_0x57cd0a['pop'](),'elementEnd'==_0x254c52['type'])continue;_0x243792&&_0x243792['type']==_0xb12e9+'Object'&&_0x243792['element']['name']==_0x350185['name']?_0x243792['quantity']++:_0x57cd0a['push']({'type':_0xb12e9+'Object','element':_0x350185,'quantity':0x1}),_0x5ddbc1['skip'](_0x4530a2=>!('elementEnd'==_0x4530a2['type']&&_0x4530a2['item']==_0x16288f));}else{if(this['_schema']['checkChild'](_0x16288f,'$text')||_0x16288f['is']('element','softBreak')){const _0x12c06c=_0x16288f;if('add'==_0xb12e9&&'elementStart'==_0x254c52['type']||'remove'==_0xb12e9&&'elementEnd'==_0x254c52['type'])continue;if(_0x243792&&-0x1==_0x243792['type']['indexOf']('Container')){'text'==_0x243792['type']&&(_0x243792[_0xb12e9]+='\x0a');continue;}let _0x383fb8;if(_0x383fb8='add'==_0xb12e9?_0x12c06c['nextSibling']&&!this['_schema']['isObject'](_0x12c06c['nextSibling'])?_0x12c06c['nextSibling']:null:_0x12c06c['previousSibling']&&!this['_schema']['isObject'](_0x12c06c['previousSibling'])?_0x12c06c['previousSibling']:null,_0x12c06c['isEmpty']||_0x383fb8&&_0x383fb8['isEmpty']){const _0x8cd8a4=_0x383fb8&&_0x383fb8['isEmpty']?_0x383fb8:_0x12c06c;_0x243792&&_0x243792['type']==_0xb12e9+'EmptyContainer'&&_0x243792['element']['name']==_0x8cd8a4['name']?_0x243792['quantity']++:_0x57cd0a['push']({'type':_0xb12e9+'EmptyContainer','element':_0x8cd8a4,'quantity':0x1});}else _0x57cd0a['push']({'type':_0xb12e9+'Container','element':_0x12c06c});}}}}}['_resolveDescriptionItems'](_0x49def6){const _0x5c109c=this['_locale'],_0x2f2163=[],_0x1d20a1=[],_0x224145=[];for(const _0x3f3d23 of _0x49def6)switch(_0x3f3d23['type']){case'text':if(_0x3f3d23['add']=_0x3f3d23['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f3d23['remove']=_0x3f3d23['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f3d23['add']&&''!=_0x3f3d23['remove']){_0x2f2163['push']({'type':'replace','content':o(_0x5c109c,'REPLACE_TEXT',['\x22'+_0x3f3d23['remove']+'\x22','\x22'+_0x3f3d23['add']+'\x22'])});continue;}if(null!=_0x3f3d23['add']['match'](/^ +$/)){_0x2f2163['push']({'type':'insertion','content':o(_0x5c109c,'*Insert:*\x20%0',o(_0x5c109c,'ELEMENT_SPACE',_0x3f3d23['add']['length']))});continue;}if(null!=_0x3f3d23['remove']['match'](/^ +$/)){_0x2f2163['push']({'type':'deletion','content':o(_0x5c109c,'*Remove:*\x20%0',o(_0x5c109c,'ELEMENT_SPACE',_0x3f3d23['remove']['length']))});continue;}if(''!=_0x3f3d23['add']){_0x2f2163['push']({'type':'insertion','content':o(_0x5c109c,'*Insert:*\x20%0','\x22'+_0x3f3d23['add']+'\x22')});continue;}_0x2f2163['push']({'type':'deletion','content':o(_0x5c109c,'*Remove:*\x20%0','\x22'+_0x3f3d23['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2f2163['push']({'type':'insertion','content':o(_0x5c109c,'*Insert:*\x20%0',this['getItemLabel'](_0x3f3d23['element'],_0x3f3d23['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2f2163['push']({'type':'deletion','content':o(_0x5c109c,'*Remove:*\x20%0',this['getItemLabel'](_0x3f3d23['element'],_0x3f3d23['quantity']))});continue;case'addContainer':_0x2f2163['push']({'type':'insertion','content':o(_0x5c109c,'*Split:*\x20%0',this['getItemLabel'](_0x3f3d23['element'],_0x3f3d23['quantity']))});continue;case'removeContainer':_0x2f2163['push']({'type':'deletion','content':o(_0x5c109c,'*Merge:*\x20%0',this['getItemLabel'](_0x3f3d23['element'],_0x3f3d23['quantity']))});continue;case'addFormat':_0x1d20a1['push'](_0x3f3d23['key']);continue;case'removeFormat':_0x224145['push'](_0x3f3d23['key']);continue;default:_0x2f2163['push'](_0x3f3d23);}if(_0x1d20a1['length']){const _0x1ceb83=_0x1d20a1['map'](_0xefe9be=>this['_attributeLabels']['has'](_0xefe9be)?this['_attributeLabels']['get'](_0xefe9be):_0xefe9be)['join'](',\x20');_0x2f2163['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1ceb83)});}if(_0x224145['length']){const _0x303d03=_0x224145['map'](_0xbf93f7=>this['_attributeLabels']['has'](_0xbf93f7)?this['_attributeLabels']['get'](_0xbf93f7):_0xbf93f7)['join'](',\x20');_0x2f2163['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x303d03)});}return _0x2f2163;}['_handleCustomCallbackDescription'](_0xe17c00){for(const _0x2c199d of this['_customCallbacks']){const _0x1fa89b=_0x2c199d(_0xe17c00);if(_0x1fa89b&&'type'in _0x1fa89b)return _0x1fa89b;}}['_handleAttributeSuggestionDescription'](_0x3c7f7b,_0x4d0779){const _0x26cc70=_0x4d0779['data'],_0x1e0b42=void 0x0===_0x26cc70['newValue']?'removeFormat':'addFormat';_0x3c7f7b['push']({'type':_0x1e0b42,'key':_0x26cc70['key']});}['_handleRenameSuggestionDescription'](_0x4a72fb,_0x354203){_0x4a72fb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x354203['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ed48c,_0x7b15a0,_0x206741){if(this['_addDescriptionItems'](_0x5ed48c,_0x7b15a0),_0x206741&&_0x206741['getFirstRange']()&&!_0x7b15a0['getFirstRange']()['end']['isEqual'](_0x206741['getFirstRange']()['start'])){const _0xe9cd13=_0x5ed48c[_0x5ed48c['length']-0x1],_0x5e8c20='insertion'==_0x7b15a0['type']?'add':'remove';_0xe9cd13&&'text'==_0xe9cd13['type']&&(_0xe9cd13[_0x5e8c20]+='\x0a');}}}class U extends _0x4785df{['afterInit'](){const _0x4a09a9=this['editor'],_0x17b65b=_0x4a09a9['plugins']['get']('TrackChangesEditing');_0x4a09a9['commands']['get']('showAIAssistant')&&_0x17b65b['enableCommand']('showAIAssistant');}}class V extends _0x4785df{['afterInit'](){const _0xfe121f=this['editor'],_0x52b1c0=_0xfe121f['locale'];if(!_0xfe121f['plugins']['has']('AlignmentEditing'))return;const _0x585ba4=_0xfe121f['plugins']['get']('TrackChangesEditing');_0x585ba4['enableDefaultAttributesIntegration']('alignment'),_0x585ba4['registerBlockAttribute']('alignment'),_0x585ba4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52b1c0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d80b=this['editor'],_0x3c7417=_0x27d80b['locale'];_0x27d80b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545365=>{if('formatBlock'!=_0x545365['type'])return;const {data:_0x3a11ab}=_0x545365;if(_0x3a11ab&&'alignment'==_0x3a11ab['commandName']){const _0x447737=_0x3a11ab['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c7417,'*Format:*\x20%0',function(_0xfab78e){switch(_0xfab78e){case'left':return o(_0x3c7417,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c7417,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c7417,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c7417,'FORMAT_JUSTIFY_TEXT');}}(_0x447737))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4785df{['afterInit'](){const _0x5d1b2f=this['editor'],_0x27d71a=_0x5d1b2f['plugins']['get']('TrackChangesEditing'),_0x20ee2c=_0x5d1b2f['locale'];for(const _0x53f9b8 of Zt){if(!_0x5d1b2f['plugins']['has'](_0x53f9b8))continue;const _0x38106a=_0x53f9b8['slice'](0x0,-0x7)['toLowerCase'](),_0x31c325='FORMAT_'+_0x38106a['toUpperCase']();_0x27d71a['enableDefaultAttributesIntegration'](_0x38106a),_0x27d71a['registerInlineAttribute'](_0x38106a),_0x27d71a['descriptionFactory']['registerAttributeLabel'](_0x38106a,o(_0x20ee2c,_0x31c325));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206ef2=this['editor'],_0x2c735b=_0x206ef2['locale'],_0x5e25ad=_0x206ef2['plugins']['get']('TrackChangesEditing');function _0x3dbf86(_0xe4f7c4,_0x1519d9){_0x5e25ad['descriptionFactory']['registerDescriptionCallback'](_0x166a7c=>{if('formatInline'!=_0x166a7c['type'])return;const {data:_0x545340}=_0x166a7c;return _0x545340&&_0x545340['commandName']===_0xe4f7c4?_0x545340['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c735b,'*Format:*\x20%0',_0x1519d9)}:{'type':'format','content':o(_0x2c735b,'*Remove\x20format:*\x20%0',_0x1519d9)}:void 0x0;});}_0x3dbf86('bold',o(_0x2c735b,'FORMAT_BOLD')),_0x3dbf86('italic',o(_0x2c735b,'FORMAT_ITALIC')),_0x3dbf86('underline',o(_0x2c735b,'FORMAT_UNDERLINE')),_0x3dbf86('code',o(_0x2c735b,'FORMAT_CODE')),_0x3dbf86('strikethrough',o(_0x2c735b,'FORMAT_STRIKETHROUGH')),_0x3dbf86('subscript',o(_0x2c735b,'FORMAT_SUBSCRIPT')),_0x3dbf86('superscript',o(_0x2c735b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4785df{['afterInit'](){const _0x517b86=this['editor'],_0x1caef7=_0x517b86['locale'];if(!_0x517b86['plugins']['has']('BlockQuoteEditing'))return;const _0x27a20c=_0x517b86['plugins']['get']('TrackChangesEditing'),_0x4a4570=this['editor']['commands']['get']('blockQuote');_0x27a20c['enableCommand']('blockQuote',(_0x1876a0,_0x2821e9={})=>{const _0x54e18e=this['editor']['model']['document']['selection'],_0x45ca80=_0x2821e9&&void 0x0!==_0x2821e9['forceValue']?_0x2821e9['forceValue']:!_0x4a4570['value'];let _0x510e86=[];if(_0x45ca80){const _0x57abfa=Array['from'](_0x54e18e['getSelectedBlocks']())['filter'](_0x144fb5=>oo(_0x144fb5)||function(_0x28951e,_0x25810d){const _0x2c7fde=_0x25810d['checkChild'](_0x28951e['parent'],'blockQuote'),_0x488b2c=_0x25810d['checkChild'](['$root','blockQuote'],_0x28951e);return _0x2c7fde&&_0x488b2c;}(_0x144fb5,this['editor']['model']['schema']));_0x510e86=to(_0x57abfa,_0x517b86['model']);}else{const _0xffde08=Array['from'](_0x54e18e['getSelectedBlocks']())['filter'](_0x231d15=>oo(_0x231d15));_0x510e86=to(_0xffde08,_0x517b86['model']);}_0x517b86['model']['change'](()=>{for(const _0x137376 of _0x510e86)_0x27a20c['markBlockFormat'](_0x137376,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x45ca80}]});});}),_0x27a20c['descriptionFactory']['registerDescriptionCallback'](_0x553295=>{const {data:_0x51c6fc}=_0x553295;if(_0x51c6fc&&'blockQuote'==_0x51c6fc['commandName']){const _0x44a351=o(_0x1caef7,'ELEMENT_BLOCK_QUOTE');return _0x51c6fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1caef7,'*Set\x20format:*\x20%0',_0x44a351)}:{'type':'format','content':o(_0x1caef7,'*Remove\x20format:*\x20%0',_0x44a351)};}});}}function oo(_0x122680){return'blockQuote'==_0x122680['parent']['name'];}class L extends _0x4785df{['afterInit'](){const _0x1487bc=this['editor'],_0x434f13=_0x1487bc['locale'],_0x4b79f9=_0x1487bc['plugins']['get']('TrackChangesEditing');_0x1487bc['plugins']['has']('BookmarkEditing')&&(_0x4b79f9['enableCommand']('insertBookmark'),_0x4b79f9['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b79f9['registerBlockAttribute']('bookmarkId'),_0x4b79f9['descriptionFactory']['registerDescriptionCallback'](_0x31185e=>{if('insertion'!=_0x31185e['type']&&'deletion'!=_0x31185e['type']&&'attribute'!=_0x31185e['type'])return;const _0x36541b=_0x31185e['getContainedElement']();if(null==_0x36541b)return;if(!_0x36541b['is']('element','bookmark'))return;const _0x115dba=_0x36541b['getAttribute']('bookmarkId');if('insertion'==_0x31185e['type'])return{'type':'insertion','content':o(_0x434f13,'*Insert:*\x20%0','\x22'+_0x115dba+'\x22\x20'+o(_0x434f13,'ELEMENT_BOOKMARK'))};if('deletion'==_0x31185e['type'])return{'type':'deletion','content':o(_0x434f13,'*Remove:*\x20%0','\x22'+_0x115dba+'\x22\x20'+o(_0x434f13,'ELEMENT_BOOKMARK'))};const {data:_0x81ab39}=_0x31185e;if(!_0x81ab39||'bookmarkId'!=_0x81ab39['key'])return;return{'type':'format','content':o(_0x434f13,'*Set\x20bookmark:*\x20%0','\x22'+_0x81ab39['newValue']+'\x22')};}));}}class J extends _0x4785df{['afterInit'](){const _0x4215f8=this['editor'];_0x4215f8['plugins']['has']('CaseChange')&&(_0x4215f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4215f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4215f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4785df{['afterInit'](){const _0x20a383=this['editor'];_0x20a383['commands']['get']('ckbox')&&_0x20a383['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4785df{['afterInit'](){const _0x4b02e2=this['editor'];if(!_0x4b02e2['plugins']['has']('CodeBlock'))return;const _0x35c144=_0x4b02e2['plugins']['get']('TrackChangesEditing'),_0x12b951=_0x4b02e2['locale'],_0x4e099d=_0x4b02e2['config']['get']('codeBlock')['languages'],_0x282c1b=_0x4b02e2['commands']['get']('codeBlock');_0x35c144['enableCommand']('indentCodeBlock'),_0x35c144['enableCommand']('outdentCodeBlock'),_0x35c144['enableCommand']('codeBlock',(_0x280daf,_0x478f9d={})=>{const _0x2b9fae=_0x4b02e2['model'],_0x385566=_0x4b02e2['model']['document']['selection'],_0x5bd89f=_0x478f9d&&void 0x0!==_0x478f9d['forceValue']?_0x478f9d['forceValue']:!_0x282c1b['value'];let _0xcfc61c;_0x478f9d['language']||(_0x478f9d['language']=_0x4e099d[0x0]['language']),_0xcfc61c=_0x5bd89f?Array['from'](_0x385566['getSelectedBlocks']())['filter'](_0x4b68f7=>eo(_0x4b68f7)||function(_0x452ec1,_0x1965e2){if(_0x452ec1['is']('rootElement')||_0x1965e2['isLimit'](_0x452ec1))return!0x1;return _0x1965e2['checkChild'](_0x452ec1['parent'],'codeBlock');}(_0x4b68f7,_0x2b9fae['schema'])):Array['from'](_0x385566['getSelectedBlocks']())['filter'](_0x42e13c=>eo(_0x42e13c));const _0x19621b=to(_0xcfc61c,_0x2b9fae);_0x2b9fae['change'](()=>{for(const _0x5094b8 of _0x19621b)_0x35c144['markBlockFormat'](_0x5094b8,{'commandName':'codeBlock','commandParams':[{..._0x478f9d,'forceValue':_0x5bd89f}],'formatGroupId':'blockName'});});}),(_0x35c144['descriptionFactory']['registerElementLabel']('codeBlock',_0x49a077=>o(_0x12b951,'ELEMENT_CODE_BLOCK',_0x49a077)),_0x35c144['descriptionFactory']['registerDescriptionCallback'](_0x31f84c=>{if('formatBlock'!=_0x31f84c['type'])return;const _0x517f7d=_0x12b951['t'],{data:_0x1e56db}=_0x31f84c;if(!_0x1e56db||'codeBlock'!=_0x1e56db['commandName'])return;const _0x4f9bf2=_0x1e56db['commandParams'][0x0]['language'],_0x5ab309=_0x517f7d(_0x4e099d['find'](_0x207230=>_0x207230['language']===_0x4f9bf2)['label'])['toLowerCase']();return _0x1e56db['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12b951,'*Set\x20format:*\x20%0',o(_0x12b951,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ab309+')')}:{'type':'format','content':o(_0x12b951,'*Remove\x20format:*\x20%0',o(_0x12b951,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x177dd4){return'codeBlock'==_0x177dd4['name'];}class z extends _0x4785df{['afterInit'](){const _0x442474=this['editor'];if(!_0x442474['plugins']['has']('CommentsEditing'))return;_0x442474['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11a303,_0x260cb7,_0x2339cd){const _0x4a4b35=[];for(const _0x4143d1 of _0x260cb7['getItems']())_0x4143d1['hasAttribute'](_0x11a303)&&_0x4a4b35['push'](_0x2339cd['createRangeOn'](_0x4143d1));return _0x4a4b35;}function Ne(_0x50dcce,_0x3750db,{showActiveMarker:_0x1aa6d6=!0x0}={}){const _0x1c5821=_0x50dcce['plugins']['get']('TrackChangesEditing');return(_0x417d80,_0x4ef18d,_0x42c8f4)=>{if(!_0x42c8f4['consumable']['test'](_0x4ef18d['markerRange'],_0x417d80['name']))return;const _0xb19cff=_0x4ef18d['markerRange']['getWalker'](),_0x3d7e46=_0x4ef18d['markerRange']['start'],_0x522d65=_0x50dcce['model']['schema'];let _0x1bd7e1=null,_0x12643d=null,_0x2e5dc1=!0x1,_0x2489d6=!0x1;for(const _0x1766fa of _0xb19cff){const _0x354981=_0x1766fa['item'];_0x2e5dc1=_0x2e5dc1||_0x522d65['isContent'](_0x354981);const _0x32957e=_0x42c8f4['mapper']['toViewElement'](_0x354981);if(_0x32957e&&_0x32957e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1766fa['type']&&(_0x522d65['isBlock'](_0x354981)&&!_0x522d65['isLimit'](_0x354981)&&(_0x354981['nextSibling']||_0x3d7e46['isAtEnd']?_0x1bd7e1&&_0x1bd7e1['parent']==_0x354981||(_0x1bd7e1=_0x354981,_0x5035d7(_0x1766fa['previousPosition']),_0x2489d6=!0x0):_0x12643d=_0x12643d||_0x1766fa['previousPosition']));}function _0x5035d7(_0x5266eb){const {authorId:_0x4a0a56}=_0x1c5821['_splitMarkerName'](_0x4ef18d['markerName']),_0x2b969c=_0x42c8f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3750db,'data-author-id':_0x4a0a56}),_0x43960b=_0x42c8f4['mapper']['toViewPosition'](_0x5266eb);_0x1aa6d6&&_0x1c5821['activeMarkers']['includes'](_0x4ef18d['markerName'])&&_0x42c8f4['writer']['addClass']('ck-suggestion-marker--active',_0x2b969c),_0x42c8f4['writer']['insert'](_0x43960b,_0x2b969c),_0x42c8f4['mapper']['bindElementToMarker'](_0x2b969c,_0x4ef18d['markerName']);}_0x2e5dc1||_0x2489d6||!_0x12643d||_0x5035d7(_0x12643d);};}class K extends _0x4785df{static get['requires'](){return[_0x212dc9];}['init'](){const _0x578d29=this['editor'],_0x550713=_0x578d29['plugins']['get']('TrackChangesEditing');_0x550713['enableCommand']('delete');const _0xcf7650=_0x578d29['commands']['get']('deleteForward');_0x550713['enableCommand']('deleteForward',(_0x394005,_0x4354ef={})=>{const _0x4fa479=_0x578d29['model']['createSelection'](_0x578d29['model']['document']['selection']);_0x4fa479['isCollapsed']&&_0x578d29['model']['modifySelection'](_0x4fa479,{'direction':'forward','unit':_0x4354ef['unit']});const _0xc2d9b8=_0x4fa479['getFirstRange'](),_0x416bff=_0x18db69['fromRange'](_0xc2d9b8);let _0x28f90b;_0x394005(_0x4354ef),_0x28f90b='$graveyard'==_0x416bff['root']['rootName']?_0x578d29['model']['createRange'](_0xc2d9b8['start']):_0x578d29['model']['createRange'](_0x416bff['start'],_0x416bff['end']),_0x416bff['detach'](),_0x578d29['model']['enqueueChange'](_0xcf7650['buffer']['batch'],_0x2196ad=>{_0xcf7650['buffer']['lock'](),_0x2196ad['setSelection'](_0x2196ad['createRange'](_0x28f90b['end'])),_0xcf7650['buffer']['unlock']();});}),_0x578d29['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x578d29,'merge'),{'priority':'high'}),_0x578d29['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5789e5,_0x373f2b,_0xd24152)=>{_0xd24152['options']['showSuggestionHighlights']&&Ne(_0x578d29,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5789e5,_0x373f2b,_0xd24152);},{'priority':'high'}),_0x578d29['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x35a669,_0x3f022b,_0x76f5be)=>{const _0x1f631d=_0x76f5be['mapper']['markerNameToElements'](_0x3f022b['markerName']);if(_0x1f631d){for(const _0x443636 of _0x1f631d)_0x443636['is']('uiElement')&&(_0x76f5be['mapper']['unbindElementFromMarkerName'](_0x443636,_0x3f022b['markerName']),_0x76f5be['writer']['remove'](_0x443636));}},{'priority':'high'});}}class W extends _0x4785df{['afterInit'](){const _0x2869b2=this['editor'];if(!_0x2869b2['plugins']['has']('ListEditing'))return;const _0x52e6de=_0x2869b2['locale'],_0x24a298=_0x2869b2['plugins']['get']('TrackChangesEditing'),_0x203bb3=_0x2869b2['plugins']['has']('TodoListEditing'),_0x442672=!!_0x2869b2['config']['get']('list.multiBlock');function _0x57a22a(_0x2fdf34){return{'type':'format','content':''+o(_0x52e6de,'*Set\x20format:*\x20%0',_0x2fdf34)};}function _0x2b348d(_0x111d36){return{'type':'format','content':''+o(_0x52e6de,'*Remove\x20format:*\x20%0',_0x111d36)};}_0x24a298['enableDefaultAttributesIntegration']('numberedList'),_0x24a298['enableDefaultAttributesIntegration']('bulletedList'),_0x24a298['enableDefaultAttributesIntegration']('customNumberedList'),_0x24a298['enableDefaultAttributesIntegration']('customBulletedList'),_0x24a298['enableDefaultAttributesIntegration']('indentList'),_0x24a298['enableDefaultAttributesIntegration']('outdentList'),_0x24a298['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24a298['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24a298['registerBlockAttribute']('listItemId'),_0x24a298['registerBlockAttribute']('listType'),_0x24a298['registerBlockAttribute']('listIndent'),_0x442672&&(_0x24a298['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24a298['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x203bb3&&(_0x24a298['enableDefaultAttributesIntegration']('todoList'),_0x24a298['enableDefaultAttributesIntegration']('checkTodoList'),_0x24a298['registerBlockAttribute']('todoListChecked'),_0x24a298['descriptionFactory']['registerDescriptionCallback'](_0x2ba439=>{const {data:_0x6d7ee2}=_0x2ba439;if(_0x6d7ee2&&'todoListChecked'==_0x6d7ee2['key'])return{'type':'format','content':_0x6d7ee2['newValue']?o(_0x52e6de,'*Check\x20item*'):o(_0x52e6de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5b01e3=>{if(_0x5b01e3['batch']['isUndo'])return!0x1;let _0x166240=!0x1;const _0x103cdf=_0x24a298['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2300f7=>'todoListChecked'===_0x24a298['_getAttributeKey'](_0x2300f7));for(const _0x47dccc of _0x103cdf){'todo'!=_0x47dccc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24a298['_findSuggestions'](_0x47dccc['getFirstRange'](),'attribute')['find'](_0x31e0ee=>'listType'===_0x24a298['_getAttributeKey'](_0x31e0ee['suggestion']))||(_0x5b01e3['removeMarker'](_0x47dccc['getFirstMarker']()),_0x166240=!0x0));}return _0x166240;})),_0x24a298['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52e6de,'FORMAT_INDENT'));const _0x457b51={'type':'format','content':''};_0x24a298['descriptionFactory']['registerDescriptionCallback'](_0x5e9527=>{const {data:_0x545879}=_0x5e9527;if(!_0x545879||'listType'!=_0x545879['key'])return;let _0x22f7e0=_0x5e9527['head'];for(;_0x22f7e0;){if(_0x22f7e0['data']&&(('listStyle'==_0x22f7e0['data']['key']||'listMarkerStyle'==_0x22f7e0['data']['key'])&&(_0x22f7e0['data']['newValue']&&'default'!=_0x22f7e0['data']['newValue']||'default'!=_0x22f7e0['data']['oldValue']&&!_0x545879['newValue'])||!_0x442672&&_0x22f7e0['data']['key']==m))return _0x457b51;_0x22f7e0=_0x22f7e0['next'];}if(null==_0x545879['newValue'])switch(_0x545879['oldValue']){case'bulleted':return _0x2b348d(o(_0x52e6de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b348d(o(_0x52e6de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b348d(o(_0x52e6de,'ELEMENT_TODO_LIST'));}switch(_0x545879['newValue']){case'bulleted':return _0x57a22a(o(_0x52e6de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57a22a(o(_0x52e6de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57a22a(o(_0x52e6de,'ELEMENT_TODO_LIST'));}}),_0x24a298['descriptionFactory']['registerDescriptionCallback'](_0xcff7da=>{const {data:_0x360841}=_0xcff7da;if(_0x360841&&'listIndent'==_0x360841['key'])return null==_0x360841['newValue']||null==_0x360841['oldValue']&&0x0==_0x360841['newValue']?_0x457b51:void 0x0;}),_0x24a298['descriptionFactory']['registerDescriptionCallback'](_0x2bb58b=>{if('attribute'!=_0x2bb58b['type'])return;const {data:_0x43f774}=_0x2bb58b;if(!_0x43f774||'listItemId'!=_0x43f774['key'])return;const _0x29ff2d=Te(_0x2bb58b);return'newValue'==_0x29ff2d?{'type':'format','content':o(_0x52e6de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x29ff2d?{'type':'format','content':o(_0x52e6de,'*Split:*\x20list\x20item')}:_0x457b51;}),_0x2869b2['model']['document']['registerPostFixer'](_0x35198a=>this['listItemIdFixer'](_0x35198a)),_0x2869b2['model']['document']['registerPostFixer'](_0x55ea71=>this['noTrackChangesFixer'](_0x55ea71)),_0x2869b2['model']['document']['on']('change:data',(_0x280c65,_0x1ff0ef)=>{if(_0x1ff0ef['isUndo']||!_0x1ff0ef['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x51728f){if(_0x51728f['batch']['isUndo']||!_0x51728f['batch']['isLocal'])return!0x1;let _0x3cda32=!0x1;const _0x192c80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac6f6=>_0x3ac6f6['data']&&'listItemId'==_0x3ac6f6['data']['key'])['filter'](_0xa406ec=>_0xa406ec['data']['newValue']&&_0xa406ec['data']['oldValue']);for(const _0x3ac9be of _0x192c80)Te(_0x3ac9be)||(_0x51728f['removeMarker'](_0x3ac9be['getFirstMarker']()),_0x3cda32=!0x0);return _0x3cda32;}['noTrackChangesFixer'](_0x36d5ee){if(_0x36d5ee['batch']['isUndo']||!_0x36d5ee['batch']['isLocal'])return!0x1;const _0x33ea8c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33ea8c['trackChangesCommand']['value'])return!0x1;let _0x2fb6e1=!0x1;const _0x558c69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58a2ed=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16a519=>'attribute'==_0x16a519['type'])['filter'](_0x15ac54=>_0x558c69['includes'](_0x15ac54['attributeKey']));if(0x0==_0x58a2ed['length'])return _0x2fb6e1;for(const _0x39e4f of _0x58a2ed){const _0x250d14=_0x33ea8c['_findSuggestions'](_0x39e4f['range'],'attribute')['filter'](_0x1346fc=>!_0x1346fc['meta']['isNextTo'])['map'](_0x5aa57c=>_0x5aa57c['suggestion'])['filter'](_0x235817=>{const _0x38c01a=_0x33ea8c['_getAttributeKey'](_0x235817);return _0x558c69['includes'](_0x38c01a);});if(_0x250d14['length']){for(const _0x9f3aea of _0x250d14)_0x36d5ee['removeMarker'](_0x9f3aea['getFirstMarker']());_0x2fb6e1=!0x0;}}return _0x2fb6e1;}['assureChains'](){const _0xbb85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc887=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1beb3b;const _0x48751c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6acd25=>{if(_0x6acd25['data']['oldRange']||!_0x6acd25['data']['newRange'])return null;if(!_0x6acd25['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3cfc6c}=_0xbb85['_splitMarkerName'](_0x6acd25['name']);if(!_0xbb85['hasSuggestion'](_0x3cfc6c))return null;const _0x5831b6=_0xbb85['getSuggestion'](_0x3cfc6c);return _0x5bc887['includes'](_0x5831b6['data']['key']);})['map'](_0x354923=>{const {id:_0x2a68b4}=_0xbb85['_splitMarkerName'](_0x354923['name']),_0x3f09e5=_0xbb85['getSuggestion'](_0x2a68b4);return _0x1beb3b=_0x3f09e5['attributes']['groupId'],_0x3f09e5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x48751c['size'])return;const _0x9e8270=_0xbb85['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14f8f6=>'attribute'==_0x14f8f6['type']&&_0x14f8f6['data']&&_0x5bc887['includes'](_0x14f8f6['data']['key'])&&_0x14f8f6['attributes']['groupId']!=_0x1beb3b)['map'](_0x4a9b0f=>({'listItem':_0x4a9b0f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4a9b0f['attributes']['groupId']})),_0xd95c01=new Set();for(const {groupId:_0x1eed1c,listItem:_0x588c9b}of _0x9e8270)_0x48751c['has'](_0x588c9b)&&_0xd95c01['add'](_0x1eed1c);for(const _0xdcf541 of _0xbb85['getSuggestions']())_0xd95c01['has'](_0xdcf541['attributes']['groupId'])&&_0xdcf541['setAttribute']('groupId',_0x1beb3b);}['_supportLegacySuggestions'](){const _0x3e7c5f=this['editor'],_0x2c6ad4=_0x3e7c5f['locale'],_0xda8128=_0x3e7c5f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xda8128['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc5039c,_0x49bb4a){const _0x1275f3=[];for(let _0x23374d of _0xc5039c)_0x23374d['start']['nodeAfter']===_0x23374d['end']['parent']&&(_0x23374d=_0x3e7c5f['model']['createRange'](_0x3e7c5f['model']['createPositionAt'](_0x23374d['start']['nodeAfter'],0x0))),_0x1275f3['push'](_0x23374d);_0x3e7c5f['model']['change'](_0xc14015=>{const _0x52a83b=_0x3e7c5f['model']['document']['selection'],_0x25c0d4=Array['from'](_0x52a83b['getRanges']())['map'](_0xfdf67c=>_0x18db69['fromRange'](_0xfdf67c));_0xc14015['setSelection'](_0x1275f3),_0x3e7c5f['commands']['get'](_0x49bb4a['commandName'])['refresh'](),_0x49bb4a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3e7c5f['execute'](_0x49bb4a['commandName'],..._0x49bb4a['commandParams']),_0xc14015['setSelection'](_0x25c0d4);for(const _0x38c41b of _0x25c0d4)_0x38c41b['detach']();});}),_0xda8128['descriptionFactory']['registerElementLabel'](function(_0x11d4bb){const _0x23f6ff=!_0x3e7c5f['model']['schema']['isObject'](_0x11d4bb),_0x50cada=_0x11d4bb['previousSibling'],_0x136ef3=_0x11d4bb['nextSibling'],_0x361f05=_0x11d4bb['getAttribute']('listItemId'),_0x314748=!_0x50cada||_0x50cada['getAttribute']('listItemId')!==_0x361f05,_0x14a173=!_0x136ef3||_0x136ef3['getAttribute']('listItemId')!==_0x361f05;return _0x23f6ff&&Boolean(_0x361f05)&&_0x314748&&_0x14a173;},_0x2c0455=>o(_0x2c6ad4,'ELEMENT_LIST_ITEM',_0x2c0455));}['_registerLegacyDescription'](){const _0x279d64=this['editor'],_0x216902=_0x279d64['locale'];function _0x2c3f86(_0x6af5c4){const _0x153d83=_0x279d64['commands']['get']('bulletedList')['value'],_0xf461c4=_0x279d64['commands']['get']('numberedList')['value'];return'numberedList'===_0x6af5c4?_0x153d83:_0xf461c4;}_0x279d64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x36ea57){if('formatBlock'!=_0x36ea57['type'])return;const {data:_0x41396a}=_0x36ea57;if(!_0x41396a)return;let _0x3fbc07,_0x32ce1f,_0x103692,_0x55e35e;switch(_0x41396a['commandName']){case'bulletedList':_0x103692=_0x41396a['commandParams'][0x0]['forceValue'],_0x55e35e=_0x2c3f86(_0x41396a['commandName']),_0x3fbc07=_0x103692?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55e35e&&_0x279d64['config']['get']('list.multiBlock')||(_0x3fbc07='*Change\x20to:*\x20%0'),_0x32ce1f={'type':'format','content':o(_0x216902,_0x3fbc07,o(_0x216902,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x103692=_0x41396a['commandParams'][0x0]['forceValue'],_0x55e35e=_0x2c3f86(_0x41396a['commandName']),_0x3fbc07=_0x103692?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55e35e&&_0x279d64['config']['get']('list.multiBlock')||(_0x3fbc07='*Change\x20to:*\x20%0'),_0x32ce1f={'type':'format','content':o(_0x216902,_0x3fbc07,o(_0x216902,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3fbc07='*Indent:*\x20%0',_0x32ce1f={'type':'format','content':o(_0x216902,_0x3fbc07,o(_0x216902,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3fbc07=function(_0x507f64){const _0x5017d8=_0x507f64['getFirstRange']();let _0xf4272c=_0x5017d8['start']['nodeAfter'];for(;_0xf4272c&&_0x5017d8['containsItem'](_0xf4272c);){if(_0xf4272c['getAttribute']('listIndent')>0x0)return!0x1;_0xf4272c=_0xf4272c['nextSibling'];}return!0x0;}(_0x36ea57)?o(_0x216902,'*Format:*\x20remove\x20from\x20%0',o(_0x216902,function(_0x5716aa){return'ELEMENT_'+_0x5716aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x36ea57))):o(_0x216902,'*Outdent:*\x20%0',o(_0x216902,'ELEMENT_LIST_ITEM')),_0x32ce1f={'type':'format','content':_0x3fbc07};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41396a['multipleBlocks']&&(_0x3fbc07='*Merge:*\x20%0',_0x32ce1f={'type':'deletion','content':o(_0x216902,_0x3fbc07,o(_0x216902,'ELEMENT_LIST_ITEM'))});}return _0x32ce1f;});}}function Te(_0x2c4c7d){let _0x341837=_0x2c4c7d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x341837;){const _0x14b4a=_0x341837['getAttribute']('listItemId');if(!_0x14b4a)return!0x1;if(_0x14b4a==_0x2c4c7d['data']['newValue'])return'newValue';if(_0x14b4a==_0x2c4c7d['data']['oldValue'])return'oldValue';_0x341837=_0x341837['previousSibling'];}return!0x1;}class ye extends _0x4785df{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x18881d=this['editor']['config']['get']('list.properties'),_0x35449c=this['editor']['plugins']['get']('TrackChangesEditing');_0x18881d['styles']&&(_0x35449c['enableDefaultAttributesIntegration']('listStyle'),_0x35449c['registerBlockAttribute']('listStyle')),_0x18881d['reversed']&&(_0x35449c['enableDefaultAttributesIntegration']('listReversed'),_0x35449c['registerBlockAttribute']('listReversed')),_0x18881d['startIndex']&&(_0x35449c['enableDefaultAttributesIntegration']('listStart'),_0x35449c['registerBlockAttribute']('listStart'));const _0x3aa3c9={'type':'format','content':''};_0x35449c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x16b19a=this['editor']['locale'];_0x35449c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x16b19a,'FORMAT_LIST_REVERSED')),_0x35449c['descriptionFactory']['registerDescriptionCallback'](_0x2c1e9b=>{const {data:_0x1cd148}=_0x2c1e9b;if(_0x1cd148&&'listReversed'==_0x1cd148['key'])return null==_0x1cd148['newValue']||0x0==_0x1cd148['newValue']&&null==_0x1cd148['oldValue']?_0x3aa3c9:void 0x0;}),_0x35449c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x16b19a,'FORMAT_LIST_START')),_0x35449c['descriptionFactory']['registerDescriptionCallback'](_0x33f24d=>{const {data:_0x560eb7}=_0x33f24d;if(_0x560eb7&&'listStart'==_0x560eb7['key'])return null==_0x560eb7['newValue']||0x1==_0x560eb7['newValue']&&null==_0x560eb7['oldValue']?_0x3aa3c9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x55e37a=>{if(_0x55e37a['batch']['isUndo'])return!0x1;let _0x5088d2=!0x1;const _0x488c66=_0x35449c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x519614=>{const _0x41193e=_0x35449c['_getAttributeKey'](_0x519614);return'listStart'==_0x41193e||'listReversed'==_0x41193e;});for(const _0x55632b of _0x488c66){const _0x4e01a9=_0x55632b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e01a9||'customNumbered'==_0x4e01a9)continue;_0x35449c['_findSuggestions'](_0x55632b['getFirstRange'](),'attribute')['find'](_0xccd6ae=>'listType'==_0x35449c['_getAttributeKey'](_0xccd6ae['suggestion']))||(_0x55e37a['removeMarker'](_0x55632b['getFirstMarker']()),_0x5088d2=!0x0);}return _0x5088d2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x75d74b){const _0x1d2724=this['editor']['locale'],{data:_0x4c03ca}=_0x75d74b,_0x6db677={'type':'format','content':''};if(!_0x4c03ca||'listStyle'!=_0x4c03ca['key'])return;if(!_0x4c03ca['oldValue'])return'default'==_0x4c03ca['newValue']?_0x6db677:{'type':'format','content':''+o(_0x1d2724,'*Set\x20format:*\x20%0',o(_0x1d2724,this['_getTranslationKeyForListStyle'](_0x4c03ca['newValue'])))};if(!_0x4c03ca['newValue']){if('default'==_0x4c03ca['oldValue'])return _0x6db677;let _0x2fd60e=_0x75d74b['head'];for(;_0x2fd60e;){if(_0x2fd60e['data']&&'listType'==_0x2fd60e['data']['key']&&_0x2fd60e['data']['newValue'])return _0x6db677;_0x2fd60e=_0x2fd60e['next'];}return{'type':'format','content':''+o(_0x1d2724,'*Remove\x20format:*\x20%0',o(_0x1d2724,this['_getTranslationKeyForListStyle'](_0x4c03ca['oldValue'])))};}if('default'!=_0x4c03ca['newValue'])return{'type':'format','content':''+o(_0x1d2724,'*Set\x20format:*\x20%0',o(_0x1d2724,this['_getTranslationKeyForListStyle'](_0x4c03ca['newValue'])))};let _0x28c7d6=_0x75d74b['head'];for(;_0x28c7d6;){if(_0x28c7d6['data']&&'listType'==_0x28c7d6['data']['key']&&_0x28c7d6['data']['newValue']&&_0x28c7d6['data']['oldValue'])return _0x6db677;_0x28c7d6=_0x28c7d6['next'];}return{'type':'format','content':o(_0x1d2724,'*Set\x20format:*\x20%0',o(_0x1d2724,'ELEMENT_'+_0x75d74b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3001f6=this['editor'],_0x107e3e=_0x3001f6['locale'];_0x3001f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32c858=>{if('formatBlock'!=_0x32c858['type'])return;const {data:_0x2daa88}=_0x32c858;if(!_0x2daa88)return;let _0x24153f,_0x2b3a4d;switch(_0x2daa88['commandName']){case'listStyle':_0x24153f='*Change\x20to:*\x20%0',_0x2b3a4d={'type':'format','content':o(_0x107e3e,_0x24153f,o(_0x107e3e,this['_getTranslationKeyForListStyle'](_0x2daa88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24153f=_0x2daa88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b3a4d={'type':'format','content':o(_0x107e3e,_0x24153f)};break;case'listStart':_0x24153f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b3a4d={'type':'format','content':o(_0x107e3e,_0x24153f,_0x2daa88['commandParams'][0x0]['startIndex'])};}return _0x2b3a4d;});}['_getTranslationKeyForListStyle'](_0x5a3d0b){return'ELEMENT_'+function(_0x1e21f5){if(Se['includes'](_0x1e21f5))return'bulleted';if(_e['includes'](_0x1e21f5))return'numbered';return null;}(_0x5a3d0b)['toUpperCase']()+'_LIST_'+_0x5a3d0b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4785df{static get['requires'](){return[_0x53435d];}['init'](){const _0x417a13=this['editor'],_0x48b9fe=_0x417a13['plugins']['get']('TrackChangesEditing'),_0x83aed8=_0x417a13['commands']['get']('enter');_0x48b9fe['enableCommand']('enter',()=>{_0x417a13['model']['change'](_0x3e99de=>{const _0x26d017=_0x417a13['model']['document']['selection'],_0x292c60=_0x26d017['getFirstPosition'](),_0x57c4e3=_0x18db69['fromRange'](_0x26d017['getFirstRange']());if(_0x83aed8['enterBlock'](_0x3e99de)){const _0x29885c=_0x417a13['model']['createPositionAt'](_0x292c60['parent']['nextSibling'],0x0),_0x466c8c=_0x3e99de['createRange'](_0x292c60,_0x29885c);_0x48b9fe['markInsertion'](_0x466c8c);}else _0x3e99de['setSelection'](_0x3e99de['createRange'](_0x57c4e3['end']));_0x57c4e3['detach'](),_0x83aed8['fire']('afterExecute',{'writer':_0x3e99de});});}),_0x417a13['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x417a13,'split'),{'priority':'high'}),_0x417a13['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2db48f,_0xbbf4dc,_0x20e801)=>{const _0x58bef5=_0x20e801['mapper']['markerNameToElements'](_0xbbf4dc['markerName']);if(_0x58bef5){for(const _0x3c4d56 of _0x58bef5)_0x3c4d56['hasClass']('ck-suggestion-marker-split')&&(_0x20e801['mapper']['unbindElementFromMarkerName'](_0x3c4d56,_0xbbf4dc['markerName']),_0x20e801['writer']['remove'](_0x3c4d56));}},{'priority':'high'}),_0x417a13['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2c5b72,_0x463886,_0x162f34)=>{_0x162f34['options']['showSuggestionHighlights']&&Ne(_0x417a13,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2c5b72,_0x463886,_0x162f34);},{'priority':'high'});}}class Y extends _0x4785df{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x56f810=this['editor']['plugins']['get']('TrackChangesEditing');_0x56f810['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x56f810['enableCommand']('findNext'),_0x56f810['enableCommand']('findPrevious'),_0x56f810['enableCommand']('replace'),_0x56f810['enableCommand']('replaceAll');}['handleFindCommand'](_0x3a9302,_0x33ad3c,_0x14c4b8={}){const _0x48377b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3a9302(_0x20df67=>{let _0x316d6c=('string'==typeof _0x33ad3c?_0x48377b['findByTextCallback'](_0x33ad3c,_0x14c4b8):_0x33ad3c)(_0x20df67);Array['isArray'](_0x316d6c)&&(_0x316d6c={'results':_0x316d6c,'searchText':'string'==typeof _0x33ad3c?_0x33ad3c:''});const _0x59421b=_0x316d6c['results']['filter'](_0x3e0b33=>!0x1===this['_isInDeletionRange'](_0x3e0b33,_0x20df67['item']));return{..._0x316d6c,'results':_0x59421b};},_0x14c4b8);}['_isInDeletionRange'](_0x4a865a,_0x5b33d6){const _0x22e0c2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b33d6,_0x4a865a['start']),this['editor']['model']['createPositionAt'](_0x5b33d6,_0x4a865a['end']));for(const _0x439ed7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22e0c2['getIntersection'](_0x439ed7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4785df{['afterInit'](){const _0x1e71e9=this['editor']['locale'],_0x3a0374=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3790d4,commandName:_0x4cb991}of ro)this['editor']['plugins']['has'](_0x3790d4)&&(_0x3a0374['enableDefaultAttributesIntegration'](_0x4cb991),_0x3a0374['registerInlineAttribute'](_0x4cb991));_0x3a0374['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e71e9,'FORMAT_FONT_SIZE')),_0x3a0374['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e71e9,'FORMAT_FONT_FAMILY')),_0x3a0374['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e71e9,'FORMAT_FONT_COLOR')),_0x3a0374['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e71e9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ea8c5=this['editor'],_0x13b13d=_0x2ea8c5['locale'];_0x2ea8c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a71f=>{const _0x3f9b65=_0x13b13d['t'];if('formatInline'!=_0x20a71f['type'])return;const {data:_0x2d52d9}=_0x20a71f;if(null!=_0x2d52d9){if('fontSize'==_0x2d52d9['commandName']){const _0x19f042=_0x2d52d9['commandParams'][0x0]['value'];if(_0x19f042){const _0x5bb950=_0x3f9b65(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x29a420=>_0x29a420['model']==_0x19f042)['title'])['toLowerCase']();return{'type':'format','content':o(_0x13b13d,'*Set\x20font\x20size:*\x20%0',_0x5bb950)};}return{'type':'format','content':o(_0x13b13d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d52d9['commandName']){const _0x12028e=_0x2d52d9['commandParams'][0x0]['value'];return _0x12028e?{'type':'format','content':o(_0x13b13d,'*Set\x20font\x20family:*\x20%0',_0x12028e)}:{'type':'format','content':o(_0x13b13d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d52d9['commandName']){const _0x3dd4c4=_0x2d52d9['commandParams'][0x0]['value'];if(_0x3dd4c4){const _0x37640b=_0x4a4bf3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c72f9=>_0x5c72f9['model']==_0x3dd4c4);let _0x31fe89=_0x3dd4c4,_0x349892='';return _0x37640b&&(_0x31fe89=_0x37640b['label'],_0x349892=_0x3f9b65(_0x31fe89)['toLowerCase']()),{'type':'format','content':o(_0x13b13d,'*Set\x20font\x20color:*\x20%0',_0x349892)['trim'](),'color':{'value':_0x3dd4c4,'title':_0x349892||_0x31fe89}};}return{'type':'format','content':o(_0x13b13d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d52d9['commandName']){const _0x3a25c4=_0x2d52d9['commandParams'][0x0]['value'];if(_0x3a25c4){const _0x130090=_0x4a4bf3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x38df2e=>_0x38df2e['model']==_0x3a25c4);let _0x3f6971=_0x3a25c4,_0x3e5172='';return _0x130090&&(_0x3f6971=_0x130090['label'],_0x3e5172=_0x3f9b65(_0x3f6971)['toLowerCase']()),{'type':'format','content':o(_0x13b13d,'*Set\x20font\x20background\x20color:*\x20%0',_0x3e5172)['trim'](),'color':{'value':_0x3a25c4,'title':_0x3e5172||_0x3f6971}};}return{'type':'format','content':o(_0x13b13d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4785df{['afterInit'](){const _0x2d41a4=this['editor'],_0x17eea9=_0x2d41a4['plugins']['get']('TrackChangesEditing'),_0x32c51e=_0x2d41a4['commands']['get']('copyFormat'),_0x37c4e7=_0x2d41a4['commands']['get']('pasteFormat');_0x32c51e&&_0x37c4e7&&(_0x17eea9['enableDefaultAttributesIntegration']('pasteFormat'),_0x17eea9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18cd35=this['editor'],_0x46c310=_0x18cd35['locale'];_0x18cd35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13dd9f=>{if('formatBlock'!=_0x13dd9f['type']&&'formatInline'!=_0x13dd9f['type'])return;const {data:_0x387c65}=_0x13dd9f;if(_0x387c65&&'pasteFormat'===_0x387c65['commandName']){const _0x2c45bb=[],_0x4dfffc=_0x387c65['commandParams'][0x0];for(const [_0x2e0a17,_0x10573]of Object['entries'](_0x4dfffc))_0x2c45bb['push'](so(_0x18cd35,_0x2e0a17,_0x10573));return _0x2c45bb['length']?{'type':'format','content':o(_0x46c310,'*Set\x20format\x20to:*\x20%0',_0x2c45bb['join'](',\x20'))}:{'type':'format','content':o(_0x46c310,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1a95bc,_0x3a1eff,_0x3630fb){const _0x1c1117=_0x1a95bc['locale']['t'],_0x37abb0=_0x3a1eff['split'](/(?=[A-Z])/)['join']('\x20'),_0xb97f61=_0x1c1117(_0x37abb0['charAt'](0x0)['toUpperCase']()+_0x37abb0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3630fb)return _0xb97f61;if('fontColor'===_0x3a1eff||'fontBackgroundColor'===_0x3a1eff){const _0x32a111=_0x4a4bf3(_0x1a95bc['config']['get']('fontColor.colors'))['find'](_0x48c562=>_0x48c562['model']==_0x3630fb);return _0xb97f61+'\x20('+(_0x32a111?_0x1c1117(_0x32a111['label'])['toLowerCase']():_0x3630fb)+')';}if('fontSize'===_0x3a1eff&&isNaN(parseFloat(_0x3630fb))){const _0x50a0b5=_0x1a95bc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1a95bc['config']['get']('fontSize.options'))['find'](_0x13b571=>_0x13b571['model']==_0x3630fb);return _0xb97f61+'\x20('+(_0x50a0b5?_0x1c1117(_0x50a0b5['title'])['toLowerCase']():_0x3630fb)+')';}return _0xb97f61+'\x20('+_0x3630fb+')';}class nt extends _0x4785df{['_headingOptions'];['afterInit'](){const _0x28557d=this['editor'];if(!_0x28557d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x28557d['config']['get']('heading.options');const _0x36eab8=_0x28557d['locale'],_0x41294f=_0x28557d['plugins']['get']('TrackChangesEditing');_0x41294f['enableDefaultAttributesIntegration']('heading');for(const _0x5cdc0f of this['_headingOptions'])'paragraph'!=_0x5cdc0f['model']&&_0x41294f['descriptionFactory']['registerElementLabel'](_0x5cdc0f['model'],_0x59e325=>{const _0x10baae=this['_getHeadingLevel'](_0x5cdc0f['model']);return null!==_0x10baae?_0x2f4d0d(_0x59e325,_0x10baae):_0x202fbb(_0x59e325,_0x5cdc0f['title']);});function _0x2f4d0d(_0x42e804,_0x207785){return o(_0x36eab8,'ELEMENT_HEADING',[_0x42e804,_0x207785]);}function _0x202fbb(_0x2211ee,_0x31b094){return o(_0x36eab8,'ELEMENT_HEADING_CUSTOM',[_0x2211ee,_0x31b094]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47ce05=this['editor'],_0x1de298=_0x47ce05['locale'];function _0x377a60(_0x244b22,_0x33eedb){return o(_0x1de298,'ELEMENT_HEADING_CUSTOM',[_0x244b22,_0x33eedb]);}_0x47ce05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6f19=>{if('formatBlock'!=_0x2c6f19['type'])return;const {data:_0x5db059}=_0x2c6f19;if(_0x5db059&&'heading'==_0x5db059['commandName']){const _0x2a1648=_0x5db059['commandParams'][0x0]['value'],_0x263f4d=this['_getHeadingLevel'](_0x2a1648);if(null!==_0x263f4d)return{'type':'format','content':o(_0x1de298,'*Change\x20to:*\x20%0',(_0x4c13c3=0x1,_0x19cfc5=_0x263f4d,o(_0x1de298,'ELEMENT_HEADING',[_0x4c13c3,_0x19cfc5])))};const _0x2b4de8=this['_headingOptions']['find'](_0x3daeb9=>_0x3daeb9['model']===_0x2a1648)['title'];return{'type':'format','content':o(_0x1de298,'*Change\x20to:*\x20%0',_0x377a60(0x1,_0x2b4de8))};}var _0x4c13c3,_0x19cfc5;});}['_getHeadingLevel'](_0x4da0d0){const _0x33c78d=_0x4da0d0['match'](/^heading(\d+)/);if(_0x33c78d)return _0x33c78d[0x1];const _0x1657f7=this['_headingOptions']?.['find'](_0x13e90a=>_0x13e90a['model']==_0x4da0d0);if(_0x1657f7&&_0x1657f7['view']){const _0x3edd4e=_0x1657f7['view'],_0x156f8a=(_0x3edd4e['name']??_0x3edd4e)['match'](/^h(\d+)/);if(_0x156f8a)return _0x156f8a[0x1];}return null;}}class it extends _0x4785df{['afterInit'](){const _0x2762dc=this['editor'];if(!_0x2762dc['plugins']['has']('HighlightEditing'))return;const _0x264425=_0x2762dc['plugins']['get']('TrackChangesEditing'),_0x4e3710=_0x2762dc['locale'];_0x264425['enableDefaultAttributesIntegration']('highlight'),_0x264425['registerInlineAttribute']('highlight'),_0x264425['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e3710,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb8b6=this['editor'],_0x5ae687=_0x4fb8b6['locale'];_0x4fb8b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c494=>{if('formatInline'!=_0x35c494['type'])return;const {data:_0x18052c}=_0x35c494;if(_0x18052c&&'highlight'==_0x18052c['commandName']){const _0x348500=_0x5ae687['t'],_0x2a21d0=_0x18052c['commandParams'][0x0]['value'];if(_0x2a21d0){const _0x5a86c7=_0x4fb8b6['config']['get']('highlight.options')['find'](_0x37453b=>_0x37453b['model']==_0x2a21d0),_0x304c5d=_0x348500(_0x5a86c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ae687,'*Set\x20highlight:*\x20%0',_0x304c5d),'color':{'value':_0x5a86c7['color'],'title':_0x5a86c7['title']}};}return{'type':'format','content':o(_0x5ae687,'*Remove\x20highlight*',o(_0x5ae687,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4785df{['afterInit'](){const _0x2619dd=this['editor'];if(!_0x2619dd['plugins']['has']('HorizontalLineEditing'))return;_0x2619dd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4b1454=_0x2619dd['plugins']['get']('TrackChangesEditing'),_0xe4438d=_0x2619dd['locale'];_0x4b1454['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2fe69b=>o(_0xe4438d,'ELEMENT_HORIZONTAL_LINE',_0x2fe69b)),_0x2619dd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4f15ff,{writer:_0x971825,options:_0xb1cd3c})=>{if(!_0xb1cd3c['showSuggestionHighlights'])return null;const _0x58e23b=_0x971825['createContainerElement']('div'),_0x521771=_0x971825['createEmptyElement']('hr');return _0x971825['addClass']('ck-horizontal-line',_0x58e23b),_0x971825['insert'](_0x971825['createPositionAt'](_0x58e23b,0x0),_0x521771),_0x58e23b;},'converterPriority':'high'});}}class st extends _0x4785df{['afterInit'](){const _0x5b25d1=this['editor'];if(!_0x5b25d1['plugins']['has']('HtmlEmbed'))return;const _0x503b42=_0x5b25d1['plugins']['get']('TrackChangesEditing'),_0x4eb636=_0x5b25d1['locale'];_0x503b42['descriptionFactory']['registerElementLabel']('rawHtml',_0x10929f=>o(_0x4eb636,'ELEMENT_HTML_EMBED',_0x10929f)),_0x503b42['enableDefaultAttributesIntegration']('htmlEmbed'),_0x503b42['registerBlockAttribute']('value'),_0x503b42['descriptionFactory']['registerDescriptionCallback'](_0xe49f5e=>{if('attribute'!=_0xe49f5e['type'])return;const {data:_0x3f20dd}=_0xe49f5e;if(_0x3f20dd&&'value'==_0x3f20dd['key']&&_0xe49f5e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x52132a=o(_0x4eb636,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4eb636,'*Change\x20%0\x20content*',_0x52132a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b69ce=this['editor'],_0x52f12e=_0x5b69ce['locale'];_0x5b69ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51562a=>{if('formatBlock'!=_0x51562a['type'])return;const {data:_0x2fa8f1}=_0x51562a;if(_0x2fa8f1&&'htmlEmbed'==_0x2fa8f1['commandName']){const _0x1a99ec=o(_0x52f12e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52f12e,'*Change\x20%0\x20content*',_0x1a99ec)};}});}}class ot extends _0x4785df{['afterInit'](){const _0x8f13e8=this['editor'];if(!_0x8f13e8['plugins']['has']('ImageEditing'))return;const _0x3682b1=_0x8f13e8['plugins']['get']('TrackChangesEditing'),_0x523e67=_0x8f13e8['plugins']['get']('ImageUtils'),_0x2a7da0=_0x8f13e8['locale'];_0x3682b1['enableCommand']('insertImage'),_0x3682b1['descriptionFactory']['registerElementLabel']('imageBlock',_0x543921=>o(_0x2a7da0,'ELEMENT_IMAGE',_0x543921)),_0x3682b1['descriptionFactory']['registerElementLabel']('imageInline',_0x3250e1=>o(_0x2a7da0,'ELEMENT_INLINE_IMAGE',_0x3250e1)),_0x3682b1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2a7da0,'ELEMENT_CAPTION')),_0x8f13e8['plugins']['has']('ImageUploadEditing')&&_0x3682b1['enableCommand']('uploadImage'),_0x8f13e8['plugins']['has']('ImageBlockEditing')&&_0x8f13e8['plugins']['has']('ImageInlineEditing')&&(_0x3682b1['enableCommand']('imageTypeInline',(_0x4337d1,_0x4d39cd)=>{const _0x528a08=_0x523e67['getClosestSelectedImageElement'](_0x8f13e8['model']['document']['selection']);_0x8f13e8['model']['change'](()=>{_0x3682b1['markBlockFormat'](_0x528a08,{'commandName':'imageTypeInline','commandParams':[_0x4d39cd]},[],'convertBlockImageToInline');});}),_0x3682b1['enableCommand']('imageTypeBlock',(_0x3ea9b1,_0x4023fe)=>{_0x8f13e8['model']['change'](_0x17f35d=>{let _0x7e7a27=_0x523e67['getClosestSelectedImageElement'](_0x8f13e8['model']['document']['selection']),_0x52c50c=_0x17f35d['createRangeOn'](_0x7e7a27);const _0x173487=_0x472ff7['fromPosition'](_0x52c50c['start'],'toPrevious'),_0x5185e7=_0x472ff7['fromPosition'](_0x52c50c['end'],'toNext');_0x3682b1['forceDefaultExecution'](()=>_0x3ea9b1(_0x4023fe)),_0x7e7a27=_0x523e67['getClosestSelectedImageElement'](_0x8f13e8['model']['document']['selection']),_0x52c50c=_0x17f35d['createRangeOn'](_0x7e7a27);const _0x272e73=_0x17f35d['createRange'](_0x173487,_0x5185e7);_0x173487['detach'](),_0x5185e7['detach'](),_0x3682b1['markBlockFormat'](_0x7e7a27,{'commandName':'imageTypeInline','commandParams':[_0x4023fe]},[],'convertInlineImageToBlock'),_0x272e73['start']['isBefore'](_0x52c50c['start'])&&_0x3682b1['markInsertion'](_0x17f35d['createRange'](_0x272e73['start'],_0x52c50c['start']),'convertInlineImageToBlock'),_0x52c50c['end']['isBefore'](_0x272e73['end'])&&_0x3682b1['markInsertion'](_0x17f35d['createRange'](_0x52c50c['end'],_0x272e73['end']),'convertInlineImageToBlock');});}),_0x3682b1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3682b1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3682b1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3682b1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3682b1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3682b1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x216cb4])=>{const _0x2207ab=_0x3682b1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2f1b32=_0x216cb4['start'],_0x13c9ce=_0x216cb4['end'];const _0x5da3f5=_0x8f13e8['model']['schema']['getNearestSelectionRange'](_0x2f1b32,'backward'),_0x4c9155=_0x8f13e8['model']['schema']['getNearestSelectionRange'](_0x13c9ce,'forward');_0x5da3f5['isCollapsed']&&(_0x2f1b32=_0x5da3f5['start']),_0x4c9155['isCollapsed']&&(_0x13c9ce=_0x4c9155['end']),_0x2207ab([_0x8f13e8['model']['createRange'](_0x2f1b32,_0x13c9ce)]);}),_0x3682b1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x53d4cc),_0x3682b1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x53d4cc)),_0x8f13e8['plugins']['has']('ImageCaptionEditing')&&(_0x3682b1['enableCommand']('toggleImageCaption',(_0x38396b,_0x40d1a5)=>{const _0x46a6c7=_0x8f13e8['plugins']['get']('ImageCaptionUtils');let _0x5cc2b1=_0x523e67['getClosestSelectedImageElement'](_0x8f13e8['model']['document']['selection']),_0x3eb4a2=_0x46a6c7['getCaptionFromImageModelElement'](_0x5cc2b1);_0x8f13e8['model']['change'](()=>{if(_0x3eb4a2)return void _0x3682b1['markDeletion'](_0x8f13e8['model']['createRangeOn'](_0x3eb4a2));const _0xb457dc=_0x523e67['isBlockImage'](_0x5cc2b1);_0x38396b(_0x40d1a5),_0x5cc2b1=_0x523e67['getClosestSelectedImageElement'](_0x8f13e8['model']['document']['selection']),_0x3eb4a2=_0x46a6c7['getCaptionFromImageModelElement'](_0x5cc2b1),_0x3682b1['markInsertion'](_0x8f13e8['model']['createRangeOn'](_0x3eb4a2),_0xb457dc?null:'imageCaption');});}),_0x3682b1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x53d4cc));const _0x4c1b9a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36e21d(_0x2844fa,_0x37bab6){const _0x1c3cef=_0x4c1b9a['findIndex'](({type:_0x49a342,subType:_0x5889d2})=>_0x2844fa['type']==_0x49a342&&_0x2844fa['subType']==_0x5889d2),_0x4a265c=_0x4c1b9a['findIndex'](({type:_0x4db94a,subType:_0x14fc70})=>_0x37bab6['type']==_0x4db94a&&_0x37bab6['subType']==_0x14fc70);if(_0x1c3cef<0x0||_0x4a265c<0x0)return!0x1;const _0x683e70=_0x2844fa['getFirstRange'](),_0x16b58a=_0x37bab6['getFirstRange']();if((0x0==_0x1c3cef||0x1==_0x1c3cef)&&0x2==_0x4a265c&&_0x683e70['isIntersecting'](_0x16b58a))return!0x0;if(0x2==_0x1c3cef&&0x3==_0x4a265c){const _0x290cd6=_0x3682b1['_findSuggestions'](_0x683e70,'insertion')['filter'](({suggestion:_0x2eab4d,meta:_0x54bca0})=>_0x54bca0['isOwn']&&'convertInlineImageToBlock'==_0x2eab4d['subType']);if(_0x290cd6['length']>0x1&&_0x16b58a['end']['isEqual'](_0x683e70['start']))return!0x0;if(0x1==_0x290cd6['length']&&(_0x683e70['start']['isEqual'](_0x16b58a['end'])||_0x683e70['end']['isEqual'](_0x16b58a['start'])))return!0x0;}if(0x3==_0x1c3cef&&0x3==_0x4a265c&&_0x683e70['start']['isBefore'](_0x16b58a['start'])){const _0x33d84a=_0x683e70['end']['nodeAfter'],_0xcc6c78=_0x16b58a['start']['nodeBefore'];return _0x523e67['isBlockImage'](_0x33d84a)&&_0x33d84a===_0xcc6c78;}return!0x1;}function _0x53d4cc(_0x30f1c5,_0x1db296){return _0x36e21d(_0x30f1c5,_0x1db296)?[_0x30f1c5,_0x1db296]:_0x36e21d(_0x1db296,_0x30f1c5)?[_0x1db296,_0x30f1c5]:null;}_0x8f13e8['plugins']['has']('ImageResize')&&(_0x3682b1['enableDefaultAttributesIntegration']('resizeImage'),_0x3682b1['registerBlockAttribute']('resizedWidth'),_0x3682b1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2a7da0,'FORMAT_IMAGE_SIZE'))),_0x8f13e8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3682b1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3682b1['registerBlockAttribute']('alt')),_0x3682b1['descriptionFactory']['registerDescriptionCallback'](_0x5f0b86=>{if(!!_0x4c1b9a['find'](({type:_0x4d1b61,subType:_0x43e495})=>_0x5f0b86['type']==_0x4d1b61&&_0x5f0b86['subType']==_0x43e495))return _0x5f0b86['previous']?{}:void 0x0;}),_0x3682b1['descriptionFactory']['registerDescriptionCallback'](_0x35ae91=>{if('insertion'==_0x35ae91['type']||'deletion'==_0x35ae91['type']){const _0x57b099=_0x35ae91['getContainedElement']();if(_0x57b099&&_0x57b099['is']('element','caption'))return{'type':'insertion'==_0x35ae91['type']?'addObject':'removeObject','element':_0x57b099,'quantity':0x1};}}),_0x3682b1['descriptionFactory']['registerDescriptionCallback'](_0x4ca7db=>'formatBlock'==_0x4ca7db['type']&&'convertInlineImageToBlock'==_0x4ca7db['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ca7db['type']&&'convertBlockImageToInline'==_0x4ca7db['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3682b1['descriptionFactory']['registerDescriptionCallback'](_0x4e0019=>{if('attribute'!=_0x4e0019['type'])return;const {data:_0x4f9851}=_0x4e0019;if(!_0x4f9851||'alt'!=_0x4f9851['key'])return;const _0x5a8972=_0x4f9851['newValue'];return _0x5a8972?{'type':'format','content':o(_0x2a7da0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a8972+'\x22')}:{'type':'format','content':o(_0x2a7da0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfdac3=this['editor'],_0x171fd1=_0xfdac3['locale'];_0xfdac3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51add1=>{if('formatBlock'!=_0x51add1['type']&&'formatInline'!=_0x51add1['type'])return;const {data:_0x110f56}=_0x51add1;if(_0x110f56){if('imageTextAlternative'==_0x110f56['commandName']){const _0x508069=_0x110f56['commandParams'][0x0]['newValue'];return _0x508069?{'type':'format','content':o(_0x171fd1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x508069+'\x22')}:{'type':'format','content':o(_0x171fd1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x110f56['commandName']){const _0x28e506=_0x110f56['commandParams'][0x0]['width'];return _0x28e506?{'type':'format','content':o(_0x171fd1,'*Set\x20image\x20width:*\x20%0',_0x28e506)}:{'type':'format','content':o(_0x171fd1,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4785df{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x46403d=this['editor']['locale'],_0x4f3d0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f3d0c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f3d0c['registerBlockAttribute']('src'),_0x4f3d0c['descriptionFactory']['registerDescriptionCallback'](_0x4c4957=>{if('attribute'!=_0x4c4957['type'])return;const {data:_0x4f164c}=_0x4c4957;return _0x4f164c&&'src'==_0x4f164c['key']?_0x4f164c['newValue']&&_0x4f164c['oldValue']?{'type':'format','content':o(_0x46403d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xf5766f=this['editor']['plugins']['get']('TrackChangesEditing');_0xf5766f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xf5766f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf5766f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xf5766f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf152=this['editor'],_0x597432=_0xf152['locale'];_0xf152['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21840f=>{if('formatBlock'!=_0x21840f['type']&&'formatInline'!=_0x21840f['type'])return;const {data:_0x177281}=_0x21840f;if(!_0x177281||'replaceImageSource'!=_0x177281['commandName'])return;return{'type':'format','content':o(_0x597432,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4785df{['afterInit'](){const _0x3e2c81=this['editor'];if(!_0x3e2c81['plugins']['has']('ImageStyleEditing'))return;const _0x17a66f=_0x3e2c81['plugins']['get']('TrackChangesEditing'),_0x5f00ea=_0x3e2c81['plugins']['get']('ImageUtils'),_0x345937={};_0x17a66f['enableCommand']('imageStyle',(_0x40b2d2,_0xe54a81)=>{const _0x38ac3f=_0x3e2c81['plugins']['get']('Users')['me'],_0x57efad=_0x3e2c81['commands']['get']('imageStyle');let _0x44f5fe=_0x5f00ea['getClosestSelectedImageElement'](_0x3e2c81['model']['document']['selection']),_0x2066fb=_0x3e2c81['model']['createRangeOn'](_0x44f5fe),_0x577b83=_0x57efad['value'];if(_0x577b83==_0xe54a81['value'])return;const _0x2fe6ea={'commandName':'imageStyle','commandParams':[_0xe54a81],'formatGroupId':_0x325d63()};_0x3e2c81['model']['change'](()=>{if(_0x17a66f['getSuggestions']()['filter'](_0x4ce777=>_0x4ce777['isInContent']&&_0x38ac3f==_0x4ce777['author']&&('formatBlock'==_0x4ce777['type']||'formatInline'==_0x4ce777['type'])&&('imageStylePreApply'==_0x4ce777['subType']||'imageStylePostApply'==_0x4ce777['subType'])&&_0x4ce777['getFirstRange']()['isEqual'](_0x2066fb))['forEach'](_0x41afdd=>_0x17a66f['discardSuggestion'](_0x41afdd['head'])),_0x44f5fe=_0x5f00ea['getClosestSelectedImageElement'](_0x3e2c81['model']['document']['selection']),_0x2066fb=_0x3e2c81['model']['createRangeOn'](_0x44f5fe),_0x57efad['refresh'](),_0x3e2c81['commands']['get']('imageTypeInline')['refresh'](),_0x3e2c81['commands']['get']('imageTypeBlock')['refresh'](),_0x577b83=_0x57efad['value'],_0x577b83!=_0xe54a81['value'])return _0x5f00ea['isInlineImage'](_0x44f5fe)&&_0x57efad['shouldConvertImageType'](_0xe54a81['value'],_0x44f5fe)?(_0x40b2d2({..._0xe54a81,'setImageSizes':!0x1}),_0x44f5fe=_0x5f00ea['getClosestSelectedImageElement'](_0x3e2c81['model']['document']['selection']),void _0x17a66f['markBlockFormat'](_0x44f5fe,{..._0x2fe6ea,'commandReversedParams':[{'value':_0x577b83||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5f00ea['isBlockImage'](_0x44f5fe)?_0x17a66f['markBlockFormat'](_0x44f5fe,_0x2fe6ea,[],'imageStylePostApply'):_0x17a66f['markInlineFormat'](_0x2066fb,_0x2fe6ea,'imageStylePostApply'));});});for(const _0x430d86 of _0x3e2c81['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x345937[_0x430d86['name']]=_0x430d86['title']['toLowerCase']();_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1d9884])=>{_0x5f00ea['setImageNaturalSizeAttributes'](_0x1d9884['getContainedElement']());}),_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e91a9,_0x1900c4)=>{_0x17a66f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e91a9,{'commandName':_0x1900c4['commandName'],'commandParams':_0x1900c4['commandReversedParams']});}),_0x17a66f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x548049,_0x47a408){if(_0x8610e9(_0x548049,_0x47a408))return[_0x548049,_0x47a408];if(_0x8610e9(_0x47a408,_0x548049))return[_0x47a408,_0x548049];return null;});const _0x13354f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x8610e9(_0x185939,_0x513455){const _0x9d1bd6=_0x13354f['findIndex'](({type:_0x537335,subType:_0x2f8e47})=>_0x185939['type']==_0x537335&&_0x185939['subType']==_0x2f8e47),_0x4a8066=_0x13354f['findIndex'](({type:_0xfcb2bd,subType:_0x35658e})=>_0x513455['type']==_0xfcb2bd&&_0x513455['subType']==_0x35658e);if(_0x9d1bd6<0x0||_0x4a8066<0x0)return!0x1;const _0x2c3e97=_0x185939['getFirstRange'](),_0x58eb64=_0x513455['getFirstRange']();if((0x0==_0x9d1bd6||0x1==_0x9d1bd6)&&0x2==_0x4a8066&&_0x2c3e97['isIntersecting'](_0x58eb64))return!0x0;if(0x2==_0x9d1bd6&&0x3==_0x4a8066){const _0xcbf2c3=_0x17a66f['_findSuggestions'](_0x2c3e97,'insertion')['filter'](({suggestion:_0x3490f8,meta:_0x5d048e})=>_0x5d048e['isOwn']&&'convertInlineImageToBlock'==_0x3490f8['subType']);if(_0xcbf2c3['length']>0x1&&_0x58eb64['end']['isEqual'](_0x2c3e97['start']))return!0x0;if(0x1==_0xcbf2c3['length']&&(_0x2c3e97['start']['isEqual'](_0x58eb64['end'])||_0x2c3e97['end']['isEqual'](_0x58eb64['start'])))return!0x0;}if(0x3==_0x9d1bd6&&0x3==_0x4a8066&&_0x2c3e97['start']['isBefore'](_0x58eb64['start'])){const _0x4abe4f=_0x2c3e97['end']['nodeAfter'],_0x3f3a85=_0x58eb64['start']['nodeBefore'];return _0x5f00ea['isBlockImage'](_0x4abe4f)&&_0x4abe4f===_0x3f3a85;}return!0x1;}_0x3e2c81['model']['document']['registerPostFixer'](()=>{let _0x491239=!0x1;const _0x3a923a=Array['from'](_0x3e2c81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38cc19,data:_0x1e3ebf}of _0x3a923a){const {group:_0xa27447,type:_0x51c31e,subType:_0x492b92,id:_0x3e389c}=_0x17a66f['_splitMarkerName'](_0x38cc19);if('suggestion'==_0xa27447&&_0x17a66f['hasSuggestion'](_0x3e389c)){if('formatBlock'==_0x51c31e&&('imageStylePreApply'==_0x492b92||'imageStylePostApply'==_0x492b92)){const _0x54b5c1=_0x17a66f['getSuggestion'](_0x3e389c);if(_0x1e3ebf['newRange']){const _0x11f556=_0x54b5c1['getFirstRange']()['getContainedElement']();if(_0x5f00ea['isBlockImage'](_0x11f556))continue;_0x17a66f['discardSuggestion'](_0x54b5c1),_0x491239=!0x0;}}if('insertion'==_0x51c31e&&'imageCaption'==_0x492b92&&!_0x1e3ebf['newRange']){const _0x1c0c99=_0x17a66f['getSuggestion'](_0x3e389c);_0x1c0c99['next']&&_0x1c0c99['next']['isInContent']&&(_0x17a66f['discardSuggestion'](_0x1c0c99['next']),_0x491239=!0x0);}}}return _0x491239;}),this['_registerLegacyDescription'](_0x345937);}['_registerLegacyDescription'](_0x4764c1){const _0xce0319=this['editor'],_0x408fa5=_0xce0319['locale'];_0xce0319['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b0f5b=>{if('formatBlock'!=_0x3b0f5b['type']&&'formatInline'!=_0x3b0f5b['type'])return;const {data:_0x28fed0}=_0x3b0f5b;if(!_0x28fed0||'imageStyle'!=_0x28fed0['commandName'])return;const _0xc11174=_0x28fed0['commandParams'][0x0]['value'];return _0x26ff1d('side'===_0xc11174?o(_0x408fa5,'FORMAT_SIDE_IMAGE'):_0x4764c1[_0xc11174]||_0xc11174);function _0x26ff1d(_0x3c0ea6){return{'type':'format','content':o(_0x408fa5,'*Format:*\x20%0',_0x3c0ea6)};}});}}class ct extends _0x4785df{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x56de72){super(_0x56de72),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x59f4a4=this['editor'],_0x5740d8=_0x59f4a4['commands']['get']('importWord'),_0x5dada3=_0x59f4a4['commands']['get']('trackChanges');_0x5740d8&&(_0x5740d8['on']('execute',(_0x52faef,[,_0x128b3a])=>{this['_trackChangesValueDuringImport']=_0x5dada3['value'],_0x128b3a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5740d8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5740d8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5dada3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x59f4a4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x551ef1,_0x17ea8a){const {suggestions:_0x128b6c}=_0x17ea8a,_0x2f8cba=this['editor']['commands']['get']('trackChanges'),_0x411ff7=_0x2f8cba['value'];this['_trackChangesValueDuringImport']!==_0x411ff7&&(_0x2f8cba['execute'](),this['_trackChangesExecuted']=!0x0),_0x128b6c&&_0x128b6c['forEach'](({id:_0x28608f,type:_0x6ff69d,author:_0x1a110a,created_at:_0x2f91c6})=>{const _0x2df566={'id':_0x28608f,'type':_0x6ff69d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a110a,'createdAt':_0x2f91c6?new Date(_0x2f91c6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2df566);});}}class ut extends _0x4785df{['afterInit'](){const _0x54b835=this['editor'],_0x2968b3=_0x54b835['plugins']['get']('TrackChangesEditing');if(_0x54b835['plugins']['has']('IndentEditing')&&(_0x2968b3['enableCommand']('indent'),_0x2968b3['enableCommand']('outdent')),_0x54b835['plugins']['has']('IndentBlock')){for(const _0x5981af of['indentBlock','outdentBlock'])_0x2968b3['enableDefaultAttributesIntegration'](_0x5981af);}const _0x492db4=_0x54b835['locale'];_0x2968b3['registerBlockAttribute']('blockIndent'),_0x2968b3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x492db4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2faafe=this['editor'],_0x34b397=_0x2faafe['locale'],_0x264782=_0x2faafe['plugins']['get']('TrackChangesEditing');_0x264782['descriptionFactory']['registerDescriptionCallback'](_0x970b1d=>{if('formatBlock'!=_0x970b1d['type'])return;const {data:_0x30688c}=_0x970b1d;if(!_0x30688c)return;if('indentBlock'!=_0x30688c['commandName']&&'outdentBlock'!=_0x30688c['commandName'])return;const _0x582689=_0x970b1d['getItems']()[0x0],_0x5bfc24=_0x264782['descriptionFactory']['getItemLabel'](_0x582689);return'indentBlock'==_0x30688c['commandName']?{'type':'format','content':o(_0x34b397,'*Indent:*\x20%0',_0x5bfc24)}:'outdentBlock'==_0x30688c['commandName']?{'type':'format','content':o(_0x34b397,'*Outdent:*\x20%0',_0x5bfc24)}:void 0x0;});}}class ft extends _0x4785df{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4785df{['afterInit'](){const _0x2870ba=this['editor'];if(!_0x2870ba['plugins']['has']('LinkEditing'))return;const _0x431712=_0x2870ba['plugins']['get']('TrackChangesEditing'),_0x4daf9f=_0x2870ba['commands']['get']('link');_0x431712['enableDefaultAttributesIntegration']('link'),_0x431712['enableDefaultAttributesIntegration']('unlink'),_0x431712['registerInlineAttribute']('linkHref');for(const _0x2cb76d of _0x4daf9f['manualDecorators'])_0x431712['registerInlineAttribute'](_0x2cb76d['id']),_0x431712['descriptionFactory']['registerAttributeLabel'](_0x2cb76d['id'],'link\x20('+_0x2cb76d['label']['toLowerCase']()+')');_0x431712['descriptionFactory']['registerDescriptionCallback'](_0x2abdb1=>{if('attribute'!=_0x2abdb1['type'])return;const {data:_0x3c03c0}=_0x2abdb1;if(!_0x3c03c0||'linkHref'!=_0x3c03c0['key'])return;const _0x10604c=_0x3c03c0['newValue'],_0x3bdfbc=_0x2870ba['locale'];return{'type':'format','content':null==_0x10604c?o(_0x3bdfbc,'*Remove\x20link*'):o(_0x3bdfbc,'*Set\x20link:*\x20%0','\x22'+_0x10604c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fa3ac=this['editor'],_0x46ac01=_0x2fa3ac['locale'];_0x2fa3ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a1318=>{if('formatInline'!=_0x5a1318['type'])return;const {data:_0x1bb7e7}=_0x5a1318;if(_0x1bb7e7){if('link'==_0x1bb7e7['commandName']){const _0x2e6813=_0x1bb7e7['commandParams'][0x0];return{'type':'format','content':o(_0x46ac01,'*Set\x20link:*\x20%0','\x22'+_0x2e6813+'\x22')};}return'unlink'==_0x1bb7e7['commandName']?{'type':'format','content':o(_0x46ac01,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4785df{['afterInit'](){const _0x7877c1=this['editor'],_0x49f72d=_0x7877c1['locale'];if(!_0x7877c1['plugins']['has']('LegacyListEditing'))return;const _0x2b96fe=_0x7877c1['plugins']['get']('TrackChangesEditing'),_0x49a076=_0x7877c1['plugins']['has']('LegacyTodoListEditing');function _0xdbcff1(_0x3ed796){return()=>{const _0x51834d=_0x7877c1['model']['document']['selection'],_0xfb1582=_0x7877c1['commands']['get'](_0x3ed796);if(_0xfb1582['value'])return void _0x7877c1['execute']('paragraph',{});const _0x34a276=_0x3ed796['slice'](0x0,-0x4),_0x1abc40=function(_0x58e40f,_0x561616,_0x1d294a){let _0x3e84be=Array['from'](_0x58e40f)['filter'](_0x32fb06=>function(_0xfd4c1f,_0x1546ab){return _0x1546ab['checkChild'](_0xfd4c1f['parent'],'listItem')&&!_0x1546ab['isObject'](_0xfd4c1f);}(_0x32fb06,_0x1d294a));_0x3e84be=_0x3e84be['filter'](_0x4dd588=>!_0x4dd588['is']('element','listItem')||_0x4dd588['getAttribute']('listType')!=_0x561616);const _0x334a11=new Set();for(const _0x3077a3 of _0x3e84be)_0x3077a3['is']('element','listItem')?_0x334a11['add'](Le(_0x3077a3)):_0x334a11['add'](_0x3077a3);return Array['from'](_0x334a11);}(_0x51834d['getSelectedBlocks'](),_0x34a276,_0x7877c1['model']['schema']);_0x7877c1['model']['change'](()=>{for(const _0x20b587 of _0x1abc40)_0x2b96fe['markBlockFormat'](_0x20b587,{'commandName':_0x3ed796,'commandParams':[{'forceValue':!_0xfb1582['value']}],'formatGroupId':'blockName'},Ee(_0x20b587));});};}function _0x5ee5de(_0x3b085e){return()=>{const _0x54a92d=function(_0x3093b2){let _0x53eef9=Array['from'](_0x3093b2);const _0x13b316=_0x53eef9['findIndex'](_0x185049=>'listItem'!=_0x185049['name']);return _0x13b316>-0x1&&(_0x53eef9=_0x53eef9['slice'](0x0,_0x13b316)),_0x53eef9;}(_0x7877c1['model']['document']['selection']['getSelectedBlocks']()),_0xc8bfa9=_0x7877c1['model']['createRange'](_0x7877c1['model']['createPositionAt'](_0x54a92d[0x0],'before'),_0x7877c1['model']['createPositionAt'](_0x54a92d[_0x54a92d['length']-0x1],'end'));_0x7877c1['model']['change'](()=>{_0x2b96fe['markBlockFormat'](_0xc8bfa9,{'commandName':_0x3b085e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x83ece9){const _0xab615a=new Set();for(const _0x529205 of _0x83ece9){let _0x35ade5=_0x529205['nextSibling'];for(;_0x35ade5&&_0x35ade5['getAttribute']('listIndent')>_0x529205['getAttribute']('listIndent');)_0xab615a['add'](_0x35ade5),_0x35ade5=_0x35ade5['nextSibling'];}return Array['from'](_0xab615a);}(_0x54a92d));});};}_0x2b96fe['enableCommand']('numberedList',_0xdbcff1('numberedList')),_0x2b96fe['enableCommand']('bulletedList',_0xdbcff1('bulletedList')),_0x49a076&&_0x2b96fe['enableCommand']('todoList',_0xdbcff1('todoList')),_0x2b96fe['enableCommand']('indentList',_0x5ee5de('indentList')),_0x2b96fe['enableCommand']('outdentList',_0x5ee5de('outdentList')),_0x49a076&&_0x2b96fe['enableCommand']('checkTodoList',()=>{const _0x21590f=_0x7877c1['commands']['get']('checkTodoList'),_0x4d12e2=Array['from'](_0x21590f['_selectedElements']);_0x4d12e2['filter'](_0x53558a=>_0x53558a['getAttribute']('todoListChecked')!=_0x21590f['value']),_0x7877c1['model']['change'](()=>{for(const _0x3ef67e of _0x4d12e2)_0x2b96fe['markBlockFormat'](_0x3ef67e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x21590f['value']}]});});}),_0x2b96fe['descriptionFactory']['registerElementLabel']('listItem',_0x1321e8=>o(_0x49f72d,'ELEMENT_LIST_ITEM',_0x1321e8)),_0x2b96fe['descriptionFactory']['registerDescriptionCallback'](_0x21daca=>{if('formatBlock'!=_0x21daca['type']&&'formatInline'!=_0x21daca['type'])return;const {data:_0x282b03}=_0x21daca;if(_0x282b03){if('numberedList'==_0x282b03['commandName']||'bulletedList'==_0x282b03['commandName']||'todoList'==_0x282b03['commandName'])switch(_0x282b03['commandName']['replace']('List','')){case'bulleted':return _0x4faecf(o(_0x49f72d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4faecf(o(_0x49f72d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4faecf(o(_0x49f72d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x282b03['commandName'])return{'type':'format','content':o(_0x49f72d,'*Indent:*\x20%0',o(_0x49f72d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x282b03['commandName'])return{'type':'format','content':o(_0x49f72d,'*Outdent:*\x20%0',o(_0x49f72d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x282b03['commandName'])return _0x282b03['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49f72d,'*Check\x20item*')}:{'type':'format','content':o(_0x49f72d,'*Uncheck\x20item*')};}function _0x4faecf(_0x25c147){return{'type':'format','content':o(_0x49f72d,'*Change\x20to:*\x20%0',_0x25c147)};}});}}function Le(_0x2cceb6){const _0xe728dc=_0x2cceb6['getAttribute']('listIndent');if(0x0==_0xe728dc)return _0x2cceb6;let _0x380a8d=_0x2cceb6;for(;_0x2cceb6['previousSibling']&&_0x2cceb6['previousSibling']['is']('element','listItem');){const _0x5e3785=_0x2cceb6['previousSibling']['getAttribute']('listIndent');if(_0x5e3785==_0xe728dc)_0x380a8d=_0x2cceb6['previousSibling'];else{if(_0x5e3785<_0xe728dc)break;}_0x2cceb6=_0x2cceb6['previousSibling'];}return _0x380a8d;}function Ee(_0x1ae45f){const _0x46cf49=[];if(_0x1ae45f['is']('element','listItem')&&_0x1ae45f['getAttribute']('listIndent')>0x0){let _0x4e5147=_0x1ae45f['nextSibling'];for(;_0x4e5147&&'listItem'==_0x4e5147['name']&&_0x4e5147['getAttribute']('listIndent')==_0x1ae45f['getAttribute']('listIndent');)_0x46cf49['push'](_0x4e5147),_0x4e5147=_0x4e5147['nextSibling'];}return _0x46cf49;}class Q extends _0x4785df{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x158b97=this['editor']['config']['get']('list.properties'),_0x3fb245=this['editor']['plugins']['get']('TrackChangesEditing');_0x158b97['styles']&&_0x3fb245['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x158b97['reversed']&&_0x3fb245['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x158b97['startIndex']&&_0x3fb245['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3fb245['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x680197,_0x2c0227={}){const _0x3b60cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a640f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b60cd['markMultiRangeBlockFormat'](_0x3a640f,{'commandName':'listStyle','commandParams':[{'type':_0x2c0227['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x519b81,_0x45ca65={}){const _0x2932bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39eb95=this['_getSuggestionBlocks'](_0x412aee=>_0x412aee['is']('element','listItem')&&'numbered'===_0x412aee['getAttribute']('listType'));if(_0x39eb95['length']<0x1)return;const _0x56088e=_0x39eb95['map'](_0x5c7cae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c7cae,'before'),this['editor']['model']['createPositionAt'](_0x5c7cae,0x0)));this['editor']['model']['change'](()=>{_0x2932bf['markMultiRangeBlockFormat'](_0x56088e,{'commandName':'listReversed','commandParams':[{'reversed':_0x45ca65['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e6c9c,_0x538071={}){const _0x5e92fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x468afd=this['_getSuggestionBlocks'](_0x54de4d=>_0x54de4d['is']('element','listItem')&&'numbered'===_0x54de4d['getAttribute']('listType'));if(_0x468afd['length']<0x1)return;const _0x555187=_0x468afd['map'](_0x3a9040=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a9040,'before'),this['editor']['model']['createPositionAt'](_0x3a9040,0x0)));this['editor']['model']['change'](()=>{_0x5e92fa['markMultiRangeBlockFormat'](_0x555187,{'commandName':'listStart','commandParams':[{'startIndex':_0x538071['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2a256d){if('formatBlock'!=_0x2a256d['type']&&'formatInline'!=_0x2a256d['type'])return;const _0x30bbed=this['editor']['locale'],{data:_0x4acb63}=_0x2a256d;if(!_0x4acb63)return;let _0xb00a6d,_0x51a475;switch(_0x4acb63['commandName']){case'listStyle':_0xb00a6d='*Change\x20to:*\x20%0',_0x51a475={'type':'format','content':o(_0x30bbed,_0xb00a6d,o(_0x30bbed,this['_getTranslationKeyForListStyle'](_0x4acb63['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb00a6d=_0x4acb63['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51a475={'type':'format','content':o(_0x30bbed,_0xb00a6d)};break;case'listStart':_0xb00a6d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51a475={'type':'format','content':o(_0x30bbed,_0xb00a6d,_0x4acb63['commandParams'][0x0]['startIndex'])};}return _0x51a475;}['_getSuggestionBlocksForListStyle'](){const _0x5a0b14=this['editor']['plugins']['get']('LegacyListUtils');let _0x58bd31=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x58bd31[0x0]?.['is']('element','listItem')&&_0x58bd31['unshift'](..._0x5a0b14['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x58bd31[_0x58bd31['length']-0x1]?.['is']('element','listItem')&&_0x58bd31['push'](..._0x5a0b14['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x58bd31=[...new Set(_0x58bd31)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x58bd31=_0x58bd31['filter'](_0x4d40ba=>_0x4d40ba['is']('element','listItem'))),_0x58bd31;}['_getSuggestionBlocks'](_0x188e8a){const _0x5693a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x275099=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x188e8a)['map'](_0x516209=>{const _0xe789dd=this['editor']['model']['createPositionAt'](_0x516209,0x0);return[..._0x5693a2['getSiblingNodes'](_0xe789dd,'backward'),..._0x5693a2['getSiblingNodes'](_0xe789dd,'forward')];})['flat']();return _0x275099=[...new Set(_0x275099)],_0x275099;}['_getTranslationKeyForListStyle'](_0x502f58){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x502f58)||'default')['toUpperCase']()+'_LIST_'+_0x502f58['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4785df{['afterInit'](){const _0x5f425c=this['editor'];if(!_0x5f425c['plugins']['has']('MediaEmbedEditing'))return;const _0x214ac7=_0x5f425c['plugins']['get']('TrackChangesEditing'),_0x1ca38b=_0x5f425c['locale'];_0x214ac7['enableCommand']('mediaEmbed'),_0x214ac7['descriptionFactory']['registerElementLabel']('media',_0x1503b3=>o(_0x1ca38b,'ELEMENT_MEDIA',_0x1503b3)),_0x5f425c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x423765,{writer:_0x361be3,options:_0x1eb0c2})=>{if(_0x1eb0c2['showSuggestionHighlights'])return _0x361be3['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f425c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x355a2f,_0x4e4208,_0x129bc7)=>{_0x129bc7['options']['showSuggestionHighlights']&&_0x355a2f['stop']();},{'priority':'high'});}}class mt extends _0x4785df{['afterInit'](){const _0x5cff23=this['editor'];_0x5cff23['plugins']['has']('MentionEditing')&&_0x5cff23['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4785df{['afterInit'](){const _0x1294d3=this['editor'];if(!_0x1294d3['plugins']['has']('MergeFieldsEditing'))return;_0x1294d3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1294d3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x479625=_0x1294d3['plugins']['get']('TrackChangesEditing'),_0x14ef7f=_0x1294d3['locale'];_0x479625['descriptionFactory']['registerElementLabel']('mergeField',_0x381bec=>o(_0x14ef7f,'ELEMENT_MERGE_FIELD',_0x381bec)),_0x479625['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x463474=>o(_0x14ef7f,'ELEMENT_MERGE_FIELD',_0x463474)),_0x479625['descriptionFactory']['registerDescriptionCallback'](_0x1d6a23=>{if('insertion'!=_0x1d6a23['type']&&'deletion'!=_0x1d6a23['type'])return;const _0xa0f01e=_0x1d6a23['getContainedElement']();if(null==_0xa0f01e)return;if(!_0xa0f01e['is']('element','mergeField')&&!_0xa0f01e['is']('element','mergeFieldBlock'))return;const _0x66e16e=_0x1294d3['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xa0f01e['getAttribute']('id'));return'insertion'==_0x1d6a23['type']?{'type':'insertion','content':o(_0x14ef7f,'*Insert:*\x20%0','\x22'+_0x66e16e+'\x22\x20'+o(_0x14ef7f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x14ef7f,'*Remove:*\x20%0','\x22'+_0x66e16e+'\x22\x20'+o(_0x14ef7f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4785df{['afterInit'](){const _0x2795ac=this['editor'],_0x1bcc70=_0x2795ac['plugins']['get']('TrackChangesEditing');_0x2795ac['plugins']['has']('MultiLevelList')&&(_0x1bcc70['enableDefaultAttributesIntegration']('multiLevelList'),_0x1bcc70['registerBlockAttribute']('listMarkerStyle'),_0x1bcc70['descriptionFactory']['registerDescriptionCallback'](_0x5e13de=>this['handleDescriptions'](_0x5e13de)));}['handleDescriptions'](_0x3bb4a8){const _0x512ddc=this['editor']['locale'],{data:_0x583596}=_0x3bb4a8,_0x59d3d6={'type':'format','content':''};if(_0x583596&&'listMarkerStyle'==_0x583596['key']){if(!_0x583596['oldValue'])return{'type':'format','content':o(_0x512ddc,'*Set\x20format:*\x20%0',o(_0x512ddc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x583596['newValue']+')'};if(!_0x583596['newValue']){let _0x54a2ac=_0x3bb4a8['head'];for(;_0x54a2ac;){if(_0x54a2ac['data']&&'listType'==_0x54a2ac['data']['key']&&_0x54a2ac['data']['newValue'])return _0x59d3d6;_0x54a2ac=_0x54a2ac['next'];}return{'type':'format','content':o(_0x512ddc,'*Remove\x20format:*\x20%0',o(_0x512ddc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x583596['oldValue']+')'};}}}}class kt extends _0x4785df{['afterInit'](){const _0x3fef27=this['editor'];if(!_0x3fef27['plugins']['has']('PageBreakEditing'))return;_0x3fef27['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e1f60=_0x3fef27['plugins']['get']('TrackChangesEditing'),_0x453b9c=_0x3fef27['locale'];_0x1e1f60['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e5017=>o(_0x453b9c,'ELEMENT_PAGE_BREAK',_0x2e5017));}}class bt extends _0x4785df{['afterInit'](){const _0x12a338=this['editor'];if(!_0x12a338['plugins']['has']('Paragraph'))return;const _0x2cf6eb=_0x12a338['locale'],_0x308fa9=_0x12a338['plugins']['get']('TrackChangesEditing');_0x308fa9['descriptionFactory']['registerElementLabel']('paragraph',_0x130ad2=>o(_0x2cf6eb,'ELEMENT_PARAGRAPH',_0x130ad2)),_0x308fa9['enableDefaultAttributesIntegration']('paragraph'),_0x308fa9['enableCommand']('insertParagraph'),_0x12a338['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x12a338),{'priority':'highest'}),_0x12a338['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f669e,_0x958c2c,_0xc1dac2)=>{_0xc1dac2['options']['showSuggestionHighlights']&&nr(_0x12a338,{'showActiveMarker':!0x1})(_0x1f669e,_0x958c2c,_0xc1dac2);},{'priority':'highest'});const _0x5a243e=_0x308fa9['descriptionFactory'];_0x5a243e['registerDescriptionCallback'](_0x37e964=>{if('insertion'!==_0x37e964['type'])return;const {start:_0xc42d31,end:_0x57f91b}=_0x37e964['getFirstRange']();if(!_0xc42d31['isTouching'](_0x57f91b)||!_0xc42d31['nodeAfter'])return;const _0x3253ad=_0x12a338['model']['schema'],_0x1b8dfd=_0xc42d31['nodeAfter'];return _0x3253ad['isBlock'](_0x1b8dfd)&&!_0x3253ad['isLimit'](_0x1b8dfd)&&_0x3253ad['checkChild'](_0x1b8dfd,'$text')?{'type':'insertion','content':o(_0x2cf6eb,'*Insert:*\x20%0',_0x5a243e['getItemLabel'](_0x1b8dfd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217d84=this['editor'],_0x557d50=_0x217d84['locale'];_0x217d84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351aef=>{if('formatBlock'!=_0x351aef['type'])return;const {data:_0x4e8c74}=_0x351aef;return _0x4e8c74&&'paragraph'==_0x4e8c74['commandName']?{'type':'format','content':o(_0x557d50,'*Change\x20to:*\x20%0',o(_0x557d50,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x31318b,{showActiveMarker:_0x37b60f=!0x0}={}){return(_0x46d7d3,_0x9bca53,_0x5fd212)=>{const _0x145d60=_0x31318b['plugins']['get']('TrackChangesEditing'),_0x36a0f0=_0x9bca53['markerRange']['start'],_0x5357e2=_0x9bca53['markerRange']['end'],_0x59f526=_0x31318b['model']['schema'];if(!_0x36a0f0['isTouching'](_0x5357e2)||!_0x36a0f0['nodeAfter'])return;const _0x296afb=_0x36a0f0['nodeAfter'];if(_0x59f526['isBlock'](_0x296afb)&&!_0x59f526['isLimit'](_0x296afb)&&_0x59f526['checkChild'](_0x296afb,'$text')){if(!_0x5fd212['consumable']['consume'](_0x9bca53['markerRange'],_0x46d7d3['name']))return;const {authorId:_0x23f21e}=_0x145d60['_splitMarkerName'](_0x9bca53['markerName']),_0x5cd844=_0x5fd212['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x23f21e}),_0x513eb0=_0x5fd212['mapper']['toViewPosition'](_0x5357e2);_0x37b60f&&_0x145d60['activeMarkers']['includes'](_0x9bca53['markerName'])&&_0x5fd212['writer']['addClass']('ck-suggestion-marker--active',_0x5cd844),_0x5fd212['writer']['insert'](_0x513eb0,_0x5cd844),_0x5fd212['mapper']['bindElementToMarker'](_0x5cd844,_0x9bca53['markerName']);}};}class yt extends _0x4785df{['afterInit'](){const _0x5d11c3=this['editor'];if(!_0x5d11c3['plugins']['has']('RemoveFormatEditing'))return;_0x5d11c3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537b95=this['editor'];_0x537b95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b14aa=>{if('formatBlock'!=_0x1b14aa['type']&&'formatInline'!=_0x1b14aa['type'])return;const {data:_0x1bdf41}=_0x1b14aa;return _0x1bdf41&&'removeFormat'==_0x1bdf41['commandName']?{'type':'format','content':o(_0x537b95['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4785df{['afterInit'](){const _0xc2e466=this['editor'];if(!_0xc2e466['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4923a4=_0xc2e466['plugins']['get']('TrackChangesEditing');_0x4923a4['enableCommand']('goToPreviousRestrictedEditingException'),_0x4923a4['enableCommand']('goToNextRestrictedEditingException');const _0x130cc8=_0xc2e466['plugins']['get']('RestrictedEditingModeEditing');_0x130cc8['enableCommand']('trackChanges'),_0x130cc8['enableCommand']('acceptSuggestion'),_0x130cc8['enableCommand']('discardSuggestion'),_0x130cc8['enableCommand']('acceptAllSuggestions'),_0x130cc8['enableCommand']('discardAllSuggestions'),_0x130cc8['enableCommand']('acceptSelectedSuggestions'),_0x130cc8['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4785df{static get['requires'](){return[_0x33af47];}['init'](){const _0x39b178=this['editor'],_0x4e7f66=_0x39b178['plugins']['get']('TrackChangesEditing');_0x4e7f66['enableCommand']('shiftEnter'),_0x39b178['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x39b178),{'priority':'high'}),_0x39b178['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x39b178),{'priority':'high'}),_0x39b178['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2938a4,_0x1fd15d,_0x44a6cb)=>{_0x44a6cb['options']['showSuggestionHighlights']&&ke(_0x39b178,{'showActiveMarker':!0x1})(_0x2938a4,_0x1fd15d,_0x44a6cb);}),_0x4e7f66['descriptionFactory']['registerElementLabel']('softBreak',_0x7bb3c0=>o(_0x39b178['locale'],'ELEMENT_LINE_BREAK',_0x7bb3c0));}}function ke(_0x278861,{showActiveMarker:_0x41dc5f=!0x0}={}){return(_0x5cb0ac,_0x168b48,_0x1aaee6)=>{const _0x2f0dd6=_0x278861['plugins']['get']('TrackChangesEditing');if(!_0x1aaee6['consumable']['test'](_0x168b48['markerRange'],_0x5cb0ac['name']))return;const _0x2f612a=_0x278861['model'];for(const _0x4dfd5b of _0x168b48['markerRange']['getItems']()){if(!_0x4dfd5b['is']('element','softBreak'))continue;const _0xffd25d='deletion'==_0x168b48['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x137aff}=_0x2f0dd6['_splitMarkerName'](_0x168b48['markerName']),_0x2d2261=_0x1aaee6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xffd25d,'data-author-id':_0x137aff}),_0x4b0c5f=_0x1aaee6['mapper']['toViewPosition'](_0x2f612a['createPositionBefore'](_0x4dfd5b));_0x41dc5f&&_0x2f0dd6['activeMarkers']['includes'](_0x168b48['markerName'])&&_0x1aaee6['writer']['addClass']('ck-suggestion-marker--active',_0x2d2261),_0x1aaee6['writer']['insert'](_0x4b0c5f,_0x2d2261),_0x1aaee6['mapper']['bindElementToMarker'](_0x2d2261,_0x168b48['markerName']);}};}class At extends _0x4785df{['afterInit'](){const _0x4d6826=this['editor'],_0x29f7cb=_0x4d6826['model'],_0x39a321=_0x4d6826['locale'];if(!_0x4d6826['plugins']['has']('StandardEditingModeEditing'))return;const _0x2dbfda=_0x4d6826['plugins']['get']('TrackChangesEditing'),_0x3a3752='restrictedEditingException',_0x3a9f8f=_0x4d6826['commands']['get'](_0x3a3752);_0x2dbfda['enableCommand'](_0x3a3752,(_0x590d76,_0x5c54d3={})=>{const _0x279079=_0x29f7cb['document']['selection'];if(_0x279079['isCollapsed'])return void _0x590d76(_0x5c54d3);const _0x1fa152=void 0x0!==_0x5c54d3['forceValue']?_0x5c54d3['forceValue']:!_0x3a9f8f['value'];_0x29f7cb['change'](()=>{const _0x589eb4=Array['from'](_0x279079['getRanges']());for(const _0x1f80ac of _0x589eb4){const _0x661e0f=_0x1fa152?[_0x1f80ac]:io(_0x3a3752,_0x1f80ac,_0x29f7cb);for(const _0x4ed6db of _0x661e0f)_0x2dbfda['markInlineFormat'](_0x4ed6db,{'commandName':_0x3a3752,'commandParams':[{'forceValue':_0x1fa152}]});}});}),_0x2dbfda['descriptionFactory']['registerDescriptionCallback'](_0x43b348=>{if('formatBlock'!=_0x43b348['type']&&'formatInline'!=_0x43b348['type'])return;const {data:_0x41f4dd}=_0x43b348;return _0x41f4dd&&_0x41f4dd['commandName']==_0x3a3752?_0x41f4dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39a321,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x39a321,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4785df{['afterInit'](){const _0x3a9c64=this['editor'];if(!_0x3a9c64['plugins']['has']('Style')||!_0x3a9c64['plugins']['has']('DataSchema'))return;const _0x4e58bb=_0x3a9c64['plugins']['get']('TrackChangesEditing'),_0x2d86a6=_0x3a9c64['locale'],_0x1e610d=_0x3a9c64['config']['get']('style')||{},_0x4912b3=_0x3a9c64['plugins']['get']('GeneralHtmlSupport'),_0x2e89f3=_0x3a9c64['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3a9c64['plugins']['get']('DataSchema'),_0x1e610d['definitions']);_0x4e58bb['enableDefaultAttributesIntegration']('style');const _0x132c8c=new Set();for(const _0x20ab74 of _0x2e89f3['block']){const _0x48af69=_0x4912b3['getGhsAttributeNameForElement'](_0x20ab74['element']);_0x132c8c['add'](_0x48af69);}const _0x43b583=new Set();for(const _0x4bfb68 of _0x2e89f3['inline']){const _0x439ed4=_0x4912b3['getGhsAttributeNameForElement'](_0x4bfb68['element']);_0x43b583['add'](_0x439ed4);for(const _0x25c0a3 of _0x4bfb68['ghsAttributes'])_0x43b583['add'](_0x25c0a3);}for(const _0x4c51cf of _0x132c8c)_0x4e58bb['registerBlockAttribute'](_0x4c51cf),_0x4e58bb['descriptionFactory']['registerAttributeLabel'](_0x4c51cf,o(_0x2d86a6,'FORMAT_STYLE'));for(const _0x3334a3 of _0x43b583)_0x4e58bb['registerInlineAttribute'](_0x3334a3),_0x4e58bb['descriptionFactory']['registerAttributeLabel'](_0x3334a3,o(_0x2d86a6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5625=this['editor'],_0x44ae4d=_0x2b5625['locale'];_0x2b5625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53334b=>{if('formatBlock'!=_0x53334b['type']&&'formatInline'!=_0x53334b['type'])return;const {data:_0x44afb0}=_0x53334b;return _0x44afb0&&'style'===_0x44afb0['commandName']?_0x44afb0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44ae4d,'*Set\x20format:*\x20%0',_0x44afb0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44ae4d,'*Remove\x20format:*\x20%0',_0x44afb0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4785df{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5b0f4d){super(_0x5b0f4d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4b5da2=this['editor'],_0x132eee=_0x4b5da2['model']['document']['selection'];if(!_0x4b5da2['plugins']['has']('TableEditing'))return;const _0x2a0ddb=_0x4b5da2['locale'],_0x49f8cb=_0x4b5da2['plugins']['get']('TrackChangesEditing'),_0x1aef81=_0x4b5da2['plugins']['get']('TableUtils');_0x49f8cb['descriptionFactory']['registerElementLabel']('table',_0x76a924=>o(_0x2a0ddb,'ELEMENT_TABLE',_0x76a924)),this['_setupColumnsRowsFixing'](),_0x49f8cb['enableCommand']('insertTable'),_0x49f8cb['enableCommand']('selectTableRow'),_0x49f8cb['enableCommand']('selectTableColumn');for(const _0x31d69a of['insertTableRowAbove','insertTableRowBelow']){const _0x2cc29d=_0x4b5da2['commands']['get'](_0x31d69a);_0x49f8cb['enableCommand'](_0x31d69a,_0x4681dc=>{_0x4b5da2['model']['change'](_0x285cb0=>{_0x4681dc();const _0x2e9b92='above'===_0x2cc29d['order'],_0x5e6cef=_0x1aef81['getSelectionAffectedTableCells'](_0x132eee),_0x1951d7=_0x1aef81['getRowIndexes'](_0x5e6cef),_0x34eef2=_0x2e9b92?_0x1951d7['first']-0x1:_0x1951d7['last']+0x1,_0x5339b2=_0x5e6cef[0x0]['findAncestor']('table'),_0x8e72d6=_0x1aef81['createTableWalker'](_0x5339b2,{'startRow':_0x34eef2,'endRow':_0x34eef2}),_0x3881f7=Array['from'](_0x8e72d6)['map'](_0x544e18=>_0x285cb0['createRangeOn'](_0x544e18['cell']));_0x49f8cb['markMultiRangeInsertion'](_0x3881f7,'tableRow');});});}for(const _0x3da983 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1807a8=_0x4b5da2['commands']['get'](_0x3da983);_0x49f8cb['enableCommand'](_0x3da983,_0x424d4e=>{_0x4b5da2['model']['change'](_0x8ebc2c=>{_0x424d4e();const _0x5baba5='left'===_0x1807a8['order'],_0x5747e4=_0x1aef81['getSelectionAffectedTableCells'](_0x132eee),_0x5898de=_0x1aef81['getColumnIndexes'](_0x5747e4),_0x151a65=_0x5baba5?_0x5898de['first']-0x1:_0x5898de['last']+0x1,_0x76ab1=_0x5747e4[0x0]['findAncestor']('table'),_0x583498=_0x1aef81['createTableWalker'](_0x76ab1,{'startRow':0x0,'column':_0x151a65,'includeAllSlots':!0x1}),_0x5b759c=Array['from'](_0x583498)['map'](_0x3b3ce6=>_0x8ebc2c['createRangeOn'](_0x3b3ce6['cell']));_0x49f8cb['markMultiRangeInsertion'](_0x5b759c,'tableColumn');});});}for(const _0x1125a4 of['removeTableRow','removeTableColumn']){const _0x20650b=_0x1125a4['substr'](0xb),_0x2c9bbd=_0x20650b['toLowerCase'](),_0x2983c5=_0x2c9bbd['substr'](0x0,0x3)+'span',_0x580632='table'+_0x20650b,_0x417008='min'+_0x20650b,_0x8c403e='max'+_0x20650b;_0x49f8cb['enableCommand'](_0x1125a4,()=>{_0x4b5da2['model']['change'](_0x5afb2b=>{const _0x3a16f7=_0x1aef81['getSelectionAffectedTableCells'](_0x132eee),_0x5e13c5=_0x3a16f7[0x0]['findAncestor']('table');let _0x337bd2;if('removeTableRow'==_0x1125a4){const _0x80136c=_0x1aef81['getRowIndexes'](_0x3a16f7);_0x337bd2={'startRow':_0x80136c['first'],'endRow':_0x80136c['last'],'includeAllSlots':!0x0};}else{const _0x285122=_0x1aef81['getColumnIndexes'](_0x3a16f7);_0x337bd2={'startColumn':_0x285122['first'],'endColumn':_0x285122['last'],'includeAllSlots':!0x0};}const _0x207080=_0x1aef81['createTableWalker'](_0x5e13c5,_0x337bd2),_0x330bb4=Array['from'](_0x207080)['map'](({cell:_0x3e705c})=>_0x3e705c),_0x3ad378=Re(_0x330bb4['filter'](_0x5a44fe=>_0x5a44fe['hasAttribute'](_0x2983c5))),_0x31540d=Re(_0x330bb4['filter'](_0x444f14=>!_0x444f14['hasAttribute'](_0x2983c5)))['map'](_0x2e88e2=>_0x5afb2b['createRangeOn'](_0x2e88e2)),_0x1ccf45=_0x49f8cb['markMultiRangeDeletion'](_0x31540d,_0x580632);if(_0x1ccf45&&('tableRow'==_0x1ccf45['subType']||'tableColumn'==_0x1ccf45['subType'])){const _0x4c8134=this['_getSuggestionCoords'](_0x1ccf45);for(const _0x373b1c of _0x3ad378){const _0xead834=_0x5afb2b['createRangeOn'](_0x373b1c),_0x256e22=_0x1aef81['getCellLocation'](_0x373b1c),_0x3a2eaa=_0x373b1c['getAttribute'](_0x2983c5)-0x1,_0x190105=_0x4c8134[_0x417008],_0x10f7db=_0x4c8134[_0x8c403e];_0x190105<=_0x256e22[_0x2c9bbd]&&_0x256e22[_0x2c9bbd]+_0x3a2eaa<=_0x10f7db&&_0x1ccf45['addRange'](_0xead834);}}});});}function _0x433ef8(_0x9a5b5){const _0x5c59bd=Array['from'](_0x132eee['getRanges']())['map'](_0x440a85=>_0x18db69['fromRange'](_0x440a85));_0x4b5da2['model']['change'](_0x204a1e=>{const _0x149c70=_0x204a1e['batch'];_0x9a5b5=_0x9a5b5['filter'](_0xbd5c46=>'$graveyard'!=_0xbd5c46['root']['rootName']),_0x204a1e['setSelection'](_0x9a5b5),_0x4b5da2['commands']['get']('removeTableRow')['refresh'](),_0x4b5da2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4b5da2['model']['enqueueChange'](()=>{_0x4b5da2['model']['enqueueChange'](_0x149c70,_0x5ecdce=>{const _0x261ba7=_0x5c59bd['filter'](_0x3128a0=>'$graveyard'!=_0x3128a0['root']['rootName']);_0x261ba7['length']>0x0&&_0x5ecdce['setSelection'](_0x261ba7);for(const _0x5358fa of _0x5c59bd)_0x5358fa['detach']();});});});}function _0x7951e8(_0x5ca23c){_0x4b5da2['model']['change'](_0x96bc6f=>{const _0x31c3d8=Array['from'](_0x132eee['getRanges']())['map'](_0x59291f=>_0x18db69['fromRange'](_0x59291f)),_0x1ddc02=[];for(const _0x91202a of _0x5ca23c)for(const _0xd9745b of _0x91202a['getItems']({'shallow':!0x0}))_0x1ddc02['push'](_0xd9745b);for(const _0x52790f of _0x1ddc02)'$graveyard'!=_0x52790f['root']['rootName']&&(_0x96bc6f['setSelection'](_0x96bc6f['createPositionAt'](_0x52790f,0x0)),_0x4b5da2['commands']['get']('removeTableColumn')['refresh'](),_0x4b5da2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5daa2f=_0x31c3d8['filter'](_0x35390a=>'$graveyard'!=_0x35390a['root']['rootName']);_0x5daa2f['length']>0x0&&_0x96bc6f['setSelection'](_0x5daa2f);for(const _0x309659 of _0x31c3d8)_0x309659['detach']();});}function _0x2148f8(_0x4d9c35,_0x17ada4){return _0x17ada4['every'](_0x17e788=>_0x4d9c35['some'](_0x548f03=>_0x548f03['end']['isEqual'](_0x17e788['start'])||_0x17e788['end']['isEqual'](_0x548f03['start'])));}function _0x37a39f(_0x399284,_0x3da550){return!_0x399284['some'](_0x125e46=>_0x3da550['some'](_0x33dcfd=>_0x125e46['isIntersecting'](_0x33dcfd)))&&_0x399284['some'](_0x39fc6c=>_0x3da550['some'](_0x18edb5=>_0x39fc6c['end']['isTouching'](_0x18edb5['start'])));}_0x4b5da2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd0a61f,_0x5f1b05,_0x334202)=>{if(!_0x334202['options']['showSuggestionHighlights'])return;const _0x4fb8e0=_0x5f1b05['item'];if(!_0x4fb8e0)return;const _0x3a91a2=_0x334202['mapper']['toViewElement'](_0x4fb8e0);function _0x53e5bb(_0x112bb5){return Array['isArray'](_0x112bb5)?_0x112bb5:[_0x112bb5];}_0x3a91a2&&'tableCell'===_0x4fb8e0['name']&&_0x11865c(_0x3a91a2,_0x334202['writer'],(_0x1b376b,_0x168ad1,_0x52751d)=>_0x52751d['addClass'](_0x53e5bb(_0x168ad1['classes']),_0x1b376b),(_0xf63ca0,_0x5c6c7e,_0x49ed62)=>_0x49ed62['removeClass'](_0x53e5bb(_0x5c6c7e['classes']),_0xf63ca0));},{'priority':'highest'}),_0x49f8cb['descriptionFactory']['registerDescriptionCallback'](_0xf48c4c=>{if('insertion'!=_0xf48c4c['type']&&'deletion'!=_0xf48c4c['type'])return;const _0x2c4664=_0xf48c4c['getContainedElement']();if(null!=_0x2c4664&&_0x2c4664['is']('element','table')){if('insertion'==_0xf48c4c['type']){const _0xebc249=_0xf48c4c['getItems']()['filter'](_0x2fdaf8=>_0x2fdaf8['is']('$textProxy'))['map'](_0x4e382a=>_0x4e382a['data']);if(_0xebc249['length'])return{'type':'insertion','content':o(_0x2a0ddb,'*Insert:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xebc249['join']('\x20')+'\x22'))};}if('deletion'==_0xf48c4c['type']){const _0x42cbdc=_0xf48c4c['getItems']()['filter'](_0x4076dc=>_0x4076dc['is']('$textProxy'))['map'](_0x4a07f9=>_0x4a07f9['data']);if(_0x42cbdc['length'])return{'type':'deletion','content':o(_0x2a0ddb,'*Remove:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42cbdc['join']('\x20')+'\x22'))};}}}),_0x49f8cb['descriptionFactory']['registerDescriptionCallback'](_0x5bf039=>{if('tableRow'==_0x5bf039['subType']){const _0x5ec7f2=_0x5bf039['getItems']()['filter'](_0x486557=>_0x486557['is']('$textProxy'))['map'](_0xae4de8=>_0xae4de8['data']),_0x89b007=this['_getSuggestionCoords'](_0x5bf039),_0x135ff2=_0x89b007['maxRow']-_0x89b007['minRow']+0x1;if('insertion'==_0x5bf039['type'])return _0x5ec7f2['length']?{'type':'insertion','content':o(_0x2a0ddb,'*Insert:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x135ff2,'\x22'+_0x5ec7f2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a0ddb,'*Insert:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_ROW',_0x135ff2))};if('deletion'==_0x5bf039['type'])return _0x5ec7f2['length']?{'type':'deletion','content':o(_0x2a0ddb,'*Remove:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x135ff2,'\x22'+_0x5ec7f2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a0ddb,'*Remove:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_ROW',_0x135ff2))};}if('tableColumn'==_0x5bf039['subType']){const _0x28d770=_0x5bf039['getItems']()['filter'](_0xfd164f=>_0xfd164f['is']('$textProxy'))['map'](_0x2c8c6f=>_0x2c8c6f['data']),_0x1fb536=this['_getSuggestionCoords'](_0x5bf039),_0x62b608=_0x1fb536['maxColumn']-_0x1fb536['minColumn']+0x1;if('insertion'==_0x5bf039['type'])return _0x28d770['length']?{'type':'insertion','content':o(_0x2a0ddb,'*Insert:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x62b608,'\x22'+_0x28d770['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a0ddb,'*Insert:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_COLUMN',_0x62b608))};if('deletion'==_0x5bf039['type'])return _0x28d770['length']?{'type':'deletion','content':o(_0x2a0ddb,'*Remove:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x62b608,'\x22'+_0x28d770['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a0ddb,'*Remove:*\x20%0',o(_0x2a0ddb,'ELEMENT_TABLE_COLUMN',_0x62b608))};}}),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x433ef8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x433ef8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x7951e8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x7951e8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2148f8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2148f8),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x37a39f),_0x49f8cb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x37a39f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1aa7f3=this['editor'],_0x166899=_0x1aa7f3['model']['document']['selection'];return(_0x2e2f29,_0x20ca9d)=>{_0x1aa7f3['model']['change'](_0x54081f=>{const {commandName:_0x196455,commandParams:_0x1ff417}=_0x20ca9d;let _0x3ac090=_0x2e2f29[0x0]['end']['nodeBefore'];_0x1ff417&&_0x1ff417[0x0]&&!0x1===_0x1ff417[0x0]['forceValue']&&(_0x3ac090=_0x2e2f29[0x0]['start']['nodeAfter']);const _0x28fd4c=_0x54081f['createRangeIn'](_0x3ac090);if('$graveyard'==_0x28fd4c['root']['rootName'])return;const _0x522f8b=Array['from'](_0x166899['getRanges']())['map'](_0x1cb137=>_0x18db69['fromRange'](_0x1cb137));_0x54081f['setSelection'](_0x28fd4c),_0x1aa7f3['commands']['get'](_0x196455)['refresh'](),_0x1ff417['push']({'forceDefaultExecution':!0x0}),_0x1aa7f3['execute'](_0x196455,..._0x1ff417);const _0x26cbc0=_0x522f8b['filter'](_0x11e017=>'$graveyard'!=_0x11e017['root']['rootName']);_0x26cbc0['length']>0x0&&_0x54081f['setSelection'](_0x26cbc0);for(const _0x25c248 of _0x522f8b)_0x25c248['detach']();});};}['_getCoordsForCells'](_0x62226e){const _0x4579a3=this['editor']['plugins']['get']('TableUtils');let _0x4a7654=Number['MAX_SAFE_INTEGER'],_0x2e0ea4=Number['MIN_SAFE_INTEGER'],_0xab45a5=Number['MAX_SAFE_INTEGER'],_0x35b208=Number['MIN_SAFE_INTEGER'];for(const _0x3d4d87 of _0x62226e){if('$graveyard'==_0x3d4d87['root']['rootName'])continue;const {row:_0x4359a5,column:_0x25e654}=_0x4579a3['getCellLocation'](_0x3d4d87),_0x3fe294=_0x3d4d87['hasAttribute']('rowspan')?_0x3d4d87['getAttribute']('rowspan')-0x1:0x0,_0x43f607=_0x3d4d87['hasAttribute']('colspan')?_0x3d4d87['getAttribute']('colspan')-0x1:0x0;_0x4a7654=_0x4359a5<_0x4a7654?_0x4359a5:_0x4a7654,_0x2e0ea4=_0x4359a5+_0x3fe294>_0x2e0ea4?_0x4359a5+_0x3fe294:_0x2e0ea4,_0xab45a5=_0x25e654<_0xab45a5?_0x25e654:_0xab45a5,_0x35b208=_0x25e654+_0x43f607>_0x35b208?_0x25e654+_0x43f607:_0x35b208;}return{'minRow':_0x4a7654,'maxRow':_0x2e0ea4,'minColumn':_0xab45a5,'maxColumn':_0x35b208};}['_setupColumnsRowsFixing'](){const _0x28dbf2=this['editor'],_0x302935=_0x28dbf2['plugins']['get']('TrackChangesEditing'),_0xe7cbe5=_0x28dbf2['plugins']['get']('TableUtils');_0x28dbf2['model']['document']['on']('change:data',()=>{const _0x136811=Array['from'](_0x28dbf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x176fd0,data:_0x1a4b84}of _0x136811){const {group:_0x506bd0,id:_0x4fbb66,subType:_0x2282e7}=_0x302935['_splitMarkerName'](_0x176fd0);if('suggestion'!=_0x506bd0)continue;if(null!=_0x1a4b84['oldRange'])continue;const _0x222c09=_0x302935['getSuggestion'](_0x4fbb66);this['_tablePostFixingSubtypes']['includes'](_0x2282e7)&&this['_tableSuggestions']['add'](_0x222c09);}},{'priority':'low'});const _0x1784d9=(_0x2c838b,_0x5533dc)=>{let _0x2e4d1b=!0x1;const _0x21f13b=_0x5533dc['createRangeOn'](_0x2c838b),_0x9f5af=_0x2c838b['findAncestor']('table'),_0x2e3e37=_0xe7cbe5['getCellLocation'](_0x2c838b);for(const _0x520f0f of this['_tableSuggestions']){const _0x33d4d3=_0x520f0f['subType'],_0x3821ac=_0x33d4d3['startsWith']('tablePaste'),_0x4ad135=_0x33d4d3['substr'](_0x3821ac?0xa:0x5),_0x4a7d8b=_0x4ad135['toLowerCase'](),_0x3f93fd=_0x4a7d8b['substr'](0x0,0x3)+'span',_0x30d3b0='min'+_0x4ad135,_0x48507b='max'+_0x4ad135;if(!_0x520f0f['isInContent'])continue;if(_0x9f5af!=_0x520f0f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x520f0f['isIntersectingWithRange'](_0x21f13b))continue;const _0x3eb762=_0x2c838b['hasAttribute'](_0x3f93fd)?_0x2c838b['getAttribute'](_0x3f93fd)-0x1:0x0,_0x7c2a88=this['_getSuggestionCoords'](_0x520f0f),_0x774ff0=_0x7c2a88[_0x30d3b0],_0xcaf6ac=_0x7c2a88[_0x48507b];_0x774ff0<=_0x2e3e37[_0x4a7d8b]&&_0x2e3e37[_0x4a7d8b]+_0x3eb762<=_0xcaf6ac&&(_0x520f0f['addRange'](_0x21f13b),_0x2e4d1b=!0x0);}return _0x2e4d1b;};_0x28dbf2['model']['document']['registerPostFixer'](_0x1e8f54=>{let _0x5561be=!0x1;for(const _0x4874c6 of _0x28dbf2['model']['document']['differ']['getChanges']())if('insert'==_0x4874c6['type']){if('tableRow'==_0x4874c6['name']){for(const _0x4ff258 of _0x4874c6['position']['nodeAfter']['getChildren']())_0x5561be=_0x5561be||_0x1784d9(_0x4ff258,_0x1e8f54);}else'tableCell'==_0x4874c6['name']&&(_0x5561be=_0x5561be||_0x1784d9(_0x4874c6['position']['nodeAfter'],_0x1e8f54));}return _0x5561be;});}['_getSuggestionCoords'](_0x26b705){return this['_getCoordsForCells'](_0x26b705['getRanges']()['map'](_0x2ba06e=>_0x2ba06e['start']['nodeAfter']));}}function Re(_0x11bcdd){return Array['from'](new Set(_0x11bcdd)['values']());}class _t extends _0x4785df{static get['requires'](){return[vt];}['afterInit'](){const _0x4244d0=this['editor'],_0x37ff3b=_0x4244d0['model']['document']['selection'],_0x1e3f02=_0x4244d0['locale'];if(!_0x4244d0['plugins']['has']('TableEditing'))return;const _0x5555fa=_0x4244d0['plugins']['get']('TrackChangesEditing'),_0x13a1bb=_0x4244d0['plugins']['get']('TableUtils'),_0x135754=_0x4244d0['plugins']['get'](vt);_0x135754['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5555fa['enableCommand']('mergeTableCells',()=>{const _0x12adb5=_0x13a1bb['getSelectionAffectedTableCells'](_0x4244d0['model']['document']['selection']);_0x4244d0['model']['change'](()=>{_0x5555fa['markMultiRangeBlockFormat'](_0x12adb5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4244d0['commands']['get']('mergeTableCells')['on']('execute',(_0x5a0139,_0x397a39)=>{_0x4244d0['commands']['get']('trackChanges')['value']&&(_0x397a39['length']>0x0&&_0x397a39[_0x397a39['length']-0x1]&&_0x397a39[_0x397a39['length']-0x1]['forceDefaultExecution']||_0x5555fa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a0139['stop']());},{'priority':'highest'});for(const _0x1b70e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3df7e5=_0x4244d0['commands']['get'](_0x1b70e3);_0x5555fa['enableCommand'](_0x1b70e3,()=>{const _0xfeb669=_0x4244d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd00a11=>_0xd00a11['is']('element','tableCell')),_0x23d541=_0x3df7e5['value'];_0x4244d0['model']['change'](()=>{_0x5555fa['markMultiRangeBlockFormat']([_0xfeb669,_0x23d541],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x7152a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f5b7f=_0x4244d0['commands']['get'](_0x7152a8);_0x5555fa['enableCommand'](_0x7152a8,()=>{const _0x265f2f=_0x13a1bb['getSelectionAffectedTableCells'](_0x4244d0['model']['document']['selection'])[0x0],_0x1e542b=_0x265f2f['findAncestor']('table'),{column:_0x483f48,row:_0x4ab3f7}=_0x13a1bb['getCellLocation'](_0x265f2f);let _0xf97aeb=[];if('horizontally'==_0x4f5b7f['direction']){const _0x2eb36d=_0x13a1bb['createTableWalker'](_0x1e542b,{'startRow':_0x4ab3f7,'endRow':_0x4ab3f7,'includeAllSlots':!0x0});_0xf97aeb=Array['from'](_0x2eb36d)['map'](_0x54059a=>_0x54059a['cell']);}else{const _0x42003e=_0x13a1bb['createTableWalker'](_0x1e542b,{'column':_0x483f48,'includeAllSlots':!0x0});_0xf97aeb=Array['from'](_0x42003e)['map'](_0x4dd96f=>_0x4dd96f['cell']);}_0x4244d0['model']['change'](_0x648f59=>{_0x5555fa['markBlockFormat'](_0x648f59['createRangeOn'](_0x265f2f),{'commandName':_0x7152a8,'commandParams':[]},_0xf97aeb,_0x7152a8);});});}_0x5555fa['descriptionFactory']['registerDescriptionCallback'](_0xf0b594=>{if('formatBlock'!=_0xf0b594['type']&&'formatInline'!=_0xf0b594['type'])return;const {data:_0x25d793}=_0xf0b594;return _0x25d793&&'mergeTableCells'==_0x25d793['commandName']?{'type':'format','content':o(_0x1e3f02,'*Merge\x20cells*')}:void 0x0;}),_0x5555fa['descriptionFactory']['registerDescriptionCallback'](_0x4e2f0e=>{if('formatBlock'!=_0x4e2f0e['type']&&'formatInline'!=_0x4e2f0e['type'])return;const {data:_0x5bbb73}=_0x4e2f0e;return _0x5bbb73?'splitTableCellVertically'==_0x5bbb73['commandName']?{'type':'format','content':o(_0x1e3f02,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5bbb73['commandName']?{'type':'format','content':o(_0x1e3f02,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b40b8=_0x135754['_acceptFormatSuggestionCallbackFactory']();for(const _0x4456e1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5555fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4456e1,'accept',_0x3b40b8);for(const _0x294c15 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5555fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x294c15,'accept',_0x3b40b8);_0x5555fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3987aa=>{_0x4244d0['model']['change'](_0x44605d=>{const _0x149fa7=Array['from'](_0x37ff3b['getRanges']())['map'](_0x40a6da=>_0x18db69['fromRange'](_0x40a6da));_0x44605d['setSelection'](_0x3987aa),_0x4244d0['commands']['get']('mergeTableCells')['refresh'](),_0x4244d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43bad8=_0x149fa7['filter'](_0x1d4d71=>'$graveyard'!=_0x1d4d71['root']['rootName']);_0x43bad8['length']>0x0&&_0x44605d['setSelection'](_0x43bad8);for(const _0x455635 of _0x149fa7)_0x455635['detach']();});});for(const _0x2c40e4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x257c03=_0x4244d0['commands']['get'](_0x2c40e4);_0x257c03['on']('set:isEnabled',(_0x47a0b6,_0x487c58,_0x423dd5)=>{if(_0x423dd5){const _0x490368=_0x4244d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b51b9=>_0x3b51b9['is']('element','tableCell'));this['_areMergableCells'](_0x257c03['value'],_0x490368)||(_0x47a0b6['return']=!0x1,_0x47a0b6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1282a8=this['editor']['commands']['get']('mergeTableCells'),_0x3986b6=this['editor']['plugins']['get']('TableUtils');if(!_0x1282a8['isEnabled'])return!0x1;const _0x3fa5c7=_0x3986b6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x19af8a of _0x3fa5c7)for(const _0x3d9642 of _0x3fa5c7)if(_0x19af8a!=_0x3d9642&&!this['_areMergableCells'](_0x19af8a,_0x3d9642))return!0x1;return!0x0;}['_areMergableCells'](_0x46848e,_0xc86c07){const _0x80c60d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcbd897=this['editor']['model']['createRangeOn'](_0x46848e),_0x1f1430=this['editor']['model']['createRangeOn'](_0xc86c07),_0xb6f780=new Set(),_0x43cec5=new Set();for(const _0x4a7a85 of _0x80c60d['getSuggestions']())if(('insertion'==_0x4a7a85['type']||'deletion'==_0x4a7a85['type']||'mergeTableCells'==_0x4a7a85['subType'])&&_0x4a7a85['isInContent']){for(const _0x464803 of _0x4a7a85['getRanges']())_0x464803['containsRange'](_0xcbd897,!0x0)&&_0xb6f780['add'](_0x4a7a85['type']+':'+_0x4a7a85['author']['id']),_0x464803['containsRange'](_0x1f1430,!0x0)&&_0x43cec5['add'](_0x4a7a85['type']+':'+_0x4a7a85['author']['id']);}if(_0xb6f780['size']!=_0x43cec5['size'])return!0x1;for(const _0x4cabaf of _0xb6f780)if(!_0x43cec5['has'](_0x4cabaf))return!0x1;return!0x0;}}class Ct extends _0x4785df{static get['requires'](){return[vt];}['afterInit'](){const _0x2940b7=this['editor'];if(!_0x2940b7['plugins']['has']('TableEditing'))return;const _0x3cba12=_0x2940b7['locale'],_0x339320=_0x2940b7['plugins']['get']('TrackChangesEditing');_0x339320['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x339320['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x339320['registerBlockAttribute']('headingRows'),_0x339320['registerBlockAttribute']('headingColumns'),_0x339320['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3cba12,'FORMAT_HEADER_ROW')),_0x339320['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3cba12,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x14de87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d62f9=this['editor']['plugins']['get']('TableUtils'),_0x2675f3=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1a3300({showActiveMarker:_0x247bf3=!0x0,setDataAttribute:_0x2654cb=!0x0}={}){return(_0x5a15bc,_0x3d1fae,_0x3681f2)=>{const {type:_0x4d5208,id:_0x5dfb7d}=_0x14de87['_splitMarkerName'](_0x3d1fae['markerName']),_0x43b23a=_0x14de87['getSuggestion'](_0x5dfb7d),_0x4d43d3=_0x43b23a['data'];if('formatBlock'!=_0x43b23a['type']||!_0x4d43d3||'setTableColumnHeader'!=_0x4d43d3['commandName'])return;if(_0x3d1fae['item'])return void _0x5a15bc['stop']();if(!_0x3681f2['consumable']['consume'](_0x3d1fae['markerRange'],_0x5a15bc['name']))return;const _0x394c19=_0x3d1fae['markerRange']['start']['nodeAfter'],_0x40e0c8=_0x3d1fae['markerRange']['end']['nodeBefore'],_0x8f0c13=_0x394c19['parent']['parent'],{column:_0x5673de}=_0x2d62f9['getCellLocation'](_0x394c19),{column:_0x4dfd13}=_0x2d62f9['getCellLocation'](_0x40e0c8);for(let _0x4a54e4=_0x5673de;_0x4a54e4<=_0x4dfd13;_0x4a54e4++){const _0x4ed8f6=_0x2d62f9['createTableWalker'](_0x8f0c13,{'column':_0x4a54e4,'includeAllSlots':!0x1});for(const _0x58540b of _0x4ed8f6){const _0x308924=_0x58540b['cell'],_0x278e61=_0x3681f2['mapper']['toViewElement'](_0x308924);_0x3681f2['writer']['addClass']('ck-suggestion-marker-'+_0x4d5208,_0x278e61),_0x2654cb&&_0x3681f2['writer']['setAttribute']('data-suggestion',_0x5dfb7d,_0x278e61),_0x3681f2['mapper']['bindElementToMarker'](_0x278e61,_0x3d1fae['markerName']),_0x247bf3&&(_0x14de87['activeMarkers']['includes'](_0x3d1fae['markerName'])?_0x3681f2['writer']['addClass']('ck-suggestion-marker--active',_0x278e61):_0x3681f2['writer']['removeClass']('ck-suggestion-marker--active',_0x278e61));}}};}_0x14de87['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2675f3),_0x14de87['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2675f3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1a3300(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15e6cc,_0x11d781,_0x126ade)=>{_0x126ade['options']['showSuggestionHighlights']&&_0x1a3300({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15e6cc,_0x11d781,_0x126ade);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x395a87,_0x2c68b2,_0x284626)=>{const {type:_0x51d66f,id:_0x558f3d}=_0x14de87['_splitMarkerName'](_0x2c68b2['markerName']),_0x51b66a=_0x14de87['getSuggestion'](_0x558f3d),_0x37be8f=_0x51b66a['data'];if('formatBlock'!=_0x51b66a['type']||!_0x37be8f||'setTableColumnHeader'!=_0x37be8f['commandName'])return;const _0x262ae6=_0x284626['mapper']['markerNameToElements'](_0x2c68b2['markerName']);if(_0x262ae6){for(const _0x3d52d0 of _0x262ae6)_0x284626['writer']['removeClass']('ck-suggestion-marker-'+_0x51d66f,_0x3d52d0),_0x284626['writer']['removeClass']('ck-suggestion-marker--active',_0x3d52d0),_0x284626['writer']['removeAttribute']('data-suggestion',_0x3d52d0),_0x284626['mapper']['unbindElementFromMarkerName'](_0x3d52d0,_0x2c68b2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c079=this['editor'],_0x453442=_0x49c079['locale'];function _0x120474(_0x2e4fc0){return{'type':'format','content':o(_0x453442,'*Format:*\x20%0',_0x2e4fc0)};}_0x49c079['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8b278a=>{if('formatBlock'!=_0x8b278a['type'])return;const {data:_0x2f744c}=_0x8b278a;if(_0x2f744c){if('setTableRowHeader'==_0x2f744c['commandName']){const _0x5d273f=_0x2f744c['commandParams'][0x0]['forceValue'];return _0x120474(o(_0x453442,_0x5d273f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f744c['commandName']){const _0x3527e6=_0x2f744c['commandParams'][0x0]['forceValue'];return _0x120474(o(_0x453442,_0x3527e6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x149404=>[_0x149404,null]));class Nt extends _0x4785df{static get['requires'](){return[vt];}['afterInit'](){const _0x17d875=this['editor'];if(!_0x17d875['plugins']['has']('TableClipboard'))return;const _0x1318ba=_0x17d875['plugins']['get']('TrackChangesEditing'),_0x1fd835=_0x17d875['plugins']['get']('TableUtils'),_0x170c09=_0x17d875['plugins']['get'](vt),_0x1e1c72=_0x17d875['plugins']['get']('TableClipboard');_0x170c09['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17d875['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17d875['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x7563cb=null;_0x17d875['model']['on']('insertContent',(_0x46c39c,_0x3213d9)=>{const [_0xc57496,_0x190677]=_0x3213d9,_0xd975b0=_0x3213d9[_0x3213d9['length']-0x1];_0xd975b0&&_0xd975b0['forceDefaultExecution']||_0x1318ba['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x510d85,_0x4255d5,_0x1bb564,_0x3d36ff,_0xaeed1c){if(_0x4255d5&&!_0x4255d5['is']('documentSelection'))return!0x1;const _0x505416=_0xaeed1c['getTableIfOnlyTableInContent'](_0x510d85,_0x1bb564);if(!_0x505416||!Ae(_0x505416,void 0x0,_0x3d36ff))return!0x1;const _0x31da93=_0x3d36ff['getSelectionAffectedTableCells'](_0x1bb564['document']['selection']);if(!_0x31da93['length'])return!0x1;const _0x31e6e0=_0x31da93[0x0]['findAncestor']('table'),_0x408c12=_0x3d36ff['getRowIndexes'](_0x31da93),_0x1bd10b=_0x3d36ff['getColumnIndexes'](_0x31da93),_0xb0fdf={'startRow':_0x408c12['first'],'endRow':_0x408c12['last'],'startColumn':_0x1bd10b['first'],'endColumn':_0x1bd10b['last']};return 0x1==_0x31da93['length']&&(_0xb0fdf['endRow']+=_0x3d36ff['getRows'](_0x505416)-0x1,_0xb0fdf['endColumn']+=_0x3d36ff['getColumns'](_0x505416)-0x1),Ae(_0x31e6e0,_0xb0fdf,_0x3d36ff);}(_0xc57496,_0x190677,_0x17d875['model'],_0x1fd835,_0x1e1c72)&&(_0x46c39c['stop'](),_0x7563cb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17d875['model']['change'](()=>{_0x17d875['model']['insertContent'](_0x3213d9[0x0],_0x3213d9[0x1],_0x3213d9[0x2],{'forceDefaultExecution':!0x0});const _0x264ce5=_0x325d63(),{rowInsertionRanges:_0x24838b,columnInsertionRanges:_0x1684fe,insertionRanges:_0x3f59ed,deletionRanges:_0x7664f3,cells:_0x593fb8}=_0x7563cb;_0x24838b['length']&&_0x1318ba['markMultiRangeInsertion'](_0x24838b,'tablePasteRow',{'tablePasteChainId':_0x264ce5}),_0x1684fe['length']&&_0x1318ba['markMultiRangeInsertion'](_0x1684fe,'tablePasteColumn',{'tablePasteChainId':_0x264ce5}),_0x3f59ed['length']&&(_0x1318ba['markMultiRangeInsertion'](_0x3f59ed,'tablePaste',{'tablePasteChainId':_0x264ce5,'skipNestingCheck':!0x0}),_0x3f59ed['forEach'](_0x11bb51=>_0x11bb51['detach']?.())),_0x7664f3['length']&&(_0x1318ba['markMultiRangeDeletion'](_0x7664f3,'tablePaste',{'tablePasteChainId':_0x264ce5,'skipNestingCheck':!0x0}),_0x7664f3['forEach'](_0x11806d=>_0x11806d['detach']?.()));const _0x84f522=_0x1318ba['markMultiRangeBlockFormat'](_0x593fb8['map'](({element:_0x566058})=>_0x566058),{'formatGroupId':_0x325d63()},[],'tablePasteCell',{'tablePasteChainId':_0x264ce5});if(_0x84f522){const _0x343c1b=_0x84f522['getMarkers'](),_0x210a39=[];for(const {element:_0x344268,attributes:_0xb2ec37}of _0x593fb8){if(!_0xb2ec37)continue;const _0x1ba289=_0x17d875['model']['createRangeOn'](_0x344268),_0xa6c4c7=_0x343c1b['find'](_0x14b524=>_0x14b524['getRange']()['isEqual'](_0x1ba289));_0xa6c4c7&&_0x210a39['push']([_0xa6c4c7['name'],_0xb2ec37]);}_0x210a39['length']&&_0x84f522['setAttribute']('markerAttributes',Object['fromEntries'](_0x210a39));}_0x7563cb=null;}));},{'priority':_0x3a775e['high']+0xa}),_0x17d875['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2912df,_0x32ac13)=>{const [_0x4df9f6,_0x55aff4,,_0x10e51f]=_0x32ac13;if(!_0x7563cb)return;_0x2912df['stop']();const _0x2045c3=_0x4df9f6['cell'],_0x2e76ed=_0x55aff4,_0x21d7e8=je(_0x2045c3),_0x141a1a=je(_0x2e76ed);_0x2912df['return']=_0x2045c3;let _0x58c3c4=null,_0x7f7b47=null;if(_0x141a1a||_0x21d7e8){if(_0x21d7e8&&!_0x141a1a){_0x10e51f['remove'](_0x2045c3['getChild'](0x0));for(const _0x5c66fa of Array['from'](_0x2e76ed['getChildren']()))_0x10e51f['insert'](_0x5c66fa,_0x2045c3,'end');const _0x4c6dcb=_0x7563cb['rowInsertionIndexes']['includes'](_0x4df9f6['row']),_0x52bd79=_0x7563cb['columnInsertionIndexes']['includes'](_0x4df9f6['column']);_0x4c6dcb||_0x52bd79||(_0x58c3c4=_0x18db69['fromRange'](_0x10e51f['createRangeIn'](_0x2045c3)));}else _0x141a1a&&!_0x21d7e8&&(_0x7f7b47=_0x10e51f['createRangeIn'](_0x2045c3));}else{const _0xfd5a61=_0x10e51f['createElement']('tableCellSuggestion'),_0x3bc2ee=_0x10e51f['createElement']('tableCellSuggestion');_0x10e51f['wrap'](_0x10e51f['createRangeIn'](_0x2045c3),_0x3bc2ee),_0x10e51f['insert'](_0xfd5a61,_0x2045c3,0x0);for(const _0x2eaaa6 of Array['from'](_0x2e76ed['getChildren']()))_0x10e51f['insert'](_0x2eaaa6,_0xfd5a61,'end');_0x58c3c4=_0x18db69['fromRange'](_0x10e51f['createRangeOn'](_0xfd5a61)),_0x7f7b47=_0x18db69['fromRange'](_0x10e51f['createRangeOn'](_0x3bc2ee));}const _0x4218f4=Array['from'](_0x2e76ed['getAttributes']())['filter'](([_0x2946e5])=>we['includes'](_0x2946e5));_0x7563cb['cells']['push']({'element':_0x2045c3,'attributes':_0x4218f4['length']?Object['fromEntries'](_0x4218f4):null}),_0x58c3c4&&_0x7563cb['insertionRanges']['push'](_0x58c3c4),_0x7f7b47&&_0x7563cb['deletionRanges']['push'](_0x7f7b47);},{'priority':'high'}),_0x1fd835['on']('insertColumns',(_0x67b8ff,_0x1f5a22)=>{const [_0x979c6c,_0x3d1356={}]=_0x1f5a22;if(!_0x7563cb)return;const _0x8fca3=_0x3d1356['at']||0x0,_0x1ac544=_0x3d1356['columns']||0x1;_0x7563cb['columnInsertionIndexes']=new Array(_0x1ac544)['fill'](_0x8fca3)['map']((_0xbd8298,_0x5f326a)=>_0xbd8298+_0x5f326a);for(const {cell:_0x2b2e5c}of _0x1fd835['createTableWalker'](_0x979c6c,{'startColumn':_0x8fca3,'endColumn':_0x8fca3+_0x1ac544-0x1}))_0x7563cb['columnInsertionRanges']['push'](_0x17d875['model']['createRangeOn'](_0x2b2e5c));},{'priority':'low'}),_0x1fd835['on']('insertRows',(_0x429ad7,_0x53ebe0)=>{const [_0x4effba,_0x59f12e={}]=_0x53ebe0;if(!_0x7563cb)return;const _0x2e74f3=_0x59f12e['at']||0x0,_0x272344=_0x59f12e['rows']||0x1;_0x7563cb['rowInsertionIndexes']=new Array(_0x272344)['fill'](_0x2e74f3)['map']((_0x258b5f,_0x46e866)=>_0x258b5f+_0x46e866);for(const {cell:_0x4072b1}of _0x1fd835['createTableWalker'](_0x4effba,{'startRow':_0x2e74f3,'endRow':_0x2e74f3+_0x272344-0x1}))_0x7563cb['rowInsertionRanges']['push'](_0x17d875['model']['createRangeOn'](_0x4072b1));},{'priority':'low'}),_0x1318ba['descriptionFactory']['registerDescriptionCallback'](_0x3175e4=>{if(_0x3175e4['subType']&&_0x3175e4['subType']['startsWith']('tablePaste'))return _0x3175e4['previous']?{}:{'type':'insertion','content':o(_0x17d875['locale'],'*Replace\x20table\x20cells*')};});const _0x5a1df3=()=>!0x1;for(const _0x23f656 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1318ba['_suggestionFactory']['registerCustomCallback']('insertion',_0x23f656,'join',_0x5a1df3),_0x1318ba['_suggestionFactory']['registerCustomCallback']('deletion',_0x23f656,'join',_0x5a1df3),_0x1318ba['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23f656,'join',_0x5a1df3);_0x1318ba['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a1df3),_0x1318ba['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32fbb7,_0x36b2c3,_0x4a4727)=>{const _0x4ab52a=_0x32fbb7['map'](_0x1516eb=>_0x1516eb['getContainedElement']())['filter'](_0x39ad65=>_0x39ad65),_0x345438=new Map(_0x4ab52a['map'](_0x46514f=>[_0x46514f,null]));if(_0x7563cb){for(const {element:_0x36af86,attributes:_0x47f945}of _0x7563cb['cells'])_0x47f945&&_0x345438['set'](_0x36af86,_0x47f945);}else{if(_0x4a4727&&_0x4a4727['markerAttributes'])for(const [_0x8df534,_0x37611a]of Object['entries'](_0x4a4727['markerAttributes'])){const _0x8bdf45=_0x17d875['model']['markers']['get'](_0x8df534),_0x4dc6de=_0x8bdf45?_0x8bdf45['getRange']()['getContainedElement']():null;_0x4dc6de&&_0x345438['set'](_0x4dc6de,_0x37611a);}}_0x17d875['model']['change'](_0x509390=>{for(const [_0x4f008f,_0x3f0b6f]of _0x345438)_0x509390['setAttributes']({...ve,..._0x3f0b6f},_0x4f008f);});});const _0x1cbb2b=(_0x10b3b6,_0x194051)=>{_0x1318ba['_suggestionFactory']['registerCustomCallback'](_0x10b3b6,'tablePaste',_0x194051,(_0x1eea08,_0x597eac,_0x20b87e)=>{_0x17d875['model']['change'](_0x5e6aef=>{const _0x5a0b77=[];for(const _0x35ea66 of _0x1eea08){const _0x4aefe4=_0x35ea66['start']['nodeAfter'];_0x4aefe4['is']('element','tableCellSuggestion')&&_0x5a0b77['push'](_0x4aefe4);}_0x1318ba['_suggestionFactory']['getSuggestionCallback'](_0x10b3b6,null,_0x194051)(_0x1eea08,_0x597eac,_0x20b87e);for(const _0x5c607b of _0x5a0b77)'$graveyard'!=_0x5c607b['root']['rootName']&&_0x5e6aef['unwrap'](_0x5c607b);});});};_0x1cbb2b('insertion','accept'),_0x1cbb2b('insertion','discard'),_0x1cbb2b('deletion','accept'),_0x1cbb2b('deletion','discard'),_0x1318ba['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x54d382=>{const _0x18ce42=_0x54d382['map'](_0x2ffee4=>_0x2ffee4['getContainedElement']()),_0x18ccd9=_0x18ce42[0x0]['findAncestor']('table'),{minRow:_0x4066e5,maxRow:_0x132d1a}=_0x170c09['_getCoordsForCells'](_0x18ce42);_0x1fd835['removeRows'](_0x18ccd9,{'at':_0x4066e5,'rows':_0x132d1a-_0x4066e5+0x1});}),_0x1318ba['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b79d8=>{const _0x5c2b16=_0x5b79d8['map'](_0x510362=>_0x510362['getContainedElement']()),_0x37856c=_0x5c2b16[0x0]['findAncestor']('table'),{minColumn:_0x410dd8,maxColumn:_0x41762f}=_0x170c09['_getCoordsForCells'](_0x5c2b16);_0x1fd835['removeColumns'](_0x37856c,{'at':_0x410dd8,'columns':_0x41762f-_0x410dd8+0x1});});const _0x44af82=(_0x4316d6,_0x3affbc)=>{if(!_0x3affbc['subType']||!_0x3affbc['subType']['startsWith']('tablePaste'))return;const _0x3e3c9f=_0x3affbc['attributes']['tablePasteChainId'],_0x27757d=_0x1318ba['getSuggestions']()['filter'](_0x27176d=>_0x27176d['isInContent']&&_0x27176d['attributes']&&_0x27176d['attributes']['tablePasteChainId']==_0x3e3c9f);_0x27757d['length']&&_0x3affbc['getAllAdjacentSuggestions']()['length']!=_0x27757d['length']&&_0x27757d['reduce']((_0xe32a18,_0x3712cf)=>(_0xe32a18['next']=_0x3712cf,_0x3712cf['previous']=_0xe32a18,_0x3712cf));};function _0x4c8f05(_0x5403b1,_0x8f7e87=!0x0){const {id:_0x281ea3,authorId:_0x4bafda}=_0x1318ba['_splitMarkerName'](_0x5403b1['markerName']),_0x585378=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xb79f84=_0x1318ba['activeMarkers']['includes'](_0x5403b1['markerName']);return _0xb79f84&&_0x585378['push']('ck-suggestion-marker--active'),{'classes':_0x585378,'attributes':{'data-suggestion':_0x281ea3,'data-author-id':_0x4bafda},'priority':_0xb79f84&&_0x8f7e87?0xbc2:0xbb8};}_0x1318ba['on']('suggestionLoaded',_0x44af82,{'priority':'high'}),_0x1318ba['on']('suggestionUnloaded',_0x44af82,{'priority':'high'}),_0x17d875['model']['document']['registerPostFixer'](()=>{let _0x51e835=!0x1;const _0x4b51e4=Array['from'](_0x17d875['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x320c1f,data:_0x28cb6e}of _0x4b51e4){const {group:_0x658df2,type:_0x38ab78,id:_0x1193fa}=_0x1318ba['_splitMarkerName'](_0x320c1f);if('suggestion'!=_0x658df2||'deletion'!=_0x38ab78||_0x28cb6e['oldRange'])continue;if(!_0x1318ba['hasSuggestion'](_0x1193fa))continue;const _0x4c94bf=_0x1318ba['getSuggestion'](_0x1193fa)['getRanges'](),_0x4e7a85=_0x17d875['plugins']['get']('Users')['me'];for(const _0xb9eafd of _0x1318ba['getSuggestions']()){if(!_0xb9eafd['isInContent']||_0xb9eafd['author']!=_0x4e7a85)continue;if('formatBlock'!=_0xb9eafd['type']||'tablePasteCell'!=_0xb9eafd['subType'])continue;if(_0xb9eafd['getRanges']()['every'](_0x5857c9=>_0x4c94bf['some'](_0x41cd14=>_0x41cd14['containsRange'](_0x5857c9,!0x0)))){for(const _0x45f4da of _0xb9eafd['getAllAdjacentSuggestions']())_0x45f4da['isInContent']&&(_0x45f4da['discard'](),_0x51e835=!0x0);}}}return _0x51e835;}),_0x17d875['model']['document']['registerPostFixer'](_0x313c83=>{const _0x477e2e=_0x17d875['commands']['get']('redo');if(!_0x477e2e||!_0x477e2e['_createdBatches']['has'](_0x313c83['batch']))return!0x1;let _0x3eea2c=!0x1;const _0x5b40ec=_0x17d875['plugins']['get']('Users')['me'],_0x1ded24=_0x17d875['model']['document']['differ']['getChanges'](),_0xe2077e=Array['from'](_0x17d875['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cc033,data:_0x4326fe})=>{const {group:_0x415882,subType:_0xaa4cfe,authorId:_0x445336}=_0x1318ba['_splitMarkerName'](_0x2cc033);return'suggestion'==_0x415882&&'tablePaste'==_0xaa4cfe&&_0x445336==_0x5b40ec['id']&&!_0x4326fe['oldRange'];});for(const _0x36125b of _0x1ded24){if('insert'!=_0x36125b['type']||'tableCellSuggestion'!=_0x36125b['name']||0x1!=_0x36125b['length'])continue;const _0x2fd12d=_0x313c83['createRange'](_0x36125b['position'],_0x36125b['position']['getShiftedBy'](0x1));if(!_0xe2077e['find'](({data:_0x351a1c})=>_0x351a1c['newRange']['isEqual'](_0x2fd12d))){for(const {name:_0x394989,data:_0x127023}of _0xe2077e)if(_0x2fd12d['containsRange'](_0x127023['newRange'])){_0x313c83['updateMarker'](_0x394989,{'range':_0x2fd12d}),_0x3eea2c=!0x0;break;}}}return _0x3eea2c;}),_0x17d875['model']['document']['registerPostFixer'](_0x4a0dd1=>{let _0x4ba3ee=!0x1;const _0x1311f1=_0x17d875['plugins']['get']('Users')['me'],_0x16b934=_0x1318ba['getSuggestions']()['filter'](_0x1c96da=>_0x1c96da['isInContent']&&_0x1c96da['author']==_0x1311f1),_0x49ace6=new Set(),_0x2fc41f=new Set();for(const _0x5d9b64 of _0x16b934)if('tablePaste'==_0x5d9b64['subType'])for(const _0x30c0a0 of _0x5d9b64['getMarkers']()){const _0x1676ac=_0x30c0a0['getRange']()['getContainedElement']();if(_0x1676ac){if(_0x1676ac['is']('element','tableCellSuggestion')&&je(_0x1676ac)){_0x5d9b64['removeMarker'](_0x30c0a0['name']),_0x49ace6['add'](_0x1676ac),_0x4ba3ee=!0x0;const _0x1e1051=_0x1676ac['nextSibling'],_0x11ba9a=_0x1676ac['previousSibling'],_0x96607d=_0x1e1051&&_0x1e1051['is']('element','tableCellSuggestion'),_0x528537=_0x11ba9a&&_0x11ba9a['is']('element','tableCellSuggestion');_0x96607d&&!_0x49ace6['has'](_0x1e1051)&&_0x2fc41f['add'](_0x1e1051),_0x528537&&!_0x49ace6['has'](_0x11ba9a)&&_0x2fc41f['add'](_0x11ba9a);}else _0x1676ac['is']('element','paragraph')&&_0x1676ac['isEmpty']&&(_0x5d9b64['removeMarker'](_0x30c0a0['name']),_0x4ba3ee=!0x0);}}else{if('tablePasteCell'==_0x5d9b64['subType']){if(!_0x5d9b64['attributes']||!_0x5d9b64['attributes']['tablePasteChainId'])continue;const _0x1f7a95=_0x5d9b64['attributes']['markerAttributes'];if(_0x1f7a95&&Object['keys'](_0x1f7a95)['length'])continue;const _0x3ae185=_0x5d9b64['attributes']['tablePasteChainId'];let _0x2c5818=!0x0,_0x3a5e17=!0x0;for(const _0x4bc8ed of _0x16b934)if(_0x4bc8ed['subType']&&_0x4bc8ed['subType']['startsWith']('tablePaste')){if(!_0x4bc8ed['attributes']['tablePasteChainId']){_0x3a5e17=!0x1;break;}if(_0x4bc8ed['id']!=_0x5d9b64['id']&&_0x4bc8ed['attributes']['tablePasteChainId']==_0x3ae185){_0x2c5818=!0x1;break;}}_0x3a5e17&&_0x2c5818&&(_0x5d9b64['removeMarkers'](),_0x4ba3ee=!0x0);}}for(const _0x32fb7f of _0x49ace6)_0x4a0dd1['remove'](_0x32fb7f);for(const _0x59ea24 of _0x2fc41f)_0x4a0dd1['unwrap'](_0x59ea24);return _0x4ba3ee;}),_0x17d875['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x20436b=>_0x4c8f05(_0x20436b),'converterPriority':'high'}),_0x17d875['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23bd01,_0x5efad0)=>_0x5efad0['options']['showSuggestionHighlights']?_0x4c8f05(_0x23bd01,!0x1):null,'converterPriority':'high'});const _0x3626e5=_0x17d875['editing']['view'];this['listenTo'](_0x3626e5['document'],'clipboardOutput',(_0x1b6797,_0x240f9d)=>{const _0x22e574=[];for(const _0x42b2ec of _0x3626e5['createRangeIn'](_0x240f9d['content'])['getItems']())_0x42b2ec['is']('element','suggestion-td')&&_0x22e574['push'](_0x42b2ec);_0x3626e5['change'](_0x2eec38=>{for(const _0x2327e4 of _0x22e574)_0x2eec38['move'](_0x2eec38['createRangeIn'](_0x2327e4),_0x2eec38['createPositionBefore'](_0x2327e4)),_0x2eec38['remove'](_0x2327e4);});});}}function je(_0x31ce3f){if(_0x31ce3f['isEmpty'])return!0x0;const _0x1861db=_0x31ce3f['getChild'](0x0);return _0x1861db['is']('element','paragraph')&&_0x1861db['isEmpty'];}function Ae(_0x211c9d,_0x4867a6={},_0x300bc0){for(const {isAnchor:_0x4ce680,cellHeight:_0x5d1cfa,cellWidth:_0x6b8ebd}of _0x300bc0['createTableWalker'](_0x211c9d,{'includeAllSlots':!0x0,..._0x4867a6}))if(!_0x4ce680||0x1!=_0x5d1cfa||0x1!=_0x6b8ebd)return!0x1;return!0x0;}class Dt extends _0x4785df{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5de096=this['editor']['plugins']['get']('TrackChangesEditing');_0x5de096['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5de096['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5de096['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5de096['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5de096['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5de096['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x75e674,_0x2b765f){const _0x4d1733=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5be586=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6f7132=_0x2b765f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x29de18=_0x5be586['getColumnGroupElement'](_0x6f7132);let _0x175fd8=_0x29de18?_0x5be586['getTableColumnsWidths'](_0x29de18):null,_0xc0d67c=_0x6f7132['getAttribute']('tableWidth')||null;const _0x2a02d1=_0x2b765f['tableWidth']||_0xc0d67c,_0x35ba28=_0x2b765f['columnWidths']||_0x175fd8,_0x462fb5=this['editor']['plugins']['get']('Users')['me'];for(const _0xc3fa6d of _0x4d1733['getSuggestions']()){const _0xb7977c=_0xc3fa6d['getContainedElement']();if('resizeTable'===_0xc3fa6d['subType']&&_0xb7977c===_0x6f7132){_0xc3fa6d['author']!==_0x462fb5&&_0xc3fa6d['discard']();const _0x916329=_0xc3fa6d['data']['commandParams'];_0xc0d67c=_0x916329[0x0]['tableWidth'],_0x175fd8=_0x916329[0x0]['columnWidths'];break;}}_0x75e674({'table':_0x6f7132,'tableWidth':_0x2a02d1,'columnWidths':_0x35ba28}),_0x4d1733['markBlockFormat'](_0x6f7132,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc0d67c,'columnWidths':_0x175fd8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3330d5){if('formatBlock'!=_0x3330d5['type']&&'formatInline'!=_0x3330d5['type'])return;const {data:_0x202793}=_0x3330d5;if(_0x202793&&'resizeTable'===_0x202793['formatGroupId']){const _0x2f951d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2f951d)};}}}class Mt extends _0x4785df{['afterInit'](){const _0x8fab46=this['editor'];_0x8fab46['plugins']['has']('Template')&&_0x8fab46['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4785df{['afterInit'](){const _0x4ccc16=this['editor'];if(!_0x4ccc16['commands']['get']('insertTableOfContents'))return;_0x4ccc16['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30981a=_0x4ccc16['plugins']['get']('TrackChangesEditing'),_0x4908ff=_0x4ccc16['locale'];_0x30981a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x11d794=>o(_0x4908ff,'ELEMENT_TABLE_OF_CONTENTS',_0x11d794));}}class Bt extends _0x4785df{['afterInit'](){const _0x338485=this['editor'];if(!_0x338485['plugins']['has']('Title'))return;const _0x598f84=_0x338485['plugins']['get']('TrackChangesEditing');_0x598f84['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x338485['locale'],'ELEMENT_TITLE')),_0x338485['model']['document']['registerPostFixer'](_0x3d4555=>{let _0xe0e8da=!0x1;const _0x4a6e5e=Array['from'](_0x338485['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5601e4,data:_0xfc97cd}of _0x4a6e5e){const {group:_0x48cf0e}=_0x598f84['_splitMarkerName'](_0x5601e4);if('suggestion'!==_0x48cf0e||!_0xfc97cd['newRange'])continue;const _0x2a8da0=_0xfc97cd['newRange'],_0xfe1387=_0x2a8da0['end']['nodeBefore'];if(!_0xfe1387||!_0xfe1387['is']('element','title-content'))continue;if(!_0x2a8da0['start']['isTouching'](_0x2a8da0['end']))continue;const _0x20b622=_0x338485['model']['schema']['getNearestSelectionRange'](_0x2a8da0['end'],'forward');if(_0x20b622&&_0x20b622['isCollapsed']){const _0x4b676d=_0x3d4555['createRange'](_0x2a8da0['start'],_0x20b622['start']);_0x4b676d['isEqual'](_0x2a8da0)||(_0x3d4555['updateMarker'](_0x5601e4,{'range':_0x4b676d}),_0xe0e8da=!0x0);}_0xe0e8da||(_0x3d4555['removeMarker'](_0x5601e4),_0xe0e8da=!0x0);}return _0xe0e8da;});}}class Ot extends _0x4785df{['afterInit'](){const _0x2a0a1f=this['editor'],_0x58b019=_0x2a0a1f['plugins']['get']('TrackChangesEditing');_0x2a0a1f['plugins']['has']('UndoEditing')&&(_0x58b019['enableCommand']('undo'),_0x58b019['enableCommand']('redo'));}}class Rt extends _0x4785df{static get['requires'](){return[vt];}['afterInit'](){const _0x35f945=this['editor'];if(!_0x35f945['plugins']['has']('TableCaptionEditing'))return;_0x35f945['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x4785df{['tableProperties'];['tableCellProperties'];constructor(_0x351303){super(_0x351303),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4fe75a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x28c81b of this['tableProperties'])_0x4fe75a['enableCommand'](_0x28c81b,(_0x22728c,_0x158b9f)=>{const _0x131454=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x28c81b,[_0x131454],this['tableProperties'],'tableProperties',_0x22728c,_0x158b9f);});_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4fe75a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d9fe0,_0x319068)=>this['handleDiscardAction'](this['tableProperties'],_0x5d9fe0,_0x319068)),_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b0b5a of this['tableCellProperties'])_0x4fe75a['enableCommand'](_0x4b0b5a,(_0x22dcd0,_0x47616e)=>{const _0x4c0afd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b0b5a,_0x4c0afd,this['tableCellProperties'],'tableCellProperties',_0x22dcd0,_0x47616e);});_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4fe75a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5181ce,_0x4dd759)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5181ce,_0x4dd759)),_0x4fe75a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4fe75a['descriptionFactory']['registerDescriptionCallback'](_0x31567a=>this['handleSuggestionDescription'](_0x31567a));}['_handlePropertyChange'](_0xd1eda5,_0x38f39e,_0x5f3059,_0x7ddc7b,_0x7ba9f9,_0x310f52){const _0x1c99d8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x310f52['batch'],()=>{for(const _0x2f9ec1 of _0x38f39e){if(this['_getSuggestion'](_0x2f9ec1,_0x7ddc7b))_0x7ba9f9(_0x310f52);else{const _0x24d2b3={};for(const _0xf6a6c4 of _0x5f3059){const _0x345932=_0x2f9ec1['getAttribute'](_0xf6a6c4);void 0x0!==_0x345932&&(_0x24d2b3[_0xf6a6c4]=_0x345932);}_0x7ba9f9(_0x310f52),_0x1c99d8['markBlockFormat'](_0x2f9ec1,{'commandParams':[_0x24d2b3]},[],_0x7ddc7b);}}});}['handleDiscardAction'](_0x4871d6,_0x49da3b,_0x49b3cb){const _0x41a2aa=_0x49da3b[0x0]['start']['nodeAfter'],_0x168d37=_0x49b3cb['commandParams'][0x0];this['editor']['model']['change'](_0x4428e1=>{for(const _0xdf5cb0 of _0x4871d6)void 0x0!==_0x168d37[_0xdf5cb0]?_0x4428e1['setAttribute'](_0xdf5cb0,_0x168d37[_0xdf5cb0],_0x41a2aa):_0x4428e1['removeAttribute'](_0xdf5cb0,_0x41a2aa);});}['handleSuggestionDescription'](_0x3c5b05){if(_0x3c5b05['data'])switch(_0x3c5b05['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'](_0x21e18f,_0x550a9e){const _0x14109c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5eb229 of _0x14109c['getSuggestions']({'skipNotAttached':!0x0})){const _0x14538d=_0x5eb229['getContainedElement']();if(_0x5eb229['subType']===_0x550a9e&&_0x14538d===_0x21e18f)return _0x5eb229;}return null;}}const m='$elementName';class p extends _0x4785df{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3058f8,_0x57c4c5,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bddff){super(_0x2bddff),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27e360,_0x3603ca,_0x49dc38,_0x17b7c5)=>{this['_model']['change'](()=>{for(const _0xad8182 of[..._0x17b7c5,..._0x49dc38])this['_model']['markers']['has'](_0xad8182)&&_0x2bddff['editing']['reconvertMarker'](_0xad8182);});}),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']=_0x2bddff['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(),_0x2bddff['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2bddff['config']['get']('trackChanges.trackFormatChanges'),_0x2bddff['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2bddff['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2bddff,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x845722=this['editor'],_0xd32cd6=(_0x3f93ee,_0x18aed7)=>{if('attribute'!=_0x3f93ee)return'ck-suggestion-marker-'+_0x3f93ee;const _0x43d3d0=_0x18aed7['split']('|')[0x0];return this['_isBlockAttribute'](_0x43d3d0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x845722['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fc281=>{const {id:_0x2d353b,authorId:_0x53d645,type:_0x761fd,subType:_0x57be40}=this['_splitMarkerName'](_0x4fc281['markerName']),_0x19a0d6=['ck-suggestion-marker',_0xd32cd6(_0x761fd,_0x57be40)];let _0x55f0be=0xbb8;return this['activeMarkers']['includes'](_0x4fc281['markerName'])&&(_0x19a0d6['push']('ck-suggestion-marker--active'),_0x55f0be=0xbc2),'deletion'==_0x761fd&&(_0x55f0be+=0x5),{'classes':_0x19a0d6,'attributes':{'data-suggestion':_0x2d353b,'data-author-id':_0x53d645},'priority':_0x55f0be};}}),_0x845722['conversion']['for']('dataDowncast')['add'](_0x392218=>{_0x392218['on']('addMarker:suggestion',(_0x1c524b,_0x24d9fc,_0x28d749)=>{if(!_0x28d749['options']['showSuggestionHighlights'])return;const _0x57689d=_0x24d9fc['item'];if(!_0x57689d)return;const _0x1e79da=_0x28d749['mapper']['toViewElement'](_0x57689d);_0x845722['model']['schema']['isObject'](_0x57689d)&&_0x1e79da&&!_0x1e79da['getCustomProperty']('widget')&&_0x1e79da['is']('containerElement')&&_0x42eb32(_0x1e79da,_0x28d749['writer']);},{'priority':'high'});}),_0x845722['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5e1484,_0x16e485)=>{if(!_0x16e485['options']['showSuggestionHighlights'])return null;const {type:_0x513ffd,subType:_0x317cc6}=this['_splitMarkerName'](_0x5e1484['markerName']);return{'classes':['ck-suggestion-marker',_0xd32cd6(_0x513ffd,_0x317cc6)],'priority':0xbb8};}});const _0x114a6d=({showActiveMarkers:_0x4c72de=!0x0,isAttributeSuggestion:_0x2cdb19=!0x1}={})=>(_0x4cd158,_0x4390e7,_0x454e51)=>{if(!_0x4390e7['item'])return;const {id:_0x3e49ef,authorId:_0x3a0d8a}=this['_splitMarkerName'](_0x4390e7['markerName']);if(_0x2cdb19){const _0x4fc46a=this['_suggestions']['get'](_0x3e49ef),_0x33538b=this['_getAttributeKey'](_0x4fc46a);if(!this['_isBlockAttribute'](_0x33538b))return;}if(_0x4390e7['item']['is']('selection'))return void _0x454e51['consumable']['consume'](_0x4390e7['item'],_0x4cd158['name']);const _0x173688=_0x454e51['mapper']['toViewElement'](_0x4390e7['item']);if(_0x4390e7['item']['is']('element')&&_0x845722['model']['schema']['isBlock'](_0x4390e7['item'])&&!_0x173688['getCustomProperty']('addHighlight')){_0x454e51['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x173688),_0x454e51['writer']['setAttribute']('data-suggestion',_0x3e49ef,_0x173688),_0x454e51['writer']['setAttribute']('data-author-id',_0x3a0d8a,_0x173688),_0x454e51['mapper']['bindElementToMarker'](_0x173688,_0x4390e7['markerName']),_0x4c72de&&(this['activeMarkers']['includes'](_0x4390e7['markerName'])?_0x454e51['writer']['addClass']('ck-suggestion-marker--active',_0x173688):_0x454e51['writer']['removeClass']('ck-suggestion-marker--active',_0x173688));for(const _0x17454a of _0x845722['model']['createRangeIn'](_0x4390e7['item'])['getItems']())_0x454e51['consumable']['consume'](_0x17454a,_0x4cd158['name']);_0x454e51['consumable']['consume'](_0x4390e7['item'],_0x4cd158['name']);}};_0x845722['conversion']['for']('dataDowncast')['add'](_0x48d1c2=>{_0x48d1c2['on']('addMarker:suggestion:formatBlock',(_0x4f6cd6,_0x5e95d6,_0x2eb6df)=>{_0x2eb6df['options']['showSuggestionHighlights']&&_0x114a6d({'showActiveMarkers':!0x1})(_0x4f6cd6,_0x5e95d6,_0x2eb6df);},{'priority':'highest'});}),_0x845722['conversion']['for']('dataDowncast')['add'](_0x4bdf43=>{_0x4bdf43['on']('addMarker:suggestion:attribute',(_0x3b89d0,_0x509dc3,_0x381fd0)=>{_0x381fd0['options']['showSuggestionHighlights']&&_0x114a6d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3b89d0,_0x509dc3,_0x381fd0);},{'priority':'highest'});}),_0x845722['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7ebb0e,_0x17fd91)=>_0x17fd91['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x7ebb0e['substr'](0xb)}}),_0x845722['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x111336,{writer:_0x121da1})=>{let _0x497e9e='suggestion:'+_0x111336['getAttribute']('suggestion-type')+':'+_0x111336['getAttribute']('id');return _0x111336['getAttribute']('marker-count')&&(_0x497e9e+=':'+_0x111336['getAttribute']('marker-count')),_0x121da1['createElement']('$marker',{'data-name':_0x497e9e});}}),_0x845722['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x845722['conversion']['for']('editingDowncast')['add'](_0x1b9b6b=>{_0x1b9b6b['on']('addMarker:suggestion:formatBlock',_0x114a6d(),{'priority':'high'});}),_0x845722['conversion']['for']('editingDowncast')['add'](_0x40a765=>{_0x40a765['on']('addMarker:suggestion:attribute',_0x114a6d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x845722['conversion']['for']('editingDowncast')['add'](_0x2e9d4f=>{_0x2e9d4f['on']('removeMarker:suggestion:formatBlock',(_0x409dc7,_0x44c6c1,_0x3ffeb7)=>{const _0x529963=_0x3ffeb7['mapper']['markerNameToElements'](_0x44c6c1['markerName']);if(_0x529963){for(const _0x588955 of _0x529963)_0x588955['getCustomProperty']('addHighlight')||(_0x3ffeb7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x588955),_0x3ffeb7['writer']['removeAttribute']('data-suggestion',_0x588955),_0x3ffeb7['writer']['removeAttribute']('data-author-id',_0x588955),_0x3ffeb7['mapper']['unbindElementFromMarkerName'](_0x588955,_0x44c6c1['markerName']));}},{'priority':'high'});}),_0x845722['conversion']['for']('editingDowncast')['add'](_0x45aa84=>{_0x45aa84['on']('removeMarker:suggestion:attribute',(_0xd0d4c1,_0x43e37d,_0x20a4fa)=>{const _0x4fad48=_0x20a4fa['mapper']['markerNameToElements'](_0x43e37d['markerName']);if(!_0x4fad48)return;const {id:_0x4db440}=this['_splitMarkerName'](_0x43e37d['markerName']),_0x3e8ada=this['_suggestions']['get'](_0x4db440),_0x502a3e=this['_getAttributeKey'](_0x3e8ada);if(this['_isBlockAttribute'](_0x502a3e)){for(const _0x1e3ade of _0x4fad48)_0x1e3ade['getCustomProperty']('addHighlight')||(_0x20a4fa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e3ade),_0x20a4fa['writer']['removeAttribute']('data-suggestion',_0x1e3ade),_0x20a4fa['writer']['removeAttribute']('data-author-id',_0x1e3ade),_0x20a4fa['mapper']['unbindElementFromMarkerName'](_0x1e3ade,_0x43e37d['markerName']));}},{'priority':'high'});}),_0x845722['model']['document']['registerPostFixer'](_0x5945db=>{let _0x3ad40e=!0x1;const _0x2c99fe=Array['from'](_0x845722['model']['document']['differ']['getChangedMarkers']()),_0x22e97b=new Set();for(const {name:_0x6e0db7,data:_0x417d72}of _0x2c99fe){const {group:_0x55f9d3,type:_0x2a1a08,subType:_0x334917,id:_0x4cf7da}=this['_splitMarkerName'](_0x6e0db7);if('suggestion'!==_0x55f9d3)continue;const _0x14e777=this['_suggestions']['get'](_0x4cf7da);if(null!=_0x417d72['newRange']){'formatInline'==_0x2a1a08&&(_0x3ad40e=_0x3ad40e||Pt(_0x417d72['newRange'],_0x6e0db7,_0x5945db,_0x845722['model']['schema']));const _0x558c8f='attribute'==_0x2a1a08&&this['_isBlockAttribute'](_0x334917['split']('|')[0x0]);if(_0x417d72['newRange']['isCollapsed']||'$graveyard'==_0x417d72['newRange']['root']['rootName']||'formatBlock'==_0x2a1a08&&!Ft(_0x417d72['newRange'])||_0x558c8f&&!Ft(_0x417d72['newRange'])||'deletion'==_0x2a1a08&&!(!Vt(_0x3de26c=_0x417d72['newRange'])&&!function(_0x1b2e47){return _0x1b2e47['start']['parent']==_0x1b2e47['end']['nodeBefore']&&_0x1b2e47['start']['isAtEnd'];}(_0x3de26c)))_0x5945db['removeMarker'](_0x6e0db7),_0x3ad40e=!0x0;else{if(!_0x14e777||!_0x14e777['isInContent'])continue;if(_0x417d72['newRange']&&_0x417d72['oldRange']&&_0x417d72['newRange']['isEqual'](_0x417d72['oldRange']))continue;_0x22e97b['add'](_0x14e777);}}}var _0x3de26c;return _0x22e97b['size']>0x0&&(_0x3ad40e=!!this['_joinWithAdjacentSuggestions'](_0x22e97b)||_0x3ad40e),_0x3ad40e;}),_0x845722['model']['document']['registerPostFixer'](_0x597f50=>{let _0x4ccaf2=!0x1;for(const _0x1dd790 of _0x845722['model']['document']['differ']['getChanges']())if('insert'==_0x1dd790['type'])for(const _0x4c3410 of this['_suggestions']['values']()){if(_0x4c3410['isMultiRange']||!_0x4c3410['isInContent'])continue;const _0x40b649='formatBlock'==_0x4c3410['type'],_0x3a4689=this['_getAttributeKey'](_0x4c3410),_0x33e557=_0x3a4689&&this['_isBlockAttribute'](_0x3a4689);if(!_0x40b649&&!_0x33e557)continue;const _0x4a294b=_0x4c3410['getFirstRange']();if(_0x4a294b['start']['parent']!=_0x4a294b['end']['parent']&&!_0x4a294b['end']['isAtEnd']){const _0x57b8d0=_0x845722['model']['createPositionAt'](_0x4a294b['start']['nodeAfter'],'end'),_0x4c32df=_0x845722['model']['createRange'](_0x4a294b['start'],_0x57b8d0);_0x597f50['updateMarker'](_0x4c3410['getFirstMarker'](),{'range':_0x4c32df}),_0x4ccaf2=!0x0;}}return _0x4ccaf2;}),_0x845722['model']['document']['registerPostFixer'](_0xa0d514=>this['_processAttributeChanges'](_0xa0d514)),_0x845722['model']['document']['registerPostFixer'](_0x457c9a=>!_0x457c9a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x457c9a)),_0x845722['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x845722['model']['document']['on']('change:data',(_0x1008c6,_0x4c2fa3)=>{if(!_0x4c2fa3['isLocal']||_0x4c2fa3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1b2eb5=_0x845722['model']['document']['differ']['getChanges']();if(0x0==_0x1b2eb5['length'])return;const _0xf7e209=[],_0x54b7de=_0x1b2eb5['filter'](_0x140cd0=>'attribute'==_0x140cd0['type']),_0x4489ab=_0x1b2eb5['filter'](_0x1cfca4=>'insert'==_0x1cfca4['type']&&'$text'!=_0x1cfca4['name']);for(const _0x3351bc of _0x54b7de)this['_isRegisteredAttribute'](_0x3351bc['attributeKey'])&&_0xf7e209['push']({'key':_0x3351bc['attributeKey'],'newValue':_0x3351bc['attributeNewValue'],'oldValue':_0x3351bc['attributeOldValue'],'range':Lt(_0x3351bc['range'],_0x845722['model'])});for(const _0xb28766 of _0x4489ab){if('rename'!=_0xb28766['action']&&'refresh'!=_0xb28766['action'])continue;const _0x2b11af=Jt(_0xb28766['position']['nodeAfter'],_0x845722['model']),_0x314f1b=_0xb28766['before'];'rename'==_0xb28766['action']&&_0xf7e209['push']({'key':m,'newValue':_0xb28766['name'],'oldValue':_0x314f1b['name'],'range':_0x2b11af});for(const [_0x386d97,_0x242252]of _0x314f1b['attributes']){if(!this['_isRegisteredAttribute'](_0x386d97))continue;const _0x2bd0dd=_0xb28766['attributes']['get'](_0x386d97);_0x242252!==_0x2bd0dd&&_0xf7e209['push']({'key':_0x386d97,'newValue':_0x2bd0dd,'oldValue':_0x242252,'range':_0x2b11af});}for(const [_0x51ba94,_0x63c318]of _0xb28766['attributes'])this['_isRegisteredAttribute'](_0x51ba94)&&(_0x314f1b['attributes']['has'](_0x51ba94)||_0xf7e209['push']({'key':_0x51ba94,'newValue':_0x63c318,'oldValue':null,'range':_0x2b11af}));}0x0!=_0xf7e209['length']&&_0x845722['model']['enqueueChange'](_0x4c2fa3,_0x3a7ed7=>{const _0x45e4ae=_0x325d63();for(const {range:_0x104252,key:_0x4c95fd,oldValue:_0x58043c,newValue:_0x428447}of _0xf7e209)this['markAttributeChange'](_0x104252,_0x4c95fd,_0x58043c,_0x428447,{'groupId':_0x45e4ae});this['_reduceExistingSuggestions'](_0x3a7ed7,_0xf7e209);});},{'priority':'lowest'}),_0x845722['model']['markers']['on']('update:suggestion',(_0x11d1b4,_0x291037,_0x2524e6)=>{if(null==_0x2524e6){const {id:_0x24fbe5}=this['_splitMarkerName'](_0x291037['name']),_0x3d2df9=this['_suggestions']['get'](_0x24fbe5);_0x3d2df9&&_0x3d2df9['addMarkerName'](_0x291037['name']);}}),_0x845722['model']['document']['on']('change:data',()=>{const _0x18400f=Array['from'](_0x845722['model']['document']['differ']['getChangedMarkers']())['filter'](_0x225c05=>'suggestion'===this['_splitMarkerName'](_0x225c05['name'])['group']);if(0x0===_0x18400f['length'])return;_0x18400f['sort']((_0x309f45,_0x3ad990)=>{const _0xf35f69=_0x309f45['data']['oldRange'],_0x183edd=_0x3ad990['data']['oldRange'];return null===_0xf35f69&&null===_0x183edd?0x0:null===_0xf35f69&&null!==_0x183edd?-0x1:null!==_0xf35f69&&null===_0x183edd?0x1:_0xf35f69['start']['isBefore'](_0x183edd['start'])?-0x1:0x1;});const _0x32b59c=new Set(),_0x3cc957=new Set();for(const {name:_0x5d6139,data:_0x3063cb}of _0x18400f){const {id:_0x492382}=this['_splitMarkerName'](_0x5d6139);if(null===_0x3063cb['oldRange']){const _0x4015c3=this['_handleNewSuggestionMarker'](_0x5d6139);_0x3cc957['add'](_0x4015c3);}else{const _0xca435=this['_suggestions']['get'](_0x492382);null!==_0x3063cb['newRange']||_0xca435['isInContent']?(_0x32b59c['add'](_0xca435['head']),_0x3cc957['add'](_0xca435)):this['_removeSuggestion'](_0xca435);}}_0x3cc957['size']>0x0&&this['_refreshSuggestionsChain'](_0x3cc957);for(const _0x571b52 of _0x32b59c)this['fire']('suggestionChanged',_0x571b52);}),_0x845722['model']['on']('applyOperation',(_0x1e058a,_0xcca1d2)=>{const _0x5d6c9a=_0xcca1d2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d6c9a['isDocumentOperation'])return;if(_0x5d6c9a['batch']['isUndo']||!_0x5d6c9a['batch']['isLocal'])return;let _0x134971,_0x355553;switch(_0x5d6c9a['type']){case'insert':_0x134971=_0x845722['model']['createPositionAt'](_0x5d6c9a['position']),_0x355553=_0x134971['getShiftedBy'](_0x5d6c9a['howMany']);break;case'split':_0x134971=_0x845722['model']['createPositionAt'](_0x5d6c9a['splitPosition']),_0x355553=_0x845722['model']['createPositionAt'](_0x5d6c9a['moveTargetPosition']);break;case'move':_0x134971=_0x845722['model']['createPositionAt'](_0x5d6c9a['targetPosition']),_0x355553=_0x134971['getShiftedBy'](_0x5d6c9a['howMany']);break;default:return;}const _0xe92675=_0x845722['model']['createRange'](_0x134971,_0x355553);_0x845722['model']['change'](()=>{for(const {suggestion:_0x1021dc,meta:_0x62fe49}of this['_findSuggestions'](_0xe92675)){if(_0x1021dc['isMultiRange'])continue;if('formatInline'==_0x1021dc['type'])continue;const _0x5127fb=this['_getAttributeKey'](_0x1021dc);if(_0x5127fb&&this['_isBlockAttribute'](_0x5127fb)&&'split'!=_0x5d6c9a['type'])continue;const _0x19d97f=_0x1021dc['data']&&_0x1021dc['data']['multipleBlocks'];('formatBlock'!=_0x1021dc['type']||'split'==_0x5d6c9a['type']&&!_0x19d97f)&&(_0x62fe49['containsRangeInObject']||'insertion'==_0x1021dc['type']&&_0x62fe49['isOwn']||_0x1021dc['getFirstRange']()['containsRange'](_0xe92675)&&this['_breakSuggestionMarker'](_0x1021dc,_0x134971,_0x355553));}});},{'priority':'lowest'}),_0x845722['model']['on']('deleteContent',(_0x253885,_0x1cb6ba)=>{const _0x435980=_0x1cb6ba[0x0],_0x54dc49=_0x1cb6ba[0x1];if(_0x54dc49&&_0x54dc49['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x435980['isCollapsed'])return;const _0x2b0ca=_0x845722['model']['schema'],{start:_0x3945e3,end:_0x10d562}=_0x435980['getFirstRange'](),_0x3eea04=_0x3945e3['nodeAfter']&&_0x2b0ca['isLimit'](_0x3945e3['nodeAfter'])?null:_0x2b0ca['getNearestSelectionRange'](_0x3945e3,'forward'),_0x809763=_0x10d562['nodeBefore']&&_0x2b0ca['isLimit'](_0x10d562['nodeBefore'])?null:_0x2b0ca['getNearestSelectionRange'](_0x10d562,'backward'),_0x2e3ca5=_0x845722['model']['createRange'](_0x3eea04?_0x3eea04['start']:_0x3945e3,_0x809763?_0x809763['end']:_0x10d562);_0x845722['model']['change'](_0x76963=>{this['markDeletion'](_0x2e3ca5);const _0x168deb=_0x845722['model']['schema']['getNearestSelectionRange'](_0x2e3ca5['start']);_0x435980['is']('documentSelection')?_0x76963['setSelection'](_0x168deb):_0x435980['setTo'](_0x168deb);}),_0x253885['stop']();},{'priority':_0x3a775e['normal']+0xa}),_0x845722['model']['on']('insertContent',(_0x26183b,_0x194d8d)=>{const _0x59c03f=_0x194d8d[_0x194d8d['length']-0x1];_0x59c03f&&_0x59c03f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x845722['model']['change'](()=>{let _0x5850ae=_0x845722['model']['insertContent'](_0x194d8d[0x0],_0x194d8d[0x1],_0x194d8d[0x2],{'forceDefaultExecution':!0x0});if(!_0x5850ae)return;_0x26183b['return']=_0x5850ae['clone']();const _0x51f7d3=_0x5850ae['end']['nodeBefore'],_0x4164d2=_0x845722['model']['schema'];_0x51f7d3&&_0x4164d2['isBlock'](_0x51f7d3)&&!_0x4164d2['isObject'](_0x51f7d3)&&(_0x5850ae=_0x845722['model']['createRange'](_0x5850ae['start'],_0x845722['model']['createPositionAt'](_0x51f7d3,'end'))),this['markInsertion'](_0x5850ae);}),_0x26183b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ca048=new O(_0x845722,this['_suggestions']);_0x845722['commands']['add']('acceptSuggestion',_0x3ca048),this['enableCommand']('acceptSuggestion');const _0x1d29e5=new R(_0x845722,this['_suggestions']);_0x845722['commands']['add']('discardSuggestion',_0x1d29e5),this['enableCommand']('discardSuggestion'),_0x845722['commands']['add']('acceptAllSuggestions',new x(_0x845722,_0x3ca048,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x845722['commands']['add']('discardAllSuggestions',new x(_0x845722,_0x1d29e5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x845722['commands']['add']('acceptSelectedSuggestions',new E(_0x845722,_0x3ca048,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x845722['commands']['add']('discardSelectedSuggestions',new E(_0x845722,_0x1d29e5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3fc6b2=_0x845722['plugins']['get']('CommentsRepository');this['listenTo'](_0x3fc6b2,'addComment',(_0x32b119,{threadId:_0x508758})=>{const _0x4b80cf=this['_suggestions']['get'](_0x508758);_0x4b80cf&&_0x4b80cf['commentThread']&&0x1===_0x4b80cf['commentThread']['length']&&this['_updateSuggestionData'](_0x508758,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3fc6b2,'removeComment',(_0x1af205,{threadId:_0x15a595})=>{const _0x33c3c4=this['_suggestions']['get'](_0x15a595);_0x33c3c4&&_0x33c3c4['commentThread']&&!_0x33c3c4['commentThread']['length']&&this['_updateSuggestionData'](_0x15a595,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c4238){const _0xbb74d5=_0x3def27([0x38,0x73,0x4a,0x72,0x48,0x33,0x35,0x42,0x45,0x71,0x6e,0x47,0x64,0x52,0x7a,0x6f,0x68,0x78,0x4b,0x79,0x65,0x61,0x6a,0x6c,0x75,0x5a,0x4c,0x54,0x6b,0x4d,0x66,0x49,0x55,0x58,0x57,0x56,0x32,0x41,0x59,0x50,0x67,0x43,0x6d,0x30,0x31,0x4e,0x53,0x34,0x4f,0x63,0x51,0x37,0x70,0x69,0x46,0x62,0x76,0x77,0x39,0x74,0x44,0x36]),_0x364db3=0x4f3998ec,_0x296229=0x4f3ecf5c^_0x364db3,_0x18bf8d=window[_0x3def27([0x44,0x61,0x74,0x65])][_0x3def27([0x6e,0x6f,0x77])](),_0x1815ba=_0x4c4238[_0x3def27([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x449d47=new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5affce=>{_0x1815ba[_0x3def27([0x6f,0x6e,0x63,0x65])](_0x3def27([0x72,0x65,0x61,0x64,0x79]),_0x5affce);}),_0x149674={[_0x3def27([0x6b,0x74,0x79])]:_0x3def27([0x45,0x43]),[_0x3def27([0x75,0x73,0x65])]:_0x3def27([0x73,0x69,0x67]),[_0x3def27([0x63,0x72,0x76])]:_0x3def27([0x50,0x2d,0x32,0x35,0x36]),[_0x3def27([0x78])]:_0x3def27([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3def27([0x79])]:_0x3def27([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3def27([0x61,0x6c,0x67])]:_0x3def27([0x45,0x53,0x32,0x35,0x36])},_0x2fa085=_0x1815ba[_0x3def27([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3def27([0x67,0x65,0x74])](_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x415b27(){let _0x3946d0,_0xdddd73=null,_0x287dc4=null;try{if(_0x2fa085==_0x3def27([0x47,0x50,0x4c]))return _0x3def27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3946d0=_0x38a488(),!_0x3946d0)return _0x3def27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3946d0[_0x3def27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x287dc4=_0x438d06(_0x3946d0[_0x3def27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3946d0[_0x3def27([0x6a,0x74,0x69])])),await _0x1f04da()?_0x431859()?_0x159b40()?_0x3def27([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c5431()?(_0x3946d0[_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3def27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xdddd73=_0x590273(_0x3def27([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3946d0[_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3def27([0x74,0x72,0x69,0x61,0x6c])&&(_0xdddd73=_0x590273(_0x3def27([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3946d0[_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3def27([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xdddd73=_0x590273(_0x3def27([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x270403()):_0x3def27([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3def27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3def27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x282af9){return _0x3def27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x159b40(){const _0x7f77a3=[_0x3def27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3def27([0x74,0x72,0x69,0x61,0x6c])][_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3946d0[_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18bf8d/0x3e8:0xe10*_0x296229;return _0x3946d0[_0x3def27([0x65,0x78,0x70])]<_0x7f77a3;}function _0x431859(){const _0x1524e3=_0x3946d0[_0x3def27([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1524e3&&(!!_0x1524e3[_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3def27([0x2a]))||(!!_0x1524e3[_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3def27([0x54,0x43]))||!(!_0x1524e3[_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3def27([0x52,0x54,0x43]))||!_0x36f129())));}function _0x2c5431(){const _0x12b51b=_0x3946d0[_0x3def27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12b51b||0x0==_0x12b51b[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32008c}=new URL(window[_0x3def27([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12b51b[_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32008c))return!0x0;const _0x4923f6=_0x32008c[_0x3def27([0x73,0x70,0x6c,0x69,0x74])](_0x3def27([0x2e]));return _0x12b51b[_0x3def27([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x367520=>_0x367520[_0x3def27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3def27([0x2a])))[_0x3def27([0x6d,0x61,0x70])](_0x5f2c7c=>_0x5f2c7c[_0x3def27([0x73,0x70,0x6c,0x69,0x74])](_0x3def27([0x2e])))[_0x3def27([0x73,0x6f,0x6d,0x65])](_0x35f2b4=>_0x4923f6[_0x3def27([0x65,0x76,0x65,0x72,0x79])]((_0x1fde43,_0x9d4813)=>_0x35f2b4[_0x9d4813]===_0x1fde43||_0x35f2b4[_0x9d4813]===_0x3def27([0x2a])));}function _0x270403(){return _0xdddd73&&_0x287dc4?new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d176b,_0x511058)=>{_0xdddd73[_0x3def27([0x74,0x68,0x65,0x6e])](_0x1d176b,_0x511058),_0x287dc4[_0x3def27([0x74,0x68,0x65,0x6e])](_0x49293b=>{_0x49293b!=_0x3def27([0x56,0x61,0x6c,0x69,0x64])&&_0x1d176b(_0x49293b);},_0x511058);}):_0xdddd73||_0x287dc4||_0x3def27([0x56,0x61,0x6c,0x69,0x64]);}}function _0x438d06(_0x2f8dc4,_0x4eb748){return new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400c84=>{if(_0x2dddc7())return _0x400c84(_0x3def27([0x56,0x61,0x6c,0x69,0x64]));_0x35acab(),_0x1815ba[_0x3def27([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3def27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x287cbb=!0x1;const _0x572669=_0x325d63();function _0x4856d6(_0x4330df){return!!_0x4330df&&(typeof _0x4330df===_0x3def27([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4330df===_0x3def27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4330df[_0x3def27([0x74,0x68,0x65,0x6e])]===_0x3def27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4330df[_0x3def27([0x63,0x61,0x74,0x63,0x68])]===_0x3def27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x532eb2(_0x17b70f){_0x175b8a(_0x17b70f)[_0x3def27([0x74,0x68,0x65,0x6e])](_0x5d0ed5=>{if(!_0x5d0ed5||_0x5d0ed5[_0x3def27([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3def27([0x6f,0x6b]))return _0x3def27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25bc34(_0x48b97e(_0x572669+_0x4eb748))!=_0x5d0ed5[_0x3def27([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3def27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3def27([0x56,0x61,0x6c,0x69,0x64]);})[_0x3def27([0x74,0x68,0x65,0x6e])](_0x4bd7f1=>(_0x4b8afc(),_0x4bd7f1),()=>{const _0x397117=_0x106329();return null==_0x397117?(_0x4b8afc(),_0x3def27([0x56,0x61,0x6c,0x69,0x64])):_0x3def27(_0x18bf8d-_0x397117>(0x6b351cec^_0x364db3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3def27([0x74,0x68,0x65,0x6e])](_0x400c84)[_0x3def27([0x63,0x61,0x74,0x63,0x68])](()=>{_0x400c84(_0x3def27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a33de=0x4f0f766c^_0x364db3;function _0x4b8afc(){const _0x1a7420=_0x3def27([0x6c,0x6c,0x63,0x74,0x2d])+_0x25bc34(_0x48b97e(_0x2f8dc4)),_0x474582=_0x38c013(_0x25bc34(window[_0x3def27([0x4d,0x61,0x74,0x68])][_0x3def27([0x63,0x65,0x69,0x6c])](_0x18bf8d/_0x1a33de)));window[_0x3def27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3def27([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a7420,_0x474582);}function _0x106329(){const _0x5bb8ec=_0x3def27([0x6c,0x6c,0x63,0x74,0x2d])+_0x25bc34(_0x48b97e(_0x2f8dc4)),_0x38a052=window[_0x3def27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3def27([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb8ec);return _0x38a052?window[_0x3def27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38c013(_0x38a052),0x10)*_0x1a33de:null;}function _0x175b8a(_0x2b8e46){return new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc8e14d,_0x24ca26)=>{_0x2b8e46[_0x3def27([0x74,0x68,0x65,0x6e])](_0xc8e14d,_0x24ca26),window[_0x3def27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24ca26,0x4f384c2c^_0x364db3);});}}_0x1815ba[_0x3def27([0x6f,0x6e])](_0x3def27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc0403a,_0x25a790)=>{if(_0x25a790[0x0]!=_0x2f8dc4)return _0x400c84(_0x3def27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25a790[0x1]={..._0x25a790[0x1],[_0x3def27([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x572669};},{[_0x3def27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3def27([0x68,0x69,0x67,0x68])}),_0x1815ba[_0x3def27([0x6f,0x6e])](_0x3def27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x404a38=>{_0x4856d6(_0x404a38[_0x3def27([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x287cbb=!0x0,_0x532eb2(_0x404a38[_0x3def27([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3def27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3def27([0x6c,0x6f,0x77])}),_0x449d47[_0x3def27([0x74,0x68,0x65,0x6e])](()=>{_0x287cbb||_0x400c84(_0x3def27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dddc7(){return _0x1815ba[_0x3def27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3def27([0x76,0x69,0x65,0x77])][_0x3def27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3def27([0x61,0x75,0x74,0x6f]);}function _0x35acab(){_0x1815ba[_0x3def27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3def27([0x76,0x69,0x65,0x77])][_0x3def27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3def27([0x61,0x75,0x74,0x6f]);}}function _0x590273(_0x5f0dc9){const _0x502c66=[new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41eb4e=>setTimeout(_0x41eb4e,0x4f30a620^_0x364db3)),_0x449d47[_0x3def27([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x471236=>{let _0x1dbd32=0x0;_0x1815ba[_0x3def27([0x6d,0x6f,0x64,0x65,0x6c])][_0x3def27([0x6f,0x6e])](_0x3def27([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25a6b2,_0x21267d)=>{_0x21267d[0x0][_0x3def27([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dbd32++,_0x1dbd32==(0x4f399914^_0x364db3)&&(_0x471236(),_0x25a6b2[_0x3def27([0x6f,0x66,0x66])]());});}))];return window[_0x3def27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3def27([0x72,0x61,0x63,0x65])](_0x502c66)[_0x3def27([0x74,0x68,0x65,0x6e])](()=>_0x5f0dc9);}async function _0x305af0(){await _0x449d47,_0x1815ba[_0x3def27([0x6d,0x6f,0x64,0x65,0x6c])][_0x3def27([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e6021,_0x1815ba[_0x3def27([0x6d,0x6f,0x64,0x65,0x6c])][_0x3def27([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e6021,_0x1815ba[_0x3def27([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3def27([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36f129(){return _0x107219(_0x3def27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e1007(_0x3def27([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3def27([0x73,0x74,0x61,0x74,0x65])]==_0x3def27([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x56fc67(_0x4f2f39){const _0x48ea1c=_0x355460();_0x1815ba[_0x48ea1c]=_0x3def27([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f2f39,_0x4f2f39!=_0x3def27([0x56,0x61,0x6c,0x69,0x64])&&_0x305af0();}function _0x355460(){const _0x3f8343=window[_0x3def27([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3def27([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3def27([0x6e,0x6f,0x77])]())[_0x3def27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3def27([0x2e]),'');let _0x29f253=_0x3def27([0x73]);for(let _0x15deaa=0x0;_0x15deaa<_0x3f8343[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15deaa+=0x2){let _0x20a2bc=window[_0x3def27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f8343[_0x3def27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15deaa,_0x15deaa+0x2));_0x20a2bc>=_0xbb74d5[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20a2bc-=_0xbb74d5[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29f253+=_0xbb74d5[_0x20a2bc];}return _0x29f253;}function _0x38a488(){const _0x684aaf=_0x2fa085[_0x3def27([0x73,0x70,0x6c,0x69,0x74])](_0x3def27([0x2e]));if(0x3!=_0x684aaf[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x584c21(_0x684aaf[0x1]);function _0x584c21(_0x4ac4b7){const _0x161cd2=_0x36a4b3(_0x4ac4b7);return _0x161cd2&&_0x17fef4()?_0x161cd2:null;function _0x17fef4(){const _0x3a374d=_0x161cd2[_0x3def27([0x6a,0x74,0x69])],_0x4dd91f=window[_0x3def27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a374d[_0x3def27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a374d[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5aadcd={..._0x161cd2,[_0x3def27([0x6a,0x74,0x69])]:_0x3a374d[_0x3def27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a374d[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5aadcd[_0x3def27([0x76,0x63])],_0x48b97e(_0x5aadcd)==_0x4dd91f;}}}async function _0x1f04da(){let _0x540002=!0x0;try{const _0x30d05a=_0x2fa085[_0x3def27([0x73,0x70,0x6c,0x69,0x74])](_0x3def27([0x2e])),[_0x3c3bd3,_0x16fb0d,_0x18df8c]=_0x30d05a;return _0x1bed65(_0x3c3bd3),await _0x47b1ff(_0x3c3bd3,_0x16fb0d,_0x18df8c),_0x540002;}catch(_0x18fcee){return!0x1;}function _0x1bed65(_0x441e9e){const _0xf5a3f8=_0x36a4b3(_0x441e9e);_0xf5a3f8&&_0xf5a3f8[_0x3def27([0x61,0x6c,0x67])]==_0x3def27([0x45,0x53,0x32,0x35,0x36])||(_0x540002=!0x1);}async function _0x47b1ff(_0x299c9e,_0xf302d4,_0x12ac75){const _0x44054e=window[_0x3def27([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3def27([0x66,0x72,0x6f,0x6d])](_0x22e227(_0x12ac75),_0x543ca6=>_0x543ca6[_0x3def27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ec73f=new window[(_0x3def27([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3def27([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x299c9e+_0x3def27([0x2e])+_0xf302d4),_0x4e1f2c=window[_0x3def27([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3def27([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e1f2c)return;const _0x4bd113=await _0x4e1f2c[_0x3def27([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3def27([0x6a,0x77,0x6b]),_0x149674,{[_0x3def27([0x6e,0x61,0x6d,0x65])]:_0x3def27([0x45,0x43,0x44,0x53,0x41]),[_0x3def27([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3def27([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3def27([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e1f2c[_0x3def27([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3def27([0x6e,0x61,0x6d,0x65])]:_0x3def27([0x45,0x43,0x44,0x53,0x41]),[_0x3def27([0x68,0x61,0x73,0x68])]:{[_0x3def27([0x6e,0x61,0x6d,0x65])]:_0x3def27([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bd113,_0x44054e,_0x5ec73f)||(_0x540002=!0x1);}}function _0x36a4b3(_0x439bf5){return _0x439bf5[_0x3def27([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3def27([0x65,0x79]))?JSON[_0x3def27([0x70,0x61,0x72,0x73,0x65])](_0x22e227(_0x439bf5)):null;}function _0x22e227(_0x2ab559){return window[_0x3def27([0x61,0x74,0x6f,0x62])](_0x2ab559[_0x3def27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3def27([0x2b]))[_0x3def27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3def27([0x2f])));}function _0x48b97e(_0x1acbaa){let _0x244523=0x1505;function _0x1bbf33(_0x5a7826){for(let _0x56eac9=0x0;_0x56eac9<_0x5a7826[_0x3def27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56eac9++){const _0xf1a65f=_0x5a7826[_0x3def27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56eac9);_0x244523=(_0x244523<<0x5)+_0x244523+_0xf1a65f,_0x244523&=_0x244523;}}function _0x2f1148(_0x2d55a7){Array[_0x3def27([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d55a7)?_0x2d55a7[_0x3def27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f1148):_0x2d55a7&&typeof _0x2d55a7==_0x3def27([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3def27([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d55a7)[_0x3def27([0x73,0x6f,0x72,0x74])]()[_0x3def27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c8e22,_0x433fae])=>{_0x1bbf33(_0x1c8e22),_0x2f1148(_0x433fae);}):_0x1bbf33(window[_0x3def27([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d55a7));}return _0x2f1148(_0x1acbaa),_0x244523>>>0x0;}function _0x25bc34(_0x4e6f19){return _0x4e6f19[_0x3def27([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3def27([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3def27([0x30]));}function _0x38c013(_0x14b3cb){return _0x14b3cb[_0x3def27([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3def27([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3def27([0x6a,0x6f,0x69,0x6e])]('');}function _0x107219(_0x51d869){return _0x1815ba[_0x3def27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3def27([0x68,0x61,0x73])](_0x51d869);}function _0x4e1007(_0x299aa0){return _0x1815ba[_0x3def27([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3def27([0x67,0x65,0x74])](_0x299aa0);}function _0x4e6021(){}function _0x3def27(_0x4e39c8){return _0x4e39c8['map'](_0x2f0a54=>String['fromCharCode'](_0x2f0a54))['join']('');}_0x56fc67(await _0x415b27());}(this);}set['adapter'](_0x1daa70){if(this['_adapter'])throw new _0x225cd0('track-changes-adapter-already-set',this);this['_adapter']=_0x1daa70;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xc4ee76=!0x1,toJSON:_0x136f2e=!0x1}={}){const _0x5c3c2a=[];for(const _0x452763 of this['_suggestions']['values']())_0xc4ee76&&!_0x452763['isInContent']||_0x5c3c2a['push'](_0x452763);return _0x136f2e?_0x5c3c2a['map'](_0x4fbafc=>_0x4fbafc['toJSON']()):_0x5c3c2a;}['getSuggestion'](_0x1956a9){const _0x2fb709=this['_suggestions']['get'](_0x1956a9);if(!_0x2fb709)throw new _0x225cd0('track-changes-suggestion-not-found',this);return _0x2fb709;}['hasSuggestion'](_0x51ce66){return this['_suggestions']['has'](_0x51ce66);}['addSuggestionData'](_0x72a291){const {authorId:_0x374101,id:_0x180356,attributes:_0x453d6d}=_0x72a291,[_0x53984e,_0x27678c]=_0x72a291['type']['split'](':'),_0x173d28=this['_suggestions']['get'](_0x180356)||this['_createSuggestion'](_0x53984e,_0x27678c,_0x180356,_0x374101,_0x453d6d);if(this['_addThreadToSuggestion'](_0x173d28),this['_checkSuggestionCorrectness'](_0x173d28,_0x53984e,_0x27678c||null,_0x374101),_0x173d28['createdAt']=_0x72a291['createdAt'],_0x173d28['_isDataLoaded']=!0x0,_0x453d6d&&_0x453d6d['@external']){const _0x2984f3=_0x453d6d['@external'],_0xe5ed71=this['_getExternalAuthor'](_0x2984f3['authorName']);_0x173d28['authoredAt']=_0x2984f3['createdAt'],_0x173d28['author']=_0xe5ed71,_0x173d28['isExternal']=!0x0;}else _0x173d28['authoredAt']=_0x72a291['createdAt'];switch(_0x72a291['data']&&(_0x173d28['data']=_0x72a291['data']),_0x72a291['attributes']&&(_0x173d28['attributes']=_0x72a291['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x173d28['_saved']=!0x0),this['_suggestionState']['get'](_0x173d28)){case'notReady':this['_suggestionState']['set'](_0x173d28,'dataReady');break;case'markerReady':_0x173d28['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x173d28])),this['_refreshSuggestionsChain'](new Set([_0x173d28])),this['_suggestionState']['set'](_0x173d28,'ready'),this['fire']('suggestionLoaded',_0x173d28)):this['_suggestionState']['set'](_0x173d28,'removed');}return _0x173d28;}['acceptSuggestion'](_0x29ea22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10a62b of _0x29ea22['getAllAdjacentSuggestions']())_0x10a62b['accept']();});});}['discardSuggestion'](_0xc03d60){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d7bcb of _0xc03d60['getAllAdjacentSuggestions']())_0x5d7bcb['discard']();});});}['enableCommand'](_0x35847c,_0x3d3b8c){const _0x274f5c=this['editor']['commands']['get'](_0x35847c);if(!_0x274f5c)throw new _0x225cd0('track-changes-command-not-found',this,{'commandName':_0x35847c});if(this['_enabledCommands']['has'](_0x274f5c))throw new _0x225cd0('track-changes-enable-command-twice',this,{'commandName':_0x35847c});this['_enabledCommands']['add'](_0x274f5c),_0x3d3b8c&&_0x274f5c['on']('execute',(_0x5918b,_0x5d41dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d41dd['length']>0x0&&_0x5d41dd[_0x5d41dd['length']-0x1]&&_0x5d41dd[_0x5d41dd['length']-0x1]['forceDefaultExecution']?_0x5d41dd['pop']():(_0x5918b['return']=_0x3d3b8c((..._0x59eaec)=>_0x274f5c['execute'](..._0x59eaec,{'forceDefaultExecution':!0x0}),..._0x5d41dd),_0x5918b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4b56f2){let _0x49a3c9,_0x24506f;const _0x2553ad=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x49a3c9=_0x4b56f2();}catch(_0x24a934){_0x24506f=_0x24a934;}return _0x2553ad||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x24506f&&_0x225cd0['rethrowUnexpectedError'](_0x24506f,this),_0x49a3c9;}['markInsertion'](_0x3bdddd,_0x1325d0=null,_0x679120={}){if(_0x3bdddd['isCollapsed'])return null;const _0x151ed8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x14bcf3,meta:_0x1d3eba}of this['_findSuggestions'](_0x3bdddd,'insertion'))if(_0x1d3eba['isOwn']){if(!_0x1d3eba['isNextTo']){if(_0x1d3eba['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x14bcf3,_0x679120))continue;return _0x14bcf3;}if(zt(_0x14bcf3,_0x679120))return _0x14bcf3;this['_breakSuggestionMarker'](_0x14bcf3,_0x3bdddd['start'],_0x3bdddd['end']);break;}if(_0x1325d0==_0x14bcf3['subType']&&zt(_0x14bcf3,_0x679120)){const _0x48f4a9=_0x14bcf3['getFirstRange']();return _0x48f4a9['start']['isEqual'](_0x3bdddd['end'])?this['_setSuggestionRange'](_0x14bcf3,this['_model']['createRange'](_0x3bdddd['start'],_0x48f4a9['end'])):this['_setSuggestionRange'](_0x14bcf3,this['_model']['createRange'](_0x48f4a9['start'],_0x3bdddd['end'])),_0x14bcf3;}}const _0x14f780=_0x325d63(),_0x4620bf=_0x151ed8['id'],_0x52c218=_0x1325d0?'insertion:'+_0x1325d0:'insertion',_0x1ee8da=this['_setSuggestionData']({'id':_0x14f780,'type':_0x52c218,'createdAt':new Date(),'authorId':_0x4620bf,'attributes':_0x679120});return this['_addSuggestionMarker'](_0x52c218,_0x14f780,_0x4620bf,_0x3bdddd),_0x1ee8da;}['markMultiRangeInsertion'](_0xad8b74,_0x54af1d='multi',_0x48086b={}){const _0xf30ebd=this['editor']['plugins']['get']('Users')['me'],_0x32d7d4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54af1d,'join');for(const _0x4ade40 of this['getSuggestions']())if(_0x4ade40['author']['id']==_0xf30ebd['id']&&'insertion'==_0x4ade40['type']&&_0x4ade40['subType']==_0x54af1d&&zt(_0x4ade40,_0x48086b)&&(_0x32d7d4(_0x4ade40['getRanges'](),_0xad8b74)||_0x32d7d4(_0xad8b74,_0x4ade40['getRanges']()))){for(const _0x1e3804 of _0xad8b74)_0x4ade40['addRange'](_0x1e3804);return _0x4ade40;}for(const {suggestion:_0x4e15b0,meta:_0x3d798b}of this['_findSuggestions'](_0xad8b74,'insertion')){if(!_0x3d798b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d798b['containsRangeInObject'])continue;if(!zt(_0x4e15b0,_0x48086b))continue;let _0x4681e0=!0x0;for(const _0x47fede of _0x4e15b0['getRanges']())for(const _0x29f58c of _0xad8b74)if(!_0x47fede['containsRange'](_0x29f58c)){_0x4681e0=!0x1;break;}if(_0x4681e0)return _0x4e15b0;}const _0x420aae=_0x325d63(),_0x59c901=_0xf30ebd['id'],_0xd0c5b='insertion:'+_0x54af1d,_0x54217d=this['_setSuggestionData']({'id':_0x420aae,'type':_0xd0c5b,'createdAt':new Date(),'authorId':_0x59c901,'attributes':_0x48086b});for(const _0x5ea051 of _0xad8b74)this['_addSuggestionMarker'](_0xd0c5b,_0x420aae,_0x59c901,_0x5ea051,u['getMultiRangeId']());return _0x54217d;}['markInlineFormat'](_0x108040,_0x151e35,_0x198ebb=null,_0x3308a5={}){if(_0x198ebb=_0x198ebb||Gt(_0x151e35),_0x108040['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x423567=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198ebb,'accept');return this['forceDefaultExecution'](()=>_0x423567([_0x108040],_0x151e35,_0x3308a5)),null;}const _0x34e111=this['editor']['plugins']['get']('Users')['me'],_0x2ab332=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24a5ff,meta:_0x3d3a66}of this['_findSuggestions'](_0x108040,'insertion'))_0x3d3a66['isOwn']&&!_0x3d3a66['isInsideObject']&&_0x2ab332['push'](..._0x24a5ff['getRanges']());}const _0x35c5d3=function(_0x1e8110,_0x4b857e){const _0x2e0904=[];for(const _0x564799 of _0x4b857e){const _0x16cea4=_0x1e8110['getIntersection'](_0x564799);_0x16cea4&&_0x2e0904['push'](_0x16cea4);}return _0x2e0904;}(_0x108040,_0x2ab332),_0x370483=function(_0x1ae716,_0x2648be){const _0x4f4dbd=[_0x1ae716];for(const _0x2aac37 of _0x2648be){let _0x1c3ef0=0x0;for(;_0x1c3ef0<_0x4f4dbd['length'];){const _0xfed33d=_0x4f4dbd[_0x1c3ef0]['getDifference'](_0x2aac37);_0x4f4dbd['splice'](_0x1c3ef0,0x1,..._0xfed33d),_0x1c3ef0+=_0xfed33d['length'];}}return _0x4f4dbd;}(_0x108040,_0x2ab332);_0x35c5d3['length']&&this['_model']['change'](()=>{for(const _0x47b44b of _0x35c5d3){const _0x316bf0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198ebb,'accept');this['forceDefaultExecution'](()=>_0x316bf0([_0x47b44b],_0x151e35,_0x3308a5));}});for(const _0x35faf4 of _0x370483){let _0x357c09=null,_0x13e444=_0x35faf4['start'],_0x4c610d=_0x35faf4['end'];for(const {suggestion:_0x6f891c,meta:_0x5c3052}of this['_findSuggestions'](_0x35faf4,'formatInline')){if(!_0x5c3052['isOwn'])continue;if(_0x6f891c['subType']!=_0x198ebb)continue;if(!zt(_0x6f891c,_0x3308a5))continue;const _0x2f329f=_0x6f891c['getFirstRange']();if(_0x2f329f['containsRange'](_0x35faf4,!0x0))return null;_0x13e444=_0x13e444['isBefore'](_0x2f329f['start'])?_0x13e444:_0x2f329f['start'],_0x4c610d=_0x4c610d['isAfter'](_0x2f329f['end'])?_0x4c610d:_0x2f329f['end'],_0x357c09?_0x2f329f['start']['isBefore'](_0x357c09['getFirstRange']()['start'])?(_0x357c09['removeMarkers'](),_0x357c09=_0x6f891c):_0x6f891c['removeMarkers']():_0x357c09=_0x6f891c;}const _0x41a704=this['_model']['createRange'](_0x13e444,_0x4c610d);if(_0x357c09)this['_setSuggestionRange'](_0x357c09,_0x41a704);else{const _0x33478f=_0x325d63(),_0x126a3f=_0x34e111['id'];this['_setSuggestionData']({'id':_0x33478f,'type':'formatInline:'+_0x198ebb,'data':_0x151e35,'createdAt':new Date(),'authorId':_0x126a3f,'attributes':_0x3308a5}),this['_addSuggestionMarker']('formatInline:'+_0x198ebb,_0x33478f,_0x126a3f,_0x41a704);}}return null;}['markBlockFormat'](_0x13e9cd,_0x40661b,_0x48f1f7=[],_0x42a36e=null,_0x37a1ff={}){_0x40661b['formatGroupId']||(_0x40661b['formatGroupId']=_0x40661b['commandName']),_0x40661b['multipleBlocks']=_0x13e9cd['is']('range'),_0x42a36e=_0x42a36e||Gt(_0x40661b);const _0x62968d=_0x48f1f7['map'](_0x83208d=>Jt(_0x83208d,this['_model'])),_0xd0a00=_0x13e9cd['is']('range')?_0x13e9cd:Jt(_0x13e9cd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x37d0e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a36e,'accept');return this['forceDefaultExecution'](()=>_0x37d0e6([_0xd0a00],_0x40661b,_0x37a1ff)),null;}_0x62968d['push'](_0xd0a00);let _0x2465d2=!0x0;for(const _0x1204fa of _0x62968d)if(!this['_rangeIsInLocalUserInsertion'](_0x1204fa)){_0x2465d2=!0x1;break;}if(_0x2465d2&&'always'!==this['_trackFormatChanges']){const _0xfcac2e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42a36e,'accept');return this['forceDefaultExecution'](()=>_0xfcac2e([_0xd0a00],_0x40661b,_0x37a1ff)),null;}let _0x28ff1b=null,_0x57811f=_0xd0a00['start'],_0x128f71=_0xd0a00['end'];for(const {suggestion:_0x3c321f,meta:_0x5351a3}of this['_findSuggestions'](_0xd0a00,'formatBlock')){if(!_0x5351a3['isOwn'])continue;if(_0x5351a3['isNextTo']||_0x5351a3['containsRangeInObject']||_0x5351a3['isInsideObject'])continue;if(_0x3c321f['data']['formatGroupId']!=_0x40661b['formatGroupId'])continue;if(!zt(_0x3c321f,_0x37a1ff))continue;const _0x1eaa98=_0x3c321f['getFirstRange']();if(_0x3c321f['subType']==_0x42a36e){if(_0x1eaa98['containsRange'](_0xd0a00,!0x0))return null;_0x57811f=_0x57811f['isBefore'](_0x1eaa98['start'])?_0x57811f:_0x1eaa98['start'],_0x128f71=_0x128f71['isAfter'](_0x1eaa98['end'])?_0x128f71:_0x1eaa98['end'],_0x28ff1b?_0x1eaa98['start']['isBefore'](_0x28ff1b['getFirstRange']()['start'])?(_0x28ff1b['removeMarkers'](),_0x28ff1b=_0x3c321f):_0x3c321f['removeMarkers']():_0x28ff1b=_0x3c321f;}else{const _0x566d89=_0xd0a00['getIntersection'](_0x1eaa98);this['_cutOutSuggestionMarker'](_0x3c321f,_0x566d89);}}const _0x652441=this['editor']['plugins']['get']('Users')['me'],_0x265e76=_0x325d63(),_0x30efd4=_0x652441['id'];if(_0x28ff1b)return this['_setSuggestionRange'](_0x28ff1b,this['_model']['createRange'](_0x57811f,_0x128f71)),_0x28ff1b;{const _0x321a10=this['_setSuggestionData']({'id':_0x265e76,'type':'formatBlock:'+_0x42a36e,'data':_0x40661b,'createdAt':new Date(),'authorId':_0x30efd4,'attributes':_0x37a1ff});return this['_addSuggestionMarker']('formatBlock:'+_0x42a36e,_0x265e76,_0x30efd4,this['_model']['createRange'](_0x57811f,_0x128f71)),_0x321a10;}}['markMultiRangeBlockFormat'](_0x385d0e,_0x2ca25c,_0x2f9ffd=[],_0x272a06=null,_0x2dd48e={}){_0x2ca25c['formatGroupId']||(_0x2ca25c['formatGroupId']=_0x2ca25c['commandName']);const _0x4d491f=_0x385d0e[0x0];_0x2ca25c['multipleBlocks']=_0x4d491f['is']('range'),_0x272a06=_0x272a06||Gt(_0x2ca25c);const _0x286ffe=_0x2f9ffd['map'](_0x5cd375=>Jt(_0x5cd375,this['_model'])),_0x2567b4=_0x4d491f['is']('range')?_0x385d0e:_0x385d0e['map'](_0x708cf7=>Jt(_0x708cf7,this['_model']));if('never'===this['_trackFormatChanges']){const _0x34729d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x272a06,'accept');return this['forceDefaultExecution'](()=>_0x34729d(_0x2567b4,_0x2ca25c,_0x2dd48e)),null;}_0x286ffe['push'](..._0x2567b4);let _0x5f0798=!0x0;for(const _0x53566a of _0x286ffe)if(!this['_rangeIsInLocalUserInsertion'](_0x53566a)){_0x5f0798=!0x1;break;}if(_0x5f0798&&'always'!==this['_trackFormatChanges']){const _0x119ddc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x272a06,'accept');return this['forceDefaultExecution'](()=>_0x119ddc(_0x2567b4,_0x2ca25c,_0x2dd48e)),null;}const _0x246dd9=this['editor']['plugins']['get']('Users')['me'];for(const _0xc72ef3 of this['getSuggestions']()){if(_0xc72ef3['author']['id']!=_0x246dd9['id'])continue;if('formatBlock'!=_0xc72ef3['type']||_0xc72ef3['data']['formatGroupId']!=_0x2ca25c['formatGroupId'])continue;if(!zt(_0xc72ef3,_0x2dd48e))continue;const _0x3f5186=_0xc72ef3['subType']==_0x272a06;for(let _0x52e3c2=0x0;_0x52e3c2<_0x2567b4['length'];_0x52e3c2++){const _0x370a04=_0x2567b4[_0x52e3c2];for(const _0x4cf699 of _0xc72ef3['getMarkers']()){const _0x3ca303=_0x4cf699['getRange']();if(_0x370a04['isEqual'](_0x3ca303)){_0x3f5186?(_0x2567b4['splice'](_0x52e3c2,0x1),_0x52e3c2--):_0xc72ef3['removeMarker'](_0x4cf699['name']);break;}}}}if(0x0==_0x2567b4['length'])return null;const _0x1e2fa2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x272a06,'join');for(const _0xcc5372 of this['getSuggestions']())if(_0xcc5372['author']['id']==_0x246dd9['id']&&'formatBlock'==_0xcc5372['type']&&_0xcc5372['data']['formatGroupId']==_0x2ca25c['formatGroupId']&&_0xcc5372['subType']==_0x272a06&&zt(_0xcc5372,_0x2dd48e)&&(_0x1e2fa2(_0xcc5372['getRanges'](),_0x2567b4)||_0x1e2fa2(_0x2567b4,_0xcc5372['getRanges']()))){for(const _0x3ffcd2 of _0x2567b4)_0xcc5372['addRange'](_0x3ffcd2);return _0xcc5372;}const _0x4d744c=_0x325d63(),_0x2a1824=_0x246dd9['id'],_0x7a72e5='formatBlock:'+_0x272a06,_0x34760c=this['_setSuggestionData']({'id':_0x4d744c,'type':_0x7a72e5,'data':_0x2ca25c,'createdAt':new Date(),'authorId':_0x2a1824,'attributes':_0x2dd48e});for(const _0x1f656d of _0x2567b4)this['_addSuggestionMarker'](_0x7a72e5,_0x4d744c,_0x2a1824,_0x1f656d,u['getMultiRangeId']());return _0x34760c;}['markDeletion'](_0x280b1c,_0x5778d1=null,_0x181603={}){if(_0x280b1c['isCollapsed'])return null;const _0x5627c2=this['editor']['plugins']['get']('Users')['me'],_0x3c3fe8=new _0x18db69(_0x280b1c['start'],_0x280b1c['end']);for(const {suggestion:_0x2db099,meta:_0x4408fa}of this['_findSuggestions'](_0x3c3fe8,'insertion'))if(_0x4408fa['isOwn']&&!_0x4408fa['isNextTo']){if(_0x2db099['isMultiRange']){const _0x172ea0=_0x2db099['getRanges']()['filter'](_0x2020f3=>'$graveyard'!=_0x2020f3['root']['rootName']);_0x172ea0['every'](_0x19bab5=>_0x3c3fe8['containsRange'](_0x19bab5,!0x0))&&_0x2db099['discard']();if(_0x172ea0['some'](_0x336032=>_0x336032['containsRange'](_0x3c3fe8,!0x0))){const _0x49ca46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5778d1,'accept');return this['forceDefaultExecution'](()=>_0x49ca46([_0x3c3fe8],null,_0x181603)),null;}}else{const _0x11dad1=_0x3c3fe8['getIntersection'](_0x2db099['getFirstRange']());null!==_0x11dad1&&_0x2db099['_onDiscard']([_0x11dad1],null,_0x181603);}}if(_0x3c3fe8['detach'](),_0x3c3fe8['isCollapsed']||'$graveyard'==_0x3c3fe8['root']['rootName'])return null;let _0x18a1e3=null,_0x52ee93=_0x3c3fe8['start'],_0x3f58bf=_0x3c3fe8['end'];const _0x2e8c76=this['_findSuggestions'](_0x3c3fe8,'deletion');for(const {suggestion:_0x2f4194,meta:_0x1ff527}of _0x2e8c76){const _0x18b753=this['_model']['createRange'](_0x52ee93,_0x3f58bf);if(_0x1ff527['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ff527['containsRangeInObject']&&!_0x1ff527['isInsideObject'])){if(_0x2f4194['isMultiRange']){if(!zt(_0x2f4194,_0x181603))continue;let _0x16c924=!0x0;for(const _0x5d66e8 of _0x2f4194['getRanges']()){if(_0x5d66e8['containsRange'](_0x18b753,!0x0))return _0x2f4194;_0x18b753['containsRange'](_0x5d66e8)||(_0x16c924=!0x1);}_0x16c924&&_0x2f4194['discard']();}else{const _0x3ca7e4=_0x2f4194['getFirstRange']();if(_0x3ca7e4['containsRange'](_0x18b753,!0x0))return _0x2f4194;if(!zt(_0x2f4194,_0x181603)){_0x18b753['containsRange'](_0x3ca7e4)?_0x2f4194['removeMarkers']():_0x3ca7e4['containsPosition'](_0x52ee93)?_0x52ee93=_0x3ca7e4['end']:_0x3ca7e4['containsPosition'](_0x3f58bf)&&(_0x3f58bf=_0x3ca7e4['start']);continue;}_0x52ee93=_0x52ee93['isBefore'](_0x3ca7e4['start'])?_0x52ee93:_0x3ca7e4['start'],_0x3f58bf=_0x3f58bf['isAfter'](_0x3ca7e4['end'])?_0x3f58bf:_0x3ca7e4['end'],_0x181603=Object['assign']({},_0x2f4194['attributes']),_0x18a1e3?_0x3ca7e4['start']['isBefore'](_0x18a1e3['getFirstRange']()['start'])?(_0x18a1e3['removeMarkers'](),_0x18a1e3=_0x2f4194):_0x2f4194['removeMarkers']():_0x18a1e3=_0x2f4194;}}}if(_0x18a1e3)return this['_setSuggestionRange'](_0x18a1e3,this['_model']['createRange'](_0x52ee93,_0x3f58bf)),_0x18a1e3;{const _0xb33130=_0x325d63(),_0x558722=this['_model']['createRange'](_0x52ee93,_0x3f58bf),_0x4bb73c=_0x5627c2['id'],_0x37fe47=_0x5778d1?'deletion:'+_0x5778d1:'deletion',_0x8405a1=this['_setSuggestionData']({'id':_0xb33130,'type':_0x37fe47,'createdAt':new Date(),'authorId':_0x4bb73c,'attributes':_0x181603});return this['_addSuggestionMarker'](_0x37fe47,_0xb33130,_0x4bb73c,_0x558722),_0x8405a1;}}['markMultiRangeDeletion'](_0x547d77,_0x5b112c='multi',_0x397ac1={}){const _0x50a074=this['editor']['plugins']['get']('Users')['me'],_0x1c8f8e=_0x547d77['map'](_0x48e3f4=>new _0x18db69(_0x48e3f4['start'],_0x48e3f4['end'])),_0x291031=new Set();for(const {suggestion:_0x1aad5d,meta:_0x9fcbbb}of this['_findSuggestions'](_0x1c8f8e,'insertion'))_0x9fcbbb['isOwn']&&!_0x9fcbbb['isNextTo']&&_0x291031['add'](_0x1aad5d);for(const _0x41b510 of _0x291031)if(_0x41b510['isMultiRange']){const _0x178b93=_0x41b510['getRanges']();(!_0x41b510['attributes']||!_0x41b510['attributes']['skipNestingCheck'])&&(_0x178b93['every'](_0x5879d4=>_0x1c8f8e['some'](_0x1cd2a0=>_0x1cd2a0['containsRange'](_0x5879d4,!0x0)))&&_0x41b510['discard']());if(_0x1c8f8e['every'](_0x510c9f=>_0x178b93['some'](_0x4c4ba6=>_0x4c4ba6['containsRange'](_0x510c9f,!0x0)))){const _0x4cf003=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b112c,'accept');return this['forceDefaultExecution'](()=>_0x4cf003(_0x547d77,null,_0x397ac1)),null;}}else{const _0x4de743=_0x41b510['getFirstRange']();_0x1c8f8e['some'](_0xfe6e13=>_0xfe6e13['containsRange'](_0x4de743,!0x0))&&_0x41b510['discard']();if(_0x1c8f8e['every'](_0x2ec0d5=>_0x4de743['containsRange'](_0x2ec0d5,!0x0))){const _0x10634f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b112c,'accept');return this['forceDefaultExecution'](()=>_0x10634f(_0x1c8f8e,null,_0x397ac1)),null;}}const _0x516b30=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b112c,'join');let _0x35ff00=null;for(const _0x3135bd of this['getSuggestions']())if(_0x3135bd['author']['id']==_0x50a074['id']&&_0x3135bd['isInContent']&&'deletion'==_0x3135bd['type']&&_0x3135bd['subType']==_0x5b112c&&zt(_0x3135bd,_0x397ac1)&&(_0x516b30(_0x3135bd['getRanges'](),_0x1c8f8e)||_0x516b30(_0x1c8f8e,_0x3135bd['getRanges']()))){if(_0x35ff00){if(_0x3135bd['commentThread']&&_0x3135bd['commentThread']['length'])continue;for(const _0x12a882 of _0x3135bd['getRanges']())_0x35ff00['isIntersectingWithRange'](_0x12a882)||_0x35ff00['addRange'](_0x12a882);_0x3135bd['removeMarkers']();}else{_0x35ff00=_0x3135bd;for(const _0x58928b of _0x1c8f8e)_0x3135bd['isIntersectingWithRange'](_0x58928b)||_0x3135bd['addRange'](_0x58928b);}}if(_0x35ff00)return _0x35ff00;_0x291031['clear']();for(const {suggestion:_0x94da3b,meta:_0x197547}of this['_findSuggestions'](_0x1c8f8e,'deletion'))_0x197547['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197547['containsRangeInObject']&&!_0x197547['isInsideObject'])&&zt(_0x94da3b,_0x397ac1)&&_0x291031['add'](_0x94da3b);for(const _0x25bf04 of _0x291031){const _0x5ae444=_0x25bf04['getRanges']();if(!_0x397ac1||!_0x397ac1['skipNestingCheck']){if(_0x1c8f8e['every'](_0x29fe7b=>_0x5ae444['some'](_0x1f177d=>_0x1f177d['containsRange'](_0x29fe7b,!0x0))))return _0x25bf04;}(!_0x25bf04['attributes']||!_0x25bf04['attributes']['skipNestingCheck'])&&(_0x5ae444['every'](_0xd947d3=>_0x1c8f8e['some'](_0xeea4e8=>_0xeea4e8['containsRange'](_0xd947d3,!0x0)))&&_0x25bf04['discard']());}const _0x467b63=_0x325d63(),_0x1c9a5d=_0x50a074['id'],_0x5edd31='deletion:'+_0x5b112c,_0x4d879a=this['_setSuggestionData']({'id':_0x467b63,'type':_0x5edd31,'createdAt':new Date(),'authorId':_0x1c9a5d,'attributes':_0x397ac1});for(const _0x3a0453 of _0x1c8f8e)_0x3a0453['detach'](),_0x3a0453['isCollapsed']||'$graveyard'==_0x3a0453['root']['rootName']||this['_addSuggestionMarker'](_0x5edd31,_0x467b63,_0x1c9a5d,_0x3a0453,u['getMultiRangeId']());return _0x4d879a;}['markAttributeChange'](_0x250fc9,_0x229f3f,_0x51c5cf,_0x230e11,_0x2489ed){if(_0x250fc9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x180204=this['editor']['plugins']['get']('Users')['me']['id'],_0x15bf79=Array['from'](this['_suggestions']['values']())['filter'](_0x23c928=>'attribute'==_0x23c928['type']&&_0x23c928['data']['key']==_0x229f3f&&_0x23c928['isIntersectingWithRange'](_0x250fc9));if('default'===this['_trackFormatChanges']){const _0x50cf5e=this['_findSuggestions'](_0x250fc9,'insertion')['filter'](({meta:_0x214318})=>_0x214318['isOwn']&&!_0x214318['isInsideObject']&&!_0x214318['isNextTo'])['map'](({suggestion:_0x3e8403})=>_0x3e8403);_0x15bf79['unshift'](..._0x50cf5e);}const _0x3eb1e3=new Map([[_0x250fc9,_0x51c5cf]]);for(const _0x5390ed of _0x15bf79){const _0x14d615='attribute'==_0x5390ed['type']?_0x5390ed['data']['oldValue']:void 0x0,_0x1ba568=_0x5390ed['getFirstRange'](),_0x5ae409=Array['from'](_0x3eb1e3['keys']())['find'](_0x4baf90=>_0x4baf90['isIntersecting'](_0x1ba568));if(!_0x5ae409)continue;const _0x3cb504=_0x5ae409['getDifference'](_0x1ba568);this['_isBlockAttribute'](_0x229f3f)&&'insertion'==_0x5390ed['type']&&0x0!=_0x3cb504['length']||(_0x3eb1e3['delete'](_0x5ae409),_0x3cb504['forEach'](_0xdf9e4c=>{_0x3eb1e3['set'](_0xdf9e4c,_0x51c5cf);}),'insertion'!=_0x5390ed['type']&&_0x14d615!=_0x230e11&&_0x3eb1e3['set'](_0x5ae409['getIntersection'](_0x1ba568),_0x14d615));}const _0x18b170=[];for(const [_0x19a48f,_0x4cdf80]of _0x3eb1e3){const _0xbb18b9=_0x325d63(),_0x540f83={'key':_0x229f3f,'oldValue':_0x4cdf80,'newValue':_0x230e11};_0x229f3f['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':_0x229f3f});const _0x5f27ab=('attribute:'+(_0x229f3f+'|'+Gt({'newValue':_0x230e11})))['substring'](0x0,0x3c),_0x4938bc=this['_setSuggestionData']({'id':_0xbb18b9,'type':_0x5f27ab,'data':_0x540f83,'createdAt':new Date(),'authorId':_0x180204,'attributes':_0x2489ed});_0x18b170['push'](_0x4938bc),this['_addSuggestionMarker'](_0x5f27ab,_0xbb18b9,_0x180204,_0x19a48f);}return _0x18b170;}['enableDefaultAttributesIntegration'](_0x30e990){this['enableCommand'](_0x30e990,(_0x265e18,..._0x1c375c)=>{this['_recordAttributeChanges'](()=>{_0x265e18(..._0x1c375c);});});}['registerBlockAttribute'](_0xa01b47){this['_blockAttributeKeys']['add'](_0xa01b47);}['registerInlineAttribute'](_0x27ba16){this['_inlineAttributeKeys']['add'](_0x27ba16);}['_getAttributeKey'](_0x9e7222){return'attribute'==_0x9e7222['type']?_0x9e7222['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b54a8,_0x2e237a){const _0x11879f=_0x5b54a8['getFirstMarker']();this['_model']['change'](_0x2b3c0b=>{_0x2b3c0b['updateMarker'](_0x11879f,{'range':_0x2e237a});});}['_addThreadToSuggestion'](_0x5e0bfa){const _0x487faa=_0x5e0bfa['id'],_0xf86ec5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x487faa)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf86ec5,'threadId':_0x487faa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x513c66=this['_commentsRepository']['getCommentThread'](_0x487faa);_0x513c66['unbind']('isRemovable'),_0x513c66['isRemovable']=!0x1,_0x5e0bfa['commentThread']=_0x513c66;}['_checkSuggestionCorrectness'](_0x2238bc,_0x176700,_0x4f5989,_0x5e1f88){if(_0x2238bc['type']!=_0x176700||_0x2238bc['subType']!=_0x4f5989||_0x2238bc['creator']['id']!=_0x5e1f88)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x225cd0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x534c9f,_0x2c3a3d){const _0x13aa6a=_0x534c9f['getFirstRange']();if(_0x2c3a3d['isEqual'](_0x13aa6a))_0x534c9f['removeMarkers']();else{if(_0x13aa6a['containsRange'](_0x2c3a3d)){const _0x3ed3f4=this['_model']['createPositionAt'](_0x2c3a3d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c9f,this['_model']['createRange'](_0x13aa6a['start'],_0x3ed3f4));const _0x594de4=_0x325d63(),_0xbdb23b=_0x534c9f['creator']['id'],_0x2921c8=_0x534c9f['type']+':'+_0x534c9f['subType'];this['_setSuggestionData']({'id':_0x594de4,'type':_0x2921c8,'createdAt':new Date(),'authorId':_0xbdb23b,'data':_0x534c9f['data'],'attributes':_0x534c9f['attributes']});const _0x4cbccf=this['_model']['createPositionAt'](_0x2c3a3d['end']['parent'],'after'),_0x315892=this['_model']['createRange'](_0x4cbccf,_0x13aa6a['end']);this['_addSuggestionMarker'](_0x2921c8,_0x594de4,_0xbdb23b,_0x315892);}else{if(_0x13aa6a['containsPosition'](_0x2c3a3d['start'])){const _0x184eb9=this['_model']['createPositionAt'](_0x2c3a3d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c9f,this['_model']['createRange'](_0x13aa6a['start'],_0x184eb9));}else{const _0x57b6b3=this['_model']['createPositionAt'](_0x2c3a3d['end']['parent'],'after');this['_setSuggestionRange'](_0x534c9f,this['_model']['createRange'](_0x57b6b3,_0x13aa6a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x70dfd){for(const {suggestion:_0x3bc67e,meta:_0x40dbdd}of this['_findSuggestions'](_0x70dfd,'insertion')){if(!_0x40dbdd['isOwn'])continue;const _0x40ebac=_0x3bc67e['getRanges']();for(const _0x482958 of _0x40ebac)if(!_0x70dfd['getDifference'](_0x482958)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1712bc){const _0x35cc91=this['editor']['plugins']['get']('Users')['getUser'](_0x1712bc);if(!_0x35cc91)throw new _0x225cd0('track-changes-user-not-found',this);return _0x35cc91;}['_getExternalAuthor'](_0x4ec24f){const _0x304ae0=this['editor']['plugins']['get']('Users'),_0x2de300=_0x532d7d('external:'+_0x4ec24f),_0x20624b=_0x304ae0['getUser'](_0x2de300);return _0x20624b||_0x304ae0['addUser']({'id':_0x2de300,'name':_0x4ec24f});}['_createSuggestion'](_0x249409,_0x1f0571,_0x26f506,_0x4f4c54,_0x271109){const _0x1fe104=this['_getAuthorFromId'](_0x4f4c54),_0x83e0c8=this['_suggestionFactory']['buildSuggestion'](_0x249409,_0x1f0571,_0x26f506,_0x1fe104,_0x271109,_0x48325c=>{this['_updateSuggestionData'](_0x26f506,{'attributes':_0x48325c});const _0x3fe6e5=this['getSuggestion'](_0x26f506);this['_joinWithAdjacentSuggestions'](new Set([_0x3fe6e5])),this['_refreshSuggestionsChain'](new Set([_0x3fe6e5]));});return this['listenTo'](_0x83e0c8,'accept',()=>{this['_updateSuggestionData'](_0x26f506,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x83e0c8,'discard',()=>{this['_updateSuggestionData'](_0x26f506,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x26f506,_0x83e0c8),this['_suggestionState']['set'](_0x83e0c8,'notReady'),_0x83e0c8;}['_splitMarkerName'](_0x4940c6){const _0x542105=_0x4940c6['split'](':');return{'group':_0x542105[0x0],'type':_0x542105[0x1],'subType':_0x542105['length']>=0x5?_0x542105[0x2]:null,'id':_0x542105['length']<0x5?_0x542105[0x2]:_0x542105[0x3],'authorId':_0x542105['length']<0x5?_0x542105[0x3]:_0x542105[0x4],'markerCount':0x6==_0x542105['length']?_0x542105[0x5]:null};}['_breakSuggestionMarker'](_0x136902,_0x45d6f5,_0xf33094){const _0x25f84c=_0x136902['getFirstRange'](),_0x4ca3bd=_0x25f84c['start'],_0x2672fb=_0x25f84c['end'];this['_setSuggestionRange'](_0x136902,this['_model']['createRange'](_0x4ca3bd,_0x45d6f5));const _0x4ecd06=_0x325d63(),_0x193b6f=_0x136902['creator']['id'],_0x43b8c6=_0x136902['type']+(_0x136902['subType']?':'+_0x136902['subType']:'');this['_setSuggestionData']({'id':_0x4ecd06,'type':_0x43b8c6,'createdAt':new Date(),'authorId':_0x193b6f,'originalSuggestionId':_0x136902['id'],'attributes':_0x136902['attributes'],'data':_0x136902['data']});const _0x31fa74=this['_getAttributeKey'](_0x136902);('formatBlock'==_0x136902['type']||_0x31fa74&&this['_isBlockAttribute'](_0x31fa74))&&(_0xf33094=this['_model']['createPositionBefore'](_0xf33094['parent'])),this['_addSuggestionMarker'](_0x43b8c6,_0x4ecd06,_0x193b6f,this['_model']['createRange'](_0xf33094,_0x2672fb));}['_findSuggestions'](_0x2f0e75,_0x64871d=null){const _0x15dd30=[],_0x53e4fb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f0e75)||(_0x2f0e75=[_0x2f0e75]);for(const _0x58f99e of this['getSuggestions']()){if(!_0x58f99e['isInContent'])continue;if(_0x64871d&&_0x58f99e['type']!=_0x64871d)continue;let _0x4cd35d=!0x1;for(const _0x50fdd1 of _0x58f99e['getRanges']()){for(const _0x2dcc7c of _0x2f0e75){const _0x45b76a=_0x2dcc7c['start']['isEqual'](_0x50fdd1['end'])||_0x2dcc7c['end']['isEqual'](_0x50fdd1['start']);if(_0x45b76a||_0x2dcc7c['getIntersection'](_0x50fdd1)){const _0x158dc0=_0x2dcc7c['containsRange'](_0x50fdd1)&&Ut(this['_model']['schema'],_0x50fdd1['start'],_0x2dcc7c),_0x2d4935=_0x50fdd1['containsRange'](_0x2dcc7c)&&Ut(this['_model']['schema'],_0x2dcc7c['start'],_0x50fdd1);_0x15dd30['push']({'suggestion':_0x58f99e,'meta':{'isOwn':_0x53e4fb==_0x58f99e['author'],'isNextTo':_0x45b76a,'isInsideObject':_0x158dc0,'containsRangeInObject':_0x2d4935}}),_0x4cd35d=!0x0;break;}}if(_0x4cd35d)break;}}return _0x15dd30;}['_addSuggestionMarker'](_0x4c9aac,_0x533452,_0x4a1fb1,_0x282d21,_0x11bf90){this['_model']['change'](_0x164b05=>{let _0x3e90cf='suggestion:'+_0x4c9aac+':'+_0x533452+':'+_0x4a1fb1;_0x11bf90&&(_0x3e90cf=_0x3e90cf+':'+_0x11bf90),_0x164b05['addMarker'](_0x3e90cf,{'range':_0x282d21,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x512e32){const _0x455eae=_0x512e32['previous'],_0x1247c6=_0x512e32['next'];_0x512e32['previous']=null,_0x512e32['next']=null,null!=_0x455eae&&_0x455eae['next']==_0x512e32&&(_0x455eae['next']=_0x1247c6),null!=_0x1247c6&&_0x1247c6['previous']==_0x512e32&&(_0x1247c6['previous']=_0x455eae),'ready'==this['_suggestionState']['get'](_0x512e32)&&(this['_suggestionState']['set'](_0x512e32,'removed'),this['fire']('suggestionUnloaded',_0x512e32,_0x455eae,_0x1247c6));}['_setSuggestionData'](_0x5d922e){const _0x359f62=_0x5d922e['id'],_0x22f43e=this['addSuggestionData'](_0x5d922e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28fb03=this['editor']['plugins']['get']('PendingActions'),_0xc4e45e=_0x22f43e['hasComments'],_0x903350=_0x22f43e['subType']?_0x22f43e['type']+':'+_0x22f43e['subType']:_0x22f43e['type'],_0x4aa800=this['editor']['locale'],_0x577744=_0x28fb03['add'](o(_0x4aa800,'PENDING_ACTION_SUGGESTION')),_0x4d29e6={'id':_0x359f62,'type':_0x903350,'hasComments':_0xc4e45e,'data':_0x5d922e['data']||null,'originalSuggestionId':_0x5d922e['originalSuggestionId']||null,'attributes':_0x22f43e['attributes']};this['_adapter']['addSuggestion'](_0x4d29e6)['then'](_0x59d7c8=>{_0x22f43e['_saved']=!0x0,_0x28fb03['remove'](_0x577744),_0x59d7c8&&_0x59d7c8['createdAt']&&(this['_suggestions']['get'](_0x359f62)['createdAt']=_0x59d7c8['createdAt']);})['catch'](_0x40ab4d=>{throw _0x128946('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x22f43e['discard']();}),_0x22f43e['stopListening'](),this['_suggestions']['delete'](_0x22f43e['id']),this['_suggestionState']['delete'](_0x22f43e),_0x40ab4d;});}return _0x22f43e;}['_isBlockAttribute'](_0x41af30){return this['_blockAttributeKeys']['has'](_0x41af30);}['_updateSuggestionData'](_0x56bd65,_0x4bcf6d){const _0x4b1390=this['editor']['plugins']['get']('PendingActions'),_0x400b85=this['getSuggestion'](_0x56bd65);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x400b85['_saved']){const _0x136e04=_0x4b1390['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56bd65,_0x4bcf6d)['then'](()=>{_0x4b1390['remove'](_0x136e04);});}else _0x400b85['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56bd65,_0x4bcf6d);});}}['_getSuggestionData'](_0x3dfabc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x225cd0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dfabc);}['_handleNewSuggestionMarker'](_0x88861){const {id:_0x16e66b,type:_0x59b4a3,subType:_0x4bf8a4,authorId:_0x227d36}=this['_splitMarkerName'](_0x88861),_0x13259a=this['_suggestions']['get'](_0x16e66b)||this['_createSuggestion'](_0x59b4a3,_0x4bf8a4,_0x16e66b,_0x227d36,{});switch(this['_checkSuggestionCorrectness'](_0x13259a,_0x59b4a3,_0x4bf8a4,_0x227d36),this['_suggestionState']['get'](_0x13259a)){case'notReady':this['_getSuggestionData'](_0x16e66b)['then'](_0xdcbbc7=>{let _0x13c959=Promise['resolve']();_0xdcbbc7['hasComments']&&(_0x13c959=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16e66b})),_0x13c959['then'](()=>{this['addSuggestionData'](_0xdcbbc7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x13259a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16e66b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x13259a,'ready'),this['fire']('suggestionLoaded',_0x13259a);break;case'ready':this['fire']('suggestionChanged',_0x13259a);}return _0x13259a['addMarkerName'](_0x88861),_0x13259a;}['_refreshSuggestionsChain'](_0x474bde){const _0x386040=Array['from'](_0x474bde),_0x199d16=_0x386040['filter'](_0x14b0e1=>'attribute'==_0x14b0e1['type']);this['_refreshAttributeSuggestionsChain'](_0x199d16);const _0x3fc9f1=_0x386040['filter'](_0x241679=>!_0x241679['isMultiRange']&&'attribute'!=_0x241679['type']),_0x39fa29=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47c94c=>!_0x47c94c['isMultiRange']&&'attribute'!=_0x47c94c['type']),_0x54f3e9=_0x39fa29['filter'](_0x387f8b=>!_0x474bde['has'](_0x387f8b)),_0x5b47b4=new Map(_0x39fa29['map'](_0x2f4b0a=>[_0x2f4b0a,this['_suggestionFactory']['getSuggestionCallback'](_0x2f4b0a['type'],_0x2f4b0a['subType'],'chain')])),_0x45709c=new Map(_0x39fa29['map'](_0x11b7ef=>[_0x11b7ef,_0x11b7ef['getFirstRange']()])),_0x476b59=new Set(),_0x9e4433=new Set();for(let _0x1c982d=0x0;_0x1c982d<_0x3fc9f1['length'];_0x1c982d++)_0x5a683d(_0x3fc9f1[_0x1c982d],_0x3fc9f1,_0x1c982d+0x1);for(let _0x468050=0x0;_0x468050<_0x3fc9f1['length'];_0x468050++)_0x5a683d(_0x3fc9f1[_0x468050],_0x54f3e9,0x0);const _0x56e574=new Set();for(let _0x801d24=0x0;_0x801d24<_0x3fc9f1['length'];_0x801d24++){const _0x3790c2=_0x3fc9f1[_0x801d24];!_0x9e4433['has'](_0x3790c2)&&_0x3790c2['previous']&&(_0x56e574['add'](_0x3790c2['previous']),_0x3790c2['previous']['next']===_0x3790c2&&(_0x3790c2['previous']['next']=null),_0x3790c2['previous']=null),!_0x476b59['has'](_0x3790c2)&&_0x3790c2['next']&&(_0x56e574['add'](_0x3790c2['next']),_0x3790c2['next']['previous']===_0x3790c2&&(_0x3790c2['next']['previous']=null),_0x3790c2['next']=null);}function _0x5a683d(_0x1c5b32,_0x436fd3,_0x4195d9){for(let _0x1b8dda=_0x4195d9;_0x1b8dda<_0x436fd3['length'];_0x1b8dda++){const _0x358392=_0x5e0fa8(_0x1c5b32,_0x436fd3[_0x1b8dda]);_0x358392&&(_0x358392[0x0]['next']=_0x358392[0x1],_0x358392[0x1]['previous']=_0x358392[0x0],_0x476b59['add'](_0x358392[0x0]),_0x9e4433['add'](_0x358392[0x1]));}}function _0x5e0fa8(_0x14de92,_0x3883e1){if(_0x14de92['author']['id']!==_0x3883e1['author']['id'])return null;const _0xce6d14=_0x5b47b4['get'](_0x14de92)(_0x14de92,_0x3883e1,_0x45709c['get'](_0x14de92),_0x45709c['get'](_0x3883e1));if(!_0xce6d14)return null;return _0x5b47b4['get'](_0x3883e1)(_0x14de92,_0x3883e1,_0x45709c['get'](_0x14de92),_0x45709c['get'](_0x3883e1))?_0xce6d14[0x1]['commentThread']&&_0xce6d14[0x1]['commentThread']['length']?null:_0xce6d14:null;}_0x56e574['size']&&this['_refreshSuggestionsChain'](_0x56e574);}['_refreshAttributeSuggestionsChain'](_0x412213){if(0x0==_0x412213['length'])return;const _0x176522=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a8c16=>'attribute'==_0x1a8c16['type']&&_0x1a8c16['_isDataLoaded']),_0x1757e7=[],_0x3f41b2=new Map();for(const _0x5a5314 of _0x176522){const _0x3e7d2f=_0x532d7d(_0x5a5314['attributes']);_0x3f41b2['has'](_0x3e7d2f)||(_0x3f41b2['set'](_0x3e7d2f,_0x1757e7['length']),_0x1757e7['push']([]));const _0x52676a=_0x3f41b2['get'](_0x3e7d2f);_0x1757e7[_0x52676a]['push'](_0x5a5314);}!(function(){_0x1757e7['sort']((_0x3725a9,_0x209edd)=>{const _0x22f8fe=_0x3725a9[0x0]['createdAt'],_0x277cdb=_0x209edd[0x0]['createdAt'];return _0x22f8fe==_0x277cdb?_0x3725a9[0x0]['attributes']['groupId']<_0x209edd[0x0]['attributes']['groupId']?-0x1:0x1:_0x22f8fe<_0x277cdb?-0x1:0x1;});for(const _0x126446 of _0x1757e7)_0x126446['sort']((_0x427b36,_0xa8b99)=>_0x427b36['id']<_0xa8b99['id']?-0x1:0x1);}());for(let _0x4bc900=0x0;_0x4bc900<_0x1757e7['length'];_0x4bc900++){if(0x0==_0x1757e7[_0x4bc900]['length'])continue;const _0x149040=[];for(let _0xd6dc0c=_0x4bc900+0x1;_0xd6dc0c<_0x1757e7['length'];_0xd6dc0c++)0x0!=_0x1757e7[_0xd6dc0c]['length']&&_0xd640b4(_0x1757e7[_0x4bc900],_0x1757e7[_0xd6dc0c])&&_0x149040['push'](_0xd6dc0c);for(const _0x3dda55 of _0x149040)_0x1757e7[_0x4bc900]=_0x1757e7[_0x4bc900]['concat'](_0x1757e7[_0x3dda55]),_0x1757e7[_0x3dda55]=[];}for(const _0x4c38eb of _0x1757e7)for(let _0x287331=0x0;_0x287331<_0x4c38eb['length'];_0x287331++){const _0x59d6cf=_0x4c38eb[_0x287331+0x1]||null;_0x4c38eb[_0x287331]['next']!==_0x59d6cf&&(_0x4c38eb[_0x287331]['next']=_0x59d6cf);}for(const _0x27970a of _0x1757e7)for(let _0x38e2b5=0x0;_0x38e2b5<_0x27970a['length'];_0x38e2b5++){const _0x37dd08=_0x27970a[_0x38e2b5-0x1]||null;_0x27970a[_0x38e2b5]['previous']!==_0x37dd08&&(_0x27970a[_0x38e2b5]['previous']=_0x37dd08);}function _0xd640b4(_0x388fc2,_0x2afd74){if(_0x388fc2[0x0]['attributes']['groupId']!==_0x2afd74[0x0]['attributes']['groupId']&&_0x388fc2[0x0]['author']!==_0x2afd74[0x0]['author'])return!0x1;if(!function(_0x4a409f,_0x2fbe54){if(!_0x4a409f['hasComments']&&!_0x2fbe54['hasComments'])return!0x0;if(_0x4a409f['hasComments']&&_0x2fbe54['hasComments'])return!0x1;if(_0x4a409f['hasComments']&&_0x2fbe54['createdAt']<_0x4a409f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2fbe54['hasComments']&&_0x4a409f['createdAt']<_0x2fbe54['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x388fc2[0x0],_0x2afd74[0x0]))return!0x1;const _0x3547cc=xt(_0x388fc2[0x0]['attributes'],'groupId'),_0x1639f6=xt(_0x2afd74[0x0]['attributes'],'groupId');if(!_0x49b274(_0x3547cc,_0x1639f6))return!0x1;return!!_0x388fc2['every'](_0x18c721=>_0x2afd74['some'](_0x8ced78=>_0x18c721['getFirstRange']()['isEqual'](_0x8ced78['getFirstRange']())))&&_0x2afd74['every'](_0x444b61=>_0x388fc2['some'](_0x3add02=>_0x444b61['getFirstRange']()['isEqual'](_0x3add02['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xc52cef){const _0x3f525f=Array['from'](_0xc52cef),_0x2a35ce=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5d569d=_0x2a35ce['filter'](_0x443ac8=>!_0xc52cef['has'](_0x443ac8)),_0x4163a3=new Map(_0x3f525f['map'](_0x2bf9e7=>[_0x2bf9e7,this['_suggestionFactory']['getSuggestionCallback'](_0x2bf9e7['type'],_0x2bf9e7['subType'],'join')])),_0x17c8b4=new Map(_0x2a35ce['map'](_0x26a68e=>[_0x26a68e,_0x26a68e['getRanges']()]));for(let _0x36be63=0x0;_0x36be63<_0x3f525f['length'];_0x36be63++){if(_0x1379ee(this,_0x3f525f[_0x36be63],_0x3f525f,_0x36be63+0x1))return!0x0;}for(let _0x3c37a7=0x0;_0x3c37a7<_0x3f525f['length'];_0x3c37a7++){if(_0x1379ee(this,_0x3f525f[_0x3c37a7],_0x5d569d,0x0))return!0x0;}return!0x1;function _0x1379ee(_0x53d253,_0x7d7c6b,_0x3abe6c,_0x1b16d5){for(let _0x3b6981=_0x1b16d5;_0x3b6981<_0x3abe6c['length'];_0x3b6981++){const _0x340737=_0x3abe6c[_0x3b6981];if(_0x340737['type']!==_0x7d7c6b['type']||_0x340737['author']['id']!==_0x7d7c6b['author']['id']||_0x340737['subType']!==_0x7d7c6b['subType'])continue;if(!qt(_0x7d7c6b,_0x340737))continue;if('attribute'==_0x7d7c6b['type']&&_0x7d7c6b['data']['oldValue']!=_0x340737['data']['oldValue'])continue;if('attribute'==_0x7d7c6b['type']&&_0x53d253['_isBlockAttribute'](_0x7d7c6b['data']['key']))continue;if('formatBlock'==_0x7d7c6b['type']){const _0x3dc706=_0x53d253['editor']['model'],_0x2ac52e=_0x7d7c6b['getContainedElement']();if(_0x2ac52e&&(_0x3dc706['schema']['isObject'](_0x2ac52e)||_0x3dc706['schema']['isLimit'](_0x2ac52e)))continue;}const _0x165490=_0x4163a3['get'](_0x7d7c6b),_0x860323=_0x17c8b4['get'](_0x7d7c6b),_0x5dcbc5=_0x17c8b4['get'](_0x340737),_0x46fc82=_0x7d7c6b['commentThread']&&_0x7d7c6b['commentThread']['length'],_0x3d05f5=_0x340737['commentThread']&&_0x340737['commentThread']['length'];if(!_0x46fc82&&_0x165490(_0x5dcbc5,_0x860323))return _0x53d253['_joinSuggestions'](_0x340737,_0x7d7c6b),_0x17c8b4['delete'](_0x7d7c6b),!0x0;if(!_0x3d05f5&&_0x165490(_0x860323,_0x5dcbc5))return _0x53d253['_joinSuggestions'](_0x7d7c6b,_0x340737),_0x17c8b4['delete'](_0x340737),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a706d,_0x12e681){if(_0x2a706d['isMultiRange']){for(const _0x13ee05 of _0x12e681['getRanges']())_0x2a706d['addRange'](_0x13ee05);}else{const _0x34257e=_0x12e681['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a706d,this['_model']['createRange'](_0x2a706d['getFirstRange']()['start'],_0x34257e));}_0x12e681['removeMarkers']();}['_getMarkerAnnouncementText'](_0x423674,_0x218d20,_0x49e73c){const _0x41d92b=_0x423674['startsWith']('format')||_0x423674['startsWith']('attribute')?'FORMATTING':_0x423674['toUpperCase']();return o(this['editor']['locale'],_0x218d20+'_'+_0x41d92b+'_SUGGESTION_ANNOUNCEMENT',_0x49e73c);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fb17a=this['editor'];if(!_0x2fb17a['ui'])return;const {ariaLiveAnnouncer:_0x3ac23e}=_0x2fb17a['ui'];_0x196312(this['_model'],({left:_0x110613,entered:_0x32ed2f})=>{for(const _0x4a8f1d of _0x110613){const {group:_0x2039b3,type:_0x3950dc}=this['_splitMarkerName'](_0x4a8f1d['name']);if('suggestion'===_0x2039b3){_0x3ac23e['announce'](this['_getMarkerAnnouncementText'](_0x3950dc,'LEAVE'));break;}}for(const _0x3de1f4 of _0x32ed2f){const {group:_0x1d9f48,type:_0x315a44}=this['_splitMarkerName'](_0x3de1f4['name']);if('suggestion'===_0x1d9f48){_0x3ac23e['announce'](this['_getMarkerAnnouncementText'](_0x315a44,'ENTER',_0x1009b2(_0x10c48c)));break;}}});}['_processAttributeChanges'](_0x3fd102){if(this['_recordAttributeSuggestions'])return!0x1;const _0x20f4a7=this['editor'],_0x4b9120=_0x20f4a7['model']['document']['differ']['getChanges']();if(0x0==_0x4b9120['length'])return!0x1;const _0x5eb3d1=[],_0x49976c=_0x4b9120['filter'](_0x1ebc37=>'attribute'==_0x1ebc37['type']),_0x4284d4=_0x4b9120['filter'](_0x315152=>'insert'==_0x315152['type']&&'$text'!=_0x315152['name']),_0x3aa9f4=_0x4b9120['filter'](_0x907942=>'remove'==_0x907942['type']&&'$text'!=_0x907942['name']);for(const _0x18a687 of _0x49976c)_0x5eb3d1['push']({'key':_0x18a687['attributeKey'],'newValue':_0x18a687['attributeNewValue'],'oldValue':_0x18a687['attributeOldValue'],'range':Lt(_0x18a687['range'],_0x20f4a7['model'])});for(const _0x3d7ed9 of _0x4284d4){const _0x27bc5a=_0x3aa9f4['find'](_0xcc682f=>_0xcc682f['position']['isEqual'](_0x3d7ed9['position']));_0x27bc5a&&_0x5eb3d1['push']({'key':m,'newValue':_0x3d7ed9['name'],'oldValue':_0x27bc5a['name'],'range':_0x20f4a7['model']['createRangeOn'](_0x3d7ed9['position']['nodeAfter'])});}return 0x0!=_0x5eb3d1['length']&&this['_reduceExistingSuggestions'](_0x3fd102,_0x5eb3d1);}['_processAttributeSuggestions'](_0x2d19c7){let _0x5ec22a=!0x1;const _0x4545d6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38f0f1=>_0x38f0f1['data']['newRange']&&_0x38f0f1['name']['startsWith']('suggestion:attribute:'));for(const _0x1a5d40 of _0x4545d6){const {subType:_0x172627,id:_0x4cceb1}=this['_splitMarkerName'](_0x1a5d40['name']),_0x7df15c=_0x172627['split']('|')[0x0];for(const _0x5c059d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5c059d['id']!=_0x4cceb1&&'attribute'==_0x5c059d['type']&&_0x5c059d['data']&&_0x5c059d['data']['key']==_0x7df15c&&_0x5c059d['getFirstRange']()['isIntersecting'](_0x1a5d40['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5c059d,_0x1a5d40['data']['newRange'],_0x2d19c7),_0x5ec22a=!0x0);}return _0x5ec22a;}['_recordAttributeChanges'](_0x33d54a){this['_recordAttributeSuggestions']=!0x0,_0x33d54a();}['_isRegisteredAttribute'](_0x408fb8){const _0x234a19=this['_isBlockAttribute'](_0x408fb8),_0x3fc677=this['_inlineAttributeKeys']['has'](_0x408fb8);return _0x234a19||_0x3fc677;}['_reduceExistingSuggestions'](_0x52f325,_0x291d5d){if(0x0==_0x291d5d['length'])return!0x1;let _0x41d71c=!0x1;for(const _0xe6452b of _0x291d5d){const _0x4aacbc=this['_findSuggestions'](_0xe6452b['range'],'attribute')['filter'](_0x43f617=>!_0x43f617['meta']['isNextTo'])['map'](_0x10b951=>_0x10b951['suggestion']),_0xe1a1c=_0x532d7d({'newValue':_0xe6452b['newValue']});_0x4aacbc['filter'](_0xe10088=>{const [_0x2bac06,_0x27d741]=_0xe10088['subType']['split']('|');return _0x2bac06==_0xe6452b['key']&&_0x27d741!=_0xe1a1c;})['forEach'](_0x3c0782=>{this['_reduceSuggestionAttributeRange'](_0x3c0782,_0xe6452b['range'],_0x52f325),_0x41d71c=!0x0;});}return _0x41d71c;}['_reduceSuggestionAttributeRange'](_0xe5a92f,_0x188dbe,_0x3a581b){const _0xa7257e=_0xe5a92f['getFirstRange']()['getDifference'](_0x188dbe);0x0!==_0xa7257e['length']?0x1!==_0xa7257e['length']?this['_breakSuggestionMarker'](_0xe5a92f,_0x188dbe['start'],_0x188dbe['end']):this['_setSuggestionRange'](_0xe5a92f,_0xa7257e[0x0]):_0x3a581b['removeMarker'](_0xe5a92f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x240ff6){this['_editor']=_0x240ff6,this['_model']=_0x240ff6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1cdba6,_0x57ef20,_0x24c3c6,_0x1c476a,_0x2b1202,_0x4febfd){return new u(this['_model'],{'type':_0x1cdba6,'subType':_0x57ef20,'id':_0x24c3c6,'author':_0x1c476a,'creator':_0x1c476a,'attributes':_0x2b1202,'onAttributesChange':_0x4febfd,'onAccept':(..._0x5e6a29)=>this['getSuggestionCallback'](_0x1cdba6,_0x57ef20,'accept')(..._0x5e6a29),'onDiscard':(..._0x1a6df1)=>this['getSuggestionCallback'](_0x1cdba6,_0x57ef20,'discard')(..._0x1a6df1)});}['registerCustomCallback'](_0x483c1a,_0x1d6111,_0x51855c,_0x245502){const _0x3d7dfa=_0x483c1a+':'+_0x1d6111+':'+_0x51855c;this['_customCallbacks']['set'](_0x3d7dfa,_0x245502);}['getSuggestionCallback'](_0x2d636b,_0x44e931,_0x55d695){const _0xa0caef=_0x2d636b+':'+_0x44e931+':'+_0x55d695;return this['_customCallbacks']['get'](_0xa0caef)||this['_defaultCallbacks']['get'](_0x2d636b+':'+_0x55d695);}['_registerDefaultCallbacks'](){const _0x1dafc0=()=>!0x1,_0x578f79=_0x4ec158=>{_0x4ec158['sort']((_0x4766cd,_0x4dbd9b)=>_0x4766cd['start']['isBefore'](_0x4dbd9b['start'])?0x1:-0x1),this['_model']['change'](_0x1dcd65=>{for(const _0xde8dfa of _0x4ec158){let _0x1dcc00;_0x1dcc00=_0xde8dfa['end']['isAtEnd']&&_0xde8dfa['end']['parent']==_0xde8dfa['start']['nodeAfter']?_0x1dcd65['createSelection'](_0xde8dfa['start']['nodeAfter'],'on'):_0x1dcd65['createSelection'](_0xde8dfa),this['_model']['deleteContent'](_0x1dcc00,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x768a15=(_0x260ffb,_0x5a431b)=>{_0x5a431b&&this['_model']['change'](_0x4d8088=>{const {commandName:_0x3d72d1,commandParams:_0x173b1a=[]}=_0x5a431b,_0x2daca6=_0x260ffb['map'](_0x52c265=>(Vt(_0x52c265)&&(_0x52c265=this['_model']['createRange'](_0x52c265['end'])),_0x52c265))['filter'](_0x82ac99=>'$graveyard'!==_0x82ac99['root']['rootName']);if(_0x2daca6['length']<0x1)return;const _0x167315=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4aab2c=>_0x18db69['fromRange'](_0x4aab2c));_0x4d8088['setSelection'](_0x2daca6);for(const _0x91814c of this['_editor']['commands']['commands']())_0x91814c['refresh']();_0x173b1a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3d72d1,..._0x173b1a);const _0x2587fb=_0x167315['filter'](_0x4cfd50=>'$graveyard'!=_0x4cfd50['root']['rootName']);_0x2587fb['length']>0x0&&_0x4d8088['setSelection'](_0x2587fb);for(const _0x45b421 of _0x167315)_0x45b421['detach']();});},_0xc445ae=(_0x396082,_0x4a50c9)=>0x1==_0x396082['length']&&0x1==_0x4a50c9['length']&&_0x396082[0x0]['end']['isEqual'](_0x4a50c9[0x0]['start']),_0x551137=(_0x815b69,_0x58d8e4,_0x5cda10,_0x520f81)=>Ht(_0x815b69,_0x58d8e4,_0x5cda10,_0x520f81)?[_0x815b69,_0x58d8e4]:Ht(_0x58d8e4,_0x815b69,_0x520f81,_0x5cda10)?[_0x58d8e4,_0x815b69]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1dafc0),this['_defaultCallbacks']['set']('insertion:discard',_0x578f79),this['_defaultCallbacks']['set']('insertion:join',_0xc445ae),this['_defaultCallbacks']['set']('insertion:chain',_0x551137),this['_defaultCallbacks']['set']('deletion:accept',_0x578f79),this['_defaultCallbacks']['set']('deletion:discard',_0x1dafc0),this['_defaultCallbacks']['set']('deletion:join',_0xc445ae),this['_defaultCallbacks']['set']('deletion:chain',_0x551137),this['_defaultCallbacks']['set']('formatInline:accept',_0x768a15),this['_defaultCallbacks']['set']('formatInline:discard',_0x1dafc0),this['_defaultCallbacks']['set']('formatInline:join',_0xc445ae),this['_defaultCallbacks']['set']('formatInline:chain',_0x1dafc0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x768a15),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1dafc0),this['_defaultCallbacks']['set']('formatBlock:join',_0xc445ae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1dafc0),this['_defaultCallbacks']['set']('attribute:accept',_0x1dafc0),this['_defaultCallbacks']['set']('attribute:discard',(_0x49b832,_0x547d32)=>{if(!_0x547d32)return;const _0x108f1a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2d054c=>{if(_0x547d32['key']==m)for(const _0x44a729 of _0x49b832){const _0x45c151=_0x44a729['start']['nodeAfter'],_0x4753b4=_0x547d32['oldValue'];_0x2d054c['rename'](_0x45c151,_0x4753b4);}else{if(_0x108f1a['_isBlockAttribute'](_0x547d32['key'])){for(const _0x5f78fa of _0x49b832)void 0x0!==_0x547d32['oldValue']?_0x2d054c['setAttribute'](_0x547d32['key'],_0x547d32['oldValue'],_0x5f78fa['start']['nodeAfter']):_0x2d054c['removeAttribute'](_0x547d32['key'],_0x5f78fa['start']['nodeAfter']);}else{for(const _0x28a240 of _0x49b832)_0x547d32['oldValue']?_0x2d054c['setAttribute'](_0x547d32['key'],_0x547d32['oldValue'],_0x28a240):_0x2d054c['removeAttribute'](_0x547d32['key'],_0x28a240);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xc445ae);}}function Ut(_0x3012d1,_0x263cb4,_0x368c5d){for(const _0x37d00b of _0x263cb4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37d00b['root']==_0x37d00b)return!0x1;if(!_0x368c5d['containsItem'](_0x37d00b))return!0x1;if(_0x3012d1['isObject'](_0x37d00b)||_0x3012d1['isLimit'](_0x37d00b))return!0x0;}return!0x1;}function Vt(_0x365fbe){return _0x365fbe['end']['parent']==_0x365fbe['start']['nodeAfter']&&_0x365fbe['end']['isAtStart'];}function Pt(_0x4ba52e,_0x1fd8bd,_0x41faa7,_0x290857){const _0x4289df=_0x2b9c52=>!_0x2b9c52['item']['is']('$textProxy')&&!_0x290857['isObject'](_0x2b9c52['item']),_0xa403ae=_0x4ba52e['start']['getLastMatchingPosition'](_0x4289df),_0x280c91=_0x4ba52e['end']['getLastMatchingPosition'](_0x4289df,{'direction':'backward'});return(!_0x4ba52e['start']['isEqual'](_0xa403ae)||!_0x4ba52e['end']['isEqual'](_0x280c91))&&(_0xa403ae['isBefore'](_0x280c91)?_0x41faa7['updateMarker'](_0x1fd8bd,{'range':_0x41faa7['createRange'](_0xa403ae,_0x280c91)}):_0x41faa7['removeMarker'](_0x1fd8bd),!0x0);}function Gt(_0x5eff87){return _0x532d7d(_0x5eff87);}function Ft(_0x4f5643){const _0x429b72=_0x4f5643['start']['nodeAfter'];return _0x429b72&&_0x429b72['is']('element');}function Lt(_0x4e3f2f,_0x181c06){return null==_0x4e3f2f['end']['nodeBefore']&&_0x4e3f2f['end']['parent']==_0x4e3f2f['start']['nodeAfter']?Jt(_0x4e3f2f['start']['nodeAfter'],_0x181c06):_0x4e3f2f;}function Jt(_0xa37de4,_0xf104ae){const _0x6d77d8=_0xf104ae['schema']['isObject'](_0xa37de4)||_0xf104ae['schema']['isSelectable'](_0xa37de4);return _0xf104ae['createRange'](_0xf104ae['createPositionAt'](_0xa37de4,'before'),_0x6d77d8?_0xf104ae['createPositionAfter'](_0xa37de4):_0xf104ae['createPositionAt'](_0xa37de4,'end'));}function Ht(_0x3f54bb,_0x1cefc1,_0x234052,_0x1a24fd){return!!qt(_0x3f54bb,_0x1cefc1)&&_0x234052['end']['isEqual'](_0x1a24fd['start']);}function qt(_0xf23261,_0x595294){if(!_0xf23261['_isDataLoaded']||!_0x595294['_isDataLoaded'])return!0x1;const _0x15921a=new Set(Object['keys'](_0xf23261['attributes'])),_0x18bba9=new Set(Object['keys'](_0x595294['attributes']));if(_0x15921a['delete']('groupId'),_0x18bba9['delete']('groupId'),0x0==_0x15921a['size']&&0x0==_0x18bba9['size'])return!0x0;if(_0x15921a['size']!=_0x18bba9['size'])return!0x1;const _0x128bb4={..._0xf23261['attributes']},_0x22752c={..._0x595294['attributes']};return delete _0x128bb4['groupId'],delete _0x22752c['groupId'],JSON['stringify'](_0x128bb4)==JSON['stringify'](_0x22752c);}function zt(_0x3ac6dd,_0x1558aa){const _0x2e5379=Kt(_0x3ac6dd['attributes']),_0x19b555=Kt(_0x1558aa);if(!_0x3ac6dd['_isDataLoaded'])return!0x1;for(const _0x21dc59 of Object['keys'](_0x19b555))if(!_0x49b274(_0x2e5379[_0x21dc59],_0x19b555[_0x21dc59]))return!0x1;return!0x0;}function Kt(_0x21727a){const _0x34583b=Object['assign']({},_0x21727a);return delete _0x34583b['skipNestingCheck'],delete _0x34583b['tablePasteChainId'],_0x34583b;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1cbdd7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xbb54b4,_0x403cdd,_0x33b4e3,_0x452cbc){super(),this['model']=_0x403cdd,this['view']=_0x33b4e3,this['commentThreadController']=_0x452cbc,this['_editor']=_0xbb54b4,this['_acceptCommand']=_0xbb54b4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xbb54b4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f9be6,_0x34eeb4)=>_0x1f9be6||_0x34eeb4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7c6a0=>_0x7c6a0&&this['_editor']['model']['canEditAt'](_0x403cdd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x207da6=>_0x207da6&&this['_editor']['model']['canEditAt'](_0x403cdd['getRanges']())),this['_pendingAction']=null,_0x33b4e3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x33b4e3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x33b4e3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x33b4e3,'change:isDirty',()=>{_0x33b4e3['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 _0xb7ba37=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb7ba37);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5c75ff{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x293cd0,_0x4503c5,_0x3e5707,_0x20f004){super(_0x293cd0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x565ea5(_0x293cd0,o(_0x293cd0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4503c5['authoredAt']),this['bind']('authoredAt')['to'](_0x4503c5),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',_0x4503c5,'authoredAt',this,'descriptionParts',(_0x2bfcb3,_0x1b90df,_0xec33ee)=>{const _0x434858=_0xec33ee['map'](_0xfc4c0b=>ns(_0xfc4c0b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2bfcb3-0x1,_0x4503c5['author']['name'],_0x1b90df?_0x20f004['formatDateTime'](_0x1b90df):'',new DOMParser()['parseFromString'](_0x434858,'text/html')['body']['textContent']]);}),this['focusables']=new _0x49c986(),this['focusTracker']=new _0xbd9fb3(),this['keystrokes']=new _0x1b3a8a(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x37c11d=>_0x37c11d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4503c5,this['_localUser']=_0x3e5707,this['_config']=_0x20f004,_0x20f004['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x42f148(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe0b83b}=this['_config'];this['commentsListView']=new _0xe0b83b(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',_0x110500=>_0x110500+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x424ae9,_0x262c40)=>_0x424ae9||!!_0x262c40);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xa87c3b}=this['_config'],_0xf30304=new _0xa87c3b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4edbc6=_0xf30304['commentInputView'];return _0xf30304['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4edbc6,'value',(_0x140935,_0x5d0aa9,_0x39de8c)=>!!_0x39de8c||_0x140935&&!_0x5d0aa9),_0x4edbc6['on']('submit',(_0x2483a9,_0x21fd58)=>{this['fire']('addComment',_0x21fd58),_0x4edbc6['editor']['setData']('');}),_0x4edbc6['on']('cancel',()=>this['focus']()),_0x4edbc6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xf30304;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1aba62,_0x20b41c,_0x2ebda0,_0x34998a){super(_0x1aba62,_0x20b41c,_0x2ebda0,_0x34998a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x58ac34=>_0x58ac34&&_0x58ac34[0x0]?_0x58ac34[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3f7abc,_0xcb541a)=>{let _0x12289d='';for(const _0x4acbd1 of _0x3f7abc)_0x12289d+='<p>'+ns(_0x4acbd1['content'],_0x4acbd1['color'])+'</p>';return _0xcb541a?_0x12289d:ti(_0x12289d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34998a['SuggestionView'](_0x1aba62,_0x20b41c,{'formatDateTime':_0x34998a['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 _0x5cee20=this['bindTemplate'],_0x44e7d5=[this['suggestionView']];return this['commentsListView']&&_0x44e7d5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44e7d5['push'](this['commentThreadInputView']),_0x44e7d5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5cee20['if']('isActive','ck-suggestion-wrapper--active'),_0x5cee20['to']('type',_0x29045f=>'ck-suggestion-'+_0x29045f),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':_0x5cee20['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44e7d5};}['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 ue extends _0x5c75ff{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1241d6,_0x5f55d4,_0x51e6c1){super(_0x1241d6),this['_model']=_0x5f55d4,this['_config']=_0x51e6c1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5f55d4),this['acceptButton']=this['_createButton'](o(_0x1241d6,'Accept\x20suggestion'),_0x10d063['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1241d6,'Discard\x20suggestion'),_0x10d063['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe807fa(_0x1241d6,_0x5f55d4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x49c986([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xbd9fb3(),this['keystrokes']=new _0x1b3a8a(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa359f8=>_0xa359f8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44ce77=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44ce77['innerHTML']=this['description'],this['on']('change:description',(_0x2ac792,_0x5d4287,_0x5b7c04)=>{_0x44ce77['innerHTML']=_0x5b7c04;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x29e3c3=this['bindTemplate'],_0xd83c1=[{'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':_0x29e3c3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29e3c3['to']('authoredAt',_0x22915c=>this['_config']['formatDateTime'](_0x22915c))}]}]},{'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']&&_0xd83c1['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':_0xd83c1}]};}['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'](_0x86575d,_0x38684d,_0x4eef75,_0xdad2f9,_0x1f99e4){const _0x33521d=new _0x4bea1d(this['locale']);return _0x33521d['set']({'label':_0x86575d,'icon':_0x38684d,'tooltip':!0x0,'tooltipPosition':_0x1f99e4}),_0x33521d['extendTemplate']({'attributes':{'class':_0x4eef75}}),_0x33521d['on']('execute',()=>{this['fire'](_0xdad2f9,this['_model']['id']);}),_0x33521d;}['_setupKeyboardNavigation'](){const _0xd6f09a=this['element'];this['keystrokes']['listenTo'](_0xd6f09a);for(const _0x4464c1 of this['focusables'])this['focusTracker']['add'](_0x4464c1['element']),this['keystrokes']['listenTo'](_0x4464c1['element']);this['keystrokes']['set']('enter',(_0x5b9dab,_0x454a72)=>{_0xd6f09a===_0x5b9dab['target']&&(this['focusCycler']['focusFirst'](),_0x454a72());}),this['keystrokes']['set']('esc',(_0x443542,_0x1d025c)=>{_0xd6f09a!==_0x443542['target']&&(this['focus'](),_0x1d025c());});}}var Ce='<!--\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 _0x4785df{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3058f8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x351b64){super(_0x351b64),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4042a4=this['editor']['config'];_0x4042a4['define']('trackChanges.SuggestionThreadView',de),_0x4042a4['define']('trackChanges.SuggestionView',ue),_0x4042a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4042a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f0289,_0x5315a5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2556ff,_0x1fe3e8]of this['_handleControllerBuffer']){const _0x376e0a=this['_suggestionToController']['has'](_0x2556ff);_0x376e0a||_0x1fe3e8?_0x376e0a&&_0x1fe3e8&&this['_destroyController'](_0x2556ff):this['_initializeController'](_0x2556ff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f0289,_0x5315a5);}['init'](){const _0x5e88cc=this['editor'],_0x44479e=_0x5e88cc['plugins']['get']('TrackChangesEditing'),_0x285623=_0x5e88cc['plugins']['get']('Annotations'),_0x14271f=_0x5e88cc['plugins']['get']('EditorAnnotations'),_0x2ea759=_0x5e88cc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14271f['addSourceCollector'](()=>{const _0x43270c=[];for(const [_0x3714a3,_0x28b671]of Array['from'](this['_suggestionToController'])){const _0x516195=_0x3714a3['getAllAdjacentSuggestions'](),_0x29eb15=[];for(const _0x1ad126 of _0x516195){if(!_0x1ad126['isInContent'])continue;if(_0x1ad126['isMultiRange']){_0x29eb15['push'](..._0x1ad126['getRanges']());continue;}const _0x2c60cc=_0x1ad126['getFirstRange']();if(_0x29eb15['length']>0x0){const _0x29b8a3=_0x29eb15[0x0]['getJoined'](_0x2c60cc);if(_0x29b8a3){_0x29eb15[0x0]=_0x29b8a3;continue;}}_0x29eb15['push'](_0x2c60cc);}_0x43270c['push']([_0x28b671['view'],_0x29eb15]);}return _0x43270c;}),this['listenTo'](_0x44479e,'suggestionLoaded',(_0x228f92,_0x482627)=>{this['listenTo'](_0x482627,'change:previous',(_0x57c5dc,_0x359e80,_0x50b9f0,_0x4d2591)=>{_0x482627['isInContent']&&(null==_0x50b9f0?(this['_updateController'](_0x4d2591['head']),this['_handleSuggestionControllerDelayed'](_0x482627,!0x1)):(this['_updateController'](_0x50b9f0['head']),null==_0x4d2591&&this['_handleSuggestionControllerDelayed'](_0x482627,!0x0)));}),null!==_0x482627['previous']?this['_updateController'](_0x482627['head']):this['_handleSuggestionControllerDelayed'](_0x482627,!0x1);}),this['listenTo'](_0x44479e,'suggestionUnloaded',(_0x1e395a,_0xbebd0a,_0x2dfed3)=>{this['stopListening'](_0xbebd0a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbebd0a),this['_suggestionToController']['has'](_0xbebd0a)&&this['_destroyController'](_0xbebd0a),_0x2dfed3&&this['_updateController'](_0x2dfed3['head']);}),this['listenTo'](_0x44479e,'suggestionChanged',(_0x47ef63,_0x19d7e9)=>{this['_updateController'](_0x19d7e9);}),this['listenTo'](_0x285623,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ea759,'addComment',(_0x3be959,{threadId:_0x21e1a0,isFromAdapter:_0x553b92})=>{if(_0x553b92||!_0x44479e['hasSuggestion'](_0x21e1a0))return;const _0x5d6ce4=_0x44479e['getSuggestion'](_0x21e1a0);this['_suggestionToController']['get'](_0x5d6ce4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x27b531=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x351a94;for(const _0x577d84 in _0x27b531){const _0x15ce66=_0x577d84,_0x5e469a=_0x27b531[_0x15ce66];if('trackChangesLicenseKeyValid'==_0x5e469a||'trackChangesLicenseKeyInvalid'==_0x5e469a||'trackChangesLicenseKeyExpired'==_0x5e469a||'trackChangesLicenseKeyDomainLimit'==_0x5e469a||'trackChangesLicenseKeyNotAllowed'==_0x5e469a||'trackChangesLicenseKeyEvaluationLimit'==_0x5e469a||'trackChangesLicenseKeyTrialLimit'==_0x5e469a||'trackChangesLicenseKeyDevelopmentLimit'==_0x5e469a||'trackChangesLicenseKeyUsageLimit'==_0x5e469a){delete _0x27b531[_0x15ce66],_0x351a94=_0x5e469a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x351a94&&_0x27b531['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x351a94&&_0x27b531['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x351a94&&_0x27b531['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x351a94&&_0x27b531['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x351a94&&_0x27b531['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x351a94&&_0x27b531['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x351a94&&_0x27b531['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x351a94&&_0x27b531['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x475e2d=this['editor']['plugins']['get']('Annotations'),_0x8e0cf6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db9f2=Array['from'](_0x475e2d['activeAnnotations'],_0x47efb0=>_0x47efb0['innerView'])['filter'](_0x404749=>this['_viewToController']['has'](_0x404749)),_0x4e9d1c=[];for(const _0x46a8c9 of _0x4db9f2){const _0x3ca493=this['_viewToController']['get'](_0x46a8c9)['model']['getAllAdjacentSuggestions']();_0x4e9d1c['push'](..._0x3ca493['reduce']((_0x4326e4,_0x4c378a)=>[..._0x4326e4,..._0x4c378a['getMarkerNames']()],[]));}_0x8e0cf6['activeMarkers']=_0x4e9d1c;}['_addUIComponentsToFactory'](){const _0x2fa397=this['editor'],_0x4f4fcd=_0x2fa397['locale'],_0x2f9d2f=o(_0x4f4fcd,'Track\x20changes'),_0x56d348=new _0x469c5f([{'type':'switchbutton','model':new _0x148ad3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f9d2f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x148ad3({'withText':!0x0,'label':o(_0x4f4fcd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x148ad3({'withText':!0x0,'label':o(_0x4f4fcd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x148ad3({'withText':!0x0,'label':o(_0x4f4fcd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x148ad3({'withText':!0x0,'label':o(_0x4f4fcd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3621b9 of _0x56d348)if(pe(_0x3621b9)){const _0x1d2253=_0x2fa397['commands']['get'](_0x3621b9['model']['commandName']);_0x3621b9['model']['bind']('isOn','isEnabled')['to'](_0x1d2253,'value','isEnabled');}_0x2fa397['ui']['componentFactory']['add']('trackChanges',_0x19c90b=>this['_createToolbarButton'](_0x19c90b,_0x56d348,_0x2f9d2f)),_0x2fa397['ui']['componentFactory']['add']('menuBar:trackChanges',_0x243ef5=>this['_createMenuBarMenu'](_0x243ef5,_0x56d348,_0x2f9d2f));}['_createToolbarButton'](_0x2b413b,_0x35b278,_0xcd31c7){const _0x526b5c=_0x583f7f(_0x2b413b,_0x2b5e43),_0x26265a=this['editor']['commands']['get']('trackChanges');_0x526b5c['buttonView']['set']({'tooltip':_0xcd31c7,'label':_0xcd31c7,'icon':Ce}),_0x526b5c['buttonView']['bind']('isOn')['to'](_0x26265a,'value'),_0x526b5c['buttonView']['on']('execute',()=>{_0x26265a['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x526b5c,_0x35b278,{'role':'menu'});const _0x4b8c25=[];for(const _0xfc5d01 of _0x35b278)pe(_0xfc5d01)&&_0x4b8c25['push'](this['editor']['commands']['get'](_0xfc5d01['model']['commandName']));const _0x3189a3=_0x526b5c['buttonView'];return _0x3189a3['actionView']['unbind']('isEnabled'),_0x3189a3['arrowView']['unbind']('isEnabled'),_0x3189a3['actionView']['bind']('isEnabled')['to'](_0x26265a,'isEnabled'),_0x3189a3['arrowView']['bind']('isEnabled')['toMany'](_0x4b8c25,'isEnabled',(..._0x38e134)=>_0x38e134['some'](_0xc2d716=>_0xc2d716)),_0x526b5c['on']('execute',_0x2bf8a3=>{this['editor']['execute'](_0x2bf8a3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x526b5c;}['_createMenuBarMenu'](_0x2a21b5,_0x4858be,_0x5b5c88){const _0x410518=new _0x31c248(_0x2a21b5),_0xe6ca4=this['editor']['commands']['get']('trackChanges');_0x410518['buttonView']['set']({'label':_0x5b5c88,'icon':Ce});const _0xf973fe=new _0x5aca2b(_0x2a21b5);for(const _0x223eb0 of _0x4858be){if('separator'==_0x223eb0['type']){_0xf973fe['items']['add'](new _0x365687(_0x2a21b5));continue;}const _0x2eb190=new _0x36bc08(_0x2a21b5,_0x410518),_0x791912=new _0x2aab3a(_0x2a21b5),_0x4635e4=_0x223eb0['model'];_0x791912['bind'](...Object['keys'](_0x4635e4))['to'](_0x4635e4),_0x791912['delegate']('execute')['to'](_0x410518),_0x791912['on']('execute',()=>{this['editor']['execute'](_0x4635e4['commandName']),this['editor']['editing']['view']['focus']();}),_0x2eb190['children']['add'](_0x791912),_0xf973fe['items']['add'](_0x2eb190);}return _0x410518['bind']('isEnabled')['to'](_0xe6ca4,'isEnabled'),_0x410518['panelView']['children']['add'](_0xf973fe),_0x410518;}['_initializeController'](_0x56159a){const _0x3e7549=this['editor'],_0x2f398e=_0x3e7549['config'],_0x557243=_0x3e7549['plugins']['get']('Annotations'),_0x59e6ba=_0x3e7549['plugins']['get']('CommentsRepository'),_0x1eb94e=_0x3e7549['plugins']['get']('EditorAnnotations'),_0x3f9588=_0x3e7549['plugins']['get'](_0x3058f8)['me'],_0x229b52=_0x2f398e['get']('trackChanges')['SuggestionThreadView'],_0x1b4fab=_0x2f398e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x91eeb7,CommentThreadInputView:_0x1cbe96}=_0x3e7549['plugins']['get']('CommentsUI');let _0x30503e,_0x388d22,_0x271764;this['_annotationViews']['has'](_0x56159a['id'])?(_0x388d22=this['_annotationViews']['get'](_0x56159a['id']),_0x30503e=_0x388d22['mainView']):(_0x30503e=new _0x229b52(_0x3e7549['locale'],_0x56159a,_0x3f9588,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2f398e['get']('comments.editorConfig'),'licenseKey':_0x2f398e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2f398e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2f398e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2f398e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x568cbc(_0x2f398e['get']('locale')),'CommentView':_0x2f398e['get']('comments')['CommentView'],'CommentsListView':_0x91eeb7,'CommentThreadInputView':_0x1cbe96,'SuggestionView':_0x1b4fab}),_0x30503e['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e7549['editing']['view']['focus']();}),_0x30503e['suggestionView']['discardButton']['on']('execute',()=>{_0x3e7549['editing']['view']['focus']();}),_0x388d22=_0x557243['createAnnotationView'](this['editor']['locale'],_0x30503e),_0x388d22['bind']('isDirty')['to'](_0x30503e,'isDirty'),_0x388d22['bind']('length')['to'](_0x30503e),_0x388d22['bind']('type')['to'](_0x30503e,'type',_0x4f4f23=>'suggestion-'+_0x4f4f23),_0x30503e['on']('escape',()=>{_0x271764['fire']('escape');}),this['_annotationViews']['set'](_0x56159a['id'],_0x388d22));const _0x4ea0f0=_0x59e6ba['createCommentThreadController'](_0x56159a['commentThread'],_0x30503e),_0x55b160=new ge(_0x3e7549,_0x56159a,_0x30503e,_0x4ea0f0),_0x242d5a=_0x56159a['getAllAdjacentSuggestions']()['filter'](_0x2bf922=>_0x2bf922['isInContent']);_0x30503e['descriptionParts']=_0x3e7549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x242d5a),this['_suggestionToController']['set'](_0x56159a,_0x55b160),this['_viewToController']['set'](_0x30503e,_0x55b160),_0x271764=_0x557243['createAnnotation']({'view':_0x388d22,'target':()=>{const _0x44add5=[],_0x28b556=_0x56159a['getAllAdjacentSuggestions']()['filter'](_0x491825=>_0x491825['isInContent']);for(const _0xbf455 of _0x28b556)_0x44add5['push'](..._0xbf455['getMarkers']());return _0x286523(_0x3e7549['editing'],_0x44add5);},'type':()=>'suggestion-'+_0x55b160['view']['type']}),_0x59e6ba['_bindAnnotationToEditors'](_0x30503e,_0x271764),_0x557243['add'](_0x271764),_0x1eb94e['registerAnnotation'](_0x271764);}['_destroyController'](_0x52c17d){const _0xa5ad68=this['editor']['plugins']['get']('CommentsRepository'),_0x5c2362=this['editor']['plugins']['get']('Annotations'),_0x909148=this['_suggestionToController']['get'](_0x52c17d),_0x11bd64=_0x909148['view'],_0x5699db=_0x5c2362['getByInnerView'](_0x11bd64);_0xa5ad68['_unbindEditors'](_0x11bd64),_0x5699db&&_0x5c2362['remove'](_0x5699db),this['_suggestionToController']['delete'](_0x52c17d),this['_viewToController']['delete'](_0x11bd64),_0x909148['destroy']();}['_updateController'](_0x2e7390){if(!_0x2e7390['isInContent']||!this['_suggestionToController']['has'](_0x2e7390))return;const _0x79c10c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11591c=this['_suggestionToController']['get'](_0x2e7390),_0x26f281=_0x2e7390['getAllAdjacentSuggestions']();_0x11591c['view']['descriptionParts']=_0x79c10c['descriptionFactory']['getDescriptions'](_0x26f281);}['destroy'](){for(const _0xb9b114 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb9b114);for(const _0x6aa109 of this['_annotationViews']['values']())_0x6aa109['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x21b445){return'model'in _0x21b445;}class k extends _0x4785df{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4a5218){this['editor']['plugins']['get'](p)['adapter']=_0x4a5218;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2b69bc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2b69bc);}['getSuggestions']({skipNotAttached:_0x36012d=!0x1,toJSON:_0x1229cb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x36012d,'toJSON':_0x1229cb});}['getSuggestion'](_0x510612){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x510612);}}const w=['Pagination'];class T extends _0x4785df{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x12289f=this['editor'];if(_0x12289f['config']['define']('trackChangesData.editorCreator',_0x27dc4d=>{const _0x34c90b=_0x12289f['model']['document']['getRootNames']()['reduce']((_0x2929be,_0x599537)=>(_0x2929be[_0x599537]='',_0x2929be),{});return _0x12289f['constructor']['create'](_0x34c90b,_0x27dc4d);}),'function'!=typeof _0x12289f['config']['get']('trackChangesData')['editorCreator'])throw new _0x225cd0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x733a22){return N(this['editor'],!0x0,_0x733a22);}['getDataWithDiscardedSuggestions'](_0x30e263){return N(this['editor'],!0x1,_0x30e263);}}class D extends _0x4785df{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29b2a0){function _0x34d994(_0x39f5e4){return _0x39f5e4['map'](_0xa144d4=>String['fromCharCode'](_0xa144d4))['join']('');}super(_0x29b2a0),this['result']='end',_0x29b2a0[_0x34d994([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34d994([0x76,0x69,0x65,0x77])][_0x34d994([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34d994([0x61,0x75,0x74,0x6f]),_0x29b2a0[_0x34d994([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x34d994([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34d994([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x34d994([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x34d994([0x6f,0x6b])});}['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(_0x31825a){return void 0x0!==_0x31825a['getRootsAttributes'];}async function N(_0x3c38cd,_0x2eddd8,_0x5b7d0a){const _0x2a3703=_0x1d95b7(_0x3c38cd,w);_0x2a3703['plugins']['push'](p,D),_0x2a3703['rootsAttributes']=v(_0x3c38cd)?_0x3c38cd['getRootsAttributes']():void 0x0;const _0x2766e2=document['createDocumentFragment'](),_0x1ef253=_0x3c38cd['config']['get']('trackChangesData')['editorCreator'],_0x4b2bb6=await _0x1ef253(_0x2a3703,()=>function(_0x4b6b05){const _0xb71daf=document['createElement']('div');return _0x4b6b05['appendChild'](_0xb71daf),_0xb71daf;}(_0x2766e2));!function(_0x42f9c5,_0x362aba){const _0x18c234=_0x42f9c5['model']['document']['getRootNames']()['reduce']((_0x4fc19f,_0x44c4be)=>(_0x4fc19f[_0x44c4be]=_0x42f9c5['data']['get']({'rootName':_0x44c4be}),_0x4fc19f),{}),_0x5a383=_0x42f9c5['plugins']['get']('Users')['users']['map'](_0xd58e0e=>({'id':_0xd58e0e['id'],'name':_0xd58e0e['name']})),_0x14c8ef=_0x42f9c5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x776d0b=_0x42f9c5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20304a=_0x362aba['plugins']['get']('Users'),_0x17e1a9=_0x362aba['plugins']['get']('TrackChangesEditing'),_0x78c89a=_0x362aba['plugins']['get']('CommentsRepository');for(const _0x12ff36 of _0x78c89a['getCommentThreads']())_0x12ff36['remove']();for(const _0x32ce9d of _0x5a383)_0x20304a['getUser'](_0x32ce9d['id'])||_0x20304a['addUser'](_0x32ce9d);_0x20304a['me']||_0x20304a['useAnonymousUser']();for(const _0x2deb6e of _0x776d0b)_0x78c89a['addCommentThread'](_0x2deb6e);for(const _0x5045fe of _0x14c8ef)_0x17e1a9['addSuggestionData'](_0x5045fe);_0x362aba['data']['set'](_0x18c234);}(_0x3c38cd,_0x4b2bb6),_0x4b2bb6['execute'](_0x2eddd8?'acceptAllSuggestions':'discardAllSuggestions');const _0x24de4c=v(_0x4b2bb6)?_0x4b2bb6['getFullData'](_0x5b7d0a):_0x4b2bb6['data']['get'](_0x5b7d0a);return await _0x4b2bb6['destroy'](),_0x24de4c;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x5c4eb9,PendingActions as _0x109139,icons as _0x55d1a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x104227,ObservableMixin as _0x2a0ec8,uid as _0x489557,insertToPriorityArray as _0x5e44f2,priorities as _0x250038,logWarning as _0x2285b4,getEnvKeystrokeText as _0x3ef39b,FocusTracker as _0x459086,KeystrokeHandler as _0x3f23a7,Collection as _0x44248f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x37df8d,View as _0xe1d0ad,ViewCollection as _0x2b5c1b,FocusCycler as ts,ViewModel as _0x43b08e,createDropdown as _0x14bc60,SplitButtonView as _0x146d75,addListToDropdown as te,MenuBarMenuView as _0x51ad4a,MenuBarMenuListView as _0x4fb3cd,ListSeparatorView as _0x4f96a1,MenuBarMenuListItemView as _0x418406,MenuBarMenuListItemButtonView as _0x56c8b2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c96ed,hashObject as _0x512500,surroundingMarkersDetector as _0x8ba165,FOCUS_ANNOTATION_KEYSTROKE as _0x16204c,AriaDescriptionView as _0x4fcd3b,setupThreadKeyboardNavigation as _0x425024,trimHtml as ti,UserView as _0x40223b,LateFocusButtonView as _0x31df53,getDateTimeFormatter as _0x5e9bd4,getAllMarkersDomElementsSorted as _0x1fa622,sanitizeEditorConfig as _0x40fe9e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x36bd92,LiveRange as _0x3f97db,LivePosition as _0x41f920}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x124c23,toWidget as _0x27c31b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1c90d4,set as _0x519445,isEqual as _0x12e9c7,unset as _0x5656f3,omit as xt}from'lodash-es';import{Delete as _0x5695dd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xedc15b,ShiftEnter as _0x1234e8}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x21bb3b,_0x50d35d){super(_0x21bb3b),this['_enabledCommands']=_0x50d35d,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 _0x5b5295 of this['editor']['commands']['commands']())_0x5b5295['affectsData']&&!this['_enabledCommands']['has'](_0x5b5295)&&_0x5b5295['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3f07ba of this['editor']['commands']['commands']())_0x3f07ba['affectsData']&&!this['_enabledCommands']['has'](_0x3f07ba)&&_0x3f07ba['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x33305a,_0x354fdf){super(_0x33305a),this['_suggestions']=_0x354fdf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x337409){const _0x2085f7=this['_suggestions']['get'](_0x337409);if(!_0x2085f7)throw new _0x104227('track-changes-accept-suggestion-not-found',this);const _0x391cad=_0x2085f7['getRanges']();this['editor']['model']['canEditAt'](_0x391cad)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2085f7);}}class R extends Qt{['_suggestions'];constructor(_0x4a7c13,_0xa3c1d9){super(_0x4a7c13),this['_suggestions']=_0xa3c1d9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f9798){const _0x40d9db=this['_suggestions']['get'](_0x4f9798);if(!_0x40d9db)throw new _0x104227('track-changes-discard-suggestion-not-found',this);const _0x3bf7fc=_0x40d9db['getRanges']();this['editor']['model']['canEditAt'](_0x3bf7fc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x40d9db);}}function ns(_0x48a96a,_0x59eb35){let _0xc50848='';return _0xc50848+=_0x48a96a['split']('*')['map']((_0x234a09,_0xd7e542)=>_0xd7e542%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x234a09)+'</span>':nn(_0x234a09))['join'](''),_0x59eb35&&(_0xc50848+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x59eb35['value']+'\x22\x20title=\x22'+_0x59eb35['title']+'\x22></span>'),_0xc50848;}function nn(_0x46313e){const _0x4d6a97=document['createElement']('span');return _0x4d6a97['innerText']=_0x46313e,_0x4d6a97['innerHTML'];}function Wt(_0x4f99af){return _0x4f99af['sort']((_0x363818,_0x4b9b26)=>'deletion'==_0x363818['type']&&'deletion'!=_0x4b9b26['type']?-0x1:'deletion'!=_0x363818['type']&&'deletion'==_0x4b9b26['type']?0x1:0x0);}function to(_0x2d8a43,_0x61e202){let _0x57af17,_0x2e3245=0x0;const _0x6bca48=[],_0x144862=_0x61e202['schema'];for(;_0x2e3245<_0x2d8a43['length'];){const _0x5d4571=_0x2d8a43[_0x2e3245],_0x54fe86=_0x2d8a43[_0x2e3245+0x1];_0x57af17||(_0x57af17=_0x61e202['createPositionBefore'](_0x5d4571)),on(_0x61e202,_0x5d4571,_0x54fe86)||(_0x6bca48['push'](_0x61e202['createRange'](_0x57af17,_0x144862['isObject'](_0x5d4571)?_0x61e202['createPositionAfter'](_0x5d4571):_0x61e202['createPositionAt'](_0x5d4571,'end'))),_0x57af17=null),_0x2e3245++;}return _0x6bca48;}function on(_0x5a3f26,_0x743ac0,_0x23961e){if(!_0x23961e)return!0x1;const _0x524eed=_0x5a3f26['createPositionAfter'](_0x743ac0),_0x59d9e0=_0x5a3f26['createPositionBefore'](_0x23961e);return _0x524eed['isTouching'](_0x59d9e0);}function Xt(_0x2d8622,_0x1f35bc,_0x5ec173){for(;_0x5ec173['length'];){const _0x3e6595=_0x5ec173['splice'](0x0,0x64);_0x2d8622['change'](()=>{for(const _0x151db2 of _0x3e6595)_0x151db2['isInContent']&&_0x1f35bc['execute'](_0x151db2['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0xfe49ad,_0x9442ab,_0x5a8c1a){super(_0xfe49ad),this['_command']=_0x9442ab,this['_suggestions']=_0x5a8c1a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eb5c1=Array['from'](this['_suggestions']['values']())['some'](_0xeaa65=>_0xeaa65['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2eb5c1;}['execute'](){const _0x59782b=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x546de8 of _0x59782b){const _0x44f645=_0x546de8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x44f645))return;}Xt(this['editor']['model'],this['_command'],_0x59782b);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ff78d,_0x1c4b12,_0x16293b){super(_0x3ff78d),this['_command']=_0x1c4b12,this['_suggestions']=_0x16293b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a3022=this['editor']['model']['document']['selection'],_0x5acf5c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4aa01a,_0x270bbf){const _0x41362a=Array['from'](_0x4aa01a['getRanges']()),_0x2e5647=new Set();for(const _0x43d497 of _0x270bbf)if(_0x43d497['isInContent']){for(const _0x537aed of _0x41362a)for(const _0x20df33 of _0x43d497['getRanges']())(_0x537aed['isIntersecting'](_0x20df33)||_0x4aa01a['isCollapsed']&&!_0x43d497['isMultiRange']&&_0x43d497['next']&&_0x20df33['end']['isTouching'](_0x537aed['start']))&&_0x2e5647['add'](_0x43d497);}return _0x2e5647;}(_0x3a3022,_0x5acf5c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5bfdd5=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x124fbe of _0x5bfdd5){const _0x1fb721=_0x124fbe['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1fb721))return;}Xt(this['editor']['model'],this['_command'],_0x5bfdd5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a0ec8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x31bab8,_0x3c744d){super(),this['id']=_0x3c744d['id'],this['type']=_0x3c744d['type'],this['subType']=_0x3c744d['subType']||null,this['author']=_0x3c744d['author'],this['creator']=_0x3c744d['creator']||_0x3c744d['author'],this['isExternal']=Boolean(_0x3c744d['attributes']&&_0x3c744d['attributes']['@external']),this['data']=null,this['_model']=_0x31bab8,this['_onAccept']=_0x3c744d['onAccept'],this['_onDiscard']=_0x3c744d['onDiscard'],this['_onAttributesChange']=_0x3c744d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3c744d['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 _0x363b41=this;for(;_0x363b41['previous'];)_0x363b41=_0x363b41['previous'];return _0x363b41;}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'](_0x10e70f){this['_markerNames']['add'](_0x10e70f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2852c2=>this['_model']['markers']['get'](_0x2852c2))['filter'](_0x2fa183=>_0x2fa183);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x403220=>{for(const _0x4396f9 of this['getMarkers']())_0x403220['removeMarker'](_0x4396f9);}),this['_markerNames']['clear']();}['removeMarker'](_0x38d3d2){this['_model']['change'](_0x1c38dc=>{_0x1c38dc['removeMarker'](_0x38d3d2);}),this['_markerNames']['delete'](_0x38d3d2);}['addRange'](_0x3460a3){const _0x2a404c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2a404c),this['_model']['change'](_0x394bc6=>{_0x394bc6['addMarker'](_0x2a404c,{'range':_0x3460a3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3c7797){for(const _0x40d562 of this['getRanges']())if(_0x40d562['isIntersecting'](_0x3c7797))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xae165e=>_0xae165e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x367f69,_0x14c052)=>[..._0x367f69,..._0x14c052['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ffe32=this['getRanges']();if(0x1!=_0x2ffe32['length'])return null;const _0x299535=_0x2ffe32[0x0],_0x5bc3cd=_0x299535['start']['nodeAfter'],_0x553a0c=_0x299535['end']['nodeBefore'];return _0x5bc3cd instanceof _0x36bd92?_0x5bc3cd!=_0x553a0c?null:_0x5bc3cd: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 _0x224175=[];let _0x18f431=this['head'];for(;_0x18f431;)_0x224175['push'](_0x18f431),_0x18f431=_0x18f431['next'];return _0x224175;}['setAttribute'](_0x5c9543,_0x20fade){const _0x1fe985=_0x1c90d4(this['attributes']);_0x519445(_0x1fe985,_0x5c9543,_0x20fade),_0x12e9c7(_0x1fe985,this['attributes'])||(this['attributes']=_0x1fe985,this['_onAttributesChange'](_0x1fe985));}['removeAttribute'](_0x3cd652){const _0x10235a=_0x1c90d4(this['attributes']);_0x5656f3(_0x10235a,_0x3cd652),_0x12e9c7(_0x10235a,this['attributes'])||(this['attributes']=_0x10235a,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 _0x489557()['substr'](0x1,0x5);}}function o(_0x3d9e9e,_0x93d5cd,_0x6547b1){const _0x417efb=_0x3d9e9e['t'],t=_0x3d9e9e['t'];switch(_0x93d5cd){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',_0x6547b1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x6547b1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x6547b1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x6547b1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x6547b1);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',_0x6547b1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x6547b1);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',_0x6547b1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x6547b1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x6547b1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x6547b1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x6547b1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x6547b1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x6547b1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x6547b1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x6547b1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x6547b1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x6547b1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x6547b1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x6547b1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x6547b1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x6547b1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x6547b1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x6547b1);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'},_0x6547b1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x6547b1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x6547b1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x6547b1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x6547b1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x6547b1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x6547b1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x6547b1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x6547b1);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'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x6547b1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x6547b1);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'},_0x6547b1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x6547b1);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 _0x417efb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x6547b1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x417efb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x6547b1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x6547b1);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'},_0x6547b1);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'},_0x6547b1);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'},_0x6547b1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x93d5cd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x53e61f,_0x1aabfc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x53e61f,this['_locale']=_0x1aabfc;}['getDescriptions'](_0x1ec819){const _0x1959a8=[],_0x485d9c=new Set(),_0x34ce30=new Set();for(let _0x40c283=0x0;_0x40c283<_0x1ec819['length'];_0x40c283++){const _0x4ea77c=_0x1ec819[_0x40c283];if(!_0x4ea77c['isInContent'])continue;const _0x2865a3=this['_handleCustomCallbackDescription'](_0x4ea77c);if(_0x2865a3){if(null!=_0x4ea77c['subType']){if(_0x485d9c['has'](_0x4ea77c['subType']))continue;_0x485d9c['add'](_0x4ea77c['subType']);}_0x1959a8['push'](_0x2865a3);}else{if('attribute'!=_0x4ea77c['type'])'insertion'!=_0x4ea77c['type']&&'deletion'!=_0x4ea77c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1959a8,_0x4ea77c,_0x1ec819[_0x40c283+0x1]);else{const _0x466da5=_0x4ea77c['data']['key'];if(_0x34ce30['has'](_0x466da5))continue;_0x34ce30['add'](_0x4ea77c['data']['key']),_0x466da5==m?this['_handleRenameSuggestionDescription'](_0x1959a8,_0x4ea77c):this['_handleAttributeSuggestionDescription'](_0x1959a8,_0x4ea77c);}}}return this['_resolveDescriptionItems'](_0x1959a8);}['registerDescriptionCallback'](_0x3990aa){this['_customCallbacks']['push'](_0x3990aa);}['registerElementLabel'](_0x4322f2,_0x20a5d5,_0x46db52=_0x250038['normal']){'function'==typeof _0x4322f2?_0x5e44f2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4322f2,'label':_0x20a5d5,'priority':_0x46db52}):this['_itemLabels']['set'](_0x4322f2,_0x20a5d5);}['registerAttributeLabel'](_0x5a7180,_0x4e8b29){this['_attributeLabels']['set'](_0x5a7180,_0x4e8b29);}['getItemLabel'](_0x4d309f,_0xb362e2=0x1){let _0x29e0a6;for(const _0x229120 of this['_itemLabelsCallbacks'])if(_0x229120['matchingCallback'](_0x4d309f)){_0x29e0a6=_0x229120['label'];break;}return _0x29e0a6||(_0x29e0a6=this['_itemLabels']['get'](_0x4d309f['name'])),_0x29e0a6?_0x29e0a6(_0xb362e2):0x1!==_0xb362e2?_0xb362e2+'\x20'+_0x4d309f['name']+'s':''+_0x4d309f['name'];}['_addDescriptionItems'](_0x34bd96,_0x505af7){const _0x5a63e2=_0x505af7['getFirstRange']()['getWalker'](),_0x316080='insertion'==_0x505af7['type']?'add':'remove';for(const _0x1c58b8 of _0x5a63e2){const _0x4a1dee=_0x1c58b8['item'],_0x22294f=_0x34bd96[_0x34bd96['length']-0x1];if(_0x4a1dee['is']('$textProxy'))_0x22294f&&_0x22294f['type']['indexOf']('Container')>-0x1&&_0x34bd96['pop'](),_0x22294f&&'text'==_0x22294f['type']?_0x22294f[_0x316080]+=_0x4a1dee['data']:_0x34bd96['push']({'type':'text','add':'add'==_0x316080?_0x4a1dee['data']:'','remove':'remove'==_0x316080?_0x4a1dee['data']:''});else{if(this['_schema']['isObject'](_0x4a1dee)){const _0x4f7944=_0x4a1dee;if(_0x22294f&&_0x22294f['type']['indexOf']('Container')>-0x1&&_0x34bd96['pop'](),'elementEnd'==_0x1c58b8['type'])continue;_0x22294f&&_0x22294f['type']==_0x316080+'Object'&&_0x22294f['element']['name']==_0x4f7944['name']?_0x22294f['quantity']++:_0x34bd96['push']({'type':_0x316080+'Object','element':_0x4f7944,'quantity':0x1}),_0x5a63e2['skip'](_0x1bc7d6=>!('elementEnd'==_0x1bc7d6['type']&&_0x1bc7d6['item']==_0x4a1dee));}else{if(this['_schema']['checkChild'](_0x4a1dee,'$text')||_0x4a1dee['is']('element','softBreak')){const _0x19e3c5=_0x4a1dee;if('add'==_0x316080&&'elementStart'==_0x1c58b8['type']||'remove'==_0x316080&&'elementEnd'==_0x1c58b8['type'])continue;if(_0x22294f&&-0x1==_0x22294f['type']['indexOf']('Container')){'text'==_0x22294f['type']&&(_0x22294f[_0x316080]+='\x0a');continue;}let _0x16a6bb;if(_0x16a6bb='add'==_0x316080?_0x19e3c5['nextSibling']&&!this['_schema']['isObject'](_0x19e3c5['nextSibling'])?_0x19e3c5['nextSibling']:null:_0x19e3c5['previousSibling']&&!this['_schema']['isObject'](_0x19e3c5['previousSibling'])?_0x19e3c5['previousSibling']:null,_0x19e3c5['isEmpty']||_0x16a6bb&&_0x16a6bb['isEmpty']){const _0xff75cd=_0x16a6bb&&_0x16a6bb['isEmpty']?_0x16a6bb:_0x19e3c5;_0x22294f&&_0x22294f['type']==_0x316080+'EmptyContainer'&&_0x22294f['element']['name']==_0xff75cd['name']?_0x22294f['quantity']++:_0x34bd96['push']({'type':_0x316080+'EmptyContainer','element':_0xff75cd,'quantity':0x1});}else _0x34bd96['push']({'type':_0x316080+'Container','element':_0x19e3c5});}}}}}['_resolveDescriptionItems'](_0x1456c2){const _0x5b2e0d=this['_locale'],_0x4fc6f9=[],_0x1cbaeb=[],_0x4c76e0=[];for(const _0x27a042 of _0x1456c2)switch(_0x27a042['type']){case'text':if(_0x27a042['add']=_0x27a042['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27a042['remove']=_0x27a042['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27a042['add']&&''!=_0x27a042['remove']){_0x4fc6f9['push']({'type':'replace','content':o(_0x5b2e0d,'REPLACE_TEXT',['\x22'+_0x27a042['remove']+'\x22','\x22'+_0x27a042['add']+'\x22'])});continue;}if(null!=_0x27a042['add']['match'](/^ +$/)){_0x4fc6f9['push']({'type':'insertion','content':o(_0x5b2e0d,'*Insert:*\x20%0',o(_0x5b2e0d,'ELEMENT_SPACE',_0x27a042['add']['length']))});continue;}if(null!=_0x27a042['remove']['match'](/^ +$/)){_0x4fc6f9['push']({'type':'deletion','content':o(_0x5b2e0d,'*Remove:*\x20%0',o(_0x5b2e0d,'ELEMENT_SPACE',_0x27a042['remove']['length']))});continue;}if(''!=_0x27a042['add']){_0x4fc6f9['push']({'type':'insertion','content':o(_0x5b2e0d,'*Insert:*\x20%0','\x22'+_0x27a042['add']+'\x22')});continue;}_0x4fc6f9['push']({'type':'deletion','content':o(_0x5b2e0d,'*Remove:*\x20%0','\x22'+_0x27a042['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fc6f9['push']({'type':'insertion','content':o(_0x5b2e0d,'*Insert:*\x20%0',this['getItemLabel'](_0x27a042['element'],_0x27a042['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fc6f9['push']({'type':'deletion','content':o(_0x5b2e0d,'*Remove:*\x20%0',this['getItemLabel'](_0x27a042['element'],_0x27a042['quantity']))});continue;case'addContainer':_0x4fc6f9['push']({'type':'insertion','content':o(_0x5b2e0d,'*Split:*\x20%0',this['getItemLabel'](_0x27a042['element'],_0x27a042['quantity']))});continue;case'removeContainer':_0x4fc6f9['push']({'type':'deletion','content':o(_0x5b2e0d,'*Merge:*\x20%0',this['getItemLabel'](_0x27a042['element'],_0x27a042['quantity']))});continue;case'addFormat':_0x1cbaeb['push'](_0x27a042['key']);continue;case'removeFormat':_0x4c76e0['push'](_0x27a042['key']);continue;default:_0x4fc6f9['push'](_0x27a042);}if(_0x1cbaeb['length']){const _0x462109=_0x1cbaeb['map'](_0x1202fa=>this['_attributeLabels']['has'](_0x1202fa)?this['_attributeLabels']['get'](_0x1202fa):_0x1202fa)['join'](',\x20');_0x4fc6f9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x462109)});}if(_0x4c76e0['length']){const _0x2cec21=_0x4c76e0['map'](_0x4fbd6f=>this['_attributeLabels']['has'](_0x4fbd6f)?this['_attributeLabels']['get'](_0x4fbd6f):_0x4fbd6f)['join'](',\x20');_0x4fc6f9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2cec21)});}return _0x4fc6f9;}['_handleCustomCallbackDescription'](_0x4f801a){for(const _0xffc3d1 of this['_customCallbacks']){const _0x333646=_0xffc3d1(_0x4f801a);if(_0x333646&&'type'in _0x333646)return _0x333646;}}['_handleAttributeSuggestionDescription'](_0x586501,_0x5e5a40){const _0xc1b996=_0x5e5a40['data'],_0x1c3b31=void 0x0===_0xc1b996['newValue']?'removeFormat':'addFormat';_0x586501['push']({'type':_0x1c3b31,'key':_0xc1b996['key']});}['_handleRenameSuggestionDescription'](_0xf1b6c4,_0x58df15){_0xf1b6c4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x58df15['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1bdf43,_0x37faf5,_0x40f707){if(this['_addDescriptionItems'](_0x1bdf43,_0x37faf5),_0x40f707&&_0x40f707['getFirstRange']()&&!_0x37faf5['getFirstRange']()['end']['isEqual'](_0x40f707['getFirstRange']()['start'])){const _0x182815=_0x1bdf43[_0x1bdf43['length']-0x1],_0x55551b='insertion'==_0x37faf5['type']?'add':'remove';_0x182815&&'text'==_0x182815['type']&&(_0x182815[_0x55551b]+='\x0a');}}}class U extends _0x5c4eb9{['afterInit'](){const _0x46549d=this['editor'],_0x5398c4=_0x46549d['plugins']['get']('TrackChangesEditing');_0x46549d['commands']['get']('showAIAssistant')&&_0x5398c4['enableCommand']('showAIAssistant');}}class V extends _0x5c4eb9{['afterInit'](){const _0x31df8f=this['editor'],_0x26b527=_0x31df8f['locale'];if(!_0x31df8f['plugins']['has']('AlignmentEditing'))return;const _0x9f9f04=_0x31df8f['plugins']['get']('TrackChangesEditing');_0x9f9f04['enableDefaultAttributesIntegration']('alignment'),_0x9f9f04['registerBlockAttribute']('alignment'),_0x9f9f04['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x26b527,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d2d0=this['editor'],_0x1b0e3e=_0x54d2d0['locale'];_0x54d2d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x196c8c=>{if('formatBlock'!=_0x196c8c['type'])return;const {data:_0x289b64}=_0x196c8c;if(_0x289b64&&'alignment'==_0x289b64['commandName']){const _0x1b0749=_0x289b64['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1b0e3e,'*Format:*\x20%0',function(_0xee7d46){switch(_0xee7d46){case'left':return o(_0x1b0e3e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1b0e3e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1b0e3e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1b0e3e,'FORMAT_JUSTIFY_TEXT');}}(_0x1b0749))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5c4eb9{['afterInit'](){const _0x1a7f08=this['editor'],_0x1cebea=_0x1a7f08['plugins']['get']('TrackChangesEditing'),_0x45afaa=_0x1a7f08['locale'];for(const _0x10a458 of Zt){if(!_0x1a7f08['plugins']['has'](_0x10a458))continue;const _0x281bda=_0x10a458['slice'](0x0,-0x7)['toLowerCase'](),_0x35ece1='FORMAT_'+_0x281bda['toUpperCase']();_0x1cebea['enableDefaultAttributesIntegration'](_0x281bda),_0x1cebea['registerInlineAttribute'](_0x281bda),_0x1cebea['descriptionFactory']['registerAttributeLabel'](_0x281bda,o(_0x45afaa,_0x35ece1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d83e9=this['editor'],_0x535dc7=_0x7d83e9['locale'],_0x2917f6=_0x7d83e9['plugins']['get']('TrackChangesEditing');function _0xeada(_0x3cde61,_0x17a904){_0x2917f6['descriptionFactory']['registerDescriptionCallback'](_0x471d7c=>{if('formatInline'!=_0x471d7c['type'])return;const {data:_0x562340}=_0x471d7c;return _0x562340&&_0x562340['commandName']===_0x3cde61?_0x562340['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x535dc7,'*Format:*\x20%0',_0x17a904)}:{'type':'format','content':o(_0x535dc7,'*Remove\x20format:*\x20%0',_0x17a904)}:void 0x0;});}_0xeada('bold',o(_0x535dc7,'FORMAT_BOLD')),_0xeada('italic',o(_0x535dc7,'FORMAT_ITALIC')),_0xeada('underline',o(_0x535dc7,'FORMAT_UNDERLINE')),_0xeada('code',o(_0x535dc7,'FORMAT_CODE')),_0xeada('strikethrough',o(_0x535dc7,'FORMAT_STRIKETHROUGH')),_0xeada('subscript',o(_0x535dc7,'FORMAT_SUBSCRIPT')),_0xeada('superscript',o(_0x535dc7,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5c4eb9{['afterInit'](){const _0x217d01=this['editor'],_0x34be5d=_0x217d01['locale'];if(!_0x217d01['plugins']['has']('BlockQuoteEditing'))return;const _0x5187d1=_0x217d01['plugins']['get']('TrackChangesEditing'),_0x449f03=this['editor']['commands']['get']('blockQuote');_0x5187d1['enableCommand']('blockQuote',(_0x18552d,_0x469c61={})=>{const _0xfe9d84=this['editor']['model']['document']['selection'],_0x41450e=_0x469c61&&void 0x0!==_0x469c61['forceValue']?_0x469c61['forceValue']:!_0x449f03['value'];let _0x480724=[];if(_0x41450e){const _0x3b5f28=Array['from'](_0xfe9d84['getSelectedBlocks']())['filter'](_0x3ca697=>oo(_0x3ca697)||function(_0x5e1166,_0x263da1){const _0x5c73fe=_0x263da1['checkChild'](_0x5e1166['parent'],'blockQuote'),_0xacbbce=_0x263da1['checkChild'](['$root','blockQuote'],_0x5e1166);return _0x5c73fe&&_0xacbbce;}(_0x3ca697,this['editor']['model']['schema']));_0x480724=to(_0x3b5f28,_0x217d01['model']);}else{const _0x256150=Array['from'](_0xfe9d84['getSelectedBlocks']())['filter'](_0x49e775=>oo(_0x49e775));_0x480724=to(_0x256150,_0x217d01['model']);}_0x217d01['model']['change'](()=>{for(const _0x148cd1 of _0x480724)_0x5187d1['markBlockFormat'](_0x148cd1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x41450e}]});});}),_0x5187d1['descriptionFactory']['registerDescriptionCallback'](_0x152591=>{const {data:_0x47c647}=_0x152591;if(_0x47c647&&'blockQuote'==_0x47c647['commandName']){const _0x203b55=o(_0x34be5d,'ELEMENT_BLOCK_QUOTE');return _0x47c647['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34be5d,'*Set\x20format:*\x20%0',_0x203b55)}:{'type':'format','content':o(_0x34be5d,'*Remove\x20format:*\x20%0',_0x203b55)};}});}}function oo(_0x5ce523){return'blockQuote'==_0x5ce523['parent']['name'];}class L extends _0x5c4eb9{['afterInit'](){const _0x3d32c3=this['editor'],_0x1dc1bf=_0x3d32c3['locale'],_0x42af80=_0x3d32c3['plugins']['get']('TrackChangesEditing');_0x3d32c3['plugins']['has']('BookmarkEditing')&&(_0x42af80['enableCommand']('insertBookmark'),_0x42af80['enableDefaultAttributesIntegration']('updateBookmark'),_0x42af80['registerBlockAttribute']('bookmarkId'),_0x42af80['descriptionFactory']['registerDescriptionCallback'](_0x2fa3b8=>{if('insertion'!=_0x2fa3b8['type']&&'deletion'!=_0x2fa3b8['type']&&'attribute'!=_0x2fa3b8['type'])return;const _0x594acf=_0x2fa3b8['getContainedElement']();if(null==_0x594acf)return;if(!_0x594acf['is']('element','bookmark'))return;const _0x49e26e=_0x594acf['getAttribute']('bookmarkId');if('insertion'==_0x2fa3b8['type'])return{'type':'insertion','content':o(_0x1dc1bf,'*Insert:*\x20%0','\x22'+_0x49e26e+'\x22\x20'+o(_0x1dc1bf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2fa3b8['type'])return{'type':'deletion','content':o(_0x1dc1bf,'*Remove:*\x20%0','\x22'+_0x49e26e+'\x22\x20'+o(_0x1dc1bf,'ELEMENT_BOOKMARK'))};const {data:_0x176ce}=_0x2fa3b8;if(!_0x176ce||'bookmarkId'!=_0x176ce['key'])return;return{'type':'format','content':o(_0x1dc1bf,'*Set\x20bookmark:*\x20%0','\x22'+_0x176ce['newValue']+'\x22')};}));}}class J extends _0x5c4eb9{['afterInit'](){const _0x7b1c26=this['editor'];_0x7b1c26['plugins']['has']('CaseChange')&&(_0x7b1c26['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x7b1c26['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x7b1c26['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5c4eb9{['afterInit'](){const _0x3e808a=this['editor'];_0x3e808a['commands']['get']('ckbox')&&_0x3e808a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5c4eb9{['afterInit'](){const _0x501ca5=this['editor'];if(!_0x501ca5['plugins']['has']('CodeBlock'))return;const _0x1017a6=_0x501ca5['plugins']['get']('TrackChangesEditing'),_0x50a694=_0x501ca5['locale'],_0x535fb4=_0x501ca5['config']['get']('codeBlock')['languages'],_0x292c48=_0x501ca5['commands']['get']('codeBlock');_0x1017a6['enableCommand']('indentCodeBlock'),_0x1017a6['enableCommand']('outdentCodeBlock'),_0x1017a6['enableCommand']('codeBlock',(_0x565ee8,_0xe6f970={})=>{const _0x2cfa0e=_0x501ca5['model'],_0x2bab72=_0x501ca5['model']['document']['selection'],_0x3b4883=_0xe6f970&&void 0x0!==_0xe6f970['forceValue']?_0xe6f970['forceValue']:!_0x292c48['value'];let _0x4c2a49;_0xe6f970['language']||(_0xe6f970['language']=_0x535fb4[0x0]['language']),_0x4c2a49=_0x3b4883?Array['from'](_0x2bab72['getSelectedBlocks']())['filter'](_0x2c8d5e=>eo(_0x2c8d5e)||function(_0x2e2692,_0x43f90e){if(_0x2e2692['is']('rootElement')||_0x43f90e['isLimit'](_0x2e2692))return!0x1;return _0x43f90e['checkChild'](_0x2e2692['parent'],'codeBlock');}(_0x2c8d5e,_0x2cfa0e['schema'])):Array['from'](_0x2bab72['getSelectedBlocks']())['filter'](_0xd92529=>eo(_0xd92529));const _0x47bee9=to(_0x4c2a49,_0x2cfa0e);_0x2cfa0e['change'](()=>{for(const _0x25bc42 of _0x47bee9)_0x1017a6['markBlockFormat'](_0x25bc42,{'commandName':'codeBlock','commandParams':[{..._0xe6f970,'forceValue':_0x3b4883}],'formatGroupId':'blockName'});});}),(_0x1017a6['descriptionFactory']['registerElementLabel']('codeBlock',_0x2adc93=>o(_0x50a694,'ELEMENT_CODE_BLOCK',_0x2adc93)),_0x1017a6['descriptionFactory']['registerDescriptionCallback'](_0x4b29ed=>{if('formatBlock'!=_0x4b29ed['type'])return;const _0x456537=_0x50a694['t'],{data:_0x314b2c}=_0x4b29ed;if(!_0x314b2c||'codeBlock'!=_0x314b2c['commandName'])return;const _0x311650=_0x314b2c['commandParams'][0x0]['language'],_0x4ac329=_0x456537(_0x535fb4['find'](_0x17f5d2=>_0x17f5d2['language']===_0x311650)['label'])['toLowerCase']();return _0x314b2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50a694,'*Set\x20format:*\x20%0',o(_0x50a694,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4ac329+')')}:{'type':'format','content':o(_0x50a694,'*Remove\x20format:*\x20%0',o(_0x50a694,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3cf242){return'codeBlock'==_0x3cf242['name'];}class z extends _0x5c4eb9{['afterInit'](){const _0x31b1d2=this['editor'];if(!_0x31b1d2['plugins']['has']('CommentsEditing'))return;_0x31b1d2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3d3cf6,_0x1d14be,_0x18edbe){const _0x4d9348=[];for(const _0x508d48 of _0x1d14be['getItems']())_0x508d48['hasAttribute'](_0x3d3cf6)&&_0x4d9348['push'](_0x18edbe['createRangeOn'](_0x508d48));return _0x4d9348;}function Ne(_0x1439a4,_0x1fbd4d,{showActiveMarker:_0x3a1ec5=!0x0}={}){const _0x32da8c=_0x1439a4['plugins']['get']('TrackChangesEditing');return(_0x1d3fc2,_0x49bb30,_0x40eded)=>{if(!_0x40eded['consumable']['test'](_0x49bb30['markerRange'],_0x1d3fc2['name']))return;const _0x555401=_0x49bb30['markerRange']['getWalker'](),_0x462c39=_0x49bb30['markerRange']['start'],_0xb7e244=_0x1439a4['model']['schema'];let _0x554907=null,_0x40a76d=null,_0x2db9f4=!0x1,_0x45fa4c=!0x1;for(const _0x1ddb3c of _0x555401){const _0x38355f=_0x1ddb3c['item'];_0x2db9f4=_0x2db9f4||_0xb7e244['isContent'](_0x38355f);const _0x246ba8=_0x40eded['mapper']['toViewElement'](_0x38355f);if(_0x246ba8&&_0x246ba8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ddb3c['type']&&(_0xb7e244['isBlock'](_0x38355f)&&!_0xb7e244['isLimit'](_0x38355f)&&(_0x38355f['nextSibling']||_0x462c39['isAtEnd']?_0x554907&&_0x554907['parent']==_0x38355f||(_0x554907=_0x38355f,_0x1de444(_0x1ddb3c['previousPosition']),_0x45fa4c=!0x0):_0x40a76d=_0x40a76d||_0x1ddb3c['previousPosition']));}function _0x1de444(_0x5afd6e){const {authorId:_0x2c4877}=_0x32da8c['_splitMarkerName'](_0x49bb30['markerName']),_0x5c5cc7=_0x40eded['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fbd4d,'data-author-id':_0x2c4877}),_0x48a315=_0x40eded['mapper']['toViewPosition'](_0x5afd6e);_0x3a1ec5&&_0x32da8c['activeMarkers']['includes'](_0x49bb30['markerName'])&&_0x40eded['writer']['addClass']('ck-suggestion-marker--active',_0x5c5cc7),_0x40eded['writer']['insert'](_0x48a315,_0x5c5cc7),_0x40eded['mapper']['bindElementToMarker'](_0x5c5cc7,_0x49bb30['markerName']);}_0x2db9f4||_0x45fa4c||!_0x40a76d||_0x1de444(_0x40a76d);};}class K extends _0x5c4eb9{static get['requires'](){return[_0x5695dd];}['init'](){const _0x48662d=this['editor'],_0x2bd0b7=_0x48662d['plugins']['get']('TrackChangesEditing');_0x2bd0b7['enableCommand']('delete');const _0x5d485d=_0x48662d['commands']['get']('deleteForward');_0x2bd0b7['enableCommand']('deleteForward',(_0x283572,_0x32e23c={})=>{const _0x4f8e3b=_0x48662d['model']['createSelection'](_0x48662d['model']['document']['selection']);_0x4f8e3b['isCollapsed']&&_0x48662d['model']['modifySelection'](_0x4f8e3b,{'direction':'forward','unit':_0x32e23c['unit']});const _0x40e3fc=_0x4f8e3b['getFirstRange'](),_0x495101=_0x3f97db['fromRange'](_0x40e3fc);let _0x4dbdcd;_0x283572(_0x32e23c),_0x4dbdcd='$graveyard'==_0x495101['root']['rootName']?_0x48662d['model']['createRange'](_0x40e3fc['start']):_0x48662d['model']['createRange'](_0x495101['start'],_0x495101['end']),_0x495101['detach'](),_0x48662d['model']['enqueueChange'](_0x5d485d['buffer']['batch'],_0x2094b3=>{_0x5d485d['buffer']['lock'](),_0x2094b3['setSelection'](_0x2094b3['createRange'](_0x4dbdcd['end'])),_0x5d485d['buffer']['unlock']();});}),_0x48662d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x48662d,'merge'),{'priority':'high'}),_0x48662d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4938eb,_0x4c852c,_0x59d500)=>{_0x59d500['options']['showSuggestionHighlights']&&Ne(_0x48662d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4938eb,_0x4c852c,_0x59d500);},{'priority':'high'}),_0x48662d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x43b21c,_0x58c2cd,_0x5f00dd)=>{const _0x2cfd28=_0x5f00dd['mapper']['markerNameToElements'](_0x58c2cd['markerName']);if(_0x2cfd28){for(const _0x4af11f of _0x2cfd28)_0x4af11f['is']('uiElement')&&(_0x5f00dd['mapper']['unbindElementFromMarkerName'](_0x4af11f,_0x58c2cd['markerName']),_0x5f00dd['writer']['remove'](_0x4af11f));}},{'priority':'high'});}}class W extends _0x5c4eb9{['afterInit'](){const _0x46047e=this['editor'];if(!_0x46047e['plugins']['has']('ListEditing'))return;const _0x44f042=_0x46047e['locale'],_0x357f6d=_0x46047e['plugins']['get']('TrackChangesEditing'),_0x2547c9=_0x46047e['plugins']['has']('TodoListEditing'),_0x540910=!!_0x46047e['config']['get']('list.multiBlock');function _0xa5182b(_0x7018d6){return{'type':'format','content':''+o(_0x44f042,'*Set\x20format:*\x20%0',_0x7018d6)};}function _0x2f04cf(_0x58dcde){return{'type':'format','content':''+o(_0x44f042,'*Remove\x20format:*\x20%0',_0x58dcde)};}_0x357f6d['enableDefaultAttributesIntegration']('numberedList'),_0x357f6d['enableDefaultAttributesIntegration']('bulletedList'),_0x357f6d['enableDefaultAttributesIntegration']('customNumberedList'),_0x357f6d['enableDefaultAttributesIntegration']('customBulletedList'),_0x357f6d['enableDefaultAttributesIntegration']('indentList'),_0x357f6d['enableDefaultAttributesIntegration']('outdentList'),_0x357f6d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x357f6d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x357f6d['registerBlockAttribute']('listItemId'),_0x357f6d['registerBlockAttribute']('listType'),_0x357f6d['registerBlockAttribute']('listIndent'),_0x540910&&(_0x357f6d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x357f6d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2547c9&&(_0x357f6d['enableDefaultAttributesIntegration']('todoList'),_0x357f6d['enableDefaultAttributesIntegration']('checkTodoList'),_0x357f6d['registerBlockAttribute']('todoListChecked'),_0x357f6d['descriptionFactory']['registerDescriptionCallback'](_0x2f8eef=>{const {data:_0xd72884}=_0x2f8eef;if(_0xd72884&&'todoListChecked'==_0xd72884['key'])return{'type':'format','content':_0xd72884['newValue']?o(_0x44f042,'*Check\x20item*'):o(_0x44f042,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x100cc5=>{if(_0x100cc5['batch']['isUndo'])return!0x1;let _0x38e550=!0x1;const _0x39c9aa=_0x357f6d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1538e0=>'todoListChecked'===_0x357f6d['_getAttributeKey'](_0x1538e0));for(const _0x3ff60f of _0x39c9aa){'todo'!=_0x3ff60f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x357f6d['_findSuggestions'](_0x3ff60f['getFirstRange'](),'attribute')['find'](_0x4f4633=>'listType'===_0x357f6d['_getAttributeKey'](_0x4f4633['suggestion']))||(_0x100cc5['removeMarker'](_0x3ff60f['getFirstMarker']()),_0x38e550=!0x0));}return _0x38e550;})),_0x357f6d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44f042,'FORMAT_INDENT'));const _0x43363e={'type':'format','content':''};_0x357f6d['descriptionFactory']['registerDescriptionCallback'](_0x461b4c=>{const {data:_0x2f274c}=_0x461b4c;if(!_0x2f274c||'listType'!=_0x2f274c['key'])return;let _0x2632b2=_0x461b4c['head'];for(;_0x2632b2;){if(_0x2632b2['data']&&(('listStyle'==_0x2632b2['data']['key']||'listMarkerStyle'==_0x2632b2['data']['key'])&&(_0x2632b2['data']['newValue']&&'default'!=_0x2632b2['data']['newValue']||'default'!=_0x2632b2['data']['oldValue']&&!_0x2f274c['newValue'])||!_0x540910&&_0x2632b2['data']['key']==m))return _0x43363e;_0x2632b2=_0x2632b2['next'];}if(null==_0x2f274c['newValue'])switch(_0x2f274c['oldValue']){case'bulleted':return _0x2f04cf(o(_0x44f042,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f04cf(o(_0x44f042,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f04cf(o(_0x44f042,'ELEMENT_TODO_LIST'));}switch(_0x2f274c['newValue']){case'bulleted':return _0xa5182b(o(_0x44f042,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa5182b(o(_0x44f042,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa5182b(o(_0x44f042,'ELEMENT_TODO_LIST'));}}),_0x357f6d['descriptionFactory']['registerDescriptionCallback'](_0x15b6b8=>{const {data:_0xb63634}=_0x15b6b8;if(_0xb63634&&'listIndent'==_0xb63634['key'])return null==_0xb63634['newValue']||null==_0xb63634['oldValue']&&0x0==_0xb63634['newValue']?_0x43363e:void 0x0;}),_0x357f6d['descriptionFactory']['registerDescriptionCallback'](_0x16c989=>{if('attribute'!=_0x16c989['type'])return;const {data:_0x46edc4}=_0x16c989;if(!_0x46edc4||'listItemId'!=_0x46edc4['key'])return;const _0x4b4cb3=Te(_0x16c989);return'newValue'==_0x4b4cb3?{'type':'format','content':o(_0x44f042,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b4cb3?{'type':'format','content':o(_0x44f042,'*Split:*\x20list\x20item')}:_0x43363e;}),_0x46047e['model']['document']['registerPostFixer'](_0x590bdc=>this['listItemIdFixer'](_0x590bdc)),_0x46047e['model']['document']['registerPostFixer'](_0x5a810c=>this['noTrackChangesFixer'](_0x5a810c)),_0x46047e['model']['document']['on']('change:data',(_0x4f4831,_0x463460)=>{if(_0x463460['isUndo']||!_0x463460['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x59a20b){if(_0x59a20b['batch']['isUndo']||!_0x59a20b['batch']['isLocal'])return!0x1;let _0x1c0090=!0x1;const _0xfbcb5a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fd582=>_0x3fd582['data']&&'listItemId'==_0x3fd582['data']['key'])['filter'](_0x4f9323=>_0x4f9323['data']['newValue']&&_0x4f9323['data']['oldValue']);for(const _0x452a66 of _0xfbcb5a)Te(_0x452a66)||(_0x59a20b['removeMarker'](_0x452a66['getFirstMarker']()),_0x1c0090=!0x0);return _0x1c0090;}['noTrackChangesFixer'](_0x530654){if(_0x530654['batch']['isUndo']||!_0x530654['batch']['isLocal'])return!0x1;const _0x3d3755=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d3755['trackChangesCommand']['value'])return!0x1;let _0x24f2dc=!0x1;const _0x3920bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5944f3=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x981f85=>'attribute'==_0x981f85['type'])['filter'](_0x146038=>_0x3920bf['includes'](_0x146038['attributeKey']));if(0x0==_0x5944f3['length'])return _0x24f2dc;for(const _0x21ff7b of _0x5944f3){const _0x328263=_0x3d3755['_findSuggestions'](_0x21ff7b['range'],'attribute')['filter'](_0x2e4dd4=>!_0x2e4dd4['meta']['isNextTo'])['map'](_0x3053b9=>_0x3053b9['suggestion'])['filter'](_0x132e1a=>{const _0x4a0255=_0x3d3755['_getAttributeKey'](_0x132e1a);return _0x3920bf['includes'](_0x4a0255);});if(_0x328263['length']){for(const _0x50207a of _0x328263)_0x530654['removeMarker'](_0x50207a['getFirstMarker']());_0x24f2dc=!0x0;}}return _0x24f2dc;}['assureChains'](){const _0x1e21aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x385543=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ee0e5;const _0x535cd6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56880e=>{if(_0x56880e['data']['oldRange']||!_0x56880e['data']['newRange'])return null;if(!_0x56880e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5f24f9}=_0x1e21aa['_splitMarkerName'](_0x56880e['name']);if(!_0x1e21aa['hasSuggestion'](_0x5f24f9))return null;const _0x2e126d=_0x1e21aa['getSuggestion'](_0x5f24f9);return _0x385543['includes'](_0x2e126d['data']['key']);})['map'](_0x7a8db6=>{const {id:_0x1ea6bb}=_0x1e21aa['_splitMarkerName'](_0x7a8db6['name']),_0xa33d9b=_0x1e21aa['getSuggestion'](_0x1ea6bb);return _0x3ee0e5=_0xa33d9b['attributes']['groupId'],_0xa33d9b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x535cd6['size'])return;const _0x381cbe=_0x1e21aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22598c=>'attribute'==_0x22598c['type']&&_0x22598c['data']&&_0x385543['includes'](_0x22598c['data']['key'])&&_0x22598c['attributes']['groupId']!=_0x3ee0e5)['map'](_0x183708=>({'listItem':_0x183708['getFirstRange']()['start']['nodeAfter'],'groupId':_0x183708['attributes']['groupId']})),_0x1c515f=new Set();for(const {groupId:_0x244cd4,listItem:_0x572b38}of _0x381cbe)_0x535cd6['has'](_0x572b38)&&_0x1c515f['add'](_0x244cd4);for(const _0xcda602 of _0x1e21aa['getSuggestions']())_0x1c515f['has'](_0xcda602['attributes']['groupId'])&&_0xcda602['setAttribute']('groupId',_0x3ee0e5);}['_supportLegacySuggestions'](){const _0x16f78c=this['editor'],_0xa4af0c=_0x16f78c['locale'],_0x45346b=_0x16f78c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45346b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ce22b,_0x30908f){const _0x1967a9=[];for(let _0x36a958 of _0x5ce22b)_0x36a958['start']['nodeAfter']===_0x36a958['end']['parent']&&(_0x36a958=_0x16f78c['model']['createRange'](_0x16f78c['model']['createPositionAt'](_0x36a958['start']['nodeAfter'],0x0))),_0x1967a9['push'](_0x36a958);_0x16f78c['model']['change'](_0x4faf5a=>{const _0x99401b=_0x16f78c['model']['document']['selection'],_0x406247=Array['from'](_0x99401b['getRanges']())['map'](_0x4f9436=>_0x3f97db['fromRange'](_0x4f9436));_0x4faf5a['setSelection'](_0x1967a9),_0x16f78c['commands']['get'](_0x30908f['commandName'])['refresh'](),_0x30908f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16f78c['execute'](_0x30908f['commandName'],..._0x30908f['commandParams']),_0x4faf5a['setSelection'](_0x406247);for(const _0x42420b of _0x406247)_0x42420b['detach']();});}),_0x45346b['descriptionFactory']['registerElementLabel'](function(_0x1c6acc){const _0x53c066=!_0x16f78c['model']['schema']['isObject'](_0x1c6acc),_0x3c37f5=_0x1c6acc['previousSibling'],_0x2204eb=_0x1c6acc['nextSibling'],_0x599c09=_0x1c6acc['getAttribute']('listItemId'),_0x158075=!_0x3c37f5||_0x3c37f5['getAttribute']('listItemId')!==_0x599c09,_0x7d49a8=!_0x2204eb||_0x2204eb['getAttribute']('listItemId')!==_0x599c09;return _0x53c066&&Boolean(_0x599c09)&&_0x158075&&_0x7d49a8;},_0x1bef32=>o(_0xa4af0c,'ELEMENT_LIST_ITEM',_0x1bef32));}['_registerLegacyDescription'](){const _0x26029b=this['editor'],_0x242c8e=_0x26029b['locale'];function _0x3424b0(_0x123d1a){const _0x2489ac=_0x26029b['commands']['get']('bulletedList')['value'],_0x5e07b1=_0x26029b['commands']['get']('numberedList')['value'];return'numberedList'===_0x123d1a?_0x2489ac:_0x5e07b1;}_0x26029b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x784093){if('formatBlock'!=_0x784093['type'])return;const {data:_0x1a0922}=_0x784093;if(!_0x1a0922)return;let _0x16c22a,_0x471f42,_0x580999,_0x56ee3a;switch(_0x1a0922['commandName']){case'bulletedList':_0x580999=_0x1a0922['commandParams'][0x0]['forceValue'],_0x56ee3a=_0x3424b0(_0x1a0922['commandName']),_0x16c22a=_0x580999?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56ee3a&&_0x26029b['config']['get']('list.multiBlock')||(_0x16c22a='*Change\x20to:*\x20%0'),_0x471f42={'type':'format','content':o(_0x242c8e,_0x16c22a,o(_0x242c8e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x580999=_0x1a0922['commandParams'][0x0]['forceValue'],_0x56ee3a=_0x3424b0(_0x1a0922['commandName']),_0x16c22a=_0x580999?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56ee3a&&_0x26029b['config']['get']('list.multiBlock')||(_0x16c22a='*Change\x20to:*\x20%0'),_0x471f42={'type':'format','content':o(_0x242c8e,_0x16c22a,o(_0x242c8e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16c22a='*Indent:*\x20%0',_0x471f42={'type':'format','content':o(_0x242c8e,_0x16c22a,o(_0x242c8e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16c22a=function(_0x377524){const _0x3a5203=_0x377524['getFirstRange']();let _0x35522f=_0x3a5203['start']['nodeAfter'];for(;_0x35522f&&_0x3a5203['containsItem'](_0x35522f);){if(_0x35522f['getAttribute']('listIndent')>0x0)return!0x1;_0x35522f=_0x35522f['nextSibling'];}return!0x0;}(_0x784093)?o(_0x242c8e,'*Format:*\x20remove\x20from\x20%0',o(_0x242c8e,function(_0x28da94){return'ELEMENT_'+_0x28da94['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x784093))):o(_0x242c8e,'*Outdent:*\x20%0',o(_0x242c8e,'ELEMENT_LIST_ITEM')),_0x471f42={'type':'format','content':_0x16c22a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1a0922['multipleBlocks']&&(_0x16c22a='*Merge:*\x20%0',_0x471f42={'type':'deletion','content':o(_0x242c8e,_0x16c22a,o(_0x242c8e,'ELEMENT_LIST_ITEM'))});}return _0x471f42;});}}function Te(_0x10c119){let _0x2d7d46=_0x10c119['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d7d46;){const _0x1efa81=_0x2d7d46['getAttribute']('listItemId');if(!_0x1efa81)return!0x1;if(_0x1efa81==_0x10c119['data']['newValue'])return'newValue';if(_0x1efa81==_0x10c119['data']['oldValue'])return'oldValue';_0x2d7d46=_0x2d7d46['previousSibling'];}return!0x1;}class ye extends _0x5c4eb9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x52589a=this['editor']['config']['get']('list.properties'),_0x17ec02=this['editor']['plugins']['get']('TrackChangesEditing');_0x52589a['styles']&&(_0x17ec02['enableDefaultAttributesIntegration']('listStyle'),_0x17ec02['registerBlockAttribute']('listStyle')),_0x52589a['reversed']&&(_0x17ec02['enableDefaultAttributesIntegration']('listReversed'),_0x17ec02['registerBlockAttribute']('listReversed')),_0x52589a['startIndex']&&(_0x17ec02['enableDefaultAttributesIntegration']('listStart'),_0x17ec02['registerBlockAttribute']('listStart'));const _0x2d37a0={'type':'format','content':''};_0x17ec02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x179678=this['editor']['locale'];_0x17ec02['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x179678,'FORMAT_LIST_REVERSED')),_0x17ec02['descriptionFactory']['registerDescriptionCallback'](_0x4b89ba=>{const {data:_0x4dde80}=_0x4b89ba;if(_0x4dde80&&'listReversed'==_0x4dde80['key'])return null==_0x4dde80['newValue']||0x0==_0x4dde80['newValue']&&null==_0x4dde80['oldValue']?_0x2d37a0:void 0x0;}),_0x17ec02['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x179678,'FORMAT_LIST_START')),_0x17ec02['descriptionFactory']['registerDescriptionCallback'](_0x35e46c=>{const {data:_0x317af0}=_0x35e46c;if(_0x317af0&&'listStart'==_0x317af0['key'])return null==_0x317af0['newValue']||0x1==_0x317af0['newValue']&&null==_0x317af0['oldValue']?_0x2d37a0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x588bfc=>{if(_0x588bfc['batch']['isUndo'])return!0x1;let _0x567194=!0x1;const _0x2ff46a=_0x17ec02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x257bd5=>{const _0x41b6b1=_0x17ec02['_getAttributeKey'](_0x257bd5);return'listStart'==_0x41b6b1||'listReversed'==_0x41b6b1;});for(const _0x53b3f0 of _0x2ff46a){const _0x196835=_0x53b3f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x196835||'customNumbered'==_0x196835)continue;_0x17ec02['_findSuggestions'](_0x53b3f0['getFirstRange'](),'attribute')['find'](_0x1d11c1=>'listType'==_0x17ec02['_getAttributeKey'](_0x1d11c1['suggestion']))||(_0x588bfc['removeMarker'](_0x53b3f0['getFirstMarker']()),_0x567194=!0x0);}return _0x567194;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d0019){const _0x1cc7e6=this['editor']['locale'],{data:_0x3d4e43}=_0x4d0019,_0x174bde={'type':'format','content':''};if(!_0x3d4e43||'listStyle'!=_0x3d4e43['key'])return;if(!_0x3d4e43['oldValue'])return'default'==_0x3d4e43['newValue']?_0x174bde:{'type':'format','content':''+o(_0x1cc7e6,'*Set\x20format:*\x20%0',o(_0x1cc7e6,this['_getTranslationKeyForListStyle'](_0x3d4e43['newValue'])))};if(!_0x3d4e43['newValue']){if('default'==_0x3d4e43['oldValue'])return _0x174bde;let _0x34f851=_0x4d0019['head'];for(;_0x34f851;){if(_0x34f851['data']&&'listType'==_0x34f851['data']['key']&&_0x34f851['data']['newValue'])return _0x174bde;_0x34f851=_0x34f851['next'];}return{'type':'format','content':''+o(_0x1cc7e6,'*Remove\x20format:*\x20%0',o(_0x1cc7e6,this['_getTranslationKeyForListStyle'](_0x3d4e43['oldValue'])))};}if('default'!=_0x3d4e43['newValue'])return{'type':'format','content':''+o(_0x1cc7e6,'*Set\x20format:*\x20%0',o(_0x1cc7e6,this['_getTranslationKeyForListStyle'](_0x3d4e43['newValue'])))};let _0x3d41ae=_0x4d0019['head'];for(;_0x3d41ae;){if(_0x3d41ae['data']&&'listType'==_0x3d41ae['data']['key']&&_0x3d41ae['data']['newValue']&&_0x3d41ae['data']['oldValue'])return _0x174bde;_0x3d41ae=_0x3d41ae['next'];}return{'type':'format','content':o(_0x1cc7e6,'*Set\x20format:*\x20%0',o(_0x1cc7e6,'ELEMENT_'+_0x4d0019['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c2747=this['editor'],_0x3a0f99=_0x1c2747['locale'];_0x1c2747['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a438e=>{if('formatBlock'!=_0x1a438e['type'])return;const {data:_0x4aff9e}=_0x1a438e;if(!_0x4aff9e)return;let _0x4f0392,_0x3a74c6;switch(_0x4aff9e['commandName']){case'listStyle':_0x4f0392='*Change\x20to:*\x20%0',_0x3a74c6={'type':'format','content':o(_0x3a0f99,_0x4f0392,o(_0x3a0f99,this['_getTranslationKeyForListStyle'](_0x4aff9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f0392=_0x4aff9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a74c6={'type':'format','content':o(_0x3a0f99,_0x4f0392)};break;case'listStart':_0x4f0392='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a74c6={'type':'format','content':o(_0x3a0f99,_0x4f0392,_0x4aff9e['commandParams'][0x0]['startIndex'])};}return _0x3a74c6;});}['_getTranslationKeyForListStyle'](_0x2b62a3){return'ELEMENT_'+function(_0x454b52){if(Se['includes'](_0x454b52))return'bulleted';if(_e['includes'](_0x454b52))return'numbered';return null;}(_0x2b62a3)['toUpperCase']()+'_LIST_'+_0x2b62a3['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c4eb9{static get['requires'](){return[_0xedc15b];}['init'](){const _0x5262b0=this['editor'],_0x3b169b=_0x5262b0['plugins']['get']('TrackChangesEditing'),_0x51ac86=_0x5262b0['commands']['get']('enter');_0x3b169b['enableCommand']('enter',()=>{_0x5262b0['model']['change'](_0xf95003=>{const _0x5dff8a=_0x5262b0['model']['document']['selection'],_0x150225=_0x5dff8a['getFirstPosition'](),_0x48bde8=_0x3f97db['fromRange'](_0x5dff8a['getFirstRange']());if(_0x51ac86['enterBlock'](_0xf95003)){const _0x234577=_0x5262b0['model']['createPositionAt'](_0x150225['parent']['nextSibling'],0x0),_0x3be2f3=_0xf95003['createRange'](_0x150225,_0x234577);_0x3b169b['markInsertion'](_0x3be2f3);}else _0xf95003['setSelection'](_0xf95003['createRange'](_0x48bde8['end']));_0x48bde8['detach'](),_0x51ac86['fire']('afterExecute',{'writer':_0xf95003});});}),_0x5262b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x5262b0,'split'),{'priority':'high'}),_0x5262b0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc77d28,_0x46b6c2,_0x5a93bb)=>{const _0x2e586e=_0x5a93bb['mapper']['markerNameToElements'](_0x46b6c2['markerName']);if(_0x2e586e){for(const _0x30bc7f of _0x2e586e)_0x30bc7f['hasClass']('ck-suggestion-marker-split')&&(_0x5a93bb['mapper']['unbindElementFromMarkerName'](_0x30bc7f,_0x46b6c2['markerName']),_0x5a93bb['writer']['remove'](_0x30bc7f));}},{'priority':'high'}),_0x5262b0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x741380,_0x81c41e,_0x52ecf7)=>{_0x52ecf7['options']['showSuggestionHighlights']&&Ne(_0x5262b0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x741380,_0x81c41e,_0x52ecf7);},{'priority':'high'});}}class Y extends _0x5c4eb9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x407a49=this['editor']['plugins']['get']('TrackChangesEditing');_0x407a49['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x407a49['enableCommand']('findNext'),_0x407a49['enableCommand']('findPrevious'),_0x407a49['enableCommand']('replace'),_0x407a49['enableCommand']('replaceAll');}['handleFindCommand'](_0x102dd5,_0x14c6e1,_0xe93fca={}){const _0x1f8983=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x102dd5(_0x16e18e=>{let _0x490336=('string'==typeof _0x14c6e1?_0x1f8983['findByTextCallback'](_0x14c6e1,_0xe93fca):_0x14c6e1)(_0x16e18e);Array['isArray'](_0x490336)&&(_0x490336={'results':_0x490336,'searchText':'string'==typeof _0x14c6e1?_0x14c6e1:''});const _0x4a422d=_0x490336['results']['filter'](_0x21b250=>!0x1===this['_isInDeletionRange'](_0x21b250,_0x16e18e['item']));return{..._0x490336,'results':_0x4a422d};},_0xe93fca);}['_isInDeletionRange'](_0x42cc02,_0x4b3ddb){const _0x46fb58=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b3ddb,_0x42cc02['start']),this['editor']['model']['createPositionAt'](_0x4b3ddb,_0x42cc02['end']));for(const _0x94cd2d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x46fb58['getIntersection'](_0x94cd2d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5c4eb9{['afterInit'](){const _0x42be59=this['editor']['locale'],_0x369c9d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16a97d,commandName:_0x579dc5}of ro)this['editor']['plugins']['has'](_0x16a97d)&&(_0x369c9d['enableDefaultAttributesIntegration'](_0x579dc5),_0x369c9d['registerInlineAttribute'](_0x579dc5));_0x369c9d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x42be59,'FORMAT_FONT_SIZE')),_0x369c9d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x42be59,'FORMAT_FONT_FAMILY')),_0x369c9d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x42be59,'FORMAT_FONT_COLOR')),_0x369c9d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x42be59,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x337b2c=this['editor'],_0x29c5af=_0x337b2c['locale'];_0x337b2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x232cd4=>{const _0x39e671=_0x29c5af['t'];if('formatInline'!=_0x232cd4['type'])return;const {data:_0x84552f}=_0x232cd4;if(null!=_0x84552f){if('fontSize'==_0x84552f['commandName']){const _0x4776b4=_0x84552f['commandParams'][0x0]['value'];if(_0x4776b4){const _0x5a5957=_0x39e671(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xecc99f=>_0xecc99f['model']==_0x4776b4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x29c5af,'*Set\x20font\x20size:*\x20%0',_0x5a5957)};}return{'type':'format','content':o(_0x29c5af,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x84552f['commandName']){const _0x15655e=_0x84552f['commandParams'][0x0]['value'];return _0x15655e?{'type':'format','content':o(_0x29c5af,'*Set\x20font\x20family:*\x20%0',_0x15655e)}:{'type':'format','content':o(_0x29c5af,'*Reset\x20font\x20family*')};}if('fontColor'==_0x84552f['commandName']){const _0x7f8eb5=_0x84552f['commandParams'][0x0]['value'];if(_0x7f8eb5){const _0x52961e=_0x37df8d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a7587=>_0x5a7587['model']==_0x7f8eb5);let _0x18bf97=_0x7f8eb5,_0x306001='';return _0x52961e&&(_0x18bf97=_0x52961e['label'],_0x306001=_0x39e671(_0x18bf97)['toLowerCase']()),{'type':'format','content':o(_0x29c5af,'*Set\x20font\x20color:*\x20%0',_0x306001)['trim'](),'color':{'value':_0x7f8eb5,'title':_0x306001||_0x18bf97}};}return{'type':'format','content':o(_0x29c5af,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x84552f['commandName']){const _0xefde17=_0x84552f['commandParams'][0x0]['value'];if(_0xefde17){const _0x1ba0f7=_0x37df8d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34d243=>_0x34d243['model']==_0xefde17);let _0xdbb2db=_0xefde17,_0x1cfec2='';return _0x1ba0f7&&(_0xdbb2db=_0x1ba0f7['label'],_0x1cfec2=_0x39e671(_0xdbb2db)['toLowerCase']()),{'type':'format','content':o(_0x29c5af,'*Set\x20font\x20background\x20color:*\x20%0',_0x1cfec2)['trim'](),'color':{'value':_0xefde17,'title':_0x1cfec2||_0xdbb2db}};}return{'type':'format','content':o(_0x29c5af,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5c4eb9{['afterInit'](){const _0x110e7e=this['editor'],_0x1e33a5=_0x110e7e['plugins']['get']('TrackChangesEditing'),_0x16a5dc=_0x110e7e['commands']['get']('copyFormat'),_0x369e60=_0x110e7e['commands']['get']('pasteFormat');_0x16a5dc&&_0x369e60&&(_0x1e33a5['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e33a5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4dfc23=this['editor'],_0x39a9f3=_0x4dfc23['locale'];_0x4dfc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ce71=>{if('formatBlock'!=_0x11ce71['type']&&'formatInline'!=_0x11ce71['type'])return;const {data:_0x2222c7}=_0x11ce71;if(_0x2222c7&&'pasteFormat'===_0x2222c7['commandName']){const _0x37e49a=[],_0xb20d67=_0x2222c7['commandParams'][0x0];for(const [_0x169f5b,_0x5bd389]of Object['entries'](_0xb20d67))_0x37e49a['push'](so(_0x4dfc23,_0x169f5b,_0x5bd389));return _0x37e49a['length']?{'type':'format','content':o(_0x39a9f3,'*Set\x20format\x20to:*\x20%0',_0x37e49a['join'](',\x20'))}:{'type':'format','content':o(_0x39a9f3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x43cd70,_0x3d75a8,_0x4da381){const _0x587b99=_0x43cd70['locale']['t'],_0x32356e=_0x3d75a8['split'](/(?=[A-Z])/)['join']('\x20'),_0xaa9ff=_0x587b99(_0x32356e['charAt'](0x0)['toUpperCase']()+_0x32356e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4da381)return _0xaa9ff;if('fontColor'===_0x3d75a8||'fontBackgroundColor'===_0x3d75a8){const _0x835337=_0x37df8d(_0x43cd70['config']['get']('fontColor.colors'))['find'](_0x30202c=>_0x30202c['model']==_0x4da381);return _0xaa9ff+'\x20('+(_0x835337?_0x587b99(_0x835337['label'])['toLowerCase']():_0x4da381)+')';}if('fontSize'===_0x3d75a8&&isNaN(parseFloat(_0x4da381))){const _0x55d1d3=_0x43cd70['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x43cd70['config']['get']('fontSize.options'))['find'](_0x3b7802=>_0x3b7802['model']==_0x4da381);return _0xaa9ff+'\x20('+(_0x55d1d3?_0x587b99(_0x55d1d3['title'])['toLowerCase']():_0x4da381)+')';}return _0xaa9ff+'\x20('+_0x4da381+')';}class nt extends _0x5c4eb9{['_headingOptions'];['afterInit'](){const _0x3ab688=this['editor'];if(!_0x3ab688['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3ab688['config']['get']('heading.options');const _0x55ed98=_0x3ab688['locale'],_0x2e815f=_0x3ab688['plugins']['get']('TrackChangesEditing');_0x2e815f['enableDefaultAttributesIntegration']('heading');for(const _0x17e86a of this['_headingOptions'])'paragraph'!=_0x17e86a['model']&&_0x2e815f['descriptionFactory']['registerElementLabel'](_0x17e86a['model'],_0x57c30e=>{const _0x7aa9ff=this['_getHeadingLevel'](_0x17e86a['model']);return null!==_0x7aa9ff?_0x726083(_0x57c30e,_0x7aa9ff):_0x54e776(_0x57c30e,_0x17e86a['title']);});function _0x726083(_0x37e83e,_0x2bcf51){return o(_0x55ed98,'ELEMENT_HEADING',[_0x37e83e,_0x2bcf51]);}function _0x54e776(_0x2a8058,_0xfbf9bd){return o(_0x55ed98,'ELEMENT_HEADING_CUSTOM',[_0x2a8058,_0xfbf9bd]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0cb4=this['editor'],_0x505dcc=_0x4b0cb4['locale'];function _0x2b9ad8(_0x494d3a,_0x446cb0){return o(_0x505dcc,'ELEMENT_HEADING_CUSTOM',[_0x494d3a,_0x446cb0]);}_0x4b0cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37d292=>{if('formatBlock'!=_0x37d292['type'])return;const {data:_0x77caba}=_0x37d292;if(_0x77caba&&'heading'==_0x77caba['commandName']){const _0xf701ea=_0x77caba['commandParams'][0x0]['value'],_0x21fde0=this['_getHeadingLevel'](_0xf701ea);if(null!==_0x21fde0)return{'type':'format','content':o(_0x505dcc,'*Change\x20to:*\x20%0',(_0x3e55bc=0x1,_0x5f1bda=_0x21fde0,o(_0x505dcc,'ELEMENT_HEADING',[_0x3e55bc,_0x5f1bda])))};const _0x4f1b33=this['_headingOptions']['find'](_0x575296=>_0x575296['model']===_0xf701ea)['title'];return{'type':'format','content':o(_0x505dcc,'*Change\x20to:*\x20%0',_0x2b9ad8(0x1,_0x4f1b33))};}var _0x3e55bc,_0x5f1bda;});}['_getHeadingLevel'](_0x4052c9){const _0x53de83=_0x4052c9['match'](/^heading(\d+)/);if(_0x53de83)return _0x53de83[0x1];const _0x570651=this['_headingOptions']?.['find'](_0x4494de=>_0x4494de['model']==_0x4052c9);if(_0x570651&&_0x570651['view']){const _0x3607e1=_0x570651['view'],_0x3c8610=(_0x3607e1['name']??_0x3607e1)['match'](/^h(\d+)/);if(_0x3c8610)return _0x3c8610[0x1];}return null;}}class it extends _0x5c4eb9{['afterInit'](){const _0x156d71=this['editor'];if(!_0x156d71['plugins']['has']('HighlightEditing'))return;const _0x43a939=_0x156d71['plugins']['get']('TrackChangesEditing'),_0x512fa7=_0x156d71['locale'];_0x43a939['enableDefaultAttributesIntegration']('highlight'),_0x43a939['registerInlineAttribute']('highlight'),_0x43a939['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x512fa7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a8263=this['editor'],_0x4e1b3b=_0x3a8263['locale'];_0x3a8263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22a389=>{if('formatInline'!=_0x22a389['type'])return;const {data:_0x3ac4fc}=_0x22a389;if(_0x3ac4fc&&'highlight'==_0x3ac4fc['commandName']){const _0x2924f3=_0x4e1b3b['t'],_0x5a9aad=_0x3ac4fc['commandParams'][0x0]['value'];if(_0x5a9aad){const _0x48a55f=_0x3a8263['config']['get']('highlight.options')['find'](_0x5794e6=>_0x5794e6['model']==_0x5a9aad),_0x15bb33=_0x2924f3(_0x48a55f['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e1b3b,'*Set\x20highlight:*\x20%0',_0x15bb33),'color':{'value':_0x48a55f['color'],'title':_0x48a55f['title']}};}return{'type':'format','content':o(_0x4e1b3b,'*Remove\x20highlight*',o(_0x4e1b3b,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5c4eb9{['afterInit'](){const _0x1d5ce4=this['editor'];if(!_0x1d5ce4['plugins']['has']('HorizontalLineEditing'))return;_0x1d5ce4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x8ac359=_0x1d5ce4['plugins']['get']('TrackChangesEditing'),_0x2fc0b7=_0x1d5ce4['locale'];_0x8ac359['descriptionFactory']['registerElementLabel']('horizontalLine',_0x379a71=>o(_0x2fc0b7,'ELEMENT_HORIZONTAL_LINE',_0x379a71)),_0x1d5ce4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3c2afb,{writer:_0x27ac59,options:_0x5d225c})=>{if(!_0x5d225c['showSuggestionHighlights'])return null;const _0xa2b251=_0x27ac59['createContainerElement']('div'),_0x70ec8d=_0x27ac59['createEmptyElement']('hr');return _0x27ac59['addClass']('ck-horizontal-line',_0xa2b251),_0x27ac59['insert'](_0x27ac59['createPositionAt'](_0xa2b251,0x0),_0x70ec8d),_0xa2b251;},'converterPriority':'high'});}}class st extends _0x5c4eb9{['afterInit'](){const _0x595389=this['editor'];if(!_0x595389['plugins']['has']('HtmlEmbed'))return;const _0x3b0a80=_0x595389['plugins']['get']('TrackChangesEditing'),_0x1ce90f=_0x595389['locale'];_0x3b0a80['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b0c68=>o(_0x1ce90f,'ELEMENT_HTML_EMBED',_0x5b0c68)),_0x3b0a80['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3b0a80['registerBlockAttribute']('value'),_0x3b0a80['descriptionFactory']['registerDescriptionCallback'](_0x37a8ce=>{if('attribute'!=_0x37a8ce['type'])return;const {data:_0x62078c}=_0x37a8ce;if(_0x62078c&&'value'==_0x62078c['key']&&_0x37a8ce['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x501882=o(_0x1ce90f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ce90f,'*Change\x20%0\x20content*',_0x501882)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17f2a2=this['editor'],_0x2d1c9b=_0x17f2a2['locale'];_0x17f2a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x503788=>{if('formatBlock'!=_0x503788['type'])return;const {data:_0x23fc5d}=_0x503788;if(_0x23fc5d&&'htmlEmbed'==_0x23fc5d['commandName']){const _0x305b10=o(_0x2d1c9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d1c9b,'*Change\x20%0\x20content*',_0x305b10)};}});}}class ot extends _0x5c4eb9{['afterInit'](){const _0x4e93c8=this['editor'];if(!_0x4e93c8['plugins']['has']('ImageEditing'))return;const _0x112caa=_0x4e93c8['plugins']['get']('TrackChangesEditing'),_0x3f574f=_0x4e93c8['plugins']['get']('ImageUtils'),_0x33dd61=_0x4e93c8['locale'];_0x112caa['enableCommand']('insertImage'),_0x112caa['descriptionFactory']['registerElementLabel']('imageBlock',_0x43dbd2=>o(_0x33dd61,'ELEMENT_IMAGE',_0x43dbd2)),_0x112caa['descriptionFactory']['registerElementLabel']('imageInline',_0xd7566=>o(_0x33dd61,'ELEMENT_INLINE_IMAGE',_0xd7566)),_0x112caa['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x33dd61,'ELEMENT_CAPTION')),_0x4e93c8['plugins']['has']('ImageUploadEditing')&&_0x112caa['enableCommand']('uploadImage'),_0x4e93c8['plugins']['has']('ImageBlockEditing')&&_0x4e93c8['plugins']['has']('ImageInlineEditing')&&(_0x112caa['enableCommand']('imageTypeInline',(_0x7d1ae5,_0x54567d)=>{const _0x571a81=_0x3f574f['getClosestSelectedImageElement'](_0x4e93c8['model']['document']['selection']);_0x4e93c8['model']['change'](()=>{_0x112caa['markBlockFormat'](_0x571a81,{'commandName':'imageTypeInline','commandParams':[_0x54567d]},[],'convertBlockImageToInline');});}),_0x112caa['enableCommand']('imageTypeBlock',(_0x35f5c0,_0x31c158)=>{_0x4e93c8['model']['change'](_0x38a287=>{let _0x3bcb32=_0x3f574f['getClosestSelectedImageElement'](_0x4e93c8['model']['document']['selection']),_0x7359aa=_0x38a287['createRangeOn'](_0x3bcb32);const _0x49429a=_0x41f920['fromPosition'](_0x7359aa['start'],'toPrevious'),_0x46ee37=_0x41f920['fromPosition'](_0x7359aa['end'],'toNext');_0x112caa['forceDefaultExecution'](()=>_0x35f5c0(_0x31c158)),_0x3bcb32=_0x3f574f['getClosestSelectedImageElement'](_0x4e93c8['model']['document']['selection']),_0x7359aa=_0x38a287['createRangeOn'](_0x3bcb32);const _0x39d0f6=_0x38a287['createRange'](_0x49429a,_0x46ee37);_0x49429a['detach'](),_0x46ee37['detach'](),_0x112caa['markBlockFormat'](_0x3bcb32,{'commandName':'imageTypeInline','commandParams':[_0x31c158]},[],'convertInlineImageToBlock'),_0x39d0f6['start']['isBefore'](_0x7359aa['start'])&&_0x112caa['markInsertion'](_0x38a287['createRange'](_0x39d0f6['start'],_0x7359aa['start']),'convertInlineImageToBlock'),_0x7359aa['end']['isBefore'](_0x39d0f6['end'])&&_0x112caa['markInsertion'](_0x38a287['createRange'](_0x7359aa['end'],_0x39d0f6['end']),'convertInlineImageToBlock');});}),_0x112caa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x112caa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x112caa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x112caa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x112caa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x112caa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x450140])=>{const _0x3c42f5=_0x112caa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x20e2ed=_0x450140['start'],_0x12ce8a=_0x450140['end'];const _0x25d01f=_0x4e93c8['model']['schema']['getNearestSelectionRange'](_0x20e2ed,'backward'),_0x403670=_0x4e93c8['model']['schema']['getNearestSelectionRange'](_0x12ce8a,'forward');_0x25d01f['isCollapsed']&&(_0x20e2ed=_0x25d01f['start']),_0x403670['isCollapsed']&&(_0x12ce8a=_0x403670['end']),_0x3c42f5([_0x4e93c8['model']['createRange'](_0x20e2ed,_0x12ce8a)]);}),_0x112caa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x738078),_0x112caa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x738078)),_0x4e93c8['plugins']['has']('ImageCaptionEditing')&&(_0x112caa['enableCommand']('toggleImageCaption',(_0x59b4c6,_0x1f79c8)=>{const _0x1a6687=_0x4e93c8['plugins']['get']('ImageCaptionUtils');let _0xfb423=_0x3f574f['getClosestSelectedImageElement'](_0x4e93c8['model']['document']['selection']),_0x1b2307=_0x1a6687['getCaptionFromImageModelElement'](_0xfb423);_0x4e93c8['model']['change'](()=>{if(_0x1b2307)return void _0x112caa['markDeletion'](_0x4e93c8['model']['createRangeOn'](_0x1b2307));const _0x501d2c=_0x3f574f['isBlockImage'](_0xfb423);_0x59b4c6(_0x1f79c8),_0xfb423=_0x3f574f['getClosestSelectedImageElement'](_0x4e93c8['model']['document']['selection']),_0x1b2307=_0x1a6687['getCaptionFromImageModelElement'](_0xfb423),_0x112caa['markInsertion'](_0x4e93c8['model']['createRangeOn'](_0x1b2307),_0x501d2c?null:'imageCaption');});}),_0x112caa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x738078));const _0x344356=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x511186(_0x1a000b,_0x4fbf41){const _0x464d9f=_0x344356['findIndex'](({type:_0x12940b,subType:_0x17b41a})=>_0x1a000b['type']==_0x12940b&&_0x1a000b['subType']==_0x17b41a),_0xed5073=_0x344356['findIndex'](({type:_0x533037,subType:_0x587bf5})=>_0x4fbf41['type']==_0x533037&&_0x4fbf41['subType']==_0x587bf5);if(_0x464d9f<0x0||_0xed5073<0x0)return!0x1;const _0xa49f67=_0x1a000b['getFirstRange'](),_0x376b28=_0x4fbf41['getFirstRange']();if((0x0==_0x464d9f||0x1==_0x464d9f)&&0x2==_0xed5073&&_0xa49f67['isIntersecting'](_0x376b28))return!0x0;if(0x2==_0x464d9f&&0x3==_0xed5073){const _0x54cbc6=_0x112caa['_findSuggestions'](_0xa49f67,'insertion')['filter'](({suggestion:_0x40a0b7,meta:_0x208b19})=>_0x208b19['isOwn']&&'convertInlineImageToBlock'==_0x40a0b7['subType']);if(_0x54cbc6['length']>0x1&&_0x376b28['end']['isEqual'](_0xa49f67['start']))return!0x0;if(0x1==_0x54cbc6['length']&&(_0xa49f67['start']['isEqual'](_0x376b28['end'])||_0xa49f67['end']['isEqual'](_0x376b28['start'])))return!0x0;}if(0x3==_0x464d9f&&0x3==_0xed5073&&_0xa49f67['start']['isBefore'](_0x376b28['start'])){const _0x389858=_0xa49f67['end']['nodeAfter'],_0x18c5cd=_0x376b28['start']['nodeBefore'];return _0x3f574f['isBlockImage'](_0x389858)&&_0x389858===_0x18c5cd;}return!0x1;}function _0x738078(_0x1ac8e2,_0xbb168){return _0x511186(_0x1ac8e2,_0xbb168)?[_0x1ac8e2,_0xbb168]:_0x511186(_0xbb168,_0x1ac8e2)?[_0xbb168,_0x1ac8e2]:null;}_0x4e93c8['plugins']['has']('ImageResize')&&(_0x112caa['enableDefaultAttributesIntegration']('resizeImage'),_0x112caa['registerBlockAttribute']('resizedWidth'),_0x112caa['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x33dd61,'FORMAT_IMAGE_SIZE'))),_0x4e93c8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x112caa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x112caa['registerBlockAttribute']('alt')),_0x112caa['descriptionFactory']['registerDescriptionCallback'](_0x32715f=>{if(!!_0x344356['find'](({type:_0x2e45d1,subType:_0x144286})=>_0x32715f['type']==_0x2e45d1&&_0x32715f['subType']==_0x144286))return _0x32715f['previous']?{}:void 0x0;}),_0x112caa['descriptionFactory']['registerDescriptionCallback'](_0x5b15a9=>{if('insertion'==_0x5b15a9['type']||'deletion'==_0x5b15a9['type']){const _0x2f354c=_0x5b15a9['getContainedElement']();if(_0x2f354c&&_0x2f354c['is']('element','caption'))return{'type':'insertion'==_0x5b15a9['type']?'addObject':'removeObject','element':_0x2f354c,'quantity':0x1};}}),_0x112caa['descriptionFactory']['registerDescriptionCallback'](_0x25ef1c=>'formatBlock'==_0x25ef1c['type']&&'convertInlineImageToBlock'==_0x25ef1c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x25ef1c['type']&&'convertBlockImageToInline'==_0x25ef1c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x112caa['descriptionFactory']['registerDescriptionCallback'](_0xca345d=>{if('attribute'!=_0xca345d['type'])return;const {data:_0x38adeb}=_0xca345d;if(!_0x38adeb||'alt'!=_0x38adeb['key'])return;const _0x11d940=_0x38adeb['newValue'];return _0x11d940?{'type':'format','content':o(_0x33dd61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11d940+'\x22')}:{'type':'format','content':o(_0x33dd61,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292fce=this['editor'],_0x4d7c82=_0x292fce['locale'];_0x292fce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2ee8=>{if('formatBlock'!=_0x1c2ee8['type']&&'formatInline'!=_0x1c2ee8['type'])return;const {data:_0x3c614c}=_0x1c2ee8;if(_0x3c614c){if('imageTextAlternative'==_0x3c614c['commandName']){const _0x4acc63=_0x3c614c['commandParams'][0x0]['newValue'];return _0x4acc63?{'type':'format','content':o(_0x4d7c82,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4acc63+'\x22')}:{'type':'format','content':o(_0x4d7c82,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3c614c['commandName']){const _0x31391b=_0x3c614c['commandParams'][0x0]['width'];return _0x31391b?{'type':'format','content':o(_0x4d7c82,'*Set\x20image\x20width:*\x20%0',_0x31391b)}:{'type':'format','content':o(_0x4d7c82,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5c4eb9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x129be2=this['editor']['locale'],_0x1cfb2e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cfb2e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1cfb2e['registerBlockAttribute']('src'),_0x1cfb2e['descriptionFactory']['registerDescriptionCallback'](_0x2339f1=>{if('attribute'!=_0x2339f1['type'])return;const {data:_0x1b5beb}=_0x2339f1;return _0x1b5beb&&'src'==_0x1b5beb['key']?_0x1b5beb['newValue']&&_0x1b5beb['oldValue']?{'type':'format','content':o(_0x129be2,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x269dcf=this['editor']['plugins']['get']('TrackChangesEditing');_0x269dcf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x269dcf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x269dcf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x269dcf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511ba6=this['editor'],_0x50cb33=_0x511ba6['locale'];_0x511ba6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x534734=>{if('formatBlock'!=_0x534734['type']&&'formatInline'!=_0x534734['type'])return;const {data:_0xadcead}=_0x534734;if(!_0xadcead||'replaceImageSource'!=_0xadcead['commandName'])return;return{'type':'format','content':o(_0x50cb33,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5c4eb9{['afterInit'](){const _0x3030bb=this['editor'];if(!_0x3030bb['plugins']['has']('ImageStyleEditing'))return;const _0x32e8f6=_0x3030bb['plugins']['get']('TrackChangesEditing'),_0x563c93=_0x3030bb['plugins']['get']('ImageUtils'),_0x23aeaa={};_0x32e8f6['enableCommand']('imageStyle',(_0x39559d,_0x5748cb)=>{const _0x42611d=_0x3030bb['plugins']['get']('Users')['me'],_0x49b5e1=_0x3030bb['commands']['get']('imageStyle');let _0x29f75a=_0x563c93['getClosestSelectedImageElement'](_0x3030bb['model']['document']['selection']),_0x4798bb=_0x3030bb['model']['createRangeOn'](_0x29f75a),_0x4083b0=_0x49b5e1['value'];if(_0x4083b0==_0x5748cb['value'])return;const _0x361280={'commandName':'imageStyle','commandParams':[_0x5748cb],'formatGroupId':_0x489557()};_0x3030bb['model']['change'](()=>{if(_0x32e8f6['getSuggestions']()['filter'](_0x304255=>_0x304255['isInContent']&&_0x42611d==_0x304255['author']&&('formatBlock'==_0x304255['type']||'formatInline'==_0x304255['type'])&&('imageStylePreApply'==_0x304255['subType']||'imageStylePostApply'==_0x304255['subType'])&&_0x304255['getFirstRange']()['isEqual'](_0x4798bb))['forEach'](_0x2c9dd8=>_0x32e8f6['discardSuggestion'](_0x2c9dd8['head'])),_0x29f75a=_0x563c93['getClosestSelectedImageElement'](_0x3030bb['model']['document']['selection']),_0x4798bb=_0x3030bb['model']['createRangeOn'](_0x29f75a),_0x49b5e1['refresh'](),_0x3030bb['commands']['get']('imageTypeInline')['refresh'](),_0x3030bb['commands']['get']('imageTypeBlock')['refresh'](),_0x4083b0=_0x49b5e1['value'],_0x4083b0!=_0x5748cb['value'])return _0x563c93['isInlineImage'](_0x29f75a)&&_0x49b5e1['shouldConvertImageType'](_0x5748cb['value'],_0x29f75a)?(_0x39559d({..._0x5748cb,'setImageSizes':!0x1}),_0x29f75a=_0x563c93['getClosestSelectedImageElement'](_0x3030bb['model']['document']['selection']),void _0x32e8f6['markBlockFormat'](_0x29f75a,{..._0x361280,'commandReversedParams':[{'value':_0x4083b0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x563c93['isBlockImage'](_0x29f75a)?_0x32e8f6['markBlockFormat'](_0x29f75a,_0x361280,[],'imageStylePostApply'):_0x32e8f6['markInlineFormat'](_0x4798bb,_0x361280,'imageStylePostApply'));});});for(const _0xd4c83b of _0x3030bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23aeaa[_0xd4c83b['name']]=_0xd4c83b['title']['toLowerCase']();_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52449a])=>{_0x563c93['setImageNaturalSizeAttributes'](_0x52449a['getContainedElement']());}),_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x158a49,_0x3b40fd)=>{_0x32e8f6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x158a49,{'commandName':_0x3b40fd['commandName'],'commandParams':_0x3b40fd['commandReversedParams']});}),_0x32e8f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2dd9f3,_0x59157f){if(_0x49c409(_0x2dd9f3,_0x59157f))return[_0x2dd9f3,_0x59157f];if(_0x49c409(_0x59157f,_0x2dd9f3))return[_0x59157f,_0x2dd9f3];return null;});const _0x3e4e62=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49c409(_0x560190,_0x190b99){const _0x166ad5=_0x3e4e62['findIndex'](({type:_0x304f57,subType:_0x1ba4ab})=>_0x560190['type']==_0x304f57&&_0x560190['subType']==_0x1ba4ab),_0x6064db=_0x3e4e62['findIndex'](({type:_0x5ddae3,subType:_0xc8b781})=>_0x190b99['type']==_0x5ddae3&&_0x190b99['subType']==_0xc8b781);if(_0x166ad5<0x0||_0x6064db<0x0)return!0x1;const _0x3f93ac=_0x560190['getFirstRange'](),_0x17151d=_0x190b99['getFirstRange']();if((0x0==_0x166ad5||0x1==_0x166ad5)&&0x2==_0x6064db&&_0x3f93ac['isIntersecting'](_0x17151d))return!0x0;if(0x2==_0x166ad5&&0x3==_0x6064db){const _0x271978=_0x32e8f6['_findSuggestions'](_0x3f93ac,'insertion')['filter'](({suggestion:_0x2378cb,meta:_0x443732})=>_0x443732['isOwn']&&'convertInlineImageToBlock'==_0x2378cb['subType']);if(_0x271978['length']>0x1&&_0x17151d['end']['isEqual'](_0x3f93ac['start']))return!0x0;if(0x1==_0x271978['length']&&(_0x3f93ac['start']['isEqual'](_0x17151d['end'])||_0x3f93ac['end']['isEqual'](_0x17151d['start'])))return!0x0;}if(0x3==_0x166ad5&&0x3==_0x6064db&&_0x3f93ac['start']['isBefore'](_0x17151d['start'])){const _0x3c9a42=_0x3f93ac['end']['nodeAfter'],_0x209a0b=_0x17151d['start']['nodeBefore'];return _0x563c93['isBlockImage'](_0x3c9a42)&&_0x3c9a42===_0x209a0b;}return!0x1;}_0x3030bb['model']['document']['registerPostFixer'](()=>{let _0x1b4e20=!0x1;const _0x3791ae=Array['from'](_0x3030bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a11f8,data:_0x43e1e8}of _0x3791ae){const {group:_0x15c281,type:_0x5e3a9b,subType:_0x3da45e,id:_0x13a698}=_0x32e8f6['_splitMarkerName'](_0x1a11f8);if('suggestion'==_0x15c281&&_0x32e8f6['hasSuggestion'](_0x13a698)){if('formatBlock'==_0x5e3a9b&&('imageStylePreApply'==_0x3da45e||'imageStylePostApply'==_0x3da45e)){const _0x2cb7d6=_0x32e8f6['getSuggestion'](_0x13a698);if(_0x43e1e8['newRange']){const _0x2b3e4d=_0x2cb7d6['getFirstRange']()['getContainedElement']();if(_0x563c93['isBlockImage'](_0x2b3e4d))continue;_0x32e8f6['discardSuggestion'](_0x2cb7d6),_0x1b4e20=!0x0;}}if('insertion'==_0x5e3a9b&&'imageCaption'==_0x3da45e&&!_0x43e1e8['newRange']){const _0x59ab75=_0x32e8f6['getSuggestion'](_0x13a698);_0x59ab75['next']&&_0x59ab75['next']['isInContent']&&(_0x32e8f6['discardSuggestion'](_0x59ab75['next']),_0x1b4e20=!0x0);}}}return _0x1b4e20;}),this['_registerLegacyDescription'](_0x23aeaa);}['_registerLegacyDescription'](_0x5ba5df){const _0x2320c5=this['editor'],_0x5b4860=_0x2320c5['locale'];_0x2320c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da26d=>{if('formatBlock'!=_0x5da26d['type']&&'formatInline'!=_0x5da26d['type'])return;const {data:_0x5288a2}=_0x5da26d;if(!_0x5288a2||'imageStyle'!=_0x5288a2['commandName'])return;const _0x19ce73=_0x5288a2['commandParams'][0x0]['value'];return _0x41694a('side'===_0x19ce73?o(_0x5b4860,'FORMAT_SIDE_IMAGE'):_0x5ba5df[_0x19ce73]||_0x19ce73);function _0x41694a(_0x29f142){return{'type':'format','content':o(_0x5b4860,'*Format:*\x20%0',_0x29f142)};}});}}class ct extends _0x5c4eb9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24896f){super(_0x24896f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x235922=this['editor'],_0x4e81c5=_0x235922['commands']['get']('importWord'),_0x693d2=_0x235922['commands']['get']('trackChanges');_0x4e81c5&&(_0x4e81c5['on']('execute',(_0x545a49,[,_0x5e452e])=>{this['_trackChangesValueDuringImport']=_0x693d2['value'],_0x5e452e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e81c5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e81c5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x693d2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x235922['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x30b535,_0x38821d){const {suggestions:_0x4451e0}=_0x38821d,_0x5e5033=this['editor']['commands']['get']('trackChanges'),_0x4395c6=_0x5e5033['value'];this['_trackChangesValueDuringImport']!==_0x4395c6&&(_0x5e5033['execute'](),this['_trackChangesExecuted']=!0x0),_0x4451e0&&_0x4451e0['forEach'](({id:_0x2517a6,type:_0x49fc9b,author:_0x5249ef,created_at:_0x49e299})=>{const _0x3e9322={'id':_0x2517a6,'type':_0x49fc9b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5249ef,'createdAt':_0x49e299?new Date(_0x49e299):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e9322);});}}class ut extends _0x5c4eb9{['afterInit'](){const _0x1b52ed=this['editor'],_0xcec5ad=_0x1b52ed['plugins']['get']('TrackChangesEditing');if(_0x1b52ed['plugins']['has']('IndentEditing')&&(_0xcec5ad['enableCommand']('indent'),_0xcec5ad['enableCommand']('outdent')),_0x1b52ed['plugins']['has']('IndentBlock')){for(const _0x6f25e0 of['indentBlock','outdentBlock'])_0xcec5ad['enableDefaultAttributesIntegration'](_0x6f25e0);}const _0x28c9ea=_0x1b52ed['locale'];_0xcec5ad['registerBlockAttribute']('blockIndent'),_0xcec5ad['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28c9ea,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45151c=this['editor'],_0x4fb4a1=_0x45151c['locale'],_0x1469de=_0x45151c['plugins']['get']('TrackChangesEditing');_0x1469de['descriptionFactory']['registerDescriptionCallback'](_0x1fca8d=>{if('formatBlock'!=_0x1fca8d['type'])return;const {data:_0x36ae92}=_0x1fca8d;if(!_0x36ae92)return;if('indentBlock'!=_0x36ae92['commandName']&&'outdentBlock'!=_0x36ae92['commandName'])return;const _0x331c75=_0x1fca8d['getItems']()[0x0],_0x1f83be=_0x1469de['descriptionFactory']['getItemLabel'](_0x331c75);return'indentBlock'==_0x36ae92['commandName']?{'type':'format','content':o(_0x4fb4a1,'*Indent:*\x20%0',_0x1f83be)}:'outdentBlock'==_0x36ae92['commandName']?{'type':'format','content':o(_0x4fb4a1,'*Outdent:*\x20%0',_0x1f83be)}:void 0x0;});}}class ft extends _0x5c4eb9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5c4eb9{['afterInit'](){const _0x2f7509=this['editor'];if(!_0x2f7509['plugins']['has']('LinkEditing'))return;const _0x2d8ed0=_0x2f7509['plugins']['get']('TrackChangesEditing'),_0x3b81d3=_0x2f7509['commands']['get']('link');_0x2d8ed0['enableDefaultAttributesIntegration']('link'),_0x2d8ed0['enableDefaultAttributesIntegration']('unlink'),_0x2d8ed0['registerInlineAttribute']('linkHref');for(const _0x16805a of _0x3b81d3['manualDecorators'])_0x2d8ed0['registerInlineAttribute'](_0x16805a['id']),_0x2d8ed0['descriptionFactory']['registerAttributeLabel'](_0x16805a['id'],'link\x20('+_0x16805a['label']['toLowerCase']()+')');_0x2d8ed0['descriptionFactory']['registerDescriptionCallback'](_0xc2297=>{if('attribute'!=_0xc2297['type'])return;const {data:_0x36b042}=_0xc2297;if(!_0x36b042||'linkHref'!=_0x36b042['key'])return;const _0x42cc11=_0x36b042['newValue'],_0x1cc0f9=_0x2f7509['locale'];return{'type':'format','content':null==_0x42cc11?o(_0x1cc0f9,'*Remove\x20link*'):o(_0x1cc0f9,'*Set\x20link:*\x20%0','\x22'+_0x42cc11+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31e4ec=this['editor'],_0x3ca699=_0x31e4ec['locale'];_0x31e4ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7b530=>{if('formatInline'!=_0xf7b530['type'])return;const {data:_0x214b37}=_0xf7b530;if(_0x214b37){if('link'==_0x214b37['commandName']){const _0x5a2f46=_0x214b37['commandParams'][0x0];return{'type':'format','content':o(_0x3ca699,'*Set\x20link:*\x20%0','\x22'+_0x5a2f46+'\x22')};}return'unlink'==_0x214b37['commandName']?{'type':'format','content':o(_0x3ca699,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5c4eb9{['afterInit'](){const _0x473104=this['editor'],_0x8032e0=_0x473104['locale'];if(!_0x473104['plugins']['has']('LegacyListEditing'))return;const _0x445aab=_0x473104['plugins']['get']('TrackChangesEditing'),_0x5d6b6a=_0x473104['plugins']['has']('LegacyTodoListEditing');function _0x3c21f1(_0x24c0e9){return()=>{const _0x1b1a62=_0x473104['model']['document']['selection'],_0x1822d4=_0x473104['commands']['get'](_0x24c0e9);if(_0x1822d4['value'])return void _0x473104['execute']('paragraph',{});const _0x5f1d44=_0x24c0e9['slice'](0x0,-0x4),_0x591527=function(_0x4507c3,_0x3f75d8,_0x143e01){let _0x54ebf4=Array['from'](_0x4507c3)['filter'](_0x35a6bf=>function(_0x5729c8,_0x86bb2f){return _0x86bb2f['checkChild'](_0x5729c8['parent'],'listItem')&&!_0x86bb2f['isObject'](_0x5729c8);}(_0x35a6bf,_0x143e01));_0x54ebf4=_0x54ebf4['filter'](_0x24d086=>!_0x24d086['is']('element','listItem')||_0x24d086['getAttribute']('listType')!=_0x3f75d8);const _0x4f95de=new Set();for(const _0x299b5b of _0x54ebf4)_0x299b5b['is']('element','listItem')?_0x4f95de['add'](Le(_0x299b5b)):_0x4f95de['add'](_0x299b5b);return Array['from'](_0x4f95de);}(_0x1b1a62['getSelectedBlocks'](),_0x5f1d44,_0x473104['model']['schema']);_0x473104['model']['change'](()=>{for(const _0x165842 of _0x591527)_0x445aab['markBlockFormat'](_0x165842,{'commandName':_0x24c0e9,'commandParams':[{'forceValue':!_0x1822d4['value']}],'formatGroupId':'blockName'},Ee(_0x165842));});};}function _0x3b900f(_0x4652e8){return()=>{const _0x2c1e2e=function(_0x1cf405){let _0x24bb65=Array['from'](_0x1cf405);const _0x304cbe=_0x24bb65['findIndex'](_0x3e917e=>'listItem'!=_0x3e917e['name']);return _0x304cbe>-0x1&&(_0x24bb65=_0x24bb65['slice'](0x0,_0x304cbe)),_0x24bb65;}(_0x473104['model']['document']['selection']['getSelectedBlocks']()),_0x5ecf7e=_0x473104['model']['createRange'](_0x473104['model']['createPositionAt'](_0x2c1e2e[0x0],'before'),_0x473104['model']['createPositionAt'](_0x2c1e2e[_0x2c1e2e['length']-0x1],'end'));_0x473104['model']['change'](()=>{_0x445aab['markBlockFormat'](_0x5ecf7e,{'commandName':_0x4652e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa6b95e){const _0x183bb7=new Set();for(const _0x467ff6 of _0xa6b95e){let _0x1e4795=_0x467ff6['nextSibling'];for(;_0x1e4795&&_0x1e4795['getAttribute']('listIndent')>_0x467ff6['getAttribute']('listIndent');)_0x183bb7['add'](_0x1e4795),_0x1e4795=_0x1e4795['nextSibling'];}return Array['from'](_0x183bb7);}(_0x2c1e2e));});};}_0x445aab['enableCommand']('numberedList',_0x3c21f1('numberedList')),_0x445aab['enableCommand']('bulletedList',_0x3c21f1('bulletedList')),_0x5d6b6a&&_0x445aab['enableCommand']('todoList',_0x3c21f1('todoList')),_0x445aab['enableCommand']('indentList',_0x3b900f('indentList')),_0x445aab['enableCommand']('outdentList',_0x3b900f('outdentList')),_0x5d6b6a&&_0x445aab['enableCommand']('checkTodoList',()=>{const _0x43926d=_0x473104['commands']['get']('checkTodoList'),_0x397cdf=Array['from'](_0x43926d['_selectedElements']);_0x397cdf['filter'](_0x279e3c=>_0x279e3c['getAttribute']('todoListChecked')!=_0x43926d['value']),_0x473104['model']['change'](()=>{for(const _0xc31c1d of _0x397cdf)_0x445aab['markBlockFormat'](_0xc31c1d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x43926d['value']}]});});}),_0x445aab['descriptionFactory']['registerElementLabel']('listItem',_0x48bb4a=>o(_0x8032e0,'ELEMENT_LIST_ITEM',_0x48bb4a)),_0x445aab['descriptionFactory']['registerDescriptionCallback'](_0x395deb=>{if('formatBlock'!=_0x395deb['type']&&'formatInline'!=_0x395deb['type'])return;const {data:_0xaa8a07}=_0x395deb;if(_0xaa8a07){if('numberedList'==_0xaa8a07['commandName']||'bulletedList'==_0xaa8a07['commandName']||'todoList'==_0xaa8a07['commandName'])switch(_0xaa8a07['commandName']['replace']('List','')){case'bulleted':return _0x3448e6(o(_0x8032e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3448e6(o(_0x8032e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3448e6(o(_0x8032e0,'ELEMENT_TODO_LIST'));}if('indentList'==_0xaa8a07['commandName'])return{'type':'format','content':o(_0x8032e0,'*Indent:*\x20%0',o(_0x8032e0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xaa8a07['commandName'])return{'type':'format','content':o(_0x8032e0,'*Outdent:*\x20%0',o(_0x8032e0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xaa8a07['commandName'])return _0xaa8a07['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8032e0,'*Check\x20item*')}:{'type':'format','content':o(_0x8032e0,'*Uncheck\x20item*')};}function _0x3448e6(_0x1a1936){return{'type':'format','content':o(_0x8032e0,'*Change\x20to:*\x20%0',_0x1a1936)};}});}}function Le(_0x540b4e){const _0x18f3b2=_0x540b4e['getAttribute']('listIndent');if(0x0==_0x18f3b2)return _0x540b4e;let _0x4e0550=_0x540b4e;for(;_0x540b4e['previousSibling']&&_0x540b4e['previousSibling']['is']('element','listItem');){const _0x290297=_0x540b4e['previousSibling']['getAttribute']('listIndent');if(_0x290297==_0x18f3b2)_0x4e0550=_0x540b4e['previousSibling'];else{if(_0x290297<_0x18f3b2)break;}_0x540b4e=_0x540b4e['previousSibling'];}return _0x4e0550;}function Ee(_0x5c141e){const _0x149419=[];if(_0x5c141e['is']('element','listItem')&&_0x5c141e['getAttribute']('listIndent')>0x0){let _0x4d115c=_0x5c141e['nextSibling'];for(;_0x4d115c&&'listItem'==_0x4d115c['name']&&_0x4d115c['getAttribute']('listIndent')==_0x5c141e['getAttribute']('listIndent');)_0x149419['push'](_0x4d115c),_0x4d115c=_0x4d115c['nextSibling'];}return _0x149419;}class Q extends _0x5c4eb9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x294217=this['editor']['config']['get']('list.properties'),_0x8804b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x294217['styles']&&_0x8804b7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x294217['reversed']&&_0x8804b7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x294217['startIndex']&&_0x8804b7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x8804b7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e3ab0,_0x10712e={}){const _0x51748e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ccc61=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51748e['markMultiRangeBlockFormat'](_0x5ccc61,{'commandName':'listStyle','commandParams':[{'type':_0x10712e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x19b8d1,_0x24b73c={}){const _0x225b91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4366=this['_getSuggestionBlocks'](_0x5232ca=>_0x5232ca['is']('element','listItem')&&'numbered'===_0x5232ca['getAttribute']('listType'));if(_0x4b4366['length']<0x1)return;const _0x17ef75=_0x4b4366['map'](_0x1da5e2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1da5e2,'before'),this['editor']['model']['createPositionAt'](_0x1da5e2,0x0)));this['editor']['model']['change'](()=>{_0x225b91['markMultiRangeBlockFormat'](_0x17ef75,{'commandName':'listReversed','commandParams':[{'reversed':_0x24b73c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x264fa6,_0x5a9406={}){const _0xb31b2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14d3ec=this['_getSuggestionBlocks'](_0x5bca6e=>_0x5bca6e['is']('element','listItem')&&'numbered'===_0x5bca6e['getAttribute']('listType'));if(_0x14d3ec['length']<0x1)return;const _0x5d062d=_0x14d3ec['map'](_0x160301=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x160301,'before'),this['editor']['model']['createPositionAt'](_0x160301,0x0)));this['editor']['model']['change'](()=>{_0xb31b2a['markMultiRangeBlockFormat'](_0x5d062d,{'commandName':'listStart','commandParams':[{'startIndex':_0x5a9406['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27dfd0){if('formatBlock'!=_0x27dfd0['type']&&'formatInline'!=_0x27dfd0['type'])return;const _0x2a3760=this['editor']['locale'],{data:_0x2ec3c8}=_0x27dfd0;if(!_0x2ec3c8)return;let _0x343e72,_0x273295;switch(_0x2ec3c8['commandName']){case'listStyle':_0x343e72='*Change\x20to:*\x20%0',_0x273295={'type':'format','content':o(_0x2a3760,_0x343e72,o(_0x2a3760,this['_getTranslationKeyForListStyle'](_0x2ec3c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x343e72=_0x2ec3c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x273295={'type':'format','content':o(_0x2a3760,_0x343e72)};break;case'listStart':_0x343e72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x273295={'type':'format','content':o(_0x2a3760,_0x343e72,_0x2ec3c8['commandParams'][0x0]['startIndex'])};}return _0x273295;}['_getSuggestionBlocksForListStyle'](){const _0xf8356d=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c68e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c68e8[0x0]?.['is']('element','listItem')&&_0x2c68e8['unshift'](..._0xf8356d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c68e8[_0x2c68e8['length']-0x1]?.['is']('element','listItem')&&_0x2c68e8['push'](..._0xf8356d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c68e8=[...new Set(_0x2c68e8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c68e8=_0x2c68e8['filter'](_0x43d583=>_0x43d583['is']('element','listItem'))),_0x2c68e8;}['_getSuggestionBlocks'](_0x8b8297){const _0x3fbb55=this['editor']['plugins']['get']('LegacyListUtils');let _0x47d537=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x8b8297)['map'](_0x3b73ec=>{const _0x211aa1=this['editor']['model']['createPositionAt'](_0x3b73ec,0x0);return[..._0x3fbb55['getSiblingNodes'](_0x211aa1,'backward'),..._0x3fbb55['getSiblingNodes'](_0x211aa1,'forward')];})['flat']();return _0x47d537=[...new Set(_0x47d537)],_0x47d537;}['_getTranslationKeyForListStyle'](_0x40786b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40786b)||'default')['toUpperCase']()+'_LIST_'+_0x40786b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5c4eb9{['afterInit'](){const _0x139b78=this['editor'];if(!_0x139b78['plugins']['has']('MediaEmbedEditing'))return;const _0x1799a0=_0x139b78['plugins']['get']('TrackChangesEditing'),_0x3b41f3=_0x139b78['locale'];_0x1799a0['enableCommand']('mediaEmbed'),_0x1799a0['descriptionFactory']['registerElementLabel']('media',_0x914f80=>o(_0x3b41f3,'ELEMENT_MEDIA',_0x914f80)),_0x139b78['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x44aae6,{writer:_0x3835a1,options:_0x25edcb})=>{if(_0x25edcb['showSuggestionHighlights'])return _0x3835a1['createEmptyElement']('div');},'converterPriority':'high'}),_0x139b78['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d78fb,_0x5308ab,_0x35cb93)=>{_0x35cb93['options']['showSuggestionHighlights']&&_0x3d78fb['stop']();},{'priority':'high'});}}class mt extends _0x5c4eb9{['afterInit'](){const _0x14ad46=this['editor'];_0x14ad46['plugins']['has']('MentionEditing')&&_0x14ad46['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5c4eb9{['afterInit'](){const _0x485e68=this['editor'];if(!_0x485e68['plugins']['has']('MergeFieldsEditing'))return;_0x485e68['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x485e68['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x26009e=_0x485e68['plugins']['get']('TrackChangesEditing'),_0x236278=_0x485e68['locale'];_0x26009e['descriptionFactory']['registerElementLabel']('mergeField',_0x38654f=>o(_0x236278,'ELEMENT_MERGE_FIELD',_0x38654f)),_0x26009e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x22a58d=>o(_0x236278,'ELEMENT_MERGE_FIELD',_0x22a58d)),_0x26009e['descriptionFactory']['registerDescriptionCallback'](_0x547119=>{if('insertion'!=_0x547119['type']&&'deletion'!=_0x547119['type'])return;const _0x4e4ed8=_0x547119['getContainedElement']();if(null==_0x4e4ed8)return;if(!_0x4e4ed8['is']('element','mergeField')&&!_0x4e4ed8['is']('element','mergeFieldBlock'))return;const _0x978a62=_0x485e68['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4e4ed8['getAttribute']('id'));return'insertion'==_0x547119['type']?{'type':'insertion','content':o(_0x236278,'*Insert:*\x20%0','\x22'+_0x978a62+'\x22\x20'+o(_0x236278,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x236278,'*Remove:*\x20%0','\x22'+_0x978a62+'\x22\x20'+o(_0x236278,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c4eb9{['afterInit'](){const _0x337d46=this['editor'],_0x49a6d1=_0x337d46['plugins']['get']('TrackChangesEditing');_0x337d46['plugins']['has']('MultiLevelList')&&(_0x49a6d1['enableDefaultAttributesIntegration']('multiLevelList'),_0x49a6d1['registerBlockAttribute']('listMarkerStyle'),_0x49a6d1['descriptionFactory']['registerDescriptionCallback'](_0x1faf81=>this['handleDescriptions'](_0x1faf81)));}['handleDescriptions'](_0x24542f){const _0x372322=this['editor']['locale'],{data:_0x58f6b8}=_0x24542f,_0x1e378f={'type':'format','content':''};if(_0x58f6b8&&'listMarkerStyle'==_0x58f6b8['key']){if(!_0x58f6b8['oldValue'])return{'type':'format','content':o(_0x372322,'*Set\x20format:*\x20%0',o(_0x372322,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58f6b8['newValue']+')'};if(!_0x58f6b8['newValue']){let _0x3277c2=_0x24542f['head'];for(;_0x3277c2;){if(_0x3277c2['data']&&'listType'==_0x3277c2['data']['key']&&_0x3277c2['data']['newValue'])return _0x1e378f;_0x3277c2=_0x3277c2['next'];}return{'type':'format','content':o(_0x372322,'*Remove\x20format:*\x20%0',o(_0x372322,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58f6b8['oldValue']+')'};}}}}class kt extends _0x5c4eb9{['afterInit'](){const _0x3a7827=this['editor'];if(!_0x3a7827['plugins']['has']('PageBreakEditing'))return;_0x3a7827['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x41e4c3=_0x3a7827['plugins']['get']('TrackChangesEditing'),_0x4b69ba=_0x3a7827['locale'];_0x41e4c3['descriptionFactory']['registerElementLabel']('pageBreak',_0x39d2ea=>o(_0x4b69ba,'ELEMENT_PAGE_BREAK',_0x39d2ea));}}class bt extends _0x5c4eb9{['afterInit'](){const _0x5e9557=this['editor'];if(!_0x5e9557['plugins']['has']('Paragraph'))return;const _0x138941=_0x5e9557['locale'],_0x1b24f4=_0x5e9557['plugins']['get']('TrackChangesEditing');_0x1b24f4['descriptionFactory']['registerElementLabel']('paragraph',_0x56b746=>o(_0x138941,'ELEMENT_PARAGRAPH',_0x56b746)),_0x1b24f4['enableDefaultAttributesIntegration']('paragraph'),_0x1b24f4['enableCommand']('insertParagraph'),_0x5e9557['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e9557),{'priority':'highest'}),_0x5e9557['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x383784,_0x3d71e9,_0x347f48)=>{_0x347f48['options']['showSuggestionHighlights']&&nr(_0x5e9557,{'showActiveMarker':!0x1})(_0x383784,_0x3d71e9,_0x347f48);},{'priority':'highest'});const _0x144ead=_0x1b24f4['descriptionFactory'];_0x144ead['registerDescriptionCallback'](_0x18240a=>{if('insertion'!==_0x18240a['type'])return;const {start:_0x4999b3,end:_0x4b4c84}=_0x18240a['getFirstRange']();if(!_0x4999b3['isTouching'](_0x4b4c84)||!_0x4999b3['nodeAfter'])return;const _0x5752fe=_0x5e9557['model']['schema'],_0xc41586=_0x4999b3['nodeAfter'];return _0x5752fe['isBlock'](_0xc41586)&&!_0x5752fe['isLimit'](_0xc41586)&&_0x5752fe['checkChild'](_0xc41586,'$text')?{'type':'insertion','content':o(_0x138941,'*Insert:*\x20%0',_0x144ead['getItemLabel'](_0xc41586,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b2db3=this['editor'],_0x864c0f=_0x3b2db3['locale'];_0x3b2db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c560c=>{if('formatBlock'!=_0x1c560c['type'])return;const {data:_0x5cdb73}=_0x1c560c;return _0x5cdb73&&'paragraph'==_0x5cdb73['commandName']?{'type':'format','content':o(_0x864c0f,'*Change\x20to:*\x20%0',o(_0x864c0f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1931fd,{showActiveMarker:_0x116be1=!0x0}={}){return(_0x3c5edb,_0x44a872,_0x5cce90)=>{const _0x2f478b=_0x1931fd['plugins']['get']('TrackChangesEditing'),_0x2d940e=_0x44a872['markerRange']['start'],_0x2cc5e7=_0x44a872['markerRange']['end'],_0x4d1b98=_0x1931fd['model']['schema'];if(!_0x2d940e['isTouching'](_0x2cc5e7)||!_0x2d940e['nodeAfter'])return;const _0x1d49b3=_0x2d940e['nodeAfter'];if(_0x4d1b98['isBlock'](_0x1d49b3)&&!_0x4d1b98['isLimit'](_0x1d49b3)&&_0x4d1b98['checkChild'](_0x1d49b3,'$text')){if(!_0x5cce90['consumable']['consume'](_0x44a872['markerRange'],_0x3c5edb['name']))return;const {authorId:_0x1456de}=_0x2f478b['_splitMarkerName'](_0x44a872['markerName']),_0x309979=_0x5cce90['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1456de}),_0x278f24=_0x5cce90['mapper']['toViewPosition'](_0x2cc5e7);_0x116be1&&_0x2f478b['activeMarkers']['includes'](_0x44a872['markerName'])&&_0x5cce90['writer']['addClass']('ck-suggestion-marker--active',_0x309979),_0x5cce90['writer']['insert'](_0x278f24,_0x309979),_0x5cce90['mapper']['bindElementToMarker'](_0x309979,_0x44a872['markerName']);}};}class yt extends _0x5c4eb9{['afterInit'](){const _0x43dd65=this['editor'];if(!_0x43dd65['plugins']['has']('RemoveFormatEditing'))return;_0x43dd65['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eccf0=this['editor'];_0x5eccf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f44f1=>{if('formatBlock'!=_0x3f44f1['type']&&'formatInline'!=_0x3f44f1['type'])return;const {data:_0x684eb7}=_0x3f44f1;return _0x684eb7&&'removeFormat'==_0x684eb7['commandName']?{'type':'format','content':o(_0x5eccf0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x5c4eb9{['afterInit'](){const _0x5cdcd7=this['editor'];if(!_0x5cdcd7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3fd31a=_0x5cdcd7['plugins']['get']('TrackChangesEditing');_0x3fd31a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3fd31a['enableCommand']('goToNextRestrictedEditingException');const _0x59fe3f=_0x5cdcd7['plugins']['get']('RestrictedEditingModeEditing');_0x59fe3f['enableCommand']('trackChanges'),_0x59fe3f['enableCommand']('acceptSuggestion'),_0x59fe3f['enableCommand']('discardSuggestion'),_0x59fe3f['enableCommand']('acceptAllSuggestions'),_0x59fe3f['enableCommand']('discardAllSuggestions'),_0x59fe3f['enableCommand']('acceptSelectedSuggestions'),_0x59fe3f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x5c4eb9{static get['requires'](){return[_0x1234e8];}['init'](){const _0x4266fd=this['editor'],_0x26b650=_0x4266fd['plugins']['get']('TrackChangesEditing');_0x26b650['enableCommand']('shiftEnter'),_0x4266fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x4266fd),{'priority':'high'}),_0x4266fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x4266fd),{'priority':'high'}),_0x4266fd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x357505,_0x2a3e8d,_0x129231)=>{_0x129231['options']['showSuggestionHighlights']&&ke(_0x4266fd,{'showActiveMarker':!0x1})(_0x357505,_0x2a3e8d,_0x129231);}),_0x26b650['descriptionFactory']['registerElementLabel']('softBreak',_0x40ffcd=>o(_0x4266fd['locale'],'ELEMENT_LINE_BREAK',_0x40ffcd));}}function ke(_0x486dea,{showActiveMarker:_0x1a129e=!0x0}={}){return(_0x27ca1a,_0xc6da9e,_0x498fd2)=>{const _0x5c6e71=_0x486dea['plugins']['get']('TrackChangesEditing');if(!_0x498fd2['consumable']['test'](_0xc6da9e['markerRange'],_0x27ca1a['name']))return;const _0x2ecb47=_0x486dea['model'];for(const _0x2efe60 of _0xc6da9e['markerRange']['getItems']()){if(!_0x2efe60['is']('element','softBreak'))continue;const _0x3c61d7='deletion'==_0xc6da9e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5bc33b}=_0x5c6e71['_splitMarkerName'](_0xc6da9e['markerName']),_0x59ae69=_0x498fd2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c61d7,'data-author-id':_0x5bc33b}),_0x285b3a=_0x498fd2['mapper']['toViewPosition'](_0x2ecb47['createPositionBefore'](_0x2efe60));_0x1a129e&&_0x5c6e71['activeMarkers']['includes'](_0xc6da9e['markerName'])&&_0x498fd2['writer']['addClass']('ck-suggestion-marker--active',_0x59ae69),_0x498fd2['writer']['insert'](_0x285b3a,_0x59ae69),_0x498fd2['mapper']['bindElementToMarker'](_0x59ae69,_0xc6da9e['markerName']);}};}class At extends _0x5c4eb9{['afterInit'](){const _0x4c9e50=this['editor'],_0x245d5d=_0x4c9e50['model'],_0x4edcf3=_0x4c9e50['locale'];if(!_0x4c9e50['plugins']['has']('StandardEditingModeEditing'))return;const _0x25de8e=_0x4c9e50['plugins']['get']('TrackChangesEditing'),_0x59c8b1='restrictedEditingException',_0x383a3e=_0x4c9e50['commands']['get'](_0x59c8b1);_0x25de8e['enableCommand'](_0x59c8b1,(_0x4771f0,_0xf732a8={})=>{const _0x1158e5=_0x245d5d['document']['selection'];if(_0x1158e5['isCollapsed'])return void _0x4771f0(_0xf732a8);const _0x33134e=void 0x0!==_0xf732a8['forceValue']?_0xf732a8['forceValue']:!_0x383a3e['value'];_0x245d5d['change'](()=>{const _0x2691fd=Array['from'](_0x1158e5['getRanges']());for(const _0x19edce of _0x2691fd){const _0x4b6a1a=_0x33134e?[_0x19edce]:io(_0x59c8b1,_0x19edce,_0x245d5d);for(const _0x2f68fc of _0x4b6a1a)_0x25de8e['markInlineFormat'](_0x2f68fc,{'commandName':_0x59c8b1,'commandParams':[{'forceValue':_0x33134e}]});}});}),_0x25de8e['descriptionFactory']['registerDescriptionCallback'](_0x3e0526=>{if('formatBlock'!=_0x3e0526['type']&&'formatInline'!=_0x3e0526['type'])return;const {data:_0x333359}=_0x3e0526;return _0x333359&&_0x333359['commandName']==_0x59c8b1?_0x333359['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4edcf3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4edcf3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5c4eb9{['afterInit'](){const _0x17f2f6=this['editor'];if(!_0x17f2f6['plugins']['has']('Style')||!_0x17f2f6['plugins']['has']('DataSchema'))return;const _0x21553d=_0x17f2f6['plugins']['get']('TrackChangesEditing'),_0xff099e=_0x17f2f6['locale'],_0x284114=_0x17f2f6['config']['get']('style')||{},_0x3e845e=_0x17f2f6['plugins']['get']('GeneralHtmlSupport'),_0x45e6c4=_0x17f2f6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x17f2f6['plugins']['get']('DataSchema'),_0x284114['definitions']);_0x21553d['enableDefaultAttributesIntegration']('style');const _0x271774=new Set();for(const _0xab463e of _0x45e6c4['block']){const _0x3d909a=_0x3e845e['getGhsAttributeNameForElement'](_0xab463e['element']);_0x271774['add'](_0x3d909a);}const _0x68010d=new Set();for(const _0xa14a of _0x45e6c4['inline']){const _0x300551=_0x3e845e['getGhsAttributeNameForElement'](_0xa14a['element']);_0x68010d['add'](_0x300551);for(const _0x203937 of _0xa14a['ghsAttributes'])_0x68010d['add'](_0x203937);}for(const _0x1b5a53 of _0x271774)_0x21553d['registerBlockAttribute'](_0x1b5a53),_0x21553d['descriptionFactory']['registerAttributeLabel'](_0x1b5a53,o(_0xff099e,'FORMAT_STYLE'));for(const _0x10b480 of _0x68010d)_0x21553d['registerInlineAttribute'](_0x10b480),_0x21553d['descriptionFactory']['registerAttributeLabel'](_0x10b480,o(_0xff099e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266f96=this['editor'],_0x151122=_0x266f96['locale'];_0x266f96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f88c=>{if('formatBlock'!=_0x43f88c['type']&&'formatInline'!=_0x43f88c['type'])return;const {data:_0x325c86}=_0x43f88c;return _0x325c86&&'style'===_0x325c86['commandName']?_0x325c86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x151122,'*Set\x20format:*\x20%0',_0x325c86['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x151122,'*Remove\x20format:*\x20%0',_0x325c86['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x5c4eb9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cf705){super(_0x3cf705),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1aa85f=this['editor'],_0x34a7cc=_0x1aa85f['model']['document']['selection'];if(!_0x1aa85f['plugins']['has']('TableEditing'))return;const _0x2f86f4=_0x1aa85f['locale'],_0x19b988=_0x1aa85f['plugins']['get']('TrackChangesEditing'),_0x3dac3e=_0x1aa85f['plugins']['get']('TableUtils');_0x19b988['descriptionFactory']['registerElementLabel']('table',_0x530e38=>o(_0x2f86f4,'ELEMENT_TABLE',_0x530e38)),this['_setupColumnsRowsFixing'](),_0x19b988['enableCommand']('insertTable'),_0x19b988['enableCommand']('selectTableRow'),_0x19b988['enableCommand']('selectTableColumn');for(const _0xfb2c70 of['insertTableRowAbove','insertTableRowBelow']){const _0x2b4cbb=_0x1aa85f['commands']['get'](_0xfb2c70);_0x19b988['enableCommand'](_0xfb2c70,_0x3a824f=>{_0x1aa85f['model']['change'](_0xf36304=>{_0x3a824f();const _0x2329df='above'===_0x2b4cbb['order'],_0x2c23d7=_0x3dac3e['getSelectionAffectedTableCells'](_0x34a7cc),_0x16133b=_0x3dac3e['getRowIndexes'](_0x2c23d7),_0x5d57bc=_0x2329df?_0x16133b['first']-0x1:_0x16133b['last']+0x1,_0x4b6068=_0x2c23d7[0x0]['findAncestor']('table'),_0x58b941=_0x3dac3e['createTableWalker'](_0x4b6068,{'startRow':_0x5d57bc,'endRow':_0x5d57bc}),_0x31bd66=Array['from'](_0x58b941)['map'](_0x51fe78=>_0xf36304['createRangeOn'](_0x51fe78['cell']));_0x19b988['markMultiRangeInsertion'](_0x31bd66,'tableRow');});});}for(const _0x10b3a5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2bae5d=_0x1aa85f['commands']['get'](_0x10b3a5);_0x19b988['enableCommand'](_0x10b3a5,_0x28ed38=>{_0x1aa85f['model']['change'](_0x109b3f=>{_0x28ed38();const _0x401d03='left'===_0x2bae5d['order'],_0x58f58e=_0x3dac3e['getSelectionAffectedTableCells'](_0x34a7cc),_0x7934de=_0x3dac3e['getColumnIndexes'](_0x58f58e),_0x3523d5=_0x401d03?_0x7934de['first']-0x1:_0x7934de['last']+0x1,_0x2291f4=_0x58f58e[0x0]['findAncestor']('table'),_0x4131ce=_0x3dac3e['createTableWalker'](_0x2291f4,{'startRow':0x0,'column':_0x3523d5,'includeAllSlots':!0x1}),_0xc3bdb8=Array['from'](_0x4131ce)['map'](_0x25651e=>_0x109b3f['createRangeOn'](_0x25651e['cell']));_0x19b988['markMultiRangeInsertion'](_0xc3bdb8,'tableColumn');});});}for(const _0x36c35c of['removeTableRow','removeTableColumn']){const _0x4e3b83=_0x36c35c['substr'](0xb),_0x35ff37=_0x4e3b83['toLowerCase'](),_0x5579da=_0x35ff37['substr'](0x0,0x3)+'span',_0x20e83a='table'+_0x4e3b83,_0x1a65d8='min'+_0x4e3b83,_0x4452be='max'+_0x4e3b83;_0x19b988['enableCommand'](_0x36c35c,()=>{_0x1aa85f['model']['change'](_0x45a9f5=>{const _0x5ee134=_0x3dac3e['getSelectionAffectedTableCells'](_0x34a7cc),_0x4c8a2c=_0x5ee134[0x0]['findAncestor']('table');let _0x455c4e;if('removeTableRow'==_0x36c35c){const _0x3f86b8=_0x3dac3e['getRowIndexes'](_0x5ee134);_0x455c4e={'startRow':_0x3f86b8['first'],'endRow':_0x3f86b8['last'],'includeAllSlots':!0x0};}else{const _0x412975=_0x3dac3e['getColumnIndexes'](_0x5ee134);_0x455c4e={'startColumn':_0x412975['first'],'endColumn':_0x412975['last'],'includeAllSlots':!0x0};}const _0x1e1afd=_0x3dac3e['createTableWalker'](_0x4c8a2c,_0x455c4e),_0x193ffd=Array['from'](_0x1e1afd)['map'](({cell:_0x4e5799})=>_0x4e5799),_0x67d071=Re(_0x193ffd['filter'](_0x3d5f28=>_0x3d5f28['hasAttribute'](_0x5579da))),_0x186361=Re(_0x193ffd['filter'](_0x5e8ec3=>!_0x5e8ec3['hasAttribute'](_0x5579da)))['map'](_0x3986f5=>_0x45a9f5['createRangeOn'](_0x3986f5)),_0x385ef6=_0x19b988['markMultiRangeDeletion'](_0x186361,_0x20e83a);if(_0x385ef6&&('tableRow'==_0x385ef6['subType']||'tableColumn'==_0x385ef6['subType'])){const _0x48f089=this['_getSuggestionCoords'](_0x385ef6);for(const _0x495b4e of _0x67d071){const _0x3f48c7=_0x45a9f5['createRangeOn'](_0x495b4e),_0x25a637=_0x3dac3e['getCellLocation'](_0x495b4e),_0x36cd69=_0x495b4e['getAttribute'](_0x5579da)-0x1,_0x19b29e=_0x48f089[_0x1a65d8],_0x4ade2d=_0x48f089[_0x4452be];_0x19b29e<=_0x25a637[_0x35ff37]&&_0x25a637[_0x35ff37]+_0x36cd69<=_0x4ade2d&&_0x385ef6['addRange'](_0x3f48c7);}}});});}function _0x1b791e(_0x494568){const _0x32ece4=Array['from'](_0x34a7cc['getRanges']())['map'](_0x16fa6b=>_0x3f97db['fromRange'](_0x16fa6b));_0x1aa85f['model']['change'](_0x2cb004=>{const _0x1ddae3=_0x2cb004['batch'];_0x494568=_0x494568['filter'](_0x324589=>'$graveyard'!=_0x324589['root']['rootName']),_0x2cb004['setSelection'](_0x494568),_0x1aa85f['commands']['get']('removeTableRow')['refresh'](),_0x1aa85f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1aa85f['model']['enqueueChange'](()=>{_0x1aa85f['model']['enqueueChange'](_0x1ddae3,_0xe0b55b=>{const _0xe82313=_0x32ece4['filter'](_0x1e6bf8=>'$graveyard'!=_0x1e6bf8['root']['rootName']);_0xe82313['length']>0x0&&_0xe0b55b['setSelection'](_0xe82313);for(const _0x1a08cd of _0x32ece4)_0x1a08cd['detach']();});});});}function _0x503390(_0x407017){_0x1aa85f['model']['change'](_0x462576=>{const _0x2302cf=Array['from'](_0x34a7cc['getRanges']())['map'](_0x51d10e=>_0x3f97db['fromRange'](_0x51d10e)),_0x265ec7=[];for(const _0x3066d3 of _0x407017)for(const _0x3cf84d of _0x3066d3['getItems']({'shallow':!0x0}))_0x265ec7['push'](_0x3cf84d);for(const _0x1acf72 of _0x265ec7)'$graveyard'!=_0x1acf72['root']['rootName']&&(_0x462576['setSelection'](_0x462576['createPositionAt'](_0x1acf72,0x0)),_0x1aa85f['commands']['get']('removeTableColumn')['refresh'](),_0x1aa85f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ac66b=_0x2302cf['filter'](_0x5a3515=>'$graveyard'!=_0x5a3515['root']['rootName']);_0x5ac66b['length']>0x0&&_0x462576['setSelection'](_0x5ac66b);for(const _0x1a6b8 of _0x2302cf)_0x1a6b8['detach']();});}function _0xf109e1(_0x332ac0,_0x1fc1c2){return _0x1fc1c2['every'](_0x3fc973=>_0x332ac0['some'](_0xf9ab60=>_0xf9ab60['end']['isEqual'](_0x3fc973['start'])||_0x3fc973['end']['isEqual'](_0xf9ab60['start'])));}function _0x70d5ad(_0x4bf86c,_0x78ca09){return!_0x4bf86c['some'](_0x2a0511=>_0x78ca09['some'](_0x5e5df7=>_0x2a0511['isIntersecting'](_0x5e5df7)))&&_0x4bf86c['some'](_0x16eeef=>_0x78ca09['some'](_0x1ae82f=>_0x16eeef['end']['isTouching'](_0x1ae82f['start'])));}_0x1aa85f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36d027,_0x3ed230,_0xd794d4)=>{if(!_0xd794d4['options']['showSuggestionHighlights'])return;const _0x24657e=_0x3ed230['item'];if(!_0x24657e)return;const _0x4d3844=_0xd794d4['mapper']['toViewElement'](_0x24657e);function _0x4148b1(_0x1320d0){return Array['isArray'](_0x1320d0)?_0x1320d0:[_0x1320d0];}_0x4d3844&&'tableCell'===_0x24657e['name']&&_0x124c23(_0x4d3844,_0xd794d4['writer'],(_0x500c0a,_0xaacfa6,_0x42432f)=>_0x42432f['addClass'](_0x4148b1(_0xaacfa6['classes']),_0x500c0a),(_0x49aad7,_0x2eb06f,_0x1b82f4)=>_0x1b82f4['removeClass'](_0x4148b1(_0x2eb06f['classes']),_0x49aad7));},{'priority':'highest'}),_0x19b988['descriptionFactory']['registerDescriptionCallback'](_0x23acc6=>{if('insertion'!=_0x23acc6['type']&&'deletion'!=_0x23acc6['type'])return;const _0xa5d78b=_0x23acc6['getContainedElement']();if(null!=_0xa5d78b&&_0xa5d78b['is']('element','table')){if('insertion'==_0x23acc6['type']){const _0x10644e=_0x23acc6['getItems']()['filter'](_0x5b20bc=>_0x5b20bc['is']('$textProxy'))['map'](_0x3f450e=>_0x3f450e['data']);if(_0x10644e['length'])return{'type':'insertion','content':o(_0x2f86f4,'*Insert:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10644e['join']('\x20')+'\x22'))};}if('deletion'==_0x23acc6['type']){const _0x1c2faa=_0x23acc6['getItems']()['filter'](_0x5755b7=>_0x5755b7['is']('$textProxy'))['map'](_0x50014b=>_0x50014b['data']);if(_0x1c2faa['length'])return{'type':'deletion','content':o(_0x2f86f4,'*Remove:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c2faa['join']('\x20')+'\x22'))};}}}),_0x19b988['descriptionFactory']['registerDescriptionCallback'](_0x264a57=>{if('tableRow'==_0x264a57['subType']){const _0x44eef3=_0x264a57['getItems']()['filter'](_0x388fea=>_0x388fea['is']('$textProxy'))['map'](_0x23e058=>_0x23e058['data']),_0x2e90a3=this['_getSuggestionCoords'](_0x264a57),_0x5060af=_0x2e90a3['maxRow']-_0x2e90a3['minRow']+0x1;if('insertion'==_0x264a57['type'])return _0x44eef3['length']?{'type':'insertion','content':o(_0x2f86f4,'*Insert:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5060af,'\x22'+_0x44eef3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f86f4,'*Insert:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_ROW',_0x5060af))};if('deletion'==_0x264a57['type'])return _0x44eef3['length']?{'type':'deletion','content':o(_0x2f86f4,'*Remove:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5060af,'\x22'+_0x44eef3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f86f4,'*Remove:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_ROW',_0x5060af))};}if('tableColumn'==_0x264a57['subType']){const _0x31dcc1=_0x264a57['getItems']()['filter'](_0x5b2e24=>_0x5b2e24['is']('$textProxy'))['map'](_0x5f5775=>_0x5f5775['data']),_0x5636b1=this['_getSuggestionCoords'](_0x264a57),_0xc6c746=_0x5636b1['maxColumn']-_0x5636b1['minColumn']+0x1;if('insertion'==_0x264a57['type'])return _0x31dcc1['length']?{'type':'insertion','content':o(_0x2f86f4,'*Insert:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xc6c746,'\x22'+_0x31dcc1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f86f4,'*Insert:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_COLUMN',_0xc6c746))};if('deletion'==_0x264a57['type'])return _0x31dcc1['length']?{'type':'deletion','content':o(_0x2f86f4,'*Remove:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xc6c746,'\x22'+_0x31dcc1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f86f4,'*Remove:*\x20%0',o(_0x2f86f4,'ELEMENT_TABLE_COLUMN',_0xc6c746))};}}),_0x19b988['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1b791e),_0x19b988['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1b791e),_0x19b988['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x503390),_0x19b988['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x503390),_0x19b988['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xf109e1),_0x19b988['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xf109e1),_0x19b988['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x70d5ad),_0x19b988['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x70d5ad);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32bf43=this['editor'],_0x553827=_0x32bf43['model']['document']['selection'];return(_0x55eecd,_0xb3bc6e)=>{_0x32bf43['model']['change'](_0x1b92f4=>{const {commandName:_0x2d47b7,commandParams:_0x426668}=_0xb3bc6e;let _0x43222c=_0x55eecd[0x0]['end']['nodeBefore'];_0x426668&&_0x426668[0x0]&&!0x1===_0x426668[0x0]['forceValue']&&(_0x43222c=_0x55eecd[0x0]['start']['nodeAfter']);const _0x567d16=_0x1b92f4['createRangeIn'](_0x43222c);if('$graveyard'==_0x567d16['root']['rootName'])return;const _0x8776fd=Array['from'](_0x553827['getRanges']())['map'](_0x4a7d7f=>_0x3f97db['fromRange'](_0x4a7d7f));_0x1b92f4['setSelection'](_0x567d16),_0x32bf43['commands']['get'](_0x2d47b7)['refresh'](),_0x426668['push']({'forceDefaultExecution':!0x0}),_0x32bf43['execute'](_0x2d47b7,..._0x426668);const _0x4c56d4=_0x8776fd['filter'](_0x40896d=>'$graveyard'!=_0x40896d['root']['rootName']);_0x4c56d4['length']>0x0&&_0x1b92f4['setSelection'](_0x4c56d4);for(const _0x1d1605 of _0x8776fd)_0x1d1605['detach']();});};}['_getCoordsForCells'](_0x2f8447){const _0x2389f2=this['editor']['plugins']['get']('TableUtils');let _0xd091a7=Number['MAX_SAFE_INTEGER'],_0xf6b41a=Number['MIN_SAFE_INTEGER'],_0x226993=Number['MAX_SAFE_INTEGER'],_0x5dcef8=Number['MIN_SAFE_INTEGER'];for(const _0x54d6c5 of _0x2f8447){if('$graveyard'==_0x54d6c5['root']['rootName'])continue;const {row:_0x302443,column:_0xed5bf6}=_0x2389f2['getCellLocation'](_0x54d6c5),_0x26f890=_0x54d6c5['hasAttribute']('rowspan')?_0x54d6c5['getAttribute']('rowspan')-0x1:0x0,_0x1396bb=_0x54d6c5['hasAttribute']('colspan')?_0x54d6c5['getAttribute']('colspan')-0x1:0x0;_0xd091a7=_0x302443<_0xd091a7?_0x302443:_0xd091a7,_0xf6b41a=_0x302443+_0x26f890>_0xf6b41a?_0x302443+_0x26f890:_0xf6b41a,_0x226993=_0xed5bf6<_0x226993?_0xed5bf6:_0x226993,_0x5dcef8=_0xed5bf6+_0x1396bb>_0x5dcef8?_0xed5bf6+_0x1396bb:_0x5dcef8;}return{'minRow':_0xd091a7,'maxRow':_0xf6b41a,'minColumn':_0x226993,'maxColumn':_0x5dcef8};}['_setupColumnsRowsFixing'](){const _0x3415d7=this['editor'],_0x228f51=_0x3415d7['plugins']['get']('TrackChangesEditing'),_0x130580=_0x3415d7['plugins']['get']('TableUtils');_0x3415d7['model']['document']['on']('change:data',()=>{const _0x2d0efa=Array['from'](_0x3415d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e2ee4,data:_0x14615f}of _0x2d0efa){const {group:_0x143d40,id:_0xca4031,subType:_0x5de990}=_0x228f51['_splitMarkerName'](_0x1e2ee4);if('suggestion'!=_0x143d40)continue;if(null!=_0x14615f['oldRange'])continue;const _0x5f0720=_0x228f51['getSuggestion'](_0xca4031);this['_tablePostFixingSubtypes']['includes'](_0x5de990)&&this['_tableSuggestions']['add'](_0x5f0720);}},{'priority':'low'});const _0x3a16dc=(_0x3b79c7,_0x27ae10)=>{let _0x413b2f=!0x1;const _0x20f008=_0x27ae10['createRangeOn'](_0x3b79c7),_0x2d6cac=_0x3b79c7['findAncestor']('table'),_0x5b79ed=_0x130580['getCellLocation'](_0x3b79c7);for(const _0x465856 of this['_tableSuggestions']){const _0x59ea05=_0x465856['subType'],_0x178e57=_0x59ea05['startsWith']('tablePaste'),_0x5e2911=_0x59ea05['substr'](_0x178e57?0xa:0x5),_0x13f19c=_0x5e2911['toLowerCase'](),_0x444ea3=_0x13f19c['substr'](0x0,0x3)+'span',_0x5bfb4d='min'+_0x5e2911,_0x416965='max'+_0x5e2911;if(!_0x465856['isInContent'])continue;if(_0x2d6cac!=_0x465856['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x465856['isIntersectingWithRange'](_0x20f008))continue;const _0x12c92b=_0x3b79c7['hasAttribute'](_0x444ea3)?_0x3b79c7['getAttribute'](_0x444ea3)-0x1:0x0,_0x3d7be0=this['_getSuggestionCoords'](_0x465856),_0x5eca89=_0x3d7be0[_0x5bfb4d],_0x5d0030=_0x3d7be0[_0x416965];_0x5eca89<=_0x5b79ed[_0x13f19c]&&_0x5b79ed[_0x13f19c]+_0x12c92b<=_0x5d0030&&(_0x465856['addRange'](_0x20f008),_0x413b2f=!0x0);}return _0x413b2f;};_0x3415d7['model']['document']['registerPostFixer'](_0x1f43d0=>{let _0x6c1061=!0x1;for(const _0x50a469 of _0x3415d7['model']['document']['differ']['getChanges']())if('insert'==_0x50a469['type']){if('tableRow'==_0x50a469['name']){for(const _0x3a2864 of _0x50a469['position']['nodeAfter']['getChildren']())_0x6c1061=_0x6c1061||_0x3a16dc(_0x3a2864,_0x1f43d0);}else'tableCell'==_0x50a469['name']&&(_0x6c1061=_0x6c1061||_0x3a16dc(_0x50a469['position']['nodeAfter'],_0x1f43d0));}return _0x6c1061;});}['_getSuggestionCoords'](_0xccfd9e){return this['_getCoordsForCells'](_0xccfd9e['getRanges']()['map'](_0x357abb=>_0x357abb['start']['nodeAfter']));}}function Re(_0x336352){return Array['from'](new Set(_0x336352)['values']());}class _t extends _0x5c4eb9{static get['requires'](){return[vt];}['afterInit'](){const _0x4135f0=this['editor'],_0x5b5cde=_0x4135f0['model']['document']['selection'],_0x2e3cf7=_0x4135f0['locale'];if(!_0x4135f0['plugins']['has']('TableEditing'))return;const _0x1d22e4=_0x4135f0['plugins']['get']('TrackChangesEditing'),_0x2c8135=_0x4135f0['plugins']['get']('TableUtils'),_0x1df022=_0x4135f0['plugins']['get'](vt);_0x1df022['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1d22e4['enableCommand']('mergeTableCells',()=>{const _0x578ac3=_0x2c8135['getSelectionAffectedTableCells'](_0x4135f0['model']['document']['selection']);_0x4135f0['model']['change'](()=>{_0x1d22e4['markMultiRangeBlockFormat'](_0x578ac3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4135f0['commands']['get']('mergeTableCells')['on']('execute',(_0x5b4026,_0x5ec353)=>{_0x4135f0['commands']['get']('trackChanges')['value']&&(_0x5ec353['length']>0x0&&_0x5ec353[_0x5ec353['length']-0x1]&&_0x5ec353[_0x5ec353['length']-0x1]['forceDefaultExecution']||_0x1d22e4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b4026['stop']());},{'priority':'highest'});for(const _0x59ed3f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5f34e2=_0x4135f0['commands']['get'](_0x59ed3f);_0x1d22e4['enableCommand'](_0x59ed3f,()=>{const _0x592b01=_0x4135f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x588a4c=>_0x588a4c['is']('element','tableCell')),_0x32e07f=_0x5f34e2['value'];_0x4135f0['model']['change'](()=>{_0x1d22e4['markMultiRangeBlockFormat']([_0x592b01,_0x32e07f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x33eabe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x48860a=_0x4135f0['commands']['get'](_0x33eabe);_0x1d22e4['enableCommand'](_0x33eabe,()=>{const _0x4ce877=_0x2c8135['getSelectionAffectedTableCells'](_0x4135f0['model']['document']['selection'])[0x0],_0x6390a4=_0x4ce877['findAncestor']('table'),{column:_0x2435d5,row:_0x160498}=_0x2c8135['getCellLocation'](_0x4ce877);let _0x40f970=[];if('horizontally'==_0x48860a['direction']){const _0x36862e=_0x2c8135['createTableWalker'](_0x6390a4,{'startRow':_0x160498,'endRow':_0x160498,'includeAllSlots':!0x0});_0x40f970=Array['from'](_0x36862e)['map'](_0x55492a=>_0x55492a['cell']);}else{const _0x56d6bf=_0x2c8135['createTableWalker'](_0x6390a4,{'column':_0x2435d5,'includeAllSlots':!0x0});_0x40f970=Array['from'](_0x56d6bf)['map'](_0x1de9c4=>_0x1de9c4['cell']);}_0x4135f0['model']['change'](_0x18944f=>{_0x1d22e4['markBlockFormat'](_0x18944f['createRangeOn'](_0x4ce877),{'commandName':_0x33eabe,'commandParams':[]},_0x40f970,_0x33eabe);});});}_0x1d22e4['descriptionFactory']['registerDescriptionCallback'](_0x5e0d41=>{if('formatBlock'!=_0x5e0d41['type']&&'formatInline'!=_0x5e0d41['type'])return;const {data:_0x21b693}=_0x5e0d41;return _0x21b693&&'mergeTableCells'==_0x21b693['commandName']?{'type':'format','content':o(_0x2e3cf7,'*Merge\x20cells*')}:void 0x0;}),_0x1d22e4['descriptionFactory']['registerDescriptionCallback'](_0x15a406=>{if('formatBlock'!=_0x15a406['type']&&'formatInline'!=_0x15a406['type'])return;const {data:_0x126e7f}=_0x15a406;return _0x126e7f?'splitTableCellVertically'==_0x126e7f['commandName']?{'type':'format','content':o(_0x2e3cf7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x126e7f['commandName']?{'type':'format','content':o(_0x2e3cf7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xf53495=_0x1df022['_acceptFormatSuggestionCallbackFactory']();for(const _0x24c5d7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1d22e4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24c5d7,'accept',_0xf53495);for(const _0xa0711a of['splitTableCellVertically','splitTableCellHorizontally'])_0x1d22e4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa0711a,'accept',_0xf53495);_0x1d22e4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3f0f51=>{_0x4135f0['model']['change'](_0x45af20=>{const _0x1728c7=Array['from'](_0x5b5cde['getRanges']())['map'](_0x391718=>_0x3f97db['fromRange'](_0x391718));_0x45af20['setSelection'](_0x3f0f51),_0x4135f0['commands']['get']('mergeTableCells')['refresh'](),_0x4135f0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dfb50=_0x1728c7['filter'](_0x2a8214=>'$graveyard'!=_0x2a8214['root']['rootName']);_0x5dfb50['length']>0x0&&_0x45af20['setSelection'](_0x5dfb50);for(const _0x58a52d of _0x1728c7)_0x58a52d['detach']();});});for(const _0x413f7a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5417e1=_0x4135f0['commands']['get'](_0x413f7a);_0x5417e1['on']('set:isEnabled',(_0x110d35,_0x439f35,_0x40e4a5)=>{if(_0x40e4a5){const _0x1bc561=_0x4135f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d7961=>_0x4d7961['is']('element','tableCell'));this['_areMergableCells'](_0x5417e1['value'],_0x1bc561)||(_0x110d35['return']=!0x1,_0x110d35['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x409471=this['editor']['commands']['get']('mergeTableCells'),_0xae379f=this['editor']['plugins']['get']('TableUtils');if(!_0x409471['isEnabled'])return!0x1;const _0x28a61a=_0xae379f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x534840 of _0x28a61a)for(const _0x255916 of _0x28a61a)if(_0x534840!=_0x255916&&!this['_areMergableCells'](_0x534840,_0x255916))return!0x1;return!0x0;}['_areMergableCells'](_0x11c4d6,_0x1bdf05){const _0x439878=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed8dd=this['editor']['model']['createRangeOn'](_0x11c4d6),_0x42f744=this['editor']['model']['createRangeOn'](_0x1bdf05),_0x2eefd7=new Set(),_0x20ddcf=new Set();for(const _0xb7590 of _0x439878['getSuggestions']())if(('insertion'==_0xb7590['type']||'deletion'==_0xb7590['type']||'mergeTableCells'==_0xb7590['subType'])&&_0xb7590['isInContent']){for(const _0x49ba03 of _0xb7590['getRanges']())_0x49ba03['containsRange'](_0x3ed8dd,!0x0)&&_0x2eefd7['add'](_0xb7590['type']+':'+_0xb7590['author']['id']),_0x49ba03['containsRange'](_0x42f744,!0x0)&&_0x20ddcf['add'](_0xb7590['type']+':'+_0xb7590['author']['id']);}if(_0x2eefd7['size']!=_0x20ddcf['size'])return!0x1;for(const _0x596a20 of _0x2eefd7)if(!_0x20ddcf['has'](_0x596a20))return!0x1;return!0x0;}}class Ct extends _0x5c4eb9{static get['requires'](){return[vt];}['afterInit'](){const _0x15d866=this['editor'];if(!_0x15d866['plugins']['has']('TableEditing'))return;const _0x1c05df=_0x15d866['locale'],_0x1500b6=_0x15d866['plugins']['get']('TrackChangesEditing');_0x1500b6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1500b6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1500b6['registerBlockAttribute']('headingRows'),_0x1500b6['registerBlockAttribute']('headingColumns'),_0x1500b6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c05df,'FORMAT_HEADER_ROW')),_0x1500b6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c05df,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d6e4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xebde3e=this['editor']['plugins']['get']('TableUtils'),_0x1731f8=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2f63b6({showActiveMarker:_0x18da5e=!0x0,setDataAttribute:_0x1b6fb6=!0x0}={}){return(_0x5b48df,_0xa6aea7,_0x5aa1fc)=>{const {type:_0x2902a1,id:_0x9743e6}=_0x2d6e4c['_splitMarkerName'](_0xa6aea7['markerName']),_0x3ad2f3=_0x2d6e4c['getSuggestion'](_0x9743e6),_0x1533b9=_0x3ad2f3['data'];if('formatBlock'!=_0x3ad2f3['type']||!_0x1533b9||'setTableColumnHeader'!=_0x1533b9['commandName'])return;if(_0xa6aea7['item'])return void _0x5b48df['stop']();if(!_0x5aa1fc['consumable']['consume'](_0xa6aea7['markerRange'],_0x5b48df['name']))return;const _0x495d5f=_0xa6aea7['markerRange']['start']['nodeAfter'],_0x442e40=_0xa6aea7['markerRange']['end']['nodeBefore'],_0x4669dc=_0x495d5f['parent']['parent'],{column:_0x5074d6}=_0xebde3e['getCellLocation'](_0x495d5f),{column:_0x1d9ce9}=_0xebde3e['getCellLocation'](_0x442e40);for(let _0x19a9cb=_0x5074d6;_0x19a9cb<=_0x1d9ce9;_0x19a9cb++){const _0x3b836f=_0xebde3e['createTableWalker'](_0x4669dc,{'column':_0x19a9cb,'includeAllSlots':!0x1});for(const _0x4b2e32 of _0x3b836f){const _0x50d679=_0x4b2e32['cell'],_0x3030a4=_0x5aa1fc['mapper']['toViewElement'](_0x50d679);_0x5aa1fc['writer']['addClass']('ck-suggestion-marker-'+_0x2902a1,_0x3030a4),_0x1b6fb6&&_0x5aa1fc['writer']['setAttribute']('data-suggestion',_0x9743e6,_0x3030a4),_0x5aa1fc['mapper']['bindElementToMarker'](_0x3030a4,_0xa6aea7['markerName']),_0x18da5e&&(_0x2d6e4c['activeMarkers']['includes'](_0xa6aea7['markerName'])?_0x5aa1fc['writer']['addClass']('ck-suggestion-marker--active',_0x3030a4):_0x5aa1fc['writer']['removeClass']('ck-suggestion-marker--active',_0x3030a4));}}};}_0x2d6e4c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1731f8),_0x2d6e4c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1731f8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2f63b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3975b2,_0x3d244c,_0x51c663)=>{_0x51c663['options']['showSuggestionHighlights']&&_0x2f63b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3975b2,_0x3d244c,_0x51c663);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5dd555,_0x2d8cdb,_0x4ee167)=>{const {type:_0x177355,id:_0xad82c}=_0x2d6e4c['_splitMarkerName'](_0x2d8cdb['markerName']),_0x2ce4ce=_0x2d6e4c['getSuggestion'](_0xad82c),_0xec20bf=_0x2ce4ce['data'];if('formatBlock'!=_0x2ce4ce['type']||!_0xec20bf||'setTableColumnHeader'!=_0xec20bf['commandName'])return;const _0x52b194=_0x4ee167['mapper']['markerNameToElements'](_0x2d8cdb['markerName']);if(_0x52b194){for(const _0x3cea11 of _0x52b194)_0x4ee167['writer']['removeClass']('ck-suggestion-marker-'+_0x177355,_0x3cea11),_0x4ee167['writer']['removeClass']('ck-suggestion-marker--active',_0x3cea11),_0x4ee167['writer']['removeAttribute']('data-suggestion',_0x3cea11),_0x4ee167['mapper']['unbindElementFromMarkerName'](_0x3cea11,_0x2d8cdb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1953b7=this['editor'],_0x5ad118=_0x1953b7['locale'];function _0x2d3443(_0x1b84e2){return{'type':'format','content':o(_0x5ad118,'*Format:*\x20%0',_0x1b84e2)};}_0x1953b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19ad69=>{if('formatBlock'!=_0x19ad69['type'])return;const {data:_0x2c056f}=_0x19ad69;if(_0x2c056f){if('setTableRowHeader'==_0x2c056f['commandName']){const _0x369942=_0x2c056f['commandParams'][0x0]['forceValue'];return _0x2d3443(o(_0x5ad118,_0x369942?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2c056f['commandName']){const _0x21fefe=_0x2c056f['commandParams'][0x0]['forceValue'];return _0x2d3443(o(_0x5ad118,_0x21fefe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x42090d=>[_0x42090d,null]));class Nt extends _0x5c4eb9{static get['requires'](){return[vt];}['afterInit'](){const _0x1f5a70=this['editor'];if(!_0x1f5a70['plugins']['has']('TableClipboard'))return;const _0x1eaabe=_0x1f5a70['plugins']['get']('TrackChangesEditing'),_0x4b5d31=_0x1f5a70['plugins']['get']('TableUtils'),_0x3dc820=_0x1f5a70['plugins']['get'](vt),_0x4130d4=_0x1f5a70['plugins']['get']('TableClipboard');_0x3dc820['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1f5a70['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1f5a70['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48d071=null;_0x1f5a70['model']['on']('insertContent',(_0x128d8c,_0xba10f2)=>{const [_0x39e5f4,_0x48ee96]=_0xba10f2,_0x4356e1=_0xba10f2[_0xba10f2['length']-0x1];_0x4356e1&&_0x4356e1['forceDefaultExecution']||_0x1eaabe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c7b93,_0x161f08,_0x535009,_0x32018a,_0x1fbc4e){if(_0x161f08&&!_0x161f08['is']('documentSelection'))return!0x1;const _0x52a267=_0x1fbc4e['getTableIfOnlyTableInContent'](_0x4c7b93,_0x535009);if(!_0x52a267||!Ae(_0x52a267,void 0x0,_0x32018a))return!0x1;const _0x2eb8c7=_0x32018a['getSelectionAffectedTableCells'](_0x535009['document']['selection']);if(!_0x2eb8c7['length'])return!0x1;const _0x3cc3a4=_0x2eb8c7[0x0]['findAncestor']('table'),_0x4f49a1=_0x32018a['getRowIndexes'](_0x2eb8c7),_0x3db485=_0x32018a['getColumnIndexes'](_0x2eb8c7),_0x5e042c={'startRow':_0x4f49a1['first'],'endRow':_0x4f49a1['last'],'startColumn':_0x3db485['first'],'endColumn':_0x3db485['last']};return 0x1==_0x2eb8c7['length']&&(_0x5e042c['endRow']+=_0x32018a['getRows'](_0x52a267)-0x1,_0x5e042c['endColumn']+=_0x32018a['getColumns'](_0x52a267)-0x1),Ae(_0x3cc3a4,_0x5e042c,_0x32018a);}(_0x39e5f4,_0x48ee96,_0x1f5a70['model'],_0x4b5d31,_0x4130d4)&&(_0x128d8c['stop'](),_0x48d071={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1f5a70['model']['change'](()=>{_0x1f5a70['model']['insertContent'](_0xba10f2[0x0],_0xba10f2[0x1],_0xba10f2[0x2],{'forceDefaultExecution':!0x0});const _0x2fb2a3=_0x489557(),{rowInsertionRanges:_0x3f128c,columnInsertionRanges:_0x4cb317,insertionRanges:_0x5791b6,deletionRanges:_0x551ffe,cells:_0x448121}=_0x48d071;_0x3f128c['length']&&_0x1eaabe['markMultiRangeInsertion'](_0x3f128c,'tablePasteRow',{'tablePasteChainId':_0x2fb2a3}),_0x4cb317['length']&&_0x1eaabe['markMultiRangeInsertion'](_0x4cb317,'tablePasteColumn',{'tablePasteChainId':_0x2fb2a3}),_0x5791b6['length']&&(_0x1eaabe['markMultiRangeInsertion'](_0x5791b6,'tablePaste',{'tablePasteChainId':_0x2fb2a3,'skipNestingCheck':!0x0}),_0x5791b6['forEach'](_0x120c5c=>_0x120c5c['detach']?.())),_0x551ffe['length']&&(_0x1eaabe['markMultiRangeDeletion'](_0x551ffe,'tablePaste',{'tablePasteChainId':_0x2fb2a3,'skipNestingCheck':!0x0}),_0x551ffe['forEach'](_0x518559=>_0x518559['detach']?.()));const _0x110436=_0x1eaabe['markMultiRangeBlockFormat'](_0x448121['map'](({element:_0xbb6075})=>_0xbb6075),{'formatGroupId':_0x489557()},[],'tablePasteCell',{'tablePasteChainId':_0x2fb2a3});if(_0x110436){const _0x58524c=_0x110436['getMarkers'](),_0x2f44a8=[];for(const {element:_0x3436c8,attributes:_0x2c368a}of _0x448121){if(!_0x2c368a)continue;const _0x580e62=_0x1f5a70['model']['createRangeOn'](_0x3436c8),_0xb204b9=_0x58524c['find'](_0x59f901=>_0x59f901['getRange']()['isEqual'](_0x580e62));_0xb204b9&&_0x2f44a8['push']([_0xb204b9['name'],_0x2c368a]);}_0x2f44a8['length']&&_0x110436['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f44a8));}_0x48d071=null;}));},{'priority':_0x250038['high']+0xa}),_0x1f5a70['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ac0e9,_0x22d1ec)=>{const [_0x3b51cd,_0x2447c6,,_0x504270]=_0x22d1ec;if(!_0x48d071)return;_0x3ac0e9['stop']();const _0x33cc37=_0x3b51cd['cell'],_0x1d377f=_0x2447c6,_0x116537=je(_0x33cc37),_0x1a802c=je(_0x1d377f);_0x3ac0e9['return']=_0x33cc37;let _0x6be97b=null,_0x21aea8=null;if(_0x1a802c||_0x116537){if(_0x116537&&!_0x1a802c){_0x504270['remove'](_0x33cc37['getChild'](0x0));for(const _0x3636ef of Array['from'](_0x1d377f['getChildren']()))_0x504270['insert'](_0x3636ef,_0x33cc37,'end');const _0x346cf4=_0x48d071['rowInsertionIndexes']['includes'](_0x3b51cd['row']),_0x3ba619=_0x48d071['columnInsertionIndexes']['includes'](_0x3b51cd['column']);_0x346cf4||_0x3ba619||(_0x6be97b=_0x3f97db['fromRange'](_0x504270['createRangeIn'](_0x33cc37)));}else _0x1a802c&&!_0x116537&&(_0x21aea8=_0x504270['createRangeIn'](_0x33cc37));}else{const _0xe8a163=_0x504270['createElement']('tableCellSuggestion'),_0x538df4=_0x504270['createElement']('tableCellSuggestion');_0x504270['wrap'](_0x504270['createRangeIn'](_0x33cc37),_0x538df4),_0x504270['insert'](_0xe8a163,_0x33cc37,0x0);for(const _0x2ac0aa of Array['from'](_0x1d377f['getChildren']()))_0x504270['insert'](_0x2ac0aa,_0xe8a163,'end');_0x6be97b=_0x3f97db['fromRange'](_0x504270['createRangeOn'](_0xe8a163)),_0x21aea8=_0x3f97db['fromRange'](_0x504270['createRangeOn'](_0x538df4));}const _0x4bbff8=Array['from'](_0x1d377f['getAttributes']())['filter'](([_0x4e5788])=>we['includes'](_0x4e5788));_0x48d071['cells']['push']({'element':_0x33cc37,'attributes':_0x4bbff8['length']?Object['fromEntries'](_0x4bbff8):null}),_0x6be97b&&_0x48d071['insertionRanges']['push'](_0x6be97b),_0x21aea8&&_0x48d071['deletionRanges']['push'](_0x21aea8);},{'priority':'high'}),_0x4b5d31['on']('insertColumns',(_0x4e9edd,_0xf22118)=>{const [_0x225aed,_0x15c753={}]=_0xf22118;if(!_0x48d071)return;const _0x1d5ed3=_0x15c753['at']||0x0,_0x631a91=_0x15c753['columns']||0x1;_0x48d071['columnInsertionIndexes']=new Array(_0x631a91)['fill'](_0x1d5ed3)['map']((_0x403e0e,_0x1a5d21)=>_0x403e0e+_0x1a5d21);for(const {cell:_0x1322c3}of _0x4b5d31['createTableWalker'](_0x225aed,{'startColumn':_0x1d5ed3,'endColumn':_0x1d5ed3+_0x631a91-0x1}))_0x48d071['columnInsertionRanges']['push'](_0x1f5a70['model']['createRangeOn'](_0x1322c3));},{'priority':'low'}),_0x4b5d31['on']('insertRows',(_0x454390,_0x39238b)=>{const [_0x536f86,_0x1e0adb={}]=_0x39238b;if(!_0x48d071)return;const _0x3b5ad2=_0x1e0adb['at']||0x0,_0xc3473d=_0x1e0adb['rows']||0x1;_0x48d071['rowInsertionIndexes']=new Array(_0xc3473d)['fill'](_0x3b5ad2)['map']((_0x3d1333,_0x3e1ca8)=>_0x3d1333+_0x3e1ca8);for(const {cell:_0x5dbdda}of _0x4b5d31['createTableWalker'](_0x536f86,{'startRow':_0x3b5ad2,'endRow':_0x3b5ad2+_0xc3473d-0x1}))_0x48d071['rowInsertionRanges']['push'](_0x1f5a70['model']['createRangeOn'](_0x5dbdda));},{'priority':'low'}),_0x1eaabe['descriptionFactory']['registerDescriptionCallback'](_0x1af4b8=>{if(_0x1af4b8['subType']&&_0x1af4b8['subType']['startsWith']('tablePaste'))return _0x1af4b8['previous']?{}:{'type':'insertion','content':o(_0x1f5a70['locale'],'*Replace\x20table\x20cells*')};});const _0x2a98b4=()=>!0x1;for(const _0x3151f3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1eaabe['_suggestionFactory']['registerCustomCallback']('insertion',_0x3151f3,'join',_0x2a98b4),_0x1eaabe['_suggestionFactory']['registerCustomCallback']('deletion',_0x3151f3,'join',_0x2a98b4),_0x1eaabe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3151f3,'join',_0x2a98b4);_0x1eaabe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a98b4),_0x1eaabe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x308082,_0x2951d4,_0x4ffa2a)=>{const _0x3b84c6=_0x308082['map'](_0x2596f6=>_0x2596f6['getContainedElement']())['filter'](_0x452d83=>_0x452d83),_0xe64163=new Map(_0x3b84c6['map'](_0x16f8d7=>[_0x16f8d7,null]));if(_0x48d071){for(const {element:_0x3f8100,attributes:_0x1729cd}of _0x48d071['cells'])_0x1729cd&&_0xe64163['set'](_0x3f8100,_0x1729cd);}else{if(_0x4ffa2a&&_0x4ffa2a['markerAttributes'])for(const [_0x454030,_0xd5cabb]of Object['entries'](_0x4ffa2a['markerAttributes'])){const _0xabd623=_0x1f5a70['model']['markers']['get'](_0x454030),_0x10c220=_0xabd623?_0xabd623['getRange']()['getContainedElement']():null;_0x10c220&&_0xe64163['set'](_0x10c220,_0xd5cabb);}}_0x1f5a70['model']['change'](_0x398afc=>{for(const [_0x1366f7,_0x2a90dd]of _0xe64163)_0x398afc['setAttributes']({...ve,..._0x2a90dd},_0x1366f7);});});const _0x2f60c1=(_0x59ba3e,_0x421eef)=>{_0x1eaabe['_suggestionFactory']['registerCustomCallback'](_0x59ba3e,'tablePaste',_0x421eef,(_0x3f5f1b,_0x4d9c9e,_0x16a1f9)=>{_0x1f5a70['model']['change'](_0x46f3cf=>{const _0x263b17=[];for(const _0x4ba81c of _0x3f5f1b){const _0x579c6c=_0x4ba81c['start']['nodeAfter'];_0x579c6c['is']('element','tableCellSuggestion')&&_0x263b17['push'](_0x579c6c);}_0x1eaabe['_suggestionFactory']['getSuggestionCallback'](_0x59ba3e,null,_0x421eef)(_0x3f5f1b,_0x4d9c9e,_0x16a1f9);for(const _0x2d2680 of _0x263b17)'$graveyard'!=_0x2d2680['root']['rootName']&&_0x46f3cf['unwrap'](_0x2d2680);});});};_0x2f60c1('insertion','accept'),_0x2f60c1('insertion','discard'),_0x2f60c1('deletion','accept'),_0x2f60c1('deletion','discard'),_0x1eaabe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdab2d6=>{const _0x6465dc=_0xdab2d6['map'](_0x1fe817=>_0x1fe817['getContainedElement']()),_0x3b6fb3=_0x6465dc[0x0]['findAncestor']('table'),{minRow:_0x591385,maxRow:_0x2b0a37}=_0x3dc820['_getCoordsForCells'](_0x6465dc);_0x4b5d31['removeRows'](_0x3b6fb3,{'at':_0x591385,'rows':_0x2b0a37-_0x591385+0x1});}),_0x1eaabe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5431cc=>{const _0x1de08a=_0x5431cc['map'](_0x545a71=>_0x545a71['getContainedElement']()),_0x1f14be=_0x1de08a[0x0]['findAncestor']('table'),{minColumn:_0x46bf2b,maxColumn:_0x5717d1}=_0x3dc820['_getCoordsForCells'](_0x1de08a);_0x4b5d31['removeColumns'](_0x1f14be,{'at':_0x46bf2b,'columns':_0x5717d1-_0x46bf2b+0x1});});const _0x5df64d=(_0x4ef8c7,_0x189336)=>{if(!_0x189336['subType']||!_0x189336['subType']['startsWith']('tablePaste'))return;const _0x2fd5d1=_0x189336['attributes']['tablePasteChainId'],_0x36d2f3=_0x1eaabe['getSuggestions']()['filter'](_0x81d13=>_0x81d13['isInContent']&&_0x81d13['attributes']&&_0x81d13['attributes']['tablePasteChainId']==_0x2fd5d1);_0x36d2f3['length']&&_0x189336['getAllAdjacentSuggestions']()['length']!=_0x36d2f3['length']&&_0x36d2f3['reduce']((_0x45e5e8,_0x5dd5ce)=>(_0x45e5e8['next']=_0x5dd5ce,_0x5dd5ce['previous']=_0x45e5e8,_0x5dd5ce));};function _0x1e14c9(_0x3a8866,_0x16f3b7=!0x0){const {id:_0x2f6af0,authorId:_0xb28e12}=_0x1eaabe['_splitMarkerName'](_0x3a8866['markerName']),_0x127a3c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d916f=_0x1eaabe['activeMarkers']['includes'](_0x3a8866['markerName']);return _0x2d916f&&_0x127a3c['push']('ck-suggestion-marker--active'),{'classes':_0x127a3c,'attributes':{'data-suggestion':_0x2f6af0,'data-author-id':_0xb28e12},'priority':_0x2d916f&&_0x16f3b7?0xbc2:0xbb8};}_0x1eaabe['on']('suggestionLoaded',_0x5df64d,{'priority':'high'}),_0x1eaabe['on']('suggestionUnloaded',_0x5df64d,{'priority':'high'}),_0x1f5a70['model']['document']['registerPostFixer'](()=>{let _0x344073=!0x1;const _0x20d3f2=Array['from'](_0x1f5a70['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56b9e5,data:_0xf8e58d}of _0x20d3f2){const {group:_0x3d332d,type:_0x5998ea,id:_0x1ff2e1}=_0x1eaabe['_splitMarkerName'](_0x56b9e5);if('suggestion'!=_0x3d332d||'deletion'!=_0x5998ea||_0xf8e58d['oldRange'])continue;if(!_0x1eaabe['hasSuggestion'](_0x1ff2e1))continue;const _0x4a56b6=_0x1eaabe['getSuggestion'](_0x1ff2e1)['getRanges'](),_0x578f3b=_0x1f5a70['plugins']['get']('Users')['me'];for(const _0x27fb36 of _0x1eaabe['getSuggestions']()){if(!_0x27fb36['isInContent']||_0x27fb36['author']!=_0x578f3b)continue;if('formatBlock'!=_0x27fb36['type']||'tablePasteCell'!=_0x27fb36['subType'])continue;if(_0x27fb36['getRanges']()['every'](_0x269da4=>_0x4a56b6['some'](_0x3a3363=>_0x3a3363['containsRange'](_0x269da4,!0x0)))){for(const _0x4b1a61 of _0x27fb36['getAllAdjacentSuggestions']())_0x4b1a61['isInContent']&&(_0x4b1a61['discard'](),_0x344073=!0x0);}}}return _0x344073;}),_0x1f5a70['model']['document']['registerPostFixer'](_0x5471f8=>{const _0x12a976=_0x1f5a70['commands']['get']('redo');if(!_0x12a976||!_0x12a976['_createdBatches']['has'](_0x5471f8['batch']))return!0x1;let _0x5bbe86=!0x1;const _0x41987=_0x1f5a70['plugins']['get']('Users')['me'],_0x433f21=_0x1f5a70['model']['document']['differ']['getChanges'](),_0x480c53=Array['from'](_0x1f5a70['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f8569,data:_0x3f375b})=>{const {group:_0x3a5d15,subType:_0x1ebbb8,authorId:_0x5989fa}=_0x1eaabe['_splitMarkerName'](_0x1f8569);return'suggestion'==_0x3a5d15&&'tablePaste'==_0x1ebbb8&&_0x5989fa==_0x41987['id']&&!_0x3f375b['oldRange'];});for(const _0x3f5c5a of _0x433f21){if('insert'!=_0x3f5c5a['type']||'tableCellSuggestion'!=_0x3f5c5a['name']||0x1!=_0x3f5c5a['length'])continue;const _0xac3e13=_0x5471f8['createRange'](_0x3f5c5a['position'],_0x3f5c5a['position']['getShiftedBy'](0x1));if(!_0x480c53['find'](({data:_0x44e311})=>_0x44e311['newRange']['isEqual'](_0xac3e13))){for(const {name:_0x35cec9,data:_0x5d22c0}of _0x480c53)if(_0xac3e13['containsRange'](_0x5d22c0['newRange'])){_0x5471f8['updateMarker'](_0x35cec9,{'range':_0xac3e13}),_0x5bbe86=!0x0;break;}}}return _0x5bbe86;}),_0x1f5a70['model']['document']['registerPostFixer'](_0x1898d4=>{let _0x2e3d50=!0x1;const _0x4f1687=_0x1f5a70['plugins']['get']('Users')['me'],_0x1103fa=_0x1eaabe['getSuggestions']()['filter'](_0x3504ae=>_0x3504ae['isInContent']&&_0x3504ae['author']==_0x4f1687),_0x5ec3e2=new Set(),_0x13f639=new Set();for(const _0x1b7856 of _0x1103fa)if('tablePaste'==_0x1b7856['subType'])for(const _0x160107 of _0x1b7856['getMarkers']()){const _0x222ecf=_0x160107['getRange']()['getContainedElement']();if(_0x222ecf){if(_0x222ecf['is']('element','tableCellSuggestion')&&je(_0x222ecf)){_0x1b7856['removeMarker'](_0x160107['name']),_0x5ec3e2['add'](_0x222ecf),_0x2e3d50=!0x0;const _0x1e2178=_0x222ecf['nextSibling'],_0x16540a=_0x222ecf['previousSibling'],_0x43b6d2=_0x1e2178&&_0x1e2178['is']('element','tableCellSuggestion'),_0x4f478b=_0x16540a&&_0x16540a['is']('element','tableCellSuggestion');_0x43b6d2&&!_0x5ec3e2['has'](_0x1e2178)&&_0x13f639['add'](_0x1e2178),_0x4f478b&&!_0x5ec3e2['has'](_0x16540a)&&_0x13f639['add'](_0x16540a);}else _0x222ecf['is']('element','paragraph')&&_0x222ecf['isEmpty']&&(_0x1b7856['removeMarker'](_0x160107['name']),_0x2e3d50=!0x0);}}else{if('tablePasteCell'==_0x1b7856['subType']){if(!_0x1b7856['attributes']||!_0x1b7856['attributes']['tablePasteChainId'])continue;const _0x574c66=_0x1b7856['attributes']['markerAttributes'];if(_0x574c66&&Object['keys'](_0x574c66)['length'])continue;const _0x228f2c=_0x1b7856['attributes']['tablePasteChainId'];let _0x1cc2a4=!0x0,_0x21ea38=!0x0;for(const _0x5d0c2e of _0x1103fa)if(_0x5d0c2e['subType']&&_0x5d0c2e['subType']['startsWith']('tablePaste')){if(!_0x5d0c2e['attributes']['tablePasteChainId']){_0x21ea38=!0x1;break;}if(_0x5d0c2e['id']!=_0x1b7856['id']&&_0x5d0c2e['attributes']['tablePasteChainId']==_0x228f2c){_0x1cc2a4=!0x1;break;}}_0x21ea38&&_0x1cc2a4&&(_0x1b7856['removeMarkers'](),_0x2e3d50=!0x0);}}for(const _0x321906 of _0x5ec3e2)_0x1898d4['remove'](_0x321906);for(const _0x2dfc1e of _0x13f639)_0x1898d4['unwrap'](_0x2dfc1e);return _0x2e3d50;}),_0x1f5a70['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5dd7e2=>_0x1e14c9(_0x5dd7e2),'converterPriority':'high'}),_0x1f5a70['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x25d319,_0x29c7a5)=>_0x29c7a5['options']['showSuggestionHighlights']?_0x1e14c9(_0x25d319,!0x1):null,'converterPriority':'high'});const _0x289e19=_0x1f5a70['editing']['view'];this['listenTo'](_0x289e19['document'],'clipboardOutput',(_0x33bc55,_0x5bd5aa)=>{const _0x36300e=[];for(const _0x137501 of _0x289e19['createRangeIn'](_0x5bd5aa['content'])['getItems']())_0x137501['is']('element','suggestion-td')&&_0x36300e['push'](_0x137501);_0x289e19['change'](_0x5774e0=>{for(const _0x2e9c25 of _0x36300e)_0x5774e0['move'](_0x5774e0['createRangeIn'](_0x2e9c25),_0x5774e0['createPositionBefore'](_0x2e9c25)),_0x5774e0['remove'](_0x2e9c25);});});}}function je(_0x307926){if(_0x307926['isEmpty'])return!0x0;const _0xabc561=_0x307926['getChild'](0x0);return _0xabc561['is']('element','paragraph')&&_0xabc561['isEmpty'];}function Ae(_0x4f40cc,_0x38bfab={},_0x262ada){for(const {isAnchor:_0x53c8a7,cellHeight:_0x16b468,cellWidth:_0x2d0340}of _0x262ada['createTableWalker'](_0x4f40cc,{'includeAllSlots':!0x0,..._0x38bfab}))if(!_0x53c8a7||0x1!=_0x16b468||0x1!=_0x2d0340)return!0x1;return!0x0;}class Dt extends _0x5c4eb9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3a23f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a23f4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3a23f4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3a23f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a23f4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3a23f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3a23f4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57f60a,_0x3ac58f){const _0x2c39fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5544b9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2543e3=_0x3ac58f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x55ddf3=_0x5544b9['getColumnGroupElement'](_0x2543e3);let _0x3723d1=_0x55ddf3?_0x5544b9['getTableColumnsWidths'](_0x55ddf3):null,_0x14859d=_0x2543e3['getAttribute']('tableWidth')||null;const _0x424c89=_0x3ac58f['tableWidth']||_0x14859d,_0x44444d=_0x3ac58f['columnWidths']||_0x3723d1,_0x42f64f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1503c0 of _0x2c39fb['getSuggestions']()){const _0x55aa0f=_0x1503c0['getContainedElement']();if('resizeTable'===_0x1503c0['subType']&&_0x55aa0f===_0x2543e3){_0x1503c0['author']!==_0x42f64f&&_0x1503c0['discard']();const _0x2e4c65=_0x1503c0['data']['commandParams'];_0x14859d=_0x2e4c65[0x0]['tableWidth'],_0x3723d1=_0x2e4c65[0x0]['columnWidths'];break;}}_0x57f60a({'table':_0x2543e3,'tableWidth':_0x424c89,'columnWidths':_0x44444d}),_0x2c39fb['markBlockFormat'](_0x2543e3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14859d,'columnWidths':_0x3723d1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x332295){if('formatBlock'!=_0x332295['type']&&'formatInline'!=_0x332295['type'])return;const {data:_0x47a861}=_0x332295;if(_0x47a861&&'resizeTable'===_0x47a861['formatGroupId']){const _0x3c856e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3c856e)};}}}class Mt extends _0x5c4eb9{['afterInit'](){const _0x4f7ac3=this['editor'];_0x4f7ac3['plugins']['has']('Template')&&_0x4f7ac3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x5c4eb9{['afterInit'](){const _0x1d5e96=this['editor'];if(!_0x1d5e96['commands']['get']('insertTableOfContents'))return;_0x1d5e96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19b870=_0x1d5e96['plugins']['get']('TrackChangesEditing'),_0x1da211=_0x1d5e96['locale'];_0x19b870['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2ebc33=>o(_0x1da211,'ELEMENT_TABLE_OF_CONTENTS',_0x2ebc33));}}class Bt extends _0x5c4eb9{['afterInit'](){const _0x482f66=this['editor'];if(!_0x482f66['plugins']['has']('Title'))return;const _0x31cb3e=_0x482f66['plugins']['get']('TrackChangesEditing');_0x31cb3e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x482f66['locale'],'ELEMENT_TITLE')),_0x482f66['model']['document']['registerPostFixer'](_0x550b18=>{let _0x400fdc=!0x1;const _0x1ca64f=Array['from'](_0x482f66['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x563c97,data:_0x439cdf}of _0x1ca64f){const {group:_0x193de9}=_0x31cb3e['_splitMarkerName'](_0x563c97);if('suggestion'!==_0x193de9||!_0x439cdf['newRange'])continue;const _0x5a8788=_0x439cdf['newRange'],_0x2d9213=_0x5a8788['end']['nodeBefore'];if(!_0x2d9213||!_0x2d9213['is']('element','title-content'))continue;if(!_0x5a8788['start']['isTouching'](_0x5a8788['end']))continue;const _0x2f843c=_0x482f66['model']['schema']['getNearestSelectionRange'](_0x5a8788['end'],'forward');if(_0x2f843c&&_0x2f843c['isCollapsed']){const _0x286d27=_0x550b18['createRange'](_0x5a8788['start'],_0x2f843c['start']);_0x286d27['isEqual'](_0x5a8788)||(_0x550b18['updateMarker'](_0x563c97,{'range':_0x286d27}),_0x400fdc=!0x0);}_0x400fdc||(_0x550b18['removeMarker'](_0x563c97),_0x400fdc=!0x0);}return _0x400fdc;});}}class Ot extends _0x5c4eb9{['afterInit'](){const _0x42c294=this['editor'],_0x3b249b=_0x42c294['plugins']['get']('TrackChangesEditing');_0x42c294['plugins']['has']('UndoEditing')&&(_0x3b249b['enableCommand']('undo'),_0x3b249b['enableCommand']('redo'));}}class Rt extends _0x5c4eb9{static get['requires'](){return[vt];}['afterInit'](){const _0x32f7cf=this['editor'];if(!_0x32f7cf['plugins']['has']('TableCaptionEditing'))return;_0x32f7cf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x5c4eb9{['tableProperties'];['tableCellProperties'];constructor(_0x18d744){super(_0x18d744),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x38a76d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x22a0aa of this['tableProperties'])_0x38a76d['enableCommand'](_0x22a0aa,(_0x527e01,_0x3b6e66)=>{const _0xce3eed=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x22a0aa,[_0xce3eed],this['tableProperties'],'tableProperties',_0x527e01,_0x3b6e66);});_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x38a76d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x230400,_0x59bd16)=>this['handleDiscardAction'](this['tableProperties'],_0x230400,_0x59bd16)),_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x474b7d of this['tableCellProperties'])_0x38a76d['enableCommand'](_0x474b7d,(_0x4d663b,_0x3b7977)=>{const _0x1a3de2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x474b7d,_0x1a3de2,this['tableCellProperties'],'tableCellProperties',_0x4d663b,_0x3b7977);});_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x38a76d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x11762b,_0x38ecc7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x11762b,_0x38ecc7)),_0x38a76d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x38a76d['descriptionFactory']['registerDescriptionCallback'](_0x4e5ed7=>this['handleSuggestionDescription'](_0x4e5ed7));}['_handlePropertyChange'](_0x296faf,_0x11b823,_0xdaa439,_0xb6ba06,_0x5e0834,_0x3854c0){const _0x50e169=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3854c0['batch'],()=>{for(const _0xb1d0b7 of _0x11b823){if(this['_getSuggestion'](_0xb1d0b7,_0xb6ba06))_0x5e0834(_0x3854c0);else{const _0x3485f9={};for(const _0x48b4a9 of _0xdaa439){const _0x586117=_0xb1d0b7['getAttribute'](_0x48b4a9);void 0x0!==_0x586117&&(_0x3485f9[_0x48b4a9]=_0x586117);}_0x5e0834(_0x3854c0),_0x50e169['markBlockFormat'](_0xb1d0b7,{'commandParams':[_0x3485f9]},[],_0xb6ba06);}}});}['handleDiscardAction'](_0x51b9d8,_0x40cb14,_0x34e271){const _0xcda4de=_0x40cb14[0x0]['start']['nodeAfter'],_0x5bf74e=_0x34e271['commandParams'][0x0];this['editor']['model']['change'](_0x522c6a=>{for(const _0x43835e of _0x51b9d8)void 0x0!==_0x5bf74e[_0x43835e]?_0x522c6a['setAttribute'](_0x43835e,_0x5bf74e[_0x43835e],_0xcda4de):_0x522c6a['removeAttribute'](_0x43835e,_0xcda4de);});}['handleSuggestionDescription'](_0xb52ff7){if(_0xb52ff7['data'])switch(_0xb52ff7['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'](_0x404b33,_0x59654e){const _0x196fef=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5bf499 of _0x196fef['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ec650=_0x5bf499['getContainedElement']();if(_0x5bf499['subType']===_0x59654e&&_0x3ec650===_0x404b33)return _0x5bf499;}return null;}}const m='$elementName';class p extends _0x5c4eb9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1c96ed,_0x109139,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50a491){super(_0x50a491),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f901e,_0x12c950,_0x59362b,_0x4dc08e)=>{this['_model']['change'](()=>{for(const _0x365039 of[..._0x4dc08e,..._0x59362b])this['_model']['markers']['has'](_0x365039)&&_0x50a491['editing']['reconvertMarker'](_0x365039);});}),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']=_0x50a491['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(),_0x50a491['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x50a491['config']['get']('trackChanges.trackFormatChanges'),_0x50a491['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x50a491['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x50a491,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x853f95=this['editor'],_0x1cc11c=(_0x5d9032,_0x5c6389)=>{if('attribute'!=_0x5d9032)return'ck-suggestion-marker-'+_0x5d9032;const _0x3d0cc8=_0x5c6389['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d0cc8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x853f95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3a39bd=>{const {id:_0x59638f,authorId:_0x22e61e,type:_0xee6c83,subType:_0x1e30cd}=this['_splitMarkerName'](_0x3a39bd['markerName']),_0x3baf47=['ck-suggestion-marker',_0x1cc11c(_0xee6c83,_0x1e30cd)];let _0x3f4e2d=0xbb8;return this['activeMarkers']['includes'](_0x3a39bd['markerName'])&&(_0x3baf47['push']('ck-suggestion-marker--active'),_0x3f4e2d=0xbc2),'deletion'==_0xee6c83&&(_0x3f4e2d+=0x5),{'classes':_0x3baf47,'attributes':{'data-suggestion':_0x59638f,'data-author-id':_0x22e61e},'priority':_0x3f4e2d};}}),_0x853f95['conversion']['for']('dataDowncast')['add'](_0x4406c7=>{_0x4406c7['on']('addMarker:suggestion',(_0x260b9b,_0x19ba48,_0x48ee10)=>{if(!_0x48ee10['options']['showSuggestionHighlights'])return;const _0x1d9e57=_0x19ba48['item'];if(!_0x1d9e57)return;const _0x414830=_0x48ee10['mapper']['toViewElement'](_0x1d9e57);_0x853f95['model']['schema']['isObject'](_0x1d9e57)&&_0x414830&&!_0x414830['getCustomProperty']('widget')&&_0x414830['is']('containerElement')&&_0x27c31b(_0x414830,_0x48ee10['writer']);},{'priority':'high'});}),_0x853f95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb0d3ab,_0x1b86a1)=>{if(!_0x1b86a1['options']['showSuggestionHighlights'])return null;const {type:_0x59aad5,subType:_0xbe0dfc}=this['_splitMarkerName'](_0xb0d3ab['markerName']);return{'classes':['ck-suggestion-marker',_0x1cc11c(_0x59aad5,_0xbe0dfc)],'priority':0xbb8};}});const _0x322ea6=({showActiveMarkers:_0x8f63d8=!0x0,isAttributeSuggestion:_0x43df1c=!0x1}={})=>(_0x2308a8,_0x4f7f48,_0xe27be6)=>{if(!_0x4f7f48['item'])return;const {id:_0x100a62,authorId:_0x5f4887}=this['_splitMarkerName'](_0x4f7f48['markerName']);if(_0x43df1c){const _0x1d8b2c=this['_suggestions']['get'](_0x100a62),_0x451e84=this['_getAttributeKey'](_0x1d8b2c);if(!this['_isBlockAttribute'](_0x451e84))return;}if(_0x4f7f48['item']['is']('selection'))return void _0xe27be6['consumable']['consume'](_0x4f7f48['item'],_0x2308a8['name']);const _0x2fa153=_0xe27be6['mapper']['toViewElement'](_0x4f7f48['item']);if(_0x4f7f48['item']['is']('element')&&_0x853f95['model']['schema']['isBlock'](_0x4f7f48['item'])&&!_0x2fa153['getCustomProperty']('addHighlight')){_0xe27be6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2fa153),_0xe27be6['writer']['setAttribute']('data-suggestion',_0x100a62,_0x2fa153),_0xe27be6['writer']['setAttribute']('data-author-id',_0x5f4887,_0x2fa153),_0xe27be6['mapper']['bindElementToMarker'](_0x2fa153,_0x4f7f48['markerName']),_0x8f63d8&&(this['activeMarkers']['includes'](_0x4f7f48['markerName'])?_0xe27be6['writer']['addClass']('ck-suggestion-marker--active',_0x2fa153):_0xe27be6['writer']['removeClass']('ck-suggestion-marker--active',_0x2fa153));for(const _0x3c47ce of _0x853f95['model']['createRangeIn'](_0x4f7f48['item'])['getItems']())_0xe27be6['consumable']['consume'](_0x3c47ce,_0x2308a8['name']);_0xe27be6['consumable']['consume'](_0x4f7f48['item'],_0x2308a8['name']);}};_0x853f95['conversion']['for']('dataDowncast')['add'](_0x565458=>{_0x565458['on']('addMarker:suggestion:formatBlock',(_0x58eab4,_0x54b9fc,_0x32c759)=>{_0x32c759['options']['showSuggestionHighlights']&&_0x322ea6({'showActiveMarkers':!0x1})(_0x58eab4,_0x54b9fc,_0x32c759);},{'priority':'highest'});}),_0x853f95['conversion']['for']('dataDowncast')['add'](_0x51dbcb=>{_0x51dbcb['on']('addMarker:suggestion:attribute',(_0x22005a,_0x4ed480,_0x4c57ba)=>{_0x4c57ba['options']['showSuggestionHighlights']&&_0x322ea6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x22005a,_0x4ed480,_0x4c57ba);},{'priority':'highest'});}),_0x853f95['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c0a9a,_0x2faf78)=>_0x2faf78['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1c0a9a['substr'](0xb)}}),_0x853f95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c36fb,{writer:_0x1c1932})=>{let _0x3d7c2f='suggestion:'+_0x4c36fb['getAttribute']('suggestion-type')+':'+_0x4c36fb['getAttribute']('id');return _0x4c36fb['getAttribute']('marker-count')&&(_0x3d7c2f+=':'+_0x4c36fb['getAttribute']('marker-count')),_0x1c1932['createElement']('$marker',{'data-name':_0x3d7c2f});}}),_0x853f95['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x853f95['conversion']['for']('editingDowncast')['add'](_0x317629=>{_0x317629['on']('addMarker:suggestion:formatBlock',_0x322ea6(),{'priority':'high'});}),_0x853f95['conversion']['for']('editingDowncast')['add'](_0x4d7498=>{_0x4d7498['on']('addMarker:suggestion:attribute',_0x322ea6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x853f95['conversion']['for']('editingDowncast')['add'](_0x503821=>{_0x503821['on']('removeMarker:suggestion:formatBlock',(_0x3a8e21,_0x9ed2af,_0x16e507)=>{const _0x4d7581=_0x16e507['mapper']['markerNameToElements'](_0x9ed2af['markerName']);if(_0x4d7581){for(const _0x344c9a of _0x4d7581)_0x344c9a['getCustomProperty']('addHighlight')||(_0x16e507['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x344c9a),_0x16e507['writer']['removeAttribute']('data-suggestion',_0x344c9a),_0x16e507['writer']['removeAttribute']('data-author-id',_0x344c9a),_0x16e507['mapper']['unbindElementFromMarkerName'](_0x344c9a,_0x9ed2af['markerName']));}},{'priority':'high'});}),_0x853f95['conversion']['for']('editingDowncast')['add'](_0xa240b6=>{_0xa240b6['on']('removeMarker:suggestion:attribute',(_0x35f673,_0x195ff3,_0x47e822)=>{const _0x50a6a4=_0x47e822['mapper']['markerNameToElements'](_0x195ff3['markerName']);if(!_0x50a6a4)return;const {id:_0x8a7a17}=this['_splitMarkerName'](_0x195ff3['markerName']),_0x40445a=this['_suggestions']['get'](_0x8a7a17),_0xabd1e9=this['_getAttributeKey'](_0x40445a);if(this['_isBlockAttribute'](_0xabd1e9)){for(const _0x15e2ae of _0x50a6a4)_0x15e2ae['getCustomProperty']('addHighlight')||(_0x47e822['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15e2ae),_0x47e822['writer']['removeAttribute']('data-suggestion',_0x15e2ae),_0x47e822['writer']['removeAttribute']('data-author-id',_0x15e2ae),_0x47e822['mapper']['unbindElementFromMarkerName'](_0x15e2ae,_0x195ff3['markerName']));}},{'priority':'high'});}),_0x853f95['model']['document']['registerPostFixer'](_0xd576e8=>{let _0x2a12da=!0x1;const _0x2fa870=Array['from'](_0x853f95['model']['document']['differ']['getChangedMarkers']()),_0x365c0c=new Set();for(const {name:_0x419b6a,data:_0x491467}of _0x2fa870){const {group:_0x257476,type:_0x320927,subType:_0xd0396f,id:_0x346a24}=this['_splitMarkerName'](_0x419b6a);if('suggestion'!==_0x257476)continue;const _0x19ab8b=this['_suggestions']['get'](_0x346a24);if(null!=_0x491467['newRange']){'formatInline'==_0x320927&&(_0x2a12da=_0x2a12da||Pt(_0x491467['newRange'],_0x419b6a,_0xd576e8,_0x853f95['model']['schema']));const _0x2f1479='attribute'==_0x320927&&this['_isBlockAttribute'](_0xd0396f['split']('|')[0x0]);if(_0x491467['newRange']['isCollapsed']||'$graveyard'==_0x491467['newRange']['root']['rootName']||'formatBlock'==_0x320927&&!Ft(_0x491467['newRange'])||_0x2f1479&&!Ft(_0x491467['newRange'])||'deletion'==_0x320927&&!(!Vt(_0x1d4880=_0x491467['newRange'])&&!function(_0x3c91b1){return _0x3c91b1['start']['parent']==_0x3c91b1['end']['nodeBefore']&&_0x3c91b1['start']['isAtEnd'];}(_0x1d4880)))_0xd576e8['removeMarker'](_0x419b6a),_0x2a12da=!0x0;else{if(!_0x19ab8b||!_0x19ab8b['isInContent'])continue;if(_0x491467['newRange']&&_0x491467['oldRange']&&_0x491467['newRange']['isEqual'](_0x491467['oldRange']))continue;_0x365c0c['add'](_0x19ab8b);}}}var _0x1d4880;return _0x365c0c['size']>0x0&&(_0x2a12da=!!this['_joinWithAdjacentSuggestions'](_0x365c0c)||_0x2a12da),_0x2a12da;}),_0x853f95['model']['document']['registerPostFixer'](_0x5d3600=>{let _0xb16637=!0x1;for(const _0xddde16 of _0x853f95['model']['document']['differ']['getChanges']())if('insert'==_0xddde16['type'])for(const _0x1a8e93 of this['_suggestions']['values']()){if(_0x1a8e93['isMultiRange']||!_0x1a8e93['isInContent'])continue;const _0x1bd05b='formatBlock'==_0x1a8e93['type'],_0x192a2c=this['_getAttributeKey'](_0x1a8e93),_0x6fbd6=_0x192a2c&&this['_isBlockAttribute'](_0x192a2c);if(!_0x1bd05b&&!_0x6fbd6)continue;const _0x3c3adc=_0x1a8e93['getFirstRange']();if(_0x3c3adc['start']['parent']!=_0x3c3adc['end']['parent']&&!_0x3c3adc['end']['isAtEnd']){const _0x4e341e=_0x853f95['model']['createPositionAt'](_0x3c3adc['start']['nodeAfter'],'end'),_0x28cdd7=_0x853f95['model']['createRange'](_0x3c3adc['start'],_0x4e341e);_0x5d3600['updateMarker'](_0x1a8e93['getFirstMarker'](),{'range':_0x28cdd7}),_0xb16637=!0x0;}}return _0xb16637;}),_0x853f95['model']['document']['registerPostFixer'](_0x2ef1c3=>this['_processAttributeChanges'](_0x2ef1c3)),_0x853f95['model']['document']['registerPostFixer'](_0x34d106=>!_0x34d106['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34d106)),_0x853f95['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x853f95['model']['document']['on']('change:data',(_0x21a00d,_0x3ba8d6)=>{if(!_0x3ba8d6['isLocal']||_0x3ba8d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2db19b=_0x853f95['model']['document']['differ']['getChanges']();if(0x0==_0x2db19b['length'])return;const _0x51629e=[],_0x4faaf2=_0x2db19b['filter'](_0x13f881=>'attribute'==_0x13f881['type']),_0x4c4871=_0x2db19b['filter'](_0x52772e=>'insert'==_0x52772e['type']&&'$text'!=_0x52772e['name']);for(const _0x1734bf of _0x4faaf2)this['_isRegisteredAttribute'](_0x1734bf['attributeKey'])&&_0x51629e['push']({'key':_0x1734bf['attributeKey'],'newValue':_0x1734bf['attributeNewValue'],'oldValue':_0x1734bf['attributeOldValue'],'range':Lt(_0x1734bf['range'],_0x853f95['model'])});for(const _0x43092b of _0x4c4871){if('rename'!=_0x43092b['action']&&'refresh'!=_0x43092b['action'])continue;const _0x4dd75e=Jt(_0x43092b['position']['nodeAfter'],_0x853f95['model']),_0xb5880f=_0x43092b['before'];'rename'==_0x43092b['action']&&_0x51629e['push']({'key':m,'newValue':_0x43092b['name'],'oldValue':_0xb5880f['name'],'range':_0x4dd75e});for(const [_0x3ef84e,_0x38835b]of _0xb5880f['attributes']){if(!this['_isRegisteredAttribute'](_0x3ef84e))continue;const _0x4c1b59=_0x43092b['attributes']['get'](_0x3ef84e);_0x38835b!==_0x4c1b59&&_0x51629e['push']({'key':_0x3ef84e,'newValue':_0x4c1b59,'oldValue':_0x38835b,'range':_0x4dd75e});}for(const [_0x4f24f8,_0x5b6beb]of _0x43092b['attributes'])this['_isRegisteredAttribute'](_0x4f24f8)&&(_0xb5880f['attributes']['has'](_0x4f24f8)||_0x51629e['push']({'key':_0x4f24f8,'newValue':_0x5b6beb,'oldValue':null,'range':_0x4dd75e}));}0x0!=_0x51629e['length']&&_0x853f95['model']['enqueueChange'](_0x3ba8d6,_0x1d6537=>{const _0x458f2f=_0x489557();for(const {range:_0x3f194a,key:_0x1cd717,oldValue:_0x4176cd,newValue:_0x341a70}of _0x51629e)this['markAttributeChange'](_0x3f194a,_0x1cd717,_0x4176cd,_0x341a70,{'groupId':_0x458f2f});this['_reduceExistingSuggestions'](_0x1d6537,_0x51629e);});},{'priority':'lowest'}),_0x853f95['model']['markers']['on']('update:suggestion',(_0x36a1ff,_0xd55118,_0x31136c)=>{if(null==_0x31136c){const {id:_0x4fb4d9}=this['_splitMarkerName'](_0xd55118['name']),_0x152fc6=this['_suggestions']['get'](_0x4fb4d9);_0x152fc6&&_0x152fc6['addMarkerName'](_0xd55118['name']);}}),_0x853f95['model']['document']['on']('change:data',()=>{const _0x3cd565=Array['from'](_0x853f95['model']['document']['differ']['getChangedMarkers']())['filter'](_0x26a717=>'suggestion'===this['_splitMarkerName'](_0x26a717['name'])['group']);if(0x0===_0x3cd565['length'])return;_0x3cd565['sort']((_0x1d05b7,_0x2e55f2)=>{const _0xf998e0=_0x1d05b7['data']['oldRange'],_0x4980ea=_0x2e55f2['data']['oldRange'];return null===_0xf998e0&&null===_0x4980ea?0x0:null===_0xf998e0&&null!==_0x4980ea?-0x1:null!==_0xf998e0&&null===_0x4980ea?0x1:_0xf998e0['start']['isBefore'](_0x4980ea['start'])?-0x1:0x1;});const _0x441663=new Set(),_0x2ff8bd=new Set();for(const {name:_0x1e74af,data:_0x279da4}of _0x3cd565){const {id:_0x46d659}=this['_splitMarkerName'](_0x1e74af);if(null===_0x279da4['oldRange']){const _0x37854b=this['_handleNewSuggestionMarker'](_0x1e74af);_0x2ff8bd['add'](_0x37854b);}else{const _0x7744f2=this['_suggestions']['get'](_0x46d659);null!==_0x279da4['newRange']||_0x7744f2['isInContent']?(_0x441663['add'](_0x7744f2['head']),_0x2ff8bd['add'](_0x7744f2)):this['_removeSuggestion'](_0x7744f2);}}_0x2ff8bd['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ff8bd);for(const _0x14a2d2 of _0x441663)this['fire']('suggestionChanged',_0x14a2d2);}),_0x853f95['model']['on']('applyOperation',(_0x52427b,_0x57a75b)=>{const _0x150c52=_0x57a75b[0x0];if(!this['_suggestions']['size'])return;if(!_0x150c52['isDocumentOperation'])return;if(_0x150c52['batch']['isUndo']||!_0x150c52['batch']['isLocal'])return;let _0x3930ae,_0x43ced1;switch(_0x150c52['type']){case'insert':_0x3930ae=_0x853f95['model']['createPositionAt'](_0x150c52['position']),_0x43ced1=_0x3930ae['getShiftedBy'](_0x150c52['howMany']);break;case'split':_0x3930ae=_0x853f95['model']['createPositionAt'](_0x150c52['splitPosition']),_0x43ced1=_0x853f95['model']['createPositionAt'](_0x150c52['moveTargetPosition']);break;case'move':_0x3930ae=_0x853f95['model']['createPositionAt'](_0x150c52['targetPosition']),_0x43ced1=_0x3930ae['getShiftedBy'](_0x150c52['howMany']);break;default:return;}const _0x192880=_0x853f95['model']['createRange'](_0x3930ae,_0x43ced1);_0x853f95['model']['change'](()=>{for(const {suggestion:_0x216c33,meta:_0x35763e}of this['_findSuggestions'](_0x192880)){if(_0x216c33['isMultiRange'])continue;if('formatInline'==_0x216c33['type'])continue;const _0x1952f5=this['_getAttributeKey'](_0x216c33);if(_0x1952f5&&this['_isBlockAttribute'](_0x1952f5)&&'split'!=_0x150c52['type'])continue;const _0x5f1366=_0x216c33['data']&&_0x216c33['data']['multipleBlocks'];('formatBlock'!=_0x216c33['type']||'split'==_0x150c52['type']&&!_0x5f1366)&&(_0x35763e['containsRangeInObject']||'insertion'==_0x216c33['type']&&_0x35763e['isOwn']||_0x216c33['getFirstRange']()['containsRange'](_0x192880)&&this['_breakSuggestionMarker'](_0x216c33,_0x3930ae,_0x43ced1));}});},{'priority':'lowest'}),_0x853f95['model']['on']('deleteContent',(_0x303339,_0x31613b)=>{const _0x290d1b=_0x31613b[0x0],_0x539a4d=_0x31613b[0x1];if(_0x539a4d&&_0x539a4d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x290d1b['isCollapsed'])return;const _0x41d683=_0x853f95['model']['schema'],{start:_0x334ec3,end:_0x418bf4}=_0x290d1b['getFirstRange'](),_0x33a1d8=_0x334ec3['nodeAfter']&&_0x41d683['isLimit'](_0x334ec3['nodeAfter'])?null:_0x41d683['getNearestSelectionRange'](_0x334ec3,'forward'),_0x2b9d98=_0x418bf4['nodeBefore']&&_0x41d683['isLimit'](_0x418bf4['nodeBefore'])?null:_0x41d683['getNearestSelectionRange'](_0x418bf4,'backward'),_0x1110fe=_0x853f95['model']['createRange'](_0x33a1d8?_0x33a1d8['start']:_0x334ec3,_0x2b9d98?_0x2b9d98['end']:_0x418bf4);_0x853f95['model']['change'](_0x3b6fce=>{this['markDeletion'](_0x1110fe);const _0x17e0c6=_0x853f95['model']['schema']['getNearestSelectionRange'](_0x1110fe['start']);_0x290d1b['is']('documentSelection')?_0x3b6fce['setSelection'](_0x17e0c6):_0x290d1b['setTo'](_0x17e0c6);}),_0x303339['stop']();},{'priority':_0x250038['normal']+0xa}),_0x853f95['model']['on']('insertContent',(_0x1848b4,_0xf7793d)=>{const _0x233f1c=_0xf7793d[_0xf7793d['length']-0x1];_0x233f1c&&_0x233f1c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x853f95['model']['change'](()=>{let _0xc42a93=_0x853f95['model']['insertContent'](_0xf7793d[0x0],_0xf7793d[0x1],_0xf7793d[0x2],{'forceDefaultExecution':!0x0});if(!_0xc42a93)return;_0x1848b4['return']=_0xc42a93['clone']();const _0x1e8a6d=_0xc42a93['end']['nodeBefore'],_0xa5c582=_0x853f95['model']['schema'];_0x1e8a6d&&_0xa5c582['isBlock'](_0x1e8a6d)&&!_0xa5c582['isObject'](_0x1e8a6d)&&(_0xc42a93=_0x853f95['model']['createRange'](_0xc42a93['start'],_0x853f95['model']['createPositionAt'](_0x1e8a6d,'end'))),this['markInsertion'](_0xc42a93);}),_0x1848b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ed72e=new O(_0x853f95,this['_suggestions']);_0x853f95['commands']['add']('acceptSuggestion',_0x3ed72e),this['enableCommand']('acceptSuggestion');const _0x2f2e82=new R(_0x853f95,this['_suggestions']);_0x853f95['commands']['add']('discardSuggestion',_0x2f2e82),this['enableCommand']('discardSuggestion'),_0x853f95['commands']['add']('acceptAllSuggestions',new x(_0x853f95,_0x3ed72e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x853f95['commands']['add']('discardAllSuggestions',new x(_0x853f95,_0x2f2e82,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x853f95['commands']['add']('acceptSelectedSuggestions',new E(_0x853f95,_0x3ed72e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x853f95['commands']['add']('discardSelectedSuggestions',new E(_0x853f95,_0x2f2e82,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f1b85=_0x853f95['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f1b85,'addComment',(_0xb3e0ec,{threadId:_0x5c6f6d})=>{const _0x16e5cf=this['_suggestions']['get'](_0x5c6f6d);_0x16e5cf&&_0x16e5cf['commentThread']&&0x1===_0x16e5cf['commentThread']['length']&&this['_updateSuggestionData'](_0x5c6f6d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f1b85,'removeComment',(_0x3920be,{threadId:_0x30a2aa})=>{const _0x428bd2=this['_suggestions']['get'](_0x30a2aa);_0x428bd2&&_0x428bd2['commentThread']&&!_0x428bd2['commentThread']['length']&&this['_updateSuggestionData'](_0x30a2aa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c3f1f){const _0x455831=_0x4c520f([0x42,0x43,0x4f,0x35,0x65,0x77,0x33,0x32,0x74,0x41,0x52,0x68,0x75,0x62,0x6f,0x63,0x58,0x71,0x57,0x31,0x59,0x49,0x61,0x66,0x6b,0x36,0x69,0x67,0x6c,0x53,0x4c,0x45,0x7a,0x34,0x39,0x48,0x46,0x70,0x64,0x54,0x47,0x6a,0x72,0x51,0x55,0x79,0x6e,0x73,0x4a,0x76,0x56,0x44,0x38,0x6d,0x4d,0x4e,0x37,0x50,0x30,0x4b,0x5a,0x78]),_0x2c3fa2=0x7ad6a9eb,_0x1602c4=0x7ad1fe0b^_0x2c3fa2,_0x2f1e7b=window[_0x4c520f([0x44,0x61,0x74,0x65])][_0x4c520f([0x6e,0x6f,0x77])](),_0x2b6aff=_0x3c3f1f[_0x4c520f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3120d8=new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362c2a=>{_0x2b6aff[_0x4c520f([0x6f,0x6e,0x63,0x65])](_0x4c520f([0x72,0x65,0x61,0x64,0x79]),_0x362c2a);}),_0x3c41f4={[_0x4c520f([0x6b,0x74,0x79])]:_0x4c520f([0x45,0x43]),[_0x4c520f([0x75,0x73,0x65])]:_0x4c520f([0x73,0x69,0x67]),[_0x4c520f([0x63,0x72,0x76])]:_0x4c520f([0x50,0x2d,0x32,0x35,0x36]),[_0x4c520f([0x78])]:_0x4c520f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4c520f([0x79])]:_0x4c520f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4c520f([0x61,0x6c,0x67])]:_0x4c520f([0x45,0x53,0x32,0x35,0x36])},_0x156c94=_0x2b6aff[_0x4c520f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c520f([0x67,0x65,0x74])](_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36209(){let _0x5d19e8,_0x1f240a=null,_0x1ce19d=null;try{if(_0x156c94==_0x4c520f([0x47,0x50,0x4c]))return _0x4c520f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d19e8=_0x7c3cfa(),!_0x5d19e8)return _0x4c520f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d19e8[_0x4c520f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ce19d=_0x2aa4b1(_0x5d19e8[_0x4c520f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d19e8[_0x4c520f([0x6a,0x74,0x69])])),await _0x35a22()?_0x4b8321()?_0x3a7b35()?_0x4c520f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dc5ec()?(_0x5d19e8[_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c520f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f240a=_0x3c0416(_0x4c520f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d19e8[_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c520f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f240a=_0x3c0416(_0x4c520f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d19e8[_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c520f([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1f240a=_0x3c0416(_0x4c520f([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4551ab()):_0x4c520f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c520f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c520f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4629d9){return _0x4c520f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a7b35(){const _0xcd61c0=[_0x4c520f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c520f([0x74,0x72,0x69,0x61,0x6c])][_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d19e8[_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1e7b/0x3e8:0xe10*_0x1602c4;return _0x5d19e8[_0x4c520f([0x65,0x78,0x70])]<_0xcd61c0;}function _0x4b8321(){const _0xd024fb=_0x5d19e8[_0x4c520f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd024fb&&(!!_0xd024fb[_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c520f([0x2a]))||(!!_0xd024fb[_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c520f([0x54,0x43]))||!(!_0xd024fb[_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c520f([0x52,0x54,0x43]))||!_0x7bf2cc())));}function _0x4dc5ec(){const _0x3d61ce=_0x5d19e8[_0x4c520f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d61ce||0x0==_0x3d61ce[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ce7ee}=new URL(window[_0x4c520f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d61ce[_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ce7ee))return!0x0;const _0x305005=_0x2ce7ee[_0x4c520f([0x73,0x70,0x6c,0x69,0x74])](_0x4c520f([0x2e]));return _0x3d61ce[_0x4c520f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x188c93=>_0x188c93[_0x4c520f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c520f([0x2a])))[_0x4c520f([0x6d,0x61,0x70])](_0x20d718=>_0x20d718[_0x4c520f([0x73,0x70,0x6c,0x69,0x74])](_0x4c520f([0x2e])))[_0x4c520f([0x73,0x6f,0x6d,0x65])](_0x9dc2a2=>_0x305005[_0x4c520f([0x65,0x76,0x65,0x72,0x79])]((_0x71a5d8,_0x316c87)=>_0x9dc2a2[_0x316c87]===_0x71a5d8||_0x9dc2a2[_0x316c87]===_0x4c520f([0x2a])));}function _0x4551ab(){return _0x1f240a&&_0x1ce19d?new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x841c8e,_0x3bdd40)=>{_0x1f240a[_0x4c520f([0x74,0x68,0x65,0x6e])](_0x841c8e,_0x3bdd40),_0x1ce19d[_0x4c520f([0x74,0x68,0x65,0x6e])](_0x26900c=>{_0x26900c!=_0x4c520f([0x56,0x61,0x6c,0x69,0x64])&&_0x841c8e(_0x26900c);},_0x3bdd40);}):_0x1f240a||_0x1ce19d||_0x4c520f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2aa4b1(_0x2c2c0f,_0x4c9b41){return new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc403b3=>{if(_0x208ea3())return _0xc403b3(_0x4c520f([0x56,0x61,0x6c,0x69,0x64]));_0x4b113f(),_0x2b6aff[_0x4c520f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c520f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14105b=!0x1;const _0x4620f1=_0x489557();function _0x51ca38(_0x3d05b3){return!!_0x3d05b3&&(typeof _0x3d05b3===_0x4c520f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d05b3===_0x4c520f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d05b3[_0x4c520f([0x74,0x68,0x65,0x6e])]===_0x4c520f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d05b3[_0x4c520f([0x63,0x61,0x74,0x63,0x68])]===_0x4c520f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb27bdf(_0x547330){_0x40f246(_0x547330)[_0x4c520f([0x74,0x68,0x65,0x6e])](_0x493f9a=>{if(!_0x493f9a||_0x493f9a[_0x4c520f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c520f([0x6f,0x6b]))return _0x4c520f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12fb30(_0x24e854(_0x4620f1+_0x4c9b41))!=_0x493f9a[_0x4c520f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c520f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c520f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c520f([0x74,0x68,0x65,0x6e])](_0x1a3972=>(_0x496d5(),_0x1a3972),()=>{const _0x373bcc=_0x39a9d2();return null==_0x373bcc?(_0x496d5(),_0x4c520f([0x56,0x61,0x6c,0x69,0x64])):_0x4c520f(_0x2f1e7b-_0x373bcc>(0x5eda2deb^_0x2c3fa2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c520f([0x74,0x68,0x65,0x6e])](_0xc403b3)[_0x4c520f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc403b3(_0x4c520f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bcfcf=0x7ae0476b^_0x2c3fa2;function _0x496d5(){const _0x2782ff=_0x4c520f([0x6c,0x6c,0x63,0x74,0x2d])+_0x12fb30(_0x24e854(_0x2c2c0f)),_0x3f7df3=_0x16b56d(_0x12fb30(window[_0x4c520f([0x4d,0x61,0x74,0x68])][_0x4c520f([0x63,0x65,0x69,0x6c])](_0x2f1e7b/_0x2bcfcf)));window[_0x4c520f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c520f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2782ff,_0x3f7df3);}function _0x39a9d2(){const _0x5818ac=_0x4c520f([0x6c,0x6c,0x63,0x74,0x2d])+_0x12fb30(_0x24e854(_0x2c2c0f)),_0x36e0bb=window[_0x4c520f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c520f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5818ac);return _0x36e0bb?window[_0x4c520f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b56d(_0x36e0bb),0x10)*_0x2bcfcf:null;}function _0x40f246(_0x982469){return new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ec35,_0x4d7b08)=>{_0x982469[_0x4c520f([0x74,0x68,0x65,0x6e])](_0x45ec35,_0x4d7b08),window[_0x4c520f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d7b08,0x7ad77d2b^_0x2c3fa2);});}}_0x2b6aff[_0x4c520f([0x6f,0x6e])](_0x4c520f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4353da,_0x3e37c6)=>{if(_0x3e37c6[0x0]!=_0x2c2c0f)return _0xc403b3(_0x4c520f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e37c6[0x1]={..._0x3e37c6[0x1],[_0x4c520f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4620f1};},{[_0x4c520f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c520f([0x68,0x69,0x67,0x68])}),_0x2b6aff[_0x4c520f([0x6f,0x6e])](_0x4c520f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25730d=>{_0x51ca38(_0x25730d[_0x4c520f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14105b=!0x0,_0xb27bdf(_0x25730d[_0x4c520f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c520f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c520f([0x6c,0x6f,0x77])}),_0x3120d8[_0x4c520f([0x74,0x68,0x65,0x6e])](()=>{_0x14105b||_0xc403b3(_0x4c520f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x208ea3(){return _0x2b6aff[_0x4c520f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c520f([0x76,0x69,0x65,0x77])][_0x4c520f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c520f([0x61,0x75,0x74,0x6f]);}function _0x4b113f(){_0x2b6aff[_0x4c520f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c520f([0x76,0x69,0x65,0x77])][_0x4c520f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c520f([0x61,0x75,0x74,0x6f]);}}function _0x3c0416(_0x21ff54){const _0x220d38=[new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a5764=>setTimeout(_0x2a5764,0x7adf9727^_0x2c3fa2)),_0x3120d8[_0x4c520f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4266a0=>{let _0x2d92c7=0x0;_0x2b6aff[_0x4c520f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c520f([0x6f,0x6e])](_0x4c520f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3db3d3,_0xd5c186)=>{_0xd5c186[0x0][_0x4c520f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d92c7++,_0x2d92c7==(0x7ad6a813^_0x2c3fa2)&&(_0x4266a0(),_0x3db3d3[_0x4c520f([0x6f,0x66,0x66])]());});}))];return window[_0x4c520f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c520f([0x72,0x61,0x63,0x65])](_0x220d38)[_0x4c520f([0x74,0x68,0x65,0x6e])](()=>_0x21ff54);}async function _0x5c342d(){await _0x3120d8,_0x2b6aff[_0x4c520f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c520f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x372d24,_0x2b6aff[_0x4c520f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c520f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x372d24,_0x2b6aff[_0x4c520f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c520f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7bf2cc(){return _0x25a778(_0x4c520f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x41149c(_0x4c520f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c520f([0x73,0x74,0x61,0x74,0x65])]==_0x4c520f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b557e(_0x2e2cf9){const _0x227b7b=_0x5bfee8();_0x2b6aff[_0x227b7b]=_0x4c520f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e2cf9,_0x2e2cf9!=_0x4c520f([0x56,0x61,0x6c,0x69,0x64])&&_0x5c342d();}function _0x5bfee8(){const _0x5a7261=window[_0x4c520f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c520f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c520f([0x6e,0x6f,0x77])]())[_0x4c520f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c520f([0x2e]),'');let _0x2b4bf2=_0x4c520f([0x42]);for(let _0x53dbaf=0x0;_0x53dbaf<_0x5a7261[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53dbaf+=0x2){let _0x1b1e9d=window[_0x4c520f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7261[_0x4c520f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53dbaf,_0x53dbaf+0x2));_0x1b1e9d>=_0x455831[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b1e9d-=_0x455831[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b4bf2+=_0x455831[_0x1b1e9d];}return _0x2b4bf2;}function _0x7c3cfa(){const _0x1a0ba6=_0x156c94[_0x4c520f([0x73,0x70,0x6c,0x69,0x74])](_0x4c520f([0x2e]));if(0x3!=_0x1a0ba6[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x514c0a(_0x1a0ba6[0x1]);function _0x514c0a(_0x248018){const _0x586a8f=_0x227f0a(_0x248018);return _0x586a8f&&_0x385b37()?_0x586a8f:null;function _0x385b37(){const _0x7db88d=_0x586a8f[_0x4c520f([0x6a,0x74,0x69])],_0x226484=window[_0x4c520f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7db88d[_0x4c520f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7db88d[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x222703={..._0x586a8f,[_0x4c520f([0x6a,0x74,0x69])]:_0x7db88d[_0x4c520f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7db88d[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x222703[_0x4c520f([0x76,0x63])],_0x24e854(_0x222703)==_0x226484;}}}async function _0x35a22(){let _0x3fdcc6=!0x0;try{const _0x23953d=_0x156c94[_0x4c520f([0x73,0x70,0x6c,0x69,0x74])](_0x4c520f([0x2e])),[_0x1582c0,_0x4f90c8,_0x149822]=_0x23953d;return _0x2c571f(_0x1582c0),await _0x31e5c4(_0x1582c0,_0x4f90c8,_0x149822),_0x3fdcc6;}catch(_0x43eb45){return!0x1;}function _0x2c571f(_0x416be4){const _0x4ee97d=_0x227f0a(_0x416be4);_0x4ee97d&&_0x4ee97d[_0x4c520f([0x61,0x6c,0x67])]==_0x4c520f([0x45,0x53,0x32,0x35,0x36])||(_0x3fdcc6=!0x1);}async function _0x31e5c4(_0x40ef49,_0x2c46aa,_0x1e2219){const _0x2dbec9=window[_0x4c520f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c520f([0x66,0x72,0x6f,0x6d])](_0x147afd(_0x1e2219),_0x494598=>_0x494598[_0x4c520f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10b98d=new window[(_0x4c520f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c520f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40ef49+_0x4c520f([0x2e])+_0x2c46aa),_0x203abf=window[_0x4c520f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c520f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x203abf)return;const _0x93745e=await _0x203abf[_0x4c520f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c520f([0x6a,0x77,0x6b]),_0x3c41f4,{[_0x4c520f([0x6e,0x61,0x6d,0x65])]:_0x4c520f([0x45,0x43,0x44,0x53,0x41]),[_0x4c520f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c520f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c520f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x203abf[_0x4c520f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c520f([0x6e,0x61,0x6d,0x65])]:_0x4c520f([0x45,0x43,0x44,0x53,0x41]),[_0x4c520f([0x68,0x61,0x73,0x68])]:{[_0x4c520f([0x6e,0x61,0x6d,0x65])]:_0x4c520f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x93745e,_0x2dbec9,_0x10b98d)||(_0x3fdcc6=!0x1);}}function _0x227f0a(_0x4101c2){return _0x4101c2[_0x4c520f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c520f([0x65,0x79]))?JSON[_0x4c520f([0x70,0x61,0x72,0x73,0x65])](_0x147afd(_0x4101c2)):null;}function _0x147afd(_0x1bf237){return window[_0x4c520f([0x61,0x74,0x6f,0x62])](_0x1bf237[_0x4c520f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c520f([0x2b]))[_0x4c520f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c520f([0x2f])));}function _0x24e854(_0x5e7c93){let _0x549c0a=0x1505;function _0x495a7e(_0x1962c5){for(let _0x3817e6=0x0;_0x3817e6<_0x1962c5[_0x4c520f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3817e6++){const _0x46cbec=_0x1962c5[_0x4c520f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3817e6);_0x549c0a=(_0x549c0a<<0x5)+_0x549c0a+_0x46cbec,_0x549c0a&=_0x549c0a;}}function _0x321416(_0x2f1ca8){Array[_0x4c520f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f1ca8)?_0x2f1ca8[_0x4c520f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x321416):_0x2f1ca8&&typeof _0x2f1ca8==_0x4c520f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c520f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f1ca8)[_0x4c520f([0x73,0x6f,0x72,0x74])]()[_0x4c520f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x557be0,_0x3609cb])=>{_0x495a7e(_0x557be0),_0x321416(_0x3609cb);}):_0x495a7e(window[_0x4c520f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f1ca8));}return _0x321416(_0x5e7c93),_0x549c0a>>>0x0;}function _0x12fb30(_0x22c1b7){return _0x22c1b7[_0x4c520f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c520f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c520f([0x30]));}function _0x16b56d(_0x2f219f){return _0x2f219f[_0x4c520f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c520f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c520f([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a778(_0x21c4c6){return _0x2b6aff[_0x4c520f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c520f([0x68,0x61,0x73])](_0x21c4c6);}function _0x41149c(_0x1de104){return _0x2b6aff[_0x4c520f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c520f([0x67,0x65,0x74])](_0x1de104);}function _0x372d24(){}function _0x4c520f(_0x23b44c){return _0x23b44c['map'](_0x52beca=>String['fromCharCode'](_0x52beca))['join']('');}_0x4b557e(await _0x36209());}(this);}set['adapter'](_0x4d656c){if(this['_adapter'])throw new _0x104227('track-changes-adapter-already-set',this);this['_adapter']=_0x4d656c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1fd69e=!0x1,toJSON:_0x161e8f=!0x1}={}){const _0x55a8bb=[];for(const _0x3a6569 of this['_suggestions']['values']())_0x1fd69e&&!_0x3a6569['isInContent']||_0x55a8bb['push'](_0x3a6569);return _0x161e8f?_0x55a8bb['map'](_0x5163b3=>_0x5163b3['toJSON']()):_0x55a8bb;}['getSuggestion'](_0x187880){const _0x13b47d=this['_suggestions']['get'](_0x187880);if(!_0x13b47d)throw new _0x104227('track-changes-suggestion-not-found',this);return _0x13b47d;}['hasSuggestion'](_0x49cd19){return this['_suggestions']['has'](_0x49cd19);}['addSuggestionData'](_0x5f213a){const {authorId:_0x52ad35,id:_0x5d7ae9,attributes:_0x20bce3}=_0x5f213a,[_0x109722,_0x1889e2]=_0x5f213a['type']['split'](':'),_0x547692=this['_suggestions']['get'](_0x5d7ae9)||this['_createSuggestion'](_0x109722,_0x1889e2,_0x5d7ae9,_0x52ad35,_0x20bce3);if(this['_addThreadToSuggestion'](_0x547692),this['_checkSuggestionCorrectness'](_0x547692,_0x109722,_0x1889e2||null,_0x52ad35),_0x547692['createdAt']=_0x5f213a['createdAt'],_0x547692['_isDataLoaded']=!0x0,_0x20bce3&&_0x20bce3['@external']){const _0x1cd026=_0x20bce3['@external'],_0x534014=this['_getExternalAuthor'](_0x1cd026['authorName']);_0x547692['authoredAt']=_0x1cd026['createdAt'],_0x547692['author']=_0x534014,_0x547692['isExternal']=!0x0;}else _0x547692['authoredAt']=_0x5f213a['createdAt'];switch(_0x5f213a['data']&&(_0x547692['data']=_0x5f213a['data']),_0x5f213a['attributes']&&(_0x547692['attributes']=_0x5f213a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x547692['_saved']=!0x0),this['_suggestionState']['get'](_0x547692)){case'notReady':this['_suggestionState']['set'](_0x547692,'dataReady');break;case'markerReady':_0x547692['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x547692])),this['_refreshSuggestionsChain'](new Set([_0x547692])),this['_suggestionState']['set'](_0x547692,'ready'),this['fire']('suggestionLoaded',_0x547692)):this['_suggestionState']['set'](_0x547692,'removed');}return _0x547692;}['acceptSuggestion'](_0x38f2ef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x488722 of _0x38f2ef['getAllAdjacentSuggestions']())_0x488722['accept']();});});}['discardSuggestion'](_0x1c538b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd876 of _0x1c538b['getAllAdjacentSuggestions']())_0x1dd876['discard']();});});}['enableCommand'](_0x38cf7c,_0x1ec1ad){const _0x35f8f1=this['editor']['commands']['get'](_0x38cf7c);if(!_0x35f8f1)throw new _0x104227('track-changes-command-not-found',this,{'commandName':_0x38cf7c});if(this['_enabledCommands']['has'](_0x35f8f1))throw new _0x104227('track-changes-enable-command-twice',this,{'commandName':_0x38cf7c});this['_enabledCommands']['add'](_0x35f8f1),_0x1ec1ad&&_0x35f8f1['on']('execute',(_0x271c61,_0x4e4481)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e4481['length']>0x0&&_0x4e4481[_0x4e4481['length']-0x1]&&_0x4e4481[_0x4e4481['length']-0x1]['forceDefaultExecution']?_0x4e4481['pop']():(_0x271c61['return']=_0x1ec1ad((..._0x471968)=>_0x35f8f1['execute'](..._0x471968,{'forceDefaultExecution':!0x0}),..._0x4e4481),_0x271c61['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4acfda){let _0x177678,_0x53f0e3;const _0x50e2a8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x177678=_0x4acfda();}catch(_0x29c8ce){_0x53f0e3=_0x29c8ce;}return _0x50e2a8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53f0e3&&_0x104227['rethrowUnexpectedError'](_0x53f0e3,this),_0x177678;}['markInsertion'](_0x3c586d,_0x38c4c6=null,_0x4e8e2f={}){if(_0x3c586d['isCollapsed'])return null;const _0x8301f6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30b78b,meta:_0x4f4bc2}of this['_findSuggestions'](_0x3c586d,'insertion'))if(_0x4f4bc2['isOwn']){if(!_0x4f4bc2['isNextTo']){if(_0x4f4bc2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x30b78b,_0x4e8e2f))continue;return _0x30b78b;}if(zt(_0x30b78b,_0x4e8e2f))return _0x30b78b;this['_breakSuggestionMarker'](_0x30b78b,_0x3c586d['start'],_0x3c586d['end']);break;}if(_0x38c4c6==_0x30b78b['subType']&&zt(_0x30b78b,_0x4e8e2f)){const _0x53099d=_0x30b78b['getFirstRange']();return _0x53099d['start']['isEqual'](_0x3c586d['end'])?this['_setSuggestionRange'](_0x30b78b,this['_model']['createRange'](_0x3c586d['start'],_0x53099d['end'])):this['_setSuggestionRange'](_0x30b78b,this['_model']['createRange'](_0x53099d['start'],_0x3c586d['end'])),_0x30b78b;}}const _0x30b05c=_0x489557(),_0x56b0e4=_0x8301f6['id'],_0x4dfb7d=_0x38c4c6?'insertion:'+_0x38c4c6:'insertion',_0x380a5a=this['_setSuggestionData']({'id':_0x30b05c,'type':_0x4dfb7d,'createdAt':new Date(),'authorId':_0x56b0e4,'attributes':_0x4e8e2f});return this['_addSuggestionMarker'](_0x4dfb7d,_0x30b05c,_0x56b0e4,_0x3c586d),_0x380a5a;}['markMultiRangeInsertion'](_0x8286c8,_0x172383='multi',_0xb18b94={}){const _0x5cdbf0=this['editor']['plugins']['get']('Users')['me'],_0x1a3fad=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x172383,'join');for(const _0x2f4d9e of this['getSuggestions']())if(_0x2f4d9e['author']['id']==_0x5cdbf0['id']&&'insertion'==_0x2f4d9e['type']&&_0x2f4d9e['subType']==_0x172383&&zt(_0x2f4d9e,_0xb18b94)&&(_0x1a3fad(_0x2f4d9e['getRanges'](),_0x8286c8)||_0x1a3fad(_0x8286c8,_0x2f4d9e['getRanges']()))){for(const _0x10bfac of _0x8286c8)_0x2f4d9e['addRange'](_0x10bfac);return _0x2f4d9e;}for(const {suggestion:_0x476a7c,meta:_0x5a4d61}of this['_findSuggestions'](_0x8286c8,'insertion')){if(!_0x5a4d61['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a4d61['containsRangeInObject'])continue;if(!zt(_0x476a7c,_0xb18b94))continue;let _0x44c987=!0x0;for(const _0x10adce of _0x476a7c['getRanges']())for(const _0x3f38f1 of _0x8286c8)if(!_0x10adce['containsRange'](_0x3f38f1)){_0x44c987=!0x1;break;}if(_0x44c987)return _0x476a7c;}const _0x28e46a=_0x489557(),_0x52f3ae=_0x5cdbf0['id'],_0x264745='insertion:'+_0x172383,_0x878b04=this['_setSuggestionData']({'id':_0x28e46a,'type':_0x264745,'createdAt':new Date(),'authorId':_0x52f3ae,'attributes':_0xb18b94});for(const _0x51ca72 of _0x8286c8)this['_addSuggestionMarker'](_0x264745,_0x28e46a,_0x52f3ae,_0x51ca72,u['getMultiRangeId']());return _0x878b04;}['markInlineFormat'](_0x3382f0,_0x1fa728,_0xe78abf=null,_0x705554={}){if(_0xe78abf=_0xe78abf||Gt(_0x1fa728),_0x3382f0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5592c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe78abf,'accept');return this['forceDefaultExecution'](()=>_0x5592c2([_0x3382f0],_0x1fa728,_0x705554)),null;}const _0x328ed9=this['editor']['plugins']['get']('Users')['me'],_0x27b761=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x19b5de,meta:_0x48d994}of this['_findSuggestions'](_0x3382f0,'insertion'))_0x48d994['isOwn']&&!_0x48d994['isInsideObject']&&_0x27b761['push'](..._0x19b5de['getRanges']());}const _0xc729f6=function(_0x43c86b,_0x374485){const _0x5bc7f5=[];for(const _0x5a2984 of _0x374485){const _0x26fa47=_0x43c86b['getIntersection'](_0x5a2984);_0x26fa47&&_0x5bc7f5['push'](_0x26fa47);}return _0x5bc7f5;}(_0x3382f0,_0x27b761),_0x411242=function(_0x740678,_0x5eadd7){const _0x3ddd14=[_0x740678];for(const _0x1431af of _0x5eadd7){let _0x3b7cd9=0x0;for(;_0x3b7cd9<_0x3ddd14['length'];){const _0x5259a2=_0x3ddd14[_0x3b7cd9]['getDifference'](_0x1431af);_0x3ddd14['splice'](_0x3b7cd9,0x1,..._0x5259a2),_0x3b7cd9+=_0x5259a2['length'];}}return _0x3ddd14;}(_0x3382f0,_0x27b761);_0xc729f6['length']&&this['_model']['change'](()=>{for(const _0x3cc8d6 of _0xc729f6){const _0x60a5f0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe78abf,'accept');this['forceDefaultExecution'](()=>_0x60a5f0([_0x3cc8d6],_0x1fa728,_0x705554));}});for(const _0x3f9c3c of _0x411242){let _0x35261a=null,_0x29c2ac=_0x3f9c3c['start'],_0xfd1160=_0x3f9c3c['end'];for(const {suggestion:_0x42b4bd,meta:_0xc7a179}of this['_findSuggestions'](_0x3f9c3c,'formatInline')){if(!_0xc7a179['isOwn'])continue;if(_0x42b4bd['subType']!=_0xe78abf)continue;if(!zt(_0x42b4bd,_0x705554))continue;const _0x3bd3c0=_0x42b4bd['getFirstRange']();if(_0x3bd3c0['containsRange'](_0x3f9c3c,!0x0))return null;_0x29c2ac=_0x29c2ac['isBefore'](_0x3bd3c0['start'])?_0x29c2ac:_0x3bd3c0['start'],_0xfd1160=_0xfd1160['isAfter'](_0x3bd3c0['end'])?_0xfd1160:_0x3bd3c0['end'],_0x35261a?_0x3bd3c0['start']['isBefore'](_0x35261a['getFirstRange']()['start'])?(_0x35261a['removeMarkers'](),_0x35261a=_0x42b4bd):_0x42b4bd['removeMarkers']():_0x35261a=_0x42b4bd;}const _0x4529f7=this['_model']['createRange'](_0x29c2ac,_0xfd1160);if(_0x35261a)this['_setSuggestionRange'](_0x35261a,_0x4529f7);else{const _0x4ca888=_0x489557(),_0x40382b=_0x328ed9['id'];this['_setSuggestionData']({'id':_0x4ca888,'type':'formatInline:'+_0xe78abf,'data':_0x1fa728,'createdAt':new Date(),'authorId':_0x40382b,'attributes':_0x705554}),this['_addSuggestionMarker']('formatInline:'+_0xe78abf,_0x4ca888,_0x40382b,_0x4529f7);}}return null;}['markBlockFormat'](_0x30afe7,_0x327d68,_0x1b6628=[],_0x22a6fa=null,_0x1fc9e3={}){_0x327d68['formatGroupId']||(_0x327d68['formatGroupId']=_0x327d68['commandName']),_0x327d68['multipleBlocks']=_0x30afe7['is']('range'),_0x22a6fa=_0x22a6fa||Gt(_0x327d68);const _0xc15aa8=_0x1b6628['map'](_0x5ae6ca=>Jt(_0x5ae6ca,this['_model'])),_0x46c4d2=_0x30afe7['is']('range')?_0x30afe7:Jt(_0x30afe7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x36b471=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22a6fa,'accept');return this['forceDefaultExecution'](()=>_0x36b471([_0x46c4d2],_0x327d68,_0x1fc9e3)),null;}_0xc15aa8['push'](_0x46c4d2);let _0x5fd4be=!0x0;for(const _0x8fb20f of _0xc15aa8)if(!this['_rangeIsInLocalUserInsertion'](_0x8fb20f)){_0x5fd4be=!0x1;break;}if(_0x5fd4be&&'always'!==this['_trackFormatChanges']){const _0x1ad317=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22a6fa,'accept');return this['forceDefaultExecution'](()=>_0x1ad317([_0x46c4d2],_0x327d68,_0x1fc9e3)),null;}let _0x5d7351=null,_0x5a1463=_0x46c4d2['start'],_0x43aa08=_0x46c4d2['end'];for(const {suggestion:_0x23b6ad,meta:_0x38d076}of this['_findSuggestions'](_0x46c4d2,'formatBlock')){if(!_0x38d076['isOwn'])continue;if(_0x38d076['isNextTo']||_0x38d076['containsRangeInObject']||_0x38d076['isInsideObject'])continue;if(_0x23b6ad['data']['formatGroupId']!=_0x327d68['formatGroupId'])continue;if(!zt(_0x23b6ad,_0x1fc9e3))continue;const _0x1738bc=_0x23b6ad['getFirstRange']();if(_0x23b6ad['subType']==_0x22a6fa){if(_0x1738bc['containsRange'](_0x46c4d2,!0x0))return null;_0x5a1463=_0x5a1463['isBefore'](_0x1738bc['start'])?_0x5a1463:_0x1738bc['start'],_0x43aa08=_0x43aa08['isAfter'](_0x1738bc['end'])?_0x43aa08:_0x1738bc['end'],_0x5d7351?_0x1738bc['start']['isBefore'](_0x5d7351['getFirstRange']()['start'])?(_0x5d7351['removeMarkers'](),_0x5d7351=_0x23b6ad):_0x23b6ad['removeMarkers']():_0x5d7351=_0x23b6ad;}else{const _0x3eb795=_0x46c4d2['getIntersection'](_0x1738bc);this['_cutOutSuggestionMarker'](_0x23b6ad,_0x3eb795);}}const _0x435fc3=this['editor']['plugins']['get']('Users')['me'],_0x2d2fb6=_0x489557(),_0x359940=_0x435fc3['id'];if(_0x5d7351)return this['_setSuggestionRange'](_0x5d7351,this['_model']['createRange'](_0x5a1463,_0x43aa08)),_0x5d7351;{const _0x315b04=this['_setSuggestionData']({'id':_0x2d2fb6,'type':'formatBlock:'+_0x22a6fa,'data':_0x327d68,'createdAt':new Date(),'authorId':_0x359940,'attributes':_0x1fc9e3});return this['_addSuggestionMarker']('formatBlock:'+_0x22a6fa,_0x2d2fb6,_0x359940,this['_model']['createRange'](_0x5a1463,_0x43aa08)),_0x315b04;}}['markMultiRangeBlockFormat'](_0x4e2880,_0x114b2c,_0x2c39da=[],_0x44c162=null,_0x3367a2={}){_0x114b2c['formatGroupId']||(_0x114b2c['formatGroupId']=_0x114b2c['commandName']);const _0x4bbf27=_0x4e2880[0x0];_0x114b2c['multipleBlocks']=_0x4bbf27['is']('range'),_0x44c162=_0x44c162||Gt(_0x114b2c);const _0x5352ce=_0x2c39da['map'](_0x3c4d68=>Jt(_0x3c4d68,this['_model'])),_0x539567=_0x4bbf27['is']('range')?_0x4e2880:_0x4e2880['map'](_0x3dc16a=>Jt(_0x3dc16a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x37e940=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44c162,'accept');return this['forceDefaultExecution'](()=>_0x37e940(_0x539567,_0x114b2c,_0x3367a2)),null;}_0x5352ce['push'](..._0x539567);let _0x520d5d=!0x0;for(const _0xd6824c of _0x5352ce)if(!this['_rangeIsInLocalUserInsertion'](_0xd6824c)){_0x520d5d=!0x1;break;}if(_0x520d5d&&'always'!==this['_trackFormatChanges']){const _0x381bf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44c162,'accept');return this['forceDefaultExecution'](()=>_0x381bf7(_0x539567,_0x114b2c,_0x3367a2)),null;}const _0x3c3b85=this['editor']['plugins']['get']('Users')['me'];for(const _0x84dab0 of this['getSuggestions']()){if(_0x84dab0['author']['id']!=_0x3c3b85['id'])continue;if('formatBlock'!=_0x84dab0['type']||_0x84dab0['data']['formatGroupId']!=_0x114b2c['formatGroupId'])continue;if(!zt(_0x84dab0,_0x3367a2))continue;const _0x541b50=_0x84dab0['subType']==_0x44c162;for(let _0x297b90=0x0;_0x297b90<_0x539567['length'];_0x297b90++){const _0x36e98c=_0x539567[_0x297b90];for(const _0x4c7eea of _0x84dab0['getMarkers']()){const _0x1b25bc=_0x4c7eea['getRange']();if(_0x36e98c['isEqual'](_0x1b25bc)){_0x541b50?(_0x539567['splice'](_0x297b90,0x1),_0x297b90--):_0x84dab0['removeMarker'](_0x4c7eea['name']);break;}}}}if(0x0==_0x539567['length'])return null;const _0x44dc74=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44c162,'join');for(const _0x179e40 of this['getSuggestions']())if(_0x179e40['author']['id']==_0x3c3b85['id']&&'formatBlock'==_0x179e40['type']&&_0x179e40['data']['formatGroupId']==_0x114b2c['formatGroupId']&&_0x179e40['subType']==_0x44c162&&zt(_0x179e40,_0x3367a2)&&(_0x44dc74(_0x179e40['getRanges'](),_0x539567)||_0x44dc74(_0x539567,_0x179e40['getRanges']()))){for(const _0x2dd86b of _0x539567)_0x179e40['addRange'](_0x2dd86b);return _0x179e40;}const _0x5cd48d=_0x489557(),_0x13a000=_0x3c3b85['id'],_0x260dc5='formatBlock:'+_0x44c162,_0x374d82=this['_setSuggestionData']({'id':_0x5cd48d,'type':_0x260dc5,'data':_0x114b2c,'createdAt':new Date(),'authorId':_0x13a000,'attributes':_0x3367a2});for(const _0x368842 of _0x539567)this['_addSuggestionMarker'](_0x260dc5,_0x5cd48d,_0x13a000,_0x368842,u['getMultiRangeId']());return _0x374d82;}['markDeletion'](_0xc7d4dd,_0x2a8e2b=null,_0x5561a1={}){if(_0xc7d4dd['isCollapsed'])return null;const _0x1734e9=this['editor']['plugins']['get']('Users')['me'],_0x12a164=new _0x3f97db(_0xc7d4dd['start'],_0xc7d4dd['end']);for(const {suggestion:_0x45cadb,meta:_0xf3359a}of this['_findSuggestions'](_0x12a164,'insertion'))if(_0xf3359a['isOwn']&&!_0xf3359a['isNextTo']){if(_0x45cadb['isMultiRange']){const _0x38964d=_0x45cadb['getRanges']()['filter'](_0x211ba4=>'$graveyard'!=_0x211ba4['root']['rootName']);_0x38964d['every'](_0x5dcb63=>_0x12a164['containsRange'](_0x5dcb63,!0x0))&&_0x45cadb['discard']();if(_0x38964d['some'](_0x496ca9=>_0x496ca9['containsRange'](_0x12a164,!0x0))){const _0x1e77ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a8e2b,'accept');return this['forceDefaultExecution'](()=>_0x1e77ee([_0x12a164],null,_0x5561a1)),null;}}else{const _0x2449ff=_0x12a164['getIntersection'](_0x45cadb['getFirstRange']());null!==_0x2449ff&&_0x45cadb['_onDiscard']([_0x2449ff],null,_0x5561a1);}}if(_0x12a164['detach'](),_0x12a164['isCollapsed']||'$graveyard'==_0x12a164['root']['rootName'])return null;let _0x23aa2c=null,_0x56fa9e=_0x12a164['start'],_0x428d60=_0x12a164['end'];const _0x2e7633=this['_findSuggestions'](_0x12a164,'deletion');for(const {suggestion:_0x5e9ae7,meta:_0x54d768}of _0x2e7633){const _0xb51930=this['_model']['createRange'](_0x56fa9e,_0x428d60);if(_0x54d768['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54d768['containsRangeInObject']&&!_0x54d768['isInsideObject'])){if(_0x5e9ae7['isMultiRange']){if(!zt(_0x5e9ae7,_0x5561a1))continue;let _0x10b676=!0x0;for(const _0x59b72a of _0x5e9ae7['getRanges']()){if(_0x59b72a['containsRange'](_0xb51930,!0x0))return _0x5e9ae7;_0xb51930['containsRange'](_0x59b72a)||(_0x10b676=!0x1);}_0x10b676&&_0x5e9ae7['discard']();}else{const _0x2ff294=_0x5e9ae7['getFirstRange']();if(_0x2ff294['containsRange'](_0xb51930,!0x0))return _0x5e9ae7;if(!zt(_0x5e9ae7,_0x5561a1)){_0xb51930['containsRange'](_0x2ff294)?_0x5e9ae7['removeMarkers']():_0x2ff294['containsPosition'](_0x56fa9e)?_0x56fa9e=_0x2ff294['end']:_0x2ff294['containsPosition'](_0x428d60)&&(_0x428d60=_0x2ff294['start']);continue;}_0x56fa9e=_0x56fa9e['isBefore'](_0x2ff294['start'])?_0x56fa9e:_0x2ff294['start'],_0x428d60=_0x428d60['isAfter'](_0x2ff294['end'])?_0x428d60:_0x2ff294['end'],_0x5561a1=Object['assign']({},_0x5e9ae7['attributes']),_0x23aa2c?_0x2ff294['start']['isBefore'](_0x23aa2c['getFirstRange']()['start'])?(_0x23aa2c['removeMarkers'](),_0x23aa2c=_0x5e9ae7):_0x5e9ae7['removeMarkers']():_0x23aa2c=_0x5e9ae7;}}}if(_0x23aa2c)return this['_setSuggestionRange'](_0x23aa2c,this['_model']['createRange'](_0x56fa9e,_0x428d60)),_0x23aa2c;{const _0x50793e=_0x489557(),_0x3f7689=this['_model']['createRange'](_0x56fa9e,_0x428d60),_0x2983fd=_0x1734e9['id'],_0x4f0e68=_0x2a8e2b?'deletion:'+_0x2a8e2b:'deletion',_0x533c68=this['_setSuggestionData']({'id':_0x50793e,'type':_0x4f0e68,'createdAt':new Date(),'authorId':_0x2983fd,'attributes':_0x5561a1});return this['_addSuggestionMarker'](_0x4f0e68,_0x50793e,_0x2983fd,_0x3f7689),_0x533c68;}}['markMultiRangeDeletion'](_0x53b550,_0x142f24='multi',_0x3b6098={}){const _0x147f48=this['editor']['plugins']['get']('Users')['me'],_0x2e93b2=_0x53b550['map'](_0x4bcb81=>new _0x3f97db(_0x4bcb81['start'],_0x4bcb81['end'])),_0x5ea9f5=new Set();for(const {suggestion:_0x501f93,meta:_0x15dd7b}of this['_findSuggestions'](_0x2e93b2,'insertion'))_0x15dd7b['isOwn']&&!_0x15dd7b['isNextTo']&&_0x5ea9f5['add'](_0x501f93);for(const _0x60fdc2 of _0x5ea9f5)if(_0x60fdc2['isMultiRange']){const _0x33b47e=_0x60fdc2['getRanges']();(!_0x60fdc2['attributes']||!_0x60fdc2['attributes']['skipNestingCheck'])&&(_0x33b47e['every'](_0x511a1f=>_0x2e93b2['some'](_0x57ee99=>_0x57ee99['containsRange'](_0x511a1f,!0x0)))&&_0x60fdc2['discard']());if(_0x2e93b2['every'](_0x4dcdbe=>_0x33b47e['some'](_0x265b88=>_0x265b88['containsRange'](_0x4dcdbe,!0x0)))){const _0xfec7b5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x142f24,'accept');return this['forceDefaultExecution'](()=>_0xfec7b5(_0x53b550,null,_0x3b6098)),null;}}else{const _0x129953=_0x60fdc2['getFirstRange']();_0x2e93b2['some'](_0x7c2877=>_0x7c2877['containsRange'](_0x129953,!0x0))&&_0x60fdc2['discard']();if(_0x2e93b2['every'](_0x20d28c=>_0x129953['containsRange'](_0x20d28c,!0x0))){const _0x4fdd15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x142f24,'accept');return this['forceDefaultExecution'](()=>_0x4fdd15(_0x2e93b2,null,_0x3b6098)),null;}}const _0x324b42=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x142f24,'join');let _0x17b555=null;for(const _0x43b92d of this['getSuggestions']())if(_0x43b92d['author']['id']==_0x147f48['id']&&_0x43b92d['isInContent']&&'deletion'==_0x43b92d['type']&&_0x43b92d['subType']==_0x142f24&&zt(_0x43b92d,_0x3b6098)&&(_0x324b42(_0x43b92d['getRanges'](),_0x2e93b2)||_0x324b42(_0x2e93b2,_0x43b92d['getRanges']()))){if(_0x17b555){if(_0x43b92d['commentThread']&&_0x43b92d['commentThread']['length'])continue;for(const _0x137224 of _0x43b92d['getRanges']())_0x17b555['isIntersectingWithRange'](_0x137224)||_0x17b555['addRange'](_0x137224);_0x43b92d['removeMarkers']();}else{_0x17b555=_0x43b92d;for(const _0x470e09 of _0x2e93b2)_0x43b92d['isIntersectingWithRange'](_0x470e09)||_0x43b92d['addRange'](_0x470e09);}}if(_0x17b555)return _0x17b555;_0x5ea9f5['clear']();for(const {suggestion:_0x500410,meta:_0x560d4f}of this['_findSuggestions'](_0x2e93b2,'deletion'))_0x560d4f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x560d4f['containsRangeInObject']&&!_0x560d4f['isInsideObject'])&&zt(_0x500410,_0x3b6098)&&_0x5ea9f5['add'](_0x500410);for(const _0x470750 of _0x5ea9f5){const _0x421b4e=_0x470750['getRanges']();if(!_0x3b6098||!_0x3b6098['skipNestingCheck']){if(_0x2e93b2['every'](_0x3b34a8=>_0x421b4e['some'](_0x1d4277=>_0x1d4277['containsRange'](_0x3b34a8,!0x0))))return _0x470750;}(!_0x470750['attributes']||!_0x470750['attributes']['skipNestingCheck'])&&(_0x421b4e['every'](_0x23c671=>_0x2e93b2['some'](_0x320d63=>_0x320d63['containsRange'](_0x23c671,!0x0)))&&_0x470750['discard']());}const _0x3125fe=_0x489557(),_0x51fdf6=_0x147f48['id'],_0x546c86='deletion:'+_0x142f24,_0x2243cd=this['_setSuggestionData']({'id':_0x3125fe,'type':_0x546c86,'createdAt':new Date(),'authorId':_0x51fdf6,'attributes':_0x3b6098});for(const _0x236a3c of _0x2e93b2)_0x236a3c['detach'](),_0x236a3c['isCollapsed']||'$graveyard'==_0x236a3c['root']['rootName']||this['_addSuggestionMarker'](_0x546c86,_0x3125fe,_0x51fdf6,_0x236a3c,u['getMultiRangeId']());return _0x2243cd;}['markAttributeChange'](_0x5115c5,_0x3527b2,_0x153f30,_0x31f213,_0x2eb20a){if(_0x5115c5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x22aa3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x1adceb=Array['from'](this['_suggestions']['values']())['filter'](_0x4cbb86=>'attribute'==_0x4cbb86['type']&&_0x4cbb86['data']['key']==_0x3527b2&&_0x4cbb86['isIntersectingWithRange'](_0x5115c5));if('default'===this['_trackFormatChanges']){const _0x314541=this['_findSuggestions'](_0x5115c5,'insertion')['filter'](({meta:_0x6fc747})=>_0x6fc747['isOwn']&&!_0x6fc747['isInsideObject']&&!_0x6fc747['isNextTo'])['map'](({suggestion:_0x579dcb})=>_0x579dcb);_0x1adceb['unshift'](..._0x314541);}const _0x513469=new Map([[_0x5115c5,_0x153f30]]);for(const _0xbe3986 of _0x1adceb){const _0x1f4ad2='attribute'==_0xbe3986['type']?_0xbe3986['data']['oldValue']:void 0x0,_0x43c2b7=_0xbe3986['getFirstRange'](),_0x47e0d9=Array['from'](_0x513469['keys']())['find'](_0x4a39fb=>_0x4a39fb['isIntersecting'](_0x43c2b7));if(!_0x47e0d9)continue;const _0x529bb7=_0x47e0d9['getDifference'](_0x43c2b7);this['_isBlockAttribute'](_0x3527b2)&&'insertion'==_0xbe3986['type']&&0x0!=_0x529bb7['length']||(_0x513469['delete'](_0x47e0d9),_0x529bb7['forEach'](_0x17e35f=>{_0x513469['set'](_0x17e35f,_0x153f30);}),'insertion'!=_0xbe3986['type']&&_0x1f4ad2!=_0x31f213&&_0x513469['set'](_0x47e0d9['getIntersection'](_0x43c2b7),_0x1f4ad2));}const _0x4df1be=[];for(const [_0x5265ca,_0x5da852]of _0x513469){const _0x57e1f4=_0x489557(),_0x3923f4={'key':_0x3527b2,'oldValue':_0x5da852,'newValue':_0x31f213};_0x3527b2['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':_0x3527b2});const _0x2ac618=('attribute:'+(_0x3527b2+'|'+Gt({'newValue':_0x31f213})))['substring'](0x0,0x3c),_0x3026d6=this['_setSuggestionData']({'id':_0x57e1f4,'type':_0x2ac618,'data':_0x3923f4,'createdAt':new Date(),'authorId':_0x22aa3c,'attributes':_0x2eb20a});_0x4df1be['push'](_0x3026d6),this['_addSuggestionMarker'](_0x2ac618,_0x57e1f4,_0x22aa3c,_0x5265ca);}return _0x4df1be;}['enableDefaultAttributesIntegration'](_0x2fbdde){this['enableCommand'](_0x2fbdde,(_0x3ef51f,..._0x24c6c2)=>{this['_recordAttributeChanges'](()=>{_0x3ef51f(..._0x24c6c2);});});}['registerBlockAttribute'](_0x46d69f){this['_blockAttributeKeys']['add'](_0x46d69f);}['registerInlineAttribute'](_0x266f4d){this['_inlineAttributeKeys']['add'](_0x266f4d);}['_getAttributeKey'](_0x1fc8e9){return'attribute'==_0x1fc8e9['type']?_0x1fc8e9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x10efa0,_0x2c8c4f){const _0x14b75c=_0x10efa0['getFirstMarker']();this['_model']['change'](_0x4f0167=>{_0x4f0167['updateMarker'](_0x14b75c,{'range':_0x2c8c4f});});}['_addThreadToSuggestion'](_0x98d941){const _0x3671c9=_0x98d941['id'],_0x2f3f04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3671c9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f3f04,'threadId':_0x3671c9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5d7793=this['_commentsRepository']['getCommentThread'](_0x3671c9);_0x5d7793['unbind']('isRemovable'),_0x5d7793['isRemovable']=!0x1,_0x98d941['commentThread']=_0x5d7793;}['_checkSuggestionCorrectness'](_0x327854,_0x30ec75,_0x2ff0c3,_0x15aa55){if(_0x327854['type']!=_0x30ec75||_0x327854['subType']!=_0x2ff0c3||_0x327854['creator']['id']!=_0x15aa55)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x104227('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47d0ac,_0x2d44f8){const _0x50e116=_0x47d0ac['getFirstRange']();if(_0x2d44f8['isEqual'](_0x50e116))_0x47d0ac['removeMarkers']();else{if(_0x50e116['containsRange'](_0x2d44f8)){const _0x6a8f7b=this['_model']['createPositionAt'](_0x2d44f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47d0ac,this['_model']['createRange'](_0x50e116['start'],_0x6a8f7b));const _0x20a2ae=_0x489557(),_0x1b02b8=_0x47d0ac['creator']['id'],_0x24c4f8=_0x47d0ac['type']+':'+_0x47d0ac['subType'];this['_setSuggestionData']({'id':_0x20a2ae,'type':_0x24c4f8,'createdAt':new Date(),'authorId':_0x1b02b8,'data':_0x47d0ac['data'],'attributes':_0x47d0ac['attributes']});const _0x50b2ae=this['_model']['createPositionAt'](_0x2d44f8['end']['parent'],'after'),_0x509701=this['_model']['createRange'](_0x50b2ae,_0x50e116['end']);this['_addSuggestionMarker'](_0x24c4f8,_0x20a2ae,_0x1b02b8,_0x509701);}else{if(_0x50e116['containsPosition'](_0x2d44f8['start'])){const _0x38978d=this['_model']['createPositionAt'](_0x2d44f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47d0ac,this['_model']['createRange'](_0x50e116['start'],_0x38978d));}else{const _0x542ee2=this['_model']['createPositionAt'](_0x2d44f8['end']['parent'],'after');this['_setSuggestionRange'](_0x47d0ac,this['_model']['createRange'](_0x542ee2,_0x50e116['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x20fcec){for(const {suggestion:_0x39d75e,meta:_0x59fe45}of this['_findSuggestions'](_0x20fcec,'insertion')){if(!_0x59fe45['isOwn'])continue;const _0x1de3ff=_0x39d75e['getRanges']();for(const _0x37da87 of _0x1de3ff)if(!_0x20fcec['getDifference'](_0x37da87)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3fdcd9){const _0x2d3fe0=this['editor']['plugins']['get']('Users')['getUser'](_0x3fdcd9);if(!_0x2d3fe0)throw new _0x104227('track-changes-user-not-found',this);return _0x2d3fe0;}['_getExternalAuthor'](_0x17d0c5){const _0x4ebcbf=this['editor']['plugins']['get']('Users'),_0x37dbf0=_0x512500('external:'+_0x17d0c5),_0x6dec6d=_0x4ebcbf['getUser'](_0x37dbf0);return _0x6dec6d||_0x4ebcbf['addUser']({'id':_0x37dbf0,'name':_0x17d0c5});}['_createSuggestion'](_0x4bd219,_0x571fb4,_0x2b5ef7,_0x37ea6c,_0x1ee784){const _0x8239f=this['_getAuthorFromId'](_0x37ea6c),_0x1205ed=this['_suggestionFactory']['buildSuggestion'](_0x4bd219,_0x571fb4,_0x2b5ef7,_0x8239f,_0x1ee784,_0x5967c9=>{this['_updateSuggestionData'](_0x2b5ef7,{'attributes':_0x5967c9});const _0x51b4c9=this['getSuggestion'](_0x2b5ef7);this['_joinWithAdjacentSuggestions'](new Set([_0x51b4c9])),this['_refreshSuggestionsChain'](new Set([_0x51b4c9]));});return this['listenTo'](_0x1205ed,'accept',()=>{this['_updateSuggestionData'](_0x2b5ef7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1205ed,'discard',()=>{this['_updateSuggestionData'](_0x2b5ef7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b5ef7,_0x1205ed),this['_suggestionState']['set'](_0x1205ed,'notReady'),_0x1205ed;}['_splitMarkerName'](_0x4a3868){const _0x557051=_0x4a3868['split'](':');return{'group':_0x557051[0x0],'type':_0x557051[0x1],'subType':_0x557051['length']>=0x5?_0x557051[0x2]:null,'id':_0x557051['length']<0x5?_0x557051[0x2]:_0x557051[0x3],'authorId':_0x557051['length']<0x5?_0x557051[0x3]:_0x557051[0x4],'markerCount':0x6==_0x557051['length']?_0x557051[0x5]:null};}['_breakSuggestionMarker'](_0x55cdf9,_0x161497,_0x317ca5){const _0x148481=_0x55cdf9['getFirstRange'](),_0xfccaf4=_0x148481['start'],_0x472020=_0x148481['end'];this['_setSuggestionRange'](_0x55cdf9,this['_model']['createRange'](_0xfccaf4,_0x161497));const _0x28af20=_0x489557(),_0x4ca5c4=_0x55cdf9['creator']['id'],_0x423b03=_0x55cdf9['type']+(_0x55cdf9['subType']?':'+_0x55cdf9['subType']:'');this['_setSuggestionData']({'id':_0x28af20,'type':_0x423b03,'createdAt':new Date(),'authorId':_0x4ca5c4,'originalSuggestionId':_0x55cdf9['id'],'attributes':_0x55cdf9['attributes'],'data':_0x55cdf9['data']});const _0x96954a=this['_getAttributeKey'](_0x55cdf9);('formatBlock'==_0x55cdf9['type']||_0x96954a&&this['_isBlockAttribute'](_0x96954a))&&(_0x317ca5=this['_model']['createPositionBefore'](_0x317ca5['parent'])),this['_addSuggestionMarker'](_0x423b03,_0x28af20,_0x4ca5c4,this['_model']['createRange'](_0x317ca5,_0x472020));}['_findSuggestions'](_0x4dc0ca,_0x5037b9=null){const _0x4c8c52=[],_0x2a9b64=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4dc0ca)||(_0x4dc0ca=[_0x4dc0ca]);for(const _0x53e19f of this['getSuggestions']()){if(!_0x53e19f['isInContent'])continue;if(_0x5037b9&&_0x53e19f['type']!=_0x5037b9)continue;let _0x32b9a5=!0x1;for(const _0x784bc9 of _0x53e19f['getRanges']()){for(const _0x5b05bd of _0x4dc0ca){const _0x30cb0c=_0x5b05bd['start']['isEqual'](_0x784bc9['end'])||_0x5b05bd['end']['isEqual'](_0x784bc9['start']);if(_0x30cb0c||_0x5b05bd['getIntersection'](_0x784bc9)){const _0xf8d353=_0x5b05bd['containsRange'](_0x784bc9)&&Ut(this['_model']['schema'],_0x784bc9['start'],_0x5b05bd),_0x2a0d3a=_0x784bc9['containsRange'](_0x5b05bd)&&Ut(this['_model']['schema'],_0x5b05bd['start'],_0x784bc9);_0x4c8c52['push']({'suggestion':_0x53e19f,'meta':{'isOwn':_0x2a9b64==_0x53e19f['author'],'isNextTo':_0x30cb0c,'isInsideObject':_0xf8d353,'containsRangeInObject':_0x2a0d3a}}),_0x32b9a5=!0x0;break;}}if(_0x32b9a5)break;}}return _0x4c8c52;}['_addSuggestionMarker'](_0x518470,_0x53991d,_0x15ac4e,_0x20a17d,_0x276866){this['_model']['change'](_0x4cc3c4=>{let _0x34a654='suggestion:'+_0x518470+':'+_0x53991d+':'+_0x15ac4e;_0x276866&&(_0x34a654=_0x34a654+':'+_0x276866),_0x4cc3c4['addMarker'](_0x34a654,{'range':_0x20a17d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x19b448){const _0x154800=_0x19b448['previous'],_0x9998db=_0x19b448['next'];_0x19b448['previous']=null,_0x19b448['next']=null,null!=_0x154800&&_0x154800['next']==_0x19b448&&(_0x154800['next']=_0x9998db),null!=_0x9998db&&_0x9998db['previous']==_0x19b448&&(_0x9998db['previous']=_0x154800),'ready'==this['_suggestionState']['get'](_0x19b448)&&(this['_suggestionState']['set'](_0x19b448,'removed'),this['fire']('suggestionUnloaded',_0x19b448,_0x154800,_0x9998db));}['_setSuggestionData'](_0x49e6c0){const _0x1a289c=_0x49e6c0['id'],_0x3a46cd=this['addSuggestionData'](_0x49e6c0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1074c7=this['editor']['plugins']['get']('PendingActions'),_0x67cfcb=_0x3a46cd['hasComments'],_0xcc811f=_0x3a46cd['subType']?_0x3a46cd['type']+':'+_0x3a46cd['subType']:_0x3a46cd['type'],_0x3ff206=this['editor']['locale'],_0x2dd1b1=_0x1074c7['add'](o(_0x3ff206,'PENDING_ACTION_SUGGESTION')),_0x320b09={'id':_0x1a289c,'type':_0xcc811f,'hasComments':_0x67cfcb,'data':_0x49e6c0['data']||null,'originalSuggestionId':_0x49e6c0['originalSuggestionId']||null,'attributes':_0x3a46cd['attributes']};this['_adapter']['addSuggestion'](_0x320b09)['then'](_0x3603af=>{_0x3a46cd['_saved']=!0x0,_0x1074c7['remove'](_0x2dd1b1),_0x3603af&&_0x3603af['createdAt']&&(this['_suggestions']['get'](_0x1a289c)['createdAt']=_0x3603af['createdAt']);})['catch'](_0x378e80=>{throw _0x2285b4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a46cd['discard']();}),_0x3a46cd['stopListening'](),this['_suggestions']['delete'](_0x3a46cd['id']),this['_suggestionState']['delete'](_0x3a46cd),_0x378e80;});}return _0x3a46cd;}['_isBlockAttribute'](_0x3eb068){return this['_blockAttributeKeys']['has'](_0x3eb068);}['_updateSuggestionData'](_0x2285f3,_0x9bc9cb){const _0x21c03b=this['editor']['plugins']['get']('PendingActions'),_0x46cf0e=this['getSuggestion'](_0x2285f3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x46cf0e['_saved']){const _0x4ac72e=_0x21c03b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2285f3,_0x9bc9cb)['then'](()=>{_0x21c03b['remove'](_0x4ac72e);});}else _0x46cf0e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2285f3,_0x9bc9cb);});}}['_getSuggestionData'](_0x40fc4f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x104227('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x40fc4f);}['_handleNewSuggestionMarker'](_0x2c0487){const {id:_0x2a42eb,type:_0x48a765,subType:_0x2b6348,authorId:_0x41ce15}=this['_splitMarkerName'](_0x2c0487),_0xd516af=this['_suggestions']['get'](_0x2a42eb)||this['_createSuggestion'](_0x48a765,_0x2b6348,_0x2a42eb,_0x41ce15,{});switch(this['_checkSuggestionCorrectness'](_0xd516af,_0x48a765,_0x2b6348,_0x41ce15),this['_suggestionState']['get'](_0xd516af)){case'notReady':this['_getSuggestionData'](_0x2a42eb)['then'](_0x4fb8b5=>{let _0x49b01b=Promise['resolve']();_0x4fb8b5['hasComments']&&(_0x49b01b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a42eb})),_0x49b01b['then'](()=>{this['addSuggestionData'](_0x4fb8b5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xd516af,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a42eb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xd516af,'ready'),this['fire']('suggestionLoaded',_0xd516af);break;case'ready':this['fire']('suggestionChanged',_0xd516af);}return _0xd516af['addMarkerName'](_0x2c0487),_0xd516af;}['_refreshSuggestionsChain'](_0x8d87bd){const _0x84a50b=Array['from'](_0x8d87bd),_0x435705=_0x84a50b['filter'](_0x43779c=>'attribute'==_0x43779c['type']);this['_refreshAttributeSuggestionsChain'](_0x435705);const _0x1509ee=_0x84a50b['filter'](_0xa3fc81=>!_0xa3fc81['isMultiRange']&&'attribute'!=_0xa3fc81['type']),_0x22a3d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x135306=>!_0x135306['isMultiRange']&&'attribute'!=_0x135306['type']),_0x7cb614=_0x22a3d1['filter'](_0x4396c7=>!_0x8d87bd['has'](_0x4396c7)),_0xdfb6a1=new Map(_0x22a3d1['map'](_0x39bd4f=>[_0x39bd4f,this['_suggestionFactory']['getSuggestionCallback'](_0x39bd4f['type'],_0x39bd4f['subType'],'chain')])),_0x137f7a=new Map(_0x22a3d1['map'](_0x539b06=>[_0x539b06,_0x539b06['getFirstRange']()])),_0x14e04c=new Set(),_0x4e8d9d=new Set();for(let _0x2d11ee=0x0;_0x2d11ee<_0x1509ee['length'];_0x2d11ee++)_0x4a566e(_0x1509ee[_0x2d11ee],_0x1509ee,_0x2d11ee+0x1);for(let _0xca017=0x0;_0xca017<_0x1509ee['length'];_0xca017++)_0x4a566e(_0x1509ee[_0xca017],_0x7cb614,0x0);const _0x38715f=new Set();for(let _0x4e37ce=0x0;_0x4e37ce<_0x1509ee['length'];_0x4e37ce++){const _0x25ed16=_0x1509ee[_0x4e37ce];!_0x4e8d9d['has'](_0x25ed16)&&_0x25ed16['previous']&&(_0x38715f['add'](_0x25ed16['previous']),_0x25ed16['previous']['next']===_0x25ed16&&(_0x25ed16['previous']['next']=null),_0x25ed16['previous']=null),!_0x14e04c['has'](_0x25ed16)&&_0x25ed16['next']&&(_0x38715f['add'](_0x25ed16['next']),_0x25ed16['next']['previous']===_0x25ed16&&(_0x25ed16['next']['previous']=null),_0x25ed16['next']=null);}function _0x4a566e(_0x2d5752,_0x52bc46,_0x5bc328){for(let _0xaad180=_0x5bc328;_0xaad180<_0x52bc46['length'];_0xaad180++){const _0x2417f6=_0x575d2d(_0x2d5752,_0x52bc46[_0xaad180]);_0x2417f6&&(_0x2417f6[0x0]['next']=_0x2417f6[0x1],_0x2417f6[0x1]['previous']=_0x2417f6[0x0],_0x14e04c['add'](_0x2417f6[0x0]),_0x4e8d9d['add'](_0x2417f6[0x1]));}}function _0x575d2d(_0xb117ee,_0x53a187){if(_0xb117ee['author']['id']!==_0x53a187['author']['id'])return null;const _0x529a32=_0xdfb6a1['get'](_0xb117ee)(_0xb117ee,_0x53a187,_0x137f7a['get'](_0xb117ee),_0x137f7a['get'](_0x53a187));if(!_0x529a32)return null;return _0xdfb6a1['get'](_0x53a187)(_0xb117ee,_0x53a187,_0x137f7a['get'](_0xb117ee),_0x137f7a['get'](_0x53a187))?_0x529a32[0x1]['commentThread']&&_0x529a32[0x1]['commentThread']['length']?null:_0x529a32:null;}_0x38715f['size']&&this['_refreshSuggestionsChain'](_0x38715f);}['_refreshAttributeSuggestionsChain'](_0x24ecbb){if(0x0==_0x24ecbb['length'])return;const _0x5d3fb8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14daa1=>'attribute'==_0x14daa1['type']&&_0x14daa1['_isDataLoaded']),_0x7bcf6e=[],_0x43658a=new Map();for(const _0x5416e9 of _0x5d3fb8){const _0x34ab1b=_0x512500(_0x5416e9['attributes']);_0x43658a['has'](_0x34ab1b)||(_0x43658a['set'](_0x34ab1b,_0x7bcf6e['length']),_0x7bcf6e['push']([]));const _0x33bb95=_0x43658a['get'](_0x34ab1b);_0x7bcf6e[_0x33bb95]['push'](_0x5416e9);}!(function(){_0x7bcf6e['sort']((_0x154cb1,_0x67033f)=>{const _0x1ecfb3=_0x154cb1[0x0]['createdAt'],_0xed3dd6=_0x67033f[0x0]['createdAt'];return _0x1ecfb3==_0xed3dd6?_0x154cb1[0x0]['attributes']['groupId']<_0x67033f[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ecfb3<_0xed3dd6?-0x1:0x1;});for(const _0x15d880 of _0x7bcf6e)_0x15d880['sort']((_0x2c1333,_0x11aa73)=>_0x2c1333['id']<_0x11aa73['id']?-0x1:0x1);}());for(let _0xc41d46=0x0;_0xc41d46<_0x7bcf6e['length'];_0xc41d46++){if(0x0==_0x7bcf6e[_0xc41d46]['length'])continue;const _0x26def0=[];for(let _0x284ebe=_0xc41d46+0x1;_0x284ebe<_0x7bcf6e['length'];_0x284ebe++)0x0!=_0x7bcf6e[_0x284ebe]['length']&&_0x27c54a(_0x7bcf6e[_0xc41d46],_0x7bcf6e[_0x284ebe])&&_0x26def0['push'](_0x284ebe);for(const _0x2e74da of _0x26def0)_0x7bcf6e[_0xc41d46]=_0x7bcf6e[_0xc41d46]['concat'](_0x7bcf6e[_0x2e74da]),_0x7bcf6e[_0x2e74da]=[];}for(const _0x5d6028 of _0x7bcf6e)for(let _0x4c8960=0x0;_0x4c8960<_0x5d6028['length'];_0x4c8960++){const _0x4a286b=_0x5d6028[_0x4c8960+0x1]||null;_0x5d6028[_0x4c8960]['next']!==_0x4a286b&&(_0x5d6028[_0x4c8960]['next']=_0x4a286b);}for(const _0x1333f3 of _0x7bcf6e)for(let _0x57b30d=0x0;_0x57b30d<_0x1333f3['length'];_0x57b30d++){const _0x47903a=_0x1333f3[_0x57b30d-0x1]||null;_0x1333f3[_0x57b30d]['previous']!==_0x47903a&&(_0x1333f3[_0x57b30d]['previous']=_0x47903a);}function _0x27c54a(_0x4e7d54,_0x5c5efc){if(_0x4e7d54[0x0]['attributes']['groupId']!==_0x5c5efc[0x0]['attributes']['groupId']&&_0x4e7d54[0x0]['author']!==_0x5c5efc[0x0]['author'])return!0x1;if(!function(_0x1f074c,_0x17dd05){if(!_0x1f074c['hasComments']&&!_0x17dd05['hasComments'])return!0x0;if(_0x1f074c['hasComments']&&_0x17dd05['hasComments'])return!0x1;if(_0x1f074c['hasComments']&&_0x17dd05['createdAt']<_0x1f074c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x17dd05['hasComments']&&_0x1f074c['createdAt']<_0x17dd05['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e7d54[0x0],_0x5c5efc[0x0]))return!0x1;const _0x4713ed=xt(_0x4e7d54[0x0]['attributes'],'groupId'),_0x4406b2=xt(_0x5c5efc[0x0]['attributes'],'groupId');if(!_0x12e9c7(_0x4713ed,_0x4406b2))return!0x1;return!!_0x4e7d54['every'](_0x12e60d=>_0x5c5efc['some'](_0x3e3179=>_0x12e60d['getFirstRange']()['isEqual'](_0x3e3179['getFirstRange']())))&&_0x5c5efc['every'](_0x2d9c91=>_0x4e7d54['some'](_0x3e7789=>_0x2d9c91['getFirstRange']()['isEqual'](_0x3e7789['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24dc7e){const _0xd39e8c=Array['from'](_0x24dc7e),_0x2ad67a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x70f90c=_0x2ad67a['filter'](_0x3c9165=>!_0x24dc7e['has'](_0x3c9165)),_0x3b167f=new Map(_0xd39e8c['map'](_0x36ffee=>[_0x36ffee,this['_suggestionFactory']['getSuggestionCallback'](_0x36ffee['type'],_0x36ffee['subType'],'join')])),_0x38d8e8=new Map(_0x2ad67a['map'](_0x12bab5=>[_0x12bab5,_0x12bab5['getRanges']()]));for(let _0x3a032d=0x0;_0x3a032d<_0xd39e8c['length'];_0x3a032d++){if(_0x4c713a(this,_0xd39e8c[_0x3a032d],_0xd39e8c,_0x3a032d+0x1))return!0x0;}for(let _0x3f098b=0x0;_0x3f098b<_0xd39e8c['length'];_0x3f098b++){if(_0x4c713a(this,_0xd39e8c[_0x3f098b],_0x70f90c,0x0))return!0x0;}return!0x1;function _0x4c713a(_0x1e5499,_0x381b4f,_0x4350e5,_0x5e6091){for(let _0xcfd3c8=_0x5e6091;_0xcfd3c8<_0x4350e5['length'];_0xcfd3c8++){const _0x952834=_0x4350e5[_0xcfd3c8];if(_0x952834['type']!==_0x381b4f['type']||_0x952834['author']['id']!==_0x381b4f['author']['id']||_0x952834['subType']!==_0x381b4f['subType'])continue;if(!qt(_0x381b4f,_0x952834))continue;if('attribute'==_0x381b4f['type']&&_0x381b4f['data']['oldValue']!=_0x952834['data']['oldValue'])continue;if('attribute'==_0x381b4f['type']&&_0x1e5499['_isBlockAttribute'](_0x381b4f['data']['key']))continue;if('formatBlock'==_0x381b4f['type']){const _0x12241d=_0x1e5499['editor']['model'],_0x455216=_0x381b4f['getContainedElement']();if(_0x455216&&(_0x12241d['schema']['isObject'](_0x455216)||_0x12241d['schema']['isLimit'](_0x455216)))continue;}const _0x185312=_0x3b167f['get'](_0x381b4f),_0x9c0161=_0x38d8e8['get'](_0x381b4f),_0x24c539=_0x38d8e8['get'](_0x952834),_0x1b0f15=_0x381b4f['commentThread']&&_0x381b4f['commentThread']['length'],_0x1d0f99=_0x952834['commentThread']&&_0x952834['commentThread']['length'];if(!_0x1b0f15&&_0x185312(_0x24c539,_0x9c0161))return _0x1e5499['_joinSuggestions'](_0x952834,_0x381b4f),_0x38d8e8['delete'](_0x381b4f),!0x0;if(!_0x1d0f99&&_0x185312(_0x9c0161,_0x24c539))return _0x1e5499['_joinSuggestions'](_0x381b4f,_0x952834),_0x38d8e8['delete'](_0x952834),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4eaa0c,_0x589b01){if(_0x4eaa0c['isMultiRange']){for(const _0x5738f5 of _0x589b01['getRanges']())_0x4eaa0c['addRange'](_0x5738f5);}else{const _0x20eb34=_0x589b01['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4eaa0c,this['_model']['createRange'](_0x4eaa0c['getFirstRange']()['start'],_0x20eb34));}_0x589b01['removeMarkers']();}['_getMarkerAnnouncementText'](_0x596494,_0x5f1e44,_0x5100d6){const _0x37abfe=_0x596494['startsWith']('format')||_0x596494['startsWith']('attribute')?'FORMATTING':_0x596494['toUpperCase']();return o(this['editor']['locale'],_0x5f1e44+'_'+_0x37abfe+'_SUGGESTION_ANNOUNCEMENT',_0x5100d6);}['_initAriaMarkerChangeAnnouncements'](){const _0x58eff3=this['editor'];if(!_0x58eff3['ui'])return;const {ariaLiveAnnouncer:_0x29c6ea}=_0x58eff3['ui'];_0x8ba165(this['_model'],({left:_0x4ace2e,entered:_0x59e895})=>{for(const _0x2e97d4 of _0x4ace2e){const {group:_0x225a65,type:_0x4c3001}=this['_splitMarkerName'](_0x2e97d4['name']);if('suggestion'===_0x225a65){_0x29c6ea['announce'](this['_getMarkerAnnouncementText'](_0x4c3001,'LEAVE'));break;}}for(const _0x165b75 of _0x59e895){const {group:_0xbd9459,type:_0xd71ead}=this['_splitMarkerName'](_0x165b75['name']);if('suggestion'===_0xbd9459){_0x29c6ea['announce'](this['_getMarkerAnnouncementText'](_0xd71ead,'ENTER',_0x3ef39b(_0x16204c)));break;}}});}['_processAttributeChanges'](_0x14aa45){if(this['_recordAttributeSuggestions'])return!0x1;const _0x86755a=this['editor'],_0x47f5c9=_0x86755a['model']['document']['differ']['getChanges']();if(0x0==_0x47f5c9['length'])return!0x1;const _0x36d084=[],_0x4524f1=_0x47f5c9['filter'](_0x45c564=>'attribute'==_0x45c564['type']),_0x476457=_0x47f5c9['filter'](_0x4d142f=>'insert'==_0x4d142f['type']&&'$text'!=_0x4d142f['name']),_0x4997b6=_0x47f5c9['filter'](_0x440253=>'remove'==_0x440253['type']&&'$text'!=_0x440253['name']);for(const _0x1b3564 of _0x4524f1)_0x36d084['push']({'key':_0x1b3564['attributeKey'],'newValue':_0x1b3564['attributeNewValue'],'oldValue':_0x1b3564['attributeOldValue'],'range':Lt(_0x1b3564['range'],_0x86755a['model'])});for(const _0x186dc5 of _0x476457){const _0x316fe4=_0x4997b6['find'](_0x235a01=>_0x235a01['position']['isEqual'](_0x186dc5['position']));_0x316fe4&&_0x36d084['push']({'key':m,'newValue':_0x186dc5['name'],'oldValue':_0x316fe4['name'],'range':_0x86755a['model']['createRangeOn'](_0x186dc5['position']['nodeAfter'])});}return 0x0!=_0x36d084['length']&&this['_reduceExistingSuggestions'](_0x14aa45,_0x36d084);}['_processAttributeSuggestions'](_0x399fdf){let _0x101f94=!0x1;const _0x40569d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4fc558=>_0x4fc558['data']['newRange']&&_0x4fc558['name']['startsWith']('suggestion:attribute:'));for(const _0x312dae of _0x40569d){const {subType:_0x223ac4,id:_0x4a86ee}=this['_splitMarkerName'](_0x312dae['name']),_0x7ff8e8=_0x223ac4['split']('|')[0x0];for(const _0x57047a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x57047a['id']!=_0x4a86ee&&'attribute'==_0x57047a['type']&&_0x57047a['data']&&_0x57047a['data']['key']==_0x7ff8e8&&_0x57047a['getFirstRange']()['isIntersecting'](_0x312dae['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x57047a,_0x312dae['data']['newRange'],_0x399fdf),_0x101f94=!0x0);}return _0x101f94;}['_recordAttributeChanges'](_0x40a5c0){this['_recordAttributeSuggestions']=!0x0,_0x40a5c0();}['_isRegisteredAttribute'](_0x55d854){const _0x5c6c4c=this['_isBlockAttribute'](_0x55d854),_0x55b672=this['_inlineAttributeKeys']['has'](_0x55d854);return _0x5c6c4c||_0x55b672;}['_reduceExistingSuggestions'](_0x19a7d6,_0xbbc02a){if(0x0==_0xbbc02a['length'])return!0x1;let _0x54e1d9=!0x1;for(const _0x100241 of _0xbbc02a){const _0x35d80c=this['_findSuggestions'](_0x100241['range'],'attribute')['filter'](_0x16c204=>!_0x16c204['meta']['isNextTo'])['map'](_0x2149b2=>_0x2149b2['suggestion']),_0x2de73a=_0x512500({'newValue':_0x100241['newValue']});_0x35d80c['filter'](_0x43fce2=>{const [_0x550e1a,_0x2353e7]=_0x43fce2['subType']['split']('|');return _0x550e1a==_0x100241['key']&&_0x2353e7!=_0x2de73a;})['forEach'](_0x35f5bf=>{this['_reduceSuggestionAttributeRange'](_0x35f5bf,_0x100241['range'],_0x19a7d6),_0x54e1d9=!0x0;});}return _0x54e1d9;}['_reduceSuggestionAttributeRange'](_0x54033e,_0x7836f8,_0x360b23){const _0x39b7e7=_0x54033e['getFirstRange']()['getDifference'](_0x7836f8);0x0!==_0x39b7e7['length']?0x1!==_0x39b7e7['length']?this['_breakSuggestionMarker'](_0x54033e,_0x7836f8['start'],_0x7836f8['end']):this['_setSuggestionRange'](_0x54033e,_0x39b7e7[0x0]):_0x360b23['removeMarker'](_0x54033e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a57e4){this['_editor']=_0x4a57e4,this['_model']=_0x4a57e4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x518c56,_0x27a957,_0x32ca12,_0x4780f0,_0x3150da,_0x5a5dd6){return new u(this['_model'],{'type':_0x518c56,'subType':_0x27a957,'id':_0x32ca12,'author':_0x4780f0,'creator':_0x4780f0,'attributes':_0x3150da,'onAttributesChange':_0x5a5dd6,'onAccept':(..._0x2f297a)=>this['getSuggestionCallback'](_0x518c56,_0x27a957,'accept')(..._0x2f297a),'onDiscard':(..._0x1a206a)=>this['getSuggestionCallback'](_0x518c56,_0x27a957,'discard')(..._0x1a206a)});}['registerCustomCallback'](_0xa29d1e,_0x481b7b,_0x4fccd3,_0x37edfc){const _0x77d9fe=_0xa29d1e+':'+_0x481b7b+':'+_0x4fccd3;this['_customCallbacks']['set'](_0x77d9fe,_0x37edfc);}['getSuggestionCallback'](_0x5ed38b,_0x14af26,_0x2c3e07){const _0x2402b2=_0x5ed38b+':'+_0x14af26+':'+_0x2c3e07;return this['_customCallbacks']['get'](_0x2402b2)||this['_defaultCallbacks']['get'](_0x5ed38b+':'+_0x2c3e07);}['_registerDefaultCallbacks'](){const _0x551de8=()=>!0x1,_0x410f02=_0x94a564=>{_0x94a564['sort']((_0x380c9b,_0x25fbdd)=>_0x380c9b['start']['isBefore'](_0x25fbdd['start'])?0x1:-0x1),this['_model']['change'](_0x2957d4=>{for(const _0x289ee3 of _0x94a564){let _0x2219dc;_0x2219dc=_0x289ee3['end']['isAtEnd']&&_0x289ee3['end']['parent']==_0x289ee3['start']['nodeAfter']?_0x2957d4['createSelection'](_0x289ee3['start']['nodeAfter'],'on'):_0x2957d4['createSelection'](_0x289ee3),this['_model']['deleteContent'](_0x2219dc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4040f9=(_0x2d2c4a,_0x1664da)=>{_0x1664da&&this['_model']['change'](_0x3a38f0=>{const {commandName:_0xa6bbed,commandParams:_0x58d88a=[]}=_0x1664da,_0x11212f=_0x2d2c4a['map'](_0x2bd95c=>(Vt(_0x2bd95c)&&(_0x2bd95c=this['_model']['createRange'](_0x2bd95c['end'])),_0x2bd95c))['filter'](_0x2cd6ca=>'$graveyard'!==_0x2cd6ca['root']['rootName']);if(_0x11212f['length']<0x1)return;const _0x6cbdd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1a6c31=>_0x3f97db['fromRange'](_0x1a6c31));_0x3a38f0['setSelection'](_0x11212f);for(const _0x4586d9 of this['_editor']['commands']['commands']())_0x4586d9['refresh']();_0x58d88a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa6bbed,..._0x58d88a);const _0x2cbde2=_0x6cbdd['filter'](_0x1a89e3=>'$graveyard'!=_0x1a89e3['root']['rootName']);_0x2cbde2['length']>0x0&&_0x3a38f0['setSelection'](_0x2cbde2);for(const _0x23241b of _0x6cbdd)_0x23241b['detach']();});},_0x2595e6=(_0x451d25,_0xc803e6)=>0x1==_0x451d25['length']&&0x1==_0xc803e6['length']&&_0x451d25[0x0]['end']['isEqual'](_0xc803e6[0x0]['start']),_0x5ef4ba=(_0x5c890b,_0x3c3bad,_0x5b937a,_0x476809)=>Ht(_0x5c890b,_0x3c3bad,_0x5b937a,_0x476809)?[_0x5c890b,_0x3c3bad]:Ht(_0x3c3bad,_0x5c890b,_0x476809,_0x5b937a)?[_0x3c3bad,_0x5c890b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x551de8),this['_defaultCallbacks']['set']('insertion:discard',_0x410f02),this['_defaultCallbacks']['set']('insertion:join',_0x2595e6),this['_defaultCallbacks']['set']('insertion:chain',_0x5ef4ba),this['_defaultCallbacks']['set']('deletion:accept',_0x410f02),this['_defaultCallbacks']['set']('deletion:discard',_0x551de8),this['_defaultCallbacks']['set']('deletion:join',_0x2595e6),this['_defaultCallbacks']['set']('deletion:chain',_0x5ef4ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x4040f9),this['_defaultCallbacks']['set']('formatInline:discard',_0x551de8),this['_defaultCallbacks']['set']('formatInline:join',_0x2595e6),this['_defaultCallbacks']['set']('formatInline:chain',_0x551de8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4040f9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x551de8),this['_defaultCallbacks']['set']('formatBlock:join',_0x2595e6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x551de8),this['_defaultCallbacks']['set']('attribute:accept',_0x551de8),this['_defaultCallbacks']['set']('attribute:discard',(_0x453998,_0x55c127)=>{if(!_0x55c127)return;const _0x2465bd=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x191b6d=>{if(_0x55c127['key']==m)for(const _0x2c886c of _0x453998){const _0x176443=_0x2c886c['start']['nodeAfter'],_0x308f0e=_0x55c127['oldValue'];_0x191b6d['rename'](_0x176443,_0x308f0e);}else{if(_0x2465bd['_isBlockAttribute'](_0x55c127['key'])){for(const _0x545014 of _0x453998)void 0x0!==_0x55c127['oldValue']?_0x191b6d['setAttribute'](_0x55c127['key'],_0x55c127['oldValue'],_0x545014['start']['nodeAfter']):_0x191b6d['removeAttribute'](_0x55c127['key'],_0x545014['start']['nodeAfter']);}else{for(const _0x42fb83 of _0x453998)_0x55c127['oldValue']?_0x191b6d['setAttribute'](_0x55c127['key'],_0x55c127['oldValue'],_0x42fb83):_0x191b6d['removeAttribute'](_0x55c127['key'],_0x42fb83);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2595e6);}}function Ut(_0x5be529,_0x438b1b,_0x5cd94d){for(const _0x259c2d of _0x438b1b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x259c2d['root']==_0x259c2d)return!0x1;if(!_0x5cd94d['containsItem'](_0x259c2d))return!0x1;if(_0x5be529['isObject'](_0x259c2d)||_0x5be529['isLimit'](_0x259c2d))return!0x0;}return!0x1;}function Vt(_0xf3233e){return _0xf3233e['end']['parent']==_0xf3233e['start']['nodeAfter']&&_0xf3233e['end']['isAtStart'];}function Pt(_0x76da7f,_0x195e56,_0x3792f6,_0x5d3091){const _0x233b53=_0x42fea3=>!_0x42fea3['item']['is']('$textProxy')&&!_0x5d3091['isObject'](_0x42fea3['item']),_0x4054e6=_0x76da7f['start']['getLastMatchingPosition'](_0x233b53),_0x48035f=_0x76da7f['end']['getLastMatchingPosition'](_0x233b53,{'direction':'backward'});return(!_0x76da7f['start']['isEqual'](_0x4054e6)||!_0x76da7f['end']['isEqual'](_0x48035f))&&(_0x4054e6['isBefore'](_0x48035f)?_0x3792f6['updateMarker'](_0x195e56,{'range':_0x3792f6['createRange'](_0x4054e6,_0x48035f)}):_0x3792f6['removeMarker'](_0x195e56),!0x0);}function Gt(_0x4ed9e8){return _0x512500(_0x4ed9e8);}function Ft(_0x42e8f8){const _0x3e85cd=_0x42e8f8['start']['nodeAfter'];return _0x3e85cd&&_0x3e85cd['is']('element');}function Lt(_0x5077fe,_0x18ca49){return null==_0x5077fe['end']['nodeBefore']&&_0x5077fe['end']['parent']==_0x5077fe['start']['nodeAfter']?Jt(_0x5077fe['start']['nodeAfter'],_0x18ca49):_0x5077fe;}function Jt(_0x24b669,_0x35d35f){const _0x27cbd2=_0x35d35f['schema']['isObject'](_0x24b669)||_0x35d35f['schema']['isSelectable'](_0x24b669);return _0x35d35f['createRange'](_0x35d35f['createPositionAt'](_0x24b669,'before'),_0x27cbd2?_0x35d35f['createPositionAfter'](_0x24b669):_0x35d35f['createPositionAt'](_0x24b669,'end'));}function Ht(_0x526422,_0x1d360d,_0x5856c1,_0x3ce83e){return!!qt(_0x526422,_0x1d360d)&&_0x5856c1['end']['isEqual'](_0x3ce83e['start']);}function qt(_0x3016d3,_0x5801a6){if(!_0x3016d3['_isDataLoaded']||!_0x5801a6['_isDataLoaded'])return!0x1;const _0x1de77e=new Set(Object['keys'](_0x3016d3['attributes'])),_0x5ecc15=new Set(Object['keys'](_0x5801a6['attributes']));if(_0x1de77e['delete']('groupId'),_0x5ecc15['delete']('groupId'),0x0==_0x1de77e['size']&&0x0==_0x5ecc15['size'])return!0x0;if(_0x1de77e['size']!=_0x5ecc15['size'])return!0x1;const _0x6b435b={..._0x3016d3['attributes']},_0x4a30d1={..._0x5801a6['attributes']};return delete _0x6b435b['groupId'],delete _0x4a30d1['groupId'],JSON['stringify'](_0x6b435b)==JSON['stringify'](_0x4a30d1);}function zt(_0x2ebe16,_0x24a1d6){const _0x168b8c=Kt(_0x2ebe16['attributes']),_0x30ebff=Kt(_0x24a1d6);if(!_0x2ebe16['_isDataLoaded'])return!0x1;for(const _0x457899 of Object['keys'](_0x30ebff))if(!_0x12e9c7(_0x168b8c[_0x457899],_0x30ebff[_0x457899]))return!0x1;return!0x0;}function Kt(_0x2ca510){const _0xc027bf=Object['assign']({},_0x2ca510);return delete _0xc027bf['skipNestingCheck'],delete _0xc027bf['tablePasteChainId'],_0xc027bf;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a0ec8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x8317e5,_0x566d30,_0x3a6353,_0x5800f1){super(),this['model']=_0x566d30,this['view']=_0x3a6353,this['commentThreadController']=_0x5800f1,this['_editor']=_0x8317e5,this['_acceptCommand']=_0x8317e5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x8317e5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40c2ee,_0x8c7832)=>_0x40c2ee||_0x8c7832),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35e3b9=>_0x35e3b9&&this['_editor']['model']['canEditAt'](_0x566d30['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc50615=>_0xc50615&&this['_editor']['model']['canEditAt'](_0x566d30['getRanges']())),this['_pendingAction']=null,_0x3a6353['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a6353,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a6353,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a6353,'change:isDirty',()=>{_0x3a6353['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 _0xd86db4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd86db4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xe1d0ad{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4ecc60,_0x9511f,_0x36c571,_0x445051){super(_0x4ecc60),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4fcd3b(_0x4ecc60,o(_0x4ecc60,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9511f['authoredAt']),this['bind']('authoredAt')['to'](_0x9511f),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',_0x9511f,'authoredAt',this,'descriptionParts',(_0x22616a,_0x1894aa,_0x3f5961)=>{const _0x2c4624=_0x3f5961['map'](_0x3c0832=>ns(_0x3c0832['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x22616a-0x1,_0x9511f['author']['name'],_0x1894aa?_0x445051['formatDateTime'](_0x1894aa):'',new DOMParser()['parseFromString'](_0x2c4624,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b5c1b(),this['focusTracker']=new _0x459086(),this['keystrokes']=new _0x3f23a7(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48c08d=>_0x48c08d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9511f,this['_localUser']=_0x36c571,this['_config']=_0x445051,_0x445051['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x425024(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5e21d2}=this['_config'];this['commentsListView']=new _0x5e21d2(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',_0x304350=>_0x304350+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xfa1f22,_0x4bc3b6)=>_0xfa1f22||!!_0x4bc3b6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c4d1f}=this['_config'],_0x2469c2=new _0x1c4d1f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x11d45c=_0x2469c2['commentInputView'];return _0x2469c2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x11d45c,'value',(_0x42de68,_0x56f323,_0x4b261a)=>!!_0x4b261a||_0x42de68&&!_0x56f323),_0x11d45c['on']('submit',(_0x2b2667,_0x41b93c)=>{this['fire']('addComment',_0x41b93c),_0x11d45c['editor']['setData']('');}),_0x11d45c['on']('cancel',()=>this['focus']()),_0x11d45c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2469c2;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4f9853,_0x5f2756,_0x4a3113,_0x276a4e){super(_0x4f9853,_0x5f2756,_0x4a3113,_0x276a4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x88b26d=>_0x88b26d&&_0x88b26d[0x0]?_0x88b26d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x40e125,_0x455fef)=>{let _0x378cab='';for(const _0x18538d of _0x40e125)_0x378cab+='<p>'+ns(_0x18538d['content'],_0x18538d['color'])+'</p>';return _0x455fef?_0x378cab:ti(_0x378cab,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x276a4e['SuggestionView'](_0x4f9853,_0x5f2756,{'formatDateTime':_0x276a4e['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 _0x1ef458=this['bindTemplate'],_0x2f8c48=[this['suggestionView']];return this['commentsListView']&&_0x2f8c48['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2f8c48['push'](this['commentThreadInputView']),_0x2f8c48['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1ef458['if']('isActive','ck-suggestion-wrapper--active'),_0x1ef458['to']('type',_0x276416=>'ck-suggestion-'+_0x276416),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':_0x1ef458['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2f8c48};}['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 ue extends _0xe1d0ad{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ea54b,_0x5ca80c,_0x415d66){super(_0x3ea54b),this['_model']=_0x5ca80c,this['_config']=_0x415d66,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5ca80c),this['acceptButton']=this['_createButton'](o(_0x3ea54b,'Accept\x20suggestion'),_0x55d1a0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ea54b,'Discard\x20suggestion'),_0x55d1a0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x40223b(_0x3ea54b,_0x5ca80c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b5c1b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x459086(),this['keystrokes']=new _0x3f23a7(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x184c01=>_0x184c01['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x29fa88=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x29fa88['innerHTML']=this['description'],this['on']('change:description',(_0x2a36c7,_0x1fdbb6,_0x49b0dd)=>{_0x29fa88['innerHTML']=_0x49b0dd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x134f5c=this['bindTemplate'],_0x3f48a9=[{'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':_0x134f5c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x134f5c['to']('authoredAt',_0x40bb17=>this['_config']['formatDateTime'](_0x40bb17))}]}]},{'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']&&_0x3f48a9['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':_0x3f48a9}]};}['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'](_0x263d4b,_0x2940b5,_0x49b381,_0xf38a10,_0x2aabca){const _0x31f70e=new _0x31df53(this['locale']);return _0x31f70e['set']({'label':_0x263d4b,'icon':_0x2940b5,'tooltip':!0x0,'tooltipPosition':_0x2aabca}),_0x31f70e['extendTemplate']({'attributes':{'class':_0x49b381}}),_0x31f70e['on']('execute',()=>{this['fire'](_0xf38a10,this['_model']['id']);}),_0x31f70e;}['_setupKeyboardNavigation'](){const _0x3e3900=this['element'];this['keystrokes']['listenTo'](_0x3e3900);for(const _0x4a4b65 of this['focusables'])this['focusTracker']['add'](_0x4a4b65['element']),this['keystrokes']['listenTo'](_0x4a4b65['element']);this['keystrokes']['set']('enter',(_0x357861,_0x12f86d)=>{_0x3e3900===_0x357861['target']&&(this['focusCycler']['focusFirst'](),_0x12f86d());}),this['keystrokes']['set']('esc',(_0x318f94,_0x19486c)=>{_0x3e3900!==_0x318f94['target']&&(this['focus'](),_0x19486c());});}}var Ce='<!--\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 _0x5c4eb9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1c96ed,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e562c){super(_0x3e562c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x46d91b=this['editor']['config'];_0x46d91b['define']('trackChanges.SuggestionThreadView',de),_0x46d91b['define']('trackChanges.SuggestionView',ue),_0x46d91b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x46d91b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4b95e3,_0x2fbaf6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24e3d5,_0x4f6b19]of this['_handleControllerBuffer']){const _0x3ffce8=this['_suggestionToController']['has'](_0x24e3d5);_0x3ffce8||_0x4f6b19?_0x3ffce8&&_0x4f6b19&&this['_destroyController'](_0x24e3d5):this['_initializeController'](_0x24e3d5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4b95e3,_0x2fbaf6);}['init'](){const _0x428be1=this['editor'],_0x369657=_0x428be1['plugins']['get']('TrackChangesEditing'),_0x4482fc=_0x428be1['plugins']['get']('Annotations'),_0x571f10=_0x428be1['plugins']['get']('EditorAnnotations'),_0x3bdd5c=_0x428be1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x571f10['addSourceCollector'](()=>{const _0x3fc690=[];for(const [_0x477523,_0x5ba20f]of Array['from'](this['_suggestionToController'])){const _0x4e5bbe=_0x477523['getAllAdjacentSuggestions'](),_0x25f7ed=[];for(const _0x23afca of _0x4e5bbe){if(!_0x23afca['isInContent'])continue;if(_0x23afca['isMultiRange']){_0x25f7ed['push'](..._0x23afca['getRanges']());continue;}const _0x5e5ad0=_0x23afca['getFirstRange']();if(_0x25f7ed['length']>0x0){const _0x6dc398=_0x25f7ed[0x0]['getJoined'](_0x5e5ad0);if(_0x6dc398){_0x25f7ed[0x0]=_0x6dc398;continue;}}_0x25f7ed['push'](_0x5e5ad0);}_0x3fc690['push']([_0x5ba20f['view'],_0x25f7ed]);}return _0x3fc690;}),this['listenTo'](_0x369657,'suggestionLoaded',(_0x45bf87,_0x5a5cd8)=>{this['listenTo'](_0x5a5cd8,'change:previous',(_0x272198,_0x260693,_0x571c5b,_0x32737e)=>{_0x5a5cd8['isInContent']&&(null==_0x571c5b?(this['_updateController'](_0x32737e['head']),this['_handleSuggestionControllerDelayed'](_0x5a5cd8,!0x1)):(this['_updateController'](_0x571c5b['head']),null==_0x32737e&&this['_handleSuggestionControllerDelayed'](_0x5a5cd8,!0x0)));}),null!==_0x5a5cd8['previous']?this['_updateController'](_0x5a5cd8['head']):this['_handleSuggestionControllerDelayed'](_0x5a5cd8,!0x1);}),this['listenTo'](_0x369657,'suggestionUnloaded',(_0xd0a9e0,_0x42b6d1,_0x27c663)=>{this['stopListening'](_0x42b6d1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42b6d1),this['_suggestionToController']['has'](_0x42b6d1)&&this['_destroyController'](_0x42b6d1),_0x27c663&&this['_updateController'](_0x27c663['head']);}),this['listenTo'](_0x369657,'suggestionChanged',(_0x4b5ff1,_0x59ff78)=>{this['_updateController'](_0x59ff78);}),this['listenTo'](_0x4482fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3bdd5c,'addComment',(_0x4a1c61,{threadId:_0x21a8aa,isFromAdapter:_0x43ec76})=>{if(_0x43ec76||!_0x369657['hasSuggestion'](_0x21a8aa))return;const _0x2a197d=_0x369657['getSuggestion'](_0x21a8aa);this['_suggestionToController']['get'](_0x2a197d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26fdb0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13e7ab;for(const _0x25a695 in _0x26fdb0){const _0x1e8129=_0x25a695,_0x37c8ad=_0x26fdb0[_0x1e8129];if('trackChangesLicenseKeyValid'==_0x37c8ad||'trackChangesLicenseKeyInvalid'==_0x37c8ad||'trackChangesLicenseKeyExpired'==_0x37c8ad||'trackChangesLicenseKeyDomainLimit'==_0x37c8ad||'trackChangesLicenseKeyNotAllowed'==_0x37c8ad||'trackChangesLicenseKeyEvaluationLimit'==_0x37c8ad||'trackChangesLicenseKeyTrialLimit'==_0x37c8ad||'trackChangesLicenseKeyDevelopmentLimit'==_0x37c8ad||'trackChangesLicenseKeyUsageLimit'==_0x37c8ad){delete _0x26fdb0[_0x1e8129],_0x13e7ab=_0x37c8ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13e7ab&&_0x26fdb0['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x175c68=this['editor']['plugins']['get']('Annotations'),_0x4a4225=this['editor']['plugins']['get']('TrackChangesEditing'),_0x565a93=Array['from'](_0x175c68['activeAnnotations'],_0x12dd1b=>_0x12dd1b['innerView'])['filter'](_0x3f39ba=>this['_viewToController']['has'](_0x3f39ba)),_0x390f8e=[];for(const _0xb5bfc0 of _0x565a93){const _0x17a070=this['_viewToController']['get'](_0xb5bfc0)['model']['getAllAdjacentSuggestions']();_0x390f8e['push'](..._0x17a070['reduce']((_0x50ed31,_0x31cffc)=>[..._0x50ed31,..._0x31cffc['getMarkerNames']()],[]));}_0x4a4225['activeMarkers']=_0x390f8e;}['_addUIComponentsToFactory'](){const _0x402a54=this['editor'],_0x1629ea=_0x402a54['locale'],_0x1d8151=o(_0x1629ea,'Track\x20changes'),_0x5a68bb=new _0x44248f([{'type':'switchbutton','model':new _0x43b08e({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8151,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x43b08e({'withText':!0x0,'label':o(_0x1629ea,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x43b08e({'withText':!0x0,'label':o(_0x1629ea,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x43b08e({'withText':!0x0,'label':o(_0x1629ea,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x43b08e({'withText':!0x0,'label':o(_0x1629ea,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x12f3fe of _0x5a68bb)if(pe(_0x12f3fe)){const _0x29d865=_0x402a54['commands']['get'](_0x12f3fe['model']['commandName']);_0x12f3fe['model']['bind']('isOn','isEnabled')['to'](_0x29d865,'value','isEnabled');}_0x402a54['ui']['componentFactory']['add']('trackChanges',_0x18c8d4=>this['_createToolbarButton'](_0x18c8d4,_0x5a68bb,_0x1d8151)),_0x402a54['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1eb2a2=>this['_createMenuBarMenu'](_0x1eb2a2,_0x5a68bb,_0x1d8151));}['_createToolbarButton'](_0x3f98d5,_0x41a8dc,_0x310a62){const _0x3e88a9=_0x14bc60(_0x3f98d5,_0x146d75),_0x60280f=this['editor']['commands']['get']('trackChanges');_0x3e88a9['buttonView']['set']({'tooltip':_0x310a62,'label':_0x310a62,'icon':Ce}),_0x3e88a9['buttonView']['bind']('isOn')['to'](_0x60280f,'value'),_0x3e88a9['buttonView']['on']('execute',()=>{_0x60280f['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x3e88a9,_0x41a8dc,{'role':'menu'});const _0x57678f=[];for(const _0x4d1ef1 of _0x41a8dc)pe(_0x4d1ef1)&&_0x57678f['push'](this['editor']['commands']['get'](_0x4d1ef1['model']['commandName']));const _0x1b11f8=_0x3e88a9['buttonView'];return _0x1b11f8['actionView']['unbind']('isEnabled'),_0x1b11f8['arrowView']['unbind']('isEnabled'),_0x1b11f8['actionView']['bind']('isEnabled')['to'](_0x60280f,'isEnabled'),_0x1b11f8['arrowView']['bind']('isEnabled')['toMany'](_0x57678f,'isEnabled',(..._0xfa6cb3)=>_0xfa6cb3['some'](_0x2b0380=>_0x2b0380)),_0x3e88a9['on']('execute',_0x20f447=>{this['editor']['execute'](_0x20f447['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e88a9;}['_createMenuBarMenu'](_0x328c70,_0x4038ce,_0x272d48){const _0x2c43e0=new _0x51ad4a(_0x328c70),_0x137f1b=this['editor']['commands']['get']('trackChanges');_0x2c43e0['buttonView']['set']({'label':_0x272d48,'icon':Ce});const _0xf2b580=new _0x4fb3cd(_0x328c70);for(const _0x575eea of _0x4038ce){if('separator'==_0x575eea['type']){_0xf2b580['items']['add'](new _0x4f96a1(_0x328c70));continue;}const _0x36107e=new _0x418406(_0x328c70,_0x2c43e0),_0x35999f=new _0x56c8b2(_0x328c70),_0x3d5e9b=_0x575eea['model'];_0x35999f['bind'](...Object['keys'](_0x3d5e9b))['to'](_0x3d5e9b),_0x35999f['delegate']('execute')['to'](_0x2c43e0),_0x35999f['on']('execute',()=>{this['editor']['execute'](_0x3d5e9b['commandName']),this['editor']['editing']['view']['focus']();}),_0x36107e['children']['add'](_0x35999f),_0xf2b580['items']['add'](_0x36107e);}return _0x2c43e0['bind']('isEnabled')['to'](_0x137f1b,'isEnabled'),_0x2c43e0['panelView']['children']['add'](_0xf2b580),_0x2c43e0;}['_initializeController'](_0x52e45c){const _0x3d8dfc=this['editor'],_0x5462c1=_0x3d8dfc['config'],_0x3c6684=_0x3d8dfc['plugins']['get']('Annotations'),_0x522379=_0x3d8dfc['plugins']['get']('CommentsRepository'),_0x538997=_0x3d8dfc['plugins']['get']('EditorAnnotations'),_0xfaeba5=_0x3d8dfc['plugins']['get'](_0x1c96ed)['me'],_0x227f97=_0x5462c1['get']('trackChanges')['SuggestionThreadView'],_0x57623a=_0x5462c1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x462584,CommentThreadInputView:_0x3b374a}=_0x3d8dfc['plugins']['get']('CommentsUI');let _0x241314,_0x5b9ee0,_0x511f59;this['_annotationViews']['has'](_0x52e45c['id'])?(_0x5b9ee0=this['_annotationViews']['get'](_0x52e45c['id']),_0x241314=_0x5b9ee0['mainView']):(_0x241314=new _0x227f97(_0x3d8dfc['locale'],_0x52e45c,_0xfaeba5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5462c1['get']('comments.editorConfig'),'licenseKey':_0x5462c1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5462c1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5462c1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5462c1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e9bd4(_0x5462c1['get']('locale')),'CommentView':_0x5462c1['get']('comments')['CommentView'],'CommentsListView':_0x462584,'CommentThreadInputView':_0x3b374a,'SuggestionView':_0x57623a}),_0x241314['suggestionView']['acceptButton']['on']('execute',()=>{_0x3d8dfc['editing']['view']['focus']();}),_0x241314['suggestionView']['discardButton']['on']('execute',()=>{_0x3d8dfc['editing']['view']['focus']();}),_0x5b9ee0=_0x3c6684['createAnnotationView'](this['editor']['locale'],_0x241314),_0x5b9ee0['bind']('isDirty')['to'](_0x241314,'isDirty'),_0x5b9ee0['bind']('length')['to'](_0x241314),_0x5b9ee0['bind']('type')['to'](_0x241314,'type',_0x4877a5=>'suggestion-'+_0x4877a5),_0x241314['on']('escape',()=>{_0x511f59['fire']('escape');}),this['_annotationViews']['set'](_0x52e45c['id'],_0x5b9ee0));const _0x199553=_0x522379['createCommentThreadController'](_0x52e45c['commentThread'],_0x241314),_0x834884=new ge(_0x3d8dfc,_0x52e45c,_0x241314,_0x199553),_0x22547=_0x52e45c['getAllAdjacentSuggestions']()['filter'](_0x519531=>_0x519531['isInContent']);_0x241314['descriptionParts']=_0x3d8dfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x22547),this['_suggestionToController']['set'](_0x52e45c,_0x834884),this['_viewToController']['set'](_0x241314,_0x834884),_0x511f59=_0x3c6684['createAnnotation']({'view':_0x5b9ee0,'target':()=>{const _0x47b0bc=[],_0x36936c=_0x52e45c['getAllAdjacentSuggestions']()['filter'](_0x49d670=>_0x49d670['isInContent']);for(const _0x40f6dc of _0x36936c)_0x47b0bc['push'](..._0x40f6dc['getMarkers']());return _0x1fa622(_0x3d8dfc['editing'],_0x47b0bc);},'type':()=>'suggestion-'+_0x834884['view']['type']}),_0x522379['_bindAnnotationToEditors'](_0x241314,_0x511f59),_0x3c6684['add'](_0x511f59),_0x538997['registerAnnotation'](_0x511f59);}['_destroyController'](_0x5a78bd){const _0x4d148a=this['editor']['plugins']['get']('CommentsRepository'),_0x15be02=this['editor']['plugins']['get']('Annotations'),_0x1cb2e2=this['_suggestionToController']['get'](_0x5a78bd),_0x21420c=_0x1cb2e2['view'],_0x693f2c=_0x15be02['getByInnerView'](_0x21420c);_0x4d148a['_unbindEditors'](_0x21420c),_0x693f2c&&_0x15be02['remove'](_0x693f2c),this['_suggestionToController']['delete'](_0x5a78bd),this['_viewToController']['delete'](_0x21420c),_0x1cb2e2['destroy']();}['_updateController'](_0x2a7ff6){if(!_0x2a7ff6['isInContent']||!this['_suggestionToController']['has'](_0x2a7ff6))return;const _0xd406d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49578e=this['_suggestionToController']['get'](_0x2a7ff6),_0x438b2f=_0x2a7ff6['getAllAdjacentSuggestions']();_0x49578e['view']['descriptionParts']=_0xd406d['descriptionFactory']['getDescriptions'](_0x438b2f);}['destroy'](){for(const _0x2f3dd4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2f3dd4);for(const _0x52478d of this['_annotationViews']['values']())_0x52478d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x1e54c5){return'model'in _0x1e54c5;}class k extends _0x5c4eb9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x387278){this['editor']['plugins']['get'](p)['adapter']=_0x387278;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x521083){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x521083);}['getSuggestions']({skipNotAttached:_0x50fc7b=!0x1,toJSON:_0x3a7046=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x50fc7b,'toJSON':_0x3a7046});}['getSuggestion'](_0x6c9857){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x6c9857);}}const w=['Pagination'];class T extends _0x5c4eb9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x56bc03=this['editor'];if(_0x56bc03['config']['define']('trackChangesData.editorCreator',_0x3bbffa=>{const _0x4a172e=_0x56bc03['model']['document']['getRootNames']()['reduce']((_0x1374d5,_0x2b7a3a)=>(_0x1374d5[_0x2b7a3a]='',_0x1374d5),{});return _0x56bc03['constructor']['create'](_0x4a172e,_0x3bbffa);}),'function'!=typeof _0x56bc03['config']['get']('trackChangesData')['editorCreator'])throw new _0x104227('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cdf69){return N(this['editor'],!0x0,_0x4cdf69);}['getDataWithDiscardedSuggestions'](_0x5f447e){return N(this['editor'],!0x1,_0x5f447e);}}class D extends _0x5c4eb9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f79dd){function _0x330284(_0x53b099){return _0x53b099['map'](_0x21d2a8=>String['fromCharCode'](_0x21d2a8))['join']('');}super(_0x2f79dd),this['result']='end',_0x2f79dd[_0x330284([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x330284([0x76,0x69,0x65,0x77])][_0x330284([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x330284([0x61,0x75,0x74,0x6f]),_0x2f79dd[_0x330284([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x330284([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x330284([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x330284([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x330284([0x6f,0x6b])});}['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(_0x5b1e20){return void 0x0!==_0x5b1e20['getRootsAttributes'];}async function N(_0x9cd137,_0x67ac4b,_0x4193ee){const _0x4cbcd7=_0x40fe9e(_0x9cd137,w);_0x4cbcd7['plugins']['push'](p,D),_0x4cbcd7['rootsAttributes']=v(_0x9cd137)?_0x9cd137['getRootsAttributes']():void 0x0;const _0x21a365=document['createDocumentFragment'](),_0x4f08a9=_0x9cd137['config']['get']('trackChangesData')['editorCreator'],_0x21bd2e=await _0x4f08a9(_0x4cbcd7,()=>function(_0x12883d){const _0x5132d1=document['createElement']('div');return _0x12883d['appendChild'](_0x5132d1),_0x5132d1;}(_0x21a365));!function(_0x484162,_0x31b00a){const _0x56ceea=_0x484162['model']['document']['getRootNames']()['reduce']((_0xd22658,_0x129c01)=>(_0xd22658[_0x129c01]=_0x484162['data']['get']({'rootName':_0x129c01}),_0xd22658),{}),_0x507dec=_0x484162['plugins']['get']('Users')['users']['map'](_0x20b9fa=>({'id':_0x20b9fa['id'],'name':_0x20b9fa['name']})),_0x480193=_0x484162['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x390169=_0x484162['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xec170a=_0x31b00a['plugins']['get']('Users'),_0x556648=_0x31b00a['plugins']['get']('TrackChangesEditing'),_0x26e73f=_0x31b00a['plugins']['get']('CommentsRepository');for(const _0x28f5bc of _0x26e73f['getCommentThreads']())_0x28f5bc['remove']();for(const _0x605b64 of _0x507dec)_0xec170a['getUser'](_0x605b64['id'])||_0xec170a['addUser'](_0x605b64);_0xec170a['me']||_0xec170a['useAnonymousUser']();for(const _0x7cb1b of _0x390169)_0x26e73f['addCommentThread'](_0x7cb1b);for(const _0x1113b4 of _0x480193)_0x556648['addSuggestionData'](_0x1113b4);_0x31b00a['data']['set'](_0x56ceea);}(_0x9cd137,_0x21bd2e),_0x21bd2e['execute'](_0x67ac4b?'acceptAllSuggestions':'discardAllSuggestions');const _0x34fd64=v(_0x21bd2e)?_0x21bd2e['getFullData'](_0x4193ee):_0x21bd2e['data']['get'](_0x4193ee);return await _0x21bd2e['destroy'](),_0x34fd64;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|