@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250215.0 → 0.0.0-nightly-20250216.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 +25 -25
- 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 Yt,Plugin as
|
|
24
|
-
_0x28e810(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x584bd2,_0x1edc1f){super(),this['id']=_0x1edc1f['id'],this['type']=_0x1edc1f['type'],this['subType']=_0x1edc1f['subType']||null,this['author']=_0x1edc1f['author'],this['creator']=_0x1edc1f['creator']||_0x1edc1f['author'],this['isExternal']=Boolean(_0x1edc1f['attributes']&&_0x1edc1f['attributes']['@external']),this['data']=null,this['_model']=_0x584bd2,this['_onAccept']=_0x1edc1f['onAccept'],this['_onDiscard']=_0x1edc1f['onDiscard'],this['_onAttributesChange']=_0x1edc1f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1edc1f['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 _0x4ce67d=this;for(;_0x4ce67d['previous'];)_0x4ce67d=_0x4ce67d['previous'];return _0x4ce67d;}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'](_0x18012a){this['_markerNames']['add'](_0x18012a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5b99f6=>this['_model']['markers']['get'](_0x5b99f6))['filter'](_0x50fc26=>_0x50fc26);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e1efd=>{for(const _0xc2eade of this['getMarkers']())_0x2e1efd['removeMarker'](_0xc2eade);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f2eff){this['_model']['change'](_0x25783e=>{_0x25783e['removeMarker'](_0x3f2eff);}),this['_markerNames']['delete'](_0x3f2eff);}['addRange'](_0x152295){const _0x36a12c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x36a12c),this['_model']['change'](_0x3a715a=>{_0x3a715a['addMarker'](_0x36a12c,{'range':_0x152295,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19c0b6){for(const _0x4cd1ee of this['getRanges']())if(_0x4cd1ee['isIntersecting'](_0x19c0b6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x161967=>_0x161967['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3cb8e7,_0x41349d)=>[..._0x3cb8e7,..._0x41349d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x48d21a=this['getRanges']();if(0x1!=_0x48d21a['length'])return null;const _0x41b5d7=_0x48d21a[0x0],_0x35d48a=_0x41b5d7['start']['nodeAfter'],_0x2a963b=_0x41b5d7['end']['nodeBefore'];return _0x35d48a instanceof _0x42e207?_0x35d48a!=_0x2a963b?null:_0x35d48a: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 _0x2ac4e6=[];let _0x4e6e3e=this['head'];for(;_0x4e6e3e;)_0x2ac4e6['push'](_0x4e6e3e),_0x4e6e3e=_0x4e6e3e['next'];return _0x2ac4e6;}['setAttribute'](_0x2caa02,_0x29ef37){const _0x27f799=_0xd10e7a(this['attributes']);_0x4f3fc7(_0x27f799,_0x2caa02,_0x29ef37),_0x5730e9(_0x27f799,this['attributes'])||(this['attributes']=_0x27f799,this['_onAttributesChange'](_0x27f799));}['removeAttribute'](_0x4cdd43){const _0x1ed6d8=_0xd10e7a(this['attributes']);_0x28fbab(_0x1ed6d8,_0x4cdd43),_0x5730e9(_0x1ed6d8,this['attributes'])||(this['attributes']=_0x1ed6d8,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 _0x53814c()['substr'](0x1,0x5);}}function o(_0x5e05b6,_0x28ffdd,_0x5f0f9c){const _0x30579e=_0x5e05b6['t'],t=_0x5e05b6['t'];switch(_0x28ffdd){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',_0x5f0f9c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f0f9c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f0f9c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f0f9c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f0f9c);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',_0x5f0f9c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f0f9c);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',_0x5f0f9c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f0f9c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f0f9c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f0f9c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f0f9c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f0f9c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f0f9c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f0f9c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f0f9c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f0f9c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f0f9c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f0f9c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f0f9c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f0f9c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f0f9c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f0f9c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f0f9c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f0f9c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f0f9c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f0f9c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f0f9c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f0f9c);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'},_0x5f0f9c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f0f9c);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 _0x30579e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f0f9c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x30579e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f0f9c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);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'},_0x5f0f9c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28ffdd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5bd841,_0xe33b02){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5bd841,this['_locale']=_0xe33b02;}['getDescriptions'](_0x4f9175){const _0x105531=[],_0x195b40=new Set(),_0xf5be72=new Set();for(let _0x192547=0x0;_0x192547<_0x4f9175['length'];_0x192547++){const _0x13974a=_0x4f9175[_0x192547];if(!_0x13974a['isInContent'])continue;const _0xab9b9d=this['_handleCustomCallbackDescription'](_0x13974a);if(_0xab9b9d){if(null!=_0x13974a['subType']){if(_0x195b40['has'](_0x13974a['subType']))continue;_0x195b40['add'](_0x13974a['subType']);}_0x105531['push'](_0xab9b9d);}else{if('attribute'!=_0x13974a['type'])'insertion'!=_0x13974a['type']&&'deletion'!=_0x13974a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x105531,_0x13974a,_0x4f9175[_0x192547+0x1]);else{const _0xb6926b=_0x13974a['data']['key'];if(_0xf5be72['has'](_0xb6926b))continue;_0xf5be72['add'](_0x13974a['data']['key']),_0xb6926b==m?this['_handleRenameSuggestionDescription'](_0x105531,_0x13974a):this['_handleAttributeSuggestionDescription'](_0x105531,_0x13974a);}}}return this['_resolveDescriptionItems'](_0x105531);}['registerDescriptionCallback'](_0x50de15){this['_customCallbacks']['push'](_0x50de15);}['registerElementLabel'](_0x55376e,_0x3df345,_0x2ba4d9=_0x14f8c3['normal']){'function'==typeof _0x55376e?_0x4ba70b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55376e,'label':_0x3df345,'priority':_0x2ba4d9}):this['_itemLabels']['set'](_0x55376e,_0x3df345);}['registerAttributeLabel'](_0x29123a,_0x232cab){this['_attributeLabels']['set'](_0x29123a,_0x232cab);}['getItemLabel'](_0xed9e34,_0x148222=0x1){let _0x458853;for(const _0x26a792 of this['_itemLabelsCallbacks'])if(_0x26a792['matchingCallback'](_0xed9e34)){_0x458853=_0x26a792['label'];break;}return _0x458853||(_0x458853=this['_itemLabels']['get'](_0xed9e34['name'])),_0x458853?_0x458853(_0x148222):0x1!==_0x148222?_0x148222+'\x20'+_0xed9e34['name']+'s':''+_0xed9e34['name'];}['_addDescriptionItems'](_0x4a7bde,_0x472cc6){const _0x49b8f1=_0x472cc6['getFirstRange']()['getWalker'](),_0x5b0812='insertion'==_0x472cc6['type']?'add':'remove';for(const _0x478b05 of _0x49b8f1){const _0x1748e6=_0x478b05['item'],_0x5298a4=_0x4a7bde[_0x4a7bde['length']-0x1];if(_0x1748e6['is']('$textProxy'))_0x5298a4&&_0x5298a4['type']['indexOf']('Container')>-0x1&&_0x4a7bde['pop'](),_0x5298a4&&'text'==_0x5298a4['type']?_0x5298a4[_0x5b0812]+=_0x1748e6['data']:_0x4a7bde['push']({'type':'text','add':'add'==_0x5b0812?_0x1748e6['data']:'','remove':'remove'==_0x5b0812?_0x1748e6['data']:''});else{if(this['_schema']['isObject'](_0x1748e6)){const _0x3a4366=_0x1748e6;if(_0x5298a4&&_0x5298a4['type']['indexOf']('Container')>-0x1&&_0x4a7bde['pop'](),'elementEnd'==_0x478b05['type'])continue;_0x5298a4&&_0x5298a4['type']==_0x5b0812+'Object'&&_0x5298a4['element']['name']==_0x3a4366['name']?_0x5298a4['quantity']++:_0x4a7bde['push']({'type':_0x5b0812+'Object','element':_0x3a4366,'quantity':0x1}),_0x49b8f1['skip'](_0x43fc9f=>!('elementEnd'==_0x43fc9f['type']&&_0x43fc9f['item']==_0x1748e6));}else{if(this['_schema']['checkChild'](_0x1748e6,'$text')||_0x1748e6['is']('element','softBreak')){const _0x11a892=_0x1748e6;if('add'==_0x5b0812&&'elementStart'==_0x478b05['type']||'remove'==_0x5b0812&&'elementEnd'==_0x478b05['type'])continue;if(_0x5298a4&&-0x1==_0x5298a4['type']['indexOf']('Container')){'text'==_0x5298a4['type']&&(_0x5298a4[_0x5b0812]+='\x0a');continue;}let _0x54df10;if(_0x54df10='add'==_0x5b0812?_0x11a892['nextSibling']&&!this['_schema']['isObject'](_0x11a892['nextSibling'])?_0x11a892['nextSibling']:null:_0x11a892['previousSibling']&&!this['_schema']['isObject'](_0x11a892['previousSibling'])?_0x11a892['previousSibling']:null,_0x11a892['isEmpty']||_0x54df10&&_0x54df10['isEmpty']){const _0x378140=_0x54df10&&_0x54df10['isEmpty']?_0x54df10:_0x11a892;_0x5298a4&&_0x5298a4['type']==_0x5b0812+'EmptyContainer'&&_0x5298a4['element']['name']==_0x378140['name']?_0x5298a4['quantity']++:_0x4a7bde['push']({'type':_0x5b0812+'EmptyContainer','element':_0x378140,'quantity':0x1});}else _0x4a7bde['push']({'type':_0x5b0812+'Container','element':_0x11a892});}}}}}['_resolveDescriptionItems'](_0x43f839){const _0x46f501=this['_locale'],_0x57af4f=[],_0x55dd7d=[],_0x5c79d8=[];for(const _0x429d89 of _0x43f839)switch(_0x429d89['type']){case'text':if(_0x429d89['add']=_0x429d89['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x429d89['remove']=_0x429d89['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x429d89['add']&&''!=_0x429d89['remove']){_0x57af4f['push']({'type':'replace','content':o(_0x46f501,'REPLACE_TEXT',['\x22'+_0x429d89['remove']+'\x22','\x22'+_0x429d89['add']+'\x22'])});continue;}if(null!=_0x429d89['add']['match'](/^ +$/)){_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0',o(_0x46f501,'ELEMENT_SPACE',_0x429d89['add']['length']))});continue;}if(null!=_0x429d89['remove']['match'](/^ +$/)){_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0',o(_0x46f501,'ELEMENT_SPACE',_0x429d89['remove']['length']))});continue;}if(''!=_0x429d89['add']){_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0','\x22'+_0x429d89['add']+'\x22')});continue;}_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0','\x22'+_0x429d89['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Insert:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Remove:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'addContainer':_0x57af4f['push']({'type':'insertion','content':o(_0x46f501,'*Split:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'removeContainer':_0x57af4f['push']({'type':'deletion','content':o(_0x46f501,'*Merge:*\x20%0',this['getItemLabel'](_0x429d89['element'],_0x429d89['quantity']))});continue;case'addFormat':_0x55dd7d['push'](_0x429d89['key']);continue;case'removeFormat':_0x5c79d8['push'](_0x429d89['key']);continue;default:_0x57af4f['push'](_0x429d89);}if(_0x55dd7d['length']){const _0x3605e6=_0x55dd7d['map'](_0x245e5a=>this['_attributeLabels']['has'](_0x245e5a)?this['_attributeLabels']['get'](_0x245e5a):_0x245e5a)['join'](',\x20');_0x57af4f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3605e6)});}if(_0x5c79d8['length']){const _0x35a0e0=_0x5c79d8['map'](_0x3a2a23=>this['_attributeLabels']['has'](_0x3a2a23)?this['_attributeLabels']['get'](_0x3a2a23):_0x3a2a23)['join'](',\x20');_0x57af4f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35a0e0)});}return _0x57af4f;}['_handleCustomCallbackDescription'](_0xe8cb2b){for(const _0x4f5e33 of this['_customCallbacks']){const _0x705779=_0x4f5e33(_0xe8cb2b);if(_0x705779&&'type'in _0x705779)return _0x705779;}}['_handleAttributeSuggestionDescription'](_0x197865,_0x4e2d0a){const _0x1b87c7=_0x4e2d0a['data'],_0x5cc7bb=void 0x0===_0x1b87c7['newValue']?'removeFormat':'addFormat';_0x197865['push']({'type':_0x5cc7bb,'key':_0x1b87c7['key']});}['_handleRenameSuggestionDescription'](_0x43c681,_0x447a28){_0x43c681['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x447a28['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x762a5f,_0x213cbc,_0x72c1ea){if(this['_addDescriptionItems'](_0x762a5f,_0x213cbc),_0x72c1ea&&_0x72c1ea['getFirstRange']()&&!_0x213cbc['getFirstRange']()['end']['isEqual'](_0x72c1ea['getFirstRange']()['start'])){const _0x40e2a6=_0x762a5f[_0x762a5f['length']-0x1],_0x2b00e0='insertion'==_0x213cbc['type']?'add':'remove';_0x40e2a6&&'text'==_0x40e2a6['type']&&(_0x40e2a6[_0x2b00e0]+='\x0a');}}}class U extends _0x3870c0{['afterInit'](){const _0x140691=this['editor'],_0x23360a=_0x140691['plugins']['get']('TrackChangesEditing');_0x140691['commands']['get']('showAIAssistant')&&_0x23360a['enableCommand']('showAIAssistant');}}class V extends _0x3870c0{['afterInit'](){const _0x4fde54=this['editor'],_0x4c9bc3=_0x4fde54['locale'];if(!_0x4fde54['plugins']['has']('AlignmentEditing'))return;const _0x613fef=_0x4fde54['plugins']['get']('TrackChangesEditing');_0x613fef['enableDefaultAttributesIntegration']('alignment'),_0x613fef['registerBlockAttribute']('alignment'),_0x613fef['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c9bc3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51aa68=this['editor'],_0x345a38=_0x51aa68['locale'];_0x51aa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19beb7=>{if('formatBlock'!=_0x19beb7['type'])return;const {data:_0x48d1eb}=_0x19beb7;if(_0x48d1eb&&'alignment'==_0x48d1eb['commandName']){const _0x382a11=_0x48d1eb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x345a38,'*Format:*\x20%0',function(_0x3b9212){switch(_0x3b9212){case'left':return o(_0x345a38,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x345a38,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x345a38,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x345a38,'FORMAT_JUSTIFY_TEXT');}}(_0x382a11))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3870c0{['afterInit'](){const _0x1e9f59=this['editor'],_0x5b03bd=_0x1e9f59['plugins']['get']('TrackChangesEditing'),_0x3533e5=_0x1e9f59['locale'];for(const _0x335672 of ti){if(!_0x1e9f59['plugins']['has'](_0x335672))continue;const _0x15cd38=_0x335672['slice'](0x0,-0x7)['toLowerCase'](),_0x1ae2a0='FORMAT_'+_0x15cd38['toUpperCase']();_0x5b03bd['enableDefaultAttributesIntegration'](_0x15cd38),_0x5b03bd['registerInlineAttribute'](_0x15cd38),_0x5b03bd['descriptionFactory']['registerAttributeLabel'](_0x15cd38,o(_0x3533e5,_0x1ae2a0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3924e5=this['editor'],_0x49b5b0=_0x3924e5['locale'],_0x138be1=_0x3924e5['plugins']['get']('TrackChangesEditing');function _0x1c3c6b(_0x1c559a,_0x3e18c8){_0x138be1['descriptionFactory']['registerDescriptionCallback'](_0x1785f2=>{if('formatInline'!=_0x1785f2['type'])return;const {data:_0x37d1ec}=_0x1785f2;return _0x37d1ec&&_0x37d1ec['commandName']===_0x1c559a?_0x37d1ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49b5b0,'*Format:*\x20%0',_0x3e18c8)}:{'type':'format','content':o(_0x49b5b0,'*Remove\x20format:*\x20%0',_0x3e18c8)}:void 0x0;});}_0x1c3c6b('bold',o(_0x49b5b0,'FORMAT_BOLD')),_0x1c3c6b('italic',o(_0x49b5b0,'FORMAT_ITALIC')),_0x1c3c6b('underline',o(_0x49b5b0,'FORMAT_UNDERLINE')),_0x1c3c6b('code',o(_0x49b5b0,'FORMAT_CODE')),_0x1c3c6b('strikethrough',o(_0x49b5b0,'FORMAT_STRIKETHROUGH')),_0x1c3c6b('subscript',o(_0x49b5b0,'FORMAT_SUBSCRIPT')),_0x1c3c6b('superscript',o(_0x49b5b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3870c0{['afterInit'](){const _0x167b86=this['editor'],_0x58db59=_0x167b86['locale'];if(!_0x167b86['plugins']['has']('BlockQuoteEditing'))return;const _0x530045=_0x167b86['plugins']['get']('TrackChangesEditing'),_0x197d0f=this['editor']['commands']['get']('blockQuote');_0x530045['enableCommand']('blockQuote',(_0x34569a,_0x27b663={})=>{const _0x18cf91=this['editor']['model']['document']['selection'],_0x46d407=_0x27b663&&void 0x0!==_0x27b663['forceValue']?_0x27b663['forceValue']:!_0x197d0f['value'];let _0x57627b=[];if(_0x46d407){const _0x186070=Array['from'](_0x18cf91['getSelectedBlocks']())['filter'](_0x313273=>oo(_0x313273)||function(_0x146ca7,_0x4db5a9){const _0x908fb4=_0x4db5a9['checkChild'](_0x146ca7['parent'],'blockQuote'),_0x2f158b=_0x4db5a9['checkChild'](['$root','blockQuote'],_0x146ca7);return _0x908fb4&&_0x2f158b;}(_0x313273,this['editor']['model']['schema']));_0x57627b=to(_0x186070,_0x167b86['model']);}else{const _0x390eec=Array['from'](_0x18cf91['getSelectedBlocks']())['filter'](_0x49c3e0=>oo(_0x49c3e0));_0x57627b=to(_0x390eec,_0x167b86['model']);}_0x167b86['model']['change'](()=>{for(const _0x133330 of _0x57627b)_0x530045['markBlockFormat'](_0x133330,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46d407}]});});}),_0x530045['descriptionFactory']['registerDescriptionCallback'](_0x39b400=>{const {data:_0x4872df}=_0x39b400;if(_0x4872df&&'blockQuote'==_0x4872df['commandName']){const _0x2c0dd5=o(_0x58db59,'ELEMENT_BLOCK_QUOTE');return _0x4872df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58db59,'*Set\x20format:*\x20%0',_0x2c0dd5)}:{'type':'format','content':o(_0x58db59,'*Remove\x20format:*\x20%0',_0x2c0dd5)};}});}}function oo(_0x593a77){return'blockQuote'==_0x593a77['parent']['name'];}class L extends _0x3870c0{['afterInit'](){const _0x42090e=this['editor'],_0x174704=_0x42090e['locale'],_0x2e1dcc=_0x42090e['plugins']['get']('TrackChangesEditing');_0x42090e['plugins']['has']('BookmarkEditing')&&(_0x2e1dcc['enableCommand']('insertBookmark'),_0x2e1dcc['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e1dcc['registerBlockAttribute']('bookmarkId'),_0x2e1dcc['descriptionFactory']['registerDescriptionCallback'](_0x23ba7c=>{if('insertion'!=_0x23ba7c['type']&&'deletion'!=_0x23ba7c['type']&&'attribute'!=_0x23ba7c['type'])return;const _0x47f7a7=_0x23ba7c['getContainedElement']();if(null==_0x47f7a7)return;if(!_0x47f7a7['is']('element','bookmark'))return;const _0x82444c=_0x47f7a7['getAttribute']('bookmarkId');if('insertion'==_0x23ba7c['type'])return{'type':'insertion','content':o(_0x174704,'*Insert:*\x20%0','\x22'+_0x82444c+'\x22\x20'+o(_0x174704,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23ba7c['type'])return{'type':'deletion','content':o(_0x174704,'*Remove:*\x20%0','\x22'+_0x82444c+'\x22\x20'+o(_0x174704,'ELEMENT_BOOKMARK'))};const {data:_0x5ce391}=_0x23ba7c;if(!_0x5ce391||'bookmarkId'!=_0x5ce391['key'])return;return{'type':'format','content':o(_0x174704,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ce391['newValue']+'\x22')};}));}}class J extends _0x3870c0{['afterInit'](){const _0x3eaf23=this['editor'];_0x3eaf23['plugins']['has']('CaseChange')&&(_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3eaf23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3870c0{['afterInit'](){const _0x2013db=this['editor'];_0x2013db['commands']['get']('ckbox')&&_0x2013db['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3870c0{['afterInit'](){const _0x233243=this['editor'];if(!_0x233243['plugins']['has']('CodeBlock'))return;const _0x44bfc3=_0x233243['plugins']['get']('TrackChangesEditing'),_0x470e30=_0x233243['locale'],_0x1d9b4a=_0x233243['config']['get']('codeBlock')['languages'],_0x1aff29=_0x233243['commands']['get']('codeBlock');_0x44bfc3['enableCommand']('indentCodeBlock'),_0x44bfc3['enableCommand']('outdentCodeBlock'),_0x44bfc3['enableCommand']('codeBlock',(_0x357961,_0x409737={})=>{const _0x2ade90=_0x233243['model'],_0xefbccc=_0x233243['model']['document']['selection'],_0x46bfdf=_0x409737&&void 0x0!==_0x409737['forceValue']?_0x409737['forceValue']:!_0x1aff29['value'];let _0x38ee3f;_0x409737['language']||(_0x409737['language']=_0x1d9b4a[0x0]['language']),_0x38ee3f=_0x46bfdf?Array['from'](_0xefbccc['getSelectedBlocks']())['filter'](_0x45b67b=>eo(_0x45b67b)||function(_0x277be7,_0x76d97b){if(_0x277be7['is']('rootElement')||_0x76d97b['isLimit'](_0x277be7))return!0x1;return _0x76d97b['checkChild'](_0x277be7['parent'],'codeBlock');}(_0x45b67b,_0x2ade90['schema'])):Array['from'](_0xefbccc['getSelectedBlocks']())['filter'](_0x459813=>eo(_0x459813));const _0x3b4a55=to(_0x38ee3f,_0x2ade90);_0x2ade90['change'](()=>{for(const _0x4df02d of _0x3b4a55)_0x44bfc3['markBlockFormat'](_0x4df02d,{'commandName':'codeBlock','commandParams':[{..._0x409737,'forceValue':_0x46bfdf}],'formatGroupId':'blockName'});});}),(_0x44bfc3['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d9995=>o(_0x470e30,'ELEMENT_CODE_BLOCK',_0x3d9995)),_0x44bfc3['descriptionFactory']['registerDescriptionCallback'](_0x4765c9=>{if('formatBlock'!=_0x4765c9['type'])return;const _0x1241b3=_0x470e30['t'],{data:_0x2418ec}=_0x4765c9;if(!_0x2418ec||'codeBlock'!=_0x2418ec['commandName'])return;const _0x2e8588=_0x2418ec['commandParams'][0x0]['language'],_0x57c35a=_0x1241b3(_0x1d9b4a['find'](_0x26ac2b=>_0x26ac2b['language']===_0x2e8588)['label'])['toLowerCase']();return _0x2418ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470e30,'*Set\x20format:*\x20%0',o(_0x470e30,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x57c35a+')')}:{'type':'format','content':o(_0x470e30,'*Remove\x20format:*\x20%0',o(_0x470e30,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bc18e){return'codeBlock'==_0x5bc18e['name'];}class z extends _0x3870c0{['afterInit'](){const _0x4b8cd5=this['editor'];if(!_0x4b8cd5['plugins']['has']('CommentsEditing'))return;_0x4b8cd5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54d9d5,_0x4ff20d,_0xeda4f4){const _0x1f9976=[];for(const _0x276dad of _0x4ff20d['getItems']())_0x276dad['hasAttribute'](_0x54d9d5)&&_0x1f9976['push'](_0xeda4f4['createRangeOn'](_0x276dad));return _0x1f9976;}function De(_0xd4ef00,_0xf2015c,{showActiveMarker:_0x4de181=!0x0}={}){const _0x28413c=_0xd4ef00['plugins']['get']('TrackChangesEditing');return(_0x2c29b1,_0x86de33,_0x551fbc)=>{if(!_0x551fbc['consumable']['test'](_0x86de33['markerRange'],_0x2c29b1['name']))return;const _0x36bf72=_0x86de33['markerRange']['getWalker'](),_0x4e80cb=_0x86de33['markerRange']['start'],_0x365dc0=_0xd4ef00['model']['schema'];let _0x5c2540=null,_0x1f31bc=null,_0xc17216=!0x1,_0x32eac7=!0x1;for(const _0x46ba6a of _0x36bf72){const _0x1a5bb6=_0x46ba6a['item'];_0xc17216=_0xc17216||_0x365dc0['isContent'](_0x1a5bb6);const _0x802e2e=_0x551fbc['mapper']['toViewElement'](_0x1a5bb6);if(_0x802e2e&&_0x802e2e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46ba6a['type']&&(_0x365dc0['isBlock'](_0x1a5bb6)&&!_0x365dc0['isLimit'](_0x1a5bb6)&&(_0x1a5bb6['nextSibling']||_0x4e80cb['isAtEnd']?_0x5c2540&&_0x5c2540['parent']==_0x1a5bb6||(_0x5c2540=_0x1a5bb6,_0x1e6bd5(_0x46ba6a['previousPosition']),_0x32eac7=!0x0):_0x1f31bc=_0x1f31bc||_0x46ba6a['previousPosition']));}function _0x1e6bd5(_0xaa19b3){const {authorId:_0x19f005}=_0x28413c['_splitMarkerName'](_0x86de33['markerName']),_0x2f1f73=_0x551fbc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2015c,'data-author-id':_0x19f005}),_0x184296=_0x551fbc['mapper']['toViewPosition'](_0xaa19b3);_0x4de181&&_0x28413c['activeMarkers']['includes'](_0x86de33['markerName'])&&_0x551fbc['writer']['addClass']('ck-suggestion-marker--active',_0x2f1f73),_0x551fbc['writer']['insert'](_0x184296,_0x2f1f73),_0x551fbc['mapper']['bindElementToMarker'](_0x2f1f73,_0x86de33['markerName']);}_0xc17216||_0x32eac7||!_0x1f31bc||_0x1e6bd5(_0x1f31bc);};}class K extends _0x3870c0{static get['requires'](){return[_0x387fbd];}['init'](){const _0x35f5ff=this['editor'],_0x1b10fa=_0x35f5ff['plugins']['get']('TrackChangesEditing');_0x1b10fa['enableCommand']('delete');const _0x3465cd=_0x35f5ff['commands']['get']('deleteForward');_0x1b10fa['enableCommand']('deleteForward',(_0x5537ec,_0x5a62b6={})=>{const _0xa7a53=_0x35f5ff['model']['createSelection'](_0x35f5ff['model']['document']['selection']);_0xa7a53['isCollapsed']&&_0x35f5ff['model']['modifySelection'](_0xa7a53,{'direction':'forward','unit':_0x5a62b6['unit']});const _0x16608d=_0xa7a53['getFirstRange'](),_0x7cfaad=_0x1abeca['fromRange'](_0x16608d);let _0x2ca170;_0x5537ec(_0x5a62b6),_0x2ca170='$graveyard'==_0x7cfaad['root']['rootName']?_0x35f5ff['model']['createRange'](_0x16608d['start']):_0x35f5ff['model']['createRange'](_0x7cfaad['start'],_0x7cfaad['end']),_0x7cfaad['detach'](),_0x35f5ff['model']['enqueueChange'](_0x3465cd['buffer']['batch'],_0xdf16b5=>{_0x3465cd['buffer']['lock'](),_0xdf16b5['setSelection'](_0xdf16b5['createRange'](_0x2ca170['end'])),_0x3465cd['buffer']['unlock']();});}),_0x35f5ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x35f5ff,'merge'),{'priority':'high'}),_0x35f5ff['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47ac49,_0x221534,_0x391002)=>{_0x391002['options']['showSuggestionHighlights']&&De(_0x35f5ff,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x47ac49,_0x221534,_0x391002);},{'priority':'high'}),_0x35f5ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xe2b6d4,_0x1ee429,_0x57ff04)=>{const _0x204b4b=_0x57ff04['mapper']['markerNameToElements'](_0x1ee429['markerName']);if(_0x204b4b){for(const _0x2ba431 of _0x204b4b)_0x2ba431['is']('uiElement')&&(_0x57ff04['mapper']['unbindElementFromMarkerName'](_0x2ba431,_0x1ee429['markerName']),_0x57ff04['writer']['remove'](_0x2ba431));}},{'priority':'high'});}}class W extends _0x3870c0{['afterInit'](){const _0x5cb753=this['editor'];if(!_0x5cb753['plugins']['has']('ListEditing'))return;const _0x16a84a=_0x5cb753['locale'],_0x14921c=_0x5cb753['plugins']['get']('TrackChangesEditing'),_0x23f8c5=_0x5cb753['plugins']['has']('TodoListEditing'),_0x57428f=!!_0x5cb753['config']['get']('list.multiBlock');function _0x2e8a8e(_0x4b7d2d){return{'type':'format','content':''+o(_0x16a84a,'*Set\x20format:*\x20%0',_0x4b7d2d)};}function _0x237f07(_0x15ff34){return{'type':'format','content':''+o(_0x16a84a,'*Remove\x20format:*\x20%0',_0x15ff34)};}_0x14921c['enableDefaultAttributesIntegration']('numberedList'),_0x14921c['enableDefaultAttributesIntegration']('bulletedList'),_0x14921c['enableDefaultAttributesIntegration']('customNumberedList'),_0x14921c['enableDefaultAttributesIntegration']('customBulletedList'),_0x14921c['enableDefaultAttributesIntegration']('indentList'),_0x14921c['enableDefaultAttributesIntegration']('outdentList'),_0x14921c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14921c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14921c['registerBlockAttribute']('listItemId'),_0x14921c['registerBlockAttribute']('listType'),_0x14921c['registerBlockAttribute']('listIndent'),_0x57428f&&(_0x14921c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14921c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x23f8c5&&(_0x14921c['enableDefaultAttributesIntegration']('todoList'),_0x14921c['enableDefaultAttributesIntegration']('checkTodoList'),_0x14921c['registerBlockAttribute']('todoListChecked'),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x57ac0f=>{const {data:_0x3ef363}=_0x57ac0f;if(_0x3ef363&&'todoListChecked'==_0x3ef363['key'])return{'type':'format','content':_0x3ef363['newValue']?o(_0x16a84a,'*Check\x20item*'):o(_0x16a84a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31664c=>{if(_0x31664c['batch']['isUndo'])return!0x1;let _0x1c1078=!0x1;const _0x11d6ca=_0x14921c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59d039=>'todoListChecked'===_0x14921c['_getAttributeKey'](_0x59d039));for(const _0x3be1ac of _0x11d6ca){'todo'!=_0x3be1ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14921c['_findSuggestions'](_0x3be1ac['getFirstRange'](),'attribute')['find'](_0x19e9e2=>'listType'===_0x14921c['_getAttributeKey'](_0x19e9e2['suggestion']))||(_0x31664c['removeMarker'](_0x3be1ac['getFirstMarker']()),_0x1c1078=!0x0));}return _0x1c1078;})),_0x14921c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x16a84a,'FORMAT_INDENT'));const _0x4834ce={'type':'format','content':''};_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x2f5fa2=>{const {data:_0x422611}=_0x2f5fa2;if(!_0x422611||'listType'!=_0x422611['key'])return;let _0x4c0b46=_0x2f5fa2['head'];for(;_0x4c0b46;){if(_0x4c0b46['data']&&(('listStyle'==_0x4c0b46['data']['key']||'listMarkerStyle'==_0x4c0b46['data']['key'])&&(_0x4c0b46['data']['newValue']&&'default'!=_0x4c0b46['data']['newValue']||'default'!=_0x4c0b46['data']['oldValue']&&!_0x422611['newValue'])||!_0x57428f&&_0x4c0b46['data']['key']==m))return _0x4834ce;_0x4c0b46=_0x4c0b46['next'];}if(null==_0x422611['newValue'])switch(_0x422611['oldValue']){case'bulleted':return _0x237f07(o(_0x16a84a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x237f07(o(_0x16a84a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x237f07(o(_0x16a84a,'ELEMENT_TODO_LIST'));}switch(_0x422611['newValue']){case'bulleted':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e8a8e(o(_0x16a84a,'ELEMENT_TODO_LIST'));}}),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x4e1c98=>{const {data:_0x1588ee}=_0x4e1c98;if(_0x1588ee&&'listIndent'==_0x1588ee['key'])return null==_0x1588ee['newValue']||null==_0x1588ee['oldValue']&&0x0==_0x1588ee['newValue']?_0x4834ce:void 0x0;}),_0x14921c['descriptionFactory']['registerDescriptionCallback'](_0x3729af=>{if('attribute'!=_0x3729af['type'])return;const {data:_0x28e9bc}=_0x3729af;if(!_0x28e9bc||'listItemId'!=_0x28e9bc['key'])return;const _0x523087=Te(_0x3729af);return'newValue'==_0x523087?{'type':'format','content':o(_0x16a84a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x523087?{'type':'format','content':o(_0x16a84a,'*Split:*\x20list\x20item')}:_0x4834ce;}),_0x5cb753['model']['document']['registerPostFixer'](_0x480f69=>this['listItemIdFixer'](_0x480f69)),_0x5cb753['model']['document']['registerPostFixer'](_0x526481=>this['noTrackChangesFixer'](_0x526481)),_0x5cb753['model']['document']['on']('change:data',(_0x24d49d,_0x3c66dd)=>{if(_0x3c66dd['isUndo']||!_0x3c66dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5d5318){if(_0x5d5318['batch']['isUndo']||!_0x5d5318['batch']['isLocal'])return!0x1;let _0x3e4e9d=!0x1;const _0x1fc265=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x266720=>_0x266720['data']&&'listItemId'==_0x266720['data']['key'])['filter'](_0xa09095=>_0xa09095['data']['newValue']&&_0xa09095['data']['oldValue']);for(const _0x165061 of _0x1fc265)Te(_0x165061)||(_0x5d5318['removeMarker'](_0x165061['getFirstMarker']()),_0x3e4e9d=!0x0);return _0x3e4e9d;}['noTrackChangesFixer'](_0x49dc22){if(_0x49dc22['batch']['isUndo']||!_0x49dc22['batch']['isLocal'])return!0x1;const _0x37a56b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x37a56b['trackChangesCommand']['value'])return!0x1;let _0x12167d=!0x1;const _0x55a246=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x18e372=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x23abad=>'attribute'==_0x23abad['type'])['filter'](_0x5dac1b=>_0x55a246['includes'](_0x5dac1b['attributeKey']));if(0x0==_0x18e372['length'])return _0x12167d;for(const _0x4c3dab of _0x18e372){const _0x46bb2e=_0x37a56b['_findSuggestions'](_0x4c3dab['range'],'attribute')['filter'](_0x1f4cf0=>!_0x1f4cf0['meta']['isNextTo'])['map'](_0x29ed28=>_0x29ed28['suggestion'])['filter'](_0x5d849b=>{const _0x4fc6cd=_0x37a56b['_getAttributeKey'](_0x5d849b);return _0x55a246['includes'](_0x4fc6cd);});if(_0x46bb2e['length']){for(const _0x33de44 of _0x46bb2e)_0x49dc22['removeMarker'](_0x33de44['getFirstMarker']());_0x12167d=!0x0;}}return _0x12167d;}['assureChains'](){const _0x2fbf45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55bab8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x389c17;const _0x14a9ef=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55e178=>{if(_0x55e178['data']['oldRange']||!_0x55e178['data']['newRange'])return null;if(!_0x55e178['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1800f0}=_0x2fbf45['_splitMarkerName'](_0x55e178['name']);if(!_0x2fbf45['hasSuggestion'](_0x1800f0))return null;const _0x3797a0=_0x2fbf45['getSuggestion'](_0x1800f0);return _0x55bab8['includes'](_0x3797a0['data']['key']);})['map'](_0x3f9d2b=>{const {id:_0xfc4648}=_0x2fbf45['_splitMarkerName'](_0x3f9d2b['name']),_0x4b1701=_0x2fbf45['getSuggestion'](_0xfc4648);return _0x389c17=_0x4b1701['attributes']['groupId'],_0x4b1701['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14a9ef['size'])return;const _0x10e91c=_0x2fbf45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x439161=>'attribute'==_0x439161['type']&&_0x439161['data']&&_0x55bab8['includes'](_0x439161['data']['key'])&&_0x439161['attributes']['groupId']!=_0x389c17)['map'](_0x1f1c49=>({'listItem':_0x1f1c49['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f1c49['attributes']['groupId']})),_0x3f4b17=new Set();for(const {groupId:_0x58faa2,listItem:_0x35db8a}of _0x10e91c)_0x14a9ef['has'](_0x35db8a)&&_0x3f4b17['add'](_0x58faa2);for(const _0xefeb85 of _0x2fbf45['getSuggestions']())_0x3f4b17['has'](_0xefeb85['attributes']['groupId'])&&_0xefeb85['setAttribute']('groupId',_0x389c17);}['_supportLegacySuggestions'](){const _0x529b21=this['editor'],_0x27ac65=_0x529b21['locale'],_0xc5c218=_0x529b21['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc5c218['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xa630ca,_0x27a4eb){const _0x2d5bbb=[];for(let _0x27d272 of _0xa630ca)_0x27d272['start']['nodeAfter']===_0x27d272['end']['parent']&&(_0x27d272=_0x529b21['model']['createRange'](_0x529b21['model']['createPositionAt'](_0x27d272['start']['nodeAfter'],0x0))),_0x2d5bbb['push'](_0x27d272);_0x529b21['model']['change'](_0x46519f=>{const _0x2d8567=_0x529b21['model']['document']['selection'],_0x4db719=Array['from'](_0x2d8567['getRanges']())['map'](_0x3781c8=>_0x1abeca['fromRange'](_0x3781c8));_0x46519f['setSelection'](_0x2d5bbb),_0x529b21['commands']['get'](_0x27a4eb['commandName'])['refresh'](),_0x27a4eb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x529b21['execute'](_0x27a4eb['commandName'],..._0x27a4eb['commandParams']),_0x46519f['setSelection'](_0x4db719);for(const _0xe71ed1 of _0x4db719)_0xe71ed1['detach']();});}),_0xc5c218['descriptionFactory']['registerElementLabel'](function(_0x2e1966){const _0x18b360=!_0x529b21['model']['schema']['isObject'](_0x2e1966),_0x2ac254=_0x2e1966['previousSibling'],_0x4de0b8=_0x2e1966['nextSibling'],_0x30a3e3=_0x2e1966['getAttribute']('listItemId'),_0x38a5e3=!_0x2ac254||_0x2ac254['getAttribute']('listItemId')!==_0x30a3e3,_0x4c304d=!_0x4de0b8||_0x4de0b8['getAttribute']('listItemId')!==_0x30a3e3;return _0x18b360&&Boolean(_0x30a3e3)&&_0x38a5e3&&_0x4c304d;},_0xeb73d6=>o(_0x27ac65,'ELEMENT_LIST_ITEM',_0xeb73d6));}['_registerLegacyDescription'](){const _0x361f45=this['editor'],_0x4b3a84=_0x361f45['locale'];function _0x9967bf(_0x1b787d){const _0x3c4d1e=_0x361f45['commands']['get']('bulletedList')['value'],_0x462e7e=_0x361f45['commands']['get']('numberedList')['value'];return'numberedList'===_0x1b787d?_0x3c4d1e:_0x462e7e;}_0x361f45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x164285){if('formatBlock'!=_0x164285['type'])return;const {data:_0x1459c6}=_0x164285;if(!_0x1459c6)return;let _0x15fae8,_0x5be28b,_0x20b22c,_0x2f2d88;switch(_0x1459c6['commandName']){case'bulletedList':_0x20b22c=_0x1459c6['commandParams'][0x0]['forceValue'],_0x2f2d88=_0x9967bf(_0x1459c6['commandName']),_0x15fae8=_0x20b22c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f2d88&&_0x361f45['config']['get']('list.multiBlock')||(_0x15fae8='*Change\x20to:*\x20%0'),_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x20b22c=_0x1459c6['commandParams'][0x0]['forceValue'],_0x2f2d88=_0x9967bf(_0x1459c6['commandName']),_0x15fae8=_0x20b22c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f2d88&&_0x361f45['config']['get']('list.multiBlock')||(_0x15fae8='*Change\x20to:*\x20%0'),_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15fae8='*Indent:*\x20%0',_0x5be28b={'type':'format','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15fae8=function(_0x5c8ff){const _0x45dbac=_0x5c8ff['getFirstRange']();let _0x27094e=_0x45dbac['start']['nodeAfter'];for(;_0x27094e&&_0x45dbac['containsItem'](_0x27094e);){if(_0x27094e['getAttribute']('listIndent')>0x0)return!0x1;_0x27094e=_0x27094e['nextSibling'];}return!0x0;}(_0x164285)?o(_0x4b3a84,'*Format:*\x20remove\x20from\x20%0',o(_0x4b3a84,function(_0x99066b){return'ELEMENT_'+_0x99066b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x164285))):o(_0x4b3a84,'*Outdent:*\x20%0',o(_0x4b3a84,'ELEMENT_LIST_ITEM')),_0x5be28b={'type':'format','content':_0x15fae8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1459c6['multipleBlocks']&&(_0x15fae8='*Merge:*\x20%0',_0x5be28b={'type':'deletion','content':o(_0x4b3a84,_0x15fae8,o(_0x4b3a84,'ELEMENT_LIST_ITEM'))});}return _0x5be28b;});}}function Te(_0x13821c){let _0x45441c=_0x13821c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x45441c;){const _0x56e80d=_0x45441c['getAttribute']('listItemId');if(!_0x56e80d)return!0x1;if(_0x56e80d==_0x13821c['data']['newValue'])return'newValue';if(_0x56e80d==_0x13821c['data']['oldValue'])return'oldValue';_0x45441c=_0x45441c['previousSibling'];}return!0x1;}class Se extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf11fa9=this['editor']['config']['get']('list.properties'),_0x4bc1d5=this['editor']['plugins']['get']('TrackChangesEditing');_0xf11fa9['styles']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listStyle'),_0x4bc1d5['registerBlockAttribute']('listStyle')),_0xf11fa9['reversed']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listReversed'),_0x4bc1d5['registerBlockAttribute']('listReversed')),_0xf11fa9['startIndex']&&(_0x4bc1d5['enableDefaultAttributesIntegration']('listStart'),_0x4bc1d5['registerBlockAttribute']('listStart'));const _0x90e231={'type':'format','content':''};_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ef3e0=this['editor']['locale'];_0x4bc1d5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ef3e0,'FORMAT_LIST_REVERSED')),_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](_0x51812d=>{const {data:_0x589d1d}=_0x51812d;if(_0x589d1d&&'listReversed'==_0x589d1d['key'])return null==_0x589d1d['newValue']||0x0==_0x589d1d['newValue']&&null==_0x589d1d['oldValue']?_0x90e231:void 0x0;}),_0x4bc1d5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ef3e0,'FORMAT_LIST_START')),_0x4bc1d5['descriptionFactory']['registerDescriptionCallback'](_0x5c5ef6=>{const {data:_0x3fd7a5}=_0x5c5ef6;if(_0x3fd7a5&&'listStart'==_0x3fd7a5['key'])return null==_0x3fd7a5['newValue']||0x1==_0x3fd7a5['newValue']&&null==_0x3fd7a5['oldValue']?_0x90e231:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x104d0a=>{if(_0x104d0a['batch']['isUndo'])return!0x1;let _0x264429=!0x1;const _0x275999=_0x4bc1d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x122435=>{const _0xbe45ec=_0x4bc1d5['_getAttributeKey'](_0x122435);return'listStart'==_0xbe45ec||'listReversed'==_0xbe45ec;});for(const _0x547c1e of _0x275999){const _0x458691=_0x547c1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x458691||'customNumbered'==_0x458691)continue;_0x4bc1d5['_findSuggestions'](_0x547c1e['getFirstRange'](),'attribute')['find'](_0x4b7b21=>'listType'==_0x4bc1d5['_getAttributeKey'](_0x4b7b21['suggestion']))||(_0x104d0a['removeMarker'](_0x547c1e['getFirstMarker']()),_0x264429=!0x0);}return _0x264429;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf9d10c){const _0x26e46c=this['editor']['locale'],{data:_0x4dd066}=_0xf9d10c,_0x19d377={'type':'format','content':''};if(!_0x4dd066||'listStyle'!=_0x4dd066['key'])return;if(!_0x4dd066['oldValue'])return'default'==_0x4dd066['newValue']?_0x19d377:{'type':'format','content':''+o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['newValue'])))};if(!_0x4dd066['newValue']){if('default'==_0x4dd066['oldValue'])return _0x19d377;let _0x380797=_0xf9d10c['head'];for(;_0x380797;){if(_0x380797['data']&&'listType'==_0x380797['data']['key']&&_0x380797['data']['newValue'])return _0x19d377;_0x380797=_0x380797['next'];}return{'type':'format','content':''+o(_0x26e46c,'*Remove\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['oldValue'])))};}if('default'!=_0x4dd066['newValue'])return{'type':'format','content':''+o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,this['_getTranslationKeyForListStyle'](_0x4dd066['newValue'])))};let _0x2a9cd9=_0xf9d10c['head'];for(;_0x2a9cd9;){if(_0x2a9cd9['data']&&'listType'==_0x2a9cd9['data']['key']&&_0x2a9cd9['data']['newValue']&&_0x2a9cd9['data']['oldValue'])return _0x19d377;_0x2a9cd9=_0x2a9cd9['next'];}return{'type':'format','content':o(_0x26e46c,'*Set\x20format:*\x20%0',o(_0x26e46c,'ELEMENT_'+_0xf9d10c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ec3d8=this['editor'],_0x114a50=_0x2ec3d8['locale'];_0x2ec3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4908=>{if('formatBlock'!=_0x1b4908['type'])return;const {data:_0x5b4072}=_0x1b4908;if(!_0x5b4072)return;let _0x418f0d,_0x1d28e0;switch(_0x5b4072['commandName']){case'listStyle':_0x418f0d='*Change\x20to:*\x20%0',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d,o(_0x114a50,this['_getTranslationKeyForListStyle'](_0x5b4072['commandParams'][0x0]['type'])))};break;case'listReversed':_0x418f0d=_0x5b4072['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d)};break;case'listStart':_0x418f0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d28e0={'type':'format','content':o(_0x114a50,_0x418f0d,_0x5b4072['commandParams'][0x0]['startIndex'])};}return _0x1d28e0;});}['_getTranslationKeyForListStyle'](_0x333995){return'ELEMENT_'+function(_0x346466){if(_e['includes'](_0x346466))return'bulleted';if(Re['includes'](_0x346466))return'numbered';return null;}(_0x333995)['toUpperCase']()+'_LIST_'+_0x333995['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3870c0{['afterInit'](){const _0x40b05a=this['editor'];_0x40b05a['commands']['get']('emoji')&&_0x40b05a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3870c0{static get['requires'](){return[_0x21a068];}['init'](){const _0x29e284=this['editor'],_0x4f1caf=_0x29e284['plugins']['get']('TrackChangesEditing'),_0x24c6b5=_0x29e284['commands']['get']('enter');_0x4f1caf['enableCommand']('enter',()=>{_0x29e284['model']['change'](_0xa0f0b3=>{const _0x188774=_0x29e284['model']['document']['selection'],_0x598a6d=_0x188774['getFirstPosition'](),_0x4dbd5c=_0x1abeca['fromRange'](_0x188774['getFirstRange']());if(_0x24c6b5['enterBlock'](_0xa0f0b3)){const _0x483d0c=_0x29e284['model']['createPositionAt'](_0x598a6d['parent']['nextSibling'],0x0),_0x46d550=_0xa0f0b3['createRange'](_0x598a6d,_0x483d0c);_0x4f1caf['markInsertion'](_0x46d550);}else _0xa0f0b3['setSelection'](_0xa0f0b3['createRange'](_0x4dbd5c['end']));_0x4dbd5c['detach'](),_0x24c6b5['fire']('afterExecute',{'writer':_0xa0f0b3});});}),_0x29e284['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x29e284,'split'),{'priority':'high'}),_0x29e284['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a3449,_0x24950d,_0x22e447)=>{const _0x1b9803=_0x22e447['mapper']['markerNameToElements'](_0x24950d['markerName']);if(_0x1b9803){for(const _0x51152a of _0x1b9803)_0x51152a['hasClass']('ck-suggestion-marker-split')&&(_0x22e447['mapper']['unbindElementFromMarkerName'](_0x51152a,_0x24950d['markerName']),_0x22e447['writer']['remove'](_0x51152a));}},{'priority':'high'}),_0x29e284['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x150ff5,_0x2669d7,_0x48ea6c)=>{_0x48ea6c['options']['showSuggestionHighlights']&&De(_0x29e284,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x150ff5,_0x2669d7,_0x48ea6c);},{'priority':'high'});}}class Z extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e7398=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e7398['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e7398['enableCommand']('findNext'),_0x1e7398['enableCommand']('findPrevious'),_0x1e7398['enableCommand']('replace'),_0x1e7398['enableCommand']('replaceAll');}['handleFindCommand'](_0x108721,_0x2d9e70,_0x4413b6={}){const _0x2d68dd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x108721(_0x598100=>{let _0x1e99fc=('string'==typeof _0x2d9e70?_0x2d68dd['findByTextCallback'](_0x2d9e70,_0x4413b6):_0x2d9e70)(_0x598100);Array['isArray'](_0x1e99fc)&&(_0x1e99fc={'results':_0x1e99fc,'searchText':'string'==typeof _0x2d9e70?_0x2d9e70:''});const _0x318343=_0x1e99fc['results']['filter'](_0x661c78=>!0x1===this['_isInDeletionRange'](_0x661c78,_0x598100['item']));return{..._0x1e99fc,'results':_0x318343};},_0x4413b6);}['_isInDeletionRange'](_0xa23790,_0x284ccf){const _0x5274a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x284ccf,_0xa23790['start']),this['editor']['model']['createPositionAt'](_0x284ccf,_0xa23790['end']));for(const _0x39bdbe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5274a3['getIntersection'](_0x39bdbe['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 _0x3870c0{['afterInit'](){const _0x1fe16c=this['editor']['locale'],_0x1a9375=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x199951,commandName:_0x309a8c}of ro)this['editor']['plugins']['has'](_0x199951)&&(_0x1a9375['enableDefaultAttributesIntegration'](_0x309a8c),_0x1a9375['registerInlineAttribute'](_0x309a8c));_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1fe16c,'FORMAT_FONT_SIZE')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1fe16c,'FORMAT_FONT_FAMILY')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1fe16c,'FORMAT_FONT_COLOR')),_0x1a9375['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1fe16c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd05295=this['editor'],_0x5b8fbf=_0xd05295['locale'];_0xd05295['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559d80=>{const _0x45a620=_0x5b8fbf['t'];if('formatInline'!=_0x559d80['type'])return;const {data:_0x3aa897}=_0x559d80;if(null!=_0x3aa897){if('fontSize'==_0x3aa897['commandName']){const _0x1b2a1f=_0x3aa897['commandParams'][0x0]['value'];if(_0x1b2a1f){const _0x1b99cb=_0x45a620(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1949c9=>_0x1949c9['model']==_0x1b2a1f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20size:*\x20%0',_0x1b99cb)};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3aa897['commandName']){const _0x5f25b9=_0x3aa897['commandParams'][0x0]['value'];return _0x5f25b9?{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20family:*\x20%0',_0x5f25b9)}:{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3aa897['commandName']){const _0x173db9=_0x3aa897['commandParams'][0x0]['value'];if(_0x173db9){const _0x17923f=_0x323ab2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ee0d6=>_0x5ee0d6['model']==_0x173db9);let _0x4f831d=_0x173db9,_0x410e16='';return _0x17923f&&(_0x4f831d=_0x17923f['label'],_0x410e16=_0x45a620(_0x4f831d)['toLowerCase']()),{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20color:*\x20%0',_0x410e16)['trim'](),'color':{'value':_0x173db9,'title':_0x410e16||_0x4f831d}};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3aa897['commandName']){const _0xa360cb=_0x3aa897['commandParams'][0x0]['value'];if(_0xa360cb){const _0x313347=_0x323ab2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x490bcc=>_0x490bcc['model']==_0xa360cb);let _0x1cfb83=_0xa360cb,_0x3d29ed='';return _0x313347&&(_0x1cfb83=_0x313347['label'],_0x3d29ed=_0x45a620(_0x1cfb83)['toLowerCase']()),{'type':'format','content':o(_0x5b8fbf,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d29ed)['trim'](),'color':{'value':_0xa360cb,'title':_0x3d29ed||_0x1cfb83}};}return{'type':'format','content':o(_0x5b8fbf,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x3870c0{['afterInit'](){const _0x52af7c=this['editor'],_0x369242=_0x52af7c['plugins']['get']('TrackChangesEditing'),_0x5d28b1=_0x52af7c['commands']['get']('copyFormat'),_0x3bc383=_0x52af7c['commands']['get']('pasteFormat');_0x5d28b1&&_0x3bc383&&(_0x369242['enableDefaultAttributesIntegration']('pasteFormat'),_0x369242['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20aa7d=this['editor'],_0x5b6869=_0x20aa7d['locale'];_0x20aa7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b7db=>{if('formatBlock'!=_0x42b7db['type']&&'formatInline'!=_0x42b7db['type'])return;const {data:_0x1cfe0e}=_0x42b7db;if(_0x1cfe0e&&'pasteFormat'===_0x1cfe0e['commandName']){const _0x285366=[],_0x5cf318=_0x1cfe0e['commandParams'][0x0];for(const [_0x2e81fd,_0x515666]of Object['entries'](_0x5cf318))_0x285366['push'](so(_0x20aa7d,_0x2e81fd,_0x515666));return _0x285366['length']?{'type':'format','content':o(_0x5b6869,'*Set\x20format\x20to:*\x20%0',_0x285366['join'](',\x20'))}:{'type':'format','content':o(_0x5b6869,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5250af,_0x3acdc3,_0x3967a3){const _0x354844=_0x5250af['locale']['t'],_0x4c99cb=_0x3acdc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x43c974=_0x354844(_0x4c99cb['charAt'](0x0)['toUpperCase']()+_0x4c99cb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3967a3)return _0x43c974;if('fontColor'===_0x3acdc3||'fontBackgroundColor'===_0x3acdc3){const _0x40fe5a=_0x323ab2(_0x5250af['config']['get']('fontColor.colors'))['find'](_0x13ea22=>_0x13ea22['model']==_0x3967a3);return _0x43c974+'\x20('+(_0x40fe5a?_0x354844(_0x40fe5a['label'])['toLowerCase']():_0x3967a3)+')';}if('fontSize'===_0x3acdc3&&isNaN(parseFloat(_0x3967a3))){const _0x337916=_0x5250af['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5250af['config']['get']('fontSize.options'))['find'](_0x1d3e28=>_0x1d3e28['model']==_0x3967a3);return _0x43c974+'\x20('+(_0x337916?_0x354844(_0x337916['title'])['toLowerCase']():_0x3967a3)+')';}return _0x43c974+'\x20('+_0x3967a3+')';}class it extends _0x3870c0{['_headingOptions'];['afterInit'](){const _0x30732d=this['editor'];if(!_0x30732d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30732d['config']['get']('heading.options');const _0x482878=_0x30732d['locale'],_0x540220=_0x30732d['plugins']['get']('TrackChangesEditing');_0x540220['enableDefaultAttributesIntegration']('heading');for(const _0x3d2e15 of this['_headingOptions'])'paragraph'!=_0x3d2e15['model']&&_0x540220['descriptionFactory']['registerElementLabel'](_0x3d2e15['model'],_0x5dcb64=>{const _0x2c2180=this['_getHeadingLevel'](_0x3d2e15['model']);return null!==_0x2c2180?_0x50e47b(_0x5dcb64,_0x2c2180):_0x39fe23(_0x5dcb64,_0x3d2e15['title']);});function _0x50e47b(_0x4cc86d,_0x4e5586){return o(_0x482878,'ELEMENT_HEADING',[_0x4cc86d,_0x4e5586]);}function _0x39fe23(_0x27fed4,_0x45a55a){return o(_0x482878,'ELEMENT_HEADING_CUSTOM',[_0x27fed4,_0x45a55a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4956fd=this['editor'],_0x127856=_0x4956fd['locale'];function _0x39e11b(_0x1de19d,_0x4ae320){return o(_0x127856,'ELEMENT_HEADING_CUSTOM',[_0x1de19d,_0x4ae320]);}_0x4956fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x502388=>{if('formatBlock'!=_0x502388['type'])return;const {data:_0x29e0d1}=_0x502388;if(_0x29e0d1&&'heading'==_0x29e0d1['commandName']){const _0x29aa69=_0x29e0d1['commandParams'][0x0]['value'],_0x37f9a7=this['_getHeadingLevel'](_0x29aa69);if(null!==_0x37f9a7)return{'type':'format','content':o(_0x127856,'*Change\x20to:*\x20%0',(_0x1ec586=0x1,_0x167d7a=_0x37f9a7,o(_0x127856,'ELEMENT_HEADING',[_0x1ec586,_0x167d7a])))};const _0xa217b2=this['_headingOptions']['find'](_0x4e03c1=>_0x4e03c1['model']===_0x29aa69)['title'];return{'type':'format','content':o(_0x127856,'*Change\x20to:*\x20%0',_0x39e11b(0x1,_0xa217b2))};}var _0x1ec586,_0x167d7a;});}['_getHeadingLevel'](_0x350d9a){const _0x346fb3=_0x350d9a['match'](/^heading(\d+)/);if(_0x346fb3)return _0x346fb3[0x1];const _0x1647e9=this['_headingOptions']?.['find'](_0x56c1ba=>_0x56c1ba['model']==_0x350d9a);if(_0x1647e9&&_0x1647e9['view']){const _0xda4915=_0x1647e9['view'],_0x48c17f=(_0xda4915['name']??_0xda4915)['match'](/^h(\d+)/);if(_0x48c17f)return _0x48c17f[0x1];}return null;}}class et extends _0x3870c0{['afterInit'](){const _0x4f8b47=this['editor'];if(!_0x4f8b47['plugins']['has']('HighlightEditing'))return;const _0x52ea44=_0x4f8b47['plugins']['get']('TrackChangesEditing'),_0x281c75=_0x4f8b47['locale'];_0x52ea44['enableDefaultAttributesIntegration']('highlight'),_0x52ea44['registerInlineAttribute']('highlight'),_0x52ea44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x281c75,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x518219=this['editor'],_0x1ad3e7=_0x518219['locale'];_0x518219['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6e6f=>{if('formatInline'!=_0x2c6e6f['type'])return;const {data:_0x58363f}=_0x2c6e6f;if(_0x58363f&&'highlight'==_0x58363f['commandName']){const _0x3b901c=_0x1ad3e7['t'],_0x24578d=_0x58363f['commandParams'][0x0]['value'];if(_0x24578d){const _0x259ebc=_0x518219['config']['get']('highlight.options')['find'](_0x5b0713=>_0x5b0713['model']==_0x24578d),_0x4076d7=_0x3b901c(_0x259ebc['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ad3e7,'*Set\x20highlight:*\x20%0',_0x4076d7),'color':{'value':_0x259ebc['color'],'title':_0x259ebc['title']}};}return{'type':'format','content':o(_0x1ad3e7,'*Remove\x20highlight*',o(_0x1ad3e7,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3870c0{['afterInit'](){const _0x45cfde=this['editor'];if(!_0x45cfde['plugins']['has']('HorizontalLineEditing'))return;_0x45cfde['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2c8980=_0x45cfde['plugins']['get']('TrackChangesEditing'),_0x2e7882=_0x45cfde['locale'];_0x2c8980['descriptionFactory']['registerElementLabel']('horizontalLine',_0x26155f=>o(_0x2e7882,'ELEMENT_HORIZONTAL_LINE',_0x26155f)),_0x45cfde['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x55ae79,{writer:_0x13bc4e,options:_0x5da429})=>{if(!_0x5da429['showSuggestionHighlights'])return null;const _0x5e7351=_0x13bc4e['createContainerElement']('div'),_0x1639bd=_0x13bc4e['createEmptyElement']('hr');return _0x13bc4e['addClass']('ck-horizontal-line',_0x5e7351),_0x13bc4e['insert'](_0x13bc4e['createPositionAt'](_0x5e7351,0x0),_0x1639bd),_0x5e7351;},'converterPriority':'high'});}}class ot extends _0x3870c0{['afterInit'](){const _0x177699=this['editor'];if(!_0x177699['plugins']['has']('HtmlEmbed'))return;const _0x2ea991=_0x177699['plugins']['get']('TrackChangesEditing'),_0x142d9f=_0x177699['locale'];_0x2ea991['descriptionFactory']['registerElementLabel']('rawHtml',_0x43fc99=>o(_0x142d9f,'ELEMENT_HTML_EMBED',_0x43fc99)),_0x2ea991['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ea991['registerBlockAttribute']('value'),_0x2ea991['descriptionFactory']['registerDescriptionCallback'](_0x38c386=>{if('attribute'!=_0x38c386['type'])return;const {data:_0xd1feeb}=_0x38c386;if(_0xd1feeb&&'value'==_0xd1feeb['key']&&_0x38c386['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5d0640=o(_0x142d9f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x142d9f,'*Change\x20%0\x20content*',_0x5d0640)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f959=this['editor'],_0x475b70=_0x57f959['locale'];_0x57f959['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6c260b=>{if('formatBlock'!=_0x6c260b['type'])return;const {data:_0x3c943e}=_0x6c260b;if(_0x3c943e&&'htmlEmbed'==_0x3c943e['commandName']){const _0x58c2b9=o(_0x475b70,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x475b70,'*Change\x20%0\x20content*',_0x58c2b9)};}});}}class rt extends _0x3870c0{['afterInit'](){const _0x24991b=this['editor'];if(!_0x24991b['plugins']['has']('ImageEditing'))return;const _0x3a0726=_0x24991b['plugins']['get']('TrackChangesEditing'),_0x8f886c=_0x24991b['plugins']['get']('ImageUtils'),_0x41069e=_0x24991b['locale'];_0x3a0726['enableCommand']('insertImage'),_0x3a0726['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a4f97=>o(_0x41069e,'ELEMENT_IMAGE',_0x4a4f97)),_0x3a0726['descriptionFactory']['registerElementLabel']('imageInline',_0x46c965=>o(_0x41069e,'ELEMENT_INLINE_IMAGE',_0x46c965)),_0x3a0726['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41069e,'ELEMENT_CAPTION')),_0x24991b['plugins']['has']('ImageUploadEditing')&&_0x3a0726['enableCommand']('uploadImage'),_0x24991b['plugins']['has']('ImageBlockEditing')&&_0x24991b['plugins']['has']('ImageInlineEditing')&&(_0x3a0726['enableCommand']('imageTypeInline',(_0x1d7b81,_0x24f8a8)=>{const _0x4625df=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']);_0x24991b['model']['change'](()=>{_0x3a0726['markBlockFormat'](_0x4625df,{'commandName':'imageTypeInline','commandParams':[_0x24f8a8]},[],'convertBlockImageToInline');});}),_0x3a0726['enableCommand']('imageTypeBlock',(_0x5cc86f,_0x43c47d)=>{_0x24991b['model']['change'](_0x5e5b9b=>{let _0x22cd8c=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x512d2f=_0x5e5b9b['createRangeOn'](_0x22cd8c);const _0x2d4c58=_0x373c0f['fromPosition'](_0x512d2f['start'],'toPrevious'),_0x80d40=_0x373c0f['fromPosition'](_0x512d2f['end'],'toNext');_0x3a0726['forceDefaultExecution'](()=>_0x5cc86f(_0x43c47d)),_0x22cd8c=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x512d2f=_0x5e5b9b['createRangeOn'](_0x22cd8c);const _0x297440=_0x5e5b9b['createRange'](_0x2d4c58,_0x80d40);_0x2d4c58['detach'](),_0x80d40['detach'](),_0x3a0726['markBlockFormat'](_0x22cd8c,{'commandName':'imageTypeInline','commandParams':[_0x43c47d]},[],'convertInlineImageToBlock'),_0x297440['start']['isBefore'](_0x512d2f['start'])&&_0x3a0726['markInsertion'](_0x5e5b9b['createRange'](_0x297440['start'],_0x512d2f['start']),'convertInlineImageToBlock'),_0x512d2f['end']['isBefore'](_0x297440['end'])&&_0x3a0726['markInsertion'](_0x5e5b9b['createRange'](_0x512d2f['end'],_0x297440['end']),'convertInlineImageToBlock');});}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3a0726['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46db07])=>{const _0x52d08a=_0x3a0726['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47f909=_0x46db07['start'],_0x48863a=_0x46db07['end'];const _0x1bb0c4=_0x24991b['model']['schema']['getNearestSelectionRange'](_0x47f909,'backward'),_0x135dc8=_0x24991b['model']['schema']['getNearestSelectionRange'](_0x48863a,'forward');_0x1bb0c4['isCollapsed']&&(_0x47f909=_0x1bb0c4['start']),_0x135dc8['isCollapsed']&&(_0x48863a=_0x135dc8['end']),_0x52d08a([_0x24991b['model']['createRange'](_0x47f909,_0x48863a)]);}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f042b),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f042b)),_0x24991b['plugins']['has']('ImageCaptionEditing')&&(_0x3a0726['enableCommand']('toggleImageCaption',(_0x3a0444,_0x1e2364)=>{const _0x33bc11=_0x24991b['plugins']['get']('ImageCaptionUtils');let _0x48f84e=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x20b708=_0x33bc11['getCaptionFromImageModelElement'](_0x48f84e);_0x24991b['model']['change'](()=>{if(_0x20b708)return void _0x3a0726['markDeletion'](_0x24991b['model']['createRangeOn'](_0x20b708));const _0xe66a42=_0x8f886c['isBlockImage'](_0x48f84e);_0x3a0444(_0x1e2364),_0x48f84e=_0x8f886c['getClosestSelectedImageElement'](_0x24991b['model']['document']['selection']),_0x20b708=_0x33bc11['getCaptionFromImageModelElement'](_0x48f84e),_0x3a0726['markInsertion'](_0x24991b['model']['createRangeOn'](_0x20b708),_0xe66a42?null:'imageCaption');});}),_0x3a0726['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f042b));const _0x20560c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x339730(_0x58df3d,_0x3d517a){const _0x2fe5a4=_0x20560c['findIndex'](({type:_0x4f235c,subType:_0x5b547c})=>_0x58df3d['type']==_0x4f235c&&_0x58df3d['subType']==_0x5b547c),_0x456f26=_0x20560c['findIndex'](({type:_0x33638f,subType:_0x111d22})=>_0x3d517a['type']==_0x33638f&&_0x3d517a['subType']==_0x111d22);if(_0x2fe5a4<0x0||_0x456f26<0x0)return!0x1;const _0x4c11e7=_0x58df3d['getFirstRange'](),_0x304afc=_0x3d517a['getFirstRange']();if((0x0==_0x2fe5a4||0x1==_0x2fe5a4)&&0x2==_0x456f26&&_0x4c11e7['isIntersecting'](_0x304afc))return!0x0;if(0x2==_0x2fe5a4&&0x3==_0x456f26){const _0x1c6325=_0x3a0726['_findSuggestions'](_0x4c11e7,'insertion')['filter'](({suggestion:_0x2b75de,meta:_0x404552})=>_0x404552['isOwn']&&'convertInlineImageToBlock'==_0x2b75de['subType']);if(_0x1c6325['length']>0x1&&_0x304afc['end']['isEqual'](_0x4c11e7['start']))return!0x0;if(0x1==_0x1c6325['length']&&(_0x4c11e7['start']['isEqual'](_0x304afc['end'])||_0x4c11e7['end']['isEqual'](_0x304afc['start'])))return!0x0;}if(0x3==_0x2fe5a4&&0x3==_0x456f26&&_0x4c11e7['start']['isBefore'](_0x304afc['start'])){const _0x2ed903=_0x4c11e7['end']['nodeAfter'],_0x35e67f=_0x304afc['start']['nodeBefore'];return _0x8f886c['isBlockImage'](_0x2ed903)&&_0x2ed903===_0x35e67f;}return!0x1;}function _0x2f042b(_0x1df054,_0x1a26d2){return _0x339730(_0x1df054,_0x1a26d2)?[_0x1df054,_0x1a26d2]:_0x339730(_0x1a26d2,_0x1df054)?[_0x1a26d2,_0x1df054]:null;}_0x24991b['plugins']['has']('ImageResize')&&(_0x3a0726['enableDefaultAttributesIntegration']('resizeImage'),_0x3a0726['registerBlockAttribute']('resizedWidth'),_0x3a0726['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41069e,'FORMAT_IMAGE_SIZE'))),_0x24991b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3a0726['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3a0726['registerBlockAttribute']('alt')),_0x24991b['plugins']['has']('PictureEditing')&&(_0x3a0726['registerBlockAttribute']('sources'),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x5d7fc4=>{if('attribute'!=_0x5d7fc4['type'])return;const {data:_0x1c214a}=_0x5d7fc4;return _0x1c214a&&'sources'==_0x1c214a['key']?{'type':'format','content':''}:void 0x0;})),_0x24991b['plugins']['has']('ImageSizeAttributes')&&(_0x3a0726['registerBlockAttribute']('width'),_0x3a0726['registerBlockAttribute']('height'),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x6e2569=>{if('attribute'!=_0x6e2569['type'])return;const {data:_0xee7b99}=_0x6e2569;return!_0xee7b99||'width'!=_0xee7b99['key']&&'height'!=_0xee7b99['key']?void 0x0:{'type':'format','content':''};})),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x5b6602=>{if(!!_0x20560c['find'](({type:_0x19af7a,subType:_0x52c3fe})=>_0x5b6602['type']==_0x19af7a&&_0x5b6602['subType']==_0x52c3fe))return _0x5b6602['previous']?{}:void 0x0;}),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x17abeb=>{if('insertion'==_0x17abeb['type']||'deletion'==_0x17abeb['type']){const _0x24a884=_0x17abeb['getContainedElement']();if(_0x24a884&&_0x24a884['is']('element','caption'))return{'type':'insertion'==_0x17abeb['type']?'addObject':'removeObject','element':_0x24a884,'quantity':0x1};}}),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x21a223=>'formatBlock'==_0x21a223['type']&&'convertInlineImageToBlock'==_0x21a223['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21a223['type']&&'convertBlockImageToInline'==_0x21a223['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3a0726['descriptionFactory']['registerDescriptionCallback'](_0x542873=>{if('attribute'!=_0x542873['type'])return;const {data:_0x5c0d65}=_0x542873;if(!_0x5c0d65||'alt'!=_0x5c0d65['key'])return;const _0x26c1a8=_0x5c0d65['newValue'];return _0x26c1a8?{'type':'format','content':o(_0x41069e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x26c1a8+'\x22')}:{'type':'format','content':o(_0x41069e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56eefa=this['editor'],_0x49d107=_0x56eefa['locale'];_0x56eefa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508dd3=>{if('formatBlock'!=_0x508dd3['type']&&'formatInline'!=_0x508dd3['type'])return;const {data:_0x374f49}=_0x508dd3;if(_0x374f49){if('imageTextAlternative'==_0x374f49['commandName']){const _0x210e13=_0x374f49['commandParams'][0x0]['newValue'];return _0x210e13?{'type':'format','content':o(_0x49d107,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x210e13+'\x22')}:{'type':'format','content':o(_0x49d107,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x374f49['commandName']){const _0x3df690=_0x374f49['commandParams'][0x0]['width'];return _0x3df690?{'type':'format','content':o(_0x49d107,'*Set\x20image\x20width:*\x20%0',_0x3df690)}:{'type':'format','content':o(_0x49d107,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1e588c=this['editor']['locale'],_0x5d54cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d54cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d54cd['registerBlockAttribute']('src'),_0x5d54cd['descriptionFactory']['registerDescriptionCallback'](_0x34e318=>{if('attribute'!=_0x34e318['type'])return;const {data:_0xee6264}=_0x34e318;return _0xee6264&&'src'==_0xee6264['key']?_0xee6264['newValue']&&_0xee6264['oldValue']?{'type':'format','content':o(_0x1e588c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2736b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2736b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2736b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2736b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2736b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x579e8c=this['editor'],_0x21f4a2=_0x579e8c['locale'];_0x579e8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4208=>{if('formatBlock'!=_0x5a4208['type']&&'formatInline'!=_0x5a4208['type'])return;const {data:_0x4e268e}=_0x5a4208;if(!_0x4e268e||'replaceImageSource'!=_0x4e268e['commandName'])return;return{'type':'format','content':o(_0x21f4a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3870c0{['afterInit'](){const _0x525b36=this['editor'];if(!_0x525b36['plugins']['has']('ImageStyleEditing'))return;const _0x40a085=_0x525b36['plugins']['get']('TrackChangesEditing'),_0xb52b7a=_0x525b36['plugins']['get']('ImageUtils'),_0x48d506={};_0x40a085['enableCommand']('imageStyle',(_0xa1c98e,_0x3a8117)=>{const _0x215233=_0x525b36['plugins']['get']('Users')['me'],_0x335482=_0x525b36['commands']['get']('imageStyle');let _0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),_0xf2d71e=_0x525b36['model']['createRangeOn'](_0x325e36),_0x2895cc=_0x335482['value'];if(_0x2895cc==_0x3a8117['value'])return;const _0x1ddad5={'commandName':'imageStyle','commandParams':[_0x3a8117],'formatGroupId':_0x53814c()};_0x525b36['model']['change'](()=>{if(_0x40a085['getSuggestions']()['filter'](_0x5a7465=>_0x5a7465['isInContent']&&_0x215233==_0x5a7465['author']&&('formatBlock'==_0x5a7465['type']||'formatInline'==_0x5a7465['type'])&&('imageStylePreApply'==_0x5a7465['subType']||'imageStylePostApply'==_0x5a7465['subType'])&&_0x5a7465['getFirstRange']()['isEqual'](_0xf2d71e))['forEach'](_0x4eff01=>_0x40a085['discardSuggestion'](_0x4eff01['head'])),_0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),_0xf2d71e=_0x525b36['model']['createRangeOn'](_0x325e36),_0x335482['refresh'](),_0x525b36['commands']['get']('imageTypeInline')['refresh'](),_0x525b36['commands']['get']('imageTypeBlock')['refresh'](),_0x2895cc=_0x335482['value'],_0x2895cc!=_0x3a8117['value'])return _0xb52b7a['isInlineImage'](_0x325e36)&&_0x335482['shouldConvertImageType'](_0x3a8117['value'],_0x325e36)?(_0xa1c98e({..._0x3a8117,'setImageSizes':!0x1}),_0x325e36=_0xb52b7a['getClosestSelectedImageElement'](_0x525b36['model']['document']['selection']),void _0x40a085['markBlockFormat'](_0x325e36,{..._0x1ddad5,'commandReversedParams':[{'value':_0x2895cc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb52b7a['isBlockImage'](_0x325e36)?_0x40a085['markBlockFormat'](_0x325e36,_0x1ddad5,[],'imageStylePostApply'):_0x40a085['markInlineFormat'](_0xf2d71e,_0x1ddad5,'imageStylePostApply'));});});for(const _0x3c5682 of _0x525b36['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d506[_0x3c5682['name']]=_0x3c5682['title']['toLowerCase']();_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a9830])=>{_0xb52b7a['setImageNaturalSizeAttributes'](_0x2a9830['getContainedElement']());}),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41a4af,_0xfa2d83)=>{_0x40a085['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41a4af,{'commandName':_0xfa2d83['commandName'],'commandParams':_0xfa2d83['commandReversedParams']});}),_0x40a085['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x392829,_0x67f3b){if(_0x41a787(_0x392829,_0x67f3b))return[_0x392829,_0x67f3b];if(_0x41a787(_0x67f3b,_0x392829))return[_0x67f3b,_0x392829];return null;});const _0x59e095=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41a787(_0x3b647,_0x525524){const _0x45ff9c=_0x59e095['findIndex'](({type:_0x3e861d,subType:_0x3a6c24})=>_0x3b647['type']==_0x3e861d&&_0x3b647['subType']==_0x3a6c24),_0x29e98f=_0x59e095['findIndex'](({type:_0x510588,subType:_0x36d61b})=>_0x525524['type']==_0x510588&&_0x525524['subType']==_0x36d61b);if(_0x45ff9c<0x0||_0x29e98f<0x0)return!0x1;const _0x9abcff=_0x3b647['getFirstRange'](),_0x27040f=_0x525524['getFirstRange']();if((0x0==_0x45ff9c||0x1==_0x45ff9c)&&0x2==_0x29e98f&&_0x9abcff['isIntersecting'](_0x27040f))return!0x0;if(0x2==_0x45ff9c&&0x3==_0x29e98f){const _0x5e626e=_0x40a085['_findSuggestions'](_0x9abcff,'insertion')['filter'](({suggestion:_0x22212b,meta:_0x11b706})=>_0x11b706['isOwn']&&'convertInlineImageToBlock'==_0x22212b['subType']);if(_0x5e626e['length']>0x1&&_0x27040f['end']['isEqual'](_0x9abcff['start']))return!0x0;if(0x1==_0x5e626e['length']&&(_0x9abcff['start']['isEqual'](_0x27040f['end'])||_0x9abcff['end']['isEqual'](_0x27040f['start'])))return!0x0;}if(0x3==_0x45ff9c&&0x3==_0x29e98f&&_0x9abcff['start']['isBefore'](_0x27040f['start'])){const _0xbca343=_0x9abcff['end']['nodeAfter'],_0x1770ab=_0x27040f['start']['nodeBefore'];return _0xb52b7a['isBlockImage'](_0xbca343)&&_0xbca343===_0x1770ab;}return!0x1;}_0x525b36['model']['document']['registerPostFixer'](()=>{let _0x2ad267=!0x1;const _0x16c0fe=Array['from'](_0x525b36['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b4831,data:_0x40da32}of _0x16c0fe){const {group:_0x479be8,type:_0x5958f0,subType:_0x1bb984,id:_0x17461d}=_0x40a085['_splitMarkerName'](_0x2b4831);if('suggestion'==_0x479be8&&_0x40a085['hasSuggestion'](_0x17461d)){if('formatBlock'==_0x5958f0&&('imageStylePreApply'==_0x1bb984||'imageStylePostApply'==_0x1bb984)){const _0xc599e1=_0x40a085['getSuggestion'](_0x17461d);if(_0x40da32['newRange']){const _0x56be0d=_0xc599e1['getFirstRange']()['getContainedElement']();if(_0xb52b7a['isBlockImage'](_0x56be0d))continue;_0x40a085['discardSuggestion'](_0xc599e1),_0x2ad267=!0x0;}}if('insertion'==_0x5958f0&&'imageCaption'==_0x1bb984&&!_0x40da32['newRange']){const _0xb99779=_0x40a085['getSuggestion'](_0x17461d);_0xb99779['next']&&_0xb99779['next']['isInContent']&&(_0x40a085['discardSuggestion'](_0xb99779['next']),_0x2ad267=!0x0);}}}return _0x2ad267;}),this['_registerLegacyDescription'](_0x48d506);}['_registerLegacyDescription'](_0x519ca2){const _0x251c3b=this['editor'],_0x35b9b2=_0x251c3b['locale'];_0x251c3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1b5c=>{if('formatBlock'!=_0x3e1b5c['type']&&'formatInline'!=_0x3e1b5c['type'])return;const {data:_0x39504e}=_0x3e1b5c;if(!_0x39504e||'imageStyle'!=_0x39504e['commandName'])return;const _0x10f74b=_0x39504e['commandParams'][0x0]['value'];return _0x45af87('side'===_0x10f74b?o(_0x35b9b2,'FORMAT_SIDE_IMAGE'):_0x519ca2[_0x10f74b]||_0x10f74b);function _0x45af87(_0x32e695){return{'type':'format','content':o(_0x35b9b2,'*Format:*\x20%0',_0x32e695)};}});}}class ut extends _0x3870c0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x44f62f){super(_0x44f62f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51ac5e=this['editor'],_0x39eeae=_0x51ac5e['commands']['get']('importWord'),_0x1aff00=_0x51ac5e['commands']['get']('trackChanges');_0x39eeae&&(_0x39eeae['on']('execute',(_0x1666d2,[,_0x68a25f])=>{this['_trackChangesValueDuringImport']=_0x1aff00['value'],_0x68a25f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x39eeae,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x39eeae,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1aff00['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51ac5e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bf87b,_0x1ecd7f){const {suggestions:_0x1733fa}=_0x1ecd7f,_0x2f5f3c=this['editor']['commands']['get']('trackChanges'),_0x2de862=_0x2f5f3c['value'];this['_trackChangesValueDuringImport']!==_0x2de862&&(_0x2f5f3c['execute'](),this['_trackChangesExecuted']=!0x0),_0x1733fa&&_0x1733fa['forEach'](({id:_0x2b5235,type:_0x494ff5,author:_0x3bcac5,created_at:_0x24d664})=>{const _0x6dc97d={'id':_0x2b5235,'type':_0x494ff5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3bcac5,'createdAt':_0x24d664?new Date(_0x24d664):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x6dc97d);});}}class ft extends _0x3870c0{['afterInit'](){const _0x3def53=this['editor'],_0x3b5568=_0x3def53['plugins']['get']('TrackChangesEditing');if(_0x3def53['plugins']['has']('IndentEditing')&&(_0x3b5568['enableCommand']('indent'),_0x3b5568['enableCommand']('outdent')),_0x3def53['plugins']['has']('IndentBlock')){for(const _0x433f9d of['indentBlock','outdentBlock'])_0x3b5568['enableDefaultAttributesIntegration'](_0x433f9d);}const _0x162722=_0x3def53['locale'];_0x3b5568['registerBlockAttribute']('blockIndent'),_0x3b5568['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x162722,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x350b8=this['editor'],_0x29461c=_0x350b8['locale'],_0x12da49=_0x350b8['plugins']['get']('TrackChangesEditing');_0x12da49['descriptionFactory']['registerDescriptionCallback'](_0x1df783=>{if('formatBlock'!=_0x1df783['type'])return;const {data:_0x8c27f7}=_0x1df783;if(!_0x8c27f7)return;if('indentBlock'!=_0x8c27f7['commandName']&&'outdentBlock'!=_0x8c27f7['commandName'])return;const _0x41f4e8=_0x1df783['getItems']()[0x0],_0x2806db=_0x12da49['descriptionFactory']['getItemLabel'](_0x41f4e8);return'indentBlock'==_0x8c27f7['commandName']?{'type':'format','content':o(_0x29461c,'*Indent:*\x20%0',_0x2806db)}:'outdentBlock'==_0x8c27f7['commandName']?{'type':'format','content':o(_0x29461c,'*Outdent:*\x20%0',_0x2806db)}:void 0x0;});}}class ht extends _0x3870c0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3870c0{['afterInit'](){const _0x4a99ab=this['editor'];if(!_0x4a99ab['plugins']['has']('LinkEditing'))return;const _0x175fd6=_0x4a99ab['plugins']['get']('TrackChangesEditing'),_0x27e27f=_0x4a99ab['commands']['get']('link');_0x175fd6['enableDefaultAttributesIntegration']('link'),_0x175fd6['enableDefaultAttributesIntegration']('unlink'),_0x175fd6['registerInlineAttribute']('linkHref');for(const _0x24d974 of _0x27e27f['manualDecorators'])_0x175fd6['registerInlineAttribute'](_0x24d974['id']),_0x175fd6['descriptionFactory']['registerAttributeLabel'](_0x24d974['id'],'link\x20('+_0x24d974['label']['toLowerCase']()+')');_0x175fd6['descriptionFactory']['registerDescriptionCallback'](_0x3d0fc1=>{if('attribute'!=_0x3d0fc1['type'])return;const {data:_0x3cfb2f}=_0x3d0fc1;if(!_0x3cfb2f||'linkHref'!=_0x3cfb2f['key'])return;const _0x124b63=_0x3cfb2f['newValue'],_0x4ad369=_0x4a99ab['locale'];return{'type':'format','content':null==_0x124b63?o(_0x4ad369,'*Remove\x20link*'):o(_0x4ad369,'*Set\x20link:*\x20%0','\x22'+_0x124b63+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb2e63=this['editor'],_0x13b2a0=_0xb2e63['locale'];_0xb2e63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3948d3=>{if('formatInline'!=_0x3948d3['type'])return;const {data:_0x15c934}=_0x3948d3;if(_0x15c934){if('link'==_0x15c934['commandName']){const _0x4ae50a=_0x15c934['commandParams'][0x0];return{'type':'format','content':o(_0x13b2a0,'*Set\x20link:*\x20%0','\x22'+_0x4ae50a+'\x22')};}return'unlink'==_0x15c934['commandName']?{'type':'format','content':o(_0x13b2a0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3870c0{['afterInit'](){const _0x5d4cf1=this['editor'],_0x2950ee=_0x5d4cf1['locale'];if(!_0x5d4cf1['plugins']['has']('LegacyListEditing'))return;const _0x2ac0f1=_0x5d4cf1['plugins']['get']('TrackChangesEditing'),_0x24093c=_0x5d4cf1['plugins']['has']('LegacyTodoListEditing');function _0x555171(_0x71cb){return()=>{const _0x5b2d25=_0x5d4cf1['model']['document']['selection'],_0x3d7335=_0x5d4cf1['commands']['get'](_0x71cb);if(_0x3d7335['value'])return void _0x5d4cf1['execute']('paragraph',{});const _0x11c437=_0x71cb['slice'](0x0,-0x4),_0x18226e=function(_0x240674,_0xcf7d75,_0x4109c8){let _0x40222d=Array['from'](_0x240674)['filter'](_0x66171f=>function(_0x1d63db,_0x2fd2c4){return _0x2fd2c4['checkChild'](_0x1d63db['parent'],'listItem')&&!_0x2fd2c4['isObject'](_0x1d63db);}(_0x66171f,_0x4109c8));_0x40222d=_0x40222d['filter'](_0x28b54b=>!_0x28b54b['is']('element','listItem')||_0x28b54b['getAttribute']('listType')!=_0xcf7d75);const _0x1dd15c=new Set();for(const _0x11d2de of _0x40222d)_0x11d2de['is']('element','listItem')?_0x1dd15c['add'](Le(_0x11d2de)):_0x1dd15c['add'](_0x11d2de);return Array['from'](_0x1dd15c);}(_0x5b2d25['getSelectedBlocks'](),_0x11c437,_0x5d4cf1['model']['schema']);_0x5d4cf1['model']['change'](()=>{for(const _0x4bf710 of _0x18226e)_0x2ac0f1['markBlockFormat'](_0x4bf710,{'commandName':_0x71cb,'commandParams':[{'forceValue':!_0x3d7335['value']}],'formatGroupId':'blockName'},Ee(_0x4bf710));});};}function _0x280f72(_0x5e86bb){return()=>{const _0x51b821=function(_0x162061){let _0x1ba0cb=Array['from'](_0x162061);const _0x408c38=_0x1ba0cb['findIndex'](_0x3f0ae9=>'listItem'!=_0x3f0ae9['name']);return _0x408c38>-0x1&&(_0x1ba0cb=_0x1ba0cb['slice'](0x0,_0x408c38)),_0x1ba0cb;}(_0x5d4cf1['model']['document']['selection']['getSelectedBlocks']()),_0x42f301=_0x5d4cf1['model']['createRange'](_0x5d4cf1['model']['createPositionAt'](_0x51b821[0x0],'before'),_0x5d4cf1['model']['createPositionAt'](_0x51b821[_0x51b821['length']-0x1],'end'));_0x5d4cf1['model']['change'](()=>{_0x2ac0f1['markBlockFormat'](_0x42f301,{'commandName':_0x5e86bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x128120){const _0x475842=new Set();for(const _0x48cd2b of _0x128120){let _0x1d5412=_0x48cd2b['nextSibling'];for(;_0x1d5412&&_0x1d5412['getAttribute']('listIndent')>_0x48cd2b['getAttribute']('listIndent');)_0x475842['add'](_0x1d5412),_0x1d5412=_0x1d5412['nextSibling'];}return Array['from'](_0x475842);}(_0x51b821));});};}_0x2ac0f1['enableCommand']('numberedList',_0x555171('numberedList')),_0x2ac0f1['enableCommand']('bulletedList',_0x555171('bulletedList')),_0x24093c&&_0x2ac0f1['enableCommand']('todoList',_0x555171('todoList')),_0x2ac0f1['enableCommand']('indentList',_0x280f72('indentList')),_0x2ac0f1['enableCommand']('outdentList',_0x280f72('outdentList')),_0x24093c&&_0x2ac0f1['enableCommand']('checkTodoList',()=>{const _0x225e7c=_0x5d4cf1['commands']['get']('checkTodoList'),_0x3baff7=Array['from'](_0x225e7c['_selectedElements']);_0x3baff7['filter'](_0xfa1ddd=>_0xfa1ddd['getAttribute']('todoListChecked')!=_0x225e7c['value']),_0x5d4cf1['model']['change'](()=>{for(const _0xb2bc6a of _0x3baff7)_0x2ac0f1['markBlockFormat'](_0xb2bc6a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x225e7c['value']}]});});}),_0x2ac0f1['descriptionFactory']['registerElementLabel']('listItem',_0x169a53=>o(_0x2950ee,'ELEMENT_LIST_ITEM',_0x169a53)),_0x2ac0f1['descriptionFactory']['registerDescriptionCallback'](_0x7bbf03=>{if('formatBlock'!=_0x7bbf03['type']&&'formatInline'!=_0x7bbf03['type'])return;const {data:_0x361133}=_0x7bbf03;if(_0x361133){if('numberedList'==_0x361133['commandName']||'bulletedList'==_0x361133['commandName']||'todoList'==_0x361133['commandName'])switch(_0x361133['commandName']['replace']('List','')){case'bulleted':return _0xee5581(o(_0x2950ee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xee5581(o(_0x2950ee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xee5581(o(_0x2950ee,'ELEMENT_TODO_LIST'));}if('indentList'==_0x361133['commandName'])return{'type':'format','content':o(_0x2950ee,'*Indent:*\x20%0',o(_0x2950ee,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x361133['commandName'])return{'type':'format','content':o(_0x2950ee,'*Outdent:*\x20%0',o(_0x2950ee,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x361133['commandName'])return _0x361133['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2950ee,'*Check\x20item*')}:{'type':'format','content':o(_0x2950ee,'*Uncheck\x20item*')};}function _0xee5581(_0x714fc0){return{'type':'format','content':o(_0x2950ee,'*Change\x20to:*\x20%0',_0x714fc0)};}});}}function Le(_0x2aaf91){const _0x4c2416=_0x2aaf91['getAttribute']('listIndent');if(0x0==_0x4c2416)return _0x2aaf91;let _0x4e77ca=_0x2aaf91;for(;_0x2aaf91['previousSibling']&&_0x2aaf91['previousSibling']['is']('element','listItem');){const _0x4a90a6=_0x2aaf91['previousSibling']['getAttribute']('listIndent');if(_0x4a90a6==_0x4c2416)_0x4e77ca=_0x2aaf91['previousSibling'];else{if(_0x4a90a6<_0x4c2416)break;}_0x2aaf91=_0x2aaf91['previousSibling'];}return _0x4e77ca;}function Ee(_0x14556f){const _0x3dceaa=[];if(_0x14556f['is']('element','listItem')&&_0x14556f['getAttribute']('listIndent')>0x0){let _0xbd78a3=_0x14556f['nextSibling'];for(;_0xbd78a3&&'listItem'==_0xbd78a3['name']&&_0xbd78a3['getAttribute']('listIndent')==_0x14556f['getAttribute']('listIndent');)_0x3dceaa['push'](_0xbd78a3),_0xbd78a3=_0xbd78a3['nextSibling'];}return _0x3dceaa;}class Q extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18bdf6=this['editor']['config']['get']('list.properties'),_0x124b13=this['editor']['plugins']['get']('TrackChangesEditing');_0x18bdf6['styles']&&_0x124b13['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18bdf6['reversed']&&_0x124b13['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18bdf6['startIndex']&&_0x124b13['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x124b13['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x66f614,_0x2d9f0d={}){const _0x553ec6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x416cd0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x553ec6['markMultiRangeBlockFormat'](_0x416cd0,{'commandName':'listStyle','commandParams':[{'type':_0x2d9f0d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b04d0,_0xd44c68={}){const _0x2805f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2db950=this['_getSuggestionBlocks'](_0x3625fb=>_0x3625fb['is']('element','listItem')&&'numbered'===_0x3625fb['getAttribute']('listType'));if(_0x2db950['length']<0x1)return;const _0x50e54a=_0x2db950['map'](_0x8d2b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8d2b8,'before'),this['editor']['model']['createPositionAt'](_0x8d2b8,0x0)));this['editor']['model']['change'](()=>{_0x2805f1['markMultiRangeBlockFormat'](_0x50e54a,{'commandName':'listReversed','commandParams':[{'reversed':_0xd44c68['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4e24a3,_0x32ff23={}){const _0x596473=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326931=this['_getSuggestionBlocks'](_0x58b762=>_0x58b762['is']('element','listItem')&&'numbered'===_0x58b762['getAttribute']('listType'));if(_0x326931['length']<0x1)return;const _0x3c853e=_0x326931['map'](_0x34131b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34131b,'before'),this['editor']['model']['createPositionAt'](_0x34131b,0x0)));this['editor']['model']['change'](()=>{_0x596473['markMultiRangeBlockFormat'](_0x3c853e,{'commandName':'listStart','commandParams':[{'startIndex':_0x32ff23['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59154c){if('formatBlock'!=_0x59154c['type']&&'formatInline'!=_0x59154c['type'])return;const _0x77ddc7=this['editor']['locale'],{data:_0x4a6077}=_0x59154c;if(!_0x4a6077)return;let _0x3f2ff6,_0x369aca;switch(_0x4a6077['commandName']){case'listStyle':_0x3f2ff6='*Change\x20to:*\x20%0',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6,o(_0x77ddc7,this['_getTranslationKeyForListStyle'](_0x4a6077['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f2ff6=_0x4a6077['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6)};break;case'listStart':_0x3f2ff6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x369aca={'type':'format','content':o(_0x77ddc7,_0x3f2ff6,_0x4a6077['commandParams'][0x0]['startIndex'])};}return _0x369aca;}['_getSuggestionBlocksForListStyle'](){const _0x5e54e7=this['editor']['plugins']['get']('LegacyListUtils');let _0xfc9d5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xfc9d5a[0x0]?.['is']('element','listItem')&&_0xfc9d5a['unshift'](..._0x5e54e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xfc9d5a[_0xfc9d5a['length']-0x1]?.['is']('element','listItem')&&_0xfc9d5a['push'](..._0x5e54e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xfc9d5a=[...new Set(_0xfc9d5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xfc9d5a=_0xfc9d5a['filter'](_0x298aac=>_0x298aac['is']('element','listItem'))),_0xfc9d5a;}['_getSuggestionBlocks'](_0xbecd3c){const _0x10a9a9=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ad96f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xbecd3c)['map'](_0x1c370d=>{const _0x4ac3bb=this['editor']['model']['createPositionAt'](_0x1c370d,0x0);return[..._0x10a9a9['getSiblingNodes'](_0x4ac3bb,'backward'),..._0x10a9a9['getSiblingNodes'](_0x4ac3bb,'forward')];})['flat']();return _0x3ad96f=[...new Set(_0x3ad96f)],_0x3ad96f;}['_getTranslationKeyForListStyle'](_0xe4142d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe4142d)||'default')['toUpperCase']()+'_LIST_'+_0xe4142d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3870c0{['afterInit'](){const _0x5a3de5=this['editor'];if(!_0x5a3de5['plugins']['has']('MediaEmbedEditing'))return;const _0x2f5495=_0x5a3de5['plugins']['get']('TrackChangesEditing'),_0x34b235=_0x5a3de5['locale'];_0x2f5495['enableCommand']('mediaEmbed'),_0x2f5495['descriptionFactory']['registerElementLabel']('media',_0x337a4a=>o(_0x34b235,'ELEMENT_MEDIA',_0x337a4a)),_0x5a3de5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47038b,{writer:_0x3d1371,options:_0x599cfb})=>{if(_0x599cfb['showSuggestionHighlights'])return _0x3d1371['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a3de5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x503be2,_0x2efce6,_0x301b79)=>{_0x301b79['options']['showSuggestionHighlights']&&_0x503be2['stop']();},{'priority':'high'});}}class pt extends _0x3870c0{['afterInit'](){const _0x52a753=this['editor'];_0x52a753['plugins']['has']('MentionEditing')&&_0x52a753['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3870c0{['afterInit'](){const _0x1c3327=this['editor'];if(!_0x1c3327['plugins']['has']('MergeFieldsEditing'))return;const _0x57c1ed=_0x1c3327['plugins']['get']('TrackChangesEditing'),_0x58f33f=_0x1c3327['locale'];_0x57c1ed['enableCommand']('insertMergeField'),_0x57c1ed['enableCommand']('insertMergeFieldBlock'),_0x57c1ed['enableCommand']('insertMergeFieldImage'),_0x57c1ed['descriptionFactory']['registerElementLabel']('mergeField',_0x3af71f=>o(_0x58f33f,'ELEMENT_MERGE_FIELD',_0x3af71f)),_0x57c1ed['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2fdbc5=>o(_0x58f33f,'ELEMENT_MERGE_FIELD',_0x2fdbc5)),_0x57c1ed['descriptionFactory']['registerDescriptionCallback'](_0x381383=>{if('insertion'!=_0x381383['type']&&'deletion'!=_0x381383['type'])return;const _0x2e01cb=_0x381383['getContainedElement']();if(null==_0x2e01cb)return;const _0x36964f=_0x1c3327['plugins']['get']('MergeFieldsEditing');let _0x2c23f7;switch(_0x36964f['getMergeFieldType'](_0x2e01cb)){case null:return;case'image':{const _0x98e718=_0x36964f['unwrapAffixes'](_0x2e01cb['getAttribute']('src'));_0x2c23f7=_0x36964f['getLabel'](_0x98e718)||_0x98e718;break;}default:{const _0x3bc79f=_0x2e01cb['getAttribute']('id');_0x2c23f7=_0x36964f['getLabel'](_0x3bc79f)||_0x3bc79f;break;}}return'insertion'==_0x381383['type']?{'type':'insertion','content':o(_0x58f33f,'*Insert:*\x20%0','\x22'+_0x2c23f7+'\x22\x20'+o(_0x58f33f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58f33f,'*Remove:*\x20%0','\x22'+_0x2c23f7+'\x22\x20'+o(_0x58f33f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3870c0{['afterInit'](){const _0x283e89=this['editor'],_0x3570da=_0x283e89['plugins']['get']('TrackChangesEditing');_0x283e89['plugins']['has']('MultiLevelList')&&(_0x3570da['enableDefaultAttributesIntegration']('multiLevelList'),_0x3570da['registerBlockAttribute']('listMarkerStyle'),_0x3570da['descriptionFactory']['registerDescriptionCallback'](_0x1cff87=>this['handleDescriptions'](_0x1cff87)));}['handleDescriptions'](_0x44401b){const _0x56dbb9=this['editor']['locale'],{data:_0x47efdc}=_0x44401b,_0xd81d11={'type':'format','content':''};if(_0x47efdc&&'listMarkerStyle'==_0x47efdc['key']){if(!_0x47efdc['oldValue'])return{'type':'format','content':o(_0x56dbb9,'*Set\x20format:*\x20%0',o(_0x56dbb9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47efdc['newValue']+')'};if(!_0x47efdc['newValue']){let _0x3b206b=_0x44401b['head'];for(;_0x3b206b;){if(_0x3b206b['data']&&'listType'==_0x3b206b['data']['key']&&_0x3b206b['data']['newValue'])return _0xd81d11;_0x3b206b=_0x3b206b['next'];}return{'type':'format','content':o(_0x56dbb9,'*Remove\x20format:*\x20%0',o(_0x56dbb9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47efdc['oldValue']+')'};}}}}class bt extends _0x3870c0{['afterInit'](){const _0x4e5e14=this['editor'];if(!_0x4e5e14['plugins']['has']('PageBreakEditing'))return;_0x4e5e14['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5b6882=_0x4e5e14['plugins']['get']('TrackChangesEditing'),_0x465565=_0x4e5e14['locale'];_0x5b6882['descriptionFactory']['registerElementLabel']('pageBreak',_0xdd4636=>o(_0x465565,'ELEMENT_PAGE_BREAK',_0xdd4636));}}class yt extends _0x3870c0{['afterInit'](){const _0xbc3dc3=this['editor'];if(!_0xbc3dc3['plugins']['has']('Paragraph'))return;const _0x2d6ce4=_0xbc3dc3['locale'],_0x80a06c=_0xbc3dc3['plugins']['get']('TrackChangesEditing');_0x80a06c['descriptionFactory']['registerElementLabel']('paragraph',_0x4ba790=>o(_0x2d6ce4,'ELEMENT_PARAGRAPH',_0x4ba790)),_0x80a06c['enableDefaultAttributesIntegration']('paragraph'),_0x80a06c['enableCommand']('insertParagraph'),_0xbc3dc3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xbc3dc3),{'priority':'highest'}),_0xbc3dc3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41a245,_0x4cf86a,_0x586dbd)=>{_0x586dbd['options']['showSuggestionHighlights']&&nr(_0xbc3dc3,{'showActiveMarker':!0x1})(_0x41a245,_0x4cf86a,_0x586dbd);},{'priority':'highest'});const _0x345bfe=_0x80a06c['descriptionFactory'];_0x345bfe['registerDescriptionCallback'](_0x434a14=>{if('insertion'!==_0x434a14['type'])return;const {start:_0x11331f,end:_0x31526a}=_0x434a14['getFirstRange']();if(!_0x11331f['isTouching'](_0x31526a)||!_0x11331f['nodeAfter'])return;const _0x263a7d=_0xbc3dc3['model']['schema'],_0x4c085e=_0x11331f['nodeAfter'];return _0x263a7d['isBlock'](_0x4c085e)&&!_0x263a7d['isLimit'](_0x4c085e)&&_0x263a7d['checkChild'](_0x4c085e,'$text')?{'type':'insertion','content':o(_0x2d6ce4,'*Insert:*\x20%0',_0x345bfe['getItemLabel'](_0x4c085e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a138=this['editor'],_0x43b56a=_0x47a138['locale'];_0x47a138['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56fb68=>{if('formatBlock'!=_0x56fb68['type'])return;const {data:_0x7bd954}=_0x56fb68;return _0x7bd954&&'paragraph'==_0x7bd954['commandName']?{'type':'format','content':o(_0x43b56a,'*Change\x20to:*\x20%0',o(_0x43b56a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25f6cc,{showActiveMarker:_0x1516a6=!0x0}={}){return(_0x51e642,_0xad7eb3,_0xc336d1)=>{const _0x4c5d23=_0x25f6cc['plugins']['get']('TrackChangesEditing'),_0x3e5232=_0xad7eb3['markerRange']['start'],_0x400707=_0xad7eb3['markerRange']['end'],_0x17d743=_0x25f6cc['model']['schema'];if(!_0x3e5232['isTouching'](_0x400707)||!_0x3e5232['nodeAfter'])return;const _0x2afd4a=_0x3e5232['nodeAfter'];if(_0x17d743['isBlock'](_0x2afd4a)&&!_0x17d743['isLimit'](_0x2afd4a)&&_0x17d743['checkChild'](_0x2afd4a,'$text')){if(!_0xc336d1['consumable']['consume'](_0xad7eb3['markerRange'],_0x51e642['name']))return;const {authorId:_0x27c1f0}=_0x4c5d23['_splitMarkerName'](_0xad7eb3['markerName']),_0x5c8568=_0xc336d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x27c1f0}),_0x37b912=_0xc336d1['mapper']['toViewPosition'](_0x400707);_0x1516a6&&_0x4c5d23['activeMarkers']['includes'](_0xad7eb3['markerName'])&&_0xc336d1['writer']['addClass']('ck-suggestion-marker--active',_0x5c8568),_0xc336d1['writer']['insert'](_0x37b912,_0x5c8568),_0xc336d1['mapper']['bindElementToMarker'](_0x5c8568,_0xad7eb3['markerName']);}};}class jt extends _0x3870c0{['afterInit'](){const _0x33b644=this['editor'];_0x33b644['commands']['get']('replaceSource')&&_0x33b644['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3870c0{['afterInit'](){const _0x181749=this['editor'];if(!_0x181749['plugins']['has']('RemoveFormatEditing'))return;_0x181749['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1639=this['editor'];_0x3f1639['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bacba=>{if('formatBlock'!=_0x4bacba['type']&&'formatInline'!=_0x4bacba['type'])return;const {data:_0x577f55}=_0x4bacba;return _0x577f55&&'removeFormat'==_0x577f55['commandName']?{'type':'format','content':o(_0x3f1639['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3870c0{['afterInit'](){const _0x5543a5=this['editor'];if(!_0x5543a5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3df056=_0x5543a5['plugins']['get']('TrackChangesEditing');_0x3df056['enableCommand']('goToPreviousRestrictedEditingException'),_0x3df056['enableCommand']('goToNextRestrictedEditingException');const _0x1a2f9c=_0x5543a5['plugins']['get']('RestrictedEditingModeEditing');_0x1a2f9c['enableCommand']('trackChanges'),_0x1a2f9c['enableCommand']('acceptSuggestion'),_0x1a2f9c['enableCommand']('discardSuggestion'),_0x1a2f9c['enableCommand']('acceptAllSuggestions'),_0x1a2f9c['enableCommand']('discardAllSuggestions'),_0x1a2f9c['enableCommand']('acceptSelectedSuggestions'),_0x1a2f9c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3870c0{static get['requires'](){return[_0xb156e];}['init'](){const _0x3e863d=this['editor'],_0x47589e=_0x3e863d['plugins']['get']('TrackChangesEditing');_0x47589e['enableCommand']('shiftEnter'),_0x3e863d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3e863d),{'priority':'high'}),_0x3e863d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3e863d),{'priority':'high'}),_0x3e863d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40c404,_0x490df7,_0x439dc)=>{_0x439dc['options']['showSuggestionHighlights']&&je(_0x3e863d,{'showActiveMarker':!0x1})(_0x40c404,_0x490df7,_0x439dc);}),_0x47589e['descriptionFactory']['registerElementLabel']('softBreak',_0x5edbe5=>o(_0x3e863d['locale'],'ELEMENT_LINE_BREAK',_0x5edbe5));}}function je(_0x187b61,{showActiveMarker:_0x169f5f=!0x0}={}){return(_0xa5b41f,_0x5043b6,_0x4d57b4)=>{const _0xcfc2ca=_0x187b61['plugins']['get']('TrackChangesEditing');if(!_0x4d57b4['consumable']['test'](_0x5043b6['markerRange'],_0xa5b41f['name']))return;const _0x15cdc5=_0x187b61['model'];for(const _0x10233b of _0x5043b6['markerRange']['getItems']()){if(!_0x10233b['is']('element','softBreak'))continue;const _0x3a2547='deletion'==_0x5043b6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x349e3b}=_0xcfc2ca['_splitMarkerName'](_0x5043b6['markerName']),_0x59a927=_0x4d57b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a2547,'data-author-id':_0x349e3b}),_0x5a0e4b=_0x4d57b4['mapper']['toViewPosition'](_0x15cdc5['createPositionBefore'](_0x10233b));_0x169f5f&&_0xcfc2ca['activeMarkers']['includes'](_0x5043b6['markerName'])&&_0x4d57b4['writer']['addClass']('ck-suggestion-marker--active',_0x59a927),_0x4d57b4['writer']['insert'](_0x5a0e4b,_0x59a927),_0x4d57b4['mapper']['bindElementToMarker'](_0x59a927,_0x5043b6['markerName']);}};}class vt extends _0x3870c0{['afterInit'](){const _0x2f08bb=this['editor'],_0x455046=_0x2f08bb['model'],_0x1253d5=_0x2f08bb['locale'];if(!_0x2f08bb['plugins']['has']('StandardEditingModeEditing'))return;const _0x12d6a6=_0x2f08bb['plugins']['get']('TrackChangesEditing'),_0x45ded4='restrictedEditingException',_0x58937c=_0x2f08bb['commands']['get'](_0x45ded4);_0x12d6a6['enableCommand'](_0x45ded4,(_0xa67f4c,_0x80c2ac={})=>{const _0x36a0d6=_0x455046['document']['selection'];if(_0x36a0d6['isCollapsed'])return void _0xa67f4c(_0x80c2ac);const _0x586bce=void 0x0!==_0x80c2ac['forceValue']?_0x80c2ac['forceValue']:!_0x58937c['value'];_0x455046['change'](()=>{const _0x50cc64=Array['from'](_0x36a0d6['getRanges']());for(const _0x52e334 of _0x50cc64){const _0x205de0=_0x586bce?[_0x52e334]:io(_0x45ded4,_0x52e334,_0x455046);for(const _0x729bac of _0x205de0)_0x12d6a6['markInlineFormat'](_0x729bac,{'commandName':_0x45ded4,'commandParams':[{'forceValue':_0x586bce}]});}});}),_0x12d6a6['descriptionFactory']['registerDescriptionCallback'](_0x201269=>{if('formatBlock'!=_0x201269['type']&&'formatInline'!=_0x201269['type'])return;const {data:_0x2eae7c}=_0x201269;return _0x2eae7c&&_0x2eae7c['commandName']==_0x45ded4?_0x2eae7c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1253d5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1253d5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x3870c0{['afterInit'](){const _0x371bf6=this['editor'];if(!_0x371bf6['plugins']['has']('Style')||!_0x371bf6['plugins']['has']('DataSchema'))return;const _0x1867a8=_0x371bf6['plugins']['get']('TrackChangesEditing'),_0x79b953=_0x371bf6['locale'],_0x6e7d78=_0x371bf6['config']['get']('style')||{},_0x1b4b39=_0x371bf6['plugins']['get']('GeneralHtmlSupport'),_0x54e9c1=_0x371bf6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x371bf6['plugins']['get']('DataSchema'),_0x6e7d78['definitions']);_0x1867a8['enableDefaultAttributesIntegration']('style');const _0x78feed=new Set();for(const _0x2732b0 of _0x54e9c1['block']){const _0x2fad10=_0x1b4b39['getGhsAttributeNameForElement'](_0x2732b0['element']);_0x78feed['add'](_0x2fad10);}const _0x96570a=new Set();for(const _0x64f244 of _0x54e9c1['inline']){const _0x950adc=_0x1b4b39['getGhsAttributeNameForElement'](_0x64f244['element']);_0x96570a['add'](_0x950adc);for(const _0x584a07 of _0x64f244['ghsAttributes'])_0x96570a['add'](_0x584a07);}for(const _0x2ae2e2 of _0x78feed)_0x1867a8['registerBlockAttribute'](_0x2ae2e2),_0x1867a8['descriptionFactory']['registerAttributeLabel'](_0x2ae2e2,o(_0x79b953,'FORMAT_STYLE'));for(const _0x510cef of _0x96570a)_0x1867a8['registerInlineAttribute'](_0x510cef),_0x1867a8['descriptionFactory']['registerAttributeLabel'](_0x510cef,o(_0x79b953,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f677=this['editor'],_0x27872c=_0x51f677['locale'];_0x51f677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186a11=>{if('formatBlock'!=_0x186a11['type']&&'formatInline'!=_0x186a11['type'])return;const {data:_0x11ba35}=_0x186a11;return _0x11ba35&&'style'===_0x11ba35['commandName']?_0x11ba35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27872c,'*Set\x20format:*\x20%0',_0x11ba35['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x27872c,'*Remove\x20format:*\x20%0',_0x11ba35['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3870c0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a0fdd){super(_0x3a0fdd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dbdb3=this['editor'],_0x88a5ff=_0x3dbdb3['model']['document']['selection'];if(!_0x3dbdb3['plugins']['has']('TableEditing'))return;const _0x438443=_0x3dbdb3['locale'],_0xa11a81=_0x3dbdb3['plugins']['get']('TrackChangesEditing'),_0x2af300=_0x3dbdb3['plugins']['get']('TableUtils');_0xa11a81['descriptionFactory']['registerElementLabel']('table',_0x5df3d4=>o(_0x438443,'ELEMENT_TABLE',_0x5df3d4)),this['_setupColumnsRowsFixing'](),_0xa11a81['enableCommand']('insertTable'),_0xa11a81['enableCommand']('selectTableRow'),_0xa11a81['enableCommand']('selectTableColumn');for(const _0x26a965 of['insertTableRowAbove','insertTableRowBelow']){const _0x737ac1=_0x3dbdb3['commands']['get'](_0x26a965);_0xa11a81['enableCommand'](_0x26a965,_0x5ae2c7=>{_0x3dbdb3['model']['change'](_0x263b88=>{_0x5ae2c7();const _0x35f4ac='above'===_0x737ac1['order'],_0x5090bb=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x4abc1a=_0x2af300['getRowIndexes'](_0x5090bb),_0x3cee17=_0x35f4ac?_0x4abc1a['first']-0x1:_0x4abc1a['last']+0x1,_0x119ddc=_0x5090bb[0x0]['findAncestor']('table'),_0x3afb48=_0x2af300['createTableWalker'](_0x119ddc,{'startRow':_0x3cee17,'endRow':_0x3cee17}),_0x40a368=Array['from'](_0x3afb48)['map'](_0x1e56f6=>_0x263b88['createRangeOn'](_0x1e56f6['cell']));_0xa11a81['markMultiRangeInsertion'](_0x40a368,'tableRow');});});}for(const _0x5dc3b5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4bd514=_0x3dbdb3['commands']['get'](_0x5dc3b5);_0xa11a81['enableCommand'](_0x5dc3b5,_0xb2ed26=>{_0x3dbdb3['model']['change'](_0x34ccd8=>{_0xb2ed26();const _0x5e5364='left'===_0x4bd514['order'],_0x319701=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x2ff409=_0x2af300['getColumnIndexes'](_0x319701),_0x919efb=_0x5e5364?_0x2ff409['first']-0x1:_0x2ff409['last']+0x1,_0x1014e2=_0x319701[0x0]['findAncestor']('table'),_0x2415e7=_0x2af300['createTableWalker'](_0x1014e2,{'startRow':0x0,'column':_0x919efb,'includeAllSlots':!0x1}),_0x408fc5=Array['from'](_0x2415e7)['map'](_0x1f95d4=>_0x34ccd8['createRangeOn'](_0x1f95d4['cell']));_0xa11a81['markMultiRangeInsertion'](_0x408fc5,'tableColumn');});});}for(const _0x397600 of['removeTableRow','removeTableColumn']){const _0x188117=_0x397600['substr'](0xb),_0x2f1998=_0x188117['toLowerCase'](),_0x5b9c2a=_0x2f1998['substr'](0x0,0x3)+'span',_0x1c86f2='table'+_0x188117,_0x3f4ef7='min'+_0x188117,_0x40352c='max'+_0x188117;_0xa11a81['enableCommand'](_0x397600,()=>{_0x3dbdb3['model']['change'](_0x1db791=>{const _0x25af82=_0x2af300['getSelectionAffectedTableCells'](_0x88a5ff),_0x2ca87a=_0x25af82[0x0]['findAncestor']('table');let _0x28ae5a;if('removeTableRow'==_0x397600){const _0x437010=_0x2af300['getRowIndexes'](_0x25af82);_0x28ae5a={'startRow':_0x437010['first'],'endRow':_0x437010['last'],'includeAllSlots':!0x0};}else{const _0x48810e=_0x2af300['getColumnIndexes'](_0x25af82);_0x28ae5a={'startColumn':_0x48810e['first'],'endColumn':_0x48810e['last'],'includeAllSlots':!0x0};}const _0xe11af8=_0x2af300['createTableWalker'](_0x2ca87a,_0x28ae5a),_0x119dd2=Array['from'](_0xe11af8)['map'](({cell:_0x4b7684})=>_0x4b7684),_0x42951d=Ne(_0x119dd2['filter'](_0x2f9205=>_0x2f9205['hasAttribute'](_0x5b9c2a))),_0x2e012d=Ne(_0x119dd2['filter'](_0x552fb1=>!_0x552fb1['hasAttribute'](_0x5b9c2a)))['map'](_0x10026b=>_0x1db791['createRangeOn'](_0x10026b)),_0x2414de=_0xa11a81['markMultiRangeDeletion'](_0x2e012d,_0x1c86f2);if(_0x2414de&&('tableRow'==_0x2414de['subType']||'tableColumn'==_0x2414de['subType'])){const _0x35266e=this['_getSuggestionCoords'](_0x2414de);for(const _0x234643 of _0x42951d){const _0x2c82ca=_0x1db791['createRangeOn'](_0x234643),_0x5d192f=_0x2af300['getCellLocation'](_0x234643),_0x5ac0ee=_0x234643['getAttribute'](_0x5b9c2a)-0x1,_0xc0f86=_0x35266e[_0x3f4ef7],_0xd87f13=_0x35266e[_0x40352c];_0xc0f86<=_0x5d192f[_0x2f1998]&&_0x5d192f[_0x2f1998]+_0x5ac0ee<=_0xd87f13&&_0x2414de['addRange'](_0x2c82ca);}}});});}function _0x65f3a5(_0x36e608){const _0x29d2ef=Array['from'](_0x88a5ff['getRanges']())['map'](_0x419f73=>_0x1abeca['fromRange'](_0x419f73));_0x3dbdb3['model']['change'](_0x325569=>{const _0x399d6a=_0x325569['batch'];_0x36e608=_0x36e608['filter'](_0x4805cf=>'$graveyard'!=_0x4805cf['root']['rootName']),_0x325569['setSelection'](_0x36e608),_0x3dbdb3['commands']['get']('removeTableRow')['refresh'](),_0x3dbdb3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dbdb3['model']['enqueueChange'](()=>{_0x3dbdb3['model']['enqueueChange'](_0x399d6a,_0x5a752c=>{const _0x580d99=_0x29d2ef['filter'](_0x4920b4=>'$graveyard'!=_0x4920b4['root']['rootName']);_0x580d99['length']>0x0&&_0x5a752c['setSelection'](_0x580d99);for(const _0x4cfcc2 of _0x29d2ef)_0x4cfcc2['detach']();});});});}function _0x3506df(_0x2de034){_0x3dbdb3['model']['change'](_0x4e897d=>{const _0x4d8650=Array['from'](_0x88a5ff['getRanges']())['map'](_0xe6e394=>_0x1abeca['fromRange'](_0xe6e394)),_0x31f73d=[];for(const _0x2fceaa of _0x2de034)for(const _0x391e09 of _0x2fceaa['getItems']({'shallow':!0x0}))_0x31f73d['push'](_0x391e09);for(const _0x238d35 of _0x31f73d)'$graveyard'!=_0x238d35['root']['rootName']&&(_0x4e897d['setSelection'](_0x4e897d['createPositionAt'](_0x238d35,0x0)),_0x3dbdb3['commands']['get']('removeTableColumn')['refresh'](),_0x3dbdb3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2987ba=_0x4d8650['filter'](_0x4ed9b9=>'$graveyard'!=_0x4ed9b9['root']['rootName']);_0x2987ba['length']>0x0&&_0x4e897d['setSelection'](_0x2987ba);for(const _0x22b991 of _0x4d8650)_0x22b991['detach']();});}function _0x3dcb87(_0x4c8575,_0x1095b6){return _0x1095b6['every'](_0x401619=>_0x4c8575['some'](_0x354afc=>_0x354afc['end']['isEqual'](_0x401619['start'])||_0x401619['end']['isEqual'](_0x354afc['start'])));}function _0x274d23(_0x22b664,_0x2c20df){return!_0x22b664['some'](_0x12f5df=>_0x2c20df['some'](_0x33814e=>_0x12f5df['isIntersecting'](_0x33814e)))&&_0x22b664['some'](_0xa90817=>_0x2c20df['some'](_0x50d080=>_0xa90817['end']['isTouching'](_0x50d080['start'])));}_0x3dbdb3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c2c0d,_0x3163b5,_0xb026a0)=>{if(!_0xb026a0['options']['showSuggestionHighlights'])return;const _0x4eebd6=_0x3163b5['item'];if(!_0x4eebd6)return;const _0x4274cf=_0xb026a0['mapper']['toViewElement'](_0x4eebd6);function _0x572554(_0x51c666){return Array['isArray'](_0x51c666)?_0x51c666:[_0x51c666];}_0x4274cf&&'tableCell'===_0x4eebd6['name']&&_0x4f62b8(_0x4274cf,_0xb026a0['writer'],(_0x46f324,_0x4900a4,_0x50d3ac)=>_0x50d3ac['addClass'](_0x572554(_0x4900a4['classes']),_0x46f324),(_0x3d0d98,_0x8ad967,_0x3e53ad)=>_0x3e53ad['removeClass'](_0x572554(_0x8ad967['classes']),_0x3d0d98));},{'priority':'highest'}),_0xa11a81['descriptionFactory']['registerDescriptionCallback'](_0x21e575=>{if('insertion'!=_0x21e575['type']&&'deletion'!=_0x21e575['type'])return;const _0x417fde=_0x21e575['getContainedElement']();if(null!=_0x417fde&&_0x417fde['is']('element','table')){if('insertion'==_0x21e575['type']){const _0x4acd78=_0x21e575['getItems']()['filter'](_0x261837=>_0x261837['is']('$textProxy'))['map'](_0x509e73=>_0x509e73['data']);if(_0x4acd78['length'])return{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4acd78['join']('\x20')+'\x22'))};}if('deletion'==_0x21e575['type']){const _0x4a7f07=_0x21e575['getItems']()['filter'](_0x1cfb2e=>_0x1cfb2e['is']('$textProxy'))['map'](_0x10461a=>_0x10461a['data']);if(_0x4a7f07['length'])return{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a7f07['join']('\x20')+'\x22'))};}}}),_0xa11a81['descriptionFactory']['registerDescriptionCallback'](_0x3715ac=>{if('tableRow'==_0x3715ac['subType']){const _0x15421e=_0x3715ac['getItems']()['filter'](_0x6e55b1=>_0x6e55b1['is']('$textProxy'))['map'](_0x1e48ee=>_0x1e48ee['data']),_0x3a6314=this['_getSuggestionCoords'](_0x3715ac),_0x2967fc=_0x3a6314['maxRow']-_0x3a6314['minRow']+0x1;if('insertion'==_0x3715ac['type'])return _0x15421e['length']?{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2967fc,'\x22'+_0x15421e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW',_0x2967fc))};if('deletion'==_0x3715ac['type'])return _0x15421e['length']?{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2967fc,'\x22'+_0x15421e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_ROW',_0x2967fc))};}if('tableColumn'==_0x3715ac['subType']){const _0x1a8c31=_0x3715ac['getItems']()['filter'](_0xcf6e6c=>_0xcf6e6c['is']('$textProxy'))['map'](_0x5e2590=>_0x5e2590['data']),_0x1a17f2=this['_getSuggestionCoords'](_0x3715ac),_0x3b7f17=_0x1a17f2['maxColumn']-_0x1a17f2['minColumn']+0x1;if('insertion'==_0x3715ac['type'])return _0x1a8c31['length']?{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7f17,'\x22'+_0x1a8c31['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x438443,'*Insert:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN',_0x3b7f17))};if('deletion'==_0x3715ac['type'])return _0x1a8c31['length']?{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7f17,'\x22'+_0x1a8c31['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x438443,'*Remove:*\x20%0',o(_0x438443,'ELEMENT_TABLE_COLUMN',_0x3b7f17))};}}),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x65f3a5),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x65f3a5),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3506df),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3506df),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3dcb87),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3dcb87),_0xa11a81['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x274d23),_0xa11a81['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x274d23);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c9f4e=this['editor'],_0x326825=_0x2c9f4e['model']['document']['selection'];return(_0x49d75c,_0x1a8c44)=>{_0x2c9f4e['model']['change'](_0xb2bfb1=>{const {commandName:_0x216a12,commandParams:_0x498193}=_0x1a8c44;let _0x351fee=_0x49d75c[0x0]['end']['nodeBefore'];_0x498193&&_0x498193[0x0]&&!0x1===_0x498193[0x0]['forceValue']&&(_0x351fee=_0x49d75c[0x0]['start']['nodeAfter']);const _0x3b0407=_0xb2bfb1['createRangeIn'](_0x351fee);if('$graveyard'==_0x3b0407['root']['rootName'])return;const _0x4d8012=Array['from'](_0x326825['getRanges']())['map'](_0xf68750=>_0x1abeca['fromRange'](_0xf68750));_0xb2bfb1['setSelection'](_0x3b0407),_0x2c9f4e['commands']['get'](_0x216a12)['refresh'](),_0x498193['push']({'forceDefaultExecution':!0x0}),_0x2c9f4e['execute'](_0x216a12,..._0x498193);const _0x109e6e=_0x4d8012['filter'](_0x32b259=>'$graveyard'!=_0x32b259['root']['rootName']);_0x109e6e['length']>0x0&&_0xb2bfb1['setSelection'](_0x109e6e);for(const _0xe3f1af of _0x4d8012)_0xe3f1af['detach']();});};}['_getCoordsForCells'](_0x6007b6){const _0x17535a=this['editor']['plugins']['get']('TableUtils');let _0x546260=Number['MAX_SAFE_INTEGER'],_0x46abc2=Number['MIN_SAFE_INTEGER'],_0x37634b=Number['MAX_SAFE_INTEGER'],_0x15833c=Number['MIN_SAFE_INTEGER'];for(const _0x2d0a4a of _0x6007b6){if('$graveyard'==_0x2d0a4a['root']['rootName'])continue;const {row:_0x222535,column:_0x2d2d8c}=_0x17535a['getCellLocation'](_0x2d0a4a),_0x263d1f=_0x2d0a4a['hasAttribute']('rowspan')?_0x2d0a4a['getAttribute']('rowspan')-0x1:0x0,_0x6f400d=_0x2d0a4a['hasAttribute']('colspan')?_0x2d0a4a['getAttribute']('colspan')-0x1:0x0;_0x546260=_0x222535<_0x546260?_0x222535:_0x546260,_0x46abc2=_0x222535+_0x263d1f>_0x46abc2?_0x222535+_0x263d1f:_0x46abc2,_0x37634b=_0x2d2d8c<_0x37634b?_0x2d2d8c:_0x37634b,_0x15833c=_0x2d2d8c+_0x6f400d>_0x15833c?_0x2d2d8c+_0x6f400d:_0x15833c;}return{'minRow':_0x546260,'maxRow':_0x46abc2,'minColumn':_0x37634b,'maxColumn':_0x15833c};}['_setupColumnsRowsFixing'](){const _0x38a546=this['editor'],_0x3548a6=_0x38a546['plugins']['get']('TrackChangesEditing'),_0x2badc7=_0x38a546['plugins']['get']('TableUtils');_0x38a546['model']['document']['on']('change:data',()=>{const _0x1ebd92=Array['from'](_0x38a546['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33e4b9,data:_0x496742}of _0x1ebd92){const {group:_0x29ef46,id:_0x4a3dec,subType:_0x374eea}=_0x3548a6['_splitMarkerName'](_0x33e4b9);if('suggestion'!=_0x29ef46)continue;if(null!=_0x496742['oldRange'])continue;const _0x1d63dd=_0x3548a6['getSuggestion'](_0x4a3dec);this['_tablePostFixingSubtypes']['includes'](_0x374eea)&&this['_tableSuggestions']['add'](_0x1d63dd);}},{'priority':'low'});const _0x363a29=(_0xf59f8e,_0x1ddec6)=>{let _0x196ab6=!0x1;const _0x3c2eb6=_0x1ddec6['createRangeOn'](_0xf59f8e),_0xc224fd=_0xf59f8e['findAncestor']('table'),_0x2fa460=_0x2badc7['getCellLocation'](_0xf59f8e);for(const _0x5a4f0d of this['_tableSuggestions']){const _0x53557f=_0x5a4f0d['subType'],_0x2060a3=_0x53557f['startsWith']('tablePaste'),_0x4a43db=_0x53557f['substr'](_0x2060a3?0xa:0x5),_0x36ccdb=_0x4a43db['toLowerCase'](),_0x47639a=_0x36ccdb['substr'](0x0,0x3)+'span',_0x11125a='min'+_0x4a43db,_0x30aff6='max'+_0x4a43db;if(!_0x5a4f0d['isInContent'])continue;if(_0xc224fd!=_0x5a4f0d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a4f0d['isIntersectingWithRange'](_0x3c2eb6))continue;const _0x2dc2a5=_0xf59f8e['hasAttribute'](_0x47639a)?_0xf59f8e['getAttribute'](_0x47639a)-0x1:0x0,_0x5ddfe2=this['_getSuggestionCoords'](_0x5a4f0d),_0x5df661=_0x5ddfe2[_0x11125a],_0x1e6317=_0x5ddfe2[_0x30aff6];_0x5df661<=_0x2fa460[_0x36ccdb]&&_0x2fa460[_0x36ccdb]+_0x2dc2a5<=_0x1e6317&&(_0x5a4f0d['addRange'](_0x3c2eb6),_0x196ab6=!0x0);}return _0x196ab6;};_0x38a546['model']['document']['registerPostFixer'](_0x4cd101=>{let _0xbebaef=!0x1;for(const _0x103d12 of _0x38a546['model']['document']['differ']['getChanges']())if('insert'==_0x103d12['type']){if('tableRow'==_0x103d12['name']){for(const _0x5e5c75 of _0x103d12['position']['nodeAfter']['getChildren']())_0xbebaef=_0xbebaef||_0x363a29(_0x5e5c75,_0x4cd101);}else'tableCell'==_0x103d12['name']&&(_0xbebaef=_0xbebaef||_0x363a29(_0x103d12['position']['nodeAfter'],_0x4cd101));}return _0xbebaef;});}['_getSuggestionCoords'](_0x1651ae){return this['_getCoordsForCells'](_0x1651ae['getRanges']()['map'](_0x414008=>_0x414008['start']['nodeAfter']));}}function Ne(_0x11428e){return Array['from'](new Set(_0x11428e)['values']());}class Nt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0xa020df=this['editor'],_0x4296d4=_0xa020df['model']['document']['selection'],_0xa75113=_0xa020df['locale'];if(!_0xa020df['plugins']['has']('TableEditing'))return;const _0xd04a6=_0xa020df['plugins']['get']('TrackChangesEditing'),_0xa46bef=_0xa020df['plugins']['get']('TableUtils'),_0x48c946=_0xa020df['plugins']['get'](Ct);_0x48c946['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd04a6['enableCommand']('mergeTableCells',()=>{const _0x50ee92=_0xa46bef['getSelectionAffectedTableCells'](_0xa020df['model']['document']['selection']);_0xa020df['model']['change'](()=>{_0xd04a6['markMultiRangeBlockFormat'](_0x50ee92,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa020df['commands']['get']('mergeTableCells')['on']('execute',(_0xc36b41,_0x5e5fe7)=>{_0xa020df['commands']['get']('trackChanges')['value']&&(_0x5e5fe7['length']>0x0&&_0x5e5fe7[_0x5e5fe7['length']-0x1]&&_0x5e5fe7[_0x5e5fe7['length']-0x1]['forceDefaultExecution']||_0xd04a6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc36b41['stop']());},{'priority':'highest'});for(const _0x5c1b15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x397f7c=_0xa020df['commands']['get'](_0x5c1b15);_0xd04a6['enableCommand'](_0x5c1b15,()=>{const _0x2fd7cd=_0xa020df['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x568aec=>_0x568aec['is']('element','tableCell')),_0x4be687=_0x397f7c['value'];_0xa020df['model']['change'](()=>{_0xd04a6['markMultiRangeBlockFormat']([_0x2fd7cd,_0x4be687],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5938f4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26a3a1=_0xa020df['commands']['get'](_0x5938f4);_0xd04a6['enableCommand'](_0x5938f4,()=>{const _0x1021fc=_0xa46bef['getSelectionAffectedTableCells'](_0xa020df['model']['document']['selection'])[0x0],_0xd7e428=_0x1021fc['findAncestor']('table'),{column:_0x5d7736,row:_0x216451}=_0xa46bef['getCellLocation'](_0x1021fc);let _0x1c7b90=[];if('horizontally'==_0x26a3a1['direction']){const _0x48f99e=_0xa46bef['createTableWalker'](_0xd7e428,{'startRow':_0x216451,'endRow':_0x216451,'includeAllSlots':!0x0});_0x1c7b90=Array['from'](_0x48f99e)['map'](_0xef97b0=>_0xef97b0['cell']);}else{const _0x3058ea=_0xa46bef['createTableWalker'](_0xd7e428,{'column':_0x5d7736,'includeAllSlots':!0x0});_0x1c7b90=Array['from'](_0x3058ea)['map'](_0x24b56e=>_0x24b56e['cell']);}_0xa020df['model']['change'](_0x307a44=>{_0xd04a6['markBlockFormat'](_0x307a44['createRangeOn'](_0x1021fc),{'commandName':_0x5938f4,'commandParams':[]},_0x1c7b90,_0x5938f4);});});}_0xd04a6['descriptionFactory']['registerDescriptionCallback'](_0x2dca33=>{if('formatBlock'!=_0x2dca33['type']&&'formatInline'!=_0x2dca33['type'])return;const {data:_0x37dd26}=_0x2dca33;return _0x37dd26&&'mergeTableCells'==_0x37dd26['commandName']?{'type':'format','content':o(_0xa75113,'*Merge\x20cells*')}:void 0x0;}),_0xd04a6['descriptionFactory']['registerDescriptionCallback'](_0x51f709=>{if('formatBlock'!=_0x51f709['type']&&'formatInline'!=_0x51f709['type'])return;const {data:_0x1c437d}=_0x51f709;return _0x1c437d?'splitTableCellVertically'==_0x1c437d['commandName']?{'type':'format','content':o(_0xa75113,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c437d['commandName']?{'type':'format','content':o(_0xa75113,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cb6ac=_0x48c946['_acceptFormatSuggestionCallbackFactory']();for(const _0x38a8c0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38a8c0,'accept',_0x2cb6ac);for(const _0x4919a0 of['splitTableCellVertically','splitTableCellHorizontally'])_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4919a0,'accept',_0x2cb6ac);_0xd04a6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x41741b=>{_0xa020df['model']['change'](_0x5b95c7=>{const _0x206871=Array['from'](_0x4296d4['getRanges']())['map'](_0x1de120=>_0x1abeca['fromRange'](_0x1de120));_0x5b95c7['setSelection'](_0x41741b),_0xa020df['commands']['get']('mergeTableCells')['refresh'](),_0xa020df['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47d77c=_0x206871['filter'](_0x2d01af=>'$graveyard'!=_0x2d01af['root']['rootName']);_0x47d77c['length']>0x0&&_0x5b95c7['setSelection'](_0x47d77c);for(const _0x18782c of _0x206871)_0x18782c['detach']();});});for(const _0x350e94 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13dd8a=_0xa020df['commands']['get'](_0x350e94);_0x13dd8a['on']('set:isEnabled',(_0x212fcd,_0x58ff52,_0x3dc660)=>{if(_0x3dc660){const _0x181466=_0xa020df['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38ec98=>_0x38ec98['is']('element','tableCell'));this['_areMergableCells'](_0x13dd8a['value'],_0x181466)||(_0x212fcd['return']=!0x1,_0x212fcd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x144584=this['editor']['commands']['get']('mergeTableCells'),_0xd46c6f=this['editor']['plugins']['get']('TableUtils');if(!_0x144584['isEnabled'])return!0x1;const _0x550c99=_0xd46c6f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x214ea1 of _0x550c99)for(const _0x58d76c of _0x550c99)if(_0x214ea1!=_0x58d76c&&!this['_areMergableCells'](_0x214ea1,_0x58d76c))return!0x1;return!0x0;}['_areMergableCells'](_0x3f1126,_0x4c9e65){const _0x4621e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a7067=this['editor']['model']['createRangeOn'](_0x3f1126),_0x474dd5=this['editor']['model']['createRangeOn'](_0x4c9e65),_0x40be07=new Set(),_0x276499=new Set();for(const _0x230d47 of _0x4621e8['getSuggestions']())if(('insertion'==_0x230d47['type']||'deletion'==_0x230d47['type']||'mergeTableCells'==_0x230d47['subType'])&&_0x230d47['isInContent']){for(const _0x5e26c5 of _0x230d47['getRanges']())_0x5e26c5['containsRange'](_0x3a7067,!0x0)&&_0x40be07['add'](_0x230d47['type']+':'+_0x230d47['author']['id']),_0x5e26c5['containsRange'](_0x474dd5,!0x0)&&_0x276499['add'](_0x230d47['type']+':'+_0x230d47['author']['id']);}if(_0x40be07['size']!=_0x276499['size'])return!0x1;for(const _0x211a20 of _0x40be07)if(!_0x276499['has'](_0x211a20))return!0x1;return!0x0;}}class Dt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x241ee9=this['editor'];if(!_0x241ee9['plugins']['has']('TableEditing'))return;const _0x4c8444=_0x241ee9['locale'],_0x4c81c8=_0x241ee9['plugins']['get']('TrackChangesEditing');_0x4c81c8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c81c8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c81c8['registerBlockAttribute']('headingRows'),_0x4c81c8['registerBlockAttribute']('headingColumns'),_0x4c81c8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c8444,'FORMAT_HEADER_ROW')),_0x4c81c8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c8444,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b8156=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2af002=this['editor']['plugins']['get']('TableUtils'),_0x508103=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5f100d({showActiveMarker:_0x24645e=!0x0,setDataAttribute:_0x599c0e=!0x0}={}){return(_0x443aeb,_0x2336a3,_0x12fcfb)=>{const {type:_0x4c7849,id:_0x2db370}=_0x4b8156['_splitMarkerName'](_0x2336a3['markerName']),_0x164836=_0x4b8156['getSuggestion'](_0x2db370),_0x3161b9=_0x164836['data'];if('formatBlock'!=_0x164836['type']||!_0x3161b9||'setTableColumnHeader'!=_0x3161b9['commandName'])return;if(_0x2336a3['item'])return void _0x443aeb['stop']();if(!_0x12fcfb['consumable']['consume'](_0x2336a3['markerRange'],_0x443aeb['name']))return;const _0x46765a=_0x2336a3['markerRange']['start']['nodeAfter'],_0x3c3b30=_0x2336a3['markerRange']['end']['nodeBefore'],_0x30d95a=_0x46765a['parent']['parent'],{column:_0xbbd1fa}=_0x2af002['getCellLocation'](_0x46765a),{column:_0x1c8acb}=_0x2af002['getCellLocation'](_0x3c3b30);for(let _0x1a1cdd=_0xbbd1fa;_0x1a1cdd<=_0x1c8acb;_0x1a1cdd++){const _0x203b4b=_0x2af002['createTableWalker'](_0x30d95a,{'column':_0x1a1cdd,'includeAllSlots':!0x1});for(const _0x158bf2 of _0x203b4b){const _0x365dc4=_0x158bf2['cell'],_0x9edd96=_0x12fcfb['mapper']['toViewElement'](_0x365dc4);_0x12fcfb['writer']['addClass']('ck-suggestion-marker-'+_0x4c7849,_0x9edd96),_0x599c0e&&_0x12fcfb['writer']['setAttribute']('data-suggestion',_0x2db370,_0x9edd96),_0x12fcfb['mapper']['bindElementToMarker'](_0x9edd96,_0x2336a3['markerName']),_0x24645e&&(_0x4b8156['activeMarkers']['includes'](_0x2336a3['markerName'])?_0x12fcfb['writer']['addClass']('ck-suggestion-marker--active',_0x9edd96):_0x12fcfb['writer']['removeClass']('ck-suggestion-marker--active',_0x9edd96));}}};}_0x4b8156['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x508103),_0x4b8156['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x508103),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5f100d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf70cdd,_0x36f38f,_0xceff9a)=>{_0xceff9a['options']['showSuggestionHighlights']&&_0x5f100d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf70cdd,_0x36f38f,_0xceff9a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c8e06,_0x4c2fe7,_0x5331a6)=>{const {type:_0x404315,id:_0x3c480f}=_0x4b8156['_splitMarkerName'](_0x4c2fe7['markerName']),_0x447a14=_0x4b8156['getSuggestion'](_0x3c480f),_0x4d6c3b=_0x447a14['data'];if('formatBlock'!=_0x447a14['type']||!_0x4d6c3b||'setTableColumnHeader'!=_0x4d6c3b['commandName'])return;const _0x35c30b=_0x5331a6['mapper']['markerNameToElements'](_0x4c2fe7['markerName']);if(_0x35c30b){for(const _0x5e8547 of _0x35c30b)_0x5331a6['writer']['removeClass']('ck-suggestion-marker-'+_0x404315,_0x5e8547),_0x5331a6['writer']['removeClass']('ck-suggestion-marker--active',_0x5e8547),_0x5331a6['writer']['removeAttribute']('data-suggestion',_0x5e8547),_0x5331a6['mapper']['unbindElementFromMarkerName'](_0x5e8547,_0x4c2fe7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a8598=this['editor'],_0x425d96=_0x5a8598['locale'];function _0x1970b4(_0x146722){return{'type':'format','content':o(_0x425d96,'*Format:*\x20%0',_0x146722)};}_0x5a8598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd448=>{if('formatBlock'!=_0x3fd448['type'])return;const {data:_0x35f155}=_0x3fd448;if(_0x35f155){if('setTableRowHeader'==_0x35f155['commandName']){const _0x5b4ee7=_0x35f155['commandParams'][0x0]['forceValue'];return _0x1970b4(o(_0x425d96,_0x5b4ee7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x35f155['commandName']){const _0x1b8cec=_0x35f155['commandParams'][0x0]['forceValue'];return _0x1970b4(o(_0x425d96,_0x1b8cec?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x47852f=>[_0x47852f,null]));class Mt extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x44d0b4=this['editor'];if(!_0x44d0b4['plugins']['has']('TableClipboard'))return;const _0x1f4c05=_0x44d0b4['plugins']['get']('TrackChangesEditing'),_0x28d561=_0x44d0b4['plugins']['get']('TableUtils'),_0x1e3f54=_0x44d0b4['plugins']['get'](Ct),_0x12fdc9=_0x44d0b4['plugins']['get']('TableClipboard');_0x1e3f54['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x44d0b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x44d0b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ab5f8=null;_0x44d0b4['model']['on']('insertContent',(_0x4d6473,_0x494e59)=>{const [_0x4ce499,_0x5da767]=_0x494e59,_0x38414c=_0x494e59[_0x494e59['length']-0x1];_0x38414c&&_0x38414c['forceDefaultExecution']||_0x1f4c05['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37c2bf,_0x24bb5a,_0x580f06,_0x392657,_0x217fb9){if(_0x24bb5a&&!_0x24bb5a['is']('documentSelection'))return!0x1;const _0x4cfb6f=_0x217fb9['getTableIfOnlyTableInContent'](_0x37c2bf,_0x580f06);if(!_0x4cfb6f||!Ue(_0x4cfb6f,void 0x0,_0x392657))return!0x1;const _0x348b7f=_0x392657['getSelectionAffectedTableCells'](_0x580f06['document']['selection']);if(!_0x348b7f['length'])return!0x1;const _0x4974cb=_0x348b7f[0x0]['findAncestor']('table'),_0x596cf0=_0x392657['getRowIndexes'](_0x348b7f),_0x570dc9=_0x392657['getColumnIndexes'](_0x348b7f),_0x30cc6d={'startRow':_0x596cf0['first'],'endRow':_0x596cf0['last'],'startColumn':_0x570dc9['first'],'endColumn':_0x570dc9['last']};return 0x1==_0x348b7f['length']&&(_0x30cc6d['endRow']+=_0x392657['getRows'](_0x4cfb6f)-0x1,_0x30cc6d['endColumn']+=_0x392657['getColumns'](_0x4cfb6f)-0x1),Ue(_0x4974cb,_0x30cc6d,_0x392657);}(_0x4ce499,_0x5da767,_0x44d0b4['model'],_0x28d561,_0x12fdc9)&&(_0x4d6473['stop'](),_0x1ab5f8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x44d0b4['model']['change'](()=>{_0x44d0b4['model']['insertContent'](_0x494e59[0x0],_0x494e59[0x1],_0x494e59[0x2],{'forceDefaultExecution':!0x0});const _0x1ff928=_0x53814c(),{rowInsertionRanges:_0x312937,columnInsertionRanges:_0x31c4cc,insertionRanges:_0x4cd7f2,deletionRanges:_0x423c8e,cells:_0xe2bc16}=_0x1ab5f8;_0x312937['length']&&_0x1f4c05['markMultiRangeInsertion'](_0x312937,'tablePasteRow',{'tablePasteChainId':_0x1ff928}),_0x31c4cc['length']&&_0x1f4c05['markMultiRangeInsertion'](_0x31c4cc,'tablePasteColumn',{'tablePasteChainId':_0x1ff928}),_0x4cd7f2['length']&&(_0x1f4c05['markMultiRangeInsertion'](_0x4cd7f2,'tablePaste',{'tablePasteChainId':_0x1ff928,'skipNestingCheck':!0x0}),_0x4cd7f2['forEach'](_0x26f7bf=>_0x26f7bf['detach']?.())),_0x423c8e['length']&&(_0x1f4c05['markMultiRangeDeletion'](_0x423c8e,'tablePaste',{'tablePasteChainId':_0x1ff928,'skipNestingCheck':!0x0}),_0x423c8e['forEach'](_0x4f9b05=>_0x4f9b05['detach']?.()));const _0x537798=_0x1f4c05['markMultiRangeBlockFormat'](_0xe2bc16['map'](({element:_0x194cce})=>_0x194cce),{'formatGroupId':_0x53814c()},[],'tablePasteCell',{'tablePasteChainId':_0x1ff928});if(_0x537798){const _0x35f632=_0x537798['getMarkers'](),_0xe57c27=[];for(const {element:_0x2299ac,attributes:_0x566018}of _0xe2bc16){if(!_0x566018)continue;const _0x246877=_0x44d0b4['model']['createRangeOn'](_0x2299ac),_0x20faee=_0x35f632['find'](_0x57a684=>_0x57a684['getRange']()['isEqual'](_0x246877));_0x20faee&&_0xe57c27['push']([_0x20faee['name'],_0x566018]);}_0xe57c27['length']&&_0x537798['setAttribute']('markerAttributes',Object['fromEntries'](_0xe57c27));}_0x1ab5f8=null;}));},{'priority':_0x14f8c3['high']+0xa}),_0x44d0b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x10d703,_0x533aac)=>{const [_0x1aac45,_0x22f01c,,_0x43a30a]=_0x533aac;if(!_0x1ab5f8)return;_0x10d703['stop']();const _0x357dae=_0x1aac45['cell'],_0x2a8be1=_0x22f01c,_0x2a34b1=Oe(_0x357dae),_0x30cfc4=Oe(_0x2a8be1);_0x10d703['return']=_0x357dae;let _0x533317=null,_0x2086d9=null;if(_0x30cfc4||_0x2a34b1){if(_0x2a34b1&&!_0x30cfc4){_0x43a30a['remove'](_0x357dae['getChild'](0x0));for(const _0x4cf545 of Array['from'](_0x2a8be1['getChildren']()))_0x43a30a['insert'](_0x4cf545,_0x357dae,'end');const _0x30e8eb=_0x1ab5f8['rowInsertionIndexes']['includes'](_0x1aac45['row']),_0x19eae9=_0x1ab5f8['columnInsertionIndexes']['includes'](_0x1aac45['column']);_0x30e8eb||_0x19eae9||(_0x533317=_0x1abeca['fromRange'](_0x43a30a['createRangeIn'](_0x357dae)));}else _0x30cfc4&&!_0x2a34b1&&(_0x2086d9=_0x43a30a['createRangeIn'](_0x357dae));}else{const _0x497243=_0x43a30a['createElement']('tableCellSuggestion'),_0x5d5c6f=_0x43a30a['createElement']('tableCellSuggestion');_0x43a30a['wrap'](_0x43a30a['createRangeIn'](_0x357dae),_0x5d5c6f),_0x43a30a['insert'](_0x497243,_0x357dae,0x0);for(const _0x2cff8e of Array['from'](_0x2a8be1['getChildren']()))_0x43a30a['insert'](_0x2cff8e,_0x497243,'end');_0x533317=_0x1abeca['fromRange'](_0x43a30a['createRangeOn'](_0x497243)),_0x2086d9=_0x1abeca['fromRange'](_0x43a30a['createRangeOn'](_0x5d5c6f));}const _0x50a004=Array['from'](_0x2a8be1['getAttributes']())['filter'](([_0x2c4ac4])=>Be['includes'](_0x2c4ac4));_0x1ab5f8['cells']['push']({'element':_0x357dae,'attributes':_0x50a004['length']?Object['fromEntries'](_0x50a004):null}),_0x533317&&_0x1ab5f8['insertionRanges']['push'](_0x533317),_0x2086d9&&_0x1ab5f8['deletionRanges']['push'](_0x2086d9);},{'priority':'high'}),_0x28d561['on']('insertColumns',(_0x1bf8d5,_0x15d5e8)=>{const [_0x3757ef,_0x1ce649={}]=_0x15d5e8;if(!_0x1ab5f8)return;const _0x2d0e2b=_0x1ce649['at']||0x0,_0x25a961=_0x1ce649['columns']||0x1;_0x1ab5f8['columnInsertionIndexes']=new Array(_0x25a961)['fill'](_0x2d0e2b)['map']((_0x29eea6,_0x488de2)=>_0x29eea6+_0x488de2);for(const {cell:_0x1d8386}of _0x28d561['createTableWalker'](_0x3757ef,{'startColumn':_0x2d0e2b,'endColumn':_0x2d0e2b+_0x25a961-0x1}))_0x1ab5f8['columnInsertionRanges']['push'](_0x44d0b4['model']['createRangeOn'](_0x1d8386));},{'priority':'low'}),_0x28d561['on']('insertRows',(_0x35cf59,_0x4a78de)=>{const [_0x9461e5,_0x55a12d={}]=_0x4a78de;if(!_0x1ab5f8)return;const _0x1806b3=_0x55a12d['at']||0x0,_0x3d9164=_0x55a12d['rows']||0x1;_0x1ab5f8['rowInsertionIndexes']=new Array(_0x3d9164)['fill'](_0x1806b3)['map']((_0x105774,_0x3a30ba)=>_0x105774+_0x3a30ba);for(const {cell:_0x35a10b}of _0x28d561['createTableWalker'](_0x9461e5,{'startRow':_0x1806b3,'endRow':_0x1806b3+_0x3d9164-0x1}))_0x1ab5f8['rowInsertionRanges']['push'](_0x44d0b4['model']['createRangeOn'](_0x35a10b));},{'priority':'low'}),_0x1f4c05['descriptionFactory']['registerDescriptionCallback'](_0x30e1c3=>{if(_0x30e1c3['subType']&&_0x30e1c3['subType']['startsWith']('tablePaste'))return _0x30e1c3['previous']?{}:{'type':'insertion','content':o(_0x44d0b4['locale'],'*Replace\x20table\x20cells*')};});const _0x376945=()=>!0x1;for(const _0xc63c1f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion',_0xc63c1f,'join',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('deletion',_0xc63c1f,'join',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc63c1f,'join',_0x376945);_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x376945),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25c1d5,_0x502d34,_0x304ace)=>{const _0x1dab74=_0x25c1d5['map'](_0x198690=>_0x198690['getContainedElement']())['filter'](_0x307292=>_0x307292),_0x233216=new Map(_0x1dab74['map'](_0x572a0a=>[_0x572a0a,null]));if(_0x1ab5f8){for(const {element:_0x366cb8,attributes:_0x31d047}of _0x1ab5f8['cells'])_0x31d047&&_0x233216['set'](_0x366cb8,_0x31d047);}else{if(_0x304ace&&_0x304ace['markerAttributes'])for(const [_0x327f37,_0x5f1d35]of Object['entries'](_0x304ace['markerAttributes'])){const _0x4acda7=_0x44d0b4['model']['markers']['get'](_0x327f37),_0x411e71=_0x4acda7?_0x4acda7['getRange']()['getContainedElement']():null;_0x411e71&&_0x233216['set'](_0x411e71,_0x5f1d35);}}_0x44d0b4['model']['change'](_0x1b2d14=>{for(const [_0x2a28b0,_0x14f10f]of _0x233216)_0x1b2d14['setAttributes']({...xe,..._0x14f10f},_0x2a28b0);});});const _0x1a709e=(_0x23d017,_0x229c53)=>{_0x1f4c05['_suggestionFactory']['registerCustomCallback'](_0x23d017,'tablePaste',_0x229c53,(_0x2933d2,_0x56a38c,_0x33de6c)=>{_0x44d0b4['model']['change'](_0x44d9be=>{const _0x60d363=[];for(const _0x42f1fc of _0x2933d2){const _0x49859c=_0x42f1fc['start']['nodeAfter'];_0x49859c['is']('element','tableCellSuggestion')&&_0x60d363['push'](_0x49859c);}_0x1f4c05['_suggestionFactory']['getSuggestionCallback'](_0x23d017,null,_0x229c53)(_0x2933d2,_0x56a38c,_0x33de6c);for(const _0x5dbb6e of _0x60d363)'$graveyard'!=_0x5dbb6e['root']['rootName']&&_0x44d9be['unwrap'](_0x5dbb6e);});});};_0x1a709e('insertion','accept'),_0x1a709e('insertion','discard'),_0x1a709e('deletion','accept'),_0x1a709e('deletion','discard'),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x163f2f=>{const _0x109a40=_0x163f2f['map'](_0x44d379=>_0x44d379['getContainedElement']()),_0x4ea326=_0x109a40[0x0]['findAncestor']('table'),{minRow:_0x3f8d45,maxRow:_0x236444}=_0x1e3f54['_getCoordsForCells'](_0x109a40);_0x28d561['removeRows'](_0x4ea326,{'at':_0x3f8d45,'rows':_0x236444-_0x3f8d45+0x1});}),_0x1f4c05['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x11f6ba=>{const _0x31c5d4=_0x11f6ba['map'](_0x5e6b62=>_0x5e6b62['getContainedElement']()),_0x49bcde=_0x31c5d4[0x0]['findAncestor']('table'),{minColumn:_0x123da7,maxColumn:_0x5bdd02}=_0x1e3f54['_getCoordsForCells'](_0x31c5d4);_0x28d561['removeColumns'](_0x49bcde,{'at':_0x123da7,'columns':_0x5bdd02-_0x123da7+0x1});});const _0x176efb=(_0x47fbb7,_0x2a5484)=>{if(!_0x2a5484['subType']||!_0x2a5484['subType']['startsWith']('tablePaste'))return;const _0x3b290e=_0x2a5484['attributes']['tablePasteChainId'],_0x2369e2=_0x1f4c05['getSuggestions']()['filter'](_0x326ec=>_0x326ec['isInContent']&&_0x326ec['attributes']&&_0x326ec['attributes']['tablePasteChainId']==_0x3b290e);_0x2369e2['length']&&_0x2a5484['getAllAdjacentSuggestions']()['length']!=_0x2369e2['length']&&_0x2369e2['reduce']((_0x2bfac2,_0x38d48b)=>(_0x2bfac2['next']=_0x38d48b,_0x38d48b['previous']=_0x2bfac2,_0x38d48b));};function _0x18597f(_0x3df0d2,_0x1a0150=!0x0){const {id:_0x3191e8,authorId:_0xa2a499}=_0x1f4c05['_splitMarkerName'](_0x3df0d2['markerName']),_0x1c3137=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2ea18b=_0x1f4c05['activeMarkers']['includes'](_0x3df0d2['markerName']);return _0x2ea18b&&_0x1c3137['push']('ck-suggestion-marker--active'),{'classes':_0x1c3137,'attributes':{'data-suggestion':_0x3191e8,'data-author-id':_0xa2a499},'priority':_0x2ea18b&&_0x1a0150?0xbc2:0xbb8};}_0x1f4c05['on']('suggestionLoaded',_0x176efb,{'priority':'high'}),_0x1f4c05['on']('suggestionUnloaded',_0x176efb,{'priority':'high'}),_0x44d0b4['model']['document']['registerPostFixer'](()=>{let _0x4bb129=!0x1;const _0x462b39=Array['from'](_0x44d0b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x484791,data:_0xc35384}of _0x462b39){const {group:_0x1a6543,type:_0x261fc0,id:_0x351b7b}=_0x1f4c05['_splitMarkerName'](_0x484791);if('suggestion'!=_0x1a6543||'deletion'!=_0x261fc0||_0xc35384['oldRange'])continue;if(!_0x1f4c05['hasSuggestion'](_0x351b7b))continue;const _0x107724=_0x1f4c05['getSuggestion'](_0x351b7b)['getRanges'](),_0x352fb7=_0x44d0b4['plugins']['get']('Users')['me'];for(const _0x2804fc of _0x1f4c05['getSuggestions']()){if(!_0x2804fc['isInContent']||_0x2804fc['author']!=_0x352fb7)continue;if('formatBlock'!=_0x2804fc['type']||'tablePasteCell'!=_0x2804fc['subType'])continue;if(_0x2804fc['getRanges']()['every'](_0x428b9b=>_0x107724['some'](_0x362ab7=>_0x362ab7['containsRange'](_0x428b9b,!0x0)))){for(const _0x52fc33 of _0x2804fc['getAllAdjacentSuggestions']())_0x52fc33['isInContent']&&(_0x52fc33['discard'](),_0x4bb129=!0x0);}}}return _0x4bb129;}),_0x44d0b4['model']['document']['registerPostFixer'](_0x5cd78e=>{const _0x4a49aa=_0x44d0b4['commands']['get']('redo');if(!_0x4a49aa||!_0x4a49aa['_createdBatches']['has'](_0x5cd78e['batch']))return!0x1;let _0x2e67d6=!0x1;const _0x39b577=_0x44d0b4['plugins']['get']('Users')['me'],_0x5e6c4f=_0x44d0b4['model']['document']['differ']['getChanges'](),_0x5aef73=Array['from'](_0x44d0b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2be1b2,data:_0x510382})=>{const {group:_0x1503a2,subType:_0xb4a3be,authorId:_0x14c6b3}=_0x1f4c05['_splitMarkerName'](_0x2be1b2);return'suggestion'==_0x1503a2&&'tablePaste'==_0xb4a3be&&_0x14c6b3==_0x39b577['id']&&!_0x510382['oldRange'];});for(const _0x5d4e7e of _0x5e6c4f){if('insert'!=_0x5d4e7e['type']||'tableCellSuggestion'!=_0x5d4e7e['name']||0x1!=_0x5d4e7e['length'])continue;const _0x2a1822=_0x5cd78e['createRange'](_0x5d4e7e['position'],_0x5d4e7e['position']['getShiftedBy'](0x1));if(!_0x5aef73['find'](({data:_0x498e37})=>_0x498e37['newRange']['isEqual'](_0x2a1822))){for(const {name:_0x6174e7,data:_0x2229ef}of _0x5aef73)if(_0x2a1822['containsRange'](_0x2229ef['newRange'])){_0x5cd78e['updateMarker'](_0x6174e7,{'range':_0x2a1822}),_0x2e67d6=!0x0;break;}}}return _0x2e67d6;}),_0x44d0b4['model']['document']['registerPostFixer'](_0x16197c=>{let _0x4ec61e=!0x1;const _0x543dfc=_0x44d0b4['plugins']['get']('Users')['me'],_0x4f59e6=_0x1f4c05['getSuggestions']()['filter'](_0x532ee1=>_0x532ee1['isInContent']&&_0x532ee1['author']==_0x543dfc),_0x2bb2d3=new Set(),_0x1d7369=new Set();for(const _0xcfec5f of _0x4f59e6)if('tablePaste'==_0xcfec5f['subType'])for(const _0x1aec88 of _0xcfec5f['getMarkers']()){const _0xf11e64=_0x1aec88['getRange']()['getContainedElement']();if(_0xf11e64){if(_0xf11e64['is']('element','tableCellSuggestion')&&Oe(_0xf11e64)){_0xcfec5f['removeMarker'](_0x1aec88['name']),_0x2bb2d3['add'](_0xf11e64),_0x4ec61e=!0x0;const _0xd3466a=_0xf11e64['nextSibling'],_0x4da64c=_0xf11e64['previousSibling'],_0x190934=_0xd3466a&&_0xd3466a['is']('element','tableCellSuggestion'),_0x207bd5=_0x4da64c&&_0x4da64c['is']('element','tableCellSuggestion');_0x190934&&!_0x2bb2d3['has'](_0xd3466a)&&_0x1d7369['add'](_0xd3466a),_0x207bd5&&!_0x2bb2d3['has'](_0x4da64c)&&_0x1d7369['add'](_0x4da64c);}else _0xf11e64['is']('element','paragraph')&&_0xf11e64['isEmpty']&&(_0xcfec5f['removeMarker'](_0x1aec88['name']),_0x4ec61e=!0x0);}}else{if('tablePasteCell'==_0xcfec5f['subType']){if(!_0xcfec5f['attributes']||!_0xcfec5f['attributes']['tablePasteChainId'])continue;const _0xed7f5c=_0xcfec5f['attributes']['markerAttributes'];if(_0xed7f5c&&Object['keys'](_0xed7f5c)['length'])continue;const _0x40bdf3=_0xcfec5f['attributes']['tablePasteChainId'];let _0x1c8c42=!0x0,_0x3ba49c=!0x0;for(const _0x3d56d5 of _0x4f59e6)if(_0x3d56d5['subType']&&_0x3d56d5['subType']['startsWith']('tablePaste')){if(!_0x3d56d5['attributes']['tablePasteChainId']){_0x3ba49c=!0x1;break;}if(_0x3d56d5['id']!=_0xcfec5f['id']&&_0x3d56d5['attributes']['tablePasteChainId']==_0x40bdf3){_0x1c8c42=!0x1;break;}}_0x3ba49c&&_0x1c8c42&&(_0xcfec5f['removeMarkers'](),_0x4ec61e=!0x0);}}for(const _0x5c9394 of _0x2bb2d3)_0x16197c['remove'](_0x5c9394);for(const _0x48163c of _0x1d7369)_0x16197c['unwrap'](_0x48163c);return _0x4ec61e;}),_0x44d0b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35dc16=>_0x18597f(_0x35dc16),'converterPriority':'high'}),_0x44d0b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4950a5,_0x165a0d)=>_0x165a0d['options']['showSuggestionHighlights']?_0x18597f(_0x4950a5,!0x1):null,'converterPriority':'high'});const _0x389592=_0x44d0b4['editing']['view'];this['listenTo'](_0x389592['document'],'clipboardOutput',(_0x501398,_0x1d99d3)=>{const _0x58ca18=[];for(const _0xab66ce of _0x389592['createRangeIn'](_0x1d99d3['content'])['getItems']())_0xab66ce['is']('element','suggestion-td')&&_0x58ca18['push'](_0xab66ce);_0x389592['change'](_0x52966e=>{for(const _0x547a8b of _0x58ca18)_0x52966e['move'](_0x52966e['createRangeIn'](_0x547a8b),_0x52966e['createPositionBefore'](_0x547a8b)),_0x52966e['remove'](_0x547a8b);});});}}function Oe(_0x5a6373){if(_0x5a6373['isEmpty'])return!0x0;const _0x136d49=_0x5a6373['getChild'](0x0);return _0x136d49['is']('element','paragraph')&&_0x136d49['isEmpty'];}function Ue(_0x5bae0e,_0x14c8b3={},_0x3642f7){for(const {isAnchor:_0x29454b,cellHeight:_0x23a5be,cellWidth:_0x248211}of _0x3642f7['createTableWalker'](_0x5bae0e,{'includeAllSlots':!0x0,..._0x14c8b3}))if(!_0x29454b||0x1!=_0x23a5be||0x1!=_0x248211)return!0x1;return!0x0;}class $t extends _0x3870c0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f6a58=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f6a58['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f6a58['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f6a58['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f6a58['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f6a58['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f6a58['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3bf07c,_0x595d18){const _0x205dcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40478b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf6f9da=_0x595d18['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x29d2b7=_0x40478b['getColumnGroupElement'](_0xf6f9da);let _0x419739=_0x29d2b7?_0x40478b['getTableColumnsWidths'](_0x29d2b7):null,_0x579b4a=_0xf6f9da['getAttribute']('tableWidth')||null;const _0x3cece2=_0x595d18['tableWidth']||_0x579b4a,_0x38a075=_0x595d18['columnWidths']||_0x419739,_0x31b07=this['editor']['plugins']['get']('Users')['me'];for(const _0x39daf9 of _0x205dcd['getSuggestions']()){const _0x4099b5=_0x39daf9['getContainedElement']();if('resizeTable'===_0x39daf9['subType']&&_0x4099b5===_0xf6f9da){_0x39daf9['author']!==_0x31b07&&_0x39daf9['discard']();const _0x4cfb3c=_0x39daf9['data']['commandParams'];_0x579b4a=_0x4cfb3c[0x0]['tableWidth'],_0x419739=_0x4cfb3c[0x0]['columnWidths'];break;}}_0x3bf07c({'table':_0xf6f9da,'tableWidth':_0x3cece2,'columnWidths':_0x38a075}),_0x205dcd['markBlockFormat'](_0xf6f9da,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x579b4a,'columnWidths':_0x419739}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2e5f47){if('formatBlock'!=_0x2e5f47['type']&&'formatInline'!=_0x2e5f47['type'])return;const {data:_0x54ee97}=_0x2e5f47;if(_0x54ee97&&'resizeTable'===_0x54ee97['formatGroupId']){const _0x510920='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x510920)};}}}class Bt extends _0x3870c0{['afterInit'](){const _0xd58e23=this['editor'];_0xd58e23['plugins']['has']('Template')&&_0xd58e23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3870c0{['afterInit'](){const _0x3e9d3e=this['editor'];if(!_0x3e9d3e['commands']['get']('insertTableOfContents'))return;_0x3e9d3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x178876=_0x3e9d3e['plugins']['get']('TrackChangesEditing'),_0x2ce01b=_0x3e9d3e['locale'];_0x178876['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14c15c=>o(_0x2ce01b,'ELEMENT_TABLE_OF_CONTENTS',_0x14c15c));}}class Rt extends _0x3870c0{['afterInit'](){const _0x3cfbbb=this['editor'];if(!_0x3cfbbb['plugins']['has']('Title'))return;const _0x1db5e4=_0x3cfbbb['plugins']['get']('TrackChangesEditing');_0x1db5e4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3cfbbb['locale'],'ELEMENT_TITLE')),_0x3cfbbb['model']['document']['registerPostFixer'](_0x4b02f9=>{let _0x579800=!0x1;const _0x1d37b9=Array['from'](_0x3cfbbb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30a96f,data:_0x36408f}of _0x1d37b9){const {group:_0x32aba5}=_0x1db5e4['_splitMarkerName'](_0x30a96f);if('suggestion'!==_0x32aba5||!_0x36408f['newRange'])continue;const _0x522ebb=_0x36408f['newRange'],_0x5a98a9=_0x522ebb['end']['nodeBefore'];if(!_0x5a98a9||!_0x5a98a9['is']('element','title-content'))continue;if(!_0x522ebb['start']['isTouching'](_0x522ebb['end']))continue;const _0x1064d0=_0x3cfbbb['model']['schema']['getNearestSelectionRange'](_0x522ebb['end'],'forward');if(_0x1064d0&&_0x1064d0['isCollapsed']){const _0x4f4150=_0x4b02f9['createRange'](_0x522ebb['start'],_0x1064d0['start']);_0x4f4150['isEqual'](_0x522ebb)||(_0x4b02f9['updateMarker'](_0x30a96f,{'range':_0x4f4150}),_0x579800=!0x0);}_0x579800||(_0x4b02f9['removeMarker'](_0x30a96f),_0x579800=!0x0);}return _0x579800;});}}class Tt extends _0x3870c0{['afterInit'](){const _0x413911=this['editor'],_0x54dd07=_0x413911['plugins']['get']('TrackChangesEditing');_0x413911['plugins']['has']('Uploadcare')&&(_0x54dd07['enableCommand']('uploadcare'),_0x413911['plugins']['has']('UploadcareImageEdit')&&(_0x54dd07['enableCommand']('uploadcareImageEdit'),_0x54dd07['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x54dd07['registerBlockAttribute']('uploadcareImageId'),_0x54dd07['descriptionFactory']['registerDescriptionCallback'](_0x4450ce=>{if('attribute'!=_0x4450ce['type'])return;const {data:_0x4616da}=_0x4450ce;return _0x4616da&&'uploadcareImageId'==_0x4616da['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3870c0{['afterInit'](){const _0x5e72cb=this['editor'],_0x37283c=_0x5e72cb['plugins']['get']('TrackChangesEditing');_0x5e72cb['plugins']['has']('UndoEditing')&&(_0x37283c['enableCommand']('undo'),_0x37283c['enableCommand']('redo'));}}class Et extends _0x3870c0{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e59b4=this['editor'];if(!_0x4e59b4['plugins']['has']('TableCaptionEditing'))return;_0x4e59b4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3870c0{['tableProperties'];['tableCellProperties'];constructor(_0x456ba8){super(_0x456ba8),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 _0x138b8b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb37d94 of this['tableProperties'])_0x138b8b['enableCommand'](_0xb37d94,(_0x61b2fc,_0x357b06)=>{const _0x53d591=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb37d94,[_0x53d591],this['tableProperties'],'tableProperties',_0x61b2fc,_0x357b06);});_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x138b8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d7c97,_0xebe074)=>this['handleDiscardAction'](this['tableProperties'],_0x1d7c97,_0xebe074)),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ed238 of this['tableCellProperties'])_0x138b8b['enableCommand'](_0x1ed238,(_0x133143,_0x158d66)=>{const _0x6e3b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ed238,_0x6e3b6,this['tableCellProperties'],'tableCellProperties',_0x133143,_0x158d66);});_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x138b8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2d35b6,_0x4007cf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2d35b6,_0x4007cf)),_0x138b8b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x138b8b['descriptionFactory']['registerDescriptionCallback'](_0x2c0a66=>this['handleSuggestionDescription'](_0x2c0a66));}['_handlePropertyChange'](_0x49a287,_0x1f0444,_0x4fc05a,_0x308275,_0x3a8383,_0x3f4b16){const _0x7f14aa=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3f4b16['batch'],()=>{for(const _0x3bf568 of _0x1f0444){if(this['_getSuggestion'](_0x3bf568,_0x308275))_0x3a8383(_0x3f4b16);else{const _0x195343={};for(const _0x21a598 of _0x4fc05a){const _0x2277c0=_0x3bf568['getAttribute'](_0x21a598);void 0x0!==_0x2277c0&&(_0x195343[_0x21a598]=_0x2277c0);}_0x3a8383(_0x3f4b16),_0x7f14aa['markBlockFormat'](_0x3bf568,{'commandParams':[_0x195343]},[],_0x308275);}}});}['handleDiscardAction'](_0x275b2e,_0x47863a,_0x524ab5){const _0x4409a9=_0x47863a[0x0]['start']['nodeAfter'],_0x22c4ec=_0x524ab5['commandParams'][0x0];this['editor']['model']['change'](_0x2e5547=>{for(const _0x2d3280 of _0x275b2e)void 0x0!==_0x22c4ec[_0x2d3280]?_0x2e5547['setAttribute'](_0x2d3280,_0x22c4ec[_0x2d3280],_0x4409a9):_0x2e5547['removeAttribute'](_0x2d3280,_0x4409a9);});}['handleSuggestionDescription'](_0x21a3ba){if(_0x21a3ba['data'])switch(_0x21a3ba['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x51ab25,_0x1580df){const _0x4fa2cf=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x48743e of _0x4fa2cf['getSuggestions']({'skipNotAttached':!0x0})){const _0x174ecd=_0x48743e['getContainedElement']();if(_0x48743e['subType']===_0x1580df&&_0x174ecd===_0x51ab25)return _0x48743e;}return null;}}const m='$elementName';class p extends _0x3870c0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19b2a6,_0x691f6b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5773de){super(_0x5773de),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x64127b,_0x34a903,_0x5e604a,_0x2511f8)=>{this['_model']['change'](()=>{for(const _0x1d701f of[..._0x2511f8,..._0x5e604a])this['_model']['markers']['has'](_0x1d701f)&&_0x5773de['editing']['reconvertMarker'](_0x1d701f);});}),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']=_0x5773de['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5773de['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5773de['config']['get']('trackChanges.trackFormatChanges'),_0x5773de['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5773de['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5773de,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c1c2b=this['editor'],_0x5e3850=(_0x2fb71e,_0x466bfd)=>{if('attribute'!=_0x2fb71e)return'ck-suggestion-marker-'+_0x2fb71e;const _0x2a4615=_0x466bfd['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a4615)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c1c2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc10d82=>{const {id:_0x42b50c,authorId:_0x5a8cb2,type:_0x1c9d66,subType:_0x80d127}=this['_splitMarkerName'](_0xc10d82['markerName']),_0x2e7797=['ck-suggestion-marker',_0x5e3850(_0x1c9d66,_0x80d127)];let _0x573002=0xbb8;return this['activeMarkers']['includes'](_0xc10d82['markerName'])&&(_0x2e7797['push']('ck-suggestion-marker--active'),_0x573002=0xbc2),'deletion'==_0x1c9d66&&(_0x573002+=0x5),{'classes':_0x2e7797,'attributes':{'data-suggestion':_0x42b50c,'data-author-id':_0x5a8cb2},'priority':_0x573002};}}),_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x1b0264=>{_0x1b0264['on']('addMarker:suggestion',(_0x359610,_0x551a06,_0x55e142)=>{if(!_0x55e142['options']['showSuggestionHighlights'])return;const _0x276db3=_0x551a06['item'];if(!_0x276db3)return;const _0x1bf145=_0x55e142['mapper']['toViewElement'](_0x276db3);_0x5c1c2b['model']['schema']['isObject'](_0x276db3)&&_0x1bf145&&!_0x1bf145['getCustomProperty']('widget')&&_0x1bf145['is']('containerElement')&&_0x50a07e(_0x1bf145,_0x55e142['writer']);},{'priority':'high'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x46c24e,_0x2788b8)=>{if(!_0x2788b8['options']['showSuggestionHighlights'])return null;const {type:_0x17c0a4,subType:_0x2d82a0}=this['_splitMarkerName'](_0x46c24e['markerName']);return{'classes':['ck-suggestion-marker',_0x5e3850(_0x17c0a4,_0x2d82a0)],'priority':0xbb8};}});const _0x313c9c=({showActiveMarkers:_0x4bec73=!0x0,isAttributeSuggestion:_0x2ca179=!0x1}={})=>(_0x56a64c,_0x481ff2,_0x4ef396)=>{if(!_0x481ff2['item'])return;const {id:_0x12a6f8,authorId:_0x551f73}=this['_splitMarkerName'](_0x481ff2['markerName']);if(_0x2ca179){const _0x4883c5=this['_suggestions']['get'](_0x12a6f8),_0x4bdf71=this['_getAttributeKey'](_0x4883c5);if(!this['_isBlockAttribute'](_0x4bdf71))return;}if(_0x481ff2['item']['is']('selection'))return void _0x4ef396['consumable']['consume'](_0x481ff2['item'],_0x56a64c['name']);const _0x58dfa9=_0x4ef396['mapper']['toViewElement'](_0x481ff2['item']);if(_0x481ff2['item']['is']('element')&&_0x5c1c2b['model']['schema']['isBlock'](_0x481ff2['item'])&&!_0x58dfa9['getCustomProperty']('addHighlight')){_0x4ef396['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x58dfa9),_0x4ef396['writer']['setAttribute']('data-suggestion',_0x12a6f8,_0x58dfa9),_0x4ef396['writer']['setAttribute']('data-author-id',_0x551f73,_0x58dfa9),_0x4ef396['mapper']['bindElementToMarker'](_0x58dfa9,_0x481ff2['markerName']),_0x4bec73&&(this['activeMarkers']['includes'](_0x481ff2['markerName'])?_0x4ef396['writer']['addClass']('ck-suggestion-marker--active',_0x58dfa9):_0x4ef396['writer']['removeClass']('ck-suggestion-marker--active',_0x58dfa9));for(const _0x393392 of _0x5c1c2b['model']['createRangeIn'](_0x481ff2['item'])['getItems']())_0x4ef396['consumable']['consume'](_0x393392,_0x56a64c['name']);_0x4ef396['consumable']['consume'](_0x481ff2['item'],_0x56a64c['name']);}};_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x8e606c=>{_0x8e606c['on']('addMarker:suggestion:formatBlock',(_0x40d018,_0x33706f,_0x27e0e0)=>{_0x27e0e0['options']['showSuggestionHighlights']&&_0x313c9c({'showActiveMarkers':!0x1})(_0x40d018,_0x33706f,_0x27e0e0);},{'priority':'highest'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['add'](_0x54ddb0=>{_0x54ddb0['on']('addMarker:suggestion:attribute',(_0x291836,_0x548fa3,_0x4ffb40)=>{_0x4ffb40['options']['showSuggestionHighlights']&&_0x313c9c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x291836,_0x548fa3,_0x4ffb40);},{'priority':'highest'});}),_0x5c1c2b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1dcb19,_0xa89541)=>_0xa89541['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1dcb19['substr'](0xb)}}),_0x5c1c2b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42b557,{writer:_0x11c30f})=>{let _0x954004='suggestion:'+_0x42b557['getAttribute']('suggestion-type')+':'+_0x42b557['getAttribute']('id');return _0x42b557['getAttribute']('marker-count')&&(_0x954004+=':'+_0x42b557['getAttribute']('marker-count')),_0x11c30f['createElement']('$marker',{'data-name':_0x954004});}}),_0x5c1c2b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x25f6c3=>{_0x25f6c3['on']('addMarker:suggestion:formatBlock',_0x313c9c(),{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0xd582b1=>{_0xd582b1['on']('addMarker:suggestion:attribute',_0x313c9c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x25ccd7=>{_0x25ccd7['on']('removeMarker:suggestion:formatBlock',(_0x1fba35,_0x5a85a8,_0x5ef2a2)=>{const _0x13a656=_0x5ef2a2['mapper']['markerNameToElements'](_0x5a85a8['markerName']);if(_0x13a656){for(const _0x514c6a of _0x13a656)_0x514c6a['getCustomProperty']('addHighlight')||(_0x5ef2a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x514c6a),_0x5ef2a2['writer']['removeAttribute']('data-suggestion',_0x514c6a),_0x5ef2a2['writer']['removeAttribute']('data-author-id',_0x514c6a),_0x5ef2a2['mapper']['unbindElementFromMarkerName'](_0x514c6a,_0x5a85a8['markerName']));}},{'priority':'high'});}),_0x5c1c2b['conversion']['for']('editingDowncast')['add'](_0x7629ef=>{_0x7629ef['on']('removeMarker:suggestion:attribute',(_0x141658,_0x51dca7,_0x315ea9)=>{const _0xa4ad90=_0x315ea9['mapper']['markerNameToElements'](_0x51dca7['markerName']);if(!_0xa4ad90)return;const {id:_0x463890}=this['_splitMarkerName'](_0x51dca7['markerName']),_0xc9cbec=this['_suggestions']['get'](_0x463890),_0x1b77e2=this['_getAttributeKey'](_0xc9cbec);if(this['_isBlockAttribute'](_0x1b77e2)){for(const _0x2da000 of _0xa4ad90)_0x2da000['getCustomProperty']('addHighlight')||(_0x315ea9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2da000),_0x315ea9['writer']['removeAttribute']('data-suggestion',_0x2da000),_0x315ea9['writer']['removeAttribute']('data-author-id',_0x2da000),_0x315ea9['mapper']['unbindElementFromMarkerName'](_0x2da000,_0x51dca7['markerName']));}},{'priority':'high'});}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x27f0ce=>{let _0x18f337=!0x1;const _0x28a821=Array['from'](_0x5c1c2b['model']['document']['differ']['getChangedMarkers']()),_0xedd80e=new Set();for(const {name:_0x3a1593,data:_0x47a22c}of _0x28a821){const {group:_0x276415,type:_0x2b55bd,subType:_0x3fa116,id:_0x20bb3d}=this['_splitMarkerName'](_0x3a1593);if('suggestion'!==_0x276415)continue;const _0x3fa5a1=this['_suggestions']['get'](_0x20bb3d);if(null!=_0x47a22c['newRange']){'formatInline'==_0x2b55bd&&(_0x18f337=_0x18f337||Lt(_0x47a22c['newRange'],_0x3a1593,_0x27f0ce,_0x5c1c2b['model']['schema']));const _0x3ec6c3='attribute'==_0x2b55bd&&this['_isBlockAttribute'](_0x3fa116['split']('|')[0x0]);if(_0x47a22c['newRange']['isCollapsed']||'$graveyard'==_0x47a22c['newRange']['root']['rootName']||'formatBlock'==_0x2b55bd&&!Ht(_0x47a22c['newRange'])||_0x3ec6c3&&!Ht(_0x47a22c['newRange'])||'deletion'==_0x2b55bd&&!(!Ft(_0x412ddf=_0x47a22c['newRange'])&&!function(_0x25e51f){return _0x25e51f['start']['parent']==_0x25e51f['end']['nodeBefore']&&_0x25e51f['start']['isAtEnd'];}(_0x412ddf)))_0x27f0ce['removeMarker'](_0x3a1593),_0x18f337=!0x0;else{if(!_0x3fa5a1||!_0x3fa5a1['isInContent'])continue;if(_0x47a22c['newRange']&&_0x47a22c['oldRange']&&_0x47a22c['newRange']['isEqual'](_0x47a22c['oldRange']))continue;_0xedd80e['add'](_0x3fa5a1);}}}var _0x412ddf;return _0xedd80e['size']>0x0&&(_0x18f337=!!this['_joinWithAdjacentSuggestions'](_0xedd80e)||_0x18f337),_0x18f337;}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x6a850e=>{let _0x55c104=!0x1;for(const _0x8bb96a of _0x5c1c2b['model']['document']['differ']['getChanges']())if('insert'==_0x8bb96a['type'])for(const _0x279dbb of this['_suggestions']['values']()){if(_0x279dbb['isMultiRange']||!_0x279dbb['isInContent'])continue;const _0x4b132c='formatBlock'==_0x279dbb['type'],_0x5b7200=this['_getAttributeKey'](_0x279dbb),_0x16dbcf=_0x5b7200&&this['_isBlockAttribute'](_0x5b7200);if(!_0x4b132c&&!_0x16dbcf)continue;const _0x368dd2=_0x279dbb['getFirstRange']();if(_0x368dd2['start']['parent']!=_0x368dd2['end']['parent']&&!_0x368dd2['end']['isAtEnd']){const _0x418e3b=_0x5c1c2b['model']['createPositionAt'](_0x368dd2['start']['nodeAfter'],'end'),_0x5d2341=_0x5c1c2b['model']['createRange'](_0x368dd2['start'],_0x418e3b);_0x6a850e['updateMarker'](_0x279dbb['getFirstMarker'](),{'range':_0x5d2341}),_0x55c104=!0x0;}}return _0x55c104;}),_0x5c1c2b['model']['document']['registerPostFixer'](_0x4323ab=>this['_processAttributeChanges'](_0x4323ab)),_0x5c1c2b['model']['document']['registerPostFixer'](_0x3bf8e0=>!_0x3bf8e0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bf8e0)),_0x5c1c2b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c1c2b['model']['document']['on']('change:data',(_0x200401,_0x5216b8)=>{if(!_0x5216b8['isLocal']||_0x5216b8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f9ad8=_0x5c1c2b['model']['document']['differ']['getChanges']();if(0x0==_0x1f9ad8['length'])return;const _0x19123f=[],_0x1b0492=_0x1f9ad8['filter'](_0x41a381=>'attribute'==_0x41a381['type']),_0x19e089=_0x1f9ad8['filter'](_0x31ed77=>'insert'==_0x31ed77['type']&&'$text'!=_0x31ed77['name']);for(const _0xe79d1f of _0x1b0492)this['_isRegisteredAttribute'](_0xe79d1f['attributeKey'])&&_0x19123f['push']({'key':_0xe79d1f['attributeKey'],'newValue':_0xe79d1f['attributeNewValue'],'oldValue':_0xe79d1f['attributeOldValue'],'range':qt(_0xe79d1f['range'],_0x5c1c2b['model'])});for(const _0x18e4ba of _0x19e089){if('rename'!=_0x18e4ba['action']&&'refresh'!=_0x18e4ba['action'])continue;const _0xd68b47=zt(_0x18e4ba['position']['nodeAfter'],_0x5c1c2b['model']),_0x5e0792=_0x18e4ba['before'];'rename'==_0x18e4ba['action']&&_0x19123f['push']({'key':m,'newValue':_0x18e4ba['name'],'oldValue':_0x5e0792['name'],'range':_0xd68b47});for(const [_0x1820b9,_0x28df00]of _0x5e0792['attributes']){if(!this['_isRegisteredAttribute'](_0x1820b9))continue;const _0x2aec5c=_0x18e4ba['attributes']['get'](_0x1820b9);_0x28df00!==_0x2aec5c&&_0x19123f['push']({'key':_0x1820b9,'newValue':_0x2aec5c,'oldValue':_0x28df00,'range':_0xd68b47});}for(const [_0x243e75,_0x5c1d4e]of _0x18e4ba['attributes'])this['_isRegisteredAttribute'](_0x243e75)&&(_0x5e0792['attributes']['has'](_0x243e75)||_0x19123f['push']({'key':_0x243e75,'newValue':_0x5c1d4e,'oldValue':null,'range':_0xd68b47}));}0x0!=_0x19123f['length']&&_0x5c1c2b['model']['enqueueChange'](_0x5216b8,_0x379cca=>{const _0x13373a=_0x53814c();for(const {range:_0x5093c0,key:_0x2d582c,oldValue:_0x435412,newValue:_0x1694fa}of _0x19123f)this['markAttributeChange'](_0x5093c0,_0x2d582c,_0x435412,_0x1694fa,{'groupId':_0x13373a});this['_reduceExistingSuggestions'](_0x379cca,_0x19123f);});},{'priority':'lowest'}),_0x5c1c2b['model']['markers']['on']('update:suggestion',(_0x101644,_0x8cc9a8,_0x15bf0e)=>{if(null==_0x15bf0e){const {id:_0x4e0dcc}=this['_splitMarkerName'](_0x8cc9a8['name']),_0xafccea=this['_suggestions']['get'](_0x4e0dcc);_0xafccea&&_0xafccea['addMarkerName'](_0x8cc9a8['name']);}}),_0x5c1c2b['model']['document']['on']('change:data',()=>{const _0x39c77d=Array['from'](_0x5c1c2b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x44e8db=>'suggestion'===this['_splitMarkerName'](_0x44e8db['name'])['group']);if(0x0===_0x39c77d['length'])return;_0x39c77d['sort']((_0x2cfec5,_0x29d94a)=>{const _0x2c716c=_0x2cfec5['data']['oldRange'],_0x162b30=_0x29d94a['data']['oldRange'];return null===_0x2c716c&&null===_0x162b30?0x0:null===_0x2c716c&&null!==_0x162b30?-0x1:null!==_0x2c716c&&null===_0x162b30?0x1:_0x2c716c['start']['isBefore'](_0x162b30['start'])?-0x1:0x1;});const _0x56c073=new Set(),_0x3e5b44=new Set();for(const {name:_0x174bb0,data:_0x1ebdf3}of _0x39c77d){const {id:_0x41842b}=this['_splitMarkerName'](_0x174bb0);if(null===_0x1ebdf3['oldRange']){const _0x1a4e42=this['_handleNewSuggestionMarker'](_0x174bb0);_0x3e5b44['add'](_0x1a4e42);}else{const _0x12d848=this['_suggestions']['get'](_0x41842b);null!==_0x1ebdf3['newRange']||_0x12d848['isInContent']?(_0x56c073['add'](_0x12d848['head']),_0x3e5b44['add'](_0x12d848)):this['_removeSuggestion'](_0x12d848);}}_0x3e5b44['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e5b44);for(const _0x21dcad of _0x56c073)this['fire']('suggestionChanged',_0x21dcad);}),_0x5c1c2b['model']['on']('applyOperation',(_0x3456be,_0x1fc2b4)=>{const _0x2340ff=_0x1fc2b4[0x0];if(!this['_suggestions']['size'])return;if(!_0x2340ff['isDocumentOperation'])return;if(_0x2340ff['batch']['isUndo']||!_0x2340ff['batch']['isLocal'])return;let _0x166c50,_0x5032e4;switch(_0x2340ff['type']){case'insert':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['position']),_0x5032e4=_0x166c50['getShiftedBy'](_0x2340ff['howMany']);break;case'split':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['splitPosition']),_0x5032e4=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['moveTargetPosition']);break;case'move':_0x166c50=_0x5c1c2b['model']['createPositionAt'](_0x2340ff['targetPosition']),_0x5032e4=_0x166c50['getShiftedBy'](_0x2340ff['howMany']);break;default:return;}const _0xc8bf50=_0x5c1c2b['model']['createRange'](_0x166c50,_0x5032e4);_0x5c1c2b['model']['change'](()=>{for(const {suggestion:_0x40bae9,meta:_0xb08a02}of this['_findSuggestions'](_0xc8bf50)){if(_0x40bae9['isMultiRange'])continue;if('formatInline'==_0x40bae9['type'])continue;const _0x2f626e=this['_getAttributeKey'](_0x40bae9);if(_0x2f626e&&this['_isBlockAttribute'](_0x2f626e)&&'split'!=_0x2340ff['type'])continue;const _0x3e0a65=_0x40bae9['data']&&_0x40bae9['data']['multipleBlocks'];('formatBlock'!=_0x40bae9['type']||'split'==_0x2340ff['type']&&!_0x3e0a65)&&(_0xb08a02['containsRangeInObject']||'insertion'==_0x40bae9['type']&&_0xb08a02['isOwn']||_0x40bae9['getFirstRange']()['containsRange'](_0xc8bf50)&&this['_breakSuggestionMarker'](_0x40bae9,_0x166c50,_0x5032e4));}});},{'priority':'lowest'}),_0x5c1c2b['model']['on']('deleteContent',(_0xa2a551,_0x344eb7)=>{const _0x2e251a=_0x344eb7[0x0],_0x4720ac=_0x344eb7[0x1];if(_0x4720ac&&_0x4720ac['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e251a['isCollapsed'])return;const _0x4015b4=_0x5c1c2b['model']['schema'],{start:_0x29305f,end:_0x13da46}=_0x2e251a['getFirstRange'](),_0x35ff3d=_0x29305f['nodeAfter']&&_0x4015b4['isLimit'](_0x29305f['nodeAfter'])?null:_0x4015b4['getNearestSelectionRange'](_0x29305f,'forward'),_0x2b7d29=_0x13da46['nodeBefore']&&_0x4015b4['isLimit'](_0x13da46['nodeBefore'])?null:_0x4015b4['getNearestSelectionRange'](_0x13da46,'backward'),_0x333c9f=_0x5c1c2b['model']['createRange'](_0x35ff3d?_0x35ff3d['start']:_0x29305f,_0x2b7d29?_0x2b7d29['end']:_0x13da46);_0x5c1c2b['model']['change'](_0x5134ee=>{this['markDeletion'](_0x333c9f);const _0xc9c559=_0x5c1c2b['model']['schema']['getNearestSelectionRange'](_0x333c9f['start']);_0x2e251a['is']('documentSelection')?_0x5134ee['setSelection'](_0xc9c559):_0x2e251a['setTo'](_0xc9c559);}),_0xa2a551['stop']();},{'priority':_0x14f8c3['normal']+0xa}),_0x5c1c2b['model']['on']('insertContent',(_0x1ffcbd,_0x132345)=>{const _0x153c12=_0x132345[_0x132345['length']-0x1];_0x153c12&&_0x153c12['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c1c2b['model']['change'](()=>{let _0x4c1ce2=_0x5c1c2b['model']['insertContent'](_0x132345[0x0],_0x132345[0x1],_0x132345[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c1ce2)return;_0x1ffcbd['return']=_0x4c1ce2['clone']();const _0x20ee9f=_0x4c1ce2['end']['nodeBefore'],_0x45809d=_0x5c1c2b['model']['schema'];_0x20ee9f&&_0x45809d['isBlock'](_0x20ee9f)&&!_0x45809d['isObject'](_0x20ee9f)&&(_0x4c1ce2=_0x5c1c2b['model']['createRange'](_0x4c1ce2['start'],_0x5c1c2b['model']['createPositionAt'](_0x20ee9f,'end'))),this['markInsertion'](_0x4c1ce2);}),_0x1ffcbd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf4635d=new O(_0x5c1c2b,this['_suggestions']);_0x5c1c2b['commands']['add']('acceptSuggestion',_0xf4635d),this['enableCommand']('acceptSuggestion');const _0x545092=new R(_0x5c1c2b,this['_suggestions']);_0x5c1c2b['commands']['add']('discardSuggestion',_0x545092),this['enableCommand']('discardSuggestion'),_0x5c1c2b['commands']['add']('acceptAllSuggestions',new x(_0x5c1c2b,_0xf4635d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c1c2b['commands']['add']('discardAllSuggestions',new x(_0x5c1c2b,_0x545092,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c1c2b['commands']['add']('acceptSelectedSuggestions',new E(_0x5c1c2b,_0xf4635d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c1c2b['commands']['add']('discardSelectedSuggestions',new E(_0x5c1c2b,_0x545092,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3a5a96=_0x5c1c2b['plugins']['get']('CommentsRepository');this['listenTo'](_0x3a5a96,'addComment',(_0x56e4f0,{threadId:_0xa9045f})=>{const _0x50195e=this['_suggestions']['get'](_0xa9045f);_0x50195e&&_0x50195e['commentThread']&&0x1===_0x50195e['commentThread']['length']&&this['_updateSuggestionData'](_0xa9045f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3a5a96,'removeComment',(_0x2d5a90,{threadId:_0x523906})=>{const _0x459d5c=this['_suggestions']['get'](_0x523906);_0x459d5c&&_0x459d5c['commentThread']&&!_0x459d5c['commentThread']['length']&&this['_updateSuggestionData'](_0x523906,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x514653){const _0x31b188=_0xf0ddf2([0x75,0x67,0x61,0x4c,0x52,0x71,0x31,0x58,0x48,0x62,0x4e,0x44,0x46,0x76,0x68,0x79,0x6e,0x54,0x39,0x32,0x57,0x69,0x37,0x34,0x4a,0x70,0x6c,0x6b,0x35,0x4f,0x63,0x41,0x7a,0x33,0x47,0x53,0x64,0x50,0x55,0x49,0x4d,0x38,0x43,0x5a,0x30,0x6f,0x73,0x65,0x42,0x56,0x4b,0x78,0x72,0x74,0x36,0x6a,0x6d,0x59,0x66,0x51,0x45,0x77]),_0x1ad0c0=0x4b0a97e,_0x482a19=0x4b7f6ee^_0x1ad0c0,_0xf3809b=window[_0xf0ddf2([0x44,0x61,0x74,0x65])][_0xf0ddf2([0x6e,0x6f,0x77])](),_0x549eba=_0x514653[_0xf0ddf2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17ba7b=new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0fd5=>{_0x549eba[_0xf0ddf2([0x6f,0x6e,0x63,0x65])](_0xf0ddf2([0x72,0x65,0x61,0x64,0x79]),_0x1a0fd5);}),_0x411a8e={[_0xf0ddf2([0x6b,0x74,0x79])]:_0xf0ddf2([0x45,0x43]),[_0xf0ddf2([0x75,0x73,0x65])]:_0xf0ddf2([0x73,0x69,0x67]),[_0xf0ddf2([0x63,0x72,0x76])]:_0xf0ddf2([0x50,0x2d,0x32,0x35,0x36]),[_0xf0ddf2([0x78])]:_0xf0ddf2([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]),[_0xf0ddf2([0x79])]:_0xf0ddf2([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]),[_0xf0ddf2([0x61,0x6c,0x67])]:_0xf0ddf2([0x45,0x53,0x32,0x35,0x36])},_0x21b5e2=_0x549eba[_0xf0ddf2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf0ddf2([0x67,0x65,0x74])](_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24219c(){let _0x1cc45e,_0xb90be8=null,_0x39e671=null;try{if(_0x21b5e2==_0xf0ddf2([0x47,0x50,0x4c]))return _0xf0ddf2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cc45e=_0x53c03b(),!_0x1cc45e)return _0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cc45e[_0xf0ddf2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39e671=_0xb2f8b0(_0x1cc45e[_0xf0ddf2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cc45e[_0xf0ddf2([0x6a,0x74,0x69])])),await _0x44ad6d()?_0x45056b()?_0x4b343c()?_0xf0ddf2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbba3af()?(_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf0ddf2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb90be8=_0x40ee7c(_0xf0ddf2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf0ddf2([0x74,0x72,0x69,0x61,0x6c])&&(_0xb90be8=_0x40ee7c(_0xf0ddf2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b052a()):_0xf0ddf2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf0ddf2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39dfb9){return _0xf0ddf2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b343c(){const _0x5a822d=[_0xf0ddf2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf0ddf2([0x74,0x72,0x69,0x61,0x6c])][_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf3809b/0x3e8:0xe10*_0x482a19;return _0x1cc45e[_0xf0ddf2([0x65,0x78,0x70])]<_0x5a822d;}function _0x45056b(){const _0x13bbb4=_0x1cc45e[_0xf0ddf2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13bbb4)return!0x1;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x2a])))return!0x0;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x54,0x43])))return!0x0;if(_0x13bbb4[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x52,0x54,0x43]))){if(_0x4ce39c())return!0x0;if(_0x2f871d()||_0x3f8778())return!0x0;}return!0x1;}function _0xbba3af(){const _0x1002a8=_0x1cc45e[_0xf0ddf2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1002a8||0x0==_0x1002a8[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ec339}=new URL(window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1002a8[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ec339))return!0x0;const _0x11a52d=_0x1ec339[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e]));return _0x1002a8[_0xf0ddf2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36da7e=>_0x36da7e[_0xf0ddf2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0ddf2([0x2a])))[_0xf0ddf2([0x6d,0x61,0x70])](_0x2fe042=>_0x2fe042[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e])))[_0xf0ddf2([0x73,0x6f,0x6d,0x65])](_0x24123d=>_0x11a52d[_0xf0ddf2([0x65,0x76,0x65,0x72,0x79])]((_0x3d2fd5,_0x3f0569)=>_0x24123d[_0x3f0569]===_0x3d2fd5||_0x24123d[_0x3f0569]===_0xf0ddf2([0x2a])));}function _0x2b052a(){return _0xb90be8&&_0x39e671?new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a3a3,_0x5f2d45)=>{_0xb90be8[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x23a3a3,_0x5f2d45),_0x39e671[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x136778=>{_0x136778!=_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])&&_0x23a3a3(_0x136778);},_0x5f2d45);}):_0xb90be8||_0x39e671||_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb2f8b0(_0x149a3e,_0x9f9fc4){return new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x174d73=>{if(_0x47bd3d())return _0x174d73(_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]));_0x1c4528(),_0x549eba[_0xf0ddf2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x303cdc=!0x1;const _0x37a265=_0x53814c();function _0x215eaf(_0x8a3e50){return!!_0x8a3e50&&(typeof _0x8a3e50===_0xf0ddf2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8a3e50===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8a3e50[_0xf0ddf2([0x74,0x68,0x65,0x6e])]===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8a3e50[_0xf0ddf2([0x63,0x61,0x74,0x63,0x68])]===_0xf0ddf2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x367d1b(_0x2e3aac){_0x18bb55(_0x2e3aac)[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x1b2987=>{if(!_0x1b2987||_0x1b2987[_0xf0ddf2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf0ddf2([0x6f,0x6b]))return _0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47b771(_0x1aab15(_0x37a265+_0x9f9fc4))!=_0x1b2987[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64]);})[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x208652=>(_0x4dfeb9(),_0x208652),()=>{const _0x51e3e9=_0x55f95b();return null==_0x51e3e9?(_0x4dfeb9(),_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])):_0xf0ddf2(_0xf3809b-_0x51e3e9>(0x20bc2d7e^_0x1ad0c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x174d73)[_0xf0ddf2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59877a=0x48647fe^_0x1ad0c0;function _0x4dfeb9(){const _0x57e7d0=_0xf0ddf2([0x6c,0x6c,0x63,0x74,0x2d])+_0x47b771(_0x1aab15(_0x149a3e)),_0x2c09d=_0x3eb23e(_0x47b771(window[_0xf0ddf2([0x4d,0x61,0x74,0x68])][_0xf0ddf2([0x63,0x65,0x69,0x6c])](_0xf3809b/_0x59877a)));window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf0ddf2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57e7d0,_0x2c09d);}function _0x55f95b(){const _0x33a79f=_0xf0ddf2([0x6c,0x6c,0x63,0x74,0x2d])+_0x47b771(_0x1aab15(_0x149a3e)),_0x3e8f8c=window[_0xf0ddf2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf0ddf2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33a79f);return _0x3e8f8c?window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3eb23e(_0x3e8f8c),0x10)*_0x59877a:null;}function _0x18bb55(_0x8627a1){return new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d2c21,_0x443c13)=>{_0x8627a1[_0xf0ddf2([0x74,0x68,0x65,0x6e])](_0x4d2c21,_0x443c13),window[_0xf0ddf2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x443c13,0x4b17dbe^_0x1ad0c0);});}}_0x549eba[_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a1b55,_0x80fc91)=>{if(_0x80fc91[0x0]!=_0x149a3e)return _0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x80fc91[0x1]={..._0x80fc91[0x1],[_0xf0ddf2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37a265};},{[_0xf0ddf2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf0ddf2([0x68,0x69,0x67,0x68])}),_0x549eba[_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x128145=>{_0x215eaf(_0x128145[_0xf0ddf2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x303cdc=!0x0,_0x367d1b(_0x128145[_0xf0ddf2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf0ddf2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf0ddf2([0x6c,0x6f,0x77])}),_0x17ba7b[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>{_0x303cdc||_0x174d73(_0xf0ddf2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47bd3d(){return _0x549eba[_0xf0ddf2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf0ddf2([0x76,0x69,0x65,0x77])][_0xf0ddf2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf0ddf2([0x61,0x75,0x74,0x6f]);}function _0x1c4528(){_0x549eba[_0xf0ddf2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf0ddf2([0x76,0x69,0x65,0x77])][_0xf0ddf2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf0ddf2([0x61,0x75,0x74,0x6f]);}}function _0x40ee7c(_0x57c036){const _0x1a8038=[new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c28db=>setTimeout(_0x2c28db,0x4b997b2^_0x1ad0c0)),_0x17ba7b[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e432=>{let _0x5d35e8=0x0;_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x6f,0x6e])](_0xf0ddf2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a35c1,_0x58f6fc)=>{_0x58f6fc[0x0][_0xf0ddf2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d35e8++,_0x5d35e8==(0x4b0a886^_0x1ad0c0)&&(_0x21e432(),_0x5a35c1[_0xf0ddf2([0x6f,0x66,0x66])]());});}))];return window[_0xf0ddf2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf0ddf2([0x72,0x61,0x63,0x65])](_0x1a8038)[_0xf0ddf2([0x74,0x68,0x65,0x6e])](()=>_0x57c036);}async function _0x2220ff(){await _0x17ba7b,_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd8a9,_0x549eba[_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c])][_0xf0ddf2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd8a9,_0x549eba[_0xf0ddf2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf0ddf2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ce39c(){return _0x558f58(_0xf0ddf2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xca5e28(_0xf0ddf2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf0ddf2([0x73,0x74,0x61,0x74,0x65])]==_0xf0ddf2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f871d(){return _0x558f58(_0xf0ddf2([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 _0x3f8778(){return _0x558f58(_0xf0ddf2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x754961(_0x4c31b2){const _0x24596b=_0x1aa8d4();_0x549eba[_0x24596b]=_0xf0ddf2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c31b2,_0x4c31b2!=_0xf0ddf2([0x56,0x61,0x6c,0x69,0x64])&&_0x2220ff();}function _0x1aa8d4(){const _0x2ced8e=window[_0xf0ddf2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf0ddf2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf0ddf2([0x6e,0x6f,0x77])]())[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf0ddf2([0x2e]),'');let _0x2c03e0=_0xf0ddf2([0x75]);for(let _0x2bcaeb=0x0;_0x2bcaeb<_0x2ced8e[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bcaeb+=0x2){let _0x2c9726=window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ced8e[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bcaeb,_0x2bcaeb+0x2));_0x2c9726>=_0x31b188[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c9726-=_0x31b188[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c03e0+=_0x31b188[_0x2c9726];}return _0x2c03e0;}function _0x53c03b(){const _0x4b48c8=_0x21b5e2[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e]));if(0x3!=_0x4b48c8[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37fd3c(_0x4b48c8[0x1]);function _0x37fd3c(_0x12a118){const _0x3226a2=_0x9d916(_0x12a118);return _0x3226a2&&_0x3644ce()?_0x3226a2:null;function _0x3644ce(){const _0x5dc88a=_0x3226a2[_0xf0ddf2([0x6a,0x74,0x69])],_0xabde56=window[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc88a[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc88a[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34a3a0={..._0x3226a2,[_0xf0ddf2([0x6a,0x74,0x69])]:_0x5dc88a[_0xf0ddf2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc88a[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34a3a0[_0xf0ddf2([0x76,0x63])],_0x1aab15(_0x34a3a0)==_0xabde56;}}}async function _0x44ad6d(){let _0x35db1e=!0x0;try{const _0x45e099=_0x21b5e2[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])](_0xf0ddf2([0x2e])),[_0x2051fc,_0x378dd9,_0x181444]=_0x45e099;return _0x3f4f39(_0x2051fc),await _0xf9b682(_0x2051fc,_0x378dd9,_0x181444),_0x35db1e;}catch(_0x3c226c){return!0x1;}function _0x3f4f39(_0x43a123){const _0x554e26=_0x9d916(_0x43a123);_0x554e26&&_0x554e26[_0xf0ddf2([0x61,0x6c,0x67])]==_0xf0ddf2([0x45,0x53,0x32,0x35,0x36])||(_0x35db1e=!0x1);}async function _0xf9b682(_0x5ef0dc,_0x94f706,_0x37a7a4){const _0x1e994f=window[_0xf0ddf2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf0ddf2([0x66,0x72,0x6f,0x6d])](_0x5ae64e(_0x37a7a4),_0x5983a8=>_0x5983a8[_0xf0ddf2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4777e9=new window[(_0xf0ddf2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf0ddf2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ef0dc+_0xf0ddf2([0x2e])+_0x94f706),_0x3e5149=window[_0xf0ddf2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf0ddf2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e5149)return;const _0x11dd5a=await _0x3e5149[_0xf0ddf2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf0ddf2([0x6a,0x77,0x6b]),_0x411a8e,{[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x45,0x43,0x44,0x53,0x41]),[_0xf0ddf2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf0ddf2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e5149[_0xf0ddf2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x45,0x43,0x44,0x53,0x41]),[_0xf0ddf2([0x68,0x61,0x73,0x68])]:{[_0xf0ddf2([0x6e,0x61,0x6d,0x65])]:_0xf0ddf2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11dd5a,_0x1e994f,_0x4777e9)||(_0x35db1e=!0x1);}}function _0x9d916(_0x50e484){return _0x50e484[_0xf0ddf2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf0ddf2([0x65,0x79]))?JSON[_0xf0ddf2([0x70,0x61,0x72,0x73,0x65])](_0x5ae64e(_0x50e484)):null;}function _0x5ae64e(_0x44e5e5){return window[_0xf0ddf2([0x61,0x74,0x6f,0x62])](_0x44e5e5[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf0ddf2([0x2b]))[_0xf0ddf2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf0ddf2([0x2f])));}function _0x1aab15(_0x335c0f){let _0xfcfd2e=0x1505;function _0x3c1c26(_0x3197ac){for(let _0x13f5d7=0x0;_0x13f5d7<_0x3197ac[_0xf0ddf2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13f5d7++){const _0xff1cf4=_0x3197ac[_0xf0ddf2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13f5d7);_0xfcfd2e=(_0xfcfd2e<<0x5)+_0xfcfd2e+_0xff1cf4,_0xfcfd2e&=_0xfcfd2e;}}function _0x509f2b(_0xf553ea){Array[_0xf0ddf2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf553ea)?_0xf553ea[_0xf0ddf2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x509f2b):_0xf553ea&&typeof _0xf553ea==_0xf0ddf2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf0ddf2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf553ea)[_0xf0ddf2([0x73,0x6f,0x72,0x74])]()[_0xf0ddf2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b5504,_0x19201e])=>{_0x3c1c26(_0x5b5504),_0x509f2b(_0x19201e);}):_0x3c1c26(window[_0xf0ddf2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf553ea));}return _0x509f2b(_0x335c0f),_0xfcfd2e>>>0x0;}function _0x47b771(_0x57be9a){return _0x57be9a[_0xf0ddf2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf0ddf2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf0ddf2([0x30]));}function _0x3eb23e(_0x512193){return _0x512193[_0xf0ddf2([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf0ddf2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf0ddf2([0x6a,0x6f,0x69,0x6e])]('');}function _0x558f58(_0x73241c){return _0x549eba[_0xf0ddf2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf0ddf2([0x68,0x61,0x73])](_0x73241c);}function _0xca5e28(_0x47bb11){return _0x549eba[_0xf0ddf2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf0ddf2([0x67,0x65,0x74])](_0x47bb11);}function _0x5cd8a9(){}function _0xf0ddf2(_0x5a281d){return _0x5a281d['map'](_0xf9bb47=>String['fromCharCode'](_0xf9bb47))['join']('');}_0x754961(await _0x24219c());}(this);}set['adapter'](_0x10ef12){if(this['_adapter'])throw new _0x534bac('track-changes-adapter-already-set',this);this['_adapter']=_0x10ef12;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f31bb=!0x1,toJSON:_0x323c80=!0x1}={}){const _0x124e97=[];for(const _0x540345 of this['_suggestions']['values']())_0x3f31bb&&!_0x540345['isInContent']||_0x124e97['push'](_0x540345);return _0x323c80?_0x124e97['map'](_0x50455c=>_0x50455c['toJSON']()):_0x124e97;}['getSuggestion'](_0x1c86f5){const _0x13ebfa=this['_suggestions']['get'](_0x1c86f5);if(!_0x13ebfa)throw new _0x534bac('track-changes-suggestion-not-found',this);return _0x13ebfa;}['hasSuggestion'](_0x5bf65e){return this['_suggestions']['has'](_0x5bf65e);}['addSuggestionData'](_0x36947f){const {authorId:_0x4ca92e,id:_0x318859,attributes:_0x51a1d3}=_0x36947f,[_0x78d445,_0x3a5849]=_0x36947f['type']['split'](':'),_0x305be8=this['_suggestions']['get'](_0x318859)||this['_createSuggestion'](_0x78d445,_0x3a5849,_0x318859,_0x4ca92e,_0x51a1d3);if(this['_addThreadToSuggestion'](_0x305be8),this['_checkSuggestionCorrectness'](_0x305be8,_0x78d445,_0x3a5849||null,_0x4ca92e),_0x305be8['createdAt']=_0x36947f['createdAt'],_0x305be8['_isDataLoaded']=!0x0,_0x51a1d3&&_0x51a1d3['@external']){const _0x36ae7a=_0x51a1d3['@external'],_0x5be068=this['_getExternalAuthor'](_0x36ae7a['authorName']);_0x305be8['authoredAt']=_0x36ae7a['createdAt'],_0x305be8['author']=_0x5be068,_0x305be8['isExternal']=!0x0;}else _0x305be8['authoredAt']=_0x36947f['createdAt'];switch(_0x36947f['data']&&(_0x305be8['data']=_0x36947f['data']),_0x36947f['attributes']&&(_0x305be8['attributes']=_0x36947f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x305be8['_saved']=!0x0),this['_suggestionState']['get'](_0x305be8)){case'notReady':this['_suggestionState']['set'](_0x305be8,'dataReady');break;case'markerReady':_0x305be8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x305be8])),this['_refreshSuggestionsChain'](new Set([_0x305be8])),this['_suggestionState']['set'](_0x305be8,'ready'),this['fire']('suggestionLoaded',_0x305be8)):this['_suggestionState']['set'](_0x305be8,'removed');}return _0x305be8;}['acceptSuggestion'](_0x4a9357){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42192d of _0x4a9357['getAllAdjacentSuggestions']())_0x42192d['accept']();});});}['discardSuggestion'](_0x238e89){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b1f6d of _0x238e89['getAllAdjacentSuggestions']())_0x2b1f6d['discard']();});});}['enableCommand'](_0x1fb197,_0x36e9e7){const _0x3d5483=this['editor']['commands']['get'](_0x1fb197);if(!_0x3d5483)throw new _0x534bac('track-changes-command-not-found',this,{'commandName':_0x1fb197});if(this['_enabledCommands']['has'](_0x3d5483))throw new _0x534bac('track-changes-enable-command-twice',this,{'commandName':_0x1fb197});this['_enabledCommands']['add'](_0x3d5483),_0x36e9e7&&_0x3d5483['on']('execute',(_0x7c025e,_0xf25f38)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xf25f38['length']>0x0&&_0xf25f38[_0xf25f38['length']-0x1]&&_0xf25f38[_0xf25f38['length']-0x1]['forceDefaultExecution']?_0xf25f38['pop']():(_0x7c025e['return']=_0x36e9e7((..._0x5b8cbe)=>_0x3d5483['execute'](..._0x5b8cbe,{'forceDefaultExecution':!0x0}),..._0xf25f38),_0x7c025e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29e3fb){let _0x51352c,_0x1e6b43;const _0x46cdfd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51352c=_0x29e3fb();}catch(_0x3f7382){_0x1e6b43=_0x3f7382;}return _0x46cdfd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1e6b43&&_0x534bac['rethrowUnexpectedError'](_0x1e6b43,this),_0x51352c;}['markInsertion'](_0x534032,_0x47081b=null,_0x4a8ccd={}){if(_0x534032['isCollapsed'])return null;const _0x50c638=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x438eb6,meta:_0x3ebbbb}of this['_findSuggestions'](_0x534032,'insertion'))if(_0x3ebbbb['isOwn']){if(!_0x3ebbbb['isNextTo']){if(_0x3ebbbb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x438eb6,_0x4a8ccd))continue;return _0x438eb6;}if(Qt(_0x438eb6,_0x4a8ccd))return _0x438eb6;this['_breakSuggestionMarker'](_0x438eb6,_0x534032['start'],_0x534032['end']);break;}if(_0x47081b==_0x438eb6['subType']&&Qt(_0x438eb6,_0x4a8ccd)){const _0x151e66=_0x438eb6['getFirstRange']();return _0x151e66['start']['isEqual'](_0x534032['end'])?this['_setSuggestionRange'](_0x438eb6,this['_model']['createRange'](_0x534032['start'],_0x151e66['end'])):this['_setSuggestionRange'](_0x438eb6,this['_model']['createRange'](_0x151e66['start'],_0x534032['end'])),_0x438eb6;}}const _0x1bcdc3=_0x53814c(),_0x420886=_0x50c638['id'],_0x1b4f83=_0x47081b?'insertion:'+_0x47081b:'insertion',_0x2f83f8=this['_setSuggestionData']({'id':_0x1bcdc3,'type':_0x1b4f83,'createdAt':new Date(),'authorId':_0x420886,'attributes':_0x4a8ccd});return this['_addSuggestionMarker'](_0x1b4f83,_0x1bcdc3,_0x420886,_0x534032),_0x2f83f8;}['markMultiRangeInsertion'](_0x4a4f81,_0x3bc462='multi',_0x43844a={}){const _0x1b8303=this['editor']['plugins']['get']('Users')['me'],_0x538e0d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3bc462,'join');for(const _0x2b78dc of this['getSuggestions']())if(_0x2b78dc['author']['id']==_0x1b8303['id']&&'insertion'==_0x2b78dc['type']&&_0x2b78dc['subType']==_0x3bc462&&Qt(_0x2b78dc,_0x43844a)&&(_0x538e0d(_0x2b78dc['getRanges'](),_0x4a4f81)||_0x538e0d(_0x4a4f81,_0x2b78dc['getRanges']()))){for(const _0x5e1cb9 of _0x4a4f81)_0x2b78dc['addRange'](_0x5e1cb9);return _0x2b78dc;}for(const {suggestion:_0x4246db,meta:_0x37d5d9}of this['_findSuggestions'](_0x4a4f81,'insertion')){if(!_0x37d5d9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x37d5d9['containsRangeInObject'])continue;if(!Qt(_0x4246db,_0x43844a))continue;let _0x28975b=!0x0;for(const _0x1cb761 of _0x4246db['getRanges']())for(const _0x4a84bd of _0x4a4f81)if(!_0x1cb761['containsRange'](_0x4a84bd)){_0x28975b=!0x1;break;}if(_0x28975b)return _0x4246db;}const _0x215313=_0x53814c(),_0x2704d7=_0x1b8303['id'],_0x49a031='insertion:'+_0x3bc462,_0x227e99=this['_setSuggestionData']({'id':_0x215313,'type':_0x49a031,'createdAt':new Date(),'authorId':_0x2704d7,'attributes':_0x43844a});for(const _0x2586d0 of _0x4a4f81)this['_addSuggestionMarker'](_0x49a031,_0x215313,_0x2704d7,_0x2586d0,u['getMultiRangeId']());return _0x227e99;}['markInlineFormat'](_0x420bae,_0x4daff5,_0x1b5355=null,_0x2a71d6={}){if(_0x1b5355=_0x1b5355||Jt(_0x4daff5),_0x420bae['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30194b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b5355,'accept');return this['forceDefaultExecution'](()=>_0x30194b([_0x420bae],_0x4daff5,_0x2a71d6)),null;}const _0x7113ca=this['editor']['plugins']['get']('Users')['me'],_0x2cc0ff=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x156ad9,meta:_0x2b8163}of this['_findSuggestions'](_0x420bae,'insertion'))_0x2b8163['isOwn']&&!_0x2b8163['isInsideObject']&&_0x2cc0ff['push'](..._0x156ad9['getRanges']());}const _0x2c8a09=function(_0x2a317d,_0xd29da3){const _0x3efe42=[];for(const _0x10d047 of _0xd29da3){const _0x363dee=_0x2a317d['getIntersection'](_0x10d047);_0x363dee&&_0x3efe42['push'](_0x363dee);}return _0x3efe42;}(_0x420bae,_0x2cc0ff),_0x96f2a2=function(_0x5a6475,_0x5d5f33){const _0x50e31e=[_0x5a6475];for(const _0xb660c4 of _0x5d5f33){let _0x51e5ce=0x0;for(;_0x51e5ce<_0x50e31e['length'];){const _0x5cfe0a=_0x50e31e[_0x51e5ce]['getDifference'](_0xb660c4);_0x50e31e['splice'](_0x51e5ce,0x1,..._0x5cfe0a),_0x51e5ce+=_0x5cfe0a['length'];}}return _0x50e31e;}(_0x420bae,_0x2cc0ff);_0x2c8a09['length']&&this['_model']['change'](()=>{for(const _0xdd0821 of _0x2c8a09){const _0x340c3a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b5355,'accept');this['forceDefaultExecution'](()=>_0x340c3a([_0xdd0821],_0x4daff5,_0x2a71d6));}});for(const _0x1d5b95 of _0x96f2a2){let _0x22e3db=null,_0x281b55=_0x1d5b95['start'],_0xdcc5fe=_0x1d5b95['end'];for(const {suggestion:_0x149093,meta:_0xac5474}of this['_findSuggestions'](_0x1d5b95,'formatInline')){if(!_0xac5474['isOwn'])continue;if(_0x149093['subType']!=_0x1b5355)continue;if(!Qt(_0x149093,_0x2a71d6))continue;const _0x3680f2=_0x149093['getFirstRange']();if(_0x3680f2['containsRange'](_0x1d5b95,!0x0))return null;_0x281b55=_0x281b55['isBefore'](_0x3680f2['start'])?_0x281b55:_0x3680f2['start'],_0xdcc5fe=_0xdcc5fe['isAfter'](_0x3680f2['end'])?_0xdcc5fe:_0x3680f2['end'],_0x22e3db?_0x3680f2['start']['isBefore'](_0x22e3db['getFirstRange']()['start'])?(_0x22e3db['removeMarkers'](),_0x22e3db=_0x149093):_0x149093['removeMarkers']():_0x22e3db=_0x149093;}const _0x227db3=this['_model']['createRange'](_0x281b55,_0xdcc5fe);if(_0x22e3db)this['_setSuggestionRange'](_0x22e3db,_0x227db3);else{const _0x35110c=_0x53814c(),_0x5f2870=_0x7113ca['id'];this['_setSuggestionData']({'id':_0x35110c,'type':'formatInline:'+_0x1b5355,'data':_0x4daff5,'createdAt':new Date(),'authorId':_0x5f2870,'attributes':_0x2a71d6}),this['_addSuggestionMarker']('formatInline:'+_0x1b5355,_0x35110c,_0x5f2870,_0x227db3);}}return null;}['markBlockFormat'](_0x2b9d21,_0x210329,_0x4603f4=[],_0xf822e5=null,_0x1eeaf4={}){_0x210329['formatGroupId']||(_0x210329['formatGroupId']=_0x210329['commandName']),_0x210329['multipleBlocks']=_0x2b9d21['is']('range'),_0xf822e5=_0xf822e5||Jt(_0x210329);const _0x7d4a95=_0x4603f4['map'](_0x54b5c0=>zt(_0x54b5c0,this['_model'])),_0x5375ca=_0x2b9d21['is']('range')?_0x2b9d21:zt(_0x2b9d21,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4e137b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf822e5,'accept');return this['forceDefaultExecution'](()=>_0x4e137b([_0x5375ca],_0x210329,_0x1eeaf4)),null;}_0x7d4a95['push'](_0x5375ca);let _0x3271d4=!0x0;for(const _0x6f2d9e of _0x7d4a95)if(!this['_rangeIsInLocalUserInsertion'](_0x6f2d9e)){_0x3271d4=!0x1;break;}if(_0x3271d4&&'always'!==this['_trackFormatChanges']){const _0x2ef0b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf822e5,'accept');return this['forceDefaultExecution'](()=>_0x2ef0b5([_0x5375ca],_0x210329,_0x1eeaf4)),null;}let _0x210e06=null,_0x499d89=_0x5375ca['start'],_0x36121b=_0x5375ca['end'];for(const {suggestion:_0x79579d,meta:_0x1c867b}of this['_findSuggestions'](_0x5375ca,'formatBlock')){if(!_0x1c867b['isOwn'])continue;if(_0x1c867b['isNextTo']||_0x1c867b['containsRangeInObject']||_0x1c867b['isInsideObject'])continue;if(_0x79579d['data']['formatGroupId']!=_0x210329['formatGroupId'])continue;if(!Qt(_0x79579d,_0x1eeaf4))continue;const _0x3b28be=_0x79579d['getFirstRange']();if(_0x79579d['subType']==_0xf822e5){if(_0x3b28be['containsRange'](_0x5375ca,!0x0))return null;_0x499d89=_0x499d89['isBefore'](_0x3b28be['start'])?_0x499d89:_0x3b28be['start'],_0x36121b=_0x36121b['isAfter'](_0x3b28be['end'])?_0x36121b:_0x3b28be['end'],_0x210e06?_0x3b28be['start']['isBefore'](_0x210e06['getFirstRange']()['start'])?(_0x210e06['removeMarkers'](),_0x210e06=_0x79579d):_0x79579d['removeMarkers']():_0x210e06=_0x79579d;}else{const _0x3f1bdf=_0x5375ca['getIntersection'](_0x3b28be);this['_cutOutSuggestionMarker'](_0x79579d,_0x3f1bdf);}}const _0x53456b=this['editor']['plugins']['get']('Users')['me'],_0x443f3a=_0x53814c(),_0x39a974=_0x53456b['id'];if(_0x210e06)return this['_setSuggestionRange'](_0x210e06,this['_model']['createRange'](_0x499d89,_0x36121b)),_0x210e06;{const _0x154a51=this['_setSuggestionData']({'id':_0x443f3a,'type':'formatBlock:'+_0xf822e5,'data':_0x210329,'createdAt':new Date(),'authorId':_0x39a974,'attributes':_0x1eeaf4});return this['_addSuggestionMarker']('formatBlock:'+_0xf822e5,_0x443f3a,_0x39a974,this['_model']['createRange'](_0x499d89,_0x36121b)),_0x154a51;}}['markMultiRangeBlockFormat'](_0x275460,_0x8bce0f,_0x348421=[],_0x4c6b8e=null,_0x532b6a={}){_0x8bce0f['formatGroupId']||(_0x8bce0f['formatGroupId']=_0x8bce0f['commandName']);const _0x55b8ee=_0x275460[0x0];_0x8bce0f['multipleBlocks']=_0x55b8ee['is']('range'),_0x4c6b8e=_0x4c6b8e||Jt(_0x8bce0f);const _0x167291=_0x348421['map'](_0xb31df6=>zt(_0xb31df6,this['_model'])),_0x5d2efb=_0x55b8ee['is']('range')?_0x275460:_0x275460['map'](_0x1a7df4=>zt(_0x1a7df4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x41a7cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'accept');return this['forceDefaultExecution'](()=>_0x41a7cd(_0x5d2efb,_0x8bce0f,_0x532b6a)),null;}_0x167291['push'](..._0x5d2efb);let _0x492790=!0x0;for(const _0x559982 of _0x167291)if(!this['_rangeIsInLocalUserInsertion'](_0x559982)){_0x492790=!0x1;break;}if(_0x492790&&'always'!==this['_trackFormatChanges']){const _0x10e6ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'accept');return this['forceDefaultExecution'](()=>_0x10e6ed(_0x5d2efb,_0x8bce0f,_0x532b6a)),null;}const _0xebdbec=this['editor']['plugins']['get']('Users')['me'];for(const _0x14f8a3 of this['getSuggestions']()){if(_0x14f8a3['author']['id']!=_0xebdbec['id'])continue;if('formatBlock'!=_0x14f8a3['type']||_0x14f8a3['data']['formatGroupId']!=_0x8bce0f['formatGroupId'])continue;if(!Qt(_0x14f8a3,_0x532b6a))continue;const _0x3aa544=_0x14f8a3['subType']==_0x4c6b8e;for(let _0x2319d3=0x0;_0x2319d3<_0x5d2efb['length'];_0x2319d3++){const _0x1dc947=_0x5d2efb[_0x2319d3];for(const _0x1d0e5e of _0x14f8a3['getMarkers']()){const _0x32aef8=_0x1d0e5e['getRange']();if(_0x1dc947['isEqual'](_0x32aef8)){_0x3aa544?(_0x5d2efb['splice'](_0x2319d3,0x1),_0x2319d3--):_0x14f8a3['removeMarker'](_0x1d0e5e['name']);break;}}}}if(0x0==_0x5d2efb['length'])return null;const _0x1e26d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c6b8e,'join');for(const _0x34583b of this['getSuggestions']())if(_0x34583b['author']['id']==_0xebdbec['id']&&'formatBlock'==_0x34583b['type']&&_0x34583b['data']['formatGroupId']==_0x8bce0f['formatGroupId']&&_0x34583b['subType']==_0x4c6b8e&&Qt(_0x34583b,_0x532b6a)&&(_0x1e26d9(_0x34583b['getRanges'](),_0x5d2efb)||_0x1e26d9(_0x5d2efb,_0x34583b['getRanges']()))){for(const _0x3937d1 of _0x5d2efb)_0x34583b['addRange'](_0x3937d1);return _0x34583b;}const _0x51d2fb=_0x53814c(),_0x15b287=_0xebdbec['id'],_0x28c137='formatBlock:'+_0x4c6b8e,_0x145c71=this['_setSuggestionData']({'id':_0x51d2fb,'type':_0x28c137,'data':_0x8bce0f,'createdAt':new Date(),'authorId':_0x15b287,'attributes':_0x532b6a});for(const _0x3230c6 of _0x5d2efb)this['_addSuggestionMarker'](_0x28c137,_0x51d2fb,_0x15b287,_0x3230c6,u['getMultiRangeId']());return _0x145c71;}['markDeletion'](_0x5bb0d4,_0x4fbb51=null,_0xe9583e={}){if(_0x5bb0d4['isCollapsed'])return null;const _0x4efe90=this['editor']['plugins']['get']('Users')['me'],_0x2c15c2=new _0x1abeca(_0x5bb0d4['start'],_0x5bb0d4['end']);for(const {suggestion:_0x26d7aa,meta:_0x4890a9}of this['_findSuggestions'](_0x2c15c2,'insertion'))if(_0x4890a9['isOwn']&&!_0x4890a9['isNextTo']){if(_0x26d7aa['isMultiRange']){const _0x1e245c=_0x26d7aa['getRanges']()['filter'](_0x300206=>'$graveyard'!=_0x300206['root']['rootName']);_0x1e245c['every'](_0x4bc180=>_0x2c15c2['containsRange'](_0x4bc180,!0x0))&&_0x26d7aa['discard']();if(_0x1e245c['some'](_0x28b7bb=>_0x28b7bb['containsRange'](_0x2c15c2,!0x0))){const _0x4a3618=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fbb51,'accept');return this['forceDefaultExecution'](()=>_0x4a3618([_0x2c15c2],null,_0xe9583e)),null;}}else{const _0x45a5ff=_0x2c15c2['getIntersection'](_0x26d7aa['getFirstRange']());null!==_0x45a5ff&&_0x26d7aa['_onDiscard']([_0x45a5ff],null,_0xe9583e);}}if(_0x2c15c2['detach'](),_0x2c15c2['isCollapsed']||'$graveyard'==_0x2c15c2['root']['rootName'])return null;let _0x4a3f6b=null,_0xe8ad81=_0x2c15c2['start'],_0x1c6753=_0x2c15c2['end'];const _0x32c23d=this['_findSuggestions'](_0x2c15c2,'deletion');for(const {suggestion:_0x36be9d,meta:_0x273c46}of _0x32c23d){const _0x479ad8=this['_model']['createRange'](_0xe8ad81,_0x1c6753);if(_0x273c46['isOwn']&&(this['_mergeNestedSuggestions']||!_0x273c46['containsRangeInObject']&&!_0x273c46['isInsideObject'])){if(_0x36be9d['isMultiRange']){if(!Qt(_0x36be9d,_0xe9583e))continue;let _0x2e2767=!0x0;for(const _0x5bf66e of _0x36be9d['getRanges']()){if(_0x5bf66e['containsRange'](_0x479ad8,!0x0))return _0x36be9d;_0x479ad8['containsRange'](_0x5bf66e)||(_0x2e2767=!0x1);}_0x2e2767&&_0x36be9d['discard']();}else{const _0x47879f=_0x36be9d['getFirstRange']();if(_0x47879f['containsRange'](_0x479ad8,!0x0))return _0x36be9d;if(!Qt(_0x36be9d,_0xe9583e)){_0x479ad8['containsRange'](_0x47879f)?_0x36be9d['removeMarkers']():_0x47879f['containsPosition'](_0xe8ad81)?_0xe8ad81=_0x47879f['end']:_0x47879f['containsPosition'](_0x1c6753)&&(_0x1c6753=_0x47879f['start']);continue;}_0xe8ad81=_0xe8ad81['isBefore'](_0x47879f['start'])?_0xe8ad81:_0x47879f['start'],_0x1c6753=_0x1c6753['isAfter'](_0x47879f['end'])?_0x1c6753:_0x47879f['end'],_0xe9583e=Object['assign']({},_0x36be9d['attributes']),_0x4a3f6b?_0x47879f['start']['isBefore'](_0x4a3f6b['getFirstRange']()['start'])?(_0x4a3f6b['removeMarkers'](),_0x4a3f6b=_0x36be9d):_0x36be9d['removeMarkers']():_0x4a3f6b=_0x36be9d;}}}if(_0x4a3f6b)return this['_setSuggestionRange'](_0x4a3f6b,this['_model']['createRange'](_0xe8ad81,_0x1c6753)),_0x4a3f6b;{const _0x3ecba2=_0x53814c(),_0x4d3c90=this['_model']['createRange'](_0xe8ad81,_0x1c6753),_0x5268e2=_0x4efe90['id'],_0x4caeb5=_0x4fbb51?'deletion:'+_0x4fbb51:'deletion',_0x129992=this['_setSuggestionData']({'id':_0x3ecba2,'type':_0x4caeb5,'createdAt':new Date(),'authorId':_0x5268e2,'attributes':_0xe9583e});return this['_addSuggestionMarker'](_0x4caeb5,_0x3ecba2,_0x5268e2,_0x4d3c90),_0x129992;}}['markMultiRangeDeletion'](_0x552f7a,_0x53a61c='multi',_0x4fc764={}){const _0x460146=this['editor']['plugins']['get']('Users')['me'],_0x4ceada=_0x552f7a['map'](_0x2b7786=>new _0x1abeca(_0x2b7786['start'],_0x2b7786['end'])),_0x3e933a=new Set();for(const {suggestion:_0x5fff3,meta:_0x2b3f33}of this['_findSuggestions'](_0x4ceada,'insertion'))_0x2b3f33['isOwn']&&!_0x2b3f33['isNextTo']&&_0x3e933a['add'](_0x5fff3);for(const _0x4a4b5d of _0x3e933a)if(_0x4a4b5d['isMultiRange']){const _0x3a4586=_0x4a4b5d['getRanges']();(!_0x4a4b5d['attributes']||!_0x4a4b5d['attributes']['skipNestingCheck'])&&(_0x3a4586['every'](_0x1f3177=>_0x4ceada['some'](_0x4d2846=>_0x4d2846['containsRange'](_0x1f3177,!0x0)))&&_0x4a4b5d['discard']());if(_0x4ceada['every'](_0x1708b6=>_0x3a4586['some'](_0x3978fd=>_0x3978fd['containsRange'](_0x1708b6,!0x0)))){const _0x3e0e05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'accept');return this['forceDefaultExecution'](()=>_0x3e0e05(_0x552f7a,null,_0x4fc764)),null;}}else{const _0x26b601=_0x4a4b5d['getFirstRange']();_0x4ceada['some'](_0x2f0275=>_0x2f0275['containsRange'](_0x26b601,!0x0))&&_0x4a4b5d['discard']();if(_0x4ceada['every'](_0x11f66d=>_0x26b601['containsRange'](_0x11f66d,!0x0))){const _0x2f51e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'accept');return this['forceDefaultExecution'](()=>_0x2f51e5(_0x4ceada,null,_0x4fc764)),null;}}const _0x1ef1ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a61c,'join');let _0x426000=null;for(const _0x2b64d7 of this['getSuggestions']())if(_0x2b64d7['author']['id']==_0x460146['id']&&_0x2b64d7['isInContent']&&'deletion'==_0x2b64d7['type']&&_0x2b64d7['subType']==_0x53a61c&&Qt(_0x2b64d7,_0x4fc764)&&(_0x1ef1ce(_0x2b64d7['getRanges'](),_0x4ceada)||_0x1ef1ce(_0x4ceada,_0x2b64d7['getRanges']()))){if(_0x426000){if(_0x2b64d7['commentThread']&&_0x2b64d7['commentThread']['length'])continue;for(const _0x3a0331 of _0x2b64d7['getRanges']())_0x426000['isIntersectingWithRange'](_0x3a0331)||_0x426000['addRange'](_0x3a0331);_0x2b64d7['removeMarkers']();}else{_0x426000=_0x2b64d7;for(const _0x57eb9c of _0x4ceada)_0x2b64d7['isIntersectingWithRange'](_0x57eb9c)||_0x2b64d7['addRange'](_0x57eb9c);}}if(_0x426000)return _0x426000;_0x3e933a['clear']();for(const {suggestion:_0x14c1a3,meta:_0x54c5e0}of this['_findSuggestions'](_0x4ceada,'deletion'))_0x54c5e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54c5e0['containsRangeInObject']&&!_0x54c5e0['isInsideObject'])&&Qt(_0x14c1a3,_0x4fc764)&&_0x3e933a['add'](_0x14c1a3);for(const _0x14248a of _0x3e933a){const _0x291cef=_0x14248a['getRanges']();if(!_0x4fc764||!_0x4fc764['skipNestingCheck']){if(_0x4ceada['every'](_0x3666d7=>_0x291cef['some'](_0x4b15c1=>_0x4b15c1['containsRange'](_0x3666d7,!0x0))))return _0x14248a;}(!_0x14248a['attributes']||!_0x14248a['attributes']['skipNestingCheck'])&&(_0x291cef['every'](_0x34d853=>_0x4ceada['some'](_0x3ac825=>_0x3ac825['containsRange'](_0x34d853,!0x0)))&&_0x14248a['discard']());}const _0x3c0121=_0x53814c(),_0x3af89b=_0x460146['id'],_0xe10b30='deletion:'+_0x53a61c,_0x84612c=this['_setSuggestionData']({'id':_0x3c0121,'type':_0xe10b30,'createdAt':new Date(),'authorId':_0x3af89b,'attributes':_0x4fc764});for(const _0xaa621 of _0x4ceada)_0xaa621['detach'](),_0xaa621['isCollapsed']||'$graveyard'==_0xaa621['root']['rootName']||this['_addSuggestionMarker'](_0xe10b30,_0x3c0121,_0x3af89b,_0xaa621,u['getMultiRangeId']());return _0x84612c;}['markAttributeChange'](_0x1dab46,_0x3eb674,_0x216d3f,_0x158607,_0x3e955e){if(_0x1dab46['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x34efb5=this['editor']['plugins']['get']('Users')['me']['id'],_0x8ffbce=Array['from'](this['_suggestions']['values']())['filter'](_0xc5a290=>'attribute'==_0xc5a290['type']&&_0xc5a290['data']['key']==_0x3eb674&&_0xc5a290['isIntersectingWithRange'](_0x1dab46));if('default'===this['_trackFormatChanges']){const _0x19fc3a=this['_findSuggestions'](_0x1dab46,'insertion')['filter'](({meta:_0x4ee070})=>_0x4ee070['isOwn']&&!_0x4ee070['isInsideObject']&&!_0x4ee070['isNextTo'])['map'](({suggestion:_0x20e3f8})=>_0x20e3f8);_0x8ffbce['unshift'](..._0x19fc3a);}const _0x4bf9d4=new Map([[_0x1dab46,_0x216d3f]]);for(const _0x1a5d33 of _0x8ffbce){const _0x2e47ab='attribute'==_0x1a5d33['type']?_0x1a5d33['data']['oldValue']:void 0x0,_0x5d1efd=_0x1a5d33['getFirstRange'](),_0x2dd211=Array['from'](_0x4bf9d4['keys']())['find'](_0x463627=>_0x463627['isIntersecting'](_0x5d1efd));if(!_0x2dd211)continue;const _0x57ef2e=_0x2dd211['getDifference'](_0x5d1efd);this['_isBlockAttribute'](_0x3eb674)&&'insertion'==_0x1a5d33['type']&&0x0!=_0x57ef2e['length']||(_0x4bf9d4['delete'](_0x2dd211),_0x57ef2e['forEach'](_0x310399=>{_0x4bf9d4['set'](_0x310399,_0x216d3f);}),'insertion'!=_0x1a5d33['type']&&_0x2e47ab!=_0x158607&&_0x4bf9d4['set'](_0x2dd211['getIntersection'](_0x5d1efd),_0x2e47ab));}const _0xb03e7f=[];for(const [_0x383621,_0x357d73]of _0x4bf9d4){const _0x2b8ec0=_0x53814c(),_0x5a186f={'key':_0x3eb674,'oldValue':_0x357d73,'newValue':_0x158607};_0x3eb674['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':_0x3eb674});const _0x20a850=('attribute:'+(_0x3eb674+'|'+Jt({'newValue':_0x158607})))['substring'](0x0,0x3c),_0x25334a=this['_setSuggestionData']({'id':_0x2b8ec0,'type':_0x20a850,'data':_0x5a186f,'createdAt':new Date(),'authorId':_0x34efb5,'attributes':_0x3e955e});_0xb03e7f['push'](_0x25334a),this['_addSuggestionMarker'](_0x20a850,_0x2b8ec0,_0x34efb5,_0x383621);}return _0xb03e7f;}['enableDefaultAttributesIntegration'](_0x529f0a){this['enableCommand'](_0x529f0a,(_0x46b7e2,..._0x19b032)=>{this['_recordAttributeChanges'](()=>{_0x46b7e2(..._0x19b032);});});}['registerBlockAttribute'](_0x59be50){this['_blockAttributeKeys']['add'](_0x59be50);}['registerInlineAttribute'](_0x22b683){this['_inlineAttributeKeys']['add'](_0x22b683);}['_getAttributeKey'](_0x2c63cf){return'attribute'==_0x2c63cf['type']?_0x2c63cf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15dfb0,_0x583397){const _0x1b9972=_0x15dfb0['getFirstMarker']();this['_model']['change'](_0xbfbc36=>{_0xbfbc36['updateMarker'](_0x1b9972,{'range':_0x583397});});}['_addThreadToSuggestion'](_0x50747c){const _0x1f3ca4=_0x50747c['id'],_0x5edf58=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f3ca4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5edf58,'threadId':_0x1f3ca4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f1ae9=this['_commentsRepository']['getCommentThread'](_0x1f3ca4);_0x1f1ae9['unbind']('isRemovable'),_0x1f1ae9['isRemovable']=!0x1,_0x50747c['commentThread']=_0x1f1ae9;}['_checkSuggestionCorrectness'](_0x495cde,_0x4cdb93,_0x34b970,_0x57867f){if(_0x495cde['type']!=_0x4cdb93||_0x495cde['subType']!=_0x34b970||_0x495cde['creator']['id']!=_0x57867f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x534bac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x12ddee,_0x410f04){const _0x266854=_0x12ddee['getFirstRange']();if(_0x410f04['isEqual'](_0x266854))_0x12ddee['removeMarkers']();else{if(_0x266854['containsRange'](_0x410f04)){const _0x4e10d1=this['_model']['createPositionAt'](_0x410f04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x266854['start'],_0x4e10d1));const _0x25b514=_0x53814c(),_0x2bfbb6=_0x12ddee['creator']['id'],_0x25e8d6=_0x12ddee['type']+':'+_0x12ddee['subType'];this['_setSuggestionData']({'id':_0x25b514,'type':_0x25e8d6,'createdAt':new Date(),'authorId':_0x2bfbb6,'data':_0x12ddee['data'],'attributes':_0x12ddee['attributes']});const _0x15263d=this['_model']['createPositionAt'](_0x410f04['end']['parent'],'after'),_0x48f4ef=this['_model']['createRange'](_0x15263d,_0x266854['end']);this['_addSuggestionMarker'](_0x25e8d6,_0x25b514,_0x2bfbb6,_0x48f4ef);}else{if(_0x266854['containsPosition'](_0x410f04['start'])){const _0x1addb2=this['_model']['createPositionAt'](_0x410f04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x266854['start'],_0x1addb2));}else{const _0x1d718a=this['_model']['createPositionAt'](_0x410f04['end']['parent'],'after');this['_setSuggestionRange'](_0x12ddee,this['_model']['createRange'](_0x1d718a,_0x266854['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e00a1){for(const {suggestion:_0x9d72db,meta:_0x1699af}of this['_findSuggestions'](_0x5e00a1,'insertion')){if(!_0x1699af['isOwn'])continue;const _0x47085b=_0x9d72db['getRanges']();for(const _0x4cb0bb of _0x47085b)if(!_0x5e00a1['getDifference'](_0x4cb0bb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3680cf){const _0x4f932a=this['editor']['plugins']['get']('Users')['getUser'](_0x3680cf);if(!_0x4f932a)throw new _0x534bac('track-changes-user-not-found',this);return _0x4f932a;}['_getExternalAuthor'](_0x6d0db7){const _0x4444b8=this['editor']['plugins']['get']('Users'),_0x135aac=_0x5b8f05('external:'+_0x6d0db7),_0x152fcb=_0x4444b8['getUser'](_0x135aac);return _0x152fcb||_0x4444b8['addUser']({'id':_0x135aac,'name':_0x6d0db7});}['_createSuggestion'](_0x41e125,_0x3dedc1,_0x30462e,_0x2b5654,_0x4db5f0){const _0x501289=this['_getAuthorFromId'](_0x2b5654),_0x265d66=this['_suggestionFactory']['buildSuggestion'](_0x41e125,_0x3dedc1,_0x30462e,_0x501289,_0x4db5f0,_0x6f7744=>{this['_updateSuggestionData'](_0x30462e,{'attributes':_0x6f7744});const _0x39d632=this['getSuggestion'](_0x30462e);this['_joinWithAdjacentSuggestions'](new Set([_0x39d632])),this['_refreshSuggestionsChain'](new Set([_0x39d632]));});return this['listenTo'](_0x265d66,'accept',()=>{this['_updateSuggestionData'](_0x30462e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x265d66,'discard',()=>{this['_updateSuggestionData'](_0x30462e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x30462e,_0x265d66),this['_suggestionState']['set'](_0x265d66,'notReady'),_0x265d66;}['_splitMarkerName'](_0x36d7ce){const _0x4f2e04=_0x36d7ce['split'](':');return{'group':_0x4f2e04[0x0],'type':_0x4f2e04[0x1],'subType':_0x4f2e04['length']>=0x5?_0x4f2e04[0x2]:null,'id':_0x4f2e04['length']<0x5?_0x4f2e04[0x2]:_0x4f2e04[0x3],'authorId':_0x4f2e04['length']<0x5?_0x4f2e04[0x3]:_0x4f2e04[0x4],'markerCount':0x6==_0x4f2e04['length']?_0x4f2e04[0x5]:null};}['_breakSuggestionMarker'](_0x2c656a,_0x55da31,_0x42d516){const _0x3c8934=_0x2c656a['getFirstRange'](),_0x53d5cb=_0x3c8934['start'],_0x45301f=_0x3c8934['end'];this['_setSuggestionRange'](_0x2c656a,this['_model']['createRange'](_0x53d5cb,_0x55da31));const _0x3a4f06=_0x53814c(),_0x2de686=_0x2c656a['creator']['id'],_0x57dc5d=_0x2c656a['type']+(_0x2c656a['subType']?':'+_0x2c656a['subType']:'');this['_setSuggestionData']({'id':_0x3a4f06,'type':_0x57dc5d,'createdAt':new Date(),'authorId':_0x2de686,'originalSuggestionId':_0x2c656a['id'],'attributes':_0x2c656a['attributes'],'data':_0x2c656a['data']});const _0x290d0f=this['_getAttributeKey'](_0x2c656a);('formatBlock'==_0x2c656a['type']||_0x290d0f&&this['_isBlockAttribute'](_0x290d0f))&&(_0x42d516=this['_model']['createPositionBefore'](_0x42d516['parent'])),this['_addSuggestionMarker'](_0x57dc5d,_0x3a4f06,_0x2de686,this['_model']['createRange'](_0x42d516,_0x45301f));}['_findSuggestions'](_0x1f672a,_0x5c9df4=null){const _0x31161b=[],_0x50f074=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f672a)||(_0x1f672a=[_0x1f672a]);for(const _0x30c8e9 of this['getSuggestions']()){if(!_0x30c8e9['isInContent'])continue;if(_0x5c9df4&&_0x30c8e9['type']!=_0x5c9df4)continue;let _0x432fba=!0x1;for(const _0x2ef0e2 of _0x30c8e9['getRanges']()){for(const _0x368269 of _0x1f672a){const _0x55536f=_0x368269['start']['isEqual'](_0x2ef0e2['end'])||_0x368269['end']['isEqual'](_0x2ef0e2['start']);if(_0x55536f||_0x368269['getIntersection'](_0x2ef0e2)){const _0x1713ba=_0x368269['containsRange'](_0x2ef0e2)&&Gt(this['_model']['schema'],_0x2ef0e2['start'],_0x368269),_0x532d21=_0x2ef0e2['containsRange'](_0x368269)&&Gt(this['_model']['schema'],_0x368269['start'],_0x2ef0e2);_0x31161b['push']({'suggestion':_0x30c8e9,'meta':{'isOwn':_0x50f074==_0x30c8e9['author'],'isNextTo':_0x55536f,'isInsideObject':_0x1713ba,'containsRangeInObject':_0x532d21}}),_0x432fba=!0x0;break;}}if(_0x432fba)break;}}return _0x31161b;}['_addSuggestionMarker'](_0x32cfaf,_0x28fc60,_0x56f3a5,_0x5eec7c,_0x4b3e5a){this['_model']['change'](_0x525b98=>{let _0x26c8a7='suggestion:'+_0x32cfaf+':'+_0x28fc60+':'+_0x56f3a5;_0x4b3e5a&&(_0x26c8a7=_0x26c8a7+':'+_0x4b3e5a),_0x525b98['addMarker'](_0x26c8a7,{'range':_0x5eec7c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x172c20){const _0x1f44ec=_0x172c20['previous'],_0x5d126e=_0x172c20['next'];_0x172c20['previous']=null,_0x172c20['next']=null,null!=_0x1f44ec&&_0x1f44ec['next']==_0x172c20&&(_0x1f44ec['next']=_0x5d126e),null!=_0x5d126e&&_0x5d126e['previous']==_0x172c20&&(_0x5d126e['previous']=_0x1f44ec),'ready'==this['_suggestionState']['get'](_0x172c20)&&(this['_suggestionState']['set'](_0x172c20,'removed'),this['fire']('suggestionUnloaded',_0x172c20,_0x1f44ec,_0x5d126e));}['_setSuggestionData'](_0x596fac){const _0x4c1924=_0x596fac['id'],_0xb2dcc1=this['addSuggestionData'](_0x596fac);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x369782=this['editor']['plugins']['get']('PendingActions'),_0x58f8b9=_0xb2dcc1['hasComments'],_0x5d9095=_0xb2dcc1['subType']?_0xb2dcc1['type']+':'+_0xb2dcc1['subType']:_0xb2dcc1['type'],_0x1afa15=this['editor']['locale'],_0x438a14=_0x369782['add'](o(_0x1afa15,'PENDING_ACTION_SUGGESTION')),_0x38e776={'id':_0x4c1924,'type':_0x5d9095,'hasComments':_0x58f8b9,'data':_0x596fac['data']||null,'originalSuggestionId':_0x596fac['originalSuggestionId']||null,'attributes':_0xb2dcc1['attributes']};this['_adapter']['addSuggestion'](_0x38e776)['then'](_0x80b518=>{_0xb2dcc1['_saved']=!0x0,_0x369782['remove'](_0x438a14),_0x80b518&&_0x80b518['createdAt']&&(this['_suggestions']['get'](_0x4c1924)['createdAt']=_0x80b518['createdAt']);})['catch'](_0x5a1353=>{throw _0x1cd223('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb2dcc1['discard']();}),_0xb2dcc1['stopListening'](),this['_suggestions']['delete'](_0xb2dcc1['id']),this['_suggestionState']['delete'](_0xb2dcc1),_0x5a1353;});}return _0xb2dcc1;}['_isBlockAttribute'](_0x50904d){return this['_blockAttributeKeys']['has'](_0x50904d);}['_updateSuggestionData'](_0x34f2e2,_0xb053c4){const _0x482182=this['editor']['plugins']['get']('PendingActions'),_0x4eb45c=this['getSuggestion'](_0x34f2e2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4eb45c['_saved']){const _0x2e2290=_0x482182['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34f2e2,_0xb053c4)['then'](()=>{_0x482182['remove'](_0x2e2290);});}else _0x4eb45c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34f2e2,_0xb053c4);});}}['_getSuggestionData'](_0x50a5e4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x534bac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50a5e4);}['_handleNewSuggestionMarker'](_0x530cd3){const {id:_0x5078aa,type:_0x21b91a,subType:_0x4248af,authorId:_0xb519}=this['_splitMarkerName'](_0x530cd3),_0x55069b=this['_suggestions']['get'](_0x5078aa)||this['_createSuggestion'](_0x21b91a,_0x4248af,_0x5078aa,_0xb519,{});switch(this['_checkSuggestionCorrectness'](_0x55069b,_0x21b91a,_0x4248af,_0xb519),this['_suggestionState']['get'](_0x55069b)){case'notReady':this['_getSuggestionData'](_0x5078aa)['then'](_0x105acb=>{let _0x37ca0e=Promise['resolve']();_0x105acb['hasComments']&&(_0x37ca0e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5078aa})),_0x37ca0e['then'](()=>{this['addSuggestionData'](_0x105acb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55069b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5078aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55069b,'ready'),this['fire']('suggestionLoaded',_0x55069b);break;case'ready':this['fire']('suggestionChanged',_0x55069b);}return _0x55069b['addMarkerName'](_0x530cd3),_0x55069b;}['_refreshSuggestionsChain'](_0x3c1e2d){const _0x76f5d7=Array['from'](_0x3c1e2d),_0x63ca76=_0x76f5d7['filter'](_0x4d45f6=>'attribute'==_0x4d45f6['type']);this['_refreshAttributeSuggestionsChain'](_0x63ca76);const _0x1fa1ba=_0x76f5d7['filter'](_0x592bdc=>!_0x592bdc['isMultiRange']&&'attribute'!=_0x592bdc['type']),_0x190e88=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x132457=>!_0x132457['isMultiRange']&&'attribute'!=_0x132457['type']),_0x24c35e=_0x190e88['filter'](_0x1c1cd4=>!_0x3c1e2d['has'](_0x1c1cd4)),_0x2a2a00=new Map(_0x190e88['map'](_0x2b2082=>[_0x2b2082,this['_suggestionFactory']['getSuggestionCallback'](_0x2b2082['type'],_0x2b2082['subType'],'chain')])),_0x3c1ddc=new Map(_0x190e88['map'](_0x3ce994=>[_0x3ce994,_0x3ce994['getFirstRange']()])),_0x432ad5=new Set(),_0x4b8c81=new Set();for(let _0x2a3e51=0x0;_0x2a3e51<_0x1fa1ba['length'];_0x2a3e51++)_0x42e1cc(_0x1fa1ba[_0x2a3e51],_0x1fa1ba,_0x2a3e51+0x1);for(let _0x5d2db2=0x0;_0x5d2db2<_0x1fa1ba['length'];_0x5d2db2++)_0x42e1cc(_0x1fa1ba[_0x5d2db2],_0x24c35e,0x0);const _0x80e8ba=new Set();for(let _0x8ed8bc=0x0;_0x8ed8bc<_0x1fa1ba['length'];_0x8ed8bc++){const _0x15035b=_0x1fa1ba[_0x8ed8bc];!_0x4b8c81['has'](_0x15035b)&&_0x15035b['previous']&&(_0x80e8ba['add'](_0x15035b['previous']),_0x15035b['previous']['next']===_0x15035b&&(_0x15035b['previous']['next']=null),_0x15035b['previous']=null),!_0x432ad5['has'](_0x15035b)&&_0x15035b['next']&&(_0x80e8ba['add'](_0x15035b['next']),_0x15035b['next']['previous']===_0x15035b&&(_0x15035b['next']['previous']=null),_0x15035b['next']=null);}function _0x42e1cc(_0x6e24bd,_0x191fc1,_0x55e456){for(let _0x4ecd00=_0x55e456;_0x4ecd00<_0x191fc1['length'];_0x4ecd00++){const _0x6324ba=_0x1a6650(_0x6e24bd,_0x191fc1[_0x4ecd00]);_0x6324ba&&(_0x6324ba[0x0]['next']=_0x6324ba[0x1],_0x6324ba[0x1]['previous']=_0x6324ba[0x0],_0x432ad5['add'](_0x6324ba[0x0]),_0x4b8c81['add'](_0x6324ba[0x1]));}}function _0x1a6650(_0x47a186,_0x566ed5){if(_0x47a186['author']['id']!==_0x566ed5['author']['id'])return null;const _0x47b345=_0x2a2a00['get'](_0x47a186)(_0x47a186,_0x566ed5,_0x3c1ddc['get'](_0x47a186),_0x3c1ddc['get'](_0x566ed5));if(!_0x47b345)return null;return _0x2a2a00['get'](_0x566ed5)(_0x47a186,_0x566ed5,_0x3c1ddc['get'](_0x47a186),_0x3c1ddc['get'](_0x566ed5))?_0x47b345[0x1]['commentThread']&&_0x47b345[0x1]['commentThread']['length']?null:_0x47b345:null;}_0x80e8ba['size']&&this['_refreshSuggestionsChain'](_0x80e8ba);}['_refreshAttributeSuggestionsChain'](_0x53cba0){if(0x0==_0x53cba0['length'])return;const _0x408f68=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x295da6=>'attribute'==_0x295da6['type']&&_0x295da6['_isDataLoaded']),_0x4292d7=[],_0x2e5dc2=new Map();for(const _0x49de56 of _0x408f68){const _0x138ea6=_0x5b8f05(_0x49de56['attributes']);_0x2e5dc2['has'](_0x138ea6)||(_0x2e5dc2['set'](_0x138ea6,_0x4292d7['length']),_0x4292d7['push']([]));const _0x2d2479=_0x2e5dc2['get'](_0x138ea6);_0x4292d7[_0x2d2479]['push'](_0x49de56);}!(function(){_0x4292d7['sort']((_0x4406e3,_0x1bc464)=>{const _0x14e5f8=_0x4406e3[0x0]['createdAt'],_0x341cc1=_0x1bc464[0x0]['createdAt'];return _0x14e5f8==_0x341cc1?_0x4406e3[0x0]['attributes']['groupId']<_0x1bc464[0x0]['attributes']['groupId']?-0x1:0x1:_0x14e5f8<_0x341cc1?-0x1:0x1;});for(const _0x355c71 of _0x4292d7)_0x355c71['sort']((_0x4081b6,_0x12af39)=>_0x4081b6['id']<_0x12af39['id']?-0x1:0x1);}());for(let _0x673895=0x0;_0x673895<_0x4292d7['length'];_0x673895++){if(0x0==_0x4292d7[_0x673895]['length'])continue;const _0x1c996c=[];for(let _0x483865=_0x673895+0x1;_0x483865<_0x4292d7['length'];_0x483865++)0x0!=_0x4292d7[_0x483865]['length']&&_0x2bf176(_0x4292d7[_0x673895],_0x4292d7[_0x483865])&&_0x1c996c['push'](_0x483865);for(const _0x27cc88 of _0x1c996c)_0x4292d7[_0x673895]=_0x4292d7[_0x673895]['concat'](_0x4292d7[_0x27cc88]),_0x4292d7[_0x27cc88]=[];}for(const _0x3e0316 of _0x4292d7)for(let _0x2727b7=0x0;_0x2727b7<_0x3e0316['length'];_0x2727b7++){const _0x4e39f6=_0x3e0316[_0x2727b7+0x1]||null;_0x3e0316[_0x2727b7]['next']!==_0x4e39f6&&(_0x3e0316[_0x2727b7]['next']=_0x4e39f6);}for(const _0x37089d of _0x4292d7)for(let _0x40e907=0x0;_0x40e907<_0x37089d['length'];_0x40e907++){const _0x52b3d0=_0x37089d[_0x40e907-0x1]||null;_0x37089d[_0x40e907]['previous']!==_0x52b3d0&&(_0x37089d[_0x40e907]['previous']=_0x52b3d0);}function _0x2bf176(_0x114c21,_0x12a05b){if(_0x114c21[0x0]['attributes']['groupId']!==_0x12a05b[0x0]['attributes']['groupId']&&_0x114c21[0x0]['author']!==_0x12a05b[0x0]['author'])return!0x1;if(!function(_0xe85b92,_0x4c79dc){if(!_0xe85b92['hasComments']&&!_0x4c79dc['hasComments'])return!0x0;if(_0xe85b92['hasComments']&&_0x4c79dc['hasComments'])return!0x1;if(_0xe85b92['hasComments']&&_0x4c79dc['createdAt']<_0xe85b92['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c79dc['hasComments']&&_0xe85b92['createdAt']<_0x4c79dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x114c21[0x0],_0x12a05b[0x0]))return!0x1;const _0x287c4a=Vt(_0x114c21[0x0]['attributes'],'groupId'),_0x9e5ebf=Vt(_0x12a05b[0x0]['attributes'],'groupId');if(!_0x5730e9(_0x287c4a,_0x9e5ebf))return!0x1;return!!_0x114c21['every'](_0x175ae2=>_0x12a05b['some'](_0x15a5d8=>_0x175ae2['getFirstRange']()['isEqual'](_0x15a5d8['getFirstRange']())))&&_0x12a05b['every'](_0x52e501=>_0x114c21['some'](_0x1270b9=>_0x52e501['getFirstRange']()['isEqual'](_0x1270b9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x17c292){const _0x4460fe=Array['from'](_0x17c292),_0x4d4277=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46e568=_0x4d4277['filter'](_0x2be45e=>!_0x17c292['has'](_0x2be45e)),_0x4af071=new Map(_0x4460fe['map'](_0x5b4492=>[_0x5b4492,this['_suggestionFactory']['getSuggestionCallback'](_0x5b4492['type'],_0x5b4492['subType'],'join')])),_0x469138=new Map(_0x4d4277['map'](_0x113667=>[_0x113667,_0x113667['getRanges']()]));for(let _0x2423f1=0x0;_0x2423f1<_0x4460fe['length'];_0x2423f1++){if(_0x1ffaa9(this,_0x4460fe[_0x2423f1],_0x4460fe,_0x2423f1+0x1))return!0x0;}for(let _0x2a8f56=0x0;_0x2a8f56<_0x4460fe['length'];_0x2a8f56++){if(_0x1ffaa9(this,_0x4460fe[_0x2a8f56],_0x46e568,0x0))return!0x0;}return!0x1;function _0x1ffaa9(_0x309152,_0x5c06a8,_0x7c3326,_0x3ddbea){for(let _0x11c4c2=_0x3ddbea;_0x11c4c2<_0x7c3326['length'];_0x11c4c2++){const _0x229a26=_0x7c3326[_0x11c4c2];if(_0x229a26['type']!==_0x5c06a8['type']||_0x229a26['author']['id']!==_0x5c06a8['author']['id']||_0x229a26['subType']!==_0x5c06a8['subType'])continue;if(!Wt(_0x5c06a8,_0x229a26))continue;if('attribute'==_0x5c06a8['type']&&_0x5c06a8['data']['oldValue']!=_0x229a26['data']['oldValue'])continue;if('attribute'==_0x5c06a8['type']&&_0x309152['_isBlockAttribute'](_0x5c06a8['data']['key']))continue;if('formatBlock'==_0x5c06a8['type']){const _0x37ac5d=_0x309152['editor']['model'],_0x56abfa=_0x5c06a8['getContainedElement']();if(_0x56abfa&&(_0x37ac5d['schema']['isObject'](_0x56abfa)||_0x37ac5d['schema']['isLimit'](_0x56abfa)))continue;}const _0x189223=_0x4af071['get'](_0x5c06a8),_0x38b761=_0x469138['get'](_0x5c06a8),_0x317888=_0x469138['get'](_0x229a26),_0x75925f=_0x5c06a8['commentThread']&&_0x5c06a8['commentThread']['length'],_0xa83f88=_0x229a26['commentThread']&&_0x229a26['commentThread']['length'];if(!_0x75925f&&_0x189223(_0x317888,_0x38b761))return _0x309152['_joinSuggestions'](_0x229a26,_0x5c06a8),_0x469138['delete'](_0x5c06a8),!0x0;if(!_0xa83f88&&_0x189223(_0x38b761,_0x317888))return _0x309152['_joinSuggestions'](_0x5c06a8,_0x229a26),_0x469138['delete'](_0x229a26),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14067a,_0x35e31d){if(_0x14067a['isMultiRange']){for(const _0x1e617a of _0x35e31d['getRanges']())_0x14067a['addRange'](_0x1e617a);}else{const _0x38b73f=_0x35e31d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14067a,this['_model']['createRange'](_0x14067a['getFirstRange']()['start'],_0x38b73f));}_0x35e31d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x259392,_0x1b0eef,_0x18411d){const _0x29282c=_0x259392['startsWith']('format')||_0x259392['startsWith']('attribute')?'FORMATTING':_0x259392['toUpperCase']();return o(this['editor']['locale'],_0x1b0eef+'_'+_0x29282c+'_SUGGESTION_ANNOUNCEMENT',_0x18411d);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a97c3=this['editor'];if(!_0x2a97c3['ui'])return;const {ariaLiveAnnouncer:_0x53c028}=_0x2a97c3['ui'];_0xedede1(this['_model'],({left:_0x44bbf4,entered:_0x103d49})=>{for(const _0x59663f of _0x44bbf4){const {group:_0x524c12,type:_0x303437}=this['_splitMarkerName'](_0x59663f['name']);if('suggestion'===_0x524c12){_0x53c028['announce'](this['_getMarkerAnnouncementText'](_0x303437,'LEAVE'));break;}}for(const _0x35e5a2 of _0x103d49){const {group:_0x18a3d0,type:_0x1a3e33}=this['_splitMarkerName'](_0x35e5a2['name']);if('suggestion'===_0x18a3d0){_0x53c028['announce'](this['_getMarkerAnnouncementText'](_0x1a3e33,'ENTER',_0x3ab478(_0x5f04f5)));break;}}});}['_processAttributeChanges'](_0x462b8b){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd4b6dc=this['editor'],_0x3c6a1c=_0xd4b6dc['model']['document']['differ']['getChanges']();if(0x0==_0x3c6a1c['length'])return!0x1;const _0x3f9448=[],_0x924b63=_0x3c6a1c['filter'](_0x3e42f9=>'attribute'==_0x3e42f9['type']),_0x47fe63=_0x3c6a1c['filter'](_0x125122=>'insert'==_0x125122['type']&&'$text'!=_0x125122['name']),_0x475fc7=_0x3c6a1c['filter'](_0x4e0a5f=>'remove'==_0x4e0a5f['type']&&'$text'!=_0x4e0a5f['name']);for(const _0x4d5511 of _0x924b63)_0x3f9448['push']({'key':_0x4d5511['attributeKey'],'newValue':_0x4d5511['attributeNewValue'],'oldValue':_0x4d5511['attributeOldValue'],'range':qt(_0x4d5511['range'],_0xd4b6dc['model'])});for(const _0x41ae05 of _0x47fe63){const _0x14e17a=_0x475fc7['find'](_0x634532=>_0x634532['position']['isEqual'](_0x41ae05['position']));_0x14e17a&&_0x3f9448['push']({'key':m,'newValue':_0x41ae05['name'],'oldValue':_0x14e17a['name'],'range':_0xd4b6dc['model']['createRangeOn'](_0x41ae05['position']['nodeAfter'])});}return 0x0!=_0x3f9448['length']&&this['_reduceExistingSuggestions'](_0x462b8b,_0x3f9448);}['_processAttributeSuggestions'](_0x1c816b){let _0x5455ab=!0x1;const _0x3a2d3d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56f670=>_0x56f670['data']['newRange']&&_0x56f670['name']['startsWith']('suggestion:attribute:'));for(const _0x255f5e of _0x3a2d3d){const {subType:_0x5a063f,id:_0x1db92a}=this['_splitMarkerName'](_0x255f5e['name']),_0x4f997e=_0x5a063f['split']('|')[0x0];for(const _0x2ae70e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2ae70e['id']!=_0x1db92a&&'attribute'==_0x2ae70e['type']&&_0x2ae70e['data']&&_0x2ae70e['data']['key']==_0x4f997e&&_0x2ae70e['getFirstRange']()['isIntersecting'](_0x255f5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2ae70e,_0x255f5e['data']['newRange'],_0x1c816b),_0x5455ab=!0x0);}return _0x5455ab;}['_recordAttributeChanges'](_0x35c30f){this['_recordAttributeSuggestions']=!0x0,_0x35c30f();}['_isRegisteredAttribute'](_0x9aa4a4){const _0x8a3dba=this['_isBlockAttribute'](_0x9aa4a4),_0x552bdb=this['_inlineAttributeKeys']['has'](_0x9aa4a4);return _0x8a3dba||_0x552bdb;}['_reduceExistingSuggestions'](_0x1d7f52,_0x4e2fc1){if(0x0==_0x4e2fc1['length'])return!0x1;let _0x2a3501=!0x1;for(const _0x4f590a of _0x4e2fc1){const _0x2d40dc=this['_findSuggestions'](_0x4f590a['range'],'attribute')['filter'](_0x611d16=>!_0x611d16['meta']['isNextTo'])['map'](_0x3be789=>_0x3be789['suggestion']),_0x4a609a=_0x5b8f05({'newValue':_0x4f590a['newValue']});_0x2d40dc['filter'](_0x2f12c2=>{const [_0x4f3e5a,_0x133f84]=_0x2f12c2['subType']['split']('|');return _0x4f3e5a==_0x4f590a['key']&&_0x133f84!=_0x4a609a;})['forEach'](_0x29e5ce=>{this['_reduceSuggestionAttributeRange'](_0x29e5ce,_0x4f590a['range'],_0x1d7f52),_0x2a3501=!0x0;});}return _0x2a3501;}['_reduceSuggestionAttributeRange'](_0x7a9f85,_0x2e5d27,_0x28ddab){const _0x36577a=_0x7a9f85['getFirstRange']()['getDifference'](_0x2e5d27);0x0!==_0x36577a['length']?0x1!==_0x36577a['length']?this['_breakSuggestionMarker'](_0x7a9f85,_0x2e5d27['start'],_0x2e5d27['end']):this['_setSuggestionRange'](_0x7a9f85,_0x36577a[0x0]):_0x28ddab['removeMarker'](_0x7a9f85['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x271469){this['_editor']=_0x271469,this['_model']=_0x271469['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5baf69,_0x5cefb8,_0x177eed,_0x44afb9,_0x208676,_0x2e61c2){return new u(this['_model'],{'type':_0x5baf69,'subType':_0x5cefb8,'id':_0x177eed,'author':_0x44afb9,'creator':_0x44afb9,'attributes':_0x208676,'onAttributesChange':_0x2e61c2,'onAccept':(..._0xcd9621)=>this['getSuggestionCallback'](_0x5baf69,_0x5cefb8,'accept')(..._0xcd9621),'onDiscard':(..._0x2cf50a)=>this['getSuggestionCallback'](_0x5baf69,_0x5cefb8,'discard')(..._0x2cf50a)});}['registerCustomCallback'](_0x193c42,_0x15a819,_0x23d359,_0x43f980){const _0x4568f2=_0x193c42+':'+_0x15a819+':'+_0x23d359;this['_customCallbacks']['set'](_0x4568f2,_0x43f980);}['getSuggestionCallback'](_0x480fd4,_0x2d7b45,_0x1c707f){const _0x38d237=_0x480fd4+':'+_0x2d7b45+':'+_0x1c707f;return this['_customCallbacks']['get'](_0x38d237)||this['_defaultCallbacks']['get'](_0x480fd4+':'+_0x1c707f);}['_registerDefaultCallbacks'](){const _0x4b756b=()=>!0x1,_0x47f801=_0x2cc015=>{_0x2cc015['sort']((_0x4359fe,_0x52e8fe)=>_0x4359fe['start']['isBefore'](_0x52e8fe['start'])?0x1:-0x1),this['_model']['change'](_0x4fa895=>{for(const _0x51f432 of _0x2cc015){let _0x2638e2;_0x2638e2=_0x51f432['end']['isAtEnd']&&_0x51f432['end']['parent']==_0x51f432['start']['nodeAfter']?_0x4fa895['createSelection'](_0x51f432['start']['nodeAfter'],'on'):_0x4fa895['createSelection'](_0x51f432),this['_model']['deleteContent'](_0x2638e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20cd3e=(_0x30aeb8,_0x4e2356)=>{_0x4e2356&&this['_model']['change'](_0x3f471=>{const {commandName:_0x3427ac,commandParams:_0x2c2e95=[]}=_0x4e2356,_0x4d6e89=_0x30aeb8['map'](_0x3e12bb=>(Ft(_0x3e12bb)&&(_0x3e12bb=this['_model']['createRange'](_0x3e12bb['end'])),_0x3e12bb))['filter'](_0x5ec22d=>'$graveyard'!==_0x5ec22d['root']['rootName']);if(_0x4d6e89['length']<0x1)return;const _0x50c911=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e7753=>_0x1abeca['fromRange'](_0x1e7753));_0x3f471['setSelection'](_0x4d6e89);for(const _0x2236d1 of this['_editor']['commands']['commands']())_0x2236d1['refresh']();_0x2c2e95['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3427ac,..._0x2c2e95);const _0x3813e5=_0x50c911['filter'](_0x43dfa9=>'$graveyard'!=_0x43dfa9['root']['rootName']);_0x3813e5['length']>0x0&&_0x3f471['setSelection'](_0x3813e5);for(const _0x29b4ee of _0x50c911)_0x29b4ee['detach']();});},_0x1250ae=(_0x29b2ad,_0x5e3490)=>0x1==_0x29b2ad['length']&&0x1==_0x5e3490['length']&&_0x29b2ad[0x0]['end']['isEqual'](_0x5e3490[0x0]['start']),_0x4f39a3=(_0x3a7b35,_0x2a0511,_0x12a2bc,_0x590c3c)=>Kt(_0x3a7b35,_0x2a0511,_0x12a2bc,_0x590c3c)?[_0x3a7b35,_0x2a0511]:Kt(_0x2a0511,_0x3a7b35,_0x590c3c,_0x12a2bc)?[_0x2a0511,_0x3a7b35]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b756b),this['_defaultCallbacks']['set']('insertion:discard',_0x47f801),this['_defaultCallbacks']['set']('insertion:join',_0x1250ae),this['_defaultCallbacks']['set']('insertion:chain',_0x4f39a3),this['_defaultCallbacks']['set']('deletion:accept',_0x47f801),this['_defaultCallbacks']['set']('deletion:discard',_0x4b756b),this['_defaultCallbacks']['set']('deletion:join',_0x1250ae),this['_defaultCallbacks']['set']('deletion:chain',_0x4f39a3),this['_defaultCallbacks']['set']('formatInline:accept',_0x20cd3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b756b),this['_defaultCallbacks']['set']('formatInline:join',_0x1250ae),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b756b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20cd3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b756b),this['_defaultCallbacks']['set']('formatBlock:join',_0x1250ae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b756b),this['_defaultCallbacks']['set']('attribute:accept',_0x4b756b),this['_defaultCallbacks']['set']('attribute:discard',(_0x458499,_0x1acc1f)=>{if(!_0x1acc1f)return;const _0x1a58d8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xe530d8=>{if(_0x1acc1f['key']==m)for(const _0x54a4fa of _0x458499){const _0x58d645=_0x54a4fa['start']['nodeAfter'],_0x408918=_0x1acc1f['oldValue'];_0xe530d8['rename'](_0x58d645,_0x408918);}else{if(_0x1a58d8['_isBlockAttribute'](_0x1acc1f['key'])){for(const _0x458a9a of _0x458499)void 0x0!==_0x1acc1f['oldValue']?_0xe530d8['setAttribute'](_0x1acc1f['key'],_0x1acc1f['oldValue'],_0x458a9a['start']['nodeAfter']):_0xe530d8['removeAttribute'](_0x1acc1f['key'],_0x458a9a['start']['nodeAfter']);}else{for(const _0x2dc527 of _0x458499)_0x1acc1f['oldValue']?_0xe530d8['setAttribute'](_0x1acc1f['key'],_0x1acc1f['oldValue'],_0x2dc527):_0xe530d8['removeAttribute'](_0x1acc1f['key'],_0x2dc527);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1250ae);}}function Gt(_0x19b9c8,_0x49456a,_0x1e6bea){for(const _0x6959c4 of _0x49456a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6959c4['root']==_0x6959c4)return!0x1;if(!_0x1e6bea['containsItem'](_0x6959c4))return!0x1;if(_0x19b9c8['isObject'](_0x6959c4)||_0x19b9c8['isLimit'](_0x6959c4))return!0x0;}return!0x1;}function Ft(_0x420c94){return _0x420c94['end']['parent']==_0x420c94['start']['nodeAfter']&&_0x420c94['end']['isAtStart'];}function Lt(_0x31318a,_0x4974c0,_0x4e5b1b,_0x3b2652){const _0x37cd6d=_0x52bf50=>!_0x52bf50['item']['is']('$textProxy')&&!_0x3b2652['isObject'](_0x52bf50['item']),_0x4fdc48=_0x31318a['start']['getLastMatchingPosition'](_0x37cd6d),_0x50df7c=_0x31318a['end']['getLastMatchingPosition'](_0x37cd6d,{'direction':'backward'});return(!_0x31318a['start']['isEqual'](_0x4fdc48)||!_0x31318a['end']['isEqual'](_0x50df7c))&&(_0x4fdc48['isBefore'](_0x50df7c)?_0x4e5b1b['updateMarker'](_0x4974c0,{'range':_0x4e5b1b['createRange'](_0x4fdc48,_0x50df7c)}):_0x4e5b1b['removeMarker'](_0x4974c0),!0x0);}function Jt(_0x3fb4d3){return _0x5b8f05(_0x3fb4d3);}function Ht(_0x2f6f8f){const _0x217156=_0x2f6f8f['start']['nodeAfter'];return _0x217156&&_0x217156['is']('element');}function qt(_0x1b8a03,_0x1670d8){return null==_0x1b8a03['end']['nodeBefore']&&_0x1b8a03['end']['parent']==_0x1b8a03['start']['nodeAfter']?zt(_0x1b8a03['start']['nodeAfter'],_0x1670d8):_0x1b8a03;}function zt(_0x148b2c,_0x277b96){const _0xccd82c=_0x277b96['schema']['isObject'](_0x148b2c)||_0x277b96['schema']['isSelectable'](_0x148b2c);return _0x277b96['createRange'](_0x277b96['createPositionAt'](_0x148b2c,'before'),_0xccd82c?_0x277b96['createPositionAfter'](_0x148b2c):_0x277b96['createPositionAt'](_0x148b2c,'end'));}function Kt(_0x52d9d8,_0x46bc8c,_0xdf0d2d,_0x3ff4ec){return!!Wt(_0x52d9d8,_0x46bc8c)&&_0xdf0d2d['end']['isEqual'](_0x3ff4ec['start']);}function Wt(_0x2e5fc7,_0x3e2ac0){if(!_0x2e5fc7['_isDataLoaded']||!_0x3e2ac0['_isDataLoaded'])return!0x1;const _0x3c4282=new Set(Object['keys'](_0x2e5fc7['attributes'])),_0x6ac291=new Set(Object['keys'](_0x3e2ac0['attributes']));if(_0x3c4282['delete']('groupId'),_0x6ac291['delete']('groupId'),0x0==_0x3c4282['size']&&0x0==_0x6ac291['size'])return!0x0;if(_0x3c4282['size']!=_0x6ac291['size'])return!0x1;const _0x51f90e={..._0x2e5fc7['attributes']},_0x1b93ba={..._0x3e2ac0['attributes']};return delete _0x51f90e['groupId'],delete _0x1b93ba['groupId'],JSON['stringify'](_0x51f90e)==JSON['stringify'](_0x1b93ba);}function Qt(_0x140e92,_0x40bf2c){const _0x26b495=Xt(_0x140e92['attributes']),_0x846537=Xt(_0x40bf2c);if(!_0x140e92['_isDataLoaded'])return!0x1;for(const _0x171042 of Object['keys'](_0x846537))if(!_0x5730e9(_0x26b495[_0x171042],_0x846537[_0x171042]))return!0x1;return!0x0;}function Xt(_0x203cfe){const _0x1fec0f=Object['assign']({},_0x203cfe);return delete _0x1fec0f['skipNestingCheck'],delete _0x1fec0f['tablePasteChainId'],_0x1fec0f;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28e810(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2cf030,_0x36dafe,_0x178629,_0x5bb46e){super(),this['model']=_0x36dafe,this['view']=_0x178629,this['commentThreadController']=_0x5bb46e,this['_editor']=_0x2cf030,this['_acceptCommand']=_0x2cf030['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2cf030['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4707f3,_0x2301fd)=>_0x4707f3||_0x2301fd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d19a1=>_0x2d19a1&&this['_editor']['model']['canEditAt'](_0x36dafe['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f251d=>_0x3f251d&&this['_editor']['model']['canEditAt'](_0x36dafe['getRanges']())),this['_pendingAction']=null,_0x178629['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x178629,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x178629,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x178629,'change:isDirty',()=>{_0x178629['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 _0x18314b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x18314b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x16d55d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b32b5,_0x4bc35f,_0x2df4de,_0x4cc0bf){super(_0x5b32b5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x12891d(_0x5b32b5,o(_0x5b32b5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4bc35f['authoredAt']),this['bind']('authoredAt')['to'](_0x4bc35f),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',_0x4bc35f,'authoredAt',this,'descriptionParts',(_0x5ef722,_0x36b680,_0x396ed9)=>{const _0x48d397=_0x396ed9['map'](_0x190c3c=>cs(_0x190c3c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5ef722-0x1,_0x4bc35f['author']['name'],_0x36b680?_0x4cc0bf['formatDateTime'](_0x36b680):'',new DOMParser()['parseFromString'](_0x48d397,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc19ddf(),this['focusTracker']=new _0x4adce5(),this['keystrokes']=new _0x4ab5eb(),this['focusCycler']=new _0x107169({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ed0cf=>_0x5ed0cf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4bc35f,this['_localUser']=_0x2df4de,this['_config']=_0x4cc0bf,_0x4cc0bf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x143d1c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a250f}=this['_config'];this['commentsListView']=new _0x3a250f(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',_0x2a704b=>_0x2a704b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x34104a,_0x2fc05a)=>_0x34104a||!!_0x2fc05a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a819a}=this['_config'],_0x16ad60=new _0x3a819a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d35a6=_0x16ad60['commentInputView'];return _0x16ad60['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d35a6,'value',(_0x4c8bc7,_0x3990cc,_0xbb13b0)=>!!_0xbb13b0||_0x4c8bc7&&!_0x3990cc),_0x5d35a6['on']('submit',(_0x409699,_0x301e7c)=>{this['fire']('addComment',_0x301e7c),_0x5d35a6['editor']['setData']('');}),_0x5d35a6['on']('cancel',()=>this['focus']()),_0x5d35a6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16ad60;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x39fc45,_0x51c396,_0x2dd2f8,_0x3fe544){super(_0x39fc45,_0x51c396,_0x2dd2f8,_0x3fe544),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x189313=>_0x189313&&_0x189313[0x0]?_0x189313[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1127c6,_0x42e3d9)=>{let _0x4e9437='';for(const _0x35720b of _0x1127c6)_0x4e9437+='<p>'+cs(_0x35720b['content'],_0x35720b['color'])+'</p>';return _0x42e3d9?_0x4e9437:_0xa16176(_0x4e9437,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fe544['SuggestionView'](_0x39fc45,_0x51c396,{'formatDateTime':_0x3fe544['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 _0x14ac6d=this['bindTemplate'],_0x443e16=[this['suggestionView']];return this['commentsListView']&&_0x443e16['push'](this['commentsListView']),this['commentThreadInputView']&&_0x443e16['push'](this['commentThreadInputView']),_0x443e16['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x14ac6d['if']('isActive','ck-suggestion-wrapper--active'),_0x14ac6d['to']('type',_0x2aa007=>'ck-suggestion-'+_0x2aa007),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':_0x14ac6d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x443e16};}['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 fe extends _0x16d55d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x87905,_0x4261c5,_0x283097){super(_0x87905),this['_model']=_0x4261c5,this['_config']=_0x283097,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4261c5),this['acceptButton']=this['_createButton'](o(_0x87905,'Accept\x20suggestion'),_0x33fe73['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x87905,'Discard\x20suggestion'),_0x33fe73['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x793856(_0x87905,_0x4261c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc19ddf([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4adce5(),this['keystrokes']=new _0x4ab5eb(),this['focusCycler']=new _0x107169({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x345505=>_0x345505['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ec561=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ec561['innerHTML']=this['description'],this['on']('change:description',(_0x3bdd78,_0x34da7e,_0x49e8c9)=>{_0x5ec561['innerHTML']=_0x49e8c9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x12d317=this['bindTemplate'],_0x24c0f6=[{'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':_0x12d317['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x12d317['to']('authoredAt',_0x315bed=>this['_config']['formatDateTime'](_0x315bed))}]}]},{'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']&&_0x24c0f6['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':_0x24c0f6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x110c00,_0x330ba3,_0x165c7e,_0x2e84c6,_0x2f5e63){const _0x3bff37=new _0xd3709b(this['locale']);return _0x3bff37['set']({'label':_0x110c00,'icon':_0x330ba3,'tooltip':!0x0,'tooltipPosition':_0x2f5e63}),_0x3bff37['extendTemplate']({'attributes':{'class':_0x165c7e}}),_0x3bff37['on']('execute',()=>{this['fire'](_0x2e84c6,this['_model']['id']);}),_0x3bff37;}['_setupKeyboardNavigation'](){const _0x24242c=this['element'];this['keystrokes']['listenTo'](_0x24242c);for(const _0x36d860 of this['focusables'])this['focusTracker']['add'](_0x36d860['element']),this['keystrokes']['listenTo'](_0x36d860['element']);this['keystrokes']['set']('enter',(_0x47a9d7,_0x2d4701)=>{_0x24242c===_0x47a9d7['target']&&(this['focusCycler']['focusFirst'](),_0x2d4701());}),this['keystrokes']['set']('esc',(_0x3234d5,_0x97419a)=>{_0x24242c!==_0x3234d5['target']&&(this['focus'](),_0x97419a());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3870c0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19b2a6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x404d35){super(_0x404d35),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ea4eb=this['editor']['config'];_0x3ea4eb['define']('trackChanges.SuggestionThreadView',pe),_0x3ea4eb['define']('trackChanges.SuggestionView',fe),_0x3ea4eb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ea4eb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x609f88,_0x2d7fbb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x500ee4,_0x50ae02]of this['_handleControllerBuffer']){const _0x28b411=this['_suggestionToController']['has'](_0x500ee4);_0x28b411||_0x50ae02?_0x28b411&&_0x50ae02&&this['_destroyController'](_0x500ee4):this['_initializeController'](_0x500ee4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x609f88,_0x2d7fbb);}['init'](){const _0x1c6f7f=this['editor'],_0x2f6daf=_0x1c6f7f['plugins']['get']('TrackChangesEditing'),_0x25e36c=_0x1c6f7f['plugins']['get']('Annotations'),_0x582d89=_0x1c6f7f['plugins']['get']('EditorAnnotations'),_0x41efe4=_0x1c6f7f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x582d89['addSourceCollector'](()=>{const _0xe3733b=[];for(const [_0xaa4940,_0x4af963]of Array['from'](this['_suggestionToController'])){const _0x42a097=_0xaa4940['getAllAdjacentSuggestions'](),_0x2f8561=[];for(const _0x1f7d92 of _0x42a097){if(!_0x1f7d92['isInContent'])continue;if(_0x1f7d92['isMultiRange']){_0x2f8561['push'](..._0x1f7d92['getRanges']());continue;}const _0x82d1ec=_0x1f7d92['getFirstRange']();if(_0x2f8561['length']>0x0){const _0x296828=_0x2f8561[0x0]['getJoined'](_0x82d1ec);if(_0x296828){_0x2f8561[0x0]=_0x296828;continue;}}_0x2f8561['push'](_0x82d1ec);}_0xe3733b['push']([_0x4af963['view'],_0x2f8561]);}return _0xe3733b;}),this['listenTo'](_0x2f6daf,'suggestionLoaded',(_0x52b491,_0x28e1da)=>{this['listenTo'](_0x28e1da,'change:previous',(_0x20a4cb,_0x4d972b,_0x5aada4,_0x18f85e)=>{_0x28e1da['isInContent']&&(null==_0x5aada4?(this['_updateController'](_0x18f85e['head']),this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x1)):(this['_updateController'](_0x5aada4['head']),null==_0x18f85e&&this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x0)));}),null!==_0x28e1da['previous']?this['_updateController'](_0x28e1da['head']):this['_handleSuggestionControllerDelayed'](_0x28e1da,!0x1);}),this['listenTo'](_0x2f6daf,'suggestionUnloaded',(_0x3440f4,_0x363f1e,_0x561565)=>{this['stopListening'](_0x363f1e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x363f1e),this['_suggestionToController']['has'](_0x363f1e)&&this['_destroyController'](_0x363f1e),_0x561565&&this['_updateController'](_0x561565['head']);}),this['listenTo'](_0x2f6daf,'suggestionChanged',(_0x314959,_0x42f5e6)=>{this['_updateController'](_0x42f5e6);}),this['listenTo'](_0x25e36c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41efe4,'addComment',(_0x1756de,{threadId:_0x4c8ca0,isFromAdapter:_0x12beae})=>{if(_0x12beae||!_0x2f6daf['hasSuggestion'](_0x4c8ca0))return;const _0x53e81a=_0x2f6daf['getSuggestion'](_0x4c8ca0);this['_suggestionToController']['get'](_0x53e81a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbd04c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35a8a0;for(const _0x47377a in _0xbd04c4){const _0x1fe39f=_0x47377a,_0x403aeb=_0xbd04c4[_0x1fe39f];if('trackChangesLicenseKeyValid'==_0x403aeb||'trackChangesLicenseKeyInvalid'==_0x403aeb||'trackChangesLicenseKeyExpired'==_0x403aeb||'trackChangesLicenseKeyDomainLimit'==_0x403aeb||'trackChangesLicenseKeyNotAllowed'==_0x403aeb||'trackChangesLicenseKeyEvaluationLimit'==_0x403aeb||'trackChangesLicenseKeyTrialLimit'==_0x403aeb||'trackChangesLicenseKeyUsageLimit'==_0x403aeb){delete _0xbd04c4[_0x1fe39f],_0x35a8a0=_0x403aeb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x35a8a0&&_0xbd04c4['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x34e9a4=this['editor']['plugins']['get']('Annotations'),_0x5e4a80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c707f=Array['from'](_0x34e9a4['activeAnnotations'],_0x386cdc=>_0x386cdc['innerView'])['filter'](_0x3156e1=>this['_viewToController']['has'](_0x3156e1)),_0x1873c6=[];for(const _0x2ec3e3 of _0x3c707f){const _0x2eab4d=this['_viewToController']['get'](_0x2ec3e3)['model']['getAllAdjacentSuggestions']();_0x1873c6['push'](..._0x2eab4d['reduce']((_0xf1a6b8,_0x321108)=>[..._0xf1a6b8,..._0x321108['getMarkerNames']()],[]));}_0x5e4a80['activeMarkers']=_0x1873c6;}['_addUIComponentsToFactory'](){const _0x21178d=this['editor'],_0x6df912=_0x21178d['locale'],_0x43b813=o(_0x6df912,'Track\x20changes'),_0x209e36=new _0x34b401([{'type':'switchbutton','model':new _0x6fd7fd({'withText':!0x0,'isToggleable':!0x0,'label':_0x43b813,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x21178d['plugins']['has']('TrackChangesPreview')&&_0x209e36['addMany']([{'type':'separator'},{'type':'button','model':new _0x6fd7fd({'withText':!0x0,'label':o(_0x6df912,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5826cd of _0x209e36)if(ke(_0x5826cd)){const _0x466b67=_0x21178d['commands']['get'](_0x5826cd['model']['commandName']);_0x5826cd['model']['bind']('isOn','isEnabled')['to'](_0x466b67,'value','isEnabled');}_0x21178d['ui']['componentFactory']['add']('trackChanges',_0x584d79=>this['_createToolbarButton'](_0x584d79,_0x209e36,_0x43b813)),_0x21178d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31e2bb=>this['_createMenuBarMenu'](_0x31e2bb,_0x209e36,_0x43b813));}['_createToolbarButton'](_0x3127e6,_0x421ecf,_0x3a614a){const _0x53382a=_0x2b3e30(_0x3127e6,_0x507e81),_0x29e711=this['editor']['commands']['get']('trackChanges');_0x53382a['buttonView']['set']({'tooltip':_0x3a614a,'label':_0x3a614a,'icon':we}),_0x53382a['buttonView']['bind']('isOn')['to'](_0x29e711,'value'),_0x53382a['buttonView']['on']('execute',()=>{_0x29e711['execute'](),this['editor']['editing']['view']['focus']();}),_0x8392e2(_0x53382a,_0x421ecf,{'role':'menu'});const _0x36ab62=[];for(const _0x42d7a7 of _0x421ecf)ke(_0x42d7a7)&&_0x36ab62['push'](this['editor']['commands']['get'](_0x42d7a7['model']['commandName']));const _0xf58ab2=_0x53382a['buttonView'];return _0xf58ab2['actionView']['unbind']('isEnabled'),_0xf58ab2['arrowView']['unbind']('isEnabled'),_0xf58ab2['actionView']['bind']('isEnabled')['to'](_0x29e711,'isEnabled'),_0xf58ab2['arrowView']['bind']('isEnabled')['toMany'](_0x36ab62,'isEnabled',(..._0x799c2b)=>_0x799c2b['some'](_0x174c25=>_0x174c25)),_0x53382a['on']('execute',_0x57bc7f=>{this['editor']['execute'](_0x57bc7f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53382a;}['_createMenuBarMenu'](_0x10e602,_0x1779d4,_0x13f30d){const _0x270d54=new _0xe7eec8(_0x10e602),_0x43bd44=this['editor']['commands']['get']('trackChanges');_0x270d54['buttonView']['set']({'label':_0x13f30d,'icon':we});const _0x8e1a49=new _0x100061(_0x10e602);for(const _0x3884c4 of _0x1779d4){if('separator'==_0x3884c4['type']){_0x8e1a49['items']['add'](new _0x28bae8(_0x10e602));continue;}const _0x4fdaef=new _0x166fd0(_0x10e602,_0x270d54),_0x58c472=new _0x3aa8a5(_0x10e602),_0x1c5d25=_0x3884c4['model'];_0x58c472['bind'](...Object['keys'](_0x1c5d25))['to'](_0x1c5d25),_0x58c472['delegate']('execute')['to'](_0x270d54),_0x58c472['on']('execute',()=>{this['editor']['execute'](_0x1c5d25['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fdaef['children']['add'](_0x58c472),_0x8e1a49['items']['add'](_0x4fdaef);}return _0x270d54['bind']('isEnabled')['to'](_0x43bd44,'isEnabled'),_0x270d54['panelView']['children']['add'](_0x8e1a49),_0x270d54;}['_initializeController'](_0x446609){const _0x1886c6=this['editor'],_0x5b521d=_0x1886c6['config'],_0x1c9f2d=_0x1886c6['plugins']['get']('Annotations'),_0x3a0f10=_0x1886c6['plugins']['get']('CommentsRepository'),_0x3e30ae=_0x1886c6['plugins']['get']('EditorAnnotations'),_0x31b3fd=_0x1886c6['plugins']['get'](_0x19b2a6)['me'],_0x440063=_0x5b521d['get']('trackChanges')['SuggestionThreadView'],_0x36199f=_0x5b521d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x585d76,CommentThreadInputView:_0x474a0f}=_0x1886c6['plugins']['get']('CommentsUI');let _0x1a0a2d,_0x2c065b,_0x1c23a6;this['_annotationViews']['has'](_0x446609['id'])?(_0x2c065b=this['_annotationViews']['get'](_0x446609['id']),_0x1a0a2d=_0x2c065b['mainView']):(_0x1a0a2d=new _0x440063(_0x1886c6['locale'],_0x446609,_0x31b3fd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b521d['get']('comments.editorConfig'),'licenseKey':_0x5b521d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b521d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b521d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b521d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x56aa9d(_0x5b521d['get']('locale')),'CommentView':_0x5b521d['get']('comments')['CommentView'],'CommentsListView':_0x585d76,'CommentThreadInputView':_0x474a0f,'SuggestionView':_0x36199f}),_0x1a0a2d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1886c6['editing']['view']['focus']();}),_0x1a0a2d['suggestionView']['discardButton']['on']('execute',()=>{_0x1886c6['editing']['view']['focus']();}),_0x2c065b=_0x1c9f2d['createAnnotationView'](this['editor']['locale'],_0x1a0a2d),_0x2c065b['bind']('isDirty')['to'](_0x1a0a2d,'isDirty'),_0x2c065b['bind']('length')['to'](_0x1a0a2d),_0x2c065b['bind']('type')['to'](_0x1a0a2d,'type',_0x44aab4=>'suggestion-'+_0x44aab4),_0x1a0a2d['on']('escape',()=>{_0x1c23a6['fire']('escape');}),this['_annotationViews']['set'](_0x446609['id'],_0x2c065b));const _0x5432b8=_0x3a0f10['createCommentThreadController'](_0x446609['commentThread'],_0x1a0a2d),_0x3e58bc=new Ce(_0x1886c6,_0x446609,_0x1a0a2d,_0x5432b8),_0x44570e=_0x446609['getAllAdjacentSuggestions']()['filter'](_0x2faa25=>_0x2faa25['isInContent']);_0x1a0a2d['descriptionParts']=_0x1886c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44570e),this['_suggestionToController']['set'](_0x446609,_0x3e58bc),this['_viewToController']['set'](_0x1a0a2d,_0x3e58bc),_0x1c23a6=_0x1c9f2d['createAnnotation']({'view':_0x2c065b,'target':()=>{const _0x5f4bdf=[],_0xa4c83d=_0x446609['getAllAdjacentSuggestions']()['filter'](_0x963ed9=>_0x963ed9['isInContent']);for(const _0x480715 of _0xa4c83d)_0x5f4bdf['push'](..._0x480715['getMarkers']());return _0x32221f(_0x1886c6['editing'],_0x5f4bdf);},'type':()=>'suggestion-'+_0x3e58bc['view']['type']}),_0x3a0f10['_bindAnnotationToEditors'](_0x1a0a2d,_0x1c23a6),_0x1c9f2d['add'](_0x1c23a6),_0x3e30ae['registerAnnotation'](_0x1c23a6);}['_destroyController'](_0x51e417){const _0x1f93a1=this['editor']['plugins']['get']('CommentsRepository'),_0x24fc52=this['editor']['plugins']['get']('Annotations'),_0x4ecefe=this['_suggestionToController']['get'](_0x51e417),_0x3b8504=_0x4ecefe['view'],_0x28177b=_0x24fc52['getByInnerView'](_0x3b8504);_0x1f93a1['_unbindEditors'](_0x3b8504),_0x28177b&&_0x24fc52['remove'](_0x28177b),this['_suggestionToController']['delete'](_0x51e417),this['_viewToController']['delete'](_0x3b8504),_0x4ecefe['destroy']();}['_updateController'](_0x236928){if(!_0x236928['isInContent']||!this['_suggestionToController']['has'](_0x236928))return;const _0x1af166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47d157=this['_suggestionToController']['get'](_0x236928),_0x5d681d=_0x236928['getAllAdjacentSuggestions']();_0x47d157['view']['descriptionParts']=_0x1af166['descriptionFactory']['getDescriptions'](_0x5d681d);}['destroy'](){for(const _0x3de0f9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3de0f9);for(const _0x176e67 of this['_annotationViews']['values']())_0x176e67['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2f51f8){return'model'in _0x2f51f8;}class k extends _0x3870c0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x43b97e){this['editor']['plugins']['get'](p)['adapter']=_0x43b97e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x528a01){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x528a01);}['getSuggestions']({skipNotAttached:_0x2cfb45=!0x1,toJSON:_0x499610=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2cfb45,'toJSON':_0x499610});}['getSuggestion'](_0x4104b0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4104b0);}}const w=['Pagination'];class T extends _0x3870c0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20befb=this['editor'];if(_0x20befb['config']['define']('trackChangesData.editorCreator',_0x3b9ad8=>{const _0x2da846=_0x20befb['model']['document']['getRootNames']()['reduce']((_0x414bfc,_0x2e9374)=>(_0x414bfc[_0x2e9374]='',_0x414bfc),{});return _0x20befb['constructor']['create'](_0x2da846,_0x3b9ad8);}),'function'!=typeof _0x20befb['config']['get']('trackChangesData')['editorCreator'])throw new _0x534bac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x257d9b){return N(this['editor'],!0x0,_0x257d9b);}['getDataWithDiscardedSuggestions'](_0x419c5f){return N(this['editor'],!0x1,_0x419c5f);}}class D extends _0x3870c0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44ff61){function _0x4c4edf(_0x1ffbc0){return _0x1ffbc0['map'](_0x3f6101=>String['fromCharCode'](_0x3f6101))['join']('');}super(_0x44ff61),this['result']='end',_0x44ff61[_0x4c4edf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4edf([0x76,0x69,0x65,0x77])][_0x4c4edf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c4edf([0x61,0x75,0x74,0x6f]),_0x44ff61[_0x4c4edf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c4edf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c4edf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c4edf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c4edf([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 Fe(_0x4e9dd3){return void 0x0!==_0x4e9dd3['getRootsAttributes'];}async function N(_0x360d79,_0x5bd90e,_0x1ced9e){const _0x47f17e=_0x3ea1df(_0x360d79,w);_0x47f17e['plugins']['push'](p,D),_0x47f17e['rootsAttributes']=Fe(_0x360d79)?_0x360d79['getRootsAttributes']():void 0x0;const _0x2ef63f=document['createDocumentFragment'](),_0x293432=_0x360d79['config']['get']('trackChangesData')['editorCreator'],_0x3f8675=await _0x293432(_0x47f17e,()=>function(_0xa54b27){const _0x3d349c=document['createElement']('div');return _0xa54b27['appendChild'](_0x3d349c),_0x3d349c;}(_0x2ef63f));!function(_0x435df1,_0x4cccf4){const _0x38fc05=_0x435df1['model']['document']['getRootNames']()['reduce']((_0x66c65e,_0x4a2b1c)=>(_0x66c65e[_0x4a2b1c]=_0x435df1['data']['get']({'rootName':_0x4a2b1c}),_0x66c65e),{}),_0x12f0e3=_0x435df1['plugins']['get']('Users')['users']['map'](_0x2c8c98=>({'id':_0x2c8c98['id'],'name':_0x2c8c98['name']})),_0x5cc415=_0x435df1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56fe07=_0x435df1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1529a9=_0x4cccf4['plugins']['get']('Users'),_0x2f8c0e=_0x4cccf4['plugins']['get']('TrackChangesEditing'),_0x3ddb37=_0x4cccf4['plugins']['get']('CommentsRepository');for(const _0x383c50 of _0x3ddb37['getCommentThreads']())_0x383c50['remove']();for(const _0x8e3660 of _0x12f0e3)_0x1529a9['getUser'](_0x8e3660['id'])||_0x1529a9['addUser'](_0x8e3660);_0x1529a9['me']||_0x1529a9['useAnonymousUser']();for(const _0x3ef179 of _0x56fe07)_0x3ddb37['addCommentThread'](_0x3ef179);for(const _0x1c9293 of _0x5cc415)_0x2f8c0e['addSuggestionData'](_0x1c9293);_0x4cccf4['data']['set'](_0x38fc05);}(_0x360d79,_0x3f8675),_0x3f8675['execute'](_0x5bd90e?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e820a=Fe(_0x3f8675)?_0x3f8675['getFullData'](_0x1ced9e):_0x3f8675['data']['get'](_0x1ced9e);return await _0x3f8675['destroy'](),_0x5e820a;}class Me extends _0x16d55d{['options'];constructor(_0x4b9ea5,_0x22023f){super(_0x4b9ea5),this['options']=_0x22023f,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'](_0x48034f,_0x4d1588){if(!this['element'])return;const _0x447720=[];for(const [_0x498dcc,_0xe67aa]of _0x48034f){const _0xad74d1=document['createElement']('div');_0xad74d1['setAttribute']('data-ck-root-name',_0x498dcc),_0xad74d1['className']=_0xe67aa['classes']+'\x20ck-track-changes-preview__root-container',_0xad74d1['innerHTML']=_0xe67aa['content'],_0x447720['push'](_0xad74d1);}_0x4d1588(this['element'],_0x447720),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x21acf8){super(_0x21acf8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x220f24=this['editor'],_0xd8a790=_0x220f24['locale'],_0xca3b1=_0x220f24['plugins']['get']('Dialog');let _0x31e9ed;const _0x56ef90=function(_0x464523){const _0x3bc843={};if('editables'in _0x464523['ui']['view']){for(const [_0x57e25b,_0x1888bb]of Object['entries'](_0x464523['ui']['view']['editables']))_0x3bc843[_0x57e25b]=_0x1888bb['element'];}else _0x3bc843[_0x464523['model']['document']['getRootNames']()[0x0]]=_0x464523['ui']['view']['editable']['element'];return _0x3bc843;}(_0x220f24),_0xae3ac0=function(_0x3683a8){let _0x3ccec6=0x0;for(const _0x374c9f of Object['values'](_0x3683a8))_0x3ccec6=Math['max'](_0x3ccec6,_0x374c9f['getBoundingClientRect']()['width']);let _0x4ac7ca=0x0;for(const _0x5d9aa2 of Object['values'](_0x3683a8))_0x4ac7ca+=_0x5d9aa2['getBoundingClientRect']()['height'];const _0x5ad400=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x155132=Math['min'](_0x4ac7ca,_0x5ad400);return{'width':_0x3ccec6,'height':_0x155132};}(_0x56ef90);_0xca3b1['show']({'id':'finalContentPreview','title':o(_0xd8a790,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd8a790,{'dialogRects':_0xae3ac0}),'onHide':()=>{_0x31e9ed['detachFromDom']();},'onShow':()=>{_0x220f24['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a817d=>{const _0x50446c=this['_standarizeRootsData'](_0x2a817d,_0x220f24,_0x56ef90);_0xca3b1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x50446c,_0x220f24['config']['get']('trackChanges.preview.renderFunction'));}),_0x31e9ed=new _0x3c49d0(_0xd8a790,[_0xca3b1['view']]),_0x31e9ed['attachToDom'](),_0x31e9ed['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x220f24['once']('destroy',()=>{_0x31e9ed['detachFromDom']();});const _0x13e494=_0xca3b1['view']['headerView']['class'];_0xca3b1['view']['headerView']['class']=_0x13e494?_0x13e494+'\x20ck-reset_all':'ck-reset_all',_0xca3b1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xca3b1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x238dee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5b556e=_0x238dee['previewMode'],_0x200096={};if('$labels'===_0x5b556e){for(const _0x342713 of _0x238dee['getMergeFieldsIds']())_0x200096[_0x342713]=_0x238dee['getLabel'](_0x342713)||_0x342713;}else{const _0x1d5618='$defaultValues'===_0x5b556e?_0x238dee['getDefaultValues']():_0x238dee['getDataSetValues'](_0x5b556e,!0x0);for(const _0x2b80e1 of Object['entries'](_0x1d5618)){const [_0x3b3003,_0x238fca]=_0x2b80e1;_0x200096[_0x3b3003]=null!==_0x238fca?_0x238fca:_0x238dee['getLabel'](_0x3b3003)||_0x3b3003;}}return{'mergeFieldsData':_0x200096};}['_standarizeRootsData'](_0x22fb15,_0x565a2a,_0x352e02){let _0x336a5a;if('string'==typeof _0x22fb15){const _0x4da899=_0x565a2a['model']['document']['getRootNames']()[0x0];_0x336a5a={[_0x4da899]:_0x22fb15};}else _0x336a5a=_0x22fb15;const _0x3c1cdb=this['_fixMediaEmbeds'](_0x336a5a,_0x565a2a),_0x42a8fd=function(_0x5475d7,_0x523cd9){for(const [_0x132a0d,_0x232faa]of _0x5475d7)_0x232faa['classes']=_0x523cd9[_0x132a0d]['classList']['value']['replace']('ck-focused','');return _0x5475d7;}(this['_sortRoots'](_0x565a2a)['reduce']((_0xf6772f,_0x4b243a)=>(_0xf6772f['push']([_0x4b243a,{'content':_0x3c1cdb[_0x4b243a],'classes':''}]),_0xf6772f),[]),_0x352e02);return _0x42a8fd;}['_fixMediaEmbeds'](_0x584104,_0x304023){if(!_0x304023['plugins']['has']('MediaEmbedEditing'))return _0x584104;const _0x5c6e7c=_0x304023['plugins']['get']('MediaEmbedEditing');for(const [_0x9b924f,_0x10cea2]of Object['entries'](_0x584104)){const _0x2d25af=document['createElement']('div');_0x2d25af['innerHTML']=_0x10cea2,(_0x2d25af['querySelectorAll']('figure.media')['forEach'](_0x139a10=>{const _0x83e2aa=_0x139a10['querySelector']('oembed');if(_0x83e2aa){const _0x34b8d2=_0x83e2aa['getAttribute']('url');if(_0x34b8d2){const _0x1aff8a=_0x5c6e7c['registry']['getMediaViewElement'](new _0x3530bb(_0x304023['editing']['view']['document']),_0x34b8d2,{'elementName':'','renderForEditingView':!0x0}),_0x3e9c11=document['createElement']('div');_0x3e9c11['classList']['add']('ck-media__wrapper'),_0x1aff8a['render'](_0x3e9c11,_0x304023['editing']['view']['domConverter']),_0x83e2aa['replaceWith'](_0x3e9c11);}}}),_0x584104[_0x9b924f]=_0x2d25af['innerHTML']);}return _0x584104;}['_sortRoots'](_0x52fa03){if(!function(_0x44a72a){return void 0x0!==_0x44a72a['getRootsAttributes'];}(_0x52fa03))return _0x52fa03['model']['document']['getRootNames']();const _0x20e603=[],_0xd58ff9=new Map();for(const _0x34f7d3 of _0x52fa03['model']['document']['getRootNames']()){const _0x5a7847=_0x52fa03['editing']['view']['getDomRoot'](_0x34f7d3)['getClientRects']()['item'](0x0);_0x20e603['push'](_0x34f7d3),_0xd58ff9['set'](_0x34f7d3,_0x5a7847);}return _0x20e603['sort']((_0x252c61,_0x2f26fa)=>{const _0x152fd9=_0xd58ff9['get'](_0x252c61),_0x5b7f79=_0xd58ff9['get'](_0x2f26fa);return _0x152fd9['y']-_0x5b7f79['y']||_0x152fd9['x']-_0x5b7f79['x'];}),_0x20e603;}}class te extends _0x3870c0{static get['requires'](){return[T,_0x6f0cd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a7375){super(_0x4a7375),_0x4a7375['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4a7375['config']['define']('trackChanges.preview.renderFunction',(_0xe6ed35,_0x1ede0e)=>{for(const _0x5f09ea of _0x1ede0e)_0xe6ed35['appendChild'](_0x5f09ea);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x577abc,PendingActions as _0x5d334d,icons as _0x29e319}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4d7761,ObservableMixin as _0xbf6237,uid as _0x2730a7,priorities as _0x1ed5be,insertToPriorityArray as _0x42aa9e,logWarning as _0xbbe712,getEnvKeystrokeText as _0x3ae4b2,FocusTracker as _0x24e6e1,KeystrokeHandler as _0x4c05a3,Collection as _0xc60cdf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2cec03,View as _0x3964e1,ViewCollection as _0x4011a5,FocusCycler as _0xdcfb15,ViewModel as _0x1bd82c,createDropdown as _0x5d588b,SplitButtonView as _0x5846c4,addListToDropdown as _0x18b49c,MenuBarMenuView as _0x225691,MenuBarMenuListView as _0x31fb4c,ListSeparatorView as _0x5d4809,MenuBarMenuListItemView as _0x17e556,MenuBarMenuListItemButtonView as _0x12e83f,BodyCollection as _0x59be9e,Dialog as _0x1bef8c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x389bec,hashObject as _0x2731c3,surroundingMarkersDetector as _0x569c12,FOCUS_ANNOTATION_KEYSTROKE as _0x4e8ea0,AriaDescriptionView as _0x499cb3,setupThreadKeyboardNavigation as _0x4a61a7,trimHtml as _0x277e55,UserView as _0x5893a1,LateFocusButtonView as _0x2099e1,getDateTimeFormatter as _0x1e2d61,getAllMarkersDomElementsSorted as _0x49b58d,sanitizeEditorConfig as _0x4646b0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2621dc,LiveRange as _0x157a8e,LivePosition as _0x5a4948,DowncastWriter as _0xb71fdb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3e776a,toWidget as _0x378aa8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x24768c,set as _0x282a21,isEqual as _0x46d056,unset as _0x2e8c25,omit as Vt}from'lodash-es';import{Delete as _0xf029fe,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x42434e,ShiftEnter as _0x5d02f6}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x1cc925,_0x50880d){super(_0x1cc925),this['_enabledCommands']=_0x50880d,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 _0x56add6 of this['editor']['commands']['commands']())_0x56add6['affectsData']&&!this['_enabledCommands']['has'](_0x56add6)&&_0x56add6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x15051d of this['editor']['commands']['commands']())_0x15051d['affectsData']&&!this['_enabledCommands']['has'](_0x15051d)&&_0x15051d['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x51e3aa,_0x390fb1){super(_0x51e3aa),this['_suggestions']=_0x390fb1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2eced5){const _0x18de2b=this['_suggestions']['get'](_0x2eced5);if(!_0x18de2b)throw new _0x4d7761('track-changes-accept-suggestion-not-found',this);const _0x36fc9f=_0x18de2b['getRanges']();this['editor']['model']['canEditAt'](_0x36fc9f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x18de2b);}}class R extends Yt{['_suggestions'];constructor(_0x503121,_0x1bf5b1){super(_0x503121),this['_suggestions']=_0x1bf5b1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe33b20){const _0x439f2d=this['_suggestions']['get'](_0xe33b20);if(!_0x439f2d)throw new _0x4d7761('track-changes-discard-suggestion-not-found',this);const _0x1c48b1=_0x439f2d['getRanges']();this['editor']['model']['canEditAt'](_0x1c48b1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x439f2d);}}function cs(_0x11eb9e,_0x506c2b){let _0x2060b9='';return _0x2060b9+=_0x11eb9e['split']('*')['map']((_0x56e90a,_0x447628)=>_0x447628%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x56e90a)+'</span>':nn(_0x56e90a))['join'](''),_0x506c2b&&(_0x2060b9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x506c2b['value']+'\x22\x20title=\x22'+_0x506c2b['title']+'\x22></span>'),_0x2060b9;}function nn(_0x454903){const _0x3e79b4=document['createElement']('span');return _0x3e79b4['innerText']=_0x454903,_0x3e79b4['innerHTML'];}function Zt(_0x16b47d){return _0x16b47d['sort']((_0x3c7929,_0xf230ba)=>'deletion'==_0x3c7929['type']&&'deletion'!=_0xf230ba['type']?-0x1:'deletion'!=_0x3c7929['type']&&'deletion'==_0xf230ba['type']?0x1:0x0);}function to(_0x409178,_0x4b6d4f){let _0xb21e36,_0x2e515d=0x0;const _0x56a011=[],_0x4d8284=_0x4b6d4f['schema'];for(;_0x2e515d<_0x409178['length'];){const _0x130acd=_0x409178[_0x2e515d],_0x567229=_0x409178[_0x2e515d+0x1];_0xb21e36||(_0xb21e36=_0x4b6d4f['createPositionBefore'](_0x130acd)),on(_0x4b6d4f,_0x130acd,_0x567229)||(_0x56a011['push'](_0x4b6d4f['createRange'](_0xb21e36,_0x4d8284['isObject'](_0x130acd)?_0x4b6d4f['createPositionAfter'](_0x130acd):_0x4b6d4f['createPositionAt'](_0x130acd,'end'))),_0xb21e36=null),_0x2e515d++;}return _0x56a011;}function on(_0x3a871c,_0x2e1e50,_0x4a8b3d){if(!_0x4a8b3d)return!0x1;const _0x4bc64f=_0x3a871c['createPositionAfter'](_0x2e1e50),_0x44ecf1=_0x3a871c['createPositionBefore'](_0x4a8b3d);return _0x4bc64f['isTouching'](_0x44ecf1);}function ts(_0x17816a,_0x1b70fe,_0x31d99f){for(;_0x31d99f['length'];){const _0x122972=_0x31d99f['splice'](0x0,0x64);_0x17816a['change'](()=>{for(const _0x1099cf of _0x122972)_0x1099cf['isInContent']&&_0x1b70fe['execute'](_0x1099cf['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x2ba01b,_0x38c401,_0x4e8d8c){super(_0x2ba01b),this['_command']=_0x38c401,this['_suggestions']=_0x4e8d8c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x130b91=Array['from'](this['_suggestions']['values']())['some'](_0xca4ea6=>_0xca4ea6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x130b91;}['execute'](){const _0x1f8a89=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x36d17c of _0x1f8a89){const _0xa10630=_0x36d17c['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa10630))return;}ts(this['editor']['model'],this['_command'],_0x1f8a89);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x363c4b,_0x42f3fd,_0x7971c5){super(_0x363c4b),this['_command']=_0x42f3fd,this['_suggestions']=_0x7971c5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x208a35=this['editor']['model']['document']['selection'],_0x18fec3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x445a70,_0x386360){const _0x481fc7=Array['from'](_0x445a70['getRanges']()),_0x2a86d1=new Set();for(const _0x3b054e of _0x386360)if(_0x3b054e['isInContent']){for(const _0x172eca of _0x481fc7)for(const _0x1fc642 of _0x3b054e['getRanges']())(_0x172eca['isIntersecting'](_0x1fc642)||_0x445a70['isCollapsed']&&!_0x3b054e['isMultiRange']&&_0x3b054e['next']&&_0x1fc642['end']['isTouching'](_0x172eca['start']))&&_0x2a86d1['add'](_0x3b054e);}return _0x2a86d1;}(_0x208a35,_0x18fec3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26e330=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x19576a of _0x26e330){const _0x182f07=_0x19576a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x182f07))return;}ts(this['editor']['model'],this['_command'],_0x26e330);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xbf6237(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4070c9,_0x4ef099){super(),this['id']=_0x4ef099['id'],this['type']=_0x4ef099['type'],this['subType']=_0x4ef099['subType']||null,this['author']=_0x4ef099['author'],this['creator']=_0x4ef099['creator']||_0x4ef099['author'],this['isExternal']=Boolean(_0x4ef099['attributes']&&_0x4ef099['attributes']['@external']),this['data']=null,this['_model']=_0x4070c9,this['_onAccept']=_0x4ef099['onAccept'],this['_onDiscard']=_0x4ef099['onDiscard'],this['_onAttributesChange']=_0x4ef099['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ef099['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 _0x2a57b8=this;for(;_0x2a57b8['previous'];)_0x2a57b8=_0x2a57b8['previous'];return _0x2a57b8;}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'](_0x5189b7){this['_markerNames']['add'](_0x5189b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5420d6=>this['_model']['markers']['get'](_0x5420d6))['filter'](_0x3e1ffb=>_0x3e1ffb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54300c=>{for(const _0x22962a of this['getMarkers']())_0x54300c['removeMarker'](_0x22962a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c5efa){this['_model']['change'](_0x3ca127=>{_0x3ca127['removeMarker'](_0x3c5efa);}),this['_markerNames']['delete'](_0x3c5efa);}['addRange'](_0x6ba855){const _0x5cef1b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5cef1b),this['_model']['change'](_0x3bf244=>{_0x3bf244['addMarker'](_0x5cef1b,{'range':_0x6ba855,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ccd7c){for(const _0x48ed99 of this['getRanges']())if(_0x48ed99['isIntersecting'](_0x5ccd7c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1f5edc=>_0x1f5edc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2a3ec5,_0x2c62f8)=>[..._0x2a3ec5,..._0x2c62f8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2cab48=this['getRanges']();if(0x1!=_0x2cab48['length'])return null;const _0x5e90b2=_0x2cab48[0x0],_0x5bad86=_0x5e90b2['start']['nodeAfter'],_0xdc7073=_0x5e90b2['end']['nodeBefore'];return _0x5bad86 instanceof _0x2621dc?_0x5bad86!=_0xdc7073?null:_0x5bad86: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 _0x4bfaf0=[];let _0x8a64b4=this['head'];for(;_0x8a64b4;)_0x4bfaf0['push'](_0x8a64b4),_0x8a64b4=_0x8a64b4['next'];return _0x4bfaf0;}['setAttribute'](_0x1d1117,_0x516eac){const _0x5cff9e=_0x24768c(this['attributes']);_0x282a21(_0x5cff9e,_0x1d1117,_0x516eac),_0x46d056(_0x5cff9e,this['attributes'])||(this['attributes']=_0x5cff9e,this['_onAttributesChange'](_0x5cff9e));}['removeAttribute'](_0x596a2c){const _0x39f9ec=_0x24768c(this['attributes']);_0x2e8c25(_0x39f9ec,_0x596a2c),_0x46d056(_0x39f9ec,this['attributes'])||(this['attributes']=_0x39f9ec,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 _0x2730a7()['substr'](0x1,0x5);}}function o(_0x20383f,_0x14acbb,_0x3f2a65){const _0x22565a=_0x20383f['t'],t=_0x20383f['t'];switch(_0x14acbb){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',_0x3f2a65);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f2a65);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f2a65);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f2a65);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f2a65);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',_0x3f2a65);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f2a65);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',_0x3f2a65);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f2a65);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f2a65);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f2a65);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f2a65);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f2a65);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f2a65);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f2a65);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f2a65);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f2a65);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f2a65);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f2a65);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f2a65);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f2a65);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f2a65);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f2a65);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f2a65);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f2a65);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f2a65);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f2a65);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f2a65);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f2a65);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f2a65);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f2a65);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f2a65);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'},_0x3f2a65);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f2a65);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 _0x22565a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f2a65);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x22565a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f2a65);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);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'},_0x3f2a65);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x14acbb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45aa4e,_0x1fbc6f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45aa4e,this['_locale']=_0x1fbc6f;}['getDescriptions'](_0x5523ab){const _0x217601=[],_0x46cab1=new Set(),_0x12ed64=new Set();for(let _0x311a59=0x0;_0x311a59<_0x5523ab['length'];_0x311a59++){const _0x543148=_0x5523ab[_0x311a59];if(!_0x543148['isInContent'])continue;const _0x3e1bc9=this['_handleCustomCallbackDescription'](_0x543148);if(_0x3e1bc9){if(null!=_0x543148['subType']){if(_0x46cab1['has'](_0x543148['subType']))continue;_0x46cab1['add'](_0x543148['subType']);}_0x217601['push'](_0x3e1bc9);}else{if('attribute'!=_0x543148['type'])'insertion'!=_0x543148['type']&&'deletion'!=_0x543148['type']||this['_handleInsertRemoveSuggestionDescription'](_0x217601,_0x543148,_0x5523ab[_0x311a59+0x1]);else{const _0x40b19f=_0x543148['data']['key'];if(_0x12ed64['has'](_0x40b19f))continue;_0x12ed64['add'](_0x543148['data']['key']),_0x40b19f==m?this['_handleRenameSuggestionDescription'](_0x217601,_0x543148):this['_handleAttributeSuggestionDescription'](_0x217601,_0x543148);}}}return this['_resolveDescriptionItems'](_0x217601);}['registerDescriptionCallback'](_0x21769d){this['_customCallbacks']['push'](_0x21769d);}['registerElementLabel'](_0x105328,_0x23c54d,_0x268acd=_0x1ed5be['normal']){'function'==typeof _0x105328?_0x42aa9e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x105328,'label':_0x23c54d,'priority':_0x268acd}):this['_itemLabels']['set'](_0x105328,_0x23c54d);}['registerAttributeLabel'](_0x24c6f1,_0x165bfc){this['_attributeLabels']['set'](_0x24c6f1,_0x165bfc);}['getItemLabel'](_0x4dafdd,_0x26a1a8=0x1){let _0x5b8622;for(const _0x53732b of this['_itemLabelsCallbacks'])if(_0x53732b['matchingCallback'](_0x4dafdd)){_0x5b8622=_0x53732b['label'];break;}return _0x5b8622||(_0x5b8622=this['_itemLabels']['get'](_0x4dafdd['name'])),_0x5b8622?_0x5b8622(_0x26a1a8):0x1!==_0x26a1a8?_0x26a1a8+'\x20'+_0x4dafdd['name']+'s':''+_0x4dafdd['name'];}['_addDescriptionItems'](_0x50502,_0x27c6ea){const _0x3235cb=_0x27c6ea['getFirstRange']()['getWalker'](),_0x2d3655='insertion'==_0x27c6ea['type']?'add':'remove';for(const _0x243b94 of _0x3235cb){const _0x4a46fa=_0x243b94['item'],_0x3ef50c=_0x50502[_0x50502['length']-0x1];if(_0x4a46fa['is']('$textProxy'))_0x3ef50c&&_0x3ef50c['type']['indexOf']('Container')>-0x1&&_0x50502['pop'](),_0x3ef50c&&'text'==_0x3ef50c['type']?_0x3ef50c[_0x2d3655]+=_0x4a46fa['data']:_0x50502['push']({'type':'text','add':'add'==_0x2d3655?_0x4a46fa['data']:'','remove':'remove'==_0x2d3655?_0x4a46fa['data']:''});else{if(this['_schema']['isObject'](_0x4a46fa)){const _0x357bd4=_0x4a46fa;if(_0x3ef50c&&_0x3ef50c['type']['indexOf']('Container')>-0x1&&_0x50502['pop'](),'elementEnd'==_0x243b94['type'])continue;_0x3ef50c&&_0x3ef50c['type']==_0x2d3655+'Object'&&_0x3ef50c['element']['name']==_0x357bd4['name']?_0x3ef50c['quantity']++:_0x50502['push']({'type':_0x2d3655+'Object','element':_0x357bd4,'quantity':0x1}),_0x3235cb['skip'](_0x23b55c=>!('elementEnd'==_0x23b55c['type']&&_0x23b55c['item']==_0x4a46fa));}else{if(this['_schema']['checkChild'](_0x4a46fa,'$text')||_0x4a46fa['is']('element','softBreak')){const _0xfcf9cc=_0x4a46fa;if('add'==_0x2d3655&&'elementStart'==_0x243b94['type']||'remove'==_0x2d3655&&'elementEnd'==_0x243b94['type'])continue;if(_0x3ef50c&&-0x1==_0x3ef50c['type']['indexOf']('Container')){'text'==_0x3ef50c['type']&&(_0x3ef50c[_0x2d3655]+='\x0a');continue;}let _0x232ec7;if(_0x232ec7='add'==_0x2d3655?_0xfcf9cc['nextSibling']&&!this['_schema']['isObject'](_0xfcf9cc['nextSibling'])?_0xfcf9cc['nextSibling']:null:_0xfcf9cc['previousSibling']&&!this['_schema']['isObject'](_0xfcf9cc['previousSibling'])?_0xfcf9cc['previousSibling']:null,_0xfcf9cc['isEmpty']||_0x232ec7&&_0x232ec7['isEmpty']){const _0x1c7eae=_0x232ec7&&_0x232ec7['isEmpty']?_0x232ec7:_0xfcf9cc;_0x3ef50c&&_0x3ef50c['type']==_0x2d3655+'EmptyContainer'&&_0x3ef50c['element']['name']==_0x1c7eae['name']?_0x3ef50c['quantity']++:_0x50502['push']({'type':_0x2d3655+'EmptyContainer','element':_0x1c7eae,'quantity':0x1});}else _0x50502['push']({'type':_0x2d3655+'Container','element':_0xfcf9cc});}}}}}['_resolveDescriptionItems'](_0x57e751){const _0x4bdcca=this['_locale'],_0x23f60c=[],_0x112d74=[],_0x85fec=[];for(const _0x35ce56 of _0x57e751)switch(_0x35ce56['type']){case'text':if(_0x35ce56['add']=_0x35ce56['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35ce56['remove']=_0x35ce56['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35ce56['add']&&''!=_0x35ce56['remove']){_0x23f60c['push']({'type':'replace','content':o(_0x4bdcca,'REPLACE_TEXT',['\x22'+_0x35ce56['remove']+'\x22','\x22'+_0x35ce56['add']+'\x22'])});continue;}if(null!=_0x35ce56['add']['match'](/^ +$/)){_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0',o(_0x4bdcca,'ELEMENT_SPACE',_0x35ce56['add']['length']))});continue;}if(null!=_0x35ce56['remove']['match'](/^ +$/)){_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0',o(_0x4bdcca,'ELEMENT_SPACE',_0x35ce56['remove']['length']))});continue;}if(''!=_0x35ce56['add']){_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0','\x22'+_0x35ce56['add']+'\x22')});continue;}_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0','\x22'+_0x35ce56['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Insert:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Remove:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'addContainer':_0x23f60c['push']({'type':'insertion','content':o(_0x4bdcca,'*Split:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'removeContainer':_0x23f60c['push']({'type':'deletion','content':o(_0x4bdcca,'*Merge:*\x20%0',this['getItemLabel'](_0x35ce56['element'],_0x35ce56['quantity']))});continue;case'addFormat':_0x112d74['push'](_0x35ce56['key']);continue;case'removeFormat':_0x85fec['push'](_0x35ce56['key']);continue;default:_0x23f60c['push'](_0x35ce56);}if(_0x112d74['length']){const _0x21d4fc=_0x112d74['map'](_0x50c000=>this['_attributeLabels']['has'](_0x50c000)?this['_attributeLabels']['get'](_0x50c000):_0x50c000)['join'](',\x20');_0x23f60c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x21d4fc)});}if(_0x85fec['length']){const _0x144790=_0x85fec['map'](_0x5c6444=>this['_attributeLabels']['has'](_0x5c6444)?this['_attributeLabels']['get'](_0x5c6444):_0x5c6444)['join'](',\x20');_0x23f60c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x144790)});}return _0x23f60c;}['_handleCustomCallbackDescription'](_0x3c6c38){for(const _0x543e3a of this['_customCallbacks']){const _0x27392e=_0x543e3a(_0x3c6c38);if(_0x27392e&&'type'in _0x27392e)return _0x27392e;}}['_handleAttributeSuggestionDescription'](_0x35f25c,_0x5551e2){const _0x4bb0b5=_0x5551e2['data'],_0xb88255=void 0x0===_0x4bb0b5['newValue']?'removeFormat':'addFormat';_0x35f25c['push']({'type':_0xb88255,'key':_0x4bb0b5['key']});}['_handleRenameSuggestionDescription'](_0x34fa2d,_0x17d56a){_0x34fa2d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x17d56a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2cf93f,_0x5b6bbf,_0x335c36){if(this['_addDescriptionItems'](_0x2cf93f,_0x5b6bbf),_0x335c36&&_0x335c36['getFirstRange']()&&!_0x5b6bbf['getFirstRange']()['end']['isEqual'](_0x335c36['getFirstRange']()['start'])){const _0x6cc956=_0x2cf93f[_0x2cf93f['length']-0x1],_0x9426f='insertion'==_0x5b6bbf['type']?'add':'remove';_0x6cc956&&'text'==_0x6cc956['type']&&(_0x6cc956[_0x9426f]+='\x0a');}}}class U extends _0x577abc{['afterInit'](){const _0x4d1508=this['editor'],_0x3cbd48=_0x4d1508['plugins']['get']('TrackChangesEditing');_0x4d1508['commands']['get']('showAIAssistant')&&_0x3cbd48['enableCommand']('showAIAssistant');}}class V extends _0x577abc{['afterInit'](){const _0x16f3bd=this['editor'],_0x400b99=_0x16f3bd['locale'];if(!_0x16f3bd['plugins']['has']('AlignmentEditing'))return;const _0x3e6fe9=_0x16f3bd['plugins']['get']('TrackChangesEditing');_0x3e6fe9['enableDefaultAttributesIntegration']('alignment'),_0x3e6fe9['registerBlockAttribute']('alignment'),_0x3e6fe9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x400b99,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d6dba=this['editor'],_0x3d79cf=_0x8d6dba['locale'];_0x8d6dba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1efba8=>{if('formatBlock'!=_0x1efba8['type'])return;const {data:_0x169119}=_0x1efba8;if(_0x169119&&'alignment'==_0x169119['commandName']){const _0x575c7f=_0x169119['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d79cf,'*Format:*\x20%0',function(_0x204fe9){switch(_0x204fe9){case'left':return o(_0x3d79cf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d79cf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d79cf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d79cf,'FORMAT_JUSTIFY_TEXT');}}(_0x575c7f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x577abc{['afterInit'](){const _0x24d66b=this['editor'],_0x4b6cb8=_0x24d66b['plugins']['get']('TrackChangesEditing'),_0x1aa979=_0x24d66b['locale'];for(const _0x94bbaa of ti){if(!_0x24d66b['plugins']['has'](_0x94bbaa))continue;const _0x274d71=_0x94bbaa['slice'](0x0,-0x7)['toLowerCase'](),_0x26ce7c='FORMAT_'+_0x274d71['toUpperCase']();_0x4b6cb8['enableDefaultAttributesIntegration'](_0x274d71),_0x4b6cb8['registerInlineAttribute'](_0x274d71),_0x4b6cb8['descriptionFactory']['registerAttributeLabel'](_0x274d71,o(_0x1aa979,_0x26ce7c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e08e=this['editor'],_0x2116ed=_0x41e08e['locale'],_0x2d8a7e=_0x41e08e['plugins']['get']('TrackChangesEditing');function _0xb0e10c(_0x425b68,_0x3621ab){_0x2d8a7e['descriptionFactory']['registerDescriptionCallback'](_0x3d4c76=>{if('formatInline'!=_0x3d4c76['type'])return;const {data:_0x5df66c}=_0x3d4c76;return _0x5df66c&&_0x5df66c['commandName']===_0x425b68?_0x5df66c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2116ed,'*Format:*\x20%0',_0x3621ab)}:{'type':'format','content':o(_0x2116ed,'*Remove\x20format:*\x20%0',_0x3621ab)}:void 0x0;});}_0xb0e10c('bold',o(_0x2116ed,'FORMAT_BOLD')),_0xb0e10c('italic',o(_0x2116ed,'FORMAT_ITALIC')),_0xb0e10c('underline',o(_0x2116ed,'FORMAT_UNDERLINE')),_0xb0e10c('code',o(_0x2116ed,'FORMAT_CODE')),_0xb0e10c('strikethrough',o(_0x2116ed,'FORMAT_STRIKETHROUGH')),_0xb0e10c('subscript',o(_0x2116ed,'FORMAT_SUBSCRIPT')),_0xb0e10c('superscript',o(_0x2116ed,'FORMAT_SUPERSCRIPT'));}}class F extends _0x577abc{['afterInit'](){const _0x372a8b=this['editor'],_0x55f4fb=_0x372a8b['locale'];if(!_0x372a8b['plugins']['has']('BlockQuoteEditing'))return;const _0x3b9d90=_0x372a8b['plugins']['get']('TrackChangesEditing'),_0x3108fa=this['editor']['commands']['get']('blockQuote');_0x3b9d90['enableCommand']('blockQuote',(_0x5d4c20,_0x321a38={})=>{const _0x379e63=this['editor']['model']['document']['selection'],_0x284ae9=_0x321a38&&void 0x0!==_0x321a38['forceValue']?_0x321a38['forceValue']:!_0x3108fa['value'];let _0x6f1667=[];if(_0x284ae9){const _0x46f594=Array['from'](_0x379e63['getSelectedBlocks']())['filter'](_0x16b7fc=>oo(_0x16b7fc)||function(_0x2dce26,_0x27b410){const _0x355ccd=_0x27b410['checkChild'](_0x2dce26['parent'],'blockQuote'),_0x4b5d27=_0x27b410['checkChild'](['$root','blockQuote'],_0x2dce26);return _0x355ccd&&_0x4b5d27;}(_0x16b7fc,this['editor']['model']['schema']));_0x6f1667=to(_0x46f594,_0x372a8b['model']);}else{const _0x455cbe=Array['from'](_0x379e63['getSelectedBlocks']())['filter'](_0xbc11d6=>oo(_0xbc11d6));_0x6f1667=to(_0x455cbe,_0x372a8b['model']);}_0x372a8b['model']['change'](()=>{for(const _0x4702c3 of _0x6f1667)_0x3b9d90['markBlockFormat'](_0x4702c3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x284ae9}]});});}),_0x3b9d90['descriptionFactory']['registerDescriptionCallback'](_0x2d5cd2=>{const {data:_0x70473b}=_0x2d5cd2;if(_0x70473b&&'blockQuote'==_0x70473b['commandName']){const _0xef798d=o(_0x55f4fb,'ELEMENT_BLOCK_QUOTE');return _0x70473b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55f4fb,'*Set\x20format:*\x20%0',_0xef798d)}:{'type':'format','content':o(_0x55f4fb,'*Remove\x20format:*\x20%0',_0xef798d)};}});}}function oo(_0x3bf5ab){return'blockQuote'==_0x3bf5ab['parent']['name'];}class L extends _0x577abc{['afterInit'](){const _0x514ecf=this['editor'],_0xc2676e=_0x514ecf['locale'],_0x131fb3=_0x514ecf['plugins']['get']('TrackChangesEditing');_0x514ecf['plugins']['has']('BookmarkEditing')&&(_0x131fb3['enableCommand']('insertBookmark'),_0x131fb3['enableDefaultAttributesIntegration']('updateBookmark'),_0x131fb3['registerBlockAttribute']('bookmarkId'),_0x131fb3['descriptionFactory']['registerDescriptionCallback'](_0x4f671a=>{if('insertion'!=_0x4f671a['type']&&'deletion'!=_0x4f671a['type']&&'attribute'!=_0x4f671a['type'])return;const _0x5ae118=_0x4f671a['getContainedElement']();if(null==_0x5ae118)return;if(!_0x5ae118['is']('element','bookmark'))return;const _0x246118=_0x5ae118['getAttribute']('bookmarkId');if('insertion'==_0x4f671a['type'])return{'type':'insertion','content':o(_0xc2676e,'*Insert:*\x20%0','\x22'+_0x246118+'\x22\x20'+o(_0xc2676e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4f671a['type'])return{'type':'deletion','content':o(_0xc2676e,'*Remove:*\x20%0','\x22'+_0x246118+'\x22\x20'+o(_0xc2676e,'ELEMENT_BOOKMARK'))};const {data:_0x4ca9dd}=_0x4f671a;if(!_0x4ca9dd||'bookmarkId'!=_0x4ca9dd['key'])return;return{'type':'format','content':o(_0xc2676e,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ca9dd['newValue']+'\x22')};}));}}class J extends _0x577abc{['afterInit'](){const _0x42bf13=this['editor'];_0x42bf13['plugins']['has']('CaseChange')&&(_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42bf13['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x577abc{['afterInit'](){const _0x1e0d16=this['editor'];_0x1e0d16['commands']['get']('ckbox')&&_0x1e0d16['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x577abc{['afterInit'](){const _0x1af2ad=this['editor'];if(!_0x1af2ad['plugins']['has']('CodeBlock'))return;const _0x54a6a1=_0x1af2ad['plugins']['get']('TrackChangesEditing'),_0xeb17ca=_0x1af2ad['locale'],_0x45becc=_0x1af2ad['config']['get']('codeBlock')['languages'],_0x2b8f65=_0x1af2ad['commands']['get']('codeBlock');_0x54a6a1['enableCommand']('indentCodeBlock'),_0x54a6a1['enableCommand']('outdentCodeBlock'),_0x54a6a1['enableCommand']('codeBlock',(_0xb3c9e,_0xb8da85={})=>{const _0x986165=_0x1af2ad['model'],_0x3c07cf=_0x1af2ad['model']['document']['selection'],_0x5af0d8=_0xb8da85&&void 0x0!==_0xb8da85['forceValue']?_0xb8da85['forceValue']:!_0x2b8f65['value'];let _0x1ed1ae;_0xb8da85['language']||(_0xb8da85['language']=_0x45becc[0x0]['language']),_0x1ed1ae=_0x5af0d8?Array['from'](_0x3c07cf['getSelectedBlocks']())['filter'](_0x23535b=>eo(_0x23535b)||function(_0x5d3802,_0x7b68d5){if(_0x5d3802['is']('rootElement')||_0x7b68d5['isLimit'](_0x5d3802))return!0x1;return _0x7b68d5['checkChild'](_0x5d3802['parent'],'codeBlock');}(_0x23535b,_0x986165['schema'])):Array['from'](_0x3c07cf['getSelectedBlocks']())['filter'](_0x369b2a=>eo(_0x369b2a));const _0x205974=to(_0x1ed1ae,_0x986165);_0x986165['change'](()=>{for(const _0x4637cc of _0x205974)_0x54a6a1['markBlockFormat'](_0x4637cc,{'commandName':'codeBlock','commandParams':[{..._0xb8da85,'forceValue':_0x5af0d8}],'formatGroupId':'blockName'});});}),(_0x54a6a1['descriptionFactory']['registerElementLabel']('codeBlock',_0x4610ad=>o(_0xeb17ca,'ELEMENT_CODE_BLOCK',_0x4610ad)),_0x54a6a1['descriptionFactory']['registerDescriptionCallback'](_0x31a316=>{if('formatBlock'!=_0x31a316['type'])return;const _0x2f25c6=_0xeb17ca['t'],{data:_0x8c8beb}=_0x31a316;if(!_0x8c8beb||'codeBlock'!=_0x8c8beb['commandName'])return;const _0x505a09=_0x8c8beb['commandParams'][0x0]['language'],_0x333185=_0x2f25c6(_0x45becc['find'](_0x85e5d7=>_0x85e5d7['language']===_0x505a09)['label'])['toLowerCase']();return _0x8c8beb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xeb17ca,'*Set\x20format:*\x20%0',o(_0xeb17ca,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x333185+')')}:{'type':'format','content':o(_0xeb17ca,'*Remove\x20format:*\x20%0',o(_0xeb17ca,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d121b){return'codeBlock'==_0x3d121b['name'];}class z extends _0x577abc{['afterInit'](){const _0x2408ad=this['editor'];if(!_0x2408ad['plugins']['has']('CommentsEditing'))return;_0x2408ad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x54ae69,_0x23d1ad,_0x12791c){const _0x2d4345=[];for(const _0x55834b of _0x23d1ad['getItems']())_0x55834b['hasAttribute'](_0x54ae69)&&_0x2d4345['push'](_0x12791c['createRangeOn'](_0x55834b));return _0x2d4345;}function De(_0xa9902a,_0x8f10f,{showActiveMarker:_0x2b8733=!0x0}={}){const _0x3769cb=_0xa9902a['plugins']['get']('TrackChangesEditing');return(_0x4644b0,_0x598b59,_0x2d81d6)=>{if(!_0x2d81d6['consumable']['test'](_0x598b59['markerRange'],_0x4644b0['name']))return;const _0xbec622=_0x598b59['markerRange']['getWalker'](),_0x23f9f8=_0x598b59['markerRange']['start'],_0x2d2d2b=_0xa9902a['model']['schema'];let _0x3e2991=null,_0x561094=null,_0x5f5657=!0x1,_0x1f148d=!0x1;for(const _0x23717d of _0xbec622){const _0x25370d=_0x23717d['item'];_0x5f5657=_0x5f5657||_0x2d2d2b['isContent'](_0x25370d);const _0x16111e=_0x2d81d6['mapper']['toViewElement'](_0x25370d);if(_0x16111e&&_0x16111e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23717d['type']&&(_0x2d2d2b['isBlock'](_0x25370d)&&!_0x2d2d2b['isLimit'](_0x25370d)&&(_0x25370d['nextSibling']||_0x23f9f8['isAtEnd']?_0x3e2991&&_0x3e2991['parent']==_0x25370d||(_0x3e2991=_0x25370d,_0x156d8c(_0x23717d['previousPosition']),_0x1f148d=!0x0):_0x561094=_0x561094||_0x23717d['previousPosition']));}function _0x156d8c(_0x29823e){const {authorId:_0x1fbab9}=_0x3769cb['_splitMarkerName'](_0x598b59['markerName']),_0x178115=_0x2d81d6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8f10f,'data-author-id':_0x1fbab9}),_0x2d41ce=_0x2d81d6['mapper']['toViewPosition'](_0x29823e);_0x2b8733&&_0x3769cb['activeMarkers']['includes'](_0x598b59['markerName'])&&_0x2d81d6['writer']['addClass']('ck-suggestion-marker--active',_0x178115),_0x2d81d6['writer']['insert'](_0x2d41ce,_0x178115),_0x2d81d6['mapper']['bindElementToMarker'](_0x178115,_0x598b59['markerName']);}_0x5f5657||_0x1f148d||!_0x561094||_0x156d8c(_0x561094);};}class K extends _0x577abc{static get['requires'](){return[_0xf029fe];}['init'](){const _0x4f5246=this['editor'],_0x15d941=_0x4f5246['plugins']['get']('TrackChangesEditing');_0x15d941['enableCommand']('delete');const _0x5704de=_0x4f5246['commands']['get']('deleteForward');_0x15d941['enableCommand']('deleteForward',(_0x3e8920,_0x27b6f3={})=>{const _0x11f9b5=_0x4f5246['model']['createSelection'](_0x4f5246['model']['document']['selection']);_0x11f9b5['isCollapsed']&&_0x4f5246['model']['modifySelection'](_0x11f9b5,{'direction':'forward','unit':_0x27b6f3['unit']});const _0x56fa4d=_0x11f9b5['getFirstRange'](),_0x2d28ef=_0x157a8e['fromRange'](_0x56fa4d);let _0x27e521;_0x3e8920(_0x27b6f3),_0x27e521='$graveyard'==_0x2d28ef['root']['rootName']?_0x4f5246['model']['createRange'](_0x56fa4d['start']):_0x4f5246['model']['createRange'](_0x2d28ef['start'],_0x2d28ef['end']),_0x2d28ef['detach'](),_0x4f5246['model']['enqueueChange'](_0x5704de['buffer']['batch'],_0x35e518=>{_0x5704de['buffer']['lock'](),_0x35e518['setSelection'](_0x35e518['createRange'](_0x27e521['end'])),_0x5704de['buffer']['unlock']();});}),_0x4f5246['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4f5246,'merge'),{'priority':'high'}),_0x4f5246['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x367cf2,_0x351adc,_0x154e15)=>{_0x154e15['options']['showSuggestionHighlights']&&De(_0x4f5246,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x367cf2,_0x351adc,_0x154e15);},{'priority':'high'}),_0x4f5246['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x27c5b8,_0x483b87,_0x51d03c)=>{const _0x3a124e=_0x51d03c['mapper']['markerNameToElements'](_0x483b87['markerName']);if(_0x3a124e){for(const _0x284355 of _0x3a124e)_0x284355['is']('uiElement')&&(_0x51d03c['mapper']['unbindElementFromMarkerName'](_0x284355,_0x483b87['markerName']),_0x51d03c['writer']['remove'](_0x284355));}},{'priority':'high'});}}class W extends _0x577abc{['afterInit'](){const _0x5f50d5=this['editor'];if(!_0x5f50d5['plugins']['has']('ListEditing'))return;const _0xc4e62d=_0x5f50d5['locale'],_0x5f34eb=_0x5f50d5['plugins']['get']('TrackChangesEditing'),_0x3d7edd=_0x5f50d5['plugins']['has']('TodoListEditing'),_0x380650=!!_0x5f50d5['config']['get']('list.multiBlock');function _0x268a3a(_0xf106a2){return{'type':'format','content':''+o(_0xc4e62d,'*Set\x20format:*\x20%0',_0xf106a2)};}function _0x3c73e9(_0x254bcc){return{'type':'format','content':''+o(_0xc4e62d,'*Remove\x20format:*\x20%0',_0x254bcc)};}_0x5f34eb['enableDefaultAttributesIntegration']('numberedList'),_0x5f34eb['enableDefaultAttributesIntegration']('bulletedList'),_0x5f34eb['enableDefaultAttributesIntegration']('customNumberedList'),_0x5f34eb['enableDefaultAttributesIntegration']('customBulletedList'),_0x5f34eb['enableDefaultAttributesIntegration']('indentList'),_0x5f34eb['enableDefaultAttributesIntegration']('outdentList'),_0x5f34eb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5f34eb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5f34eb['registerBlockAttribute']('listItemId'),_0x5f34eb['registerBlockAttribute']('listType'),_0x5f34eb['registerBlockAttribute']('listIndent'),_0x380650&&(_0x5f34eb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5f34eb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d7edd&&(_0x5f34eb['enableDefaultAttributesIntegration']('todoList'),_0x5f34eb['enableDefaultAttributesIntegration']('checkTodoList'),_0x5f34eb['registerBlockAttribute']('todoListChecked'),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x1ebd80=>{const {data:_0x303d22}=_0x1ebd80;if(_0x303d22&&'todoListChecked'==_0x303d22['key'])return{'type':'format','content':_0x303d22['newValue']?o(_0xc4e62d,'*Check\x20item*'):o(_0xc4e62d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f142a=>{if(_0x3f142a['batch']['isUndo'])return!0x1;let _0x4917d3=!0x1;const _0x37ff1f=_0x5f34eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc743be=>'todoListChecked'===_0x5f34eb['_getAttributeKey'](_0xc743be));for(const _0x9991c of _0x37ff1f){'todo'!=_0x9991c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5f34eb['_findSuggestions'](_0x9991c['getFirstRange'](),'attribute')['find'](_0x5ab192=>'listType'===_0x5f34eb['_getAttributeKey'](_0x5ab192['suggestion']))||(_0x3f142a['removeMarker'](_0x9991c['getFirstMarker']()),_0x4917d3=!0x0));}return _0x4917d3;})),_0x5f34eb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc4e62d,'FORMAT_INDENT'));const _0x2e4fbe={'type':'format','content':''};_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x1caf83=>{const {data:_0x3beebd}=_0x1caf83;if(!_0x3beebd||'listType'!=_0x3beebd['key'])return;let _0x2067f1=_0x1caf83['head'];for(;_0x2067f1;){if(_0x2067f1['data']&&(('listStyle'==_0x2067f1['data']['key']||'listMarkerStyle'==_0x2067f1['data']['key'])&&(_0x2067f1['data']['newValue']&&'default'!=_0x2067f1['data']['newValue']||'default'!=_0x2067f1['data']['oldValue']&&!_0x3beebd['newValue'])||!_0x380650&&_0x2067f1['data']['key']==m))return _0x2e4fbe;_0x2067f1=_0x2067f1['next'];}if(null==_0x3beebd['newValue'])switch(_0x3beebd['oldValue']){case'bulleted':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c73e9(o(_0xc4e62d,'ELEMENT_TODO_LIST'));}switch(_0x3beebd['newValue']){case'bulleted':return _0x268a3a(o(_0xc4e62d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x268a3a(o(_0xc4e62d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x268a3a(o(_0xc4e62d,'ELEMENT_TODO_LIST'));}}),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x54a569=>{const {data:_0x46ef5d}=_0x54a569;if(_0x46ef5d&&'listIndent'==_0x46ef5d['key'])return null==_0x46ef5d['newValue']||null==_0x46ef5d['oldValue']&&0x0==_0x46ef5d['newValue']?_0x2e4fbe:void 0x0;}),_0x5f34eb['descriptionFactory']['registerDescriptionCallback'](_0x55bc5e=>{if('attribute'!=_0x55bc5e['type'])return;const {data:_0x3dde09}=_0x55bc5e;if(!_0x3dde09||'listItemId'!=_0x3dde09['key'])return;const _0x49bb47=Te(_0x55bc5e);return'newValue'==_0x49bb47?{'type':'format','content':o(_0xc4e62d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49bb47?{'type':'format','content':o(_0xc4e62d,'*Split:*\x20list\x20item')}:_0x2e4fbe;}),_0x5f50d5['model']['document']['registerPostFixer'](_0x3c29c7=>this['listItemIdFixer'](_0x3c29c7)),_0x5f50d5['model']['document']['registerPostFixer'](_0x25653e=>this['noTrackChangesFixer'](_0x25653e)),_0x5f50d5['model']['document']['on']('change:data',(_0x5689d3,_0x5da559)=>{if(_0x5da559['isUndo']||!_0x5da559['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4616f6){if(_0x4616f6['batch']['isUndo']||!_0x4616f6['batch']['isLocal'])return!0x1;let _0x45e447=!0x1;const _0x5bee95=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff1da5=>_0xff1da5['data']&&'listItemId'==_0xff1da5['data']['key'])['filter'](_0x4133e0=>_0x4133e0['data']['newValue']&&_0x4133e0['data']['oldValue']);for(const _0x5259a0 of _0x5bee95)Te(_0x5259a0)||(_0x4616f6['removeMarker'](_0x5259a0['getFirstMarker']()),_0x45e447=!0x0);return _0x45e447;}['noTrackChangesFixer'](_0xe30dd1){if(_0xe30dd1['batch']['isUndo']||!_0xe30dd1['batch']['isLocal'])return!0x1;const _0x7cba97=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7cba97['trackChangesCommand']['value'])return!0x1;let _0x20f910=!0x1;const _0x4f95e9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23a1f7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x485f93=>'attribute'==_0x485f93['type'])['filter'](_0x445000=>_0x4f95e9['includes'](_0x445000['attributeKey']));if(0x0==_0x23a1f7['length'])return _0x20f910;for(const _0x566019 of _0x23a1f7){const _0x2e2c03=_0x7cba97['_findSuggestions'](_0x566019['range'],'attribute')['filter'](_0x3f37de=>!_0x3f37de['meta']['isNextTo'])['map'](_0x5137fa=>_0x5137fa['suggestion'])['filter'](_0x123c3d=>{const _0x46f8db=_0x7cba97['_getAttributeKey'](_0x123c3d);return _0x4f95e9['includes'](_0x46f8db);});if(_0x2e2c03['length']){for(const _0x37c577 of _0x2e2c03)_0xe30dd1['removeMarker'](_0x37c577['getFirstMarker']());_0x20f910=!0x0;}}return _0x20f910;}['assureChains'](){const _0x29c0c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e898f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5eac1c;const _0x19a6de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be83e=>{if(_0x2be83e['data']['oldRange']||!_0x2be83e['data']['newRange'])return null;if(!_0x2be83e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x147bd9}=_0x29c0c8['_splitMarkerName'](_0x2be83e['name']);if(!_0x29c0c8['hasSuggestion'](_0x147bd9))return null;const _0x36e325=_0x29c0c8['getSuggestion'](_0x147bd9);return _0x3e898f['includes'](_0x36e325['data']['key']);})['map'](_0x3bd6b5=>{const {id:_0x2bbb3e}=_0x29c0c8['_splitMarkerName'](_0x3bd6b5['name']),_0x29ba7e=_0x29c0c8['getSuggestion'](_0x2bbb3e);return _0x5eac1c=_0x29ba7e['attributes']['groupId'],_0x29ba7e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x19a6de['size'])return;const _0x219aa1=_0x29c0c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x597139=>'attribute'==_0x597139['type']&&_0x597139['data']&&_0x3e898f['includes'](_0x597139['data']['key'])&&_0x597139['attributes']['groupId']!=_0x5eac1c)['map'](_0x4ddfa2=>({'listItem':_0x4ddfa2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ddfa2['attributes']['groupId']})),_0x473a5d=new Set();for(const {groupId:_0x487624,listItem:_0x1360fd}of _0x219aa1)_0x19a6de['has'](_0x1360fd)&&_0x473a5d['add'](_0x487624);for(const _0x985c22 of _0x29c0c8['getSuggestions']())_0x473a5d['has'](_0x985c22['attributes']['groupId'])&&_0x985c22['setAttribute']('groupId',_0x5eac1c);}['_supportLegacySuggestions'](){const _0x2cf022=this['editor'],_0xf806b4=_0x2cf022['locale'],_0x192448=_0x2cf022['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x192448['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1d151f,_0x4516be){const _0x222f13=[];for(let _0x429577 of _0x1d151f)_0x429577['start']['nodeAfter']===_0x429577['end']['parent']&&(_0x429577=_0x2cf022['model']['createRange'](_0x2cf022['model']['createPositionAt'](_0x429577['start']['nodeAfter'],0x0))),_0x222f13['push'](_0x429577);_0x2cf022['model']['change'](_0x89844a=>{const _0x431a1b=_0x2cf022['model']['document']['selection'],_0x5e80e8=Array['from'](_0x431a1b['getRanges']())['map'](_0x53051a=>_0x157a8e['fromRange'](_0x53051a));_0x89844a['setSelection'](_0x222f13),_0x2cf022['commands']['get'](_0x4516be['commandName'])['refresh'](),_0x4516be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2cf022['execute'](_0x4516be['commandName'],..._0x4516be['commandParams']),_0x89844a['setSelection'](_0x5e80e8);for(const _0x1d2f7d of _0x5e80e8)_0x1d2f7d['detach']();});}),_0x192448['descriptionFactory']['registerElementLabel'](function(_0x3cf7ca){const _0x6aba3=!_0x2cf022['model']['schema']['isObject'](_0x3cf7ca),_0x48cc32=_0x3cf7ca['previousSibling'],_0xf92834=_0x3cf7ca['nextSibling'],_0x4ca13a=_0x3cf7ca['getAttribute']('listItemId'),_0x2cae46=!_0x48cc32||_0x48cc32['getAttribute']('listItemId')!==_0x4ca13a,_0x6c7d57=!_0xf92834||_0xf92834['getAttribute']('listItemId')!==_0x4ca13a;return _0x6aba3&&Boolean(_0x4ca13a)&&_0x2cae46&&_0x6c7d57;},_0x5ef4a5=>o(_0xf806b4,'ELEMENT_LIST_ITEM',_0x5ef4a5));}['_registerLegacyDescription'](){const _0x2f2cda=this['editor'],_0x2dfd83=_0x2f2cda['locale'];function _0x4eed35(_0xb5153f){const _0x5cad49=_0x2f2cda['commands']['get']('bulletedList')['value'],_0x3b3928=_0x2f2cda['commands']['get']('numberedList')['value'];return'numberedList'===_0xb5153f?_0x5cad49:_0x3b3928;}_0x2f2cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3b93e4){if('formatBlock'!=_0x3b93e4['type'])return;const {data:_0x572e9c}=_0x3b93e4;if(!_0x572e9c)return;let _0xf07db8,_0x379e07,_0x382908,_0x3b8026;switch(_0x572e9c['commandName']){case'bulletedList':_0x382908=_0x572e9c['commandParams'][0x0]['forceValue'],_0x3b8026=_0x4eed35(_0x572e9c['commandName']),_0xf07db8=_0x382908?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b8026&&_0x2f2cda['config']['get']('list.multiBlock')||(_0xf07db8='*Change\x20to:*\x20%0'),_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x382908=_0x572e9c['commandParams'][0x0]['forceValue'],_0x3b8026=_0x4eed35(_0x572e9c['commandName']),_0xf07db8=_0x382908?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b8026&&_0x2f2cda['config']['get']('list.multiBlock')||(_0xf07db8='*Change\x20to:*\x20%0'),_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf07db8='*Indent:*\x20%0',_0x379e07={'type':'format','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf07db8=function(_0x10400d){const _0x97383b=_0x10400d['getFirstRange']();let _0x360520=_0x97383b['start']['nodeAfter'];for(;_0x360520&&_0x97383b['containsItem'](_0x360520);){if(_0x360520['getAttribute']('listIndent')>0x0)return!0x1;_0x360520=_0x360520['nextSibling'];}return!0x0;}(_0x3b93e4)?o(_0x2dfd83,'*Format:*\x20remove\x20from\x20%0',o(_0x2dfd83,function(_0x32f00f){return'ELEMENT_'+_0x32f00f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3b93e4))):o(_0x2dfd83,'*Outdent:*\x20%0',o(_0x2dfd83,'ELEMENT_LIST_ITEM')),_0x379e07={'type':'format','content':_0xf07db8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x572e9c['multipleBlocks']&&(_0xf07db8='*Merge:*\x20%0',_0x379e07={'type':'deletion','content':o(_0x2dfd83,_0xf07db8,o(_0x2dfd83,'ELEMENT_LIST_ITEM'))});}return _0x379e07;});}}function Te(_0x430ee3){let _0x2392dd=_0x430ee3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2392dd;){const _0x2c83c=_0x2392dd['getAttribute']('listItemId');if(!_0x2c83c)return!0x1;if(_0x2c83c==_0x430ee3['data']['newValue'])return'newValue';if(_0x2c83c==_0x430ee3['data']['oldValue'])return'oldValue';_0x2392dd=_0x2392dd['previousSibling'];}return!0x1;}class Se extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x15a2aa=this['editor']['config']['get']('list.properties'),_0x49e36f=this['editor']['plugins']['get']('TrackChangesEditing');_0x15a2aa['styles']&&(_0x49e36f['enableDefaultAttributesIntegration']('listStyle'),_0x49e36f['registerBlockAttribute']('listStyle')),_0x15a2aa['reversed']&&(_0x49e36f['enableDefaultAttributesIntegration']('listReversed'),_0x49e36f['registerBlockAttribute']('listReversed')),_0x15a2aa['startIndex']&&(_0x49e36f['enableDefaultAttributesIntegration']('listStart'),_0x49e36f['registerBlockAttribute']('listStart'));const _0x5d0e14={'type':'format','content':''};_0x49e36f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x40e3ea=this['editor']['locale'];_0x49e36f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x40e3ea,'FORMAT_LIST_REVERSED')),_0x49e36f['descriptionFactory']['registerDescriptionCallback'](_0x488b72=>{const {data:_0x3f63d8}=_0x488b72;if(_0x3f63d8&&'listReversed'==_0x3f63d8['key'])return null==_0x3f63d8['newValue']||0x0==_0x3f63d8['newValue']&&null==_0x3f63d8['oldValue']?_0x5d0e14:void 0x0;}),_0x49e36f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x40e3ea,'FORMAT_LIST_START')),_0x49e36f['descriptionFactory']['registerDescriptionCallback'](_0x3df4a8=>{const {data:_0xe493b0}=_0x3df4a8;if(_0xe493b0&&'listStart'==_0xe493b0['key'])return null==_0xe493b0['newValue']||0x1==_0xe493b0['newValue']&&null==_0xe493b0['oldValue']?_0x5d0e14:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf591cd=>{if(_0xf591cd['batch']['isUndo'])return!0x1;let _0x3d6059=!0x1;const _0x2673c7=_0x49e36f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x68a690=>{const _0x4c5069=_0x49e36f['_getAttributeKey'](_0x68a690);return'listStart'==_0x4c5069||'listReversed'==_0x4c5069;});for(const _0x3b9c94 of _0x2673c7){const _0x1a6770=_0x3b9c94['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a6770||'customNumbered'==_0x1a6770)continue;_0x49e36f['_findSuggestions'](_0x3b9c94['getFirstRange'](),'attribute')['find'](_0x59d5bc=>'listType'==_0x49e36f['_getAttributeKey'](_0x59d5bc['suggestion']))||(_0xf591cd['removeMarker'](_0x3b9c94['getFirstMarker']()),_0x3d6059=!0x0);}return _0x3d6059;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x396720){const _0xb91aef=this['editor']['locale'],{data:_0x15df53}=_0x396720,_0x27bf5a={'type':'format','content':''};if(!_0x15df53||'listStyle'!=_0x15df53['key'])return;if(!_0x15df53['oldValue'])return'default'==_0x15df53['newValue']?_0x27bf5a:{'type':'format','content':''+o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['newValue'])))};if(!_0x15df53['newValue']){if('default'==_0x15df53['oldValue'])return _0x27bf5a;let _0x5bedc9=_0x396720['head'];for(;_0x5bedc9;){if(_0x5bedc9['data']&&'listType'==_0x5bedc9['data']['key']&&_0x5bedc9['data']['newValue'])return _0x27bf5a;_0x5bedc9=_0x5bedc9['next'];}return{'type':'format','content':''+o(_0xb91aef,'*Remove\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['oldValue'])))};}if('default'!=_0x15df53['newValue'])return{'type':'format','content':''+o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,this['_getTranslationKeyForListStyle'](_0x15df53['newValue'])))};let _0x5990c7=_0x396720['head'];for(;_0x5990c7;){if(_0x5990c7['data']&&'listType'==_0x5990c7['data']['key']&&_0x5990c7['data']['newValue']&&_0x5990c7['data']['oldValue'])return _0x27bf5a;_0x5990c7=_0x5990c7['next'];}return{'type':'format','content':o(_0xb91aef,'*Set\x20format:*\x20%0',o(_0xb91aef,'ELEMENT_'+_0x396720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xbf08=this['editor'],_0x853488=_0xbf08['locale'];_0xbf08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2aa0=>{if('formatBlock'!=_0x2e2aa0['type'])return;const {data:_0x3dc2bd}=_0x2e2aa0;if(!_0x3dc2bd)return;let _0x265faf,_0x467675;switch(_0x3dc2bd['commandName']){case'listStyle':_0x265faf='*Change\x20to:*\x20%0',_0x467675={'type':'format','content':o(_0x853488,_0x265faf,o(_0x853488,this['_getTranslationKeyForListStyle'](_0x3dc2bd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265faf=_0x3dc2bd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x467675={'type':'format','content':o(_0x853488,_0x265faf)};break;case'listStart':_0x265faf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x467675={'type':'format','content':o(_0x853488,_0x265faf,_0x3dc2bd['commandParams'][0x0]['startIndex'])};}return _0x467675;});}['_getTranslationKeyForListStyle'](_0x3ffd63){return'ELEMENT_'+function(_0x5306a2){if(_e['includes'](_0x5306a2))return'bulleted';if(Re['includes'](_0x5306a2))return'numbered';return null;}(_0x3ffd63)['toUpperCase']()+'_LIST_'+_0x3ffd63['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x577abc{['afterInit'](){const _0x4d5208=this['editor'];_0x4d5208['commands']['get']('emoji')&&_0x4d5208['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x577abc{static get['requires'](){return[_0x42434e];}['init'](){const _0x1f6cff=this['editor'],_0x4f61da=_0x1f6cff['plugins']['get']('TrackChangesEditing'),_0x453f75=_0x1f6cff['commands']['get']('enter');_0x4f61da['enableCommand']('enter',()=>{_0x1f6cff['model']['change'](_0x5e5e1e=>{const _0x59544a=_0x1f6cff['model']['document']['selection'],_0x5a5978=_0x59544a['getFirstPosition'](),_0x52172f=_0x157a8e['fromRange'](_0x59544a['getFirstRange']());if(_0x453f75['enterBlock'](_0x5e5e1e)){const _0x3bf702=_0x1f6cff['model']['createPositionAt'](_0x5a5978['parent']['nextSibling'],0x0),_0x329e57=_0x5e5e1e['createRange'](_0x5a5978,_0x3bf702);_0x4f61da['markInsertion'](_0x329e57);}else _0x5e5e1e['setSelection'](_0x5e5e1e['createRange'](_0x52172f['end']));_0x52172f['detach'](),_0x453f75['fire']('afterExecute',{'writer':_0x5e5e1e});});}),_0x1f6cff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1f6cff,'split'),{'priority':'high'}),_0x1f6cff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ad432,_0x1c6aeb,_0xd68022)=>{const _0x4a4bb8=_0xd68022['mapper']['markerNameToElements'](_0x1c6aeb['markerName']);if(_0x4a4bb8){for(const _0x29bd11 of _0x4a4bb8)_0x29bd11['hasClass']('ck-suggestion-marker-split')&&(_0xd68022['mapper']['unbindElementFromMarkerName'](_0x29bd11,_0x1c6aeb['markerName']),_0xd68022['writer']['remove'](_0x29bd11));}},{'priority':'high'}),_0x1f6cff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11458d,_0xcf68c4,_0x13cf42)=>{_0x13cf42['options']['showSuggestionHighlights']&&De(_0x1f6cff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x11458d,_0xcf68c4,_0x13cf42);},{'priority':'high'});}}class Z extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x515f1f=this['editor']['plugins']['get']('TrackChangesEditing');_0x515f1f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x515f1f['enableCommand']('findNext'),_0x515f1f['enableCommand']('findPrevious'),_0x515f1f['enableCommand']('replace'),_0x515f1f['enableCommand']('replaceAll');}['handleFindCommand'](_0x20d761,_0xe07969,_0x526cb4={}){const _0x5a239f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x20d761(_0x137bcb=>{let _0x419ff9=('string'==typeof _0xe07969?_0x5a239f['findByTextCallback'](_0xe07969,_0x526cb4):_0xe07969)(_0x137bcb);Array['isArray'](_0x419ff9)&&(_0x419ff9={'results':_0x419ff9,'searchText':'string'==typeof _0xe07969?_0xe07969:''});const _0x1a9860=_0x419ff9['results']['filter'](_0x41699a=>!0x1===this['_isInDeletionRange'](_0x41699a,_0x137bcb['item']));return{..._0x419ff9,'results':_0x1a9860};},_0x526cb4);}['_isInDeletionRange'](_0x533e98,_0x2cad3d){const _0x38dd17=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2cad3d,_0x533e98['start']),this['editor']['model']['createPositionAt'](_0x2cad3d,_0x533e98['end']));for(const _0xc499e2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38dd17['getIntersection'](_0xc499e2['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 _0x577abc{['afterInit'](){const _0x39a114=this['editor']['locale'],_0x27bbb3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57832f,commandName:_0x543a28}of ro)this['editor']['plugins']['has'](_0x57832f)&&(_0x27bbb3['enableDefaultAttributesIntegration'](_0x543a28),_0x27bbb3['registerInlineAttribute'](_0x543a28));_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39a114,'FORMAT_FONT_SIZE')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39a114,'FORMAT_FONT_FAMILY')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39a114,'FORMAT_FONT_COLOR')),_0x27bbb3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39a114,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38aa98=this['editor'],_0x572bb1=_0x38aa98['locale'];_0x38aa98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3da3ce=>{const _0x2b478d=_0x572bb1['t'];if('formatInline'!=_0x3da3ce['type'])return;const {data:_0x2f7413}=_0x3da3ce;if(null!=_0x2f7413){if('fontSize'==_0x2f7413['commandName']){const _0x4c7062=_0x2f7413['commandParams'][0x0]['value'];if(_0x4c7062){const _0x5b83e4=_0x2b478d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e770b=>_0x2e770b['model']==_0x4c7062)['title'])['toLowerCase']();return{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20size:*\x20%0',_0x5b83e4)};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f7413['commandName']){const _0x1b4ee8=_0x2f7413['commandParams'][0x0]['value'];return _0x1b4ee8?{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20family:*\x20%0',_0x1b4ee8)}:{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f7413['commandName']){const _0x32bc72=_0x2f7413['commandParams'][0x0]['value'];if(_0x32bc72){const _0x364765=_0x2cec03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x27428c=>_0x27428c['model']==_0x32bc72);let _0x24b0c2=_0x32bc72,_0x176e7c='';return _0x364765&&(_0x24b0c2=_0x364765['label'],_0x176e7c=_0x2b478d(_0x24b0c2)['toLowerCase']()),{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20color:*\x20%0',_0x176e7c)['trim'](),'color':{'value':_0x32bc72,'title':_0x176e7c||_0x24b0c2}};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f7413['commandName']){const _0x263df8=_0x2f7413['commandParams'][0x0]['value'];if(_0x263df8){const _0x2fb71c=_0x2cec03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x410dae=>_0x410dae['model']==_0x263df8);let _0x49e1be=_0x263df8,_0x15e135='';return _0x2fb71c&&(_0x49e1be=_0x2fb71c['label'],_0x15e135=_0x2b478d(_0x49e1be)['toLowerCase']()),{'type':'format','content':o(_0x572bb1,'*Set\x20font\x20background\x20color:*\x20%0',_0x15e135)['trim'](),'color':{'value':_0x263df8,'title':_0x15e135||_0x49e1be}};}return{'type':'format','content':o(_0x572bb1,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x577abc{['afterInit'](){const _0x1e5c91=this['editor'],_0x547265=_0x1e5c91['plugins']['get']('TrackChangesEditing'),_0x41fb21=_0x1e5c91['commands']['get']('copyFormat'),_0xc78bb3=_0x1e5c91['commands']['get']('pasteFormat');_0x41fb21&&_0xc78bb3&&(_0x547265['enableDefaultAttributesIntegration']('pasteFormat'),_0x547265['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3c22d8=this['editor'],_0x344b4d=_0x3c22d8['locale'];_0x3c22d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e12e=>{if('formatBlock'!=_0x55e12e['type']&&'formatInline'!=_0x55e12e['type'])return;const {data:_0x30f284}=_0x55e12e;if(_0x30f284&&'pasteFormat'===_0x30f284['commandName']){const _0x556221=[],_0x2e0e23=_0x30f284['commandParams'][0x0];for(const [_0x5cbf21,_0x2db879]of Object['entries'](_0x2e0e23))_0x556221['push'](so(_0x3c22d8,_0x5cbf21,_0x2db879));return _0x556221['length']?{'type':'format','content':o(_0x344b4d,'*Set\x20format\x20to:*\x20%0',_0x556221['join'](',\x20'))}:{'type':'format','content':o(_0x344b4d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11783f,_0x6c273b,_0x44f183){const _0x136101=_0x11783f['locale']['t'],_0x291aa9=_0x6c273b['split'](/(?=[A-Z])/)['join']('\x20'),_0x41d50c=_0x136101(_0x291aa9['charAt'](0x0)['toUpperCase']()+_0x291aa9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x44f183)return _0x41d50c;if('fontColor'===_0x6c273b||'fontBackgroundColor'===_0x6c273b){const _0x4b2873=_0x2cec03(_0x11783f['config']['get']('fontColor.colors'))['find'](_0x53bb34=>_0x53bb34['model']==_0x44f183);return _0x41d50c+'\x20('+(_0x4b2873?_0x136101(_0x4b2873['label'])['toLowerCase']():_0x44f183)+')';}if('fontSize'===_0x6c273b&&isNaN(parseFloat(_0x44f183))){const _0x9d4aa=_0x11783f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11783f['config']['get']('fontSize.options'))['find'](_0x5d4b81=>_0x5d4b81['model']==_0x44f183);return _0x41d50c+'\x20('+(_0x9d4aa?_0x136101(_0x9d4aa['title'])['toLowerCase']():_0x44f183)+')';}return _0x41d50c+'\x20('+_0x44f183+')';}class it extends _0x577abc{['_headingOptions'];['afterInit'](){const _0x425fdb=this['editor'];if(!_0x425fdb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x425fdb['config']['get']('heading.options');const _0x6e78ef=_0x425fdb['locale'],_0x56d07e=_0x425fdb['plugins']['get']('TrackChangesEditing');_0x56d07e['enableDefaultAttributesIntegration']('heading');for(const _0x3d838f of this['_headingOptions'])'paragraph'!=_0x3d838f['model']&&_0x56d07e['descriptionFactory']['registerElementLabel'](_0x3d838f['model'],_0x9ea518=>{const _0x233057=this['_getHeadingLevel'](_0x3d838f['model']);return null!==_0x233057?_0x20df1b(_0x9ea518,_0x233057):_0x45c421(_0x9ea518,_0x3d838f['title']);});function _0x20df1b(_0x7f0533,_0x294ffc){return o(_0x6e78ef,'ELEMENT_HEADING',[_0x7f0533,_0x294ffc]);}function _0x45c421(_0x3db4c3,_0x5012af){return o(_0x6e78ef,'ELEMENT_HEADING_CUSTOM',[_0x3db4c3,_0x5012af]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x508ebb=this['editor'],_0x26bad9=_0x508ebb['locale'];function _0x4b6656(_0x45954d,_0x5dade7){return o(_0x26bad9,'ELEMENT_HEADING_CUSTOM',[_0x45954d,_0x5dade7]);}_0x508ebb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca2c1=>{if('formatBlock'!=_0x2ca2c1['type'])return;const {data:_0x3a5ac6}=_0x2ca2c1;if(_0x3a5ac6&&'heading'==_0x3a5ac6['commandName']){const _0x185ea3=_0x3a5ac6['commandParams'][0x0]['value'],_0x49ebef=this['_getHeadingLevel'](_0x185ea3);if(null!==_0x49ebef)return{'type':'format','content':o(_0x26bad9,'*Change\x20to:*\x20%0',(_0x397b78=0x1,_0x36a24d=_0x49ebef,o(_0x26bad9,'ELEMENT_HEADING',[_0x397b78,_0x36a24d])))};const _0x3e2a9d=this['_headingOptions']['find'](_0x4087a9=>_0x4087a9['model']===_0x185ea3)['title'];return{'type':'format','content':o(_0x26bad9,'*Change\x20to:*\x20%0',_0x4b6656(0x1,_0x3e2a9d))};}var _0x397b78,_0x36a24d;});}['_getHeadingLevel'](_0x22b0e2){const _0x157cf6=_0x22b0e2['match'](/^heading(\d+)/);if(_0x157cf6)return _0x157cf6[0x1];const _0x56f6d8=this['_headingOptions']?.['find'](_0x32c131=>_0x32c131['model']==_0x22b0e2);if(_0x56f6d8&&_0x56f6d8['view']){const _0x417169=_0x56f6d8['view'],_0x7add14=(_0x417169['name']??_0x417169)['match'](/^h(\d+)/);if(_0x7add14)return _0x7add14[0x1];}return null;}}class et extends _0x577abc{['afterInit'](){const _0x469b14=this['editor'];if(!_0x469b14['plugins']['has']('HighlightEditing'))return;const _0x2cbf9d=_0x469b14['plugins']['get']('TrackChangesEditing'),_0x59af17=_0x469b14['locale'];_0x2cbf9d['enableDefaultAttributesIntegration']('highlight'),_0x2cbf9d['registerInlineAttribute']('highlight'),_0x2cbf9d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x59af17,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c9f6b=this['editor'],_0x517897=_0x6c9f6b['locale'];_0x6c9f6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x524953=>{if('formatInline'!=_0x524953['type'])return;const {data:_0x16167a}=_0x524953;if(_0x16167a&&'highlight'==_0x16167a['commandName']){const _0x21abb1=_0x517897['t'],_0x160a19=_0x16167a['commandParams'][0x0]['value'];if(_0x160a19){const _0x210074=_0x6c9f6b['config']['get']('highlight.options')['find'](_0x1cc400=>_0x1cc400['model']==_0x160a19),_0x5e0120=_0x21abb1(_0x210074['title'])['toLowerCase']();return{'type':'format','content':o(_0x517897,'*Set\x20highlight:*\x20%0',_0x5e0120),'color':{'value':_0x210074['color'],'title':_0x210074['title']}};}return{'type':'format','content':o(_0x517897,'*Remove\x20highlight*',o(_0x517897,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x577abc{['afterInit'](){const _0x401746=this['editor'];if(!_0x401746['plugins']['has']('HorizontalLineEditing'))return;_0x401746['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d1d0d=_0x401746['plugins']['get']('TrackChangesEditing'),_0x40e598=_0x401746['locale'];_0x4d1d0d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5d2ad1=>o(_0x40e598,'ELEMENT_HORIZONTAL_LINE',_0x5d2ad1)),_0x401746['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17d1a4,{writer:_0xafdc45,options:_0x2ed3a2})=>{if(!_0x2ed3a2['showSuggestionHighlights'])return null;const _0x455ecc=_0xafdc45['createContainerElement']('div'),_0x3ab122=_0xafdc45['createEmptyElement']('hr');return _0xafdc45['addClass']('ck-horizontal-line',_0x455ecc),_0xafdc45['insert'](_0xafdc45['createPositionAt'](_0x455ecc,0x0),_0x3ab122),_0x455ecc;},'converterPriority':'high'});}}class ot extends _0x577abc{['afterInit'](){const _0x15b120=this['editor'];if(!_0x15b120['plugins']['has']('HtmlEmbed'))return;const _0x26e222=_0x15b120['plugins']['get']('TrackChangesEditing'),_0x586827=_0x15b120['locale'];_0x26e222['descriptionFactory']['registerElementLabel']('rawHtml',_0x25ccbe=>o(_0x586827,'ELEMENT_HTML_EMBED',_0x25ccbe)),_0x26e222['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26e222['registerBlockAttribute']('value'),_0x26e222['descriptionFactory']['registerDescriptionCallback'](_0x4a2571=>{if('attribute'!=_0x4a2571['type'])return;const {data:_0x2954f3}=_0x4a2571;if(_0x2954f3&&'value'==_0x2954f3['key']&&_0x4a2571['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x517536=o(_0x586827,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x586827,'*Change\x20%0\x20content*',_0x517536)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x433d8f=this['editor'],_0x1d9844=_0x433d8f['locale'];_0x433d8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f13a6=>{if('formatBlock'!=_0x2f13a6['type'])return;const {data:_0x591ed6}=_0x2f13a6;if(_0x591ed6&&'htmlEmbed'==_0x591ed6['commandName']){const _0x5aac65=o(_0x1d9844,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d9844,'*Change\x20%0\x20content*',_0x5aac65)};}});}}class rt extends _0x577abc{['afterInit'](){const _0x3b1e8e=this['editor'];if(!_0x3b1e8e['plugins']['has']('ImageEditing'))return;const _0x48d475=_0x3b1e8e['plugins']['get']('TrackChangesEditing'),_0x17b1a5=_0x3b1e8e['plugins']['get']('ImageUtils'),_0x218c6f=_0x3b1e8e['locale'];_0x48d475['enableCommand']('insertImage'),_0x48d475['descriptionFactory']['registerElementLabel']('imageBlock',_0x1df5e2=>o(_0x218c6f,'ELEMENT_IMAGE',_0x1df5e2)),_0x48d475['descriptionFactory']['registerElementLabel']('imageInline',_0x2ffb3f=>o(_0x218c6f,'ELEMENT_INLINE_IMAGE',_0x2ffb3f)),_0x48d475['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x218c6f,'ELEMENT_CAPTION')),_0x3b1e8e['plugins']['has']('ImageUploadEditing')&&_0x48d475['enableCommand']('uploadImage'),_0x3b1e8e['plugins']['has']('ImageBlockEditing')&&_0x3b1e8e['plugins']['has']('ImageInlineEditing')&&(_0x48d475['enableCommand']('imageTypeInline',(_0x563e19,_0x40d163)=>{const _0x3591c6=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']);_0x3b1e8e['model']['change'](()=>{_0x48d475['markBlockFormat'](_0x3591c6,{'commandName':'imageTypeInline','commandParams':[_0x40d163]},[],'convertBlockImageToInline');});}),_0x48d475['enableCommand']('imageTypeBlock',(_0x4a278b,_0x7f73c5)=>{_0x3b1e8e['model']['change'](_0x4d8f01=>{let _0x5ed967=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x556927=_0x4d8f01['createRangeOn'](_0x5ed967);const _0x2bdeed=_0x5a4948['fromPosition'](_0x556927['start'],'toPrevious'),_0x102133=_0x5a4948['fromPosition'](_0x556927['end'],'toNext');_0x48d475['forceDefaultExecution'](()=>_0x4a278b(_0x7f73c5)),_0x5ed967=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x556927=_0x4d8f01['createRangeOn'](_0x5ed967);const _0x309c7b=_0x4d8f01['createRange'](_0x2bdeed,_0x102133);_0x2bdeed['detach'](),_0x102133['detach'](),_0x48d475['markBlockFormat'](_0x5ed967,{'commandName':'imageTypeInline','commandParams':[_0x7f73c5]},[],'convertInlineImageToBlock'),_0x309c7b['start']['isBefore'](_0x556927['start'])&&_0x48d475['markInsertion'](_0x4d8f01['createRange'](_0x309c7b['start'],_0x556927['start']),'convertInlineImageToBlock'),_0x556927['end']['isBefore'](_0x309c7b['end'])&&_0x48d475['markInsertion'](_0x4d8f01['createRange'](_0x556927['end'],_0x309c7b['end']),'convertInlineImageToBlock');});}),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48d475['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e9187])=>{const _0x120099=_0x48d475['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x49635a=_0x2e9187['start'],_0x31298f=_0x2e9187['end'];const _0x2f5fb0=_0x3b1e8e['model']['schema']['getNearestSelectionRange'](_0x49635a,'backward'),_0xb403b3=_0x3b1e8e['model']['schema']['getNearestSelectionRange'](_0x31298f,'forward');_0x2f5fb0['isCollapsed']&&(_0x49635a=_0x2f5fb0['start']),_0xb403b3['isCollapsed']&&(_0x31298f=_0xb403b3['end']),_0x120099([_0x3b1e8e['model']['createRange'](_0x49635a,_0x31298f)]);}),_0x48d475['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37750a),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37750a)),_0x3b1e8e['plugins']['has']('ImageCaptionEditing')&&(_0x48d475['enableCommand']('toggleImageCaption',(_0x4690ce,_0x5a3d42)=>{const _0x4d2a19=_0x3b1e8e['plugins']['get']('ImageCaptionUtils');let _0x13167f=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x428260=_0x4d2a19['getCaptionFromImageModelElement'](_0x13167f);_0x3b1e8e['model']['change'](()=>{if(_0x428260)return void _0x48d475['markDeletion'](_0x3b1e8e['model']['createRangeOn'](_0x428260));const _0xdf9400=_0x17b1a5['isBlockImage'](_0x13167f);_0x4690ce(_0x5a3d42),_0x13167f=_0x17b1a5['getClosestSelectedImageElement'](_0x3b1e8e['model']['document']['selection']),_0x428260=_0x4d2a19['getCaptionFromImageModelElement'](_0x13167f),_0x48d475['markInsertion'](_0x3b1e8e['model']['createRangeOn'](_0x428260),_0xdf9400?null:'imageCaption');});}),_0x48d475['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37750a));const _0xbca1f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48a7f5(_0x51b9f6,_0x1e413c){const _0x4a2539=_0xbca1f7['findIndex'](({type:_0x56f85e,subType:_0x4de033})=>_0x51b9f6['type']==_0x56f85e&&_0x51b9f6['subType']==_0x4de033),_0x406e1a=_0xbca1f7['findIndex'](({type:_0x405cdc,subType:_0x36cdb2})=>_0x1e413c['type']==_0x405cdc&&_0x1e413c['subType']==_0x36cdb2);if(_0x4a2539<0x0||_0x406e1a<0x0)return!0x1;const _0x229fa5=_0x51b9f6['getFirstRange'](),_0x3d2bcd=_0x1e413c['getFirstRange']();if((0x0==_0x4a2539||0x1==_0x4a2539)&&0x2==_0x406e1a&&_0x229fa5['isIntersecting'](_0x3d2bcd))return!0x0;if(0x2==_0x4a2539&&0x3==_0x406e1a){const _0x5a38dd=_0x48d475['_findSuggestions'](_0x229fa5,'insertion')['filter'](({suggestion:_0x225e7a,meta:_0x5e12df})=>_0x5e12df['isOwn']&&'convertInlineImageToBlock'==_0x225e7a['subType']);if(_0x5a38dd['length']>0x1&&_0x3d2bcd['end']['isEqual'](_0x229fa5['start']))return!0x0;if(0x1==_0x5a38dd['length']&&(_0x229fa5['start']['isEqual'](_0x3d2bcd['end'])||_0x229fa5['end']['isEqual'](_0x3d2bcd['start'])))return!0x0;}if(0x3==_0x4a2539&&0x3==_0x406e1a&&_0x229fa5['start']['isBefore'](_0x3d2bcd['start'])){const _0x15c4ce=_0x229fa5['end']['nodeAfter'],_0x4de60f=_0x3d2bcd['start']['nodeBefore'];return _0x17b1a5['isBlockImage'](_0x15c4ce)&&_0x15c4ce===_0x4de60f;}return!0x1;}function _0x37750a(_0x4498e1,_0x101679){return _0x48a7f5(_0x4498e1,_0x101679)?[_0x4498e1,_0x101679]:_0x48a7f5(_0x101679,_0x4498e1)?[_0x101679,_0x4498e1]:null;}_0x3b1e8e['plugins']['has']('ImageResize')&&(_0x48d475['enableDefaultAttributesIntegration']('resizeImage'),_0x48d475['registerBlockAttribute']('resizedWidth'),_0x48d475['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x218c6f,'FORMAT_IMAGE_SIZE'))),_0x3b1e8e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48d475['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48d475['registerBlockAttribute']('alt')),_0x3b1e8e['plugins']['has']('PictureEditing')&&(_0x48d475['registerBlockAttribute']('sources'),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x5b08ba=>{if('attribute'!=_0x5b08ba['type'])return;const {data:_0x56f1a5}=_0x5b08ba;return _0x56f1a5&&'sources'==_0x56f1a5['key']?{'type':'format','content':''}:void 0x0;})),_0x3b1e8e['plugins']['has']('ImageSizeAttributes')&&(_0x48d475['registerBlockAttribute']('width'),_0x48d475['registerBlockAttribute']('height'),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x18497b=>{if('attribute'!=_0x18497b['type'])return;const {data:_0x2a4389}=_0x18497b;return!_0x2a4389||'width'!=_0x2a4389['key']&&'height'!=_0x2a4389['key']?void 0x0:{'type':'format','content':''};})),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x21b4e5=>{if(!!_0xbca1f7['find'](({type:_0x413241,subType:_0x4d7535})=>_0x21b4e5['type']==_0x413241&&_0x21b4e5['subType']==_0x4d7535))return _0x21b4e5['previous']?{}:void 0x0;}),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x1ee404=>{if('insertion'==_0x1ee404['type']||'deletion'==_0x1ee404['type']){const _0x59b077=_0x1ee404['getContainedElement']();if(_0x59b077&&_0x59b077['is']('element','caption'))return{'type':'insertion'==_0x1ee404['type']?'addObject':'removeObject','element':_0x59b077,'quantity':0x1};}}),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x3af96e=>'formatBlock'==_0x3af96e['type']&&'convertInlineImageToBlock'==_0x3af96e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3af96e['type']&&'convertBlockImageToInline'==_0x3af96e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48d475['descriptionFactory']['registerDescriptionCallback'](_0x1b37d3=>{if('attribute'!=_0x1b37d3['type'])return;const {data:_0x284b0c}=_0x1b37d3;if(!_0x284b0c||'alt'!=_0x284b0c['key'])return;const _0x376165=_0x284b0c['newValue'];return _0x376165?{'type':'format','content':o(_0x218c6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x376165+'\x22')}:{'type':'format','content':o(_0x218c6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325eef=this['editor'],_0x1a1ea0=_0x325eef['locale'];_0x325eef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e68f=>{if('formatBlock'!=_0x44e68f['type']&&'formatInline'!=_0x44e68f['type'])return;const {data:_0x409787}=_0x44e68f;if(_0x409787){if('imageTextAlternative'==_0x409787['commandName']){const _0xa7bc3e=_0x409787['commandParams'][0x0]['newValue'];return _0xa7bc3e?{'type':'format','content':o(_0x1a1ea0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa7bc3e+'\x22')}:{'type':'format','content':o(_0x1a1ea0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x409787['commandName']){const _0x47c5f7=_0x409787['commandParams'][0x0]['width'];return _0x47c5f7?{'type':'format','content':o(_0x1a1ea0,'*Set\x20image\x20width:*\x20%0',_0x47c5f7)}:{'type':'format','content':o(_0x1a1ea0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a368d=this['editor']['locale'],_0x2bed3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bed3b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2bed3b['registerBlockAttribute']('src'),_0x2bed3b['descriptionFactory']['registerDescriptionCallback'](_0x4d31d3=>{if('attribute'!=_0x4d31d3['type'])return;const {data:_0x5d25c3}=_0x4d31d3;return _0x5d25c3&&'src'==_0x5d25c3['key']?_0x5d25c3['newValue']&&_0x5d25c3['oldValue']?{'type':'format','content':o(_0x3a368d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a8025=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8025['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a8025['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a8025['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a8025['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f61a=this['editor'],_0x161819=_0x41f61a['locale'];_0x41f61a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fa11d=>{if('formatBlock'!=_0x1fa11d['type']&&'formatInline'!=_0x1fa11d['type'])return;const {data:_0x4d07b0}=_0x1fa11d;if(!_0x4d07b0||'replaceImageSource'!=_0x4d07b0['commandName'])return;return{'type':'format','content':o(_0x161819,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x577abc{['afterInit'](){const _0x26f660=this['editor'];if(!_0x26f660['plugins']['has']('ImageStyleEditing'))return;const _0x57265e=_0x26f660['plugins']['get']('TrackChangesEditing'),_0x72ce88=_0x26f660['plugins']['get']('ImageUtils'),_0x4f12c5={};_0x57265e['enableCommand']('imageStyle',(_0x3526ce,_0x5d26c7)=>{const _0x1fcc35=_0x26f660['plugins']['get']('Users')['me'],_0x5afc01=_0x26f660['commands']['get']('imageStyle');let _0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),_0x4d92ef=_0x26f660['model']['createRangeOn'](_0x5475a8),_0x5a41b6=_0x5afc01['value'];if(_0x5a41b6==_0x5d26c7['value'])return;const _0x33765e={'commandName':'imageStyle','commandParams':[_0x5d26c7],'formatGroupId':_0x2730a7()};_0x26f660['model']['change'](()=>{if(_0x57265e['getSuggestions']()['filter'](_0x2b986a=>_0x2b986a['isInContent']&&_0x1fcc35==_0x2b986a['author']&&('formatBlock'==_0x2b986a['type']||'formatInline'==_0x2b986a['type'])&&('imageStylePreApply'==_0x2b986a['subType']||'imageStylePostApply'==_0x2b986a['subType'])&&_0x2b986a['getFirstRange']()['isEqual'](_0x4d92ef))['forEach'](_0x3036e3=>_0x57265e['discardSuggestion'](_0x3036e3['head'])),_0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),_0x4d92ef=_0x26f660['model']['createRangeOn'](_0x5475a8),_0x5afc01['refresh'](),_0x26f660['commands']['get']('imageTypeInline')['refresh'](),_0x26f660['commands']['get']('imageTypeBlock')['refresh'](),_0x5a41b6=_0x5afc01['value'],_0x5a41b6!=_0x5d26c7['value'])return _0x72ce88['isInlineImage'](_0x5475a8)&&_0x5afc01['shouldConvertImageType'](_0x5d26c7['value'],_0x5475a8)?(_0x3526ce({..._0x5d26c7,'setImageSizes':!0x1}),_0x5475a8=_0x72ce88['getClosestSelectedImageElement'](_0x26f660['model']['document']['selection']),void _0x57265e['markBlockFormat'](_0x5475a8,{..._0x33765e,'commandReversedParams':[{'value':_0x5a41b6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x72ce88['isBlockImage'](_0x5475a8)?_0x57265e['markBlockFormat'](_0x5475a8,_0x33765e,[],'imageStylePostApply'):_0x57265e['markInlineFormat'](_0x4d92ef,_0x33765e,'imageStylePostApply'));});});for(const _0x2cb87e of _0x26f660['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f12c5[_0x2cb87e['name']]=_0x2cb87e['title']['toLowerCase']();_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4821ab])=>{_0x72ce88['setImageNaturalSizeAttributes'](_0x4821ab['getContainedElement']());}),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a2944,_0xc8f563)=>{_0x57265e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a2944,{'commandName':_0xc8f563['commandName'],'commandParams':_0xc8f563['commandReversedParams']});}),_0x57265e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x120a6c,_0x4b21e0){if(_0x2097af(_0x120a6c,_0x4b21e0))return[_0x120a6c,_0x4b21e0];if(_0x2097af(_0x4b21e0,_0x120a6c))return[_0x4b21e0,_0x120a6c];return null;});const _0x2f1563=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2097af(_0x2fe2b5,_0x5877ce){const _0x8dbf49=_0x2f1563['findIndex'](({type:_0x183c98,subType:_0x1b81ff})=>_0x2fe2b5['type']==_0x183c98&&_0x2fe2b5['subType']==_0x1b81ff),_0x421e16=_0x2f1563['findIndex'](({type:_0xffa4d1,subType:_0x3cc7cb})=>_0x5877ce['type']==_0xffa4d1&&_0x5877ce['subType']==_0x3cc7cb);if(_0x8dbf49<0x0||_0x421e16<0x0)return!0x1;const _0x400d23=_0x2fe2b5['getFirstRange'](),_0x5d42d4=_0x5877ce['getFirstRange']();if((0x0==_0x8dbf49||0x1==_0x8dbf49)&&0x2==_0x421e16&&_0x400d23['isIntersecting'](_0x5d42d4))return!0x0;if(0x2==_0x8dbf49&&0x3==_0x421e16){const _0x4f77b2=_0x57265e['_findSuggestions'](_0x400d23,'insertion')['filter'](({suggestion:_0x50219b,meta:_0x35057b})=>_0x35057b['isOwn']&&'convertInlineImageToBlock'==_0x50219b['subType']);if(_0x4f77b2['length']>0x1&&_0x5d42d4['end']['isEqual'](_0x400d23['start']))return!0x0;if(0x1==_0x4f77b2['length']&&(_0x400d23['start']['isEqual'](_0x5d42d4['end'])||_0x400d23['end']['isEqual'](_0x5d42d4['start'])))return!0x0;}if(0x3==_0x8dbf49&&0x3==_0x421e16&&_0x400d23['start']['isBefore'](_0x5d42d4['start'])){const _0x2594cd=_0x400d23['end']['nodeAfter'],_0x5aa441=_0x5d42d4['start']['nodeBefore'];return _0x72ce88['isBlockImage'](_0x2594cd)&&_0x2594cd===_0x5aa441;}return!0x1;}_0x26f660['model']['document']['registerPostFixer'](()=>{let _0x3660c4=!0x1;const _0x217363=Array['from'](_0x26f660['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x145b19,data:_0x2b33ca}of _0x217363){const {group:_0x49bc48,type:_0x210de7,subType:_0x50bea9,id:_0x2c39bd}=_0x57265e['_splitMarkerName'](_0x145b19);if('suggestion'==_0x49bc48&&_0x57265e['hasSuggestion'](_0x2c39bd)){if('formatBlock'==_0x210de7&&('imageStylePreApply'==_0x50bea9||'imageStylePostApply'==_0x50bea9)){const _0x3db41d=_0x57265e['getSuggestion'](_0x2c39bd);if(_0x2b33ca['newRange']){const _0x531f25=_0x3db41d['getFirstRange']()['getContainedElement']();if(_0x72ce88['isBlockImage'](_0x531f25))continue;_0x57265e['discardSuggestion'](_0x3db41d),_0x3660c4=!0x0;}}if('insertion'==_0x210de7&&'imageCaption'==_0x50bea9&&!_0x2b33ca['newRange']){const _0x2c53d9=_0x57265e['getSuggestion'](_0x2c39bd);_0x2c53d9['next']&&_0x2c53d9['next']['isInContent']&&(_0x57265e['discardSuggestion'](_0x2c53d9['next']),_0x3660c4=!0x0);}}}return _0x3660c4;}),this['_registerLegacyDescription'](_0x4f12c5);}['_registerLegacyDescription'](_0x2ce0ea){const _0x15327a=this['editor'],_0x38ac66=_0x15327a['locale'];_0x15327a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a155=>{if('formatBlock'!=_0x32a155['type']&&'formatInline'!=_0x32a155['type'])return;const {data:_0xd11f31}=_0x32a155;if(!_0xd11f31||'imageStyle'!=_0xd11f31['commandName'])return;const _0x4dd5ff=_0xd11f31['commandParams'][0x0]['value'];return _0x2eb730('side'===_0x4dd5ff?o(_0x38ac66,'FORMAT_SIDE_IMAGE'):_0x2ce0ea[_0x4dd5ff]||_0x4dd5ff);function _0x2eb730(_0xcca9c5){return{'type':'format','content':o(_0x38ac66,'*Format:*\x20%0',_0xcca9c5)};}});}}class ut extends _0x577abc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d0d00){super(_0x1d0d00),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x409f8f=this['editor'],_0x4cfa28=_0x409f8f['commands']['get']('importWord'),_0x389099=_0x409f8f['commands']['get']('trackChanges');_0x4cfa28&&(_0x4cfa28['on']('execute',(_0x43e89b,[,_0x213d4e])=>{this['_trackChangesValueDuringImport']=_0x389099['value'],_0x213d4e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cfa28,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cfa28,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x389099['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x409f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ba2c8,_0x32eab8){const {suggestions:_0x3d31d6}=_0x32eab8,_0x52e883=this['editor']['commands']['get']('trackChanges'),_0x2d1df9=_0x52e883['value'];this['_trackChangesValueDuringImport']!==_0x2d1df9&&(_0x52e883['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d31d6&&_0x3d31d6['forEach'](({id:_0x5911e0,type:_0x4703b4,author:_0x2a24a1,created_at:_0x3d7cfe})=>{const _0x31a377={'id':_0x5911e0,'type':_0x4703b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a24a1,'createdAt':_0x3d7cfe?new Date(_0x3d7cfe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31a377);});}}class ft extends _0x577abc{['afterInit'](){const _0x313af7=this['editor'],_0x555b85=_0x313af7['plugins']['get']('TrackChangesEditing');if(_0x313af7['plugins']['has']('IndentEditing')&&(_0x555b85['enableCommand']('indent'),_0x555b85['enableCommand']('outdent')),_0x313af7['plugins']['has']('IndentBlock')){for(const _0x3600a5 of['indentBlock','outdentBlock'])_0x555b85['enableDefaultAttributesIntegration'](_0x3600a5);}const _0x331d9e=_0x313af7['locale'];_0x555b85['registerBlockAttribute']('blockIndent'),_0x555b85['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x331d9e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325c4e=this['editor'],_0x2ae6d1=_0x325c4e['locale'],_0x5aa2ce=_0x325c4e['plugins']['get']('TrackChangesEditing');_0x5aa2ce['descriptionFactory']['registerDescriptionCallback'](_0x11af60=>{if('formatBlock'!=_0x11af60['type'])return;const {data:_0x23114f}=_0x11af60;if(!_0x23114f)return;if('indentBlock'!=_0x23114f['commandName']&&'outdentBlock'!=_0x23114f['commandName'])return;const _0x49098a=_0x11af60['getItems']()[0x0],_0x40c4c2=_0x5aa2ce['descriptionFactory']['getItemLabel'](_0x49098a);return'indentBlock'==_0x23114f['commandName']?{'type':'format','content':o(_0x2ae6d1,'*Indent:*\x20%0',_0x40c4c2)}:'outdentBlock'==_0x23114f['commandName']?{'type':'format','content':o(_0x2ae6d1,'*Outdent:*\x20%0',_0x40c4c2)}:void 0x0;});}}class ht extends _0x577abc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x577abc{['afterInit'](){const _0x595787=this['editor'];if(!_0x595787['plugins']['has']('LinkEditing'))return;const _0x423724=_0x595787['plugins']['get']('TrackChangesEditing'),_0x150af0=_0x595787['commands']['get']('link');_0x423724['enableDefaultAttributesIntegration']('link'),_0x423724['enableDefaultAttributesIntegration']('unlink'),_0x423724['registerInlineAttribute']('linkHref');for(const _0x1620d5 of _0x150af0['manualDecorators'])_0x423724['registerInlineAttribute'](_0x1620d5['id']),_0x423724['descriptionFactory']['registerAttributeLabel'](_0x1620d5['id'],'link\x20('+_0x1620d5['label']['toLowerCase']()+')');_0x423724['descriptionFactory']['registerDescriptionCallback'](_0x21396f=>{if('attribute'!=_0x21396f['type'])return;const {data:_0x6311e2}=_0x21396f;if(!_0x6311e2||'linkHref'!=_0x6311e2['key'])return;const _0x2b7e31=_0x6311e2['newValue'],_0x413e0d=_0x595787['locale'];return{'type':'format','content':null==_0x2b7e31?o(_0x413e0d,'*Remove\x20link*'):o(_0x413e0d,'*Set\x20link:*\x20%0','\x22'+_0x2b7e31+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f328a=this['editor'],_0x1c3523=_0x4f328a['locale'];_0x4f328a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c855b=>{if('formatInline'!=_0x5c855b['type'])return;const {data:_0x5abb4f}=_0x5c855b;if(_0x5abb4f){if('link'==_0x5abb4f['commandName']){const _0x135bf6=_0x5abb4f['commandParams'][0x0];return{'type':'format','content':o(_0x1c3523,'*Set\x20link:*\x20%0','\x22'+_0x135bf6+'\x22')};}return'unlink'==_0x5abb4f['commandName']?{'type':'format','content':o(_0x1c3523,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x577abc{['afterInit'](){const _0x5986dc=this['editor'],_0x439550=_0x5986dc['locale'];if(!_0x5986dc['plugins']['has']('LegacyListEditing'))return;const _0x28f8ae=_0x5986dc['plugins']['get']('TrackChangesEditing'),_0x56709d=_0x5986dc['plugins']['has']('LegacyTodoListEditing');function _0x188892(_0x1364b2){return()=>{const _0xb18b2d=_0x5986dc['model']['document']['selection'],_0x13bff9=_0x5986dc['commands']['get'](_0x1364b2);if(_0x13bff9['value'])return void _0x5986dc['execute']('paragraph',{});const _0x501ae9=_0x1364b2['slice'](0x0,-0x4),_0x270699=function(_0x541b92,_0x388f66,_0x37df1b){let _0x3ed427=Array['from'](_0x541b92)['filter'](_0x58f41f=>function(_0x7b6b53,_0x115faa){return _0x115faa['checkChild'](_0x7b6b53['parent'],'listItem')&&!_0x115faa['isObject'](_0x7b6b53);}(_0x58f41f,_0x37df1b));_0x3ed427=_0x3ed427['filter'](_0x49ec42=>!_0x49ec42['is']('element','listItem')||_0x49ec42['getAttribute']('listType')!=_0x388f66);const _0xd70ec4=new Set();for(const _0xb5c49e of _0x3ed427)_0xb5c49e['is']('element','listItem')?_0xd70ec4['add'](Le(_0xb5c49e)):_0xd70ec4['add'](_0xb5c49e);return Array['from'](_0xd70ec4);}(_0xb18b2d['getSelectedBlocks'](),_0x501ae9,_0x5986dc['model']['schema']);_0x5986dc['model']['change'](()=>{for(const _0x2cfa9b of _0x270699)_0x28f8ae['markBlockFormat'](_0x2cfa9b,{'commandName':_0x1364b2,'commandParams':[{'forceValue':!_0x13bff9['value']}],'formatGroupId':'blockName'},Ee(_0x2cfa9b));});};}function _0x558189(_0x2fad43){return()=>{const _0xa2c196=function(_0x39e92e){let _0x4623c7=Array['from'](_0x39e92e);const _0x118211=_0x4623c7['findIndex'](_0x3a3568=>'listItem'!=_0x3a3568['name']);return _0x118211>-0x1&&(_0x4623c7=_0x4623c7['slice'](0x0,_0x118211)),_0x4623c7;}(_0x5986dc['model']['document']['selection']['getSelectedBlocks']()),_0x432385=_0x5986dc['model']['createRange'](_0x5986dc['model']['createPositionAt'](_0xa2c196[0x0],'before'),_0x5986dc['model']['createPositionAt'](_0xa2c196[_0xa2c196['length']-0x1],'end'));_0x5986dc['model']['change'](()=>{_0x28f8ae['markBlockFormat'](_0x432385,{'commandName':_0x2fad43,'commandParams':[],'formatGroupId':'listIndent'},function(_0x37f707){const _0x260690=new Set();for(const _0x58be12 of _0x37f707){let _0x46bd5f=_0x58be12['nextSibling'];for(;_0x46bd5f&&_0x46bd5f['getAttribute']('listIndent')>_0x58be12['getAttribute']('listIndent');)_0x260690['add'](_0x46bd5f),_0x46bd5f=_0x46bd5f['nextSibling'];}return Array['from'](_0x260690);}(_0xa2c196));});};}_0x28f8ae['enableCommand']('numberedList',_0x188892('numberedList')),_0x28f8ae['enableCommand']('bulletedList',_0x188892('bulletedList')),_0x56709d&&_0x28f8ae['enableCommand']('todoList',_0x188892('todoList')),_0x28f8ae['enableCommand']('indentList',_0x558189('indentList')),_0x28f8ae['enableCommand']('outdentList',_0x558189('outdentList')),_0x56709d&&_0x28f8ae['enableCommand']('checkTodoList',()=>{const _0x1506f4=_0x5986dc['commands']['get']('checkTodoList'),_0x178223=Array['from'](_0x1506f4['_selectedElements']);_0x178223['filter'](_0x1efad6=>_0x1efad6['getAttribute']('todoListChecked')!=_0x1506f4['value']),_0x5986dc['model']['change'](()=>{for(const _0x3e045c of _0x178223)_0x28f8ae['markBlockFormat'](_0x3e045c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1506f4['value']}]});});}),_0x28f8ae['descriptionFactory']['registerElementLabel']('listItem',_0x20a98e=>o(_0x439550,'ELEMENT_LIST_ITEM',_0x20a98e)),_0x28f8ae['descriptionFactory']['registerDescriptionCallback'](_0x52a638=>{if('formatBlock'!=_0x52a638['type']&&'formatInline'!=_0x52a638['type'])return;const {data:_0x47a47c}=_0x52a638;if(_0x47a47c){if('numberedList'==_0x47a47c['commandName']||'bulletedList'==_0x47a47c['commandName']||'todoList'==_0x47a47c['commandName'])switch(_0x47a47c['commandName']['replace']('List','')){case'bulleted':return _0x1c0999(o(_0x439550,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c0999(o(_0x439550,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c0999(o(_0x439550,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47a47c['commandName'])return{'type':'format','content':o(_0x439550,'*Indent:*\x20%0',o(_0x439550,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47a47c['commandName'])return{'type':'format','content':o(_0x439550,'*Outdent:*\x20%0',o(_0x439550,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47a47c['commandName'])return _0x47a47c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x439550,'*Check\x20item*')}:{'type':'format','content':o(_0x439550,'*Uncheck\x20item*')};}function _0x1c0999(_0x56b97a){return{'type':'format','content':o(_0x439550,'*Change\x20to:*\x20%0',_0x56b97a)};}});}}function Le(_0x4c2574){const _0x84b93f=_0x4c2574['getAttribute']('listIndent');if(0x0==_0x84b93f)return _0x4c2574;let _0x257d83=_0x4c2574;for(;_0x4c2574['previousSibling']&&_0x4c2574['previousSibling']['is']('element','listItem');){const _0x4edef1=_0x4c2574['previousSibling']['getAttribute']('listIndent');if(_0x4edef1==_0x84b93f)_0x257d83=_0x4c2574['previousSibling'];else{if(_0x4edef1<_0x84b93f)break;}_0x4c2574=_0x4c2574['previousSibling'];}return _0x257d83;}function Ee(_0x5b72ca){const _0x3ef95b=[];if(_0x5b72ca['is']('element','listItem')&&_0x5b72ca['getAttribute']('listIndent')>0x0){let _0x453d47=_0x5b72ca['nextSibling'];for(;_0x453d47&&'listItem'==_0x453d47['name']&&_0x453d47['getAttribute']('listIndent')==_0x5b72ca['getAttribute']('listIndent');)_0x3ef95b['push'](_0x453d47),_0x453d47=_0x453d47['nextSibling'];}return _0x3ef95b;}class Q extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35b595=this['editor']['config']['get']('list.properties'),_0x5c135e=this['editor']['plugins']['get']('TrackChangesEditing');_0x35b595['styles']&&_0x5c135e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35b595['reversed']&&_0x5c135e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35b595['startIndex']&&_0x5c135e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c135e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cf8b0,_0x4b0723={}){const _0x4da5a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cad77=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4da5a6['markMultiRangeBlockFormat'](_0x4cad77,{'commandName':'listStyle','commandParams':[{'type':_0x4b0723['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56a0d8,_0xbf10da={}){const _0xd2b53e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172493=this['_getSuggestionBlocks'](_0xc69cf8=>_0xc69cf8['is']('element','listItem')&&'numbered'===_0xc69cf8['getAttribute']('listType'));if(_0x172493['length']<0x1)return;const _0x2e6f48=_0x172493['map'](_0x10b3d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10b3d4,'before'),this['editor']['model']['createPositionAt'](_0x10b3d4,0x0)));this['editor']['model']['change'](()=>{_0xd2b53e['markMultiRangeBlockFormat'](_0x2e6f48,{'commandName':'listReversed','commandParams':[{'reversed':_0xbf10da['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b6441,_0x40fbdf={}){const _0x512565=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59352a=this['_getSuggestionBlocks'](_0x59377e=>_0x59377e['is']('element','listItem')&&'numbered'===_0x59377e['getAttribute']('listType'));if(_0x59352a['length']<0x1)return;const _0x3ad07d=_0x59352a['map'](_0x12d10a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12d10a,'before'),this['editor']['model']['createPositionAt'](_0x12d10a,0x0)));this['editor']['model']['change'](()=>{_0x512565['markMultiRangeBlockFormat'](_0x3ad07d,{'commandName':'listStart','commandParams':[{'startIndex':_0x40fbdf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2ef3b0){if('formatBlock'!=_0x2ef3b0['type']&&'formatInline'!=_0x2ef3b0['type'])return;const _0x1b88a1=this['editor']['locale'],{data:_0x1a6414}=_0x2ef3b0;if(!_0x1a6414)return;let _0x8f1f9d,_0x3ecf8b;switch(_0x1a6414['commandName']){case'listStyle':_0x8f1f9d='*Change\x20to:*\x20%0',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d,o(_0x1b88a1,this['_getTranslationKeyForListStyle'](_0x1a6414['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8f1f9d=_0x1a6414['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d)};break;case'listStart':_0x8f1f9d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ecf8b={'type':'format','content':o(_0x1b88a1,_0x8f1f9d,_0x1a6414['commandParams'][0x0]['startIndex'])};}return _0x3ecf8b;}['_getSuggestionBlocksForListStyle'](){const _0xaa22db=this['editor']['plugins']['get']('LegacyListUtils');let _0x2077ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2077ff[0x0]?.['is']('element','listItem')&&_0x2077ff['unshift'](..._0xaa22db['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2077ff[_0x2077ff['length']-0x1]?.['is']('element','listItem')&&_0x2077ff['push'](..._0xaa22db['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2077ff=[...new Set(_0x2077ff)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2077ff=_0x2077ff['filter'](_0x2a90d6=>_0x2a90d6['is']('element','listItem'))),_0x2077ff;}['_getSuggestionBlocks'](_0x425004){const _0xb5a516=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e4819=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x425004)['map'](_0x401c3d=>{const _0x5e03b9=this['editor']['model']['createPositionAt'](_0x401c3d,0x0);return[..._0xb5a516['getSiblingNodes'](_0x5e03b9,'backward'),..._0xb5a516['getSiblingNodes'](_0x5e03b9,'forward')];})['flat']();return _0x3e4819=[...new Set(_0x3e4819)],_0x3e4819;}['_getTranslationKeyForListStyle'](_0x39b5be){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39b5be)||'default')['toUpperCase']()+'_LIST_'+_0x39b5be['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x577abc{['afterInit'](){const _0x4ce20f=this['editor'];if(!_0x4ce20f['plugins']['has']('MediaEmbedEditing'))return;const _0x411fa6=_0x4ce20f['plugins']['get']('TrackChangesEditing'),_0x21a05f=_0x4ce20f['locale'];_0x411fa6['enableCommand']('mediaEmbed'),_0x411fa6['descriptionFactory']['registerElementLabel']('media',_0x3b984c=>o(_0x21a05f,'ELEMENT_MEDIA',_0x3b984c)),_0x4ce20f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a804a,{writer:_0x4a16f4,options:_0x5e4d15})=>{if(_0x5e4d15['showSuggestionHighlights'])return _0x4a16f4['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ce20f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50c09e,_0xe4074a,_0x3317d0)=>{_0x3317d0['options']['showSuggestionHighlights']&&_0x50c09e['stop']();},{'priority':'high'});}}class pt extends _0x577abc{['afterInit'](){const _0x2d9668=this['editor'];_0x2d9668['plugins']['has']('MentionEditing')&&_0x2d9668['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x577abc{['afterInit'](){const _0x5e6dc0=this['editor'];if(!_0x5e6dc0['plugins']['has']('MergeFieldsEditing'))return;const _0x5cc5dd=_0x5e6dc0['plugins']['get']('TrackChangesEditing'),_0x54ed42=_0x5e6dc0['locale'];_0x5cc5dd['enableCommand']('insertMergeField'),_0x5cc5dd['enableCommand']('insertMergeFieldBlock'),_0x5cc5dd['enableCommand']('insertMergeFieldImage'),_0x5cc5dd['descriptionFactory']['registerElementLabel']('mergeField',_0x7720d9=>o(_0x54ed42,'ELEMENT_MERGE_FIELD',_0x7720d9)),_0x5cc5dd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x431f27=>o(_0x54ed42,'ELEMENT_MERGE_FIELD',_0x431f27)),_0x5cc5dd['descriptionFactory']['registerDescriptionCallback'](_0x2a94f0=>{if('insertion'!=_0x2a94f0['type']&&'deletion'!=_0x2a94f0['type'])return;const _0x25d196=_0x2a94f0['getContainedElement']();if(null==_0x25d196)return;const _0x47f300=_0x5e6dc0['plugins']['get']('MergeFieldsEditing');let _0x2c78ab;switch(_0x47f300['getMergeFieldType'](_0x25d196)){case null:return;case'image':{const _0x5a29d3=_0x47f300['unwrapAffixes'](_0x25d196['getAttribute']('src'));_0x2c78ab=_0x47f300['getLabel'](_0x5a29d3)||_0x5a29d3;break;}default:{const _0x564d2c=_0x25d196['getAttribute']('id');_0x2c78ab=_0x47f300['getLabel'](_0x564d2c)||_0x564d2c;break;}}return'insertion'==_0x2a94f0['type']?{'type':'insertion','content':o(_0x54ed42,'*Insert:*\x20%0','\x22'+_0x2c78ab+'\x22\x20'+o(_0x54ed42,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54ed42,'*Remove:*\x20%0','\x22'+_0x2c78ab+'\x22\x20'+o(_0x54ed42,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x577abc{['afterInit'](){const _0x24352b=this['editor'],_0x15a0cb=_0x24352b['plugins']['get']('TrackChangesEditing');_0x24352b['plugins']['has']('MultiLevelList')&&(_0x15a0cb['enableDefaultAttributesIntegration']('multiLevelList'),_0x15a0cb['registerBlockAttribute']('listMarkerStyle'),_0x15a0cb['descriptionFactory']['registerDescriptionCallback'](_0x31dd70=>this['handleDescriptions'](_0x31dd70)));}['handleDescriptions'](_0x12df86){const _0x35bea3=this['editor']['locale'],{data:_0x413f74}=_0x12df86,_0x50d35c={'type':'format','content':''};if(_0x413f74&&'listMarkerStyle'==_0x413f74['key']){if(!_0x413f74['oldValue'])return{'type':'format','content':o(_0x35bea3,'*Set\x20format:*\x20%0',o(_0x35bea3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413f74['newValue']+')'};if(!_0x413f74['newValue']){let _0x4e3e1f=_0x12df86['head'];for(;_0x4e3e1f;){if(_0x4e3e1f['data']&&'listType'==_0x4e3e1f['data']['key']&&_0x4e3e1f['data']['newValue'])return _0x50d35c;_0x4e3e1f=_0x4e3e1f['next'];}return{'type':'format','content':o(_0x35bea3,'*Remove\x20format:*\x20%0',o(_0x35bea3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413f74['oldValue']+')'};}}}}class bt extends _0x577abc{['afterInit'](){const _0x28f47d=this['editor'];if(!_0x28f47d['plugins']['has']('PageBreakEditing'))return;_0x28f47d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x38331a=_0x28f47d['plugins']['get']('TrackChangesEditing'),_0x11aa2a=_0x28f47d['locale'];_0x38331a['descriptionFactory']['registerElementLabel']('pageBreak',_0x4ae0d7=>o(_0x11aa2a,'ELEMENT_PAGE_BREAK',_0x4ae0d7));}}class yt extends _0x577abc{['afterInit'](){const _0x2ba5a3=this['editor'];if(!_0x2ba5a3['plugins']['has']('Paragraph'))return;const _0x46787f=_0x2ba5a3['locale'],_0x5069c9=_0x2ba5a3['plugins']['get']('TrackChangesEditing');_0x5069c9['descriptionFactory']['registerElementLabel']('paragraph',_0x453db7=>o(_0x46787f,'ELEMENT_PARAGRAPH',_0x453db7)),_0x5069c9['enableDefaultAttributesIntegration']('paragraph'),_0x5069c9['enableCommand']('insertParagraph'),_0x2ba5a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ba5a3),{'priority':'highest'}),_0x2ba5a3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37cf0e,_0x27237f,_0x1a8030)=>{_0x1a8030['options']['showSuggestionHighlights']&&nr(_0x2ba5a3,{'showActiveMarker':!0x1})(_0x37cf0e,_0x27237f,_0x1a8030);},{'priority':'highest'});const _0x11c70b=_0x5069c9['descriptionFactory'];_0x11c70b['registerDescriptionCallback'](_0x580ad4=>{if('insertion'!==_0x580ad4['type'])return;const {start:_0x10ebd8,end:_0x4e5e51}=_0x580ad4['getFirstRange']();if(!_0x10ebd8['isTouching'](_0x4e5e51)||!_0x10ebd8['nodeAfter'])return;const _0x467393=_0x2ba5a3['model']['schema'],_0x5f559b=_0x10ebd8['nodeAfter'];return _0x467393['isBlock'](_0x5f559b)&&!_0x467393['isLimit'](_0x5f559b)&&_0x467393['checkChild'](_0x5f559b,'$text')?{'type':'insertion','content':o(_0x46787f,'*Insert:*\x20%0',_0x11c70b['getItemLabel'](_0x5f559b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369690=this['editor'],_0x14adda=_0x369690['locale'];_0x369690['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4ebf=>{if('formatBlock'!=_0x5d4ebf['type'])return;const {data:_0x5eda24}=_0x5d4ebf;return _0x5eda24&&'paragraph'==_0x5eda24['commandName']?{'type':'format','content':o(_0x14adda,'*Change\x20to:*\x20%0',o(_0x14adda,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3bcdab,{showActiveMarker:_0x10bec2=!0x0}={}){return(_0x4b5ad7,_0x25ab35,_0x193a30)=>{const _0x4234f3=_0x3bcdab['plugins']['get']('TrackChangesEditing'),_0x564490=_0x25ab35['markerRange']['start'],_0x520318=_0x25ab35['markerRange']['end'],_0x10d8e8=_0x3bcdab['model']['schema'];if(!_0x564490['isTouching'](_0x520318)||!_0x564490['nodeAfter'])return;const _0x169081=_0x564490['nodeAfter'];if(_0x10d8e8['isBlock'](_0x169081)&&!_0x10d8e8['isLimit'](_0x169081)&&_0x10d8e8['checkChild'](_0x169081,'$text')){if(!_0x193a30['consumable']['consume'](_0x25ab35['markerRange'],_0x4b5ad7['name']))return;const {authorId:_0x38335d}=_0x4234f3['_splitMarkerName'](_0x25ab35['markerName']),_0x20a6f5=_0x193a30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38335d}),_0x477fde=_0x193a30['mapper']['toViewPosition'](_0x520318);_0x10bec2&&_0x4234f3['activeMarkers']['includes'](_0x25ab35['markerName'])&&_0x193a30['writer']['addClass']('ck-suggestion-marker--active',_0x20a6f5),_0x193a30['writer']['insert'](_0x477fde,_0x20a6f5),_0x193a30['mapper']['bindElementToMarker'](_0x20a6f5,_0x25ab35['markerName']);}};}class jt extends _0x577abc{['afterInit'](){const _0x1e1c10=this['editor'];_0x1e1c10['commands']['get']('replaceSource')&&_0x1e1c10['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x577abc{['afterInit'](){const _0x2dc860=this['editor'];if(!_0x2dc860['plugins']['has']('RemoveFormatEditing'))return;_0x2dc860['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5be764=this['editor'];_0x5be764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4340eb=>{if('formatBlock'!=_0x4340eb['type']&&'formatInline'!=_0x4340eb['type'])return;const {data:_0xba826d}=_0x4340eb;return _0xba826d&&'removeFormat'==_0xba826d['commandName']?{'type':'format','content':o(_0x5be764['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x577abc{['afterInit'](){const _0x469fc9=this['editor'];if(!_0x469fc9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xdef331=_0x469fc9['plugins']['get']('TrackChangesEditing');_0xdef331['enableCommand']('goToPreviousRestrictedEditingException'),_0xdef331['enableCommand']('goToNextRestrictedEditingException');const _0x12950b=_0x469fc9['plugins']['get']('RestrictedEditingModeEditing');_0x12950b['enableCommand']('trackChanges'),_0x12950b['enableCommand']('acceptSuggestion'),_0x12950b['enableCommand']('discardSuggestion'),_0x12950b['enableCommand']('acceptAllSuggestions'),_0x12950b['enableCommand']('discardAllSuggestions'),_0x12950b['enableCommand']('acceptSelectedSuggestions'),_0x12950b['enableCommand']('discardSelectedSuggestions');}}class It extends _0x577abc{static get['requires'](){return[_0x5d02f6];}['init'](){const _0x52a534=this['editor'],_0xdb09a2=_0x52a534['plugins']['get']('TrackChangesEditing');_0xdb09a2['enableCommand']('shiftEnter'),_0x52a534['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x52a534),{'priority':'high'}),_0x52a534['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x52a534),{'priority':'high'}),_0x52a534['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x205168,_0x43165b,_0x1c1766)=>{_0x1c1766['options']['showSuggestionHighlights']&&je(_0x52a534,{'showActiveMarker':!0x1})(_0x205168,_0x43165b,_0x1c1766);}),_0xdb09a2['descriptionFactory']['registerElementLabel']('softBreak',_0x9af6b0=>o(_0x52a534['locale'],'ELEMENT_LINE_BREAK',_0x9af6b0));}}function je(_0x3cb876,{showActiveMarker:_0x2ea516=!0x0}={}){return(_0x2e0e63,_0x1d7a7f,_0x2675e8)=>{const _0x5942bc=_0x3cb876['plugins']['get']('TrackChangesEditing');if(!_0x2675e8['consumable']['test'](_0x1d7a7f['markerRange'],_0x2e0e63['name']))return;const _0x12c18e=_0x3cb876['model'];for(const _0x54b0c1 of _0x1d7a7f['markerRange']['getItems']()){if(!_0x54b0c1['is']('element','softBreak'))continue;const _0x109624='deletion'==_0x1d7a7f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x11a92c}=_0x5942bc['_splitMarkerName'](_0x1d7a7f['markerName']),_0x3cbb38=_0x2675e8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x109624,'data-author-id':_0x11a92c}),_0x9de33b=_0x2675e8['mapper']['toViewPosition'](_0x12c18e['createPositionBefore'](_0x54b0c1));_0x2ea516&&_0x5942bc['activeMarkers']['includes'](_0x1d7a7f['markerName'])&&_0x2675e8['writer']['addClass']('ck-suggestion-marker--active',_0x3cbb38),_0x2675e8['writer']['insert'](_0x9de33b,_0x3cbb38),_0x2675e8['mapper']['bindElementToMarker'](_0x3cbb38,_0x1d7a7f['markerName']);}};}class vt extends _0x577abc{['afterInit'](){const _0x4dcdd2=this['editor'],_0x4e4dea=_0x4dcdd2['model'],_0xa4b805=_0x4dcdd2['locale'];if(!_0x4dcdd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x2fd44b=_0x4dcdd2['plugins']['get']('TrackChangesEditing'),_0x1d099f='restrictedEditingException',_0x24101e=_0x4dcdd2['commands']['get'](_0x1d099f);_0x2fd44b['enableCommand'](_0x1d099f,(_0x31dc9c,_0x567b37={})=>{const _0x249979=_0x4e4dea['document']['selection'];if(_0x249979['isCollapsed'])return void _0x31dc9c(_0x567b37);const _0x3058b2=void 0x0!==_0x567b37['forceValue']?_0x567b37['forceValue']:!_0x24101e['value'];_0x4e4dea['change'](()=>{const _0x285fee=Array['from'](_0x249979['getRanges']());for(const _0xc3fec2 of _0x285fee){const _0x9d6513=_0x3058b2?[_0xc3fec2]:io(_0x1d099f,_0xc3fec2,_0x4e4dea);for(const _0x253b3b of _0x9d6513)_0x2fd44b['markInlineFormat'](_0x253b3b,{'commandName':_0x1d099f,'commandParams':[{'forceValue':_0x3058b2}]});}});}),_0x2fd44b['descriptionFactory']['registerDescriptionCallback'](_0x29eac6=>{if('formatBlock'!=_0x29eac6['type']&&'formatInline'!=_0x29eac6['type'])return;const {data:_0x200f5a}=_0x29eac6;return _0x200f5a&&_0x200f5a['commandName']==_0x1d099f?_0x200f5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa4b805,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xa4b805,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x577abc{['afterInit'](){const _0x57c2ec=this['editor'];if(!_0x57c2ec['plugins']['has']('Style')||!_0x57c2ec['plugins']['has']('DataSchema'))return;const _0x13f152=_0x57c2ec['plugins']['get']('TrackChangesEditing'),_0x1b3cae=_0x57c2ec['locale'],_0x3b6982=_0x57c2ec['config']['get']('style')||{},_0x2b723f=_0x57c2ec['plugins']['get']('GeneralHtmlSupport'),_0x407602=_0x57c2ec['plugins']['get']('StyleUtils')['normalizeConfig'](_0x57c2ec['plugins']['get']('DataSchema'),_0x3b6982['definitions']);_0x13f152['enableDefaultAttributesIntegration']('style');const _0x2aea65=new Set();for(const _0x148927 of _0x407602['block']){const _0x382fb5=_0x2b723f['getGhsAttributeNameForElement'](_0x148927['element']);_0x2aea65['add'](_0x382fb5);}const _0x439a73=new Set();for(const _0x515184 of _0x407602['inline']){const _0x4cd692=_0x2b723f['getGhsAttributeNameForElement'](_0x515184['element']);_0x439a73['add'](_0x4cd692);for(const _0x207024 of _0x515184['ghsAttributes'])_0x439a73['add'](_0x207024);}for(const _0x1be82b of _0x2aea65)_0x13f152['registerBlockAttribute'](_0x1be82b),_0x13f152['descriptionFactory']['registerAttributeLabel'](_0x1be82b,o(_0x1b3cae,'FORMAT_STYLE'));for(const _0x5b4ee6 of _0x439a73)_0x13f152['registerInlineAttribute'](_0x5b4ee6),_0x13f152['descriptionFactory']['registerAttributeLabel'](_0x5b4ee6,o(_0x1b3cae,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74ee9f=this['editor'],_0x593105=_0x74ee9f['locale'];_0x74ee9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2363f1=>{if('formatBlock'!=_0x2363f1['type']&&'formatInline'!=_0x2363f1['type'])return;const {data:_0x5cb7f}=_0x2363f1;return _0x5cb7f&&'style'===_0x5cb7f['commandName']?_0x5cb7f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x593105,'*Set\x20format:*\x20%0',_0x5cb7f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x593105,'*Remove\x20format:*\x20%0',_0x5cb7f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x577abc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x336864){super(_0x336864),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x531273=this['editor'],_0x25cf24=_0x531273['model']['document']['selection'];if(!_0x531273['plugins']['has']('TableEditing'))return;const _0x3ddc7d=_0x531273['locale'],_0x1ddcd9=_0x531273['plugins']['get']('TrackChangesEditing'),_0x4250e9=_0x531273['plugins']['get']('TableUtils');_0x1ddcd9['descriptionFactory']['registerElementLabel']('table',_0x163d46=>o(_0x3ddc7d,'ELEMENT_TABLE',_0x163d46)),this['_setupColumnsRowsFixing'](),_0x1ddcd9['enableCommand']('insertTable'),_0x1ddcd9['enableCommand']('selectTableRow'),_0x1ddcd9['enableCommand']('selectTableColumn');for(const _0x199d8c of['insertTableRowAbove','insertTableRowBelow']){const _0x243635=_0x531273['commands']['get'](_0x199d8c);_0x1ddcd9['enableCommand'](_0x199d8c,_0x519911=>{_0x531273['model']['change'](_0x268935=>{_0x519911();const _0x4808df='above'===_0x243635['order'],_0x747857=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0x15c66d=_0x4250e9['getRowIndexes'](_0x747857),_0x336eda=_0x4808df?_0x15c66d['first']-0x1:_0x15c66d['last']+0x1,_0xa41b41=_0x747857[0x0]['findAncestor']('table'),_0x19630f=_0x4250e9['createTableWalker'](_0xa41b41,{'startRow':_0x336eda,'endRow':_0x336eda}),_0xff3b4=Array['from'](_0x19630f)['map'](_0x54e277=>_0x268935['createRangeOn'](_0x54e277['cell']));_0x1ddcd9['markMultiRangeInsertion'](_0xff3b4,'tableRow');});});}for(const _0x1a61fe of['insertTableColumnLeft','insertTableColumnRight']){const _0x45bd33=_0x531273['commands']['get'](_0x1a61fe);_0x1ddcd9['enableCommand'](_0x1a61fe,_0xc33e44=>{_0x531273['model']['change'](_0x44e4fd=>{_0xc33e44();const _0x16478a='left'===_0x45bd33['order'],_0x1c2868=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0x6f660a=_0x4250e9['getColumnIndexes'](_0x1c2868),_0x2df82a=_0x16478a?_0x6f660a['first']-0x1:_0x6f660a['last']+0x1,_0x50f750=_0x1c2868[0x0]['findAncestor']('table'),_0x17cbe8=_0x4250e9['createTableWalker'](_0x50f750,{'startRow':0x0,'column':_0x2df82a,'includeAllSlots':!0x1}),_0x15c7cf=Array['from'](_0x17cbe8)['map'](_0x196b41=>_0x44e4fd['createRangeOn'](_0x196b41['cell']));_0x1ddcd9['markMultiRangeInsertion'](_0x15c7cf,'tableColumn');});});}for(const _0x235ba0 of['removeTableRow','removeTableColumn']){const _0x5e57d5=_0x235ba0['substr'](0xb),_0x5bf300=_0x5e57d5['toLowerCase'](),_0x5644e1=_0x5bf300['substr'](0x0,0x3)+'span',_0x1e16f9='table'+_0x5e57d5,_0x224859='min'+_0x5e57d5,_0x4d53f6='max'+_0x5e57d5;_0x1ddcd9['enableCommand'](_0x235ba0,()=>{_0x531273['model']['change'](_0x391d4d=>{const _0x7eef0d=_0x4250e9['getSelectionAffectedTableCells'](_0x25cf24),_0xe16885=_0x7eef0d[0x0]['findAncestor']('table');let _0x3e6707;if('removeTableRow'==_0x235ba0){const _0x2a8dc3=_0x4250e9['getRowIndexes'](_0x7eef0d);_0x3e6707={'startRow':_0x2a8dc3['first'],'endRow':_0x2a8dc3['last'],'includeAllSlots':!0x0};}else{const _0x52d735=_0x4250e9['getColumnIndexes'](_0x7eef0d);_0x3e6707={'startColumn':_0x52d735['first'],'endColumn':_0x52d735['last'],'includeAllSlots':!0x0};}const _0x49cb29=_0x4250e9['createTableWalker'](_0xe16885,_0x3e6707),_0x62c607=Array['from'](_0x49cb29)['map'](({cell:_0x3ac8d1})=>_0x3ac8d1),_0x2b6c87=Ne(_0x62c607['filter'](_0x4afadd=>_0x4afadd['hasAttribute'](_0x5644e1))),_0x2c5d9c=Ne(_0x62c607['filter'](_0x2d0475=>!_0x2d0475['hasAttribute'](_0x5644e1)))['map'](_0x12df83=>_0x391d4d['createRangeOn'](_0x12df83)),_0x54bf63=_0x1ddcd9['markMultiRangeDeletion'](_0x2c5d9c,_0x1e16f9);if(_0x54bf63&&('tableRow'==_0x54bf63['subType']||'tableColumn'==_0x54bf63['subType'])){const _0x2f1a89=this['_getSuggestionCoords'](_0x54bf63);for(const _0x55cf14 of _0x2b6c87){const _0x5056d2=_0x391d4d['createRangeOn'](_0x55cf14),_0x32ee1c=_0x4250e9['getCellLocation'](_0x55cf14),_0x364e2d=_0x55cf14['getAttribute'](_0x5644e1)-0x1,_0x3a9a11=_0x2f1a89[_0x224859],_0x7b2f80=_0x2f1a89[_0x4d53f6];_0x3a9a11<=_0x32ee1c[_0x5bf300]&&_0x32ee1c[_0x5bf300]+_0x364e2d<=_0x7b2f80&&_0x54bf63['addRange'](_0x5056d2);}}});});}function _0x1c9203(_0x4a4a98){const _0x596ea5=Array['from'](_0x25cf24['getRanges']())['map'](_0x508154=>_0x157a8e['fromRange'](_0x508154));_0x531273['model']['change'](_0x23c6e4=>{const _0x52c283=_0x23c6e4['batch'];_0x4a4a98=_0x4a4a98['filter'](_0x2518e9=>'$graveyard'!=_0x2518e9['root']['rootName']),_0x23c6e4['setSelection'](_0x4a4a98),_0x531273['commands']['get']('removeTableRow')['refresh'](),_0x531273['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x531273['model']['enqueueChange'](()=>{_0x531273['model']['enqueueChange'](_0x52c283,_0x5b6b0d=>{const _0x81bf3d=_0x596ea5['filter'](_0x3fe834=>'$graveyard'!=_0x3fe834['root']['rootName']);_0x81bf3d['length']>0x0&&_0x5b6b0d['setSelection'](_0x81bf3d);for(const _0x4cb308 of _0x596ea5)_0x4cb308['detach']();});});});}function _0x274f81(_0x1c500c){_0x531273['model']['change'](_0x534d04=>{const _0x276f80=Array['from'](_0x25cf24['getRanges']())['map'](_0x314081=>_0x157a8e['fromRange'](_0x314081)),_0x13838e=[];for(const _0x2b87b9 of _0x1c500c)for(const _0x45788e of _0x2b87b9['getItems']({'shallow':!0x0}))_0x13838e['push'](_0x45788e);for(const _0x1785d7 of _0x13838e)'$graveyard'!=_0x1785d7['root']['rootName']&&(_0x534d04['setSelection'](_0x534d04['createPositionAt'](_0x1785d7,0x0)),_0x531273['commands']['get']('removeTableColumn')['refresh'](),_0x531273['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5bad39=_0x276f80['filter'](_0x1a521e=>'$graveyard'!=_0x1a521e['root']['rootName']);_0x5bad39['length']>0x0&&_0x534d04['setSelection'](_0x5bad39);for(const _0x388e75 of _0x276f80)_0x388e75['detach']();});}function _0x9726f5(_0x4e300d,_0x4d3593){return _0x4d3593['every'](_0x23d792=>_0x4e300d['some'](_0x3ff7d4=>_0x3ff7d4['end']['isEqual'](_0x23d792['start'])||_0x23d792['end']['isEqual'](_0x3ff7d4['start'])));}function _0x4e8d51(_0x46ff78,_0x3d43eb){return!_0x46ff78['some'](_0x1a1340=>_0x3d43eb['some'](_0x378863=>_0x1a1340['isIntersecting'](_0x378863)))&&_0x46ff78['some'](_0x32dd22=>_0x3d43eb['some'](_0x333ba8=>_0x32dd22['end']['isTouching'](_0x333ba8['start'])));}_0x531273['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30da51,_0x580400,_0x27004c)=>{if(!_0x27004c['options']['showSuggestionHighlights'])return;const _0x35ce24=_0x580400['item'];if(!_0x35ce24)return;const _0x3b1ae1=_0x27004c['mapper']['toViewElement'](_0x35ce24);function _0x5a0dbb(_0x1fc0ce){return Array['isArray'](_0x1fc0ce)?_0x1fc0ce:[_0x1fc0ce];}_0x3b1ae1&&'tableCell'===_0x35ce24['name']&&_0x3e776a(_0x3b1ae1,_0x27004c['writer'],(_0x232c02,_0x3ac8c6,_0x3179c1)=>_0x3179c1['addClass'](_0x5a0dbb(_0x3ac8c6['classes']),_0x232c02),(_0x27980b,_0x27336b,_0x3d0bf8)=>_0x3d0bf8['removeClass'](_0x5a0dbb(_0x27336b['classes']),_0x27980b));},{'priority':'highest'}),_0x1ddcd9['descriptionFactory']['registerDescriptionCallback'](_0xb2c6fb=>{if('insertion'!=_0xb2c6fb['type']&&'deletion'!=_0xb2c6fb['type'])return;const _0x2c9113=_0xb2c6fb['getContainedElement']();if(null!=_0x2c9113&&_0x2c9113['is']('element','table')){if('insertion'==_0xb2c6fb['type']){const _0x229858=_0xb2c6fb['getItems']()['filter'](_0x17f0b3=>_0x17f0b3['is']('$textProxy'))['map'](_0x20f178=>_0x20f178['data']);if(_0x229858['length'])return{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x229858['join']('\x20')+'\x22'))};}if('deletion'==_0xb2c6fb['type']){const _0x17211e=_0xb2c6fb['getItems']()['filter'](_0x1f9739=>_0x1f9739['is']('$textProxy'))['map'](_0x1b5be3=>_0x1b5be3['data']);if(_0x17211e['length'])return{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17211e['join']('\x20')+'\x22'))};}}}),_0x1ddcd9['descriptionFactory']['registerDescriptionCallback'](_0x4b0bf4=>{if('tableRow'==_0x4b0bf4['subType']){const _0xa68473=_0x4b0bf4['getItems']()['filter'](_0x299ee8=>_0x299ee8['is']('$textProxy'))['map'](_0x2a1ddb=>_0x2a1ddb['data']),_0x3f803e=this['_getSuggestionCoords'](_0x4b0bf4),_0x1fdc70=_0x3f803e['maxRow']-_0x3f803e['minRow']+0x1;if('insertion'==_0x4b0bf4['type'])return _0xa68473['length']?{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fdc70,'\x22'+_0xa68473['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW',_0x1fdc70))};if('deletion'==_0x4b0bf4['type'])return _0xa68473['length']?{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fdc70,'\x22'+_0xa68473['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_ROW',_0x1fdc70))};}if('tableColumn'==_0x4b0bf4['subType']){const _0x16c002=_0x4b0bf4['getItems']()['filter'](_0x5b2715=>_0x5b2715['is']('$textProxy'))['map'](_0x47050f=>_0x47050f['data']),_0x53fc4f=this['_getSuggestionCoords'](_0x4b0bf4),_0x5e8f63=_0x53fc4f['maxColumn']-_0x53fc4f['minColumn']+0x1;if('insertion'==_0x4b0bf4['type'])return _0x16c002['length']?{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8f63,'\x22'+_0x16c002['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ddc7d,'*Insert:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN',_0x5e8f63))};if('deletion'==_0x4b0bf4['type'])return _0x16c002['length']?{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8f63,'\x22'+_0x16c002['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ddc7d,'*Remove:*\x20%0',o(_0x3ddc7d,'ELEMENT_TABLE_COLUMN',_0x5e8f63))};}}),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c9203),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c9203),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x274f81),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x274f81),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9726f5),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9726f5),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e8d51),_0x1ddcd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e8d51);}['_acceptFormatSuggestionCallbackFactory'](){const _0x59b7b3=this['editor'],_0x3886fb=_0x59b7b3['model']['document']['selection'];return(_0x5e4482,_0x21383f)=>{_0x59b7b3['model']['change'](_0x3e6a87=>{const {commandName:_0x100994,commandParams:_0x472b54}=_0x21383f;let _0x24ac50=_0x5e4482[0x0]['end']['nodeBefore'];_0x472b54&&_0x472b54[0x0]&&!0x1===_0x472b54[0x0]['forceValue']&&(_0x24ac50=_0x5e4482[0x0]['start']['nodeAfter']);const _0x1ffef9=_0x3e6a87['createRangeIn'](_0x24ac50);if('$graveyard'==_0x1ffef9['root']['rootName'])return;const _0x40c250=Array['from'](_0x3886fb['getRanges']())['map'](_0x28e14d=>_0x157a8e['fromRange'](_0x28e14d));_0x3e6a87['setSelection'](_0x1ffef9),_0x59b7b3['commands']['get'](_0x100994)['refresh'](),_0x472b54['push']({'forceDefaultExecution':!0x0}),_0x59b7b3['execute'](_0x100994,..._0x472b54);const _0x23ffd4=_0x40c250['filter'](_0x3828cb=>'$graveyard'!=_0x3828cb['root']['rootName']);_0x23ffd4['length']>0x0&&_0x3e6a87['setSelection'](_0x23ffd4);for(const _0x32bdc1 of _0x40c250)_0x32bdc1['detach']();});};}['_getCoordsForCells'](_0x548f85){const _0x4a8533=this['editor']['plugins']['get']('TableUtils');let _0x30a939=Number['MAX_SAFE_INTEGER'],_0x3e1cde=Number['MIN_SAFE_INTEGER'],_0x4b4e6e=Number['MAX_SAFE_INTEGER'],_0x2cf51a=Number['MIN_SAFE_INTEGER'];for(const _0x1cd4ea of _0x548f85){if('$graveyard'==_0x1cd4ea['root']['rootName'])continue;const {row:_0x811990,column:_0x45a2eb}=_0x4a8533['getCellLocation'](_0x1cd4ea),_0x451f10=_0x1cd4ea['hasAttribute']('rowspan')?_0x1cd4ea['getAttribute']('rowspan')-0x1:0x0,_0x169184=_0x1cd4ea['hasAttribute']('colspan')?_0x1cd4ea['getAttribute']('colspan')-0x1:0x0;_0x30a939=_0x811990<_0x30a939?_0x811990:_0x30a939,_0x3e1cde=_0x811990+_0x451f10>_0x3e1cde?_0x811990+_0x451f10:_0x3e1cde,_0x4b4e6e=_0x45a2eb<_0x4b4e6e?_0x45a2eb:_0x4b4e6e,_0x2cf51a=_0x45a2eb+_0x169184>_0x2cf51a?_0x45a2eb+_0x169184:_0x2cf51a;}return{'minRow':_0x30a939,'maxRow':_0x3e1cde,'minColumn':_0x4b4e6e,'maxColumn':_0x2cf51a};}['_setupColumnsRowsFixing'](){const _0x465ab5=this['editor'],_0x4bdc88=_0x465ab5['plugins']['get']('TrackChangesEditing'),_0x22e7a2=_0x465ab5['plugins']['get']('TableUtils');_0x465ab5['model']['document']['on']('change:data',()=>{const _0x11644c=Array['from'](_0x465ab5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x379c45,data:_0x169670}of _0x11644c){const {group:_0x237946,id:_0x1b5f3b,subType:_0x1fdd4a}=_0x4bdc88['_splitMarkerName'](_0x379c45);if('suggestion'!=_0x237946)continue;if(null!=_0x169670['oldRange'])continue;const _0x1b0ec5=_0x4bdc88['getSuggestion'](_0x1b5f3b);this['_tablePostFixingSubtypes']['includes'](_0x1fdd4a)&&this['_tableSuggestions']['add'](_0x1b0ec5);}},{'priority':'low'});const _0x25d13c=(_0x1a2327,_0x200d07)=>{let _0x15c743=!0x1;const _0x51d121=_0x200d07['createRangeOn'](_0x1a2327),_0x42ea68=_0x1a2327['findAncestor']('table'),_0x1dd1bc=_0x22e7a2['getCellLocation'](_0x1a2327);for(const _0x2cbf71 of this['_tableSuggestions']){const _0x23d314=_0x2cbf71['subType'],_0x271148=_0x23d314['startsWith']('tablePaste'),_0x303dc5=_0x23d314['substr'](_0x271148?0xa:0x5),_0x59963c=_0x303dc5['toLowerCase'](),_0xe081fb=_0x59963c['substr'](0x0,0x3)+'span',_0x5e2ba2='min'+_0x303dc5,_0x33664d='max'+_0x303dc5;if(!_0x2cbf71['isInContent'])continue;if(_0x42ea68!=_0x2cbf71['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cbf71['isIntersectingWithRange'](_0x51d121))continue;const _0xdaa260=_0x1a2327['hasAttribute'](_0xe081fb)?_0x1a2327['getAttribute'](_0xe081fb)-0x1:0x0,_0x188a27=this['_getSuggestionCoords'](_0x2cbf71),_0x51b21c=_0x188a27[_0x5e2ba2],_0x514e31=_0x188a27[_0x33664d];_0x51b21c<=_0x1dd1bc[_0x59963c]&&_0x1dd1bc[_0x59963c]+_0xdaa260<=_0x514e31&&(_0x2cbf71['addRange'](_0x51d121),_0x15c743=!0x0);}return _0x15c743;};_0x465ab5['model']['document']['registerPostFixer'](_0x4fef18=>{let _0x1f9968=!0x1;for(const _0x175831 of _0x465ab5['model']['document']['differ']['getChanges']())if('insert'==_0x175831['type']){if('tableRow'==_0x175831['name']){for(const _0xa00ddd of _0x175831['position']['nodeAfter']['getChildren']())_0x1f9968=_0x1f9968||_0x25d13c(_0xa00ddd,_0x4fef18);}else'tableCell'==_0x175831['name']&&(_0x1f9968=_0x1f9968||_0x25d13c(_0x175831['position']['nodeAfter'],_0x4fef18));}return _0x1f9968;});}['_getSuggestionCoords'](_0x418869){return this['_getCoordsForCells'](_0x418869['getRanges']()['map'](_0x5d3fac=>_0x5d3fac['start']['nodeAfter']));}}function Ne(_0x27d9c0){return Array['from'](new Set(_0x27d9c0)['values']());}class Nt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c5ccd=this['editor'],_0x58aa68=_0x5c5ccd['model']['document']['selection'],_0x29c402=_0x5c5ccd['locale'];if(!_0x5c5ccd['plugins']['has']('TableEditing'))return;const _0x480a89=_0x5c5ccd['plugins']['get']('TrackChangesEditing'),_0x19d8c0=_0x5c5ccd['plugins']['get']('TableUtils'),_0x3e6a85=_0x5c5ccd['plugins']['get'](Ct);_0x3e6a85['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x480a89['enableCommand']('mergeTableCells',()=>{const _0x585aec=_0x19d8c0['getSelectionAffectedTableCells'](_0x5c5ccd['model']['document']['selection']);_0x5c5ccd['model']['change'](()=>{_0x480a89['markMultiRangeBlockFormat'](_0x585aec,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c5ccd['commands']['get']('mergeTableCells')['on']('execute',(_0x3314d4,_0x3b6435)=>{_0x5c5ccd['commands']['get']('trackChanges')['value']&&(_0x3b6435['length']>0x0&&_0x3b6435[_0x3b6435['length']-0x1]&&_0x3b6435[_0x3b6435['length']-0x1]['forceDefaultExecution']||_0x480a89['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3314d4['stop']());},{'priority':'highest'});for(const _0x35c558 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x411710=_0x5c5ccd['commands']['get'](_0x35c558);_0x480a89['enableCommand'](_0x35c558,()=>{const _0x2068b3=_0x5c5ccd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1bb5d0=>_0x1bb5d0['is']('element','tableCell')),_0x4d31aa=_0x411710['value'];_0x5c5ccd['model']['change'](()=>{_0x480a89['markMultiRangeBlockFormat']([_0x2068b3,_0x4d31aa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4454e7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3a1be4=_0x5c5ccd['commands']['get'](_0x4454e7);_0x480a89['enableCommand'](_0x4454e7,()=>{const _0x228167=_0x19d8c0['getSelectionAffectedTableCells'](_0x5c5ccd['model']['document']['selection'])[0x0],_0x249fdf=_0x228167['findAncestor']('table'),{column:_0x3cb8f2,row:_0x5bdafa}=_0x19d8c0['getCellLocation'](_0x228167);let _0x303c95=[];if('horizontally'==_0x3a1be4['direction']){const _0x4cc358=_0x19d8c0['createTableWalker'](_0x249fdf,{'startRow':_0x5bdafa,'endRow':_0x5bdafa,'includeAllSlots':!0x0});_0x303c95=Array['from'](_0x4cc358)['map'](_0x5f9642=>_0x5f9642['cell']);}else{const _0x45a957=_0x19d8c0['createTableWalker'](_0x249fdf,{'column':_0x3cb8f2,'includeAllSlots':!0x0});_0x303c95=Array['from'](_0x45a957)['map'](_0x18f189=>_0x18f189['cell']);}_0x5c5ccd['model']['change'](_0x5183cd=>{_0x480a89['markBlockFormat'](_0x5183cd['createRangeOn'](_0x228167),{'commandName':_0x4454e7,'commandParams':[]},_0x303c95,_0x4454e7);});});}_0x480a89['descriptionFactory']['registerDescriptionCallback'](_0x1f3275=>{if('formatBlock'!=_0x1f3275['type']&&'formatInline'!=_0x1f3275['type'])return;const {data:_0x1e64c5}=_0x1f3275;return _0x1e64c5&&'mergeTableCells'==_0x1e64c5['commandName']?{'type':'format','content':o(_0x29c402,'*Merge\x20cells*')}:void 0x0;}),_0x480a89['descriptionFactory']['registerDescriptionCallback'](_0x135bb9=>{if('formatBlock'!=_0x135bb9['type']&&'formatInline'!=_0x135bb9['type'])return;const {data:_0x532cb6}=_0x135bb9;return _0x532cb6?'splitTableCellVertically'==_0x532cb6['commandName']?{'type':'format','content':o(_0x29c402,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x532cb6['commandName']?{'type':'format','content':o(_0x29c402,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x153c6c=_0x3e6a85['_acceptFormatSuggestionCallbackFactory']();for(const _0x3aef88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3aef88,'accept',_0x153c6c);for(const _0x34fe5c of['splitTableCellVertically','splitTableCellHorizontally'])_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34fe5c,'accept',_0x153c6c);_0x480a89['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1deda0=>{_0x5c5ccd['model']['change'](_0x3ae226=>{const _0xf41ba2=Array['from'](_0x58aa68['getRanges']())['map'](_0x251be8=>_0x157a8e['fromRange'](_0x251be8));_0x3ae226['setSelection'](_0x1deda0),_0x5c5ccd['commands']['get']('mergeTableCells')['refresh'](),_0x5c5ccd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36c1a0=_0xf41ba2['filter'](_0x529cbd=>'$graveyard'!=_0x529cbd['root']['rootName']);_0x36c1a0['length']>0x0&&_0x3ae226['setSelection'](_0x36c1a0);for(const _0x178613 of _0xf41ba2)_0x178613['detach']();});});for(const _0x46b9fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x20fe47=_0x5c5ccd['commands']['get'](_0x46b9fc);_0x20fe47['on']('set:isEnabled',(_0x4cc3f6,_0x272ac2,_0x13be49)=>{if(_0x13be49){const _0x322411=_0x5c5ccd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1af0e5=>_0x1af0e5['is']('element','tableCell'));this['_areMergableCells'](_0x20fe47['value'],_0x322411)||(_0x4cc3f6['return']=!0x1,_0x4cc3f6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4b59d1=this['editor']['commands']['get']('mergeTableCells'),_0xab7ae4=this['editor']['plugins']['get']('TableUtils');if(!_0x4b59d1['isEnabled'])return!0x1;const _0x3765d9=_0xab7ae4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4bb6ca of _0x3765d9)for(const _0x2f391c of _0x3765d9)if(_0x4bb6ca!=_0x2f391c&&!this['_areMergableCells'](_0x4bb6ca,_0x2f391c))return!0x1;return!0x0;}['_areMergableCells'](_0x149d9e,_0x5ba26e){const _0x564c9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e75ce=this['editor']['model']['createRangeOn'](_0x149d9e),_0x2f152a=this['editor']['model']['createRangeOn'](_0x5ba26e),_0x35c767=new Set(),_0x445a84=new Set();for(const _0x80b382 of _0x564c9c['getSuggestions']())if(('insertion'==_0x80b382['type']||'deletion'==_0x80b382['type']||'mergeTableCells'==_0x80b382['subType'])&&_0x80b382['isInContent']){for(const _0x129e3b of _0x80b382['getRanges']())_0x129e3b['containsRange'](_0x3e75ce,!0x0)&&_0x35c767['add'](_0x80b382['type']+':'+_0x80b382['author']['id']),_0x129e3b['containsRange'](_0x2f152a,!0x0)&&_0x445a84['add'](_0x80b382['type']+':'+_0x80b382['author']['id']);}if(_0x35c767['size']!=_0x445a84['size'])return!0x1;for(const _0x1c7d47 of _0x35c767)if(!_0x445a84['has'](_0x1c7d47))return!0x1;return!0x0;}}class Dt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a5efd=this['editor'];if(!_0x4a5efd['plugins']['has']('TableEditing'))return;const _0x2a6917=_0x4a5efd['locale'],_0x3c8052=_0x4a5efd['plugins']['get']('TrackChangesEditing');_0x3c8052['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3c8052['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3c8052['registerBlockAttribute']('headingRows'),_0x3c8052['registerBlockAttribute']('headingColumns'),_0x3c8052['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2a6917,'FORMAT_HEADER_ROW')),_0x3c8052['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2a6917,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48a692=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36942a=this['editor']['plugins']['get']('TableUtils'),_0x4cb418=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x46b3a6({showActiveMarker:_0xd8b34e=!0x0,setDataAttribute:_0x59ae51=!0x0}={}){return(_0x551617,_0x40883a,_0x4a3bcd)=>{const {type:_0x54ad9a,id:_0x131eb5}=_0x48a692['_splitMarkerName'](_0x40883a['markerName']),_0x21d9a9=_0x48a692['getSuggestion'](_0x131eb5),_0x2c907a=_0x21d9a9['data'];if('formatBlock'!=_0x21d9a9['type']||!_0x2c907a||'setTableColumnHeader'!=_0x2c907a['commandName'])return;if(_0x40883a['item'])return void _0x551617['stop']();if(!_0x4a3bcd['consumable']['consume'](_0x40883a['markerRange'],_0x551617['name']))return;const _0x401d0f=_0x40883a['markerRange']['start']['nodeAfter'],_0x1ba3d2=_0x40883a['markerRange']['end']['nodeBefore'],_0x5e3721=_0x401d0f['parent']['parent'],{column:_0x17c594}=_0x36942a['getCellLocation'](_0x401d0f),{column:_0x1ab0a0}=_0x36942a['getCellLocation'](_0x1ba3d2);for(let _0x416dd2=_0x17c594;_0x416dd2<=_0x1ab0a0;_0x416dd2++){const _0x4a51b3=_0x36942a['createTableWalker'](_0x5e3721,{'column':_0x416dd2,'includeAllSlots':!0x1});for(const _0x5241be of _0x4a51b3){const _0x10ee58=_0x5241be['cell'],_0x3e01e7=_0x4a3bcd['mapper']['toViewElement'](_0x10ee58);_0x4a3bcd['writer']['addClass']('ck-suggestion-marker-'+_0x54ad9a,_0x3e01e7),_0x59ae51&&_0x4a3bcd['writer']['setAttribute']('data-suggestion',_0x131eb5,_0x3e01e7),_0x4a3bcd['mapper']['bindElementToMarker'](_0x3e01e7,_0x40883a['markerName']),_0xd8b34e&&(_0x48a692['activeMarkers']['includes'](_0x40883a['markerName'])?_0x4a3bcd['writer']['addClass']('ck-suggestion-marker--active',_0x3e01e7):_0x4a3bcd['writer']['removeClass']('ck-suggestion-marker--active',_0x3e01e7));}}};}_0x48a692['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cb418),_0x48a692['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cb418),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46b3a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d89bd,_0x27dca9,_0x3eff9d)=>{_0x3eff9d['options']['showSuggestionHighlights']&&_0x46b3a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d89bd,_0x27dca9,_0x3eff9d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34d258,_0x41b06a,_0x5f3e9e)=>{const {type:_0x3adf2d,id:_0x5e30d0}=_0x48a692['_splitMarkerName'](_0x41b06a['markerName']),_0x1bfb5e=_0x48a692['getSuggestion'](_0x5e30d0),_0x3e70cf=_0x1bfb5e['data'];if('formatBlock'!=_0x1bfb5e['type']||!_0x3e70cf||'setTableColumnHeader'!=_0x3e70cf['commandName'])return;const _0x4445d2=_0x5f3e9e['mapper']['markerNameToElements'](_0x41b06a['markerName']);if(_0x4445d2){for(const _0x310533 of _0x4445d2)_0x5f3e9e['writer']['removeClass']('ck-suggestion-marker-'+_0x3adf2d,_0x310533),_0x5f3e9e['writer']['removeClass']('ck-suggestion-marker--active',_0x310533),_0x5f3e9e['writer']['removeAttribute']('data-suggestion',_0x310533),_0x5f3e9e['mapper']['unbindElementFromMarkerName'](_0x310533,_0x41b06a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x229d05=this['editor'],_0x67e7d3=_0x229d05['locale'];function _0x5bccc8(_0x23760b){return{'type':'format','content':o(_0x67e7d3,'*Format:*\x20%0',_0x23760b)};}_0x229d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd75577=>{if('formatBlock'!=_0xd75577['type'])return;const {data:_0x36780a}=_0xd75577;if(_0x36780a){if('setTableRowHeader'==_0x36780a['commandName']){const _0x114a36=_0x36780a['commandParams'][0x0]['forceValue'];return _0x5bccc8(o(_0x67e7d3,_0x114a36?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36780a['commandName']){const _0x43917e=_0x36780a['commandParams'][0x0]['forceValue'];return _0x5bccc8(o(_0x67e7d3,_0x43917e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2977e5=>[_0x2977e5,null]));class Mt extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x328752=this['editor'];if(!_0x328752['plugins']['has']('TableClipboard'))return;const _0x24f8ed=_0x328752['plugins']['get']('TrackChangesEditing'),_0x34cfb1=_0x328752['plugins']['get']('TableUtils'),_0xda9c27=_0x328752['plugins']['get'](Ct),_0x16c3a8=_0x328752['plugins']['get']('TableClipboard');_0xda9c27['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x328752['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x328752['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x57cb14=null;_0x328752['model']['on']('insertContent',(_0x1a6fb5,_0x1f5ea8)=>{const [_0x1128e4,_0x5a4f0f]=_0x1f5ea8,_0x5df45f=_0x1f5ea8[_0x1f5ea8['length']-0x1];_0x5df45f&&_0x5df45f['forceDefaultExecution']||_0x24f8ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x180037,_0x2e5cd1,_0x3e7be8,_0x134fe9,_0x2be6a1){if(_0x2e5cd1&&!_0x2e5cd1['is']('documentSelection'))return!0x1;const _0x18e660=_0x2be6a1['getTableIfOnlyTableInContent'](_0x180037,_0x3e7be8);if(!_0x18e660||!Ue(_0x18e660,void 0x0,_0x134fe9))return!0x1;const _0x16f765=_0x134fe9['getSelectionAffectedTableCells'](_0x3e7be8['document']['selection']);if(!_0x16f765['length'])return!0x1;const _0x704440=_0x16f765[0x0]['findAncestor']('table'),_0x1d19d4=_0x134fe9['getRowIndexes'](_0x16f765),_0x242859=_0x134fe9['getColumnIndexes'](_0x16f765),_0xaacccd={'startRow':_0x1d19d4['first'],'endRow':_0x1d19d4['last'],'startColumn':_0x242859['first'],'endColumn':_0x242859['last']};return 0x1==_0x16f765['length']&&(_0xaacccd['endRow']+=_0x134fe9['getRows'](_0x18e660)-0x1,_0xaacccd['endColumn']+=_0x134fe9['getColumns'](_0x18e660)-0x1),Ue(_0x704440,_0xaacccd,_0x134fe9);}(_0x1128e4,_0x5a4f0f,_0x328752['model'],_0x34cfb1,_0x16c3a8)&&(_0x1a6fb5['stop'](),_0x57cb14={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x328752['model']['change'](()=>{_0x328752['model']['insertContent'](_0x1f5ea8[0x0],_0x1f5ea8[0x1],_0x1f5ea8[0x2],{'forceDefaultExecution':!0x0});const _0x197d95=_0x2730a7(),{rowInsertionRanges:_0x4804c1,columnInsertionRanges:_0x1be824,insertionRanges:_0x30c046,deletionRanges:_0x4ce967,cells:_0x1465ee}=_0x57cb14;_0x4804c1['length']&&_0x24f8ed['markMultiRangeInsertion'](_0x4804c1,'tablePasteRow',{'tablePasteChainId':_0x197d95}),_0x1be824['length']&&_0x24f8ed['markMultiRangeInsertion'](_0x1be824,'tablePasteColumn',{'tablePasteChainId':_0x197d95}),_0x30c046['length']&&(_0x24f8ed['markMultiRangeInsertion'](_0x30c046,'tablePaste',{'tablePasteChainId':_0x197d95,'skipNestingCheck':!0x0}),_0x30c046['forEach'](_0x28d952=>_0x28d952['detach']?.())),_0x4ce967['length']&&(_0x24f8ed['markMultiRangeDeletion'](_0x4ce967,'tablePaste',{'tablePasteChainId':_0x197d95,'skipNestingCheck':!0x0}),_0x4ce967['forEach'](_0x162b9f=>_0x162b9f['detach']?.()));const _0x38410e=_0x24f8ed['markMultiRangeBlockFormat'](_0x1465ee['map'](({element:_0x13fa4f})=>_0x13fa4f),{'formatGroupId':_0x2730a7()},[],'tablePasteCell',{'tablePasteChainId':_0x197d95});if(_0x38410e){const _0x123b68=_0x38410e['getMarkers'](),_0xb2a50e=[];for(const {element:_0x31cc4e,attributes:_0x2a6085}of _0x1465ee){if(!_0x2a6085)continue;const _0x33e794=_0x328752['model']['createRangeOn'](_0x31cc4e),_0x26c226=_0x123b68['find'](_0x42f9d8=>_0x42f9d8['getRange']()['isEqual'](_0x33e794));_0x26c226&&_0xb2a50e['push']([_0x26c226['name'],_0x2a6085]);}_0xb2a50e['length']&&_0x38410e['setAttribute']('markerAttributes',Object['fromEntries'](_0xb2a50e));}_0x57cb14=null;}));},{'priority':_0x1ed5be['high']+0xa}),_0x328752['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42a0f2,_0x3c6c00)=>{const [_0x2abeb8,_0x424c3a,,_0x43f80]=_0x3c6c00;if(!_0x57cb14)return;_0x42a0f2['stop']();const _0x36981b=_0x2abeb8['cell'],_0x16bc67=_0x424c3a,_0x7ed98=Oe(_0x36981b),_0x3f4ab4=Oe(_0x16bc67);_0x42a0f2['return']=_0x36981b;let _0x18b72f=null,_0x988bb1=null;if(_0x3f4ab4||_0x7ed98){if(_0x7ed98&&!_0x3f4ab4){_0x43f80['remove'](_0x36981b['getChild'](0x0));for(const _0x4493f7 of Array['from'](_0x16bc67['getChildren']()))_0x43f80['insert'](_0x4493f7,_0x36981b,'end');const _0x101a6d=_0x57cb14['rowInsertionIndexes']['includes'](_0x2abeb8['row']),_0x52a199=_0x57cb14['columnInsertionIndexes']['includes'](_0x2abeb8['column']);_0x101a6d||_0x52a199||(_0x18b72f=_0x157a8e['fromRange'](_0x43f80['createRangeIn'](_0x36981b)));}else _0x3f4ab4&&!_0x7ed98&&(_0x988bb1=_0x43f80['createRangeIn'](_0x36981b));}else{const _0x429730=_0x43f80['createElement']('tableCellSuggestion'),_0x398c51=_0x43f80['createElement']('tableCellSuggestion');_0x43f80['wrap'](_0x43f80['createRangeIn'](_0x36981b),_0x398c51),_0x43f80['insert'](_0x429730,_0x36981b,0x0);for(const _0x5db0be of Array['from'](_0x16bc67['getChildren']()))_0x43f80['insert'](_0x5db0be,_0x429730,'end');_0x18b72f=_0x157a8e['fromRange'](_0x43f80['createRangeOn'](_0x429730)),_0x988bb1=_0x157a8e['fromRange'](_0x43f80['createRangeOn'](_0x398c51));}const _0x29cb72=Array['from'](_0x16bc67['getAttributes']())['filter'](([_0x124f9a])=>Be['includes'](_0x124f9a));_0x57cb14['cells']['push']({'element':_0x36981b,'attributes':_0x29cb72['length']?Object['fromEntries'](_0x29cb72):null}),_0x18b72f&&_0x57cb14['insertionRanges']['push'](_0x18b72f),_0x988bb1&&_0x57cb14['deletionRanges']['push'](_0x988bb1);},{'priority':'high'}),_0x34cfb1['on']('insertColumns',(_0x287e85,_0x7b7de6)=>{const [_0x1709b3,_0x22b865={}]=_0x7b7de6;if(!_0x57cb14)return;const _0x13be86=_0x22b865['at']||0x0,_0x2bc113=_0x22b865['columns']||0x1;_0x57cb14['columnInsertionIndexes']=new Array(_0x2bc113)['fill'](_0x13be86)['map']((_0x12fd88,_0x2821)=>_0x12fd88+_0x2821);for(const {cell:_0x59bb0a}of _0x34cfb1['createTableWalker'](_0x1709b3,{'startColumn':_0x13be86,'endColumn':_0x13be86+_0x2bc113-0x1}))_0x57cb14['columnInsertionRanges']['push'](_0x328752['model']['createRangeOn'](_0x59bb0a));},{'priority':'low'}),_0x34cfb1['on']('insertRows',(_0x2e8a86,_0x4e34ed)=>{const [_0x4c08c7,_0x1dfb99={}]=_0x4e34ed;if(!_0x57cb14)return;const _0xbd2887=_0x1dfb99['at']||0x0,_0x5704ff=_0x1dfb99['rows']||0x1;_0x57cb14['rowInsertionIndexes']=new Array(_0x5704ff)['fill'](_0xbd2887)['map']((_0x10a243,_0x209df1)=>_0x10a243+_0x209df1);for(const {cell:_0x3e154d}of _0x34cfb1['createTableWalker'](_0x4c08c7,{'startRow':_0xbd2887,'endRow':_0xbd2887+_0x5704ff-0x1}))_0x57cb14['rowInsertionRanges']['push'](_0x328752['model']['createRangeOn'](_0x3e154d));},{'priority':'low'}),_0x24f8ed['descriptionFactory']['registerDescriptionCallback'](_0x3e7889=>{if(_0x3e7889['subType']&&_0x3e7889['subType']['startsWith']('tablePaste'))return _0x3e7889['previous']?{}:{'type':'insertion','content':o(_0x328752['locale'],'*Replace\x20table\x20cells*')};});const _0x43c710=()=>!0x1;for(const _0x50fd6d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x50fd6d,'join',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x50fd6d,'join',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50fd6d,'join',_0x43c710);_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43c710),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x352c74,_0x38e3b1,_0x57869a)=>{const _0xad8e38=_0x352c74['map'](_0x4aa533=>_0x4aa533['getContainedElement']())['filter'](_0x1b0a9e=>_0x1b0a9e),_0x10113d=new Map(_0xad8e38['map'](_0x4f9f2f=>[_0x4f9f2f,null]));if(_0x57cb14){for(const {element:_0x3b2a78,attributes:_0x47b828}of _0x57cb14['cells'])_0x47b828&&_0x10113d['set'](_0x3b2a78,_0x47b828);}else{if(_0x57869a&&_0x57869a['markerAttributes'])for(const [_0x5e0efc,_0x1c8518]of Object['entries'](_0x57869a['markerAttributes'])){const _0x147390=_0x328752['model']['markers']['get'](_0x5e0efc),_0x499eff=_0x147390?_0x147390['getRange']()['getContainedElement']():null;_0x499eff&&_0x10113d['set'](_0x499eff,_0x1c8518);}}_0x328752['model']['change'](_0x2f1b86=>{for(const [_0x3466ab,_0x3cba56]of _0x10113d)_0x2f1b86['setAttributes']({...xe,..._0x3cba56},_0x3466ab);});});const _0x983de9=(_0x3d53a4,_0x4cd03b)=>{_0x24f8ed['_suggestionFactory']['registerCustomCallback'](_0x3d53a4,'tablePaste',_0x4cd03b,(_0x5bb8b4,_0x40c5cf,_0x27e486)=>{_0x328752['model']['change'](_0x47bd99=>{const _0x313094=[];for(const _0x52afc8 of _0x5bb8b4){const _0x133a46=_0x52afc8['start']['nodeAfter'];_0x133a46['is']('element','tableCellSuggestion')&&_0x313094['push'](_0x133a46);}_0x24f8ed['_suggestionFactory']['getSuggestionCallback'](_0x3d53a4,null,_0x4cd03b)(_0x5bb8b4,_0x40c5cf,_0x27e486);for(const _0x57543c of _0x313094)'$graveyard'!=_0x57543c['root']['rootName']&&_0x47bd99['unwrap'](_0x57543c);});});};_0x983de9('insertion','accept'),_0x983de9('insertion','discard'),_0x983de9('deletion','accept'),_0x983de9('deletion','discard'),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x347da9=>{const _0x1ad473=_0x347da9['map'](_0x2a961b=>_0x2a961b['getContainedElement']()),_0x149a3e=_0x1ad473[0x0]['findAncestor']('table'),{minRow:_0x7a4991,maxRow:_0x3732da}=_0xda9c27['_getCoordsForCells'](_0x1ad473);_0x34cfb1['removeRows'](_0x149a3e,{'at':_0x7a4991,'rows':_0x3732da-_0x7a4991+0x1});}),_0x24f8ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1bb233=>{const _0x536659=_0x1bb233['map'](_0x7b801d=>_0x7b801d['getContainedElement']()),_0x1c1296=_0x536659[0x0]['findAncestor']('table'),{minColumn:_0x455c77,maxColumn:_0x1df2ae}=_0xda9c27['_getCoordsForCells'](_0x536659);_0x34cfb1['removeColumns'](_0x1c1296,{'at':_0x455c77,'columns':_0x1df2ae-_0x455c77+0x1});});const _0x485003=(_0x440d64,_0x202790)=>{if(!_0x202790['subType']||!_0x202790['subType']['startsWith']('tablePaste'))return;const _0x9859e8=_0x202790['attributes']['tablePasteChainId'],_0x44dc5d=_0x24f8ed['getSuggestions']()['filter'](_0x46dc52=>_0x46dc52['isInContent']&&_0x46dc52['attributes']&&_0x46dc52['attributes']['tablePasteChainId']==_0x9859e8);_0x44dc5d['length']&&_0x202790['getAllAdjacentSuggestions']()['length']!=_0x44dc5d['length']&&_0x44dc5d['reduce']((_0x183f10,_0x448aab)=>(_0x183f10['next']=_0x448aab,_0x448aab['previous']=_0x183f10,_0x448aab));};function _0x7c8259(_0x26f32d,_0x334d1b=!0x0){const {id:_0x6f5344,authorId:_0x1c4b24}=_0x24f8ed['_splitMarkerName'](_0x26f32d['markerName']),_0x3a57e5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x490307=_0x24f8ed['activeMarkers']['includes'](_0x26f32d['markerName']);return _0x490307&&_0x3a57e5['push']('ck-suggestion-marker--active'),{'classes':_0x3a57e5,'attributes':{'data-suggestion':_0x6f5344,'data-author-id':_0x1c4b24},'priority':_0x490307&&_0x334d1b?0xbc2:0xbb8};}_0x24f8ed['on']('suggestionLoaded',_0x485003,{'priority':'high'}),_0x24f8ed['on']('suggestionUnloaded',_0x485003,{'priority':'high'}),_0x328752['model']['document']['registerPostFixer'](()=>{let _0x2d30a1=!0x1;const _0x131d3c=Array['from'](_0x328752['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f35f,data:_0x341e55}of _0x131d3c){const {group:_0x3d3658,type:_0x367201,id:_0x1a64fd}=_0x24f8ed['_splitMarkerName'](_0x3f35f);if('suggestion'!=_0x3d3658||'deletion'!=_0x367201||_0x341e55['oldRange'])continue;if(!_0x24f8ed['hasSuggestion'](_0x1a64fd))continue;const _0x342249=_0x24f8ed['getSuggestion'](_0x1a64fd)['getRanges'](),_0x3041ff=_0x328752['plugins']['get']('Users')['me'];for(const _0x25d9e6 of _0x24f8ed['getSuggestions']()){if(!_0x25d9e6['isInContent']||_0x25d9e6['author']!=_0x3041ff)continue;if('formatBlock'!=_0x25d9e6['type']||'tablePasteCell'!=_0x25d9e6['subType'])continue;if(_0x25d9e6['getRanges']()['every'](_0x3e28a4=>_0x342249['some'](_0x339447=>_0x339447['containsRange'](_0x3e28a4,!0x0)))){for(const _0x5a81d6 of _0x25d9e6['getAllAdjacentSuggestions']())_0x5a81d6['isInContent']&&(_0x5a81d6['discard'](),_0x2d30a1=!0x0);}}}return _0x2d30a1;}),_0x328752['model']['document']['registerPostFixer'](_0x378e5a=>{const _0x38d790=_0x328752['commands']['get']('redo');if(!_0x38d790||!_0x38d790['_createdBatches']['has'](_0x378e5a['batch']))return!0x1;let _0x358ec6=!0x1;const _0x264bb4=_0x328752['plugins']['get']('Users')['me'],_0x3e83b4=_0x328752['model']['document']['differ']['getChanges'](),_0x19c6c2=Array['from'](_0x328752['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ca6bd,data:_0x2f607a})=>{const {group:_0x1b384c,subType:_0x9dd3a,authorId:_0xd3de34}=_0x24f8ed['_splitMarkerName'](_0x1ca6bd);return'suggestion'==_0x1b384c&&'tablePaste'==_0x9dd3a&&_0xd3de34==_0x264bb4['id']&&!_0x2f607a['oldRange'];});for(const _0x390b2a of _0x3e83b4){if('insert'!=_0x390b2a['type']||'tableCellSuggestion'!=_0x390b2a['name']||0x1!=_0x390b2a['length'])continue;const _0x4468c7=_0x378e5a['createRange'](_0x390b2a['position'],_0x390b2a['position']['getShiftedBy'](0x1));if(!_0x19c6c2['find'](({data:_0x1a955f})=>_0x1a955f['newRange']['isEqual'](_0x4468c7))){for(const {name:_0x4e3e27,data:_0x23534a}of _0x19c6c2)if(_0x4468c7['containsRange'](_0x23534a['newRange'])){_0x378e5a['updateMarker'](_0x4e3e27,{'range':_0x4468c7}),_0x358ec6=!0x0;break;}}}return _0x358ec6;}),_0x328752['model']['document']['registerPostFixer'](_0x3d5c7c=>{let _0x4c5dab=!0x1;const _0x3f14fc=_0x328752['plugins']['get']('Users')['me'],_0x1c4112=_0x24f8ed['getSuggestions']()['filter'](_0x384be4=>_0x384be4['isInContent']&&_0x384be4['author']==_0x3f14fc),_0x23c5cc=new Set(),_0x5bac7b=new Set();for(const _0x5c71c1 of _0x1c4112)if('tablePaste'==_0x5c71c1['subType'])for(const _0x4d72f1 of _0x5c71c1['getMarkers']()){const _0x3684d5=_0x4d72f1['getRange']()['getContainedElement']();if(_0x3684d5){if(_0x3684d5['is']('element','tableCellSuggestion')&&Oe(_0x3684d5)){_0x5c71c1['removeMarker'](_0x4d72f1['name']),_0x23c5cc['add'](_0x3684d5),_0x4c5dab=!0x0;const _0x384709=_0x3684d5['nextSibling'],_0x3708da=_0x3684d5['previousSibling'],_0x14d2f1=_0x384709&&_0x384709['is']('element','tableCellSuggestion'),_0x2ffb20=_0x3708da&&_0x3708da['is']('element','tableCellSuggestion');_0x14d2f1&&!_0x23c5cc['has'](_0x384709)&&_0x5bac7b['add'](_0x384709),_0x2ffb20&&!_0x23c5cc['has'](_0x3708da)&&_0x5bac7b['add'](_0x3708da);}else _0x3684d5['is']('element','paragraph')&&_0x3684d5['isEmpty']&&(_0x5c71c1['removeMarker'](_0x4d72f1['name']),_0x4c5dab=!0x0);}}else{if('tablePasteCell'==_0x5c71c1['subType']){if(!_0x5c71c1['attributes']||!_0x5c71c1['attributes']['tablePasteChainId'])continue;const _0x251e88=_0x5c71c1['attributes']['markerAttributes'];if(_0x251e88&&Object['keys'](_0x251e88)['length'])continue;const _0x6d6396=_0x5c71c1['attributes']['tablePasteChainId'];let _0x1e7a93=!0x0,_0x9ed725=!0x0;for(const _0x325c13 of _0x1c4112)if(_0x325c13['subType']&&_0x325c13['subType']['startsWith']('tablePaste')){if(!_0x325c13['attributes']['tablePasteChainId']){_0x9ed725=!0x1;break;}if(_0x325c13['id']!=_0x5c71c1['id']&&_0x325c13['attributes']['tablePasteChainId']==_0x6d6396){_0x1e7a93=!0x1;break;}}_0x9ed725&&_0x1e7a93&&(_0x5c71c1['removeMarkers'](),_0x4c5dab=!0x0);}}for(const _0x139a22 of _0x23c5cc)_0x3d5c7c['remove'](_0x139a22);for(const _0x357201 of _0x5bac7b)_0x3d5c7c['unwrap'](_0x357201);return _0x4c5dab;}),_0x328752['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5eca12=>_0x7c8259(_0x5eca12),'converterPriority':'high'}),_0x328752['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x523fff,_0x47fbee)=>_0x47fbee['options']['showSuggestionHighlights']?_0x7c8259(_0x523fff,!0x1):null,'converterPriority':'high'});const _0x254c1b=_0x328752['editing']['view'];this['listenTo'](_0x254c1b['document'],'clipboardOutput',(_0x5d05b0,_0x35b956)=>{const _0x558b35=[];for(const _0x77a763 of _0x254c1b['createRangeIn'](_0x35b956['content'])['getItems']())_0x77a763['is']('element','suggestion-td')&&_0x558b35['push'](_0x77a763);_0x254c1b['change'](_0x1e92c0=>{for(const _0x35de8b of _0x558b35)_0x1e92c0['move'](_0x1e92c0['createRangeIn'](_0x35de8b),_0x1e92c0['createPositionBefore'](_0x35de8b)),_0x1e92c0['remove'](_0x35de8b);});});}}function Oe(_0x3b230a){if(_0x3b230a['isEmpty'])return!0x0;const _0x164427=_0x3b230a['getChild'](0x0);return _0x164427['is']('element','paragraph')&&_0x164427['isEmpty'];}function Ue(_0x3c0aca,_0x450147={},_0x1e30c3){for(const {isAnchor:_0x520887,cellHeight:_0x4eebf3,cellWidth:_0x658f31}of _0x1e30c3['createTableWalker'](_0x3c0aca,{'includeAllSlots':!0x0,..._0x450147}))if(!_0x520887||0x1!=_0x4eebf3||0x1!=_0x658f31)return!0x1;return!0x0;}class $t extends _0x577abc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x17aba2=this['editor']['plugins']['get']('TrackChangesEditing');_0x17aba2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x17aba2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x17aba2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17aba2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x17aba2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x17aba2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x279b31,_0x49ebc2){const _0x3d46c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2232c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8adcf1=_0x49ebc2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1fe110=_0x2232c3['getColumnGroupElement'](_0x8adcf1);let _0x3f516a=_0x1fe110?_0x2232c3['getTableColumnsWidths'](_0x1fe110):null,_0x1b87f2=_0x8adcf1['getAttribute']('tableWidth')||null;const _0x457779=_0x49ebc2['tableWidth']||_0x1b87f2,_0x5e1893=_0x49ebc2['columnWidths']||_0x3f516a,_0x13b46d=this['editor']['plugins']['get']('Users')['me'];for(const _0x40a9c9 of _0x3d46c0['getSuggestions']()){const _0xd50676=_0x40a9c9['getContainedElement']();if('resizeTable'===_0x40a9c9['subType']&&_0xd50676===_0x8adcf1){_0x40a9c9['author']!==_0x13b46d&&_0x40a9c9['discard']();const _0x41ccab=_0x40a9c9['data']['commandParams'];_0x1b87f2=_0x41ccab[0x0]['tableWidth'],_0x3f516a=_0x41ccab[0x0]['columnWidths'];break;}}_0x279b31({'table':_0x8adcf1,'tableWidth':_0x457779,'columnWidths':_0x5e1893}),_0x3d46c0['markBlockFormat'](_0x8adcf1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b87f2,'columnWidths':_0x3f516a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f85e1){if('formatBlock'!=_0x4f85e1['type']&&'formatInline'!=_0x4f85e1['type'])return;const {data:_0x1ce90e}=_0x4f85e1;if(_0x1ce90e&&'resizeTable'===_0x1ce90e['formatGroupId']){const _0x5d2ac0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d2ac0)};}}}class Bt extends _0x577abc{['afterInit'](){const _0xec744b=this['editor'];_0xec744b['plugins']['has']('Template')&&_0xec744b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x577abc{['afterInit'](){const _0x25c65e=this['editor'];if(!_0x25c65e['commands']['get']('insertTableOfContents'))return;_0x25c65e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28b1ef=_0x25c65e['plugins']['get']('TrackChangesEditing'),_0x3a3a22=_0x25c65e['locale'];_0x28b1ef['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e8942=>o(_0x3a3a22,'ELEMENT_TABLE_OF_CONTENTS',_0x3e8942));}}class Rt extends _0x577abc{['afterInit'](){const _0x569ab6=this['editor'];if(!_0x569ab6['plugins']['has']('Title'))return;const _0x32a821=_0x569ab6['plugins']['get']('TrackChangesEditing');_0x32a821['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x569ab6['locale'],'ELEMENT_TITLE')),_0x569ab6['model']['document']['registerPostFixer'](_0x21df21=>{let _0xca8ab1=!0x1;const _0x23633d=Array['from'](_0x569ab6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19a521,data:_0x180b4a}of _0x23633d){const {group:_0x2a5aca}=_0x32a821['_splitMarkerName'](_0x19a521);if('suggestion'!==_0x2a5aca||!_0x180b4a['newRange'])continue;const _0x4f5f54=_0x180b4a['newRange'],_0x522d26=_0x4f5f54['end']['nodeBefore'];if(!_0x522d26||!_0x522d26['is']('element','title-content'))continue;if(!_0x4f5f54['start']['isTouching'](_0x4f5f54['end']))continue;const _0x578fbc=_0x569ab6['model']['schema']['getNearestSelectionRange'](_0x4f5f54['end'],'forward');if(_0x578fbc&&_0x578fbc['isCollapsed']){const _0x56ba22=_0x21df21['createRange'](_0x4f5f54['start'],_0x578fbc['start']);_0x56ba22['isEqual'](_0x4f5f54)||(_0x21df21['updateMarker'](_0x19a521,{'range':_0x56ba22}),_0xca8ab1=!0x0);}_0xca8ab1||(_0x21df21['removeMarker'](_0x19a521),_0xca8ab1=!0x0);}return _0xca8ab1;});}}class Tt extends _0x577abc{['afterInit'](){const _0x1a48a7=this['editor'],_0x2c30b7=_0x1a48a7['plugins']['get']('TrackChangesEditing');_0x1a48a7['plugins']['has']('Uploadcare')&&(_0x2c30b7['enableCommand']('uploadcare'),_0x1a48a7['plugins']['has']('UploadcareImageEdit')&&(_0x2c30b7['enableCommand']('uploadcareImageEdit'),_0x2c30b7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2c30b7['registerBlockAttribute']('uploadcareImageId'),_0x2c30b7['descriptionFactory']['registerDescriptionCallback'](_0x3d6102=>{if('attribute'!=_0x3d6102['type'])return;const {data:_0x2b3309}=_0x3d6102;return _0x2b3309&&'uploadcareImageId'==_0x2b3309['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x577abc{['afterInit'](){const _0x51a80c=this['editor'],_0x9f4454=_0x51a80c['plugins']['get']('TrackChangesEditing');_0x51a80c['plugins']['has']('UndoEditing')&&(_0x9f4454['enableCommand']('undo'),_0x9f4454['enableCommand']('redo'));}}class Et extends _0x577abc{static get['requires'](){return[Ct];}['afterInit'](){const _0x16161d=this['editor'];if(!_0x16161d['plugins']['has']('TableCaptionEditing'))return;_0x16161d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x577abc{['tableProperties'];['tableCellProperties'];constructor(_0x146393){super(_0x146393),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 _0x47f4e3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x82270a of this['tableProperties'])_0x47f4e3['enableCommand'](_0x82270a,(_0x1944d6,_0xc97fb1)=>{const _0x20fac9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x82270a,[_0x20fac9],this['tableProperties'],'tableProperties',_0x1944d6,_0xc97fb1);});_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x47f4e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x392d74,_0xd3d967)=>this['handleDiscardAction'](this['tableProperties'],_0x392d74,_0xd3d967)),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x38f126 of this['tableCellProperties'])_0x47f4e3['enableCommand'](_0x38f126,(_0x1eb995,_0x5e0f6c)=>{const _0x49c35f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x38f126,_0x49c35f,this['tableCellProperties'],'tableCellProperties',_0x1eb995,_0x5e0f6c);});_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x47f4e3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x319e6d,_0xa882b0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x319e6d,_0xa882b0)),_0x47f4e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x47f4e3['descriptionFactory']['registerDescriptionCallback'](_0x164b5b=>this['handleSuggestionDescription'](_0x164b5b));}['_handlePropertyChange'](_0x57ed28,_0x2e5ec0,_0xf19246,_0x4f174b,_0x5b11ef,_0x18b448){const _0x2b9adf=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18b448['batch'],()=>{for(const _0x538f49 of _0x2e5ec0){if(this['_getSuggestion'](_0x538f49,_0x4f174b))_0x5b11ef(_0x18b448);else{const _0x1b1af1={};for(const _0xad6e7f of _0xf19246){const _0x58313b=_0x538f49['getAttribute'](_0xad6e7f);void 0x0!==_0x58313b&&(_0x1b1af1[_0xad6e7f]=_0x58313b);}_0x5b11ef(_0x18b448),_0x2b9adf['markBlockFormat'](_0x538f49,{'commandParams':[_0x1b1af1]},[],_0x4f174b);}}});}['handleDiscardAction'](_0x1872a6,_0xb8c32c,_0x452390){const _0x4aaec1=_0xb8c32c[0x0]['start']['nodeAfter'],_0x19190f=_0x452390['commandParams'][0x0];this['editor']['model']['change'](_0x316624=>{for(const _0x58340a of _0x1872a6)void 0x0!==_0x19190f[_0x58340a]?_0x316624['setAttribute'](_0x58340a,_0x19190f[_0x58340a],_0x4aaec1):_0x316624['removeAttribute'](_0x58340a,_0x4aaec1);});}['handleSuggestionDescription'](_0x2de244){if(_0x2de244['data'])switch(_0x2de244['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1f1beb,_0x294274){const _0x1498bc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfdc4f1 of _0x1498bc['getSuggestions']({'skipNotAttached':!0x0})){const _0x69690f=_0xfdc4f1['getContainedElement']();if(_0xfdc4f1['subType']===_0x294274&&_0x69690f===_0x1f1beb)return _0xfdc4f1;}return null;}}const m='$elementName';class p extends _0x577abc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x389bec,_0x5d334d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c0b2f){super(_0x5c0b2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x356c16,_0x5892b2,_0x3b0a88,_0xae5296)=>{this['_model']['change'](()=>{for(const _0x3d665c of[..._0xae5296,..._0x3b0a88])this['_model']['markers']['has'](_0x3d665c)&&_0x5c0b2f['editing']['reconvertMarker'](_0x3d665c);});}),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']=_0x5c0b2f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5c0b2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c0b2f['config']['get']('trackChanges.trackFormatChanges'),_0x5c0b2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c0b2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c0b2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x7dce00=this['editor'],_0x211528=(_0x2afc2f,_0x1866d2)=>{if('attribute'!=_0x2afc2f)return'ck-suggestion-marker-'+_0x2afc2f;const _0x2d2346=_0x1866d2['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d2346)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x7dce00['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa55ac1=>{const {id:_0x9ae96c,authorId:_0x1024c4,type:_0x283859,subType:_0x323bc5}=this['_splitMarkerName'](_0xa55ac1['markerName']),_0x3fb503=['ck-suggestion-marker',_0x211528(_0x283859,_0x323bc5)];let _0x5a4128=0xbb8;return this['activeMarkers']['includes'](_0xa55ac1['markerName'])&&(_0x3fb503['push']('ck-suggestion-marker--active'),_0x5a4128=0xbc2),'deletion'==_0x283859&&(_0x5a4128+=0x5),{'classes':_0x3fb503,'attributes':{'data-suggestion':_0x9ae96c,'data-author-id':_0x1024c4},'priority':_0x5a4128};}}),_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x9749e2=>{_0x9749e2['on']('addMarker:suggestion',(_0x4fd7aa,_0xc5eb1e,_0x8a5971)=>{if(!_0x8a5971['options']['showSuggestionHighlights'])return;const _0x219a38=_0xc5eb1e['item'];if(!_0x219a38)return;const _0x40b996=_0x8a5971['mapper']['toViewElement'](_0x219a38);_0x7dce00['model']['schema']['isObject'](_0x219a38)&&_0x40b996&&!_0x40b996['getCustomProperty']('widget')&&_0x40b996['is']('containerElement')&&_0x378aa8(_0x40b996,_0x8a5971['writer']);},{'priority':'high'});}),_0x7dce00['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3dc084,_0x275d7e)=>{if(!_0x275d7e['options']['showSuggestionHighlights'])return null;const {type:_0x36149a,subType:_0x1f0429}=this['_splitMarkerName'](_0x3dc084['markerName']);return{'classes':['ck-suggestion-marker',_0x211528(_0x36149a,_0x1f0429)],'priority':0xbb8};}});const _0x9fcfe0=({showActiveMarkers:_0x4bed3d=!0x0,isAttributeSuggestion:_0xf6102d=!0x1}={})=>(_0xd972a,_0x519699,_0x3c9d46)=>{if(!_0x519699['item'])return;const {id:_0x325222,authorId:_0x1994c0}=this['_splitMarkerName'](_0x519699['markerName']);if(_0xf6102d){const _0x32d4b6=this['_suggestions']['get'](_0x325222),_0x5c6cb6=this['_getAttributeKey'](_0x32d4b6);if(!this['_isBlockAttribute'](_0x5c6cb6))return;}if(_0x519699['item']['is']('selection'))return void _0x3c9d46['consumable']['consume'](_0x519699['item'],_0xd972a['name']);const _0x1dc745=_0x3c9d46['mapper']['toViewElement'](_0x519699['item']);if(_0x519699['item']['is']('element')&&_0x7dce00['model']['schema']['isBlock'](_0x519699['item'])&&!_0x1dc745['getCustomProperty']('addHighlight')){_0x3c9d46['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1dc745),_0x3c9d46['writer']['setAttribute']('data-suggestion',_0x325222,_0x1dc745),_0x3c9d46['writer']['setAttribute']('data-author-id',_0x1994c0,_0x1dc745),_0x3c9d46['mapper']['bindElementToMarker'](_0x1dc745,_0x519699['markerName']),_0x4bed3d&&(this['activeMarkers']['includes'](_0x519699['markerName'])?_0x3c9d46['writer']['addClass']('ck-suggestion-marker--active',_0x1dc745):_0x3c9d46['writer']['removeClass']('ck-suggestion-marker--active',_0x1dc745));for(const _0x4c6287 of _0x7dce00['model']['createRangeIn'](_0x519699['item'])['getItems']())_0x3c9d46['consumable']['consume'](_0x4c6287,_0xd972a['name']);_0x3c9d46['consumable']['consume'](_0x519699['item'],_0xd972a['name']);}};_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x2fa89d=>{_0x2fa89d['on']('addMarker:suggestion:formatBlock',(_0x20d0cb,_0x585ad6,_0x435e31)=>{_0x435e31['options']['showSuggestionHighlights']&&_0x9fcfe0({'showActiveMarkers':!0x1})(_0x20d0cb,_0x585ad6,_0x435e31);},{'priority':'highest'});}),_0x7dce00['conversion']['for']('dataDowncast')['add'](_0x11b8ee=>{_0x11b8ee['on']('addMarker:suggestion:attribute',(_0x1c701b,_0x2c38be,_0x3d3e4b)=>{_0x3d3e4b['options']['showSuggestionHighlights']&&_0x9fcfe0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c701b,_0x2c38be,_0x3d3e4b);},{'priority':'highest'});}),_0x7dce00['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2a847d,_0x969ffd)=>_0x969ffd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2a847d['substr'](0xb)}}),_0x7dce00['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b1757,{writer:_0x5415ab})=>{let _0x3c0ffc='suggestion:'+_0x4b1757['getAttribute']('suggestion-type')+':'+_0x4b1757['getAttribute']('id');return _0x4b1757['getAttribute']('marker-count')&&(_0x3c0ffc+=':'+_0x4b1757['getAttribute']('marker-count')),_0x5415ab['createElement']('$marker',{'data-name':_0x3c0ffc});}}),_0x7dce00['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x384ae0=>{_0x384ae0['on']('addMarker:suggestion:formatBlock',_0x9fcfe0(),{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x140cbd=>{_0x140cbd['on']('addMarker:suggestion:attribute',_0x9fcfe0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x379d10=>{_0x379d10['on']('removeMarker:suggestion:formatBlock',(_0x18a7e7,_0x3ece6f,_0x49d83a)=>{const _0x1ba986=_0x49d83a['mapper']['markerNameToElements'](_0x3ece6f['markerName']);if(_0x1ba986){for(const _0x18aeab of _0x1ba986)_0x18aeab['getCustomProperty']('addHighlight')||(_0x49d83a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18aeab),_0x49d83a['writer']['removeAttribute']('data-suggestion',_0x18aeab),_0x49d83a['writer']['removeAttribute']('data-author-id',_0x18aeab),_0x49d83a['mapper']['unbindElementFromMarkerName'](_0x18aeab,_0x3ece6f['markerName']));}},{'priority':'high'});}),_0x7dce00['conversion']['for']('editingDowncast')['add'](_0x3c2c79=>{_0x3c2c79['on']('removeMarker:suggestion:attribute',(_0x51b2a7,_0x34ef31,_0x2e8f19)=>{const _0x4d36fd=_0x2e8f19['mapper']['markerNameToElements'](_0x34ef31['markerName']);if(!_0x4d36fd)return;const {id:_0x34ca42}=this['_splitMarkerName'](_0x34ef31['markerName']),_0x18718=this['_suggestions']['get'](_0x34ca42),_0x1c9915=this['_getAttributeKey'](_0x18718);if(this['_isBlockAttribute'](_0x1c9915)){for(const _0x3ed0bb of _0x4d36fd)_0x3ed0bb['getCustomProperty']('addHighlight')||(_0x2e8f19['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ed0bb),_0x2e8f19['writer']['removeAttribute']('data-suggestion',_0x3ed0bb),_0x2e8f19['writer']['removeAttribute']('data-author-id',_0x3ed0bb),_0x2e8f19['mapper']['unbindElementFromMarkerName'](_0x3ed0bb,_0x34ef31['markerName']));}},{'priority':'high'});}),_0x7dce00['model']['document']['registerPostFixer'](_0x188400=>{let _0x256a95=!0x1;const _0x50655b=Array['from'](_0x7dce00['model']['document']['differ']['getChangedMarkers']()),_0x52f1d1=new Set();for(const {name:_0x3fdf4b,data:_0x4f5c68}of _0x50655b){const {group:_0x4a6a66,type:_0x546a37,subType:_0x5f118b,id:_0x52a1bc}=this['_splitMarkerName'](_0x3fdf4b);if('suggestion'!==_0x4a6a66)continue;const _0x57ca89=this['_suggestions']['get'](_0x52a1bc);if(null!=_0x4f5c68['newRange']){'formatInline'==_0x546a37&&(_0x256a95=_0x256a95||Lt(_0x4f5c68['newRange'],_0x3fdf4b,_0x188400,_0x7dce00['model']['schema']));const _0x4d664e='attribute'==_0x546a37&&this['_isBlockAttribute'](_0x5f118b['split']('|')[0x0]);if(_0x4f5c68['newRange']['isCollapsed']||'$graveyard'==_0x4f5c68['newRange']['root']['rootName']||'formatBlock'==_0x546a37&&!Ht(_0x4f5c68['newRange'])||_0x4d664e&&!Ht(_0x4f5c68['newRange'])||'deletion'==_0x546a37&&!(!Ft(_0x571472=_0x4f5c68['newRange'])&&!function(_0x3ca72d){return _0x3ca72d['start']['parent']==_0x3ca72d['end']['nodeBefore']&&_0x3ca72d['start']['isAtEnd'];}(_0x571472)))_0x188400['removeMarker'](_0x3fdf4b),_0x256a95=!0x0;else{if(!_0x57ca89||!_0x57ca89['isInContent'])continue;if(_0x4f5c68['newRange']&&_0x4f5c68['oldRange']&&_0x4f5c68['newRange']['isEqual'](_0x4f5c68['oldRange']))continue;_0x52f1d1['add'](_0x57ca89);}}}var _0x571472;return _0x52f1d1['size']>0x0&&(_0x256a95=!!this['_joinWithAdjacentSuggestions'](_0x52f1d1)||_0x256a95),_0x256a95;}),_0x7dce00['model']['document']['registerPostFixer'](_0x372613=>{let _0x4cbb2f=!0x1;for(const _0xb6af31 of _0x7dce00['model']['document']['differ']['getChanges']())if('insert'==_0xb6af31['type'])for(const _0x235c43 of this['_suggestions']['values']()){if(_0x235c43['isMultiRange']||!_0x235c43['isInContent'])continue;const _0xcc5220='formatBlock'==_0x235c43['type'],_0x4cd768=this['_getAttributeKey'](_0x235c43),_0x35eb29=_0x4cd768&&this['_isBlockAttribute'](_0x4cd768);if(!_0xcc5220&&!_0x35eb29)continue;const _0x2cd6f0=_0x235c43['getFirstRange']();if(_0x2cd6f0['start']['parent']!=_0x2cd6f0['end']['parent']&&!_0x2cd6f0['end']['isAtEnd']){const _0x106167=_0x7dce00['model']['createPositionAt'](_0x2cd6f0['start']['nodeAfter'],'end'),_0x32cd32=_0x7dce00['model']['createRange'](_0x2cd6f0['start'],_0x106167);_0x372613['updateMarker'](_0x235c43['getFirstMarker'](),{'range':_0x32cd32}),_0x4cbb2f=!0x0;}}return _0x4cbb2f;}),_0x7dce00['model']['document']['registerPostFixer'](_0x5ea678=>this['_processAttributeChanges'](_0x5ea678)),_0x7dce00['model']['document']['registerPostFixer'](_0x801277=>!_0x801277['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x801277)),_0x7dce00['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x7dce00['model']['document']['on']('change:data',(_0x495571,_0x84a079)=>{if(!_0x84a079['isLocal']||_0x84a079['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f87fd=_0x7dce00['model']['document']['differ']['getChanges']();if(0x0==_0x1f87fd['length'])return;const _0x25bde7=[],_0x190f57=_0x1f87fd['filter'](_0x342738=>'attribute'==_0x342738['type']),_0x67beb1=_0x1f87fd['filter'](_0x3cc9b5=>'insert'==_0x3cc9b5['type']&&'$text'!=_0x3cc9b5['name']);for(const _0x5dee32 of _0x190f57)this['_isRegisteredAttribute'](_0x5dee32['attributeKey'])&&_0x25bde7['push']({'key':_0x5dee32['attributeKey'],'newValue':_0x5dee32['attributeNewValue'],'oldValue':_0x5dee32['attributeOldValue'],'range':qt(_0x5dee32['range'],_0x7dce00['model'])});for(const _0x4bd70c of _0x67beb1){if('rename'!=_0x4bd70c['action']&&'refresh'!=_0x4bd70c['action'])continue;const _0x1b443d=zt(_0x4bd70c['position']['nodeAfter'],_0x7dce00['model']),_0x4d0379=_0x4bd70c['before'];'rename'==_0x4bd70c['action']&&_0x25bde7['push']({'key':m,'newValue':_0x4bd70c['name'],'oldValue':_0x4d0379['name'],'range':_0x1b443d});for(const [_0x2fc53b,_0x1c5f1a]of _0x4d0379['attributes']){if(!this['_isRegisteredAttribute'](_0x2fc53b))continue;const _0x494782=_0x4bd70c['attributes']['get'](_0x2fc53b);_0x1c5f1a!==_0x494782&&_0x25bde7['push']({'key':_0x2fc53b,'newValue':_0x494782,'oldValue':_0x1c5f1a,'range':_0x1b443d});}for(const [_0xe95495,_0x2e095e]of _0x4bd70c['attributes'])this['_isRegisteredAttribute'](_0xe95495)&&(_0x4d0379['attributes']['has'](_0xe95495)||_0x25bde7['push']({'key':_0xe95495,'newValue':_0x2e095e,'oldValue':null,'range':_0x1b443d}));}0x0!=_0x25bde7['length']&&_0x7dce00['model']['enqueueChange'](_0x84a079,_0x5d11fe=>{const _0x5cabe4=_0x2730a7();for(const {range:_0x517248,key:_0x1828d6,oldValue:_0x5bbdbe,newValue:_0x24ffca}of _0x25bde7)this['markAttributeChange'](_0x517248,_0x1828d6,_0x5bbdbe,_0x24ffca,{'groupId':_0x5cabe4});this['_reduceExistingSuggestions'](_0x5d11fe,_0x25bde7);});},{'priority':'lowest'}),_0x7dce00['model']['markers']['on']('update:suggestion',(_0x283d0a,_0x597128,_0x2d2f32)=>{if(null==_0x2d2f32){const {id:_0x2ea079}=this['_splitMarkerName'](_0x597128['name']),_0x8c6432=this['_suggestions']['get'](_0x2ea079);_0x8c6432&&_0x8c6432['addMarkerName'](_0x597128['name']);}}),_0x7dce00['model']['document']['on']('change:data',()=>{const _0x5584ac=Array['from'](_0x7dce00['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a41d8=>'suggestion'===this['_splitMarkerName'](_0x3a41d8['name'])['group']);if(0x0===_0x5584ac['length'])return;_0x5584ac['sort']((_0x38d3ae,_0x69d37)=>{const _0x344065=_0x38d3ae['data']['oldRange'],_0x393f75=_0x69d37['data']['oldRange'];return null===_0x344065&&null===_0x393f75?0x0:null===_0x344065&&null!==_0x393f75?-0x1:null!==_0x344065&&null===_0x393f75?0x1:_0x344065['start']['isBefore'](_0x393f75['start'])?-0x1:0x1;});const _0x16e70e=new Set(),_0x590f39=new Set();for(const {name:_0x40a322,data:_0x2638e9}of _0x5584ac){const {id:_0x4e9280}=this['_splitMarkerName'](_0x40a322);if(null===_0x2638e9['oldRange']){const _0x3c5ae3=this['_handleNewSuggestionMarker'](_0x40a322);_0x590f39['add'](_0x3c5ae3);}else{const _0x7f067a=this['_suggestions']['get'](_0x4e9280);null!==_0x2638e9['newRange']||_0x7f067a['isInContent']?(_0x16e70e['add'](_0x7f067a['head']),_0x590f39['add'](_0x7f067a)):this['_removeSuggestion'](_0x7f067a);}}_0x590f39['size']>0x0&&this['_refreshSuggestionsChain'](_0x590f39);for(const _0xfcc36e of _0x16e70e)this['fire']('suggestionChanged',_0xfcc36e);}),_0x7dce00['model']['on']('applyOperation',(_0x3785cb,_0x5cd9d9)=>{const _0x178ef7=_0x5cd9d9[0x0];if(!this['_suggestions']['size'])return;if(!_0x178ef7['isDocumentOperation'])return;if(_0x178ef7['batch']['isUndo']||!_0x178ef7['batch']['isLocal'])return;let _0xf16bdd,_0x5ae0c6;switch(_0x178ef7['type']){case'insert':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['position']),_0x5ae0c6=_0xf16bdd['getShiftedBy'](_0x178ef7['howMany']);break;case'split':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['splitPosition']),_0x5ae0c6=_0x7dce00['model']['createPositionAt'](_0x178ef7['moveTargetPosition']);break;case'move':_0xf16bdd=_0x7dce00['model']['createPositionAt'](_0x178ef7['targetPosition']),_0x5ae0c6=_0xf16bdd['getShiftedBy'](_0x178ef7['howMany']);break;default:return;}const _0x51ca71=_0x7dce00['model']['createRange'](_0xf16bdd,_0x5ae0c6);_0x7dce00['model']['change'](()=>{for(const {suggestion:_0x2974fd,meta:_0x2c6d4f}of this['_findSuggestions'](_0x51ca71)){if(_0x2974fd['isMultiRange'])continue;if('formatInline'==_0x2974fd['type'])continue;const _0xe1ffb9=this['_getAttributeKey'](_0x2974fd);if(_0xe1ffb9&&this['_isBlockAttribute'](_0xe1ffb9)&&'split'!=_0x178ef7['type'])continue;const _0x548054=_0x2974fd['data']&&_0x2974fd['data']['multipleBlocks'];('formatBlock'!=_0x2974fd['type']||'split'==_0x178ef7['type']&&!_0x548054)&&(_0x2c6d4f['containsRangeInObject']||'insertion'==_0x2974fd['type']&&_0x2c6d4f['isOwn']||_0x2974fd['getFirstRange']()['containsRange'](_0x51ca71)&&this['_breakSuggestionMarker'](_0x2974fd,_0xf16bdd,_0x5ae0c6));}});},{'priority':'lowest'}),_0x7dce00['model']['on']('deleteContent',(_0x2288b1,_0x4ae0f4)=>{const _0x175c55=_0x4ae0f4[0x0],_0x11cf1d=_0x4ae0f4[0x1];if(_0x11cf1d&&_0x11cf1d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x175c55['isCollapsed'])return;const _0x37511b=_0x7dce00['model']['schema'],{start:_0x4d12a2,end:_0xd3d4b}=_0x175c55['getFirstRange'](),_0x35b5ff=_0x4d12a2['nodeAfter']&&_0x37511b['isLimit'](_0x4d12a2['nodeAfter'])?null:_0x37511b['getNearestSelectionRange'](_0x4d12a2,'forward'),_0x58027e=_0xd3d4b['nodeBefore']&&_0x37511b['isLimit'](_0xd3d4b['nodeBefore'])?null:_0x37511b['getNearestSelectionRange'](_0xd3d4b,'backward'),_0x4e7220=_0x7dce00['model']['createRange'](_0x35b5ff?_0x35b5ff['start']:_0x4d12a2,_0x58027e?_0x58027e['end']:_0xd3d4b);_0x7dce00['model']['change'](_0x34b34e=>{this['markDeletion'](_0x4e7220);const _0xae485d=_0x7dce00['model']['schema']['getNearestSelectionRange'](_0x4e7220['start']);_0x175c55['is']('documentSelection')?_0x34b34e['setSelection'](_0xae485d):_0x175c55['setTo'](_0xae485d);}),_0x2288b1['stop']();},{'priority':_0x1ed5be['normal']+0xa}),_0x7dce00['model']['on']('insertContent',(_0x3b5b99,_0x43bb01)=>{const _0x46dacc=_0x43bb01[_0x43bb01['length']-0x1];_0x46dacc&&_0x46dacc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x7dce00['model']['change'](()=>{let _0x2b88d3=_0x7dce00['model']['insertContent'](_0x43bb01[0x0],_0x43bb01[0x1],_0x43bb01[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b88d3)return;_0x3b5b99['return']=_0x2b88d3['clone']();const _0x32b029=_0x2b88d3['end']['nodeBefore'],_0x3eba30=_0x7dce00['model']['schema'];_0x32b029&&_0x3eba30['isBlock'](_0x32b029)&&!_0x3eba30['isObject'](_0x32b029)&&(_0x2b88d3=_0x7dce00['model']['createRange'](_0x2b88d3['start'],_0x7dce00['model']['createPositionAt'](_0x32b029,'end'))),this['markInsertion'](_0x2b88d3);}),_0x3b5b99['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3208a6=new O(_0x7dce00,this['_suggestions']);_0x7dce00['commands']['add']('acceptSuggestion',_0x3208a6),this['enableCommand']('acceptSuggestion');const _0x54c6e0=new R(_0x7dce00,this['_suggestions']);_0x7dce00['commands']['add']('discardSuggestion',_0x54c6e0),this['enableCommand']('discardSuggestion'),_0x7dce00['commands']['add']('acceptAllSuggestions',new x(_0x7dce00,_0x3208a6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x7dce00['commands']['add']('discardAllSuggestions',new x(_0x7dce00,_0x54c6e0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x7dce00['commands']['add']('acceptSelectedSuggestions',new E(_0x7dce00,_0x3208a6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x7dce00['commands']['add']('discardSelectedSuggestions',new E(_0x7dce00,_0x54c6e0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a3638=_0x7dce00['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a3638,'addComment',(_0x4f2ba9,{threadId:_0x1407aa})=>{const _0x34aceb=this['_suggestions']['get'](_0x1407aa);_0x34aceb&&_0x34aceb['commentThread']&&0x1===_0x34aceb['commentThread']['length']&&this['_updateSuggestionData'](_0x1407aa,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a3638,'removeComment',(_0x39f002,{threadId:_0x2fc95e})=>{const _0x34194e=this['_suggestions']['get'](_0x2fc95e);_0x34194e&&_0x34194e['commentThread']&&!_0x34194e['commentThread']['length']&&this['_updateSuggestionData'](_0x2fc95e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4185aa){const _0x4e08e7=_0x52aee0([0x31,0x4d,0x41,0x4f,0x4e,0x50,0x75,0x72,0x58,0x34,0x52,0x7a,0x36,0x6c,0x32,0x57,0x6e,0x69,0x51,0x62,0x73,0x4c,0x53,0x66,0x6b,0x47,0x61,0x56,0x68,0x4a,0x48,0x65,0x42,0x67,0x45,0x6f,0x64,0x6d,0x71,0x39,0x74,0x76,0x49,0x43,0x6a,0x59,0x63,0x46,0x54,0x33,0x55,0x78,0x70,0x5a,0x4b,0x44,0x37,0x35,0x77,0x38,0x79,0x30]),_0x484e3d=0x7e09cfe8,_0xf4811c=0x7e0e9040^_0x484e3d,_0x4a6d8d=window[_0x52aee0([0x44,0x61,0x74,0x65])][_0x52aee0([0x6e,0x6f,0x77])](),_0x31f848=_0x4185aa[_0x52aee0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eebd0=new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224c26=>{_0x31f848[_0x52aee0([0x6f,0x6e,0x63,0x65])](_0x52aee0([0x72,0x65,0x61,0x64,0x79]),_0x224c26);}),_0x37e687={[_0x52aee0([0x6b,0x74,0x79])]:_0x52aee0([0x45,0x43]),[_0x52aee0([0x75,0x73,0x65])]:_0x52aee0([0x73,0x69,0x67]),[_0x52aee0([0x63,0x72,0x76])]:_0x52aee0([0x50,0x2d,0x32,0x35,0x36]),[_0x52aee0([0x78])]:_0x52aee0([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]),[_0x52aee0([0x79])]:_0x52aee0([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]),[_0x52aee0([0x61,0x6c,0x67])]:_0x52aee0([0x45,0x53,0x32,0x35,0x36])},_0x4ecb0e=_0x31f848[_0x52aee0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52aee0([0x67,0x65,0x74])](_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d7074(){let _0x574205,_0x58c1bb=null,_0x2ebce6=null;try{if(_0x4ecb0e==_0x52aee0([0x47,0x50,0x4c]))return _0x52aee0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x574205=_0x56e141(),!_0x574205)return _0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x574205[_0x52aee0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ebce6=_0x4817d3(_0x574205[_0x52aee0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x574205[_0x52aee0([0x6a,0x74,0x69])])),await _0x47cdcf()?_0x134921()?_0x4d85b5()?_0x52aee0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfaebc()?(_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52aee0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58c1bb=_0x227059(_0x52aee0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52aee0([0x74,0x72,0x69,0x61,0x6c])&&(_0x58c1bb=_0x227059(_0x52aee0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4049f7()):_0x52aee0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52aee0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1f4345){return _0x52aee0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d85b5(){const _0x158c14=[_0x52aee0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52aee0([0x74,0x72,0x69,0x61,0x6c])][_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a6d8d/0x3e8:0xe10*_0xf4811c;return _0x574205[_0x52aee0([0x65,0x78,0x70])]<_0x158c14;}function _0x134921(){const _0x11711d=_0x574205[_0x52aee0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x11711d)return!0x1;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x2a])))return!0x0;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x54,0x43])))return!0x0;if(_0x11711d[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x52,0x54,0x43]))){if(_0x2dda5d())return!0x0;if(_0x19bfe9()||_0x2c0cbd())return!0x0;}return!0x1;}function _0xfaebc(){const _0x46741b=_0x574205[_0x52aee0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46741b||0x0==_0x46741b[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2540e1}=new URL(window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46741b[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2540e1))return!0x0;const _0x3cad69=_0x2540e1[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e]));return _0x46741b[_0x52aee0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f71=>_0x3f4f71[_0x52aee0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aee0([0x2a])))[_0x52aee0([0x6d,0x61,0x70])](_0x57e539=>_0x57e539[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e])))[_0x52aee0([0x73,0x6f,0x6d,0x65])](_0x40465a=>_0x3cad69[_0x52aee0([0x65,0x76,0x65,0x72,0x79])]((_0xe772ee,_0x2f7f97)=>_0x40465a[_0x2f7f97]===_0xe772ee||_0x40465a[_0x2f7f97]===_0x52aee0([0x2a])));}function _0x4049f7(){return _0x58c1bb&&_0x2ebce6?new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x122cd7,_0x4b1516)=>{_0x58c1bb[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x122cd7,_0x4b1516),_0x2ebce6[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x40be3b=>{_0x40be3b!=_0x52aee0([0x56,0x61,0x6c,0x69,0x64])&&_0x122cd7(_0x40be3b);},_0x4b1516);}):_0x58c1bb||_0x2ebce6||_0x52aee0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4817d3(_0x32d607,_0x3bb661){return new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59d860=>{if(_0x5b933d())return _0x59d860(_0x52aee0([0x56,0x61,0x6c,0x69,0x64]));_0x333702(),_0x31f848[_0x52aee0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x485adf=!0x1;const _0x24fe65=_0x2730a7();function _0x343e66(_0x2a9b47){return!!_0x2a9b47&&(typeof _0x2a9b47===_0x52aee0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a9b47===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a9b47[_0x52aee0([0x74,0x68,0x65,0x6e])]===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a9b47[_0x52aee0([0x63,0x61,0x74,0x63,0x68])]===_0x52aee0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38130e(_0xcab826){_0x2b9f95(_0xcab826)[_0x52aee0([0x74,0x68,0x65,0x6e])](_0xa7b129=>{if(!_0xa7b129||_0xa7b129[_0x52aee0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52aee0([0x6f,0x6b]))return _0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c8d71(_0x2127ed(_0x24fe65+_0x3bb661))!=_0xa7b129[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52aee0([0x56,0x61,0x6c,0x69,0x64]);})[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x5c3d00=>(_0x28230a(),_0x5c3d00),()=>{const _0x5cacad=_0x3ce586();return null==_0x5cacad?(_0x28230a(),_0x52aee0([0x56,0x61,0x6c,0x69,0x64])):_0x52aee0(_0x4a6d8d-_0x5cacad>(0x5a054be8^_0x484e3d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x59d860)[_0x52aee0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bdf4d=0x7e3f2168^_0x484e3d;function _0x28230a(){const _0x511ee7=_0x52aee0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8d71(_0x2127ed(_0x32d607)),_0x8ef7e2=_0x347e98(_0x3c8d71(window[_0x52aee0([0x4d,0x61,0x74,0x68])][_0x52aee0([0x63,0x65,0x69,0x6c])](_0x4a6d8d/_0x2bdf4d)));window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52aee0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x511ee7,_0x8ef7e2);}function _0x3ce586(){const _0x4099e6=_0x52aee0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8d71(_0x2127ed(_0x32d607)),_0x3bdff3=window[_0x52aee0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52aee0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4099e6);return _0x3bdff3?window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x347e98(_0x3bdff3),0x10)*_0x2bdf4d:null;}function _0x2b9f95(_0x3d98bc){return new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x225a41,_0x17f89d)=>{_0x3d98bc[_0x52aee0([0x74,0x68,0x65,0x6e])](_0x225a41,_0x17f89d),window[_0x52aee0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17f89d,0x7e081b28^_0x484e3d);});}}_0x31f848[_0x52aee0([0x6f,0x6e])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50b2e2,_0x1bd13f)=>{if(_0x1bd13f[0x0]!=_0x32d607)return _0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bd13f[0x1]={..._0x1bd13f[0x1],[_0x52aee0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24fe65};},{[_0x52aee0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52aee0([0x68,0x69,0x67,0x68])}),_0x31f848[_0x52aee0([0x6f,0x6e])](_0x52aee0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138a96=>{_0x343e66(_0x138a96[_0x52aee0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x485adf=!0x0,_0x38130e(_0x138a96[_0x52aee0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52aee0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52aee0([0x6c,0x6f,0x77])}),_0x2eebd0[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>{_0x485adf||_0x59d860(_0x52aee0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b933d(){return _0x31f848[_0x52aee0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52aee0([0x76,0x69,0x65,0x77])][_0x52aee0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52aee0([0x61,0x75,0x74,0x6f]);}function _0x333702(){_0x31f848[_0x52aee0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52aee0([0x76,0x69,0x65,0x77])][_0x52aee0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52aee0([0x61,0x75,0x74,0x6f]);}}function _0x227059(_0x363bb2){const _0x3e2011=[new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6e5c8=>setTimeout(_0x6e5c8,0x7e00f124^_0x484e3d)),_0x2eebd0[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458170=>{let _0x26d7ca=0x0;_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x6f,0x6e])](_0x52aee0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39ec9d,_0x1e13ba)=>{_0x1e13ba[0x0][_0x52aee0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26d7ca++,_0x26d7ca==(0x7e09ce10^_0x484e3d)&&(_0x458170(),_0x39ec9d[_0x52aee0([0x6f,0x66,0x66])]());});}))];return window[_0x52aee0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52aee0([0x72,0x61,0x63,0x65])](_0x3e2011)[_0x52aee0([0x74,0x68,0x65,0x6e])](()=>_0x363bb2);}async function _0x116dc3(){await _0x2eebd0,_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc9f7ca,_0x31f848[_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c])][_0x52aee0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc9f7ca,_0x31f848[_0x52aee0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52aee0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dda5d(){return _0x1a2294(_0x52aee0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x21887a(_0x52aee0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52aee0([0x73,0x74,0x61,0x74,0x65])]==_0x52aee0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x19bfe9(){return _0x1a2294(_0x52aee0([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 _0x2c0cbd(){return _0x1a2294(_0x52aee0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1d24ed(_0x4321b1){const _0x362669=_0x21fdc5();_0x31f848[_0x362669]=_0x52aee0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4321b1,_0x4321b1!=_0x52aee0([0x56,0x61,0x6c,0x69,0x64])&&_0x116dc3();}function _0x21fdc5(){const _0x10e3b3=window[_0x52aee0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52aee0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52aee0([0x6e,0x6f,0x77])]())[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52aee0([0x2e]),'');let _0x5036ec=_0x52aee0([0x4d]);for(let _0xbb54fc=0x0;_0xbb54fc<_0x10e3b3[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbb54fc+=0x2){let _0x5187f7=window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e3b3[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb54fc,_0xbb54fc+0x2));_0x5187f7>=_0x4e08e7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5187f7-=_0x4e08e7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5036ec+=_0x4e08e7[_0x5187f7];}return _0x5036ec;}function _0x56e141(){const _0x5411a7=_0x4ecb0e[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e]));if(0x3!=_0x5411a7[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3226e3(_0x5411a7[0x1]);function _0x3226e3(_0x540b11){const _0x3bbcbd=_0x310320(_0x540b11);return _0x3bbcbd&&_0x34021c()?_0x3bbcbd:null;function _0x34021c(){const _0x4f7e42=_0x3bbcbd[_0x52aee0([0x6a,0x74,0x69])],_0x3748b3=window[_0x52aee0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f7e42[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f7e42[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x552a7f={..._0x3bbcbd,[_0x52aee0([0x6a,0x74,0x69])]:_0x4f7e42[_0x52aee0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f7e42[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x552a7f[_0x52aee0([0x76,0x63])],_0x2127ed(_0x552a7f)==_0x3748b3;}}}async function _0x47cdcf(){let _0x575239=!0x0;try{const _0x5a2f09=_0x4ecb0e[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])](_0x52aee0([0x2e])),[_0x1b6513,_0x200445,_0x32f6dc]=_0x5a2f09;return _0x5552da(_0x1b6513),await _0x458f64(_0x1b6513,_0x200445,_0x32f6dc),_0x575239;}catch(_0x19e760){return!0x1;}function _0x5552da(_0x739c55){const _0x17a473=_0x310320(_0x739c55);_0x17a473&&_0x17a473[_0x52aee0([0x61,0x6c,0x67])]==_0x52aee0([0x45,0x53,0x32,0x35,0x36])||(_0x575239=!0x1);}async function _0x458f64(_0x1d0c78,_0x4cf9a9,_0x4fa817){const _0x33645e=window[_0x52aee0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52aee0([0x66,0x72,0x6f,0x6d])](_0x26bb9(_0x4fa817),_0x50b4e3=>_0x50b4e3[_0x52aee0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e6fa3=new window[(_0x52aee0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52aee0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0c78+_0x52aee0([0x2e])+_0x4cf9a9),_0x520167=window[_0x52aee0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52aee0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x520167)return;const _0xcd9431=await _0x520167[_0x52aee0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52aee0([0x6a,0x77,0x6b]),_0x37e687,{[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x45,0x43,0x44,0x53,0x41]),[_0x52aee0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52aee0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x520167[_0x52aee0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x45,0x43,0x44,0x53,0x41]),[_0x52aee0([0x68,0x61,0x73,0x68])]:{[_0x52aee0([0x6e,0x61,0x6d,0x65])]:_0x52aee0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcd9431,_0x33645e,_0x1e6fa3)||(_0x575239=!0x1);}}function _0x310320(_0x1d24a2){return _0x1d24a2[_0x52aee0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52aee0([0x65,0x79]))?JSON[_0x52aee0([0x70,0x61,0x72,0x73,0x65])](_0x26bb9(_0x1d24a2)):null;}function _0x26bb9(_0x313923){return window[_0x52aee0([0x61,0x74,0x6f,0x62])](_0x313923[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52aee0([0x2b]))[_0x52aee0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52aee0([0x2f])));}function _0x2127ed(_0x2fd4a9){let _0x36595b=0x1505;function _0x1aa81d(_0x2bf3f4){for(let _0x129c47=0x0;_0x129c47<_0x2bf3f4[_0x52aee0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x129c47++){const _0x48e054=_0x2bf3f4[_0x52aee0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x129c47);_0x36595b=(_0x36595b<<0x5)+_0x36595b+_0x48e054,_0x36595b&=_0x36595b;}}function _0xb30fd9(_0xb66773){Array[_0x52aee0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb66773)?_0xb66773[_0x52aee0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb30fd9):_0xb66773&&typeof _0xb66773==_0x52aee0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52aee0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb66773)[_0x52aee0([0x73,0x6f,0x72,0x74])]()[_0x52aee0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d08e3,_0x38f0eb])=>{_0x1aa81d(_0x5d08e3),_0xb30fd9(_0x38f0eb);}):_0x1aa81d(window[_0x52aee0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb66773));}return _0xb30fd9(_0x2fd4a9),_0x36595b>>>0x0;}function _0x3c8d71(_0x52a63d){return _0x52a63d[_0x52aee0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52aee0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52aee0([0x30]));}function _0x347e98(_0x3e493a){return _0x3e493a[_0x52aee0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52aee0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52aee0([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a2294(_0x21fd98){return _0x31f848[_0x52aee0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52aee0([0x68,0x61,0x73])](_0x21fd98);}function _0x21887a(_0x54032f){return _0x31f848[_0x52aee0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52aee0([0x67,0x65,0x74])](_0x54032f);}function _0xc9f7ca(){}function _0x52aee0(_0x3a6e20){return _0x3a6e20['map'](_0x2733f7=>String['fromCharCode'](_0x2733f7))['join']('');}_0x1d24ed(await _0x5d7074());}(this);}set['adapter'](_0x3a3b8f){if(this['_adapter'])throw new _0x4d7761('track-changes-adapter-already-set',this);this['_adapter']=_0x3a3b8f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e92d8=!0x1,toJSON:_0x30f874=!0x1}={}){const _0x532265=[];for(const _0x30a0c6 of this['_suggestions']['values']())_0x5e92d8&&!_0x30a0c6['isInContent']||_0x532265['push'](_0x30a0c6);return _0x30f874?_0x532265['map'](_0x5a3424=>_0x5a3424['toJSON']()):_0x532265;}['getSuggestion'](_0x55b2ed){const _0x33569b=this['_suggestions']['get'](_0x55b2ed);if(!_0x33569b)throw new _0x4d7761('track-changes-suggestion-not-found',this);return _0x33569b;}['hasSuggestion'](_0x173ef9){return this['_suggestions']['has'](_0x173ef9);}['addSuggestionData'](_0x5c3d98){const {authorId:_0x2fd76f,id:_0x35d165,attributes:_0x44d51c}=_0x5c3d98,[_0x591e13,_0x5f3796]=_0x5c3d98['type']['split'](':'),_0x92871d=this['_suggestions']['get'](_0x35d165)||this['_createSuggestion'](_0x591e13,_0x5f3796,_0x35d165,_0x2fd76f,_0x44d51c);if(this['_addThreadToSuggestion'](_0x92871d),this['_checkSuggestionCorrectness'](_0x92871d,_0x591e13,_0x5f3796||null,_0x2fd76f),_0x92871d['createdAt']=_0x5c3d98['createdAt'],_0x92871d['_isDataLoaded']=!0x0,_0x44d51c&&_0x44d51c['@external']){const _0x13cffb=_0x44d51c['@external'],_0x23c5a0=this['_getExternalAuthor'](_0x13cffb['authorName']);_0x92871d['authoredAt']=_0x13cffb['createdAt'],_0x92871d['author']=_0x23c5a0,_0x92871d['isExternal']=!0x0;}else _0x92871d['authoredAt']=_0x5c3d98['createdAt'];switch(_0x5c3d98['data']&&(_0x92871d['data']=_0x5c3d98['data']),_0x5c3d98['attributes']&&(_0x92871d['attributes']=_0x5c3d98['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x92871d['_saved']=!0x0),this['_suggestionState']['get'](_0x92871d)){case'notReady':this['_suggestionState']['set'](_0x92871d,'dataReady');break;case'markerReady':_0x92871d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x92871d])),this['_refreshSuggestionsChain'](new Set([_0x92871d])),this['_suggestionState']['set'](_0x92871d,'ready'),this['fire']('suggestionLoaded',_0x92871d)):this['_suggestionState']['set'](_0x92871d,'removed');}return _0x92871d;}['acceptSuggestion'](_0x30faab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd5a1 of _0x30faab['getAllAdjacentSuggestions']())_0x1dd5a1['accept']();});});}['discardSuggestion'](_0x5129aa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd04e19 of _0x5129aa['getAllAdjacentSuggestions']())_0xd04e19['discard']();});});}['enableCommand'](_0x32a959,_0x272731){const _0x583e09=this['editor']['commands']['get'](_0x32a959);if(!_0x583e09)throw new _0x4d7761('track-changes-command-not-found',this,{'commandName':_0x32a959});if(this['_enabledCommands']['has'](_0x583e09))throw new _0x4d7761('track-changes-enable-command-twice',this,{'commandName':_0x32a959});this['_enabledCommands']['add'](_0x583e09),_0x272731&&_0x583e09['on']('execute',(_0x4f66f5,_0x4d0679)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d0679['length']>0x0&&_0x4d0679[_0x4d0679['length']-0x1]&&_0x4d0679[_0x4d0679['length']-0x1]['forceDefaultExecution']?_0x4d0679['pop']():(_0x4f66f5['return']=_0x272731((..._0x178496)=>_0x583e09['execute'](..._0x178496,{'forceDefaultExecution':!0x0}),..._0x4d0679),_0x4f66f5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x579334){let _0x3685a0,_0x582d02;const _0x3fcd0a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3685a0=_0x579334();}catch(_0x3cb4b0){_0x582d02=_0x3cb4b0;}return _0x3fcd0a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x582d02&&_0x4d7761['rethrowUnexpectedError'](_0x582d02,this),_0x3685a0;}['markInsertion'](_0x518fc0,_0xb8fe1a=null,_0x4114ea={}){if(_0x518fc0['isCollapsed'])return null;const _0x1dbdf8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x32c02c,meta:_0x38b889}of this['_findSuggestions'](_0x518fc0,'insertion'))if(_0x38b889['isOwn']){if(!_0x38b889['isNextTo']){if(_0x38b889['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x32c02c,_0x4114ea))continue;return _0x32c02c;}if(Qt(_0x32c02c,_0x4114ea))return _0x32c02c;this['_breakSuggestionMarker'](_0x32c02c,_0x518fc0['start'],_0x518fc0['end']);break;}if(_0xb8fe1a==_0x32c02c['subType']&&Qt(_0x32c02c,_0x4114ea)){const _0x1b5ed6=_0x32c02c['getFirstRange']();return _0x1b5ed6['start']['isEqual'](_0x518fc0['end'])?this['_setSuggestionRange'](_0x32c02c,this['_model']['createRange'](_0x518fc0['start'],_0x1b5ed6['end'])):this['_setSuggestionRange'](_0x32c02c,this['_model']['createRange'](_0x1b5ed6['start'],_0x518fc0['end'])),_0x32c02c;}}const _0x6d97dd=_0x2730a7(),_0x24c2b4=_0x1dbdf8['id'],_0x25f8ea=_0xb8fe1a?'insertion:'+_0xb8fe1a:'insertion',_0x58f708=this['_setSuggestionData']({'id':_0x6d97dd,'type':_0x25f8ea,'createdAt':new Date(),'authorId':_0x24c2b4,'attributes':_0x4114ea});return this['_addSuggestionMarker'](_0x25f8ea,_0x6d97dd,_0x24c2b4,_0x518fc0),_0x58f708;}['markMultiRangeInsertion'](_0x3f4121,_0x3b0876='multi',_0x4ef0fc={}){const _0x19ec44=this['editor']['plugins']['get']('Users')['me'],_0x5e670e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3b0876,'join');for(const _0x340f02 of this['getSuggestions']())if(_0x340f02['author']['id']==_0x19ec44['id']&&'insertion'==_0x340f02['type']&&_0x340f02['subType']==_0x3b0876&&Qt(_0x340f02,_0x4ef0fc)&&(_0x5e670e(_0x340f02['getRanges'](),_0x3f4121)||_0x5e670e(_0x3f4121,_0x340f02['getRanges']()))){for(const _0x916350 of _0x3f4121)_0x340f02['addRange'](_0x916350);return _0x340f02;}for(const {suggestion:_0x4c3a62,meta:_0x1e5f2a}of this['_findSuggestions'](_0x3f4121,'insertion')){if(!_0x1e5f2a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1e5f2a['containsRangeInObject'])continue;if(!Qt(_0x4c3a62,_0x4ef0fc))continue;let _0xb6315a=!0x0;for(const _0x2da065 of _0x4c3a62['getRanges']())for(const _0xff7770 of _0x3f4121)if(!_0x2da065['containsRange'](_0xff7770)){_0xb6315a=!0x1;break;}if(_0xb6315a)return _0x4c3a62;}const _0x47a1d3=_0x2730a7(),_0x5c1b41=_0x19ec44['id'],_0x2579d5='insertion:'+_0x3b0876,_0x3f574b=this['_setSuggestionData']({'id':_0x47a1d3,'type':_0x2579d5,'createdAt':new Date(),'authorId':_0x5c1b41,'attributes':_0x4ef0fc});for(const _0x542010 of _0x3f4121)this['_addSuggestionMarker'](_0x2579d5,_0x47a1d3,_0x5c1b41,_0x542010,u['getMultiRangeId']());return _0x3f574b;}['markInlineFormat'](_0x1794ea,_0x5c1174,_0x11be37=null,_0x36aff5={}){if(_0x11be37=_0x11be37||Jt(_0x5c1174),_0x1794ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x466f80=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11be37,'accept');return this['forceDefaultExecution'](()=>_0x466f80([_0x1794ea],_0x5c1174,_0x36aff5)),null;}const _0x4a8148=this['editor']['plugins']['get']('Users')['me'],_0x309dbb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4fd7fa,meta:_0x4f1e53}of this['_findSuggestions'](_0x1794ea,'insertion'))_0x4f1e53['isOwn']&&!_0x4f1e53['isInsideObject']&&_0x309dbb['push'](..._0x4fd7fa['getRanges']());}const _0x3cca4b=function(_0xdc96b5,_0x27dde2){const _0x380ccc=[];for(const _0x1da049 of _0x27dde2){const _0x2a02a6=_0xdc96b5['getIntersection'](_0x1da049);_0x2a02a6&&_0x380ccc['push'](_0x2a02a6);}return _0x380ccc;}(_0x1794ea,_0x309dbb),_0x314c18=function(_0x196a34,_0x15095d){const _0x9bd2e9=[_0x196a34];for(const _0x37bb24 of _0x15095d){let _0x5b7156=0x0;for(;_0x5b7156<_0x9bd2e9['length'];){const _0x463baf=_0x9bd2e9[_0x5b7156]['getDifference'](_0x37bb24);_0x9bd2e9['splice'](_0x5b7156,0x1,..._0x463baf),_0x5b7156+=_0x463baf['length'];}}return _0x9bd2e9;}(_0x1794ea,_0x309dbb);_0x3cca4b['length']&&this['_model']['change'](()=>{for(const _0x1ac4f5 of _0x3cca4b){const _0x462873=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11be37,'accept');this['forceDefaultExecution'](()=>_0x462873([_0x1ac4f5],_0x5c1174,_0x36aff5));}});for(const _0x1c0a04 of _0x314c18){let _0x36c1ff=null,_0x53e784=_0x1c0a04['start'],_0x40321d=_0x1c0a04['end'];for(const {suggestion:_0x25c532,meta:_0x10b952}of this['_findSuggestions'](_0x1c0a04,'formatInline')){if(!_0x10b952['isOwn'])continue;if(_0x25c532['subType']!=_0x11be37)continue;if(!Qt(_0x25c532,_0x36aff5))continue;const _0x3d9110=_0x25c532['getFirstRange']();if(_0x3d9110['containsRange'](_0x1c0a04,!0x0))return null;_0x53e784=_0x53e784['isBefore'](_0x3d9110['start'])?_0x53e784:_0x3d9110['start'],_0x40321d=_0x40321d['isAfter'](_0x3d9110['end'])?_0x40321d:_0x3d9110['end'],_0x36c1ff?_0x3d9110['start']['isBefore'](_0x36c1ff['getFirstRange']()['start'])?(_0x36c1ff['removeMarkers'](),_0x36c1ff=_0x25c532):_0x25c532['removeMarkers']():_0x36c1ff=_0x25c532;}const _0x111574=this['_model']['createRange'](_0x53e784,_0x40321d);if(_0x36c1ff)this['_setSuggestionRange'](_0x36c1ff,_0x111574);else{const _0x5bccbf=_0x2730a7(),_0x4a63d9=_0x4a8148['id'];this['_setSuggestionData']({'id':_0x5bccbf,'type':'formatInline:'+_0x11be37,'data':_0x5c1174,'createdAt':new Date(),'authorId':_0x4a63d9,'attributes':_0x36aff5}),this['_addSuggestionMarker']('formatInline:'+_0x11be37,_0x5bccbf,_0x4a63d9,_0x111574);}}return null;}['markBlockFormat'](_0x5bb55a,_0xc44788,_0x3e9aa5=[],_0xd08c9c=null,_0xc80b1d={}){_0xc44788['formatGroupId']||(_0xc44788['formatGroupId']=_0xc44788['commandName']),_0xc44788['multipleBlocks']=_0x5bb55a['is']('range'),_0xd08c9c=_0xd08c9c||Jt(_0xc44788);const _0x1a6bf4=_0x3e9aa5['map'](_0x44006b=>zt(_0x44006b,this['_model'])),_0x2bbe1c=_0x5bb55a['is']('range')?_0x5bb55a:zt(_0x5bb55a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23f35d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd08c9c,'accept');return this['forceDefaultExecution'](()=>_0x23f35d([_0x2bbe1c],_0xc44788,_0xc80b1d)),null;}_0x1a6bf4['push'](_0x2bbe1c);let _0x28b2b8=!0x0;for(const _0x1f4e37 of _0x1a6bf4)if(!this['_rangeIsInLocalUserInsertion'](_0x1f4e37)){_0x28b2b8=!0x1;break;}if(_0x28b2b8&&'always'!==this['_trackFormatChanges']){const _0x38458a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd08c9c,'accept');return this['forceDefaultExecution'](()=>_0x38458a([_0x2bbe1c],_0xc44788,_0xc80b1d)),null;}let _0x34d4ca=null,_0x1ae9ef=_0x2bbe1c['start'],_0x1e23fe=_0x2bbe1c['end'];for(const {suggestion:_0x5bd7f0,meta:_0x34c484}of this['_findSuggestions'](_0x2bbe1c,'formatBlock')){if(!_0x34c484['isOwn'])continue;if(_0x34c484['isNextTo']||_0x34c484['containsRangeInObject']||_0x34c484['isInsideObject'])continue;if(_0x5bd7f0['data']['formatGroupId']!=_0xc44788['formatGroupId'])continue;if(!Qt(_0x5bd7f0,_0xc80b1d))continue;const _0x560659=_0x5bd7f0['getFirstRange']();if(_0x5bd7f0['subType']==_0xd08c9c){if(_0x560659['containsRange'](_0x2bbe1c,!0x0))return null;_0x1ae9ef=_0x1ae9ef['isBefore'](_0x560659['start'])?_0x1ae9ef:_0x560659['start'],_0x1e23fe=_0x1e23fe['isAfter'](_0x560659['end'])?_0x1e23fe:_0x560659['end'],_0x34d4ca?_0x560659['start']['isBefore'](_0x34d4ca['getFirstRange']()['start'])?(_0x34d4ca['removeMarkers'](),_0x34d4ca=_0x5bd7f0):_0x5bd7f0['removeMarkers']():_0x34d4ca=_0x5bd7f0;}else{const _0x3e4dce=_0x2bbe1c['getIntersection'](_0x560659);this['_cutOutSuggestionMarker'](_0x5bd7f0,_0x3e4dce);}}const _0x48630a=this['editor']['plugins']['get']('Users')['me'],_0x145fb1=_0x2730a7(),_0x55f5ea=_0x48630a['id'];if(_0x34d4ca)return this['_setSuggestionRange'](_0x34d4ca,this['_model']['createRange'](_0x1ae9ef,_0x1e23fe)),_0x34d4ca;{const _0x2b26e6=this['_setSuggestionData']({'id':_0x145fb1,'type':'formatBlock:'+_0xd08c9c,'data':_0xc44788,'createdAt':new Date(),'authorId':_0x55f5ea,'attributes':_0xc80b1d});return this['_addSuggestionMarker']('formatBlock:'+_0xd08c9c,_0x145fb1,_0x55f5ea,this['_model']['createRange'](_0x1ae9ef,_0x1e23fe)),_0x2b26e6;}}['markMultiRangeBlockFormat'](_0x4153b2,_0x5d5490,_0x2a35b0=[],_0x6c7827=null,_0x5bc2cd={}){_0x5d5490['formatGroupId']||(_0x5d5490['formatGroupId']=_0x5d5490['commandName']);const _0x2c6885=_0x4153b2[0x0];_0x5d5490['multipleBlocks']=_0x2c6885['is']('range'),_0x6c7827=_0x6c7827||Jt(_0x5d5490);const _0x1c3409=_0x2a35b0['map'](_0x2c4c3c=>zt(_0x2c4c3c,this['_model'])),_0x2f70d9=_0x2c6885['is']('range')?_0x4153b2:_0x4153b2['map'](_0x37c1fa=>zt(_0x37c1fa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x477b16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'accept');return this['forceDefaultExecution'](()=>_0x477b16(_0x2f70d9,_0x5d5490,_0x5bc2cd)),null;}_0x1c3409['push'](..._0x2f70d9);let _0x11df2c=!0x0;for(const _0x4f06a3 of _0x1c3409)if(!this['_rangeIsInLocalUserInsertion'](_0x4f06a3)){_0x11df2c=!0x1;break;}if(_0x11df2c&&'always'!==this['_trackFormatChanges']){const _0x5694a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'accept');return this['forceDefaultExecution'](()=>_0x5694a9(_0x2f70d9,_0x5d5490,_0x5bc2cd)),null;}const _0x36196b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4df676 of this['getSuggestions']()){if(_0x4df676['author']['id']!=_0x36196b['id'])continue;if('formatBlock'!=_0x4df676['type']||_0x4df676['data']['formatGroupId']!=_0x5d5490['formatGroupId'])continue;if(!Qt(_0x4df676,_0x5bc2cd))continue;const _0x2e05a5=_0x4df676['subType']==_0x6c7827;for(let _0x3f65ce=0x0;_0x3f65ce<_0x2f70d9['length'];_0x3f65ce++){const _0x122efb=_0x2f70d9[_0x3f65ce];for(const _0x16d85b of _0x4df676['getMarkers']()){const _0x3ef556=_0x16d85b['getRange']();if(_0x122efb['isEqual'](_0x3ef556)){_0x2e05a5?(_0x2f70d9['splice'](_0x3f65ce,0x1),_0x3f65ce--):_0x4df676['removeMarker'](_0x16d85b['name']);break;}}}}if(0x0==_0x2f70d9['length'])return null;const _0x37d920=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6c7827,'join');for(const _0x160ec1 of this['getSuggestions']())if(_0x160ec1['author']['id']==_0x36196b['id']&&'formatBlock'==_0x160ec1['type']&&_0x160ec1['data']['formatGroupId']==_0x5d5490['formatGroupId']&&_0x160ec1['subType']==_0x6c7827&&Qt(_0x160ec1,_0x5bc2cd)&&(_0x37d920(_0x160ec1['getRanges'](),_0x2f70d9)||_0x37d920(_0x2f70d9,_0x160ec1['getRanges']()))){for(const _0x55f266 of _0x2f70d9)_0x160ec1['addRange'](_0x55f266);return _0x160ec1;}const _0x25fc09=_0x2730a7(),_0xa248a3=_0x36196b['id'],_0x3ae8b9='formatBlock:'+_0x6c7827,_0x3426ff=this['_setSuggestionData']({'id':_0x25fc09,'type':_0x3ae8b9,'data':_0x5d5490,'createdAt':new Date(),'authorId':_0xa248a3,'attributes':_0x5bc2cd});for(const _0xd16772 of _0x2f70d9)this['_addSuggestionMarker'](_0x3ae8b9,_0x25fc09,_0xa248a3,_0xd16772,u['getMultiRangeId']());return _0x3426ff;}['markDeletion'](_0x4c9304,_0xbac996=null,_0x54e92d={}){if(_0x4c9304['isCollapsed'])return null;const _0x2f75e0=this['editor']['plugins']['get']('Users')['me'],_0x2c21d5=new _0x157a8e(_0x4c9304['start'],_0x4c9304['end']);for(const {suggestion:_0x49970a,meta:_0x2e32e2}of this['_findSuggestions'](_0x2c21d5,'insertion'))if(_0x2e32e2['isOwn']&&!_0x2e32e2['isNextTo']){if(_0x49970a['isMultiRange']){const _0xdabc61=_0x49970a['getRanges']()['filter'](_0x4cdc78=>'$graveyard'!=_0x4cdc78['root']['rootName']);_0xdabc61['every'](_0x570b5e=>_0x2c21d5['containsRange'](_0x570b5e,!0x0))&&_0x49970a['discard']();if(_0xdabc61['some'](_0x4254d6=>_0x4254d6['containsRange'](_0x2c21d5,!0x0))){const _0x13f16b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbac996,'accept');return this['forceDefaultExecution'](()=>_0x13f16b([_0x2c21d5],null,_0x54e92d)),null;}}else{const _0x596d9f=_0x2c21d5['getIntersection'](_0x49970a['getFirstRange']());null!==_0x596d9f&&_0x49970a['_onDiscard']([_0x596d9f],null,_0x54e92d);}}if(_0x2c21d5['detach'](),_0x2c21d5['isCollapsed']||'$graveyard'==_0x2c21d5['root']['rootName'])return null;let _0x27a027=null,_0x2488e0=_0x2c21d5['start'],_0x915301=_0x2c21d5['end'];const _0x1397c8=this['_findSuggestions'](_0x2c21d5,'deletion');for(const {suggestion:_0x5c964c,meta:_0x536ae6}of _0x1397c8){const _0x3a306c=this['_model']['createRange'](_0x2488e0,_0x915301);if(_0x536ae6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x536ae6['containsRangeInObject']&&!_0x536ae6['isInsideObject'])){if(_0x5c964c['isMultiRange']){if(!Qt(_0x5c964c,_0x54e92d))continue;let _0x4f994c=!0x0;for(const _0x3cbb41 of _0x5c964c['getRanges']()){if(_0x3cbb41['containsRange'](_0x3a306c,!0x0))return _0x5c964c;_0x3a306c['containsRange'](_0x3cbb41)||(_0x4f994c=!0x1);}_0x4f994c&&_0x5c964c['discard']();}else{const _0x37d7b7=_0x5c964c['getFirstRange']();if(_0x37d7b7['containsRange'](_0x3a306c,!0x0))return _0x5c964c;if(!Qt(_0x5c964c,_0x54e92d)){_0x3a306c['containsRange'](_0x37d7b7)?_0x5c964c['removeMarkers']():_0x37d7b7['containsPosition'](_0x2488e0)?_0x2488e0=_0x37d7b7['end']:_0x37d7b7['containsPosition'](_0x915301)&&(_0x915301=_0x37d7b7['start']);continue;}_0x2488e0=_0x2488e0['isBefore'](_0x37d7b7['start'])?_0x2488e0:_0x37d7b7['start'],_0x915301=_0x915301['isAfter'](_0x37d7b7['end'])?_0x915301:_0x37d7b7['end'],_0x54e92d=Object['assign']({},_0x5c964c['attributes']),_0x27a027?_0x37d7b7['start']['isBefore'](_0x27a027['getFirstRange']()['start'])?(_0x27a027['removeMarkers'](),_0x27a027=_0x5c964c):_0x5c964c['removeMarkers']():_0x27a027=_0x5c964c;}}}if(_0x27a027)return this['_setSuggestionRange'](_0x27a027,this['_model']['createRange'](_0x2488e0,_0x915301)),_0x27a027;{const _0x407baa=_0x2730a7(),_0x59dc55=this['_model']['createRange'](_0x2488e0,_0x915301),_0x87979f=_0x2f75e0['id'],_0x46ab19=_0xbac996?'deletion:'+_0xbac996:'deletion',_0x2d615c=this['_setSuggestionData']({'id':_0x407baa,'type':_0x46ab19,'createdAt':new Date(),'authorId':_0x87979f,'attributes':_0x54e92d});return this['_addSuggestionMarker'](_0x46ab19,_0x407baa,_0x87979f,_0x59dc55),_0x2d615c;}}['markMultiRangeDeletion'](_0x5b9846,_0x516851='multi',_0x91cc36={}){const _0x8688fa=this['editor']['plugins']['get']('Users')['me'],_0x4db967=_0x5b9846['map'](_0x52248e=>new _0x157a8e(_0x52248e['start'],_0x52248e['end'])),_0x23beaa=new Set();for(const {suggestion:_0x410512,meta:_0x11030e}of this['_findSuggestions'](_0x4db967,'insertion'))_0x11030e['isOwn']&&!_0x11030e['isNextTo']&&_0x23beaa['add'](_0x410512);for(const _0x5b5cd8 of _0x23beaa)if(_0x5b5cd8['isMultiRange']){const _0x5e0770=_0x5b5cd8['getRanges']();(!_0x5b5cd8['attributes']||!_0x5b5cd8['attributes']['skipNestingCheck'])&&(_0x5e0770['every'](_0x2f1860=>_0x4db967['some'](_0x1f89de=>_0x1f89de['containsRange'](_0x2f1860,!0x0)))&&_0x5b5cd8['discard']());if(_0x4db967['every'](_0x1f0e4b=>_0x5e0770['some'](_0x2ce1b7=>_0x2ce1b7['containsRange'](_0x1f0e4b,!0x0)))){const _0xcca17a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'accept');return this['forceDefaultExecution'](()=>_0xcca17a(_0x5b9846,null,_0x91cc36)),null;}}else{const _0x4d7287=_0x5b5cd8['getFirstRange']();_0x4db967['some'](_0x102efd=>_0x102efd['containsRange'](_0x4d7287,!0x0))&&_0x5b5cd8['discard']();if(_0x4db967['every'](_0x51cfc2=>_0x4d7287['containsRange'](_0x51cfc2,!0x0))){const _0x1e0391=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'accept');return this['forceDefaultExecution'](()=>_0x1e0391(_0x4db967,null,_0x91cc36)),null;}}const _0x3a89dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x516851,'join');let _0x109d8c=null;for(const _0x1ae596 of this['getSuggestions']())if(_0x1ae596['author']['id']==_0x8688fa['id']&&_0x1ae596['isInContent']&&'deletion'==_0x1ae596['type']&&_0x1ae596['subType']==_0x516851&&Qt(_0x1ae596,_0x91cc36)&&(_0x3a89dd(_0x1ae596['getRanges'](),_0x4db967)||_0x3a89dd(_0x4db967,_0x1ae596['getRanges']()))){if(_0x109d8c){if(_0x1ae596['commentThread']&&_0x1ae596['commentThread']['length'])continue;for(const _0x363231 of _0x1ae596['getRanges']())_0x109d8c['isIntersectingWithRange'](_0x363231)||_0x109d8c['addRange'](_0x363231);_0x1ae596['removeMarkers']();}else{_0x109d8c=_0x1ae596;for(const _0x3bdb64 of _0x4db967)_0x1ae596['isIntersectingWithRange'](_0x3bdb64)||_0x1ae596['addRange'](_0x3bdb64);}}if(_0x109d8c)return _0x109d8c;_0x23beaa['clear']();for(const {suggestion:_0x2570be,meta:_0x31ebfa}of this['_findSuggestions'](_0x4db967,'deletion'))_0x31ebfa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31ebfa['containsRangeInObject']&&!_0x31ebfa['isInsideObject'])&&Qt(_0x2570be,_0x91cc36)&&_0x23beaa['add'](_0x2570be);for(const _0xba983e of _0x23beaa){const _0x1ba6e4=_0xba983e['getRanges']();if(!_0x91cc36||!_0x91cc36['skipNestingCheck']){if(_0x4db967['every'](_0x47f720=>_0x1ba6e4['some'](_0x306093=>_0x306093['containsRange'](_0x47f720,!0x0))))return _0xba983e;}(!_0xba983e['attributes']||!_0xba983e['attributes']['skipNestingCheck'])&&(_0x1ba6e4['every'](_0x113439=>_0x4db967['some'](_0x16b39d=>_0x16b39d['containsRange'](_0x113439,!0x0)))&&_0xba983e['discard']());}const _0x2fd971=_0x2730a7(),_0x5acba6=_0x8688fa['id'],_0x487bd5='deletion:'+_0x516851,_0x43354=this['_setSuggestionData']({'id':_0x2fd971,'type':_0x487bd5,'createdAt':new Date(),'authorId':_0x5acba6,'attributes':_0x91cc36});for(const _0x4cef02 of _0x4db967)_0x4cef02['detach'](),_0x4cef02['isCollapsed']||'$graveyard'==_0x4cef02['root']['rootName']||this['_addSuggestionMarker'](_0x487bd5,_0x2fd971,_0x5acba6,_0x4cef02,u['getMultiRangeId']());return _0x43354;}['markAttributeChange'](_0x14aa6a,_0x1ce219,_0x366496,_0xeaedae,_0x12dc97){if(_0x14aa6a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5bcf49=this['editor']['plugins']['get']('Users')['me']['id'],_0x445273=Array['from'](this['_suggestions']['values']())['filter'](_0x295f7f=>'attribute'==_0x295f7f['type']&&_0x295f7f['data']['key']==_0x1ce219&&_0x295f7f['isIntersectingWithRange'](_0x14aa6a));if('default'===this['_trackFormatChanges']){const _0x4d44b=this['_findSuggestions'](_0x14aa6a,'insertion')['filter'](({meta:_0x3162be})=>_0x3162be['isOwn']&&!_0x3162be['isInsideObject']&&!_0x3162be['isNextTo'])['map'](({suggestion:_0x2b84e7})=>_0x2b84e7);_0x445273['unshift'](..._0x4d44b);}const _0x2c10ee=new Map([[_0x14aa6a,_0x366496]]);for(const _0x39f568 of _0x445273){const _0x52372e='attribute'==_0x39f568['type']?_0x39f568['data']['oldValue']:void 0x0,_0x12a441=_0x39f568['getFirstRange'](),_0x21b585=Array['from'](_0x2c10ee['keys']())['find'](_0x4ae61e=>_0x4ae61e['isIntersecting'](_0x12a441));if(!_0x21b585)continue;const _0x28d982=_0x21b585['getDifference'](_0x12a441);this['_isBlockAttribute'](_0x1ce219)&&'insertion'==_0x39f568['type']&&0x0!=_0x28d982['length']||(_0x2c10ee['delete'](_0x21b585),_0x28d982['forEach'](_0x512f0b=>{_0x2c10ee['set'](_0x512f0b,_0x366496);}),'insertion'!=_0x39f568['type']&&_0x52372e!=_0xeaedae&&_0x2c10ee['set'](_0x21b585['getIntersection'](_0x12a441),_0x52372e));}const _0x471921=[];for(const [_0x3db638,_0x4b9a1d]of _0x2c10ee){const _0x28a598=_0x2730a7(),_0x22f667={'key':_0x1ce219,'oldValue':_0x4b9a1d,'newValue':_0xeaedae};_0x1ce219['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':_0x1ce219});const _0x16d7a3=('attribute:'+(_0x1ce219+'|'+Jt({'newValue':_0xeaedae})))['substring'](0x0,0x3c),_0x2c3f11=this['_setSuggestionData']({'id':_0x28a598,'type':_0x16d7a3,'data':_0x22f667,'createdAt':new Date(),'authorId':_0x5bcf49,'attributes':_0x12dc97});_0x471921['push'](_0x2c3f11),this['_addSuggestionMarker'](_0x16d7a3,_0x28a598,_0x5bcf49,_0x3db638);}return _0x471921;}['enableDefaultAttributesIntegration'](_0x5088d4){this['enableCommand'](_0x5088d4,(_0x3c5142,..._0x50ebd8)=>{this['_recordAttributeChanges'](()=>{_0x3c5142(..._0x50ebd8);});});}['registerBlockAttribute'](_0x32baa8){this['_blockAttributeKeys']['add'](_0x32baa8);}['registerInlineAttribute'](_0x7ebec9){this['_inlineAttributeKeys']['add'](_0x7ebec9);}['_getAttributeKey'](_0x63a5e9){return'attribute'==_0x63a5e9['type']?_0x63a5e9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3bb564,_0x4e9858){const _0x49d1dc=_0x3bb564['getFirstMarker']();this['_model']['change'](_0xcf48d8=>{_0xcf48d8['updateMarker'](_0x49d1dc,{'range':_0x4e9858});});}['_addThreadToSuggestion'](_0x413a39){const _0x57c727=_0x413a39['id'],_0xb75903=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57c727)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb75903,'threadId':_0x57c727,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6a64a=this['_commentsRepository']['getCommentThread'](_0x57c727);_0x6a64a['unbind']('isRemovable'),_0x6a64a['isRemovable']=!0x1,_0x413a39['commentThread']=_0x6a64a;}['_checkSuggestionCorrectness'](_0x3c6f25,_0x1d54bc,_0x22cf17,_0x247d65){if(_0x3c6f25['type']!=_0x1d54bc||_0x3c6f25['subType']!=_0x22cf17||_0x3c6f25['creator']['id']!=_0x247d65)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d7761('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa541a9,_0x5eefca){const _0x32581e=_0xa541a9['getFirstRange']();if(_0x5eefca['isEqual'](_0x32581e))_0xa541a9['removeMarkers']();else{if(_0x32581e['containsRange'](_0x5eefca)){const _0x2c6bb7=this['_model']['createPositionAt'](_0x5eefca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x32581e['start'],_0x2c6bb7));const _0x4f7680=_0x2730a7(),_0x81f7d0=_0xa541a9['creator']['id'],_0x537d6f=_0xa541a9['type']+':'+_0xa541a9['subType'];this['_setSuggestionData']({'id':_0x4f7680,'type':_0x537d6f,'createdAt':new Date(),'authorId':_0x81f7d0,'data':_0xa541a9['data'],'attributes':_0xa541a9['attributes']});const _0x559139=this['_model']['createPositionAt'](_0x5eefca['end']['parent'],'after'),_0x52f39e=this['_model']['createRange'](_0x559139,_0x32581e['end']);this['_addSuggestionMarker'](_0x537d6f,_0x4f7680,_0x81f7d0,_0x52f39e);}else{if(_0x32581e['containsPosition'](_0x5eefca['start'])){const _0x115c0c=this['_model']['createPositionAt'](_0x5eefca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x32581e['start'],_0x115c0c));}else{const _0x2e5d60=this['_model']['createPositionAt'](_0x5eefca['end']['parent'],'after');this['_setSuggestionRange'](_0xa541a9,this['_model']['createRange'](_0x2e5d60,_0x32581e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3866ee){for(const {suggestion:_0x1dd80f,meta:_0x47aefa}of this['_findSuggestions'](_0x3866ee,'insertion')){if(!_0x47aefa['isOwn'])continue;const _0x3a6d6a=_0x1dd80f['getRanges']();for(const _0x3b0f27 of _0x3a6d6a)if(!_0x3866ee['getDifference'](_0x3b0f27)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e4ec4){const _0x20aa96=this['editor']['plugins']['get']('Users')['getUser'](_0x4e4ec4);if(!_0x20aa96)throw new _0x4d7761('track-changes-user-not-found',this);return _0x20aa96;}['_getExternalAuthor'](_0x36ac69){const _0x186fc4=this['editor']['plugins']['get']('Users'),_0x5ea8c6=_0x2731c3('external:'+_0x36ac69),_0x57fdd2=_0x186fc4['getUser'](_0x5ea8c6);return _0x57fdd2||_0x186fc4['addUser']({'id':_0x5ea8c6,'name':_0x36ac69});}['_createSuggestion'](_0x8bfab1,_0x542e73,_0x25e292,_0x2c9b4b,_0x2dfe09){const _0x188582=this['_getAuthorFromId'](_0x2c9b4b),_0x21bb79=this['_suggestionFactory']['buildSuggestion'](_0x8bfab1,_0x542e73,_0x25e292,_0x188582,_0x2dfe09,_0x17344c=>{this['_updateSuggestionData'](_0x25e292,{'attributes':_0x17344c});const _0x5a8090=this['getSuggestion'](_0x25e292);this['_joinWithAdjacentSuggestions'](new Set([_0x5a8090])),this['_refreshSuggestionsChain'](new Set([_0x5a8090]));});return this['listenTo'](_0x21bb79,'accept',()=>{this['_updateSuggestionData'](_0x25e292,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x21bb79,'discard',()=>{this['_updateSuggestionData'](_0x25e292,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x25e292,_0x21bb79),this['_suggestionState']['set'](_0x21bb79,'notReady'),_0x21bb79;}['_splitMarkerName'](_0x7a962b){const _0x565ad2=_0x7a962b['split'](':');return{'group':_0x565ad2[0x0],'type':_0x565ad2[0x1],'subType':_0x565ad2['length']>=0x5?_0x565ad2[0x2]:null,'id':_0x565ad2['length']<0x5?_0x565ad2[0x2]:_0x565ad2[0x3],'authorId':_0x565ad2['length']<0x5?_0x565ad2[0x3]:_0x565ad2[0x4],'markerCount':0x6==_0x565ad2['length']?_0x565ad2[0x5]:null};}['_breakSuggestionMarker'](_0x4c32fd,_0x4b0f3c,_0x230e8b){const _0x1f3f25=_0x4c32fd['getFirstRange'](),_0x41c2e2=_0x1f3f25['start'],_0x565483=_0x1f3f25['end'];this['_setSuggestionRange'](_0x4c32fd,this['_model']['createRange'](_0x41c2e2,_0x4b0f3c));const _0x94ed06=_0x2730a7(),_0x477076=_0x4c32fd['creator']['id'],_0xbfa4e9=_0x4c32fd['type']+(_0x4c32fd['subType']?':'+_0x4c32fd['subType']:'');this['_setSuggestionData']({'id':_0x94ed06,'type':_0xbfa4e9,'createdAt':new Date(),'authorId':_0x477076,'originalSuggestionId':_0x4c32fd['id'],'attributes':_0x4c32fd['attributes'],'data':_0x4c32fd['data']});const _0x1ef1e1=this['_getAttributeKey'](_0x4c32fd);('formatBlock'==_0x4c32fd['type']||_0x1ef1e1&&this['_isBlockAttribute'](_0x1ef1e1))&&(_0x230e8b=this['_model']['createPositionBefore'](_0x230e8b['parent'])),this['_addSuggestionMarker'](_0xbfa4e9,_0x94ed06,_0x477076,this['_model']['createRange'](_0x230e8b,_0x565483));}['_findSuggestions'](_0x95688c,_0x4b4549=null){const _0x5cef2e=[],_0x5bee54=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x95688c)||(_0x95688c=[_0x95688c]);for(const _0x5cc420 of this['getSuggestions']()){if(!_0x5cc420['isInContent'])continue;if(_0x4b4549&&_0x5cc420['type']!=_0x4b4549)continue;let _0x4fecec=!0x1;for(const _0x2d7b29 of _0x5cc420['getRanges']()){for(const _0x46f9cf of _0x95688c){const _0x35eff3=_0x46f9cf['start']['isEqual'](_0x2d7b29['end'])||_0x46f9cf['end']['isEqual'](_0x2d7b29['start']);if(_0x35eff3||_0x46f9cf['getIntersection'](_0x2d7b29)){const _0xc285b1=_0x46f9cf['containsRange'](_0x2d7b29)&&Gt(this['_model']['schema'],_0x2d7b29['start'],_0x46f9cf),_0x162b78=_0x2d7b29['containsRange'](_0x46f9cf)&&Gt(this['_model']['schema'],_0x46f9cf['start'],_0x2d7b29);_0x5cef2e['push']({'suggestion':_0x5cc420,'meta':{'isOwn':_0x5bee54==_0x5cc420['author'],'isNextTo':_0x35eff3,'isInsideObject':_0xc285b1,'containsRangeInObject':_0x162b78}}),_0x4fecec=!0x0;break;}}if(_0x4fecec)break;}}return _0x5cef2e;}['_addSuggestionMarker'](_0x97e50,_0x3416fe,_0x223e7f,_0x345ce2,_0x95ed93){this['_model']['change'](_0x902d66=>{let _0x55edb8='suggestion:'+_0x97e50+':'+_0x3416fe+':'+_0x223e7f;_0x95ed93&&(_0x55edb8=_0x55edb8+':'+_0x95ed93),_0x902d66['addMarker'](_0x55edb8,{'range':_0x345ce2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd9541){const _0x3ce93b=_0xcd9541['previous'],_0x2a6373=_0xcd9541['next'];_0xcd9541['previous']=null,_0xcd9541['next']=null,null!=_0x3ce93b&&_0x3ce93b['next']==_0xcd9541&&(_0x3ce93b['next']=_0x2a6373),null!=_0x2a6373&&_0x2a6373['previous']==_0xcd9541&&(_0x2a6373['previous']=_0x3ce93b),'ready'==this['_suggestionState']['get'](_0xcd9541)&&(this['_suggestionState']['set'](_0xcd9541,'removed'),this['fire']('suggestionUnloaded',_0xcd9541,_0x3ce93b,_0x2a6373));}['_setSuggestionData'](_0x1b69c7){const _0x5e7128=_0x1b69c7['id'],_0x20301c=this['addSuggestionData'](_0x1b69c7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x17400b=this['editor']['plugins']['get']('PendingActions'),_0x27efaf=_0x20301c['hasComments'],_0x2babd5=_0x20301c['subType']?_0x20301c['type']+':'+_0x20301c['subType']:_0x20301c['type'],_0x28cd27=this['editor']['locale'],_0x4d2aea=_0x17400b['add'](o(_0x28cd27,'PENDING_ACTION_SUGGESTION')),_0x1aff92={'id':_0x5e7128,'type':_0x2babd5,'hasComments':_0x27efaf,'data':_0x1b69c7['data']||null,'originalSuggestionId':_0x1b69c7['originalSuggestionId']||null,'attributes':_0x20301c['attributes']};this['_adapter']['addSuggestion'](_0x1aff92)['then'](_0x49da8c=>{_0x20301c['_saved']=!0x0,_0x17400b['remove'](_0x4d2aea),_0x49da8c&&_0x49da8c['createdAt']&&(this['_suggestions']['get'](_0x5e7128)['createdAt']=_0x49da8c['createdAt']);})['catch'](_0x39a0be=>{throw _0xbbe712('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x20301c['discard']();}),_0x20301c['stopListening'](),this['_suggestions']['delete'](_0x20301c['id']),this['_suggestionState']['delete'](_0x20301c),_0x39a0be;});}return _0x20301c;}['_isBlockAttribute'](_0x7edcfd){return this['_blockAttributeKeys']['has'](_0x7edcfd);}['_updateSuggestionData'](_0x2da443,_0x3dcea2){const _0x274315=this['editor']['plugins']['get']('PendingActions'),_0x18cccc=this['getSuggestion'](_0x2da443);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18cccc['_saved']){const _0x582cc3=_0x274315['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2da443,_0x3dcea2)['then'](()=>{_0x274315['remove'](_0x582cc3);});}else _0x18cccc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2da443,_0x3dcea2);});}}['_getSuggestionData'](_0x1d8f28){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d7761('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1d8f28);}['_handleNewSuggestionMarker'](_0xb77f3e){const {id:_0x3a7941,type:_0x591ff8,subType:_0x144180,authorId:_0x58f9ff}=this['_splitMarkerName'](_0xb77f3e),_0x3edfbd=this['_suggestions']['get'](_0x3a7941)||this['_createSuggestion'](_0x591ff8,_0x144180,_0x3a7941,_0x58f9ff,{});switch(this['_checkSuggestionCorrectness'](_0x3edfbd,_0x591ff8,_0x144180,_0x58f9ff),this['_suggestionState']['get'](_0x3edfbd)){case'notReady':this['_getSuggestionData'](_0x3a7941)['then'](_0x3b9fcc=>{let _0x11f7be=Promise['resolve']();_0x3b9fcc['hasComments']&&(_0x11f7be=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3a7941})),_0x11f7be['then'](()=>{this['addSuggestionData'](_0x3b9fcc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3edfbd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3a7941,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3edfbd,'ready'),this['fire']('suggestionLoaded',_0x3edfbd);break;case'ready':this['fire']('suggestionChanged',_0x3edfbd);}return _0x3edfbd['addMarkerName'](_0xb77f3e),_0x3edfbd;}['_refreshSuggestionsChain'](_0x35952c){const _0x3e49c2=Array['from'](_0x35952c),_0x3d4feb=_0x3e49c2['filter'](_0x472e17=>'attribute'==_0x472e17['type']);this['_refreshAttributeSuggestionsChain'](_0x3d4feb);const _0x2ec40b=_0x3e49c2['filter'](_0x1c81a2=>!_0x1c81a2['isMultiRange']&&'attribute'!=_0x1c81a2['type']),_0x1ab4e7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x232ad1=>!_0x232ad1['isMultiRange']&&'attribute'!=_0x232ad1['type']),_0x384154=_0x1ab4e7['filter'](_0x730e82=>!_0x35952c['has'](_0x730e82)),_0x5874fb=new Map(_0x1ab4e7['map'](_0x9be5fe=>[_0x9be5fe,this['_suggestionFactory']['getSuggestionCallback'](_0x9be5fe['type'],_0x9be5fe['subType'],'chain')])),_0x139578=new Map(_0x1ab4e7['map'](_0x3f5c61=>[_0x3f5c61,_0x3f5c61['getFirstRange']()])),_0x596d1f=new Set(),_0x3581a3=new Set();for(let _0x1d9019=0x0;_0x1d9019<_0x2ec40b['length'];_0x1d9019++)_0x53f4f4(_0x2ec40b[_0x1d9019],_0x2ec40b,_0x1d9019+0x1);for(let _0x1aee51=0x0;_0x1aee51<_0x2ec40b['length'];_0x1aee51++)_0x53f4f4(_0x2ec40b[_0x1aee51],_0x384154,0x0);const _0x5a91a0=new Set();for(let _0x3991c6=0x0;_0x3991c6<_0x2ec40b['length'];_0x3991c6++){const _0x318158=_0x2ec40b[_0x3991c6];!_0x3581a3['has'](_0x318158)&&_0x318158['previous']&&(_0x5a91a0['add'](_0x318158['previous']),_0x318158['previous']['next']===_0x318158&&(_0x318158['previous']['next']=null),_0x318158['previous']=null),!_0x596d1f['has'](_0x318158)&&_0x318158['next']&&(_0x5a91a0['add'](_0x318158['next']),_0x318158['next']['previous']===_0x318158&&(_0x318158['next']['previous']=null),_0x318158['next']=null);}function _0x53f4f4(_0x12f3da,_0x4d66df,_0x33ebde){for(let _0x5481a3=_0x33ebde;_0x5481a3<_0x4d66df['length'];_0x5481a3++){const _0x2538c5=_0x137270(_0x12f3da,_0x4d66df[_0x5481a3]);_0x2538c5&&(_0x2538c5[0x0]['next']=_0x2538c5[0x1],_0x2538c5[0x1]['previous']=_0x2538c5[0x0],_0x596d1f['add'](_0x2538c5[0x0]),_0x3581a3['add'](_0x2538c5[0x1]));}}function _0x137270(_0x598e5f,_0x4abde3){if(_0x598e5f['author']['id']!==_0x4abde3['author']['id'])return null;const _0x359008=_0x5874fb['get'](_0x598e5f)(_0x598e5f,_0x4abde3,_0x139578['get'](_0x598e5f),_0x139578['get'](_0x4abde3));if(!_0x359008)return null;return _0x5874fb['get'](_0x4abde3)(_0x598e5f,_0x4abde3,_0x139578['get'](_0x598e5f),_0x139578['get'](_0x4abde3))?_0x359008[0x1]['commentThread']&&_0x359008[0x1]['commentThread']['length']?null:_0x359008:null;}_0x5a91a0['size']&&this['_refreshSuggestionsChain'](_0x5a91a0);}['_refreshAttributeSuggestionsChain'](_0x468cca){if(0x0==_0x468cca['length'])return;const _0x35cbca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fb046=>'attribute'==_0x3fb046['type']&&_0x3fb046['_isDataLoaded']),_0x3e7b00=[],_0x325077=new Map();for(const _0x1c43bc of _0x35cbca){const _0x528614=_0x2731c3(_0x1c43bc['attributes']);_0x325077['has'](_0x528614)||(_0x325077['set'](_0x528614,_0x3e7b00['length']),_0x3e7b00['push']([]));const _0x2bb2e8=_0x325077['get'](_0x528614);_0x3e7b00[_0x2bb2e8]['push'](_0x1c43bc);}!(function(){_0x3e7b00['sort']((_0x5a1fab,_0x2c2269)=>{const _0x1e5a70=_0x5a1fab[0x0]['createdAt'],_0x2dc2d6=_0x2c2269[0x0]['createdAt'];return _0x1e5a70==_0x2dc2d6?_0x5a1fab[0x0]['attributes']['groupId']<_0x2c2269[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e5a70<_0x2dc2d6?-0x1:0x1;});for(const _0x826763 of _0x3e7b00)_0x826763['sort']((_0x329422,_0x4c6a96)=>_0x329422['id']<_0x4c6a96['id']?-0x1:0x1);}());for(let _0x165443=0x0;_0x165443<_0x3e7b00['length'];_0x165443++){if(0x0==_0x3e7b00[_0x165443]['length'])continue;const _0x2e0eb9=[];for(let _0x34a405=_0x165443+0x1;_0x34a405<_0x3e7b00['length'];_0x34a405++)0x0!=_0x3e7b00[_0x34a405]['length']&&_0x324dec(_0x3e7b00[_0x165443],_0x3e7b00[_0x34a405])&&_0x2e0eb9['push'](_0x34a405);for(const _0x4eb56e of _0x2e0eb9)_0x3e7b00[_0x165443]=_0x3e7b00[_0x165443]['concat'](_0x3e7b00[_0x4eb56e]),_0x3e7b00[_0x4eb56e]=[];}for(const _0x356d73 of _0x3e7b00)for(let _0x36276f=0x0;_0x36276f<_0x356d73['length'];_0x36276f++){const _0x132fbc=_0x356d73[_0x36276f+0x1]||null;_0x356d73[_0x36276f]['next']!==_0x132fbc&&(_0x356d73[_0x36276f]['next']=_0x132fbc);}for(const _0x19d0f5 of _0x3e7b00)for(let _0x43101f=0x0;_0x43101f<_0x19d0f5['length'];_0x43101f++){const _0x41adc4=_0x19d0f5[_0x43101f-0x1]||null;_0x19d0f5[_0x43101f]['previous']!==_0x41adc4&&(_0x19d0f5[_0x43101f]['previous']=_0x41adc4);}function _0x324dec(_0x2cd907,_0x275cd7){if(_0x2cd907[0x0]['attributes']['groupId']!==_0x275cd7[0x0]['attributes']['groupId']&&_0x2cd907[0x0]['author']!==_0x275cd7[0x0]['author'])return!0x1;if(!function(_0x2bdefd,_0x5c163d){if(!_0x2bdefd['hasComments']&&!_0x5c163d['hasComments'])return!0x0;if(_0x2bdefd['hasComments']&&_0x5c163d['hasComments'])return!0x1;if(_0x2bdefd['hasComments']&&_0x5c163d['createdAt']<_0x2bdefd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c163d['hasComments']&&_0x2bdefd['createdAt']<_0x5c163d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2cd907[0x0],_0x275cd7[0x0]))return!0x1;const _0x584dab=Vt(_0x2cd907[0x0]['attributes'],'groupId'),_0x1225bd=Vt(_0x275cd7[0x0]['attributes'],'groupId');if(!_0x46d056(_0x584dab,_0x1225bd))return!0x1;return!!_0x2cd907['every'](_0x4b4107=>_0x275cd7['some'](_0x6f704a=>_0x4b4107['getFirstRange']()['isEqual'](_0x6f704a['getFirstRange']())))&&_0x275cd7['every'](_0x4363cc=>_0x2cd907['some'](_0x5bcd0a=>_0x4363cc['getFirstRange']()['isEqual'](_0x5bcd0a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6f4e49){const _0x55fae3=Array['from'](_0x6f4e49),_0x375b46=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12652a=_0x375b46['filter'](_0x5b6e48=>!_0x6f4e49['has'](_0x5b6e48)),_0x1ef9de=new Map(_0x55fae3['map'](_0x517d32=>[_0x517d32,this['_suggestionFactory']['getSuggestionCallback'](_0x517d32['type'],_0x517d32['subType'],'join')])),_0x424ece=new Map(_0x375b46['map'](_0x4f8e82=>[_0x4f8e82,_0x4f8e82['getRanges']()]));for(let _0x3ab8dc=0x0;_0x3ab8dc<_0x55fae3['length'];_0x3ab8dc++){if(_0x5f305a(this,_0x55fae3[_0x3ab8dc],_0x55fae3,_0x3ab8dc+0x1))return!0x0;}for(let _0x1ec5f1=0x0;_0x1ec5f1<_0x55fae3['length'];_0x1ec5f1++){if(_0x5f305a(this,_0x55fae3[_0x1ec5f1],_0x12652a,0x0))return!0x0;}return!0x1;function _0x5f305a(_0x22bf26,_0x168b19,_0x49f7ee,_0x55c462){for(let _0x409ce6=_0x55c462;_0x409ce6<_0x49f7ee['length'];_0x409ce6++){const _0x53e65e=_0x49f7ee[_0x409ce6];if(_0x53e65e['type']!==_0x168b19['type']||_0x53e65e['author']['id']!==_0x168b19['author']['id']||_0x53e65e['subType']!==_0x168b19['subType'])continue;if(!Wt(_0x168b19,_0x53e65e))continue;if('attribute'==_0x168b19['type']&&_0x168b19['data']['oldValue']!=_0x53e65e['data']['oldValue'])continue;if('attribute'==_0x168b19['type']&&_0x22bf26['_isBlockAttribute'](_0x168b19['data']['key']))continue;if('formatBlock'==_0x168b19['type']){const _0x15f8a0=_0x22bf26['editor']['model'],_0x4640c1=_0x168b19['getContainedElement']();if(_0x4640c1&&(_0x15f8a0['schema']['isObject'](_0x4640c1)||_0x15f8a0['schema']['isLimit'](_0x4640c1)))continue;}const _0x5081ed=_0x1ef9de['get'](_0x168b19),_0x4267d7=_0x424ece['get'](_0x168b19),_0x3952f9=_0x424ece['get'](_0x53e65e),_0x4f3955=_0x168b19['commentThread']&&_0x168b19['commentThread']['length'],_0x1260b0=_0x53e65e['commentThread']&&_0x53e65e['commentThread']['length'];if(!_0x4f3955&&_0x5081ed(_0x3952f9,_0x4267d7))return _0x22bf26['_joinSuggestions'](_0x53e65e,_0x168b19),_0x424ece['delete'](_0x168b19),!0x0;if(!_0x1260b0&&_0x5081ed(_0x4267d7,_0x3952f9))return _0x22bf26['_joinSuggestions'](_0x168b19,_0x53e65e),_0x424ece['delete'](_0x53e65e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ba3db,_0x10517c){if(_0x2ba3db['isMultiRange']){for(const _0x9b7c7b of _0x10517c['getRanges']())_0x2ba3db['addRange'](_0x9b7c7b);}else{const _0x4806f3=_0x10517c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ba3db,this['_model']['createRange'](_0x2ba3db['getFirstRange']()['start'],_0x4806f3));}_0x10517c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x17790d,_0x4dffe6,_0x349d20){const _0x194355=_0x17790d['startsWith']('format')||_0x17790d['startsWith']('attribute')?'FORMATTING':_0x17790d['toUpperCase']();return o(this['editor']['locale'],_0x4dffe6+'_'+_0x194355+'_SUGGESTION_ANNOUNCEMENT',_0x349d20);}['_initAriaMarkerChangeAnnouncements'](){const _0xc7cfc6=this['editor'];if(!_0xc7cfc6['ui'])return;const {ariaLiveAnnouncer:_0x202943}=_0xc7cfc6['ui'];_0x569c12(this['_model'],({left:_0x260580,entered:_0x176e5e})=>{for(const _0x18978f of _0x260580){const {group:_0x3de4ca,type:_0x56309b}=this['_splitMarkerName'](_0x18978f['name']);if('suggestion'===_0x3de4ca){_0x202943['announce'](this['_getMarkerAnnouncementText'](_0x56309b,'LEAVE'));break;}}for(const _0x463341 of _0x176e5e){const {group:_0x5e4bee,type:_0x5bf4c7}=this['_splitMarkerName'](_0x463341['name']);if('suggestion'===_0x5e4bee){_0x202943['announce'](this['_getMarkerAnnouncementText'](_0x5bf4c7,'ENTER',_0x3ae4b2(_0x4e8ea0)));break;}}});}['_processAttributeChanges'](_0x271d10){if(this['_recordAttributeSuggestions'])return!0x1;const _0x50822c=this['editor'],_0x1a60de=_0x50822c['model']['document']['differ']['getChanges']();if(0x0==_0x1a60de['length'])return!0x1;const _0x4c4406=[],_0x5ca80e=_0x1a60de['filter'](_0x3e0430=>'attribute'==_0x3e0430['type']),_0x34c6ec=_0x1a60de['filter'](_0x326e7e=>'insert'==_0x326e7e['type']&&'$text'!=_0x326e7e['name']),_0x5097c0=_0x1a60de['filter'](_0x53270e=>'remove'==_0x53270e['type']&&'$text'!=_0x53270e['name']);for(const _0x4f6073 of _0x5ca80e)_0x4c4406['push']({'key':_0x4f6073['attributeKey'],'newValue':_0x4f6073['attributeNewValue'],'oldValue':_0x4f6073['attributeOldValue'],'range':qt(_0x4f6073['range'],_0x50822c['model'])});for(const _0x5e98fa of _0x34c6ec){const _0x352d59=_0x5097c0['find'](_0x2b8ff3=>_0x2b8ff3['position']['isEqual'](_0x5e98fa['position']));_0x352d59&&_0x4c4406['push']({'key':m,'newValue':_0x5e98fa['name'],'oldValue':_0x352d59['name'],'range':_0x50822c['model']['createRangeOn'](_0x5e98fa['position']['nodeAfter'])});}return 0x0!=_0x4c4406['length']&&this['_reduceExistingSuggestions'](_0x271d10,_0x4c4406);}['_processAttributeSuggestions'](_0x23bba6){let _0x57ea87=!0x1;const _0x41de57=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38df92=>_0x38df92['data']['newRange']&&_0x38df92['name']['startsWith']('suggestion:attribute:'));for(const _0xd6c486 of _0x41de57){const {subType:_0x1fe3f7,id:_0x6c0a61}=this['_splitMarkerName'](_0xd6c486['name']),_0x29d8a6=_0x1fe3f7['split']('|')[0x0];for(const _0x343c02 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x343c02['id']!=_0x6c0a61&&'attribute'==_0x343c02['type']&&_0x343c02['data']&&_0x343c02['data']['key']==_0x29d8a6&&_0x343c02['getFirstRange']()['isIntersecting'](_0xd6c486['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x343c02,_0xd6c486['data']['newRange'],_0x23bba6),_0x57ea87=!0x0);}return _0x57ea87;}['_recordAttributeChanges'](_0x185951){this['_recordAttributeSuggestions']=!0x0,_0x185951();}['_isRegisteredAttribute'](_0x5d73f5){const _0x277c60=this['_isBlockAttribute'](_0x5d73f5),_0x80804b=this['_inlineAttributeKeys']['has'](_0x5d73f5);return _0x277c60||_0x80804b;}['_reduceExistingSuggestions'](_0x48d7df,_0x3bb504){if(0x0==_0x3bb504['length'])return!0x1;let _0x46de56=!0x1;for(const _0xb5bcba of _0x3bb504){const _0x489775=this['_findSuggestions'](_0xb5bcba['range'],'attribute')['filter'](_0x1227c3=>!_0x1227c3['meta']['isNextTo'])['map'](_0x2d6f3a=>_0x2d6f3a['suggestion']),_0x53af63=_0x2731c3({'newValue':_0xb5bcba['newValue']});_0x489775['filter'](_0x2b6ea9=>{const [_0x41829f,_0x63f307]=_0x2b6ea9['subType']['split']('|');return _0x41829f==_0xb5bcba['key']&&_0x63f307!=_0x53af63;})['forEach'](_0x154df5=>{this['_reduceSuggestionAttributeRange'](_0x154df5,_0xb5bcba['range'],_0x48d7df),_0x46de56=!0x0;});}return _0x46de56;}['_reduceSuggestionAttributeRange'](_0x53a7ec,_0x1e7b0d,_0xf4945){const _0x52a410=_0x53a7ec['getFirstRange']()['getDifference'](_0x1e7b0d);0x0!==_0x52a410['length']?0x1!==_0x52a410['length']?this['_breakSuggestionMarker'](_0x53a7ec,_0x1e7b0d['start'],_0x1e7b0d['end']):this['_setSuggestionRange'](_0x53a7ec,_0x52a410[0x0]):_0xf4945['removeMarker'](_0x53a7ec['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4535c2){this['_editor']=_0x4535c2,this['_model']=_0x4535c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1887ec,_0x1b04f7,_0x56e707,_0x246090,_0x528db9,_0x24d408){return new u(this['_model'],{'type':_0x1887ec,'subType':_0x1b04f7,'id':_0x56e707,'author':_0x246090,'creator':_0x246090,'attributes':_0x528db9,'onAttributesChange':_0x24d408,'onAccept':(..._0x4145eb)=>this['getSuggestionCallback'](_0x1887ec,_0x1b04f7,'accept')(..._0x4145eb),'onDiscard':(..._0x4a087)=>this['getSuggestionCallback'](_0x1887ec,_0x1b04f7,'discard')(..._0x4a087)});}['registerCustomCallback'](_0x296b23,_0x321a47,_0x375c2b,_0x36c2dc){const _0x46e87e=_0x296b23+':'+_0x321a47+':'+_0x375c2b;this['_customCallbacks']['set'](_0x46e87e,_0x36c2dc);}['getSuggestionCallback'](_0x900ac3,_0x454219,_0x39afa7){const _0x50f88f=_0x900ac3+':'+_0x454219+':'+_0x39afa7;return this['_customCallbacks']['get'](_0x50f88f)||this['_defaultCallbacks']['get'](_0x900ac3+':'+_0x39afa7);}['_registerDefaultCallbacks'](){const _0x2a13da=()=>!0x1,_0x32d756=_0x184ec4=>{_0x184ec4['sort']((_0x17838b,_0x441441)=>_0x17838b['start']['isBefore'](_0x441441['start'])?0x1:-0x1),this['_model']['change'](_0x2a9093=>{for(const _0x1a1750 of _0x184ec4){let _0x1afe38;_0x1afe38=_0x1a1750['end']['isAtEnd']&&_0x1a1750['end']['parent']==_0x1a1750['start']['nodeAfter']?_0x2a9093['createSelection'](_0x1a1750['start']['nodeAfter'],'on'):_0x2a9093['createSelection'](_0x1a1750),this['_model']['deleteContent'](_0x1afe38,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x29c38c=(_0x44f754,_0x43cffb)=>{_0x43cffb&&this['_model']['change'](_0xc395bb=>{const {commandName:_0x5dba1c,commandParams:_0x2a407a=[]}=_0x43cffb,_0x114098=_0x44f754['map'](_0x10b54b=>(Ft(_0x10b54b)&&(_0x10b54b=this['_model']['createRange'](_0x10b54b['end'])),_0x10b54b))['filter'](_0x386b31=>'$graveyard'!==_0x386b31['root']['rootName']);if(_0x114098['length']<0x1)return;const _0x32a923=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e6694=>_0x157a8e['fromRange'](_0x1e6694));_0xc395bb['setSelection'](_0x114098);for(const _0x26027d of this['_editor']['commands']['commands']())_0x26027d['refresh']();_0x2a407a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5dba1c,..._0x2a407a);const _0x328682=_0x32a923['filter'](_0x145b86=>'$graveyard'!=_0x145b86['root']['rootName']);_0x328682['length']>0x0&&_0xc395bb['setSelection'](_0x328682);for(const _0x13a347 of _0x32a923)_0x13a347['detach']();});},_0x4529c8=(_0x3d1f5d,_0x2a3339)=>0x1==_0x3d1f5d['length']&&0x1==_0x2a3339['length']&&_0x3d1f5d[0x0]['end']['isEqual'](_0x2a3339[0x0]['start']),_0x20b08a=(_0x5d64da,_0x2a661e,_0x3385a7,_0x23378f)=>Kt(_0x5d64da,_0x2a661e,_0x3385a7,_0x23378f)?[_0x5d64da,_0x2a661e]:Kt(_0x2a661e,_0x5d64da,_0x23378f,_0x3385a7)?[_0x2a661e,_0x5d64da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2a13da),this['_defaultCallbacks']['set']('insertion:discard',_0x32d756),this['_defaultCallbacks']['set']('insertion:join',_0x4529c8),this['_defaultCallbacks']['set']('insertion:chain',_0x20b08a),this['_defaultCallbacks']['set']('deletion:accept',_0x32d756),this['_defaultCallbacks']['set']('deletion:discard',_0x2a13da),this['_defaultCallbacks']['set']('deletion:join',_0x4529c8),this['_defaultCallbacks']['set']('deletion:chain',_0x20b08a),this['_defaultCallbacks']['set']('formatInline:accept',_0x29c38c),this['_defaultCallbacks']['set']('formatInline:discard',_0x2a13da),this['_defaultCallbacks']['set']('formatInline:join',_0x4529c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x2a13da),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29c38c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2a13da),this['_defaultCallbacks']['set']('formatBlock:join',_0x4529c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2a13da),this['_defaultCallbacks']['set']('attribute:accept',_0x2a13da),this['_defaultCallbacks']['set']('attribute:discard',(_0x36e453,_0x13c4ff)=>{if(!_0x13c4ff)return;const _0x1ef511=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d817a=>{if(_0x13c4ff['key']==m)for(const _0x7d2339 of _0x36e453){const _0x52d4e1=_0x7d2339['start']['nodeAfter'],_0x37326c=_0x13c4ff['oldValue'];_0x3d817a['rename'](_0x52d4e1,_0x37326c);}else{if(_0x1ef511['_isBlockAttribute'](_0x13c4ff['key'])){for(const _0x3a0e76 of _0x36e453)void 0x0!==_0x13c4ff['oldValue']?_0x3d817a['setAttribute'](_0x13c4ff['key'],_0x13c4ff['oldValue'],_0x3a0e76['start']['nodeAfter']):_0x3d817a['removeAttribute'](_0x13c4ff['key'],_0x3a0e76['start']['nodeAfter']);}else{for(const _0x5a86a5 of _0x36e453)_0x13c4ff['oldValue']?_0x3d817a['setAttribute'](_0x13c4ff['key'],_0x13c4ff['oldValue'],_0x5a86a5):_0x3d817a['removeAttribute'](_0x13c4ff['key'],_0x5a86a5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4529c8);}}function Gt(_0x1c6843,_0x18a549,_0x48e936){for(const _0x415742 of _0x18a549['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x415742['root']==_0x415742)return!0x1;if(!_0x48e936['containsItem'](_0x415742))return!0x1;if(_0x1c6843['isObject'](_0x415742)||_0x1c6843['isLimit'](_0x415742))return!0x0;}return!0x1;}function Ft(_0xa4aba0){return _0xa4aba0['end']['parent']==_0xa4aba0['start']['nodeAfter']&&_0xa4aba0['end']['isAtStart'];}function Lt(_0x12a4a3,_0x1c7890,_0x527740,_0x372d86){const _0x1b82fb=_0x19615e=>!_0x19615e['item']['is']('$textProxy')&&!_0x372d86['isObject'](_0x19615e['item']),_0x1891c=_0x12a4a3['start']['getLastMatchingPosition'](_0x1b82fb),_0x500175=_0x12a4a3['end']['getLastMatchingPosition'](_0x1b82fb,{'direction':'backward'});return(!_0x12a4a3['start']['isEqual'](_0x1891c)||!_0x12a4a3['end']['isEqual'](_0x500175))&&(_0x1891c['isBefore'](_0x500175)?_0x527740['updateMarker'](_0x1c7890,{'range':_0x527740['createRange'](_0x1891c,_0x500175)}):_0x527740['removeMarker'](_0x1c7890),!0x0);}function Jt(_0x571234){return _0x2731c3(_0x571234);}function Ht(_0x15bfeb){const _0x51149c=_0x15bfeb['start']['nodeAfter'];return _0x51149c&&_0x51149c['is']('element');}function qt(_0x4851ff,_0x3f4609){return null==_0x4851ff['end']['nodeBefore']&&_0x4851ff['end']['parent']==_0x4851ff['start']['nodeAfter']?zt(_0x4851ff['start']['nodeAfter'],_0x3f4609):_0x4851ff;}function zt(_0x97acbb,_0x4ad169){const _0x3e8133=_0x4ad169['schema']['isObject'](_0x97acbb)||_0x4ad169['schema']['isSelectable'](_0x97acbb);return _0x4ad169['createRange'](_0x4ad169['createPositionAt'](_0x97acbb,'before'),_0x3e8133?_0x4ad169['createPositionAfter'](_0x97acbb):_0x4ad169['createPositionAt'](_0x97acbb,'end'));}function Kt(_0x124e78,_0x3696a6,_0x4e4aec,_0x33489d){return!!Wt(_0x124e78,_0x3696a6)&&_0x4e4aec['end']['isEqual'](_0x33489d['start']);}function Wt(_0x22025b,_0x192761){if(!_0x22025b['_isDataLoaded']||!_0x192761['_isDataLoaded'])return!0x1;const _0x593d4e=new Set(Object['keys'](_0x22025b['attributes'])),_0x520357=new Set(Object['keys'](_0x192761['attributes']));if(_0x593d4e['delete']('groupId'),_0x520357['delete']('groupId'),0x0==_0x593d4e['size']&&0x0==_0x520357['size'])return!0x0;if(_0x593d4e['size']!=_0x520357['size'])return!0x1;const _0x980e85={..._0x22025b['attributes']},_0x48e356={..._0x192761['attributes']};return delete _0x980e85['groupId'],delete _0x48e356['groupId'],JSON['stringify'](_0x980e85)==JSON['stringify'](_0x48e356);}function Qt(_0x1f1eac,_0x43f176){const _0x5e1250=Xt(_0x1f1eac['attributes']),_0x318e4c=Xt(_0x43f176);if(!_0x1f1eac['_isDataLoaded'])return!0x1;for(const _0x464e76 of Object['keys'](_0x318e4c))if(!_0x46d056(_0x5e1250[_0x464e76],_0x318e4c[_0x464e76]))return!0x1;return!0x0;}function Xt(_0x4e588f){const _0x1ef74c=Object['assign']({},_0x4e588f);return delete _0x1ef74c['skipNestingCheck'],delete _0x1ef74c['tablePasteChainId'],_0x1ef74c;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xbf6237(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d715a,_0x99ef4f,_0x435c91,_0x1cccf5){super(),this['model']=_0x99ef4f,this['view']=_0x435c91,this['commentThreadController']=_0x1cccf5,this['_editor']=_0x3d715a,this['_acceptCommand']=_0x3d715a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d715a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a8723,_0x221929)=>_0x3a8723||_0x221929),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x126de9=>_0x126de9&&this['_editor']['model']['canEditAt'](_0x99ef4f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xb43185=>_0xb43185&&this['_editor']['model']['canEditAt'](_0x99ef4f['getRanges']())),this['_pendingAction']=null,_0x435c91['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x435c91,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x435c91,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x435c91,'change:isDirty',()=>{_0x435c91['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 _0x27c7ff=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27c7ff);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x3964e1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x880966,_0x446e8b,_0x175615,_0x4b3d04){super(_0x880966),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x499cb3(_0x880966,o(_0x880966,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x446e8b['authoredAt']),this['bind']('authoredAt')['to'](_0x446e8b),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',_0x446e8b,'authoredAt',this,'descriptionParts',(_0xf7b59e,_0x466083,_0x4064e6)=>{const _0xa4f075=_0x4064e6['map'](_0x33612b=>cs(_0x33612b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xf7b59e-0x1,_0x446e8b['author']['name'],_0x466083?_0x4b3d04['formatDateTime'](_0x466083):'',new DOMParser()['parseFromString'](_0xa4f075,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4011a5(),this['focusTracker']=new _0x24e6e1(),this['keystrokes']=new _0x4c05a3(),this['focusCycler']=new _0xdcfb15({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f7031=>_0x2f7031['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x446e8b,this['_localUser']=_0x175615,this['_config']=_0x4b3d04,_0x4b3d04['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4a61a7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49e99b}=this['_config'];this['commentsListView']=new _0x49e99b(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',_0x3c6d9b=>_0x3c6d9b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x201558,_0x4fb543)=>_0x201558||!!_0x4fb543);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32bf51}=this['_config'],_0x12c156=new _0x32bf51(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x220b2c=_0x12c156['commentInputView'];return _0x12c156['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x220b2c,'value',(_0x6247f5,_0x2b5d4d,_0x265c93)=>!!_0x265c93||_0x6247f5&&!_0x2b5d4d),_0x220b2c['on']('submit',(_0x58836b,_0x2e7f6d)=>{this['fire']('addComment',_0x2e7f6d),_0x220b2c['editor']['setData']('');}),_0x220b2c['on']('cancel',()=>this['focus']()),_0x220b2c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12c156;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x3365c3,_0x56065b,_0x325a1e,_0x3e71f9){super(_0x3365c3,_0x56065b,_0x325a1e,_0x3e71f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4a7fa8=>_0x4a7fa8&&_0x4a7fa8[0x0]?_0x4a7fa8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44222c,_0x208535)=>{let _0x5dac8f='';for(const _0x5c07b9 of _0x44222c)_0x5dac8f+='<p>'+cs(_0x5c07b9['content'],_0x5c07b9['color'])+'</p>';return _0x208535?_0x5dac8f:_0x277e55(_0x5dac8f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e71f9['SuggestionView'](_0x3365c3,_0x56065b,{'formatDateTime':_0x3e71f9['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 _0x23f744=this['bindTemplate'],_0x1c99dc=[this['suggestionView']];return this['commentsListView']&&_0x1c99dc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1c99dc['push'](this['commentThreadInputView']),_0x1c99dc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23f744['if']('isActive','ck-suggestion-wrapper--active'),_0x23f744['to']('type',_0x402206=>'ck-suggestion-'+_0x402206),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':_0x23f744['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1c99dc};}['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 fe extends _0x3964e1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1febc5,_0x1f2423,_0x1005ec){super(_0x1febc5),this['_model']=_0x1f2423,this['_config']=_0x1005ec,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f2423),this['acceptButton']=this['_createButton'](o(_0x1febc5,'Accept\x20suggestion'),_0x29e319['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1febc5,'Discard\x20suggestion'),_0x29e319['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5893a1(_0x1febc5,_0x1f2423['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4011a5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24e6e1(),this['keystrokes']=new _0x4c05a3(),this['focusCycler']=new _0xdcfb15({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18afce=>_0x18afce['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f9f61=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f9f61['innerHTML']=this['description'],this['on']('change:description',(_0x1430fe,_0x53013a,_0x4eb5b8)=>{_0x3f9f61['innerHTML']=_0x4eb5b8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc97b25=this['bindTemplate'],_0x6146fb=[{'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':_0xc97b25['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc97b25['to']('authoredAt',_0x5c3bb8=>this['_config']['formatDateTime'](_0x5c3bb8))}]}]},{'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']&&_0x6146fb['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':_0x6146fb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xdb1e4d,_0x1b1f5b,_0x420e43,_0x32c2bb,_0x3d2f18){const _0x13d195=new _0x2099e1(this['locale']);return _0x13d195['set']({'label':_0xdb1e4d,'icon':_0x1b1f5b,'tooltip':!0x0,'tooltipPosition':_0x3d2f18}),_0x13d195['extendTemplate']({'attributes':{'class':_0x420e43}}),_0x13d195['on']('execute',()=>{this['fire'](_0x32c2bb,this['_model']['id']);}),_0x13d195;}['_setupKeyboardNavigation'](){const _0x388c93=this['element'];this['keystrokes']['listenTo'](_0x388c93);for(const _0x4240cc of this['focusables'])this['focusTracker']['add'](_0x4240cc['element']),this['keystrokes']['listenTo'](_0x4240cc['element']);this['keystrokes']['set']('enter',(_0x5c65d7,_0xf7b1af)=>{_0x388c93===_0x5c65d7['target']&&(this['focusCycler']['focusFirst'](),_0xf7b1af());}),this['keystrokes']['set']('esc',(_0x2d24ae,_0x13f9bb)=>{_0x388c93!==_0x2d24ae['target']&&(this['focus'](),_0x13f9bb());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x577abc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x389bec,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24796e){super(_0x24796e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x54456d=this['editor']['config'];_0x54456d['define']('trackChanges.SuggestionThreadView',pe),_0x54456d['define']('trackChanges.SuggestionView',fe),_0x54456d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x54456d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x57e5c0,_0x3f166d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b1066,_0x35ec21]of this['_handleControllerBuffer']){const _0x5907b6=this['_suggestionToController']['has'](_0x4b1066);_0x5907b6||_0x35ec21?_0x5907b6&&_0x35ec21&&this['_destroyController'](_0x4b1066):this['_initializeController'](_0x4b1066);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57e5c0,_0x3f166d);}['init'](){const _0x3696e2=this['editor'],_0x626e0e=_0x3696e2['plugins']['get']('TrackChangesEditing'),_0x4271d9=_0x3696e2['plugins']['get']('Annotations'),_0x1f4b86=_0x3696e2['plugins']['get']('EditorAnnotations'),_0x5d9159=_0x3696e2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f4b86['addSourceCollector'](()=>{const _0x3f219d=[];for(const [_0x101355,_0x576495]of Array['from'](this['_suggestionToController'])){const _0x39385a=_0x101355['getAllAdjacentSuggestions'](),_0x1c87c4=[];for(const _0x20f8ce of _0x39385a){if(!_0x20f8ce['isInContent'])continue;if(_0x20f8ce['isMultiRange']){_0x1c87c4['push'](..._0x20f8ce['getRanges']());continue;}const _0x17535a=_0x20f8ce['getFirstRange']();if(_0x1c87c4['length']>0x0){const _0xfd36bd=_0x1c87c4[0x0]['getJoined'](_0x17535a);if(_0xfd36bd){_0x1c87c4[0x0]=_0xfd36bd;continue;}}_0x1c87c4['push'](_0x17535a);}_0x3f219d['push']([_0x576495['view'],_0x1c87c4]);}return _0x3f219d;}),this['listenTo'](_0x626e0e,'suggestionLoaded',(_0x56a233,_0x147da3)=>{this['listenTo'](_0x147da3,'change:previous',(_0x18159f,_0x256e53,_0x28c419,_0x3a9d03)=>{_0x147da3['isInContent']&&(null==_0x28c419?(this['_updateController'](_0x3a9d03['head']),this['_handleSuggestionControllerDelayed'](_0x147da3,!0x1)):(this['_updateController'](_0x28c419['head']),null==_0x3a9d03&&this['_handleSuggestionControllerDelayed'](_0x147da3,!0x0)));}),null!==_0x147da3['previous']?this['_updateController'](_0x147da3['head']):this['_handleSuggestionControllerDelayed'](_0x147da3,!0x1);}),this['listenTo'](_0x626e0e,'suggestionUnloaded',(_0x4cebbc,_0xe067ba,_0x49dda4)=>{this['stopListening'](_0xe067ba,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe067ba),this['_suggestionToController']['has'](_0xe067ba)&&this['_destroyController'](_0xe067ba),_0x49dda4&&this['_updateController'](_0x49dda4['head']);}),this['listenTo'](_0x626e0e,'suggestionChanged',(_0x4179e8,_0x43e938)=>{this['_updateController'](_0x43e938);}),this['listenTo'](_0x4271d9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d9159,'addComment',(_0x45aefe,{threadId:_0x163bc9,isFromAdapter:_0x40a25b})=>{if(_0x40a25b||!_0x626e0e['hasSuggestion'](_0x163bc9))return;const _0x4b3219=_0x626e0e['getSuggestion'](_0x163bc9);this['_suggestionToController']['get'](_0x4b3219)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e2f95=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2da008;for(const _0x37fa16 in _0x1e2f95){const _0x42e892=_0x37fa16,_0x280519=_0x1e2f95[_0x42e892];if('trackChangesLicenseKeyValid'==_0x280519||'trackChangesLicenseKeyInvalid'==_0x280519||'trackChangesLicenseKeyExpired'==_0x280519||'trackChangesLicenseKeyDomainLimit'==_0x280519||'trackChangesLicenseKeyNotAllowed'==_0x280519||'trackChangesLicenseKeyEvaluationLimit'==_0x280519||'trackChangesLicenseKeyTrialLimit'==_0x280519||'trackChangesLicenseKeyUsageLimit'==_0x280519){delete _0x1e2f95[_0x42e892],_0x2da008=_0x280519,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2da008&&_0x1e2f95['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2da008&&_0x1e2f95['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2da008&&_0x1e2f95['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2da008&&_0x1e2f95['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e0e0c=this['editor']['plugins']['get']('Annotations'),_0x235e14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524d57=Array['from'](_0x4e0e0c['activeAnnotations'],_0x1e37fb=>_0x1e37fb['innerView'])['filter'](_0x970a75=>this['_viewToController']['has'](_0x970a75)),_0x2a35ea=[];for(const _0x53bb2f of _0x524d57){const _0x2f7cba=this['_viewToController']['get'](_0x53bb2f)['model']['getAllAdjacentSuggestions']();_0x2a35ea['push'](..._0x2f7cba['reduce']((_0x5ec369,_0x392de6)=>[..._0x5ec369,..._0x392de6['getMarkerNames']()],[]));}_0x235e14['activeMarkers']=_0x2a35ea;}['_addUIComponentsToFactory'](){const _0x9790c6=this['editor'],_0x2f2729=_0x9790c6['locale'],_0x148c05=o(_0x2f2729,'Track\x20changes'),_0x2a5822=new _0xc60cdf([{'type':'switchbutton','model':new _0x1bd82c({'withText':!0x0,'isToggleable':!0x0,'label':_0x148c05,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9790c6['plugins']['has']('TrackChangesPreview')&&_0x2a5822['addMany']([{'type':'separator'},{'type':'button','model':new _0x1bd82c({'withText':!0x0,'label':o(_0x2f2729,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23f239 of _0x2a5822)if(ke(_0x23f239)){const _0x4d5305=_0x9790c6['commands']['get'](_0x23f239['model']['commandName']);_0x23f239['model']['bind']('isOn','isEnabled')['to'](_0x4d5305,'value','isEnabled');}_0x9790c6['ui']['componentFactory']['add']('trackChanges',_0x4d3551=>this['_createToolbarButton'](_0x4d3551,_0x2a5822,_0x148c05)),_0x9790c6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1dc479=>this['_createMenuBarMenu'](_0x1dc479,_0x2a5822,_0x148c05));}['_createToolbarButton'](_0x41d344,_0x17c7d2,_0x2bf7e6){const _0x349c94=_0x5d588b(_0x41d344,_0x5846c4),_0x5d5a9c=this['editor']['commands']['get']('trackChanges');_0x349c94['buttonView']['set']({'tooltip':_0x2bf7e6,'label':_0x2bf7e6,'icon':we}),_0x349c94['buttonView']['bind']('isOn')['to'](_0x5d5a9c,'value'),_0x349c94['buttonView']['on']('execute',()=>{_0x5d5a9c['execute'](),this['editor']['editing']['view']['focus']();}),_0x18b49c(_0x349c94,_0x17c7d2,{'role':'menu'});const _0x1bc71=[];for(const _0x332659 of _0x17c7d2)ke(_0x332659)&&_0x1bc71['push'](this['editor']['commands']['get'](_0x332659['model']['commandName']));const _0x33d642=_0x349c94['buttonView'];return _0x33d642['actionView']['unbind']('isEnabled'),_0x33d642['arrowView']['unbind']('isEnabled'),_0x33d642['actionView']['bind']('isEnabled')['to'](_0x5d5a9c,'isEnabled'),_0x33d642['arrowView']['bind']('isEnabled')['toMany'](_0x1bc71,'isEnabled',(..._0x1f3f5a)=>_0x1f3f5a['some'](_0x51ff78=>_0x51ff78)),_0x349c94['on']('execute',_0xd470e9=>{this['editor']['execute'](_0xd470e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x349c94;}['_createMenuBarMenu'](_0x2312f7,_0x1b3640,_0x3c4139){const _0x46d903=new _0x225691(_0x2312f7),_0x49b60f=this['editor']['commands']['get']('trackChanges');_0x46d903['buttonView']['set']({'label':_0x3c4139,'icon':we});const _0x59405e=new _0x31fb4c(_0x2312f7);for(const _0x1df414 of _0x1b3640){if('separator'==_0x1df414['type']){_0x59405e['items']['add'](new _0x5d4809(_0x2312f7));continue;}const _0x121b99=new _0x17e556(_0x2312f7,_0x46d903),_0x297597=new _0x12e83f(_0x2312f7),_0x24439c=_0x1df414['model'];_0x297597['bind'](...Object['keys'](_0x24439c))['to'](_0x24439c),_0x297597['delegate']('execute')['to'](_0x46d903),_0x297597['on']('execute',()=>{this['editor']['execute'](_0x24439c['commandName']),this['editor']['editing']['view']['focus']();}),_0x121b99['children']['add'](_0x297597),_0x59405e['items']['add'](_0x121b99);}return _0x46d903['bind']('isEnabled')['to'](_0x49b60f,'isEnabled'),_0x46d903['panelView']['children']['add'](_0x59405e),_0x46d903;}['_initializeController'](_0x434686){const _0x9123f8=this['editor'],_0x11221b=_0x9123f8['config'],_0x48a98d=_0x9123f8['plugins']['get']('Annotations'),_0x2d595b=_0x9123f8['plugins']['get']('CommentsRepository'),_0x3c62f8=_0x9123f8['plugins']['get']('EditorAnnotations'),_0x4a4065=_0x9123f8['plugins']['get'](_0x389bec)['me'],_0x49979c=_0x11221b['get']('trackChanges')['SuggestionThreadView'],_0x378bfd=_0x11221b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5670e5,CommentThreadInputView:_0x3de49f}=_0x9123f8['plugins']['get']('CommentsUI');let _0x32b494,_0x41b0bb,_0x564c72;this['_annotationViews']['has'](_0x434686['id'])?(_0x41b0bb=this['_annotationViews']['get'](_0x434686['id']),_0x32b494=_0x41b0bb['mainView']):(_0x32b494=new _0x49979c(_0x9123f8['locale'],_0x434686,_0x4a4065,{'disableComments':this['_disableComments'],'editorConfig':{..._0x11221b['get']('comments.editorConfig'),'licenseKey':_0x11221b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x11221b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11221b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11221b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e2d61(_0x11221b['get']('locale')),'CommentView':_0x11221b['get']('comments')['CommentView'],'CommentsListView':_0x5670e5,'CommentThreadInputView':_0x3de49f,'SuggestionView':_0x378bfd}),_0x32b494['suggestionView']['acceptButton']['on']('execute',()=>{_0x9123f8['editing']['view']['focus']();}),_0x32b494['suggestionView']['discardButton']['on']('execute',()=>{_0x9123f8['editing']['view']['focus']();}),_0x41b0bb=_0x48a98d['createAnnotationView'](this['editor']['locale'],_0x32b494),_0x41b0bb['bind']('isDirty')['to'](_0x32b494,'isDirty'),_0x41b0bb['bind']('length')['to'](_0x32b494),_0x41b0bb['bind']('type')['to'](_0x32b494,'type',_0xc3b867=>'suggestion-'+_0xc3b867),_0x32b494['on']('escape',()=>{_0x564c72['fire']('escape');}),this['_annotationViews']['set'](_0x434686['id'],_0x41b0bb));const _0xec2aff=_0x2d595b['createCommentThreadController'](_0x434686['commentThread'],_0x32b494),_0x54fe7a=new Ce(_0x9123f8,_0x434686,_0x32b494,_0xec2aff),_0x5942f5=_0x434686['getAllAdjacentSuggestions']()['filter'](_0x156396=>_0x156396['isInContent']);_0x32b494['descriptionParts']=_0x9123f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5942f5),this['_suggestionToController']['set'](_0x434686,_0x54fe7a),this['_viewToController']['set'](_0x32b494,_0x54fe7a),_0x564c72=_0x48a98d['createAnnotation']({'view':_0x41b0bb,'target':()=>{const _0x4b548b=[],_0x50f54b=_0x434686['getAllAdjacentSuggestions']()['filter'](_0x51e804=>_0x51e804['isInContent']);for(const _0x525d90 of _0x50f54b)_0x4b548b['push'](..._0x525d90['getMarkers']());return _0x49b58d(_0x9123f8['editing'],_0x4b548b);},'type':()=>'suggestion-'+_0x54fe7a['view']['type']}),_0x2d595b['_bindAnnotationToEditors'](_0x32b494,_0x564c72),_0x48a98d['add'](_0x564c72),_0x3c62f8['registerAnnotation'](_0x564c72);}['_destroyController'](_0x2426ed){const _0x460130=this['editor']['plugins']['get']('CommentsRepository'),_0x4bcfed=this['editor']['plugins']['get']('Annotations'),_0x50ac53=this['_suggestionToController']['get'](_0x2426ed),_0x5be897=_0x50ac53['view'],_0x3e059f=_0x4bcfed['getByInnerView'](_0x5be897);_0x460130['_unbindEditors'](_0x5be897),_0x3e059f&&_0x4bcfed['remove'](_0x3e059f),this['_suggestionToController']['delete'](_0x2426ed),this['_viewToController']['delete'](_0x5be897),_0x50ac53['destroy']();}['_updateController'](_0x5298f7){if(!_0x5298f7['isInContent']||!this['_suggestionToController']['has'](_0x5298f7))return;const _0x473e6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a0e5=this['_suggestionToController']['get'](_0x5298f7),_0x392fc7=_0x5298f7['getAllAdjacentSuggestions']();_0x50a0e5['view']['descriptionParts']=_0x473e6c['descriptionFactory']['getDescriptions'](_0x392fc7);}['destroy'](){for(const _0x300831 of this['_suggestionToController']['keys']())this['_destroyController'](_0x300831);for(const _0x4614b8 of this['_annotationViews']['values']())_0x4614b8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x411547){return'model'in _0x411547;}class k extends _0x577abc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1a44eb){this['editor']['plugins']['get'](p)['adapter']=_0x1a44eb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x16f769){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x16f769);}['getSuggestions']({skipNotAttached:_0x169be4=!0x1,toJSON:_0x5788cf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x169be4,'toJSON':_0x5788cf});}['getSuggestion'](_0x42dcbc){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42dcbc);}}const w=['Pagination'];class T extends _0x577abc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x19e3cc=this['editor'];if(_0x19e3cc['config']['define']('trackChangesData.editorCreator',_0x733e4a=>{const _0x28881e=_0x19e3cc['model']['document']['getRootNames']()['reduce']((_0x5c7f2f,_0x1ead35)=>(_0x5c7f2f[_0x1ead35]='',_0x5c7f2f),{});return _0x19e3cc['constructor']['create'](_0x28881e,_0x733e4a);}),'function'!=typeof _0x19e3cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d7761('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28d4c1){return N(this['editor'],!0x0,_0x28d4c1);}['getDataWithDiscardedSuggestions'](_0x26b817){return N(this['editor'],!0x1,_0x26b817);}}class D extends _0x577abc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35afc9){function _0x1a07a3(_0x2b09dc){return _0x2b09dc['map'](_0x4f69e6=>String['fromCharCode'](_0x4f69e6))['join']('');}super(_0x35afc9),this['result']='end',_0x35afc9[_0x1a07a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a07a3([0x76,0x69,0x65,0x77])][_0x1a07a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a07a3([0x61,0x75,0x74,0x6f]),_0x35afc9[_0x1a07a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a07a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a07a3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a07a3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a07a3([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 Fe(_0x54d770){return void 0x0!==_0x54d770['getRootsAttributes'];}async function N(_0x95886d,_0x2c0d4f,_0x583154){const _0x211702=_0x4646b0(_0x95886d,w);_0x211702['plugins']['push'](p,D),_0x211702['rootsAttributes']=Fe(_0x95886d)?_0x95886d['getRootsAttributes']():void 0x0;const _0x30fe90=document['createDocumentFragment'](),_0x5cfa95=_0x95886d['config']['get']('trackChangesData')['editorCreator'],_0x53ac1a=await _0x5cfa95(_0x211702,()=>function(_0x428e58){const _0xada943=document['createElement']('div');return _0x428e58['appendChild'](_0xada943),_0xada943;}(_0x30fe90));!function(_0x4b399b,_0x3e4458){const _0x569982=_0x4b399b['model']['document']['getRootNames']()['reduce']((_0x256a20,_0x280c38)=>(_0x256a20[_0x280c38]=_0x4b399b['data']['get']({'rootName':_0x280c38}),_0x256a20),{}),_0x278687=_0x4b399b['plugins']['get']('Users')['users']['map'](_0xc43150=>({'id':_0xc43150['id'],'name':_0xc43150['name']})),_0x4c2cd6=_0x4b399b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25e590=_0x4b399b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe0b20d=_0x3e4458['plugins']['get']('Users'),_0x27b9d4=_0x3e4458['plugins']['get']('TrackChangesEditing'),_0xff332b=_0x3e4458['plugins']['get']('CommentsRepository');for(const _0x5137b4 of _0xff332b['getCommentThreads']())_0x5137b4['remove']();for(const _0x35ed2f of _0x278687)_0xe0b20d['getUser'](_0x35ed2f['id'])||_0xe0b20d['addUser'](_0x35ed2f);_0xe0b20d['me']||_0xe0b20d['useAnonymousUser']();for(const _0x4fe611 of _0x25e590)_0xff332b['addCommentThread'](_0x4fe611);for(const _0x579076 of _0x4c2cd6)_0x27b9d4['addSuggestionData'](_0x579076);_0x3e4458['data']['set'](_0x569982);}(_0x95886d,_0x53ac1a),_0x53ac1a['execute'](_0x2c0d4f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5ddcb2=Fe(_0x53ac1a)?_0x53ac1a['getFullData'](_0x583154):_0x53ac1a['data']['get'](_0x583154);return await _0x53ac1a['destroy'](),_0x5ddcb2;}class Me extends _0x3964e1{['options'];constructor(_0x4055a9,_0x2bd26f){super(_0x4055a9),this['options']=_0x2bd26f,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'](_0x43f65f,_0x43ba7d){if(!this['element'])return;const _0x189ef7=[];for(const [_0x13f67b,_0x2fcce5]of _0x43f65f){const _0x43948a=document['createElement']('div');_0x43948a['setAttribute']('data-ck-root-name',_0x13f67b),_0x43948a['className']=_0x2fcce5['classes']+'\x20ck-track-changes-preview__root-container',_0x43948a['innerHTML']=_0x2fcce5['content'],_0x189ef7['push'](_0x43948a);}_0x43ba7d(this['element'],_0x189ef7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x1acab7){super(_0x1acab7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17c328=this['editor'],_0x3bc905=_0x17c328['locale'],_0x27b237=_0x17c328['plugins']['get']('Dialog');let _0x46de14;const _0x53f037=function(_0x270ea3){const _0x2a7234={};if('editables'in _0x270ea3['ui']['view']){for(const [_0x3a29b4,_0x56b071]of Object['entries'](_0x270ea3['ui']['view']['editables']))_0x2a7234[_0x3a29b4]=_0x56b071['element'];}else _0x2a7234[_0x270ea3['model']['document']['getRootNames']()[0x0]]=_0x270ea3['ui']['view']['editable']['element'];return _0x2a7234;}(_0x17c328),_0xf8031f=function(_0x2538d1){let _0x2e7608=0x0;for(const _0x547de6 of Object['values'](_0x2538d1))_0x2e7608=Math['max'](_0x2e7608,_0x547de6['getBoundingClientRect']()['width']);let _0x42862f=0x0;for(const _0x16d3af of Object['values'](_0x2538d1))_0x42862f+=_0x16d3af['getBoundingClientRect']()['height'];const _0x1da4a8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2a5335=Math['min'](_0x42862f,_0x1da4a8);return{'width':_0x2e7608,'height':_0x2a5335};}(_0x53f037);_0x27b237['show']({'id':'finalContentPreview','title':o(_0x3bc905,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3bc905,{'dialogRects':_0xf8031f}),'onHide':()=>{_0x46de14['detachFromDom']();},'onShow':()=>{_0x17c328['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x45fb25=>{const _0x3e79e5=this['_standarizeRootsData'](_0x45fb25,_0x17c328,_0x53f037);_0x27b237['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3e79e5,_0x17c328['config']['get']('trackChanges.preview.renderFunction'));}),_0x46de14=new _0x59be9e(_0x3bc905,[_0x27b237['view']]),_0x46de14['attachToDom'](),_0x46de14['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17c328['once']('destroy',()=>{_0x46de14['detachFromDom']();});const _0x5ee9f0=_0x27b237['view']['headerView']['class'];_0x27b237['view']['headerView']['class']=_0x5ee9f0?_0x5ee9f0+'\x20ck-reset_all':'ck-reset_all',_0x27b237['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x27b237['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x54d600=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f30e1=_0x54d600['previewMode'],_0x3ef6e4={};if('$labels'===_0x3f30e1){for(const _0x3e488d of _0x54d600['getMergeFieldsIds']())_0x3ef6e4[_0x3e488d]=_0x54d600['getLabel'](_0x3e488d)||_0x3e488d;}else{const _0x318ef5='$defaultValues'===_0x3f30e1?_0x54d600['getDefaultValues']():_0x54d600['getDataSetValues'](_0x3f30e1,!0x0);for(const _0x47acce of Object['entries'](_0x318ef5)){const [_0x4c5427,_0x11f211]=_0x47acce;_0x3ef6e4[_0x4c5427]=null!==_0x11f211?_0x11f211:_0x54d600['getLabel'](_0x4c5427)||_0x4c5427;}}return{'mergeFieldsData':_0x3ef6e4};}['_standarizeRootsData'](_0x3afc6b,_0x29d21f,_0x12e21a){let _0x28f6fe;if('string'==typeof _0x3afc6b){const _0x9232e3=_0x29d21f['model']['document']['getRootNames']()[0x0];_0x28f6fe={[_0x9232e3]:_0x3afc6b};}else _0x28f6fe=_0x3afc6b;const _0x18d0c2=this['_fixMediaEmbeds'](_0x28f6fe,_0x29d21f),_0x38c008=function(_0x475141,_0x1c3d17){for(const [_0x7135d6,_0x3c6c13]of _0x475141)_0x3c6c13['classes']=_0x1c3d17[_0x7135d6]['classList']['value']['replace']('ck-focused','');return _0x475141;}(this['_sortRoots'](_0x29d21f)['reduce']((_0x456c82,_0x412ee9)=>(_0x456c82['push']([_0x412ee9,{'content':_0x18d0c2[_0x412ee9],'classes':''}]),_0x456c82),[]),_0x12e21a);return _0x38c008;}['_fixMediaEmbeds'](_0x5fa399,_0x93faf1){if(!_0x93faf1['plugins']['has']('MediaEmbedEditing'))return _0x5fa399;const _0x309559=_0x93faf1['plugins']['get']('MediaEmbedEditing');for(const [_0x3af91b,_0x3fa0c9]of Object['entries'](_0x5fa399)){const _0x499083=document['createElement']('div');_0x499083['innerHTML']=_0x3fa0c9,(_0x499083['querySelectorAll']('figure.media')['forEach'](_0xe67408=>{const _0x31d6e6=_0xe67408['querySelector']('oembed');if(_0x31d6e6){const _0x5abbfe=_0x31d6e6['getAttribute']('url');if(_0x5abbfe){const _0x4b085e=_0x309559['registry']['getMediaViewElement'](new _0xb71fdb(_0x93faf1['editing']['view']['document']),_0x5abbfe,{'elementName':'','renderForEditingView':!0x0}),_0x7c9d5e=document['createElement']('div');_0x7c9d5e['classList']['add']('ck-media__wrapper'),_0x4b085e['render'](_0x7c9d5e,_0x93faf1['editing']['view']['domConverter']),_0x31d6e6['replaceWith'](_0x7c9d5e);}}}),_0x5fa399[_0x3af91b]=_0x499083['innerHTML']);}return _0x5fa399;}['_sortRoots'](_0x28c99b){if(!function(_0x55cd26){return void 0x0!==_0x55cd26['getRootsAttributes'];}(_0x28c99b))return _0x28c99b['model']['document']['getRootNames']();const _0x3b150d=[],_0x3676b5=new Map();for(const _0xf25870 of _0x28c99b['model']['document']['getRootNames']()){const _0x3de4ab=_0x28c99b['editing']['view']['getDomRoot'](_0xf25870)['getClientRects']()['item'](0x0);_0x3b150d['push'](_0xf25870),_0x3676b5['set'](_0xf25870,_0x3de4ab);}return _0x3b150d['sort']((_0x3d03ce,_0x281412)=>{const _0x4edea9=_0x3676b5['get'](_0x3d03ce),_0x2d2366=_0x3676b5['get'](_0x281412);return _0x4edea9['y']-_0x2d2366['y']||_0x4edea9['x']-_0x2d2366['x'];}),_0x3b150d;}}class te extends _0x577abc{static get['requires'](){return[T,_0x1bef8c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2140e9){super(_0x2140e9),_0x2140e9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2140e9['config']['define']('trackChanges.preview.renderFunction',(_0x5a57ff,_0x150a49)=>{for(const _0x4b1f98 of _0x150a49)_0x5a57ff['appendChild'](_0x4b1f98);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|