@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250522.0 → 0.0.0-nightly-20250524.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- 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
|
|
24
|
-
_0x4d2e27(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1b0fe7,_0xd406ba){super(),this['id']=_0xd406ba['id'],this['type']=_0xd406ba['type'],this['subType']=_0xd406ba['subType']||null,this['author']=_0xd406ba['author'],this['creator']=_0xd406ba['creator']||_0xd406ba['author'],this['isExternal']=Boolean(_0xd406ba['attributes']&&_0xd406ba['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd406ba['originalSuggestionId']||null,this['_model']=_0x1b0fe7,this['_onAccept']=_0xd406ba['onAccept'],this['_onDiscard']=_0xd406ba['onDiscard'],this['_onAttributesChange']=_0xd406ba['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd406ba['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 _0x17870a=this;for(;_0x17870a['previous'];)_0x17870a=_0x17870a['previous'];return _0x17870a;}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'](_0x51ec31){this['_markerNames']['add'](_0x51ec31);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5016d5=>this['_model']['markers']['get'](_0x5016d5))['filter'](_0x48edb9=>_0x48edb9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ad9af=>{for(const _0x5d7a27 of this['getMarkers']())_0x1ad9af['removeMarker'](_0x5d7a27);}),this['_markerNames']['clear']();}['removeMarker'](_0x5dba6d){this['_model']['change'](_0x2de61b=>{_0x2de61b['removeMarker'](_0x5dba6d);}),this['_markerNames']['delete'](_0x5dba6d);}['addRange'](_0xfa2eb3){const _0x4e58a3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4e58a3),this['_model']['change'](_0x458ffe=>{_0x458ffe['addMarker'](_0x4e58a3,{'range':_0xfa2eb3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x23b3b8){for(const _0x4d3187 of this['getRanges']())if(_0x4d3187['isIntersecting'](_0x23b3b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37b0d8=>_0x37b0d8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53ab5b,_0x451161)=>[..._0x53ab5b,..._0x451161['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5bae0b=this['getRanges']();if(0x1!=_0x5bae0b['length'])return null;const _0x2713b4=_0x5bae0b[0x0],_0x4f31a2=_0x2713b4['start']['nodeAfter'],_0x40ccd8=_0x2713b4['end']['nodeBefore'];return _0x4f31a2 instanceof _0x50ed32?_0x4f31a2!=_0x40ccd8?null:_0x4f31a2: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 _0x3fde84=[];let _0x20ec56=this['head'];for(;_0x20ec56;)_0x3fde84['push'](_0x20ec56),_0x20ec56=_0x20ec56['next'];return _0x3fde84;}['setAttribute'](_0x124631,_0x334827){const _0x5e92b1=_0xa0f85e(this['attributes']);_0x4e4cc5(_0x5e92b1,_0x124631,_0x334827),_0x15af31(_0x5e92b1,this['attributes'])||(this['attributes']=_0x5e92b1,this['_onAttributesChange'](_0x5e92b1));}['removeAttribute'](_0x2e45b3){const _0x5bf091=_0xa0f85e(this['attributes']);_0x1b65db(_0x5bf091,_0x2e45b3),_0x15af31(_0x5bf091,this['attributes'])||(this['attributes']=_0x5bf091,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 _0x57be53()['substr'](0x1,0x5);}}function c(_0x2222a9,_0x179e9f,_0xa0dda8){const _0x2967e1=_0x2222a9['t'],t=_0x2222a9['t'];switch(_0x179e9f){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0xa0dda8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xa0dda8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xa0dda8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xa0dda8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xa0dda8);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',_0xa0dda8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xa0dda8);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0xa0dda8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xa0dda8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xa0dda8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xa0dda8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xa0dda8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xa0dda8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xa0dda8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xa0dda8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xa0dda8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xa0dda8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xa0dda8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xa0dda8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xa0dda8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xa0dda8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xa0dda8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xa0dda8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xa0dda8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xa0dda8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xa0dda8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xa0dda8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xa0dda8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xa0dda8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xa0dda8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xa0dda8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xa0dda8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xa0dda8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xa0dda8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xa0dda8);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 _0x2967e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xa0dda8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2967e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xa0dda8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x179e9f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xaa291f,_0x22fcf1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xaa291f,this['_locale']=_0x22fcf1;}['getDescriptions'](_0x40f4fd){const _0x4527cd=[],_0x29c52f=new Set(),_0x5f437d=new Set();for(let _0xf9d0db=0x0;_0xf9d0db<_0x40f4fd['length'];_0xf9d0db++){const _0x3c049a=_0x40f4fd[_0xf9d0db];if(!_0x3c049a['isInContent'])continue;const _0x15c9f4=this['_handleCustomCallbackDescription'](_0x3c049a);if(_0x15c9f4){if(null!=_0x3c049a['subType']){if(_0x29c52f['has'](_0x3c049a['subType']))continue;_0x29c52f['add'](_0x3c049a['subType']);}_0x4527cd['push'](_0x15c9f4);}else{if('attribute'!=_0x3c049a['type'])'insertion'!=_0x3c049a['type']&&'deletion'!=_0x3c049a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4527cd,_0x3c049a,_0x40f4fd[_0xf9d0db+0x1]);else{const _0x31641c=_0x3c049a['data']['key'];if(_0x5f437d['has'](_0x31641c))continue;_0x5f437d['add'](_0x3c049a['data']['key']),_0x31641c==u?this['_handleRenameSuggestionDescription'](_0x4527cd,_0x3c049a):this['_handleAttributeSuggestionDescription'](_0x4527cd,_0x3c049a);}}}return this['_resolveDescriptionItems'](_0x4527cd);}['registerDescriptionCallback'](_0x375669){this['_customCallbacks']['push'](_0x375669);}['registerElementLabel'](_0xab9b0e,_0x1b9399,_0xcb68b9=_0x17cab7['normal']){'function'==typeof _0xab9b0e?_0x1828ab(this['_itemLabelsCallbacks'],{'matchingCallback':_0xab9b0e,'label':_0x1b9399,'priority':_0xcb68b9}):this['_itemLabels']['set'](_0xab9b0e,_0x1b9399);}['registerAttributeLabel'](_0x4d2883,_0x3957e5){this['_attributeLabels']['set'](_0x4d2883,_0x3957e5);}['getItemLabel'](_0x47fe4e,_0x3e524d=0x1){let _0x3f90c7;for(const _0x46c6e8 of this['_itemLabelsCallbacks'])if(_0x46c6e8['matchingCallback'](_0x47fe4e)){_0x3f90c7=_0x46c6e8['label'];break;}return _0x3f90c7||(_0x3f90c7=this['_itemLabels']['get'](_0x47fe4e['name'])),_0x3f90c7?_0x3f90c7(_0x3e524d):0x1!==_0x3e524d?_0x3e524d+'\x20'+_0x47fe4e['name']+'s':''+_0x47fe4e['name'];}['_addDescriptionItems'](_0x5370b6,_0x5072a1){const _0x5905ce=_0x5072a1['getFirstRange']()['getWalker'](),_0x12c384='insertion'==_0x5072a1['type']?'add':'remove';for(const _0x5c184a of _0x5905ce){const _0x49e241=_0x5c184a['item'],_0x46e063=_0x5370b6[_0x5370b6['length']-0x1];if(_0x49e241['is']('$textProxy'))_0x46e063&&_0x46e063['type']['indexOf']('Container')>-0x1&&_0x5370b6['pop'](),_0x46e063&&'text'==_0x46e063['type']?_0x46e063[_0x12c384]+=_0x49e241['data']:_0x5370b6['push']({'type':'text','add':'add'==_0x12c384?_0x49e241['data']:'','remove':'remove'==_0x12c384?_0x49e241['data']:''});else{if(this['_schema']['isObject'](_0x49e241)){const _0x197841=_0x49e241;if(_0x46e063&&_0x46e063['type']['indexOf']('Container')>-0x1&&_0x5370b6['pop'](),'elementEnd'==_0x5c184a['type'])continue;_0x46e063&&_0x46e063['type']==_0x12c384+'Object'&&_0x46e063['element']['name']==_0x197841['name']?_0x46e063['quantity']++:_0x5370b6['push']({'type':_0x12c384+'Object','element':_0x197841,'quantity':0x1}),_0x5905ce['skip'](_0x2eadfb=>!('elementEnd'==_0x2eadfb['type']&&_0x2eadfb['item']==_0x49e241));}else{if(this['_schema']['checkChild'](_0x49e241,'$text')||_0x49e241['is']('element','softBreak')){const _0x2e79c1=_0x49e241;if('add'==_0x12c384&&'elementStart'==_0x5c184a['type']||'remove'==_0x12c384&&'elementEnd'==_0x5c184a['type'])continue;if(_0x46e063&&-0x1==_0x46e063['type']['indexOf']('Container')){'text'==_0x46e063['type']&&(_0x46e063[_0x12c384]+='\x0a');continue;}let _0x3996f0;if(_0x3996f0='add'==_0x12c384?_0x2e79c1['nextSibling']&&!this['_schema']['isObject'](_0x2e79c1['nextSibling'])?_0x2e79c1['nextSibling']:null:_0x2e79c1['previousSibling']&&!this['_schema']['isObject'](_0x2e79c1['previousSibling'])?_0x2e79c1['previousSibling']:null,_0x2e79c1['isEmpty']||_0x3996f0&&_0x3996f0['isEmpty']){const _0x16c2f6=_0x3996f0&&_0x3996f0['isEmpty']?_0x3996f0:_0x2e79c1;_0x46e063&&_0x46e063['type']==_0x12c384+'EmptyContainer'&&_0x46e063['element']['name']==_0x16c2f6['name']?_0x46e063['quantity']++:_0x5370b6['push']({'type':_0x12c384+'EmptyContainer','element':_0x16c2f6,'quantity':0x1});}else _0x5370b6['push']({'type':_0x12c384+'Container','element':_0x2e79c1});}}}}}['_resolveDescriptionItems'](_0x44cbbe){const _0x10c7a6=this['_locale'],_0x1f5264=[],_0x47b1d3=[],_0x1cb517=[];for(const _0x3f744d of _0x44cbbe)switch(_0x3f744d['type']){case'text':if(_0x3f744d['add']=_0x3f744d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f744d['remove']=_0x3f744d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f744d['add']&&''!=_0x3f744d['remove']){_0x1f5264['push']({'type':'replace','content':c(_0x10c7a6,'REPLACE_TEXT',['\x22'+_0x3f744d['remove']+'\x22','\x22'+_0x3f744d['add']+'\x22'])});continue;}if(null!=_0x3f744d['add']['match'](/^ +$/)){_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0',c(_0x10c7a6,'ELEMENT_SPACE',_0x3f744d['add']['length']))});continue;}if(null!=_0x3f744d['remove']['match'](/^ +$/)){_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0',c(_0x10c7a6,'ELEMENT_SPACE',_0x3f744d['remove']['length']))});continue;}if(''!=_0x3f744d['add']){_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0','\x22'+_0x3f744d['add']+'\x22')});continue;}_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0','\x22'+_0x3f744d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'addContainer':_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Split:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'removeContainer':_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Merge:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'addFormat':_0x47b1d3['push'](_0x3f744d['key']);continue;case'removeFormat':_0x1cb517['push'](_0x3f744d['key']);continue;default:_0x1f5264['push'](_0x3f744d);}if(_0x47b1d3['length']){const _0x2ccb90=_0x47b1d3['map'](_0x2b8abd=>this['_attributeLabels']['has'](_0x2b8abd)?this['_attributeLabels']['get'](_0x2b8abd):_0x2b8abd)['join'](',\x20');_0x1f5264['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2ccb90)});}if(_0x1cb517['length']){const _0x1842d0=_0x1cb517['map'](_0x1106d6=>this['_attributeLabels']['has'](_0x1106d6)?this['_attributeLabels']['get'](_0x1106d6):_0x1106d6)['join'](',\x20');_0x1f5264['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1842d0)});}return _0x1f5264;}['_handleCustomCallbackDescription'](_0x2b1ab3){for(const _0x201e1c of this['_customCallbacks']){const _0x161871=_0x201e1c(_0x2b1ab3);if(_0x161871&&'type'in _0x161871)return _0x161871;}}['_handleAttributeSuggestionDescription'](_0x583647,_0x5133b6){const _0x572f4f=_0x5133b6['data'],_0x264673=void 0x0===_0x572f4f['newValue']?'removeFormat':'addFormat';_0x583647['push']({'type':_0x264673,'key':_0x572f4f['key']});}['_handleRenameSuggestionDescription'](_0x1dbad9,_0x46929d){_0x1dbad9['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46929d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x50f3fa,_0x167e48,_0x4b522d){if(this['_addDescriptionItems'](_0x50f3fa,_0x167e48),_0x4b522d&&_0x4b522d['getFirstRange']()&&!_0x167e48['getFirstRange']()['end']['isEqual'](_0x4b522d['getFirstRange']()['start'])){const _0x3b2633=_0x50f3fa[_0x50f3fa['length']-0x1],_0x42d73d='insertion'==_0x167e48['type']?'add':'remove';_0x3b2633&&'text'==_0x3b2633['type']&&(_0x3b2633[_0x42d73d]+='\x0a');}}}class U extends _0x413935{['afterInit'](){const _0xfe0700=this['editor'],_0x508070=_0xfe0700['plugins']['get']('TrackChangesEditing');_0xfe0700['commands']['get']('showAIAssistant')&&_0x508070['enableCommand']('showAIAssistant');}}class V extends _0x413935{['afterInit'](){const _0xa7a20b=this['editor'],_0x257c69=_0xa7a20b['locale'];if(!_0xa7a20b['plugins']['has']('AlignmentEditing'))return;const _0x1b7590=_0xa7a20b['plugins']['get']('TrackChangesEditing');_0x1b7590['enableDefaultAttributesIntegration']('alignment'),_0x1b7590['registerBlockAttribute']('alignment'),_0x1b7590['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x257c69,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aaa5d=this['editor'],_0x331464=_0x1aaa5d['locale'];_0x1aaa5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ca28c=>{if('formatBlock'!=_0x4ca28c['type'])return;const {data:_0x29d17a}=_0x4ca28c;if(_0x29d17a&&'alignment'==_0x29d17a['commandName']){const _0x5adffd=_0x29d17a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x331464,'*Format:*\x20%0',function(_0x235e9d){switch(_0x235e9d){case'left':return c(_0x331464,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x331464,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x331464,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x331464,'FORMAT_JUSTIFY_TEXT');}}(_0x5adffd))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x413935{['afterInit'](){const _0x115ae0=this['editor'],_0x1f4e40=_0x115ae0['plugins']['get']('TrackChangesEditing'),_0x1a8d7f=_0x115ae0['locale'];for(const _0x1aad16 of Zt){if(!_0x115ae0['plugins']['has'](_0x1aad16))continue;const _0x2dd277=_0x1aad16['slice'](0x0,-0x7)['toLowerCase'](),_0x3789a3='FORMAT_'+_0x2dd277['toUpperCase']();_0x1f4e40['enableDefaultAttributesIntegration'](_0x2dd277),_0x1f4e40['registerInlineAttribute'](_0x2dd277),_0x1f4e40['descriptionFactory']['registerAttributeLabel'](_0x2dd277,c(_0x1a8d7f,_0x3789a3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x237a44=this['editor'],_0x589866=_0x237a44['locale'],_0x58c797=_0x237a44['plugins']['get']('TrackChangesEditing');function _0x23d39c(_0x161a00,_0x1671e5){_0x58c797['descriptionFactory']['registerDescriptionCallback'](_0x1b545d=>{if('formatInline'!=_0x1b545d['type'])return;const {data:_0x484b3c}=_0x1b545d;return _0x484b3c&&_0x484b3c['commandName']===_0x161a00?_0x484b3c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x589866,'*Format:*\x20%0',_0x1671e5)}:{'type':'format','content':c(_0x589866,'*Remove\x20format:*\x20%0',_0x1671e5)}:void 0x0;});}_0x23d39c('bold',c(_0x589866,'FORMAT_BOLD')),_0x23d39c('italic',c(_0x589866,'FORMAT_ITALIC')),_0x23d39c('underline',c(_0x589866,'FORMAT_UNDERLINE')),_0x23d39c('code',c(_0x589866,'FORMAT_CODE')),_0x23d39c('strikethrough',c(_0x589866,'FORMAT_STRIKETHROUGH')),_0x23d39c('subscript',c(_0x589866,'FORMAT_SUBSCRIPT')),_0x23d39c('superscript',c(_0x589866,'FORMAT_SUPERSCRIPT'));}}class G extends _0x413935{['afterInit'](){const _0x1a5037=this['editor'],_0x26a7e9=_0x1a5037['locale'];if(!_0x1a5037['plugins']['has']('BlockQuoteEditing'))return;const _0x623f15=_0x1a5037['plugins']['get']('TrackChangesEditing'),_0x18cbfd=this['editor']['commands']['get']('blockQuote');_0x623f15['enableCommand']('blockQuote',(_0x1a5550,_0x261600={})=>{const _0x163a9c=this['editor']['model']['document']['selection'],_0x4fc19a=_0x261600&&void 0x0!==_0x261600['forceValue']?_0x261600['forceValue']:!_0x18cbfd['value'];let _0xad8f90=[];if(_0x4fc19a){const _0x208458=Array['from'](_0x163a9c['getSelectedBlocks']())['filter'](_0x28ba39=>oo(_0x28ba39)||function(_0x1c5558,_0x2624c9){const _0x4b1f47=_0x2624c9['checkChild'](_0x1c5558['parent'],'blockQuote'),_0x3b266d=_0x2624c9['checkChild'](['$root','blockQuote'],_0x1c5558);return _0x4b1f47&&_0x3b266d;}(_0x28ba39,this['editor']['model']['schema']));_0xad8f90=to(_0x208458,_0x1a5037['model']);}else{const _0x45e057=Array['from'](_0x163a9c['getSelectedBlocks']())['filter'](_0x59eeb3=>oo(_0x59eeb3));_0xad8f90=to(_0x45e057,_0x1a5037['model']);}_0x1a5037['model']['change'](()=>{for(const _0x1e69d5 of _0xad8f90)_0x623f15['markBlockFormat'](_0x1e69d5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4fc19a}]});});}),_0x623f15['descriptionFactory']['registerDescriptionCallback'](_0x4d9d91=>{const {data:_0x243e7b}=_0x4d9d91;if(_0x243e7b&&'blockQuote'==_0x243e7b['commandName']){const _0x98be41=c(_0x26a7e9,'ELEMENT_BLOCK_QUOTE');return _0x243e7b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x26a7e9,'*Set\x20format:*\x20%0',_0x98be41)}:{'type':'format','content':c(_0x26a7e9,'*Remove\x20format:*\x20%0',_0x98be41)};}});}}function oo(_0x192b52){return'blockQuote'==_0x192b52['parent']['name'];}class L extends _0x413935{['afterInit'](){const _0x1b5e76=this['editor'],_0x403914=_0x1b5e76['locale'],_0x18854d=_0x1b5e76['plugins']['get']('TrackChangesEditing');_0x1b5e76['plugins']['has']('BookmarkEditing')&&(_0x18854d['enableCommand']('insertBookmark'),_0x18854d['enableDefaultAttributesIntegration']('updateBookmark'),_0x18854d['registerBlockAttribute']('bookmarkId'),_0x18854d['descriptionFactory']['registerDescriptionCallback'](_0x16b702=>{if('insertion'!=_0x16b702['type']&&'deletion'!=_0x16b702['type']&&'attribute'!=_0x16b702['type'])return;const _0x37ab0d=_0x16b702['getContainedElement']();if(null==_0x37ab0d)return;if(!_0x37ab0d['is']('element','bookmark'))return;const _0x1b4ff0=_0x37ab0d['getAttribute']('bookmarkId');if('insertion'==_0x16b702['type'])return{'type':'insertion','content':c(_0x403914,'*Insert:*\x20%0','\x22'+_0x1b4ff0+'\x22\x20'+c(_0x403914,'ELEMENT_BOOKMARK'))};if('deletion'==_0x16b702['type'])return{'type':'deletion','content':c(_0x403914,'*Remove:*\x20%0','\x22'+_0x1b4ff0+'\x22\x20'+c(_0x403914,'ELEMENT_BOOKMARK'))};const {data:_0x369159}=_0x16b702;if(!_0x369159||'bookmarkId'!=_0x369159['key'])return;return{'type':'format','content':c(_0x403914,'*Set\x20bookmark:*\x20%0','\x22'+_0x369159['newValue']+'\x22')};}));}}class J extends _0x413935{['afterInit'](){const _0x17ea42=this['editor'];_0x17ea42['plugins']['has']('CaseChange')&&(_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x413935{['afterInit'](){const _0x57fa6a=this['editor'];_0x57fa6a['commands']['get']('ckbox')&&_0x57fa6a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x413935{['afterInit'](){const _0x348337=this['editor'];if(!_0x348337['plugins']['has']('CodeBlock'))return;const _0x3c645f=_0x348337['plugins']['get']('TrackChangesEditing'),_0x5aad47=_0x348337['locale'],_0x5541ad=_0x348337['config']['get']('codeBlock')['languages'],_0x4b22ee=_0x348337['commands']['get']('codeBlock');_0x3c645f['enableCommand']('indentCodeBlock'),_0x3c645f['enableCommand']('outdentCodeBlock'),_0x3c645f['enableCommand']('codeBlock',(_0x15f898,_0x301e5b={})=>{const _0x2f391d=_0x348337['model'],_0x29681f=_0x348337['model']['document']['selection'],_0x43e657=_0x301e5b&&void 0x0!==_0x301e5b['forceValue']?_0x301e5b['forceValue']:!_0x4b22ee['value'];let _0x1859a3;_0x301e5b['language']||(_0x301e5b['language']=_0x5541ad[0x0]['language']),_0x1859a3=_0x43e657?Array['from'](_0x29681f['getSelectedBlocks']())['filter'](_0x2e0dfb=>eo(_0x2e0dfb)||function(_0x436305,_0x32d85b){if(_0x436305['is']('rootElement')||_0x32d85b['isLimit'](_0x436305))return!0x1;return _0x32d85b['checkChild'](_0x436305['parent'],'codeBlock');}(_0x2e0dfb,_0x2f391d['schema'])):Array['from'](_0x29681f['getSelectedBlocks']())['filter'](_0x1c5400=>eo(_0x1c5400));const _0x2ccf03=to(_0x1859a3,_0x2f391d);_0x2f391d['change'](()=>{for(const _0xb50084 of _0x2ccf03)_0x3c645f['markBlockFormat'](_0xb50084,{'commandName':'codeBlock','commandParams':[{..._0x301e5b,'forceValue':_0x43e657}],'formatGroupId':'blockName'});});}),(_0x3c645f['descriptionFactory']['registerElementLabel']('codeBlock',_0x490786=>c(_0x5aad47,'ELEMENT_CODE_BLOCK',_0x490786)),_0x3c645f['descriptionFactory']['registerDescriptionCallback'](_0x1bd688=>{if('formatBlock'!=_0x1bd688['type'])return;const _0x1572f6=_0x5aad47['t'],{data:_0x361d34}=_0x1bd688;if(!_0x361d34||'codeBlock'!=_0x361d34['commandName'])return;const _0x334b5e=_0x361d34['commandParams'][0x0]['language'],_0x6ee960=_0x1572f6(_0x5541ad['find'](_0x1cb8df=>_0x1cb8df['language']===_0x334b5e)['label'])['toLowerCase']();return _0x361d34['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5aad47,'*Set\x20format:*\x20%0',c(_0x5aad47,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x6ee960+')')}:{'type':'format','content':c(_0x5aad47,'*Remove\x20format:*\x20%0',c(_0x5aad47,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1f6e1d){return'codeBlock'==_0x1f6e1d['name'];}class q extends _0x413935{['afterInit'](){const _0x468af4=this['editor'];if(!_0x468af4['plugins']['has']('CommentsEditing'))return;_0x468af4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x206f83,_0x397a80,_0x319512){const _0x456ffa=[];for(const _0x1cfc6e of _0x397a80['getItems']())_0x1cfc6e['hasAttribute'](_0x206f83)&&_0x456ffa['push'](_0x319512['createRangeOn'](_0x1cfc6e));return _0x456ffa;}function Fe(_0x2b4cdf,_0x1cbd64,{showActiveMarker:_0x1ce2ac=!0x0}={}){const _0x2f1ae5=_0x2b4cdf['plugins']['get']('TrackChangesEditing');return(_0x1ecfdd,_0x2823e1,_0x1b2f81)=>{if(!_0x1b2f81['consumable']['test'](_0x2823e1['markerRange'],_0x1ecfdd['name']))return;const _0x4afd7b=_0x2823e1['markerRange']['getWalker'](),_0x149c11=_0x2823e1['markerRange']['start'],_0x50339d=_0x2b4cdf['model']['schema'];let _0x5f1412=null,_0x373819=null,_0x3df76d=!0x1,_0x305d52=!0x1;for(const _0x5ea741 of _0x4afd7b){const _0xefff2a=_0x5ea741['item'];_0x3df76d=_0x3df76d||_0x50339d['isContent'](_0xefff2a);const _0x57eb9e=_0x1b2f81['mapper']['toViewElement'](_0xefff2a);if(_0x57eb9e&&_0x57eb9e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5ea741['type']&&(_0x50339d['isBlock'](_0xefff2a)&&!_0x50339d['isLimit'](_0xefff2a)&&(_0xefff2a['nextSibling']||_0x149c11['isAtEnd']?_0x5f1412&&_0x5f1412['parent']==_0xefff2a||(_0x5f1412=_0xefff2a,_0x5b98da(_0x5ea741['previousPosition']),_0x305d52=!0x0):_0x373819=_0x373819||_0x5ea741['previousPosition']));}function _0x5b98da(_0x329c3b){const {id:_0x1fbfb8,authorId:_0x40ab89}=_0x2f1ae5['_splitMarkerName'](_0x2823e1['markerName']),_0x429137=_0x1b2f81['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1cbd64,'data-suggestion':_0x1fbfb8,'data-author-id':_0x40ab89}),_0x127d65=_0x1b2f81['mapper']['toViewPosition'](_0x329c3b);_0x1ce2ac&&_0x2f1ae5['activeMarkers']['includes'](_0x2823e1['markerName'])&&_0x1b2f81['writer']['addClass']('ck-suggestion-marker--active',_0x429137),_0x1b2f81['writer']['insert'](_0x127d65,_0x429137),_0x1b2f81['mapper']['bindElementToMarker'](_0x429137,_0x2823e1['markerName']);}_0x3df76d||_0x305d52||!_0x373819||_0x5b98da(_0x373819);};}class z extends _0x413935{static get['requires'](){return[_0x3841d3];}['init'](){const _0x1bd08b=this['editor'],_0x5a7b28=_0x1bd08b['plugins']['get']('TrackChangesEditing');_0x5a7b28['enableCommand']('delete');const _0x51e57e=_0x1bd08b['commands']['get']('deleteForward');_0x5a7b28['enableCommand']('deleteForward',(_0x342788,_0x584451={})=>{const _0x15f254=_0x1bd08b['model']['createSelection'](_0x1bd08b['model']['document']['selection']);_0x15f254['isCollapsed']&&_0x1bd08b['model']['modifySelection'](_0x15f254,{'direction':'forward','unit':_0x584451['unit']});const _0x21764f=_0x15f254['getFirstRange'](),_0x20f59c=_0x5bdd0a['fromRange'](_0x21764f);let _0x5269ec;_0x342788(_0x584451),_0x5269ec='$graveyard'==_0x20f59c['root']['rootName']?_0x1bd08b['model']['createRange'](_0x21764f['start']):_0x1bd08b['model']['createRange'](_0x20f59c['start'],_0x20f59c['end']),_0x20f59c['detach'](),_0x1bd08b['model']['enqueueChange'](_0x51e57e['buffer']['batch'],_0x2038cd=>{_0x51e57e['buffer']['lock'](),_0x2038cd['setSelection'](_0x2038cd['createRange'](_0x5269ec['end'])),_0x51e57e['buffer']['unlock']();});}),_0x1bd08b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1bd08b,'merge'),{'priority':'high'}),_0x1bd08b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ba0d9,_0xc64e32,_0x50df25)=>{_0x50df25['options']['showSuggestionHighlights']&&Fe(_0x1bd08b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1ba0d9,_0xc64e32,_0x50df25);},{'priority':'high'}),_0x1bd08b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x403a25,_0x378efd,_0x3124d3)=>{const _0x2ca45d=_0x3124d3['mapper']['markerNameToElements'](_0x378efd['markerName']);if(_0x2ca45d){for(const _0x250f77 of _0x2ca45d)_0x250f77['is']('uiElement')&&(_0x3124d3['mapper']['unbindElementFromMarkerName'](_0x250f77,_0x378efd['markerName']),_0x3124d3['writer']['remove'](_0x250f77));}},{'priority':'high'});}}class W extends _0x413935{['afterInit'](){const _0x12dac0=this['editor'];if(!_0x12dac0['plugins']['has']('ListEditing'))return;const _0x4796f3=_0x12dac0['locale'],_0x26f3d8=_0x12dac0['plugins']['get']('TrackChangesEditing'),_0x50b893=_0x12dac0['plugins']['has']('TodoListEditing'),_0x41761e=!!_0x12dac0['config']['get']('list.multiBlock');function _0x5b6900(_0x14b757){return{'type':'format','content':''+c(_0x4796f3,'*Set\x20format:*\x20%0',_0x14b757)};}function _0x38249c(_0x5eab81){return{'type':'format','content':''+c(_0x4796f3,'*Remove\x20format:*\x20%0',_0x5eab81)};}_0x26f3d8['enableDefaultAttributesIntegration']('numberedList'),_0x26f3d8['enableDefaultAttributesIntegration']('bulletedList'),_0x26f3d8['enableDefaultAttributesIntegration']('customNumberedList'),_0x26f3d8['enableDefaultAttributesIntegration']('customBulletedList'),_0x26f3d8['enableDefaultAttributesIntegration']('indentList'),_0x26f3d8['enableDefaultAttributesIntegration']('outdentList'),_0x26f3d8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x26f3d8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x26f3d8['registerBlockAttribute']('listItemId'),_0x26f3d8['registerBlockAttribute']('listType'),_0x26f3d8['registerBlockAttribute']('listIndent'),_0x41761e&&(_0x26f3d8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x26f3d8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50b893&&(_0x26f3d8['enableDefaultAttributesIntegration']('todoList'),_0x26f3d8['enableDefaultAttributesIntegration']('checkTodoList'),_0x26f3d8['registerBlockAttribute']('todoListChecked'),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x34aae9=>{const {data:_0x3db805}=_0x34aae9;if(_0x3db805&&'todoListChecked'==_0x3db805['key'])return{'type':'format','content':_0x3db805['newValue']?c(_0x4796f3,'*Check\x20item*'):c(_0x4796f3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f692f=>{if(_0x4f692f['batch']['isUndo'])return!0x1;let _0x181b02=!0x1;const _0x3f0cae=_0x26f3d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b1f59=>'todoListChecked'===_0x26f3d8['_getAttributeKey'](_0x5b1f59));for(const _0x5d7531 of _0x3f0cae){'todo'!=_0x5d7531['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x26f3d8['_findSuggestions'](_0x5d7531['getFirstRange'](),'attribute')['find'](_0x54d4b4=>'listType'===_0x26f3d8['_getAttributeKey'](_0x54d4b4['suggestion']))||(_0x4f692f['removeMarker'](_0x5d7531['getFirstMarker']()),_0x181b02=!0x0));}return _0x181b02;})),_0x26f3d8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4796f3,'FORMAT_INDENT'));const _0x429eeb={'type':'format','content':''};_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x552f72=>{const {data:_0x21ff28}=_0x552f72;if(!_0x21ff28||'listType'!=_0x21ff28['key'])return;let _0x22911d=_0x552f72['head'];for(;_0x22911d;){if(_0x22911d['data']&&(('listStyle'==_0x22911d['data']['key']||'listMarkerStyle'==_0x22911d['data']['key'])&&(_0x22911d['data']['newValue']&&'default'!=_0x22911d['data']['newValue']||'default'!=_0x22911d['data']['oldValue']&&!_0x21ff28['newValue'])||!_0x41761e&&_0x22911d['data']['key']==u))return _0x429eeb;_0x22911d=_0x22911d['next'];}if(null==_0x21ff28['newValue'])switch(_0x21ff28['oldValue']){case'bulleted':return _0x38249c(c(_0x4796f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38249c(c(_0x4796f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38249c(c(_0x4796f3,'ELEMENT_TODO_LIST'));}switch(_0x21ff28['newValue']){case'bulleted':return _0x5b6900(c(_0x4796f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b6900(c(_0x4796f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b6900(c(_0x4796f3,'ELEMENT_TODO_LIST'));}}),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x155081=>{const {data:_0x77daa8}=_0x155081;if(_0x77daa8&&'listIndent'==_0x77daa8['key'])return null==_0x77daa8['newValue']||null==_0x77daa8['oldValue']&&0x0==_0x77daa8['newValue']?_0x429eeb:void 0x0;}),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x974146=>{if('attribute'!=_0x974146['type'])return;const {data:_0x31bfb8}=_0x974146;if(!_0x31bfb8||'listItemId'!=_0x31bfb8['key'])return;const _0x470302=Te(_0x974146);return'newValue'==_0x470302?{'type':'format','content':c(_0x4796f3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x470302?{'type':'format','content':c(_0x4796f3,'*Split:*\x20list\x20item')}:_0x429eeb;}),_0x12dac0['model']['document']['registerPostFixer'](_0x1d0747=>this['listItemIdFixer'](_0x1d0747)),_0x12dac0['model']['document']['registerPostFixer'](_0x59a327=>this['noTrackChangesFixer'](_0x59a327)),_0x12dac0['model']['document']['on']('change:data',(_0x5d8746,_0x11ac0d)=>{if(_0x11ac0d['isUndo']||!_0x11ac0d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x38408b){if(_0x38408b['batch']['isUndo']||!_0x38408b['batch']['isLocal'])return!0x1;let _0x208866=!0x1;const _0x2a20b2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36bd86=>_0x36bd86['data']&&'listItemId'==_0x36bd86['data']['key'])['filter'](_0x426afb=>_0x426afb['data']['newValue']&&_0x426afb['data']['oldValue']);for(const _0x38d6ef of _0x2a20b2)Te(_0x38d6ef)||(_0x38408b['removeMarker'](_0x38d6ef['getFirstMarker']()),_0x208866=!0x0);return _0x208866;}['noTrackChangesFixer'](_0x4a2caa){if(_0x4a2caa['batch']['isUndo']||!_0x4a2caa['batch']['isLocal'])return!0x1;const _0x568ced=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x568ced['trackChangesCommand']['value'])return!0x1;let _0xd40b3c=!0x1;const _0x5aae36=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e4f17=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2006be=>'attribute'==_0x2006be['type'])['filter'](_0x390800=>_0x5aae36['includes'](_0x390800['attributeKey']));if(0x0==_0x3e4f17['length'])return _0xd40b3c;for(const _0xcf464a of _0x3e4f17){const _0x1ae5ea=_0x568ced['_findSuggestions'](_0xcf464a['range'],'attribute')['filter'](_0xbfa755=>!_0xbfa755['meta']['isNextTo'])['map'](_0x40810f=>_0x40810f['suggestion'])['filter'](_0x44a5c7=>{const _0x1ce483=_0x568ced['_getAttributeKey'](_0x44a5c7);return _0x5aae36['includes'](_0x1ce483);});if(_0x1ae5ea['length']){for(const _0x781b19 of _0x1ae5ea)_0x4a2caa['removeMarker'](_0x781b19['getFirstMarker']());_0xd40b3c=!0x0;}}return _0xd40b3c;}['assureChains'](){const _0x2ab715=this['editor']['plugins']['get']('TrackChangesEditing'),_0x382e14=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ab7a0;const _0x17b8fa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a4a35=>{if(_0x3a4a35['data']['oldRange']||!_0x3a4a35['data']['newRange'])return null;if(!_0x3a4a35['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x18f339}=_0x2ab715['_splitMarkerName'](_0x3a4a35['name']);if(!_0x2ab715['hasSuggestion'](_0x18f339))return null;const _0x16247a=_0x2ab715['getSuggestion'](_0x18f339);return _0x382e14['includes'](_0x16247a['data']['key']);})['map'](_0x568864=>{const {id:_0x3888b6}=_0x2ab715['_splitMarkerName'](_0x568864['name']),_0x4c8c84=_0x2ab715['getSuggestion'](_0x3888b6);return _0x1ab7a0=_0x4c8c84['attributes']['groupId'],_0x4c8c84['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x17b8fa['size'])return;const _0x350f00=_0x2ab715['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33c679=>'attribute'==_0x33c679['type']&&_0x33c679['data']&&_0x382e14['includes'](_0x33c679['data']['key'])&&_0x33c679['attributes']['groupId']!=_0x1ab7a0)['map'](_0x500a6e=>({'listItem':_0x500a6e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x500a6e['attributes']['groupId']})),_0x52727a=new Set();for(const {groupId:_0x34e223,listItem:_0x406437}of _0x350f00)_0x17b8fa['has'](_0x406437)&&_0x52727a['add'](_0x34e223);for(const _0x3bb7b8 of _0x2ab715['getSuggestions']())_0x52727a['has'](_0x3bb7b8['attributes']['groupId'])&&_0x3bb7b8['setAttribute']('groupId',_0x1ab7a0);}['_supportLegacySuggestions'](){const _0x20c2a5=this['editor'],_0x405b59=_0x20c2a5['locale'],_0x3ef7ef=_0x20c2a5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ef7ef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x335427,_0x48f01a){const _0x431da2=[];for(let _0x1e7063 of _0x335427)_0x1e7063['start']['nodeAfter']===_0x1e7063['end']['parent']&&(_0x1e7063=_0x20c2a5['model']['createRange'](_0x20c2a5['model']['createPositionAt'](_0x1e7063['start']['nodeAfter'],0x0))),_0x431da2['push'](_0x1e7063);_0x20c2a5['model']['change'](_0x2999e9=>{const _0xd80ebe=_0x20c2a5['model']['document']['selection'],_0x3048dd=Array['from'](_0xd80ebe['getRanges']())['map'](_0x52459c=>_0x5bdd0a['fromRange'](_0x52459c));_0x2999e9['setSelection'](_0x431da2),_0x20c2a5['commands']['get'](_0x48f01a['commandName'])['refresh'](),_0x48f01a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20c2a5['execute'](_0x48f01a['commandName'],..._0x48f01a['commandParams']),_0x2999e9['setSelection'](_0x3048dd);for(const _0x48fccc of _0x3048dd)_0x48fccc['detach']();});}),_0x3ef7ef['descriptionFactory']['registerElementLabel'](function(_0x3014e5){const _0x59f650=!_0x20c2a5['model']['schema']['isObject'](_0x3014e5),_0x5434ac=_0x3014e5['previousSibling'],_0x2c5c7c=_0x3014e5['nextSibling'],_0x127e7e=_0x3014e5['getAttribute']('listItemId'),_0x4b8a76=!_0x5434ac||_0x5434ac['getAttribute']('listItemId')!==_0x127e7e,_0x5a7d12=!_0x2c5c7c||_0x2c5c7c['getAttribute']('listItemId')!==_0x127e7e;return _0x59f650&&Boolean(_0x127e7e)&&_0x4b8a76&&_0x5a7d12;},_0x3cb82e=>c(_0x405b59,'ELEMENT_LIST_ITEM',_0x3cb82e));}['_registerLegacyDescription'](){const _0x3733f9=this['editor'],_0x491dce=_0x3733f9['locale'];function _0xa1b7f8(_0x19684d){const _0x2ef88e=_0x3733f9['commands']['get']('bulletedList')['value'],_0x10db0e=_0x3733f9['commands']['get']('numberedList')['value'];return'numberedList'===_0x19684d?_0x2ef88e:_0x10db0e;}_0x3733f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d282b){if('formatBlock'!=_0x5d282b['type'])return;const {data:_0x5814c3}=_0x5d282b;if(!_0x5814c3)return;let _0x274b2e,_0x54ddcf,_0x5f13e3,_0x446fe3;switch(_0x5814c3['commandName']){case'bulletedList':_0x5f13e3=_0x5814c3['commandParams'][0x0]['forceValue'],_0x446fe3=_0xa1b7f8(_0x5814c3['commandName']),_0x274b2e=_0x5f13e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x446fe3&&_0x3733f9['config']['get']('list.multiBlock')||(_0x274b2e='*Change\x20to:*\x20%0'),_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f13e3=_0x5814c3['commandParams'][0x0]['forceValue'],_0x446fe3=_0xa1b7f8(_0x5814c3['commandName']),_0x274b2e=_0x5f13e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x446fe3&&_0x3733f9['config']['get']('list.multiBlock')||(_0x274b2e='*Change\x20to:*\x20%0'),_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x274b2e='*Indent:*\x20%0',_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x274b2e=function(_0x50384b){const _0x294d88=_0x50384b['getFirstRange']();let _0x3eb99a=_0x294d88['start']['nodeAfter'];for(;_0x3eb99a&&_0x294d88['containsItem'](_0x3eb99a);){if(_0x3eb99a['getAttribute']('listIndent')>0x0)return!0x1;_0x3eb99a=_0x3eb99a['nextSibling'];}return!0x0;}(_0x5d282b)?c(_0x491dce,'*Format:*\x20remove\x20from\x20%0',c(_0x491dce,function(_0x27975d){return'ELEMENT_'+_0x27975d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d282b))):c(_0x491dce,'*Outdent:*\x20%0',c(_0x491dce,'ELEMENT_LIST_ITEM')),_0x54ddcf={'type':'format','content':_0x274b2e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5814c3['multipleBlocks']&&(_0x274b2e='*Merge:*\x20%0',_0x54ddcf={'type':'deletion','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_LIST_ITEM'))});}return _0x54ddcf;});}}function Te(_0x2b43e4){let _0x411090=_0x2b43e4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x411090;){const _0x431afa=_0x411090['getAttribute']('listItemId');if(!_0x431afa)return!0x1;if(_0x431afa==_0x2b43e4['data']['newValue'])return'newValue';if(_0x431afa==_0x2b43e4['data']['oldValue'])return'oldValue';_0x411090=_0x411090['previousSibling'];}return!0x1;}class Se extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1119=this['editor']['config']['get']('list.properties'),_0x5bdc46=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1119['styles']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listStyle'),_0x5bdc46['registerBlockAttribute']('listStyle')),_0x5f1119['reversed']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listReversed'),_0x5bdc46['registerBlockAttribute']('listReversed')),_0x5f1119['startIndex']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listStart'),_0x5bdc46['registerBlockAttribute']('listStart'));const _0x511341={'type':'format','content':''};_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xbbfdc=this['editor']['locale'];_0x5bdc46['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xbbfdc,'FORMAT_LIST_REVERSED')),_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](_0x4f7336=>{const {data:_0x17ddc5}=_0x4f7336;if(_0x17ddc5&&'listReversed'==_0x17ddc5['key'])return null==_0x17ddc5['newValue']||0x0==_0x17ddc5['newValue']&&null==_0x17ddc5['oldValue']?_0x511341:void 0x0;}),_0x5bdc46['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xbbfdc,'FORMAT_LIST_START')),_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](_0x42a947=>{const {data:_0x20f7c1}=_0x42a947;if(_0x20f7c1&&'listStart'==_0x20f7c1['key'])return null==_0x20f7c1['newValue']||0x1==_0x20f7c1['newValue']&&null==_0x20f7c1['oldValue']?_0x511341:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc41853=>{if(_0xc41853['batch']['isUndo'])return!0x1;let _0xf42db8=!0x1;const _0x5bf18a=_0x5bdc46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20f524=>{const _0x4bde22=_0x5bdc46['_getAttributeKey'](_0x20f524);return'listStart'==_0x4bde22||'listReversed'==_0x4bde22;});for(const _0x503d7d of _0x5bf18a){const _0x4e4e40=_0x503d7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e4e40||'customNumbered'==_0x4e4e40)continue;_0x5bdc46['_findSuggestions'](_0x503d7d['getFirstRange'](),'attribute')['find'](_0xa9eb8c=>'listType'==_0x5bdc46['_getAttributeKey'](_0xa9eb8c['suggestion']))||(_0xc41853['removeMarker'](_0x503d7d['getFirstMarker']()),_0xf42db8=!0x0);}return _0xf42db8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2828e8){const _0x258196=this['editor']['locale'],{data:_0x209820}=_0x2828e8,_0x3e101f={'type':'format','content':''};if(!_0x209820||'listStyle'!=_0x209820['key'])return;if(!_0x209820['oldValue'])return'default'==_0x209820['newValue']?_0x3e101f:{'type':'format','content':''+c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['newValue'])))};if(!_0x209820['newValue']){if('default'==_0x209820['oldValue'])return _0x3e101f;let _0x170ac8=_0x2828e8['head'];for(;_0x170ac8;){if(_0x170ac8['data']&&'listType'==_0x170ac8['data']['key']&&_0x170ac8['data']['newValue'])return _0x3e101f;_0x170ac8=_0x170ac8['next'];}return{'type':'format','content':''+c(_0x258196,'*Remove\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['oldValue'])))};}if('default'!=_0x209820['newValue'])return{'type':'format','content':''+c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['newValue'])))};let _0x595a57=_0x2828e8['head'];for(;_0x595a57;){if(_0x595a57['data']&&'listType'==_0x595a57['data']['key']&&_0x595a57['data']['newValue']&&_0x595a57['data']['oldValue'])return _0x3e101f;_0x595a57=_0x595a57['next'];}return{'type':'format','content':c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,'ELEMENT_'+_0x2828e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x306119=this['editor'],_0x24e8b0=_0x306119['locale'];_0x306119['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaa18b2=>{if('formatBlock'!=_0xaa18b2['type'])return;const {data:_0x536706}=_0xaa18b2;if(!_0x536706)return;let _0x359289,_0x345ec6;switch(_0x536706['commandName']){case'listStyle':_0x359289='*Change\x20to:*\x20%0',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289,c(_0x24e8b0,this['_getTranslationKeyForListStyle'](_0x536706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x359289=_0x536706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289)};break;case'listStart':_0x359289='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289,_0x536706['commandParams'][0x0]['startIndex'])};}return _0x345ec6;});}['_getTranslationKeyForListStyle'](_0x237eca){return'ELEMENT_'+function(_0x2b853d){if(_e['includes'](_0x2b853d))return'bulleted';if(Re['includes'](_0x2b853d))return'numbered';return null;}(_0x237eca)['toUpperCase']()+'_LIST_'+_0x237eca['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x413935{['afterInit'](){const _0x121b1a=this['editor'];_0x121b1a['commands']['get']('emoji')&&_0x121b1a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x413935{static get['requires'](){return[_0x278f9b];}['init'](){const _0x14761e=this['editor'],_0x432ff0=_0x14761e['plugins']['get']('TrackChangesEditing'),_0x34434a=_0x14761e['commands']['get']('enter');_0x432ff0['enableCommand']('enter',()=>{_0x14761e['model']['change'](_0x1b2757=>{const _0x89cd6b=_0x14761e['model']['document']['selection'],_0x4e1878=_0x89cd6b['getFirstPosition'](),_0x1c78f=_0x5bdd0a['fromRange'](_0x89cd6b['getFirstRange']());if(_0x34434a['enterBlock'](_0x1b2757)){const _0x5f47e9=_0x14761e['model']['createPositionAt'](_0x4e1878['parent']['nextSibling'],0x0),_0x53a123=_0x1b2757['createRange'](_0x4e1878,_0x5f47e9);_0x432ff0['markInsertion'](_0x53a123);}else _0x1b2757['setSelection'](_0x1b2757['createRange'](_0x1c78f['end']));_0x1c78f['detach'](),_0x34434a['fire']('afterExecute',{'writer':_0x1b2757});});}),_0x14761e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x14761e,'split'),{'priority':'high'}),_0x14761e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x7cd69,_0x1688de,_0x4aad7b)=>{const _0x310dc0=_0x4aad7b['mapper']['markerNameToElements'](_0x1688de['markerName']);if(_0x310dc0){for(const _0x3ab06c of _0x310dc0)_0x3ab06c['hasClass']('ck-suggestion-marker-split')&&(_0x4aad7b['mapper']['unbindElementFromMarkerName'](_0x3ab06c,_0x1688de['markerName']),_0x4aad7b['writer']['remove'](_0x3ab06c));}},{'priority':'high'}),_0x14761e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x168074,_0x5af8a1,_0x1aae06)=>{_0x1aae06['options']['showSuggestionHighlights']&&Fe(_0x14761e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x168074,_0x5af8a1,_0x1aae06);},{'priority':'high'});}}class Z extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd93af2=this['editor']['plugins']['get']('TrackChangesEditing');_0xd93af2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd93af2['enableCommand']('findNext'),_0xd93af2['enableCommand']('findPrevious'),_0xd93af2['enableCommand']('replace'),_0xd93af2['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f39e6,_0x30e5dd,_0x37fc88={}){const _0x28a5f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f39e6(_0x1608c3=>{let _0x4eda73=('string'==typeof _0x30e5dd?_0x28a5f8['findByTextCallback'](_0x30e5dd,_0x37fc88):_0x30e5dd)(_0x1608c3);Array['isArray'](_0x4eda73)&&(_0x4eda73={'results':_0x4eda73,'searchText':'string'==typeof _0x30e5dd?_0x30e5dd:''});const _0x3a787b=_0x4eda73['results']['filter'](_0x14d247=>!0x1===this['_isInDeletionRange'](_0x14d247,_0x1608c3['item']));return{..._0x4eda73,'results':_0x3a787b};},_0x37fc88);}['_isInDeletionRange'](_0x4a4a25,_0x42f430){const _0x258093=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x42f430,_0x4a4a25['start']),this['editor']['model']['createPositionAt'](_0x42f430,_0x4a4a25['end']));for(const _0x2fc639 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x258093['getIntersection'](_0x2fc639['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x413935{['afterInit'](){const _0x361190=this['editor']['locale'],_0x4d04e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c4e42,commandName:_0x35e7d1}of ro)this['editor']['plugins']['has'](_0x5c4e42)&&(_0x4d04e2['enableDefaultAttributesIntegration'](_0x35e7d1),_0x4d04e2['registerInlineAttribute'](_0x35e7d1));_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x361190,'FORMAT_FONT_SIZE')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x361190,'FORMAT_FONT_FAMILY')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x361190,'FORMAT_FONT_COLOR')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x361190,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d82cb=this['editor'],_0x4ab417=_0x2d82cb['locale'];_0x2d82cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa76023=>{const _0x42d93c=_0x4ab417['t'];if('formatInline'!=_0xa76023['type'])return;const {data:_0x3ef7f6}=_0xa76023;if(null!=_0x3ef7f6){if('fontSize'==_0x3ef7f6['commandName']){const _0x1b0b2a=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x1b0b2a){const _0x2f02d7=_0x42d93c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5800bf=>_0x5800bf['model']==_0x1b0b2a)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20size:*\x20%0',_0x2f02d7)};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3ef7f6['commandName']){const _0x210fb6=_0x3ef7f6['commandParams'][0x0]['value'];return _0x210fb6?{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20family:*\x20%0',_0x210fb6)}:{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3ef7f6['commandName']){const _0x738744=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x738744){const _0x198a6b=_0x37865b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e4626=>_0x1e4626['model']==_0x738744);let _0x3beb9a=_0x738744,_0x3d7837='';return _0x198a6b&&(_0x3beb9a=_0x198a6b['label'],_0x3d7837=_0x42d93c(_0x3beb9a)['toLowerCase']()),{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20color:*\x20%0',_0x3d7837)['trim'](),'color':{'value':_0x738744,'title':_0x3d7837||_0x3beb9a}};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3ef7f6['commandName']){const _0x3262e7=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x3262e7){const _0x49f595=_0x37865b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b2bed=>_0x5b2bed['model']==_0x3262e7);let _0x37b593=_0x3262e7,_0x24e626='';return _0x49f595&&(_0x37b593=_0x49f595['label'],_0x24e626=_0x42d93c(_0x37b593)['toLowerCase']()),{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20background\x20color:*\x20%0',_0x24e626)['trim'](),'color':{'value':_0x3262e7,'title':_0x24e626||_0x37b593}};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x413935{['afterInit'](){const _0x4ead2d=this['editor'],_0x3a5218=_0x4ead2d['plugins']['get']('TrackChangesEditing'),_0x511e9f=_0x4ead2d['commands']['get']('copyFormat'),_0x555921=_0x4ead2d['commands']['get']('pasteFormat');_0x511e9f&&_0x555921&&(_0x3a5218['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a5218['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x16f66b=this['editor'],_0x455319=_0x16f66b['locale'];_0x16f66b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1fd1=>{if('formatBlock'!=_0x5c1fd1['type']&&'formatInline'!=_0x5c1fd1['type'])return;const {data:_0x5c5b43}=_0x5c1fd1;if(_0x5c5b43&&'pasteFormat'===_0x5c5b43['commandName']){const _0x3e7f9e=[],_0x4070fd=_0x5c5b43['commandParams'][0x0];for(const [_0x3e4ff8,_0x2f80c4]of Object['entries'](_0x4070fd))_0x3e7f9e['push'](so(_0x16f66b,_0x3e4ff8,_0x2f80c4));return _0x3e7f9e['length']?{'type':'format','content':c(_0x455319,'*Set\x20format\x20to:*\x20%0',_0x3e7f9e['join'](',\x20'))}:{'type':'format','content':c(_0x455319,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5b2cc1,_0x22d3c4,_0x3c1c87){const _0x3df554=_0x5b2cc1['locale']['t'],_0x1a1892=_0x22d3c4['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b1842=_0x3df554(_0x1a1892['charAt'](0x0)['toUpperCase']()+_0x1a1892['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c1c87)return _0x2b1842;if('fontColor'===_0x22d3c4||'fontBackgroundColor'===_0x22d3c4){const _0x2433cd=_0x37865b(_0x5b2cc1['config']['get']('fontColor.colors'))['find'](_0x201a8a=>_0x201a8a['model']==_0x3c1c87);return _0x2b1842+'\x20('+(_0x2433cd?_0x3df554(_0x2433cd['label'])['toLowerCase']():_0x3c1c87)+')';}if('fontSize'===_0x22d3c4&&isNaN(parseFloat(_0x3c1c87))){const _0x11209f=_0x5b2cc1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5b2cc1['config']['get']('fontSize.options'))['find'](_0x3ffce2=>_0x3ffce2['model']==_0x3c1c87);return _0x2b1842+'\x20('+(_0x11209f?_0x3df554(_0x11209f['title'])['toLowerCase']():_0x3c1c87)+')';}return _0x2b1842+'\x20('+_0x3c1c87+')';}class et extends _0x413935{['_headingOptions'];['afterInit'](){const _0x13d866=this['editor'];if(!_0x13d866['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x13d866['config']['get']('heading.options');const _0x1e617a=_0x13d866['locale'],_0x173307=_0x13d866['plugins']['get']('TrackChangesEditing');_0x173307['enableDefaultAttributesIntegration']('heading');for(const _0x476d55 of this['_headingOptions'])'paragraph'!=_0x476d55['model']&&_0x173307['descriptionFactory']['registerElementLabel'](_0x476d55['model'],_0x22ec22=>{const _0xe08a8a=this['_getHeadingLevel'](_0x476d55['model']);return null!==_0xe08a8a?_0x19fe3c(_0x22ec22,_0xe08a8a):_0x56d1e8(_0x22ec22,_0x476d55['title']);});function _0x19fe3c(_0x57b4fe,_0x5666e0){return c(_0x1e617a,'ELEMENT_HEADING',[_0x57b4fe,_0x5666e0]);}function _0x56d1e8(_0xb4fb93,_0x3831fc){return c(_0x1e617a,'ELEMENT_HEADING_CUSTOM',[_0xb4fb93,_0x3831fc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39895b=this['editor'],_0x34d708=_0x39895b['locale'];function _0x3b82d4(_0x449ad7,_0x3b81ec){return c(_0x34d708,'ELEMENT_HEADING_CUSTOM',[_0x449ad7,_0x3b81ec]);}_0x39895b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353cc6=>{if('formatBlock'!=_0x353cc6['type'])return;const {data:_0x2fedd2}=_0x353cc6;if(_0x2fedd2&&'heading'==_0x2fedd2['commandName']){const _0x56b599=_0x2fedd2['commandParams'][0x0]['value'],_0x14ee39=this['_getHeadingLevel'](_0x56b599);if(null!==_0x14ee39)return{'type':'format','content':c(_0x34d708,'*Change\x20to:*\x20%0',(_0x3738c4=0x1,_0x1bc1ec=_0x14ee39,c(_0x34d708,'ELEMENT_HEADING',[_0x3738c4,_0x1bc1ec])))};const _0x480ecb=this['_headingOptions']['find'](_0x36872c=>_0x36872c['model']===_0x56b599)['title'];return{'type':'format','content':c(_0x34d708,'*Change\x20to:*\x20%0',_0x3b82d4(0x1,_0x480ecb))};}var _0x3738c4,_0x1bc1ec;});}['_getHeadingLevel'](_0x21b001){const _0x1dbb79=_0x21b001['match'](/^heading(\d+)/);if(_0x1dbb79)return _0x1dbb79[0x1];const _0x39c1c8=this['_headingOptions']?.['find'](_0x483304=>_0x483304['model']==_0x21b001);if(_0x39c1c8&&_0x39c1c8['view']){const _0x186b30=_0x39c1c8['view'],_0x364650=(_0x186b30['name']??_0x186b30)['match'](/^h(\d+)/);if(_0x364650)return _0x364650[0x1];}return null;}}class nt extends _0x413935{['afterInit'](){const _0x49c187=this['editor'];if(!_0x49c187['plugins']['has']('HighlightEditing'))return;const _0xa65da7=_0x49c187['plugins']['get']('TrackChangesEditing'),_0x175d4f=_0x49c187['locale'];_0xa65da7['enableDefaultAttributesIntegration']('highlight'),_0xa65da7['registerInlineAttribute']('highlight'),_0xa65da7['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x175d4f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670ce=this['editor'],_0x110dc5=_0x3670ce['locale'];_0x3670ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd813=>{if('formatInline'!=_0x1dd813['type'])return;const {data:_0x53ec09}=_0x1dd813;if(_0x53ec09&&'highlight'==_0x53ec09['commandName']){const _0x2396d4=_0x110dc5['t'],_0x3a928a=_0x53ec09['commandParams'][0x0]['value'];if(_0x3a928a){const _0x46610e=_0x3670ce['config']['get']('highlight.options')['find'](_0x141f1c=>_0x141f1c['model']==_0x3a928a),_0x537333=_0x2396d4(_0x46610e['title'])['toLowerCase']();return{'type':'format','content':c(_0x110dc5,'*Set\x20highlight:*\x20%0',_0x537333),'color':{'value':_0x46610e['color'],'title':_0x46610e['title']}};}return{'type':'format','content':c(_0x110dc5,'*Remove\x20highlight*',c(_0x110dc5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x413935{['afterInit'](){const _0x296535=this['editor'];if(!_0x296535['plugins']['has']('HorizontalLineEditing'))return;_0x296535['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x449b88=_0x296535['plugins']['get']('TrackChangesEditing'),_0x3b6fc0=_0x296535['locale'];_0x449b88['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3731bb=>c(_0x3b6fc0,'ELEMENT_HORIZONTAL_LINE',_0x3731bb)),_0x296535['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x473d6f,{writer:_0x52e6b7,options:_0x3d51bb})=>{if(!_0x3d51bb['showSuggestionHighlights'])return null;const _0x3130aa=_0x52e6b7['createContainerElement']('div'),_0x3252cb=_0x52e6b7['createEmptyElement']('hr');return _0x52e6b7['addClass']('ck-horizontal-line',_0x3130aa),_0x52e6b7['insert'](_0x52e6b7['createPositionAt'](_0x3130aa,0x0),_0x3252cb),_0x3130aa;},'converterPriority':'high'});}}class ot extends _0x413935{['afterInit'](){const _0x24ecc=this['editor'];if(!_0x24ecc['plugins']['has']('HtmlEmbed'))return;const _0x982635=_0x24ecc['plugins']['get']('TrackChangesEditing'),_0x255929=_0x24ecc['locale'];_0x982635['descriptionFactory']['registerElementLabel']('rawHtml',_0x588e35=>c(_0x255929,'ELEMENT_HTML_EMBED',_0x588e35)),_0x982635['enableDefaultAttributesIntegration']('htmlEmbed'),_0x982635['registerBlockAttribute']('value'),_0x982635['descriptionFactory']['registerDescriptionCallback'](_0x9afaee=>{if('attribute'!=_0x9afaee['type'])return;const {data:_0x1fd797}=_0x9afaee;if(_0x1fd797&&'value'==_0x1fd797['key']&&_0x9afaee['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f4c93=c(_0x255929,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x255929,'*Change\x20%0\x20content*',_0x5f4c93)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc45df3=this['editor'],_0xfd5e0=_0xc45df3['locale'];_0xc45df3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ff52=>{if('formatBlock'!=_0x54ff52['type'])return;const {data:_0x1e7381}=_0x54ff52;if(_0x1e7381&&'htmlEmbed'==_0x1e7381['commandName']){const _0x244a72=c(_0xfd5e0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xfd5e0,'*Change\x20%0\x20content*',_0x244a72)};}});}}class rt extends _0x413935{['afterInit'](){const _0x12e577=this['editor'];if(!_0x12e577['plugins']['has']('ImageEditing'))return;const _0x6235d2=_0x12e577['plugins']['get']('TrackChangesEditing'),_0x559ceb=_0x12e577['plugins']['get']('ImageUtils'),_0x1621eb=_0x12e577['locale'];_0x6235d2['enableCommand']('insertImage'),_0x6235d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x2891b8=>c(_0x1621eb,'ELEMENT_IMAGE',_0x2891b8)),_0x6235d2['descriptionFactory']['registerElementLabel']('imageInline',_0x408de9=>c(_0x1621eb,'ELEMENT_INLINE_IMAGE',_0x408de9)),_0x6235d2['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1621eb,'ELEMENT_CAPTION')),_0x12e577['plugins']['has']('ImageUploadEditing')&&_0x6235d2['enableCommand']('uploadImage'),_0x12e577['plugins']['has']('ImageBlockEditing')&&_0x12e577['plugins']['has']('ImageInlineEditing')&&(_0x6235d2['enableCommand']('imageTypeInline',(_0x4fb904,_0x2a839b)=>{const _0x11e7c2=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']);_0x12e577['model']['change'](()=>{_0x6235d2['markBlockFormat'](_0x11e7c2,{'commandName':'imageTypeInline','commandParams':[_0x2a839b]},[],'convertBlockImageToInline');});}),_0x6235d2['enableCommand']('imageTypeBlock',(_0xb55742,_0x145470)=>{_0x12e577['model']['change'](_0x26f611=>{let _0x57fa95=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x52bc57=_0x26f611['createRangeOn'](_0x57fa95);const _0x31ed84=_0xee47ba['fromPosition'](_0x52bc57['start'],'toPrevious'),_0x52da97=_0xee47ba['fromPosition'](_0x52bc57['end'],'toNext');_0x6235d2['forceDefaultExecution'](()=>_0xb55742(_0x145470)),_0x57fa95=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x52bc57=_0x26f611['createRangeOn'](_0x57fa95);const _0x3a544e=_0x26f611['createRange'](_0x31ed84,_0x52da97);_0x31ed84['detach'](),_0x52da97['detach'](),_0x6235d2['markBlockFormat'](_0x57fa95,{'commandName':'imageTypeInline','commandParams':[_0x145470]},[],'convertInlineImageToBlock'),_0x3a544e['start']['isBefore'](_0x52bc57['start'])&&_0x6235d2['markInsertion'](_0x26f611['createRange'](_0x3a544e['start'],_0x52bc57['start']),'convertInlineImageToBlock'),_0x52bc57['end']['isBefore'](_0x3a544e['end'])&&_0x6235d2['markInsertion'](_0x26f611['createRange'](_0x52bc57['end'],_0x3a544e['end']),'convertInlineImageToBlock');});}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x6235d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x564b36])=>{const _0x2e8f91=_0x6235d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4eb872=_0x564b36['start'],_0x3f06ac=_0x564b36['end'];const _0x737805=_0x12e577['model']['schema']['getNearestSelectionRange'](_0x4eb872,'backward'),_0x27d7c2=_0x12e577['model']['schema']['getNearestSelectionRange'](_0x3f06ac,'forward');_0x737805['isCollapsed']&&(_0x4eb872=_0x737805['start']),_0x27d7c2['isCollapsed']&&(_0x3f06ac=_0x27d7c2['end']),_0x2e8f91([_0x12e577['model']['createRange'](_0x4eb872,_0x3f06ac)]);}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f57df),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f57df)),_0x12e577['plugins']['has']('ImageCaptionEditing')&&(_0x6235d2['enableCommand']('toggleImageCaption',(_0x2fffb1,_0x4a25aa)=>{const _0x478305=_0x12e577['plugins']['get']('ImageCaptionUtils');let _0x147453=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x2bf633=_0x478305['getCaptionFromImageModelElement'](_0x147453);_0x12e577['model']['change'](()=>{if(_0x2bf633)return void _0x6235d2['markDeletion'](_0x12e577['model']['createRangeOn'](_0x2bf633));const _0x494ced=_0x559ceb['isBlockImage'](_0x147453);_0x2fffb1(_0x4a25aa),_0x147453=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x2bf633=_0x478305['getCaptionFromImageModelElement'](_0x147453),_0x6235d2['markInsertion'](_0x12e577['model']['createRangeOn'](_0x2bf633),_0x494ced?null:'imageCaption');});}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f57df));const _0x561c1c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x467c3c(_0x19c429,_0x324881){const _0x37daec=_0x561c1c['findIndex'](({type:_0x1099e5,subType:_0x2c9bf3})=>_0x19c429['type']==_0x1099e5&&_0x19c429['subType']==_0x2c9bf3),_0x25ebcd=_0x561c1c['findIndex'](({type:_0x528290,subType:_0x31656b})=>_0x324881['type']==_0x528290&&_0x324881['subType']==_0x31656b);if(_0x37daec<0x0||_0x25ebcd<0x0)return!0x1;const _0x34d148=_0x19c429['getFirstRange'](),_0x15075e=_0x324881['getFirstRange']();if((0x0==_0x37daec||0x1==_0x37daec)&&0x2==_0x25ebcd&&_0x34d148['isIntersecting'](_0x15075e))return!0x0;if(0x2==_0x37daec&&0x3==_0x25ebcd){const _0x5a899b=_0x6235d2['_findSuggestions'](_0x34d148,'insertion')['filter'](({suggestion:_0x464e6d,meta:_0x30899e})=>_0x30899e['isOwn']&&'convertInlineImageToBlock'==_0x464e6d['subType']);if(_0x5a899b['length']>0x1&&_0x15075e['end']['isEqual'](_0x34d148['start']))return!0x0;if(0x1==_0x5a899b['length']&&(_0x34d148['start']['isEqual'](_0x15075e['end'])||_0x34d148['end']['isEqual'](_0x15075e['start'])))return!0x0;}if(0x3==_0x37daec&&0x3==_0x25ebcd&&_0x34d148['start']['isBefore'](_0x15075e['start'])){const _0x44129e=_0x34d148['end']['nodeAfter'],_0x3bf7f6=_0x15075e['start']['nodeBefore'];return _0x559ceb['isBlockImage'](_0x44129e)&&_0x44129e===_0x3bf7f6;}return!0x1;}function _0x2f57df(_0x2cfc02,_0xe2c891){return _0x467c3c(_0x2cfc02,_0xe2c891)?[_0x2cfc02,_0xe2c891]:_0x467c3c(_0xe2c891,_0x2cfc02)?[_0xe2c891,_0x2cfc02]:null;}_0x12e577['plugins']['has']('ImageResize')&&(_0x6235d2['enableDefaultAttributesIntegration']('resizeImage'),_0x6235d2['registerBlockAttribute']('resizedWidth'),_0x6235d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1621eb,'FORMAT_IMAGE_SIZE'))),_0x12e577['plugins']['has']('ImageTextAlternativeEditing')&&(_0x6235d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x6235d2['registerBlockAttribute']('alt')),_0x12e577['plugins']['has']('PictureEditing')&&(_0x6235d2['registerBlockAttribute']('sources'),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x5cfeaf=>{if('attribute'!=_0x5cfeaf['type'])return;const {data:_0x355c4b}=_0x5cfeaf;return _0x355c4b&&'sources'==_0x355c4b['key']?{'type':'format','content':''}:void 0x0;})),_0x12e577['plugins']['has']('ImageSizeAttributes')&&(_0x6235d2['registerBlockAttribute']('width'),_0x6235d2['registerBlockAttribute']('height'),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x193acc=>{if('attribute'!=_0x193acc['type'])return;const {data:_0x37a665}=_0x193acc;return!_0x37a665||'width'!=_0x37a665['key']&&'height'!=_0x37a665['key']?void 0x0:{'type':'format','content':''};})),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x3386a5=>{if(!!_0x561c1c['find'](({type:_0x1a65f3,subType:_0x409ea4})=>_0x3386a5['type']==_0x1a65f3&&_0x3386a5['subType']==_0x409ea4))return _0x3386a5['previous']?{}:void 0x0;}),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x5dbaca=>{if('insertion'==_0x5dbaca['type']||'deletion'==_0x5dbaca['type']){const _0x42cbbe=_0x5dbaca['getContainedElement']();if(_0x42cbbe&&_0x42cbbe['is']('element','caption'))return{'type':'insertion'==_0x5dbaca['type']?'addObject':'removeObject','element':_0x42cbbe,'quantity':0x1};}}),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x3c81f1=>'formatBlock'==_0x3c81f1['type']&&'convertInlineImageToBlock'==_0x3c81f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c81f1['type']&&'convertBlockImageToInline'==_0x3c81f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x2065f0=>{if('attribute'!=_0x2065f0['type'])return;const {data:_0x2e6cb2}=_0x2065f0;if(!_0x2e6cb2||'alt'!=_0x2e6cb2['key'])return;const _0x2743f3=_0x2e6cb2['newValue'];return _0x2743f3?{'type':'format','content':c(_0x1621eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2743f3+'\x22')}:{'type':'format','content':c(_0x1621eb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bb064=this['editor'],_0x1fa876=_0x2bb064['locale'];_0x2bb064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37624c=>{if('formatBlock'!=_0x37624c['type']&&'formatInline'!=_0x37624c['type'])return;const {data:_0x3d1243}=_0x37624c;if(_0x3d1243){if('imageTextAlternative'==_0x3d1243['commandName']){const _0x537f7f=_0x3d1243['commandParams'][0x0]['newValue'];return _0x537f7f?{'type':'format','content':c(_0x1fa876,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x537f7f+'\x22')}:{'type':'format','content':c(_0x1fa876,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d1243['commandName']){const _0x24e9fb=_0x3d1243['commandParams'][0x0]['width'];return _0x24e9fb?{'type':'format','content':c(_0x1fa876,'*Set\x20image\x20width:*\x20%0',_0x24e9fb)}:{'type':'format','content':c(_0x1fa876,'*Reset\x20image\x20width*')};}}});}}class at extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27aa3f=this['editor']['locale'],_0x357183=this['editor']['plugins']['get']('TrackChangesEditing');_0x357183['enableDefaultAttributesIntegration']('replaceImageSource'),_0x357183['registerBlockAttribute']('src'),_0x357183['descriptionFactory']['registerDescriptionCallback'](_0x1cf230=>{if('attribute'!=_0x1cf230['type'])return;const {data:_0x16551a}=_0x1cf230;return _0x16551a&&'src'==_0x16551a['key']?_0x16551a['newValue']&&_0x16551a['oldValue']?{'type':'format','content':c(_0x27aa3f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x559513=this['editor']['plugins']['get']('TrackChangesEditing');_0x559513['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x559513['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x559513['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x559513['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30cde2=this['editor'],_0x32d2a7=_0x30cde2['locale'];_0x30cde2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1a50d=>{if('formatBlock'!=_0xe1a50d['type']&&'formatInline'!=_0xe1a50d['type'])return;const {data:_0x2fe689}=_0xe1a50d;if(!_0x2fe689||'replaceImageSource'!=_0x2fe689['commandName'])return;return{'type':'format','content':c(_0x32d2a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x413935{['afterInit'](){const _0x25f33c=this['editor'];if(!_0x25f33c['plugins']['has']('ImageStyleEditing'))return;const _0x42fe0a=_0x25f33c['plugins']['get']('TrackChangesEditing'),_0x3b1856=_0x25f33c['plugins']['get']('ImageUtils'),_0x5e86ef={};_0x42fe0a['enableCommand']('imageStyle',(_0x338c22,_0x1a9782)=>{const _0xc1a069=_0x25f33c['plugins']['get']('Users')['me'],_0x5eee94=_0x25f33c['commands']['get']('imageStyle');let _0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),_0x50028e=_0x25f33c['model']['createRangeOn'](_0x885e34),_0x54bab6=_0x5eee94['value'];if(_0x54bab6==_0x1a9782['value'])return;const _0x1da384={'commandName':'imageStyle','commandParams':[_0x1a9782],'formatGroupId':_0x57be53()};_0x25f33c['model']['change'](()=>{if(_0x42fe0a['getSuggestions']()['filter'](_0x14e83b=>_0x14e83b['isInContent']&&_0xc1a069==_0x14e83b['author']&&('formatBlock'==_0x14e83b['type']||'formatInline'==_0x14e83b['type'])&&('imageStylePreApply'==_0x14e83b['subType']||'imageStylePostApply'==_0x14e83b['subType'])&&_0x14e83b['getFirstRange']()['isEqual'](_0x50028e))['forEach'](_0x44ad62=>_0x42fe0a['discardSuggestion'](_0x44ad62['head'])),_0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),_0x50028e=_0x25f33c['model']['createRangeOn'](_0x885e34),_0x5eee94['refresh'](),_0x25f33c['commands']['get']('imageTypeInline')['refresh'](),_0x25f33c['commands']['get']('imageTypeBlock')['refresh'](),_0x54bab6=_0x5eee94['value'],_0x54bab6!=_0x1a9782['value'])return _0x3b1856['isInlineImage'](_0x885e34)&&_0x5eee94['shouldConvertImageType'](_0x1a9782['value'],_0x885e34)?(_0x338c22({..._0x1a9782,'setImageSizes':!0x1}),_0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),void _0x42fe0a['markBlockFormat'](_0x885e34,{..._0x1da384,'commandReversedParams':[{'value':_0x54bab6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b1856['isBlockImage'](_0x885e34)?_0x42fe0a['markBlockFormat'](_0x885e34,_0x1da384,[],'imageStylePostApply'):_0x42fe0a['markInlineFormat'](_0x50028e,_0x1da384,'imageStylePostApply'));});});for(const _0x4bfc28 of _0x25f33c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e86ef[_0x4bfc28['name']]=_0x4bfc28['title']['toLowerCase']();_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x6af0c4])=>{_0x3b1856['setImageNaturalSizeAttributes'](_0x6af0c4['getContainedElement']());}),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11cdf0,_0x1344fc)=>{_0x42fe0a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11cdf0,{'commandName':_0x1344fc['commandName'],'commandParams':_0x1344fc['commandReversedParams']});}),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x206af6,_0x4065aa){if(_0x45ecd6(_0x206af6,_0x4065aa))return[_0x206af6,_0x4065aa];if(_0x45ecd6(_0x4065aa,_0x206af6))return[_0x4065aa,_0x206af6];return null;});const _0x3fc5e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45ecd6(_0x4eb2c3,_0x3a2e7e){const _0x3ff2a0=_0x3fc5e8['findIndex'](({type:_0x427f0a,subType:_0x4f2b89})=>_0x4eb2c3['type']==_0x427f0a&&_0x4eb2c3['subType']==_0x4f2b89),_0xd9fb36=_0x3fc5e8['findIndex'](({type:_0x2cfd90,subType:_0xedddba})=>_0x3a2e7e['type']==_0x2cfd90&&_0x3a2e7e['subType']==_0xedddba);if(_0x3ff2a0<0x0||_0xd9fb36<0x0)return!0x1;const _0x11ad68=_0x4eb2c3['getFirstRange'](),_0x44a79b=_0x3a2e7e['getFirstRange']();if((0x0==_0x3ff2a0||0x1==_0x3ff2a0)&&0x2==_0xd9fb36&&_0x11ad68['isIntersecting'](_0x44a79b))return!0x0;if(0x2==_0x3ff2a0&&0x3==_0xd9fb36){const _0x39f828=_0x42fe0a['_findSuggestions'](_0x11ad68,'insertion')['filter'](({suggestion:_0x338215,meta:_0x272464})=>_0x272464['isOwn']&&'convertInlineImageToBlock'==_0x338215['subType']);if(_0x39f828['length']>0x1&&_0x44a79b['end']['isEqual'](_0x11ad68['start']))return!0x0;if(0x1==_0x39f828['length']&&(_0x11ad68['start']['isEqual'](_0x44a79b['end'])||_0x11ad68['end']['isEqual'](_0x44a79b['start'])))return!0x0;}if(0x3==_0x3ff2a0&&0x3==_0xd9fb36&&_0x11ad68['start']['isBefore'](_0x44a79b['start'])){const _0x4f1cd2=_0x11ad68['end']['nodeAfter'],_0x3d3d7b=_0x44a79b['start']['nodeBefore'];return _0x3b1856['isBlockImage'](_0x4f1cd2)&&_0x4f1cd2===_0x3d3d7b;}return!0x1;}_0x25f33c['model']['document']['registerPostFixer'](()=>{let _0x2f84fa=!0x1;const _0x51f2f3=Array['from'](_0x25f33c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bc302,data:_0x538c29}of _0x51f2f3){const {group:_0x401ad5,type:_0x2a7c48,subType:_0x4c5f95,id:_0x6e6450}=_0x42fe0a['_splitMarkerName'](_0x2bc302);if('suggestion'==_0x401ad5&&_0x42fe0a['hasSuggestion'](_0x6e6450)){if('formatBlock'==_0x2a7c48&&('imageStylePreApply'==_0x4c5f95||'imageStylePostApply'==_0x4c5f95)){const _0x331a13=_0x42fe0a['getSuggestion'](_0x6e6450);if(_0x538c29['newRange']){const _0x2bdb8a=_0x331a13['getFirstRange']()['getContainedElement']();if(_0x3b1856['isBlockImage'](_0x2bdb8a))continue;_0x42fe0a['discardSuggestion'](_0x331a13),_0x2f84fa=!0x0;}}if('insertion'==_0x2a7c48&&'imageCaption'==_0x4c5f95&&!_0x538c29['newRange']){const _0x149850=_0x42fe0a['getSuggestion'](_0x6e6450);_0x149850['next']&&_0x149850['next']['isInContent']&&(_0x42fe0a['discardSuggestion'](_0x149850['next']),_0x2f84fa=!0x0);}}}return _0x2f84fa;}),this['_registerLegacyDescription'](_0x5e86ef);}['_registerLegacyDescription'](_0xb5105c){const _0x49e316=this['editor'],_0x2fec43=_0x49e316['locale'];_0x49e316['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fdbff=>{if('formatBlock'!=_0x1fdbff['type']&&'formatInline'!=_0x1fdbff['type'])return;const {data:_0x520eba}=_0x1fdbff;if(!_0x520eba||'imageStyle'!=_0x520eba['commandName'])return;const _0x5c5523=_0x520eba['commandParams'][0x0]['value'];return _0x37c5b3('side'===_0x5c5523?c(_0x2fec43,'FORMAT_SIDE_IMAGE'):_0xb5105c[_0x5c5523]||_0x5c5523);function _0x37c5b3(_0x23b832){return{'type':'format','content':c(_0x2fec43,'*Format:*\x20%0',_0x23b832)};}});}}class ut extends _0x413935{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xbe57af){super(_0xbe57af),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x947f5d=this['editor'],_0x49726e=_0x947f5d['commands']['get']('importWord'),_0x56609d=_0x947f5d['commands']['get']('trackChanges');_0x49726e&&(_0x49726e['on']('execute',(_0x156676,[,_0x442493])=>{this['_trackChangesValueDuringImport']=_0x56609d['value'],_0x442493['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49726e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49726e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x56609d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x947f5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x60046f,_0x729c4b){const {suggestions:_0x3c597f}=_0x729c4b,_0x5c41a1=this['editor']['commands']['get']('trackChanges'),_0x3257ba=_0x5c41a1['value'];this['_trackChangesValueDuringImport']!==_0x3257ba&&(_0x5c41a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x3c597f&&_0x3c597f['forEach'](({id:_0xe8e9e7,type:_0x5d1cb6,author:_0x47d62a,created_at:_0x2c80e1})=>{const _0x1b5b0a={'id':_0xe8e9e7,'type':_0x5d1cb6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47d62a,'createdAt':_0x2c80e1?new Date(_0x2c80e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1b5b0a);});}}class ft extends _0x413935{['afterInit'](){const _0x740aa2=this['editor'],_0x4e4687=_0x740aa2['plugins']['get']('TrackChangesEditing');if(_0x740aa2['plugins']['has']('IndentEditing')&&(_0x4e4687['enableCommand']('indent'),_0x4e4687['enableCommand']('outdent')),_0x740aa2['plugins']['has']('IndentBlock')){for(const _0x366113 of['indentBlock','outdentBlock'])_0x4e4687['enableDefaultAttributesIntegration'](_0x366113);}const _0x21b117=_0x740aa2['locale'];_0x4e4687['registerBlockAttribute']('blockIndent'),_0x4e4687['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x21b117,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1efa9d=this['editor'],_0x218a99=_0x1efa9d['locale'],_0x1cb625=_0x1efa9d['plugins']['get']('TrackChangesEditing');_0x1cb625['descriptionFactory']['registerDescriptionCallback'](_0x26f429=>{if('formatBlock'!=_0x26f429['type'])return;const {data:_0x1b6904}=_0x26f429;if(!_0x1b6904)return;if('indentBlock'!=_0x1b6904['commandName']&&'outdentBlock'!=_0x1b6904['commandName'])return;const _0x222a9a=_0x26f429['getItems']()[0x0],_0x2d36bd=_0x1cb625['descriptionFactory']['getItemLabel'](_0x222a9a);return'indentBlock'==_0x1b6904['commandName']?{'type':'format','content':c(_0x218a99,'*Indent:*\x20%0',_0x2d36bd)}:'outdentBlock'==_0x1b6904['commandName']?{'type':'format','content':c(_0x218a99,'*Outdent:*\x20%0',_0x2d36bd)}:void 0x0;});}}class ht extends _0x413935{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x413935{['afterInit'](){const _0x2c0917=this['editor'];if(!_0x2c0917['plugins']['has']('LinkEditing'))return;const _0x53f280=_0x2c0917['plugins']['get']('TrackChangesEditing'),_0x33102f=_0x2c0917['commands']['get']('link');_0x53f280['enableDefaultAttributesIntegration']('link'),_0x53f280['enableDefaultAttributesIntegration']('unlink'),_0x53f280['registerInlineAttribute']('linkHref');for(const _0x1dc784 of _0x33102f['manualDecorators'])_0x53f280['registerInlineAttribute'](_0x1dc784['id']),_0x53f280['descriptionFactory']['registerAttributeLabel'](_0x1dc784['id'],'link\x20('+_0x1dc784['label']['toLowerCase']()+')');_0x53f280['descriptionFactory']['registerDescriptionCallback'](_0x2bf508=>{if('attribute'!=_0x2bf508['type'])return;const {data:_0xfc15b5}=_0x2bf508;if(!_0xfc15b5||'linkHref'!=_0xfc15b5['key'])return;const _0x296e04=_0xfc15b5['newValue'],_0x417a41=_0x2c0917['locale'];return{'type':'format','content':null==_0x296e04?c(_0x417a41,'*Remove\x20link*'):c(_0x417a41,'*Set\x20link:*\x20%0','\x22'+_0x296e04+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa2d1=this['editor'],_0x3413fb=_0x4fa2d1['locale'];_0x4fa2d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0d4a=>{if('formatInline'!=_0x5e0d4a['type'])return;const {data:_0x43028c}=_0x5e0d4a;if(_0x43028c){if('link'==_0x43028c['commandName']){const _0x1dd50d=_0x43028c['commandParams'][0x0];return{'type':'format','content':c(_0x3413fb,'*Set\x20link:*\x20%0','\x22'+_0x1dd50d+'\x22')};}return'unlink'==_0x43028c['commandName']?{'type':'format','content':c(_0x3413fb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x413935{['afterInit'](){const _0x44e837=this['editor'],_0x493744=_0x44e837['locale'];if(!_0x44e837['plugins']['has']('LegacyListEditing'))return;const _0x1dcb16=_0x44e837['plugins']['get']('TrackChangesEditing'),_0x41e174=_0x44e837['plugins']['has']('LegacyTodoListEditing');function _0x1b6a18(_0x1ecec0){return()=>{const _0x6c1fae=_0x44e837['model']['document']['selection'],_0x28e659=_0x44e837['commands']['get'](_0x1ecec0);if(_0x28e659['value'])return void _0x44e837['execute']('paragraph',{});const _0x31a461=_0x1ecec0['slice'](0x0,-0x4),_0x24f48a=function(_0xf4b153,_0x470f18,_0x73dea2){let _0x3ed4eb=Array['from'](_0xf4b153)['filter'](_0xe5ae91=>function(_0x4ffd18,_0x1a3f7a){return _0x1a3f7a['checkChild'](_0x4ffd18['parent'],'listItem')&&!_0x1a3f7a['isObject'](_0x4ffd18);}(_0xe5ae91,_0x73dea2));_0x3ed4eb=_0x3ed4eb['filter'](_0x1fd1d5=>!_0x1fd1d5['is']('element','listItem')||_0x1fd1d5['getAttribute']('listType')!=_0x470f18);const _0x32c287=new Set();for(const _0x58e0a5 of _0x3ed4eb)_0x58e0a5['is']('element','listItem')?_0x32c287['add'](Le(_0x58e0a5)):_0x32c287['add'](_0x58e0a5);return Array['from'](_0x32c287);}(_0x6c1fae['getSelectedBlocks'](),_0x31a461,_0x44e837['model']['schema']);_0x44e837['model']['change'](()=>{for(const _0x486d78 of _0x24f48a)_0x1dcb16['markBlockFormat'](_0x486d78,{'commandName':_0x1ecec0,'commandParams':[{'forceValue':!_0x28e659['value']}],'formatGroupId':'blockName'},Ee(_0x486d78));});};}function _0x4b1544(_0x2b8c32){return()=>{const _0x9e2ee4=function(_0x500a91){let _0x5c5ce0=Array['from'](_0x500a91);const _0x304ad8=_0x5c5ce0['findIndex'](_0x1a3e89=>'listItem'!=_0x1a3e89['name']);return _0x304ad8>-0x1&&(_0x5c5ce0=_0x5c5ce0['slice'](0x0,_0x304ad8)),_0x5c5ce0;}(_0x44e837['model']['document']['selection']['getSelectedBlocks']()),_0x1802e6=_0x44e837['model']['createRange'](_0x44e837['model']['createPositionAt'](_0x9e2ee4[0x0],'before'),_0x44e837['model']['createPositionAt'](_0x9e2ee4[_0x9e2ee4['length']-0x1],'end'));_0x44e837['model']['change'](()=>{_0x1dcb16['markBlockFormat'](_0x1802e6,{'commandName':_0x2b8c32,'commandParams':[],'formatGroupId':'listIndent'},function(_0x21f3a5){const _0x4c8487=new Set();for(const _0x373392 of _0x21f3a5){let _0x2fc9c6=_0x373392['nextSibling'];for(;_0x2fc9c6&&_0x2fc9c6['getAttribute']('listIndent')>_0x373392['getAttribute']('listIndent');)_0x4c8487['add'](_0x2fc9c6),_0x2fc9c6=_0x2fc9c6['nextSibling'];}return Array['from'](_0x4c8487);}(_0x9e2ee4));});};}_0x1dcb16['enableCommand']('numberedList',_0x1b6a18('numberedList')),_0x1dcb16['enableCommand']('bulletedList',_0x1b6a18('bulletedList')),_0x41e174&&_0x1dcb16['enableCommand']('todoList',_0x1b6a18('todoList')),_0x1dcb16['enableCommand']('indentList',_0x4b1544('indentList')),_0x1dcb16['enableCommand']('outdentList',_0x4b1544('outdentList')),_0x41e174&&_0x1dcb16['enableCommand']('checkTodoList',()=>{const _0x320e4c=_0x44e837['commands']['get']('checkTodoList'),_0x5234fa=Array['from'](_0x320e4c['_selectedElements']);_0x5234fa['filter'](_0x4023a7=>_0x4023a7['getAttribute']('todoListChecked')!=_0x320e4c['value']),_0x44e837['model']['change'](()=>{for(const _0x1cab84 of _0x5234fa)_0x1dcb16['markBlockFormat'](_0x1cab84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x320e4c['value']}]});});}),_0x1dcb16['descriptionFactory']['registerElementLabel']('listItem',_0x3830f9=>c(_0x493744,'ELEMENT_LIST_ITEM',_0x3830f9)),_0x1dcb16['descriptionFactory']['registerDescriptionCallback'](_0x25672b=>{if('formatBlock'!=_0x25672b['type']&&'formatInline'!=_0x25672b['type'])return;const {data:_0x49e9b1}=_0x25672b;if(_0x49e9b1){if('numberedList'==_0x49e9b1['commandName']||'bulletedList'==_0x49e9b1['commandName']||'todoList'==_0x49e9b1['commandName'])switch(_0x49e9b1['commandName']['replace']('List','')){case'bulleted':return _0x4f9392(c(_0x493744,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f9392(c(_0x493744,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f9392(c(_0x493744,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49e9b1['commandName'])return{'type':'format','content':c(_0x493744,'*Indent:*\x20%0',c(_0x493744,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49e9b1['commandName'])return{'type':'format','content':c(_0x493744,'*Outdent:*\x20%0',c(_0x493744,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49e9b1['commandName'])return _0x49e9b1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x493744,'*Check\x20item*')}:{'type':'format','content':c(_0x493744,'*Uncheck\x20item*')};}function _0x4f9392(_0x51221b){return{'type':'format','content':c(_0x493744,'*Change\x20to:*\x20%0',_0x51221b)};}});}}function Le(_0x1ceed8){const _0xf2627e=_0x1ceed8['getAttribute']('listIndent');if(0x0==_0xf2627e)return _0x1ceed8;let _0x138cf3=_0x1ceed8;for(;_0x1ceed8['previousSibling']&&_0x1ceed8['previousSibling']['is']('element','listItem');){const _0x498276=_0x1ceed8['previousSibling']['getAttribute']('listIndent');if(_0x498276==_0xf2627e)_0x138cf3=_0x1ceed8['previousSibling'];else{if(_0x498276<_0xf2627e)break;}_0x1ceed8=_0x1ceed8['previousSibling'];}return _0x138cf3;}function Ee(_0x59b126){const _0x41c529=[];if(_0x59b126['is']('element','listItem')&&_0x59b126['getAttribute']('listIndent')>0x0){let _0x234faf=_0x59b126['nextSibling'];for(;_0x234faf&&'listItem'==_0x234faf['name']&&_0x234faf['getAttribute']('listIndent')==_0x59b126['getAttribute']('listIndent');)_0x41c529['push'](_0x234faf),_0x234faf=_0x234faf['nextSibling'];}return _0x41c529;}class Q extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d5f55=this['editor']['config']['get']('list.properties'),_0x3f3e07=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d5f55['styles']&&_0x3f3e07['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d5f55['reversed']&&_0x3f3e07['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d5f55['startIndex']&&_0x3f3e07['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3f3e07['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23b437,_0x20a226={}){const _0x562c93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd604=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x562c93['markMultiRangeBlockFormat'](_0x5dd604,{'commandName':'listStyle','commandParams':[{'type':_0x20a226['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x313b88,_0x340572={}){const _0x4c6d82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7125=this['_getSuggestionBlocks'](_0x10955b=>_0x10955b['is']('element','listItem')&&'numbered'===_0x10955b['getAttribute']('listType'));if(_0x4d7125['length']<0x1)return;const _0x905662=_0x4d7125['map'](_0x3d1c35=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d1c35,'before'),this['editor']['model']['createPositionAt'](_0x3d1c35,0x0)));this['editor']['model']['change'](()=>{_0x4c6d82['markMultiRangeBlockFormat'](_0x905662,{'commandName':'listReversed','commandParams':[{'reversed':_0x340572['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x45edbd,_0xe7c70b={}){const _0x370483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b9a21=this['_getSuggestionBlocks'](_0x3e8924=>_0x3e8924['is']('element','listItem')&&'numbered'===_0x3e8924['getAttribute']('listType'));if(_0x9b9a21['length']<0x1)return;const _0x174790=_0x9b9a21['map'](_0xf24040=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf24040,'before'),this['editor']['model']['createPositionAt'](_0xf24040,0x0)));this['editor']['model']['change'](()=>{_0x370483['markMultiRangeBlockFormat'](_0x174790,{'commandName':'listStart','commandParams':[{'startIndex':_0xe7c70b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20ef07){if('formatBlock'!=_0x20ef07['type']&&'formatInline'!=_0x20ef07['type'])return;const _0x226070=this['editor']['locale'],{data:_0x5957b2}=_0x20ef07;if(!_0x5957b2)return;let _0x2469cb,_0x5469d5;switch(_0x5957b2['commandName']){case'listStyle':_0x2469cb='*Change\x20to:*\x20%0',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb,c(_0x226070,this['_getTranslationKeyForListStyle'](_0x5957b2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2469cb=_0x5957b2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb)};break;case'listStart':_0x2469cb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb,_0x5957b2['commandParams'][0x0]['startIndex'])};}return _0x5469d5;}['_getSuggestionBlocksForListStyle'](){const _0xe65c4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e162e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e162e[0x0]?.['is']('element','listItem')&&_0x1e162e['unshift'](..._0xe65c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e162e[_0x1e162e['length']-0x1]?.['is']('element','listItem')&&_0x1e162e['push'](..._0xe65c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e162e=[...new Set(_0x1e162e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e162e=_0x1e162e['filter'](_0x2c562d=>_0x2c562d['is']('element','listItem'))),_0x1e162e;}['_getSuggestionBlocks'](_0x1a4903){const _0x265bc2=this['editor']['plugins']['get']('LegacyListUtils');let _0x354989=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1a4903)['map'](_0x1dcce0=>{const _0x4763ef=this['editor']['model']['createPositionAt'](_0x1dcce0,0x0);return[..._0x265bc2['getSiblingNodes'](_0x4763ef,'backward'),..._0x265bc2['getSiblingNodes'](_0x4763ef,'forward')];})['flat']();return _0x354989=[...new Set(_0x354989)],_0x354989;}['_getTranslationKeyForListStyle'](_0x4cec02){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4cec02)||'default')['toUpperCase']()+'_LIST_'+_0x4cec02['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x413935{['afterInit'](){const _0x3cc53e=this['editor'];if(!_0x3cc53e['plugins']['has']('MediaEmbedEditing'))return;const _0x48d07a=_0x3cc53e['plugins']['get']('TrackChangesEditing'),_0x32259a=_0x3cc53e['locale'];_0x48d07a['enableCommand']('mediaEmbed'),_0x48d07a['descriptionFactory']['registerElementLabel']('media',_0x50dda0=>c(_0x32259a,'ELEMENT_MEDIA',_0x50dda0)),_0x3cc53e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c09de,{writer:_0x512a90,options:_0x1b9348})=>{if(_0x1b9348['showSuggestionHighlights'])return _0x512a90['createEmptyElement']('div');},'converterPriority':'high'}),_0x3cc53e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3702bd,_0x5c440a,_0xe84403)=>{_0xe84403['options']['showSuggestionHighlights']&&_0x3702bd['stop']();},{'priority':'high'});}}class pt extends _0x413935{['afterInit'](){const _0x8d130d=this['editor'];_0x8d130d['plugins']['has']('MentionEditing')&&_0x8d130d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x413935{['afterInit'](){const _0x5ae513=this['editor'];if(!_0x5ae513['plugins']['has']('MergeFieldsEditing'))return;const _0x13420b=_0x5ae513['plugins']['get']('TrackChangesEditing'),_0xf784f2=_0x5ae513['locale'];_0x13420b['enableCommand']('insertMergeField'),_0x13420b['enableCommand']('insertMergeFieldBlock'),_0x13420b['enableCommand']('insertMergeFieldImage'),_0x13420b['descriptionFactory']['registerElementLabel']('mergeField',_0xdee3e0=>c(_0xf784f2,'ELEMENT_MERGE_FIELD',_0xdee3e0)),_0x13420b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x586813=>c(_0xf784f2,'ELEMENT_MERGE_FIELD',_0x586813)),_0x13420b['descriptionFactory']['registerDescriptionCallback'](_0x4ea9cf=>{if('insertion'!=_0x4ea9cf['type']&&'deletion'!=_0x4ea9cf['type'])return;const _0x1c868b=_0x4ea9cf['getContainedElement']();if(null==_0x1c868b)return;const _0x153ba7=_0x5ae513['plugins']['get']('MergeFieldsEditing');let _0x2c85b8;switch(_0x153ba7['getMergeFieldType'](_0x1c868b)){case null:return;case'image':{const _0x53b228=_0x153ba7['unwrapAffixes'](_0x1c868b['getAttribute']('src'));_0x2c85b8=_0x153ba7['getLabel'](_0x53b228)||_0x53b228;break;}default:{const _0x2599c6=_0x1c868b['getAttribute']('id');_0x2c85b8=_0x153ba7['getLabel'](_0x2599c6)||_0x2599c6;break;}}return'insertion'==_0x4ea9cf['type']?{'type':'insertion','content':c(_0xf784f2,'*Insert:*\x20%0','\x22'+_0x2c85b8+'\x22\x20'+c(_0xf784f2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf784f2,'*Remove:*\x20%0','\x22'+_0x2c85b8+'\x22\x20'+c(_0xf784f2,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x413935{['afterInit'](){const _0x9d5830=this['editor'],_0x3497a4=_0x9d5830['plugins']['get']('TrackChangesEditing');_0x9d5830['plugins']['has']('MultiLevelList')&&(_0x3497a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3497a4['registerBlockAttribute']('listMarkerStyle'),_0x3497a4['descriptionFactory']['registerDescriptionCallback'](_0x30d851=>this['handleDescriptions'](_0x30d851)));}['handleDescriptions'](_0x4f0954){const _0x578d27=this['editor']['locale'],{data:_0x5a23d3}=_0x4f0954,_0x4a5f94={'type':'format','content':''};if(_0x5a23d3&&'listMarkerStyle'==_0x5a23d3['key']){if(!_0x5a23d3['oldValue'])return{'type':'format','content':c(_0x578d27,'*Set\x20format:*\x20%0',c(_0x578d27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a23d3['newValue']+')'};if(!_0x5a23d3['newValue']){let _0x5e038e=_0x4f0954['head'];for(;_0x5e038e;){if(_0x5e038e['data']&&'listType'==_0x5e038e['data']['key']&&_0x5e038e['data']['newValue'])return _0x4a5f94;_0x5e038e=_0x5e038e['next'];}return{'type':'format','content':c(_0x578d27,'*Remove\x20format:*\x20%0',c(_0x578d27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a23d3['oldValue']+')'};}}}}class bt extends _0x413935{['afterInit'](){const _0x5a9988=this['editor'];if(!_0x5a9988['plugins']['has']('PageBreakEditing'))return;_0x5a9988['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x539523=_0x5a9988['plugins']['get']('TrackChangesEditing'),_0xbf8503=_0x5a9988['locale'];_0x539523['descriptionFactory']['registerElementLabel']('pageBreak',_0x514cae=>c(_0xbf8503,'ELEMENT_PAGE_BREAK',_0x514cae));}}class yt extends _0x413935{['afterInit'](){const _0x7d70f8=this['editor'];if(!_0x7d70f8['plugins']['has']('Paragraph'))return;const _0x517859=_0x7d70f8['locale'],_0x2c183c=_0x7d70f8['plugins']['get']('TrackChangesEditing');_0x2c183c['descriptionFactory']['registerElementLabel']('paragraph',_0x4f7015=>c(_0x517859,'ELEMENT_PARAGRAPH',_0x4f7015)),_0x2c183c['enableDefaultAttributesIntegration']('paragraph'),_0x2c183c['enableCommand']('insertParagraph'),_0x7d70f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x7d70f8),{'priority':'highest'}),_0x7d70f8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e183b,_0x4ebb5e,_0x212945)=>{_0x212945['options']['showSuggestionHighlights']&&nr(_0x7d70f8,{'showActiveMarker':!0x1})(_0x3e183b,_0x4ebb5e,_0x212945);},{'priority':'highest'});const _0x4a647f=_0x2c183c['descriptionFactory'];_0x4a647f['registerDescriptionCallback'](_0x2d83e3=>{if('insertion'!==_0x2d83e3['type'])return;const {start:_0x2e6f05,end:_0x1a7574}=_0x2d83e3['getFirstRange']();if(!_0x2e6f05['isTouching'](_0x1a7574)||!_0x2e6f05['nodeAfter'])return;const _0x585feb=_0x7d70f8['model']['schema'],_0x1f3f4b=_0x2e6f05['nodeAfter'];return _0x585feb['isBlock'](_0x1f3f4b)&&!_0x585feb['isLimit'](_0x1f3f4b)&&_0x585feb['checkChild'](_0x1f3f4b,'$text')?{'type':'insertion','content':c(_0x517859,'*Insert:*\x20%0',_0x4a647f['getItemLabel'](_0x1f3f4b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41aac9=this['editor'],_0x2c793c=_0x41aac9['locale'];_0x41aac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e885=>{if('formatBlock'!=_0x43e885['type'])return;const {data:_0x22b22a}=_0x43e885;return _0x22b22a&&'paragraph'==_0x22b22a['commandName']?{'type':'format','content':c(_0x2c793c,'*Change\x20to:*\x20%0',c(_0x2c793c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xfd52b6,{showActiveMarker:_0x56421d=!0x0}={}){return(_0x1c07dd,_0x182933,_0x3ae7c2)=>{const _0x3d8a3b=_0xfd52b6['plugins']['get']('TrackChangesEditing'),_0x3c28cf=_0x182933['markerRange']['start'],_0x7107a7=_0x182933['markerRange']['end'],_0x559a63=_0xfd52b6['model']['schema'];if(!_0x3c28cf['isTouching'](_0x7107a7)||!_0x3c28cf['nodeAfter'])return;const _0x1ea3b9=_0x3c28cf['nodeAfter'];if(_0x559a63['isBlock'](_0x1ea3b9)&&!_0x559a63['isLimit'](_0x1ea3b9)&&_0x559a63['checkChild'](_0x1ea3b9,'$text')){if(!_0x3ae7c2['consumable']['consume'](_0x182933['markerRange'],_0x1c07dd['name']))return;const {id:_0x326a6e,authorId:_0x46f0d2}=_0x3d8a3b['_splitMarkerName'](_0x182933['markerName']),_0x40bca3=_0x3ae7c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x326a6e,'data-author-id':_0x46f0d2}),_0xca7b47=_0x3ae7c2['mapper']['toViewPosition'](_0x7107a7);_0x56421d&&_0x3d8a3b['activeMarkers']['includes'](_0x182933['markerName'])&&_0x3ae7c2['writer']['addClass']('ck-suggestion-marker--active',_0x40bca3),_0x3ae7c2['writer']['insert'](_0xca7b47,_0x40bca3),_0x3ae7c2['mapper']['bindElementToMarker'](_0x40bca3,_0x182933['markerName']);}};}class St extends _0x413935{['afterInit'](){const _0x19b71a=this['editor'];_0x19b71a['commands']['get']('replaceSource')&&_0x19b71a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x413935{['afterInit'](){const _0x27fc38=this['editor'];if(!_0x27fc38['plugins']['has']('RemoveFormatEditing'))return;_0x27fc38['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4d17=this['editor'];_0x1b4d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47eb2a=>{if('formatBlock'!=_0x47eb2a['type']&&'formatInline'!=_0x47eb2a['type'])return;const {data:_0x53f0c6}=_0x47eb2a;return _0x53f0c6&&'removeFormat'==_0x53f0c6['commandName']?{'type':'format','content':c(_0x1b4d17['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x413935{['afterInit'](){const _0xab68ef=this['editor'];if(!_0xab68ef['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a98c6=_0xab68ef['plugins']['get']('TrackChangesEditing');_0x1a98c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a98c6['enableCommand']('goToNextRestrictedEditingException');const _0x26c0cc=_0xab68ef['plugins']['get']('RestrictedEditingModeEditing');_0x26c0cc['enableCommand']('trackChanges'),_0x26c0cc['enableCommand']('acceptSuggestion'),_0x26c0cc['enableCommand']('discardSuggestion'),_0x26c0cc['enableCommand']('acceptAllSuggestions'),_0x26c0cc['enableCommand']('discardAllSuggestions'),_0x26c0cc['enableCommand']('acceptSelectedSuggestions'),_0x26c0cc['enableCommand']('discardSelectedSuggestions');}}class At extends _0x413935{['afterInit'](){const _0x54d560=this['editor'];if(!_0x54d560['plugins']['has']('ShiftEnter'))return;const _0x11f699=_0x54d560['plugins']['get']('TrackChangesEditing');_0x11f699['enableCommand']('shiftEnter'),_0x54d560['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54d560),{'priority':'high'}),_0x54d560['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54d560),{'priority':'high'}),_0x54d560['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d3a81,_0x77fcfc,_0x29d3ae)=>{_0x29d3ae['options']['showSuggestionHighlights']&&je(_0x54d560,{'showActiveMarker':!0x1})(_0x2d3a81,_0x77fcfc,_0x29d3ae);}),_0x11f699['descriptionFactory']['registerElementLabel']('softBreak',_0x4f2194=>c(_0x54d560['locale'],'ELEMENT_LINE_BREAK',_0x4f2194));}}function je(_0x5c29e8,{showActiveMarker:_0x280e89=!0x0}={}){return(_0x252a41,_0x1a0b8d,_0x550777)=>{const _0xec2fcf=_0x5c29e8['plugins']['get']('TrackChangesEditing');if(!_0x550777['consumable']['test'](_0x1a0b8d['markerRange'],_0x252a41['name']))return;const _0x3ef3ae=_0x5c29e8['model'];for(const _0x5c96f2 of _0x1a0b8d['markerRange']['getItems']()){if(!_0x5c96f2['is']('element','softBreak'))continue;const _0x51530e='deletion'==_0x1a0b8d['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2e33fe,authorId:_0x39fff4}=_0xec2fcf['_splitMarkerName'](_0x1a0b8d['markerName']),_0x51794f=_0x550777['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51530e,'data-suggestion':_0x2e33fe,'data-author-id':_0x39fff4}),_0x46bd00=_0x550777['mapper']['toViewPosition'](_0x3ef3ae['createPositionBefore'](_0x5c96f2));_0x280e89&&_0xec2fcf['activeMarkers']['includes'](_0x1a0b8d['markerName'])&&_0x550777['writer']['addClass']('ck-suggestion-marker--active',_0x51794f),_0x550777['writer']['insert'](_0x46bd00,_0x51794f),_0x550777['mapper']['bindElementToMarker'](_0x51794f,_0x1a0b8d['markerName']);}};}class _t extends _0x413935{['afterInit'](){const _0x5c3aa6=this['editor'],_0xbbd552=_0x5c3aa6['model'],_0x4178c8=_0x5c3aa6['locale'];if(!_0x5c3aa6['plugins']['has']('StandardEditingModeEditing'))return;const _0x41fa18=_0x5c3aa6['plugins']['get']('TrackChangesEditing'),_0x297a36='restrictedEditingException',_0xa94e4a=_0x5c3aa6['commands']['get'](_0x297a36);_0x41fa18['enableCommand'](_0x297a36,(_0x57af8f,_0x855d4d={})=>{const _0x12475a=_0xbbd552['document']['selection'];if(_0x12475a['isCollapsed'])return void _0x57af8f(_0x855d4d);const _0x131adf=void 0x0!==_0x855d4d['forceValue']?_0x855d4d['forceValue']:!_0xa94e4a['value'];_0xbbd552['change'](()=>{const _0x422ee5=Array['from'](_0x12475a['getRanges']());for(const _0xf9ea5e of _0x422ee5){const _0x5cb307=_0x131adf?[_0xf9ea5e]:io(_0x297a36,_0xf9ea5e,_0xbbd552);for(const _0x45c282 of _0x5cb307)_0x41fa18['markInlineFormat'](_0x45c282,{'commandName':_0x297a36,'commandParams':[{'forceValue':_0x131adf}]});}});}),_0x41fa18['descriptionFactory']['registerDescriptionCallback'](_0x1f6121=>{if('formatBlock'!=_0x1f6121['type']&&'formatInline'!=_0x1f6121['type'])return;const {data:_0x5c8f21}=_0x1f6121;return _0x5c8f21&&_0x5c8f21['commandName']==_0x297a36?_0x5c8f21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4178c8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4178c8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x413935{['afterInit'](){const _0x47cbfe=this['editor'];if(!_0x47cbfe['plugins']['has']('Style')||!_0x47cbfe['plugins']['has']('DataSchema'))return;const _0x5500ed=_0x47cbfe['plugins']['get']('TrackChangesEditing'),_0x36dce7=_0x47cbfe['locale'],_0x1cb629=_0x47cbfe['config']['get']('style')||{},_0x422e76=_0x47cbfe['plugins']['get']('GeneralHtmlSupport'),_0x74f62e=_0x47cbfe['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47cbfe['plugins']['get']('DataSchema'),_0x1cb629['definitions']);_0x5500ed['enableDefaultAttributesIntegration']('style');const _0x3e75ba=new Set();for(const _0x21ff9b of _0x74f62e['block']){const _0x52d8d1=_0x422e76['getGhsAttributeNameForElement'](_0x21ff9b['element']);_0x3e75ba['add'](_0x52d8d1);}const _0x1ca29f=new Set();for(const _0x2ed300 of _0x74f62e['inline']){const _0x432c71=_0x422e76['getGhsAttributeNameForElement'](_0x2ed300['element']);_0x1ca29f['add'](_0x432c71);for(const _0x2abf72 of _0x2ed300['ghsAttributes'])_0x1ca29f['add'](_0x2abf72);}for(const _0x13af58 of _0x3e75ba)_0x5500ed['registerBlockAttribute'](_0x13af58),_0x5500ed['descriptionFactory']['registerAttributeLabel'](_0x13af58,c(_0x36dce7,'FORMAT_STYLE'));for(const _0x2d37c6 of _0x1ca29f)_0x5500ed['registerInlineAttribute'](_0x2d37c6),_0x5500ed['descriptionFactory']['registerAttributeLabel'](_0x2d37c6,c(_0x36dce7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20e20a=this['editor'],_0x2f165e=_0x20e20a['locale'];_0x20e20a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e4b=>{if('formatBlock'!=_0x9e4b['type']&&'formatInline'!=_0x9e4b['type'])return;const {data:_0x1ffe1e}=_0x9e4b;return _0x1ffe1e&&'style'===_0x1ffe1e['commandName']?_0x1ffe1e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f165e,'*Set\x20format:*\x20%0',_0x1ffe1e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2f165e,'*Remove\x20format:*\x20%0',_0x1ffe1e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x413935{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x104f70){super(_0x104f70),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1deb67=this['editor'],_0x2f9c11=_0x1deb67['model']['document']['selection'];if(!_0x1deb67['plugins']['has']('TableEditing'))return;const _0x4750ea=_0x1deb67['locale'],_0x1b2983=_0x1deb67['plugins']['get']('TrackChangesEditing'),_0xf61b2e=_0x1deb67['plugins']['get']('TableUtils');_0x1b2983['descriptionFactory']['registerElementLabel']('table',_0xeb3fd1=>c(_0x4750ea,'ELEMENT_TABLE',_0xeb3fd1)),this['_setupColumnsRowsFixing'](),_0x1b2983['enableCommand']('insertTable'),_0x1b2983['enableCommand']('selectTableRow'),_0x1b2983['enableCommand']('selectTableColumn');for(const _0x5057ed of['insertTableRowAbove','insertTableRowBelow']){const _0x108d9c=_0x1deb67['commands']['get'](_0x5057ed);_0x1b2983['enableCommand'](_0x5057ed,_0x2d4e5a=>{_0x1deb67['model']['change'](_0x3229d5=>{_0x2d4e5a();const _0x549f9c='above'===_0x108d9c['order'],_0x43e12b=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x1bc32a=_0xf61b2e['getRowIndexes'](_0x43e12b),_0x404177=_0x549f9c?_0x1bc32a['first']-0x1:_0x1bc32a['last']+0x1,_0x358b1e=_0x43e12b[0x0]['findAncestor']('table'),_0x3b279a=_0xf61b2e['createTableWalker'](_0x358b1e,{'startRow':_0x404177,'endRow':_0x404177}),_0x761a41=Array['from'](_0x3b279a)['map'](_0x20d60a=>_0x3229d5['createRangeOn'](_0x20d60a['cell']));_0x1b2983['markMultiRangeInsertion'](_0x761a41,'tableRow');});});}for(const _0x2f4fe9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f42c5=_0x1deb67['commands']['get'](_0x2f4fe9);_0x1b2983['enableCommand'](_0x2f4fe9,_0x417192=>{_0x1deb67['model']['change'](_0x383140=>{_0x417192();const _0xa57ec2='left'===_0x5f42c5['order'],_0x365875=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x7a4a82=_0xf61b2e['getColumnIndexes'](_0x365875),_0x1c55fe=_0xa57ec2?_0x7a4a82['first']-0x1:_0x7a4a82['last']+0x1,_0x2e593e=_0x365875[0x0]['findAncestor']('table'),_0x1f363e=_0xf61b2e['createTableWalker'](_0x2e593e,{'startRow':0x0,'column':_0x1c55fe,'includeAllSlots':!0x1}),_0x33e6e5=Array['from'](_0x1f363e)['map'](_0x46f056=>_0x383140['createRangeOn'](_0x46f056['cell']));_0x1b2983['markMultiRangeInsertion'](_0x33e6e5,'tableColumn');});});}for(const _0x3737ba of['removeTableRow','removeTableColumn']){const _0xb51a2e=_0x3737ba['substr'](0xb),_0x3b63e8=_0xb51a2e['toLowerCase'](),_0x27d7f6=_0x3b63e8['substr'](0x0,0x3)+'span',_0x50a064='table'+_0xb51a2e,_0x535d24='min'+_0xb51a2e,_0x465b0c='max'+_0xb51a2e;_0x1b2983['enableCommand'](_0x3737ba,()=>{_0x1deb67['model']['change'](_0x5e1dfa=>{const _0x4601d1=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x20594c=_0x4601d1[0x0]['findAncestor']('table');let _0x969852;if('removeTableRow'==_0x3737ba){const _0x202c15=_0xf61b2e['getRowIndexes'](_0x4601d1);_0x969852={'startRow':_0x202c15['first'],'endRow':_0x202c15['last'],'includeAllSlots':!0x0};}else{const _0x42d054=_0xf61b2e['getColumnIndexes'](_0x4601d1);_0x969852={'startColumn':_0x42d054['first'],'endColumn':_0x42d054['last'],'includeAllSlots':!0x0};}const _0x13ede0=_0xf61b2e['createTableWalker'](_0x20594c,_0x969852),_0x5dcd11=Array['from'](_0x13ede0)['map'](({cell:_0x2373a3})=>_0x2373a3),_0x2c2165=xe(_0x5dcd11['filter'](_0x1e9804=>_0x1e9804['hasAttribute'](_0x27d7f6))),_0x4e8d5e=xe(_0x5dcd11['filter'](_0x4c2dec=>!_0x4c2dec['hasAttribute'](_0x27d7f6)))['map'](_0x29498b=>_0x5e1dfa['createRangeOn'](_0x29498b)),_0x24b59e=_0x1b2983['markMultiRangeDeletion'](_0x4e8d5e,_0x50a064);if(_0x24b59e&&('tableRow'==_0x24b59e['subType']||'tableColumn'==_0x24b59e['subType'])){const _0x59bcec=this['_getSuggestionCoords'](_0x24b59e);for(const _0x3db9d9 of _0x2c2165){const _0x4dced7=_0x5e1dfa['createRangeOn'](_0x3db9d9),_0x44711e=_0xf61b2e['getCellLocation'](_0x3db9d9),_0x4fcf17=_0x3db9d9['getAttribute'](_0x27d7f6)-0x1,_0xc8bcb9=_0x59bcec[_0x535d24],_0x5ba347=_0x59bcec[_0x465b0c];_0xc8bcb9<=_0x44711e[_0x3b63e8]&&_0x44711e[_0x3b63e8]+_0x4fcf17<=_0x5ba347&&_0x24b59e['addRange'](_0x4dced7);}}});});}function _0x2efd6f(_0x173dd8){const _0x49cf0c=Array['from'](_0x2f9c11['getRanges']())['map'](_0x40c554=>_0x5bdd0a['fromRange'](_0x40c554));_0x1deb67['model']['change'](_0x80e369=>{const _0x53af90=_0x80e369['batch'];_0x173dd8=_0x173dd8['filter'](_0x239f4c=>'$graveyard'!=_0x239f4c['root']['rootName']),_0x80e369['setSelection'](_0x173dd8),_0x1deb67['commands']['get']('removeTableRow')['refresh'](),_0x1deb67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1deb67['model']['enqueueChange'](()=>{_0x1deb67['model']['enqueueChange'](_0x53af90,_0xb8801c=>{const _0x127b9f=_0x49cf0c['filter'](_0x4ce864=>'$graveyard'!=_0x4ce864['root']['rootName']);_0x127b9f['length']>0x0&&_0xb8801c['setSelection'](_0x127b9f);for(const _0x56044b of _0x49cf0c)_0x56044b['detach']();});});});}function _0x8dd6b8(_0x563a58){_0x1deb67['model']['change'](_0x47c0aa=>{const _0x46ccf1=Array['from'](_0x2f9c11['getRanges']())['map'](_0x29f2cc=>_0x5bdd0a['fromRange'](_0x29f2cc)),_0x1c37f4=[];for(const _0x507b5f of _0x563a58)for(const _0x336cb0 of _0x507b5f['getItems']({'shallow':!0x0}))_0x1c37f4['push'](_0x336cb0);for(const _0x1e1deb of _0x1c37f4)'$graveyard'!=_0x1e1deb['root']['rootName']&&(_0x47c0aa['setSelection'](_0x47c0aa['createPositionAt'](_0x1e1deb,0x0)),_0x1deb67['commands']['get']('removeTableColumn')['refresh'](),_0x1deb67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x12332a=_0x46ccf1['filter'](_0x3c7f4f=>'$graveyard'!=_0x3c7f4f['root']['rootName']);_0x12332a['length']>0x0&&_0x47c0aa['setSelection'](_0x12332a);for(const _0x4e02fa of _0x46ccf1)_0x4e02fa['detach']();});}function _0x58185e(_0x389ce1,_0x107ebf){return _0x107ebf['every'](_0x32db30=>_0x389ce1['some'](_0x4760e0=>_0x4760e0['end']['isEqual'](_0x32db30['start'])||_0x32db30['end']['isEqual'](_0x4760e0['start'])));}function _0xf668e6(_0x47a150,_0x48cb15){return!_0x47a150['some'](_0x5dc599=>_0x48cb15['some'](_0x2012ae=>_0x5dc599['isIntersecting'](_0x2012ae)))&&_0x47a150['some'](_0x379eea=>_0x48cb15['some'](_0x147230=>_0x379eea['end']['isTouching'](_0x147230['start'])));}_0x1deb67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55e368,_0x5a3af5,_0x1b0b48)=>{if(!_0x1b0b48['options']['showSuggestionHighlights'])return;const _0x5300f1=_0x5a3af5['item'];if(!_0x5300f1||!_0x5300f1['is']('element','tableCell'))return;const _0x5b82cc=_0x1b0b48['mapper']['toViewElement'](_0x5300f1);if(_0x5b82cc){const {id:_0x6d7496,authorId:_0x52f5d2}=_0x1b2983['_splitMarkerName'](_0x5a3af5['markerName']);_0x3faa68(_0x5b82cc,_0x1b0b48['writer'],(_0x1952a9,_0x256145,_0x5e0c56)=>{_0x5e0c56['addClass'](_0x1c2cdd(_0x256145['classes']),_0x1952a9),_0x5e0c56['setAttribute']('data-suggestion-id',_0x6d7496,_0x1952a9),_0x5e0c56['setAttribute']('data-author-id',_0x52f5d2,_0x1952a9);},(_0x1e3089,_0x10c008,_0x17d50e)=>{_0x17d50e['removeClass'](_0x1c2cdd(_0x10c008['classes']),_0x1e3089),_0x17d50e['removeAttribute']('data-suggestion-id',_0x1e3089),_0x17d50e['removeAttribute']('data-author-id',_0x1e3089);});}},{'priority':'highest'}),_0x1b2983['descriptionFactory']['registerDescriptionCallback'](_0x3efcc5=>{if('insertion'!=_0x3efcc5['type']&&'deletion'!=_0x3efcc5['type'])return;const _0x3239c7=_0x3efcc5['getContainedElement']();if(null!=_0x3239c7&&_0x3239c7['is']('element','table')){if('insertion'==_0x3efcc5['type']){const _0x3847f9=_0x3efcc5['getItems']()['filter'](_0x4fb089=>_0x4fb089['is']('$textProxy'))['map'](_0xe841cc=>_0xe841cc['data']);if(_0x3847f9['length'])return{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3847f9['join']('\x20')+'\x22'))};}if('deletion'==_0x3efcc5['type']){const _0x44d6ef=_0x3efcc5['getItems']()['filter'](_0x43bc2b=>_0x43bc2b['is']('$textProxy'))['map'](_0x4bfb8a=>_0x4bfb8a['data']);if(_0x44d6ef['length'])return{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44d6ef['join']('\x20')+'\x22'))};}}}),_0x1b2983['descriptionFactory']['registerDescriptionCallback'](_0xe36c7b=>{if('tableRow'==_0xe36c7b['subType']){const _0x2e93da=_0xe36c7b['getItems']()['filter'](_0x56b267=>_0x56b267['is']('$textProxy'))['map'](_0x30bac9=>_0x30bac9['data']),_0x82d0b9=this['_getSuggestionCoords'](_0xe36c7b),_0x59d180=_0x82d0b9['maxRow']-_0x82d0b9['minRow']+0x1;if('insertion'==_0xe36c7b['type'])return _0x2e93da['length']?{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59d180,'\x22'+_0x2e93da['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW',_0x59d180))};if('deletion'==_0xe36c7b['type'])return _0x2e93da['length']?{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59d180,'\x22'+_0x2e93da['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW',_0x59d180))};}if('tableColumn'==_0xe36c7b['subType']){const _0x53521a=_0xe36c7b['getItems']()['filter'](_0x5e47ad=>_0x5e47ad['is']('$textProxy'))['map'](_0x347ae9=>_0x347ae9['data']),_0x13a71d=this['_getSuggestionCoords'](_0xe36c7b),_0x3ae3f5=_0x13a71d['maxColumn']-_0x13a71d['minColumn']+0x1;if('insertion'==_0xe36c7b['type'])return _0x53521a['length']?{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae3f5,'\x22'+_0x53521a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN',_0x3ae3f5))};if('deletion'==_0xe36c7b['type'])return _0x53521a['length']?{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae3f5,'\x22'+_0x53521a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN',_0x3ae3f5))};}}),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2efd6f),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2efd6f),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x8dd6b8),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x8dd6b8),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58185e),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58185e),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf668e6),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf668e6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x325255=this['editor'],_0x41f02f=_0x325255['model']['document']['selection'];return(_0x521a66,_0x38a66b)=>{_0x325255['model']['change'](_0x212873=>{const {commandName:_0x38566a,commandParams:_0x36aa95}=_0x38a66b;let _0x506e8c=_0x521a66[0x0]['end']['nodeBefore'];_0x36aa95&&_0x36aa95[0x0]&&!0x1===_0x36aa95[0x0]['forceValue']&&(_0x506e8c=_0x521a66[0x0]['start']['nodeAfter']);const _0x1b15a9=_0x212873['createRangeIn'](_0x506e8c);if('$graveyard'==_0x1b15a9['root']['rootName'])return;const _0x8b6309=Array['from'](_0x41f02f['getRanges']())['map'](_0x138f2b=>_0x5bdd0a['fromRange'](_0x138f2b));_0x212873['setSelection'](_0x1b15a9),_0x325255['commands']['get'](_0x38566a)['refresh'](),_0x36aa95['push']({'forceDefaultExecution':!0x0}),_0x325255['execute'](_0x38566a,..._0x36aa95);const _0x45e962=_0x8b6309['filter'](_0x2d33c9=>'$graveyard'!=_0x2d33c9['root']['rootName']);_0x45e962['length']>0x0&&_0x212873['setSelection'](_0x45e962);for(const _0x1e6d33 of _0x8b6309)_0x1e6d33['detach']();});};}['_getCoordsForCells'](_0x32500e){const _0x2470a6=this['editor']['plugins']['get']('TableUtils');let _0x5bfa17=Number['MAX_SAFE_INTEGER'],_0x1bed05=Number['MIN_SAFE_INTEGER'],_0x43513a=Number['MAX_SAFE_INTEGER'],_0x59c757=Number['MIN_SAFE_INTEGER'];for(const _0xb197b9 of _0x32500e){if('$graveyard'==_0xb197b9['root']['rootName'])continue;const {row:_0x2c8ab6,column:_0x2f7119}=_0x2470a6['getCellLocation'](_0xb197b9),_0x5a5565=_0xb197b9['hasAttribute']('rowspan')?_0xb197b9['getAttribute']('rowspan')-0x1:0x0,_0xdd826b=_0xb197b9['hasAttribute']('colspan')?_0xb197b9['getAttribute']('colspan')-0x1:0x0;_0x5bfa17=_0x2c8ab6<_0x5bfa17?_0x2c8ab6:_0x5bfa17,_0x1bed05=_0x2c8ab6+_0x5a5565>_0x1bed05?_0x2c8ab6+_0x5a5565:_0x1bed05,_0x43513a=_0x2f7119<_0x43513a?_0x2f7119:_0x43513a,_0x59c757=_0x2f7119+_0xdd826b>_0x59c757?_0x2f7119+_0xdd826b:_0x59c757;}return{'minRow':_0x5bfa17,'maxRow':_0x1bed05,'minColumn':_0x43513a,'maxColumn':_0x59c757};}['_setupColumnsRowsFixing'](){const _0x4aad34=this['editor'],_0x5c67c5=_0x4aad34['plugins']['get']('TrackChangesEditing'),_0x271409=_0x4aad34['plugins']['get']('TableUtils');_0x4aad34['model']['document']['on']('change:data',()=>{const _0x5aa9d3=Array['from'](_0x4aad34['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b6172,data:_0x219513}of _0x5aa9d3){const {group:_0x3726f2,id:_0x21e0cc,subType:_0x5df109}=_0x5c67c5['_splitMarkerName'](_0x4b6172);if('suggestion'!=_0x3726f2)continue;if(null!=_0x219513['oldRange'])continue;const _0x2f7e21=_0x5c67c5['getSuggestion'](_0x21e0cc);this['_tablePostFixingSubtypes']['includes'](_0x5df109)&&this['_tableSuggestions']['add'](_0x2f7e21);}},{'priority':'low'});const _0x564a7c=(_0x545eb3,_0x42c180)=>{let _0x397648=!0x1;const _0x5586d7=_0x42c180['createRangeOn'](_0x545eb3),_0x14f969=_0x545eb3['findAncestor']('table'),_0x20003b=_0x271409['getCellLocation'](_0x545eb3);for(const _0xccda0c of this['_tableSuggestions']){const _0x5cd449=_0xccda0c['subType'],_0x4f1008=_0x5cd449['startsWith']('tablePaste'),_0x417f2b=_0x5cd449['substr'](_0x4f1008?0xa:0x5),_0x512075=_0x417f2b['toLowerCase'](),_0x2a6fcc=_0x512075['substr'](0x0,0x3)+'span',_0x539551='min'+_0x417f2b,_0x13aede='max'+_0x417f2b;if(!_0xccda0c['isInContent'])continue;if(_0x14f969!=_0xccda0c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xccda0c['isIntersectingWithRange'](_0x5586d7))continue;const _0x40f677=_0x545eb3['hasAttribute'](_0x2a6fcc)?_0x545eb3['getAttribute'](_0x2a6fcc)-0x1:0x0,_0x4ecff9=this['_getSuggestionCoords'](_0xccda0c),_0x5e8c97=_0x4ecff9[_0x539551],_0x2c58c3=_0x4ecff9[_0x13aede];_0x5e8c97<=_0x20003b[_0x512075]&&_0x20003b[_0x512075]+_0x40f677<=_0x2c58c3&&(_0xccda0c['addRange'](_0x5586d7),_0x397648=!0x0);}return _0x397648;};_0x4aad34['model']['document']['registerPostFixer'](_0x185213=>{let _0x4b509f=!0x1;for(const _0x40e134 of _0x4aad34['model']['document']['differ']['getChanges']())if('insert'==_0x40e134['type']){if('tableRow'==_0x40e134['name']){for(const _0x2feb82 of _0x40e134['position']['nodeAfter']['getChildren']())_0x4b509f=_0x4b509f||_0x564a7c(_0x2feb82,_0x185213);}else'tableCell'==_0x40e134['name']&&(_0x4b509f=_0x4b509f||_0x564a7c(_0x40e134['position']['nodeAfter'],_0x185213));}return _0x4b509f;});}['_getSuggestionCoords'](_0x1cc95e){return this['_getCoordsForCells'](_0x1cc95e['getRanges']()['map'](_0x3d9789=>_0x3d9789['start']['nodeAfter']));}}function xe(_0x292dfd){return Array['from'](new Set(_0x292dfd)['values']());}class Nt extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x3f2925=this['editor'],_0x160a98=_0x3f2925['model']['document']['selection'],_0x3bfa00=_0x3f2925['locale'];if(!_0x3f2925['plugins']['has']('TableEditing'))return;const _0x144026=_0x3f2925['plugins']['get']('TrackChangesEditing'),_0x1f37ad=_0x3f2925['plugins']['get']('TableUtils'),_0x4e824b=_0x3f2925['plugins']['get'](Ct);_0x4e824b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x144026['enableCommand']('mergeTableCells',()=>{const _0x4d0530=_0x1f37ad['getSelectionAffectedTableCells'](_0x3f2925['model']['document']['selection']);_0x3f2925['model']['change'](()=>{_0x144026['markMultiRangeBlockFormat'](_0x4d0530,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f2925['commands']['get']('mergeTableCells')['on']('execute',(_0x3f4318,_0x1e5665)=>{_0x3f2925['commands']['get']('trackChanges')['value']&&(_0x1e5665['length']>0x0&&_0x1e5665[_0x1e5665['length']-0x1]&&_0x1e5665[_0x1e5665['length']-0x1]['forceDefaultExecution']||_0x144026['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f4318['stop']());},{'priority':'highest'});for(const _0x36b69f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4863b0=_0x3f2925['commands']['get'](_0x36b69f);_0x144026['enableCommand'](_0x36b69f,()=>{const _0x1cce5c=_0x3f2925['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ac650=>_0x3ac650['is']('element','tableCell')),_0x1acb92=_0x4863b0['value'];_0x3f2925['model']['change'](()=>{_0x144026['markMultiRangeBlockFormat']([_0x1cce5c,_0x1acb92],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1fa0fe of['splitTableCellVertically','splitTableCellHorizontally']){const _0xfeea1f=_0x3f2925['commands']['get'](_0x1fa0fe);_0x144026['enableCommand'](_0x1fa0fe,()=>{const _0x5af94b=_0x1f37ad['getSelectionAffectedTableCells'](_0x3f2925['model']['document']['selection'])[0x0],_0x11d2ad=_0x5af94b['findAncestor']('table'),{column:_0x56c17e,row:_0xd36c76}=_0x1f37ad['getCellLocation'](_0x5af94b);let _0x18113a=[];if('horizontally'==_0xfeea1f['direction']){const _0x3dc609=_0x1f37ad['createTableWalker'](_0x11d2ad,{'startRow':_0xd36c76,'endRow':_0xd36c76,'includeAllSlots':!0x0});_0x18113a=Array['from'](_0x3dc609)['map'](_0x1e09fb=>_0x1e09fb['cell']);}else{const _0x389c41=_0x1f37ad['createTableWalker'](_0x11d2ad,{'column':_0x56c17e,'includeAllSlots':!0x0});_0x18113a=Array['from'](_0x389c41)['map'](_0xfe96fa=>_0xfe96fa['cell']);}_0x3f2925['model']['change'](_0x1a179f=>{_0x144026['markBlockFormat'](_0x1a179f['createRangeOn'](_0x5af94b),{'commandName':_0x1fa0fe,'commandParams':[]},_0x18113a,_0x1fa0fe);});});}_0x144026['descriptionFactory']['registerDescriptionCallback'](_0x3ad24d=>{if('formatBlock'!=_0x3ad24d['type']&&'formatInline'!=_0x3ad24d['type'])return;const {data:_0x3e72c9}=_0x3ad24d;return _0x3e72c9&&'mergeTableCells'==_0x3e72c9['commandName']?{'type':'format','content':c(_0x3bfa00,'*Merge\x20cells*')}:void 0x0;}),_0x144026['descriptionFactory']['registerDescriptionCallback'](_0xdb113a=>{if('formatBlock'!=_0xdb113a['type']&&'formatInline'!=_0xdb113a['type'])return;const {data:_0x24251b}=_0xdb113a;return _0x24251b?'splitTableCellVertically'==_0x24251b['commandName']?{'type':'format','content':c(_0x3bfa00,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x24251b['commandName']?{'type':'format','content':c(_0x3bfa00,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xf7167a=_0x4e824b['_acceptFormatSuggestionCallbackFactory']();for(const _0x61d6e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x61d6e0,'accept',_0xf7167a);for(const _0x4864b7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4864b7,'accept',_0xf7167a);_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1dfc15=>{_0x3f2925['model']['change'](_0xf16c60=>{const _0x117d5b=Array['from'](_0x160a98['getRanges']())['map'](_0x5c51f4=>_0x5bdd0a['fromRange'](_0x5c51f4));_0xf16c60['setSelection'](_0x1dfc15),_0x3f2925['commands']['get']('mergeTableCells')['refresh'](),_0x3f2925['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x314af5=_0x117d5b['filter'](_0x50a2ad=>'$graveyard'!=_0x50a2ad['root']['rootName']);_0x314af5['length']>0x0&&_0xf16c60['setSelection'](_0x314af5);for(const _0x2b334d of _0x117d5b)_0x2b334d['detach']();});});for(const _0x574ca3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56f318=_0x3f2925['commands']['get'](_0x574ca3);_0x56f318['on']('set:isEnabled',(_0x3f0ecd,_0x2f5d60,_0x251c47)=>{if(_0x251c47){const _0xef8ff0=_0x3f2925['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x120d74=>_0x120d74['is']('element','tableCell'));this['_areMergableCells'](_0x56f318['value'],_0xef8ff0)||(_0x3f0ecd['return']=!0x1,_0x3f0ecd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x259f9f=this['editor']['commands']['get']('mergeTableCells'),_0x2debd3=this['editor']['plugins']['get']('TableUtils');if(!_0x259f9f['isEnabled'])return!0x1;const _0xeaad3c=_0x2debd3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x465f3b of _0xeaad3c)for(const _0x12be4a of _0xeaad3c)if(_0x465f3b!=_0x12be4a&&!this['_areMergableCells'](_0x465f3b,_0x12be4a))return!0x1;return!0x0;}['_areMergableCells'](_0x10d236,_0x1e5a86){const _0x3ece40=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb0e04d=this['editor']['model']['createRangeOn'](_0x10d236),_0x421683=this['editor']['model']['createRangeOn'](_0x1e5a86),_0x11ec06=new Set(),_0x36f0d8=new Set();for(const _0x340f4b of _0x3ece40['getSuggestions']())if(('insertion'==_0x340f4b['type']||'deletion'==_0x340f4b['type']||'mergeTableCells'==_0x340f4b['subType'])&&_0x340f4b['isInContent']){for(const _0x556b6a of _0x340f4b['getRanges']())_0x556b6a['containsRange'](_0xb0e04d,!0x0)&&_0x11ec06['add'](_0x340f4b['type']+':'+_0x340f4b['author']['id']),_0x556b6a['containsRange'](_0x421683,!0x0)&&_0x36f0d8['add'](_0x340f4b['type']+':'+_0x340f4b['author']['id']);}if(_0x11ec06['size']!=_0x36f0d8['size'])return!0x1;for(const _0x263f3e of _0x11ec06)if(!_0x36f0d8['has'](_0x263f3e))return!0x1;return!0x0;}}class Dt extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0xc830cd=this['editor'];if(!_0xc830cd['plugins']['has']('TableEditing'))return;const _0x1fb609=_0xc830cd['locale'],_0x48f6ba=_0xc830cd['plugins']['get']('TrackChangesEditing');_0x48f6ba['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x48f6ba['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x48f6ba['registerBlockAttribute']('headingRows'),_0x48f6ba['registerBlockAttribute']('headingColumns'),_0x48f6ba['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1fb609,'FORMAT_HEADER_ROW')),_0x48f6ba['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1fb609,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x287e8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a609=this['editor']['plugins']['get']('TableUtils'),_0x13dac7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x59b39e({showActiveMarker:_0x321273=!0x0,setDataAttribute:_0x5ebdf8=!0x0}={}){return(_0xbdcf7b,_0x4980a2,_0x493401)=>{const {type:_0x5a5e6c,id:_0x361f8a}=_0x287e8b['_splitMarkerName'](_0x4980a2['markerName']),_0x16141e=_0x287e8b['getSuggestion'](_0x361f8a),_0x5bd185=_0x16141e['data'];if('formatBlock'!=_0x16141e['type']||!_0x5bd185||'setTableColumnHeader'!=_0x5bd185['commandName'])return;if(_0x4980a2['item'])return void _0xbdcf7b['stop']();if(!_0x493401['consumable']['consume'](_0x4980a2['markerRange'],_0xbdcf7b['name']))return;const _0x81511d=_0x4980a2['markerRange']['start']['nodeAfter'],_0x5e7dcc=_0x4980a2['markerRange']['end']['nodeBefore'],_0x1e8e0b=_0x81511d['parent']['parent'],{column:_0x38e72d}=_0x44a609['getCellLocation'](_0x81511d),{column:_0x21ea4f}=_0x44a609['getCellLocation'](_0x5e7dcc);for(let _0x264682=_0x38e72d;_0x264682<=_0x21ea4f;_0x264682++){const _0x14f4f8=_0x44a609['createTableWalker'](_0x1e8e0b,{'column':_0x264682,'includeAllSlots':!0x1});for(const _0x5ccf9a of _0x14f4f8){const _0x225f00=_0x5ccf9a['cell'],_0x2e73fa=_0x493401['mapper']['toViewElement'](_0x225f00);_0x493401['writer']['addClass']('ck-suggestion-marker-'+_0x5a5e6c,_0x2e73fa),_0x5ebdf8&&_0x493401['writer']['setAttribute']('data-suggestion',_0x361f8a,_0x2e73fa),_0x493401['mapper']['bindElementToMarker'](_0x2e73fa,_0x4980a2['markerName']),_0x321273&&(_0x287e8b['activeMarkers']['includes'](_0x4980a2['markerName'])?_0x493401['writer']['addClass']('ck-suggestion-marker--active',_0x2e73fa):_0x493401['writer']['removeClass']('ck-suggestion-marker--active',_0x2e73fa));}}};}_0x287e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13dac7),_0x287e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13dac7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x59b39e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10b120,_0x868df5,_0x3d09dd)=>{_0x3d09dd['options']['showSuggestionHighlights']&&_0x59b39e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x10b120,_0x868df5,_0x3d09dd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x53a0b2,_0x16d90d,_0x32a8f0)=>{const {type:_0x3b9d9b,id:_0x518dea}=_0x287e8b['_splitMarkerName'](_0x16d90d['markerName']),_0x10ea68=_0x287e8b['getSuggestion'](_0x518dea),_0xf286ff=_0x10ea68['data'];if('formatBlock'!=_0x10ea68['type']||!_0xf286ff||'setTableColumnHeader'!=_0xf286ff['commandName'])return;const _0x278cbb=_0x32a8f0['mapper']['markerNameToElements'](_0x16d90d['markerName']);if(_0x278cbb){for(const _0x1260dc of _0x278cbb)_0x32a8f0['writer']['removeClass']('ck-suggestion-marker-'+_0x3b9d9b,_0x1260dc),_0x32a8f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1260dc),_0x32a8f0['writer']['removeAttribute']('data-suggestion',_0x1260dc),_0x32a8f0['mapper']['unbindElementFromMarkerName'](_0x1260dc,_0x16d90d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171166=this['editor'],_0x166122=_0x171166['locale'];function _0x1e7b2d(_0x5ab238){return{'type':'format','content':c(_0x166122,'*Format:*\x20%0',_0x5ab238)};}_0x171166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ac84=>{if('formatBlock'!=_0x11ac84['type'])return;const {data:_0x2855be}=_0x11ac84;if(_0x2855be){if('setTableRowHeader'==_0x2855be['commandName']){const _0x203caf=_0x2855be['commandParams'][0x0]['forceValue'];return _0x1e7b2d(c(_0x166122,_0x203caf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2855be['commandName']){const _0x49c24c=_0x2855be['commandParams'][0x0]['forceValue'];return _0x1e7b2d(c(_0x166122,_0x49c24c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x413935{['afterInit'](){const _0x1ef9a8=this['editor'],_0x5e4d94=_0x1ef9a8['locale'],_0x280faf=_0x1ef9a8['plugins']['get']('TrackChangesEditing');function _0x500f05(_0x39de9a){return{'type':'format','content':''+c(_0x5e4d94,'*Set\x20table\x20type:*\x20%0',_0x39de9a)};}_0x1ef9a8['plugins']['has']('TableLayout')&&(_0x280faf['enableCommand']('insertTableLayout'),_0x280faf['enableDefaultAttributesIntegration']('tableType'),_0x280faf['registerBlockAttribute']('tableType'),_0x280faf['descriptionFactory']['registerElementLabel'](_0x5c6f45=>_0x5c6f45['is']('element','table')&&'layout'===_0x5c6f45['getAttribute']('tableType'),_0x4ac2a7=>c(_0x5e4d94,'ELEMENT_LAYOUT_TABLE',_0x4ac2a7)),_0x280faf['descriptionFactory']['registerDescriptionCallback'](_0x4cb3eb=>{const {data:_0x54b034}=_0x4cb3eb;if(_0x54b034&&'tableType'==_0x54b034['key'])switch(_0x54b034['newValue']){case'layout':return _0x500f05(c(_0x5e4d94,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x500f05(c(_0x5e4d94,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3b5b4b=>[_0x3b5b4b,null]));class $t extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x186230=this['editor'];if(!_0x186230['plugins']['has']('TableClipboard'))return;const _0x43a09a=_0x186230['plugins']['get']('TrackChangesEditing'),_0x52b805=_0x186230['plugins']['get']('TableUtils'),_0x49dc83=_0x186230['plugins']['get'](Ct),_0x20afe5=_0x186230['plugins']['get']('TableClipboard'),_0x58c849=_0x186230['plugins']['get']('TableSelection'),_0x1992fb=_0x186230['plugins']['get'](_0x131e99);_0x49dc83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x186230['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x186230['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f2daf=null,_0x47157f=!0x1;_0x1992fb['on']('contentInsertion',(_0x26add3,_0x32ef50)=>{_0x47157f='paste'===_0x32ef50['method'];}),_0x186230['model']['on']('insertContent',(_0x456c7e,_0x19b18f)=>{if(!_0x47157f&&null===_0x58c849['getSelectedTableCells']())return;const [_0x2cc99f,_0x45efb7]=_0x19b18f,_0x5e8049=_0x19b18f[_0x19b18f['length']-0x1];_0x5e8049&&_0x5e8049['forceDefaultExecution']||_0x43a09a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb1ae76,_0x30799a,_0x4e0be9,_0x573079,_0x33c343){if(_0x30799a&&!_0x30799a['is']('documentSelection'))return!0x1;const _0x1dc9a1=_0x33c343['getTableIfOnlyTableInContent'](_0xb1ae76,_0x4e0be9);if(!_0x1dc9a1||!He(_0x1dc9a1,void 0x0,_0x573079))return!0x1;const _0x4a8afb=_0x573079['getSelectionAffectedTableCells'](_0x4e0be9['document']['selection']);if(!_0x4a8afb['length'])return!0x1;const _0x3842f6=_0x4a8afb[0x0]['findAncestor']('table'),_0x2d6273=_0x573079['getRowIndexes'](_0x4a8afb),_0x2bccfd=_0x573079['getColumnIndexes'](_0x4a8afb),_0x4579bd={'startRow':_0x2d6273['first'],'endRow':_0x2d6273['last'],'startColumn':_0x2bccfd['first'],'endColumn':_0x2bccfd['last']};return 0x1==_0x4a8afb['length']&&(_0x4579bd['endRow']+=_0x573079['getRows'](_0x1dc9a1)-0x1,_0x4579bd['endColumn']+=_0x573079['getColumns'](_0x1dc9a1)-0x1),He(_0x3842f6,_0x4579bd,_0x573079);}(_0x2cc99f,_0x45efb7,_0x186230['model'],_0x52b805,_0x20afe5)&&(_0x456c7e['stop'](),_0x5f2daf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x186230['model']['change'](()=>{_0x186230['model']['insertContent'](_0x19b18f[0x0],_0x19b18f[0x1],_0x19b18f[0x2],{'forceDefaultExecution':!0x0});const _0x3a9d22=_0x57be53(),{rowInsertionRanges:_0x5f3306,columnInsertionRanges:_0x2dfa14,insertionRanges:_0x3a6e0f,deletionRanges:_0x4079fd,cells:_0x264a31}=_0x5f2daf;_0x5f3306['length']&&_0x43a09a['markMultiRangeInsertion'](_0x5f3306,'tablePasteRow',{'tablePasteChainId':_0x3a9d22}),_0x2dfa14['length']&&_0x43a09a['markMultiRangeInsertion'](_0x2dfa14,'tablePasteColumn',{'tablePasteChainId':_0x3a9d22}),_0x3a6e0f['length']&&(_0x43a09a['markMultiRangeInsertion'](_0x3a6e0f,'tablePaste',{'tablePasteChainId':_0x3a9d22,'skipNestingCheck':!0x0}),_0x3a6e0f['forEach'](_0xd61922=>_0xd61922['detach']?.())),_0x4079fd['length']&&(_0x43a09a['markMultiRangeDeletion'](_0x4079fd,'tablePaste',{'tablePasteChainId':_0x3a9d22,'skipNestingCheck':!0x0}),_0x4079fd['forEach'](_0x269bbb=>_0x269bbb['detach']?.()));const _0x3e2a13=_0x43a09a['markMultiRangeBlockFormat'](_0x264a31['map'](({element:_0x5520b6})=>_0x5520b6),{'formatGroupId':_0x57be53()},[],'tablePasteCell',{'tablePasteChainId':_0x3a9d22});if(_0x3e2a13){const _0x3a5fd0=_0x3e2a13['getMarkers'](),_0x4917b5=[];for(const {element:_0xce4b23,attributes:_0x2cb722}of _0x264a31){if(!_0x2cb722)continue;const _0x234487=_0x186230['model']['createRangeOn'](_0xce4b23),_0x37aa5=_0x3a5fd0['find'](_0x591c25=>_0x591c25['getRange']()['isEqual'](_0x234487));_0x37aa5&&_0x4917b5['push']([_0x37aa5['name'],_0x2cb722]);}_0x4917b5['length']&&_0x3e2a13['setAttribute']('markerAttributes',Object['fromEntries'](_0x4917b5));}_0x5f2daf=null;}));},{'priority':_0x17cab7['high']+0xa}),_0x1992fb['on']('contentInsertion',()=>{_0x47157f=!0x1;},{'priority':'lowest'}),_0x186230['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57b5e7,_0x83cc4d)=>{const [_0x178391,_0xd24815,,_0x2b95b7]=_0x83cc4d;if(!_0x5f2daf)return;_0x57b5e7['stop']();const _0x187149=_0x178391['cell'],_0x4cbe7e=_0xd24815,_0x4248ec=De(_0x187149),_0x6c7157=De(_0x4cbe7e);_0x57b5e7['return']=_0x187149;let _0x35ff92=null,_0x1c6346=null;if(_0x6c7157||_0x4248ec){if(_0x4248ec&&!_0x6c7157){_0x2b95b7['remove'](_0x187149['getChild'](0x0));for(const _0x39cf22 of Array['from'](_0x4cbe7e['getChildren']()))_0x2b95b7['insert'](_0x39cf22,_0x187149,'end');const _0x53cab5=_0x5f2daf['rowInsertionIndexes']['includes'](_0x178391['row']),_0x5759dc=_0x5f2daf['columnInsertionIndexes']['includes'](_0x178391['column']);_0x53cab5||_0x5759dc||(_0x35ff92=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeIn'](_0x187149)));}else _0x6c7157&&!_0x4248ec&&(_0x1c6346=_0x2b95b7['createRangeIn'](_0x187149));}else{const _0x1cc607=_0x2b95b7['createElement']('tableCellSuggestion'),_0x1d3698=_0x2b95b7['createElement']('tableCellSuggestion');_0x2b95b7['wrap'](_0x2b95b7['createRangeIn'](_0x187149),_0x1d3698),_0x2b95b7['insert'](_0x1cc607,_0x187149,0x0);for(const _0x54e08a of Array['from'](_0x4cbe7e['getChildren']()))_0x2b95b7['insert'](_0x54e08a,_0x1cc607,'end');_0x35ff92=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeOn'](_0x1cc607)),_0x1c6346=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeOn'](_0x1d3698));}const _0x3eddb8=Array['from'](_0x4cbe7e['getAttributes']())['filter'](([_0x1cfbde])=>Oe['includes'](_0x1cfbde));_0x5f2daf['cells']['push']({'element':_0x187149,'attributes':_0x3eddb8['length']?Object['fromEntries'](_0x3eddb8):null}),_0x35ff92&&_0x5f2daf['insertionRanges']['push'](_0x35ff92),_0x1c6346&&_0x5f2daf['deletionRanges']['push'](_0x1c6346);},{'priority':'high'}),_0x52b805['on']('insertColumns',(_0x3d1c89,_0x3f0f8d)=>{const [_0x355250,_0x6e0fdc={}]=_0x3f0f8d;if(!_0x5f2daf)return;const _0x3d06a2=_0x6e0fdc['at']||0x0,_0x454b7e=_0x6e0fdc['columns']||0x1;_0x5f2daf['columnInsertionIndexes']=new Array(_0x454b7e)['fill'](_0x3d06a2)['map']((_0x1c3b25,_0xe419c5)=>_0x1c3b25+_0xe419c5);for(const {cell:_0x477d4}of _0x52b805['createTableWalker'](_0x355250,{'startColumn':_0x3d06a2,'endColumn':_0x3d06a2+_0x454b7e-0x1}))_0x5f2daf['columnInsertionRanges']['push'](_0x186230['model']['createRangeOn'](_0x477d4));},{'priority':'low'}),_0x52b805['on']('insertRows',(_0x49a3c2,_0x4c704b)=>{const [_0x3b3e3d,_0x39a093={}]=_0x4c704b;if(!_0x5f2daf)return;const _0x314b6a=_0x39a093['at']||0x0,_0x37c3e8=_0x39a093['rows']||0x1;_0x5f2daf['rowInsertionIndexes']=new Array(_0x37c3e8)['fill'](_0x314b6a)['map']((_0x3963d4,_0x5ee70d)=>_0x3963d4+_0x5ee70d);for(const {cell:_0x42fe52}of _0x52b805['createTableWalker'](_0x3b3e3d,{'startRow':_0x314b6a,'endRow':_0x314b6a+_0x37c3e8-0x1}))_0x5f2daf['rowInsertionRanges']['push'](_0x186230['model']['createRangeOn'](_0x42fe52));},{'priority':'low'}),_0x43a09a['descriptionFactory']['registerDescriptionCallback'](_0xc4796b=>{if(_0xc4796b['subType']&&_0xc4796b['subType']['startsWith']('tablePaste'))return _0xc4796b['previous']?{}:{'type':'insertion','content':c(_0x186230['locale'],'*Replace\x20table\x20cells*')};});const _0x1d9172=()=>!0x1;for(const _0x1f9898 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f9898,'join',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f9898,'join',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f9898,'join',_0x1d9172);_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x39e1de,_0x1fa3f0,_0x4cb208)=>{const _0x575960=_0x39e1de['map'](_0x3022f6=>_0x3022f6['getContainedElement']())['filter'](_0x94618d=>_0x94618d),_0x6a5596=new Map(_0x575960['map'](_0xcfff04=>[_0xcfff04,null]));if(_0x5f2daf){for(const {element:_0x15badd,attributes:_0x429532}of _0x5f2daf['cells'])_0x429532&&_0x6a5596['set'](_0x15badd,_0x429532);}else{if(_0x4cb208&&_0x4cb208['markerAttributes'])for(const [_0x2222b7,_0x5cea19]of Object['entries'](_0x4cb208['markerAttributes'])){const _0x4c7dd6=_0x186230['model']['markers']['get'](_0x2222b7),_0x37fd6d=_0x4c7dd6?_0x4c7dd6['getRange']()['getContainedElement']():null;_0x37fd6d&&_0x6a5596['set'](_0x37fd6d,_0x5cea19);}}_0x186230['model']['change'](_0x58c8d0=>{for(const [_0x3cc08c,_0x5ee165]of _0x6a5596)_0x58c8d0['setAttributes']({...Ue,..._0x5ee165},_0x3cc08c);});});const _0x4de5dd=(_0x12ed9a,_0x1686da)=>{_0x43a09a['_suggestionFactory']['registerCustomCallback'](_0x12ed9a,'tablePaste',_0x1686da,(_0x24a60c,_0x41eb33,_0x85448a)=>{_0x186230['model']['change'](_0x31375e=>{const _0x4a32f3=[];for(const _0x2666b6 of _0x24a60c){const _0x34a213=_0x2666b6['start']['nodeAfter'];_0x34a213['is']('element','tableCellSuggestion')&&_0x4a32f3['push'](_0x34a213);}_0x43a09a['_suggestionFactory']['getSuggestionCallback'](_0x12ed9a,null,_0x1686da)(_0x24a60c,_0x41eb33,_0x85448a);for(const _0xe9f4b8 of _0x4a32f3)'$graveyard'!=_0xe9f4b8['root']['rootName']&&_0x31375e['unwrap'](_0xe9f4b8);});});};_0x4de5dd('insertion','accept'),_0x4de5dd('insertion','discard'),_0x4de5dd('deletion','accept'),_0x4de5dd('deletion','discard'),_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cfe92=>{const _0x41958c=_0x1cfe92['map'](_0x44eb20=>_0x44eb20['getContainedElement']()),_0x43069c=_0x41958c[0x0]['findAncestor']('table'),{minRow:_0x53523c,maxRow:_0x74ac4b}=_0x49dc83['_getCoordsForCells'](_0x41958c);_0x52b805['removeRows'](_0x43069c,{'at':_0x53523c,'rows':_0x74ac4b-_0x53523c+0x1});}),_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41991a=>{const _0x531c6e=_0x41991a['map'](_0x420a97=>_0x420a97['getContainedElement']()),_0x121d7b=_0x531c6e[0x0]['findAncestor']('table'),{minColumn:_0x1c03ca,maxColumn:_0x336213}=_0x49dc83['_getCoordsForCells'](_0x531c6e);_0x52b805['removeColumns'](_0x121d7b,{'at':_0x1c03ca,'columns':_0x336213-_0x1c03ca+0x1});});const _0x9c63ad=(_0x25ad27,_0x3b1a58)=>{if(!_0x3b1a58['subType']||!_0x3b1a58['subType']['startsWith']('tablePaste'))return;const _0x3f66db=_0x3b1a58['attributes']['tablePasteChainId'],_0x278a98=_0x43a09a['getSuggestions']()['filter'](_0x54f33b=>_0x54f33b['isInContent']&&_0x54f33b['attributes']&&_0x54f33b['attributes']['tablePasteChainId']==_0x3f66db);_0x278a98['length']&&_0x3b1a58['getAllAdjacentSuggestions']()['length']!=_0x278a98['length']&&_0x278a98['reduce']((_0x5e4074,_0x45e3d2)=>(_0x5e4074['next']=_0x45e3d2,_0x45e3d2['previous']=_0x5e4074,_0x45e3d2));};function _0x18a159(_0x27e540,_0x9f2e1c=!0x0){const {id:_0x2c17f7,authorId:_0x48d978}=_0x43a09a['_splitMarkerName'](_0x27e540['markerName']),_0x15149a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5904=_0x43a09a['activeMarkers']['includes'](_0x27e540['markerName']);return _0x5f5904&&_0x15149a['push']('ck-suggestion-marker--active'),{'classes':_0x15149a,'attributes':{'data-suggestion':_0x2c17f7,'data-author-id':_0x48d978},'priority':_0x5f5904&&_0x9f2e1c?0xbc2:0xbb8};}_0x43a09a['on']('suggestionLoaded',_0x9c63ad,{'priority':'high'}),_0x43a09a['on']('suggestionUnloaded',_0x9c63ad,{'priority':'high'}),_0x186230['model']['document']['registerPostFixer'](()=>{let _0x4d535c=!0x1;const _0xbc6d1d=Array['from'](_0x186230['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fe102,data:_0x1d8f75}of _0xbc6d1d){const {group:_0x25a40f,type:_0x46cebc,id:_0x270842}=_0x43a09a['_splitMarkerName'](_0x4fe102);if('suggestion'!=_0x25a40f||'deletion'!=_0x46cebc||_0x1d8f75['oldRange'])continue;if(!_0x43a09a['hasSuggestion'](_0x270842))continue;const _0x56f8ba=_0x43a09a['getSuggestion'](_0x270842)['getRanges'](),_0x4b8c9a=_0x186230['plugins']['get']('Users')['me'];for(const _0x1979cc of _0x43a09a['getSuggestions']()){if(!_0x1979cc['isInContent']||_0x1979cc['author']!=_0x4b8c9a)continue;if('formatBlock'!=_0x1979cc['type']||'tablePasteCell'!=_0x1979cc['subType'])continue;if(_0x1979cc['getRanges']()['every'](_0x5b3538=>_0x56f8ba['some'](_0x374625=>_0x374625['containsRange'](_0x5b3538,!0x0)))){for(const _0x4b938b of _0x1979cc['getAllAdjacentSuggestions']())_0x4b938b['isInContent']&&(_0x4b938b['discard'](),_0x4d535c=!0x0);}}}return _0x4d535c;}),_0x186230['model']['document']['registerPostFixer'](_0x2907a9=>{const _0x2c6ffb=_0x186230['commands']['get']('redo');if(!_0x2c6ffb||!_0x2c6ffb['_createdBatches']['has'](_0x2907a9['batch']))return!0x1;let _0x240e4b=!0x1;const _0x1bb00b=_0x186230['plugins']['get']('Users')['me'],_0x8090f9=_0x186230['model']['document']['differ']['getChanges'](),_0x39407d=Array['from'](_0x186230['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd61307,data:_0x2cfe8a})=>{const {group:_0x13e160,subType:_0x214117,authorId:_0x1063fd}=_0x43a09a['_splitMarkerName'](_0xd61307);return'suggestion'==_0x13e160&&'tablePaste'==_0x214117&&_0x1063fd==_0x1bb00b['id']&&!_0x2cfe8a['oldRange'];});for(const _0x25384d of _0x8090f9){if('insert'!=_0x25384d['type']||'tableCellSuggestion'!=_0x25384d['name']||0x1!=_0x25384d['length'])continue;const _0x4c1971=_0x2907a9['createRange'](_0x25384d['position'],_0x25384d['position']['getShiftedBy'](0x1));if(!_0x39407d['find'](({data:_0x3cf833})=>_0x3cf833['newRange']['isEqual'](_0x4c1971))){for(const {name:_0x13c648,data:_0x3b52eb}of _0x39407d)if(_0x4c1971['containsRange'](_0x3b52eb['newRange'])){_0x2907a9['updateMarker'](_0x13c648,{'range':_0x4c1971}),_0x240e4b=!0x0;break;}}}return _0x240e4b;}),_0x186230['model']['document']['registerPostFixer'](_0x5bec1c=>{let _0x3a9721=!0x1;const _0x5476b5=_0x186230['plugins']['get']('Users')['me'],_0x157976=_0x43a09a['getSuggestions']()['filter'](_0x264f06=>_0x264f06['isInContent']&&_0x264f06['author']==_0x5476b5),_0x47b70f=new Set(),_0x5239cf=new Set();for(const _0x4b591f of _0x157976)if('tablePaste'==_0x4b591f['subType'])for(const _0x2fb67c of _0x4b591f['getMarkers']()){const _0x55fd0d=_0x2fb67c['getRange']()['getContainedElement']();if(_0x55fd0d){if(_0x55fd0d['is']('element','tableCellSuggestion')&&De(_0x55fd0d)){_0x4b591f['removeMarker'](_0x2fb67c['name']),_0x47b70f['add'](_0x55fd0d),_0x3a9721=!0x0;const _0x1f99f3=_0x55fd0d['nextSibling'],_0x30ba1d=_0x55fd0d['previousSibling'],_0x359f78=_0x1f99f3&&_0x1f99f3['is']('element','tableCellSuggestion'),_0x13ef95=_0x30ba1d&&_0x30ba1d['is']('element','tableCellSuggestion');_0x359f78&&!_0x47b70f['has'](_0x1f99f3)&&_0x5239cf['add'](_0x1f99f3),_0x13ef95&&!_0x47b70f['has'](_0x30ba1d)&&_0x5239cf['add'](_0x30ba1d);}else _0x55fd0d['is']('element','paragraph')&&_0x55fd0d['isEmpty']&&(_0x4b591f['removeMarker'](_0x2fb67c['name']),_0x3a9721=!0x0);}}else{if('tablePasteCell'==_0x4b591f['subType']){if(!_0x4b591f['attributes']||!_0x4b591f['attributes']['tablePasteChainId'])continue;const _0x28c734=_0x4b591f['attributes']['markerAttributes'];if(_0x28c734&&Object['keys'](_0x28c734)['length'])continue;const _0x593a44=_0x4b591f['attributes']['tablePasteChainId'];let _0xb7805e=!0x0,_0x41c161=!0x0;for(const _0x3bc89f of _0x157976)if(_0x3bc89f['subType']&&_0x3bc89f['subType']['startsWith']('tablePaste')){if(!_0x3bc89f['attributes']['tablePasteChainId']){_0x41c161=!0x1;break;}if(_0x3bc89f['id']!=_0x4b591f['id']&&_0x3bc89f['attributes']['tablePasteChainId']==_0x593a44){_0xb7805e=!0x1;break;}}_0x41c161&&_0xb7805e&&(_0x4b591f['removeMarkers'](),_0x3a9721=!0x0);}}for(const _0x162b9e of _0x47b70f)_0x5bec1c['remove'](_0x162b9e);for(const _0x38eead of _0x5239cf)_0x5bec1c['unwrap'](_0x38eead);return _0x3a9721;}),_0x186230['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf0ac80=>_0x18a159(_0xf0ac80),'converterPriority':'high'}),_0x186230['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36fd84,_0x56840c)=>_0x56840c['options']['showSuggestionHighlights']?_0x18a159(_0x36fd84,!0x1):null,'converterPriority':'high'});const _0x4df5a8=_0x186230['editing']['view'];this['listenTo'](_0x4df5a8['document'],'clipboardOutput',(_0xfaa862,_0x34c67)=>{const _0x26bea7=[];for(const _0x2d7812 of _0x4df5a8['createRangeIn'](_0x34c67['content'])['getItems']())_0x2d7812['is']('element','suggestion-td')&&_0x26bea7['push'](_0x2d7812);_0x4df5a8['change'](_0x2f3888=>{for(const _0x3e6a1c of _0x26bea7)_0x2f3888['move'](_0x2f3888['createRangeIn'](_0x3e6a1c),_0x2f3888['createPositionBefore'](_0x3e6a1c)),_0x2f3888['remove'](_0x3e6a1c);});});}}function De(_0x1fef48){if(_0x1fef48['isEmpty'])return!0x0;const _0x2cc2b0=_0x1fef48['getChild'](0x0);return _0x2cc2b0['is']('element','paragraph')&&_0x2cc2b0['isEmpty'];}function He(_0x156b8a,_0x4ae544={},_0x525811){for(const {isAnchor:_0x9720a9,cellHeight:_0x394339,cellWidth:_0x294320}of _0x525811['createTableWalker'](_0x156b8a,{'includeAllSlots':!0x0,..._0x4ae544}))if(!_0x9720a9||0x1!=_0x394339||0x1!=_0x294320)return!0x1;return!0x0;}class Bt extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41297f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41297f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41297f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41297f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41297f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41297f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41297f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x197e33,_0x2612ed){const _0x24df29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12f57a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x44b93d=_0x2612ed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5173e3=_0x12f57a['getColumnGroupElement'](_0x44b93d);let _0x1e0678=_0x5173e3?_0x12f57a['getTableColumnsWidths'](_0x5173e3):null,_0x6b1db3=_0x44b93d['getAttribute']('tableWidth')||null;const _0x388885=_0x2612ed['tableWidth']||_0x6b1db3,_0x21f477=_0x2612ed['columnWidths']||_0x1e0678,_0x1fc92a=this['editor']['plugins']['get']('Users')['me'];for(const _0x6c574 of _0x24df29['getSuggestions']()){const _0x24b142=_0x6c574['getContainedElement']();if('resizeTable'===_0x6c574['subType']&&_0x24b142===_0x44b93d){_0x6c574['author']!==_0x1fc92a&&_0x6c574['discard']();const _0x300392=_0x6c574['data']['commandParams'];_0x6b1db3=_0x300392[0x0]['tableWidth'],_0x1e0678=_0x300392[0x0]['columnWidths'];break;}}_0x197e33({'table':_0x44b93d,'tableWidth':_0x388885,'columnWidths':_0x21f477}),_0x24df29['markBlockFormat'](_0x44b93d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6b1db3,'columnWidths':_0x1e0678}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x27dcde){if('formatBlock'!=_0x27dcde['type']&&'formatInline'!=_0x27dcde['type'])return;const {data:_0x328265}=_0x27dcde;if(_0x328265&&'resizeTable'===_0x328265['formatGroupId']){const _0x400cac='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x400cac)};}}}class xt extends _0x413935{['afterInit'](){const _0x57d0e5=this['editor'];_0x57d0e5['plugins']['has']('Template')&&_0x57d0e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x413935{['afterInit'](){const _0x3adf23=this['editor'];if(!_0x3adf23['commands']['get']('insertTableOfContents'))return;_0x3adf23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x9b7a80=_0x3adf23['plugins']['get']('TrackChangesEditing'),_0x1b5a0f=_0x3adf23['locale'];_0x9b7a80['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1396ea=>c(_0x1b5a0f,'ELEMENT_TABLE_OF_CONTENTS',_0x1396ea));}}class Rt extends _0x413935{['afterInit'](){const _0x78c1c4=this['editor'];if(!_0x78c1c4['plugins']['has']('Title'))return;const _0x5a4ca4=_0x78c1c4['plugins']['get']('TrackChangesEditing');_0x5a4ca4['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x78c1c4['locale'],'ELEMENT_TITLE')),_0x78c1c4['model']['document']['registerPostFixer'](_0x43920a=>{let _0xf889ef=!0x1;const _0x35d780=Array['from'](_0x78c1c4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x403889,data:_0x359236}of _0x35d780){const {group:_0x3506d4}=_0x5a4ca4['_splitMarkerName'](_0x403889);if('suggestion'!==_0x3506d4||!_0x359236['newRange'])continue;const _0x48c8e5=_0x359236['newRange'],_0x188cb2=_0x48c8e5['end']['nodeBefore'];if(!_0x188cb2||!_0x188cb2['is']('element','title-content'))continue;if(!_0x48c8e5['start']['isTouching'](_0x48c8e5['end']))continue;const _0x144640=_0x78c1c4['model']['schema']['getNearestSelectionRange'](_0x48c8e5['end'],'forward');if(_0x144640&&_0x144640['isCollapsed']){const _0x3492bd=_0x43920a['createRange'](_0x48c8e5['start'],_0x144640['start']);_0x3492bd['isEqual'](_0x48c8e5)||(_0x43920a['updateMarker'](_0x403889,{'range':_0x3492bd}),_0xf889ef=!0x0);}_0xf889ef||(_0x43920a['removeMarker'](_0x403889),_0xf889ef=!0x0);}return _0xf889ef;});}}class Tt extends _0x413935{['afterInit'](){const _0x427cfc=this['editor'],_0x1a70ce=_0x427cfc['plugins']['get']('TrackChangesEditing');_0x427cfc['plugins']['has']('Uploadcare')&&(_0x1a70ce['enableCommand']('uploadcare'),_0x427cfc['plugins']['has']('UploadcareImageEdit')&&(_0x1a70ce['enableCommand']('uploadcareImageEdit'),_0x1a70ce['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1a70ce['registerBlockAttribute']('uploadcareImageId'),_0x1a70ce['descriptionFactory']['registerDescriptionCallback'](_0x1e08f2=>{if('attribute'!=_0x1e08f2['type'])return;const {data:_0x19be74}=_0x1e08f2;return _0x19be74&&'uploadcareImageId'==_0x19be74['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x413935{['afterInit'](){const _0x4b50cc=this['editor'],_0x362a9d=_0x4b50cc['plugins']['get']('TrackChangesEditing');_0x4b50cc['plugins']['has']('UndoEditing')&&(_0x362a9d['enableCommand']('undo'),_0x362a9d['enableCommand']('redo'));}}class Ut extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x2fc1ef=this['editor'];if(!_0x2fc1ef['plugins']['has']('TableCaptionEditing'))return;_0x2fc1ef['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x413935{['tableProperties'];['tableCellProperties'];constructor(_0x559c35){super(_0x559c35),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 _0x11bcc2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4309a9 of this['tableProperties'])_0x11bcc2['enableCommand'](_0x4309a9,(_0x2500b2,_0x539aa6)=>{const _0x427395=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4309a9,[_0x427395],this['tableProperties'],'tableProperties',_0x2500b2,_0x539aa6);});_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11bcc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41beb7,_0x39ef4f)=>this['handleDiscardAction'](this['tableProperties'],_0x41beb7,_0x39ef4f)),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a931e of this['tableCellProperties'])_0x11bcc2['enableCommand'](_0x5a931e,(_0x3e1af5,_0x34189c)=>{const _0x1f369a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a931e,_0x1f369a,this['tableCellProperties'],'tableCellProperties',_0x3e1af5,_0x34189c);});_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11bcc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3351d4,_0x17a922)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3351d4,_0x17a922)),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x11bcc2['descriptionFactory']['registerDescriptionCallback'](_0x33bc1d=>this['handleSuggestionDescription'](_0x33bc1d));}['_handlePropertyChange'](_0x2d692b,_0x2713d0,_0x19d332,_0x2afd2c,_0x2e42c1,_0x210089){const _0x3549df=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x210089['batch'],()=>{for(const _0x503684 of _0x2713d0){if(this['_getSuggestion'](_0x503684,_0x2afd2c))_0x2e42c1(_0x210089);else{const _0x240fcd={};for(const _0x348e61 of _0x19d332){const _0x2e285a=_0x503684['getAttribute'](_0x348e61);void 0x0!==_0x2e285a&&(_0x240fcd[_0x348e61]=_0x2e285a);}_0x2e42c1(_0x210089),_0x3549df['markBlockFormat'](_0x503684,{'commandParams':[_0x240fcd]},[],_0x2afd2c);}}});}['handleDiscardAction'](_0x1705d6,_0x2c731f,_0x149d40){const _0x3a5f24=_0x2c731f[0x0]['start']['nodeAfter'],_0xfd8270=_0x149d40['commandParams'][0x0];this['editor']['model']['change'](_0x110000=>{for(const _0x3aee9d of _0x1705d6)void 0x0!==_0xfd8270[_0x3aee9d]?_0x110000['setAttribute'](_0x3aee9d,_0xfd8270[_0x3aee9d],_0x3a5f24):_0x110000['removeAttribute'](_0x3aee9d,_0x3a5f24);});}['handleSuggestionDescription'](_0x103170){if(_0x103170['data'])switch(_0x103170['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ece7d,_0x7c4792){const _0x23f8a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x146ba0 of _0x23f8a4['getSuggestions']({'skipNotAttached':!0x0})){const _0x28f7a1=_0x146ba0['getContainedElement']();if(_0x146ba0['subType']===_0x7c4792&&_0x28f7a1===_0x1ece7d)return _0x146ba0;}return null;}}const u='$elementName';class p extends _0x413935{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3b0e33,_0x1d495c,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a974c){super(_0x3a974c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55da06,_0x3a80bd,_0x1de8a0,_0x54005b)=>{this['_model']['change'](()=>{for(const _0x23b1b3 of[..._0x54005b,..._0x1de8a0])this['_model']['markers']['has'](_0x23b1b3)&&_0x3a974c['editing']['reconvertMarker'](_0x23b1b3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a974c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3a974c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a974c['config']['get']('trackChanges.trackFormatChanges'),_0x3a974c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a974c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a974c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f332b=this['editor'],_0x2c8aa5=(_0x320112,_0x428380)=>{if('attribute'!=_0x320112)return'ck-suggestion-marker-'+_0x320112;const _0x397670=_0x428380['split']('|')[0x0];return this['_isBlockAttribute'](_0x397670)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f332b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x160fc7=>{const {id:_0x1360a4,authorId:_0x37cf59,type:_0x2177a3,subType:_0x30af51}=this['_splitMarkerName'](_0x160fc7['markerName']),_0x26f802=['ck-suggestion-marker',_0x2c8aa5(_0x2177a3,_0x30af51)];let _0x1acada=0xbb8;return this['activeMarkers']['includes'](_0x160fc7['markerName'])&&(_0x26f802['push']('ck-suggestion-marker--active'),_0x1acada=0xbc2),'deletion'==_0x2177a3&&(_0x1acada+=0x5),{'classes':_0x26f802,'attributes':{'data-suggestion':_0x1360a4,'data-author-id':_0x37cf59},'priority':_0x1acada};}}),_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x1b1fab=>{_0x1b1fab['on']('addMarker:suggestion',(_0x118841,_0x5c8a59,_0x5d7788)=>{if(!_0x5d7788['options']['showSuggestionHighlights'])return;const _0x1bf32e=_0x5c8a59['item'];if(!_0x1bf32e)return;const _0x1c2809=_0x5d7788['mapper']['toViewElement'](_0x1bf32e);_0x5f332b['model']['schema']['isObject'](_0x1bf32e)&&_0x1c2809&&!_0x1c2809['getCustomProperty']('widget')&&_0x1c2809['is']('containerElement')&&_0x1d9cba(_0x1c2809,_0x5d7788['writer']);},{'priority':'high'});}),_0x5f332b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x475b5a,_0x328ff9)=>{if(!_0x328ff9['options']['showSuggestionHighlights'])return null;const {id:_0x46d1c8,authorId:_0x510dd7,type:_0x1cdec9,subType:_0x39d1b0}=this['_splitMarkerName'](_0x475b5a['markerName']);return{'classes':['ck-suggestion-marker',_0x2c8aa5(_0x1cdec9,_0x39d1b0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x46d1c8,'data-author-id':_0x510dd7}};}});const _0xdecc7d=({showActiveMarkers:_0x2b607a=!0x0,isAttributeSuggestion:_0x2288b7=!0x1}={})=>(_0x177cc7,_0x3fbca9,_0x261353)=>{if(!_0x3fbca9['item'])return;const {id:_0x21bf61,authorId:_0x25ff46}=this['_splitMarkerName'](_0x3fbca9['markerName']);if(_0x2288b7){const _0x475cef=this['_suggestions']['get'](_0x21bf61),_0x3da232=this['_getAttributeKey'](_0x475cef);if(!this['_isBlockAttribute'](_0x3da232))return;}if(_0x3fbca9['item']['is']('selection'))return void _0x261353['consumable']['consume'](_0x3fbca9['item'],_0x177cc7['name']);const _0x45a6fc=_0x261353['mapper']['toViewElement'](_0x3fbca9['item']);if(_0x3fbca9['item']['is']('element')&&_0x5f332b['model']['schema']['isBlock'](_0x3fbca9['item'])&&!_0x45a6fc['getCustomProperty']('addHighlight')){_0x261353['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45a6fc),_0x261353['writer']['setAttribute']('data-suggestion',_0x21bf61,_0x45a6fc),_0x261353['writer']['setAttribute']('data-author-id',_0x25ff46,_0x45a6fc),_0x261353['mapper']['bindElementToMarker'](_0x45a6fc,_0x3fbca9['markerName']),_0x2b607a&&(this['activeMarkers']['includes'](_0x3fbca9['markerName'])?_0x261353['writer']['addClass']('ck-suggestion-marker--active',_0x45a6fc):_0x261353['writer']['removeClass']('ck-suggestion-marker--active',_0x45a6fc));for(const _0x2e0789 of _0x5f332b['model']['createRangeIn'](_0x3fbca9['item'])['getItems']())_0x261353['consumable']['consume'](_0x2e0789,_0x177cc7['name']);_0x261353['consumable']['consume'](_0x3fbca9['item'],_0x177cc7['name']);}};_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x988053=>{_0x988053['on']('addMarker:suggestion:formatBlock',(_0x40423a,_0x204f08,_0x1924ea)=>{_0x1924ea['options']['showSuggestionHighlights']&&_0xdecc7d({'showActiveMarkers':!0x1})(_0x40423a,_0x204f08,_0x1924ea);},{'priority':'highest'});}),_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x1f2f44=>{_0x1f2f44['on']('addMarker:suggestion:attribute',(_0x5992b9,_0x25c999,_0x44047b)=>{_0x44047b['options']['showSuggestionHighlights']&&_0xdecc7d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5992b9,_0x25c999,_0x44047b);},{'priority':'highest'});}),_0x5f332b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1096c4,_0xce5ab4)=>{if(_0xce5ab4['options']['showSuggestionHighlights']){const {id:_0x2f872c,authorId:_0x1b40ac}=this['_splitMarkerName'](_0x1096c4);return _0x1096c4['includes'](':split')||_0x1096c4['includes'](':merge')?{'group':'suggestion','name':_0x1096c4['substr'](0xb),'attributes':{'data-suggestion':_0x2f872c,'data-author-id':_0x1b40ac}}:null;}return{'group':'suggestion','name':_0x1096c4['substr'](0xb)};}}),_0x5f332b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b1fed,{writer:_0xa259c2})=>{let _0x752ea2='suggestion:'+_0x3b1fed['getAttribute']('suggestion-type')+':'+_0x3b1fed['getAttribute']('id');return _0x3b1fed['getAttribute']('marker-count')&&(_0x752ea2+=':'+_0x3b1fed['getAttribute']('marker-count')),_0xa259c2['createElement']('$marker',{'data-name':_0x752ea2});}}),_0x5f332b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x2699c9=>{_0x2699c9['on']('addMarker:suggestion:formatBlock',_0xdecc7d(),{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x7ff99a=>{_0x7ff99a['on']('addMarker:suggestion:attribute',_0xdecc7d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x50af9a=>{_0x50af9a['on']('removeMarker:suggestion:formatBlock',(_0x5b5f0b,_0x59b31d,_0x22f493)=>{const _0x2e2121=_0x22f493['mapper']['markerNameToElements'](_0x59b31d['markerName']);if(_0x2e2121){for(const _0x44c6ca of _0x2e2121)_0x44c6ca['getCustomProperty']('addHighlight')||(_0x22f493['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44c6ca),_0x22f493['writer']['removeAttribute']('data-suggestion',_0x44c6ca),_0x22f493['writer']['removeAttribute']('data-author-id',_0x44c6ca),_0x22f493['mapper']['unbindElementFromMarkerName'](_0x44c6ca,_0x59b31d['markerName']));}},{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0xfbee3b=>{_0xfbee3b['on']('removeMarker:suggestion:attribute',(_0x185bb1,_0x15a631,_0x5d8149)=>{const _0xcfd3f6=_0x5d8149['mapper']['markerNameToElements'](_0x15a631['markerName']);if(!_0xcfd3f6)return;const {id:_0x28dbaf}=this['_splitMarkerName'](_0x15a631['markerName']),_0x331806=this['_suggestions']['get'](_0x28dbaf),_0x223857=this['_getAttributeKey'](_0x331806);if(this['_isBlockAttribute'](_0x223857)){for(const _0x171ec9 of _0xcfd3f6)_0x171ec9['getCustomProperty']('addHighlight')||(_0x5d8149['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x171ec9),_0x5d8149['writer']['removeAttribute']('data-suggestion',_0x171ec9),_0x5d8149['writer']['removeAttribute']('data-author-id',_0x171ec9),_0x5d8149['mapper']['unbindElementFromMarkerName'](_0x171ec9,_0x15a631['markerName']));}},{'priority':'high'});}),_0x5f332b['model']['document']['registerPostFixer'](_0x45a03d=>{let _0x2d9180=!0x1;const _0x43b3fb=Array['from'](_0x5f332b['model']['document']['differ']['getChangedMarkers']()),_0x5ad570=new Set();for(const {name:_0x5186d3,data:_0x3751cd}of _0x43b3fb){const {group:_0x5e372b,type:_0x3176e6,subType:_0x114a5f,id:_0x3adad6}=this['_splitMarkerName'](_0x5186d3);if('suggestion'!==_0x5e372b)continue;const _0x5e38fb=this['_suggestions']['get'](_0x3adad6);if(null!=_0x3751cd['newRange']){'formatInline'==_0x3176e6&&(_0x2d9180=_0x2d9180||Jt(_0x3751cd['newRange'],_0x5186d3,_0x45a03d,_0x5f332b['model']['schema']));const _0x5984d0='attribute'==_0x3176e6&&this['_isBlockAttribute'](_0x114a5f['split']('|')[0x0]);if(_0x3751cd['newRange']['isCollapsed']||'$graveyard'==_0x3751cd['newRange']['root']['rootName']||'formatBlock'==_0x3176e6&&!Ht(_0x3751cd['newRange'])||_0x5984d0&&!Ht(_0x3751cd['newRange'])||'deletion'==_0x3176e6&&!(!Lt(_0x4e093d=_0x3751cd['newRange'])&&!function(_0x92c96d){return _0x92c96d['start']['parent']==_0x92c96d['end']['nodeBefore']&&_0x92c96d['start']['isAtEnd'];}(_0x4e093d)))_0x45a03d['removeMarker'](_0x5186d3),_0x2d9180=!0x0;else{if(!_0x5e38fb||!_0x5e38fb['isInContent'])continue;if(_0x3751cd['newRange']&&_0x3751cd['oldRange']&&_0x3751cd['newRange']['isEqual'](_0x3751cd['oldRange']))continue;_0x5ad570['add'](_0x5e38fb);}}}var _0x4e093d;return _0x5ad570['size']>0x0&&(_0x2d9180=!!this['_joinWithAdjacentSuggestions'](_0x5ad570)||_0x2d9180),_0x2d9180;}),_0x5f332b['model']['document']['registerPostFixer'](_0x43b8a5=>{let _0x3eeac4=!0x1;for(const _0x4fb0fa of _0x5f332b['model']['document']['differ']['getChanges']())if('insert'==_0x4fb0fa['type'])for(const _0xeb1908 of this['_suggestions']['values']()){if(_0xeb1908['isMultiRange']||!_0xeb1908['isInContent'])continue;const _0x644f6c='formatBlock'==_0xeb1908['type'],_0xdbb15=this['_getAttributeKey'](_0xeb1908),_0x63febf=_0xdbb15&&this['_isBlockAttribute'](_0xdbb15);if(!_0x644f6c&&!_0x63febf)continue;const _0x4aad38=_0xeb1908['getFirstRange']();if(_0x4aad38['start']['parent']!=_0x4aad38['end']['parent']&&!_0x4aad38['end']['isAtEnd']){const _0x207800=_0x5f332b['model']['createPositionAt'](_0x4aad38['start']['nodeAfter'],'end'),_0x2649d6=_0x5f332b['model']['createRange'](_0x4aad38['start'],_0x207800);_0x43b8a5['updateMarker'](_0xeb1908['getFirstMarker'](),{'range':_0x2649d6}),_0x3eeac4=!0x0;}}return _0x3eeac4;}),_0x5f332b['model']['document']['registerPostFixer'](_0x20160e=>this['_processAttributeChanges'](_0x20160e)),_0x5f332b['model']['document']['registerPostFixer'](_0x81f627=>!_0x81f627['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x81f627)),_0x5f332b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f332b['model']['document']['on']('change:data',(_0x396bc1,_0x118314)=>{if(!_0x118314['isLocal']||_0x118314['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x21e4f0=_0x5f332b['model']['document']['differ']['getChanges']();if(0x0==_0x21e4f0['length'])return;const _0x2e9538=[],_0x2dbdbd=_0x21e4f0['filter'](_0x244379=>'attribute'==_0x244379['type']),_0x36fde3=_0x21e4f0['filter'](_0x4d219c=>'insert'==_0x4d219c['type']&&'$text'!=_0x4d219c['name']);for(const _0x4b8a36 of _0x2dbdbd)this['_isRegisteredAttribute'](_0x4b8a36['attributeKey'])&&_0x2e9538['push']({'key':_0x4b8a36['attributeKey'],'newValue':_0x4b8a36['attributeNewValue'],'oldValue':_0x4b8a36['attributeOldValue'],'range':qt(_0x4b8a36['range'],_0x5f332b['model'])});for(const _0x5ebab2 of _0x36fde3){if('rename'!=_0x5ebab2['action']&&'refresh'!=_0x5ebab2['action'])continue;const _0x505a28=zt(_0x5ebab2['position']['nodeAfter'],_0x5f332b['model']),_0x30cf3=_0x5ebab2['before'];'rename'==_0x5ebab2['action']&&_0x2e9538['push']({'key':u,'newValue':_0x5ebab2['name'],'oldValue':_0x30cf3['name'],'range':_0x505a28});for(const [_0x3eca12,_0x2acb28]of _0x30cf3['attributes']){if(!this['_isRegisteredAttribute'](_0x3eca12))continue;const _0x5eaac9=_0x5ebab2['attributes']['get'](_0x3eca12);_0x2acb28!==_0x5eaac9&&_0x2e9538['push']({'key':_0x3eca12,'newValue':_0x5eaac9,'oldValue':_0x2acb28,'range':_0x505a28});}for(const [_0x50cb42,_0x123f34]of _0x5ebab2['attributes'])this['_isRegisteredAttribute'](_0x50cb42)&&(_0x30cf3['attributes']['has'](_0x50cb42)||_0x2e9538['push']({'key':_0x50cb42,'newValue':_0x123f34,'oldValue':null,'range':_0x505a28}));}0x0!=_0x2e9538['length']&&_0x5f332b['model']['enqueueChange'](_0x118314,_0x56e5fd=>{const _0x56ce4c=_0x57be53();for(const {range:_0x207c3a,key:_0x5f4277,oldValue:_0x4b3fbd,newValue:_0x3d219d}of _0x2e9538)this['markAttributeChange'](_0x207c3a,_0x5f4277,_0x4b3fbd,_0x3d219d,{'groupId':_0x56ce4c});this['_reduceExistingSuggestions'](_0x56e5fd,_0x2e9538);});},{'priority':'lowest'}),_0x5f332b['model']['markers']['on']('update:suggestion',(_0x412fd9,_0x4c6b5d,_0x59d283)=>{if(null==_0x59d283){const {id:_0x58b7ab}=this['_splitMarkerName'](_0x4c6b5d['name']),_0x30158f=this['_suggestions']['get'](_0x58b7ab);_0x30158f&&_0x30158f['addMarkerName'](_0x4c6b5d['name']);}}),_0x5f332b['model']['document']['on']('change:data',()=>{const _0x194eea=Array['from'](_0x5f332b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ce084=>'suggestion'===this['_splitMarkerName'](_0x2ce084['name'])['group']);if(0x0===_0x194eea['length'])return;_0x194eea['sort']((_0x3ed257,_0x58c50f)=>{const _0x508faf=_0x3ed257['data']['oldRange'],_0x423b70=_0x58c50f['data']['oldRange'];return null===_0x508faf&&null===_0x423b70?0x0:null===_0x508faf&&null!==_0x423b70?-0x1:null!==_0x508faf&&null===_0x423b70?0x1:_0x508faf['start']['isBefore'](_0x423b70['start'])?-0x1:0x1;});const _0x333737=new Set(),_0x284af4=new Set();for(const {name:_0x27bb86,data:_0x2e7718}of _0x194eea){const {id:_0x2fe5ed}=this['_splitMarkerName'](_0x27bb86);if(null===_0x2e7718['oldRange']){const _0x3fcbc5=this['_handleNewSuggestionMarker'](_0x27bb86);_0x284af4['add'](_0x3fcbc5);}else{const _0x1b36ea=this['_suggestions']['get'](_0x2fe5ed);null!==_0x2e7718['newRange']||_0x1b36ea['isInContent']?(_0x333737['add'](_0x1b36ea['head']),_0x284af4['add'](_0x1b36ea)):this['_removeSuggestion'](_0x1b36ea);}}_0x284af4['size']>0x0&&this['_refreshSuggestionsChain'](_0x284af4);for(const _0x21f1c3 of _0x333737)this['fire']('suggestionChanged',_0x21f1c3);}),_0x5f332b['model']['on']('applyOperation',(_0x233152,_0x501696)=>{const _0x2061f7=_0x501696[0x0];if(!this['_suggestions']['size'])return;if(!_0x2061f7['isDocumentOperation'])return;if(_0x2061f7['batch']['isUndo']||!_0x2061f7['batch']['isLocal'])return;let _0x22a178,_0x2f8deb;switch(_0x2061f7['type']){case'insert':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['position']),_0x2f8deb=_0x22a178['getShiftedBy'](_0x2061f7['howMany']);break;case'split':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['splitPosition']),_0x2f8deb=_0x5f332b['model']['createPositionAt'](_0x2061f7['moveTargetPosition']);break;case'move':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['targetPosition']),_0x2f8deb=_0x22a178['getShiftedBy'](_0x2061f7['howMany']);break;default:return;}const _0x15ca9e=_0x5f332b['model']['createRange'](_0x22a178,_0x2f8deb);_0x5f332b['model']['change'](()=>{for(const {suggestion:_0x2d2b7d,meta:_0x3036b2}of this['_findSuggestions'](_0x15ca9e)){if(_0x2d2b7d['isMultiRange'])continue;if('formatInline'==_0x2d2b7d['type'])continue;const _0x2a79c3=this['_getAttributeKey'](_0x2d2b7d);if(_0x2a79c3&&this['_isBlockAttribute'](_0x2a79c3)&&'split'!=_0x2061f7['type'])continue;const _0x43438f=_0x2d2b7d['data']&&_0x2d2b7d['data']['multipleBlocks'];('formatBlock'!=_0x2d2b7d['type']||'split'==_0x2061f7['type']&&!_0x43438f)&&(_0x3036b2['containsRangeInObject']||'insertion'==_0x2d2b7d['type']&&_0x3036b2['isOwn']||_0x2d2b7d['getFirstRange']()['containsRange'](_0x15ca9e)&&this['_breakSuggestionMarker'](_0x2d2b7d,_0x22a178,_0x2f8deb));}});},{'priority':'lowest'}),_0x5f332b['model']['on']('deleteContent',(_0x2df31b,_0x382b59)=>{const _0xd4bf1a=_0x382b59[0x0],_0x39c6e6=_0x382b59[0x1];if(_0x39c6e6&&_0x39c6e6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd4bf1a['isCollapsed'])return;const _0x17519c=_0x5f332b['model']['schema'],{start:_0x188e65,end:_0x344f96}=_0xd4bf1a['getFirstRange'](),_0xb2bc27=_0x188e65['nodeAfter']&&_0x17519c['isLimit'](_0x188e65['nodeAfter'])?null:_0x17519c['getNearestSelectionRange'](_0x188e65,'forward'),_0x45c353=_0x344f96['nodeBefore']&&_0x17519c['isLimit'](_0x344f96['nodeBefore'])?null:_0x17519c['getNearestSelectionRange'](_0x344f96,'backward'),_0x3c5c86=_0x5f332b['model']['createRange'](_0xb2bc27?_0xb2bc27['start']:_0x188e65,_0x45c353?_0x45c353['end']:_0x344f96);_0x5f332b['model']['change'](_0x147802=>{this['markDeletion'](_0x3c5c86);const _0x2f5899=_0x5f332b['model']['schema']['getNearestSelectionRange'](_0x3c5c86['start']);_0xd4bf1a['is']('documentSelection')?_0x147802['setSelection'](_0x2f5899):_0xd4bf1a['setTo'](_0x2f5899);}),_0x2df31b['stop']();},{'priority':_0x17cab7['normal']+0xa}),_0x5f332b['model']['on']('insertContent',(_0x196a9a,_0x3289f9)=>{const _0xec5713=_0x3289f9[_0x3289f9['length']-0x1];_0xec5713&&_0xec5713['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f332b['model']['change'](()=>{let _0x3f8b8a=_0x5f332b['model']['insertContent'](_0x3289f9[0x0],_0x3289f9[0x1],_0x3289f9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f8b8a)return;_0x196a9a['return']=_0x3f8b8a['clone']();const _0x369079=_0x3f8b8a['end']['nodeBefore'],_0x3de781=_0x5f332b['model']['schema'];_0x369079&&_0x3de781['isBlock'](_0x369079)&&!_0x3de781['isObject'](_0x369079)&&(_0x3f8b8a=_0x5f332b['model']['createRange'](_0x3f8b8a['start'],_0x5f332b['model']['createPositionAt'](_0x369079,'end'))),this['markInsertion'](_0x3f8b8a);}),_0x196a9a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c2b5=new x(_0x5f332b,this['_suggestions']);_0x5f332b['commands']['add']('acceptSuggestion',_0x36c2b5),this['enableCommand']('acceptSuggestion');const _0x37cad8=new O(_0x5f332b,this['_suggestions']);_0x5f332b['commands']['add']('discardSuggestion',_0x37cad8),this['enableCommand']('discardSuggestion'),_0x5f332b['commands']['add']('acceptAllSuggestions',new R(_0x5f332b,_0x36c2b5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f332b['commands']['add']('discardAllSuggestions',new R(_0x5f332b,_0x37cad8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f332b['commands']['add']('acceptSelectedSuggestions',new E(_0x5f332b,_0x36c2b5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f332b['commands']['add']('discardSelectedSuggestions',new E(_0x5f332b,_0x37cad8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5006fe=_0x5f332b['plugins']['get']('CommentsRepository');this['listenTo'](_0x5006fe,'addComment',(_0x54330c,{threadId:_0x4fd78b})=>{const _0x6c63c=this['_suggestions']['get'](_0x4fd78b);_0x6c63c&&_0x6c63c['commentThread']&&0x1===_0x6c63c['commentThread']['length']&&this['_updateSuggestionData'](_0x4fd78b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5006fe,'removeComment',(_0x2246b0,{threadId:_0x5462aa})=>{const _0x244486=this['_suggestions']['get'](_0x5462aa);_0x244486&&_0x244486['commentThread']&&!_0x244486['commentThread']['length']&&this['_updateSuggestionData'](_0x5462aa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x412d16){const _0x323101=_0x1eeb60([0x76,0x4e,0x6c,0x46,0x5a,0x66,0x33,0x59,0x61,0x39,0x6b,0x31,0x75,0x65,0x52,0x62,0x63,0x35,0x51,0x67,0x56,0x44,0x41,0x72,0x57,0x4c,0x77,0x30,0x79,0x42,0x43,0x4a,0x32,0x34,0x58,0x6a,0x6f,0x6d,0x48,0x7a,0x4d,0x55,0x4f,0x50,0x45,0x74,0x37,0x4b,0x36,0x54,0x71,0x70,0x38,0x53,0x73,0x69,0x49,0x68,0x78,0x64,0x6e,0x47]),_0x499117=0x5624cd96,_0x46c8b0=0x5623a506^_0x499117,_0x349875=window[_0x1eeb60([0x44,0x61,0x74,0x65])][_0x1eeb60([0x6e,0x6f,0x77])](),_0x4b1afc=_0x412d16[_0x1eeb60([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47a06d=new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26964e=>{_0x4b1afc[_0x1eeb60([0x6f,0x6e,0x63,0x65])](_0x1eeb60([0x72,0x65,0x61,0x64,0x79]),_0x26964e);}),_0x1f8c13={[_0x1eeb60([0x6b,0x74,0x79])]:_0x1eeb60([0x45,0x43]),[_0x1eeb60([0x75,0x73,0x65])]:_0x1eeb60([0x73,0x69,0x67]),[_0x1eeb60([0x63,0x72,0x76])]:_0x1eeb60([0x50,0x2d,0x32,0x35,0x36]),[_0x1eeb60([0x78])]:_0x1eeb60([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]),[_0x1eeb60([0x79])]:_0x1eeb60([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]),[_0x1eeb60([0x61,0x6c,0x67])]:_0x1eeb60([0x45,0x53,0x32,0x35,0x36])},_0x277dc7=_0x4b1afc[_0x1eeb60([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1eeb60([0x67,0x65,0x74])](_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ebe20(){let _0x1bf3e7,_0x1d1a1d=null,_0x2d4f49=null;try{if(_0x277dc7==_0x1eeb60([0x47,0x50,0x4c]))return _0x1eeb60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bf3e7=_0x5c64b2(),!_0x1bf3e7)return _0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bf3e7[_0x1eeb60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d4f49=_0x346c56(_0x1bf3e7[_0x1eeb60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bf3e7[_0x1eeb60([0x6a,0x74,0x69])])),await _0x53ff41()?_0x231210()?_0x227715()?_0x1eeb60([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdece48()?(_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d1a1d=_0x42d7b8(_0x1eeb60([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb60([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d1a1d=_0x42d7b8(_0x1eeb60([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1bce41()):_0x1eeb60([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x295c11){return _0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x227715(){const _0x33cf6f=[_0x1eeb60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1eeb60([0x74,0x72,0x69,0x61,0x6c])][_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x349875/0x3e8:0xe10*_0x46c8b0;return _0x1bf3e7[_0x1eeb60([0x65,0x78,0x70])]<_0x33cf6f;}function _0x231210(){const _0x5cb63d=_0x1bf3e7[_0x1eeb60([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5cb63d)return!0x1;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x2a])))return!0x0;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x54,0x43])))return!0x0;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x52,0x54,0x43]))){if(_0x346677())return!0x0;if(_0x4bb95d()||_0x579172())return!0x0;}return!0x1;}function _0xdece48(){const _0x3b6c08=_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b6c08||0x0==_0x3b6c08[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5603c9}=new URL(window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b6c08[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5603c9))return!0x0;const _0x567223=_0x5603c9[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e]));return _0x3b6c08[_0x1eeb60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x115187=>_0x115187[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x2a])))[_0x1eeb60([0x6d,0x61,0x70])](_0x36bced=>_0x36bced[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e])))[_0x1eeb60([0x73,0x6f,0x6d,0x65])](_0x2fa49a=>_0x567223[_0x1eeb60([0x65,0x76,0x65,0x72,0x79])]((_0x2ab342,_0x1f561c)=>_0x2fa49a[_0x1f561c]===_0x2ab342||_0x2fa49a[_0x1f561c]===_0x1eeb60([0x2a])));}function _0x1bce41(){return _0x1d1a1d&&_0x2d4f49?new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ae3d0,_0x25eadd)=>{_0x1d1a1d[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x4ae3d0,_0x25eadd),_0x2d4f49[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x1c3a76=>{_0x1c3a76!=_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])&&_0x4ae3d0(_0x1c3a76);},_0x25eadd);}):_0x1d1a1d||_0x2d4f49||_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]);}}function _0x346c56(_0x3b2ab9,_0xa6a1d6){return new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5427ab=>{if(_0x71cd3e())return _0x5427ab(_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]));_0x74245d(),_0x4b1afc[_0x1eeb60([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ffd26=!0x1;const _0x14777f=_0x57be53();function _0x32242f(_0x525883){return!!_0x525883&&(typeof _0x525883===_0x1eeb60([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x525883===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x525883[_0x1eeb60([0x74,0x68,0x65,0x6e])]===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x525883[_0x1eeb60([0x63,0x61,0x74,0x63,0x68])]===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eafc0(_0x5a403c){_0x49f284(_0x5a403c)[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x337be9=>{if(!_0x337be9||_0x337be9[_0x1eeb60([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1eeb60([0x6f,0x6b]))return _0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5975f6(_0x551e95(_0x14777f+_0xa6a1d6))!=_0x337be9[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x27b611=>(_0x150134(),_0x27b611),()=>{const _0x24f997=_0x1af2f3();return null==_0x24f997?(_0x150134(),_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])):_0x1eeb60(_0x349875-_0x24f997>(0x72284996^_0x499117)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x5427ab)[_0x1eeb60([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b521d=0x56122316^_0x499117;function _0x150134(){const _0x48e7d9=_0x1eeb60([0x6c,0x6c,0x63,0x74,0x2d])+_0x5975f6(_0x551e95(_0x3b2ab9)),_0x5d35fa=_0x931a1e(_0x5975f6(window[_0x1eeb60([0x4d,0x61,0x74,0x68])][_0x1eeb60([0x63,0x65,0x69,0x6c])](_0x349875/_0x4b521d)));window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb60([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48e7d9,_0x5d35fa);}function _0x1af2f3(){const _0x59df5e=_0x1eeb60([0x6c,0x6c,0x63,0x74,0x2d])+_0x5975f6(_0x551e95(_0x3b2ab9)),_0x371823=window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb60([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59df5e);return _0x371823?window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x931a1e(_0x371823),0x10)*_0x4b521d:null;}function _0x49f284(_0xe13d3b){return new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8e8fb6,_0x8a9f59)=>{_0xe13d3b[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x8e8fb6,_0x8a9f59),window[_0x1eeb60([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8a9f59,0x56251956^_0x499117);});}}_0x4b1afc[_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf8e389,_0x3d33b5)=>{if(_0x3d33b5[0x0]!=_0x3b2ab9)return _0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d33b5[0x1]={..._0x3d33b5[0x1],[_0x1eeb60([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14777f};},{[_0x1eeb60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb60([0x68,0x69,0x67,0x68])}),_0x4b1afc[_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c30a9=>{_0x32242f(_0x3c30a9[_0x1eeb60([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ffd26=!0x0,_0x1eafc0(_0x3c30a9[_0x1eeb60([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1eeb60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb60([0x6c,0x6f,0x77])}),_0x47a06d[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>{_0x1ffd26||_0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x71cd3e(){return _0x4b1afc[_0x1eeb60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb60([0x76,0x69,0x65,0x77])][_0x1eeb60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1eeb60([0x61,0x75,0x74,0x6f]);}function _0x74245d(){_0x4b1afc[_0x1eeb60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb60([0x76,0x69,0x65,0x77])][_0x1eeb60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1eeb60([0x61,0x75,0x74,0x6f]);}}function _0x42d7b8(_0x4fe3a5){const _0x3975be=[new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17089=>setTimeout(_0x17089,0x562df35a^_0x499117)),_0x47a06d[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cbfe=>{let _0x490ffd=0x0;_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b181a,_0x2c39e9)=>{_0x2c39e9[0x0][_0x1eeb60([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x490ffd++,_0x490ffd==(0x5624cc6e^_0x499117)&&(_0x44cbfe(),_0x1b181a[_0x1eeb60([0x6f,0x66,0x66])]());});}))];return window[_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1eeb60([0x72,0x61,0x63,0x65])](_0x3975be)[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>_0x4fe3a5);}async function _0x1f4787(){await _0x47a06d,_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaf7b8c,_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaf7b8c,_0x4b1afc[_0x1eeb60([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x346677(){return _0x3a2965(_0x1eeb60([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e8e7c(_0x1eeb60([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1eeb60([0x73,0x74,0x61,0x74,0x65])]==_0x1eeb60([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4bb95d(){return _0x3a2965(_0x1eeb60([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x579172(){return _0x3a2965(_0x1eeb60([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x490ef1(_0x29b296){const _0x3f2ac3=_0x580680();_0x4b1afc[_0x3f2ac3]=_0x1eeb60([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29b296,_0x29b296!=_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])&&_0x1f4787();}function _0x580680(){const _0x45989c=window[_0x1eeb60([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1eeb60([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1eeb60([0x6e,0x6f,0x77])]())[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1eeb60([0x2e]),'');let _0x3ac68c=_0x1eeb60([0x76]);for(let _0x301f6b=0x0;_0x301f6b<_0x45989c[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x301f6b+=0x2){let _0x35d7ae=window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45989c[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x301f6b,_0x301f6b+0x2));_0x35d7ae>=_0x323101[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35d7ae-=_0x323101[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ac68c+=_0x323101[_0x35d7ae];}return _0x3ac68c;}function _0x5c64b2(){const _0x2fcf6a=_0x277dc7[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e]));if(0x3!=_0x2fcf6a[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3079da(_0x2fcf6a[0x1]);function _0x3079da(_0x4d0015){const _0x573592=_0x1fd0ec(_0x4d0015);return _0x573592&&_0x5bf92b()?_0x573592:null;function _0x5bf92b(){const _0x4a01e2=_0x573592[_0x1eeb60([0x6a,0x74,0x69])],_0x12e5f8=window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a01e2[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a01e2[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6be165={..._0x573592,[_0x1eeb60([0x6a,0x74,0x69])]:_0x4a01e2[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a01e2[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6be165[_0x1eeb60([0x76,0x63])],_0x551e95(_0x6be165)==_0x12e5f8;}}}async function _0x53ff41(){let _0xebcb5d=!0x0;try{const _0x13bcf2=_0x277dc7[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e])),[_0x1f268f,_0x1d8fd0,_0x44605c]=_0x13bcf2;return _0x1b8fdb(_0x1f268f),await _0x315518(_0x1f268f,_0x1d8fd0,_0x44605c),_0xebcb5d;}catch(_0x46dfc1){return!0x1;}function _0x1b8fdb(_0x426f83){const _0x3feb60=_0x1fd0ec(_0x426f83);_0x3feb60&&_0x3feb60[_0x1eeb60([0x61,0x6c,0x67])]==_0x1eeb60([0x45,0x53,0x32,0x35,0x36])||(_0xebcb5d=!0x1);}async function _0x315518(_0x54d887,_0x23f972,_0x516bb5){const _0x3ec801=window[_0x1eeb60([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1eeb60([0x66,0x72,0x6f,0x6d])](_0x181749(_0x516bb5),_0x461b82=>_0x461b82[_0x1eeb60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x983abb=new window[(_0x1eeb60([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1eeb60([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54d887+_0x1eeb60([0x2e])+_0x23f972),_0x78ff92=window[_0x1eeb60([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1eeb60([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x78ff92)return;const _0x12cf2c=await _0x78ff92[_0x1eeb60([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1eeb60([0x6a,0x77,0x6b]),_0x1f8c13,{[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb60([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1eeb60([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x78ff92[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb60([0x68,0x61,0x73,0x68])]:{[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12cf2c,_0x3ec801,_0x983abb)||(_0xebcb5d=!0x1);}}function _0x1fd0ec(_0x221657){return _0x221657[_0x1eeb60([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1eeb60([0x65,0x79]))?JSON[_0x1eeb60([0x70,0x61,0x72,0x73,0x65])](_0x181749(_0x221657)):null;}function _0x181749(_0x23d4ea){return window[_0x1eeb60([0x61,0x74,0x6f,0x62])](_0x23d4ea[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1eeb60([0x2b]))[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1eeb60([0x2f])));}function _0x551e95(_0x3f7cfe){let _0x358d0d=0x1505;function _0x2d2dc2(_0x3ce042){for(let _0x1bb981=0x0;_0x1bb981<_0x3ce042[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bb981++){const _0x4d02e6=_0x3ce042[_0x1eeb60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bb981);_0x358d0d=(_0x358d0d<<0x5)+_0x358d0d+_0x4d02e6,_0x358d0d&=_0x358d0d;}}function _0x1fb643(_0xa66fba){Array[_0x1eeb60([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa66fba)?_0xa66fba[_0x1eeb60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fb643):_0xa66fba&&typeof _0xa66fba==_0x1eeb60([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1eeb60([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa66fba)[_0x1eeb60([0x73,0x6f,0x72,0x74])]()[_0x1eeb60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bc661,_0x548057])=>{_0x2d2dc2(_0x5bc661),_0x1fb643(_0x548057);}):_0x2d2dc2(window[_0x1eeb60([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa66fba));}return _0x1fb643(_0x3f7cfe),_0x358d0d>>>0x0;}function _0x5975f6(_0x5a207f){return _0x5a207f[_0x1eeb60([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1eeb60([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1eeb60([0x30]));}function _0x931a1e(_0x146766){return _0x146766[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1eeb60([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1eeb60([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a2965(_0x22dac6){return _0x4b1afc[_0x1eeb60([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1eeb60([0x68,0x61,0x73])](_0x22dac6);}function _0x3e8e7c(_0x31cd6c){return _0x4b1afc[_0x1eeb60([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1eeb60([0x67,0x65,0x74])](_0x31cd6c);}function _0xaf7b8c(){}function _0x1eeb60(_0x806847){return _0x806847['map'](_0x41f2b8=>String['fromCharCode'](_0x41f2b8))['join']('');}_0x490ef1(await _0x1ebe20());}(this);}set['adapter'](_0x411475){if(this['_adapter'])throw new _0x48634c('track-changes-adapter-already-set',this);this['_adapter']=_0x411475;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c65fc=!0x1,toJSON:_0x339610=!0x1}={}){const _0x489f4a=[];for(const _0x1838ea of this['_suggestions']['values']())_0x1c65fc&&!_0x1838ea['isInContent']||_0x489f4a['push'](_0x1838ea);return _0x339610?_0x489f4a['map'](_0x4f8f1f=>_0x4f8f1f['toJSON']()):_0x489f4a;}['getSuggestion'](_0x509771){const _0x30cd22=this['_suggestions']['get'](_0x509771);if(!_0x30cd22)throw new _0x48634c('track-changes-suggestion-not-found',this);return _0x30cd22;}['hasSuggestion'](_0x30896a){return this['_suggestions']['has'](_0x30896a);}['addSuggestionData'](_0x364f61){const {authorId:_0x169ba4,id:_0x2adbcc,originalSuggestionId:_0x2c488c,attributes:_0x273fc0}=_0x364f61,[_0x4e39b0,_0x1c9115]=_0x364f61['type']['split'](':'),_0xb36ccf=this['_suggestions']['get'](_0x2adbcc)||this['_createSuggestion'](_0x4e39b0,_0x1c9115,_0x2adbcc,_0x169ba4,_0x273fc0,_0x2c488c);if(this['_addThreadToSuggestion'](_0xb36ccf),this['_checkSuggestionCorrectness'](_0xb36ccf,_0x4e39b0,_0x1c9115||null,_0x169ba4),_0xb36ccf['createdAt']=_0x364f61['createdAt'],_0xb36ccf['_isDataLoaded']=!0x0,_0x273fc0&&_0x273fc0['@external']){const _0x5766d0=_0x273fc0['@external'],_0x4f4374=this['_getExternalAuthor'](_0x5766d0['authorName']);_0xb36ccf['authoredAt']=_0x5766d0['createdAt'],_0xb36ccf['author']=_0x4f4374,_0xb36ccf['isExternal']=!0x0;}else _0xb36ccf['authoredAt']=_0x364f61['createdAt'];switch(_0x364f61['data']&&(_0xb36ccf['data']=_0x364f61['data']),_0x364f61['attributes']&&(_0xb36ccf['attributes']=_0x364f61['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xb36ccf['_saved']=!0x0),this['_suggestionState']['get'](_0xb36ccf)){case'notReady':this['_suggestionState']['set'](_0xb36ccf,'dataReady');break;case'markerReady':_0xb36ccf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xb36ccf])),this['_refreshSuggestionsChain'](new Set([_0xb36ccf])),this['_suggestionState']['set'](_0xb36ccf,'ready'),this['fire']('suggestionLoaded',_0xb36ccf)):this['_suggestionState']['set'](_0xb36ccf,'removed');}return _0xb36ccf;}['acceptSuggestion'](_0x365651){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317f22 of _0x365651['getAllAdjacentSuggestions']())_0x317f22['accept']();});});}['discardSuggestion'](_0x52df77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14c069 of _0x52df77['getAllAdjacentSuggestions']())_0x14c069['discard']();});});}['enableCommand'](_0xf3347a,_0x2bf8f7){const _0x4cb5ca=this['editor']['commands']['get'](_0xf3347a);if(!_0x4cb5ca)throw new _0x48634c('track-changes-command-not-found',this,{'commandName':_0xf3347a});if(this['_enabledCommands']['has'](_0x4cb5ca))throw new _0x48634c('track-changes-enable-command-twice',this,{'commandName':_0xf3347a});this['_enabledCommands']['add'](_0x4cb5ca),_0x2bf8f7&&_0x4cb5ca['on']('execute',(_0x3e7878,_0x14efe2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x14efe2['length']>0x0&&_0x14efe2[_0x14efe2['length']-0x1]&&_0x14efe2[_0x14efe2['length']-0x1]['forceDefaultExecution']?_0x14efe2['pop']():(_0x3e7878['return']=_0x2bf8f7((..._0x549065)=>_0x4cb5ca['execute'](..._0x549065,{'forceDefaultExecution':!0x0}),..._0x14efe2),_0x3e7878['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f6766){let _0x476155,_0x3a8ebe;const _0x495c4a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x476155=_0x5f6766();}catch(_0x5be3bf){_0x3a8ebe=_0x5be3bf;}return _0x495c4a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3a8ebe&&_0x48634c['rethrowUnexpectedError'](_0x3a8ebe,this),_0x476155;}['markInsertion'](_0x1ffbf3,_0x548693=null,_0x756202={}){if(_0x1ffbf3['isCollapsed'])return null;const _0x4d8e47=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x756202['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53e9b7,meta:_0x21be07}of this['_findSuggestions'](_0x1ffbf3,'insertion'))if(_0x21be07['isOwn']){if(!_0x21be07['isNextTo']){if(_0x21be07['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x53e9b7,_0x756202))continue;return _0x53e9b7;}if(Xt(_0x53e9b7,_0x756202))return _0x53e9b7;this['_breakSuggestionMarker'](_0x53e9b7,_0x1ffbf3['start'],_0x1ffbf3['end']);break;}if(_0x548693==_0x53e9b7['subType']&&Xt(_0x53e9b7,_0x756202)){const _0x2997cf=_0x53e9b7['getFirstRange']();return _0x2997cf['start']['isEqual'](_0x1ffbf3['end'])?this['_setSuggestionRange'](_0x53e9b7,this['_model']['createRange'](_0x1ffbf3['start'],_0x2997cf['end'])):this['_setSuggestionRange'](_0x53e9b7,this['_model']['createRange'](_0x2997cf['start'],_0x1ffbf3['end'])),_0x53e9b7;}}const _0x47425f=_0x57be53(),_0x24a1fe=_0x4d8e47['id'],_0x451f79=_0x548693?'insertion:'+_0x548693:'insertion',_0x3ac231=this['_setSuggestionData']({'id':_0x47425f,'type':_0x451f79,'createdAt':new Date(),'authorId':_0x24a1fe,'attributes':_0x756202});return this['_addSuggestionMarker'](_0x451f79,_0x47425f,_0x24a1fe,_0x1ffbf3),_0x3ac231;}['markMultiRangeInsertion'](_0x18c5a9,_0x126bd5='multi',_0x496f1e={}){const _0xdaa45e=this['editor']['plugins']['get']('Users')['me'],_0x17fa19=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x126bd5,'join');this['_trackingSessionId']&&(_0x496f1e['trackingSessionId']=this['_trackingSessionId']);for(const _0x59c45a of this['getSuggestions']())if(_0x59c45a['author']['id']==_0xdaa45e['id']&&'insertion'==_0x59c45a['type']&&_0x59c45a['subType']==_0x126bd5&&Xt(_0x59c45a,_0x496f1e)&&(_0x17fa19(_0x59c45a['getRanges'](),_0x18c5a9)||_0x17fa19(_0x18c5a9,_0x59c45a['getRanges']()))){for(const _0x5a47db of _0x18c5a9)_0x59c45a['addRange'](_0x5a47db);return _0x59c45a;}for(const {suggestion:_0x2909a5,meta:_0x2541d1}of this['_findSuggestions'](_0x18c5a9,'insertion')){if(!_0x2541d1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2541d1['containsRangeInObject'])continue;if(!Xt(_0x2909a5,_0x496f1e))continue;let _0x1e48c9=!0x0;for(const _0x267612 of _0x2909a5['getRanges']())for(const _0x309962 of _0x18c5a9)if(!_0x267612['containsRange'](_0x309962)){_0x1e48c9=!0x1;break;}if(_0x1e48c9)return _0x2909a5;}const _0x7a5125=_0x57be53(),_0x4cb774=_0xdaa45e['id'],_0x10722d='insertion:'+_0x126bd5,_0x47ecf6=this['_setSuggestionData']({'id':_0x7a5125,'type':_0x10722d,'createdAt':new Date(),'authorId':_0x4cb774,'attributes':_0x496f1e});for(const _0x1452fc of _0x18c5a9)this['_addSuggestionMarker'](_0x10722d,_0x7a5125,_0x4cb774,_0x1452fc,o['getMultiRangeId']());return _0x47ecf6;}['markInlineFormat'](_0x3b20f4,_0x3427a3,_0x339b0f=null,_0x58c85d={}){if(_0x339b0f=_0x339b0f||Kt(_0x3427a3),_0x3b20f4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58c85d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28d5ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339b0f,'accept');return this['forceDefaultExecution'](()=>_0x28d5ed([_0x3b20f4],_0x3427a3,_0x58c85d)),null;}const _0x2f7fd5=this['editor']['plugins']['get']('Users')['me'],_0x25b150=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x549d13,meta:_0x1388c3}of this['_findSuggestions'](_0x3b20f4,'insertion'))_0x1388c3['isOwn']&&!_0x1388c3['isInsideObject']&&_0x25b150['push'](..._0x549d13['getRanges']());}const _0x1626da=function(_0x311531,_0x28c47e){const _0x481ded=[];for(const _0x122050 of _0x28c47e){const _0x32bdc2=_0x311531['getIntersection'](_0x122050);_0x32bdc2&&_0x481ded['push'](_0x32bdc2);}return _0x481ded;}(_0x3b20f4,_0x25b150),_0x57da0e=function(_0x5f3a06,_0x4f18a0){const _0x2901b2=[_0x5f3a06];for(const _0x420589 of _0x4f18a0){let _0x29b855=0x0;for(;_0x29b855<_0x2901b2['length'];){const _0x54e8fb=_0x2901b2[_0x29b855]['getDifference'](_0x420589);_0x2901b2['splice'](_0x29b855,0x1,..._0x54e8fb),_0x29b855+=_0x54e8fb['length'];}}return _0x2901b2;}(_0x3b20f4,_0x25b150);_0x1626da['length']&&this['_model']['change'](()=>{for(const _0x43cde0 of _0x1626da){const _0x337104=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339b0f,'accept');this['forceDefaultExecution'](()=>_0x337104([_0x43cde0],_0x3427a3,_0x58c85d));}});for(const _0x5a9d00 of _0x57da0e){let _0x2ac543=null,_0x30e74d=_0x5a9d00['start'],_0x4ce74d=_0x5a9d00['end'];for(const {suggestion:_0x462ff7,meta:_0x59e3cb}of this['_findSuggestions'](_0x5a9d00,'formatInline')){if(!_0x59e3cb['isOwn'])continue;if(_0x462ff7['subType']!=_0x339b0f)continue;if(!Xt(_0x462ff7,_0x58c85d))continue;const _0x40f721=_0x462ff7['getFirstRange']();if(_0x40f721['containsRange'](_0x5a9d00,!0x0))return null;_0x30e74d=_0x30e74d['isBefore'](_0x40f721['start'])?_0x30e74d:_0x40f721['start'],_0x4ce74d=_0x4ce74d['isAfter'](_0x40f721['end'])?_0x4ce74d:_0x40f721['end'],_0x2ac543?_0x40f721['start']['isBefore'](_0x2ac543['getFirstRange']()['start'])?(_0x2ac543['removeMarkers'](),_0x2ac543=_0x462ff7):_0x462ff7['removeMarkers']():_0x2ac543=_0x462ff7;}const _0x536b00=this['_model']['createRange'](_0x30e74d,_0x4ce74d);if(_0x2ac543)this['_setSuggestionRange'](_0x2ac543,_0x536b00);else{const _0x4d17f0=_0x57be53(),_0x4a88d3=_0x2f7fd5['id'];this['_setSuggestionData']({'id':_0x4d17f0,'type':'formatInline:'+_0x339b0f,'data':_0x3427a3,'createdAt':new Date(),'authorId':_0x4a88d3,'attributes':_0x58c85d}),this['_addSuggestionMarker']('formatInline:'+_0x339b0f,_0x4d17f0,_0x4a88d3,_0x536b00);}}return null;}['markBlockFormat'](_0x3ba193,_0x56b8a0,_0x356cff=[],_0x424c99=null,_0x2b6b7c={}){_0x56b8a0['formatGroupId']||(_0x56b8a0['formatGroupId']=_0x56b8a0['commandName']),_0x56b8a0['multipleBlocks']=_0x3ba193['is']('range'),_0x424c99=_0x424c99||Kt(_0x56b8a0);const _0x24bafe=_0x356cff['map'](_0x5888c0=>zt(_0x5888c0,this['_model'])),_0x2ce630=_0x3ba193['is']('range')?_0x3ba193:zt(_0x3ba193,this['_model']);if(this['_trackingSessionId']&&(_0x2b6b7c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x538724=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424c99,'accept');return this['forceDefaultExecution'](()=>_0x538724([_0x2ce630],_0x56b8a0,_0x2b6b7c)),null;}_0x24bafe['push'](_0x2ce630);let _0x4de599=!0x0;for(const _0x21881a of _0x24bafe)if(!this['_rangeIsInLocalUserInsertion'](_0x21881a)){_0x4de599=!0x1;break;}if(_0x4de599&&'always'!==this['_trackFormatChanges']){const _0x18873c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424c99,'accept');return this['forceDefaultExecution'](()=>_0x18873c([_0x2ce630],_0x56b8a0,_0x2b6b7c)),null;}let _0x5097be=null,_0x49ce36=_0x2ce630['start'],_0x31b9ad=_0x2ce630['end'];for(const {suggestion:_0xe05925,meta:_0x527c04}of this['_findSuggestions'](_0x2ce630,'formatBlock')){if(!_0x527c04['isOwn'])continue;if(_0x527c04['isNextTo']||_0x527c04['containsRangeInObject']||_0x527c04['isInsideObject'])continue;if(_0xe05925['data']['formatGroupId']!=_0x56b8a0['formatGroupId'])continue;if(!Xt(_0xe05925,_0x2b6b7c))continue;const _0x4f93cd=_0xe05925['getFirstRange']();if(_0xe05925['subType']==_0x424c99){if(_0x4f93cd['containsRange'](_0x2ce630,!0x0))return null;_0x49ce36=_0x49ce36['isBefore'](_0x4f93cd['start'])?_0x49ce36:_0x4f93cd['start'],_0x31b9ad=_0x31b9ad['isAfter'](_0x4f93cd['end'])?_0x31b9ad:_0x4f93cd['end'],_0x5097be?_0x4f93cd['start']['isBefore'](_0x5097be['getFirstRange']()['start'])?(_0x5097be['removeMarkers'](),_0x5097be=_0xe05925):_0xe05925['removeMarkers']():_0x5097be=_0xe05925;}else{const _0x30f386=_0x2ce630['getIntersection'](_0x4f93cd);this['_cutOutSuggestionMarker'](_0xe05925,_0x30f386);}}const _0x49b719=this['editor']['plugins']['get']('Users')['me'],_0x19a18b=_0x57be53(),_0x377e0e=_0x49b719['id'];if(_0x5097be)return this['_setSuggestionRange'](_0x5097be,this['_model']['createRange'](_0x49ce36,_0x31b9ad)),_0x5097be;{const _0x4f7013=this['_setSuggestionData']({'id':_0x19a18b,'type':'formatBlock:'+_0x424c99,'data':_0x56b8a0,'createdAt':new Date(),'authorId':_0x377e0e,'attributes':_0x2b6b7c});return this['_addSuggestionMarker']('formatBlock:'+_0x424c99,_0x19a18b,_0x377e0e,this['_model']['createRange'](_0x49ce36,_0x31b9ad)),_0x4f7013;}}['markMultiRangeBlockFormat'](_0xba220a,_0x344231,_0x4c8b6d=[],_0x3ad567=null,_0x22ddb7={}){_0x344231['formatGroupId']||(_0x344231['formatGroupId']=_0x344231['commandName']);const _0x1637a3=_0xba220a[0x0];_0x344231['multipleBlocks']=_0x1637a3['is']('range'),_0x3ad567=_0x3ad567||Kt(_0x344231);const _0x40ce64=_0x4c8b6d['map'](_0x10c293=>zt(_0x10c293,this['_model'])),_0x172e4b=_0x1637a3['is']('range')?_0xba220a:_0xba220a['map'](_0x49d269=>zt(_0x49d269,this['_model']));if(this['_trackingSessionId']&&(_0x22ddb7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c970f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'accept');return this['forceDefaultExecution'](()=>_0x2c970f(_0x172e4b,_0x344231,_0x22ddb7)),null;}_0x40ce64['push'](..._0x172e4b);let _0x31fe90=!0x0;for(const _0x3a8bf6 of _0x40ce64)if(!this['_rangeIsInLocalUserInsertion'](_0x3a8bf6)){_0x31fe90=!0x1;break;}if(_0x31fe90&&'always'!==this['_trackFormatChanges']){const _0x4ba2e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'accept');return this['forceDefaultExecution'](()=>_0x4ba2e5(_0x172e4b,_0x344231,_0x22ddb7)),null;}const _0x35c97c=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf4aae of this['getSuggestions']()){if(_0xcf4aae['author']['id']!=_0x35c97c['id'])continue;if('formatBlock'!=_0xcf4aae['type']||_0xcf4aae['data']['formatGroupId']!=_0x344231['formatGroupId'])continue;if(!Xt(_0xcf4aae,_0x22ddb7))continue;const _0x195ff4=_0xcf4aae['subType']==_0x3ad567;for(let _0x24f367=0x0;_0x24f367<_0x172e4b['length'];_0x24f367++){const _0x5f4eeb=_0x172e4b[_0x24f367];for(const _0xcc9016 of _0xcf4aae['getMarkers']()){const _0x282973=_0xcc9016['getRange']();if(_0x5f4eeb['isEqual'](_0x282973)){_0x195ff4?(_0x172e4b['splice'](_0x24f367,0x1),_0x24f367--):_0xcf4aae['removeMarker'](_0xcc9016['name']);break;}}}}if(0x0==_0x172e4b['length'])return null;const _0x1fe216=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'join');for(const _0x40b155 of this['getSuggestions']())if(_0x40b155['author']['id']==_0x35c97c['id']&&'formatBlock'==_0x40b155['type']&&_0x40b155['data']['formatGroupId']==_0x344231['formatGroupId']&&_0x40b155['subType']==_0x3ad567&&Xt(_0x40b155,_0x22ddb7)&&(_0x1fe216(_0x40b155['getRanges'](),_0x172e4b)||_0x1fe216(_0x172e4b,_0x40b155['getRanges']()))){for(const _0x4ab948 of _0x172e4b)_0x40b155['addRange'](_0x4ab948);return _0x40b155;}const _0x2df725=_0x57be53(),_0x30949f=_0x35c97c['id'],_0x2aaf4c='formatBlock:'+_0x3ad567,_0x55789a=this['_setSuggestionData']({'id':_0x2df725,'type':_0x2aaf4c,'data':_0x344231,'createdAt':new Date(),'authorId':_0x30949f,'attributes':_0x22ddb7});for(const _0x23a930 of _0x172e4b)this['_addSuggestionMarker'](_0x2aaf4c,_0x2df725,_0x30949f,_0x23a930,o['getMultiRangeId']());return _0x55789a;}['markDeletion'](_0x339c47,_0x44ecd0=null,_0x5ad8a7={}){if(_0x339c47['isCollapsed'])return null;const _0xfd4e54=this['editor']['plugins']['get']('Users')['me'],_0x2a7c80=new _0x5bdd0a(_0x339c47['start'],_0x339c47['end']);this['_trackingSessionId']&&(_0x5ad8a7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1f3556,meta:_0x18092f}of this['_findSuggestions'](_0x2a7c80,'insertion'))if(_0x18092f['isOwn']&&!_0x18092f['isNextTo']){if(_0x1f3556['isMultiRange']){const _0xf216df=_0x1f3556['getRanges']()['filter'](_0x344a62=>'$graveyard'!=_0x344a62['root']['rootName']);_0xf216df['every'](_0x45b851=>_0x2a7c80['containsRange'](_0x45b851,!0x0))&&_0x1f3556['discard']();if(_0xf216df['some'](_0x4e24e8=>_0x4e24e8['containsRange'](_0x2a7c80,!0x0))){const _0x1bead2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x44ecd0,'accept');return this['forceDefaultExecution'](()=>_0x1bead2([_0x2a7c80],null,_0x5ad8a7)),null;}}else{const _0x190bb9=_0x2a7c80['getIntersection'](_0x1f3556['getFirstRange']());null!==_0x190bb9&&_0x1f3556['_onDiscard']([_0x190bb9],null,_0x5ad8a7);}}if(_0x2a7c80['detach'](),_0x2a7c80['isCollapsed']||'$graveyard'==_0x2a7c80['root']['rootName'])return null;let _0x1e01c7=null,_0x591e2e=_0x2a7c80['start'],_0xa16187=_0x2a7c80['end'];const _0x18a77c=this['_findSuggestions'](_0x2a7c80,'deletion');for(const {suggestion:_0x666cb3,meta:_0x198989}of _0x18a77c){const _0x5e2a0f=this['_model']['createRange'](_0x591e2e,_0xa16187);if(_0x198989['isOwn']&&(this['_mergeNestedSuggestions']||!_0x198989['containsRangeInObject']&&!_0x198989['isInsideObject'])){if(_0x666cb3['isMultiRange']){if(!Xt(_0x666cb3,_0x5ad8a7))continue;let _0x3a4334=!0x0;for(const _0x3915c0 of _0x666cb3['getRanges']()){if(_0x3915c0['containsRange'](_0x5e2a0f,!0x0))return _0x666cb3;_0x5e2a0f['containsRange'](_0x3915c0)||(_0x3a4334=!0x1);}_0x3a4334&&_0x666cb3['discard']();}else{const _0x17f310=_0x666cb3['getFirstRange']();if(_0x17f310['containsRange'](_0x5e2a0f,!0x0))return _0x666cb3;if(!Xt(_0x666cb3,_0x5ad8a7)){_0x5e2a0f['containsRange'](_0x17f310)?_0x666cb3['removeMarkers']():_0x17f310['containsPosition'](_0x591e2e)?_0x591e2e=_0x17f310['end']:_0x17f310['containsPosition'](_0xa16187)&&(_0xa16187=_0x17f310['start']);continue;}_0x591e2e=_0x591e2e['isBefore'](_0x17f310['start'])?_0x591e2e:_0x17f310['start'],_0xa16187=_0xa16187['isAfter'](_0x17f310['end'])?_0xa16187:_0x17f310['end'],_0x5ad8a7=Object['assign']({},_0x666cb3['attributes']),_0x1e01c7?_0x17f310['start']['isBefore'](_0x1e01c7['getFirstRange']()['start'])?(_0x1e01c7['removeMarkers'](),_0x1e01c7=_0x666cb3):_0x666cb3['removeMarkers']():_0x1e01c7=_0x666cb3;}}}if(_0x1e01c7)return this['_setSuggestionRange'](_0x1e01c7,this['_model']['createRange'](_0x591e2e,_0xa16187)),_0x1e01c7;{const _0x4237e9=_0x57be53(),_0x3e693b=this['_model']['createRange'](_0x591e2e,_0xa16187),_0xf7b2b1=_0xfd4e54['id'],_0x921cf4=_0x44ecd0?'deletion:'+_0x44ecd0:'deletion',_0x2963e2=this['_setSuggestionData']({'id':_0x4237e9,'type':_0x921cf4,'createdAt':new Date(),'authorId':_0xf7b2b1,'attributes':_0x5ad8a7});return this['_addSuggestionMarker'](_0x921cf4,_0x4237e9,_0xf7b2b1,_0x3e693b),_0x2963e2;}}['markMultiRangeDeletion'](_0xf8d8ab,_0x4b61b6='multi',_0x30a103={}){const _0x46535d=this['editor']['plugins']['get']('Users')['me'],_0xe92da3=_0xf8d8ab['map'](_0x2ba6a2=>new _0x5bdd0a(_0x2ba6a2['start'],_0x2ba6a2['end'])),_0x37a953=new Set();this['_trackingSessionId']&&(_0x30a103['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3fa31d,meta:_0x130d1d}of this['_findSuggestions'](_0xe92da3,'insertion'))_0x130d1d['isOwn']&&!_0x130d1d['isNextTo']&&_0x37a953['add'](_0x3fa31d);for(const _0x1fff0b of _0x37a953)if(_0x1fff0b['isMultiRange']){const _0x2f3c7e=_0x1fff0b['getRanges']();(!_0x1fff0b['attributes']||!_0x1fff0b['attributes']['skipNestingCheck'])&&(_0x2f3c7e['every'](_0xef2a77=>_0xe92da3['some'](_0x4e7dc9=>_0x4e7dc9['containsRange'](_0xef2a77,!0x0)))&&_0x1fff0b['discard']());if(_0xe92da3['every'](_0x1e3c48=>_0x2f3c7e['some'](_0x1e8625=>_0x1e8625['containsRange'](_0x1e3c48,!0x0)))){const _0x4abb14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'accept');return this['forceDefaultExecution'](()=>_0x4abb14(_0xf8d8ab,null,_0x30a103)),null;}}else{const _0xee324f=_0x1fff0b['getFirstRange']();_0xe92da3['some'](_0x49a4b4=>_0x49a4b4['containsRange'](_0xee324f,!0x0))&&_0x1fff0b['discard']();if(_0xe92da3['every'](_0x5e78ac=>_0xee324f['containsRange'](_0x5e78ac,!0x0))){const _0x22cafc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'accept');return this['forceDefaultExecution'](()=>_0x22cafc(_0xe92da3,null,_0x30a103)),null;}}const _0x25441a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'join');let _0x1e951f=null;for(const _0x21cab7 of this['getSuggestions']())if(_0x21cab7['author']['id']==_0x46535d['id']&&_0x21cab7['isInContent']&&'deletion'==_0x21cab7['type']&&_0x21cab7['subType']==_0x4b61b6&&Xt(_0x21cab7,_0x30a103)&&(_0x25441a(_0x21cab7['getRanges'](),_0xe92da3)||_0x25441a(_0xe92da3,_0x21cab7['getRanges']()))){if(_0x1e951f){if(_0x21cab7['commentThread']&&_0x21cab7['commentThread']['length'])continue;for(const _0x4b4f70 of _0x21cab7['getRanges']())_0x1e951f['isIntersectingWithRange'](_0x4b4f70)||_0x1e951f['addRange'](_0x4b4f70);_0x21cab7['removeMarkers']();}else{_0x1e951f=_0x21cab7;for(const _0x312285 of _0xe92da3)_0x21cab7['isIntersectingWithRange'](_0x312285)||_0x21cab7['addRange'](_0x312285);}}if(_0x1e951f)return _0x1e951f;_0x37a953['clear']();for(const {suggestion:_0x17c683,meta:_0x53f9cc}of this['_findSuggestions'](_0xe92da3,'deletion'))_0x53f9cc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53f9cc['containsRangeInObject']&&!_0x53f9cc['isInsideObject'])&&Xt(_0x17c683,_0x30a103)&&_0x37a953['add'](_0x17c683);for(const _0x3c16b2 of _0x37a953){const _0x19c2d9=_0x3c16b2['getRanges']();if(!_0x30a103||!_0x30a103['skipNestingCheck']){if(_0xe92da3['every'](_0x239d87=>_0x19c2d9['some'](_0x473df0=>_0x473df0['containsRange'](_0x239d87,!0x0))))return _0x3c16b2;}(!_0x3c16b2['attributes']||!_0x3c16b2['attributes']['skipNestingCheck'])&&(_0x19c2d9['every'](_0x482b89=>_0xe92da3['some'](_0x10a72b=>_0x10a72b['containsRange'](_0x482b89,!0x0)))&&_0x3c16b2['discard']());}const _0x1e13f4=_0x57be53(),_0x1b3b61=_0x46535d['id'],_0x35f61d='deletion:'+_0x4b61b6,_0x182fa6=this['_setSuggestionData']({'id':_0x1e13f4,'type':_0x35f61d,'createdAt':new Date(),'authorId':_0x1b3b61,'attributes':_0x30a103});for(const _0x377548 of _0xe92da3)_0x377548['detach'](),_0x377548['isCollapsed']||'$graveyard'==_0x377548['root']['rootName']||this['_addSuggestionMarker'](_0x35f61d,_0x1e13f4,_0x1b3b61,_0x377548,o['getMultiRangeId']());return _0x182fa6;}['markAttributeChange'](_0x520a2d,_0x1f199b,_0x51006f,_0x526ed5,_0x306947){if(_0x520a2d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17db25=this['editor']['plugins']['get']('Users')['me']['id'],_0x4324aa=Array['from'](this['_suggestions']['values']())['filter'](_0x48a858=>'attribute'==_0x48a858['type']&&_0x48a858['data']['key']==_0x1f199b&&_0x48a858['isIntersectingWithRange'](_0x520a2d));if(this['_trackingSessionId']&&(_0x306947['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x36e5a6=this['_findSuggestions'](_0x520a2d,'insertion')['filter'](({meta:_0x14a825})=>_0x14a825['isOwn']&&!_0x14a825['isInsideObject']&&!_0x14a825['isNextTo'])['map'](({suggestion:_0x15c956})=>_0x15c956);_0x4324aa['unshift'](..._0x36e5a6);}const _0x4acbdf=new Map([[_0x520a2d,_0x51006f]]);for(const _0x59327d of _0x4324aa){const _0x236817='attribute'==_0x59327d['type']?_0x59327d['data']['oldValue']:void 0x0,_0x23083b=_0x59327d['getFirstRange'](),_0x1a3721=Array['from'](_0x4acbdf['keys']())['find'](_0x5bb537=>_0x5bb537['isIntersecting'](_0x23083b));if(!_0x1a3721)continue;const _0x1de073=_0x1a3721['getDifference'](_0x23083b);this['_isBlockAttribute'](_0x1f199b)&&'insertion'==_0x59327d['type']&&0x0!=_0x1de073['length']||(_0x4acbdf['delete'](_0x1a3721),_0x1de073['forEach'](_0x519c93=>{_0x4acbdf['set'](_0x519c93,_0x51006f);}),'insertion'!=_0x59327d['type']&&_0x236817!=_0x526ed5&&_0x4acbdf['set'](_0x1a3721['getIntersection'](_0x23083b),_0x236817));}const _0x44f2fc=[];for(const [_0x375fbf,_0x12970f]of _0x4acbdf){const _0x35fff8=_0x57be53(),_0x4ab344={'key':_0x1f199b,'oldValue':_0x12970f,'newValue':_0x526ed5};_0x1f199b['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':_0x1f199b});const _0x24db1c=('attribute:'+(_0x1f199b+'|'+Kt({'newValue':_0x526ed5})))['substring'](0x0,0x3c),_0x2c216f=this['_setSuggestionData']({'id':_0x35fff8,'type':_0x24db1c,'data':_0x4ab344,'createdAt':new Date(),'authorId':_0x17db25,'attributes':_0x306947});_0x44f2fc['push'](_0x2c216f),this['_addSuggestionMarker'](_0x24db1c,_0x35fff8,_0x17db25,_0x375fbf);}return _0x44f2fc;}['enableDefaultAttributesIntegration'](_0x5665a0){this['enableCommand'](_0x5665a0,(_0x5a8598,..._0x5bf10c)=>{this['_recordAttributeChanges'](()=>{_0x5a8598(..._0x5bf10c);});});}['registerBlockAttribute'](_0x5e0bf4){this['_blockAttributeKeys']['add'](_0x5e0bf4);}['registerInlineAttribute'](_0x50edd5){this['_inlineAttributeKeys']['add'](_0x50edd5);}['startTrackingSession'](_0x3c540a){return this['_trackingSessionId']=void 0x0!==_0x3c540a?_0x3c540a:_0x57be53(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2563c2){return'attribute'==_0x2563c2['type']?_0x2563c2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xa135a1,_0x4f73ad){const _0x19d97f=_0xa135a1['getFirstMarker']();this['_model']['change'](_0x261ed1=>{_0x261ed1['updateMarker'](_0x19d97f,{'range':_0x4f73ad});});}['_addThreadToSuggestion'](_0x3dcfc7){const _0x248d06=_0x3dcfc7['id'],_0x2097da=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x248d06)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2097da,'threadId':_0x248d06,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48e362=this['_commentsRepository']['getCommentThread'](_0x248d06);_0x48e362['unbind']('isRemovable'),_0x48e362['isRemovable']=!0x1,_0x3dcfc7['commentThread']=_0x48e362;}['_checkSuggestionCorrectness'](_0x249c9d,_0x1db2e1,_0x35ef45,_0x266287){if(_0x249c9d['type']!=_0x1db2e1||_0x249c9d['subType']!=_0x35ef45||_0x249c9d['creator']['id']!=_0x266287)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x48634c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28a043,_0x734445){const _0x9bf93f=_0x28a043['getFirstRange']();if(_0x734445['isEqual'](_0x9bf93f))_0x28a043['removeMarkers']();else{if(_0x9bf93f['containsRange'](_0x734445)){const _0x5c0832=this['_model']['createPositionAt'](_0x734445['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x9bf93f['start'],_0x5c0832));const _0xfaa514=_0x57be53(),_0x58c8f7=_0x28a043['creator']['id'],_0x99837f=_0x28a043['type']+':'+_0x28a043['subType'];this['_setSuggestionData']({'id':_0xfaa514,'type':_0x99837f,'createdAt':new Date(),'authorId':_0x58c8f7,'data':_0x28a043['data'],'attributes':_0x28a043['attributes']});const _0xcd4e1c=this['_model']['createPositionAt'](_0x734445['end']['parent'],'after'),_0x3a7dd7=this['_model']['createRange'](_0xcd4e1c,_0x9bf93f['end']);this['_addSuggestionMarker'](_0x99837f,_0xfaa514,_0x58c8f7,_0x3a7dd7);}else{if(_0x9bf93f['containsPosition'](_0x734445['start'])){const _0x8e1a40=this['_model']['createPositionAt'](_0x734445['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x9bf93f['start'],_0x8e1a40));}else{const _0x47dcba=this['_model']['createPositionAt'](_0x734445['end']['parent'],'after');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x47dcba,_0x9bf93f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x501243){for(const {suggestion:_0x47b1db,meta:_0x43b1c0}of this['_findSuggestions'](_0x501243,'insertion')){if(!_0x43b1c0['isOwn'])continue;const _0x21ff74=_0x47b1db['getRanges']();for(const _0x422a89 of _0x21ff74)if(!_0x501243['getDifference'](_0x422a89)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32d757){const _0x1a8196=this['editor']['plugins']['get']('Users')['getUser'](_0x32d757);if(!_0x1a8196)throw new _0x48634c('track-changes-user-not-found',this);return _0x1a8196;}['_getExternalAuthor'](_0x44b62c){const _0x46f850=this['editor']['plugins']['get']('Users'),_0x21a26d=_0x23039f('external:'+_0x44b62c),_0x241a11=_0x46f850['getUser'](_0x21a26d);return _0x241a11||_0x46f850['addUser']({'id':_0x21a26d,'name':_0x44b62c});}['_createSuggestion'](_0x3d8785,_0x2969d6,_0x42d337,_0x45d841,_0x145cbf,_0x2f5ddf){const _0x54d715=this['_getAuthorFromId'](_0x45d841),_0x19a7f0=this['_suggestionFactory']['buildSuggestion'](_0x3d8785,_0x2969d6,_0x42d337,_0x54d715,_0x145cbf,_0x41fc8d=>{this['_updateSuggestionData'](_0x42d337,{'attributes':_0x41fc8d});const _0x554b04=this['getSuggestion'](_0x42d337);this['_joinWithAdjacentSuggestions'](new Set([_0x554b04])),this['_refreshSuggestionsChain'](new Set([_0x554b04]));},_0x2f5ddf);return this['listenTo'](_0x19a7f0,'accept',()=>{this['_updateSuggestionData'](_0x42d337,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x19a7f0,'discard',()=>{this['_updateSuggestionData'](_0x42d337,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42d337,_0x19a7f0),this['_suggestionState']['set'](_0x19a7f0,'notReady'),_0x19a7f0;}['_splitMarkerName'](_0x72c447){const _0x1dc487=_0x72c447['split'](':');return{'group':_0x1dc487[0x0],'type':_0x1dc487[0x1],'subType':_0x1dc487['length']>=0x5?_0x1dc487[0x2]:null,'id':_0x1dc487['length']<0x5?_0x1dc487[0x2]:_0x1dc487[0x3],'authorId':_0x1dc487['length']<0x5?_0x1dc487[0x3]:_0x1dc487[0x4],'markerCount':0x6==_0x1dc487['length']?_0x1dc487[0x5]:null};}['_breakSuggestionMarker'](_0x2320d4,_0x295f45,_0x39264a){const _0x4f5e9c=_0x2320d4['getFirstRange'](),_0x369085=_0x4f5e9c['start'],_0x2c7100=_0x4f5e9c['end'];this['_setSuggestionRange'](_0x2320d4,this['_model']['createRange'](_0x369085,_0x295f45));const _0xbbf390=_0x57be53(),_0x1ba049=_0x2320d4['creator']['id'],_0x16624d=_0x2320d4['type']+(_0x2320d4['subType']?':'+_0x2320d4['subType']:'');this['_setSuggestionData']({'id':_0xbbf390,'type':_0x16624d,'createdAt':new Date(),'authorId':_0x1ba049,'originalSuggestionId':_0x2320d4['_originalSuggestionId']||_0x2320d4['id'],'attributes':_0x2320d4['attributes'],'data':_0x2320d4['data']});const _0x21c2d2=this['_getAttributeKey'](_0x2320d4);('formatBlock'==_0x2320d4['type']||_0x21c2d2&&this['_isBlockAttribute'](_0x21c2d2))&&(_0x39264a=this['_model']['createPositionBefore'](_0x39264a['parent'])),this['_addSuggestionMarker'](_0x16624d,_0xbbf390,_0x1ba049,this['_model']['createRange'](_0x39264a,_0x2c7100));}['_findSuggestions'](_0x3bb15e,_0xc31543=null){const _0x4b267e=[],_0x5cb57d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bb15e)||(_0x3bb15e=[_0x3bb15e]);for(const _0x501401 of this['getSuggestions']()){if(!_0x501401['isInContent'])continue;if(_0xc31543&&_0x501401['type']!=_0xc31543)continue;let _0x17f395=!0x1;for(const _0xfad7a4 of _0x501401['getRanges']()){for(const _0xa5ddb9 of _0x3bb15e){const _0x5bc691=_0xa5ddb9['start']['isEqual'](_0xfad7a4['end'])||_0xa5ddb9['end']['isEqual'](_0xfad7a4['start']);if(_0x5bc691||_0xa5ddb9['getIntersection'](_0xfad7a4)){const _0x1305e7=_0xa5ddb9['containsRange'](_0xfad7a4)&&Gt(this['_model']['schema'],_0xfad7a4['start'],_0xa5ddb9),_0x2ea65e=_0xfad7a4['containsRange'](_0xa5ddb9)&&Gt(this['_model']['schema'],_0xa5ddb9['start'],_0xfad7a4);_0x4b267e['push']({'suggestion':_0x501401,'meta':{'isOwn':_0x5cb57d==_0x501401['author'],'isNextTo':_0x5bc691,'isInsideObject':_0x1305e7,'containsRangeInObject':_0x2ea65e}}),_0x17f395=!0x0;break;}}if(_0x17f395)break;}}return _0x4b267e;}['_addSuggestionMarker'](_0x10739c,_0x577e4a,_0x56d52f,_0x22d0a3,_0x1e5137){this['_model']['change'](_0x1ad804=>{let _0x3d43e2='suggestion:'+_0x10739c+':'+_0x577e4a+':'+_0x56d52f;_0x1e5137&&(_0x3d43e2=_0x3d43e2+':'+_0x1e5137),_0x1ad804['addMarker'](_0x3d43e2,{'range':_0x22d0a3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x8b115e){const _0x59326b=_0x8b115e['previous'],_0x27d6e0=_0x8b115e['next'];_0x8b115e['previous']=null,_0x8b115e['next']=null,null!=_0x59326b&&_0x59326b['next']==_0x8b115e&&(_0x59326b['next']=_0x27d6e0),null!=_0x27d6e0&&_0x27d6e0['previous']==_0x8b115e&&(_0x27d6e0['previous']=_0x59326b),'ready'==this['_suggestionState']['get'](_0x8b115e)&&(this['_suggestionState']['set'](_0x8b115e,'removed'),this['fire']('suggestionUnloaded',_0x8b115e,_0x59326b,_0x27d6e0));}['_setSuggestionData'](_0x55fbb5){const _0x2157d0=_0x55fbb5['id'],_0x63371=this['addSuggestionData'](_0x55fbb5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5bf2fb=this['editor']['plugins']['get']('PendingActions'),_0x43bc21=_0x63371['hasComments'],_0x3c67c2=_0x63371['subType']?_0x63371['type']+':'+_0x63371['subType']:_0x63371['type'],_0x339849=this['editor']['locale'],_0xf808be=_0x5bf2fb['add'](c(_0x339849,'PENDING_ACTION_SUGGESTION')),_0x29532b={'id':_0x2157d0,'type':_0x3c67c2,'hasComments':_0x43bc21,'data':_0x55fbb5['data']||null,'originalSuggestionId':_0x55fbb5['originalSuggestionId']||null,'attributes':_0x63371['attributes']};this['_adapter']['addSuggestion'](_0x29532b)['then'](_0x32ecd8=>{_0x63371['_saved']=!0x0,_0x5bf2fb['remove'](_0xf808be),_0x32ecd8&&_0x32ecd8['createdAt']&&(this['_suggestions']['get'](_0x2157d0)['createdAt']=_0x32ecd8['createdAt']);})['catch'](_0x472c1e=>{throw _0x173234('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x63371['discard']();}),_0x63371['stopListening'](),this['_suggestions']['delete'](_0x63371['id']),this['_suggestionState']['delete'](_0x63371),_0x472c1e;});}return _0x63371;}['_isBlockAttribute'](_0x1984e7){return this['_blockAttributeKeys']['has'](_0x1984e7);}['_updateSuggestionData'](_0x3fbbb7,_0x322ad9){const _0x3462d3=this['editor']['plugins']['get']('PendingActions'),_0x292b1e=this['getSuggestion'](_0x3fbbb7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292b1e['_saved']){const _0x3a11b9=_0x3462d3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3fbbb7,_0x322ad9)['then'](()=>{_0x3462d3['remove'](_0x3a11b9);});}else _0x292b1e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3fbbb7,_0x322ad9);});}}['_getSuggestionData'](_0x2e74d0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x48634c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e74d0);}['_handleNewSuggestionMarker'](_0x1bd2b9){const {id:_0x46bb14,type:_0xa6e83d,subType:_0x382ec5,authorId:_0xe5ab9a}=this['_splitMarkerName'](_0x1bd2b9),_0x356c5f=this['_suggestions']['get'](_0x46bb14)||this['_createSuggestion'](_0xa6e83d,_0x382ec5,_0x46bb14,_0xe5ab9a,{});switch(this['_checkSuggestionCorrectness'](_0x356c5f,_0xa6e83d,_0x382ec5,_0xe5ab9a),this['_suggestionState']['get'](_0x356c5f)){case'notReady':this['_getSuggestionData'](_0x46bb14)['then'](_0x186797=>{let _0x2b2587=Promise['resolve']();_0x186797['hasComments']&&(_0x2b2587=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46bb14})),_0x2b2587['then'](()=>{this['addSuggestionData'](_0x186797)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x356c5f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46bb14,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x356c5f,'ready'),this['fire']('suggestionLoaded',_0x356c5f);break;case'ready':this['fire']('suggestionChanged',_0x356c5f);}return _0x356c5f['addMarkerName'](_0x1bd2b9),_0x356c5f;}['_refreshSuggestionsChain'](_0x2a2087){const _0x563e7a=Array['from'](_0x2a2087),_0x2e301b=_0x563e7a['filter'](_0x22f1f8=>'attribute'==_0x22f1f8['type']);this['_refreshAttributeSuggestionsChain'](_0x2e301b);const _0x4bdf73=_0x563e7a['filter'](_0xea8e8b=>!_0xea8e8b['isMultiRange']&&'attribute'!=_0xea8e8b['type']),_0x3a3358=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3905d4=>!_0x3905d4['isMultiRange']&&'attribute'!=_0x3905d4['type']),_0x118c7f=_0x3a3358['filter'](_0x21b2ac=>!_0x2a2087['has'](_0x21b2ac)),_0x6f818b=new Map(_0x3a3358['map'](_0x3dc1c3=>[_0x3dc1c3,this['_suggestionFactory']['getSuggestionCallback'](_0x3dc1c3['type'],_0x3dc1c3['subType'],'chain')])),_0x3d3c11=new Map(_0x3a3358['map'](_0x1b0bb7=>[_0x1b0bb7,_0x1b0bb7['getFirstRange']()])),_0x70204b=new Set(),_0x37cac7=new Set();for(let _0x59dc72=0x0;_0x59dc72<_0x4bdf73['length'];_0x59dc72++)_0x3a4684(_0x4bdf73[_0x59dc72],_0x4bdf73,_0x59dc72+0x1);for(let _0x1e795c=0x0;_0x1e795c<_0x4bdf73['length'];_0x1e795c++)_0x3a4684(_0x4bdf73[_0x1e795c],_0x118c7f,0x0);const _0x3f03b6=new Set();for(let _0x3133e1=0x0;_0x3133e1<_0x4bdf73['length'];_0x3133e1++){const _0xe2e270=_0x4bdf73[_0x3133e1];!_0x37cac7['has'](_0xe2e270)&&_0xe2e270['previous']&&(_0x3f03b6['add'](_0xe2e270['previous']),_0xe2e270['previous']['next']===_0xe2e270&&(_0xe2e270['previous']['next']=null),_0xe2e270['previous']=null),!_0x70204b['has'](_0xe2e270)&&_0xe2e270['next']&&(_0x3f03b6['add'](_0xe2e270['next']),_0xe2e270['next']['previous']===_0xe2e270&&(_0xe2e270['next']['previous']=null),_0xe2e270['next']=null);}function _0x3a4684(_0x49e699,_0x56a068,_0x161879){for(let _0x44e421=_0x161879;_0x44e421<_0x56a068['length'];_0x44e421++){const _0x4f6b6e=_0x50c171(_0x49e699,_0x56a068[_0x44e421]);_0x4f6b6e&&(_0x4f6b6e[0x0]['next']=_0x4f6b6e[0x1],_0x4f6b6e[0x1]['previous']=_0x4f6b6e[0x0],_0x70204b['add'](_0x4f6b6e[0x0]),_0x37cac7['add'](_0x4f6b6e[0x1]));}}function _0x50c171(_0x11b5a8,_0x14c72f){if(_0x11b5a8['author']['id']!==_0x14c72f['author']['id'])return null;const _0x10b4a7=_0x6f818b['get'](_0x11b5a8)(_0x11b5a8,_0x14c72f,_0x3d3c11['get'](_0x11b5a8),_0x3d3c11['get'](_0x14c72f));if(!_0x10b4a7)return null;return _0x6f818b['get'](_0x14c72f)(_0x11b5a8,_0x14c72f,_0x3d3c11['get'](_0x11b5a8),_0x3d3c11['get'](_0x14c72f))?_0x10b4a7[0x1]['commentThread']&&_0x10b4a7[0x1]['commentThread']['length']?null:_0x10b4a7:null;}_0x3f03b6['size']&&this['_refreshSuggestionsChain'](_0x3f03b6);}['_refreshAttributeSuggestionsChain'](_0x26911b){if(0x0==_0x26911b['length'])return;const _0x2b0de8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b36cc=>'attribute'==_0x5b36cc['type']&&_0x5b36cc['_isDataLoaded']),_0x4cfdc7=[],_0x15c38b=new Map();for(const _0x289a49 of _0x2b0de8){const _0x4f3a34=_0x23039f(_0x289a49['attributes']);_0x15c38b['has'](_0x4f3a34)||(_0x15c38b['set'](_0x4f3a34,_0x4cfdc7['length']),_0x4cfdc7['push']([]));const _0x47b96c=_0x15c38b['get'](_0x4f3a34);_0x4cfdc7[_0x47b96c]['push'](_0x289a49);}!(function(){_0x4cfdc7['sort']((_0x374cb8,_0x50616c)=>{const _0x4a528a=_0x374cb8[0x0]['createdAt'],_0x185786=_0x50616c[0x0]['createdAt'];return _0x4a528a==_0x185786?_0x374cb8[0x0]['attributes']['groupId']<_0x50616c[0x0]['attributes']['groupId']?-0x1:0x1:_0x4a528a<_0x185786?-0x1:0x1;});for(const _0x35f467 of _0x4cfdc7)_0x35f467['sort']((_0x5a2ba3,_0xedf780)=>_0x5a2ba3['id']<_0xedf780['id']?-0x1:0x1);}());for(let _0x454811=0x0;_0x454811<_0x4cfdc7['length'];_0x454811++){if(0x0==_0x4cfdc7[_0x454811]['length'])continue;const _0x4f2ec1=[];for(let _0x587df1=_0x454811+0x1;_0x587df1<_0x4cfdc7['length'];_0x587df1++)0x0!=_0x4cfdc7[_0x587df1]['length']&&_0x215293(_0x4cfdc7[_0x454811],_0x4cfdc7[_0x587df1])&&_0x4f2ec1['push'](_0x587df1);for(const _0x2f0e11 of _0x4f2ec1)_0x4cfdc7[_0x454811]=_0x4cfdc7[_0x454811]['concat'](_0x4cfdc7[_0x2f0e11]),_0x4cfdc7[_0x2f0e11]=[];}for(const _0x45efae of _0x4cfdc7)for(let _0x577a01=0x0;_0x577a01<_0x45efae['length'];_0x577a01++){const _0x255a05=_0x45efae[_0x577a01+0x1]||null;_0x45efae[_0x577a01]['next']!==_0x255a05&&(_0x45efae[_0x577a01]['next']=_0x255a05);}for(const _0x293fb2 of _0x4cfdc7)for(let _0x2bb2f6=0x0;_0x2bb2f6<_0x293fb2['length'];_0x2bb2f6++){const _0x1f0de6=_0x293fb2[_0x2bb2f6-0x1]||null;_0x293fb2[_0x2bb2f6]['previous']!==_0x1f0de6&&(_0x293fb2[_0x2bb2f6]['previous']=_0x1f0de6);}function _0x215293(_0x3bce8,_0x18fb5c){if(_0x3bce8[0x0]['attributes']['groupId']!==_0x18fb5c[0x0]['attributes']['groupId']&&_0x3bce8[0x0]['author']!==_0x18fb5c[0x0]['author'])return!0x1;if(!function(_0x179b6f,_0x54a0cc){if(!_0x179b6f['hasComments']&&!_0x54a0cc['hasComments'])return!0x0;if(_0x179b6f['hasComments']&&_0x54a0cc['hasComments'])return!0x1;if(_0x179b6f['hasComments']&&_0x54a0cc['createdAt']<_0x179b6f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54a0cc['hasComments']&&_0x179b6f['createdAt']<_0x54a0cc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3bce8[0x0],_0x18fb5c[0x0]))return!0x1;const _0xe5d545=Ft(_0x3bce8[0x0]['attributes'],['groupId','trackingSessionId']),_0x112b6b=Ft(_0x18fb5c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x15af31(_0xe5d545,_0x112b6b))return!0x1;if(_0x3bce8[0x0]['attributes']['groupId']==_0x18fb5c[0x0]['attributes']['groupId'])return!0x0;if(_0x3bce8[0x0]['attributes']['trackingSessionId']!==_0x18fb5c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3bce8['every'](_0x320827=>_0x18fb5c['some'](_0x32c7c4=>_0x320827['getFirstRange']()['isEqual'](_0x32c7c4['getFirstRange']())))&&_0x18fb5c['every'](_0x2c1ff1=>_0x3bce8['some'](_0x48700d=>_0x2c1ff1['getFirstRange']()['isEqual'](_0x48700d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x222304){const _0x1f8a93=Array['from'](_0x222304),_0x24ca42=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ea7a8=_0x24ca42['filter'](_0x395462=>!_0x222304['has'](_0x395462)),_0x157c61=new Map(_0x1f8a93['map'](_0x1c2ff5=>[_0x1c2ff5,this['_suggestionFactory']['getSuggestionCallback'](_0x1c2ff5['type'],_0x1c2ff5['subType'],'join')])),_0x924246=new Map(_0x24ca42['map'](_0x4ed906=>[_0x4ed906,_0x4ed906['getRanges']()]));for(let _0x38337f=0x0;_0x38337f<_0x1f8a93['length'];_0x38337f++){if(_0x2e2dc9(this,_0x1f8a93[_0x38337f],_0x1f8a93,_0x38337f+0x1))return!0x0;}for(let _0x578819=0x0;_0x578819<_0x1f8a93['length'];_0x578819++){if(_0x2e2dc9(this,_0x1f8a93[_0x578819],_0x3ea7a8,0x0))return!0x0;}return!0x1;function _0x2e2dc9(_0x4c63db,_0x3bb567,_0x405721,_0x466e7b){for(let _0x2f3b61=_0x466e7b;_0x2f3b61<_0x405721['length'];_0x2f3b61++){const _0x5c56ed=_0x405721[_0x2f3b61];if(_0x5c56ed['type']!==_0x3bb567['type']||_0x5c56ed['author']['id']!==_0x3bb567['author']['id']||_0x5c56ed['subType']!==_0x3bb567['subType'])continue;if(!Qt(_0x3bb567,_0x5c56ed))continue;if('attribute'==_0x3bb567['type']&&_0x3bb567['data']['oldValue']!=_0x5c56ed['data']['oldValue'])continue;if('attribute'==_0x3bb567['type']&&_0x4c63db['_isBlockAttribute'](_0x3bb567['data']['key']))continue;if('formatBlock'==_0x3bb567['type']){const _0x4cd42e=_0x4c63db['editor']['model'],_0x3bdbaa=_0x3bb567['getContainedElement']();if(_0x3bdbaa&&(_0x4cd42e['schema']['isObject'](_0x3bdbaa)||_0x4cd42e['schema']['isLimit'](_0x3bdbaa)))continue;}const _0x12712c=_0x157c61['get'](_0x3bb567),_0xae72a6=_0x924246['get'](_0x3bb567),_0x12b98c=_0x924246['get'](_0x5c56ed),_0x3dd05e=_0x3bb567['commentThread']&&_0x3bb567['commentThread']['length'],_0x315338=_0x5c56ed['commentThread']&&_0x5c56ed['commentThread']['length'];if(!_0x3dd05e&&_0x12712c(_0x12b98c,_0xae72a6))return _0x4c63db['_joinSuggestions'](_0x5c56ed,_0x3bb567),_0x924246['delete'](_0x3bb567),!0x0;if(!_0x315338&&_0x12712c(_0xae72a6,_0x12b98c))return _0x4c63db['_joinSuggestions'](_0x3bb567,_0x5c56ed),_0x924246['delete'](_0x5c56ed),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6a2887,_0x180f3c){if(_0x6a2887['isMultiRange']){for(const _0x4c959f of _0x180f3c['getRanges']())_0x6a2887['addRange'](_0x4c959f);}else{const _0x23bc89=_0x180f3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x6a2887,this['_model']['createRange'](_0x6a2887['getFirstRange']()['start'],_0x23bc89));}_0x180f3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x177366,_0x1984d9,_0x2204a8){const _0x3059a8=_0x177366['startsWith']('format')||_0x177366['startsWith']('attribute')?'FORMATTING':_0x177366['toUpperCase']();return c(this['editor']['locale'],_0x1984d9+'_'+_0x3059a8+'_SUGGESTION_ANNOUNCEMENT',_0x2204a8);}['_initAriaMarkerChangeAnnouncements'](){const _0x2278b0=this['editor'];if(!_0x2278b0['ui'])return;const {ariaLiveAnnouncer:_0x334e89}=_0x2278b0['ui'];_0x453b05(this['_model'],({left:_0x12d0ed,entered:_0xecca54})=>{for(const _0x507e82 of _0x12d0ed){const {group:_0x53fc1d,type:_0x315fb2}=this['_splitMarkerName'](_0x507e82['name']);if('suggestion'===_0x53fc1d){_0x334e89['announce'](this['_getMarkerAnnouncementText'](_0x315fb2,'LEAVE'));break;}}for(const _0x39c5c0 of _0xecca54){const {group:_0x337195,type:_0x1a10eb}=this['_splitMarkerName'](_0x39c5c0['name']);if('suggestion'===_0x337195){_0x334e89['announce'](this['_getMarkerAnnouncementText'](_0x1a10eb,'ENTER',_0x33ed2a(_0x48862d)));break;}}});}['_processAttributeChanges'](_0x2586b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0xc3c1e2=this['editor'],_0x4485b4=_0xc3c1e2['model']['document']['differ']['getChanges']();if(0x0==_0x4485b4['length'])return!0x1;const _0x2b6fe7=[],_0x7f38b0=_0x4485b4['filter'](_0x4cee2a=>'attribute'==_0x4cee2a['type']),_0x26687b=_0x4485b4['filter'](_0x162da5=>'insert'==_0x162da5['type']&&'$text'!=_0x162da5['name']),_0x3d4c00=_0x4485b4['filter'](_0x5a5bd3=>'remove'==_0x5a5bd3['type']&&'$text'!=_0x5a5bd3['name']);for(const _0x15231f of _0x7f38b0)_0x2b6fe7['push']({'key':_0x15231f['attributeKey'],'newValue':_0x15231f['attributeNewValue'],'oldValue':_0x15231f['attributeOldValue'],'range':qt(_0x15231f['range'],_0xc3c1e2['model'])});for(const _0x2c345b of _0x26687b){const _0x409bfd=_0x3d4c00['find'](_0x203473=>_0x203473['position']['isEqual'](_0x2c345b['position']));_0x409bfd&&_0x2b6fe7['push']({'key':u,'newValue':_0x2c345b['name'],'oldValue':_0x409bfd['name'],'range':_0xc3c1e2['model']['createRangeOn'](_0x2c345b['position']['nodeAfter'])});}return 0x0!=_0x2b6fe7['length']&&this['_reduceExistingSuggestions'](_0x2586b0,_0x2b6fe7);}['_processAttributeSuggestions'](_0xa895fd){let _0x27608b=!0x1;const _0x2b6307=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cf3ad=>_0x1cf3ad['data']['newRange']&&_0x1cf3ad['name']['startsWith']('suggestion:attribute:'));for(const _0x566077 of _0x2b6307){const {subType:_0x4300ed,id:_0x3f96a0}=this['_splitMarkerName'](_0x566077['name']),_0x11c92d=_0x4300ed['split']('|')[0x0];for(const _0x2d00d1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d00d1['id']!=_0x3f96a0&&'attribute'==_0x2d00d1['type']&&_0x2d00d1['data']&&_0x2d00d1['data']['key']==_0x11c92d&&_0x2d00d1['getFirstRange']()['isIntersecting'](_0x566077['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d00d1,_0x566077['data']['newRange'],_0xa895fd),_0x27608b=!0x0);}return _0x27608b;}['_recordAttributeChanges'](_0x49e090){this['_recordAttributeSuggestions']=!0x0,_0x49e090();}['_isRegisteredAttribute'](_0x2ba775){const _0x315afe=this['_isBlockAttribute'](_0x2ba775),_0x7d6b55=this['_inlineAttributeKeys']['has'](_0x2ba775);return _0x315afe||_0x7d6b55;}['_reduceExistingSuggestions'](_0x400420,_0x257575){if(0x0==_0x257575['length'])return!0x1;let _0x3e0c7e=!0x1;for(const _0x2f7a53 of _0x257575){const _0x28d78c=this['_findSuggestions'](_0x2f7a53['range'],'attribute')['filter'](_0x5d269e=>!_0x5d269e['meta']['isNextTo'])['map'](_0xe147c4=>_0xe147c4['suggestion']),_0x51d071=_0x23039f({'newValue':_0x2f7a53['newValue']});_0x28d78c['filter'](_0x353ce1=>{const [_0x385464,_0x8216b7]=_0x353ce1['subType']['split']('|');return _0x385464==_0x2f7a53['key']&&_0x8216b7!=_0x51d071;})['forEach'](_0x1ade21=>{this['_reduceSuggestionAttributeRange'](_0x1ade21,_0x2f7a53['range'],_0x400420),_0x3e0c7e=!0x0;});}return _0x3e0c7e;}['_reduceSuggestionAttributeRange'](_0x56161d,_0x10040a,_0x3f80f2){const _0x528f12=_0x56161d['getFirstRange']()['getDifference'](_0x10040a);0x0!==_0x528f12['length']?0x1!==_0x528f12['length']?this['_breakSuggestionMarker'](_0x56161d,_0x10040a['start'],_0x10040a['end']):this['_setSuggestionRange'](_0x56161d,_0x528f12[0x0]):_0x3f80f2['removeMarker'](_0x56161d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43076d){this['_editor']=_0x43076d,this['_model']=_0x43076d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a6955,_0x58212f,_0x157573,_0x49c9eb,_0x3730e9,_0x20e2ef,_0x4bb411){return new o(this['_model'],{'type':_0x4a6955,'subType':_0x58212f,'id':_0x157573,'originalSuggestionId':_0x4bb411,'author':_0x49c9eb,'creator':_0x49c9eb,'attributes':_0x3730e9,'onAttributesChange':_0x20e2ef,'onAccept':(..._0x5ab19a)=>this['getSuggestionCallback'](_0x4a6955,_0x58212f,'accept')(..._0x5ab19a),'onDiscard':(..._0x50486a)=>this['getSuggestionCallback'](_0x4a6955,_0x58212f,'discard')(..._0x50486a)});}['registerCustomCallback'](_0x10aa54,_0xd4a712,_0x229eb6,_0x3a8b70){const _0xa054fd=_0x10aa54+':'+_0xd4a712+':'+_0x229eb6;this['_customCallbacks']['set'](_0xa054fd,_0x3a8b70);}['getSuggestionCallback'](_0x671859,_0x293d90,_0x184836){const _0x5e3b4a=_0x671859+':'+_0x293d90+':'+_0x184836;return this['_customCallbacks']['get'](_0x5e3b4a)||this['_defaultCallbacks']['get'](_0x671859+':'+_0x184836);}['_registerDefaultCallbacks'](){const _0x5d6c59=()=>!0x1,_0x181056=_0x1dd4e5=>{_0x1dd4e5['sort']((_0x4ca7c3,_0x304d3b)=>_0x4ca7c3['start']['isBefore'](_0x304d3b['start'])?0x1:-0x1),this['_model']['change'](_0x1461a2=>{for(const _0x418207 of _0x1dd4e5){let _0x168b00;_0x168b00=_0x418207['end']['isAtEnd']&&_0x418207['end']['parent']==_0x418207['start']['nodeAfter']?_0x1461a2['createSelection'](_0x418207['start']['nodeAfter'],'on'):_0x1461a2['createSelection'](_0x418207),this['_model']['deleteContent'](_0x168b00,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf7121b=(_0x4a0906,_0x432551)=>{_0x432551&&this['_model']['change'](_0x1964d7=>{const {commandName:_0x1cfec6,commandParams:_0x51b5d1=[]}=_0x432551,_0x191d4e=_0x4a0906['map'](_0x258837=>(Lt(_0x258837)&&(_0x258837=this['_model']['createRange'](_0x258837['end'])),_0x258837))['filter'](_0x11b136=>'$graveyard'!==_0x11b136['root']['rootName']);if(_0x191d4e['length']<0x1)return;const _0x3279be=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x12e121=>_0x5bdd0a['fromRange'](_0x12e121));_0x1964d7['setSelection'](_0x191d4e);for(const _0x1fbc10 of this['_editor']['commands']['commands']())_0x1fbc10['refresh']();_0x51b5d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1cfec6,..._0x51b5d1);const _0x1f175f=_0x3279be['filter'](_0x48ae9e=>'$graveyard'!=_0x48ae9e['root']['rootName']);_0x1f175f['length']>0x0&&_0x1964d7['setSelection'](_0x1f175f);for(const _0x267251 of _0x3279be)_0x267251['detach']();});},_0x56fdbc=(_0x51b9ca,_0x2d1e79)=>0x1==_0x51b9ca['length']&&0x1==_0x2d1e79['length']&&_0x51b9ca[0x0]['end']['isEqual'](_0x2d1e79[0x0]['start']),_0x71c173=(_0x4d4e0e,_0x30ce22,_0x2d9b3,_0x559e7e)=>Wt(_0x4d4e0e,_0x30ce22,_0x2d9b3,_0x559e7e)?[_0x4d4e0e,_0x30ce22]:Wt(_0x30ce22,_0x4d4e0e,_0x559e7e,_0x2d9b3)?[_0x30ce22,_0x4d4e0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d6c59),this['_defaultCallbacks']['set']('insertion:discard',_0x181056),this['_defaultCallbacks']['set']('insertion:join',_0x56fdbc),this['_defaultCallbacks']['set']('insertion:chain',_0x71c173),this['_defaultCallbacks']['set']('deletion:accept',_0x181056),this['_defaultCallbacks']['set']('deletion:discard',_0x5d6c59),this['_defaultCallbacks']['set']('deletion:join',_0x56fdbc),this['_defaultCallbacks']['set']('deletion:chain',_0x71c173),this['_defaultCallbacks']['set']('formatInline:accept',_0xf7121b),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d6c59),this['_defaultCallbacks']['set']('formatInline:join',_0x56fdbc),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d6c59),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf7121b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d6c59),this['_defaultCallbacks']['set']('formatBlock:join',_0x56fdbc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d6c59),this['_defaultCallbacks']['set']('attribute:accept',_0x5d6c59),this['_defaultCallbacks']['set']('attribute:discard',(_0x32467f,_0x4d0399)=>{if(!_0x4d0399)return;const _0x157027=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1af0ea=>{if(_0x4d0399['key']==u)for(const _0x4dbba6 of _0x32467f){const _0x269238=_0x4dbba6['start']['nodeAfter'],_0x2b185f=_0x4d0399['oldValue'];_0x1af0ea['rename'](_0x269238,_0x2b185f);}else{if(_0x157027['_isBlockAttribute'](_0x4d0399['key'])){for(const _0x378a29 of _0x32467f)void 0x0!==_0x4d0399['oldValue']?_0x1af0ea['setAttribute'](_0x4d0399['key'],_0x4d0399['oldValue'],_0x378a29['start']['nodeAfter']):_0x1af0ea['removeAttribute'](_0x4d0399['key'],_0x378a29['start']['nodeAfter']);}else{for(const _0x4433f5 of _0x32467f)_0x4d0399['oldValue']?_0x1af0ea['setAttribute'](_0x4d0399['key'],_0x4d0399['oldValue'],_0x4433f5):_0x1af0ea['removeAttribute'](_0x4d0399['key'],_0x4433f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x56fdbc);}}function Gt(_0x5ae41e,_0x2c3643,_0x456f23){for(const _0x50c8b7 of _0x2c3643['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50c8b7['root']==_0x50c8b7)return!0x1;if(!_0x456f23['containsItem'](_0x50c8b7))return!0x1;if(_0x5ae41e['isObject'](_0x50c8b7)||_0x5ae41e['isLimit'](_0x50c8b7))return!0x0;}return!0x1;}function Lt(_0x1f09e3){return _0x1f09e3['end']['parent']==_0x1f09e3['start']['nodeAfter']&&_0x1f09e3['end']['isAtStart'];}function Jt(_0x18fa61,_0x504d87,_0x27daf4,_0x5a54f7){const _0x460519=_0x544403=>!_0x544403['item']['is']('$textProxy')&&!_0x5a54f7['isObject'](_0x544403['item']),_0x5b5895=_0x18fa61['start']['getLastMatchingPosition'](_0x460519),_0x51b413=_0x18fa61['end']['getLastMatchingPosition'](_0x460519,{'direction':'backward'});return(!_0x18fa61['start']['isEqual'](_0x5b5895)||!_0x18fa61['end']['isEqual'](_0x51b413))&&(_0x5b5895['isBefore'](_0x51b413)?_0x27daf4['updateMarker'](_0x504d87,{'range':_0x27daf4['createRange'](_0x5b5895,_0x51b413)}):_0x27daf4['removeMarker'](_0x504d87),!0x0);}function Kt(_0xb4c14){return _0x23039f(_0xb4c14);}function Ht(_0x23be75){const _0x5bb76a=_0x23be75['start']['nodeAfter'];return _0x5bb76a&&_0x5bb76a['is']('element');}function qt(_0x417eb5,_0x2e71d0){return null==_0x417eb5['end']['nodeBefore']&&_0x417eb5['end']['parent']==_0x417eb5['start']['nodeAfter']?zt(_0x417eb5['start']['nodeAfter'],_0x2e71d0):_0x417eb5;}function zt(_0x22144e,_0x2f983d){const _0x21097d=_0x2f983d['schema']['isObject'](_0x22144e)||_0x2f983d['schema']['isSelectable'](_0x22144e);return _0x2f983d['createRange'](_0x2f983d['createPositionAt'](_0x22144e,'before'),_0x21097d?_0x2f983d['createPositionAfter'](_0x22144e):_0x2f983d['createPositionAt'](_0x22144e,'end'));}function Wt(_0x15f8d7,_0x305712,_0x5e7708,_0x41331d){return!!Qt(_0x15f8d7,_0x305712)&&_0x5e7708['end']['isEqual'](_0x41331d['start']);}function Qt(_0x276e03,_0x243fe9){if(!_0x276e03['_isDataLoaded']||!_0x243fe9['_isDataLoaded'])return!0x1;const _0x36878a=new Set(Object['keys'](_0x276e03['attributes'])),_0x1ff8b3=new Set(Object['keys'](_0x243fe9['attributes']));if(_0x36878a['delete']('groupId'),_0x1ff8b3['delete']('groupId'),0x0==_0x36878a['size']&&0x0==_0x1ff8b3['size'])return!0x0;if(_0x36878a['size']!=_0x1ff8b3['size'])return!0x1;const _0x20a400={..._0x276e03['attributes']},_0x5088e8={..._0x243fe9['attributes']};return delete _0x20a400['groupId'],delete _0x5088e8['groupId'],JSON['stringify'](_0x20a400)==JSON['stringify'](_0x5088e8);}function Xt(_0x337621,_0x295ef0){const _0x516edd=Yt(_0x337621['attributes']),_0x31238a=Yt(_0x295ef0);if(!_0x337621['_isDataLoaded'])return!0x1;for(const _0x2ca7d0 of Object['keys'](_0x31238a))if(!_0x15af31(_0x516edd[_0x2ca7d0],_0x31238a[_0x2ca7d0]))return!0x1;return!0x0;}function Yt(_0x4936b3){const _0x3e8baf=Object['assign']({},_0x4936b3);return delete _0x3e8baf['skipNestingCheck'],delete _0x3e8baf['tablePasteChainId'],_0x3e8baf;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4d2e27(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x54ef86,_0x5ecdd1,_0xe553b4,_0x15180f){super(),this['model']=_0x5ecdd1,this['view']=_0xe553b4,this['commentThreadController']=_0x15180f,this['_editor']=_0x54ef86,this['_acceptCommand']=_0x54ef86['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54ef86['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d791d,_0x1d0aa3)=>_0x4d791d||_0x1d0aa3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7cd7cb=>_0x7cd7cb&&this['_editor']['model']['canEditAt'](_0x5ecdd1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x204689=>_0x204689&&this['_editor']['model']['canEditAt'](_0x5ecdd1['getRanges']())),this['_pendingAction']=null,_0xe553b4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe553b4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe553b4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe553b4,'change:isDirty',()=>{_0xe553b4['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 _0x4f8130=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f8130);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xb906b1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d3953,_0x55a2cd,_0xf3e31b,_0x3b4c7e){super(_0x2d3953),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x35aad3(_0x2d3953,c(_0x2d3953,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55a2cd['authoredAt']),this['bind']('authoredAt')['to'](_0x55a2cd),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',_0x55a2cd,'authoredAt',this,'descriptionParts',(_0x4ed6c8,_0x33ac98,_0x3b61be)=>{const _0x5efdf0=_0x3b61be['map'](_0x2cde94=>ls(_0x2cde94['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4ed6c8-0x1,_0x55a2cd['author']['name'],_0x33ac98?_0x3b4c7e['formatDateTime'](_0x33ac98):'',new DOMParser()['parseFromString'](_0x5efdf0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x361d15(),this['focusTracker']=new _0x1958ac(),this['keystrokes']=new _0xcb77f(),this['focusCycler']=new _0xe075f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x303b39=>_0x303b39['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55a2cd,this['_localUser']=_0xf3e31b,this['_config']=_0x3b4c7e,_0x3b4c7e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33622a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4e2704}=this['_config'];this['commentsListView']=new _0x4e2704(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',_0x30f5a8=>_0x30f5a8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5089ac,_0x514f97)=>_0x5089ac||!!_0x514f97);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4966ab}=this['_config'],_0x2cade1=new _0x4966ab(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x318b07=_0x2cade1['commentInputView'];return _0x2cade1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x318b07,'value',(_0x350c1d,_0x277805,_0x3ebb2d)=>!!_0x3ebb2d||_0x350c1d&&!_0x277805),_0x318b07['on']('submit',(_0x31639d,_0x30e785)=>{this['fire']('addComment',_0x30e785),_0x318b07['editor']['setData']('');}),_0x318b07['on']('cancel',()=>this['focus']()),_0x318b07['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cade1;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5db0cb,_0x337876,_0x7c043,_0x81b6f5){super(_0x5db0cb,_0x337876,_0x7c043,_0x81b6f5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x757ae4=>_0x757ae4&&_0x757ae4[0x0]?_0x757ae4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x69c652,_0x3c7eda)=>{let _0x2b6c3a='';for(const _0x591678 of _0x69c652)_0x2b6c3a+='<p>'+ls(_0x591678['content'],_0x591678['color'])+'</p>';return _0x3c7eda?_0x2b6c3a:ti(_0x2b6c3a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x81b6f5['SuggestionView'](_0x5db0cb,_0x337876,{'formatDateTime':_0x81b6f5['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 _0x194687=this['bindTemplate'],_0x25f9e6=[this['suggestionView']];return this['commentsListView']&&_0x25f9e6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25f9e6['push'](this['commentThreadInputView']),_0x25f9e6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x194687['if']('isActive','ck-suggestion-wrapper--active'),_0x194687['to']('type',_0x81fc55=>'ck-suggestion-'+_0x81fc55),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':_0x194687['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25f9e6};}['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 we extends _0xb906b1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c7e6c,_0x5eacd6,_0x2cc527){super(_0x1c7e6c),this['_model']=_0x5eacd6,this['_config']=_0x2cc527,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5eacd6),this['acceptButton']=this['_createButton'](c(_0x1c7e6c,'Accept\x20suggestion'),_0x4c68a1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1c7e6c,'Discard\x20suggestion'),_0x47cc26,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1c015e(_0x1c7e6c,_0x5eacd6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x361d15([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1958ac(),this['keystrokes']=new _0xcb77f(),this['focusCycler']=new _0xe075f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x163712=>_0x163712['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1c765e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1c765e['innerHTML']=this['description'],this['on']('change:description',(_0x2944d0,_0x513be7,_0x447121)=>{_0x1c765e['innerHTML']=_0x447121;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5841ae=this['bindTemplate'],_0x429a9b=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5841ae['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5841ae['to']('authoredAt',_0x1251ee=>this['_config']['formatDateTime'](_0x1251ee))}]}]},{'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']&&_0x429a9b['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':_0x429a9b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x577fbe,_0x40b9d2,_0x469694,_0x1582e6,_0x6ab905){const _0x94ed65=new _0x3098c3(this['locale']);return _0x94ed65['set']({'label':_0x577fbe,'icon':_0x40b9d2,'tooltip':!0x0,'tooltipPosition':_0x6ab905}),_0x94ed65['extendTemplate']({'attributes':{'class':_0x469694}}),_0x94ed65['on']('execute',()=>{this['fire'](_0x1582e6,this['_model']['id']);}),_0x94ed65;}['_setupKeyboardNavigation'](){const _0x48641=this['element'];this['keystrokes']['listenTo'](_0x48641);for(const _0x5eff7a of this['focusables'])this['focusTracker']['add'](_0x5eff7a['element']),this['keystrokes']['listenTo'](_0x5eff7a['element']);this['keystrokes']['set']('enter',(_0x30c0ac,_0x53a7d2)=>{_0x48641===_0x30c0ac['target']&&(this['focusCycler']['focusFirst'](),_0x53a7d2());}),this['keystrokes']['set']('esc',(_0x38a6a9,_0x3170ea)=>{_0x48641!==_0x38a6a9['target']&&(this['focus'](),_0x3170ea());});}}class d extends _0x413935{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3b0e33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ec9b){super(_0x36ec9b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1b0088=this['editor']['config'];_0x1b0088['define']('trackChanges.SuggestionThreadView',fe),_0x1b0088['define']('trackChanges.SuggestionView',we),_0x1b0088['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1b0088['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3f2a0d,_0x41401b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11fb61,_0x983f74]of this['_handleControllerBuffer']){const _0x485d82=this['_suggestionToController']['has'](_0x11fb61);_0x485d82||_0x983f74?_0x485d82&&_0x983f74&&this['_destroyController'](_0x11fb61):this['_initializeController'](_0x11fb61);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3f2a0d,_0x41401b);}['init'](){const _0x44521a=this['editor'],_0x616319=_0x44521a['plugins']['get']('TrackChangesEditing'),_0x5645ca=_0x44521a['plugins']['get']('Annotations'),_0x2f5103=_0x44521a['plugins']['get']('EditorAnnotations'),_0x5ca00d=_0x44521a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f5103['addSourceCollector'](()=>{const _0x31e016=[];for(const [_0x112cc9,_0x10333a]of Array['from'](this['_suggestionToController'])){const _0x36ba68=_0x112cc9['getAllAdjacentSuggestions'](),_0x161bea=[];for(const _0x282fb6 of _0x36ba68){if(!_0x282fb6['isInContent'])continue;if(_0x282fb6['isMultiRange']){_0x161bea['push'](..._0x282fb6['getRanges']());continue;}const _0x3b7331=_0x282fb6['getFirstRange']();if(_0x161bea['length']>0x0){const _0x508589=_0x161bea[0x0]['getJoined'](_0x3b7331);if(_0x508589){_0x161bea[0x0]=_0x508589;continue;}}_0x161bea['push'](_0x3b7331);}_0x31e016['push']([_0x10333a['view'],_0x161bea]);}return _0x31e016;}),this['listenTo'](_0x616319,'suggestionLoaded',(_0x3ebd3b,_0x5057bf)=>{this['listenTo'](_0x5057bf,'change:previous',(_0x32a8ef,_0x1c665c,_0x5902ff,_0x5c9877)=>{_0x5057bf['isInContent']&&(null==_0x5902ff?(this['_updateController'](_0x5c9877['head']),this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x1)):(this['_updateController'](_0x5902ff['head']),null==_0x5c9877&&this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x0)));}),null!==_0x5057bf['previous']?this['_updateController'](_0x5057bf['head']):this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x1);}),this['listenTo'](_0x616319,'suggestionUnloaded',(_0xc58f30,_0x2ae82f,_0x3fdb27)=>{this['stopListening'](_0x2ae82f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ae82f),this['_suggestionToController']['has'](_0x2ae82f)&&this['_destroyController'](_0x2ae82f),_0x3fdb27&&this['_updateController'](_0x3fdb27['head']);}),this['listenTo'](_0x616319,'suggestionChanged',(_0x28f81e,_0x5663c0)=>{this['_updateController'](_0x5663c0);}),this['listenTo'](_0x5645ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ca00d,'addComment',(_0x52fa53,{threadId:_0x67d7e3,isFromAdapter:_0x4706ef})=>{if(_0x4706ef||!_0x616319['hasSuggestion'](_0x67d7e3))return;const _0x54f80c=_0x616319['getSuggestion'](_0x67d7e3);this['_suggestionToController']['get'](_0x54f80c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a75f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b6739;for(const _0x11a46c in _0x2a75f8){const _0x1d83c0=_0x11a46c,_0x51dc08=_0x2a75f8[_0x1d83c0];if('trackChangesLicenseKeyValid'==_0x51dc08||'trackChangesLicenseKeyInvalid'==_0x51dc08||'trackChangesLicenseKeyExpired'==_0x51dc08||'trackChangesLicenseKeyDomainLimit'==_0x51dc08||'trackChangesLicenseKeyNotAllowed'==_0x51dc08||'trackChangesLicenseKeyEvaluationLimit'==_0x51dc08||'trackChangesLicenseKeyTrialLimit'==_0x51dc08||'trackChangesLicenseKeyUsageLimit'==_0x51dc08){delete _0x2a75f8[_0x1d83c0],_0x4b6739=_0x51dc08,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4b6739&&_0x2a75f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4b6739&&_0x2a75f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4b6739&&_0x2a75f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x15f4ae=this['editor']['plugins']['get']('Annotations'),_0x1cf244=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1beb4a=Array['from'](_0x15f4ae['activeAnnotations'],_0xb78003=>_0xb78003['innerView'])['filter'](_0x5145b5=>this['_viewToController']['has'](_0x5145b5)),_0x49ac54=[];for(const _0x34ef19 of _0x1beb4a){const _0x3aec06=this['_viewToController']['get'](_0x34ef19)['model']['getAllAdjacentSuggestions']();_0x49ac54['push'](..._0x3aec06['reduce']((_0x40ba30,_0x553154)=>[..._0x40ba30,..._0x553154['getMarkerNames']()],[]));}_0x1cf244['activeMarkers']=_0x49ac54;}['_addUIComponentsToFactory'](){const _0x4f7526=this['editor'],_0x22b8de=_0x4f7526['locale'],_0x210d2f=c(_0x22b8de,'Track\x20changes'),_0x389acb=new _0x274610([{'type':'switchbutton','model':new _0x3c1030({'withText':!0x0,'isToggleable':!0x0,'label':_0x210d2f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f7526['plugins']['has']('TrackChangesPreview')&&_0x389acb['addMany']([{'type':'separator'},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f0943 of _0x389acb)if(ke(_0x1f0943)){const _0x13bde3=_0x4f7526['commands']['get'](_0x1f0943['model']['commandName']);_0x1f0943['model']['bind']('isOn','isEnabled')['to'](_0x13bde3,'value','isEnabled');}_0x4f7526['ui']['componentFactory']['add']('trackChanges',_0x38a226=>this['_createToolbarButton'](_0x38a226,_0x389acb,_0x210d2f)),_0x4f7526['ui']['componentFactory']['add']('menuBar:trackChanges',_0x34ff0c=>this['_createMenuBarMenu'](_0x34ff0c,_0x389acb,_0x210d2f));}['_createToolbarButton'](_0x2cefa1,_0x57c028,_0x2a8f21){const _0x51553a=_0x36fc93(_0x2cefa1,_0x4f1e51),_0x4f5c2c=this['editor']['commands']['get']('trackChanges');_0x51553a['buttonView']['set']({'tooltip':_0x2a8f21,'label':_0x2a8f21,'icon':_0x25f6d3}),_0x51553a['buttonView']['bind']('isOn')['to'](_0x4f5c2c,'value'),_0x51553a['buttonView']['on']('execute',()=>{_0x4f5c2c['execute'](),this['editor']['editing']['view']['focus']();}),_0x548e9d(_0x51553a,_0x57c028,{'role':'menu'});const _0x34e1a9=[];for(const _0xdc9e09 of _0x57c028)ke(_0xdc9e09)&&_0x34e1a9['push'](this['editor']['commands']['get'](_0xdc9e09['model']['commandName']));const _0x5b0cc5=_0x51553a['buttonView'];return _0x5b0cc5['actionView']['unbind']('isEnabled'),_0x5b0cc5['arrowView']['unbind']('isEnabled'),_0x5b0cc5['actionView']['bind']('isEnabled')['to'](_0x4f5c2c,'isEnabled'),_0x5b0cc5['arrowView']['bind']('isEnabled')['toMany'](_0x34e1a9,'isEnabled',(..._0x3b6181)=>_0x3b6181['some'](_0x4b48c6=>_0x4b48c6)),_0x51553a['on']('execute',_0x180ebd=>{this['editor']['execute'](_0x180ebd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51553a;}['_createMenuBarMenu'](_0x1eb606,_0x84a02e,_0xfb22ee){const _0x56a176=new _0x42abd9(_0x1eb606),_0x1b8cad=this['editor']['commands']['get']('trackChanges');_0x56a176['buttonView']['set']({'label':_0xfb22ee,'icon':_0x25f6d3});const _0x22a777=new _0x537b18(_0x1eb606);for(const _0x2a3bdd of _0x84a02e){if('separator'==_0x2a3bdd['type']){_0x22a777['items']['add'](new _0x5a2d27(_0x1eb606));continue;}const _0x3d2bb4=new _0xd57cf6(_0x1eb606,_0x56a176),_0x5ce882=new _0x73432a(_0x1eb606),_0x5c3727=_0x2a3bdd['model'];_0x5ce882['bind'](...Object['keys'](_0x5c3727))['to'](_0x5c3727),_0x5ce882['delegate']('execute')['to'](_0x56a176),_0x5ce882['on']('execute',()=>{this['editor']['execute'](_0x5c3727['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d2bb4['children']['add'](_0x5ce882),_0x22a777['items']['add'](_0x3d2bb4);}return _0x56a176['bind']('isEnabled')['to'](_0x1b8cad,'isEnabled'),_0x56a176['panelView']['children']['add'](_0x22a777),_0x56a176;}['_initializeController'](_0x5665d9){const _0x156c2c=this['editor'],_0x5a70c4=_0x156c2c['config'],_0x5ab8dc=_0x156c2c['plugins']['get']('Annotations'),_0x2c8825=_0x156c2c['plugins']['get']('CommentsRepository'),_0x2653f5=_0x156c2c['plugins']['get']('EditorAnnotations'),_0x2e92a4=_0x156c2c['plugins']['get'](_0x3b0e33)['me'],_0x5b7579=_0x5a70c4['get']('trackChanges')['SuggestionThreadView'],_0x2ef504=_0x5a70c4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cca9f,CommentThreadInputView:_0x5c20ea}=_0x156c2c['plugins']['get']('CommentsUI');let _0x269719,_0x2b6346,_0x4493d6;this['_annotationViews']['has'](_0x5665d9['id'])?(_0x2b6346=this['_annotationViews']['get'](_0x5665d9['id']),_0x269719=_0x2b6346['mainView']):(_0x269719=new _0x5b7579(_0x156c2c['locale'],_0x5665d9,_0x2e92a4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5a70c4['get']('comments.editorConfig'),'licenseKey':_0x5a70c4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5a70c4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a70c4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a70c4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22cba5(_0x5a70c4['get']('locale'),_0x156c2c['locale']),'CommentView':_0x5a70c4['get']('comments')['CommentView'],'CommentsListView':_0x2cca9f,'CommentThreadInputView':_0x5c20ea,'SuggestionView':_0x2ef504}),_0x269719['suggestionView']['acceptButton']['on']('execute',()=>{_0x156c2c['editing']['view']['focus']();}),_0x269719['suggestionView']['discardButton']['on']('execute',()=>{_0x156c2c['editing']['view']['focus']();}),_0x2b6346=_0x5ab8dc['createAnnotationView'](this['editor']['locale'],_0x269719),_0x2b6346['bind']('isDirty')['to'](_0x269719,'isDirty'),_0x2b6346['bind']('length')['to'](_0x269719),_0x2b6346['bind']('type')['to'](_0x269719,'type',_0x3503e8=>'suggestion-'+_0x3503e8),_0x269719['on']('escape',()=>{_0x4493d6['fire']('escape');}),this['_annotationViews']['set'](_0x5665d9['id'],_0x2b6346));const _0x3fe927=_0x2c8825['createCommentThreadController'](_0x5665d9['commentThread'],_0x269719),_0x5dc50f=new pe(_0x156c2c,_0x5665d9,_0x269719,_0x3fe927),_0x408cac=_0x5665d9['getAllAdjacentSuggestions']()['filter'](_0x359ad5=>_0x359ad5['isInContent']);_0x269719['descriptionParts']=_0x156c2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x408cac),this['_suggestionToController']['set'](_0x5665d9,_0x5dc50f),this['_viewToController']['set'](_0x269719,_0x5dc50f),_0x4493d6=_0x5ab8dc['createAnnotation']({'view':_0x2b6346,'target':()=>{const _0x3ca898=[],_0x4bf9e2=_0x5665d9['getAllAdjacentSuggestions']()['filter'](_0x4e53a0=>_0x4e53a0['isInContent']);for(const _0x5b2fbf of _0x4bf9e2)_0x3ca898['push'](..._0x5b2fbf['getMarkers']());return _0xb9d8fa(_0x156c2c['editing'],_0x3ca898);},'type':()=>'suggestion-'+_0x5dc50f['view']['type']}),_0x2c8825['_bindAnnotationToEditors'](_0x269719,_0x4493d6),_0x5ab8dc['add'](_0x4493d6),_0x2653f5['registerAnnotation'](_0x4493d6);}['_destroyController'](_0x4ab060){const _0x371448=this['editor']['plugins']['get']('CommentsRepository'),_0x245793=this['editor']['plugins']['get']('Annotations'),_0x2ee784=this['_suggestionToController']['get'](_0x4ab060),_0x5e178e=_0x2ee784['view'],_0x47177d=_0x245793['getByInnerView'](_0x5e178e);_0x371448['_unbindEditors'](_0x5e178e),_0x47177d&&_0x245793['remove'](_0x47177d),this['_suggestionToController']['delete'](_0x4ab060),this['_viewToController']['delete'](_0x5e178e),_0x2ee784['destroy']();}['_updateController'](_0x3d9ec8){if(!_0x3d9ec8['isInContent']||!this['_suggestionToController']['has'](_0x3d9ec8))return;const _0x505a2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47454d=this['_suggestionToController']['get'](_0x3d9ec8),_0x53d2a3=_0x3d9ec8['getAllAdjacentSuggestions']();_0x47454d['view']['descriptionParts']=_0x505a2c['descriptionFactory']['getDescriptions'](_0x53d2a3);}['destroy'](){for(const _0x56cd50 of this['_suggestionToController']['keys']())this['_destroyController'](_0x56cd50);for(const _0x5a6d0 of this['_annotationViews']['values']())_0x5a6d0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x36c095){return'model'in _0x36c095;}class k extends _0x413935{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a2ce8){this['editor']['plugins']['get'](p)['adapter']=_0x5a2ce8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1f55e8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1f55e8);}['getSuggestions']({skipNotAttached:_0x56f8e6=!0x1,toJSON:_0x589947=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x56f8e6,'toJSON':_0x589947});}['getSuggestion'](_0x16aaf1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16aaf1);}}const w=['Pagination'];class T extends _0x413935{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2760a4=this['editor'];if(_0x2760a4['config']['define']('trackChangesData.editorCreator',_0xf3f88d=>{const _0x2df253=_0x2760a4['model']['document']['getRootNames']()['reduce']((_0x289c43,_0x36f89c)=>(_0x289c43[_0x36f89c]='',_0x289c43),{});return _0x2760a4['constructor']['create'](_0x2df253,_0xf3f88d);}),'function'!=typeof _0x2760a4['config']['get']('trackChangesData')['editorCreator'])throw new _0x48634c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x20c7ce){return N(this['editor'],!0x0,_0x20c7ce);}['getDataWithDiscardedSuggestions'](_0x2e8e84){return N(this['editor'],!0x1,_0x2e8e84);}}class D extends _0x413935{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b2464){function _0x582d96(_0x5b299c){return _0x5b299c['map'](_0x2498a7=>String['fromCharCode'](_0x2498a7))['join']('');}super(_0x4b2464),this['result']='end',_0x4b2464[_0x582d96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582d96([0x76,0x69,0x65,0x77])][_0x582d96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x582d96([0x61,0x75,0x74,0x6f]),_0x4b2464[_0x582d96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x582d96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x582d96([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x582d96([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x582d96([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 Ge(_0x36fd36){return void 0x0!==_0x36fd36['getRootsAttributes'];}async function N(_0x8add8e,_0x2ab630,_0x3f2d33){const _0x456bc9=_0x4299d3(_0x8add8e,w);_0x456bc9['plugins']['push'](p,D),_0x456bc9['rootsAttributes']=Ge(_0x8add8e)?_0x8add8e['getRootsAttributes']():void 0x0;const _0x3b8ad3=document['createDocumentFragment'](),_0x40ed1d=_0x8add8e['config']['get']('trackChangesData')['editorCreator'],_0x108bae=await _0x40ed1d(_0x456bc9,()=>function(_0x5b0544){const _0x3cf856=document['createElement']('div');return _0x5b0544['appendChild'](_0x3cf856),_0x3cf856;}(_0x3b8ad3));!function(_0x2edda6,_0x8cdae6){const _0x23f91e=_0x2edda6['model']['document']['getRootNames']()['reduce']((_0x2add7b,_0x1a5047)=>(_0x2add7b[_0x1a5047]=_0x2edda6['data']['get']({'rootName':_0x1a5047}),_0x2add7b),{}),_0x5ae99a=_0x2edda6['plugins']['get']('Users')['users']['map'](_0x8bf326=>({'id':_0x8bf326['id'],'name':_0x8bf326['name']})),_0x41a3a3=_0x2edda6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x306b30=_0x2edda6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x183185=_0x8cdae6['plugins']['get']('Users'),_0x5a2e4a=_0x8cdae6['plugins']['get']('TrackChangesEditing'),_0x3a8cea=_0x8cdae6['plugins']['get']('CommentsRepository');for(const _0x180597 of _0x3a8cea['getCommentThreads']())_0x180597['remove']();for(const _0x103d7b of _0x5ae99a)_0x183185['getUser'](_0x103d7b['id'])||_0x183185['addUser'](_0x103d7b);_0x183185['me']||_0x183185['useAnonymousUser']();for(const _0x475f99 of _0x306b30)_0x3a8cea['addCommentThread'](_0x475f99);for(const _0x1b726c of _0x41a3a3)_0x5a2e4a['addSuggestionData'](_0x1b726c);_0x8cdae6['data']['set'](_0x23f91e);}(_0x8add8e,_0x108bae),_0x108bae['execute'](_0x2ab630?'acceptAllSuggestions':'discardAllSuggestions');const _0xa06469=Ge(_0x108bae)?_0x108bae['getFullData'](_0x3f2d33):_0x108bae['data']['get'](_0x3f2d33);return await _0x108bae['destroy'](),_0xa06469;}class Me extends _0xb906b1{['options'];constructor(_0x1759b6,_0x4c7669){super(_0x1759b6),this['options']=_0x4c7669,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1f787d,_0x4c6ba6){if(!this['element'])return;const _0x41f2f3=[];for(const [_0x5d71ce,_0x2a7b49]of _0x1f787d){const _0x3b45c0=document['createElement']('div');_0x3b45c0['setAttribute']('data-ck-root-name',_0x5d71ce),_0x3b45c0['className']=_0x2a7b49['classes']+'\x20ck-track-changes-preview__root-container',_0x3b45c0['innerHTML']=_0x2a7b49['content'],_0x41f2f3['push'](_0x3b45c0);}_0x4c6ba6(this['element'],_0x41f2f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x143623{constructor(_0x4bfa9b){super(_0x4bfa9b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2f12da=this['editor'],_0x22a966=_0x2f12da['locale'],_0x8780d8=_0x2f12da['plugins']['get']('Dialog');let _0x1f7df7;const _0x3f81b5=function(_0x2010f6){const _0x5299c6={};if('editables'in _0x2010f6['ui']['view']){for(const [_0xe43482,_0x1017e6]of Object['entries'](_0x2010f6['ui']['view']['editables']))_0x5299c6[_0xe43482]=_0x1017e6['element'];}else _0x5299c6[_0x2010f6['model']['document']['getRootNames']()[0x0]]=_0x2010f6['ui']['view']['editable']['element'];return _0x5299c6;}(_0x2f12da),_0x13b25f=function(_0x8f1b78){let _0x9a5adc=0x0;for(const _0x41ce3f of Object['values'](_0x8f1b78))_0x9a5adc=Math['max'](_0x9a5adc,_0x41ce3f['getBoundingClientRect']()['width']);let _0x40063a=0x0;for(const _0x3a1565 of Object['values'](_0x8f1b78))_0x40063a+=_0x3a1565['getBoundingClientRect']()['height'];const _0x5ccb63=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3b611c=Math['min'](_0x40063a,_0x5ccb63);return{'width':_0x9a5adc,'height':_0x3b611c};}(_0x3f81b5);_0x8780d8['show']({'id':'finalContentPreview','title':c(_0x22a966,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x22a966,{'dialogRects':_0x13b25f}),'onHide':()=>{_0x1f7df7['detachFromDom']();},'onShow':()=>{_0x2f12da['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xda2a35=>{const _0x38d15d=this['_standarizeRootsData'](_0xda2a35,_0x2f12da,_0x3f81b5);_0x8780d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x38d15d,_0x2f12da['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f7df7=new _0x33f938(_0x22a966,[_0x8780d8['view']]),_0x1f7df7['attachToDom'](),_0x1f7df7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2f12da['once']('destroy',()=>{_0x1f7df7['detachFromDom']();});const _0x1cf2ff=_0x8780d8['view']['headerView']['class'];_0x8780d8['view']['headerView']['class']=_0x1cf2ff?_0x1cf2ff+'\x20ck-reset_all':'ck-reset_all',_0x8780d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x8780d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x65a9a7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x267019=_0x65a9a7['previewMode'],_0x35fe39={};if('$labels'===_0x267019){for(const _0x93cca of _0x65a9a7['getMergeFieldsIds']())_0x35fe39[_0x93cca]=_0x65a9a7['getLabel'](_0x93cca)||_0x93cca;}else{const _0x46bd46='$defaultValues'===_0x267019?_0x65a9a7['getDefaultValues']():_0x65a9a7['getDataSetValues'](_0x267019,!0x0);for(const _0x28d26c of Object['entries'](_0x46bd46)){const [_0x23ea92,_0x3361e7]=_0x28d26c;_0x35fe39[_0x23ea92]=null!==_0x3361e7?_0x3361e7:_0x65a9a7['getLabel'](_0x23ea92)||_0x23ea92;}}return{'mergeFieldsData':_0x35fe39};}['_standarizeRootsData'](_0x11b67f,_0x4a7e83,_0x4278a5){let _0x4a9a6a;if('string'==typeof _0x11b67f){const _0x2fdcdf=_0x4a7e83['model']['document']['getRootNames']()[0x0];_0x4a9a6a={[_0x2fdcdf]:_0x11b67f};}else _0x4a9a6a=_0x11b67f;const _0x1070de=this['_fixMediaEmbeds'](_0x4a9a6a,_0x4a7e83),_0x3f51ec=function(_0x29c0d9,_0xee17b9){for(const [_0x1ae321,_0x1f582d]of _0x29c0d9)_0x1f582d['classes']=_0xee17b9[_0x1ae321]['classList']['value']['replace']('ck-focused','');return _0x29c0d9;}(this['_sortRoots'](_0x4a7e83)['reduce']((_0x28a3b5,_0x588427)=>(_0x28a3b5['push']([_0x588427,{'content':_0x1070de[_0x588427],'classes':''}]),_0x28a3b5),[]),_0x4278a5);return _0x3f51ec;}['_fixMediaEmbeds'](_0x25d21f,_0x7faa73){if(!_0x7faa73['plugins']['has']('MediaEmbedEditing'))return _0x25d21f;const _0x559e7c=_0x7faa73['plugins']['get']('MediaEmbedEditing');for(const [_0x1bc6de,_0x76ff2f]of Object['entries'](_0x25d21f)){const _0x42284b=document['createElement']('div');_0x42284b['innerHTML']=_0x76ff2f,(_0x42284b['querySelectorAll']('figure.media')['forEach'](_0x3731f8=>{const _0x6bb55=_0x3731f8['querySelector']('oembed');if(_0x6bb55){const _0x36044d=_0x6bb55['getAttribute']('url');if(_0x36044d){const _0x426310=_0x559e7c['registry']['getMediaViewElement'](new _0x11f5f0(_0x7faa73['editing']['view']['document']),_0x36044d,{'elementName':'','renderForEditingView':!0x0}),_0x591983=document['createElement']('div');_0x591983['classList']['add']('ck-media__wrapper'),_0x426310['render'](_0x591983,_0x7faa73['editing']['view']['domConverter']),_0x6bb55['replaceWith'](_0x591983);}}}),_0x25d21f[_0x1bc6de]=_0x42284b['innerHTML']);}return _0x25d21f;}['_sortRoots'](_0x36f206){if(!function(_0x271502){return void 0x0!==_0x271502['getRootsAttributes'];}(_0x36f206))return _0x36f206['model']['document']['getRootNames']();const _0x4cc0a8=[],_0x512e17=new Map();for(const _0xe84f7c of _0x36f206['model']['document']['getRootNames']()){const _0x13638b=_0x36f206['editing']['view']['getDomRoot'](_0xe84f7c)['getClientRects']()['item'](0x0);_0x4cc0a8['push'](_0xe84f7c),_0x512e17['set'](_0xe84f7c,_0x13638b);}return _0x4cc0a8['sort']((_0x3d070b,_0x3a7e78)=>{const _0x421ed2=_0x512e17['get'](_0x3d070b),_0x5b06f0=_0x512e17['get'](_0x3a7e78);return _0x421ed2['y']-_0x5b06f0['y']||_0x421ed2['x']-_0x5b06f0['x'];}),_0x4cc0a8;}}class te extends _0x413935{static get['requires'](){return[T,_0x107377];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cf26a){super(_0x1cf26a),_0x1cf26a['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1cf26a['config']['define']('trackChanges.preview.renderFunction',(_0x931bae,_0x5f5a08)=>{for(const _0xa48395 of _0x5f5a08)_0x931bae['appendChild'](_0xa48395);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x23b441,Plugin as _0x14dd54,PendingActions as _0x4e3b5b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59ef33,ObservableMixin as _0x94a634,uid as _0x425596,priorities as _0x15078e,insertToPriorityArray as _0x30efad,toArray as _0x349e4b,logWarning as _0x2aedd9,getEnvKeystrokeText as _0x5c6ede,FocusTracker as _0x1096f0,KeystrokeHandler as _0x140cea,Collection as _0x451fa8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x39730c,IconCancel as _0x2371d9,IconTrackChanges as _0x67738b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x52732e,View as _0x47e455,ViewCollection as _0x5f56e7,FocusCycler as _0x55ed52,ViewModel as _0x1b5db4,createDropdown as _0x4601f6,SplitButtonView as _0x58e476,addListToDropdown as _0x57a016,MenuBarMenuView as _0x119290,MenuBarMenuListView as _0x1993a3,ListSeparatorView as _0x592e22,MenuBarMenuListItemView as _0x56e372,MenuBarMenuListItemButtonView as _0xf6f4cb,BodyCollection as _0x345048,Dialog as _0x3591b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1818cf,hashObject as _0x5fe91f,surroundingMarkersDetector as _0x2612fb,FOCUS_ANNOTATION_KEYSTROKE as _0x26049f,AriaDescriptionView as _0x45977a,setupThreadKeyboardNavigation as _0x551d53,trimHtml as ti,UserView as _0x489cea,LateFocusButtonView as _0x25c7bb,getDateTimeFormatter as _0x3d9217,getAllMarkersDomElementsSorted as _0x1d920,sanitizeEditorConfig as _0x4e11c7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d5c0e,LiveRange as _0x46c3f4,LivePosition as _0x3cc174,DowncastWriter as _0x328234}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x66e5e6,toWidget as _0x514899}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x168844,set as _0x2c2d0c,isEqual as _0x5f649a,unset as _0x4c3345,omit as Ft}from'es-toolkit/compat';import{Delete as _0x3fdfa7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3956ce}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4094b0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x23b441{['_enabledCommands'];constructor(_0x1fffd1,_0x3c3d26){super(_0x1fffd1),this['_enabledCommands']=_0x3c3d26,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 _0x4002f4 of this['editor']['commands']['commands']())_0x4002f4['affectsData']&&!this['_enabledCommands']['has'](_0x4002f4)&&_0x4002f4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3e7680 of this['editor']['commands']['commands']())_0x3e7680['affectsData']&&!this['_enabledCommands']['has'](_0x3e7680)&&_0x3e7680['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x23b441{['_suggestions'];constructor(_0x2861f9,_0x21be2e){super(_0x2861f9),this['_suggestions']=_0x21be2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1077a2){const _0x58ae3f=this['_suggestions']['get'](_0x1077a2);if(!_0x58ae3f)throw new _0x59ef33('track-changes-accept-suggestion-not-found',this);const _0x29007d=_0x58ae3f['getRanges']();this['editor']['model']['canEditAt'](_0x29007d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x58ae3f);}}class O extends _0x23b441{['_suggestions'];constructor(_0xa9e51,_0x15440f){super(_0xa9e51),this['_suggestions']=_0x15440f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33bca1){const _0x52f78a=this['_suggestions']['get'](_0x33bca1);if(!_0x52f78a)throw new _0x59ef33('track-changes-discard-suggestion-not-found',this);const _0x109c98=_0x52f78a['getRanges']();this['editor']['model']['canEditAt'](_0x109c98)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x52f78a);}}function ls(_0x4885f8,_0x276565){let _0x31c0d0='';return _0x31c0d0+=_0x4885f8['split']('*')['map']((_0x1a155b,_0x29a8f2)=>_0x29a8f2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1a155b)+'</span>':nn(_0x1a155b))['join'](''),_0x276565&&(_0x31c0d0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x276565['value']+'\x22\x20title=\x22'+_0x276565['title']+'\x22></span>'),_0x31c0d0;}function nn(_0x1b044b){const _0x5458d7=document['createElement']('span');return _0x5458d7['innerText']=_0x1b044b,_0x5458d7['innerHTML'];}function ts(_0x41fd57){return _0x41fd57['sort']((_0x24f629,_0x3119ea)=>'deletion'==_0x24f629['type']&&'deletion'!=_0x3119ea['type']?-0x1:'deletion'!=_0x24f629['type']&&'deletion'==_0x3119ea['type']?0x1:0x0);}function to(_0x438a18,_0x15494a){let _0x545ea2,_0x14577c=0x0;const _0x3f8d43=[],_0x36afbe=_0x15494a['schema'];for(;_0x14577c<_0x438a18['length'];){const _0x435164=_0x438a18[_0x14577c],_0x353a8a=_0x438a18[_0x14577c+0x1];_0x545ea2||(_0x545ea2=_0x15494a['createPositionBefore'](_0x435164)),on(_0x15494a,_0x435164,_0x353a8a)||(_0x3f8d43['push'](_0x15494a['createRange'](_0x545ea2,_0x36afbe['isObject'](_0x435164)?_0x15494a['createPositionAfter'](_0x435164):_0x15494a['createPositionAt'](_0x435164,'end'))),_0x545ea2=null),_0x14577c++;}return _0x3f8d43;}function on(_0x5e1a38,_0x18c2a9,_0x316952){if(!_0x316952)return!0x1;const _0x56ebee=_0x5e1a38['createPositionAfter'](_0x18c2a9),_0x387c92=_0x5e1a38['createPositionBefore'](_0x316952);return _0x56ebee['isTouching'](_0x387c92);}function rs(_0x2d6c51,_0xe7a166,_0x51977f){for(;_0x51977f['length'];){const _0x44633a=_0x51977f['splice'](0x0,0x64);_0x2d6c51['change'](()=>{for(const _0x50c955 of _0x44633a)_0x50c955['isInContent']&&_0xe7a166['execute'](_0x50c955['id']);});}}class R extends _0x23b441{['_command'];['_suggestions'];constructor(_0x427013,_0x541f12,_0x4fd427){super(_0x427013),this['_command']=_0x541f12,this['_suggestions']=_0x4fd427,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fb225=Array['from'](this['_suggestions']['values']())['some'](_0x46d571=>_0x46d571['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fb225;}['execute'](){const _0x13ba07=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4b284f of _0x13ba07){const _0x450aac=_0x4b284f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x450aac))return;}rs(this['editor']['model'],this['_command'],_0x13ba07);}}class E extends _0x23b441{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x29228e,_0x47baa9,_0x5b3e6b){super(_0x29228e),this['_command']=_0x47baa9,this['_suggestions']=_0x5b3e6b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x30f38d=this['editor']['model']['document']['selection'],_0xd36db2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x457ead,_0x2b7da6){const _0x25d92a=Array['from'](_0x457ead['getRanges']()),_0x51807a=new Set();for(const _0x2bfcd9 of _0x2b7da6)if(_0x2bfcd9['isInContent']){for(const _0x6f408d of _0x25d92a)for(const _0x3053c6 of _0x2bfcd9['getRanges']())(_0x6f408d['isIntersecting'](_0x3053c6)||_0x457ead['isCollapsed']&&!_0x2bfcd9['isMultiRange']&&_0x2bfcd9['next']&&_0x3053c6['end']['isTouching'](_0x6f408d['start']))&&_0x51807a['add'](_0x2bfcd9);}return _0x51807a;}(_0x30f38d,_0xd36db2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3dc3eb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x37d583 of _0x3dc3eb){const _0x86d4d0=_0x37d583['getRanges']();if(!this['editor']['model']['canEditAt'](_0x86d4d0))return;}rs(this['editor']['model'],this['_command'],_0x3dc3eb);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x94a634(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x149504,_0xd3c7f4){super(),this['id']=_0xd3c7f4['id'],this['type']=_0xd3c7f4['type'],this['subType']=_0xd3c7f4['subType']||null,this['author']=_0xd3c7f4['author'],this['creator']=_0xd3c7f4['creator']||_0xd3c7f4['author'],this['isExternal']=Boolean(_0xd3c7f4['attributes']&&_0xd3c7f4['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd3c7f4['originalSuggestionId']||null,this['_model']=_0x149504,this['_onAccept']=_0xd3c7f4['onAccept'],this['_onDiscard']=_0xd3c7f4['onDiscard'],this['_onAttributesChange']=_0xd3c7f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd3c7f4['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 _0x4770aa=this;for(;_0x4770aa['previous'];)_0x4770aa=_0x4770aa['previous'];return _0x4770aa;}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'](_0xb8128b){this['_markerNames']['add'](_0xb8128b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1efaba=>this['_model']['markers']['get'](_0x1efaba))['filter'](_0x112248=>_0x112248);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x20cf42=>{for(const _0x1e3e73 of this['getMarkers']())_0x20cf42['removeMarker'](_0x1e3e73);}),this['_markerNames']['clear']();}['removeMarker'](_0x355e1b){this['_model']['change'](_0x1e8659=>{_0x1e8659['removeMarker'](_0x355e1b);}),this['_markerNames']['delete'](_0x355e1b);}['addRange'](_0x295b6e){const _0x2c48af='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2c48af),this['_model']['change'](_0x53cdd6=>{_0x53cdd6['addMarker'](_0x2c48af,{'range':_0x295b6e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x49592c){for(const _0xd376ef of this['getRanges']())if(_0xd376ef['isIntersecting'](_0x49592c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47404c=>_0x47404c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1435b1,_0x407a37)=>[..._0x1435b1,..._0x407a37['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4d1f59=this['getRanges']();if(0x1!=_0x4d1f59['length'])return null;const _0xc216be=_0x4d1f59[0x0],_0x3be8cd=_0xc216be['start']['nodeAfter'],_0x364f0b=_0xc216be['end']['nodeBefore'];return _0x3be8cd instanceof _0x3d5c0e?_0x3be8cd!=_0x364f0b?null:_0x3be8cd: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 _0xbba212=[];let _0xca2e7c=this['head'];for(;_0xca2e7c;)_0xbba212['push'](_0xca2e7c),_0xca2e7c=_0xca2e7c['next'];return _0xbba212;}['setAttribute'](_0x5f0995,_0x3be4e1){const _0x5357b5=_0x168844(this['attributes']);_0x2c2d0c(_0x5357b5,_0x5f0995,_0x3be4e1),_0x5f649a(_0x5357b5,this['attributes'])||(this['attributes']=_0x5357b5,this['_onAttributesChange'](_0x5357b5));}['removeAttribute'](_0x528815){const _0x168420=_0x168844(this['attributes']);_0x4c3345(_0x168420,_0x528815),_0x5f649a(_0x168420,this['attributes'])||(this['attributes']=_0x168420,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 _0x425596()['substr'](0x1,0x5);}}function c(_0x502c99,_0x488dfa,_0x511d0a){const _0x4ce1c9=_0x502c99['t'],t=_0x502c99['t'];switch(_0x488dfa){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x511d0a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x511d0a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x511d0a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x511d0a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x511d0a);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',_0x511d0a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x511d0a);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x511d0a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x511d0a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x511d0a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x511d0a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x511d0a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x511d0a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x511d0a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x511d0a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x511d0a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x511d0a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x511d0a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x511d0a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x511d0a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x511d0a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x511d0a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x511d0a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x511d0a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x511d0a);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'},_0x511d0a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x511d0a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x511d0a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x511d0a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x511d0a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x511d0a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x511d0a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x511d0a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x511d0a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x511d0a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x511d0a);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'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x511d0a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x511d0a);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'},_0x511d0a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x511d0a);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 _0x4ce1c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x511d0a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ce1c9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x511d0a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x511d0a);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'},_0x511d0a);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'},_0x511d0a);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'},_0x511d0a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x488dfa;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c5c05,_0x382d61){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c5c05,this['_locale']=_0x382d61;}['getDescriptions'](_0x36a4b0){const _0x4828bf=[],_0x54c62a=new Set(),_0x1f693c=new Set();for(let _0x375250=0x0;_0x375250<_0x36a4b0['length'];_0x375250++){const _0x13b41d=_0x36a4b0[_0x375250];if(!_0x13b41d['isInContent'])continue;const _0x69ffb5=this['_handleCustomCallbackDescription'](_0x13b41d);if(_0x69ffb5){if(null!=_0x13b41d['subType']){if(_0x54c62a['has'](_0x13b41d['subType']))continue;_0x54c62a['add'](_0x13b41d['subType']);}_0x4828bf['push'](_0x69ffb5);}else{if('attribute'!=_0x13b41d['type'])'insertion'!=_0x13b41d['type']&&'deletion'!=_0x13b41d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4828bf,_0x13b41d,_0x36a4b0[_0x375250+0x1]);else{const _0x3d91f0=_0x13b41d['data']['key'];if(_0x1f693c['has'](_0x3d91f0))continue;_0x1f693c['add'](_0x13b41d['data']['key']),_0x3d91f0==u?this['_handleRenameSuggestionDescription'](_0x4828bf,_0x13b41d):this['_handleAttributeSuggestionDescription'](_0x4828bf,_0x13b41d);}}}return this['_resolveDescriptionItems'](_0x4828bf);}['registerDescriptionCallback'](_0x4a5e18){this['_customCallbacks']['push'](_0x4a5e18);}['registerElementLabel'](_0x1a67ba,_0x555a99,_0x58a348=_0x15078e['normal']){'function'==typeof _0x1a67ba?_0x30efad(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a67ba,'label':_0x555a99,'priority':_0x58a348}):this['_itemLabels']['set'](_0x1a67ba,_0x555a99);}['registerAttributeLabel'](_0x2dfaf9,_0x10df94){this['_attributeLabels']['set'](_0x2dfaf9,_0x10df94);}['getItemLabel'](_0x5b50ab,_0x1d4d48=0x1){let _0x558464;for(const _0x2aa98b of this['_itemLabelsCallbacks'])if(_0x2aa98b['matchingCallback'](_0x5b50ab)){_0x558464=_0x2aa98b['label'];break;}return _0x558464||(_0x558464=this['_itemLabels']['get'](_0x5b50ab['name'])),_0x558464?_0x558464(_0x1d4d48):0x1!==_0x1d4d48?_0x1d4d48+'\x20'+_0x5b50ab['name']+'s':''+_0x5b50ab['name'];}['_addDescriptionItems'](_0x3f1668,_0x18b4b3){const _0x3ed474=_0x18b4b3['getFirstRange']()['getWalker'](),_0x212e8d='insertion'==_0x18b4b3['type']?'add':'remove';for(const _0x18c1e9 of _0x3ed474){const _0x5b2d57=_0x18c1e9['item'],_0x501288=_0x3f1668[_0x3f1668['length']-0x1];if(_0x5b2d57['is']('$textProxy'))_0x501288&&_0x501288['type']['indexOf']('Container')>-0x1&&_0x3f1668['pop'](),_0x501288&&'text'==_0x501288['type']?_0x501288[_0x212e8d]+=_0x5b2d57['data']:_0x3f1668['push']({'type':'text','add':'add'==_0x212e8d?_0x5b2d57['data']:'','remove':'remove'==_0x212e8d?_0x5b2d57['data']:''});else{if(this['_schema']['isObject'](_0x5b2d57)){const _0x1adcd3=_0x5b2d57;if(_0x501288&&_0x501288['type']['indexOf']('Container')>-0x1&&_0x3f1668['pop'](),'elementEnd'==_0x18c1e9['type'])continue;_0x501288&&_0x501288['type']==_0x212e8d+'Object'&&_0x501288['element']['name']==_0x1adcd3['name']?_0x501288['quantity']++:_0x3f1668['push']({'type':_0x212e8d+'Object','element':_0x1adcd3,'quantity':0x1}),_0x3ed474['skip'](_0x2d11bd=>!('elementEnd'==_0x2d11bd['type']&&_0x2d11bd['item']==_0x5b2d57));}else{if(this['_schema']['checkChild'](_0x5b2d57,'$text')||_0x5b2d57['is']('element','softBreak')){const _0x5b2031=_0x5b2d57;if('add'==_0x212e8d&&'elementStart'==_0x18c1e9['type']||'remove'==_0x212e8d&&'elementEnd'==_0x18c1e9['type'])continue;if(_0x501288&&-0x1==_0x501288['type']['indexOf']('Container')){'text'==_0x501288['type']&&(_0x501288[_0x212e8d]+='\x0a');continue;}let _0x3f8b2f;if(_0x3f8b2f='add'==_0x212e8d?_0x5b2031['nextSibling']&&!this['_schema']['isObject'](_0x5b2031['nextSibling'])?_0x5b2031['nextSibling']:null:_0x5b2031['previousSibling']&&!this['_schema']['isObject'](_0x5b2031['previousSibling'])?_0x5b2031['previousSibling']:null,_0x5b2031['isEmpty']||_0x3f8b2f&&_0x3f8b2f['isEmpty']){const _0x36f42=_0x3f8b2f&&_0x3f8b2f['isEmpty']?_0x3f8b2f:_0x5b2031;_0x501288&&_0x501288['type']==_0x212e8d+'EmptyContainer'&&_0x501288['element']['name']==_0x36f42['name']?_0x501288['quantity']++:_0x3f1668['push']({'type':_0x212e8d+'EmptyContainer','element':_0x36f42,'quantity':0x1});}else _0x3f1668['push']({'type':_0x212e8d+'Container','element':_0x5b2031});}}}}}['_resolveDescriptionItems'](_0x29272a){const _0x20dbef=this['_locale'],_0x3c751d=[],_0x940345=[],_0x2cbc90=[];for(const _0x1ce552 of _0x29272a)switch(_0x1ce552['type']){case'text':if(_0x1ce552['add']=_0x1ce552['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1ce552['remove']=_0x1ce552['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1ce552['add']&&''!=_0x1ce552['remove']){_0x3c751d['push']({'type':'replace','content':c(_0x20dbef,'REPLACE_TEXT',['\x22'+_0x1ce552['remove']+'\x22','\x22'+_0x1ce552['add']+'\x22'])});continue;}if(null!=_0x1ce552['add']['match'](/^ +$/)){_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0',c(_0x20dbef,'ELEMENT_SPACE',_0x1ce552['add']['length']))});continue;}if(null!=_0x1ce552['remove']['match'](/^ +$/)){_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0',c(_0x20dbef,'ELEMENT_SPACE',_0x1ce552['remove']['length']))});continue;}if(''!=_0x1ce552['add']){_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0','\x22'+_0x1ce552['add']+'\x22')});continue;}_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0','\x22'+_0x1ce552['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Insert:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Remove:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'addContainer':_0x3c751d['push']({'type':'insertion','content':c(_0x20dbef,'*Split:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'removeContainer':_0x3c751d['push']({'type':'deletion','content':c(_0x20dbef,'*Merge:*\x20%0',this['getItemLabel'](_0x1ce552['element'],_0x1ce552['quantity']))});continue;case'addFormat':_0x940345['push'](_0x1ce552['key']);continue;case'removeFormat':_0x2cbc90['push'](_0x1ce552['key']);continue;default:_0x3c751d['push'](_0x1ce552);}if(_0x940345['length']){const _0x47bfc5=_0x940345['map'](_0x54791a=>this['_attributeLabels']['has'](_0x54791a)?this['_attributeLabels']['get'](_0x54791a):_0x54791a)['join'](',\x20');_0x3c751d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x47bfc5)});}if(_0x2cbc90['length']){const _0x1ea03d=_0x2cbc90['map'](_0x48e97e=>this['_attributeLabels']['has'](_0x48e97e)?this['_attributeLabels']['get'](_0x48e97e):_0x48e97e)['join'](',\x20');_0x3c751d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1ea03d)});}return _0x3c751d;}['_handleCustomCallbackDescription'](_0x45a7e4){for(const _0xac12dc of this['_customCallbacks']){const _0x2979db=_0xac12dc(_0x45a7e4);if(_0x2979db&&'type'in _0x2979db)return _0x2979db;}}['_handleAttributeSuggestionDescription'](_0x5dbb98,_0x121095){const _0x399bc7=_0x121095['data'],_0x200b5a=void 0x0===_0x399bc7['newValue']?'removeFormat':'addFormat';_0x5dbb98['push']({'type':_0x200b5a,'key':_0x399bc7['key']});}['_handleRenameSuggestionDescription'](_0x5815e3,_0x340c93){_0x5815e3['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x340c93['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x27c7c9,_0x15a7b6,_0x1437e1){if(this['_addDescriptionItems'](_0x27c7c9,_0x15a7b6),_0x1437e1&&_0x1437e1['getFirstRange']()&&!_0x15a7b6['getFirstRange']()['end']['isEqual'](_0x1437e1['getFirstRange']()['start'])){const _0x2606b2=_0x27c7c9[_0x27c7c9['length']-0x1],_0x335659='insertion'==_0x15a7b6['type']?'add':'remove';_0x2606b2&&'text'==_0x2606b2['type']&&(_0x2606b2[_0x335659]+='\x0a');}}}class U extends _0x14dd54{['afterInit'](){const _0x840dd7=this['editor'],_0xace356=_0x840dd7['plugins']['get']('TrackChangesEditing');_0x840dd7['commands']['get']('showAIAssistant')&&_0xace356['enableCommand']('showAIAssistant');}}class V extends _0x14dd54{['afterInit'](){const _0x1079c0=this['editor'],_0x37cea1=_0x1079c0['locale'];if(!_0x1079c0['plugins']['has']('AlignmentEditing'))return;const _0x52a2ba=_0x1079c0['plugins']['get']('TrackChangesEditing');_0x52a2ba['enableDefaultAttributesIntegration']('alignment'),_0x52a2ba['registerBlockAttribute']('alignment'),_0x52a2ba['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x37cea1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7f6192=this['editor'],_0x591a6f=_0x7f6192['locale'];_0x7f6192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df047=>{if('formatBlock'!=_0x2df047['type'])return;const {data:_0x42cdd8}=_0x2df047;if(_0x42cdd8&&'alignment'==_0x42cdd8['commandName']){const _0x17494c=_0x42cdd8['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x591a6f,'*Format:*\x20%0',function(_0x802f7a){switch(_0x802f7a){case'left':return c(_0x591a6f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x591a6f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x591a6f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x591a6f,'FORMAT_JUSTIFY_TEXT');}}(_0x17494c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x14dd54{['afterInit'](){const _0x5c6adf=this['editor'],_0x4b27e2=_0x5c6adf['plugins']['get']('TrackChangesEditing'),_0x3ce730=_0x5c6adf['locale'];for(const _0x122d8e of Zt){if(!_0x5c6adf['plugins']['has'](_0x122d8e))continue;const _0x50bd97=_0x122d8e['slice'](0x0,-0x7)['toLowerCase'](),_0x2df196='FORMAT_'+_0x50bd97['toUpperCase']();_0x4b27e2['enableDefaultAttributesIntegration'](_0x50bd97),_0x4b27e2['registerInlineAttribute'](_0x50bd97),_0x4b27e2['descriptionFactory']['registerAttributeLabel'](_0x50bd97,c(_0x3ce730,_0x2df196));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268046=this['editor'],_0xb8f0b3=_0x268046['locale'],_0x32aa83=_0x268046['plugins']['get']('TrackChangesEditing');function _0x3866af(_0x4940bc,_0x1b9666){_0x32aa83['descriptionFactory']['registerDescriptionCallback'](_0x5f05e6=>{if('formatInline'!=_0x5f05e6['type'])return;const {data:_0x2b033c}=_0x5f05e6;return _0x2b033c&&_0x2b033c['commandName']===_0x4940bc?_0x2b033c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb8f0b3,'*Format:*\x20%0',_0x1b9666)}:{'type':'format','content':c(_0xb8f0b3,'*Remove\x20format:*\x20%0',_0x1b9666)}:void 0x0;});}_0x3866af('bold',c(_0xb8f0b3,'FORMAT_BOLD')),_0x3866af('italic',c(_0xb8f0b3,'FORMAT_ITALIC')),_0x3866af('underline',c(_0xb8f0b3,'FORMAT_UNDERLINE')),_0x3866af('code',c(_0xb8f0b3,'FORMAT_CODE')),_0x3866af('strikethrough',c(_0xb8f0b3,'FORMAT_STRIKETHROUGH')),_0x3866af('subscript',c(_0xb8f0b3,'FORMAT_SUBSCRIPT')),_0x3866af('superscript',c(_0xb8f0b3,'FORMAT_SUPERSCRIPT'));}}class G extends _0x14dd54{['afterInit'](){const _0x44ec8d=this['editor'],_0x481bf8=_0x44ec8d['locale'];if(!_0x44ec8d['plugins']['has']('BlockQuoteEditing'))return;const _0x25cc9a=_0x44ec8d['plugins']['get']('TrackChangesEditing'),_0x587431=this['editor']['commands']['get']('blockQuote');_0x25cc9a['enableCommand']('blockQuote',(_0x56ae0,_0x2a30f1={})=>{const _0x1234e9=this['editor']['model']['document']['selection'],_0x2cb1e5=_0x2a30f1&&void 0x0!==_0x2a30f1['forceValue']?_0x2a30f1['forceValue']:!_0x587431['value'];let _0x1fc4dd=[];if(_0x2cb1e5){const _0xcd784c=Array['from'](_0x1234e9['getSelectedBlocks']())['filter'](_0x24b5b8=>oo(_0x24b5b8)||function(_0x1cf0c8,_0x5a97ae){const _0x2f00b1=_0x5a97ae['checkChild'](_0x1cf0c8['parent'],'blockQuote'),_0x2b35c8=_0x5a97ae['checkChild'](['$root','blockQuote'],_0x1cf0c8);return _0x2f00b1&&_0x2b35c8;}(_0x24b5b8,this['editor']['model']['schema']));_0x1fc4dd=to(_0xcd784c,_0x44ec8d['model']);}else{const _0x51ec1f=Array['from'](_0x1234e9['getSelectedBlocks']())['filter'](_0x10560a=>oo(_0x10560a));_0x1fc4dd=to(_0x51ec1f,_0x44ec8d['model']);}_0x44ec8d['model']['change'](()=>{for(const _0x2c4244 of _0x1fc4dd)_0x25cc9a['markBlockFormat'](_0x2c4244,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cb1e5}]});});}),_0x25cc9a['descriptionFactory']['registerDescriptionCallback'](_0x4ad9e0=>{const {data:_0x37edca}=_0x4ad9e0;if(_0x37edca&&'blockQuote'==_0x37edca['commandName']){const _0x3f8c28=c(_0x481bf8,'ELEMENT_BLOCK_QUOTE');return _0x37edca['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x481bf8,'*Set\x20format:*\x20%0',_0x3f8c28)}:{'type':'format','content':c(_0x481bf8,'*Remove\x20format:*\x20%0',_0x3f8c28)};}});}}function oo(_0xac8a66){return'blockQuote'==_0xac8a66['parent']['name'];}class L extends _0x14dd54{['afterInit'](){const _0x1f50f8=this['editor'],_0x3eaa9a=_0x1f50f8['locale'],_0x3b15dd=_0x1f50f8['plugins']['get']('TrackChangesEditing');_0x1f50f8['plugins']['has']('BookmarkEditing')&&(_0x3b15dd['enableCommand']('insertBookmark'),_0x3b15dd['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b15dd['registerBlockAttribute']('bookmarkId'),_0x3b15dd['descriptionFactory']['registerDescriptionCallback'](_0x618c8a=>{if('insertion'!=_0x618c8a['type']&&'deletion'!=_0x618c8a['type']&&'attribute'!=_0x618c8a['type'])return;const _0x1d844c=_0x618c8a['getContainedElement']();if(null==_0x1d844c)return;if(!_0x1d844c['is']('element','bookmark'))return;const _0x5e94ef=_0x1d844c['getAttribute']('bookmarkId');if('insertion'==_0x618c8a['type'])return{'type':'insertion','content':c(_0x3eaa9a,'*Insert:*\x20%0','\x22'+_0x5e94ef+'\x22\x20'+c(_0x3eaa9a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x618c8a['type'])return{'type':'deletion','content':c(_0x3eaa9a,'*Remove:*\x20%0','\x22'+_0x5e94ef+'\x22\x20'+c(_0x3eaa9a,'ELEMENT_BOOKMARK'))};const {data:_0x2faa82}=_0x618c8a;if(!_0x2faa82||'bookmarkId'!=_0x2faa82['key'])return;return{'type':'format','content':c(_0x3eaa9a,'*Set\x20bookmark:*\x20%0','\x22'+_0x2faa82['newValue']+'\x22')};}));}}class J extends _0x14dd54{['afterInit'](){const _0x216938=this['editor'];_0x216938['plugins']['has']('CaseChange')&&(_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x216938['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x14dd54{['afterInit'](){const _0x319012=this['editor'];_0x319012['commands']['get']('ckbox')&&_0x319012['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x14dd54{['afterInit'](){const _0x213b3c=this['editor'];if(!_0x213b3c['plugins']['has']('CodeBlock'))return;const _0x5cc373=_0x213b3c['plugins']['get']('TrackChangesEditing'),_0x173baa=_0x213b3c['locale'],_0x4b8160=_0x213b3c['config']['get']('codeBlock')['languages'],_0x5b92d6=_0x213b3c['commands']['get']('codeBlock');_0x5cc373['enableCommand']('indentCodeBlock'),_0x5cc373['enableCommand']('outdentCodeBlock'),_0x5cc373['enableCommand']('codeBlock',(_0x2d7aa3,_0x3fc781={})=>{const _0x5209ca=_0x213b3c['model'],_0xfe49=_0x213b3c['model']['document']['selection'],_0x239e5c=_0x3fc781&&void 0x0!==_0x3fc781['forceValue']?_0x3fc781['forceValue']:!_0x5b92d6['value'];let _0x5f1596;_0x3fc781['language']||(_0x3fc781['language']=_0x4b8160[0x0]['language']),_0x5f1596=_0x239e5c?Array['from'](_0xfe49['getSelectedBlocks']())['filter'](_0x218c8e=>eo(_0x218c8e)||function(_0x38fa21,_0x490428){if(_0x38fa21['is']('rootElement')||_0x490428['isLimit'](_0x38fa21))return!0x1;return _0x490428['checkChild'](_0x38fa21['parent'],'codeBlock');}(_0x218c8e,_0x5209ca['schema'])):Array['from'](_0xfe49['getSelectedBlocks']())['filter'](_0x2280e4=>eo(_0x2280e4));const _0x229cff=to(_0x5f1596,_0x5209ca);_0x5209ca['change'](()=>{for(const _0x3b2418 of _0x229cff)_0x5cc373['markBlockFormat'](_0x3b2418,{'commandName':'codeBlock','commandParams':[{..._0x3fc781,'forceValue':_0x239e5c}],'formatGroupId':'blockName'});});}),(_0x5cc373['descriptionFactory']['registerElementLabel']('codeBlock',_0x2932a6=>c(_0x173baa,'ELEMENT_CODE_BLOCK',_0x2932a6)),_0x5cc373['descriptionFactory']['registerDescriptionCallback'](_0x88e2a5=>{if('formatBlock'!=_0x88e2a5['type'])return;const _0x402203=_0x173baa['t'],{data:_0xbf2aa8}=_0x88e2a5;if(!_0xbf2aa8||'codeBlock'!=_0xbf2aa8['commandName'])return;const _0x33d392=_0xbf2aa8['commandParams'][0x0]['language'],_0x9e00a3=_0x402203(_0x4b8160['find'](_0x480e5b=>_0x480e5b['language']===_0x33d392)['label'])['toLowerCase']();return _0xbf2aa8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x173baa,'*Set\x20format:*\x20%0',c(_0x173baa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9e00a3+')')}:{'type':'format','content':c(_0x173baa,'*Remove\x20format:*\x20%0',c(_0x173baa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x61a2a3){return'codeBlock'==_0x61a2a3['name'];}class q extends _0x14dd54{['afterInit'](){const _0x31d8c0=this['editor'];if(!_0x31d8c0['plugins']['has']('CommentsEditing'))return;_0x31d8c0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4df9e2,_0x385175,_0x5aa0ff){const _0x118fe9=[];for(const _0x1510c2 of _0x385175['getItems']())_0x1510c2['hasAttribute'](_0x4df9e2)&&_0x118fe9['push'](_0x5aa0ff['createRangeOn'](_0x1510c2));return _0x118fe9;}function Fe(_0x3674f6,_0x4916de,{showActiveMarker:_0x5552f4=!0x0}={}){const _0x4fa98b=_0x3674f6['plugins']['get']('TrackChangesEditing');return(_0x31ea5b,_0x382725,_0x579dce)=>{if(!_0x579dce['consumable']['test'](_0x382725['markerRange'],_0x31ea5b['name']))return;const _0x3a8f82=_0x382725['markerRange']['getWalker'](),_0x4b79d2=_0x382725['markerRange']['start'],_0x7a017a=_0x3674f6['model']['schema'];let _0x444f1b=null,_0x7c9118=null,_0x3a0a5f=!0x1,_0x5bef5f=!0x1;for(const _0x57d451 of _0x3a8f82){const _0x815ab4=_0x57d451['item'];_0x3a0a5f=_0x3a0a5f||_0x7a017a['isContent'](_0x815ab4);const _0x69e4f5=_0x579dce['mapper']['toViewElement'](_0x815ab4);if(_0x69e4f5&&_0x69e4f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57d451['type']&&(_0x7a017a['isBlock'](_0x815ab4)&&!_0x7a017a['isLimit'](_0x815ab4)&&(_0x815ab4['nextSibling']||_0x4b79d2['isAtEnd']?_0x444f1b&&_0x444f1b['parent']==_0x815ab4||(_0x444f1b=_0x815ab4,_0x3815ee(_0x57d451['previousPosition']),_0x5bef5f=!0x0):_0x7c9118=_0x7c9118||_0x57d451['previousPosition']));}function _0x3815ee(_0x2f7d02){const {id:_0x1a1578,authorId:_0x191ce7}=_0x4fa98b['_splitMarkerName'](_0x382725['markerName']),_0x20f5f8=_0x579dce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4916de,'data-suggestion':_0x1a1578,'data-author-id':_0x191ce7}),_0x13c179=_0x579dce['mapper']['toViewPosition'](_0x2f7d02);_0x5552f4&&_0x4fa98b['activeMarkers']['includes'](_0x382725['markerName'])&&_0x579dce['writer']['addClass']('ck-suggestion-marker--active',_0x20f5f8),_0x579dce['writer']['insert'](_0x13c179,_0x20f5f8),_0x579dce['mapper']['bindElementToMarker'](_0x20f5f8,_0x382725['markerName']);}_0x3a0a5f||_0x5bef5f||!_0x7c9118||_0x3815ee(_0x7c9118);};}class z extends _0x14dd54{static get['requires'](){return[_0x3fdfa7];}['init'](){const _0x548eac=this['editor'],_0x27c7ff=_0x548eac['plugins']['get']('TrackChangesEditing');_0x27c7ff['enableCommand']('delete');const _0x3a4aae=_0x548eac['commands']['get']('deleteForward');_0x27c7ff['enableCommand']('deleteForward',(_0x36df2,_0x513715={})=>{const _0x4ce976=_0x548eac['model']['createSelection'](_0x548eac['model']['document']['selection']);_0x4ce976['isCollapsed']&&_0x548eac['model']['modifySelection'](_0x4ce976,{'direction':'forward','unit':_0x513715['unit']});const _0x435b54=_0x4ce976['getFirstRange'](),_0x2fc9ca=_0x46c3f4['fromRange'](_0x435b54);let _0x33ad72;_0x36df2(_0x513715),_0x33ad72='$graveyard'==_0x2fc9ca['root']['rootName']?_0x548eac['model']['createRange'](_0x435b54['start']):_0x548eac['model']['createRange'](_0x2fc9ca['start'],_0x2fc9ca['end']),_0x2fc9ca['detach'](),_0x548eac['model']['enqueueChange'](_0x3a4aae['buffer']['batch'],_0x2b72e4=>{_0x3a4aae['buffer']['lock'](),_0x2b72e4['setSelection'](_0x2b72e4['createRange'](_0x33ad72['end'])),_0x3a4aae['buffer']['unlock']();});}),_0x548eac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x548eac,'merge'),{'priority':'high'}),_0x548eac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a37c4,_0x1d78c3,_0x29796d)=>{_0x29796d['options']['showSuggestionHighlights']&&Fe(_0x548eac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a37c4,_0x1d78c3,_0x29796d);},{'priority':'high'}),_0x548eac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2c0854,_0x27de7b,_0x3e09a4)=>{const _0x22abbb=_0x3e09a4['mapper']['markerNameToElements'](_0x27de7b['markerName']);if(_0x22abbb){for(const _0x654f9d of _0x22abbb)_0x654f9d['is']('uiElement')&&(_0x3e09a4['mapper']['unbindElementFromMarkerName'](_0x654f9d,_0x27de7b['markerName']),_0x3e09a4['writer']['remove'](_0x654f9d));}},{'priority':'high'});}}class W extends _0x14dd54{['afterInit'](){const _0xbb58a3=this['editor'];if(!_0xbb58a3['plugins']['has']('ListEditing'))return;const _0x442820=_0xbb58a3['locale'],_0x390a8e=_0xbb58a3['plugins']['get']('TrackChangesEditing'),_0x1c0f7d=_0xbb58a3['plugins']['has']('TodoListEditing'),_0x588e13=!!_0xbb58a3['config']['get']('list.multiBlock');function _0x25bde(_0x2297dc){return{'type':'format','content':''+c(_0x442820,'*Set\x20format:*\x20%0',_0x2297dc)};}function _0x425e80(_0x4f487e){return{'type':'format','content':''+c(_0x442820,'*Remove\x20format:*\x20%0',_0x4f487e)};}_0x390a8e['enableDefaultAttributesIntegration']('numberedList'),_0x390a8e['enableDefaultAttributesIntegration']('bulletedList'),_0x390a8e['enableDefaultAttributesIntegration']('customNumberedList'),_0x390a8e['enableDefaultAttributesIntegration']('customBulletedList'),_0x390a8e['enableDefaultAttributesIntegration']('indentList'),_0x390a8e['enableDefaultAttributesIntegration']('outdentList'),_0x390a8e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x390a8e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x390a8e['registerBlockAttribute']('listItemId'),_0x390a8e['registerBlockAttribute']('listType'),_0x390a8e['registerBlockAttribute']('listIndent'),_0x588e13&&(_0x390a8e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x390a8e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c0f7d&&(_0x390a8e['enableDefaultAttributesIntegration']('todoList'),_0x390a8e['enableDefaultAttributesIntegration']('checkTodoList'),_0x390a8e['registerBlockAttribute']('todoListChecked'),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x26c6a2=>{const {data:_0x14d1dc}=_0x26c6a2;if(_0x14d1dc&&'todoListChecked'==_0x14d1dc['key'])return{'type':'format','content':_0x14d1dc['newValue']?c(_0x442820,'*Check\x20item*'):c(_0x442820,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c6736=>{if(_0x1c6736['batch']['isUndo'])return!0x1;let _0x2806fd=!0x1;const _0x127176=_0x390a8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1847ef=>'todoListChecked'===_0x390a8e['_getAttributeKey'](_0x1847ef));for(const _0x374e90 of _0x127176){'todo'!=_0x374e90['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x390a8e['_findSuggestions'](_0x374e90['getFirstRange'](),'attribute')['find'](_0x5783c7=>'listType'===_0x390a8e['_getAttributeKey'](_0x5783c7['suggestion']))||(_0x1c6736['removeMarker'](_0x374e90['getFirstMarker']()),_0x2806fd=!0x0));}return _0x2806fd;})),_0x390a8e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x442820,'FORMAT_INDENT'));const _0x28a378={'type':'format','content':''};_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x419b06=>{const {data:_0x4ce0b4}=_0x419b06;if(!_0x4ce0b4||'listType'!=_0x4ce0b4['key'])return;let _0x110e45=_0x419b06['head'];for(;_0x110e45;){if(_0x110e45['data']&&(('listStyle'==_0x110e45['data']['key']||'listMarkerStyle'==_0x110e45['data']['key'])&&(_0x110e45['data']['newValue']&&'default'!=_0x110e45['data']['newValue']||'default'!=_0x110e45['data']['oldValue']&&!_0x4ce0b4['newValue'])||!_0x588e13&&_0x110e45['data']['key']==u))return _0x28a378;_0x110e45=_0x110e45['next'];}if(null==_0x4ce0b4['newValue'])switch(_0x4ce0b4['oldValue']){case'bulleted':return _0x425e80(c(_0x442820,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x425e80(c(_0x442820,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x425e80(c(_0x442820,'ELEMENT_TODO_LIST'));}switch(_0x4ce0b4['newValue']){case'bulleted':return _0x25bde(c(_0x442820,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25bde(c(_0x442820,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25bde(c(_0x442820,'ELEMENT_TODO_LIST'));}}),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x2a2876=>{const {data:_0x1f6794}=_0x2a2876;if(_0x1f6794&&'listIndent'==_0x1f6794['key'])return null==_0x1f6794['newValue']||null==_0x1f6794['oldValue']&&0x0==_0x1f6794['newValue']?_0x28a378:void 0x0;}),_0x390a8e['descriptionFactory']['registerDescriptionCallback'](_0x4fdfa1=>{if('attribute'!=_0x4fdfa1['type'])return;const {data:_0x427dd1}=_0x4fdfa1;if(!_0x427dd1||'listItemId'!=_0x427dd1['key'])return;const _0x336aa3=Te(_0x4fdfa1);return'newValue'==_0x336aa3?{'type':'format','content':c(_0x442820,'*Merge:*\x20list\x20item')}:'oldValue'==_0x336aa3?{'type':'format','content':c(_0x442820,'*Split:*\x20list\x20item')}:_0x28a378;}),_0xbb58a3['model']['document']['registerPostFixer'](_0xb0bf9f=>this['listItemIdFixer'](_0xb0bf9f)),_0xbb58a3['model']['document']['registerPostFixer'](_0x323f59=>this['noTrackChangesFixer'](_0x323f59)),_0xbb58a3['model']['document']['on']('change:data',(_0x3424e0,_0xad257c)=>{if(_0xad257c['isUndo']||!_0xad257c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x442c03){if(_0x442c03['batch']['isUndo']||!_0x442c03['batch']['isLocal'])return!0x1;let _0x4367cb=!0x1;const _0xe9876d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60f747=>_0x60f747['data']&&'listItemId'==_0x60f747['data']['key'])['filter'](_0x2ff293=>_0x2ff293['data']['newValue']&&_0x2ff293['data']['oldValue']);for(const _0x528015 of _0xe9876d)Te(_0x528015)||(_0x442c03['removeMarker'](_0x528015['getFirstMarker']()),_0x4367cb=!0x0);return _0x4367cb;}['noTrackChangesFixer'](_0x18f3cc){if(_0x18f3cc['batch']['isUndo']||!_0x18f3cc['batch']['isLocal'])return!0x1;const _0x201f35=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x201f35['trackChangesCommand']['value'])return!0x1;let _0x51bace=!0x1;const _0x22c4c5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53ec01=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x596832=>'attribute'==_0x596832['type'])['filter'](_0x29b20b=>_0x22c4c5['includes'](_0x29b20b['attributeKey']));if(0x0==_0x53ec01['length'])return _0x51bace;for(const _0x2e9a6b of _0x53ec01){const _0x5d60ed=_0x201f35['_findSuggestions'](_0x2e9a6b['range'],'attribute')['filter'](_0x14ac88=>!_0x14ac88['meta']['isNextTo'])['map'](_0x297a78=>_0x297a78['suggestion'])['filter'](_0x32683a=>{const _0x568da0=_0x201f35['_getAttributeKey'](_0x32683a);return _0x22c4c5['includes'](_0x568da0);});if(_0x5d60ed['length']){for(const _0x33212a of _0x5d60ed)_0x18f3cc['removeMarker'](_0x33212a['getFirstMarker']());_0x51bace=!0x0;}}return _0x51bace;}['assureChains'](){const _0x39af7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16c349=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x109ca9;const _0x3b27ca=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a9940=>{if(_0x2a9940['data']['oldRange']||!_0x2a9940['data']['newRange'])return null;if(!_0x2a9940['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14b3d7}=_0x39af7b['_splitMarkerName'](_0x2a9940['name']);if(!_0x39af7b['hasSuggestion'](_0x14b3d7))return null;const _0x186924=_0x39af7b['getSuggestion'](_0x14b3d7);return _0x16c349['includes'](_0x186924['data']['key']);})['map'](_0x1d732e=>{const {id:_0x20ea94}=_0x39af7b['_splitMarkerName'](_0x1d732e['name']),_0x2b0fec=_0x39af7b['getSuggestion'](_0x20ea94);return _0x109ca9=_0x2b0fec['attributes']['groupId'],_0x2b0fec['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b27ca['size'])return;const _0x2fbccc=_0x39af7b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfc7dbc=>'attribute'==_0xfc7dbc['type']&&_0xfc7dbc['data']&&_0x16c349['includes'](_0xfc7dbc['data']['key'])&&_0xfc7dbc['attributes']['groupId']!=_0x109ca9)['map'](_0x44e155=>({'listItem':_0x44e155['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44e155['attributes']['groupId']})),_0xebb0ea=new Set();for(const {groupId:_0x12d3a2,listItem:_0x1c9f84}of _0x2fbccc)_0x3b27ca['has'](_0x1c9f84)&&_0xebb0ea['add'](_0x12d3a2);for(const _0x4c6798 of _0x39af7b['getSuggestions']())_0xebb0ea['has'](_0x4c6798['attributes']['groupId'])&&_0x4c6798['setAttribute']('groupId',_0x109ca9);}['_supportLegacySuggestions'](){const _0x5cfcd6=this['editor'],_0x32647c=_0x5cfcd6['locale'],_0x26ab5d=_0x5cfcd6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26ab5d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5e09d0,_0x59f2b2){const _0x2868a8=[];for(let _0x20f655 of _0x5e09d0)_0x20f655['start']['nodeAfter']===_0x20f655['end']['parent']&&(_0x20f655=_0x5cfcd6['model']['createRange'](_0x5cfcd6['model']['createPositionAt'](_0x20f655['start']['nodeAfter'],0x0))),_0x2868a8['push'](_0x20f655);_0x5cfcd6['model']['change'](_0x5a00ab=>{const _0x3912ae=_0x5cfcd6['model']['document']['selection'],_0x2737b2=Array['from'](_0x3912ae['getRanges']())['map'](_0x203b61=>_0x46c3f4['fromRange'](_0x203b61));_0x5a00ab['setSelection'](_0x2868a8),_0x5cfcd6['commands']['get'](_0x59f2b2['commandName'])['refresh'](),_0x59f2b2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5cfcd6['execute'](_0x59f2b2['commandName'],..._0x59f2b2['commandParams']),_0x5a00ab['setSelection'](_0x2737b2);for(const _0x58ce2a of _0x2737b2)_0x58ce2a['detach']();});}),_0x26ab5d['descriptionFactory']['registerElementLabel'](function(_0x2e58dc){const _0x2e670c=!_0x5cfcd6['model']['schema']['isObject'](_0x2e58dc),_0x59fd42=_0x2e58dc['previousSibling'],_0x2cfb87=_0x2e58dc['nextSibling'],_0x355821=_0x2e58dc['getAttribute']('listItemId'),_0x4958bd=!_0x59fd42||_0x59fd42['getAttribute']('listItemId')!==_0x355821,_0x517d32=!_0x2cfb87||_0x2cfb87['getAttribute']('listItemId')!==_0x355821;return _0x2e670c&&Boolean(_0x355821)&&_0x4958bd&&_0x517d32;},_0x3bf9d5=>c(_0x32647c,'ELEMENT_LIST_ITEM',_0x3bf9d5));}['_registerLegacyDescription'](){const _0x1e6ce7=this['editor'],_0x55805a=_0x1e6ce7['locale'];function _0x363128(_0x31bf26){const _0x5a2059=_0x1e6ce7['commands']['get']('bulletedList')['value'],_0x453249=_0x1e6ce7['commands']['get']('numberedList')['value'];return'numberedList'===_0x31bf26?_0x5a2059:_0x453249;}_0x1e6ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x565a1b){if('formatBlock'!=_0x565a1b['type'])return;const {data:_0x34dd5c}=_0x565a1b;if(!_0x34dd5c)return;let _0xa2a33,_0x1485be,_0x198af5,_0x2ef1d0;switch(_0x34dd5c['commandName']){case'bulletedList':_0x198af5=_0x34dd5c['commandParams'][0x0]['forceValue'],_0x2ef1d0=_0x363128(_0x34dd5c['commandName']),_0xa2a33=_0x198af5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ef1d0&&_0x1e6ce7['config']['get']('list.multiBlock')||(_0xa2a33='*Change\x20to:*\x20%0'),_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x198af5=_0x34dd5c['commandParams'][0x0]['forceValue'],_0x2ef1d0=_0x363128(_0x34dd5c['commandName']),_0xa2a33=_0x198af5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ef1d0&&_0x1e6ce7['config']['get']('list.multiBlock')||(_0xa2a33='*Change\x20to:*\x20%0'),_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa2a33='*Indent:*\x20%0',_0x1485be={'type':'format','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa2a33=function(_0x232f0b){const _0x8a998e=_0x232f0b['getFirstRange']();let _0x93be48=_0x8a998e['start']['nodeAfter'];for(;_0x93be48&&_0x8a998e['containsItem'](_0x93be48);){if(_0x93be48['getAttribute']('listIndent')>0x0)return!0x1;_0x93be48=_0x93be48['nextSibling'];}return!0x0;}(_0x565a1b)?c(_0x55805a,'*Format:*\x20remove\x20from\x20%0',c(_0x55805a,function(_0xe8f409){return'ELEMENT_'+_0xe8f409['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x565a1b))):c(_0x55805a,'*Outdent:*\x20%0',c(_0x55805a,'ELEMENT_LIST_ITEM')),_0x1485be={'type':'format','content':_0xa2a33};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34dd5c['multipleBlocks']&&(_0xa2a33='*Merge:*\x20%0',_0x1485be={'type':'deletion','content':c(_0x55805a,_0xa2a33,c(_0x55805a,'ELEMENT_LIST_ITEM'))});}return _0x1485be;});}}function Te(_0x447e96){let _0x49800c=_0x447e96['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x49800c;){const _0x89c049=_0x49800c['getAttribute']('listItemId');if(!_0x89c049)return!0x1;if(_0x89c049==_0x447e96['data']['newValue'])return'newValue';if(_0x89c049==_0x447e96['data']['oldValue'])return'oldValue';_0x49800c=_0x49800c['previousSibling'];}return!0x1;}class Se extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24ccf6=this['editor']['config']['get']('list.properties'),_0x4ff314=this['editor']['plugins']['get']('TrackChangesEditing');_0x24ccf6['styles']&&(_0x4ff314['enableDefaultAttributesIntegration']('listStyle'),_0x4ff314['registerBlockAttribute']('listStyle')),_0x24ccf6['reversed']&&(_0x4ff314['enableDefaultAttributesIntegration']('listReversed'),_0x4ff314['registerBlockAttribute']('listReversed')),_0x24ccf6['startIndex']&&(_0x4ff314['enableDefaultAttributesIntegration']('listStart'),_0x4ff314['registerBlockAttribute']('listStart'));const _0x4ffd2e={'type':'format','content':''};_0x4ff314['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x16ad19=this['editor']['locale'];_0x4ff314['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x16ad19,'FORMAT_LIST_REVERSED')),_0x4ff314['descriptionFactory']['registerDescriptionCallback'](_0x3cd1c8=>{const {data:_0x3e77f7}=_0x3cd1c8;if(_0x3e77f7&&'listReversed'==_0x3e77f7['key'])return null==_0x3e77f7['newValue']||0x0==_0x3e77f7['newValue']&&null==_0x3e77f7['oldValue']?_0x4ffd2e:void 0x0;}),_0x4ff314['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x16ad19,'FORMAT_LIST_START')),_0x4ff314['descriptionFactory']['registerDescriptionCallback'](_0x8118e6=>{const {data:_0x11b6cb}=_0x8118e6;if(_0x11b6cb&&'listStart'==_0x11b6cb['key'])return null==_0x11b6cb['newValue']||0x1==_0x11b6cb['newValue']&&null==_0x11b6cb['oldValue']?_0x4ffd2e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39b6ef=>{if(_0x39b6ef['batch']['isUndo'])return!0x1;let _0x35015c=!0x1;const _0x28cca5=_0x4ff314['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f8bde=>{const _0x3316ac=_0x4ff314['_getAttributeKey'](_0x1f8bde);return'listStart'==_0x3316ac||'listReversed'==_0x3316ac;});for(const _0x16be7f of _0x28cca5){const _0x58293e=_0x16be7f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58293e||'customNumbered'==_0x58293e)continue;_0x4ff314['_findSuggestions'](_0x16be7f['getFirstRange'](),'attribute')['find'](_0xa728f3=>'listType'==_0x4ff314['_getAttributeKey'](_0xa728f3['suggestion']))||(_0x39b6ef['removeMarker'](_0x16be7f['getFirstMarker']()),_0x35015c=!0x0);}return _0x35015c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e040a){const _0x4821bc=this['editor']['locale'],{data:_0x56fdb9}=_0x4e040a,_0x2992ae={'type':'format','content':''};if(!_0x56fdb9||'listStyle'!=_0x56fdb9['key'])return;if(!_0x56fdb9['oldValue'])return'default'==_0x56fdb9['newValue']?_0x2992ae:{'type':'format','content':''+c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['newValue'])))};if(!_0x56fdb9['newValue']){if('default'==_0x56fdb9['oldValue'])return _0x2992ae;let _0x1fff85=_0x4e040a['head'];for(;_0x1fff85;){if(_0x1fff85['data']&&'listType'==_0x1fff85['data']['key']&&_0x1fff85['data']['newValue'])return _0x2992ae;_0x1fff85=_0x1fff85['next'];}return{'type':'format','content':''+c(_0x4821bc,'*Remove\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['oldValue'])))};}if('default'!=_0x56fdb9['newValue'])return{'type':'format','content':''+c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,this['_getTranslationKeyForListStyle'](_0x56fdb9['newValue'])))};let _0xc1daee=_0x4e040a['head'];for(;_0xc1daee;){if(_0xc1daee['data']&&'listType'==_0xc1daee['data']['key']&&_0xc1daee['data']['newValue']&&_0xc1daee['data']['oldValue'])return _0x2992ae;_0xc1daee=_0xc1daee['next'];}return{'type':'format','content':c(_0x4821bc,'*Set\x20format:*\x20%0',c(_0x4821bc,'ELEMENT_'+_0x4e040a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1f3f5d=this['editor'],_0x59056a=_0x1f3f5d['locale'];_0x1f3f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1d2f=>{if('formatBlock'!=_0x4a1d2f['type'])return;const {data:_0xa8ebdb}=_0x4a1d2f;if(!_0xa8ebdb)return;let _0x40f102,_0x561da0;switch(_0xa8ebdb['commandName']){case'listStyle':_0x40f102='*Change\x20to:*\x20%0',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102,c(_0x59056a,this['_getTranslationKeyForListStyle'](_0xa8ebdb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40f102=_0xa8ebdb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102)};break;case'listStart':_0x40f102='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x561da0={'type':'format','content':c(_0x59056a,_0x40f102,_0xa8ebdb['commandParams'][0x0]['startIndex'])};}return _0x561da0;});}['_getTranslationKeyForListStyle'](_0x47946c){return'ELEMENT_'+function(_0x4411e1){if(_e['includes'](_0x4411e1))return'bulleted';if(Re['includes'](_0x4411e1))return'numbered';return null;}(_0x47946c)['toUpperCase']()+'_LIST_'+_0x47946c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x14dd54{['afterInit'](){const _0x2532bb=this['editor'];_0x2532bb['commands']['get']('emoji')&&_0x2532bb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x14dd54{static get['requires'](){return[_0x3956ce];}['init'](){const _0x522dd1=this['editor'],_0x47965a=_0x522dd1['plugins']['get']('TrackChangesEditing'),_0x348418=_0x522dd1['commands']['get']('enter');_0x47965a['enableCommand']('enter',()=>{_0x522dd1['model']['change'](_0x273332=>{const _0x4819ab=_0x522dd1['model']['document']['selection'],_0x12a584=_0x4819ab['getFirstPosition'](),_0x1f90e3=_0x46c3f4['fromRange'](_0x4819ab['getFirstRange']());if(_0x348418['enterBlock'](_0x273332)){const _0x46fa52=_0x522dd1['model']['createPositionAt'](_0x12a584['parent']['nextSibling'],0x0),_0xe68ccc=_0x273332['createRange'](_0x12a584,_0x46fa52);_0x47965a['markInsertion'](_0xe68ccc);}else _0x273332['setSelection'](_0x273332['createRange'](_0x1f90e3['end']));_0x1f90e3['detach'](),_0x348418['fire']('afterExecute',{'writer':_0x273332});});}),_0x522dd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x522dd1,'split'),{'priority':'high'}),_0x522dd1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1782bb,_0x30731d,_0x3436c9)=>{const _0x7239bc=_0x3436c9['mapper']['markerNameToElements'](_0x30731d['markerName']);if(_0x7239bc){for(const _0x4007f4 of _0x7239bc)_0x4007f4['hasClass']('ck-suggestion-marker-split')&&(_0x3436c9['mapper']['unbindElementFromMarkerName'](_0x4007f4,_0x30731d['markerName']),_0x3436c9['writer']['remove'](_0x4007f4));}},{'priority':'high'}),_0x522dd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x330e93,_0x8607aa,_0x3340d1)=>{_0x3340d1['options']['showSuggestionHighlights']&&Fe(_0x522dd1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x330e93,_0x8607aa,_0x3340d1);},{'priority':'high'});}}class Z extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5b8338=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b8338['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5b8338['enableCommand']('findNext'),_0x5b8338['enableCommand']('findPrevious'),_0x5b8338['enableCommand']('replace'),_0x5b8338['enableCommand']('replaceAll');}['handleFindCommand'](_0x392ae1,_0x4f357a,_0xfb6171={}){const _0x2eabc8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x392ae1(_0x4d5a17=>{let _0x311a18=('string'==typeof _0x4f357a?_0x2eabc8['findByTextCallback'](_0x4f357a,_0xfb6171):_0x4f357a)(_0x4d5a17);Array['isArray'](_0x311a18)&&(_0x311a18={'results':_0x311a18,'searchText':'string'==typeof _0x4f357a?_0x4f357a:''});const _0x3e286d=_0x311a18['results']['filter'](_0x556ffa=>!0x1===this['_isInDeletionRange'](_0x556ffa,_0x4d5a17['item']));return{..._0x311a18,'results':_0x3e286d};},_0xfb6171);}['_isInDeletionRange'](_0x329b4e,_0x26e11b){const _0x3ef40c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26e11b,_0x329b4e['start']),this['editor']['model']['createPositionAt'](_0x26e11b,_0x329b4e['end']));for(const _0x50bf4c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3ef40c['getIntersection'](_0x50bf4c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x14dd54{['afterInit'](){const _0x57548a=this['editor']['locale'],_0x44a523=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xab93d9,commandName:_0x2d952b}of ro)this['editor']['plugins']['has'](_0xab93d9)&&(_0x44a523['enableDefaultAttributesIntegration'](_0x2d952b),_0x44a523['registerInlineAttribute'](_0x2d952b));_0x44a523['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x57548a,'FORMAT_FONT_SIZE')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x57548a,'FORMAT_FONT_FAMILY')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x57548a,'FORMAT_FONT_COLOR')),_0x44a523['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x57548a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b156a=this['editor'],_0x299f67=_0x1b156a['locale'];_0x1b156a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5db77a=>{const _0x257aa7=_0x299f67['t'];if('formatInline'!=_0x5db77a['type'])return;const {data:_0x29d8d8}=_0x5db77a;if(null!=_0x29d8d8){if('fontSize'==_0x29d8d8['commandName']){const _0x1873f7=_0x29d8d8['commandParams'][0x0]['value'];if(_0x1873f7){const _0x775e0b=_0x257aa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x498759=>_0x498759['model']==_0x1873f7)['title'])['toLowerCase']();return{'type':'format','content':c(_0x299f67,'*Set\x20font\x20size:*\x20%0',_0x775e0b)};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x29d8d8['commandName']){const _0x4f1f6b=_0x29d8d8['commandParams'][0x0]['value'];return _0x4f1f6b?{'type':'format','content':c(_0x299f67,'*Set\x20font\x20family:*\x20%0',_0x4f1f6b)}:{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20family*')};}if('fontColor'==_0x29d8d8['commandName']){const _0x337cc7=_0x29d8d8['commandParams'][0x0]['value'];if(_0x337cc7){const _0x46a4fe=_0x52732e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2770b3=>_0x2770b3['model']==_0x337cc7);let _0x16bef0=_0x337cc7,_0x27cd98='';return _0x46a4fe&&(_0x16bef0=_0x46a4fe['label'],_0x27cd98=_0x257aa7(_0x16bef0)['toLowerCase']()),{'type':'format','content':c(_0x299f67,'*Set\x20font\x20color:*\x20%0',_0x27cd98)['trim'](),'color':{'value':_0x337cc7,'title':_0x27cd98||_0x16bef0}};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x29d8d8['commandName']){const _0x51a5df=_0x29d8d8['commandParams'][0x0]['value'];if(_0x51a5df){const _0xa2945c=_0x52732e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5cafb3=>_0x5cafb3['model']==_0x51a5df);let _0x190db9=_0x51a5df,_0x534e7f='';return _0xa2945c&&(_0x190db9=_0xa2945c['label'],_0x534e7f=_0x257aa7(_0x190db9)['toLowerCase']()),{'type':'format','content':c(_0x299f67,'*Set\x20font\x20background\x20color:*\x20%0',_0x534e7f)['trim'](),'color':{'value':_0x51a5df,'title':_0x534e7f||_0x190db9}};}return{'type':'format','content':c(_0x299f67,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x14dd54{['afterInit'](){const _0x889ca9=this['editor'],_0x57d9af=_0x889ca9['plugins']['get']('TrackChangesEditing'),_0x2f38e3=_0x889ca9['commands']['get']('copyFormat'),_0x52104e=_0x889ca9['commands']['get']('pasteFormat');_0x2f38e3&&_0x52104e&&(_0x57d9af['enableDefaultAttributesIntegration']('pasteFormat'),_0x57d9af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x42a95b=this['editor'],_0x3afa49=_0x42a95b['locale'];_0x42a95b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb2c4b=>{if('formatBlock'!=_0xfb2c4b['type']&&'formatInline'!=_0xfb2c4b['type'])return;const {data:_0x53ea7e}=_0xfb2c4b;if(_0x53ea7e&&'pasteFormat'===_0x53ea7e['commandName']){const _0x208835=[],_0x520675=_0x53ea7e['commandParams'][0x0];for(const [_0x577bf9,_0x5d0821]of Object['entries'](_0x520675))_0x208835['push'](so(_0x42a95b,_0x577bf9,_0x5d0821));return _0x208835['length']?{'type':'format','content':c(_0x3afa49,'*Set\x20format\x20to:*\x20%0',_0x208835['join'](',\x20'))}:{'type':'format','content':c(_0x3afa49,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12e495,_0x219063,_0x1cfec0){const _0x1e3622=_0x12e495['locale']['t'],_0x472a7b=_0x219063['split'](/(?=[A-Z])/)['join']('\x20'),_0x33571a=_0x1e3622(_0x472a7b['charAt'](0x0)['toUpperCase']()+_0x472a7b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1cfec0)return _0x33571a;if('fontColor'===_0x219063||'fontBackgroundColor'===_0x219063){const _0x11e6e2=_0x52732e(_0x12e495['config']['get']('fontColor.colors'))['find'](_0x538ed8=>_0x538ed8['model']==_0x1cfec0);return _0x33571a+'\x20('+(_0x11e6e2?_0x1e3622(_0x11e6e2['label'])['toLowerCase']():_0x1cfec0)+')';}if('fontSize'===_0x219063&&isNaN(parseFloat(_0x1cfec0))){const _0x19d918=_0x12e495['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12e495['config']['get']('fontSize.options'))['find'](_0x4f842a=>_0x4f842a['model']==_0x1cfec0);return _0x33571a+'\x20('+(_0x19d918?_0x1e3622(_0x19d918['title'])['toLowerCase']():_0x1cfec0)+')';}return _0x33571a+'\x20('+_0x1cfec0+')';}class et extends _0x14dd54{['_headingOptions'];['afterInit'](){const _0x5a4e2d=this['editor'];if(!_0x5a4e2d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a4e2d['config']['get']('heading.options');const _0x59b9e6=_0x5a4e2d['locale'],_0x9fc2b7=_0x5a4e2d['plugins']['get']('TrackChangesEditing');_0x9fc2b7['enableDefaultAttributesIntegration']('heading');for(const _0x18d04b of this['_headingOptions'])'paragraph'!=_0x18d04b['model']&&_0x9fc2b7['descriptionFactory']['registerElementLabel'](_0x18d04b['model'],_0x4a18aa=>{const _0xe1eddb=this['_getHeadingLevel'](_0x18d04b['model']);return null!==_0xe1eddb?_0x462957(_0x4a18aa,_0xe1eddb):_0x3e71cd(_0x4a18aa,_0x18d04b['title']);});function _0x462957(_0x149c40,_0x9909eb){return c(_0x59b9e6,'ELEMENT_HEADING',[_0x149c40,_0x9909eb]);}function _0x3e71cd(_0x10a6bf,_0x421173){return c(_0x59b9e6,'ELEMENT_HEADING_CUSTOM',[_0x10a6bf,_0x421173]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad353=this['editor'],_0xb74692=_0x5ad353['locale'];function _0x1999f0(_0x24ab0e,_0x50808b){return c(_0xb74692,'ELEMENT_HEADING_CUSTOM',[_0x24ab0e,_0x50808b]);}_0x5ad353['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a78f2=>{if('formatBlock'!=_0x3a78f2['type'])return;const {data:_0x11af86}=_0x3a78f2;if(_0x11af86&&'heading'==_0x11af86['commandName']){const _0x690d79=_0x11af86['commandParams'][0x0]['value'],_0x2daaaa=this['_getHeadingLevel'](_0x690d79);if(null!==_0x2daaaa)return{'type':'format','content':c(_0xb74692,'*Change\x20to:*\x20%0',(_0x474aa3=0x1,_0x414aa5=_0x2daaaa,c(_0xb74692,'ELEMENT_HEADING',[_0x474aa3,_0x414aa5])))};const _0x50ed17=this['_headingOptions']['find'](_0x5009e8=>_0x5009e8['model']===_0x690d79)['title'];return{'type':'format','content':c(_0xb74692,'*Change\x20to:*\x20%0',_0x1999f0(0x1,_0x50ed17))};}var _0x474aa3,_0x414aa5;});}['_getHeadingLevel'](_0x119bd2){const _0x2d4c96=_0x119bd2['match'](/^heading(\d+)/);if(_0x2d4c96)return _0x2d4c96[0x1];const _0x225e8b=this['_headingOptions']?.['find'](_0x152dcd=>_0x152dcd['model']==_0x119bd2);if(_0x225e8b&&_0x225e8b['view']){const _0x3df878=_0x225e8b['view'],_0x1ae623=(_0x3df878['name']??_0x3df878)['match'](/^h(\d+)/);if(_0x1ae623)return _0x1ae623[0x1];}return null;}}class nt extends _0x14dd54{['afterInit'](){const _0x27df81=this['editor'];if(!_0x27df81['plugins']['has']('HighlightEditing'))return;const _0x320090=_0x27df81['plugins']['get']('TrackChangesEditing'),_0xf9bf6a=_0x27df81['locale'];_0x320090['enableDefaultAttributesIntegration']('highlight'),_0x320090['registerInlineAttribute']('highlight'),_0x320090['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xf9bf6a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e368=this['editor'],_0x10719d=_0x52e368['locale'];_0x52e368['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f8f3=>{if('formatInline'!=_0x53f8f3['type'])return;const {data:_0x25bcd5}=_0x53f8f3;if(_0x25bcd5&&'highlight'==_0x25bcd5['commandName']){const _0x4fdc43=_0x10719d['t'],_0x5d6584=_0x25bcd5['commandParams'][0x0]['value'];if(_0x5d6584){const _0x1ec7ee=_0x52e368['config']['get']('highlight.options')['find'](_0x476bb6=>_0x476bb6['model']==_0x5d6584),_0x1c812f=_0x4fdc43(_0x1ec7ee['title'])['toLowerCase']();return{'type':'format','content':c(_0x10719d,'*Set\x20highlight:*\x20%0',_0x1c812f),'color':{'value':_0x1ec7ee['color'],'title':_0x1ec7ee['title']}};}return{'type':'format','content':c(_0x10719d,'*Remove\x20highlight*',c(_0x10719d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x14dd54{['afterInit'](){const _0x3fdb74=this['editor'];if(!_0x3fdb74['plugins']['has']('HorizontalLineEditing'))return;_0x3fdb74['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x23b543=_0x3fdb74['plugins']['get']('TrackChangesEditing'),_0x328c74=_0x3fdb74['locale'];_0x23b543['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31b76d=>c(_0x328c74,'ELEMENT_HORIZONTAL_LINE',_0x31b76d)),_0x3fdb74['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x8a05f8,{writer:_0xcc52ef,options:_0x163351})=>{if(!_0x163351['showSuggestionHighlights'])return null;const _0x20913d=_0xcc52ef['createContainerElement']('div'),_0x536ea8=_0xcc52ef['createEmptyElement']('hr');return _0xcc52ef['addClass']('ck-horizontal-line',_0x20913d),_0xcc52ef['insert'](_0xcc52ef['createPositionAt'](_0x20913d,0x0),_0x536ea8),_0x20913d;},'converterPriority':'high'});}}class ot extends _0x14dd54{['afterInit'](){const _0x1c28d6=this['editor'];if(!_0x1c28d6['plugins']['has']('HtmlEmbed'))return;const _0x45d9cb=_0x1c28d6['plugins']['get']('TrackChangesEditing'),_0x41a764=_0x1c28d6['locale'];_0x45d9cb['descriptionFactory']['registerElementLabel']('rawHtml',_0x25f870=>c(_0x41a764,'ELEMENT_HTML_EMBED',_0x25f870)),_0x45d9cb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45d9cb['registerBlockAttribute']('value'),_0x45d9cb['descriptionFactory']['registerDescriptionCallback'](_0x1c38a2=>{if('attribute'!=_0x1c38a2['type'])return;const {data:_0xb4c340}=_0x1c38a2;if(_0xb4c340&&'value'==_0xb4c340['key']&&_0x1c38a2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf1b88d=c(_0x41a764,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x41a764,'*Change\x20%0\x20content*',_0xf1b88d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c187b=this['editor'],_0x3c23d1=_0x3c187b['locale'];_0x3c187b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497dcc=>{if('formatBlock'!=_0x497dcc['type'])return;const {data:_0x462a1d}=_0x497dcc;if(_0x462a1d&&'htmlEmbed'==_0x462a1d['commandName']){const _0x525030=c(_0x3c23d1,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3c23d1,'*Change\x20%0\x20content*',_0x525030)};}});}}class rt extends _0x14dd54{['afterInit'](){const _0x310110=this['editor'];if(!_0x310110['plugins']['has']('ImageEditing'))return;const _0x1e4b7d=_0x310110['plugins']['get']('TrackChangesEditing'),_0x290bd6=_0x310110['plugins']['get']('ImageUtils'),_0x3c2965=_0x310110['locale'];_0x1e4b7d['enableCommand']('insertImage'),_0x1e4b7d['descriptionFactory']['registerElementLabel']('imageBlock',_0x541e7f=>c(_0x3c2965,'ELEMENT_IMAGE',_0x541e7f)),_0x1e4b7d['descriptionFactory']['registerElementLabel']('imageInline',_0x2675a3=>c(_0x3c2965,'ELEMENT_INLINE_IMAGE',_0x2675a3)),_0x1e4b7d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3c2965,'ELEMENT_CAPTION')),_0x310110['plugins']['has']('ImageUploadEditing')&&_0x1e4b7d['enableCommand']('uploadImage'),_0x310110['plugins']['has']('ImageBlockEditing')&&_0x310110['plugins']['has']('ImageInlineEditing')&&(_0x1e4b7d['enableCommand']('imageTypeInline',(_0x5b58a9,_0x231a18)=>{const _0x48ea6d=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']);_0x310110['model']['change'](()=>{_0x1e4b7d['markBlockFormat'](_0x48ea6d,{'commandName':'imageTypeInline','commandParams':[_0x231a18]},[],'convertBlockImageToInline');});}),_0x1e4b7d['enableCommand']('imageTypeBlock',(_0x16594d,_0x204363)=>{_0x310110['model']['change'](_0x549176=>{let _0x18ca31=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0xa93c4b=_0x549176['createRangeOn'](_0x18ca31);const _0x441396=_0x3cc174['fromPosition'](_0xa93c4b['start'],'toPrevious'),_0x5d52b8=_0x3cc174['fromPosition'](_0xa93c4b['end'],'toNext');_0x1e4b7d['forceDefaultExecution'](()=>_0x16594d(_0x204363)),_0x18ca31=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0xa93c4b=_0x549176['createRangeOn'](_0x18ca31);const _0x11e8a4=_0x549176['createRange'](_0x441396,_0x5d52b8);_0x441396['detach'](),_0x5d52b8['detach'](),_0x1e4b7d['markBlockFormat'](_0x18ca31,{'commandName':'imageTypeInline','commandParams':[_0x204363]},[],'convertInlineImageToBlock'),_0x11e8a4['start']['isBefore'](_0xa93c4b['start'])&&_0x1e4b7d['markInsertion'](_0x549176['createRange'](_0x11e8a4['start'],_0xa93c4b['start']),'convertInlineImageToBlock'),_0xa93c4b['end']['isBefore'](_0x11e8a4['end'])&&_0x1e4b7d['markInsertion'](_0x549176['createRange'](_0xa93c4b['end'],_0x11e8a4['end']),'convertInlineImageToBlock');});}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e4b7d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23a477])=>{const _0x5400b8=_0x1e4b7d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x585615=_0x23a477['start'],_0x4d6094=_0x23a477['end'];const _0x204fd3=_0x310110['model']['schema']['getNearestSelectionRange'](_0x585615,'backward'),_0x5adbab=_0x310110['model']['schema']['getNearestSelectionRange'](_0x4d6094,'forward');_0x204fd3['isCollapsed']&&(_0x585615=_0x204fd3['start']),_0x5adbab['isCollapsed']&&(_0x4d6094=_0x5adbab['end']),_0x5400b8([_0x310110['model']['createRange'](_0x585615,_0x4d6094)]);}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e2814),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e2814)),_0x310110['plugins']['has']('ImageCaptionEditing')&&(_0x1e4b7d['enableCommand']('toggleImageCaption',(_0x3791ff,_0x31fba1)=>{const _0x4598b7=_0x310110['plugins']['get']('ImageCaptionUtils');let _0x4a66ec=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0x1bd4fc=_0x4598b7['getCaptionFromImageModelElement'](_0x4a66ec);_0x310110['model']['change'](()=>{if(_0x1bd4fc)return void _0x1e4b7d['markDeletion'](_0x310110['model']['createRangeOn'](_0x1bd4fc));const _0x5dfe0f=_0x290bd6['isBlockImage'](_0x4a66ec);_0x3791ff(_0x31fba1),_0x4a66ec=_0x290bd6['getClosestSelectedImageElement'](_0x310110['model']['document']['selection']),_0x1bd4fc=_0x4598b7['getCaptionFromImageModelElement'](_0x4a66ec),_0x1e4b7d['markInsertion'](_0x310110['model']['createRangeOn'](_0x1bd4fc),_0x5dfe0f?null:'imageCaption');});}),_0x1e4b7d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e2814));const _0x262524=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x596663(_0x3595a5,_0x2de916){const _0x2d3671=_0x262524['findIndex'](({type:_0x384776,subType:_0x2bc612})=>_0x3595a5['type']==_0x384776&&_0x3595a5['subType']==_0x2bc612),_0x48e232=_0x262524['findIndex'](({type:_0x15af57,subType:_0x4292e3})=>_0x2de916['type']==_0x15af57&&_0x2de916['subType']==_0x4292e3);if(_0x2d3671<0x0||_0x48e232<0x0)return!0x1;const _0x2bf0c9=_0x3595a5['getFirstRange'](),_0x500c1c=_0x2de916['getFirstRange']();if((0x0==_0x2d3671||0x1==_0x2d3671)&&0x2==_0x48e232&&_0x2bf0c9['isIntersecting'](_0x500c1c))return!0x0;if(0x2==_0x2d3671&&0x3==_0x48e232){const _0x2c959e=_0x1e4b7d['_findSuggestions'](_0x2bf0c9,'insertion')['filter'](({suggestion:_0x1f4a23,meta:_0x4d626e})=>_0x4d626e['isOwn']&&'convertInlineImageToBlock'==_0x1f4a23['subType']);if(_0x2c959e['length']>0x1&&_0x500c1c['end']['isEqual'](_0x2bf0c9['start']))return!0x0;if(0x1==_0x2c959e['length']&&(_0x2bf0c9['start']['isEqual'](_0x500c1c['end'])||_0x2bf0c9['end']['isEqual'](_0x500c1c['start'])))return!0x0;}if(0x3==_0x2d3671&&0x3==_0x48e232&&_0x2bf0c9['start']['isBefore'](_0x500c1c['start'])){const _0x519b8d=_0x2bf0c9['end']['nodeAfter'],_0x4a29c2=_0x500c1c['start']['nodeBefore'];return _0x290bd6['isBlockImage'](_0x519b8d)&&_0x519b8d===_0x4a29c2;}return!0x1;}function _0x3e2814(_0x49693e,_0x42ee16){return _0x596663(_0x49693e,_0x42ee16)?[_0x49693e,_0x42ee16]:_0x596663(_0x42ee16,_0x49693e)?[_0x42ee16,_0x49693e]:null;}_0x310110['plugins']['has']('ImageResize')&&(_0x1e4b7d['enableDefaultAttributesIntegration']('resizeImage'),_0x1e4b7d['registerBlockAttribute']('resizedWidth'),_0x1e4b7d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3c2965,'FORMAT_IMAGE_SIZE'))),_0x310110['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e4b7d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e4b7d['registerBlockAttribute']('alt')),_0x310110['plugins']['has']('PictureEditing')&&(_0x1e4b7d['registerBlockAttribute']('sources'),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x2a6f84=>{if('attribute'!=_0x2a6f84['type'])return;const {data:_0x308768}=_0x2a6f84;return _0x308768&&'sources'==_0x308768['key']?{'type':'format','content':''}:void 0x0;})),_0x310110['plugins']['has']('ImageSizeAttributes')&&(_0x1e4b7d['registerBlockAttribute']('width'),_0x1e4b7d['registerBlockAttribute']('height'),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x4aa99b=>{if('attribute'!=_0x4aa99b['type'])return;const {data:_0x17b80b}=_0x4aa99b;return!_0x17b80b||'width'!=_0x17b80b['key']&&'height'!=_0x17b80b['key']?void 0x0:{'type':'format','content':''};})),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x2cf3ed=>{if(!!_0x262524['find'](({type:_0x2df45d,subType:_0x422bc8})=>_0x2cf3ed['type']==_0x2df45d&&_0x2cf3ed['subType']==_0x422bc8))return _0x2cf3ed['previous']?{}:void 0x0;}),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x565d55=>{if('insertion'==_0x565d55['type']||'deletion'==_0x565d55['type']){const _0x2e02f7=_0x565d55['getContainedElement']();if(_0x2e02f7&&_0x2e02f7['is']('element','caption'))return{'type':'insertion'==_0x565d55['type']?'addObject':'removeObject','element':_0x2e02f7,'quantity':0x1};}}),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x36f593=>'formatBlock'==_0x36f593['type']&&'convertInlineImageToBlock'==_0x36f593['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36f593['type']&&'convertBlockImageToInline'==_0x36f593['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e4b7d['descriptionFactory']['registerDescriptionCallback'](_0x5228b6=>{if('attribute'!=_0x5228b6['type'])return;const {data:_0x43ff51}=_0x5228b6;if(!_0x43ff51||'alt'!=_0x43ff51['key'])return;const _0x146259=_0x43ff51['newValue'];return _0x146259?{'type':'format','content':c(_0x3c2965,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x146259+'\x22')}:{'type':'format','content':c(_0x3c2965,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce36e=this['editor'],_0x519b68=_0x4ce36e['locale'];_0x4ce36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cb2f=>{if('formatBlock'!=_0x10cb2f['type']&&'formatInline'!=_0x10cb2f['type'])return;const {data:_0x39ca31}=_0x10cb2f;if(_0x39ca31){if('imageTextAlternative'==_0x39ca31['commandName']){const _0x43cf8d=_0x39ca31['commandParams'][0x0]['newValue'];return _0x43cf8d?{'type':'format','content':c(_0x519b68,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43cf8d+'\x22')}:{'type':'format','content':c(_0x519b68,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x39ca31['commandName']){const _0x34e2de=_0x39ca31['commandParams'][0x0]['width'];return _0x34e2de?{'type':'format','content':c(_0x519b68,'*Set\x20image\x20width:*\x20%0',_0x34e2de)}:{'type':'format','content':c(_0x519b68,'*Reset\x20image\x20width*')};}}});}}class at extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x31fad5=this['editor']['locale'],_0x4b55db=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b55db['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b55db['registerBlockAttribute']('src'),_0x4b55db['descriptionFactory']['registerDescriptionCallback'](_0x4b743e=>{if('attribute'!=_0x4b743e['type'])return;const {data:_0x57e82f}=_0x4b743e;return _0x57e82f&&'src'==_0x57e82f['key']?_0x57e82f['newValue']&&_0x57e82f['oldValue']?{'type':'format','content':c(_0x31fad5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2051c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2051c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2051c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2051c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2051c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd80b=this['editor'],_0x43047f=_0x3dd80b['locale'];_0x3dd80b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb1ec12=>{if('formatBlock'!=_0xb1ec12['type']&&'formatInline'!=_0xb1ec12['type'])return;const {data:_0x411e98}=_0xb1ec12;if(!_0x411e98||'replaceImageSource'!=_0x411e98['commandName'])return;return{'type':'format','content':c(_0x43047f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x14dd54{['afterInit'](){const _0x3fad7c=this['editor'];if(!_0x3fad7c['plugins']['has']('ImageStyleEditing'))return;const _0x330928=_0x3fad7c['plugins']['get']('TrackChangesEditing'),_0x3b4bc8=_0x3fad7c['plugins']['get']('ImageUtils'),_0x12cc32={};_0x330928['enableCommand']('imageStyle',(_0x2bcea0,_0x19e72d)=>{const _0xe1867d=_0x3fad7c['plugins']['get']('Users')['me'],_0x709b80=_0x3fad7c['commands']['get']('imageStyle');let _0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),_0xd2d245=_0x3fad7c['model']['createRangeOn'](_0x38cd8d),_0x195a01=_0x709b80['value'];if(_0x195a01==_0x19e72d['value'])return;const _0x15d6ed={'commandName':'imageStyle','commandParams':[_0x19e72d],'formatGroupId':_0x425596()};_0x3fad7c['model']['change'](()=>{if(_0x330928['getSuggestions']()['filter'](_0x2024ec=>_0x2024ec['isInContent']&&_0xe1867d==_0x2024ec['author']&&('formatBlock'==_0x2024ec['type']||'formatInline'==_0x2024ec['type'])&&('imageStylePreApply'==_0x2024ec['subType']||'imageStylePostApply'==_0x2024ec['subType'])&&_0x2024ec['getFirstRange']()['isEqual'](_0xd2d245))['forEach'](_0x497b0c=>_0x330928['discardSuggestion'](_0x497b0c['head'])),_0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),_0xd2d245=_0x3fad7c['model']['createRangeOn'](_0x38cd8d),_0x709b80['refresh'](),_0x3fad7c['commands']['get']('imageTypeInline')['refresh'](),_0x3fad7c['commands']['get']('imageTypeBlock')['refresh'](),_0x195a01=_0x709b80['value'],_0x195a01!=_0x19e72d['value'])return _0x3b4bc8['isInlineImage'](_0x38cd8d)&&_0x709b80['shouldConvertImageType'](_0x19e72d['value'],_0x38cd8d)?(_0x2bcea0({..._0x19e72d,'setImageSizes':!0x1}),_0x38cd8d=_0x3b4bc8['getClosestSelectedImageElement'](_0x3fad7c['model']['document']['selection']),void _0x330928['markBlockFormat'](_0x38cd8d,{..._0x15d6ed,'commandReversedParams':[{'value':_0x195a01||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b4bc8['isBlockImage'](_0x38cd8d)?_0x330928['markBlockFormat'](_0x38cd8d,_0x15d6ed,[],'imageStylePostApply'):_0x330928['markInlineFormat'](_0xd2d245,_0x15d6ed,'imageStylePostApply'));});});for(const _0x35cfd9 of _0x3fad7c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x12cc32[_0x35cfd9['name']]=_0x35cfd9['title']['toLowerCase']();_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5af61d])=>{_0x3b4bc8['setImageNaturalSizeAttributes'](_0x5af61d['getContainedElement']());}),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f7836,_0x3c273e)=>{_0x330928['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f7836,{'commandName':_0x3c273e['commandName'],'commandParams':_0x3c273e['commandReversedParams']});}),_0x330928['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x260ba8,_0x5dc92d){if(_0x343d15(_0x260ba8,_0x5dc92d))return[_0x260ba8,_0x5dc92d];if(_0x343d15(_0x5dc92d,_0x260ba8))return[_0x5dc92d,_0x260ba8];return null;});const _0x1c59f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x343d15(_0x34bb94,_0x463335){const _0x156cf4=_0x1c59f0['findIndex'](({type:_0x31990c,subType:_0x4083ef})=>_0x34bb94['type']==_0x31990c&&_0x34bb94['subType']==_0x4083ef),_0x405b8f=_0x1c59f0['findIndex'](({type:_0xc5800b,subType:_0x16490c})=>_0x463335['type']==_0xc5800b&&_0x463335['subType']==_0x16490c);if(_0x156cf4<0x0||_0x405b8f<0x0)return!0x1;const _0x2581cc=_0x34bb94['getFirstRange'](),_0xc7ae76=_0x463335['getFirstRange']();if((0x0==_0x156cf4||0x1==_0x156cf4)&&0x2==_0x405b8f&&_0x2581cc['isIntersecting'](_0xc7ae76))return!0x0;if(0x2==_0x156cf4&&0x3==_0x405b8f){const _0x53422b=_0x330928['_findSuggestions'](_0x2581cc,'insertion')['filter'](({suggestion:_0x2c308d,meta:_0x14f736})=>_0x14f736['isOwn']&&'convertInlineImageToBlock'==_0x2c308d['subType']);if(_0x53422b['length']>0x1&&_0xc7ae76['end']['isEqual'](_0x2581cc['start']))return!0x0;if(0x1==_0x53422b['length']&&(_0x2581cc['start']['isEqual'](_0xc7ae76['end'])||_0x2581cc['end']['isEqual'](_0xc7ae76['start'])))return!0x0;}if(0x3==_0x156cf4&&0x3==_0x405b8f&&_0x2581cc['start']['isBefore'](_0xc7ae76['start'])){const _0xbd6672=_0x2581cc['end']['nodeAfter'],_0x10b154=_0xc7ae76['start']['nodeBefore'];return _0x3b4bc8['isBlockImage'](_0xbd6672)&&_0xbd6672===_0x10b154;}return!0x1;}_0x3fad7c['model']['document']['registerPostFixer'](()=>{let _0x4569e7=!0x1;const _0x17594c=Array['from'](_0x3fad7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x978bb7,data:_0x3bed32}of _0x17594c){const {group:_0x1296db,type:_0x3e94e8,subType:_0x507fa2,id:_0xdd7fad}=_0x330928['_splitMarkerName'](_0x978bb7);if('suggestion'==_0x1296db&&_0x330928['hasSuggestion'](_0xdd7fad)){if('formatBlock'==_0x3e94e8&&('imageStylePreApply'==_0x507fa2||'imageStylePostApply'==_0x507fa2)){const _0x465a41=_0x330928['getSuggestion'](_0xdd7fad);if(_0x3bed32['newRange']){const _0x5827d0=_0x465a41['getFirstRange']()['getContainedElement']();if(_0x3b4bc8['isBlockImage'](_0x5827d0))continue;_0x330928['discardSuggestion'](_0x465a41),_0x4569e7=!0x0;}}if('insertion'==_0x3e94e8&&'imageCaption'==_0x507fa2&&!_0x3bed32['newRange']){const _0x4a3f15=_0x330928['getSuggestion'](_0xdd7fad);_0x4a3f15['next']&&_0x4a3f15['next']['isInContent']&&(_0x330928['discardSuggestion'](_0x4a3f15['next']),_0x4569e7=!0x0);}}}return _0x4569e7;}),this['_registerLegacyDescription'](_0x12cc32);}['_registerLegacyDescription'](_0x502305){const _0x30f590=this['editor'],_0x141da2=_0x30f590['locale'];_0x30f590['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37077b=>{if('formatBlock'!=_0x37077b['type']&&'formatInline'!=_0x37077b['type'])return;const {data:_0x272863}=_0x37077b;if(!_0x272863||'imageStyle'!=_0x272863['commandName'])return;const _0x8936b0=_0x272863['commandParams'][0x0]['value'];return _0x2a364('side'===_0x8936b0?c(_0x141da2,'FORMAT_SIDE_IMAGE'):_0x502305[_0x8936b0]||_0x8936b0);function _0x2a364(_0xb8babf){return{'type':'format','content':c(_0x141da2,'*Format:*\x20%0',_0xb8babf)};}});}}class ut extends _0x14dd54{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x214819){super(_0x214819),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1e1cc7=this['editor'],_0x2d1ac3=_0x1e1cc7['commands']['get']('importWord'),_0x1a7884=_0x1e1cc7['commands']['get']('trackChanges');_0x2d1ac3&&(_0x2d1ac3['on']('execute',(_0x4b1afd,[,_0x531098])=>{this['_trackChangesValueDuringImport']=_0x1a7884['value'],_0x531098['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2d1ac3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2d1ac3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1a7884['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1e1cc7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2673af,_0x11b062){const {suggestions:_0x30edce}=_0x11b062,_0x5790d5=this['editor']['commands']['get']('trackChanges'),_0x2da035=_0x5790d5['value'];this['_trackChangesValueDuringImport']!==_0x2da035&&(_0x5790d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x30edce&&_0x30edce['forEach'](({id:_0x312851,type:_0x4668a0,author:_0x2a1a20,created_at:_0x5c28d6})=>{const _0x2191a5={'id':_0x312851,'type':_0x4668a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a1a20,'createdAt':_0x5c28d6?new Date(_0x5c28d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2191a5);});}}class ft extends _0x14dd54{['afterInit'](){const _0x4c4028=this['editor'],_0x6086e7=_0x4c4028['plugins']['get']('TrackChangesEditing');if(_0x4c4028['plugins']['has']('IndentEditing')&&(_0x6086e7['enableCommand']('indent'),_0x6086e7['enableCommand']('outdent')),_0x4c4028['plugins']['has']('IndentBlock')){for(const _0x977506 of['indentBlock','outdentBlock'])_0x6086e7['enableDefaultAttributesIntegration'](_0x977506);}const _0x41a402=_0x4c4028['locale'];_0x6086e7['registerBlockAttribute']('blockIndent'),_0x6086e7['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x41a402,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b080c=this['editor'],_0x497257=_0x5b080c['locale'],_0x2d2536=_0x5b080c['plugins']['get']('TrackChangesEditing');_0x2d2536['descriptionFactory']['registerDescriptionCallback'](_0x48d648=>{if('formatBlock'!=_0x48d648['type'])return;const {data:_0x3256f5}=_0x48d648;if(!_0x3256f5)return;if('indentBlock'!=_0x3256f5['commandName']&&'outdentBlock'!=_0x3256f5['commandName'])return;const _0x487642=_0x48d648['getItems']()[0x0],_0x5bb336=_0x2d2536['descriptionFactory']['getItemLabel'](_0x487642);return'indentBlock'==_0x3256f5['commandName']?{'type':'format','content':c(_0x497257,'*Indent:*\x20%0',_0x5bb336)}:'outdentBlock'==_0x3256f5['commandName']?{'type':'format','content':c(_0x497257,'*Outdent:*\x20%0',_0x5bb336)}:void 0x0;});}}class ht extends _0x14dd54{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x14dd54{['afterInit'](){const _0x148acf=this['editor'];if(!_0x148acf['plugins']['has']('LinkEditing'))return;const _0x4c8de0=_0x148acf['plugins']['get']('TrackChangesEditing'),_0x28690f=_0x148acf['commands']['get']('link');_0x4c8de0['enableDefaultAttributesIntegration']('link'),_0x4c8de0['enableDefaultAttributesIntegration']('unlink'),_0x4c8de0['registerInlineAttribute']('linkHref');for(const _0x104f1e of _0x28690f['manualDecorators'])_0x4c8de0['registerInlineAttribute'](_0x104f1e['id']),_0x4c8de0['descriptionFactory']['registerAttributeLabel'](_0x104f1e['id'],'link\x20('+_0x104f1e['label']['toLowerCase']()+')');_0x4c8de0['descriptionFactory']['registerDescriptionCallback'](_0xdbd12b=>{if('attribute'!=_0xdbd12b['type'])return;const {data:_0x3085c0}=_0xdbd12b;if(!_0x3085c0||'linkHref'!=_0x3085c0['key'])return;const _0x45f323=_0x3085c0['newValue'],_0x459ecc=_0x148acf['locale'];return{'type':'format','content':null==_0x45f323?c(_0x459ecc,'*Remove\x20link*'):c(_0x459ecc,'*Set\x20link:*\x20%0','\x22'+_0x45f323+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6a62=this['editor'],_0x574865=_0x3c6a62['locale'];_0x3c6a62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297759=>{if('formatInline'!=_0x297759['type'])return;const {data:_0xfafcb7}=_0x297759;if(_0xfafcb7){if('link'==_0xfafcb7['commandName']){const _0x290308=_0xfafcb7['commandParams'][0x0];return{'type':'format','content':c(_0x574865,'*Set\x20link:*\x20%0','\x22'+_0x290308+'\x22')};}return'unlink'==_0xfafcb7['commandName']?{'type':'format','content':c(_0x574865,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x14dd54{['afterInit'](){const _0x245c05=this['editor'],_0x3180dc=_0x245c05['locale'];if(!_0x245c05['plugins']['has']('LegacyListEditing'))return;const _0x1985a5=_0x245c05['plugins']['get']('TrackChangesEditing'),_0x1ff471=_0x245c05['plugins']['has']('LegacyTodoListEditing');function _0x5c59b0(_0x2c63be){return()=>{const _0x28868d=_0x245c05['model']['document']['selection'],_0x50dd77=_0x245c05['commands']['get'](_0x2c63be);if(_0x50dd77['value'])return void _0x245c05['execute']('paragraph',{});const _0x10b978=_0x2c63be['slice'](0x0,-0x4),_0xbfbc8a=function(_0x221dba,_0x46209,_0x382d52){let _0x3df1bb=Array['from'](_0x221dba)['filter'](_0x5b47c8=>function(_0x5e22ca,_0x3aaf6a){return _0x3aaf6a['checkChild'](_0x5e22ca['parent'],'listItem')&&!_0x3aaf6a['isObject'](_0x5e22ca);}(_0x5b47c8,_0x382d52));_0x3df1bb=_0x3df1bb['filter'](_0x4431a7=>!_0x4431a7['is']('element','listItem')||_0x4431a7['getAttribute']('listType')!=_0x46209);const _0x2b20b=new Set();for(const _0x59bc5f of _0x3df1bb)_0x59bc5f['is']('element','listItem')?_0x2b20b['add'](Le(_0x59bc5f)):_0x2b20b['add'](_0x59bc5f);return Array['from'](_0x2b20b);}(_0x28868d['getSelectedBlocks'](),_0x10b978,_0x245c05['model']['schema']);_0x245c05['model']['change'](()=>{for(const _0x15e58b of _0xbfbc8a)_0x1985a5['markBlockFormat'](_0x15e58b,{'commandName':_0x2c63be,'commandParams':[{'forceValue':!_0x50dd77['value']}],'formatGroupId':'blockName'},Ee(_0x15e58b));});};}function _0x4bb3e1(_0x190c16){return()=>{const _0x30e019=function(_0x1f0e3d){let _0x5aaef2=Array['from'](_0x1f0e3d);const _0x3b2d1f=_0x5aaef2['findIndex'](_0x4e89dd=>'listItem'!=_0x4e89dd['name']);return _0x3b2d1f>-0x1&&(_0x5aaef2=_0x5aaef2['slice'](0x0,_0x3b2d1f)),_0x5aaef2;}(_0x245c05['model']['document']['selection']['getSelectedBlocks']()),_0x46865d=_0x245c05['model']['createRange'](_0x245c05['model']['createPositionAt'](_0x30e019[0x0],'before'),_0x245c05['model']['createPositionAt'](_0x30e019[_0x30e019['length']-0x1],'end'));_0x245c05['model']['change'](()=>{_0x1985a5['markBlockFormat'](_0x46865d,{'commandName':_0x190c16,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4c70e8){const _0x18e688=new Set();for(const _0x2c8440 of _0x4c70e8){let _0x20e6a5=_0x2c8440['nextSibling'];for(;_0x20e6a5&&_0x20e6a5['getAttribute']('listIndent')>_0x2c8440['getAttribute']('listIndent');)_0x18e688['add'](_0x20e6a5),_0x20e6a5=_0x20e6a5['nextSibling'];}return Array['from'](_0x18e688);}(_0x30e019));});};}_0x1985a5['enableCommand']('numberedList',_0x5c59b0('numberedList')),_0x1985a5['enableCommand']('bulletedList',_0x5c59b0('bulletedList')),_0x1ff471&&_0x1985a5['enableCommand']('todoList',_0x5c59b0('todoList')),_0x1985a5['enableCommand']('indentList',_0x4bb3e1('indentList')),_0x1985a5['enableCommand']('outdentList',_0x4bb3e1('outdentList')),_0x1ff471&&_0x1985a5['enableCommand']('checkTodoList',()=>{const _0x11f72c=_0x245c05['commands']['get']('checkTodoList'),_0x18b13f=Array['from'](_0x11f72c['_selectedElements']);_0x18b13f['filter'](_0x25594c=>_0x25594c['getAttribute']('todoListChecked')!=_0x11f72c['value']),_0x245c05['model']['change'](()=>{for(const _0x1e91c1 of _0x18b13f)_0x1985a5['markBlockFormat'](_0x1e91c1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11f72c['value']}]});});}),_0x1985a5['descriptionFactory']['registerElementLabel']('listItem',_0x4c27fb=>c(_0x3180dc,'ELEMENT_LIST_ITEM',_0x4c27fb)),_0x1985a5['descriptionFactory']['registerDescriptionCallback'](_0x31d4b5=>{if('formatBlock'!=_0x31d4b5['type']&&'formatInline'!=_0x31d4b5['type'])return;const {data:_0x5a0a84}=_0x31d4b5;if(_0x5a0a84){if('numberedList'==_0x5a0a84['commandName']||'bulletedList'==_0x5a0a84['commandName']||'todoList'==_0x5a0a84['commandName'])switch(_0x5a0a84['commandName']['replace']('List','')){case'bulleted':return _0x148543(c(_0x3180dc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x148543(c(_0x3180dc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x148543(c(_0x3180dc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a0a84['commandName'])return{'type':'format','content':c(_0x3180dc,'*Indent:*\x20%0',c(_0x3180dc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a0a84['commandName'])return{'type':'format','content':c(_0x3180dc,'*Outdent:*\x20%0',c(_0x3180dc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a0a84['commandName'])return _0x5a0a84['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3180dc,'*Check\x20item*')}:{'type':'format','content':c(_0x3180dc,'*Uncheck\x20item*')};}function _0x148543(_0x49613a){return{'type':'format','content':c(_0x3180dc,'*Change\x20to:*\x20%0',_0x49613a)};}});}}function Le(_0xfc9383){const _0x225780=_0xfc9383['getAttribute']('listIndent');if(0x0==_0x225780)return _0xfc9383;let _0x5b405a=_0xfc9383;for(;_0xfc9383['previousSibling']&&_0xfc9383['previousSibling']['is']('element','listItem');){const _0x460772=_0xfc9383['previousSibling']['getAttribute']('listIndent');if(_0x460772==_0x225780)_0x5b405a=_0xfc9383['previousSibling'];else{if(_0x460772<_0x225780)break;}_0xfc9383=_0xfc9383['previousSibling'];}return _0x5b405a;}function Ee(_0x3b903e){const _0x38c1e3=[];if(_0x3b903e['is']('element','listItem')&&_0x3b903e['getAttribute']('listIndent')>0x0){let _0xed157d=_0x3b903e['nextSibling'];for(;_0xed157d&&'listItem'==_0xed157d['name']&&_0xed157d['getAttribute']('listIndent')==_0x3b903e['getAttribute']('listIndent');)_0x38c1e3['push'](_0xed157d),_0xed157d=_0xed157d['nextSibling'];}return _0x38c1e3;}class Q extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xbcfb5e=this['editor']['config']['get']('list.properties'),_0x41be50=this['editor']['plugins']['get']('TrackChangesEditing');_0xbcfb5e['styles']&&_0x41be50['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xbcfb5e['reversed']&&_0x41be50['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xbcfb5e['startIndex']&&_0x41be50['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x41be50['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x498dec,_0x30b44c={}){const _0x362d79=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc0cc41=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x362d79['markMultiRangeBlockFormat'](_0xc0cc41,{'commandName':'listStyle','commandParams':[{'type':_0x30b44c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x26d4d0,_0x455c6d={}){const _0x452de1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3b10=this['_getSuggestionBlocks'](_0x33ae33=>_0x33ae33['is']('element','listItem')&&'numbered'===_0x33ae33['getAttribute']('listType'));if(_0x3b3b10['length']<0x1)return;const _0x2eb838=_0x3b3b10['map'](_0x3ae7a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ae7a8,'before'),this['editor']['model']['createPositionAt'](_0x3ae7a8,0x0)));this['editor']['model']['change'](()=>{_0x452de1['markMultiRangeBlockFormat'](_0x2eb838,{'commandName':'listReversed','commandParams':[{'reversed':_0x455c6d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x167b5e,_0xab9bc5={}){const _0xa3b0bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2477bc=this['_getSuggestionBlocks'](_0x47b29d=>_0x47b29d['is']('element','listItem')&&'numbered'===_0x47b29d['getAttribute']('listType'));if(_0x2477bc['length']<0x1)return;const _0x38f640=_0x2477bc['map'](_0xd3a15d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3a15d,'before'),this['editor']['model']['createPositionAt'](_0xd3a15d,0x0)));this['editor']['model']['change'](()=>{_0xa3b0bb['markMultiRangeBlockFormat'](_0x38f640,{'commandName':'listStart','commandParams':[{'startIndex':_0xab9bc5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d4dbf){if('formatBlock'!=_0x4d4dbf['type']&&'formatInline'!=_0x4d4dbf['type'])return;const _0x323f24=this['editor']['locale'],{data:_0x28cf12}=_0x4d4dbf;if(!_0x28cf12)return;let _0x417bad,_0x4f5794;switch(_0x28cf12['commandName']){case'listStyle':_0x417bad='*Change\x20to:*\x20%0',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad,c(_0x323f24,this['_getTranslationKeyForListStyle'](_0x28cf12['commandParams'][0x0]['type'])))};break;case'listReversed':_0x417bad=_0x28cf12['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad)};break;case'listStart':_0x417bad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f5794={'type':'format','content':c(_0x323f24,_0x417bad,_0x28cf12['commandParams'][0x0]['startIndex'])};}return _0x4f5794;}['_getSuggestionBlocksForListStyle'](){const _0x27db6f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f1c72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f1c72[0x0]?.['is']('element','listItem')&&_0x2f1c72['unshift'](..._0x27db6f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f1c72[_0x2f1c72['length']-0x1]?.['is']('element','listItem')&&_0x2f1c72['push'](..._0x27db6f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f1c72=[...new Set(_0x2f1c72)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f1c72=_0x2f1c72['filter'](_0x390e49=>_0x390e49['is']('element','listItem'))),_0x2f1c72;}['_getSuggestionBlocks'](_0x324429){const _0x54a45d=this['editor']['plugins']['get']('LegacyListUtils');let _0x15b72c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x324429)['map'](_0x46b7c3=>{const _0x56e4ba=this['editor']['model']['createPositionAt'](_0x46b7c3,0x0);return[..._0x54a45d['getSiblingNodes'](_0x56e4ba,'backward'),..._0x54a45d['getSiblingNodes'](_0x56e4ba,'forward')];})['flat']();return _0x15b72c=[...new Set(_0x15b72c)],_0x15b72c;}['_getTranslationKeyForListStyle'](_0x522ef7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x522ef7)||'default')['toUpperCase']()+'_LIST_'+_0x522ef7['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x14dd54{['afterInit'](){const _0x14416e=this['editor'];if(!_0x14416e['plugins']['has']('MediaEmbedEditing'))return;const _0x5a5ba6=_0x14416e['plugins']['get']('TrackChangesEditing'),_0x23dd7e=_0x14416e['locale'];_0x5a5ba6['enableCommand']('mediaEmbed'),_0x5a5ba6['descriptionFactory']['registerElementLabel']('media',_0x272870=>c(_0x23dd7e,'ELEMENT_MEDIA',_0x272870)),_0x14416e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x360bdf,{writer:_0x1474cd,options:_0x532c9b})=>{if(_0x532c9b['showSuggestionHighlights'])return _0x1474cd['createEmptyElement']('div');},'converterPriority':'high'}),_0x14416e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x547aba,_0x223123,_0x48da18)=>{_0x48da18['options']['showSuggestionHighlights']&&_0x547aba['stop']();},{'priority':'high'});}}class pt extends _0x14dd54{['afterInit'](){const _0x37a3d7=this['editor'];_0x37a3d7['plugins']['has']('MentionEditing')&&_0x37a3d7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x14dd54{['afterInit'](){const _0x5c6ee5=this['editor'];if(!_0x5c6ee5['plugins']['has']('MergeFieldsEditing'))return;const _0x337359=_0x5c6ee5['plugins']['get']('TrackChangesEditing'),_0xf9167e=_0x5c6ee5['locale'];_0x337359['enableCommand']('insertMergeField'),_0x337359['enableCommand']('insertMergeFieldBlock'),_0x337359['enableCommand']('insertMergeFieldImage'),_0x337359['descriptionFactory']['registerElementLabel']('mergeField',_0x9dbcf9=>c(_0xf9167e,'ELEMENT_MERGE_FIELD',_0x9dbcf9)),_0x337359['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x289875=>c(_0xf9167e,'ELEMENT_MERGE_FIELD',_0x289875)),_0x337359['descriptionFactory']['registerDescriptionCallback'](_0x2d95a1=>{if('insertion'!=_0x2d95a1['type']&&'deletion'!=_0x2d95a1['type'])return;const _0x2771db=_0x2d95a1['getContainedElement']();if(null==_0x2771db)return;const _0x1e31b0=_0x5c6ee5['plugins']['get']('MergeFieldsEditing');let _0x1efd2f;switch(_0x1e31b0['getMergeFieldType'](_0x2771db)){case null:return;case'image':{const _0x527f78=_0x1e31b0['unwrapAffixes'](_0x2771db['getAttribute']('src'));_0x1efd2f=_0x1e31b0['getLabel'](_0x527f78)||_0x527f78;break;}default:{const _0x3cd5e9=_0x2771db['getAttribute']('id');_0x1efd2f=_0x1e31b0['getLabel'](_0x3cd5e9)||_0x3cd5e9;break;}}return'insertion'==_0x2d95a1['type']?{'type':'insertion','content':c(_0xf9167e,'*Insert:*\x20%0','\x22'+_0x1efd2f+'\x22\x20'+c(_0xf9167e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf9167e,'*Remove:*\x20%0','\x22'+_0x1efd2f+'\x22\x20'+c(_0xf9167e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x14dd54{['afterInit'](){const _0x27e02c=this['editor'],_0x195f4f=_0x27e02c['plugins']['get']('TrackChangesEditing');_0x27e02c['plugins']['has']('MultiLevelList')&&(_0x195f4f['enableDefaultAttributesIntegration']('multiLevelList'),_0x195f4f['registerBlockAttribute']('listMarkerStyle'),_0x195f4f['descriptionFactory']['registerDescriptionCallback'](_0x198a9b=>this['handleDescriptions'](_0x198a9b)));}['handleDescriptions'](_0x505c24){const _0x29f2c9=this['editor']['locale'],{data:_0x2cb872}=_0x505c24,_0x4b5217={'type':'format','content':''};if(_0x2cb872&&'listMarkerStyle'==_0x2cb872['key']){if(!_0x2cb872['oldValue'])return{'type':'format','content':c(_0x29f2c9,'*Set\x20format:*\x20%0',c(_0x29f2c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2cb872['newValue']+')'};if(!_0x2cb872['newValue']){let _0x58d311=_0x505c24['head'];for(;_0x58d311;){if(_0x58d311['data']&&'listType'==_0x58d311['data']['key']&&_0x58d311['data']['newValue'])return _0x4b5217;_0x58d311=_0x58d311['next'];}return{'type':'format','content':c(_0x29f2c9,'*Remove\x20format:*\x20%0',c(_0x29f2c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2cb872['oldValue']+')'};}}}}class bt extends _0x14dd54{['afterInit'](){const _0xdae9be=this['editor'];if(!_0xdae9be['plugins']['has']('PageBreakEditing'))return;_0xdae9be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x535b3b=_0xdae9be['plugins']['get']('TrackChangesEditing'),_0x3ce702=_0xdae9be['locale'];_0x535b3b['descriptionFactory']['registerElementLabel']('pageBreak',_0x1a41e8=>c(_0x3ce702,'ELEMENT_PAGE_BREAK',_0x1a41e8));}}class yt extends _0x14dd54{['afterInit'](){const _0x45ab3b=this['editor'];if(!_0x45ab3b['plugins']['has']('Paragraph'))return;const _0x373c92=_0x45ab3b['locale'],_0x563cd1=_0x45ab3b['plugins']['get']('TrackChangesEditing');_0x563cd1['descriptionFactory']['registerElementLabel']('paragraph',_0x4ebf39=>c(_0x373c92,'ELEMENT_PARAGRAPH',_0x4ebf39)),_0x563cd1['enableDefaultAttributesIntegration']('paragraph'),_0x563cd1['enableCommand']('insertParagraph'),_0x45ab3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x45ab3b),{'priority':'highest'}),_0x45ab3b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x427a92,_0x455343,_0x3bdda9)=>{_0x3bdda9['options']['showSuggestionHighlights']&&nr(_0x45ab3b,{'showActiveMarker':!0x1})(_0x427a92,_0x455343,_0x3bdda9);},{'priority':'highest'});const _0x2bed85=_0x563cd1['descriptionFactory'];_0x2bed85['registerDescriptionCallback'](_0x243fca=>{if('insertion'!==_0x243fca['type'])return;const {start:_0x5d8be7,end:_0x424830}=_0x243fca['getFirstRange']();if(!_0x5d8be7['isTouching'](_0x424830)||!_0x5d8be7['nodeAfter'])return;const _0x49361d=_0x45ab3b['model']['schema'],_0x78c029=_0x5d8be7['nodeAfter'];return _0x49361d['isBlock'](_0x78c029)&&!_0x49361d['isLimit'](_0x78c029)&&_0x49361d['checkChild'](_0x78c029,'$text')?{'type':'insertion','content':c(_0x373c92,'*Insert:*\x20%0',_0x2bed85['getItemLabel'](_0x78c029,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fe38d=this['editor'],_0x2da3f2=_0x3fe38d['locale'];_0x3fe38d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b82bf=>{if('formatBlock'!=_0x2b82bf['type'])return;const {data:_0x36f92d}=_0x2b82bf;return _0x36f92d&&'paragraph'==_0x36f92d['commandName']?{'type':'format','content':c(_0x2da3f2,'*Change\x20to:*\x20%0',c(_0x2da3f2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1bec0f,{showActiveMarker:_0x14dd1f=!0x0}={}){return(_0x53fbb0,_0xe7967c,_0x2b871c)=>{const _0x1a633a=_0x1bec0f['plugins']['get']('TrackChangesEditing'),_0x527d36=_0xe7967c['markerRange']['start'],_0x9b6825=_0xe7967c['markerRange']['end'],_0x3c8821=_0x1bec0f['model']['schema'];if(!_0x527d36['isTouching'](_0x9b6825)||!_0x527d36['nodeAfter'])return;const _0x138b28=_0x527d36['nodeAfter'];if(_0x3c8821['isBlock'](_0x138b28)&&!_0x3c8821['isLimit'](_0x138b28)&&_0x3c8821['checkChild'](_0x138b28,'$text')){if(!_0x2b871c['consumable']['consume'](_0xe7967c['markerRange'],_0x53fbb0['name']))return;const {id:_0x1fbdca,authorId:_0x2acc73}=_0x1a633a['_splitMarkerName'](_0xe7967c['markerName']),_0x1a7a5f=_0x2b871c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1fbdca,'data-author-id':_0x2acc73}),_0x166487=_0x2b871c['mapper']['toViewPosition'](_0x9b6825);_0x14dd1f&&_0x1a633a['activeMarkers']['includes'](_0xe7967c['markerName'])&&_0x2b871c['writer']['addClass']('ck-suggestion-marker--active',_0x1a7a5f),_0x2b871c['writer']['insert'](_0x166487,_0x1a7a5f),_0x2b871c['mapper']['bindElementToMarker'](_0x1a7a5f,_0xe7967c['markerName']);}};}class St extends _0x14dd54{['afterInit'](){const _0x352504=this['editor'];_0x352504['commands']['get']('replaceSource')&&_0x352504['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x14dd54{['afterInit'](){const _0xd4614=this['editor'];if(!_0xd4614['plugins']['has']('RemoveFormatEditing'))return;_0xd4614['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd4ce=this['editor'];_0x5bd4ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa253=>{if('formatBlock'!=_0x3aa253['type']&&'formatInline'!=_0x3aa253['type'])return;const {data:_0x247a2f}=_0x3aa253;return _0x247a2f&&'removeFormat'==_0x247a2f['commandName']?{'type':'format','content':c(_0x5bd4ce['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x14dd54{['afterInit'](){const _0x3f6361=this['editor'];if(!_0x3f6361['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d9f58=_0x3f6361['plugins']['get']('TrackChangesEditing');_0x5d9f58['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d9f58['enableCommand']('goToNextRestrictedEditingException');const _0x17cf89=_0x3f6361['plugins']['get']('RestrictedEditingModeEditing');_0x17cf89['enableCommand']('trackChanges'),_0x17cf89['enableCommand']('acceptSuggestion'),_0x17cf89['enableCommand']('discardSuggestion'),_0x17cf89['enableCommand']('acceptAllSuggestions'),_0x17cf89['enableCommand']('discardAllSuggestions'),_0x17cf89['enableCommand']('acceptSelectedSuggestions'),_0x17cf89['enableCommand']('discardSelectedSuggestions');}}class At extends _0x14dd54{['afterInit'](){const _0x401474=this['editor'];if(!_0x401474['plugins']['has']('ShiftEnter'))return;const _0x435ba2=_0x401474['plugins']['get']('TrackChangesEditing');_0x435ba2['enableCommand']('shiftEnter'),_0x401474['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x401474),{'priority':'high'}),_0x401474['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x401474),{'priority':'high'}),_0x401474['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f4baa,_0x3105d2,_0x3631d1)=>{_0x3631d1['options']['showSuggestionHighlights']&&je(_0x401474,{'showActiveMarker':!0x1})(_0x3f4baa,_0x3105d2,_0x3631d1);}),_0x435ba2['descriptionFactory']['registerElementLabel']('softBreak',_0x455ba7=>c(_0x401474['locale'],'ELEMENT_LINE_BREAK',_0x455ba7));}}function je(_0x2f5cfe,{showActiveMarker:_0x2b73aa=!0x0}={}){return(_0x2fa4f6,_0x123a78,_0xd1b414)=>{const _0x4d477=_0x2f5cfe['plugins']['get']('TrackChangesEditing');if(!_0xd1b414['consumable']['test'](_0x123a78['markerRange'],_0x2fa4f6['name']))return;const _0x4b8d94=_0x2f5cfe['model'];for(const _0x1ec1fe of _0x123a78['markerRange']['getItems']()){if(!_0x1ec1fe['is']('element','softBreak'))continue;const _0x299215='deletion'==_0x123a78['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3eab4f,authorId:_0x54dc8a}=_0x4d477['_splitMarkerName'](_0x123a78['markerName']),_0x1cabeb=_0xd1b414['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x299215,'data-suggestion':_0x3eab4f,'data-author-id':_0x54dc8a}),_0x341b40=_0xd1b414['mapper']['toViewPosition'](_0x4b8d94['createPositionBefore'](_0x1ec1fe));_0x2b73aa&&_0x4d477['activeMarkers']['includes'](_0x123a78['markerName'])&&_0xd1b414['writer']['addClass']('ck-suggestion-marker--active',_0x1cabeb),_0xd1b414['writer']['insert'](_0x341b40,_0x1cabeb),_0xd1b414['mapper']['bindElementToMarker'](_0x1cabeb,_0x123a78['markerName']);}};}class _t extends _0x14dd54{['afterInit'](){const _0x937bb9=this['editor'],_0xbb8acb=_0x937bb9['model'],_0x36aa36=_0x937bb9['locale'];if(!_0x937bb9['plugins']['has']('StandardEditingModeEditing'))return;const _0x355c9e=_0x937bb9['plugins']['get']('TrackChangesEditing'),_0x2ff4b8='restrictedEditingException',_0x44fe42=_0x937bb9['commands']['get'](_0x2ff4b8);_0x355c9e['enableCommand'](_0x2ff4b8,(_0x10ce77,_0x1e3d07={})=>{const _0x342851=_0xbb8acb['document']['selection'];if(_0x342851['isCollapsed'])return void _0x10ce77(_0x1e3d07);const _0x4fa8ef=void 0x0!==_0x1e3d07['forceValue']?_0x1e3d07['forceValue']:!_0x44fe42['value'];_0xbb8acb['change'](()=>{const _0x33ac47=Array['from'](_0x342851['getRanges']());for(const _0x28060b of _0x33ac47){const _0xef022a=_0x4fa8ef?[_0x28060b]:io(_0x2ff4b8,_0x28060b,_0xbb8acb);for(const _0x392f2f of _0xef022a)_0x355c9e['markInlineFormat'](_0x392f2f,{'commandName':_0x2ff4b8,'commandParams':[{'forceValue':_0x4fa8ef}]});}});}),_0x355c9e['descriptionFactory']['registerDescriptionCallback'](_0x9292c4=>{if('formatBlock'!=_0x9292c4['type']&&'formatInline'!=_0x9292c4['type'])return;const {data:_0x32dee8}=_0x9292c4;return _0x32dee8&&_0x32dee8['commandName']==_0x2ff4b8?_0x32dee8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x36aa36,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x36aa36,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x14dd54{['afterInit'](){const _0x32b8b2=this['editor'];if(!_0x32b8b2['plugins']['has']('Style')||!_0x32b8b2['plugins']['has']('DataSchema'))return;const _0x5d5d40=_0x32b8b2['plugins']['get']('TrackChangesEditing'),_0x30d10d=_0x32b8b2['locale'],_0x1bac16=_0x32b8b2['config']['get']('style')||{},_0x161db7=_0x32b8b2['plugins']['get']('GeneralHtmlSupport'),_0x172593=_0x32b8b2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x32b8b2['plugins']['get']('DataSchema'),_0x1bac16['definitions']);_0x5d5d40['enableDefaultAttributesIntegration']('style');const _0x531ddb=new Set();for(const _0x47c562 of _0x172593['block']){const _0x287503=_0x161db7['getGhsAttributeNameForElement'](_0x47c562['element']);_0x531ddb['add'](_0x287503);}const _0x3c0d31=new Set();for(const _0x30169b of _0x172593['inline']){const _0x2b79df=_0x161db7['getGhsAttributeNameForElement'](_0x30169b['element']);_0x3c0d31['add'](_0x2b79df);for(const _0x2c206c of _0x30169b['ghsAttributes'])_0x3c0d31['add'](_0x2c206c);}for(const _0x5cabe4 of _0x531ddb)_0x5d5d40['registerBlockAttribute'](_0x5cabe4),_0x5d5d40['descriptionFactory']['registerAttributeLabel'](_0x5cabe4,c(_0x30d10d,'FORMAT_STYLE'));for(const _0x2cd4b4 of _0x3c0d31)_0x5d5d40['registerInlineAttribute'](_0x2cd4b4),_0x5d5d40['descriptionFactory']['registerAttributeLabel'](_0x2cd4b4,c(_0x30d10d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abf93=this['editor'],_0x4ce3aa=_0x3abf93['locale'];_0x3abf93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86440e=>{if('formatBlock'!=_0x86440e['type']&&'formatInline'!=_0x86440e['type'])return;const {data:_0x4f674f}=_0x86440e;return _0x4f674f&&'style'===_0x4f674f['commandName']?_0x4f674f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ce3aa,'*Set\x20format:*\x20%0',_0x4f674f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4ce3aa,'*Remove\x20format:*\x20%0',_0x4f674f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x14dd54{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x444e57){super(_0x444e57),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51ef3a=this['editor'],_0x52c556=_0x51ef3a['model']['document']['selection'];if(!_0x51ef3a['plugins']['has']('TableEditing'))return;const _0x51813e=_0x51ef3a['locale'],_0x17d000=_0x51ef3a['plugins']['get']('TrackChangesEditing'),_0x1ac0f2=_0x51ef3a['plugins']['get']('TableUtils');_0x17d000['descriptionFactory']['registerElementLabel']('table',_0x211d57=>c(_0x51813e,'ELEMENT_TABLE',_0x211d57)),this['_setupColumnsRowsFixing'](),_0x17d000['enableCommand']('insertTable'),_0x17d000['enableCommand']('selectTableRow'),_0x17d000['enableCommand']('selectTableColumn');for(const _0x154487 of['insertTableRowAbove','insertTableRowBelow']){const _0x477942=_0x51ef3a['commands']['get'](_0x154487);_0x17d000['enableCommand'](_0x154487,_0x4f3e58=>{_0x51ef3a['model']['change'](_0x281ffc=>{_0x4f3e58();const _0x32962f='above'===_0x477942['order'],_0x3dd04c=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x11b4e1=_0x1ac0f2['getRowIndexes'](_0x3dd04c),_0x17a97a=_0x32962f?_0x11b4e1['first']-0x1:_0x11b4e1['last']+0x1,_0x47ede6=_0x3dd04c[0x0]['findAncestor']('table'),_0x19ff9c=_0x1ac0f2['createTableWalker'](_0x47ede6,{'startRow':_0x17a97a,'endRow':_0x17a97a}),_0x1c1429=Array['from'](_0x19ff9c)['map'](_0x503478=>_0x281ffc['createRangeOn'](_0x503478['cell']));_0x17d000['markMultiRangeInsertion'](_0x1c1429,'tableRow');});});}for(const _0x1cf06b of['insertTableColumnLeft','insertTableColumnRight']){const _0x8fa6ab=_0x51ef3a['commands']['get'](_0x1cf06b);_0x17d000['enableCommand'](_0x1cf06b,_0x4c3c99=>{_0x51ef3a['model']['change'](_0x43abd4=>{_0x4c3c99();const _0x51da92='left'===_0x8fa6ab['order'],_0x3184c5=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x5d46a2=_0x1ac0f2['getColumnIndexes'](_0x3184c5),_0x4fb26b=_0x51da92?_0x5d46a2['first']-0x1:_0x5d46a2['last']+0x1,_0x3b1a9e=_0x3184c5[0x0]['findAncestor']('table'),_0x2afce2=_0x1ac0f2['createTableWalker'](_0x3b1a9e,{'startRow':0x0,'column':_0x4fb26b,'includeAllSlots':!0x1}),_0x2bc0b9=Array['from'](_0x2afce2)['map'](_0x5a1521=>_0x43abd4['createRangeOn'](_0x5a1521['cell']));_0x17d000['markMultiRangeInsertion'](_0x2bc0b9,'tableColumn');});});}for(const _0x57688a of['removeTableRow','removeTableColumn']){const _0x27819d=_0x57688a['substr'](0xb),_0x1d963e=_0x27819d['toLowerCase'](),_0x1469bd=_0x1d963e['substr'](0x0,0x3)+'span',_0x15e0e8='table'+_0x27819d,_0x3d8f6e='min'+_0x27819d,_0x19ce65='max'+_0x27819d;_0x17d000['enableCommand'](_0x57688a,()=>{_0x51ef3a['model']['change'](_0x27aa72=>{const _0x2bafa8=_0x1ac0f2['getSelectionAffectedTableCells'](_0x52c556),_0x563ef3=_0x2bafa8[0x0]['findAncestor']('table');let _0xfdc491;if('removeTableRow'==_0x57688a){const _0x4a6c49=_0x1ac0f2['getRowIndexes'](_0x2bafa8);_0xfdc491={'startRow':_0x4a6c49['first'],'endRow':_0x4a6c49['last'],'includeAllSlots':!0x0};}else{const _0x4a3216=_0x1ac0f2['getColumnIndexes'](_0x2bafa8);_0xfdc491={'startColumn':_0x4a3216['first'],'endColumn':_0x4a3216['last'],'includeAllSlots':!0x0};}const _0x280bbe=_0x1ac0f2['createTableWalker'](_0x563ef3,_0xfdc491),_0x1d1f1c=Array['from'](_0x280bbe)['map'](({cell:_0x1b7e2b})=>_0x1b7e2b),_0x1e5dba=xe(_0x1d1f1c['filter'](_0x2c06b0=>_0x2c06b0['hasAttribute'](_0x1469bd))),_0x3822a0=xe(_0x1d1f1c['filter'](_0x5f4e3a=>!_0x5f4e3a['hasAttribute'](_0x1469bd)))['map'](_0x34310e=>_0x27aa72['createRangeOn'](_0x34310e)),_0x11402a=_0x17d000['markMultiRangeDeletion'](_0x3822a0,_0x15e0e8);if(_0x11402a&&('tableRow'==_0x11402a['subType']||'tableColumn'==_0x11402a['subType'])){const _0x39dfa8=this['_getSuggestionCoords'](_0x11402a);for(const _0x3e551f of _0x1e5dba){const _0x197364=_0x27aa72['createRangeOn'](_0x3e551f),_0x205353=_0x1ac0f2['getCellLocation'](_0x3e551f),_0x27a995=_0x3e551f['getAttribute'](_0x1469bd)-0x1,_0x501432=_0x39dfa8[_0x3d8f6e],_0x3b38df=_0x39dfa8[_0x19ce65];_0x501432<=_0x205353[_0x1d963e]&&_0x205353[_0x1d963e]+_0x27a995<=_0x3b38df&&_0x11402a['addRange'](_0x197364);}}});});}function _0x10d969(_0x309555){const _0x4df9de=Array['from'](_0x52c556['getRanges']())['map'](_0x1f55b7=>_0x46c3f4['fromRange'](_0x1f55b7));_0x51ef3a['model']['change'](_0x4530af=>{const _0x4ccbbb=_0x4530af['batch'];_0x309555=_0x309555['filter'](_0x12487f=>'$graveyard'!=_0x12487f['root']['rootName']),_0x4530af['setSelection'](_0x309555),_0x51ef3a['commands']['get']('removeTableRow')['refresh'](),_0x51ef3a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51ef3a['model']['enqueueChange'](()=>{_0x51ef3a['model']['enqueueChange'](_0x4ccbbb,_0x5e3e6c=>{const _0x11e8d1=_0x4df9de['filter'](_0x1df1fa=>'$graveyard'!=_0x1df1fa['root']['rootName']);_0x11e8d1['length']>0x0&&_0x5e3e6c['setSelection'](_0x11e8d1);for(const _0x2d7a73 of _0x4df9de)_0x2d7a73['detach']();});});});}function _0x81dfd6(_0x7c79d){_0x51ef3a['model']['change'](_0x234840=>{const _0x4a5526=Array['from'](_0x52c556['getRanges']())['map'](_0x4e01b4=>_0x46c3f4['fromRange'](_0x4e01b4)),_0x1ed62a=[];for(const _0x5ca0e5 of _0x7c79d)for(const _0x1d2557 of _0x5ca0e5['getItems']({'shallow':!0x0}))_0x1ed62a['push'](_0x1d2557);for(const _0x33eef8 of _0x1ed62a)'$graveyard'!=_0x33eef8['root']['rootName']&&(_0x234840['setSelection'](_0x234840['createPositionAt'](_0x33eef8,0x0)),_0x51ef3a['commands']['get']('removeTableColumn')['refresh'](),_0x51ef3a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3026dc=_0x4a5526['filter'](_0x26a3b5=>'$graveyard'!=_0x26a3b5['root']['rootName']);_0x3026dc['length']>0x0&&_0x234840['setSelection'](_0x3026dc);for(const _0x114463 of _0x4a5526)_0x114463['detach']();});}function _0x15e796(_0x6ef1cd,_0x2cada6){return _0x2cada6['every'](_0xf78f5=>_0x6ef1cd['some'](_0x497277=>_0x497277['end']['isEqual'](_0xf78f5['start'])||_0xf78f5['end']['isEqual'](_0x497277['start'])));}function _0xbafcb1(_0x2ae053,_0x10b05d){return!_0x2ae053['some'](_0xc48813=>_0x10b05d['some'](_0x2816ce=>_0xc48813['isIntersecting'](_0x2816ce)))&&_0x2ae053['some'](_0x38bf18=>_0x10b05d['some'](_0x124876=>_0x38bf18['end']['isTouching'](_0x124876['start'])));}_0x51ef3a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21593b,_0xb973c2,_0x107cce)=>{if(!_0x107cce['options']['showSuggestionHighlights'])return;const _0x27468f=_0xb973c2['item'];if(!_0x27468f||!_0x27468f['is']('element','tableCell'))return;const _0x15243d=_0x107cce['mapper']['toViewElement'](_0x27468f);if(_0x15243d){const {id:_0x2dd791,authorId:_0x2c818a}=_0x17d000['_splitMarkerName'](_0xb973c2['markerName']);_0x66e5e6(_0x15243d,_0x107cce['writer'],(_0x55575d,_0x37b467,_0x4336e8)=>{_0x4336e8['addClass'](_0x349e4b(_0x37b467['classes']),_0x55575d),_0x4336e8['setAttribute']('data-suggestion-id',_0x2dd791,_0x55575d),_0x4336e8['setAttribute']('data-author-id',_0x2c818a,_0x55575d);},(_0xefb486,_0x2865be,_0xac9fe9)=>{_0xac9fe9['removeClass'](_0x349e4b(_0x2865be['classes']),_0xefb486),_0xac9fe9['removeAttribute']('data-suggestion-id',_0xefb486),_0xac9fe9['removeAttribute']('data-author-id',_0xefb486);});}},{'priority':'highest'}),_0x17d000['descriptionFactory']['registerDescriptionCallback'](_0x40c53c=>{if('insertion'!=_0x40c53c['type']&&'deletion'!=_0x40c53c['type'])return;const _0x5a3fb1=_0x40c53c['getContainedElement']();if(null!=_0x5a3fb1&&_0x5a3fb1['is']('element','table')){if('insertion'==_0x40c53c['type']){const _0x4f970f=_0x40c53c['getItems']()['filter'](_0x2f1d45=>_0x2f1d45['is']('$textProxy'))['map'](_0x542320=>_0x542320['data']);if(_0x4f970f['length'])return{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f970f['join']('\x20')+'\x22'))};}if('deletion'==_0x40c53c['type']){const _0x157dfc=_0x40c53c['getItems']()['filter'](_0x3f1024=>_0x3f1024['is']('$textProxy'))['map'](_0x5c1813=>_0x5c1813['data']);if(_0x157dfc['length'])return{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x157dfc['join']('\x20')+'\x22'))};}}}),_0x17d000['descriptionFactory']['registerDescriptionCallback'](_0x3a63c5=>{if('tableRow'==_0x3a63c5['subType']){const _0x47dc37=_0x3a63c5['getItems']()['filter'](_0x40f947=>_0x40f947['is']('$textProxy'))['map'](_0x4ff0aa=>_0x4ff0aa['data']),_0x38e02b=this['_getSuggestionCoords'](_0x3a63c5),_0x14d61d=_0x38e02b['maxRow']-_0x38e02b['minRow']+0x1;if('insertion'==_0x3a63c5['type'])return _0x47dc37['length']?{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d61d,'\x22'+_0x47dc37['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW',_0x14d61d))};if('deletion'==_0x3a63c5['type'])return _0x47dc37['length']?{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d61d,'\x22'+_0x47dc37['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_ROW',_0x14d61d))};}if('tableColumn'==_0x3a63c5['subType']){const _0x44f744=_0x3a63c5['getItems']()['filter'](_0x47d130=>_0x47d130['is']('$textProxy'))['map'](_0x31231c=>_0x31231c['data']),_0x2570fb=this['_getSuggestionCoords'](_0x3a63c5),_0x4a2cbd=_0x2570fb['maxColumn']-_0x2570fb['minColumn']+0x1;if('insertion'==_0x3a63c5['type'])return _0x44f744['length']?{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2cbd,'\x22'+_0x44f744['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x51813e,'*Insert:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN',_0x4a2cbd))};if('deletion'==_0x3a63c5['type'])return _0x44f744['length']?{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2cbd,'\x22'+_0x44f744['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x51813e,'*Remove:*\x20%0',c(_0x51813e,'ELEMENT_TABLE_COLUMN',_0x4a2cbd))};}}),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10d969),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10d969),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x81dfd6),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x81dfd6),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15e796),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15e796),_0x17d000['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xbafcb1),_0x17d000['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xbafcb1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f6875=this['editor'],_0x37d247=_0x1f6875['model']['document']['selection'];return(_0xc7ed08,_0x56ae44)=>{_0x1f6875['model']['change'](_0x3b24fe=>{const {commandName:_0x2d28c3,commandParams:_0x228ce9}=_0x56ae44;let _0x37d5b1=_0xc7ed08[0x0]['end']['nodeBefore'];_0x228ce9&&_0x228ce9[0x0]&&!0x1===_0x228ce9[0x0]['forceValue']&&(_0x37d5b1=_0xc7ed08[0x0]['start']['nodeAfter']);const _0x39ef82=_0x3b24fe['createRangeIn'](_0x37d5b1);if('$graveyard'==_0x39ef82['root']['rootName'])return;const _0x3a11c0=Array['from'](_0x37d247['getRanges']())['map'](_0x43319c=>_0x46c3f4['fromRange'](_0x43319c));_0x3b24fe['setSelection'](_0x39ef82),_0x1f6875['commands']['get'](_0x2d28c3)['refresh'](),_0x228ce9['push']({'forceDefaultExecution':!0x0}),_0x1f6875['execute'](_0x2d28c3,..._0x228ce9);const _0x1bb26c=_0x3a11c0['filter'](_0x2d3955=>'$graveyard'!=_0x2d3955['root']['rootName']);_0x1bb26c['length']>0x0&&_0x3b24fe['setSelection'](_0x1bb26c);for(const _0x697ff7 of _0x3a11c0)_0x697ff7['detach']();});};}['_getCoordsForCells'](_0x4f15b7){const _0x4c5654=this['editor']['plugins']['get']('TableUtils');let _0x54b7ac=Number['MAX_SAFE_INTEGER'],_0x1eb819=Number['MIN_SAFE_INTEGER'],_0x556559=Number['MAX_SAFE_INTEGER'],_0x14aa5c=Number['MIN_SAFE_INTEGER'];for(const _0x50f2e3 of _0x4f15b7){if('$graveyard'==_0x50f2e3['root']['rootName'])continue;const {row:_0x4e0c95,column:_0x3fa987}=_0x4c5654['getCellLocation'](_0x50f2e3),_0x2c1162=_0x50f2e3['hasAttribute']('rowspan')?_0x50f2e3['getAttribute']('rowspan')-0x1:0x0,_0x3c5f50=_0x50f2e3['hasAttribute']('colspan')?_0x50f2e3['getAttribute']('colspan')-0x1:0x0;_0x54b7ac=_0x4e0c95<_0x54b7ac?_0x4e0c95:_0x54b7ac,_0x1eb819=_0x4e0c95+_0x2c1162>_0x1eb819?_0x4e0c95+_0x2c1162:_0x1eb819,_0x556559=_0x3fa987<_0x556559?_0x3fa987:_0x556559,_0x14aa5c=_0x3fa987+_0x3c5f50>_0x14aa5c?_0x3fa987+_0x3c5f50:_0x14aa5c;}return{'minRow':_0x54b7ac,'maxRow':_0x1eb819,'minColumn':_0x556559,'maxColumn':_0x14aa5c};}['_setupColumnsRowsFixing'](){const _0x51b189=this['editor'],_0x1a219f=_0x51b189['plugins']['get']('TrackChangesEditing'),_0x3540f3=_0x51b189['plugins']['get']('TableUtils');_0x51b189['model']['document']['on']('change:data',()=>{const _0x322b40=Array['from'](_0x51b189['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe89dff,data:_0x2ea523}of _0x322b40){const {group:_0x23c4a2,id:_0x5cbd07,subType:_0x4cdea5}=_0x1a219f['_splitMarkerName'](_0xe89dff);if('suggestion'!=_0x23c4a2)continue;if(null!=_0x2ea523['oldRange'])continue;const _0x462ab0=_0x1a219f['getSuggestion'](_0x5cbd07);this['_tablePostFixingSubtypes']['includes'](_0x4cdea5)&&this['_tableSuggestions']['add'](_0x462ab0);}},{'priority':'low'});const _0x12b247=(_0x22cea0,_0x2cfc54)=>{let _0x1b2441=!0x1;const _0x5e3158=_0x2cfc54['createRangeOn'](_0x22cea0),_0x214a02=_0x22cea0['findAncestor']('table'),_0x48bfbf=_0x3540f3['getCellLocation'](_0x22cea0);for(const _0x543729 of this['_tableSuggestions']){const _0x5e0f5d=_0x543729['subType'],_0x531059=_0x5e0f5d['startsWith']('tablePaste'),_0x1a79ba=_0x5e0f5d['substr'](_0x531059?0xa:0x5),_0x515c8f=_0x1a79ba['toLowerCase'](),_0x50dfa9=_0x515c8f['substr'](0x0,0x3)+'span',_0x1a76ee='min'+_0x1a79ba,_0x306155='max'+_0x1a79ba;if(!_0x543729['isInContent'])continue;if(_0x214a02!=_0x543729['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x543729['isIntersectingWithRange'](_0x5e3158))continue;const _0x1b92af=_0x22cea0['hasAttribute'](_0x50dfa9)?_0x22cea0['getAttribute'](_0x50dfa9)-0x1:0x0,_0x4eba26=this['_getSuggestionCoords'](_0x543729),_0x54563b=_0x4eba26[_0x1a76ee],_0x4fabab=_0x4eba26[_0x306155];_0x54563b<=_0x48bfbf[_0x515c8f]&&_0x48bfbf[_0x515c8f]+_0x1b92af<=_0x4fabab&&(_0x543729['addRange'](_0x5e3158),_0x1b2441=!0x0);}return _0x1b2441;};_0x51b189['model']['document']['registerPostFixer'](_0x4fa73e=>{let _0x190b93=!0x1;for(const _0x9bb85e of _0x51b189['model']['document']['differ']['getChanges']())if('insert'==_0x9bb85e['type']){if('tableRow'==_0x9bb85e['name']){for(const _0x233621 of _0x9bb85e['position']['nodeAfter']['getChildren']())_0x190b93=_0x190b93||_0x12b247(_0x233621,_0x4fa73e);}else'tableCell'==_0x9bb85e['name']&&(_0x190b93=_0x190b93||_0x12b247(_0x9bb85e['position']['nodeAfter'],_0x4fa73e));}return _0x190b93;});}['_getSuggestionCoords'](_0x28d6d4){return this['_getCoordsForCells'](_0x28d6d4['getRanges']()['map'](_0x56cc08=>_0x56cc08['start']['nodeAfter']));}}function xe(_0x19fe53){return Array['from'](new Set(_0x19fe53)['values']());}class Nt extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x5d0972=this['editor'],_0x4609c7=_0x5d0972['model']['document']['selection'],_0x49f840=_0x5d0972['locale'];if(!_0x5d0972['plugins']['has']('TableEditing'))return;const _0x1c84e6=_0x5d0972['plugins']['get']('TrackChangesEditing'),_0x1c86b7=_0x5d0972['plugins']['get']('TableUtils'),_0x2c20ef=_0x5d0972['plugins']['get'](Ct);_0x2c20ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c84e6['enableCommand']('mergeTableCells',()=>{const _0x124622=_0x1c86b7['getSelectionAffectedTableCells'](_0x5d0972['model']['document']['selection']);_0x5d0972['model']['change'](()=>{_0x1c84e6['markMultiRangeBlockFormat'](_0x124622,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5d0972['commands']['get']('mergeTableCells')['on']('execute',(_0x30c8a4,_0x3c2859)=>{_0x5d0972['commands']['get']('trackChanges')['value']&&(_0x3c2859['length']>0x0&&_0x3c2859[_0x3c2859['length']-0x1]&&_0x3c2859[_0x3c2859['length']-0x1]['forceDefaultExecution']||_0x1c84e6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x30c8a4['stop']());},{'priority':'highest'});for(const _0x12220b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ee309=_0x5d0972['commands']['get'](_0x12220b);_0x1c84e6['enableCommand'](_0x12220b,()=>{const _0x4c2958=_0x5d0972['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x310e2a=>_0x310e2a['is']('element','tableCell')),_0x921161=_0x2ee309['value'];_0x5d0972['model']['change'](()=>{_0x1c84e6['markMultiRangeBlockFormat']([_0x4c2958,_0x921161],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2487f7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x39b800=_0x5d0972['commands']['get'](_0x2487f7);_0x1c84e6['enableCommand'](_0x2487f7,()=>{const _0x137ef1=_0x1c86b7['getSelectionAffectedTableCells'](_0x5d0972['model']['document']['selection'])[0x0],_0x5f4660=_0x137ef1['findAncestor']('table'),{column:_0x40bcb6,row:_0x1d7603}=_0x1c86b7['getCellLocation'](_0x137ef1);let _0x45e818=[];if('horizontally'==_0x39b800['direction']){const _0x2b7375=_0x1c86b7['createTableWalker'](_0x5f4660,{'startRow':_0x1d7603,'endRow':_0x1d7603,'includeAllSlots':!0x0});_0x45e818=Array['from'](_0x2b7375)['map'](_0x255079=>_0x255079['cell']);}else{const _0x29ec71=_0x1c86b7['createTableWalker'](_0x5f4660,{'column':_0x40bcb6,'includeAllSlots':!0x0});_0x45e818=Array['from'](_0x29ec71)['map'](_0x446b10=>_0x446b10['cell']);}_0x5d0972['model']['change'](_0x528cca=>{_0x1c84e6['markBlockFormat'](_0x528cca['createRangeOn'](_0x137ef1),{'commandName':_0x2487f7,'commandParams':[]},_0x45e818,_0x2487f7);});});}_0x1c84e6['descriptionFactory']['registerDescriptionCallback'](_0x21256c=>{if('formatBlock'!=_0x21256c['type']&&'formatInline'!=_0x21256c['type'])return;const {data:_0x194ce2}=_0x21256c;return _0x194ce2&&'mergeTableCells'==_0x194ce2['commandName']?{'type':'format','content':c(_0x49f840,'*Merge\x20cells*')}:void 0x0;}),_0x1c84e6['descriptionFactory']['registerDescriptionCallback'](_0x5d2cf3=>{if('formatBlock'!=_0x5d2cf3['type']&&'formatInline'!=_0x5d2cf3['type'])return;const {data:_0x41b7a5}=_0x5d2cf3;return _0x41b7a5?'splitTableCellVertically'==_0x41b7a5['commandName']?{'type':'format','content':c(_0x49f840,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x41b7a5['commandName']?{'type':'format','content':c(_0x49f840,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41f655=_0x2c20ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x592f43 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x592f43,'accept',_0x41f655);for(const _0x244811 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244811,'accept',_0x41f655);_0x1c84e6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e3fd4=>{_0x5d0972['model']['change'](_0xd120fd=>{const _0x263a6d=Array['from'](_0x4609c7['getRanges']())['map'](_0x41001a=>_0x46c3f4['fromRange'](_0x41001a));_0xd120fd['setSelection'](_0x2e3fd4),_0x5d0972['commands']['get']('mergeTableCells')['refresh'](),_0x5d0972['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x380961=_0x263a6d['filter'](_0x2404d3=>'$graveyard'!=_0x2404d3['root']['rootName']);_0x380961['length']>0x0&&_0xd120fd['setSelection'](_0x380961);for(const _0x22c0b2 of _0x263a6d)_0x22c0b2['detach']();});});for(const _0x162fa1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x36ea8f=_0x5d0972['commands']['get'](_0x162fa1);_0x36ea8f['on']('set:isEnabled',(_0x2f8a04,_0x23edca,_0x248c79)=>{if(_0x248c79){const _0x217dfc=_0x5d0972['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48aa47=>_0x48aa47['is']('element','tableCell'));this['_areMergableCells'](_0x36ea8f['value'],_0x217dfc)||(_0x2f8a04['return']=!0x1,_0x2f8a04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13653e=this['editor']['commands']['get']('mergeTableCells'),_0x53e70c=this['editor']['plugins']['get']('TableUtils');if(!_0x13653e['isEnabled'])return!0x1;const _0x204350=_0x53e70c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ba9e3 of _0x204350)for(const _0x1a3a87 of _0x204350)if(_0x3ba9e3!=_0x1a3a87&&!this['_areMergableCells'](_0x3ba9e3,_0x1a3a87))return!0x1;return!0x0;}['_areMergableCells'](_0x5b108f,_0x1f2146){const _0x3cc7ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314238=this['editor']['model']['createRangeOn'](_0x5b108f),_0x4bbb8c=this['editor']['model']['createRangeOn'](_0x1f2146),_0x28c6a5=new Set(),_0x422d2f=new Set();for(const _0x411887 of _0x3cc7ba['getSuggestions']())if(('insertion'==_0x411887['type']||'deletion'==_0x411887['type']||'mergeTableCells'==_0x411887['subType'])&&_0x411887['isInContent']){for(const _0x559d73 of _0x411887['getRanges']())_0x559d73['containsRange'](_0x314238,!0x0)&&_0x28c6a5['add'](_0x411887['type']+':'+_0x411887['author']['id']),_0x559d73['containsRange'](_0x4bbb8c,!0x0)&&_0x422d2f['add'](_0x411887['type']+':'+_0x411887['author']['id']);}if(_0x28c6a5['size']!=_0x422d2f['size'])return!0x1;for(const _0x29b749 of _0x28c6a5)if(!_0x422d2f['has'](_0x29b749))return!0x1;return!0x0;}}class Dt extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x3edf66=this['editor'];if(!_0x3edf66['plugins']['has']('TableEditing'))return;const _0xcef56a=_0x3edf66['locale'],_0x1951e7=_0x3edf66['plugins']['get']('TrackChangesEditing');_0x1951e7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1951e7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1951e7['registerBlockAttribute']('headingRows'),_0x1951e7['registerBlockAttribute']('headingColumns'),_0x1951e7['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xcef56a,'FORMAT_HEADER_ROW')),_0x1951e7['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xcef56a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x370e66=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26443a=this['editor']['plugins']['get']('TableUtils'),_0x1f80c7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x493e98({showActiveMarker:_0x101a92=!0x0,setDataAttribute:_0xe7afe1=!0x0}={}){return(_0x4e72c3,_0x1814d7,_0x548b51)=>{const {type:_0x5ad183,id:_0x273102}=_0x370e66['_splitMarkerName'](_0x1814d7['markerName']),_0x37d909=_0x370e66['getSuggestion'](_0x273102),_0x178b62=_0x37d909['data'];if('formatBlock'!=_0x37d909['type']||!_0x178b62||'setTableColumnHeader'!=_0x178b62['commandName'])return;if(_0x1814d7['item'])return void _0x4e72c3['stop']();if(!_0x548b51['consumable']['consume'](_0x1814d7['markerRange'],_0x4e72c3['name']))return;const _0x4467d9=_0x1814d7['markerRange']['start']['nodeAfter'],_0x38a76d=_0x1814d7['markerRange']['end']['nodeBefore'],_0xa3f69f=_0x4467d9['parent']['parent'],{column:_0xf52871}=_0x26443a['getCellLocation'](_0x4467d9),{column:_0x29b91a}=_0x26443a['getCellLocation'](_0x38a76d);for(let _0x4be7b2=_0xf52871;_0x4be7b2<=_0x29b91a;_0x4be7b2++){const _0x38d985=_0x26443a['createTableWalker'](_0xa3f69f,{'column':_0x4be7b2,'includeAllSlots':!0x1});for(const _0xffe0a6 of _0x38d985){const _0x35114b=_0xffe0a6['cell'],_0x5a44ec=_0x548b51['mapper']['toViewElement'](_0x35114b);_0x548b51['writer']['addClass']('ck-suggestion-marker-'+_0x5ad183,_0x5a44ec),_0xe7afe1&&_0x548b51['writer']['setAttribute']('data-suggestion',_0x273102,_0x5a44ec),_0x548b51['mapper']['bindElementToMarker'](_0x5a44ec,_0x1814d7['markerName']),_0x101a92&&(_0x370e66['activeMarkers']['includes'](_0x1814d7['markerName'])?_0x548b51['writer']['addClass']('ck-suggestion-marker--active',_0x5a44ec):_0x548b51['writer']['removeClass']('ck-suggestion-marker--active',_0x5a44ec));}}};}_0x370e66['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1f80c7),_0x370e66['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1f80c7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x493e98(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2364ae,_0x2a2974,_0x1de1e8)=>{_0x1de1e8['options']['showSuggestionHighlights']&&_0x493e98({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2364ae,_0x2a2974,_0x1de1e8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20a500,_0x2aa159,_0x59a34c)=>{const {type:_0x16894b,id:_0x29a07e}=_0x370e66['_splitMarkerName'](_0x2aa159['markerName']),_0x1816b7=_0x370e66['getSuggestion'](_0x29a07e),_0x172fe4=_0x1816b7['data'];if('formatBlock'!=_0x1816b7['type']||!_0x172fe4||'setTableColumnHeader'!=_0x172fe4['commandName'])return;const _0x55569b=_0x59a34c['mapper']['markerNameToElements'](_0x2aa159['markerName']);if(_0x55569b){for(const _0x47e3d7 of _0x55569b)_0x59a34c['writer']['removeClass']('ck-suggestion-marker-'+_0x16894b,_0x47e3d7),_0x59a34c['writer']['removeClass']('ck-suggestion-marker--active',_0x47e3d7),_0x59a34c['writer']['removeAttribute']('data-suggestion',_0x47e3d7),_0x59a34c['mapper']['unbindElementFromMarkerName'](_0x47e3d7,_0x2aa159['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176157=this['editor'],_0x336fa1=_0x176157['locale'];function _0x802c55(_0x1c0738){return{'type':'format','content':c(_0x336fa1,'*Format:*\x20%0',_0x1c0738)};}_0x176157['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1346ff=>{if('formatBlock'!=_0x1346ff['type'])return;const {data:_0x262a36}=_0x1346ff;if(_0x262a36){if('setTableRowHeader'==_0x262a36['commandName']){const _0xd022d9=_0x262a36['commandParams'][0x0]['forceValue'];return _0x802c55(c(_0x336fa1,_0xd022d9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x262a36['commandName']){const _0xef4aff=_0x262a36['commandParams'][0x0]['forceValue'];return _0x802c55(c(_0x336fa1,_0xef4aff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x14dd54{['afterInit'](){const _0x1e5d5e=this['editor'],_0x4bee06=_0x1e5d5e['locale'],_0x905142=_0x1e5d5e['plugins']['get']('TrackChangesEditing');function _0x31f305(_0x3860a9){return{'type':'format','content':''+c(_0x4bee06,'*Set\x20table\x20type:*\x20%0',_0x3860a9)};}_0x1e5d5e['plugins']['has']('TableLayout')&&(_0x905142['enableCommand']('insertTableLayout'),_0x905142['enableDefaultAttributesIntegration']('tableType'),_0x905142['registerBlockAttribute']('tableType'),_0x905142['descriptionFactory']['registerElementLabel'](_0x5cc8e6=>_0x5cc8e6['is']('element','table')&&'layout'===_0x5cc8e6['getAttribute']('tableType'),_0x86a98c=>c(_0x4bee06,'ELEMENT_LAYOUT_TABLE',_0x86a98c)),_0x905142['descriptionFactory']['registerDescriptionCallback'](_0x5f01d7=>{const {data:_0x30bf61}=_0x5f01d7;if(_0x30bf61&&'tableType'==_0x30bf61['key'])switch(_0x30bf61['newValue']){case'layout':return _0x31f305(c(_0x4bee06,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x31f305(c(_0x4bee06,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x324152=>[_0x324152,null]));class $t extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a21bd=this['editor'];if(!_0x4a21bd['plugins']['has']('TableClipboard'))return;const _0x5629e7=_0x4a21bd['plugins']['get']('TrackChangesEditing'),_0x494b60=_0x4a21bd['plugins']['get']('TableUtils'),_0x318cf9=_0x4a21bd['plugins']['get'](Ct),_0x15664c=_0x4a21bd['plugins']['get']('TableClipboard'),_0x30dd58=_0x4a21bd['plugins']['get']('TableSelection'),_0x34183f=_0x4a21bd['plugins']['get'](_0x4094b0);_0x318cf9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a21bd['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a21bd['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2370da=null,_0xe93fbd=!0x1;_0x34183f['on']('contentInsertion',(_0x5d1e2c,_0x599c88)=>{_0xe93fbd='paste'===_0x599c88['method'];}),_0x4a21bd['model']['on']('insertContent',(_0x1f7019,_0x47a2f4)=>{if(!_0xe93fbd&&null===_0x30dd58['getSelectedTableCells']())return;const [_0x2d6507,_0x480257]=_0x47a2f4,_0x3bd25f=_0x47a2f4[_0x47a2f4['length']-0x1];_0x3bd25f&&_0x3bd25f['forceDefaultExecution']||_0x5629e7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x56e225,_0x300892,_0x5a87a2,_0x30557f,_0x9c805a){if(_0x300892&&!_0x300892['is']('documentSelection'))return!0x1;const _0x1ae11f=_0x9c805a['getTableIfOnlyTableInContent'](_0x56e225,_0x5a87a2);if(!_0x1ae11f||!He(_0x1ae11f,void 0x0,_0x30557f))return!0x1;const _0x4e2765=_0x30557f['getSelectionAffectedTableCells'](_0x5a87a2['document']['selection']);if(!_0x4e2765['length'])return!0x1;const _0x12f933=_0x4e2765[0x0]['findAncestor']('table'),_0x2b2131=_0x30557f['getRowIndexes'](_0x4e2765),_0x43ce13=_0x30557f['getColumnIndexes'](_0x4e2765),_0x25a552={'startRow':_0x2b2131['first'],'endRow':_0x2b2131['last'],'startColumn':_0x43ce13['first'],'endColumn':_0x43ce13['last']};return 0x1==_0x4e2765['length']&&(_0x25a552['endRow']+=_0x30557f['getRows'](_0x1ae11f)-0x1,_0x25a552['endColumn']+=_0x30557f['getColumns'](_0x1ae11f)-0x1),He(_0x12f933,_0x25a552,_0x30557f);}(_0x2d6507,_0x480257,_0x4a21bd['model'],_0x494b60,_0x15664c)&&(_0x1f7019['stop'](),_0x2370da={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a21bd['model']['change'](()=>{_0x4a21bd['model']['insertContent'](_0x47a2f4[0x0],_0x47a2f4[0x1],_0x47a2f4[0x2],{'forceDefaultExecution':!0x0});const _0x599cb9=_0x425596(),{rowInsertionRanges:_0x3e14c8,columnInsertionRanges:_0xfed826,insertionRanges:_0x1c6f72,deletionRanges:_0xf6e3c3,cells:_0x3fbb57}=_0x2370da;_0x3e14c8['length']&&_0x5629e7['markMultiRangeInsertion'](_0x3e14c8,'tablePasteRow',{'tablePasteChainId':_0x599cb9}),_0xfed826['length']&&_0x5629e7['markMultiRangeInsertion'](_0xfed826,'tablePasteColumn',{'tablePasteChainId':_0x599cb9}),_0x1c6f72['length']&&(_0x5629e7['markMultiRangeInsertion'](_0x1c6f72,'tablePaste',{'tablePasteChainId':_0x599cb9,'skipNestingCheck':!0x0}),_0x1c6f72['forEach'](_0x16e39b=>_0x16e39b['detach']?.())),_0xf6e3c3['length']&&(_0x5629e7['markMultiRangeDeletion'](_0xf6e3c3,'tablePaste',{'tablePasteChainId':_0x599cb9,'skipNestingCheck':!0x0}),_0xf6e3c3['forEach'](_0x54d1ab=>_0x54d1ab['detach']?.()));const _0x1ff663=_0x5629e7['markMultiRangeBlockFormat'](_0x3fbb57['map'](({element:_0x2a76ea})=>_0x2a76ea),{'formatGroupId':_0x425596()},[],'tablePasteCell',{'tablePasteChainId':_0x599cb9});if(_0x1ff663){const _0x485928=_0x1ff663['getMarkers'](),_0x110635=[];for(const {element:_0x2f7fca,attributes:_0x22fa2c}of _0x3fbb57){if(!_0x22fa2c)continue;const _0x41e19c=_0x4a21bd['model']['createRangeOn'](_0x2f7fca),_0x377230=_0x485928['find'](_0x3f8181=>_0x3f8181['getRange']()['isEqual'](_0x41e19c));_0x377230&&_0x110635['push']([_0x377230['name'],_0x22fa2c]);}_0x110635['length']&&_0x1ff663['setAttribute']('markerAttributes',Object['fromEntries'](_0x110635));}_0x2370da=null;}));},{'priority':_0x15078e['high']+0xa}),_0x34183f['on']('contentInsertion',()=>{_0xe93fbd=!0x1;},{'priority':'lowest'}),_0x4a21bd['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39b628,_0x4d9cbb)=>{const [_0x1d5567,_0x381159,,_0x592bcc]=_0x4d9cbb;if(!_0x2370da)return;_0x39b628['stop']();const _0x1ccb73=_0x1d5567['cell'],_0x5283c6=_0x381159,_0x50957e=De(_0x1ccb73),_0x487041=De(_0x5283c6);_0x39b628['return']=_0x1ccb73;let _0x391183=null,_0x1a81c4=null;if(_0x487041||_0x50957e){if(_0x50957e&&!_0x487041){_0x592bcc['remove'](_0x1ccb73['getChild'](0x0));for(const _0x1769fb of Array['from'](_0x5283c6['getChildren']()))_0x592bcc['insert'](_0x1769fb,_0x1ccb73,'end');const _0x519611=_0x2370da['rowInsertionIndexes']['includes'](_0x1d5567['row']),_0x363bbe=_0x2370da['columnInsertionIndexes']['includes'](_0x1d5567['column']);_0x519611||_0x363bbe||(_0x391183=_0x46c3f4['fromRange'](_0x592bcc['createRangeIn'](_0x1ccb73)));}else _0x487041&&!_0x50957e&&(_0x1a81c4=_0x592bcc['createRangeIn'](_0x1ccb73));}else{const _0x10fdc9=_0x592bcc['createElement']('tableCellSuggestion'),_0x4c8f35=_0x592bcc['createElement']('tableCellSuggestion');_0x592bcc['wrap'](_0x592bcc['createRangeIn'](_0x1ccb73),_0x4c8f35),_0x592bcc['insert'](_0x10fdc9,_0x1ccb73,0x0);for(const _0x2c8198 of Array['from'](_0x5283c6['getChildren']()))_0x592bcc['insert'](_0x2c8198,_0x10fdc9,'end');_0x391183=_0x46c3f4['fromRange'](_0x592bcc['createRangeOn'](_0x10fdc9)),_0x1a81c4=_0x46c3f4['fromRange'](_0x592bcc['createRangeOn'](_0x4c8f35));}const _0x199aea=Array['from'](_0x5283c6['getAttributes']())['filter'](([_0x40fafa])=>Oe['includes'](_0x40fafa));_0x2370da['cells']['push']({'element':_0x1ccb73,'attributes':_0x199aea['length']?Object['fromEntries'](_0x199aea):null}),_0x391183&&_0x2370da['insertionRanges']['push'](_0x391183),_0x1a81c4&&_0x2370da['deletionRanges']['push'](_0x1a81c4);},{'priority':'high'}),_0x494b60['on']('insertColumns',(_0x1781a0,_0x17320c)=>{const [_0x54ff91,_0x50c790={}]=_0x17320c;if(!_0x2370da)return;const _0x5d6cad=_0x50c790['at']||0x0,_0x46e51e=_0x50c790['columns']||0x1;_0x2370da['columnInsertionIndexes']=new Array(_0x46e51e)['fill'](_0x5d6cad)['map']((_0x240d92,_0x2544c2)=>_0x240d92+_0x2544c2);for(const {cell:_0x136dbd}of _0x494b60['createTableWalker'](_0x54ff91,{'startColumn':_0x5d6cad,'endColumn':_0x5d6cad+_0x46e51e-0x1}))_0x2370da['columnInsertionRanges']['push'](_0x4a21bd['model']['createRangeOn'](_0x136dbd));},{'priority':'low'}),_0x494b60['on']('insertRows',(_0x585b38,_0x2ebd6f)=>{const [_0x2d2b2b,_0x225568={}]=_0x2ebd6f;if(!_0x2370da)return;const _0x58d6de=_0x225568['at']||0x0,_0x4d912d=_0x225568['rows']||0x1;_0x2370da['rowInsertionIndexes']=new Array(_0x4d912d)['fill'](_0x58d6de)['map']((_0x2f2f02,_0x2775ac)=>_0x2f2f02+_0x2775ac);for(const {cell:_0x48a921}of _0x494b60['createTableWalker'](_0x2d2b2b,{'startRow':_0x58d6de,'endRow':_0x58d6de+_0x4d912d-0x1}))_0x2370da['rowInsertionRanges']['push'](_0x4a21bd['model']['createRangeOn'](_0x48a921));},{'priority':'low'}),_0x5629e7['descriptionFactory']['registerDescriptionCallback'](_0x1f4d5a=>{if(_0x1f4d5a['subType']&&_0x1f4d5a['subType']['startsWith']('tablePaste'))return _0x1f4d5a['previous']?{}:{'type':'insertion','content':c(_0x4a21bd['locale'],'*Replace\x20table\x20cells*')};});const _0x230119=()=>!0x1;for(const _0x6989aa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion',_0x6989aa,'join',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('deletion',_0x6989aa,'join',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6989aa,'join',_0x230119);_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x230119),_0x5629e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49a242,_0x471b86,_0x5edb27)=>{const _0x4ff357=_0x49a242['map'](_0x420eb6=>_0x420eb6['getContainedElement']())['filter'](_0x3c3dc3=>_0x3c3dc3),_0x50cfde=new Map(_0x4ff357['map'](_0x5f294f=>[_0x5f294f,null]));if(_0x2370da){for(const {element:_0x23508d,attributes:_0x103ee0}of _0x2370da['cells'])_0x103ee0&&_0x50cfde['set'](_0x23508d,_0x103ee0);}else{if(_0x5edb27&&_0x5edb27['markerAttributes'])for(const [_0x5cad44,_0x3026b9]of Object['entries'](_0x5edb27['markerAttributes'])){const _0x4cf103=_0x4a21bd['model']['markers']['get'](_0x5cad44),_0x263943=_0x4cf103?_0x4cf103['getRange']()['getContainedElement']():null;_0x263943&&_0x50cfde['set'](_0x263943,_0x3026b9);}}_0x4a21bd['model']['change'](_0x5bf2ff=>{for(const [_0x1efaf8,_0xf7b521]of _0x50cfde)_0x5bf2ff['setAttributes']({...Ue,..._0xf7b521},_0x1efaf8);});});const _0x4d75b7=(_0x1ecd38,_0x5eb6f2)=>{_0x5629e7['_suggestionFactory']['registerCustomCallback'](_0x1ecd38,'tablePaste',_0x5eb6f2,(_0x1f7400,_0x3a01ee,_0x3cd8a7)=>{_0x4a21bd['model']['change'](_0x2fc359=>{const _0x4ee12a=[];for(const _0x5e8b7d of _0x1f7400){const _0x36a6f3=_0x5e8b7d['start']['nodeAfter'];_0x36a6f3['is']('element','tableCellSuggestion')&&_0x4ee12a['push'](_0x36a6f3);}_0x5629e7['_suggestionFactory']['getSuggestionCallback'](_0x1ecd38,null,_0x5eb6f2)(_0x1f7400,_0x3a01ee,_0x3cd8a7);for(const _0x46c6a7 of _0x4ee12a)'$graveyard'!=_0x46c6a7['root']['rootName']&&_0x2fc359['unwrap'](_0x46c6a7);});});};_0x4d75b7('insertion','accept'),_0x4d75b7('insertion','discard'),_0x4d75b7('deletion','accept'),_0x4d75b7('deletion','discard'),_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36f4a8=>{const _0x472af3=_0x36f4a8['map'](_0x2b850b=>_0x2b850b['getContainedElement']()),_0x164fc8=_0x472af3[0x0]['findAncestor']('table'),{minRow:_0x6d196f,maxRow:_0x2fd25d}=_0x318cf9['_getCoordsForCells'](_0x472af3);_0x494b60['removeRows'](_0x164fc8,{'at':_0x6d196f,'rows':_0x2fd25d-_0x6d196f+0x1});}),_0x5629e7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x44a991=>{const _0x320682=_0x44a991['map'](_0x2466a1=>_0x2466a1['getContainedElement']()),_0x585c53=_0x320682[0x0]['findAncestor']('table'),{minColumn:_0x18884f,maxColumn:_0x43eeac}=_0x318cf9['_getCoordsForCells'](_0x320682);_0x494b60['removeColumns'](_0x585c53,{'at':_0x18884f,'columns':_0x43eeac-_0x18884f+0x1});});const _0xc0e0a=(_0x50c158,_0x29fd53)=>{if(!_0x29fd53['subType']||!_0x29fd53['subType']['startsWith']('tablePaste'))return;const _0xabc06=_0x29fd53['attributes']['tablePasteChainId'],_0x304231=_0x5629e7['getSuggestions']()['filter'](_0x3b8719=>_0x3b8719['isInContent']&&_0x3b8719['attributes']&&_0x3b8719['attributes']['tablePasteChainId']==_0xabc06);_0x304231['length']&&_0x29fd53['getAllAdjacentSuggestions']()['length']!=_0x304231['length']&&_0x304231['reduce']((_0xa97de6,_0x3a6685)=>(_0xa97de6['next']=_0x3a6685,_0x3a6685['previous']=_0xa97de6,_0x3a6685));};function _0xf99db8(_0x3d0e89,_0x29077d=!0x0){const {id:_0x47cfcf,authorId:_0x558d1f}=_0x5629e7['_splitMarkerName'](_0x3d0e89['markerName']),_0x2b3c37=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x413024=_0x5629e7['activeMarkers']['includes'](_0x3d0e89['markerName']);return _0x413024&&_0x2b3c37['push']('ck-suggestion-marker--active'),{'classes':_0x2b3c37,'attributes':{'data-suggestion':_0x47cfcf,'data-author-id':_0x558d1f},'priority':_0x413024&&_0x29077d?0xbc2:0xbb8};}_0x5629e7['on']('suggestionLoaded',_0xc0e0a,{'priority':'high'}),_0x5629e7['on']('suggestionUnloaded',_0xc0e0a,{'priority':'high'}),_0x4a21bd['model']['document']['registerPostFixer'](()=>{let _0x9576bf=!0x1;const _0x1f645c=Array['from'](_0x4a21bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eda7d,data:_0x12aced}of _0x1f645c){const {group:_0x580017,type:_0x458f54,id:_0xad0b8d}=_0x5629e7['_splitMarkerName'](_0x4eda7d);if('suggestion'!=_0x580017||'deletion'!=_0x458f54||_0x12aced['oldRange'])continue;if(!_0x5629e7['hasSuggestion'](_0xad0b8d))continue;const _0x54e28f=_0x5629e7['getSuggestion'](_0xad0b8d)['getRanges'](),_0x5bb0be=_0x4a21bd['plugins']['get']('Users')['me'];for(const _0x5a455a of _0x5629e7['getSuggestions']()){if(!_0x5a455a['isInContent']||_0x5a455a['author']!=_0x5bb0be)continue;if('formatBlock'!=_0x5a455a['type']||'tablePasteCell'!=_0x5a455a['subType'])continue;if(_0x5a455a['getRanges']()['every'](_0x19572b=>_0x54e28f['some'](_0x4a8cbe=>_0x4a8cbe['containsRange'](_0x19572b,!0x0)))){for(const _0x573963 of _0x5a455a['getAllAdjacentSuggestions']())_0x573963['isInContent']&&(_0x573963['discard'](),_0x9576bf=!0x0);}}}return _0x9576bf;}),_0x4a21bd['model']['document']['registerPostFixer'](_0x53dded=>{const _0x10069f=_0x4a21bd['commands']['get']('redo');if(!_0x10069f||!_0x10069f['_createdBatches']['has'](_0x53dded['batch']))return!0x1;let _0x2f23a2=!0x1;const _0xb6d4b6=_0x4a21bd['plugins']['get']('Users')['me'],_0x5100eb=_0x4a21bd['model']['document']['differ']['getChanges'](),_0x2f9e7a=Array['from'](_0x4a21bd['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x486463,data:_0xce3dab})=>{const {group:_0x138774,subType:_0x234611,authorId:_0x5cc182}=_0x5629e7['_splitMarkerName'](_0x486463);return'suggestion'==_0x138774&&'tablePaste'==_0x234611&&_0x5cc182==_0xb6d4b6['id']&&!_0xce3dab['oldRange'];});for(const _0x43b539 of _0x5100eb){if('insert'!=_0x43b539['type']||'tableCellSuggestion'!=_0x43b539['name']||0x1!=_0x43b539['length'])continue;const _0x2a2070=_0x53dded['createRange'](_0x43b539['position'],_0x43b539['position']['getShiftedBy'](0x1));if(!_0x2f9e7a['find'](({data:_0x10c58f})=>_0x10c58f['newRange']['isEqual'](_0x2a2070))){for(const {name:_0x1e30ec,data:_0x50803b}of _0x2f9e7a)if(_0x2a2070['containsRange'](_0x50803b['newRange'])){_0x53dded['updateMarker'](_0x1e30ec,{'range':_0x2a2070}),_0x2f23a2=!0x0;break;}}}return _0x2f23a2;}),_0x4a21bd['model']['document']['registerPostFixer'](_0x5419c0=>{let _0x2287fa=!0x1;const _0x19ef8a=_0x4a21bd['plugins']['get']('Users')['me'],_0x57db8f=_0x5629e7['getSuggestions']()['filter'](_0x5b3b2d=>_0x5b3b2d['isInContent']&&_0x5b3b2d['author']==_0x19ef8a),_0x2fc6e4=new Set(),_0x3a28c1=new Set();for(const _0x6e5500 of _0x57db8f)if('tablePaste'==_0x6e5500['subType'])for(const _0x537762 of _0x6e5500['getMarkers']()){const _0x8469e5=_0x537762['getRange']()['getContainedElement']();if(_0x8469e5){if(_0x8469e5['is']('element','tableCellSuggestion')&&De(_0x8469e5)){_0x6e5500['removeMarker'](_0x537762['name']),_0x2fc6e4['add'](_0x8469e5),_0x2287fa=!0x0;const _0x580412=_0x8469e5['nextSibling'],_0x4bbce4=_0x8469e5['previousSibling'],_0x3d5e34=_0x580412&&_0x580412['is']('element','tableCellSuggestion'),_0x290dff=_0x4bbce4&&_0x4bbce4['is']('element','tableCellSuggestion');_0x3d5e34&&!_0x2fc6e4['has'](_0x580412)&&_0x3a28c1['add'](_0x580412),_0x290dff&&!_0x2fc6e4['has'](_0x4bbce4)&&_0x3a28c1['add'](_0x4bbce4);}else _0x8469e5['is']('element','paragraph')&&_0x8469e5['isEmpty']&&(_0x6e5500['removeMarker'](_0x537762['name']),_0x2287fa=!0x0);}}else{if('tablePasteCell'==_0x6e5500['subType']){if(!_0x6e5500['attributes']||!_0x6e5500['attributes']['tablePasteChainId'])continue;const _0x13d97d=_0x6e5500['attributes']['markerAttributes'];if(_0x13d97d&&Object['keys'](_0x13d97d)['length'])continue;const _0x256790=_0x6e5500['attributes']['tablePasteChainId'];let _0x50fbd8=!0x0,_0x415302=!0x0;for(const _0xf0e06d of _0x57db8f)if(_0xf0e06d['subType']&&_0xf0e06d['subType']['startsWith']('tablePaste')){if(!_0xf0e06d['attributes']['tablePasteChainId']){_0x415302=!0x1;break;}if(_0xf0e06d['id']!=_0x6e5500['id']&&_0xf0e06d['attributes']['tablePasteChainId']==_0x256790){_0x50fbd8=!0x1;break;}}_0x415302&&_0x50fbd8&&(_0x6e5500['removeMarkers'](),_0x2287fa=!0x0);}}for(const _0x1c7ff7 of _0x2fc6e4)_0x5419c0['remove'](_0x1c7ff7);for(const _0x2eb3de of _0x3a28c1)_0x5419c0['unwrap'](_0x2eb3de);return _0x2287fa;}),_0x4a21bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xa08bd9=>_0xf99db8(_0xa08bd9),'converterPriority':'high'}),_0x4a21bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ebb09,_0xb050d6)=>_0xb050d6['options']['showSuggestionHighlights']?_0xf99db8(_0x5ebb09,!0x1):null,'converterPriority':'high'});const _0x32ecc8=_0x4a21bd['editing']['view'];this['listenTo'](_0x32ecc8['document'],'clipboardOutput',(_0x39c0b2,_0x253cb7)=>{const _0xd1dbf4=[];for(const _0x1b35a4 of _0x32ecc8['createRangeIn'](_0x253cb7['content'])['getItems']())_0x1b35a4['is']('element','suggestion-td')&&_0xd1dbf4['push'](_0x1b35a4);_0x32ecc8['change'](_0x134d6e=>{for(const _0x17db64 of _0xd1dbf4)_0x134d6e['move'](_0x134d6e['createRangeIn'](_0x17db64),_0x134d6e['createPositionBefore'](_0x17db64)),_0x134d6e['remove'](_0x17db64);});});}}function De(_0x1523ee){if(_0x1523ee['isEmpty'])return!0x0;const _0x4e5464=_0x1523ee['getChild'](0x0);return _0x4e5464['is']('element','paragraph')&&_0x4e5464['isEmpty'];}function He(_0x1de090,_0x4e7c01={},_0x24dc0e){for(const {isAnchor:_0x9887e2,cellHeight:_0x31e7a3,cellWidth:_0x17997d}of _0x24dc0e['createTableWalker'](_0x1de090,{'includeAllSlots':!0x0,..._0x4e7c01}))if(!_0x9887e2||0x1!=_0x31e7a3||0x1!=_0x17997d)return!0x1;return!0x0;}class Bt extends _0x14dd54{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6447ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x6447ec['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6447ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6447ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6447ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6447ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6447ec['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x30d269,_0x531008){const _0x294b5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x471040=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1bc0d2=_0x531008['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b81e2=_0x471040['getColumnGroupElement'](_0x1bc0d2);let _0x3e769c=_0x4b81e2?_0x471040['getTableColumnsWidths'](_0x4b81e2):null,_0x171ce7=_0x1bc0d2['getAttribute']('tableWidth')||null;const _0x5dd747=_0x531008['tableWidth']||_0x171ce7,_0x523b19=_0x531008['columnWidths']||_0x3e769c,_0x367ce2=this['editor']['plugins']['get']('Users')['me'];for(const _0x550329 of _0x294b5d['getSuggestions']()){const _0x380df5=_0x550329['getContainedElement']();if('resizeTable'===_0x550329['subType']&&_0x380df5===_0x1bc0d2){_0x550329['author']!==_0x367ce2&&_0x550329['discard']();const _0x1eb1e3=_0x550329['data']['commandParams'];_0x171ce7=_0x1eb1e3[0x0]['tableWidth'],_0x3e769c=_0x1eb1e3[0x0]['columnWidths'];break;}}_0x30d269({'table':_0x1bc0d2,'tableWidth':_0x5dd747,'columnWidths':_0x523b19}),_0x294b5d['markBlockFormat'](_0x1bc0d2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x171ce7,'columnWidths':_0x3e769c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f2aaf){if('formatBlock'!=_0x4f2aaf['type']&&'formatInline'!=_0x4f2aaf['type'])return;const {data:_0x377af1}=_0x4f2aaf;if(_0x377af1&&'resizeTable'===_0x377af1['formatGroupId']){const _0x4ff652='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4ff652)};}}}class xt extends _0x14dd54{['afterInit'](){const _0x39de9b=this['editor'];_0x39de9b['plugins']['has']('Template')&&_0x39de9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x14dd54{['afterInit'](){const _0x41e538=this['editor'];if(!_0x41e538['commands']['get']('insertTableOfContents'))return;_0x41e538['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x241a90=_0x41e538['plugins']['get']('TrackChangesEditing'),_0x3146de=_0x41e538['locale'];_0x241a90['descriptionFactory']['registerElementLabel']('tableOfContents',_0x432dcd=>c(_0x3146de,'ELEMENT_TABLE_OF_CONTENTS',_0x432dcd));}}class Rt extends _0x14dd54{['afterInit'](){const _0x358255=this['editor'];if(!_0x358255['plugins']['has']('Title'))return;const _0x456876=_0x358255['plugins']['get']('TrackChangesEditing');_0x456876['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x358255['locale'],'ELEMENT_TITLE')),_0x358255['model']['document']['registerPostFixer'](_0x358c78=>{let _0x5c5498=!0x1;const _0x3d879e=Array['from'](_0x358255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa5c3c5,data:_0x458f1e}of _0x3d879e){const {group:_0x5bcf13}=_0x456876['_splitMarkerName'](_0xa5c3c5);if('suggestion'!==_0x5bcf13||!_0x458f1e['newRange'])continue;const _0x5c9d51=_0x458f1e['newRange'],_0x10611f=_0x5c9d51['end']['nodeBefore'];if(!_0x10611f||!_0x10611f['is']('element','title-content'))continue;if(!_0x5c9d51['start']['isTouching'](_0x5c9d51['end']))continue;const _0x56b581=_0x358255['model']['schema']['getNearestSelectionRange'](_0x5c9d51['end'],'forward');if(_0x56b581&&_0x56b581['isCollapsed']){const _0x52fb06=_0x358c78['createRange'](_0x5c9d51['start'],_0x56b581['start']);_0x52fb06['isEqual'](_0x5c9d51)||(_0x358c78['updateMarker'](_0xa5c3c5,{'range':_0x52fb06}),_0x5c5498=!0x0);}_0x5c5498||(_0x358c78['removeMarker'](_0xa5c3c5),_0x5c5498=!0x0);}return _0x5c5498;});}}class Tt extends _0x14dd54{['afterInit'](){const _0x2fc482=this['editor'],_0x5259e1=_0x2fc482['plugins']['get']('TrackChangesEditing');_0x2fc482['plugins']['has']('Uploadcare')&&(_0x5259e1['enableCommand']('uploadcare'),_0x2fc482['plugins']['has']('UploadcareImageEdit')&&(_0x5259e1['enableCommand']('uploadcareImageEdit'),_0x5259e1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5259e1['registerBlockAttribute']('uploadcareImageId'),_0x5259e1['descriptionFactory']['registerDescriptionCallback'](_0x1c049b=>{if('attribute'!=_0x1c049b['type'])return;const {data:_0x4d3d99}=_0x1c049b;return _0x4d3d99&&'uploadcareImageId'==_0x4d3d99['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x14dd54{['afterInit'](){const _0xa1991b=this['editor'],_0x399b10=_0xa1991b['plugins']['get']('TrackChangesEditing');_0xa1991b['plugins']['has']('UndoEditing')&&(_0x399b10['enableCommand']('undo'),_0x399b10['enableCommand']('redo'));}}class Ut extends _0x14dd54{static get['requires'](){return[Ct];}['afterInit'](){const _0x133e48=this['editor'];if(!_0x133e48['plugins']['has']('TableCaptionEditing'))return;_0x133e48['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x14dd54{['tableProperties'];['tableCellProperties'];constructor(_0x4ffe4a){super(_0x4ffe4a),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 _0x1277a6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fbd12 of this['tableProperties'])_0x1277a6['enableCommand'](_0x4fbd12,(_0x557501,_0xfaf55)=>{const _0x80f092=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fbd12,[_0x80f092],this['tableProperties'],'tableProperties',_0x557501,_0xfaf55);});_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1277a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26777e,_0x324eea)=>this['handleDiscardAction'](this['tableProperties'],_0x26777e,_0x324eea)),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40f32c of this['tableCellProperties'])_0x1277a6['enableCommand'](_0x40f32c,(_0x3620e7,_0x4f50b0)=>{const _0x47d8bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40f32c,_0x47d8bd,this['tableCellProperties'],'tableCellProperties',_0x3620e7,_0x4f50b0);});_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1277a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb490e2,_0x32fe77)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb490e2,_0x32fe77)),_0x1277a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1277a6['descriptionFactory']['registerDescriptionCallback'](_0x5b0c7f=>this['handleSuggestionDescription'](_0x5b0c7f));}['_handlePropertyChange'](_0x4c635f,_0x49515e,_0x32de4e,_0x48d7b7,_0x214445,_0x4b010d){const _0x3005c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b010d['batch'],()=>{for(const _0x518f24 of _0x49515e){if(this['_getSuggestion'](_0x518f24,_0x48d7b7))_0x214445(_0x4b010d);else{const _0x82016d={};for(const _0x59d628 of _0x32de4e){const _0x14aefd=_0x518f24['getAttribute'](_0x59d628);void 0x0!==_0x14aefd&&(_0x82016d[_0x59d628]=_0x14aefd);}_0x214445(_0x4b010d),_0x3005c5['markBlockFormat'](_0x518f24,{'commandParams':[_0x82016d]},[],_0x48d7b7);}}});}['handleDiscardAction'](_0x4882e0,_0x377b05,_0x20ce89){const _0x33953c=_0x377b05[0x0]['start']['nodeAfter'],_0x336298=_0x20ce89['commandParams'][0x0];this['editor']['model']['change'](_0x39b25b=>{for(const _0x50bb83 of _0x4882e0)void 0x0!==_0x336298[_0x50bb83]?_0x39b25b['setAttribute'](_0x50bb83,_0x336298[_0x50bb83],_0x33953c):_0x39b25b['removeAttribute'](_0x50bb83,_0x33953c);});}['handleSuggestionDescription'](_0x2f3328){if(_0x2f3328['data'])switch(_0x2f3328['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1b9341,_0x2c10dd){const _0x4713c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x451ebf of _0x4713c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x8e0f9a=_0x451ebf['getContainedElement']();if(_0x451ebf['subType']===_0x2c10dd&&_0x8e0f9a===_0x1b9341)return _0x451ebf;}return null;}}const u='$elementName';class p extends _0x14dd54{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1818cf,_0x4e3b5b,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aae60){super(_0x3aae60),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x6890ac,_0x55d5b4,_0x27de92,_0x55e3b9)=>{this['_model']['change'](()=>{for(const _0x169056 of[..._0x55e3b9,..._0x27de92])this['_model']['markers']['has'](_0x169056)&&_0x3aae60['editing']['reconvertMarker'](_0x169056);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3aae60['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3aae60['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3aae60['config']['get']('trackChanges.trackFormatChanges'),_0x3aae60['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3aae60['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3aae60,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4cea83=this['editor'],_0x333147=(_0x25ab75,_0x52b425)=>{if('attribute'!=_0x25ab75)return'ck-suggestion-marker-'+_0x25ab75;const _0xf64691=_0x52b425['split']('|')[0x0];return this['_isBlockAttribute'](_0xf64691)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4cea83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x48fc1d=>{const {id:_0x5b3332,authorId:_0xa0a1a3,type:_0x3b5c63,subType:_0x334f58}=this['_splitMarkerName'](_0x48fc1d['markerName']),_0x39a347=['ck-suggestion-marker',_0x333147(_0x3b5c63,_0x334f58)];let _0x12a43b=0xbb8;return this['activeMarkers']['includes'](_0x48fc1d['markerName'])&&(_0x39a347['push']('ck-suggestion-marker--active'),_0x12a43b=0xbc2),'deletion'==_0x3b5c63&&(_0x12a43b+=0x5),{'classes':_0x39a347,'attributes':{'data-suggestion':_0x5b3332,'data-author-id':_0xa0a1a3},'priority':_0x12a43b};}}),_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x5cbedb=>{_0x5cbedb['on']('addMarker:suggestion',(_0x172a6e,_0x22021d,_0x2fb85f)=>{if(!_0x2fb85f['options']['showSuggestionHighlights'])return;const _0x1c4d11=_0x22021d['item'];if(!_0x1c4d11)return;const _0xe69b9=_0x2fb85f['mapper']['toViewElement'](_0x1c4d11);_0x4cea83['model']['schema']['isObject'](_0x1c4d11)&&_0xe69b9&&!_0xe69b9['getCustomProperty']('widget')&&_0xe69b9['is']('containerElement')&&_0x514899(_0xe69b9,_0x2fb85f['writer']);},{'priority':'high'});}),_0x4cea83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf2d8fe,_0x46dadf)=>{if(!_0x46dadf['options']['showSuggestionHighlights'])return null;const {id:_0x531001,authorId:_0x544ebe,type:_0x5ccb97,subType:_0xcd2e80}=this['_splitMarkerName'](_0xf2d8fe['markerName']);return{'classes':['ck-suggestion-marker',_0x333147(_0x5ccb97,_0xcd2e80)],'priority':0xbb8,'attributes':{'data-suggestion':_0x531001,'data-author-id':_0x544ebe}};}});const _0x507f48=({showActiveMarkers:_0x47506a=!0x0,isAttributeSuggestion:_0x42f32e=!0x1}={})=>(_0x3503a0,_0x3f0f3c,_0x2502fe)=>{if(!_0x3f0f3c['item'])return;const {id:_0x597dcb,authorId:_0x3e85fb}=this['_splitMarkerName'](_0x3f0f3c['markerName']);if(_0x42f32e){const _0x129bb8=this['_suggestions']['get'](_0x597dcb),_0x196761=this['_getAttributeKey'](_0x129bb8);if(!this['_isBlockAttribute'](_0x196761))return;}if(_0x3f0f3c['item']['is']('selection'))return void _0x2502fe['consumable']['consume'](_0x3f0f3c['item'],_0x3503a0['name']);const _0x4e0081=_0x2502fe['mapper']['toViewElement'](_0x3f0f3c['item']);if(_0x3f0f3c['item']['is']('element')&&_0x4cea83['model']['schema']['isBlock'](_0x3f0f3c['item'])&&!_0x4e0081['getCustomProperty']('addHighlight')){_0x2502fe['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e0081),_0x2502fe['writer']['setAttribute']('data-suggestion',_0x597dcb,_0x4e0081),_0x2502fe['writer']['setAttribute']('data-author-id',_0x3e85fb,_0x4e0081),_0x2502fe['mapper']['bindElementToMarker'](_0x4e0081,_0x3f0f3c['markerName']),_0x47506a&&(this['activeMarkers']['includes'](_0x3f0f3c['markerName'])?_0x2502fe['writer']['addClass']('ck-suggestion-marker--active',_0x4e0081):_0x2502fe['writer']['removeClass']('ck-suggestion-marker--active',_0x4e0081));for(const _0x557f69 of _0x4cea83['model']['createRangeIn'](_0x3f0f3c['item'])['getItems']())_0x2502fe['consumable']['consume'](_0x557f69,_0x3503a0['name']);_0x2502fe['consumable']['consume'](_0x3f0f3c['item'],_0x3503a0['name']);}};_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x1d5cb2=>{_0x1d5cb2['on']('addMarker:suggestion:formatBlock',(_0x3938c8,_0x2bb502,_0x48cfe3)=>{_0x48cfe3['options']['showSuggestionHighlights']&&_0x507f48({'showActiveMarkers':!0x1})(_0x3938c8,_0x2bb502,_0x48cfe3);},{'priority':'highest'});}),_0x4cea83['conversion']['for']('dataDowncast')['add'](_0x4005cc=>{_0x4005cc['on']('addMarker:suggestion:attribute',(_0xdf9ddd,_0x341484,_0xcab73f)=>{_0xcab73f['options']['showSuggestionHighlights']&&_0x507f48({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xdf9ddd,_0x341484,_0xcab73f);},{'priority':'highest'});}),_0x4cea83['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x535b37,_0x5ed45d)=>{if(_0x5ed45d['options']['showSuggestionHighlights']){const {id:_0x5a0225,authorId:_0x19339d}=this['_splitMarkerName'](_0x535b37);return _0x535b37['includes'](':split')||_0x535b37['includes'](':merge')?{'group':'suggestion','name':_0x535b37['substr'](0xb),'attributes':{'data-suggestion':_0x5a0225,'data-author-id':_0x19339d}}:null;}return{'group':'suggestion','name':_0x535b37['substr'](0xb)};}}),_0x4cea83['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x269275,{writer:_0x47abbb})=>{let _0x4cae16='suggestion:'+_0x269275['getAttribute']('suggestion-type')+':'+_0x269275['getAttribute']('id');return _0x269275['getAttribute']('marker-count')&&(_0x4cae16+=':'+_0x269275['getAttribute']('marker-count')),_0x47abbb['createElement']('$marker',{'data-name':_0x4cae16});}}),_0x4cea83['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x8cc374=>{_0x8cc374['on']('addMarker:suggestion:formatBlock',_0x507f48(),{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x33764f=>{_0x33764f['on']('addMarker:suggestion:attribute',_0x507f48({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x25c35f=>{_0x25c35f['on']('removeMarker:suggestion:formatBlock',(_0x43021a,_0x4caee1,_0x233479)=>{const _0x5350e0=_0x233479['mapper']['markerNameToElements'](_0x4caee1['markerName']);if(_0x5350e0){for(const _0x39f538 of _0x5350e0)_0x39f538['getCustomProperty']('addHighlight')||(_0x233479['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39f538),_0x233479['writer']['removeAttribute']('data-suggestion',_0x39f538),_0x233479['writer']['removeAttribute']('data-author-id',_0x39f538),_0x233479['mapper']['unbindElementFromMarkerName'](_0x39f538,_0x4caee1['markerName']));}},{'priority':'high'});}),_0x4cea83['conversion']['for']('editingDowncast')['add'](_0x5e8e4e=>{_0x5e8e4e['on']('removeMarker:suggestion:attribute',(_0x595d16,_0x35c85d,_0x2498e8)=>{const _0xe3aed3=_0x2498e8['mapper']['markerNameToElements'](_0x35c85d['markerName']);if(!_0xe3aed3)return;const {id:_0x397aa7}=this['_splitMarkerName'](_0x35c85d['markerName']),_0x4074cf=this['_suggestions']['get'](_0x397aa7),_0x7df0ce=this['_getAttributeKey'](_0x4074cf);if(this['_isBlockAttribute'](_0x7df0ce)){for(const _0x544c30 of _0xe3aed3)_0x544c30['getCustomProperty']('addHighlight')||(_0x2498e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x544c30),_0x2498e8['writer']['removeAttribute']('data-suggestion',_0x544c30),_0x2498e8['writer']['removeAttribute']('data-author-id',_0x544c30),_0x2498e8['mapper']['unbindElementFromMarkerName'](_0x544c30,_0x35c85d['markerName']));}},{'priority':'high'});}),_0x4cea83['model']['document']['registerPostFixer'](_0x327efd=>{let _0x22399e=!0x1;const _0x17b106=Array['from'](_0x4cea83['model']['document']['differ']['getChangedMarkers']()),_0x20d467=new Set();for(const {name:_0xaf955c,data:_0x317ebc}of _0x17b106){const {group:_0x52ce9d,type:_0x4e8aa0,subType:_0x251c78,id:_0x1c6040}=this['_splitMarkerName'](_0xaf955c);if('suggestion'!==_0x52ce9d)continue;const _0x1a03d4=this['_suggestions']['get'](_0x1c6040);if(null!=_0x317ebc['newRange']){'formatInline'==_0x4e8aa0&&(_0x22399e=_0x22399e||Jt(_0x317ebc['newRange'],_0xaf955c,_0x327efd,_0x4cea83['model']['schema']));const _0x4e43a4='attribute'==_0x4e8aa0&&this['_isBlockAttribute'](_0x251c78['split']('|')[0x0]);if(_0x317ebc['newRange']['isCollapsed']||'$graveyard'==_0x317ebc['newRange']['root']['rootName']||'formatBlock'==_0x4e8aa0&&!Ht(_0x317ebc['newRange'])||_0x4e43a4&&!Ht(_0x317ebc['newRange'])||'deletion'==_0x4e8aa0&&!(!Lt(_0x292a0f=_0x317ebc['newRange'])&&!function(_0x67aec){return _0x67aec['start']['parent']==_0x67aec['end']['nodeBefore']&&_0x67aec['start']['isAtEnd'];}(_0x292a0f)))_0x327efd['removeMarker'](_0xaf955c),_0x22399e=!0x0;else{if(!_0x1a03d4||!_0x1a03d4['isInContent'])continue;if(_0x317ebc['newRange']&&_0x317ebc['oldRange']&&_0x317ebc['newRange']['isEqual'](_0x317ebc['oldRange']))continue;_0x20d467['add'](_0x1a03d4);}}}var _0x292a0f;return _0x20d467['size']>0x0&&(_0x22399e=!!this['_joinWithAdjacentSuggestions'](_0x20d467)||_0x22399e),_0x22399e;}),_0x4cea83['model']['document']['registerPostFixer'](_0x55f098=>{let _0x565d8d=!0x1;for(const _0x1228c6 of _0x4cea83['model']['document']['differ']['getChanges']())if('insert'==_0x1228c6['type'])for(const _0x3c6977 of this['_suggestions']['values']()){if(_0x3c6977['isMultiRange']||!_0x3c6977['isInContent'])continue;const _0x26becf='formatBlock'==_0x3c6977['type'],_0x315fea=this['_getAttributeKey'](_0x3c6977),_0x44f119=_0x315fea&&this['_isBlockAttribute'](_0x315fea);if(!_0x26becf&&!_0x44f119)continue;const _0x294d88=_0x3c6977['getFirstRange']();if(_0x294d88['start']['parent']!=_0x294d88['end']['parent']&&!_0x294d88['end']['isAtEnd']){const _0x472132=_0x4cea83['model']['createPositionAt'](_0x294d88['start']['nodeAfter'],'end'),_0x4bd443=_0x4cea83['model']['createRange'](_0x294d88['start'],_0x472132);_0x55f098['updateMarker'](_0x3c6977['getFirstMarker'](),{'range':_0x4bd443}),_0x565d8d=!0x0;}}return _0x565d8d;}),_0x4cea83['model']['document']['registerPostFixer'](_0x389ac0=>this['_processAttributeChanges'](_0x389ac0)),_0x4cea83['model']['document']['registerPostFixer'](_0x4f01fe=>!_0x4f01fe['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f01fe)),_0x4cea83['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4cea83['model']['document']['on']('change:data',(_0x415390,_0x374984)=>{if(!_0x374984['isLocal']||_0x374984['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34558b=_0x4cea83['model']['document']['differ']['getChanges']();if(0x0==_0x34558b['length'])return;const _0x556682=[],_0x549384=_0x34558b['filter'](_0x2e8aee=>'attribute'==_0x2e8aee['type']),_0x561454=_0x34558b['filter'](_0x8842cc=>'insert'==_0x8842cc['type']&&'$text'!=_0x8842cc['name']);for(const _0x5c0c38 of _0x549384)this['_isRegisteredAttribute'](_0x5c0c38['attributeKey'])&&_0x556682['push']({'key':_0x5c0c38['attributeKey'],'newValue':_0x5c0c38['attributeNewValue'],'oldValue':_0x5c0c38['attributeOldValue'],'range':qt(_0x5c0c38['range'],_0x4cea83['model'])});for(const _0x361e15 of _0x561454){if('rename'!=_0x361e15['action']&&'refresh'!=_0x361e15['action'])continue;const _0x53c284=zt(_0x361e15['position']['nodeAfter'],_0x4cea83['model']),_0x5995dc=_0x361e15['before'];'rename'==_0x361e15['action']&&_0x556682['push']({'key':u,'newValue':_0x361e15['name'],'oldValue':_0x5995dc['name'],'range':_0x53c284});for(const [_0x4d70e9,_0x35c843]of _0x5995dc['attributes']){if(!this['_isRegisteredAttribute'](_0x4d70e9))continue;const _0x2e9ea1=_0x361e15['attributes']['get'](_0x4d70e9);_0x35c843!==_0x2e9ea1&&_0x556682['push']({'key':_0x4d70e9,'newValue':_0x2e9ea1,'oldValue':_0x35c843,'range':_0x53c284});}for(const [_0x464178,_0x134af6]of _0x361e15['attributes'])this['_isRegisteredAttribute'](_0x464178)&&(_0x5995dc['attributes']['has'](_0x464178)||_0x556682['push']({'key':_0x464178,'newValue':_0x134af6,'oldValue':null,'range':_0x53c284}));}0x0!=_0x556682['length']&&_0x4cea83['model']['enqueueChange'](_0x374984,_0x3d0946=>{const _0x5e293a=_0x425596();for(const {range:_0x4ebb36,key:_0x1f4127,oldValue:_0x5e9d68,newValue:_0x152155}of _0x556682)this['markAttributeChange'](_0x4ebb36,_0x1f4127,_0x5e9d68,_0x152155,{'groupId':_0x5e293a});this['_reduceExistingSuggestions'](_0x3d0946,_0x556682);});},{'priority':'lowest'}),_0x4cea83['model']['markers']['on']('update:suggestion',(_0x1d47be,_0x1790ee,_0x31767f)=>{if(null==_0x31767f){const {id:_0x42e7c4}=this['_splitMarkerName'](_0x1790ee['name']),_0x511d82=this['_suggestions']['get'](_0x42e7c4);_0x511d82&&_0x511d82['addMarkerName'](_0x1790ee['name']);}}),_0x4cea83['model']['document']['on']('change:data',()=>{const _0x10d3da=Array['from'](_0x4cea83['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d92d1=>'suggestion'===this['_splitMarkerName'](_0x2d92d1['name'])['group']);if(0x0===_0x10d3da['length'])return;_0x10d3da['sort']((_0x3b7ef1,_0x260fc9)=>{const _0x54de4b=_0x3b7ef1['data']['oldRange'],_0x511b3f=_0x260fc9['data']['oldRange'];return null===_0x54de4b&&null===_0x511b3f?0x0:null===_0x54de4b&&null!==_0x511b3f?-0x1:null!==_0x54de4b&&null===_0x511b3f?0x1:_0x54de4b['start']['isBefore'](_0x511b3f['start'])?-0x1:0x1;});const _0x27907d=new Set(),_0xd7cd3c=new Set();for(const {name:_0x22d0d4,data:_0x2dadc5}of _0x10d3da){const {id:_0xe9f75b}=this['_splitMarkerName'](_0x22d0d4);if(null===_0x2dadc5['oldRange']){const _0x1ebebb=this['_handleNewSuggestionMarker'](_0x22d0d4);_0xd7cd3c['add'](_0x1ebebb);}else{const _0x37a59d=this['_suggestions']['get'](_0xe9f75b);null!==_0x2dadc5['newRange']||_0x37a59d['isInContent']?(_0x27907d['add'](_0x37a59d['head']),_0xd7cd3c['add'](_0x37a59d)):this['_removeSuggestion'](_0x37a59d);}}_0xd7cd3c['size']>0x0&&this['_refreshSuggestionsChain'](_0xd7cd3c);for(const _0x8c4325 of _0x27907d)this['fire']('suggestionChanged',_0x8c4325);}),_0x4cea83['model']['on']('applyOperation',(_0x18c174,_0x23bc10)=>{const _0x1584d5=_0x23bc10[0x0];if(!this['_suggestions']['size'])return;if(!_0x1584d5['isDocumentOperation'])return;if(_0x1584d5['batch']['isUndo']||!_0x1584d5['batch']['isLocal'])return;let _0x4860ec,_0x45b7ee;switch(_0x1584d5['type']){case'insert':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['position']),_0x45b7ee=_0x4860ec['getShiftedBy'](_0x1584d5['howMany']);break;case'split':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['splitPosition']),_0x45b7ee=_0x4cea83['model']['createPositionAt'](_0x1584d5['moveTargetPosition']);break;case'move':_0x4860ec=_0x4cea83['model']['createPositionAt'](_0x1584d5['targetPosition']),_0x45b7ee=_0x4860ec['getShiftedBy'](_0x1584d5['howMany']);break;default:return;}const _0x64f1ae=_0x4cea83['model']['createRange'](_0x4860ec,_0x45b7ee);_0x4cea83['model']['change'](()=>{for(const {suggestion:_0x4ff278,meta:_0xc188}of this['_findSuggestions'](_0x64f1ae)){if(_0x4ff278['isMultiRange'])continue;if('formatInline'==_0x4ff278['type'])continue;const _0x4502e7=this['_getAttributeKey'](_0x4ff278);if(_0x4502e7&&this['_isBlockAttribute'](_0x4502e7)&&'split'!=_0x1584d5['type'])continue;const _0x290146=_0x4ff278['data']&&_0x4ff278['data']['multipleBlocks'];('formatBlock'!=_0x4ff278['type']||'split'==_0x1584d5['type']&&!_0x290146)&&(_0xc188['containsRangeInObject']||'insertion'==_0x4ff278['type']&&_0xc188['isOwn']||_0x4ff278['getFirstRange']()['containsRange'](_0x64f1ae)&&this['_breakSuggestionMarker'](_0x4ff278,_0x4860ec,_0x45b7ee));}});},{'priority':'lowest'}),_0x4cea83['model']['on']('deleteContent',(_0x15ec91,_0x29c69c)=>{const _0x52b72b=_0x29c69c[0x0],_0x663147=_0x29c69c[0x1];if(_0x663147&&_0x663147['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x52b72b['isCollapsed'])return;const _0x4048cb=_0x4cea83['model']['schema'],{start:_0x26292e,end:_0xc259e1}=_0x52b72b['getFirstRange'](),_0xc3ecb6=_0x26292e['nodeAfter']&&_0x4048cb['isLimit'](_0x26292e['nodeAfter'])?null:_0x4048cb['getNearestSelectionRange'](_0x26292e,'forward'),_0x809d20=_0xc259e1['nodeBefore']&&_0x4048cb['isLimit'](_0xc259e1['nodeBefore'])?null:_0x4048cb['getNearestSelectionRange'](_0xc259e1,'backward'),_0x1c2f45=_0x4cea83['model']['createRange'](_0xc3ecb6?_0xc3ecb6['start']:_0x26292e,_0x809d20?_0x809d20['end']:_0xc259e1);_0x4cea83['model']['change'](_0x40cade=>{this['markDeletion'](_0x1c2f45);const _0xd8f472=_0x4cea83['model']['schema']['getNearestSelectionRange'](_0x1c2f45['start']);_0x52b72b['is']('documentSelection')?_0x40cade['setSelection'](_0xd8f472):_0x52b72b['setTo'](_0xd8f472);}),_0x15ec91['stop']();},{'priority':_0x15078e['normal']+0xa}),_0x4cea83['model']['on']('insertContent',(_0x5b5923,_0x1bee73)=>{const _0x3c28ba=_0x1bee73[_0x1bee73['length']-0x1];_0x3c28ba&&_0x3c28ba['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4cea83['model']['change'](()=>{let _0x36b3c9=_0x4cea83['model']['insertContent'](_0x1bee73[0x0],_0x1bee73[0x1],_0x1bee73[0x2],{'forceDefaultExecution':!0x0});if(!_0x36b3c9)return;_0x5b5923['return']=_0x36b3c9['clone']();const _0x209c45=_0x36b3c9['end']['nodeBefore'],_0x29ab6c=_0x4cea83['model']['schema'];_0x209c45&&_0x29ab6c['isBlock'](_0x209c45)&&!_0x29ab6c['isObject'](_0x209c45)&&(_0x36b3c9=_0x4cea83['model']['createRange'](_0x36b3c9['start'],_0x4cea83['model']['createPositionAt'](_0x209c45,'end'))),this['markInsertion'](_0x36b3c9);}),_0x5b5923['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12961f=new x(_0x4cea83,this['_suggestions']);_0x4cea83['commands']['add']('acceptSuggestion',_0x12961f),this['enableCommand']('acceptSuggestion');const _0x4932ba=new O(_0x4cea83,this['_suggestions']);_0x4cea83['commands']['add']('discardSuggestion',_0x4932ba),this['enableCommand']('discardSuggestion'),_0x4cea83['commands']['add']('acceptAllSuggestions',new R(_0x4cea83,_0x12961f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4cea83['commands']['add']('discardAllSuggestions',new R(_0x4cea83,_0x4932ba,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4cea83['commands']['add']('acceptSelectedSuggestions',new E(_0x4cea83,_0x12961f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4cea83['commands']['add']('discardSelectedSuggestions',new E(_0x4cea83,_0x4932ba,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x43f0b4=_0x4cea83['plugins']['get']('CommentsRepository');this['listenTo'](_0x43f0b4,'addComment',(_0x2c7ccd,{threadId:_0x193f29})=>{const _0x4bacfa=this['_suggestions']['get'](_0x193f29);_0x4bacfa&&_0x4bacfa['commentThread']&&0x1===_0x4bacfa['commentThread']['length']&&this['_updateSuggestionData'](_0x193f29,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x43f0b4,'removeComment',(_0x200c5a,{threadId:_0x88c06d})=>{const _0x1610c9=this['_suggestions']['get'](_0x88c06d);_0x1610c9&&_0x1610c9['commentThread']&&!_0x1610c9['commentThread']['length']&&this['_updateSuggestionData'](_0x88c06d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ddcaf){const _0x35db01=_0x1ada26([0x46,0x72,0x52,0x74,0x32,0x43,0x37,0x42,0x6f,0x6d,0x36,0x58,0x4f,0x61,0x66,0x59,0x4a,0x6e,0x77,0x6a,0x69,0x35,0x48,0x49,0x71,0x64,0x54,0x38,0x39,0x6b,0x6c,0x44,0x4c,0x7a,0x31,0x57,0x4d,0x76,0x45,0x55,0x73,0x53,0x34,0x30,0x79,0x47,0x65,0x50,0x51,0x67,0x5a,0x4b,0x68,0x41,0x33,0x75,0x62,0x78,0x70,0x63,0x4e,0x56]),_0x4f8a68=0x2b1cd88e,_0x17c925=0x2b1bb04e^_0x4f8a68,_0x4ff5b7=window[_0x1ada26([0x44,0x61,0x74,0x65])][_0x1ada26([0x6e,0x6f,0x77])](),_0x1f6039=_0x3ddcaf[_0x1ada26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3128f2=new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7ccc=>{_0x1f6039[_0x1ada26([0x6f,0x6e,0x63,0x65])](_0x1ada26([0x72,0x65,0x61,0x64,0x79]),_0x2c7ccc);}),_0x1aae80={[_0x1ada26([0x6b,0x74,0x79])]:_0x1ada26([0x45,0x43]),[_0x1ada26([0x75,0x73,0x65])]:_0x1ada26([0x73,0x69,0x67]),[_0x1ada26([0x63,0x72,0x76])]:_0x1ada26([0x50,0x2d,0x32,0x35,0x36]),[_0x1ada26([0x78])]:_0x1ada26([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]),[_0x1ada26([0x79])]:_0x1ada26([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]),[_0x1ada26([0x61,0x6c,0x67])]:_0x1ada26([0x45,0x53,0x32,0x35,0x36])},_0x3b6c96=_0x1f6039[_0x1ada26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ada26([0x67,0x65,0x74])](_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b74e2(){let _0x398172,_0xd3d54e=null,_0x1b715a=null;try{if(_0x3b6c96==_0x1ada26([0x47,0x50,0x4c]))return _0x1ada26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x398172=_0x65d73a(),!_0x398172)return _0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x398172[_0x1ada26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b715a=_0x2d766e(_0x398172[_0x1ada26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x398172[_0x1ada26([0x6a,0x74,0x69])])),await _0x42216d()?_0xe2f2e2()?_0x45473f()?_0x1ada26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ec13a()?(_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ada26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd3d54e=_0x582ff6(_0x1ada26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ada26([0x74,0x72,0x69,0x61,0x6c])&&(_0xd3d54e=_0x582ff6(_0x1ada26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x210149()):_0x1ada26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ada26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e9e14){return _0x1ada26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45473f(){const _0x5e7fc1=[_0x1ada26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ada26([0x74,0x72,0x69,0x61,0x6c])][_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ff5b7/0x3e8:0xe10*_0x17c925;return _0x398172[_0x1ada26([0x65,0x78,0x70])]<_0x5e7fc1;}function _0xe2f2e2(){const _0x26b3ab=_0x398172[_0x1ada26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26b3ab)return!0x1;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x2a])))return!0x0;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x54,0x43])))return!0x0;if(_0x26b3ab[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x52,0x54,0x43]))){if(_0x40bc91())return!0x0;if(_0x15fe03()||_0xe25b3a())return!0x0;}return!0x1;}function _0x1ec13a(){const _0x341923=_0x398172[_0x1ada26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x341923||0x0==_0x341923[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508461}=new URL(window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x341923[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508461))return!0x0;const _0x94dc1b=_0x508461[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e]));return _0x341923[_0x1ada26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf9f403=>_0xf9f403[_0x1ada26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ada26([0x2a])))[_0x1ada26([0x6d,0x61,0x70])](_0x12d423=>_0x12d423[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e])))[_0x1ada26([0x73,0x6f,0x6d,0x65])](_0x416d52=>_0x94dc1b[_0x1ada26([0x65,0x76,0x65,0x72,0x79])]((_0x187213,_0x186586)=>_0x416d52[_0x186586]===_0x187213||_0x416d52[_0x186586]===_0x1ada26([0x2a])));}function _0x210149(){return _0xd3d54e&&_0x1b715a?new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3406,_0x97bcaf)=>{_0xd3d54e[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x1e3406,_0x97bcaf),_0x1b715a[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x1eb24e=>{_0x1eb24e!=_0x1ada26([0x56,0x61,0x6c,0x69,0x64])&&_0x1e3406(_0x1eb24e);},_0x97bcaf);}):_0xd3d54e||_0x1b715a||_0x1ada26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d766e(_0x4a83e4,_0xeca74e){return new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x162f43=>{if(_0x4b4313())return _0x162f43(_0x1ada26([0x56,0x61,0x6c,0x69,0x64]));_0x48fb56(),_0x1f6039[_0x1ada26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11832c=!0x1;const _0x1495a5=_0x425596();function _0x50c702(_0x1eebe7){return!!_0x1eebe7&&(typeof _0x1eebe7===_0x1ada26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1eebe7===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1eebe7[_0x1ada26([0x74,0x68,0x65,0x6e])]===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1eebe7[_0x1ada26([0x63,0x61,0x74,0x63,0x68])]===_0x1ada26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6e06c6(_0x54a2f8){_0x258481(_0x54a2f8)[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x5b236c=>{if(!_0x5b236c||_0x5b236c[_0x1ada26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ada26([0x6f,0x6b]))return _0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x591430(_0x59f360(_0x1495a5+_0xeca74e))!=_0x5b236c[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ada26([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x5ec710=>(_0x1e067c(),_0x5ec710),()=>{const _0x4cfc71=_0x336b4c();return null==_0x4cfc71?(_0x1e067c(),_0x1ada26([0x56,0x61,0x6c,0x69,0x64])):_0x1ada26(_0x4ff5b7-_0x4cfc71>(0xf105c8e^_0x4f8a68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x162f43)[_0x1ada26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d90b9=0x2b2a360e^_0x4f8a68;function _0x1e067c(){const _0xdc4916=_0x1ada26([0x6c,0x6c,0x63,0x74,0x2d])+_0x591430(_0x59f360(_0x4a83e4)),_0x4c43d8=_0x1a0d90(_0x591430(window[_0x1ada26([0x4d,0x61,0x74,0x68])][_0x1ada26([0x63,0x65,0x69,0x6c])](_0x4ff5b7/_0x4d90b9)));window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ada26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdc4916,_0x4c43d8);}function _0x336b4c(){const _0x3f4c23=_0x1ada26([0x6c,0x6c,0x63,0x74,0x2d])+_0x591430(_0x59f360(_0x4a83e4)),_0x1d0cb8=window[_0x1ada26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ada26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f4c23);return _0x1d0cb8?window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0d90(_0x1d0cb8),0x10)*_0x4d90b9:null;}function _0x258481(_0x4880f4){return new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4567ad,_0x68e9e8)=>{_0x4880f4[_0x1ada26([0x74,0x68,0x65,0x6e])](_0x4567ad,_0x68e9e8),window[_0x1ada26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x68e9e8,0x2b1d0c4e^_0x4f8a68);});}}_0x1f6039[_0x1ada26([0x6f,0x6e])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x296c9c,_0x1df9f4)=>{if(_0x1df9f4[0x0]!=_0x4a83e4)return _0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1df9f4[0x1]={..._0x1df9f4[0x1],[_0x1ada26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1495a5};},{[_0x1ada26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ada26([0x68,0x69,0x67,0x68])}),_0x1f6039[_0x1ada26([0x6f,0x6e])](_0x1ada26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc4ac=>{_0x50c702(_0x2fc4ac[_0x1ada26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11832c=!0x0,_0x6e06c6(_0x2fc4ac[_0x1ada26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ada26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ada26([0x6c,0x6f,0x77])}),_0x3128f2[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>{_0x11832c||_0x162f43(_0x1ada26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b4313(){return _0x1f6039[_0x1ada26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ada26([0x76,0x69,0x65,0x77])][_0x1ada26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ada26([0x61,0x75,0x74,0x6f]);}function _0x48fb56(){_0x1f6039[_0x1ada26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ada26([0x76,0x69,0x65,0x77])][_0x1ada26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ada26([0x61,0x75,0x74,0x6f]);}}function _0x582ff6(_0x29aa1f){const _0x4a03b4=[new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e80cb=>setTimeout(_0x3e80cb,0x2b15e642^_0x4f8a68)),_0x3128f2[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38465a=>{let _0x556f65=0x0;_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x6f,0x6e])](_0x1ada26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1dce2a,_0x438a1b)=>{_0x438a1b[0x0][_0x1ada26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x556f65++,_0x556f65==(0x2b1cd976^_0x4f8a68)&&(_0x38465a(),_0x1dce2a[_0x1ada26([0x6f,0x66,0x66])]());});}))];return window[_0x1ada26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ada26([0x72,0x61,0x63,0x65])](_0x4a03b4)[_0x1ada26([0x74,0x68,0x65,0x6e])](()=>_0x29aa1f);}async function _0x753077(){await _0x3128f2,_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52c200,_0x1f6039[_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ada26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52c200,_0x1f6039[_0x1ada26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ada26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40bc91(){return _0x47d0fc(_0x1ada26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3bad92(_0x1ada26([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ada26([0x73,0x74,0x61,0x74,0x65])]==_0x1ada26([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x15fe03(){return _0x47d0fc(_0x1ada26([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xe25b3a(){return _0x47d0fc(_0x1ada26([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x193d63(_0x52a5c4){const _0x5db199=_0x450125();_0x1f6039[_0x5db199]=_0x1ada26([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52a5c4,_0x52a5c4!=_0x1ada26([0x56,0x61,0x6c,0x69,0x64])&&_0x753077();}function _0x450125(){const _0x1d6168=window[_0x1ada26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ada26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ada26([0x6e,0x6f,0x77])]())[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ada26([0x2e]),'');let _0x521c4c=_0x1ada26([0x46]);for(let _0x11205e=0x0;_0x11205e<_0x1d6168[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11205e+=0x2){let _0x37449b=window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6168[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11205e,_0x11205e+0x2));_0x37449b>=_0x35db01[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37449b-=_0x35db01[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x521c4c+=_0x35db01[_0x37449b];}return _0x521c4c;}function _0x65d73a(){const _0x537915=_0x3b6c96[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e]));if(0x3!=_0x537915[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e5033(_0x537915[0x1]);function _0x4e5033(_0x22db33){const _0x21aee2=_0x36e6ce(_0x22db33);return _0x21aee2&&_0x274015()?_0x21aee2:null;function _0x274015(){const _0x1d6abf=_0x21aee2[_0x1ada26([0x6a,0x74,0x69])],_0x40cc74=window[_0x1ada26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6abf[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d6abf[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x416c71={..._0x21aee2,[_0x1ada26([0x6a,0x74,0x69])]:_0x1d6abf[_0x1ada26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d6abf[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x416c71[_0x1ada26([0x76,0x63])],_0x59f360(_0x416c71)==_0x40cc74;}}}async function _0x42216d(){let _0x2afa92=!0x0;try{const _0xd47c0=_0x3b6c96[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])](_0x1ada26([0x2e])),[_0x168bf1,_0xb072e5,_0xc027df]=_0xd47c0;return _0x4f0908(_0x168bf1),await _0x22ce7c(_0x168bf1,_0xb072e5,_0xc027df),_0x2afa92;}catch(_0x24b021){return!0x1;}function _0x4f0908(_0x91ad30){const _0x224aca=_0x36e6ce(_0x91ad30);_0x224aca&&_0x224aca[_0x1ada26([0x61,0x6c,0x67])]==_0x1ada26([0x45,0x53,0x32,0x35,0x36])||(_0x2afa92=!0x1);}async function _0x22ce7c(_0xd61a68,_0x3f7755,_0x2b8132){const _0x42ae34=window[_0x1ada26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ada26([0x66,0x72,0x6f,0x6d])](_0x26abe2(_0x2b8132),_0x15e0fe=>_0x15e0fe[_0x1ada26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5392c6=new window[(_0x1ada26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ada26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd61a68+_0x1ada26([0x2e])+_0x3f7755),_0x38cbb6=window[_0x1ada26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ada26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38cbb6)return;const _0xa335a0=await _0x38cbb6[_0x1ada26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ada26([0x6a,0x77,0x6b]),_0x1aae80,{[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x45,0x43,0x44,0x53,0x41]),[_0x1ada26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ada26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38cbb6[_0x1ada26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x45,0x43,0x44,0x53,0x41]),[_0x1ada26([0x68,0x61,0x73,0x68])]:{[_0x1ada26([0x6e,0x61,0x6d,0x65])]:_0x1ada26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa335a0,_0x42ae34,_0x5392c6)||(_0x2afa92=!0x1);}}function _0x36e6ce(_0x204b15){return _0x204b15[_0x1ada26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ada26([0x65,0x79]))?JSON[_0x1ada26([0x70,0x61,0x72,0x73,0x65])](_0x26abe2(_0x204b15)):null;}function _0x26abe2(_0x1f823f){return window[_0x1ada26([0x61,0x74,0x6f,0x62])](_0x1f823f[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ada26([0x2b]))[_0x1ada26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ada26([0x2f])));}function _0x59f360(_0x3fc3c7){let _0x4dd3e3=0x1505;function _0x12f286(_0x387c94){for(let _0x5567ae=0x0;_0x5567ae<_0x387c94[_0x1ada26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5567ae++){const _0x2de045=_0x387c94[_0x1ada26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5567ae);_0x4dd3e3=(_0x4dd3e3<<0x5)+_0x4dd3e3+_0x2de045,_0x4dd3e3&=_0x4dd3e3;}}function _0x2c81e0(_0x121199){Array[_0x1ada26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121199)?_0x121199[_0x1ada26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c81e0):_0x121199&&typeof _0x121199==_0x1ada26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ada26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121199)[_0x1ada26([0x73,0x6f,0x72,0x74])]()[_0x1ada26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5940a4,_0x43e3d3])=>{_0x12f286(_0x5940a4),_0x2c81e0(_0x43e3d3);}):_0x12f286(window[_0x1ada26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121199));}return _0x2c81e0(_0x3fc3c7),_0x4dd3e3>>>0x0;}function _0x591430(_0x100ef9){return _0x100ef9[_0x1ada26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ada26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ada26([0x30]));}function _0x1a0d90(_0xb9ee11){return _0xb9ee11[_0x1ada26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ada26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ada26([0x6a,0x6f,0x69,0x6e])]('');}function _0x47d0fc(_0x368d05){return _0x1f6039[_0x1ada26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ada26([0x68,0x61,0x73])](_0x368d05);}function _0x3bad92(_0x4be7c7){return _0x1f6039[_0x1ada26([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ada26([0x67,0x65,0x74])](_0x4be7c7);}function _0x52c200(){}function _0x1ada26(_0x58c121){return _0x58c121['map'](_0x3758af=>String['fromCharCode'](_0x3758af))['join']('');}_0x193d63(await _0x5b74e2());}(this);}set['adapter'](_0x21ddbb){if(this['_adapter'])throw new _0x59ef33('track-changes-adapter-already-set',this);this['_adapter']=_0x21ddbb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ab5b6=!0x1,toJSON:_0x4dd857=!0x1}={}){const _0xdae95a=[];for(const _0x4c365b of this['_suggestions']['values']())_0x2ab5b6&&!_0x4c365b['isInContent']||_0xdae95a['push'](_0x4c365b);return _0x4dd857?_0xdae95a['map'](_0x3208e8=>_0x3208e8['toJSON']()):_0xdae95a;}['getSuggestion'](_0x337039){const _0x4175e9=this['_suggestions']['get'](_0x337039);if(!_0x4175e9)throw new _0x59ef33('track-changes-suggestion-not-found',this);return _0x4175e9;}['hasSuggestion'](_0xc88a5b){return this['_suggestions']['has'](_0xc88a5b);}['addSuggestionData'](_0x4ba547){const {authorId:_0x56e00d,id:_0x37a8b1,originalSuggestionId:_0x4e0153,attributes:_0x5f3bd7}=_0x4ba547,[_0x334bf1,_0x1efc59]=_0x4ba547['type']['split'](':'),_0x20b821=this['_suggestions']['get'](_0x37a8b1)||this['_createSuggestion'](_0x334bf1,_0x1efc59,_0x37a8b1,_0x56e00d,_0x5f3bd7,_0x4e0153);if(this['_addThreadToSuggestion'](_0x20b821),this['_checkSuggestionCorrectness'](_0x20b821,_0x334bf1,_0x1efc59||null,_0x56e00d),_0x20b821['createdAt']=_0x4ba547['createdAt'],_0x20b821['_isDataLoaded']=!0x0,_0x5f3bd7&&_0x5f3bd7['@external']){const _0x4dccad=_0x5f3bd7['@external'],_0x5d326c=this['_getExternalAuthor'](_0x4dccad['authorName']);_0x20b821['authoredAt']=_0x4dccad['createdAt'],_0x20b821['author']=_0x5d326c,_0x20b821['isExternal']=!0x0;}else _0x20b821['authoredAt']=_0x4ba547['createdAt'];switch(_0x4ba547['data']&&(_0x20b821['data']=_0x4ba547['data']),_0x4ba547['attributes']&&(_0x20b821['attributes']=_0x4ba547['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20b821['_saved']=!0x0),this['_suggestionState']['get'](_0x20b821)){case'notReady':this['_suggestionState']['set'](_0x20b821,'dataReady');break;case'markerReady':_0x20b821['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20b821])),this['_refreshSuggestionsChain'](new Set([_0x20b821])),this['_suggestionState']['set'](_0x20b821,'ready'),this['fire']('suggestionLoaded',_0x20b821)):this['_suggestionState']['set'](_0x20b821,'removed');}return _0x20b821;}['acceptSuggestion'](_0x2bf944){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52061e of _0x2bf944['getAllAdjacentSuggestions']())_0x52061e['accept']();});});}['discardSuggestion'](_0x47c015){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d3d34 of _0x47c015['getAllAdjacentSuggestions']())_0x2d3d34['discard']();});});}['enableCommand'](_0x18f0aa,_0x40b08d){const _0x377ece=this['editor']['commands']['get'](_0x18f0aa);if(!_0x377ece)throw new _0x59ef33('track-changes-command-not-found',this,{'commandName':_0x18f0aa});if(this['_enabledCommands']['has'](_0x377ece))throw new _0x59ef33('track-changes-enable-command-twice',this,{'commandName':_0x18f0aa});this['_enabledCommands']['add'](_0x377ece),_0x40b08d&&_0x377ece['on']('execute',(_0x521345,_0x1d1ba0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d1ba0['length']>0x0&&_0x1d1ba0[_0x1d1ba0['length']-0x1]&&_0x1d1ba0[_0x1d1ba0['length']-0x1]['forceDefaultExecution']?_0x1d1ba0['pop']():(_0x521345['return']=_0x40b08d((..._0x79c967)=>_0x377ece['execute'](..._0x79c967,{'forceDefaultExecution':!0x0}),..._0x1d1ba0),_0x521345['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a1616){let _0x7d9606,_0x3c7ab7;const _0xacfda9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7d9606=_0x2a1616();}catch(_0x1518b2){_0x3c7ab7=_0x1518b2;}return _0xacfda9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c7ab7&&_0x59ef33['rethrowUnexpectedError'](_0x3c7ab7,this),_0x7d9606;}['markInsertion'](_0x5a82d4,_0x27194c=null,_0x4caf8b={}){if(_0x5a82d4['isCollapsed'])return null;const _0x237fe3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4caf8b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31d7be,meta:_0xc05301}of this['_findSuggestions'](_0x5a82d4,'insertion'))if(_0xc05301['isOwn']){if(!_0xc05301['isNextTo']){if(_0xc05301['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x31d7be,_0x4caf8b))continue;return _0x31d7be;}if(Xt(_0x31d7be,_0x4caf8b))return _0x31d7be;this['_breakSuggestionMarker'](_0x31d7be,_0x5a82d4['start'],_0x5a82d4['end']);break;}if(_0x27194c==_0x31d7be['subType']&&Xt(_0x31d7be,_0x4caf8b)){const _0x2ea6c3=_0x31d7be['getFirstRange']();return _0x2ea6c3['start']['isEqual'](_0x5a82d4['end'])?this['_setSuggestionRange'](_0x31d7be,this['_model']['createRange'](_0x5a82d4['start'],_0x2ea6c3['end'])):this['_setSuggestionRange'](_0x31d7be,this['_model']['createRange'](_0x2ea6c3['start'],_0x5a82d4['end'])),_0x31d7be;}}const _0x4a7504=_0x425596(),_0xe9c912=_0x237fe3['id'],_0x5a356b=_0x27194c?'insertion:'+_0x27194c:'insertion',_0x3b31b9=this['_setSuggestionData']({'id':_0x4a7504,'type':_0x5a356b,'createdAt':new Date(),'authorId':_0xe9c912,'attributes':_0x4caf8b});return this['_addSuggestionMarker'](_0x5a356b,_0x4a7504,_0xe9c912,_0x5a82d4),_0x3b31b9;}['markMultiRangeInsertion'](_0x29ea0d,_0x1019c8='multi',_0x1a5ab9={}){const _0x1660f1=this['editor']['plugins']['get']('Users')['me'],_0x13f5cf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1019c8,'join');this['_trackingSessionId']&&(_0x1a5ab9['trackingSessionId']=this['_trackingSessionId']);for(const _0x20e284 of this['getSuggestions']())if(_0x20e284['author']['id']==_0x1660f1['id']&&'insertion'==_0x20e284['type']&&_0x20e284['subType']==_0x1019c8&&Xt(_0x20e284,_0x1a5ab9)&&(_0x13f5cf(_0x20e284['getRanges'](),_0x29ea0d)||_0x13f5cf(_0x29ea0d,_0x20e284['getRanges']()))){for(const _0x49bd78 of _0x29ea0d)_0x20e284['addRange'](_0x49bd78);return _0x20e284;}for(const {suggestion:_0x550825,meta:_0x190e49}of this['_findSuggestions'](_0x29ea0d,'insertion')){if(!_0x190e49['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x190e49['containsRangeInObject'])continue;if(!Xt(_0x550825,_0x1a5ab9))continue;let _0x2b6e59=!0x0;for(const _0x73c2de of _0x550825['getRanges']())for(const _0x1ad27b of _0x29ea0d)if(!_0x73c2de['containsRange'](_0x1ad27b)){_0x2b6e59=!0x1;break;}if(_0x2b6e59)return _0x550825;}const _0x5b2ac3=_0x425596(),_0x1b7b60=_0x1660f1['id'],_0x44be85='insertion:'+_0x1019c8,_0x114694=this['_setSuggestionData']({'id':_0x5b2ac3,'type':_0x44be85,'createdAt':new Date(),'authorId':_0x1b7b60,'attributes':_0x1a5ab9});for(const _0x92832b of _0x29ea0d)this['_addSuggestionMarker'](_0x44be85,_0x5b2ac3,_0x1b7b60,_0x92832b,o['getMultiRangeId']());return _0x114694;}['markInlineFormat'](_0x5bd66f,_0x2f3499,_0xb6961b=null,_0x3039aa={}){if(_0xb6961b=_0xb6961b||Kt(_0x2f3499),_0x5bd66f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3039aa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x530116=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb6961b,'accept');return this['forceDefaultExecution'](()=>_0x530116([_0x5bd66f],_0x2f3499,_0x3039aa)),null;}const _0x5b4b49=this['editor']['plugins']['get']('Users')['me'],_0x67fbbc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fb210,meta:_0x4cc8c9}of this['_findSuggestions'](_0x5bd66f,'insertion'))_0x4cc8c9['isOwn']&&!_0x4cc8c9['isInsideObject']&&_0x67fbbc['push'](..._0x3fb210['getRanges']());}const _0x5f1c0c=function(_0x3d3b35,_0x2688ee){const _0x200252=[];for(const _0x429556 of _0x2688ee){const _0x490c41=_0x3d3b35['getIntersection'](_0x429556);_0x490c41&&_0x200252['push'](_0x490c41);}return _0x200252;}(_0x5bd66f,_0x67fbbc),_0x5d8e92=function(_0x2e6b27,_0x131ed9){const _0x159f05=[_0x2e6b27];for(const _0x43d2cb of _0x131ed9){let _0x2acb47=0x0;for(;_0x2acb47<_0x159f05['length'];){const _0x4663a3=_0x159f05[_0x2acb47]['getDifference'](_0x43d2cb);_0x159f05['splice'](_0x2acb47,0x1,..._0x4663a3),_0x2acb47+=_0x4663a3['length'];}}return _0x159f05;}(_0x5bd66f,_0x67fbbc);_0x5f1c0c['length']&&this['_model']['change'](()=>{for(const _0x22e79e of _0x5f1c0c){const _0x7b417e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb6961b,'accept');this['forceDefaultExecution'](()=>_0x7b417e([_0x22e79e],_0x2f3499,_0x3039aa));}});for(const _0x350b37 of _0x5d8e92){let _0x5e2fc5=null,_0x187fb4=_0x350b37['start'],_0x3f2b84=_0x350b37['end'];for(const {suggestion:_0x238b36,meta:_0x253add}of this['_findSuggestions'](_0x350b37,'formatInline')){if(!_0x253add['isOwn'])continue;if(_0x238b36['subType']!=_0xb6961b)continue;if(!Xt(_0x238b36,_0x3039aa))continue;const _0x1d3a8f=_0x238b36['getFirstRange']();if(_0x1d3a8f['containsRange'](_0x350b37,!0x0))return null;_0x187fb4=_0x187fb4['isBefore'](_0x1d3a8f['start'])?_0x187fb4:_0x1d3a8f['start'],_0x3f2b84=_0x3f2b84['isAfter'](_0x1d3a8f['end'])?_0x3f2b84:_0x1d3a8f['end'],_0x5e2fc5?_0x1d3a8f['start']['isBefore'](_0x5e2fc5['getFirstRange']()['start'])?(_0x5e2fc5['removeMarkers'](),_0x5e2fc5=_0x238b36):_0x238b36['removeMarkers']():_0x5e2fc5=_0x238b36;}const _0x2aff3f=this['_model']['createRange'](_0x187fb4,_0x3f2b84);if(_0x5e2fc5)this['_setSuggestionRange'](_0x5e2fc5,_0x2aff3f);else{const _0x523ab1=_0x425596(),_0x32fc79=_0x5b4b49['id'];this['_setSuggestionData']({'id':_0x523ab1,'type':'formatInline:'+_0xb6961b,'data':_0x2f3499,'createdAt':new Date(),'authorId':_0x32fc79,'attributes':_0x3039aa}),this['_addSuggestionMarker']('formatInline:'+_0xb6961b,_0x523ab1,_0x32fc79,_0x2aff3f);}}return null;}['markBlockFormat'](_0x2a42db,_0x3e2558,_0x42b214=[],_0x2c278d=null,_0x521379={}){_0x3e2558['formatGroupId']||(_0x3e2558['formatGroupId']=_0x3e2558['commandName']),_0x3e2558['multipleBlocks']=_0x2a42db['is']('range'),_0x2c278d=_0x2c278d||Kt(_0x3e2558);const _0x5bc4cc=_0x42b214['map'](_0x1f9d62=>zt(_0x1f9d62,this['_model'])),_0x3dce66=_0x2a42db['is']('range')?_0x2a42db:zt(_0x2a42db,this['_model']);if(this['_trackingSessionId']&&(_0x521379['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x578275=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c278d,'accept');return this['forceDefaultExecution'](()=>_0x578275([_0x3dce66],_0x3e2558,_0x521379)),null;}_0x5bc4cc['push'](_0x3dce66);let _0x38ceaa=!0x0;for(const _0x5329b3 of _0x5bc4cc)if(!this['_rangeIsInLocalUserInsertion'](_0x5329b3)){_0x38ceaa=!0x1;break;}if(_0x38ceaa&&'always'!==this['_trackFormatChanges']){const _0x50b485=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c278d,'accept');return this['forceDefaultExecution'](()=>_0x50b485([_0x3dce66],_0x3e2558,_0x521379)),null;}let _0x5a19b5=null,_0x2b69e4=_0x3dce66['start'],_0x5c68ad=_0x3dce66['end'];for(const {suggestion:_0xc7a8a0,meta:_0x337b0c}of this['_findSuggestions'](_0x3dce66,'formatBlock')){if(!_0x337b0c['isOwn'])continue;if(_0x337b0c['isNextTo']||_0x337b0c['containsRangeInObject']||_0x337b0c['isInsideObject'])continue;if(_0xc7a8a0['data']['formatGroupId']!=_0x3e2558['formatGroupId'])continue;if(!Xt(_0xc7a8a0,_0x521379))continue;const _0x5c3191=_0xc7a8a0['getFirstRange']();if(_0xc7a8a0['subType']==_0x2c278d){if(_0x5c3191['containsRange'](_0x3dce66,!0x0))return null;_0x2b69e4=_0x2b69e4['isBefore'](_0x5c3191['start'])?_0x2b69e4:_0x5c3191['start'],_0x5c68ad=_0x5c68ad['isAfter'](_0x5c3191['end'])?_0x5c68ad:_0x5c3191['end'],_0x5a19b5?_0x5c3191['start']['isBefore'](_0x5a19b5['getFirstRange']()['start'])?(_0x5a19b5['removeMarkers'](),_0x5a19b5=_0xc7a8a0):_0xc7a8a0['removeMarkers']():_0x5a19b5=_0xc7a8a0;}else{const _0x1e91b5=_0x3dce66['getIntersection'](_0x5c3191);this['_cutOutSuggestionMarker'](_0xc7a8a0,_0x1e91b5);}}const _0x35172c=this['editor']['plugins']['get']('Users')['me'],_0x5a07b5=_0x425596(),_0x4c961a=_0x35172c['id'];if(_0x5a19b5)return this['_setSuggestionRange'](_0x5a19b5,this['_model']['createRange'](_0x2b69e4,_0x5c68ad)),_0x5a19b5;{const _0x17956c=this['_setSuggestionData']({'id':_0x5a07b5,'type':'formatBlock:'+_0x2c278d,'data':_0x3e2558,'createdAt':new Date(),'authorId':_0x4c961a,'attributes':_0x521379});return this['_addSuggestionMarker']('formatBlock:'+_0x2c278d,_0x5a07b5,_0x4c961a,this['_model']['createRange'](_0x2b69e4,_0x5c68ad)),_0x17956c;}}['markMultiRangeBlockFormat'](_0x39b673,_0x45fff8,_0x284ace=[],_0x29aa8c=null,_0x286f4a={}){_0x45fff8['formatGroupId']||(_0x45fff8['formatGroupId']=_0x45fff8['commandName']);const _0x190180=_0x39b673[0x0];_0x45fff8['multipleBlocks']=_0x190180['is']('range'),_0x29aa8c=_0x29aa8c||Kt(_0x45fff8);const _0x48ae48=_0x284ace['map'](_0x5f4478=>zt(_0x5f4478,this['_model'])),_0x4ef423=_0x190180['is']('range')?_0x39b673:_0x39b673['map'](_0x12f844=>zt(_0x12f844,this['_model']));if(this['_trackingSessionId']&&(_0x286f4a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1747c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'accept');return this['forceDefaultExecution'](()=>_0x1747c0(_0x4ef423,_0x45fff8,_0x286f4a)),null;}_0x48ae48['push'](..._0x4ef423);let _0x3ad430=!0x0;for(const _0x347944 of _0x48ae48)if(!this['_rangeIsInLocalUserInsertion'](_0x347944)){_0x3ad430=!0x1;break;}if(_0x3ad430&&'always'!==this['_trackFormatChanges']){const _0x20febf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'accept');return this['forceDefaultExecution'](()=>_0x20febf(_0x4ef423,_0x45fff8,_0x286f4a)),null;}const _0x3e9aa4=this['editor']['plugins']['get']('Users')['me'];for(const _0x196bbf of this['getSuggestions']()){if(_0x196bbf['author']['id']!=_0x3e9aa4['id'])continue;if('formatBlock'!=_0x196bbf['type']||_0x196bbf['data']['formatGroupId']!=_0x45fff8['formatGroupId'])continue;if(!Xt(_0x196bbf,_0x286f4a))continue;const _0x3a6f8c=_0x196bbf['subType']==_0x29aa8c;for(let _0x5cb205=0x0;_0x5cb205<_0x4ef423['length'];_0x5cb205++){const _0xeb66d5=_0x4ef423[_0x5cb205];for(const _0x1018a9 of _0x196bbf['getMarkers']()){const _0x37e660=_0x1018a9['getRange']();if(_0xeb66d5['isEqual'](_0x37e660)){_0x3a6f8c?(_0x4ef423['splice'](_0x5cb205,0x1),_0x5cb205--):_0x196bbf['removeMarker'](_0x1018a9['name']);break;}}}}if(0x0==_0x4ef423['length'])return null;const _0x434014=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29aa8c,'join');for(const _0x26493c of this['getSuggestions']())if(_0x26493c['author']['id']==_0x3e9aa4['id']&&'formatBlock'==_0x26493c['type']&&_0x26493c['data']['formatGroupId']==_0x45fff8['formatGroupId']&&_0x26493c['subType']==_0x29aa8c&&Xt(_0x26493c,_0x286f4a)&&(_0x434014(_0x26493c['getRanges'](),_0x4ef423)||_0x434014(_0x4ef423,_0x26493c['getRanges']()))){for(const _0x377328 of _0x4ef423)_0x26493c['addRange'](_0x377328);return _0x26493c;}const _0x55fe71=_0x425596(),_0x4161c8=_0x3e9aa4['id'],_0x2487ce='formatBlock:'+_0x29aa8c,_0x5baaad=this['_setSuggestionData']({'id':_0x55fe71,'type':_0x2487ce,'data':_0x45fff8,'createdAt':new Date(),'authorId':_0x4161c8,'attributes':_0x286f4a});for(const _0x3aa1a5 of _0x4ef423)this['_addSuggestionMarker'](_0x2487ce,_0x55fe71,_0x4161c8,_0x3aa1a5,o['getMultiRangeId']());return _0x5baaad;}['markDeletion'](_0x2aba50,_0x8d8d50=null,_0x5e678a={}){if(_0x2aba50['isCollapsed'])return null;const _0x50bded=this['editor']['plugins']['get']('Users')['me'],_0x3bd17a=new _0x46c3f4(_0x2aba50['start'],_0x2aba50['end']);this['_trackingSessionId']&&(_0x5e678a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b6d6a,meta:_0x4e5e1e}of this['_findSuggestions'](_0x3bd17a,'insertion'))if(_0x4e5e1e['isOwn']&&!_0x4e5e1e['isNextTo']){if(_0x5b6d6a['isMultiRange']){const _0x845381=_0x5b6d6a['getRanges']()['filter'](_0x2d9977=>'$graveyard'!=_0x2d9977['root']['rootName']);_0x845381['every'](_0x4aa293=>_0x3bd17a['containsRange'](_0x4aa293,!0x0))&&_0x5b6d6a['discard']();if(_0x845381['some'](_0x1c8b08=>_0x1c8b08['containsRange'](_0x3bd17a,!0x0))){const _0x55e9d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x8d8d50,'accept');return this['forceDefaultExecution'](()=>_0x55e9d0([_0x3bd17a],null,_0x5e678a)),null;}}else{const _0x166a90=_0x3bd17a['getIntersection'](_0x5b6d6a['getFirstRange']());null!==_0x166a90&&_0x5b6d6a['_onDiscard']([_0x166a90],null,_0x5e678a);}}if(_0x3bd17a['detach'](),_0x3bd17a['isCollapsed']||'$graveyard'==_0x3bd17a['root']['rootName'])return null;let _0x3ad0c7=null,_0xb075ea=_0x3bd17a['start'],_0x503366=_0x3bd17a['end'];const _0x3d5266=this['_findSuggestions'](_0x3bd17a,'deletion');for(const {suggestion:_0x481a55,meta:_0x551de9}of _0x3d5266){const _0x42a2c4=this['_model']['createRange'](_0xb075ea,_0x503366);if(_0x551de9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551de9['containsRangeInObject']&&!_0x551de9['isInsideObject'])){if(_0x481a55['isMultiRange']){if(!Xt(_0x481a55,_0x5e678a))continue;let _0x589c80=!0x0;for(const _0x365efb of _0x481a55['getRanges']()){if(_0x365efb['containsRange'](_0x42a2c4,!0x0))return _0x481a55;_0x42a2c4['containsRange'](_0x365efb)||(_0x589c80=!0x1);}_0x589c80&&_0x481a55['discard']();}else{const _0x3d033c=_0x481a55['getFirstRange']();if(_0x3d033c['containsRange'](_0x42a2c4,!0x0))return _0x481a55;if(!Xt(_0x481a55,_0x5e678a)){_0x42a2c4['containsRange'](_0x3d033c)?_0x481a55['removeMarkers']():_0x3d033c['containsPosition'](_0xb075ea)?_0xb075ea=_0x3d033c['end']:_0x3d033c['containsPosition'](_0x503366)&&(_0x503366=_0x3d033c['start']);continue;}_0xb075ea=_0xb075ea['isBefore'](_0x3d033c['start'])?_0xb075ea:_0x3d033c['start'],_0x503366=_0x503366['isAfter'](_0x3d033c['end'])?_0x503366:_0x3d033c['end'],_0x5e678a=Object['assign']({},_0x481a55['attributes']),_0x3ad0c7?_0x3d033c['start']['isBefore'](_0x3ad0c7['getFirstRange']()['start'])?(_0x3ad0c7['removeMarkers'](),_0x3ad0c7=_0x481a55):_0x481a55['removeMarkers']():_0x3ad0c7=_0x481a55;}}}if(_0x3ad0c7)return this['_setSuggestionRange'](_0x3ad0c7,this['_model']['createRange'](_0xb075ea,_0x503366)),_0x3ad0c7;{const _0x40906b=_0x425596(),_0x33045d=this['_model']['createRange'](_0xb075ea,_0x503366),_0x1f92b0=_0x50bded['id'],_0xe03da3=_0x8d8d50?'deletion:'+_0x8d8d50:'deletion',_0x250c11=this['_setSuggestionData']({'id':_0x40906b,'type':_0xe03da3,'createdAt':new Date(),'authorId':_0x1f92b0,'attributes':_0x5e678a});return this['_addSuggestionMarker'](_0xe03da3,_0x40906b,_0x1f92b0,_0x33045d),_0x250c11;}}['markMultiRangeDeletion'](_0x279bdc,_0x515e6d='multi',_0x4369e5={}){const _0x952f72=this['editor']['plugins']['get']('Users')['me'],_0x45d55f=_0x279bdc['map'](_0x234b08=>new _0x46c3f4(_0x234b08['start'],_0x234b08['end'])),_0x235489=new Set();this['_trackingSessionId']&&(_0x4369e5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x20484d,meta:_0x35f794}of this['_findSuggestions'](_0x45d55f,'insertion'))_0x35f794['isOwn']&&!_0x35f794['isNextTo']&&_0x235489['add'](_0x20484d);for(const _0x22c06f of _0x235489)if(_0x22c06f['isMultiRange']){const _0xc37c87=_0x22c06f['getRanges']();(!_0x22c06f['attributes']||!_0x22c06f['attributes']['skipNestingCheck'])&&(_0xc37c87['every'](_0x5619db=>_0x45d55f['some'](_0xc7c12d=>_0xc7c12d['containsRange'](_0x5619db,!0x0)))&&_0x22c06f['discard']());if(_0x45d55f['every'](_0x5b1da6=>_0xc37c87['some'](_0x2e8f15=>_0x2e8f15['containsRange'](_0x5b1da6,!0x0)))){const _0x5268b3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'accept');return this['forceDefaultExecution'](()=>_0x5268b3(_0x279bdc,null,_0x4369e5)),null;}}else{const _0x1615a2=_0x22c06f['getFirstRange']();_0x45d55f['some'](_0x61293f=>_0x61293f['containsRange'](_0x1615a2,!0x0))&&_0x22c06f['discard']();if(_0x45d55f['every'](_0x3be490=>_0x1615a2['containsRange'](_0x3be490,!0x0))){const _0x3cd1ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'accept');return this['forceDefaultExecution'](()=>_0x3cd1ab(_0x45d55f,null,_0x4369e5)),null;}}const _0x4a2ddd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515e6d,'join');let _0x2c00a0=null;for(const _0x492866 of this['getSuggestions']())if(_0x492866['author']['id']==_0x952f72['id']&&_0x492866['isInContent']&&'deletion'==_0x492866['type']&&_0x492866['subType']==_0x515e6d&&Xt(_0x492866,_0x4369e5)&&(_0x4a2ddd(_0x492866['getRanges'](),_0x45d55f)||_0x4a2ddd(_0x45d55f,_0x492866['getRanges']()))){if(_0x2c00a0){if(_0x492866['commentThread']&&_0x492866['commentThread']['length'])continue;for(const _0x588e75 of _0x492866['getRanges']())_0x2c00a0['isIntersectingWithRange'](_0x588e75)||_0x2c00a0['addRange'](_0x588e75);_0x492866['removeMarkers']();}else{_0x2c00a0=_0x492866;for(const _0x3aa8e0 of _0x45d55f)_0x492866['isIntersectingWithRange'](_0x3aa8e0)||_0x492866['addRange'](_0x3aa8e0);}}if(_0x2c00a0)return _0x2c00a0;_0x235489['clear']();for(const {suggestion:_0xfdf857,meta:_0x550543}of this['_findSuggestions'](_0x45d55f,'deletion'))_0x550543['isOwn']&&(this['_mergeNestedSuggestions']||!_0x550543['containsRangeInObject']&&!_0x550543['isInsideObject'])&&Xt(_0xfdf857,_0x4369e5)&&_0x235489['add'](_0xfdf857);for(const _0x3ddfe8 of _0x235489){const _0x1436cd=_0x3ddfe8['getRanges']();if(!_0x4369e5||!_0x4369e5['skipNestingCheck']){if(_0x45d55f['every'](_0x1f0eea=>_0x1436cd['some'](_0x3723cc=>_0x3723cc['containsRange'](_0x1f0eea,!0x0))))return _0x3ddfe8;}(!_0x3ddfe8['attributes']||!_0x3ddfe8['attributes']['skipNestingCheck'])&&(_0x1436cd['every'](_0xca1bc=>_0x45d55f['some'](_0x1ac999=>_0x1ac999['containsRange'](_0xca1bc,!0x0)))&&_0x3ddfe8['discard']());}const _0x182f3f=_0x425596(),_0x30434d=_0x952f72['id'],_0x27142d='deletion:'+_0x515e6d,_0x202ece=this['_setSuggestionData']({'id':_0x182f3f,'type':_0x27142d,'createdAt':new Date(),'authorId':_0x30434d,'attributes':_0x4369e5});for(const _0x179d61 of _0x45d55f)_0x179d61['detach'](),_0x179d61['isCollapsed']||'$graveyard'==_0x179d61['root']['rootName']||this['_addSuggestionMarker'](_0x27142d,_0x182f3f,_0x30434d,_0x179d61,o['getMultiRangeId']());return _0x202ece;}['markAttributeChange'](_0x5f401a,_0x1b9879,_0x25a61c,_0x2561cd,_0x530f4d){if(_0x5f401a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f2bb3=this['editor']['plugins']['get']('Users')['me']['id'],_0x594c44=Array['from'](this['_suggestions']['values']())['filter'](_0x2ea628=>'attribute'==_0x2ea628['type']&&_0x2ea628['data']['key']==_0x1b9879&&_0x2ea628['isIntersectingWithRange'](_0x5f401a));if(this['_trackingSessionId']&&(_0x530f4d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x12ba0b=this['_findSuggestions'](_0x5f401a,'insertion')['filter'](({meta:_0xa6c844})=>_0xa6c844['isOwn']&&!_0xa6c844['isInsideObject']&&!_0xa6c844['isNextTo'])['map'](({suggestion:_0x1cbdd4})=>_0x1cbdd4);_0x594c44['unshift'](..._0x12ba0b);}const _0x5f5c21=new Map([[_0x5f401a,_0x25a61c]]);for(const _0x4546b2 of _0x594c44){const _0x2d6d07='attribute'==_0x4546b2['type']?_0x4546b2['data']['oldValue']:void 0x0,_0x1bbd1f=_0x4546b2['getFirstRange'](),_0x2683ee=Array['from'](_0x5f5c21['keys']())['find'](_0xe5b978=>_0xe5b978['isIntersecting'](_0x1bbd1f));if(!_0x2683ee)continue;const _0xb6a0df=_0x2683ee['getDifference'](_0x1bbd1f);this['_isBlockAttribute'](_0x1b9879)&&'insertion'==_0x4546b2['type']&&0x0!=_0xb6a0df['length']||(_0x5f5c21['delete'](_0x2683ee),_0xb6a0df['forEach'](_0xab74cc=>{_0x5f5c21['set'](_0xab74cc,_0x25a61c);}),'insertion'!=_0x4546b2['type']&&_0x2d6d07!=_0x2561cd&&_0x5f5c21['set'](_0x2683ee['getIntersection'](_0x1bbd1f),_0x2d6d07));}const _0x556fac=[];for(const [_0x43ec54,_0x3ac330]of _0x5f5c21){const _0xe39979=_0x425596(),_0x54d95c={'key':_0x1b9879,'oldValue':_0x3ac330,'newValue':_0x2561cd};_0x1b9879['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':_0x1b9879});const _0x5e1311=('attribute:'+(_0x1b9879+'|'+Kt({'newValue':_0x2561cd})))['substring'](0x0,0x3c),_0xbeb718=this['_setSuggestionData']({'id':_0xe39979,'type':_0x5e1311,'data':_0x54d95c,'createdAt':new Date(),'authorId':_0x4f2bb3,'attributes':_0x530f4d});_0x556fac['push'](_0xbeb718),this['_addSuggestionMarker'](_0x5e1311,_0xe39979,_0x4f2bb3,_0x43ec54);}return _0x556fac;}['enableDefaultAttributesIntegration'](_0xd2daa9){this['enableCommand'](_0xd2daa9,(_0x347d1c,..._0x40d7fe)=>{this['_recordAttributeChanges'](()=>{_0x347d1c(..._0x40d7fe);});});}['registerBlockAttribute'](_0x204599){this['_blockAttributeKeys']['add'](_0x204599);}['registerInlineAttribute'](_0x280fa0){this['_inlineAttributeKeys']['add'](_0x280fa0);}['startTrackingSession'](_0x263921){return this['_trackingSessionId']=void 0x0!==_0x263921?_0x263921:_0x425596(),this['_trackingSessionId'];}['_getAttributeKey'](_0x39c840){return'attribute'==_0x39c840['type']?_0x39c840['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x312587,_0x18e5c2){const _0x4e9b63=_0x312587['getFirstMarker']();this['_model']['change'](_0x645028=>{_0x645028['updateMarker'](_0x4e9b63,{'range':_0x18e5c2});});}['_addThreadToSuggestion'](_0x528681){const _0x253822=_0x528681['id'],_0x2db64c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x253822)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2db64c,'threadId':_0x253822,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b66fc=this['_commentsRepository']['getCommentThread'](_0x253822);_0x1b66fc['unbind']('isRemovable'),_0x1b66fc['isRemovable']=!0x1,_0x528681['commentThread']=_0x1b66fc;}['_checkSuggestionCorrectness'](_0x2833ef,_0x1f53f1,_0x465666,_0x1191aa){if(_0x2833ef['type']!=_0x1f53f1||_0x2833ef['subType']!=_0x465666||_0x2833ef['creator']['id']!=_0x1191aa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59ef33('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1243e0,_0x52fcd5){const _0x2fb990=_0x1243e0['getFirstRange']();if(_0x52fcd5['isEqual'](_0x2fb990))_0x1243e0['removeMarkers']();else{if(_0x2fb990['containsRange'](_0x52fcd5)){const _0x12574b=this['_model']['createPositionAt'](_0x52fcd5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x2fb990['start'],_0x12574b));const _0xd2c105=_0x425596(),_0x1e5b4d=_0x1243e0['creator']['id'],_0x8305dc=_0x1243e0['type']+':'+_0x1243e0['subType'];this['_setSuggestionData']({'id':_0xd2c105,'type':_0x8305dc,'createdAt':new Date(),'authorId':_0x1e5b4d,'data':_0x1243e0['data'],'attributes':_0x1243e0['attributes']});const _0x8b8aa4=this['_model']['createPositionAt'](_0x52fcd5['end']['parent'],'after'),_0x3661cc=this['_model']['createRange'](_0x8b8aa4,_0x2fb990['end']);this['_addSuggestionMarker'](_0x8305dc,_0xd2c105,_0x1e5b4d,_0x3661cc);}else{if(_0x2fb990['containsPosition'](_0x52fcd5['start'])){const _0x563d9b=this['_model']['createPositionAt'](_0x52fcd5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x2fb990['start'],_0x563d9b));}else{const _0x1f2d4e=this['_model']['createPositionAt'](_0x52fcd5['end']['parent'],'after');this['_setSuggestionRange'](_0x1243e0,this['_model']['createRange'](_0x1f2d4e,_0x2fb990['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x362f87){for(const {suggestion:_0x45b15f,meta:_0x5fe6a}of this['_findSuggestions'](_0x362f87,'insertion')){if(!_0x5fe6a['isOwn'])continue;const _0x3bf2ac=_0x45b15f['getRanges']();for(const _0x543c6a of _0x3bf2ac)if(!_0x362f87['getDifference'](_0x543c6a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11613e){const _0x34a02c=this['editor']['plugins']['get']('Users')['getUser'](_0x11613e);if(!_0x34a02c)throw new _0x59ef33('track-changes-user-not-found',this);return _0x34a02c;}['_getExternalAuthor'](_0x3f4909){const _0x5820c4=this['editor']['plugins']['get']('Users'),_0x2364ed=_0x5fe91f('external:'+_0x3f4909),_0x2c92f1=_0x5820c4['getUser'](_0x2364ed);return _0x2c92f1||_0x5820c4['addUser']({'id':_0x2364ed,'name':_0x3f4909});}['_createSuggestion'](_0x23cb2c,_0x282b4f,_0x11ce8d,_0xa20fc5,_0x52bdab,_0x434e08){const _0x488ed3=this['_getAuthorFromId'](_0xa20fc5),_0x459c98=this['_suggestionFactory']['buildSuggestion'](_0x23cb2c,_0x282b4f,_0x11ce8d,_0x488ed3,_0x52bdab,_0x14e2f1=>{this['_updateSuggestionData'](_0x11ce8d,{'attributes':_0x14e2f1});const _0x1790d8=this['getSuggestion'](_0x11ce8d);this['_joinWithAdjacentSuggestions'](new Set([_0x1790d8])),this['_refreshSuggestionsChain'](new Set([_0x1790d8]));},_0x434e08);return this['listenTo'](_0x459c98,'accept',()=>{this['_updateSuggestionData'](_0x11ce8d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x459c98,'discard',()=>{this['_updateSuggestionData'](_0x11ce8d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x11ce8d,_0x459c98),this['_suggestionState']['set'](_0x459c98,'notReady'),_0x459c98;}['_splitMarkerName'](_0x10fb82){const _0x26e479=_0x10fb82['split'](':');return{'group':_0x26e479[0x0],'type':_0x26e479[0x1],'subType':_0x26e479['length']>=0x5?_0x26e479[0x2]:null,'id':_0x26e479['length']<0x5?_0x26e479[0x2]:_0x26e479[0x3],'authorId':_0x26e479['length']<0x5?_0x26e479[0x3]:_0x26e479[0x4],'markerCount':0x6==_0x26e479['length']?_0x26e479[0x5]:null};}['_breakSuggestionMarker'](_0x2a2673,_0x44f384,_0x42123c){const _0x28266e=_0x2a2673['getFirstRange'](),_0x6f82eb=_0x28266e['start'],_0x222eca=_0x28266e['end'];this['_setSuggestionRange'](_0x2a2673,this['_model']['createRange'](_0x6f82eb,_0x44f384));const _0x5f286e=_0x425596(),_0x3b6535=_0x2a2673['creator']['id'],_0x430cab=_0x2a2673['type']+(_0x2a2673['subType']?':'+_0x2a2673['subType']:'');this['_setSuggestionData']({'id':_0x5f286e,'type':_0x430cab,'createdAt':new Date(),'authorId':_0x3b6535,'originalSuggestionId':_0x2a2673['_originalSuggestionId']||_0x2a2673['id'],'attributes':_0x2a2673['attributes'],'data':_0x2a2673['data']});const _0x54078a=this['_getAttributeKey'](_0x2a2673);('formatBlock'==_0x2a2673['type']||_0x54078a&&this['_isBlockAttribute'](_0x54078a))&&(_0x42123c=this['_model']['createPositionBefore'](_0x42123c['parent'])),this['_addSuggestionMarker'](_0x430cab,_0x5f286e,_0x3b6535,this['_model']['createRange'](_0x42123c,_0x222eca));}['_findSuggestions'](_0x23669f,_0x3557d9=null){const _0x130e5e=[],_0x46a91d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x23669f)||(_0x23669f=[_0x23669f]);for(const _0x26097f of this['getSuggestions']()){if(!_0x26097f['isInContent'])continue;if(_0x3557d9&&_0x26097f['type']!=_0x3557d9)continue;let _0x23f75e=!0x1;for(const _0x2c5c23 of _0x26097f['getRanges']()){for(const _0x5de159 of _0x23669f){const _0x29e2f6=_0x5de159['start']['isEqual'](_0x2c5c23['end'])||_0x5de159['end']['isEqual'](_0x2c5c23['start']);if(_0x29e2f6||_0x5de159['getIntersection'](_0x2c5c23)){const _0x210b7f=_0x5de159['containsRange'](_0x2c5c23)&&Gt(this['_model']['schema'],_0x2c5c23['start'],_0x5de159),_0x2343a3=_0x2c5c23['containsRange'](_0x5de159)&&Gt(this['_model']['schema'],_0x5de159['start'],_0x2c5c23);_0x130e5e['push']({'suggestion':_0x26097f,'meta':{'isOwn':_0x46a91d==_0x26097f['author'],'isNextTo':_0x29e2f6,'isInsideObject':_0x210b7f,'containsRangeInObject':_0x2343a3}}),_0x23f75e=!0x0;break;}}if(_0x23f75e)break;}}return _0x130e5e;}['_addSuggestionMarker'](_0x49880b,_0x26ebd0,_0x2325ed,_0x1ec48c,_0x16a906){this['_model']['change'](_0x1c6057=>{let _0x5be191='suggestion:'+_0x49880b+':'+_0x26ebd0+':'+_0x2325ed;_0x16a906&&(_0x5be191=_0x5be191+':'+_0x16a906),_0x1c6057['addMarker'](_0x5be191,{'range':_0x1ec48c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f683e){const _0x3f568d=_0x4f683e['previous'],_0x2ce2a3=_0x4f683e['next'];_0x4f683e['previous']=null,_0x4f683e['next']=null,null!=_0x3f568d&&_0x3f568d['next']==_0x4f683e&&(_0x3f568d['next']=_0x2ce2a3),null!=_0x2ce2a3&&_0x2ce2a3['previous']==_0x4f683e&&(_0x2ce2a3['previous']=_0x3f568d),'ready'==this['_suggestionState']['get'](_0x4f683e)&&(this['_suggestionState']['set'](_0x4f683e,'removed'),this['fire']('suggestionUnloaded',_0x4f683e,_0x3f568d,_0x2ce2a3));}['_setSuggestionData'](_0x2a5d50){const _0x184807=_0x2a5d50['id'],_0x12c0ae=this['addSuggestionData'](_0x2a5d50);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x371614=this['editor']['plugins']['get']('PendingActions'),_0xa64d92=_0x12c0ae['hasComments'],_0x5aa7c9=_0x12c0ae['subType']?_0x12c0ae['type']+':'+_0x12c0ae['subType']:_0x12c0ae['type'],_0x10a5f9=this['editor']['locale'],_0x4c889f=_0x371614['add'](c(_0x10a5f9,'PENDING_ACTION_SUGGESTION')),_0x4ac511={'id':_0x184807,'type':_0x5aa7c9,'hasComments':_0xa64d92,'data':_0x2a5d50['data']||null,'originalSuggestionId':_0x2a5d50['originalSuggestionId']||null,'attributes':_0x12c0ae['attributes']};this['_adapter']['addSuggestion'](_0x4ac511)['then'](_0x4e9be0=>{_0x12c0ae['_saved']=!0x0,_0x371614['remove'](_0x4c889f),_0x4e9be0&&_0x4e9be0['createdAt']&&(this['_suggestions']['get'](_0x184807)['createdAt']=_0x4e9be0['createdAt']);})['catch'](_0x3cdb40=>{throw _0x2aedd9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12c0ae['discard']();}),_0x12c0ae['stopListening'](),this['_suggestions']['delete'](_0x12c0ae['id']),this['_suggestionState']['delete'](_0x12c0ae),_0x3cdb40;});}return _0x12c0ae;}['_isBlockAttribute'](_0x176c78){return this['_blockAttributeKeys']['has'](_0x176c78);}['_updateSuggestionData'](_0x4bb716,_0x2ea20a){const _0x5dcaf0=this['editor']['plugins']['get']('PendingActions'),_0x302bc9=this['getSuggestion'](_0x4bb716);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x302bc9['_saved']){const _0x515be0=_0x5dcaf0['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4bb716,_0x2ea20a)['then'](()=>{_0x5dcaf0['remove'](_0x515be0);});}else _0x302bc9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4bb716,_0x2ea20a);});}}['_getSuggestionData'](_0xb0cbc8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59ef33('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb0cbc8);}['_handleNewSuggestionMarker'](_0x32c06){const {id:_0x472c27,type:_0x3b9868,subType:_0x34a681,authorId:_0xab16f3}=this['_splitMarkerName'](_0x32c06),_0x169f7f=this['_suggestions']['get'](_0x472c27)||this['_createSuggestion'](_0x3b9868,_0x34a681,_0x472c27,_0xab16f3,{});switch(this['_checkSuggestionCorrectness'](_0x169f7f,_0x3b9868,_0x34a681,_0xab16f3),this['_suggestionState']['get'](_0x169f7f)){case'notReady':this['_getSuggestionData'](_0x472c27)['then'](_0x45ea00=>{let _0x1fb5d0=Promise['resolve']();_0x45ea00['hasComments']&&(_0x1fb5d0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x472c27})),_0x1fb5d0['then'](()=>{this['addSuggestionData'](_0x45ea00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x169f7f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x472c27,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x169f7f,'ready'),this['fire']('suggestionLoaded',_0x169f7f);break;case'ready':this['fire']('suggestionChanged',_0x169f7f);}return _0x169f7f['addMarkerName'](_0x32c06),_0x169f7f;}['_refreshSuggestionsChain'](_0x3da2cb){const _0x518c5b=Array['from'](_0x3da2cb),_0x28f9a5=_0x518c5b['filter'](_0x4c7870=>'attribute'==_0x4c7870['type']);this['_refreshAttributeSuggestionsChain'](_0x28f9a5);const _0x3ce2fa=_0x518c5b['filter'](_0x244ecd=>!_0x244ecd['isMultiRange']&&'attribute'!=_0x244ecd['type']),_0x93356a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x443662=>!_0x443662['isMultiRange']&&'attribute'!=_0x443662['type']),_0x42fff5=_0x93356a['filter'](_0xcab4e1=>!_0x3da2cb['has'](_0xcab4e1)),_0x930aab=new Map(_0x93356a['map'](_0x3109c1=>[_0x3109c1,this['_suggestionFactory']['getSuggestionCallback'](_0x3109c1['type'],_0x3109c1['subType'],'chain')])),_0x35af74=new Map(_0x93356a['map'](_0xae6638=>[_0xae6638,_0xae6638['getFirstRange']()])),_0x37e252=new Set(),_0xf05410=new Set();for(let _0x25a415=0x0;_0x25a415<_0x3ce2fa['length'];_0x25a415++)_0xaf9177(_0x3ce2fa[_0x25a415],_0x3ce2fa,_0x25a415+0x1);for(let _0x217f64=0x0;_0x217f64<_0x3ce2fa['length'];_0x217f64++)_0xaf9177(_0x3ce2fa[_0x217f64],_0x42fff5,0x0);const _0x2df69d=new Set();for(let _0x1f1979=0x0;_0x1f1979<_0x3ce2fa['length'];_0x1f1979++){const _0x346d00=_0x3ce2fa[_0x1f1979];!_0xf05410['has'](_0x346d00)&&_0x346d00['previous']&&(_0x2df69d['add'](_0x346d00['previous']),_0x346d00['previous']['next']===_0x346d00&&(_0x346d00['previous']['next']=null),_0x346d00['previous']=null),!_0x37e252['has'](_0x346d00)&&_0x346d00['next']&&(_0x2df69d['add'](_0x346d00['next']),_0x346d00['next']['previous']===_0x346d00&&(_0x346d00['next']['previous']=null),_0x346d00['next']=null);}function _0xaf9177(_0x4e9fb2,_0x19c56e,_0x258356){for(let _0xf9c1e5=_0x258356;_0xf9c1e5<_0x19c56e['length'];_0xf9c1e5++){const _0x2aeaf1=_0x5af436(_0x4e9fb2,_0x19c56e[_0xf9c1e5]);_0x2aeaf1&&(_0x2aeaf1[0x0]['next']=_0x2aeaf1[0x1],_0x2aeaf1[0x1]['previous']=_0x2aeaf1[0x0],_0x37e252['add'](_0x2aeaf1[0x0]),_0xf05410['add'](_0x2aeaf1[0x1]));}}function _0x5af436(_0x3678bf,_0x27f3cb){if(_0x3678bf['author']['id']!==_0x27f3cb['author']['id'])return null;const _0x2fccf0=_0x930aab['get'](_0x3678bf)(_0x3678bf,_0x27f3cb,_0x35af74['get'](_0x3678bf),_0x35af74['get'](_0x27f3cb));if(!_0x2fccf0)return null;return _0x930aab['get'](_0x27f3cb)(_0x3678bf,_0x27f3cb,_0x35af74['get'](_0x3678bf),_0x35af74['get'](_0x27f3cb))?_0x2fccf0[0x1]['commentThread']&&_0x2fccf0[0x1]['commentThread']['length']?null:_0x2fccf0:null;}_0x2df69d['size']&&this['_refreshSuggestionsChain'](_0x2df69d);}['_refreshAttributeSuggestionsChain'](_0x21ee41){if(0x0==_0x21ee41['length'])return;const _0x36d5af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55cd43=>'attribute'==_0x55cd43['type']&&_0x55cd43['_isDataLoaded']),_0x3c1f0e=[],_0x3a78a9=new Map();for(const _0x3fde3a of _0x36d5af){const _0x12304d=_0x5fe91f(_0x3fde3a['attributes']);_0x3a78a9['has'](_0x12304d)||(_0x3a78a9['set'](_0x12304d,_0x3c1f0e['length']),_0x3c1f0e['push']([]));const _0x307786=_0x3a78a9['get'](_0x12304d);_0x3c1f0e[_0x307786]['push'](_0x3fde3a);}!(function(){_0x3c1f0e['sort']((_0x564a21,_0x4d0f25)=>{const _0x2a5a6b=_0x564a21[0x0]['createdAt'],_0x34b89b=_0x4d0f25[0x0]['createdAt'];return _0x2a5a6b==_0x34b89b?_0x564a21[0x0]['attributes']['groupId']<_0x4d0f25[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a5a6b<_0x34b89b?-0x1:0x1;});for(const _0x2b0162 of _0x3c1f0e)_0x2b0162['sort']((_0x21dc0b,_0x3a7704)=>_0x21dc0b['id']<_0x3a7704['id']?-0x1:0x1);}());for(let _0x3e901b=0x0;_0x3e901b<_0x3c1f0e['length'];_0x3e901b++){if(0x0==_0x3c1f0e[_0x3e901b]['length'])continue;const _0x5219e6=[];for(let _0x16631e=_0x3e901b+0x1;_0x16631e<_0x3c1f0e['length'];_0x16631e++)0x0!=_0x3c1f0e[_0x16631e]['length']&&_0x39fbbe(_0x3c1f0e[_0x3e901b],_0x3c1f0e[_0x16631e])&&_0x5219e6['push'](_0x16631e);for(const _0x44540b of _0x5219e6)_0x3c1f0e[_0x3e901b]=_0x3c1f0e[_0x3e901b]['concat'](_0x3c1f0e[_0x44540b]),_0x3c1f0e[_0x44540b]=[];}for(const _0x36870f of _0x3c1f0e)for(let _0x23d865=0x0;_0x23d865<_0x36870f['length'];_0x23d865++){const _0xa17925=_0x36870f[_0x23d865+0x1]||null;_0x36870f[_0x23d865]['next']!==_0xa17925&&(_0x36870f[_0x23d865]['next']=_0xa17925);}for(const _0x4c8f9e of _0x3c1f0e)for(let _0x3886f2=0x0;_0x3886f2<_0x4c8f9e['length'];_0x3886f2++){const _0x187d07=_0x4c8f9e[_0x3886f2-0x1]||null;_0x4c8f9e[_0x3886f2]['previous']!==_0x187d07&&(_0x4c8f9e[_0x3886f2]['previous']=_0x187d07);}function _0x39fbbe(_0x232773,_0x1d205e){if(_0x232773[0x0]['attributes']['groupId']!==_0x1d205e[0x0]['attributes']['groupId']&&_0x232773[0x0]['author']!==_0x1d205e[0x0]['author'])return!0x1;if(!function(_0xf4dbd2,_0xfaab6d){if(!_0xf4dbd2['hasComments']&&!_0xfaab6d['hasComments'])return!0x0;if(_0xf4dbd2['hasComments']&&_0xfaab6d['hasComments'])return!0x1;if(_0xf4dbd2['hasComments']&&_0xfaab6d['createdAt']<_0xf4dbd2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xfaab6d['hasComments']&&_0xf4dbd2['createdAt']<_0xfaab6d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x232773[0x0],_0x1d205e[0x0]))return!0x1;const _0x678a0f=Ft(_0x232773[0x0]['attributes'],['groupId','trackingSessionId']),_0x16901d=Ft(_0x1d205e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5f649a(_0x678a0f,_0x16901d))return!0x1;if(_0x232773[0x0]['attributes']['groupId']==_0x1d205e[0x0]['attributes']['groupId'])return!0x0;if(_0x232773[0x0]['attributes']['trackingSessionId']!==_0x1d205e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x232773['every'](_0x3ff37c=>_0x1d205e['some'](_0x5b6c1d=>_0x3ff37c['getFirstRange']()['isEqual'](_0x5b6c1d['getFirstRange']())))&&_0x1d205e['every'](_0x21490b=>_0x232773['some'](_0x1f0067=>_0x21490b['getFirstRange']()['isEqual'](_0x1f0067['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e57e6){const _0x4a03ae=Array['from'](_0x3e57e6),_0xf39ac6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48b360=_0xf39ac6['filter'](_0x5bbc17=>!_0x3e57e6['has'](_0x5bbc17)),_0xf534cb=new Map(_0x4a03ae['map'](_0x3584c0=>[_0x3584c0,this['_suggestionFactory']['getSuggestionCallback'](_0x3584c0['type'],_0x3584c0['subType'],'join')])),_0x4cb637=new Map(_0xf39ac6['map'](_0x4ea393=>[_0x4ea393,_0x4ea393['getRanges']()]));for(let _0x5c2905=0x0;_0x5c2905<_0x4a03ae['length'];_0x5c2905++){if(_0x2ed1e7(this,_0x4a03ae[_0x5c2905],_0x4a03ae,_0x5c2905+0x1))return!0x0;}for(let _0x2f4ac3=0x0;_0x2f4ac3<_0x4a03ae['length'];_0x2f4ac3++){if(_0x2ed1e7(this,_0x4a03ae[_0x2f4ac3],_0x48b360,0x0))return!0x0;}return!0x1;function _0x2ed1e7(_0x47ae54,_0x531b69,_0x465c60,_0x5c73f4){for(let _0x5f5128=_0x5c73f4;_0x5f5128<_0x465c60['length'];_0x5f5128++){const _0x48d484=_0x465c60[_0x5f5128];if(_0x48d484['type']!==_0x531b69['type']||_0x48d484['author']['id']!==_0x531b69['author']['id']||_0x48d484['subType']!==_0x531b69['subType'])continue;if(!Qt(_0x531b69,_0x48d484))continue;if('attribute'==_0x531b69['type']&&_0x531b69['data']['oldValue']!=_0x48d484['data']['oldValue'])continue;if('attribute'==_0x531b69['type']&&_0x47ae54['_isBlockAttribute'](_0x531b69['data']['key']))continue;if('formatBlock'==_0x531b69['type']){const _0x2b7a72=_0x47ae54['editor']['model'],_0x3664f6=_0x531b69['getContainedElement']();if(_0x3664f6&&(_0x2b7a72['schema']['isObject'](_0x3664f6)||_0x2b7a72['schema']['isLimit'](_0x3664f6)))continue;}const _0x30176c=_0xf534cb['get'](_0x531b69),_0x40d6ea=_0x4cb637['get'](_0x531b69),_0x3e2fed=_0x4cb637['get'](_0x48d484),_0x555b51=_0x531b69['commentThread']&&_0x531b69['commentThread']['length'],_0x241bef=_0x48d484['commentThread']&&_0x48d484['commentThread']['length'];if(!_0x555b51&&_0x30176c(_0x3e2fed,_0x40d6ea))return _0x47ae54['_joinSuggestions'](_0x48d484,_0x531b69),_0x4cb637['delete'](_0x531b69),!0x0;if(!_0x241bef&&_0x30176c(_0x40d6ea,_0x3e2fed))return _0x47ae54['_joinSuggestions'](_0x531b69,_0x48d484),_0x4cb637['delete'](_0x48d484),!0x0;}return!0x1;}}['_joinSuggestions'](_0x575726,_0x6efb21){if(_0x575726['isMultiRange']){for(const _0x4c61a3 of _0x6efb21['getRanges']())_0x575726['addRange'](_0x4c61a3);}else{const _0x59286c=_0x6efb21['getFirstRange']()['end'];this['_setSuggestionRange'](_0x575726,this['_model']['createRange'](_0x575726['getFirstRange']()['start'],_0x59286c));}_0x6efb21['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c98d5,_0x2ed11f,_0x3647af){const _0x505626=_0x5c98d5['startsWith']('format')||_0x5c98d5['startsWith']('attribute')?'FORMATTING':_0x5c98d5['toUpperCase']();return c(this['editor']['locale'],_0x2ed11f+'_'+_0x505626+'_SUGGESTION_ANNOUNCEMENT',_0x3647af);}['_initAriaMarkerChangeAnnouncements'](){const _0x231480=this['editor'];if(!_0x231480['ui'])return;const {ariaLiveAnnouncer:_0x778f89}=_0x231480['ui'];_0x2612fb(this['_model'],({left:_0x1b3920,entered:_0x2b8024})=>{for(const _0x5e93b9 of _0x1b3920){const {group:_0xe3bdfc,type:_0x3aab3f}=this['_splitMarkerName'](_0x5e93b9['name']);if('suggestion'===_0xe3bdfc){_0x778f89['announce'](this['_getMarkerAnnouncementText'](_0x3aab3f,'LEAVE'));break;}}for(const _0x51b771 of _0x2b8024){const {group:_0x2e7e7f,type:_0x111d0d}=this['_splitMarkerName'](_0x51b771['name']);if('suggestion'===_0x2e7e7f){_0x778f89['announce'](this['_getMarkerAnnouncementText'](_0x111d0d,'ENTER',_0x5c6ede(_0x26049f)));break;}}});}['_processAttributeChanges'](_0xe18709){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5253e9=this['editor'],_0x2a47c0=_0x5253e9['model']['document']['differ']['getChanges']();if(0x0==_0x2a47c0['length'])return!0x1;const _0x1bf5c7=[],_0x5268da=_0x2a47c0['filter'](_0x47ff03=>'attribute'==_0x47ff03['type']),_0x201b1d=_0x2a47c0['filter'](_0x323c9d=>'insert'==_0x323c9d['type']&&'$text'!=_0x323c9d['name']),_0x1b9ef9=_0x2a47c0['filter'](_0x3a668a=>'remove'==_0x3a668a['type']&&'$text'!=_0x3a668a['name']);for(const _0x5315b2 of _0x5268da)_0x1bf5c7['push']({'key':_0x5315b2['attributeKey'],'newValue':_0x5315b2['attributeNewValue'],'oldValue':_0x5315b2['attributeOldValue'],'range':qt(_0x5315b2['range'],_0x5253e9['model'])});for(const _0x45c7f9 of _0x201b1d){const _0x1ffde3=_0x1b9ef9['find'](_0x327377=>_0x327377['position']['isEqual'](_0x45c7f9['position']));_0x1ffde3&&_0x1bf5c7['push']({'key':u,'newValue':_0x45c7f9['name'],'oldValue':_0x1ffde3['name'],'range':_0x5253e9['model']['createRangeOn'](_0x45c7f9['position']['nodeAfter'])});}return 0x0!=_0x1bf5c7['length']&&this['_reduceExistingSuggestions'](_0xe18709,_0x1bf5c7);}['_processAttributeSuggestions'](_0x5b7fa0){let _0x2a2834=!0x1;const _0x3d3565=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e7a3e=>_0x5e7a3e['data']['newRange']&&_0x5e7a3e['name']['startsWith']('suggestion:attribute:'));for(const _0x104e76 of _0x3d3565){const {subType:_0x43bd60,id:_0x4661cb}=this['_splitMarkerName'](_0x104e76['name']),_0x4b7be7=_0x43bd60['split']('|')[0x0];for(const _0x55ced6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x55ced6['id']!=_0x4661cb&&'attribute'==_0x55ced6['type']&&_0x55ced6['data']&&_0x55ced6['data']['key']==_0x4b7be7&&_0x55ced6['getFirstRange']()['isIntersecting'](_0x104e76['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x55ced6,_0x104e76['data']['newRange'],_0x5b7fa0),_0x2a2834=!0x0);}return _0x2a2834;}['_recordAttributeChanges'](_0x35da46){this['_recordAttributeSuggestions']=!0x0,_0x35da46();}['_isRegisteredAttribute'](_0xf231e3){const _0x468370=this['_isBlockAttribute'](_0xf231e3),_0x18a5d9=this['_inlineAttributeKeys']['has'](_0xf231e3);return _0x468370||_0x18a5d9;}['_reduceExistingSuggestions'](_0x43ef3a,_0x10e5de){if(0x0==_0x10e5de['length'])return!0x1;let _0x44c492=!0x1;for(const _0x33b86d of _0x10e5de){const _0x93162a=this['_findSuggestions'](_0x33b86d['range'],'attribute')['filter'](_0x288560=>!_0x288560['meta']['isNextTo'])['map'](_0x1d44f4=>_0x1d44f4['suggestion']),_0x11761e=_0x5fe91f({'newValue':_0x33b86d['newValue']});_0x93162a['filter'](_0x2df455=>{const [_0x7efe2f,_0x4c1d52]=_0x2df455['subType']['split']('|');return _0x7efe2f==_0x33b86d['key']&&_0x4c1d52!=_0x11761e;})['forEach'](_0x182660=>{this['_reduceSuggestionAttributeRange'](_0x182660,_0x33b86d['range'],_0x43ef3a),_0x44c492=!0x0;});}return _0x44c492;}['_reduceSuggestionAttributeRange'](_0x48a8ed,_0x38a807,_0x12447b){const _0x2a5f8c=_0x48a8ed['getFirstRange']()['getDifference'](_0x38a807);0x0!==_0x2a5f8c['length']?0x1!==_0x2a5f8c['length']?this['_breakSuggestionMarker'](_0x48a8ed,_0x38a807['start'],_0x38a807['end']):this['_setSuggestionRange'](_0x48a8ed,_0x2a5f8c[0x0]):_0x12447b['removeMarker'](_0x48a8ed['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x273baf){this['_editor']=_0x273baf,this['_model']=_0x273baf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe267f9,_0x202b77,_0x23eb35,_0x2c7921,_0x56daff,_0x56191e,_0x17e874){return new o(this['_model'],{'type':_0xe267f9,'subType':_0x202b77,'id':_0x23eb35,'originalSuggestionId':_0x17e874,'author':_0x2c7921,'creator':_0x2c7921,'attributes':_0x56daff,'onAttributesChange':_0x56191e,'onAccept':(..._0x2e4d91)=>this['getSuggestionCallback'](_0xe267f9,_0x202b77,'accept')(..._0x2e4d91),'onDiscard':(..._0x158868)=>this['getSuggestionCallback'](_0xe267f9,_0x202b77,'discard')(..._0x158868)});}['registerCustomCallback'](_0x501185,_0x35adc8,_0x5e421d,_0x135e58){const _0x555e8c=_0x501185+':'+_0x35adc8+':'+_0x5e421d;this['_customCallbacks']['set'](_0x555e8c,_0x135e58);}['getSuggestionCallback'](_0xe21dcf,_0x41c97d,_0x574516){const _0x13d0b9=_0xe21dcf+':'+_0x41c97d+':'+_0x574516;return this['_customCallbacks']['get'](_0x13d0b9)||this['_defaultCallbacks']['get'](_0xe21dcf+':'+_0x574516);}['_registerDefaultCallbacks'](){const _0x1451e9=()=>!0x1,_0x1b5630=_0x317fcb=>{_0x317fcb['sort']((_0x4a0b81,_0x56db0f)=>_0x4a0b81['start']['isBefore'](_0x56db0f['start'])?0x1:-0x1),this['_model']['change'](_0x57dd4f=>{for(const _0x39c8e0 of _0x317fcb){let _0x2251c4;_0x2251c4=_0x39c8e0['end']['isAtEnd']&&_0x39c8e0['end']['parent']==_0x39c8e0['start']['nodeAfter']?_0x57dd4f['createSelection'](_0x39c8e0['start']['nodeAfter'],'on'):_0x57dd4f['createSelection'](_0x39c8e0),this['_model']['deleteContent'](_0x2251c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf4df9a=(_0x38431c,_0x2581b0)=>{_0x2581b0&&this['_model']['change'](_0x5239d2=>{const {commandName:_0x5cc00e,commandParams:_0x339003=[]}=_0x2581b0,_0x220ce9=_0x38431c['map'](_0x51b70b=>(Lt(_0x51b70b)&&(_0x51b70b=this['_model']['createRange'](_0x51b70b['end'])),_0x51b70b))['filter'](_0x319d3d=>'$graveyard'!==_0x319d3d['root']['rootName']);if(_0x220ce9['length']<0x1)return;const _0x56f966=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11f329=>_0x46c3f4['fromRange'](_0x11f329));_0x5239d2['setSelection'](_0x220ce9);for(const _0x1a338b of this['_editor']['commands']['commands']())_0x1a338b['refresh']();_0x339003['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5cc00e,..._0x339003);const _0x1fc53c=_0x56f966['filter'](_0x2bb57e=>'$graveyard'!=_0x2bb57e['root']['rootName']);_0x1fc53c['length']>0x0&&_0x5239d2['setSelection'](_0x1fc53c);for(const _0x53f876 of _0x56f966)_0x53f876['detach']();});},_0x1aef35=(_0x127158,_0x26bb15)=>0x1==_0x127158['length']&&0x1==_0x26bb15['length']&&_0x127158[0x0]['end']['isEqual'](_0x26bb15[0x0]['start']),_0x14bb06=(_0x512ceb,_0x12cb6d,_0x2ab3df,_0x3755ba)=>Wt(_0x512ceb,_0x12cb6d,_0x2ab3df,_0x3755ba)?[_0x512ceb,_0x12cb6d]:Wt(_0x12cb6d,_0x512ceb,_0x3755ba,_0x2ab3df)?[_0x12cb6d,_0x512ceb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1451e9),this['_defaultCallbacks']['set']('insertion:discard',_0x1b5630),this['_defaultCallbacks']['set']('insertion:join',_0x1aef35),this['_defaultCallbacks']['set']('insertion:chain',_0x14bb06),this['_defaultCallbacks']['set']('deletion:accept',_0x1b5630),this['_defaultCallbacks']['set']('deletion:discard',_0x1451e9),this['_defaultCallbacks']['set']('deletion:join',_0x1aef35),this['_defaultCallbacks']['set']('deletion:chain',_0x14bb06),this['_defaultCallbacks']['set']('formatInline:accept',_0xf4df9a),this['_defaultCallbacks']['set']('formatInline:discard',_0x1451e9),this['_defaultCallbacks']['set']('formatInline:join',_0x1aef35),this['_defaultCallbacks']['set']('formatInline:chain',_0x1451e9),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf4df9a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1451e9),this['_defaultCallbacks']['set']('formatBlock:join',_0x1aef35),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1451e9),this['_defaultCallbacks']['set']('attribute:accept',_0x1451e9),this['_defaultCallbacks']['set']('attribute:discard',(_0x4585b3,_0x4b05f3)=>{if(!_0x4b05f3)return;const _0x36ad95=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4cc0a4=>{if(_0x4b05f3['key']==u)for(const _0x2952a8 of _0x4585b3){const _0x453275=_0x2952a8['start']['nodeAfter'],_0x32c40d=_0x4b05f3['oldValue'];_0x4cc0a4['rename'](_0x453275,_0x32c40d);}else{if(_0x36ad95['_isBlockAttribute'](_0x4b05f3['key'])){for(const _0x2e5564 of _0x4585b3)void 0x0!==_0x4b05f3['oldValue']?_0x4cc0a4['setAttribute'](_0x4b05f3['key'],_0x4b05f3['oldValue'],_0x2e5564['start']['nodeAfter']):_0x4cc0a4['removeAttribute'](_0x4b05f3['key'],_0x2e5564['start']['nodeAfter']);}else{for(const _0x468429 of _0x4585b3)_0x4b05f3['oldValue']?_0x4cc0a4['setAttribute'](_0x4b05f3['key'],_0x4b05f3['oldValue'],_0x468429):_0x4cc0a4['removeAttribute'](_0x4b05f3['key'],_0x468429);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1aef35);}}function Gt(_0x50c310,_0x5a8e10,_0xd7ae1b){for(const _0x1e8680 of _0x5a8e10['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e8680['root']==_0x1e8680)return!0x1;if(!_0xd7ae1b['containsItem'](_0x1e8680))return!0x1;if(_0x50c310['isObject'](_0x1e8680)||_0x50c310['isLimit'](_0x1e8680))return!0x0;}return!0x1;}function Lt(_0x3e26c9){return _0x3e26c9['end']['parent']==_0x3e26c9['start']['nodeAfter']&&_0x3e26c9['end']['isAtStart'];}function Jt(_0x5664c8,_0x46ff6e,_0x1ab524,_0x32823c){const _0xaa731d=_0xe88bfd=>!_0xe88bfd['item']['is']('$textProxy')&&!_0x32823c['isObject'](_0xe88bfd['item']),_0xb16931=_0x5664c8['start']['getLastMatchingPosition'](_0xaa731d),_0x12c253=_0x5664c8['end']['getLastMatchingPosition'](_0xaa731d,{'direction':'backward'});return(!_0x5664c8['start']['isEqual'](_0xb16931)||!_0x5664c8['end']['isEqual'](_0x12c253))&&(_0xb16931['isBefore'](_0x12c253)?_0x1ab524['updateMarker'](_0x46ff6e,{'range':_0x1ab524['createRange'](_0xb16931,_0x12c253)}):_0x1ab524['removeMarker'](_0x46ff6e),!0x0);}function Kt(_0xb68f05){return _0x5fe91f(_0xb68f05);}function Ht(_0xb4dd15){const _0x394e47=_0xb4dd15['start']['nodeAfter'];return _0x394e47&&_0x394e47['is']('element');}function qt(_0x22e5bb,_0x45eabe){return null==_0x22e5bb['end']['nodeBefore']&&_0x22e5bb['end']['parent']==_0x22e5bb['start']['nodeAfter']?zt(_0x22e5bb['start']['nodeAfter'],_0x45eabe):_0x22e5bb;}function zt(_0x38a8ee,_0x3302ba){const _0x34cd44=_0x3302ba['schema']['isObject'](_0x38a8ee)||_0x3302ba['schema']['isSelectable'](_0x38a8ee);return _0x3302ba['createRange'](_0x3302ba['createPositionAt'](_0x38a8ee,'before'),_0x34cd44?_0x3302ba['createPositionAfter'](_0x38a8ee):_0x3302ba['createPositionAt'](_0x38a8ee,'end'));}function Wt(_0x5b05e0,_0x440e76,_0x4059a5,_0x432df1){return!!Qt(_0x5b05e0,_0x440e76)&&_0x4059a5['end']['isEqual'](_0x432df1['start']);}function Qt(_0x9a0c7e,_0x43e1e2){if(!_0x9a0c7e['_isDataLoaded']||!_0x43e1e2['_isDataLoaded'])return!0x1;const _0x5d4001=new Set(Object['keys'](_0x9a0c7e['attributes'])),_0x5598f3=new Set(Object['keys'](_0x43e1e2['attributes']));if(_0x5d4001['delete']('groupId'),_0x5598f3['delete']('groupId'),0x0==_0x5d4001['size']&&0x0==_0x5598f3['size'])return!0x0;if(_0x5d4001['size']!=_0x5598f3['size'])return!0x1;const _0x3857f7={..._0x9a0c7e['attributes']},_0x6ecc2={..._0x43e1e2['attributes']};return delete _0x3857f7['groupId'],delete _0x6ecc2['groupId'],JSON['stringify'](_0x3857f7)==JSON['stringify'](_0x6ecc2);}function Xt(_0x4e3a1c,_0x13bdc3){const _0x15fed7=Yt(_0x4e3a1c['attributes']),_0x17a080=Yt(_0x13bdc3);if(!_0x4e3a1c['_isDataLoaded'])return!0x1;for(const _0x387961 of Object['keys'](_0x17a080))if(!_0x5f649a(_0x15fed7[_0x387961],_0x17a080[_0x387961]))return!0x1;return!0x0;}function Yt(_0x154571){const _0x15a6d2=Object['assign']({},_0x154571);return delete _0x15a6d2['skipNestingCheck'],delete _0x15a6d2['tablePasteChainId'],_0x15a6d2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x94a634(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ab889,_0x1b28dd,_0x545fb0,_0x4ea7d6){super(),this['model']=_0x1b28dd,this['view']=_0x545fb0,this['commentThreadController']=_0x4ea7d6,this['_editor']=_0x4ab889,this['_acceptCommand']=_0x4ab889['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ab889['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x254b0b,_0x27c186)=>_0x254b0b||_0x27c186),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x528d04=>_0x528d04&&this['_editor']['model']['canEditAt'](_0x1b28dd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b8e00=>_0x4b8e00&&this['_editor']['model']['canEditAt'](_0x1b28dd['getRanges']())),this['_pendingAction']=null,_0x545fb0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x545fb0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x545fb0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x545fb0,'change:isDirty',()=>{_0x545fb0['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 _0xe17478=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xe17478);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x47e455{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x274aa7,_0x5c13c0,_0x4b0064,_0x44acab){super(_0x274aa7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x45977a(_0x274aa7,c(_0x274aa7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c13c0['authoredAt']),this['bind']('authoredAt')['to'](_0x5c13c0),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',_0x5c13c0,'authoredAt',this,'descriptionParts',(_0x4279bd,_0x22ba6e,_0x25529f)=>{const _0x50189e=_0x25529f['map'](_0x1330ea=>ls(_0x1330ea['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4279bd-0x1,_0x5c13c0['author']['name'],_0x22ba6e?_0x44acab['formatDateTime'](_0x22ba6e):'',new DOMParser()['parseFromString'](_0x50189e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f56e7(),this['focusTracker']=new _0x1096f0(),this['keystrokes']=new _0x140cea(),this['focusCycler']=new _0x55ed52({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x814dda=>_0x814dda['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5c13c0,this['_localUser']=_0x4b0064,this['_config']=_0x44acab,_0x44acab['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x551d53(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x253d23}=this['_config'];this['commentsListView']=new _0x253d23(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',_0xd1a4f3=>_0xd1a4f3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24eab9,_0x192623)=>_0x24eab9||!!_0x192623);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ae98f}=this['_config'],_0x45f19d=new _0x2ae98f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2bb2a4=_0x45f19d['commentInputView'];return _0x45f19d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2bb2a4,'value',(_0x24d195,_0x25c350,_0x3e3f23)=>!!_0x3e3f23||_0x24d195&&!_0x25c350),_0x2bb2a4['on']('submit',(_0x518bbd,_0x4f08a2)=>{this['fire']('addComment',_0x4f08a2),_0x2bb2a4['editor']['setData']('');}),_0x2bb2a4['on']('cancel',()=>this['focus']()),_0x2bb2a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x45f19d;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x43137b,_0x58b38f,_0x5c8a07,_0x18917d){super(_0x43137b,_0x58b38f,_0x5c8a07,_0x18917d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x216472=>_0x216472&&_0x216472[0x0]?_0x216472[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x12c0f9,_0x299acd)=>{let _0x45678e='';for(const _0x1a76f0 of _0x12c0f9)_0x45678e+='<p>'+ls(_0x1a76f0['content'],_0x1a76f0['color'])+'</p>';return _0x299acd?_0x45678e:ti(_0x45678e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x18917d['SuggestionView'](_0x43137b,_0x58b38f,{'formatDateTime':_0x18917d['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 _0x3b8a51=this['bindTemplate'],_0x2ac800=[this['suggestionView']];return this['commentsListView']&&_0x2ac800['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ac800['push'](this['commentThreadInputView']),_0x2ac800['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b8a51['if']('isActive','ck-suggestion-wrapper--active'),_0x3b8a51['to']('type',_0x46c774=>'ck-suggestion-'+_0x46c774),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':_0x3b8a51['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ac800};}['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 we extends _0x47e455{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31180e,_0x54969e,_0x515291){super(_0x31180e),this['_model']=_0x54969e,this['_config']=_0x515291,this['set']('description',''),this['bind']('authoredAt')['to'](_0x54969e),this['acceptButton']=this['_createButton'](c(_0x31180e,'Accept\x20suggestion'),_0x39730c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x31180e,'Discard\x20suggestion'),_0x2371d9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x489cea(_0x31180e,_0x54969e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f56e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1096f0(),this['keystrokes']=new _0x140cea(),this['focusCycler']=new _0x55ed52({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x57ff07=>_0x57ff07['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x14a2e3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x14a2e3['innerHTML']=this['description'],this['on']('change:description',(_0x12c29b,_0x500a0e,_0x353917)=>{_0x14a2e3['innerHTML']=_0x353917;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x40fb09=this['bindTemplate'],_0x192d99=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x40fb09['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x40fb09['to']('authoredAt',_0x1c05f3=>this['_config']['formatDateTime'](_0x1c05f3))}]}]},{'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']&&_0x192d99['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':_0x192d99}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3e6caf,_0x162619,_0x5d7d22,_0x4e0b3b,_0x539853){const _0x18d49b=new _0x25c7bb(this['locale']);return _0x18d49b['set']({'label':_0x3e6caf,'icon':_0x162619,'tooltip':!0x0,'tooltipPosition':_0x539853}),_0x18d49b['extendTemplate']({'attributes':{'class':_0x5d7d22}}),_0x18d49b['on']('execute',()=>{this['fire'](_0x4e0b3b,this['_model']['id']);}),_0x18d49b;}['_setupKeyboardNavigation'](){const _0x231226=this['element'];this['keystrokes']['listenTo'](_0x231226);for(const _0x546e8a of this['focusables'])this['focusTracker']['add'](_0x546e8a['element']),this['keystrokes']['listenTo'](_0x546e8a['element']);this['keystrokes']['set']('enter',(_0x412ad1,_0x26a8b0)=>{_0x231226===_0x412ad1['target']&&(this['focusCycler']['focusFirst'](),_0x26a8b0());}),this['keystrokes']['set']('esc',(_0x290846,_0x397aa1)=>{_0x231226!==_0x290846['target']&&(this['focus'](),_0x397aa1());});}}class d extends _0x14dd54{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1818cf,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36488f){super(_0x36488f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4df44d=this['editor']['config'];_0x4df44d['define']('trackChanges.SuggestionThreadView',fe),_0x4df44d['define']('trackChanges.SuggestionView',we),_0x4df44d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4df44d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c69ab,_0x32eac4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27b51a,_0x2cf758]of this['_handleControllerBuffer']){const _0x51bf04=this['_suggestionToController']['has'](_0x27b51a);_0x51bf04||_0x2cf758?_0x51bf04&&_0x2cf758&&this['_destroyController'](_0x27b51a):this['_initializeController'](_0x27b51a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c69ab,_0x32eac4);}['init'](){const _0x1eac54=this['editor'],_0x17ac63=_0x1eac54['plugins']['get']('TrackChangesEditing'),_0x186524=_0x1eac54['plugins']['get']('Annotations'),_0x38db6f=_0x1eac54['plugins']['get']('EditorAnnotations'),_0x35dcee=_0x1eac54['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38db6f['addSourceCollector'](()=>{const _0x3fb4df=[];for(const [_0x20b560,_0xb9a619]of Array['from'](this['_suggestionToController'])){const _0x24fe47=_0x20b560['getAllAdjacentSuggestions'](),_0x200ae0=[];for(const _0x5466bd of _0x24fe47){if(!_0x5466bd['isInContent'])continue;if(_0x5466bd['isMultiRange']){_0x200ae0['push'](..._0x5466bd['getRanges']());continue;}const _0x38962d=_0x5466bd['getFirstRange']();if(_0x200ae0['length']>0x0){const _0x389b88=_0x200ae0[0x0]['getJoined'](_0x38962d);if(_0x389b88){_0x200ae0[0x0]=_0x389b88;continue;}}_0x200ae0['push'](_0x38962d);}_0x3fb4df['push']([_0xb9a619['view'],_0x200ae0]);}return _0x3fb4df;}),this['listenTo'](_0x17ac63,'suggestionLoaded',(_0x3f3763,_0x23174f)=>{this['listenTo'](_0x23174f,'change:previous',(_0x2abc94,_0x2844e8,_0x337a16,_0x1ccbd3)=>{_0x23174f['isInContent']&&(null==_0x337a16?(this['_updateController'](_0x1ccbd3['head']),this['_handleSuggestionControllerDelayed'](_0x23174f,!0x1)):(this['_updateController'](_0x337a16['head']),null==_0x1ccbd3&&this['_handleSuggestionControllerDelayed'](_0x23174f,!0x0)));}),null!==_0x23174f['previous']?this['_updateController'](_0x23174f['head']):this['_handleSuggestionControllerDelayed'](_0x23174f,!0x1);}),this['listenTo'](_0x17ac63,'suggestionUnloaded',(_0x1c5061,_0x1e39c4,_0x539461)=>{this['stopListening'](_0x1e39c4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1e39c4),this['_suggestionToController']['has'](_0x1e39c4)&&this['_destroyController'](_0x1e39c4),_0x539461&&this['_updateController'](_0x539461['head']);}),this['listenTo'](_0x17ac63,'suggestionChanged',(_0x252ae1,_0x69e758)=>{this['_updateController'](_0x69e758);}),this['listenTo'](_0x186524,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35dcee,'addComment',(_0x30b5e5,{threadId:_0x157d67,isFromAdapter:_0x21bd94})=>{if(_0x21bd94||!_0x17ac63['hasSuggestion'](_0x157d67))return;const _0x4519c9=_0x17ac63['getSuggestion'](_0x157d67);this['_suggestionToController']['get'](_0x4519c9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d9c1c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d1f6;for(const _0xd936e1 in _0x4d9c1c){const _0x8a306b=_0xd936e1,_0x25c2f3=_0x4d9c1c[_0x8a306b];if('trackChangesLicenseKeyValid'==_0x25c2f3||'trackChangesLicenseKeyInvalid'==_0x25c2f3||'trackChangesLicenseKeyExpired'==_0x25c2f3||'trackChangesLicenseKeyDomainLimit'==_0x25c2f3||'trackChangesLicenseKeyNotAllowed'==_0x25c2f3||'trackChangesLicenseKeyEvaluationLimit'==_0x25c2f3||'trackChangesLicenseKeyTrialLimit'==_0x25c2f3||'trackChangesLicenseKeyUsageLimit'==_0x25c2f3){delete _0x4d9c1c[_0x8a306b],_0x37d1f6=_0x25c2f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37d1f6&&_0x4d9c1c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x184c58=this['editor']['plugins']['get']('Annotations'),_0x5ebed6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8ea0=Array['from'](_0x184c58['activeAnnotations'],_0x110c18=>_0x110c18['innerView'])['filter'](_0x30a0f5=>this['_viewToController']['has'](_0x30a0f5)),_0x468937=[];for(const _0x32b317 of _0x2c8ea0){const _0x2e1db2=this['_viewToController']['get'](_0x32b317)['model']['getAllAdjacentSuggestions']();_0x468937['push'](..._0x2e1db2['reduce']((_0x210759,_0x2de7fe)=>[..._0x210759,..._0x2de7fe['getMarkerNames']()],[]));}_0x5ebed6['activeMarkers']=_0x468937;}['_addUIComponentsToFactory'](){const _0x1d9a3a=this['editor'],_0x4c4fbe=_0x1d9a3a['locale'],_0xa8ebde=c(_0x4c4fbe,'Track\x20changes'),_0x3c728c=new _0x451fa8([{'type':'switchbutton','model':new _0x1b5db4({'withText':!0x0,'isToggleable':!0x0,'label':_0xa8ebde,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1d9a3a['plugins']['has']('TrackChangesPreview')&&_0x3c728c['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b5db4({'withText':!0x0,'label':c(_0x4c4fbe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4eeacf of _0x3c728c)if(ke(_0x4eeacf)){const _0x4ca43d=_0x1d9a3a['commands']['get'](_0x4eeacf['model']['commandName']);_0x4eeacf['model']['bind']('isOn','isEnabled')['to'](_0x4ca43d,'value','isEnabled');}_0x1d9a3a['ui']['componentFactory']['add']('trackChanges',_0x4cd2b5=>this['_createToolbarButton'](_0x4cd2b5,_0x3c728c,_0xa8ebde)),_0x1d9a3a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15e59a=>this['_createMenuBarMenu'](_0x15e59a,_0x3c728c,_0xa8ebde));}['_createToolbarButton'](_0x45da26,_0x70f6f6,_0x3579c8){const _0x56dba6=_0x4601f6(_0x45da26,_0x58e476),_0x3ea327=this['editor']['commands']['get']('trackChanges');_0x56dba6['buttonView']['set']({'tooltip':_0x3579c8,'label':_0x3579c8,'icon':_0x67738b}),_0x56dba6['buttonView']['bind']('isOn')['to'](_0x3ea327,'value'),_0x56dba6['buttonView']['on']('execute',()=>{_0x3ea327['execute'](),this['editor']['editing']['view']['focus']();}),_0x57a016(_0x56dba6,_0x70f6f6,{'role':'menu'});const _0x4dae68=[];for(const _0x40277f of _0x70f6f6)ke(_0x40277f)&&_0x4dae68['push'](this['editor']['commands']['get'](_0x40277f['model']['commandName']));const _0x4c2681=_0x56dba6['buttonView'];return _0x4c2681['actionView']['unbind']('isEnabled'),_0x4c2681['arrowView']['unbind']('isEnabled'),_0x4c2681['actionView']['bind']('isEnabled')['to'](_0x3ea327,'isEnabled'),_0x4c2681['arrowView']['bind']('isEnabled')['toMany'](_0x4dae68,'isEnabled',(..._0x117128)=>_0x117128['some'](_0x54389f=>_0x54389f)),_0x56dba6['on']('execute',_0x1d79ec=>{this['editor']['execute'](_0x1d79ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56dba6;}['_createMenuBarMenu'](_0x5bff4d,_0x547d14,_0x47a795){const _0x4714a4=new _0x119290(_0x5bff4d),_0x366855=this['editor']['commands']['get']('trackChanges');_0x4714a4['buttonView']['set']({'label':_0x47a795,'icon':_0x67738b});const _0x5a8572=new _0x1993a3(_0x5bff4d);for(const _0x567594 of _0x547d14){if('separator'==_0x567594['type']){_0x5a8572['items']['add'](new _0x592e22(_0x5bff4d));continue;}const _0x4568cf=new _0x56e372(_0x5bff4d,_0x4714a4),_0x188732=new _0xf6f4cb(_0x5bff4d),_0x5887d0=_0x567594['model'];_0x188732['bind'](...Object['keys'](_0x5887d0))['to'](_0x5887d0),_0x188732['delegate']('execute')['to'](_0x4714a4),_0x188732['on']('execute',()=>{this['editor']['execute'](_0x5887d0['commandName']),this['editor']['editing']['view']['focus']();}),_0x4568cf['children']['add'](_0x188732),_0x5a8572['items']['add'](_0x4568cf);}return _0x4714a4['bind']('isEnabled')['to'](_0x366855,'isEnabled'),_0x4714a4['panelView']['children']['add'](_0x5a8572),_0x4714a4;}['_initializeController'](_0x1979af){const _0x17f844=this['editor'],_0x7682e7=_0x17f844['config'],_0x13299b=_0x17f844['plugins']['get']('Annotations'),_0xd9ee46=_0x17f844['plugins']['get']('CommentsRepository'),_0x427a3d=_0x17f844['plugins']['get']('EditorAnnotations'),_0x23645a=_0x17f844['plugins']['get'](_0x1818cf)['me'],_0x5f1c8c=_0x7682e7['get']('trackChanges')['SuggestionThreadView'],_0x34a753=_0x7682e7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x28cfae,CommentThreadInputView:_0x27273a}=_0x17f844['plugins']['get']('CommentsUI');let _0x513310,_0x2d32e6,_0x1ed3b7;this['_annotationViews']['has'](_0x1979af['id'])?(_0x2d32e6=this['_annotationViews']['get'](_0x1979af['id']),_0x513310=_0x2d32e6['mainView']):(_0x513310=new _0x5f1c8c(_0x17f844['locale'],_0x1979af,_0x23645a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x7682e7['get']('comments.editorConfig'),'licenseKey':_0x7682e7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x7682e7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7682e7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7682e7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d9217(_0x7682e7['get']('locale'),_0x17f844['locale']),'CommentView':_0x7682e7['get']('comments')['CommentView'],'CommentsListView':_0x28cfae,'CommentThreadInputView':_0x27273a,'SuggestionView':_0x34a753}),_0x513310['suggestionView']['acceptButton']['on']('execute',()=>{_0x17f844['editing']['view']['focus']();}),_0x513310['suggestionView']['discardButton']['on']('execute',()=>{_0x17f844['editing']['view']['focus']();}),_0x2d32e6=_0x13299b['createAnnotationView'](this['editor']['locale'],_0x513310),_0x2d32e6['bind']('isDirty')['to'](_0x513310,'isDirty'),_0x2d32e6['bind']('length')['to'](_0x513310),_0x2d32e6['bind']('type')['to'](_0x513310,'type',_0x50a1ac=>'suggestion-'+_0x50a1ac),_0x513310['on']('escape',()=>{_0x1ed3b7['fire']('escape');}),this['_annotationViews']['set'](_0x1979af['id'],_0x2d32e6));const _0x59148b=_0xd9ee46['createCommentThreadController'](_0x1979af['commentThread'],_0x513310),_0x5164b8=new pe(_0x17f844,_0x1979af,_0x513310,_0x59148b),_0x1afd23=_0x1979af['getAllAdjacentSuggestions']()['filter'](_0x314a11=>_0x314a11['isInContent']);_0x513310['descriptionParts']=_0x17f844['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1afd23),this['_suggestionToController']['set'](_0x1979af,_0x5164b8),this['_viewToController']['set'](_0x513310,_0x5164b8),_0x1ed3b7=_0x13299b['createAnnotation']({'view':_0x2d32e6,'target':()=>{const _0x2f29e5=[],_0x24120d=_0x1979af['getAllAdjacentSuggestions']()['filter'](_0x2bcf81=>_0x2bcf81['isInContent']);for(const _0x3473f7 of _0x24120d)_0x2f29e5['push'](..._0x3473f7['getMarkers']());return _0x1d920(_0x17f844['editing'],_0x2f29e5);},'type':()=>'suggestion-'+_0x5164b8['view']['type']}),_0xd9ee46['_bindAnnotationToEditors'](_0x513310,_0x1ed3b7),_0x13299b['add'](_0x1ed3b7),_0x427a3d['registerAnnotation'](_0x1ed3b7);}['_destroyController'](_0x77f44a){const _0x45209e=this['editor']['plugins']['get']('CommentsRepository'),_0x4299e4=this['editor']['plugins']['get']('Annotations'),_0x558a3c=this['_suggestionToController']['get'](_0x77f44a),_0x3a7a20=_0x558a3c['view'],_0x590a2b=_0x4299e4['getByInnerView'](_0x3a7a20);_0x45209e['_unbindEditors'](_0x3a7a20),_0x590a2b&&_0x4299e4['remove'](_0x590a2b),this['_suggestionToController']['delete'](_0x77f44a),this['_viewToController']['delete'](_0x3a7a20),_0x558a3c['destroy']();}['_updateController'](_0x37fb8f){if(!_0x37fb8f['isInContent']||!this['_suggestionToController']['has'](_0x37fb8f))return;const _0x20b503=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cc76c=this['_suggestionToController']['get'](_0x37fb8f),_0x2d0c7c=_0x37fb8f['getAllAdjacentSuggestions']();_0x5cc76c['view']['descriptionParts']=_0x20b503['descriptionFactory']['getDescriptions'](_0x2d0c7c);}['destroy'](){for(const _0x46fd41 of this['_suggestionToController']['keys']())this['_destroyController'](_0x46fd41);for(const _0x5c3654 of this['_annotationViews']['values']())_0x5c3654['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x508d9c){return'model'in _0x508d9c;}class k extends _0x14dd54{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x6dec46){this['editor']['plugins']['get'](p)['adapter']=_0x6dec46;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x226d64){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x226d64);}['getSuggestions']({skipNotAttached:_0x1ebc44=!0x1,toJSON:_0x4d2352=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1ebc44,'toJSON':_0x4d2352});}['getSuggestion'](_0x5d105e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5d105e);}}const w=['Pagination'];class T extends _0x14dd54{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6aba14=this['editor'];if(_0x6aba14['config']['define']('trackChangesData.editorCreator',_0x2bbc8b=>{const _0x315cfd=_0x6aba14['model']['document']['getRootNames']()['reduce']((_0x1c393e,_0x52e334)=>(_0x1c393e[_0x52e334]='',_0x1c393e),{});return _0x6aba14['constructor']['create'](_0x315cfd,_0x2bbc8b);}),'function'!=typeof _0x6aba14['config']['get']('trackChangesData')['editorCreator'])throw new _0x59ef33('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25c8e2){return N(this['editor'],!0x0,_0x25c8e2);}['getDataWithDiscardedSuggestions'](_0x2d97a9){return N(this['editor'],!0x1,_0x2d97a9);}}class D extends _0x14dd54{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x161b3c){function _0x29813e(_0x318e3d){return _0x318e3d['map'](_0xc02142=>String['fromCharCode'](_0xc02142))['join']('');}super(_0x161b3c),this['result']='end',_0x161b3c[_0x29813e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29813e([0x76,0x69,0x65,0x77])][_0x29813e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29813e([0x61,0x75,0x74,0x6f]),_0x161b3c[_0x29813e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x29813e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29813e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x29813e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x29813e([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 Ge(_0x3cbc42){return void 0x0!==_0x3cbc42['getRootsAttributes'];}async function N(_0x100853,_0x349ccc,_0x60352e){const _0x322f1c=_0x4e11c7(_0x100853,w);_0x322f1c['plugins']['push'](p,D),_0x322f1c['rootsAttributes']=Ge(_0x100853)?_0x100853['getRootsAttributes']():void 0x0;const _0x3ff10b=document['createDocumentFragment'](),_0x39c52f=_0x100853['config']['get']('trackChangesData')['editorCreator'],_0x46de53=await _0x39c52f(_0x322f1c,()=>function(_0x1f5733){const _0x417b71=document['createElement']('div');return _0x1f5733['appendChild'](_0x417b71),_0x417b71;}(_0x3ff10b));!function(_0x221267,_0x4ca4b2){const _0x5a0bbc=_0x221267['model']['document']['getRootNames']()['reduce']((_0x298e2f,_0x2ba238)=>(_0x298e2f[_0x2ba238]=_0x221267['data']['get']({'rootName':_0x2ba238}),_0x298e2f),{}),_0x5cb9ea=_0x221267['plugins']['get']('Users')['users']['map'](_0x2b623e=>({'id':_0x2b623e['id'],'name':_0x2b623e['name']})),_0x34af15=_0x221267['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59c2f7=_0x221267['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31fbef=_0x4ca4b2['plugins']['get']('Users'),_0x359941=_0x4ca4b2['plugins']['get']('TrackChangesEditing'),_0x4fd26f=_0x4ca4b2['plugins']['get']('CommentsRepository');for(const _0x550111 of _0x4fd26f['getCommentThreads']())_0x550111['remove']();for(const _0x36aae5 of _0x5cb9ea)_0x31fbef['getUser'](_0x36aae5['id'])||_0x31fbef['addUser'](_0x36aae5);_0x31fbef['me']||_0x31fbef['useAnonymousUser']();for(const _0x28dcae of _0x59c2f7)_0x4fd26f['addCommentThread'](_0x28dcae);for(const _0x4ab056 of _0x34af15)_0x359941['addSuggestionData'](_0x4ab056);_0x4ca4b2['data']['set'](_0x5a0bbc);}(_0x100853,_0x46de53),_0x46de53['execute'](_0x349ccc?'acceptAllSuggestions':'discardAllSuggestions');const _0xb8ed71=Ge(_0x46de53)?_0x46de53['getFullData'](_0x60352e):_0x46de53['data']['get'](_0x60352e);return await _0x46de53['destroy'](),_0xb8ed71;}class Me extends _0x47e455{['options'];constructor(_0x5164aa,_0x52f680){super(_0x5164aa),this['options']=_0x52f680,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1d0cd7,_0x23360e){if(!this['element'])return;const _0x294bbb=[];for(const [_0x1ec7c0,_0x3eb70c]of _0x1d0cd7){const _0x3d0b43=document['createElement']('div');_0x3d0b43['setAttribute']('data-ck-root-name',_0x1ec7c0),_0x3d0b43['className']=_0x3eb70c['classes']+'\x20ck-track-changes-preview__root-container',_0x3d0b43['innerHTML']=_0x3eb70c['content'],_0x294bbb['push'](_0x3d0b43);}_0x23360e(this['element'],_0x294bbb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x23b441{constructor(_0x2cc02f){super(_0x2cc02f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29e2ac=this['editor'],_0x38bada=_0x29e2ac['locale'],_0x42bf59=_0x29e2ac['plugins']['get']('Dialog');let _0x1d0ba5;const _0x11640e=function(_0x278f2f){const _0x1b0cf0={};if('editables'in _0x278f2f['ui']['view']){for(const [_0x411d8c,_0x348da8]of Object['entries'](_0x278f2f['ui']['view']['editables']))_0x1b0cf0[_0x411d8c]=_0x348da8['element'];}else _0x1b0cf0[_0x278f2f['model']['document']['getRootNames']()[0x0]]=_0x278f2f['ui']['view']['editable']['element'];return _0x1b0cf0;}(_0x29e2ac),_0x44f175=function(_0x3b63da){let _0x2771d4=0x0;for(const _0x46ffc3 of Object['values'](_0x3b63da))_0x2771d4=Math['max'](_0x2771d4,_0x46ffc3['getBoundingClientRect']()['width']);let _0x54fdef=0x0;for(const _0x24a349 of Object['values'](_0x3b63da))_0x54fdef+=_0x24a349['getBoundingClientRect']()['height'];const _0x3d45c8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x455745=Math['min'](_0x54fdef,_0x3d45c8);return{'width':_0x2771d4,'height':_0x455745};}(_0x11640e);_0x42bf59['show']({'id':'finalContentPreview','title':c(_0x38bada,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x38bada,{'dialogRects':_0x44f175}),'onHide':()=>{_0x1d0ba5['detachFromDom']();},'onShow':()=>{_0x29e2ac['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x89ffe=>{const _0x4c1d2c=this['_standarizeRootsData'](_0x89ffe,_0x29e2ac,_0x11640e);_0x42bf59['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4c1d2c,_0x29e2ac['config']['get']('trackChanges.preview.renderFunction'));}),_0x1d0ba5=new _0x345048(_0x38bada,[_0x42bf59['view']]),_0x1d0ba5['attachToDom'](),_0x1d0ba5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29e2ac['once']('destroy',()=>{_0x1d0ba5['detachFromDom']();});const _0x3da594=_0x42bf59['view']['headerView']['class'];_0x42bf59['view']['headerView']['class']=_0x3da594?_0x3da594+'\x20ck-reset_all':'ck-reset_all',_0x42bf59['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x42bf59['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x557b93=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x593b15=_0x557b93['previewMode'],_0x157bd8={};if('$labels'===_0x593b15){for(const _0x5e0798 of _0x557b93['getMergeFieldsIds']())_0x157bd8[_0x5e0798]=_0x557b93['getLabel'](_0x5e0798)||_0x5e0798;}else{const _0x4931e4='$defaultValues'===_0x593b15?_0x557b93['getDefaultValues']():_0x557b93['getDataSetValues'](_0x593b15,!0x0);for(const _0x362cf2 of Object['entries'](_0x4931e4)){const [_0x703853,_0x25dceb]=_0x362cf2;_0x157bd8[_0x703853]=null!==_0x25dceb?_0x25dceb:_0x557b93['getLabel'](_0x703853)||_0x703853;}}return{'mergeFieldsData':_0x157bd8};}['_standarizeRootsData'](_0x575aaf,_0x51ab2b,_0x4b0584){let _0x4540ec;if('string'==typeof _0x575aaf){const _0x3c620f=_0x51ab2b['model']['document']['getRootNames']()[0x0];_0x4540ec={[_0x3c620f]:_0x575aaf};}else _0x4540ec=_0x575aaf;const _0x44f020=this['_fixMediaEmbeds'](_0x4540ec,_0x51ab2b),_0x59ac46=function(_0x988a09,_0x278176){for(const [_0x4b6a98,_0x4f542c]of _0x988a09)_0x4f542c['classes']=_0x278176[_0x4b6a98]['classList']['value']['replace']('ck-focused','');return _0x988a09;}(this['_sortRoots'](_0x51ab2b)['reduce']((_0x5e7ac3,_0x4a4891)=>(_0x5e7ac3['push']([_0x4a4891,{'content':_0x44f020[_0x4a4891],'classes':''}]),_0x5e7ac3),[]),_0x4b0584);return _0x59ac46;}['_fixMediaEmbeds'](_0x2199d5,_0x591e39){if(!_0x591e39['plugins']['has']('MediaEmbedEditing'))return _0x2199d5;const _0x56ede5=_0x591e39['plugins']['get']('MediaEmbedEditing');for(const [_0x44231c,_0x2eba79]of Object['entries'](_0x2199d5)){const _0x27043e=document['createElement']('div');_0x27043e['innerHTML']=_0x2eba79,(_0x27043e['querySelectorAll']('figure.media')['forEach'](_0x14b2d7=>{const _0x2d22de=_0x14b2d7['querySelector']('oembed');if(_0x2d22de){const _0x346aa9=_0x2d22de['getAttribute']('url');if(_0x346aa9){const _0x5b5b9f=_0x56ede5['registry']['getMediaViewElement'](new _0x328234(_0x591e39['editing']['view']['document']),_0x346aa9,{'elementName':'','renderForEditingView':!0x0}),_0x33c7b3=document['createElement']('div');_0x33c7b3['classList']['add']('ck-media__wrapper'),_0x5b5b9f['render'](_0x33c7b3,_0x591e39['editing']['view']['domConverter']),_0x2d22de['replaceWith'](_0x33c7b3);}}}),_0x2199d5[_0x44231c]=_0x27043e['innerHTML']);}return _0x2199d5;}['_sortRoots'](_0x3b8a2f){if(!function(_0x5b1d0a){return void 0x0!==_0x5b1d0a['getRootsAttributes'];}(_0x3b8a2f))return _0x3b8a2f['model']['document']['getRootNames']();const _0x3da61d=[],_0x945082=new Map();for(const _0x332eea of _0x3b8a2f['model']['document']['getRootNames']()){const _0x84b0ff=_0x3b8a2f['editing']['view']['getDomRoot'](_0x332eea)['getClientRects']()['item'](0x0);_0x3da61d['push'](_0x332eea),_0x945082['set'](_0x332eea,_0x84b0ff);}return _0x3da61d['sort']((_0x3416d3,_0x1e919c)=>{const _0x3759a2=_0x945082['get'](_0x3416d3),_0x1e8147=_0x945082['get'](_0x1e919c);return _0x3759a2['y']-_0x1e8147['y']||_0x3759a2['x']-_0x1e8147['x'];}),_0x3da61d;}}class te extends _0x14dd54{static get['requires'](){return[T,_0x3591b3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37e8ef){super(_0x37e8ef),_0x37e8ef['commands']['add']('previewFinalContent',new re(this['editor'])),_0x37e8ef['config']['define']('trackChanges.preview.renderFunction',(_0x16cdc6,_0x593151)=>{for(const _0x16cfba of _0x593151)_0x16cdc6['appendChild'](_0x16cfba);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|